@ecan-bi/datav 1.3.87 → 1.3.89

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.3.87 */
2
- (function(we,We){typeof exports=="object"&&typeof module<"u"?We(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"],We):(we=typeof globalThis<"u"?globalThis:we||self,We(we["@ecan/bi-datav"]={},we.Vue,we["echarts/core"],we.ResizeDetector,we.AntDesignVue,null,null,we.LodashEs,we.Dayjs,we.Axios,we.Mitt,null,null,null,we["ant-design-vue/es/date-picker/locale/zh_CN"],null,null,null,null,we["echarts/renderers"],we["echarts/charts"],we["echarts/components"],null,we.Echarts,null,null,we.Xlsx,we.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 we,We,Ze,Xe;"use strict";function _interopNamespaceDefault(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:()=>e[n]})}}return r.default=e,Object.freeze(r)}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,r){function n(a){return(...o)=>{if(e.value||r(),!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]=n(o)}),a}return i()}function useAutoresize(e,r,n){let i=null;vue.watch([n,e,r],([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,r,n){const i=vue.inject(LOADING_OPTIONS_KEY,{}),a=vue.computed(()=>({...vue.unref(i),...n==null?void 0:n.value}));vue.watchEffect(()=>{const o=e.value;o&&(r.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 r={};for(const n in e)isOn(n)||(r[n]=e[n]);return r}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:r,listeners:n}){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:h,loading:x,loadingOptions:f}=vue.toRefs(e),g=vue.computed(()=>o.value||e.option||Object.create(null)),v=vue.computed(()=>e.theme||vue.unref(s)||{}),m=vue.computed(()=>e.initOptions||vue.unref(l)||{}),w=vue.computed(()=>e.updateOptions||vue.unref(c)||{}),b=vue.computed(()=>omitOn(r));function d(P){if(a.value||!i.value)return;const A=a.value=core$1.init(i.value,v.value,m.value);e.group&&(A.group=e.group);let R=n;R||(R={},Object.keys(r).filter(O=>O.indexOf("on")===0&&O.length>2).forEach(O=>{const V=O.charAt(2).toLowerCase()+O.slice(3);R[V]=r[O]})),Object.keys(R).forEach(O=>{const V=R[O];V&&(O.indexOf("zr:")===0?A.getZr().on(O.slice(3).toLowerCase(),V):A.on(O.toLowerCase(),V))});function M(){if(A&&!A.isDisposed())try{A.resize()}catch(O){if(O.message==="Cannot read property 'get' of undefined")return;throw O}}function B(){A.setOption(P||g.value,w.value)}u.value?vue.nextTick(()=>{M(),B()}):B()}function p(P,A){e.manualUpdate&&(o.value=P),a.value?a.value.setOption(P,A||{}):d(P)}function y(){a.value&&(a.value.dispose(),a.value=void 0)}let E=null;vue.watch(h,P=>{typeof E=="function"&&(E(),E=null),P||(E=vue.watch(()=>e.option,A=>{A&&(a.value?a.value.setOption(A,w.value):d())},{deep:!0}))},{immediate:!0}),vue.watch([v,m],()=>{y(),d()},{deep:!0}),vue.watchEffect(()=>{e.group&&a.value&&(a.value.group=e.group)});const _=usePublicAPI(a,d);return useLoading(a,x,f),useAutoresize(a,u,i),vue.onMounted(()=>{e.option&&d()}),vue.onUnmounted(y),{chart:a,root:i,setOption:p,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,r){isOnePointZero(e)&&(e="100%");var n=isPercentage(e);return e=r===360?e:Math.min(r,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*r),10)/100),Math.abs(e-r)<1e-6?1:(r===360?e=(e<0?e%r+r:e%r)/parseFloat(String(r)):e=e%r/parseFloat(String(r)),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,r,n){return{r:bound01(e,255)*255,g:bound01(r,255)*255,b:bound01(n,255)*255}}function hue2rgb(e,r,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(r-e)*(6*n):n<1/2?r:n<2/3?e+(r-e)*(2/3-n)*6:e}function hslToRgb(e,r,n){var i,a,o;if(e=bound01(e,360),r=bound01(r,100),n=bound01(n,100),r===0)a=n,o=n,i=n;else{var s=n<.5?n*(1+r):n+r-n*r,l=2*n-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,r,n){e=bound01(e,255),r=bound01(r,255),n=bound01(n,255);var i=Math.max(e,r,n),a=Math.min(e,r,n),o=0,s=i,l=i-a,c=i===0?0:l/i;if(i===a)o=0;else{switch(i){case e:o=(r-n)/l+(r<n?6:0);break;case r:o=(n-e)/l+2;break;case n:o=(e-r)/l+4;break}o/=6}return{h:o,s:c,v:s}}function hsvToRgb(e,r,n){e=bound01(e,360)*6,r=bound01(r,100),n=bound01(n,100);var i=Math.floor(e),a=e-i,o=n*(1-r),s=n*(1-a*r),l=n*(1-(1-a)*r),c=i%6,u=[n,s,o,o,l,n][c],h=[l,n,n,s,o,o][c],x=[o,o,l,n,n,s][c];return{r:u*255,g:h*255,b:x*255}}function rgbToHex(e,r,n,i){var a=[pad2(Math.round(e).toString(16)),pad2(Math.round(r).toString(16)),pad2(Math.round(n).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 r={r:0,g:0,b:0},n=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)?(r=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),r=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),r=hslToRgb(e.h,i,o),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=boundAlpha(n),{ok:s,format:e.format||l,r:Math.min(255,Math.max(r.r,0)),g:Math.min(255,Math.max(r.g,0)),b:Math.min(255,Math.max(r.b,0)),a:n}}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 r=!1;if(names[e])e=names[e],r=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=matchers.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=matchers.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=matchers.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=matchers.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=matchers.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=matchers.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=matchers.hex8.exec(e),n?{r:parseIntFromHex(n[1]),g:parseIntFromHex(n[2]),b:parseIntFromHex(n[3]),a:convertHexToDecimal(n[4]),format:r?"name":"hex8"}:(n=matchers.hex6.exec(e),n?{r:parseIntFromHex(n[1]),g:parseIntFromHex(n[2]),b:parseIntFromHex(n[3]),format:r?"name":"hex"}:(n=matchers.hex4.exec(e),n?{r:parseIntFromHex(n[1]+n[1]),g:parseIntFromHex(n[2]+n[2]),b:parseIntFromHex(n[3]+n[3]),a:convertHexToDecimal(n[4]+n[4]),format:r?"name":"hex8"}:(n=matchers.hex3.exec(e),n?{r:parseIntFromHex(n[1]+n[1]),g:parseIntFromHex(n[2]+n[2]),b:parseIntFromHex(n[3]+n[3]),format:r?"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 r=e.r,n=e.g,i=e.b,a=rgbToHsv(r,n,i);return{h:a.h*360,s:a.s,v:a.v}}function toHex(e){var r=e.r,n=e.g,i=e.b;return"#".concat(rgbToHex(r,n,i,!1))}function mix(e,r,n){var i=n/100,a={r:(r.r-e.r)*i+e.r,g:(r.g-e.g)*i+e.g,b:(r.b-e.b)*i+e.b};return a}function getHue(e,r,n){var i;return Math.round(e.h)>=60&&Math.round(e.h)<=240?i=n?Math.round(e.h)-hueStep*r:Math.round(e.h)+hueStep*r:i=n?Math.round(e.h)+hueStep*r:Math.round(e.h)-hueStep*r,i<0?i+=360:i>=360&&(i-=360),i}function getSaturation(e,r,n){if(e.h===0&&e.s===0)return e.s;var i;return n?i=e.s-saturationStep*r:r===darkColorCount?i=e.s+saturationStep:i=e.s+saturationStep2*r,i>1&&(i=1),n&&r===lightColorCount&&i>.1&&(i=.1),i<.06&&(i=.06),Number(i.toFixed(2))}function getValue(e,r,n){var i;return n?i=e.v+brightnessStep1*r:i=e.v-brightnessStep2*r,i>1&&(i=1),Number(i.toFixed(2))}function generate$1(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],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)}));n.push(s)}n.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)}));n.push(u)}return r.theme==="dark"?darkColorMap.map(function(h){var x=h.index,f=h.opacity,g=toHex(mix(inputToRGB(r.backgroundColor||"#141414"),inputToRGB(n[x]),f*100));return g}):n}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,r){if(r=r||{},e===void 0)throw new Error(usage);var n=r.prepend===!0?"prepend":"append",i=r.container!==void 0?r.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][n]!==void 0?o=styleElements[a][n]:(o=styleElements[a][n]=createStyleElement(),n==="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 r=1;r<arguments.length;r++){var n=arguments[r]!=null?Object(arguments[r]):{},i=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),i.forEach(function(a){_defineProperty$8(e,a,n[a])})}return e}function _defineProperty$8(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function warn(e,r){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(r))}function warning(e,r){warn(e,"[@ant-design/icons-vue] ".concat(r))}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,r,n){return n?vue.h(e.tag,_objectSpread$8({key:r},n,e.attrs),(e.children||[]).map(function(i,a){return generate(i,"".concat(r,"-").concat(e.tag,"-").concat(a))})):vue.h(e.tag,_objectSpread$8({key:r},e.attrs),(e.children||[]).map(function(i,a){return generate(i,"".concat(r,"-").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.3.89 */
2
+ (function(we,Ke){typeof exports=="object"&&typeof module<"u"?Ke(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"],Ke):(we=typeof globalThis<"u"?globalThis:we||self,Ke(we["@ecan/bi-datav"]={},we.Vue,we["echarts/core"],we.ResizeDetector,we.AntDesignVue,null,null,we.LodashEs,we.Dayjs,we.Axios,we.Mitt,null,null,null,we["ant-design-vue/es/date-picker/locale/zh_CN"],null,null,null,null,we["echarts/renderers"],we["echarts/charts"],we["echarts/components"],null,we.Echarts,null,null,we.Xlsx,we.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 we,Ke,Qe,et;"use strict";function _interopNamespaceDefault(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:()=>e[n]})}}return r.default=e,Object.freeze(r)}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,r){function n(a){return(...o)=>{if(e.value||r(),!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]=n(o)}),a}return i()}function useAutoresize(e,r,n){let i=null;vue.watch([n,e,r],([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,r,n){const i=vue.inject(LOADING_OPTIONS_KEY,{}),a=vue.computed(()=>({...vue.unref(i),...n==null?void 0:n.value}));vue.watchEffect(()=>{const o=e.value;o&&(r.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 r={};for(const n in e)isOn(n)||(r[n]=e[n]);return r}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:r,listeners:n}){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:h,loading:x,loadingOptions:f}=vue.toRefs(e),g=vue.computed(()=>o.value||e.option||Object.create(null)),v=vue.computed(()=>e.theme||vue.unref(s)||{}),m=vue.computed(()=>e.initOptions||vue.unref(l)||{}),E=vue.computed(()=>e.updateOptions||vue.unref(c)||{}),b=vue.computed(()=>omitOn(r));function d(P){if(a.value||!i.value)return;const w=a.value=core$1.init(i.value,v.value,m.value);e.group&&(w.group=e.group);let D=n;D||(D={},Object.keys(r).filter(L=>L.indexOf("on")===0&&L.length>2).forEach(L=>{const V=L.charAt(2).toLowerCase()+L.slice(3);D[V]=r[L]})),Object.keys(D).forEach(L=>{const V=D[L];V&&(L.indexOf("zr:")===0?w.getZr().on(L.slice(3).toLowerCase(),V):w.on(L.toLowerCase(),V))});function M(){if(w&&!w.isDisposed())try{w.resize()}catch(L){if(L.message==="Cannot read property 'get' of undefined")return;throw L}}function B(){w.setOption(P||g.value,E.value)}u.value?vue.nextTick(()=>{M(),B()}):B()}function p(P,w){e.manualUpdate&&(o.value=P),a.value?a.value.setOption(P,w||{}):d(P)}function y(){a.value&&(a.value.dispose(),a.value=void 0)}let S=null;vue.watch(h,P=>{typeof S=="function"&&(S(),S=null),P||(S=vue.watch(()=>e.option,w=>{w&&(a.value?a.value.setOption(w,E.value):d())},{deep:!0}))},{immediate:!0}),vue.watch([v,m],()=>{y(),d()},{deep:!0}),vue.watchEffect(()=>{e.group&&a.value&&(a.value.group=e.group)});const k=usePublicAPI(a,d);return useLoading(a,x,f),useAutoresize(a,u,i),vue.onMounted(()=>{e.option&&d()}),vue.onUnmounted(y),{chart:a,root:i,setOption:p,nonEventAttrs:b,...k}},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,r){isOnePointZero(e)&&(e="100%");var n=isPercentage(e);return e=r===360?e:Math.min(r,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*r),10)/100),Math.abs(e-r)<1e-6?1:(r===360?e=(e<0?e%r+r:e%r)/parseFloat(String(r)):e=e%r/parseFloat(String(r)),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,r,n){return{r:bound01(e,255)*255,g:bound01(r,255)*255,b:bound01(n,255)*255}}function hue2rgb(e,r,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(r-e)*(6*n):n<1/2?r:n<2/3?e+(r-e)*(2/3-n)*6:e}function hslToRgb(e,r,n){var i,a,o;if(e=bound01(e,360),r=bound01(r,100),n=bound01(n,100),r===0)a=n,o=n,i=n;else{var s=n<.5?n*(1+r):n+r-n*r,l=2*n-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,r,n){e=bound01(e,255),r=bound01(r,255),n=bound01(n,255);var i=Math.max(e,r,n),a=Math.min(e,r,n),o=0,s=i,l=i-a,c=i===0?0:l/i;if(i===a)o=0;else{switch(i){case e:o=(r-n)/l+(r<n?6:0);break;case r:o=(n-e)/l+2;break;case n:o=(e-r)/l+4;break}o/=6}return{h:o,s:c,v:s}}function hsvToRgb(e,r,n){e=bound01(e,360)*6,r=bound01(r,100),n=bound01(n,100);var i=Math.floor(e),a=e-i,o=n*(1-r),s=n*(1-a*r),l=n*(1-(1-a)*r),c=i%6,u=[n,s,o,o,l,n][c],h=[l,n,n,s,o,o][c],x=[o,o,l,n,n,s][c];return{r:u*255,g:h*255,b:x*255}}function rgbToHex(e,r,n,i){var a=[pad2(Math.round(e).toString(16)),pad2(Math.round(r).toString(16)),pad2(Math.round(n).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 r={r:0,g:0,b:0},n=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)?(r=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),r=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),r=hslToRgb(e.h,i,o),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=boundAlpha(n),{ok:s,format:e.format||l,r:Math.min(255,Math.max(r.r,0)),g:Math.min(255,Math.max(r.g,0)),b:Math.min(255,Math.max(r.b,0)),a:n}}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 r=!1;if(names[e])e=names[e],r=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=matchers.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=matchers.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=matchers.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=matchers.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=matchers.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=matchers.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=matchers.hex8.exec(e),n?{r:parseIntFromHex(n[1]),g:parseIntFromHex(n[2]),b:parseIntFromHex(n[3]),a:convertHexToDecimal(n[4]),format:r?"name":"hex8"}:(n=matchers.hex6.exec(e),n?{r:parseIntFromHex(n[1]),g:parseIntFromHex(n[2]),b:parseIntFromHex(n[3]),format:r?"name":"hex"}:(n=matchers.hex4.exec(e),n?{r:parseIntFromHex(n[1]+n[1]),g:parseIntFromHex(n[2]+n[2]),b:parseIntFromHex(n[3]+n[3]),a:convertHexToDecimal(n[4]+n[4]),format:r?"name":"hex8"}:(n=matchers.hex3.exec(e),n?{r:parseIntFromHex(n[1]+n[1]),g:parseIntFromHex(n[2]+n[2]),b:parseIntFromHex(n[3]+n[3]),format:r?"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 r=e.r,n=e.g,i=e.b,a=rgbToHsv(r,n,i);return{h:a.h*360,s:a.s,v:a.v}}function toHex(e){var r=e.r,n=e.g,i=e.b;return"#".concat(rgbToHex(r,n,i,!1))}function mix(e,r,n){var i=n/100,a={r:(r.r-e.r)*i+e.r,g:(r.g-e.g)*i+e.g,b:(r.b-e.b)*i+e.b};return a}function getHue(e,r,n){var i;return Math.round(e.h)>=60&&Math.round(e.h)<=240?i=n?Math.round(e.h)-hueStep*r:Math.round(e.h)+hueStep*r:i=n?Math.round(e.h)+hueStep*r:Math.round(e.h)-hueStep*r,i<0?i+=360:i>=360&&(i-=360),i}function getSaturation(e,r,n){if(e.h===0&&e.s===0)return e.s;var i;return n?i=e.s-saturationStep*r:r===darkColorCount?i=e.s+saturationStep:i=e.s+saturationStep2*r,i>1&&(i=1),n&&r===lightColorCount&&i>.1&&(i=.1),i<.06&&(i=.06),Number(i.toFixed(2))}function getValue(e,r,n){var i;return n?i=e.v+brightnessStep1*r:i=e.v-brightnessStep2*r,i>1&&(i=1),Number(i.toFixed(2))}function generate$1(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],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)}));n.push(s)}n.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)}));n.push(u)}return r.theme==="dark"?darkColorMap.map(function(h){var x=h.index,f=h.opacity,g=toHex(mix(inputToRGB(r.backgroundColor||"#141414"),inputToRGB(n[x]),f*100));return g}):n}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,r){if(r=r||{},e===void 0)throw new Error(usage);var n=r.prepend===!0?"prepend":"append",i=r.container!==void 0?r.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][n]!==void 0?o=styleElements[a][n]:(o=styleElements[a][n]=createStyleElement(),n==="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 r=1;r<arguments.length;r++){var n=arguments[r]!=null?Object(arguments[r]):{},i=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),i.forEach(function(a){_defineProperty$8(e,a,n[a])})}return e}function _defineProperty$8(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function warn(e,r){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(r))}function warning(e,r){warn(e,"[@ant-design/icons-vue] ".concat(r))}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,r,n){return n?vue.h(e.tag,_objectSpread$8({key:r},n,e.attrs),(e.children||[]).map(function(i,a){return generate(i,"".concat(r,"-").concat(e.tag,"-").concat(a))})):vue.h(e.tag,_objectSpread$8({key:r},e.attrs),(e.children||[]).map(function(i,a){return generate(i,"".concat(r,"-").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,7 +55,7 @@
55
55
  }
56
56
  `,cssInjectedFlag=!1,useInsertStyles=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:iconStyles;vue.nextTick(function(){cssInjectedFlag||(typeof window<"u"&&window.document&&window.document.documentElement&&insertCss(r,{prepend:!0}),cssInjectedFlag=!0)})},_excluded$1=["icon","primaryColor","secondaryColor"];function _objectWithoutProperties$1(e,r){if(e==null)return{};var n=_objectWithoutPropertiesLoose$1(e,r),i,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)i=o[a],!(r.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function _objectWithoutPropertiesLoose$1(e,r){if(e==null)return{};var n={},i=Object.keys(e),a,o;for(o=0;o<i.length;o++)a=i[o],!(r.indexOf(a)>=0)&&(n[a]=e[a]);return n}function _objectSpread$7(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?Object(arguments[r]):{},i=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),i.forEach(function(a){_defineProperty$7(e,a,n[a])})}return e}function _defineProperty$7(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var twoToneColorPalette={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function setTwoToneColors(e){var r=e.primaryColor,n=e.secondaryColor;twoToneColorPalette.primaryColor=r,twoToneColorPalette.secondaryColor=n||getSecondaryColor(r),twoToneColorPalette.calculated=!!n}function getTwoToneColors(){return _objectSpread$7({},twoToneColorPalette)}var IconBase=function(r,n){var i=_objectSpread$7({},r,n.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,r){return _arrayWithHoles$1(e)||_iterableToArrayLimit$1(e,r)||_unsupportedIterableToArray$1(e,r)||_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,r){if(e){if(typeof e=="string")return _arrayLikeToArray$1(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray$1(e,r)}}function _arrayLikeToArray$1(e,r){(r==null||r>e.length)&&(r=e.length);for(var n=0,i=new Array(r);n<r;n++)i[n]=e[n];return i}function _iterableToArrayLimit$1(e,r){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i=[],a=!0,o=!1,s,l;try{for(n=n.call(e);!(a=(s=n.next()).done)&&(i.push(s.value),!(r&&i.length===r));a=!0);}catch(c){o=!0,l=c}finally{try{!a&&n.return!=null&&n.return()}finally{if(o)throw l}}return i}}function _arrayWithHoles$1(e){if(Array.isArray(e))return e}function setTwoToneColor(e){var r=normalizeTwoToneColors(e),n=_slicedToArray$1(r,2),i=n[0],a=n[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,r){return _arrayWithHoles(e)||_iterableToArrayLimit(e,r)||_unsupportedIterableToArray(e,r)||_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,r){if(e){if(typeof e=="string")return _arrayLikeToArray(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(e,r)}}function _arrayLikeToArray(e,r){(r==null||r>e.length)&&(r=e.length);for(var n=0,i=new Array(r);n<r;n++)i[n]=e[n];return i}function _iterableToArrayLimit(e,r){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i=[],a=!0,o=!1,s,l;try{for(n=n.call(e);!(a=(s=n.next()).done)&&(i.push(s.value),!(r&&i.length===r));a=!0);}catch(c){o=!0,l=c}finally{try{!a&&n.return!=null&&n.return()}finally{if(o)throw l}}return i}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _objectSpread$6(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?Object(arguments[r]):{},i=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),i.forEach(function(a){_defineProperty$6(e,a,n[a])})}return e}function _defineProperty$6(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function _objectWithoutProperties(e,r){if(e==null)return{};var n=_objectWithoutPropertiesLoose(e,r),i,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)i=o[a],!(r.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function _objectWithoutPropertiesLoose(e,r){if(e==null)return{};var n={},i=Object.keys(e),a,o;for(o=0;o<i.length;o++)a=i[o],!(r.indexOf(a)>=0)&&(n[a]=e[a]);return n}setTwoToneColor("#1890ff");var Icon$1=function(r,n){var i,a=_objectSpread$6({},r,n.attrs),o=a.class,s=a.icon,l=a.spin,c=a.rotate,u=a.tabindex,h=a.twoToneColor,x=a.onClick,f=_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":"",m=u;m===void 0&&x&&(m=-1,f.tabindex=m);var w=c?{msTransform:"rotate(".concat(c,"deg)"),transform:"rotate(".concat(c,"deg)")}:void 0,b=normalizeTwoToneColors(h),d=_slicedToArray(b,2),p=d[0],y=d[1];return vue.createVNode("span",_objectSpread$6({role:"img","aria-label":s.name},f,{onClick:x,class:g}),[vue.createVNode(VueIcon,{class:v,icon:s,primaryColor:p,secondaryColor:y,style:w},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 r=1;r<arguments.length;r++){var n=arguments[r]!=null?Object(arguments[r]):{},i=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),i.forEach(function(a){_defineProperty$5(e,a,n[a])})}return e}function _defineProperty$5(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var CalendarOutlined=function(r,n){var i=_objectSpread$5({},r,n.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 r=1;r<arguments.length;r++){var n=arguments[r]!=null?Object(arguments[r]):{},i=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),i.forEach(function(a){_defineProperty$4(e,a,n[a])})}return e}function _defineProperty$4(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var CloseCircleFilled=function(r,n){var i=_objectSpread$4({},r,n.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 r=1;r<arguments.length;r++){var n=arguments[r]!=null?Object(arguments[r]):{},i=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),i.forEach(function(a){_defineProperty$3(e,a,n[a])})}return e}function _defineProperty$3(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var CloseOutlined=function(r,n){var i=_objectSpread$3({},r,n.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 r=1;r<arguments.length;r++){var n=arguments[r]!=null?Object(arguments[r]):{},i=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),i.forEach(function(a){_defineProperty$2(e,a,n[a])})}return e}function _defineProperty$2(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var DownOutlined=function(r,n){var i=_objectSpread$2({},r,n.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 r=1;r<arguments.length;r++){var n=arguments[r]!=null?Object(arguments[r]):{},i=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),i.forEach(function(a){_defineProperty$1(e,a,n[a])})}return e}function _defineProperty$1(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var LoadingOutlined=function(r,n){var i=_objectSpread$1({},r,n.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 r=1;r<arguments.length;r++){var n=arguments[r]!=null?Object(arguments[r]):{},i=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),i.forEach(function(a){_defineProperty(e,a,n[a])})}return e}function _defineProperty(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var RightOutlined=function(r,n){var i=_objectSpread({},r,n.attrs);return vue.createVNode(AntdIcon,_objectSpread({},i,{icon:RightOutlinedSvg}),null)};RightOutlined.displayName="RightOutlined",RightOutlined.inheritAttrs=!1;const RightOutlined$1=RightOutlined,_sfc_main$w=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,r)=>{const n=e.__vccOpts||e;for(const[i,a]of r)n[i]=a;return n},_hoisted_1$i={class:"spin-wrapper"};function _sfc_render$B(e,r,n,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$w,[["render",_sfc_render$B]]),_sfc_main$v=vue.defineComponent({name:"Skeleton",props:{loading:{type:Boolean,default:!1}},components:{ASkeleton:antDesignVue.Skeleton}});function _sfc_render$A(e,r,n,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$v,[["render",_sfc_render$A]]);(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(r){console.error("vite-plugin-css-injected-by-js",r)}})();var __defProp=Object.defineProperty,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(e,r,n)=>r in e?__defProp(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,__spreadValues=(e,r)=>{for(var n in r||(r={}))__hasOwnProp.call(r,n)&&__defNormalProp(e,n,r[n]);if(__getOwnPropSymbols)for(var n of __getOwnPropSymbols(r))__propIsEnum.call(r,n)&&__defNormalProp(e,n,r[n]);return e},_export_sfc=(e,r)=>{const n=e.__vccOpts||e;for(const[i,a]of r)n[i]=a;return n};const _sfc_main$u=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:r}){const n=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),h=vue.ref(0),x=vue.ref(0),f=vue.ref(!1),g=vue.ref(!1),v=vue.ref(0),m=vue.ref(null),w=vue.ref("200px"),b=vue.ref(!1),d=vue.ref(null),p=vue.ref(null),y=async()=>{await E(),o.value++},E=async()=>{e.vertical&&(s.value=!0),setInterval(()=>{if(i.value="0%",a.value="0%",d.value!==null&&p.value!==null&&d.value&&p.value)if(e.vertical&&"clientHeight"in d.value&&"clientHeight"in p.value){x.value=d.value.clientHeight,h.value=p.value.clientHeight;const T=Math.ceil(h.value/x.value);return n.value=isFinite(T)?T:0,s.value=!1,n.value}else if(!e.vertical&&"clientWidth"in d.value&&"clientWidth"in p.value){if(u.value=d.value.clientWidth,c.value=p.value.clientWidth,e.animateOnOverflowOnly)return u.value<c.value?(l.value=!0,r("onOverflowDetected")):(l.value=!1,r("onOverflowCleared")),0;const T=Math.ceil(c.value/u.value);return n.value=isFinite(T)?T:0,n.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,(T,I)=>{T!==I&&r(T?"onResume":"onPause")});const _=()=>{e.pauseOnHover&&(r("onPause"),f.value=!0)},P=()=>{e.pauseOnHover&&(r("onResume"),f.value=!1)},A=()=>{e.pauseOnClick&&(r("onPause"),g.value=!0)},R=()=>{e.pauseOnClick&&(r("onResume"),g.value=!1)},M=vue.computed(()=>e.pause||e.vertical&&s.value||e.animateOnOverflowOnly&&l.value?"paused":"running"),B=vue.computed(()=>e.pauseOnHover&&(f.value||g.value)||!e.pauseOnHover&&M.value==="paused"?"paused":"running"),O=vue.computed(()=>e.pauseOnHover&&f.value||e.pauseOnClick&&g.value||!e.pauseOnHover&&M.value==="paused"?"paused":"running"),V=vue.computed(()=>{const T={"--duration":`${e.duration}s`,"--delay":`${e.delay}s`,"--direction":`${e.direction}`,"--pauseOnHover":`${B.value}`,"--pauseOnClick":`${O.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":`${w.value}`,"--min-width":`${i.value}`,"--min-height":`${a.value}`},I={"--orientation":"scrollX",orientation:"horizontal"};return e.vertical&&(I["--orientation"]="scrollY"),__spreadValues(__spreadValues({},T),I)}),q=vue.computed(()=>!!e.gradient),N=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."),w.value=e.gradientWidth):e.gradientLength&&(w.value=e.gradientLength)),(e.clone||e.animateOnOverflowOnly)&&(await E(),y()),b.value=!0};return vue.onMounted(async()=>{N(),m.value=setInterval(()=>{v.value++,e.loop!==0&&v.value===e.loop&&(r("onComplete"),clearInterval(m.value)),r("onLoopComplete")},e.duration*1e3)}),vue.onBeforeUnmount(()=>{clearInterval(m.value)}),{ready:b,contentWidth:u,containerWidth:c,contentHeight:x,containerHeight:h,loopCounter:v,loopInterval:m,mouseOverMarquee:f,mouseDownMarquee:g,minWidth:i,minHeight:a,animateOnOverflowPause:l,marqueeContent:d,marqueeOverlayContainer:p,componentKey:o,showGradient:q,cloneAmount:n,ForcesUpdate:y,checkForClone:E,setupMarquee:N,getCurrentStyle:V,hoverStarted:_,hoverEnded:P,mouseDown:A,mouseUp:R}}}),_hoisted_1$h={class:"transparent-overlay",ref:"marqueeOverlayContainer","aria-hidden":!0},_hoisted_2$6={class:"marquee",ref:"marqueeContent"},_hoisted_3$3={key:1,"aria-hidden":!0,class:"marquee"};function _sfc_render$z(e,r,n,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:r[0]||(r[0]=(...s)=>e.hoverStarted&&e.hoverStarted(...s)),onMouseleave:r[1]||(r[1]=(...s)=>e.hoverEnded&&e.hoverEnded(...s)),onMousedown:r[2]||(r[2]=(...s)=>e.mouseDown&&e.mouseDown(...s)),onMouseup:r[3]||(r[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$6,[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$u,[["render",_sfc_render$z]]);const _sfc_main$t=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$y(e,r,n,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$t,[["render",_sfc_render$y]]);process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const withInstall$1=(e,r)=>{if(e.install=n=>{for(const i of[e,...Object.values(r??{})])n.component(i.name,i)},r)for(const[n,i]of Object.entries(r))e[n]=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:"{}"},transformToComponentProps=e=>{const r={};if(typeof e=="object"&&e!=null)for(const n in e){const i=e[n];r[n]={type:i==null?void 0:i.constructor,default:i}}return r},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),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,r=[])=>{const n=lodashEs.without(styleList,...r);return vue.computed(()=>lodashEs.pick(e,n))},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=((we=window==null?void 0:window.config)==null?void 0:we.indicatorURL)||"";(We=window==null?void 0:window.config)!=null&&We.uploadPath;const BASE_URL=((Ze=window==null?void 0:window.config)==null?void 0:Ze.routerBaseURL)||"./",ERD_URL=((Xe=window==null?void 0:window.config)==null?void 0:Xe.erdURL)||"",MODEL_KEY_LIST=["table","bar","combograph","line","pie","radar","scatter","list","circulate"],useOnEvent=(e,r)=>{vue.watch(()=>e.id,n=>{const i=vue.inject(EVENT_BUS,{onEvent:(a,o)=>{}});n!=null&&n!==""&&i.onEvent(n,r)},{immediate:!0})},useEmitEvent=e=>{const r=e.events,n=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;r.forEach(u=>{if(o===u.on)try{a.value=n,l?c(u.target,u.emit,l):c(u.target,u.emit)}catch(h){console.error(h)}})}},useTransformChartDataByAttrValue=(e,r)=>{let{name:n="name",value:i="value",type:a="type"}=r||{};n=n==null?void 0:n.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 h=e[u],x=h[n]||"",f=h[i]||"",g=h[a]||"";if(o.has(g)){const v=o.get(g);v.push({name:x,value:f,...h}),o.set(g,v)}else o.set(g,[{name:x,value:f,...h}])}const l=[],c=[];for(const[u,h]of o)if(c.push({name:u,data:h}),h!=null&&h.length)if(l.length)for(const x of h)l.includes(x.name)||l.push(x.name);else l.push(...h.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 r=e.default;if(typeof r=="function"){var n=function i(){return this instanceof i?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};n.prototype=r.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var a=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(n,i,a.get?a:{enumerable:!0,get:function(){return e[i]}})}),n}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,r){(function(n,i){e.exports=i()})(commonjsGlobal,function(){var n=n||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(p){var y;return d.prototype=p,y=new d,d.prototype=null,y}}(),c={},u=c.lib={},h=u.Base=function(){return{extend:function(d){var p=l(this);return d&&p.mixIn(d),(!p.hasOwnProperty("init")||this.init===p.init)&&(p.init=function(){p.$super.init.apply(this,arguments)}),p.init.prototype=p,p.$super=this,p},create:function(){var d=this.extend();return d.init.apply(d,arguments),d},init:function(){},mixIn:function(d){for(var p in d)d.hasOwnProperty(p)&&(this[p]=d[p]);d.hasOwnProperty("toString")&&(this.toString=d.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),x=u.WordArray=h.extend({init:function(d,p){d=this.words=d||[],p!=a?this.sigBytes=p:this.sigBytes=d.length*4},toString:function(d){return(d||g).stringify(this)},concat:function(d){var p=this.words,y=d.words,E=this.sigBytes,_=d.sigBytes;if(this.clamp(),E%4)for(var P=0;P<_;P++){var A=y[P>>>2]>>>24-P%4*8&255;p[E+P>>>2]|=A<<24-(E+P)%4*8}else for(var R=0;R<_;R+=4)p[E+R>>>2]=y[R>>>2];return this.sigBytes+=_,this},clamp:function(){var d=this.words,p=this.sigBytes;d[p>>>2]&=4294967295<<32-p%4*8,d.length=i.ceil(p/4)},clone:function(){var d=h.clone.call(this);return d.words=this.words.slice(0),d},random:function(d){for(var p=[],y=0;y<d;y+=4)p.push(s());return new x.init(p,d)}}),f=c.enc={},g=f.Hex={stringify:function(d){for(var p=d.words,y=d.sigBytes,E=[],_=0;_<y;_++){var P=p[_>>>2]>>>24-_%4*8&255;E.push((P>>>4).toString(16)),E.push((P&15).toString(16))}return E.join("")},parse:function(d){for(var p=d.length,y=[],E=0;E<p;E+=2)y[E>>>3]|=parseInt(d.substr(E,2),16)<<24-E%8*4;return new x.init(y,p/2)}},v=f.Latin1={stringify:function(d){for(var p=d.words,y=d.sigBytes,E=[],_=0;_<y;_++){var P=p[_>>>2]>>>24-_%4*8&255;E.push(String.fromCharCode(P))}return E.join("")},parse:function(d){for(var p=d.length,y=[],E=0;E<p;E++)y[E>>>2]|=(d.charCodeAt(E)&255)<<24-E%4*8;return new x.init(y,p)}},m=f.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)))}},w=u.BufferedBlockAlgorithm=h.extend({reset:function(){this._data=new x.init,this._nDataBytes=0},_append:function(d){typeof d=="string"&&(d=m.parse(d)),this._data.concat(d),this._nDataBytes+=d.sigBytes},_process:function(d){var p,y=this._data,E=y.words,_=y.sigBytes,P=this.blockSize,A=P*4,R=_/A;d?R=i.ceil(R):R=i.max((R|0)-this._minBufferSize,0);var M=R*P,B=i.min(M*4,_);if(M){for(var O=0;O<M;O+=P)this._doProcessBlock(E,O);p=E.splice(0,M),y.sigBytes-=B}return new x.init(p,B)},clone:function(){var d=h.clone.call(this);return d._data=this._data.clone(),d},_minBufferSize:0});u.Hasher=w.extend({cfg:h.extend(),init:function(d){this.cfg=this.cfg.extend(d),this.reset()},reset:function(){w.reset.call(this),this._doReset()},update:function(d){return this._append(d),this._process(),this},finalize:function(d){d&&this._append(d);var p=this._doFinalize();return p},blockSize:16,_createHelper:function(d){return function(p,y){return new d.init(y).finalize(p)}},_createHmacHelper:function(d){return function(p,y){return new b.HMAC.init(d,y).finalize(p)}}});var b=c.algo={};return c}(Math);return n})}(core)),core.exports}var x64Core={exports:{}},hasRequiredX64Core;function requireX64Core(){return hasRequiredX64Core||(hasRequiredX64Core=1,function(e,r){(function(n,i){e.exports=i(requireCore())})(commonjsGlobal,function(n){return function(i){var a=n,o=a.lib,s=o.Base,l=o.WordArray,c=a.x64={};c.Word=s.extend({init:function(u,h){this.high=u,this.low=h}}),c.WordArray=s.extend({init:function(u,h){u=this.words=u||[],h!=i?this.sigBytes=h:this.sigBytes=u.length*8},toX32:function(){for(var u=this.words,h=u.length,x=[],f=0;f<h;f++){var g=u[f];x.push(g.high),x.push(g.low)}return l.create(x,this.sigBytes)},clone:function(){for(var u=s.clone.call(this),h=u.words=this.words.slice(0),x=h.length,f=0;f<x;f++)h[f]=h[f].clone();return u}})}(),n})}(x64Core)),x64Core.exports}var libTypedarrays={exports:{}},hasRequiredLibTypedarrays;function requireLibTypedarrays(){return hasRequiredLibTypedarrays||(hasRequiredLibTypedarrays=1,function(e,r){(function(n,i){e.exports=i(requireCore())})(commonjsGlobal,function(n){return function(){if(typeof ArrayBuffer=="function"){var i=n,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,h=[],x=0;x<u;x++)h[x>>>2]|=c[x]<<24-x%4*8;s.call(this,h,u)}else s.apply(this,arguments)};l.prototype=o}}(),n.lib.WordArray})}(libTypedarrays)),libTypedarrays.exports}var encUtf16={exports:{}},hasRequiredEncUtf16;function requireEncUtf16(){return hasRequiredEncUtf16||(hasRequiredEncUtf16=1,function(e,r){(function(n,i){e.exports=i(requireCore())})(commonjsGlobal,function(n){return function(){var i=n,a=i.lib,o=a.WordArray,s=i.enc;s.Utf16=s.Utf16BE={stringify:function(c){for(var u=c.words,h=c.sigBytes,x=[],f=0;f<h;f+=2){var g=u[f>>>2]>>>16-f%4*8&65535;x.push(String.fromCharCode(g))}return x.join("")},parse:function(c){for(var u=c.length,h=[],x=0;x<u;x++)h[x>>>1]|=c.charCodeAt(x)<<16-x%2*16;return o.create(h,u*2)}},s.Utf16LE={stringify:function(c){for(var u=c.words,h=c.sigBytes,x=[],f=0;f<h;f+=2){var g=l(u[f>>>2]>>>16-f%4*8&65535);x.push(String.fromCharCode(g))}return x.join("")},parse:function(c){for(var u=c.length,h=[],x=0;x<u;x++)h[x>>>1]|=l(c.charCodeAt(x)<<16-x%2*16);return o.create(h,u*2)}};function l(c){return c<<8&4278255360|c>>>8&16711935}}(),n.enc.Utf16})}(encUtf16)),encUtf16.exports}var encBase64={exports:{}},hasRequiredEncBase64;function requireEncBase64(){return hasRequiredEncBase64||(hasRequiredEncBase64=1,function(e,r){(function(n,i){e.exports=i(requireCore())})(commonjsGlobal,function(n){return function(){var i=n,a=i.lib,o=a.WordArray,s=i.enc;s.Base64={stringify:function(c){var u=c.words,h=c.sigBytes,x=this._map;c.clamp();for(var f=[],g=0;g<h;g+=3)for(var v=u[g>>>2]>>>24-g%4*8&255,m=u[g+1>>>2]>>>24-(g+1)%4*8&255,w=u[g+2>>>2]>>>24-(g+2)%4*8&255,b=v<<16|m<<8|w,d=0;d<4&&g+d*.75<h;d++)f.push(x.charAt(b>>>6*(3-d)&63));var p=x.charAt(64);if(p)for(;f.length%4;)f.push(p);return f.join("")},parse:function(c){var u=c.length,h=this._map,x=this._reverseMap;if(!x){x=this._reverseMap=[];for(var f=0;f<h.length;f++)x[h.charCodeAt(f)]=f}var g=h.charAt(64);if(g){var v=c.indexOf(g);v!==-1&&(u=v)}return l(c,u,x)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function l(c,u,h){for(var x=[],f=0,g=0;g<u;g++)if(g%4){var v=h[c.charCodeAt(g-1)]<<g%4*2,m=h[c.charCodeAt(g)]>>>6-g%4*2,w=v|m;x[f>>>2]|=w<<24-f%4*8,f++}return o.create(x,f)}}(),n.enc.Base64})}(encBase64)),encBase64.exports}var encBase64url={exports:{}},hasRequiredEncBase64url;function requireEncBase64url(){return hasRequiredEncBase64url||(hasRequiredEncBase64url=1,function(e,r){(function(n,i){e.exports=i(requireCore())})(commonjsGlobal,function(n){return function(){var i=n,a=i.lib,o=a.WordArray,s=i.enc;s.Base64url={stringify:function(c,u=!0){var h=c.words,x=c.sigBytes,f=u?this._safe_map:this._map;c.clamp();for(var g=[],v=0;v<x;v+=3)for(var m=h[v>>>2]>>>24-v%4*8&255,w=h[v+1>>>2]>>>24-(v+1)%4*8&255,b=h[v+2>>>2]>>>24-(v+2)%4*8&255,d=m<<16|w<<8|b,p=0;p<4&&v+p*.75<x;p++)g.push(f.charAt(d>>>6*(3-p)&63));var y=f.charAt(64);if(y)for(;g.length%4;)g.push(y);return g.join("")},parse:function(c,u=!0){var h=c.length,x=u?this._safe_map:this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var g=0;g<x.length;g++)f[x.charCodeAt(g)]=g}var v=x.charAt(64);if(v){var m=c.indexOf(v);m!==-1&&(h=m)}return l(c,h,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function l(c,u,h){for(var x=[],f=0,g=0;g<u;g++)if(g%4){var v=h[c.charCodeAt(g-1)]<<g%4*2,m=h[c.charCodeAt(g)]>>>6-g%4*2,w=v|m;x[f>>>2]|=w<<24-f%4*8,f++}return o.create(x,f)}}(),n.enc.Base64url})}(encBase64url)),encBase64url.exports}var md5={exports:{}},hasRequiredMd5;function requireMd5(){return hasRequiredMd5||(hasRequiredMd5=1,function(e,r){(function(n,i){e.exports=i(requireCore())})(commonjsGlobal,function(n){return function(i){var a=n,o=a.lib,s=o.WordArray,l=o.Hasher,c=a.algo,u=[];(function(){for(var m=0;m<64;m++)u[m]=i.abs(i.sin(m+1))*4294967296|0})();var h=c.MD5=l.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(m,w){for(var b=0;b<16;b++){var d=w+b,p=m[d];m[d]=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360}var y=this._hash.words,E=m[w+0],_=m[w+1],P=m[w+2],A=m[w+3],R=m[w+4],M=m[w+5],B=m[w+6],O=m[w+7],V=m[w+8],q=m[w+9],N=m[w+10],T=m[w+11],I=m[w+12],S=m[w+13],C=m[w+14],D=m[w+15],k=y[0],F=y[1],$=y[2],G=y[3];k=x(k,F,$,G,E,7,u[0]),G=x(G,k,F,$,_,12,u[1]),$=x($,G,k,F,P,17,u[2]),F=x(F,$,G,k,A,22,u[3]),k=x(k,F,$,G,R,7,u[4]),G=x(G,k,F,$,M,12,u[5]),$=x($,G,k,F,B,17,u[6]),F=x(F,$,G,k,O,22,u[7]),k=x(k,F,$,G,V,7,u[8]),G=x(G,k,F,$,q,12,u[9]),$=x($,G,k,F,N,17,u[10]),F=x(F,$,G,k,T,22,u[11]),k=x(k,F,$,G,I,7,u[12]),G=x(G,k,F,$,S,12,u[13]),$=x($,G,k,F,C,17,u[14]),F=x(F,$,G,k,D,22,u[15]),k=f(k,F,$,G,_,5,u[16]),G=f(G,k,F,$,B,9,u[17]),$=f($,G,k,F,T,14,u[18]),F=f(F,$,G,k,E,20,u[19]),k=f(k,F,$,G,M,5,u[20]),G=f(G,k,F,$,N,9,u[21]),$=f($,G,k,F,D,14,u[22]),F=f(F,$,G,k,R,20,u[23]),k=f(k,F,$,G,q,5,u[24]),G=f(G,k,F,$,C,9,u[25]),$=f($,G,k,F,A,14,u[26]),F=f(F,$,G,k,V,20,u[27]),k=f(k,F,$,G,S,5,u[28]),G=f(G,k,F,$,P,9,u[29]),$=f($,G,k,F,O,14,u[30]),F=f(F,$,G,k,I,20,u[31]),k=g(k,F,$,G,M,4,u[32]),G=g(G,k,F,$,V,11,u[33]),$=g($,G,k,F,T,16,u[34]),F=g(F,$,G,k,C,23,u[35]),k=g(k,F,$,G,_,4,u[36]),G=g(G,k,F,$,R,11,u[37]),$=g($,G,k,F,O,16,u[38]),F=g(F,$,G,k,N,23,u[39]),k=g(k,F,$,G,S,4,u[40]),G=g(G,k,F,$,E,11,u[41]),$=g($,G,k,F,A,16,u[42]),F=g(F,$,G,k,B,23,u[43]),k=g(k,F,$,G,q,4,u[44]),G=g(G,k,F,$,I,11,u[45]),$=g($,G,k,F,D,16,u[46]),F=g(F,$,G,k,P,23,u[47]),k=v(k,F,$,G,E,6,u[48]),G=v(G,k,F,$,O,10,u[49]),$=v($,G,k,F,C,15,u[50]),F=v(F,$,G,k,M,21,u[51]),k=v(k,F,$,G,I,6,u[52]),G=v(G,k,F,$,A,10,u[53]),$=v($,G,k,F,N,15,u[54]),F=v(F,$,G,k,_,21,u[55]),k=v(k,F,$,G,V,6,u[56]),G=v(G,k,F,$,D,10,u[57]),$=v($,G,k,F,B,15,u[58]),F=v(F,$,G,k,S,21,u[59]),k=v(k,F,$,G,R,6,u[60]),G=v(G,k,F,$,T,10,u[61]),$=v($,G,k,F,P,15,u[62]),F=v(F,$,G,k,q,21,u[63]),y[0]=y[0]+k|0,y[1]=y[1]+F|0,y[2]=y[2]+$|0,y[3]=y[3]+G|0},_doFinalize:function(){var m=this._data,w=m.words,b=this._nDataBytes*8,d=m.sigBytes*8;w[d>>>5]|=128<<24-d%32;var p=i.floor(b/4294967296),y=b;w[(d+64>>>9<<4)+15]=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,w[(d+64>>>9<<4)+14]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,m.sigBytes=(w.length+1)*4,this._process();for(var E=this._hash,_=E.words,P=0;P<4;P++){var A=_[P];_[P]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360}return E},clone:function(){var m=l.clone.call(this);return m._hash=this._hash.clone(),m}});function x(m,w,b,d,p,y,E){var _=m+(w&b|~w&d)+p+E;return(_<<y|_>>>32-y)+w}function f(m,w,b,d,p,y,E){var _=m+(w&d|b&~d)+p+E;return(_<<y|_>>>32-y)+w}function g(m,w,b,d,p,y,E){var _=m+(w^b^d)+p+E;return(_<<y|_>>>32-y)+w}function v(m,w,b,d,p,y,E){var _=m+(b^(w|~d))+p+E;return(_<<y|_>>>32-y)+w}a.MD5=l._createHelper(h),a.HmacMD5=l._createHmacHelper(h)}(Math),n.MD5})}(md5)),md5.exports}var sha1={exports:{}},hasRequiredSha1;function requireSha1(){return hasRequiredSha1||(hasRequiredSha1=1,function(e,r){(function(n,i){e.exports=i(requireCore())})(commonjsGlobal,function(n){return function(){var i=n,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(h,x){for(var f=this._hash.words,g=f[0],v=f[1],m=f[2],w=f[3],b=f[4],d=0;d<80;d++){if(d<16)c[d]=h[x+d]|0;else{var p=c[d-3]^c[d-8]^c[d-14]^c[d-16];c[d]=p<<1|p>>>31}var y=(g<<5|g>>>27)+b+c[d];d<20?y+=(v&m|~v&w)+1518500249:d<40?y+=(v^m^w)+1859775393:d<60?y+=(v&m|v&w|m&w)-1894007588:y+=(v^m^w)-899497514,b=w,w=m,m=v<<30|v>>>2,v=g,g=y}f[0]=f[0]+g|0,f[1]=f[1]+v|0,f[2]=f[2]+m|0,f[3]=f[3]+w|0,f[4]=f[4]+b|0},_doFinalize:function(){var h=this._data,x=h.words,f=this._nDataBytes*8,g=h.sigBytes*8;return x[g>>>5]|=128<<24-g%32,x[(g+64>>>9<<4)+14]=Math.floor(f/4294967296),x[(g+64>>>9<<4)+15]=f,h.sigBytes=x.length*4,this._process(),this._hash},clone:function(){var h=s.clone.call(this);return h._hash=this._hash.clone(),h}});i.SHA1=s._createHelper(u),i.HmacSHA1=s._createHmacHelper(u)}(),n.SHA1})}(sha1)),sha1.exports}var sha256={exports:{}},hasRequiredSha256;function requireSha256(){return hasRequiredSha256||(hasRequiredSha256=1,function(e,r){(function(n,i){e.exports=i(requireCore())})(commonjsGlobal,function(n){return function(i){var a=n,o=a.lib,s=o.WordArray,l=o.Hasher,c=a.algo,u=[],h=[];(function(){function g(b){for(var d=i.sqrt(b),p=2;p<=d;p++)if(!(b%p))return!1;return!0}function v(b){return(b-(b|0))*4294967296|0}for(var m=2,w=0;w<64;)g(m)&&(w<8&&(u[w]=v(i.pow(m,1/2))),h[w]=v(i.pow(m,1/3)),w++),m++})();var x=[],f=c.SHA256=l.extend({_doReset:function(){this._hash=new s.init(u.slice(0))},_doProcessBlock:function(g,v){for(var m=this._hash.words,w=m[0],b=m[1],d=m[2],p=m[3],y=m[4],E=m[5],_=m[6],P=m[7],A=0;A<64;A++){if(A<16)x[A]=g[v+A]|0;else{var R=x[A-15],M=(R<<25|R>>>7)^(R<<14|R>>>18)^R>>>3,B=x[A-2],O=(B<<15|B>>>17)^(B<<13|B>>>19)^B>>>10;x[A]=M+x[A-7]+O+x[A-16]}var V=y&E^~y&_,q=w&b^w&d^b&d,N=(w<<30|w>>>2)^(w<<19|w>>>13)^(w<<10|w>>>22),T=(y<<26|y>>>6)^(y<<21|y>>>11)^(y<<7|y>>>25),I=P+T+V+h[A]+x[A],S=N+q;P=_,_=E,E=y,y=p+I|0,p=d,d=b,b=w,w=I+S|0}m[0]=m[0]+w|0,m[1]=m[1]+b|0,m[2]=m[2]+d|0,m[3]=m[3]+p|0,m[4]=m[4]+y|0,m[5]=m[5]+E|0,m[6]=m[6]+_|0,m[7]=m[7]+P|0},_doFinalize:function(){var g=this._data,v=g.words,m=this._nDataBytes*8,w=g.sigBytes*8;return v[w>>>5]|=128<<24-w%32,v[(w+64>>>9<<4)+14]=i.floor(m/4294967296),v[(w+64>>>9<<4)+15]=m,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(f),a.HmacSHA256=l._createHmacHelper(f)}(Math),n.SHA256})}(sha256)),sha256.exports}var sha224={exports:{}},hasRequiredSha224;function requireSha224(){return hasRequiredSha224||(hasRequiredSha224=1,function(e,r){(function(n,i,a){e.exports=i(requireCore(),requireSha256())})(commonjsGlobal,function(n){return function(){var i=n,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)}(),n.SHA224})}(sha224)),sha224.exports}var sha512={exports:{}},hasRequiredSha512;function requireSha512(){return hasRequiredSha512||(hasRequiredSha512=1,function(e,r){(function(n,i,a){e.exports=i(requireCore(),requireX64Core())})(commonjsGlobal,function(n){return function(){var i=n,a=i.lib,o=a.Hasher,s=i.x64,l=s.Word,c=s.WordArray,u=i.algo;function h(){return l.create.apply(l,arguments)}var x=[h(1116352408,3609767458),h(1899447441,602891725),h(3049323471,3964484399),h(3921009573,2173295548),h(961987163,4081628472),h(1508970993,3053834265),h(2453635748,2937671579),h(2870763221,3664609560),h(3624381080,2734883394),h(310598401,1164996542),h(607225278,1323610764),h(1426881987,3590304994),h(1925078388,4068182383),h(2162078206,991336113),h(2614888103,633803317),h(3248222580,3479774868),h(3835390401,2666613458),h(4022224774,944711139),h(264347078,2341262773),h(604807628,2007800933),h(770255983,1495990901),h(1249150122,1856431235),h(1555081692,3175218132),h(1996064986,2198950837),h(2554220882,3999719339),h(2821834349,766784016),h(2952996808,2566594879),h(3210313671,3203337956),h(3336571891,1034457026),h(3584528711,2466948901),h(113926993,3758326383),h(338241895,168717936),h(666307205,1188179964),h(773529912,1546045734),h(1294757372,1522805485),h(1396182291,2643833823),h(1695183700,2343527390),h(1986661051,1014477480),h(2177026350,1206759142),h(2456956037,344077627),h(2730485921,1290863460),h(2820302411,3158454273),h(3259730800,3505952657),h(3345764771,106217008),h(3516065817,3606008344),h(3600352804,1432725776),h(4094571909,1467031594),h(275423344,851169720),h(430227734,3100823752),h(506948616,1363258195),h(659060556,3750685593),h(883997877,3785050280),h(958139571,3318307427),h(1322822218,3812723403),h(1537002063,2003034995),h(1747873779,3602036899),h(1955562222,1575990012),h(2024104815,1125592928),h(2227730452,2716904306),h(2361852424,442776044),h(2428436474,593698344),h(2756734187,3733110249),h(3204031479,2999351573),h(3329325298,3815920427),h(3391569614,3928383900),h(3515267271,566280711),h(3940187606,3454069534),h(4118630271,4000239992),h(116418474,1914138554),h(174292421,2731055270),h(289380356,3203993006),h(460393269,320620315),h(685471733,587496836),h(852142971,1086792851),h(1017036298,365543100),h(1126000580,2618297676),h(1288033470,3409855158),h(1501505948,4234509866),h(1607167915,987167468),h(1816402316,1246189591)],f=[];(function(){for(var v=0;v<80;v++)f[v]=h()})();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,m){for(var w=this._hash.words,b=w[0],d=w[1],p=w[2],y=w[3],E=w[4],_=w[5],P=w[6],A=w[7],R=b.high,M=b.low,B=d.high,O=d.low,V=p.high,q=p.low,N=y.high,T=y.low,I=E.high,S=E.low,C=_.high,D=_.low,k=P.high,F=P.low,$=A.high,G=A.low,j=R,U=M,H=B,L=O,K=V,Y=q,Q=N,J=T,Z=I,W=S,ee=C,re=D,ie=k,ae=F,le=$,fe=G,he=0;he<80;he++){var ge,be,Ee=f[he];if(he<16)be=Ee.high=v[m+he*2]|0,ge=Ee.low=v[m+he*2+1]|0;else{var ke=f[he-15],Ce=ke.high,Te=ke.low,de=(Ce>>>1|Te<<31)^(Ce>>>8|Te<<24)^Ce>>>7,me=(Te>>>1|Ce<<31)^(Te>>>8|Ce<<24)^(Te>>>7|Ce<<25),pe=f[he-2],Ae=pe.high,_e=pe.low,Ve=(Ae>>>19|_e<<13)^(Ae<<3|_e>>>29)^Ae>>>6,De=(_e>>>19|Ae<<13)^(_e<<3|Ae>>>29)^(_e>>>6|Ae<<26),ze=f[he-7],$e=ze.high,Me=ze.low,Ge=f[he-16],Fe=Ge.high,Pe=Ge.low;ge=me+Me,be=de+$e+(ge>>>0<me>>>0?1:0),ge=ge+De,be=be+Ve+(ge>>>0<De>>>0?1:0),ge=ge+Pe,be=be+Fe+(ge>>>0<Pe>>>0?1:0),Ee.high=be,Ee.low=ge}var Re=Z&ee^~Z&ie,Ie=W&re^~W&ae,Oe=j&H^j&K^H&K,Ne=U&L^U&Y^L&Y,qe=(j>>>28|U<<4)^(j<<30|U>>>2)^(j<<25|U>>>7),He=(U>>>28|j<<4)^(U<<30|j>>>2)^(U<<25|j>>>7),X=(Z>>>14|W<<18)^(Z>>>18|W<<14)^(Z<<23|W>>>9),te=(W>>>14|Z<<18)^(W>>>18|Z<<14)^(W<<23|Z>>>9),ne=x[he],ce=ne.high,ue=ne.low,se=fe+te,oe=le+X+(se>>>0<fe>>>0?1:0),se=se+Ie,oe=oe+Re+(se>>>0<Ie>>>0?1:0),se=se+ue,oe=oe+ce+(se>>>0<ue>>>0?1:0),se=se+ge,oe=oe+be+(se>>>0<ge>>>0?1:0),ve=He+Ne,ye=qe+Oe+(ve>>>0<He>>>0?1:0);le=ie,fe=ae,ie=ee,ae=re,ee=Z,re=W,W=J+se|0,Z=Q+oe+(W>>>0<J>>>0?1:0)|0,Q=K,J=Y,K=H,Y=L,H=j,L=U,U=se+ve|0,j=oe+ye+(U>>>0<se>>>0?1:0)|0}M=b.low=M+U,b.high=R+j+(M>>>0<U>>>0?1:0),O=d.low=O+L,d.high=B+H+(O>>>0<L>>>0?1:0),q=p.low=q+Y,p.high=V+K+(q>>>0<Y>>>0?1:0),T=y.low=T+J,y.high=N+Q+(T>>>0<J>>>0?1:0),S=E.low=S+W,E.high=I+Z+(S>>>0<W>>>0?1:0),D=_.low=D+re,_.high=C+ee+(D>>>0<re>>>0?1:0),F=P.low=F+ae,P.high=k+ie+(F>>>0<ae>>>0?1:0),G=A.low=G+fe,A.high=$+le+(G>>>0<fe>>>0?1:0)},_doFinalize:function(){var v=this._data,m=v.words,w=this._nDataBytes*8,b=v.sigBytes*8;m[b>>>5]|=128<<24-b%32,m[(b+128>>>10<<5)+30]=Math.floor(w/4294967296),m[(b+128>>>10<<5)+31]=w,v.sigBytes=m.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)}(),n.SHA512})}(sha512)),sha512.exports}var sha384={exports:{}},hasRequiredSha384;function requireSha384(){return hasRequiredSha384||(hasRequiredSha384=1,function(e,r){(function(n,i,a){e.exports=i(requireCore(),requireX64Core(),requireSha512())})(commonjsGlobal,function(n){return function(){var i=n,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 h=c._doFinalize.call(this);return h.sigBytes-=16,h}});i.SHA384=c._createHelper(u),i.HmacSHA384=c._createHmacHelper(u)}(),n.SHA384})}(sha384)),sha384.exports}var sha3={exports:{}},hasRequiredSha3;function requireSha3(){return hasRequiredSha3||(hasRequiredSha3=1,function(e,r){(function(n,i,a){e.exports=i(requireCore(),requireX64Core())})(commonjsGlobal,function(n){return function(i){var a=n,o=a.lib,s=o.WordArray,l=o.Hasher,c=a.x64,u=c.Word,h=a.algo,x=[],f=[],g=[];(function(){for(var w=1,b=0,d=0;d<24;d++){x[w+5*b]=(d+1)*(d+2)/2%64;var p=b%5,y=(2*w+3*b)%5;w=p,b=y}for(var w=0;w<5;w++)for(var b=0;b<5;b++)f[w+5*b]=b+(2*w+3*b)%5*5;for(var E=1,_=0;_<24;_++){for(var P=0,A=0,R=0;R<7;R++){if(E&1){var M=(1<<R)-1;M<32?A^=1<<M:P^=1<<M-32}E&128?E=E<<1^113:E<<=1}g[_]=u.create(P,A)}})();var v=[];(function(){for(var w=0;w<25;w++)v[w]=u.create()})();var m=h.SHA3=l.extend({cfg:l.cfg.extend({outputLength:512}),_doReset:function(){for(var w=this._state=[],b=0;b<25;b++)w[b]=new u.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(w,b){for(var d=this._state,p=this.blockSize/2,y=0;y<p;y++){var E=w[b+2*y],_=w[b+2*y+1];E=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,_=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360;var P=d[y];P.high^=_,P.low^=E}for(var A=0;A<24;A++){for(var R=0;R<5;R++){for(var M=0,B=0,O=0;O<5;O++){var P=d[R+5*O];M^=P.high,B^=P.low}var V=v[R];V.high=M,V.low=B}for(var R=0;R<5;R++)for(var q=v[(R+4)%5],N=v[(R+1)%5],T=N.high,I=N.low,M=q.high^(T<<1|I>>>31),B=q.low^(I<<1|T>>>31),O=0;O<5;O++){var P=d[R+5*O];P.high^=M,P.low^=B}for(var S=1;S<25;S++){var M,B,P=d[S],C=P.high,D=P.low,k=x[S];k<32?(M=C<<k|D>>>32-k,B=D<<k|C>>>32-k):(M=D<<k-32|C>>>64-k,B=C<<k-32|D>>>64-k);var F=v[f[S]];F.high=M,F.low=B}var $=v[0],G=d[0];$.high=G.high,$.low=G.low;for(var R=0;R<5;R++)for(var O=0;O<5;O++){var S=R+5*O,P=d[S],j=v[S],U=v[(R+1)%5+5*O],H=v[(R+2)%5+5*O];P.high=j.high^~U.high&H.high,P.low=j.low^~U.low&H.low}var P=d[0],L=g[A];P.high^=L.high,P.low^=L.low}},_doFinalize:function(){var w=this._data,b=w.words;this._nDataBytes*8;var d=w.sigBytes*8,p=this.blockSize*32;b[d>>>5]|=1<<24-d%32,b[(i.ceil((d+1)/p)*p>>>5)-1]|=128,w.sigBytes=b.length*4,this._process();for(var y=this._state,E=this.cfg.outputLength/8,_=E/8,P=[],A=0;A<_;A++){var R=y[A],M=R.high,B=R.low;M=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360,B=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,P.push(B),P.push(M)}return new s.init(P,E)},clone:function(){for(var w=l.clone.call(this),b=w._state=this._state.slice(0),d=0;d<25;d++)b[d]=b[d].clone();return w}});a.SHA3=l._createHelper(m),a.HmacSHA3=l._createHmacHelper(m)}(Math),n.SHA3})}(sha3)),sha3.exports}var ripemd160={exports:{}},hasRequiredRipemd160;function requireRipemd160(){return hasRequiredRipemd160||(hasRequiredRipemd160=1,function(e,r){(function(n,i){e.exports=i(requireCore())})(commonjsGlobal,function(n){/** @preserve
58
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray(e,r){if(e){if(typeof e=="string")return _arrayLikeToArray(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(e,r)}}function _arrayLikeToArray(e,r){(r==null||r>e.length)&&(r=e.length);for(var n=0,i=new Array(r);n<r;n++)i[n]=e[n];return i}function _iterableToArrayLimit(e,r){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i=[],a=!0,o=!1,s,l;try{for(n=n.call(e);!(a=(s=n.next()).done)&&(i.push(s.value),!(r&&i.length===r));a=!0);}catch(c){o=!0,l=c}finally{try{!a&&n.return!=null&&n.return()}finally{if(o)throw l}}return i}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _objectSpread$6(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?Object(arguments[r]):{},i=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),i.forEach(function(a){_defineProperty$6(e,a,n[a])})}return e}function _defineProperty$6(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function _objectWithoutProperties(e,r){if(e==null)return{};var n=_objectWithoutPropertiesLoose(e,r),i,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)i=o[a],!(r.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function _objectWithoutPropertiesLoose(e,r){if(e==null)return{};var n={},i=Object.keys(e),a,o;for(o=0;o<i.length;o++)a=i[o],!(r.indexOf(a)>=0)&&(n[a]=e[a]);return n}setTwoToneColor("#1890ff");var Icon$1=function(r,n){var i,a=_objectSpread$6({},r,n.attrs),o=a.class,s=a.icon,l=a.spin,c=a.rotate,u=a.tabindex,h=a.twoToneColor,x=a.onClick,f=_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":"",m=u;m===void 0&&x&&(m=-1,f.tabindex=m);var E=c?{msTransform:"rotate(".concat(c,"deg)"),transform:"rotate(".concat(c,"deg)")}:void 0,b=normalizeTwoToneColors(h),d=_slicedToArray(b,2),p=d[0],y=d[1];return vue.createVNode("span",_objectSpread$6({role:"img","aria-label":s.name},f,{onClick:x,class:g}),[vue.createVNode(VueIcon,{class:v,icon:s,primaryColor:p,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 r=1;r<arguments.length;r++){var n=arguments[r]!=null?Object(arguments[r]):{},i=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),i.forEach(function(a){_defineProperty$5(e,a,n[a])})}return e}function _defineProperty$5(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var CalendarOutlined=function(r,n){var i=_objectSpread$5({},r,n.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 r=1;r<arguments.length;r++){var n=arguments[r]!=null?Object(arguments[r]):{},i=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),i.forEach(function(a){_defineProperty$4(e,a,n[a])})}return e}function _defineProperty$4(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var CloseCircleFilled=function(r,n){var i=_objectSpread$4({},r,n.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 r=1;r<arguments.length;r++){var n=arguments[r]!=null?Object(arguments[r]):{},i=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),i.forEach(function(a){_defineProperty$3(e,a,n[a])})}return e}function _defineProperty$3(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var CloseOutlined=function(r,n){var i=_objectSpread$3({},r,n.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 r=1;r<arguments.length;r++){var n=arguments[r]!=null?Object(arguments[r]):{},i=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),i.forEach(function(a){_defineProperty$2(e,a,n[a])})}return e}function _defineProperty$2(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var DownOutlined=function(r,n){var i=_objectSpread$2({},r,n.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 r=1;r<arguments.length;r++){var n=arguments[r]!=null?Object(arguments[r]):{},i=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),i.forEach(function(a){_defineProperty$1(e,a,n[a])})}return e}function _defineProperty$1(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var LoadingOutlined=function(r,n){var i=_objectSpread$1({},r,n.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 r=1;r<arguments.length;r++){var n=arguments[r]!=null?Object(arguments[r]):{},i=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),i.forEach(function(a){_defineProperty(e,a,n[a])})}return e}function _defineProperty(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var RightOutlined=function(r,n){var i=_objectSpread({},r,n.attrs);return vue.createVNode(AntdIcon,_objectSpread({},i,{icon:RightOutlinedSvg}),null)};RightOutlined.displayName="RightOutlined",RightOutlined.inheritAttrs=!1;const RightOutlined$1=RightOutlined,_sfc_main$w=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,r)=>{const n=e.__vccOpts||e;for(const[i,a]of r)n[i]=a;return n},_hoisted_1$i={class:"spin-wrapper"};function _sfc_render$B(e,r,n,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$w,[["render",_sfc_render$B]]),_sfc_main$v=vue.defineComponent({name:"Skeleton",props:{loading:{type:Boolean,default:!1}},components:{ASkeleton:antDesignVue.Skeleton}});function _sfc_render$A(e,r,n,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$v,[["render",_sfc_render$A]]);(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(r){console.error("vite-plugin-css-injected-by-js",r)}})();var __defProp=Object.defineProperty,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(e,r,n)=>r in e?__defProp(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,__spreadValues=(e,r)=>{for(var n in r||(r={}))__hasOwnProp.call(r,n)&&__defNormalProp(e,n,r[n]);if(__getOwnPropSymbols)for(var n of __getOwnPropSymbols(r))__propIsEnum.call(r,n)&&__defNormalProp(e,n,r[n]);return e},_export_sfc=(e,r)=>{const n=e.__vccOpts||e;for(const[i,a]of r)n[i]=a;return n};const _sfc_main$u=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:r}){const n=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),h=vue.ref(0),x=vue.ref(0),f=vue.ref(!1),g=vue.ref(!1),v=vue.ref(0),m=vue.ref(null),E=vue.ref("200px"),b=vue.ref(!1),d=vue.ref(null),p=vue.ref(null),y=async()=>{await S(),o.value++},S=async()=>{e.vertical&&(s.value=!0),setInterval(()=>{if(i.value="0%",a.value="0%",d.value!==null&&p.value!==null&&d.value&&p.value)if(e.vertical&&"clientHeight"in d.value&&"clientHeight"in p.value){x.value=d.value.clientHeight,h.value=p.value.clientHeight;const T=Math.ceil(h.value/x.value);return n.value=isFinite(T)?T:0,s.value=!1,n.value}else if(!e.vertical&&"clientWidth"in d.value&&"clientWidth"in p.value){if(u.value=d.value.clientWidth,c.value=p.value.clientWidth,e.animateOnOverflowOnly)return u.value<c.value?(l.value=!0,r("onOverflowDetected")):(l.value=!1,r("onOverflowCleared")),0;const T=Math.ceil(c.value/u.value);return n.value=isFinite(T)?T:0,n.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,(T,I)=>{T!==I&&r(T?"onResume":"onPause")});const k=()=>{e.pauseOnHover&&(r("onPause"),f.value=!0)},P=()=>{e.pauseOnHover&&(r("onResume"),f.value=!1)},w=()=>{e.pauseOnClick&&(r("onPause"),g.value=!0)},D=()=>{e.pauseOnClick&&(r("onResume"),g.value=!1)},M=vue.computed(()=>e.pause||e.vertical&&s.value||e.animateOnOverflowOnly&&l.value?"paused":"running"),B=vue.computed(()=>e.pauseOnHover&&(f.value||g.value)||!e.pauseOnHover&&M.value==="paused"?"paused":"running"),L=vue.computed(()=>e.pauseOnHover&&f.value||e.pauseOnClick&&g.value||!e.pauseOnHover&&M.value==="paused"?"paused":"running"),V=vue.computed(()=>{const T={"--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({},T),I)}),$=vue.computed(()=>!!e.gradient),N=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 S(),y()),b.value=!0};return vue.onMounted(async()=>{N(),m.value=setInterval(()=>{v.value++,e.loop!==0&&v.value===e.loop&&(r("onComplete"),clearInterval(m.value)),r("onLoopComplete")},e.duration*1e3)}),vue.onBeforeUnmount(()=>{clearInterval(m.value)}),{ready:b,contentWidth:u,containerWidth:c,contentHeight:x,containerHeight:h,loopCounter:v,loopInterval:m,mouseOverMarquee:f,mouseDownMarquee:g,minWidth:i,minHeight:a,animateOnOverflowPause:l,marqueeContent:d,marqueeOverlayContainer:p,componentKey:o,showGradient:$,cloneAmount:n,ForcesUpdate:y,checkForClone:S,setupMarquee:N,getCurrentStyle:V,hoverStarted:k,hoverEnded:P,mouseDown:w,mouseUp:D}}}),_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$z(e,r,n,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:r[0]||(r[0]=(...s)=>e.hoverStarted&&e.hoverStarted(...s)),onMouseleave:r[1]||(r[1]=(...s)=>e.hoverEnded&&e.hoverEnded(...s)),onMousedown:r[2]||(r[2]=(...s)=>e.mouseDown&&e.mouseDown(...s)),onMouseup:r[3]||(r[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$u,[["render",_sfc_render$z]]);const _sfc_main$t=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$y(e,r,n,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$t,[["render",_sfc_render$y]]);process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const withInstall$1=(e,r)=>{if(e.install=n=>{for(const i of[e,...Object.values(r??{})])n.component(i.name,i)},r)for(const[n,i]of Object.entries(r))e[n]=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:"{}"},transformToComponentProps=e=>{const r={};if(typeof e=="object"&&e!=null)for(const n in e){const i=e[n];r[n]={type:i==null?void 0:i.constructor,default:i}}return r},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),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,r=[])=>{const n=lodashEs.without(styleList,...r);return vue.computed(()=>lodashEs.pick(e,n))},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=((we=window==null?void 0:window.config)==null?void 0:we.indicatorURL)||"";(Ke=window==null?void 0:window.config)!=null&&Ke.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"],useOnEvent=(e,r)=>{vue.watch(()=>e.id,n=>{const i=vue.inject(EVENT_BUS,{onEvent:(a,o)=>{}});n!=null&&n!==""&&i.onEvent(n,r)},{immediate:!0})},useEmitEvent=e=>{const r=e.events,n=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;r.forEach(u=>{if(o===u.on)try{a.value=n,l?c(u.target,u.emit,l):c(u.target,u.emit)}catch(h){console.error(h)}})}},useTransformChartDataByAttrValue=(e,r)=>{let{name:n="name",value:i="value",type:a="type"}=r||{};n=n==null?void 0:n.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 h=e[u],x=h[n]||"",f=h[i]||"",g=h[a]||"";if(o.has(g)){const v=o.get(g);v.push({name:x,value:f,...h}),o.set(g,v)}else o.set(g,[{name:x,value:f,...h}])}const l=[],c=[];for(const[u,h]of o)if(c.push({name:u,data:h}),h!=null&&h.length)if(l.length)for(const x of h)l.includes(x.name)||l.push(x.name);else l.push(...h.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 r=e.default;if(typeof r=="function"){var n=function i(){return this instanceof i?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};n.prototype=r.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var a=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(n,i,a.get?a:{enumerable:!0,get:function(){return e[i]}})}),n}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,r){(function(n,i){e.exports=i()})(commonjsGlobal,function(){var n=n||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(p){var y;return d.prototype=p,y=new d,d.prototype=null,y}}(),c={},u=c.lib={},h=u.Base=function(){return{extend:function(d){var p=l(this);return d&&p.mixIn(d),(!p.hasOwnProperty("init")||this.init===p.init)&&(p.init=function(){p.$super.init.apply(this,arguments)}),p.init.prototype=p,p.$super=this,p},create:function(){var d=this.extend();return d.init.apply(d,arguments),d},init:function(){},mixIn:function(d){for(var p in d)d.hasOwnProperty(p)&&(this[p]=d[p]);d.hasOwnProperty("toString")&&(this.toString=d.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),x=u.WordArray=h.extend({init:function(d,p){d=this.words=d||[],p!=a?this.sigBytes=p:this.sigBytes=d.length*4},toString:function(d){return(d||g).stringify(this)},concat:function(d){var p=this.words,y=d.words,S=this.sigBytes,k=d.sigBytes;if(this.clamp(),S%4)for(var P=0;P<k;P++){var w=y[P>>>2]>>>24-P%4*8&255;p[S+P>>>2]|=w<<24-(S+P)%4*8}else for(var D=0;D<k;D+=4)p[S+D>>>2]=y[D>>>2];return this.sigBytes+=k,this},clamp:function(){var d=this.words,p=this.sigBytes;d[p>>>2]&=4294967295<<32-p%4*8,d.length=i.ceil(p/4)},clone:function(){var d=h.clone.call(this);return d.words=this.words.slice(0),d},random:function(d){for(var p=[],y=0;y<d;y+=4)p.push(s());return new x.init(p,d)}}),f=c.enc={},g=f.Hex={stringify:function(d){for(var p=d.words,y=d.sigBytes,S=[],k=0;k<y;k++){var P=p[k>>>2]>>>24-k%4*8&255;S.push((P>>>4).toString(16)),S.push((P&15).toString(16))}return S.join("")},parse:function(d){for(var p=d.length,y=[],S=0;S<p;S+=2)y[S>>>3]|=parseInt(d.substr(S,2),16)<<24-S%8*4;return new x.init(y,p/2)}},v=f.Latin1={stringify:function(d){for(var p=d.words,y=d.sigBytes,S=[],k=0;k<y;k++){var P=p[k>>>2]>>>24-k%4*8&255;S.push(String.fromCharCode(P))}return S.join("")},parse:function(d){for(var p=d.length,y=[],S=0;S<p;S++)y[S>>>2]|=(d.charCodeAt(S)&255)<<24-S%4*8;return new x.init(y,p)}},m=f.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=h.extend({reset:function(){this._data=new x.init,this._nDataBytes=0},_append:function(d){typeof d=="string"&&(d=m.parse(d)),this._data.concat(d),this._nDataBytes+=d.sigBytes},_process:function(d){var p,y=this._data,S=y.words,k=y.sigBytes,P=this.blockSize,w=P*4,D=k/w;d?D=i.ceil(D):D=i.max((D|0)-this._minBufferSize,0);var M=D*P,B=i.min(M*4,k);if(M){for(var L=0;L<M;L+=P)this._doProcessBlock(S,L);p=S.splice(0,M),y.sigBytes-=B}return new x.init(p,B)},clone:function(){var d=h.clone.call(this);return d._data=this._data.clone(),d},_minBufferSize:0});u.Hasher=E.extend({cfg:h.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 p=this._doFinalize();return p},blockSize:16,_createHelper:function(d){return function(p,y){return new d.init(y).finalize(p)}},_createHmacHelper:function(d){return function(p,y){return new b.HMAC.init(d,y).finalize(p)}}});var b=c.algo={};return c}(Math);return n})}(core)),core.exports}var x64Core={exports:{}},hasRequiredX64Core;function requireX64Core(){return hasRequiredX64Core||(hasRequiredX64Core=1,function(e,r){(function(n,i){e.exports=i(requireCore())})(commonjsGlobal,function(n){return function(i){var a=n,o=a.lib,s=o.Base,l=o.WordArray,c=a.x64={};c.Word=s.extend({init:function(u,h){this.high=u,this.low=h}}),c.WordArray=s.extend({init:function(u,h){u=this.words=u||[],h!=i?this.sigBytes=h:this.sigBytes=u.length*8},toX32:function(){for(var u=this.words,h=u.length,x=[],f=0;f<h;f++){var g=u[f];x.push(g.high),x.push(g.low)}return l.create(x,this.sigBytes)},clone:function(){for(var u=s.clone.call(this),h=u.words=this.words.slice(0),x=h.length,f=0;f<x;f++)h[f]=h[f].clone();return u}})}(),n})}(x64Core)),x64Core.exports}var libTypedarrays={exports:{}},hasRequiredLibTypedarrays;function requireLibTypedarrays(){return hasRequiredLibTypedarrays||(hasRequiredLibTypedarrays=1,function(e,r){(function(n,i){e.exports=i(requireCore())})(commonjsGlobal,function(n){return function(){if(typeof ArrayBuffer=="function"){var i=n,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,h=[],x=0;x<u;x++)h[x>>>2]|=c[x]<<24-x%4*8;s.call(this,h,u)}else s.apply(this,arguments)};l.prototype=o}}(),n.lib.WordArray})}(libTypedarrays)),libTypedarrays.exports}var encUtf16={exports:{}},hasRequiredEncUtf16;function requireEncUtf16(){return hasRequiredEncUtf16||(hasRequiredEncUtf16=1,function(e,r){(function(n,i){e.exports=i(requireCore())})(commonjsGlobal,function(n){return function(){var i=n,a=i.lib,o=a.WordArray,s=i.enc;s.Utf16=s.Utf16BE={stringify:function(c){for(var u=c.words,h=c.sigBytes,x=[],f=0;f<h;f+=2){var g=u[f>>>2]>>>16-f%4*8&65535;x.push(String.fromCharCode(g))}return x.join("")},parse:function(c){for(var u=c.length,h=[],x=0;x<u;x++)h[x>>>1]|=c.charCodeAt(x)<<16-x%2*16;return o.create(h,u*2)}},s.Utf16LE={stringify:function(c){for(var u=c.words,h=c.sigBytes,x=[],f=0;f<h;f+=2){var g=l(u[f>>>2]>>>16-f%4*8&65535);x.push(String.fromCharCode(g))}return x.join("")},parse:function(c){for(var u=c.length,h=[],x=0;x<u;x++)h[x>>>1]|=l(c.charCodeAt(x)<<16-x%2*16);return o.create(h,u*2)}};function l(c){return c<<8&4278255360|c>>>8&16711935}}(),n.enc.Utf16})}(encUtf16)),encUtf16.exports}var encBase64={exports:{}},hasRequiredEncBase64;function requireEncBase64(){return hasRequiredEncBase64||(hasRequiredEncBase64=1,function(e,r){(function(n,i){e.exports=i(requireCore())})(commonjsGlobal,function(n){return function(){var i=n,a=i.lib,o=a.WordArray,s=i.enc;s.Base64={stringify:function(c){var u=c.words,h=c.sigBytes,x=this._map;c.clamp();for(var f=[],g=0;g<h;g+=3)for(var v=u[g>>>2]>>>24-g%4*8&255,m=u[g+1>>>2]>>>24-(g+1)%4*8&255,E=u[g+2>>>2]>>>24-(g+2)%4*8&255,b=v<<16|m<<8|E,d=0;d<4&&g+d*.75<h;d++)f.push(x.charAt(b>>>6*(3-d)&63));var p=x.charAt(64);if(p)for(;f.length%4;)f.push(p);return f.join("")},parse:function(c){var u=c.length,h=this._map,x=this._reverseMap;if(!x){x=this._reverseMap=[];for(var f=0;f<h.length;f++)x[h.charCodeAt(f)]=f}var g=h.charAt(64);if(g){var v=c.indexOf(g);v!==-1&&(u=v)}return l(c,u,x)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function l(c,u,h){for(var x=[],f=0,g=0;g<u;g++)if(g%4){var v=h[c.charCodeAt(g-1)]<<g%4*2,m=h[c.charCodeAt(g)]>>>6-g%4*2,E=v|m;x[f>>>2]|=E<<24-f%4*8,f++}return o.create(x,f)}}(),n.enc.Base64})}(encBase64)),encBase64.exports}var encBase64url={exports:{}},hasRequiredEncBase64url;function requireEncBase64url(){return hasRequiredEncBase64url||(hasRequiredEncBase64url=1,function(e,r){(function(n,i){e.exports=i(requireCore())})(commonjsGlobal,function(n){return function(){var i=n,a=i.lib,o=a.WordArray,s=i.enc;s.Base64url={stringify:function(c,u=!0){var h=c.words,x=c.sigBytes,f=u?this._safe_map:this._map;c.clamp();for(var g=[],v=0;v<x;v+=3)for(var m=h[v>>>2]>>>24-v%4*8&255,E=h[v+1>>>2]>>>24-(v+1)%4*8&255,b=h[v+2>>>2]>>>24-(v+2)%4*8&255,d=m<<16|E<<8|b,p=0;p<4&&v+p*.75<x;p++)g.push(f.charAt(d>>>6*(3-p)&63));var y=f.charAt(64);if(y)for(;g.length%4;)g.push(y);return g.join("")},parse:function(c,u=!0){var h=c.length,x=u?this._safe_map:this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var g=0;g<x.length;g++)f[x.charCodeAt(g)]=g}var v=x.charAt(64);if(v){var m=c.indexOf(v);m!==-1&&(h=m)}return l(c,h,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function l(c,u,h){for(var x=[],f=0,g=0;g<u;g++)if(g%4){var v=h[c.charCodeAt(g-1)]<<g%4*2,m=h[c.charCodeAt(g)]>>>6-g%4*2,E=v|m;x[f>>>2]|=E<<24-f%4*8,f++}return o.create(x,f)}}(),n.enc.Base64url})}(encBase64url)),encBase64url.exports}var md5={exports:{}},hasRequiredMd5;function requireMd5(){return hasRequiredMd5||(hasRequiredMd5=1,function(e,r){(function(n,i){e.exports=i(requireCore())})(commonjsGlobal,function(n){return function(i){var a=n,o=a.lib,s=o.WordArray,l=o.Hasher,c=a.algo,u=[];(function(){for(var m=0;m<64;m++)u[m]=i.abs(i.sin(m+1))*4294967296|0})();var h=c.MD5=l.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(m,E){for(var b=0;b<16;b++){var d=E+b,p=m[d];m[d]=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360}var y=this._hash.words,S=m[E+0],k=m[E+1],P=m[E+2],w=m[E+3],D=m[E+4],M=m[E+5],B=m[E+6],L=m[E+7],V=m[E+8],$=m[E+9],N=m[E+10],T=m[E+11],I=m[E+12],A=m[E+13],C=m[E+14],F=m[E+15],_=y[0],O=y[1],U=y[2],q=y[3];_=x(_,O,U,q,S,7,u[0]),q=x(q,_,O,U,k,12,u[1]),U=x(U,q,_,O,P,17,u[2]),O=x(O,U,q,_,w,22,u[3]),_=x(_,O,U,q,D,7,u[4]),q=x(q,_,O,U,M,12,u[5]),U=x(U,q,_,O,B,17,u[6]),O=x(O,U,q,_,L,22,u[7]),_=x(_,O,U,q,V,7,u[8]),q=x(q,_,O,U,$,12,u[9]),U=x(U,q,_,O,N,17,u[10]),O=x(O,U,q,_,T,22,u[11]),_=x(_,O,U,q,I,7,u[12]),q=x(q,_,O,U,A,12,u[13]),U=x(U,q,_,O,C,17,u[14]),O=x(O,U,q,_,F,22,u[15]),_=f(_,O,U,q,k,5,u[16]),q=f(q,_,O,U,B,9,u[17]),U=f(U,q,_,O,T,14,u[18]),O=f(O,U,q,_,S,20,u[19]),_=f(_,O,U,q,M,5,u[20]),q=f(q,_,O,U,N,9,u[21]),U=f(U,q,_,O,F,14,u[22]),O=f(O,U,q,_,D,20,u[23]),_=f(_,O,U,q,$,5,u[24]),q=f(q,_,O,U,C,9,u[25]),U=f(U,q,_,O,w,14,u[26]),O=f(O,U,q,_,V,20,u[27]),_=f(_,O,U,q,A,5,u[28]),q=f(q,_,O,U,P,9,u[29]),U=f(U,q,_,O,L,14,u[30]),O=f(O,U,q,_,I,20,u[31]),_=g(_,O,U,q,M,4,u[32]),q=g(q,_,O,U,V,11,u[33]),U=g(U,q,_,O,T,16,u[34]),O=g(O,U,q,_,C,23,u[35]),_=g(_,O,U,q,k,4,u[36]),q=g(q,_,O,U,D,11,u[37]),U=g(U,q,_,O,L,16,u[38]),O=g(O,U,q,_,N,23,u[39]),_=g(_,O,U,q,A,4,u[40]),q=g(q,_,O,U,S,11,u[41]),U=g(U,q,_,O,w,16,u[42]),O=g(O,U,q,_,B,23,u[43]),_=g(_,O,U,q,$,4,u[44]),q=g(q,_,O,U,I,11,u[45]),U=g(U,q,_,O,F,16,u[46]),O=g(O,U,q,_,P,23,u[47]),_=v(_,O,U,q,S,6,u[48]),q=v(q,_,O,U,L,10,u[49]),U=v(U,q,_,O,C,15,u[50]),O=v(O,U,q,_,M,21,u[51]),_=v(_,O,U,q,I,6,u[52]),q=v(q,_,O,U,w,10,u[53]),U=v(U,q,_,O,N,15,u[54]),O=v(O,U,q,_,k,21,u[55]),_=v(_,O,U,q,V,6,u[56]),q=v(q,_,O,U,F,10,u[57]),U=v(U,q,_,O,B,15,u[58]),O=v(O,U,q,_,A,21,u[59]),_=v(_,O,U,q,D,6,u[60]),q=v(q,_,O,U,T,10,u[61]),U=v(U,q,_,O,P,15,u[62]),O=v(O,U,q,_,$,21,u[63]),y[0]=y[0]+_|0,y[1]=y[1]+O|0,y[2]=y[2]+U|0,y[3]=y[3]+q|0},_doFinalize:function(){var m=this._data,E=m.words,b=this._nDataBytes*8,d=m.sigBytes*8;E[d>>>5]|=128<<24-d%32;var p=i.floor(b/4294967296),y=b;E[(d+64>>>9<<4)+15]=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,E[(d+64>>>9<<4)+14]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,m.sigBytes=(E.length+1)*4,this._process();for(var S=this._hash,k=S.words,P=0;P<4;P++){var w=k[P];k[P]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360}return S},clone:function(){var m=l.clone.call(this);return m._hash=this._hash.clone(),m}});function x(m,E,b,d,p,y,S){var k=m+(E&b|~E&d)+p+S;return(k<<y|k>>>32-y)+E}function f(m,E,b,d,p,y,S){var k=m+(E&d|b&~d)+p+S;return(k<<y|k>>>32-y)+E}function g(m,E,b,d,p,y,S){var k=m+(E^b^d)+p+S;return(k<<y|k>>>32-y)+E}function v(m,E,b,d,p,y,S){var k=m+(b^(E|~d))+p+S;return(k<<y|k>>>32-y)+E}a.MD5=l._createHelper(h),a.HmacMD5=l._createHmacHelper(h)}(Math),n.MD5})}(md5)),md5.exports}var sha1={exports:{}},hasRequiredSha1;function requireSha1(){return hasRequiredSha1||(hasRequiredSha1=1,function(e,r){(function(n,i){e.exports=i(requireCore())})(commonjsGlobal,function(n){return function(){var i=n,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(h,x){for(var f=this._hash.words,g=f[0],v=f[1],m=f[2],E=f[3],b=f[4],d=0;d<80;d++){if(d<16)c[d]=h[x+d]|0;else{var p=c[d-3]^c[d-8]^c[d-14]^c[d-16];c[d]=p<<1|p>>>31}var y=(g<<5|g>>>27)+b+c[d];d<20?y+=(v&m|~v&E)+1518500249:d<40?y+=(v^m^E)+1859775393:d<60?y+=(v&m|v&E|m&E)-1894007588:y+=(v^m^E)-899497514,b=E,E=m,m=v<<30|v>>>2,v=g,g=y}f[0]=f[0]+g|0,f[1]=f[1]+v|0,f[2]=f[2]+m|0,f[3]=f[3]+E|0,f[4]=f[4]+b|0},_doFinalize:function(){var h=this._data,x=h.words,f=this._nDataBytes*8,g=h.sigBytes*8;return x[g>>>5]|=128<<24-g%32,x[(g+64>>>9<<4)+14]=Math.floor(f/4294967296),x[(g+64>>>9<<4)+15]=f,h.sigBytes=x.length*4,this._process(),this._hash},clone:function(){var h=s.clone.call(this);return h._hash=this._hash.clone(),h}});i.SHA1=s._createHelper(u),i.HmacSHA1=s._createHmacHelper(u)}(),n.SHA1})}(sha1)),sha1.exports}var sha256={exports:{}},hasRequiredSha256;function requireSha256(){return hasRequiredSha256||(hasRequiredSha256=1,function(e,r){(function(n,i){e.exports=i(requireCore())})(commonjsGlobal,function(n){return function(i){var a=n,o=a.lib,s=o.WordArray,l=o.Hasher,c=a.algo,u=[],h=[];(function(){function g(b){for(var d=i.sqrt(b),p=2;p<=d;p++)if(!(b%p))return!1;return!0}function v(b){return(b-(b|0))*4294967296|0}for(var m=2,E=0;E<64;)g(m)&&(E<8&&(u[E]=v(i.pow(m,1/2))),h[E]=v(i.pow(m,1/3)),E++),m++})();var x=[],f=c.SHA256=l.extend({_doReset:function(){this._hash=new s.init(u.slice(0))},_doProcessBlock:function(g,v){for(var m=this._hash.words,E=m[0],b=m[1],d=m[2],p=m[3],y=m[4],S=m[5],k=m[6],P=m[7],w=0;w<64;w++){if(w<16)x[w]=g[v+w]|0;else{var D=x[w-15],M=(D<<25|D>>>7)^(D<<14|D>>>18)^D>>>3,B=x[w-2],L=(B<<15|B>>>17)^(B<<13|B>>>19)^B>>>10;x[w]=M+x[w-7]+L+x[w-16]}var V=y&S^~y&k,$=E&b^E&d^b&d,N=(E<<30|E>>>2)^(E<<19|E>>>13)^(E<<10|E>>>22),T=(y<<26|y>>>6)^(y<<21|y>>>11)^(y<<7|y>>>25),I=P+T+V+h[w]+x[w],A=N+$;P=k,k=S,S=y,y=p+I|0,p=d,d=b,b=E,E=I+A|0}m[0]=m[0]+E|0,m[1]=m[1]+b|0,m[2]=m[2]+d|0,m[3]=m[3]+p|0,m[4]=m[4]+y|0,m[5]=m[5]+S|0,m[6]=m[6]+k|0,m[7]=m[7]+P|0},_doFinalize:function(){var g=this._data,v=g.words,m=this._nDataBytes*8,E=g.sigBytes*8;return v[E>>>5]|=128<<24-E%32,v[(E+64>>>9<<4)+14]=i.floor(m/4294967296),v[(E+64>>>9<<4)+15]=m,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(f),a.HmacSHA256=l._createHmacHelper(f)}(Math),n.SHA256})}(sha256)),sha256.exports}var sha224={exports:{}},hasRequiredSha224;function requireSha224(){return hasRequiredSha224||(hasRequiredSha224=1,function(e,r){(function(n,i,a){e.exports=i(requireCore(),requireSha256())})(commonjsGlobal,function(n){return function(){var i=n,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)}(),n.SHA224})}(sha224)),sha224.exports}var sha512={exports:{}},hasRequiredSha512;function requireSha512(){return hasRequiredSha512||(hasRequiredSha512=1,function(e,r){(function(n,i,a){e.exports=i(requireCore(),requireX64Core())})(commonjsGlobal,function(n){return function(){var i=n,a=i.lib,o=a.Hasher,s=i.x64,l=s.Word,c=s.WordArray,u=i.algo;function h(){return l.create.apply(l,arguments)}var x=[h(1116352408,3609767458),h(1899447441,602891725),h(3049323471,3964484399),h(3921009573,2173295548),h(961987163,4081628472),h(1508970993,3053834265),h(2453635748,2937671579),h(2870763221,3664609560),h(3624381080,2734883394),h(310598401,1164996542),h(607225278,1323610764),h(1426881987,3590304994),h(1925078388,4068182383),h(2162078206,991336113),h(2614888103,633803317),h(3248222580,3479774868),h(3835390401,2666613458),h(4022224774,944711139),h(264347078,2341262773),h(604807628,2007800933),h(770255983,1495990901),h(1249150122,1856431235),h(1555081692,3175218132),h(1996064986,2198950837),h(2554220882,3999719339),h(2821834349,766784016),h(2952996808,2566594879),h(3210313671,3203337956),h(3336571891,1034457026),h(3584528711,2466948901),h(113926993,3758326383),h(338241895,168717936),h(666307205,1188179964),h(773529912,1546045734),h(1294757372,1522805485),h(1396182291,2643833823),h(1695183700,2343527390),h(1986661051,1014477480),h(2177026350,1206759142),h(2456956037,344077627),h(2730485921,1290863460),h(2820302411,3158454273),h(3259730800,3505952657),h(3345764771,106217008),h(3516065817,3606008344),h(3600352804,1432725776),h(4094571909,1467031594),h(275423344,851169720),h(430227734,3100823752),h(506948616,1363258195),h(659060556,3750685593),h(883997877,3785050280),h(958139571,3318307427),h(1322822218,3812723403),h(1537002063,2003034995),h(1747873779,3602036899),h(1955562222,1575990012),h(2024104815,1125592928),h(2227730452,2716904306),h(2361852424,442776044),h(2428436474,593698344),h(2756734187,3733110249),h(3204031479,2999351573),h(3329325298,3815920427),h(3391569614,3928383900),h(3515267271,566280711),h(3940187606,3454069534),h(4118630271,4000239992),h(116418474,1914138554),h(174292421,2731055270),h(289380356,3203993006),h(460393269,320620315),h(685471733,587496836),h(852142971,1086792851),h(1017036298,365543100),h(1126000580,2618297676),h(1288033470,3409855158),h(1501505948,4234509866),h(1607167915,987167468),h(1816402316,1246189591)],f=[];(function(){for(var v=0;v<80;v++)f[v]=h()})();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,m){for(var E=this._hash.words,b=E[0],d=E[1],p=E[2],y=E[3],S=E[4],k=E[5],P=E[6],w=E[7],D=b.high,M=b.low,B=d.high,L=d.low,V=p.high,$=p.low,N=y.high,T=y.low,I=S.high,A=S.low,C=k.high,F=k.low,_=P.high,O=P.low,U=w.high,q=w.low,H=D,j=M,G=B,R=L,W=V,Y=$,X=N,Z=T,J=I,K=A,ee=C,re=F,ne=_,ie=O,le=U,fe=q,he=0;he<80;he++){var ye,be,Ee=f[he];if(he<16)be=Ee.high=v[m+he*2]|0,ye=Ee.low=v[m+he*2+1]|0;else{var Te=f[he-15],Ce=Te.high,_e=Te.low,de=(Ce>>>1|_e<<31)^(Ce>>>8|_e<<24)^Ce>>>7,pe=(_e>>>1|Ce<<31)^(_e>>>8|Ce<<24)^(_e>>>7|Ce<<25),ve=f[he-2],Ae=ve.high,ke=ve.low,Oe=(Ae>>>19|ke<<13)^(Ae<<3|ke>>>29)^Ae>>>6,Le=(ke>>>19|Ae<<13)^(ke<<3|Ae>>>29)^(ke>>>6|Ae<<26),Ve=f[he-7],$e=Ve.high,Ie=Ve.low,Ge=f[he-16],Fe=Ge.high,Pe=Ge.low;ye=pe+Ie,be=de+$e+(ye>>>0<pe>>>0?1:0),ye=ye+Le,be=be+Oe+(ye>>>0<Le>>>0?1:0),ye=ye+Pe,be=be+Fe+(ye>>>0<Pe>>>0?1:0),Ee.high=be,Ee.low=ye}var Re=J&ee^~J&ne,Me=K&re^~K&ie,Be=H&G^H&W^G&W,Ne=j&R^j&Y^R&Y,qe=(H>>>28|j<<4)^(H<<30|j>>>2)^(H<<25|j>>>7),He=(j>>>28|H<<4)^(j<<30|H>>>2)^(j<<25|H>>>7),Je=(J>>>14|K<<18)^(J>>>18|K<<14)^(J<<23|K>>>9),Q=(K>>>14|J<<18)^(K>>>18|J<<14)^(K<<23|J>>>9),te=x[he],ae=te.high,ue=te.low,se=fe+Q,ce=le+Je+(se>>>0<fe>>>0?1:0),se=se+Me,ce=ce+Re+(se>>>0<Me>>>0?1:0),se=se+ue,ce=ce+ae+(se>>>0<ue>>>0?1:0),se=se+ye,ce=ce+be+(se>>>0<ye>>>0?1:0),oe=He+Ne,me=qe+Be+(oe>>>0<He>>>0?1:0);le=ne,fe=ie,ne=ee,ie=re,ee=J,re=K,K=Z+se|0,J=X+ce+(K>>>0<Z>>>0?1:0)|0,X=W,Z=Y,W=G,Y=R,G=H,R=j,j=se+oe|0,H=ce+me+(j>>>0<se>>>0?1:0)|0}M=b.low=M+j,b.high=D+H+(M>>>0<j>>>0?1:0),L=d.low=L+R,d.high=B+G+(L>>>0<R>>>0?1:0),$=p.low=$+Y,p.high=V+W+($>>>0<Y>>>0?1:0),T=y.low=T+Z,y.high=N+X+(T>>>0<Z>>>0?1:0),A=S.low=A+K,S.high=I+J+(A>>>0<K>>>0?1:0),F=k.low=F+re,k.high=C+ee+(F>>>0<re>>>0?1:0),O=P.low=O+ie,P.high=_+ne+(O>>>0<ie>>>0?1:0),q=w.low=q+fe,w.high=U+le+(q>>>0<fe>>>0?1:0)},_doFinalize:function(){var v=this._data,m=v.words,E=this._nDataBytes*8,b=v.sigBytes*8;m[b>>>5]|=128<<24-b%32,m[(b+128>>>10<<5)+30]=Math.floor(E/4294967296),m[(b+128>>>10<<5)+31]=E,v.sigBytes=m.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)}(),n.SHA512})}(sha512)),sha512.exports}var sha384={exports:{}},hasRequiredSha384;function requireSha384(){return hasRequiredSha384||(hasRequiredSha384=1,function(e,r){(function(n,i,a){e.exports=i(requireCore(),requireX64Core(),requireSha512())})(commonjsGlobal,function(n){return function(){var i=n,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 h=c._doFinalize.call(this);return h.sigBytes-=16,h}});i.SHA384=c._createHelper(u),i.HmacSHA384=c._createHmacHelper(u)}(),n.SHA384})}(sha384)),sha384.exports}var sha3={exports:{}},hasRequiredSha3;function requireSha3(){return hasRequiredSha3||(hasRequiredSha3=1,function(e,r){(function(n,i,a){e.exports=i(requireCore(),requireX64Core())})(commonjsGlobal,function(n){return function(i){var a=n,o=a.lib,s=o.WordArray,l=o.Hasher,c=a.x64,u=c.Word,h=a.algo,x=[],f=[],g=[];(function(){for(var E=1,b=0,d=0;d<24;d++){x[E+5*b]=(d+1)*(d+2)/2%64;var p=b%5,y=(2*E+3*b)%5;E=p,b=y}for(var E=0;E<5;E++)for(var b=0;b<5;b++)f[E+5*b]=b+(2*E+3*b)%5*5;for(var S=1,k=0;k<24;k++){for(var P=0,w=0,D=0;D<7;D++){if(S&1){var M=(1<<D)-1;M<32?w^=1<<M:P^=1<<M-32}S&128?S=S<<1^113:S<<=1}g[k]=u.create(P,w)}})();var v=[];(function(){for(var E=0;E<25;E++)v[E]=u.create()})();var m=h.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,p=this.blockSize/2,y=0;y<p;y++){var S=E[b+2*y],k=E[b+2*y+1];S=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,k=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360;var P=d[y];P.high^=k,P.low^=S}for(var w=0;w<24;w++){for(var D=0;D<5;D++){for(var M=0,B=0,L=0;L<5;L++){var P=d[D+5*L];M^=P.high,B^=P.low}var V=v[D];V.high=M,V.low=B}for(var D=0;D<5;D++)for(var $=v[(D+4)%5],N=v[(D+1)%5],T=N.high,I=N.low,M=$.high^(T<<1|I>>>31),B=$.low^(I<<1|T>>>31),L=0;L<5;L++){var P=d[D+5*L];P.high^=M,P.low^=B}for(var A=1;A<25;A++){var M,B,P=d[A],C=P.high,F=P.low,_=x[A];_<32?(M=C<<_|F>>>32-_,B=F<<_|C>>>32-_):(M=F<<_-32|C>>>64-_,B=C<<_-32|F>>>64-_);var O=v[f[A]];O.high=M,O.low=B}var U=v[0],q=d[0];U.high=q.high,U.low=q.low;for(var D=0;D<5;D++)for(var L=0;L<5;L++){var A=D+5*L,P=d[A],H=v[A],j=v[(D+1)%5+5*L],G=v[(D+2)%5+5*L];P.high=H.high^~j.high&G.high,P.low=H.low^~j.low&G.low}var P=d[0],R=g[w];P.high^=R.high,P.low^=R.low}},_doFinalize:function(){var E=this._data,b=E.words;this._nDataBytes*8;var d=E.sigBytes*8,p=this.blockSize*32;b[d>>>5]|=1<<24-d%32,b[(i.ceil((d+1)/p)*p>>>5)-1]|=128,E.sigBytes=b.length*4,this._process();for(var y=this._state,S=this.cfg.outputLength/8,k=S/8,P=[],w=0;w<k;w++){var D=y[w],M=D.high,B=D.low;M=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360,B=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,P.push(B),P.push(M)}return new s.init(P,S)},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(m),a.HmacSHA3=l._createHmacHelper(m)}(Math),n.SHA3})}(sha3)),sha3.exports}var ripemd160={exports:{}},hasRequiredRipemd160;function requireRipemd160(){return hasRequiredRipemd160||(hasRequiredRipemd160=1,function(e,r){(function(n,i){e.exports=i(requireCore())})(commonjsGlobal,function(n){/** @preserve
59
59
  (c) 2012 by Cédric Mesnil. All rights reserved.
60
60
 
61
61
  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
@@ -64,18 +64,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
64
64
  - 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.
65
65
 
66
66
  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.
67
- */return function(i){var a=n,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]),h=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]),f=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]),m=c.RIPEMD160=l.extend({_doReset:function(){this._hash=s.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(_,P){for(var A=0;A<16;A++){var R=P+A,M=_[R];_[R]=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360}var B=this._hash.words,O=g.words,V=v.words,q=u.words,N=h.words,T=x.words,I=f.words,S,C,D,k,F,$,G,j,U,H;$=S=B[0],G=C=B[1],j=D=B[2],U=k=B[3],H=F=B[4];for(var L,A=0;A<80;A+=1)L=S+_[P+q[A]]|0,A<16?L+=w(C,D,k)+O[0]:A<32?L+=b(C,D,k)+O[1]:A<48?L+=d(C,D,k)+O[2]:A<64?L+=p(C,D,k)+O[3]:L+=y(C,D,k)+O[4],L=L|0,L=E(L,T[A]),L=L+F|0,S=F,F=k,k=E(D,10),D=C,C=L,L=$+_[P+N[A]]|0,A<16?L+=y(G,j,U)+V[0]:A<32?L+=p(G,j,U)+V[1]:A<48?L+=d(G,j,U)+V[2]:A<64?L+=b(G,j,U)+V[3]:L+=w(G,j,U)+V[4],L=L|0,L=E(L,I[A]),L=L+H|0,$=H,H=U,U=E(j,10),j=G,G=L;L=B[1]+D+U|0,B[1]=B[2]+k+H|0,B[2]=B[3]+F+$|0,B[3]=B[4]+S+G|0,B[4]=B[0]+C+j|0,B[0]=L},_doFinalize:function(){var _=this._data,P=_.words,A=this._nDataBytes*8,R=_.sigBytes*8;P[R>>>5]|=128<<24-R%32,P[(R+64>>>9<<4)+14]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,_.sigBytes=(P.length+1)*4,this._process();for(var M=this._hash,B=M.words,O=0;O<5;O++){var V=B[O];B[O]=(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 w(_,P,A){return _^P^A}function b(_,P,A){return _&P|~_&A}function d(_,P,A){return(_|~P)^A}function p(_,P,A){return _&A|P&~A}function y(_,P,A){return _^(P|~A)}function E(_,P){return _<<P|_>>>32-P}a.RIPEMD160=l._createHelper(m),a.HmacRIPEMD160=l._createHmacHelper(m)}(),n.RIPEMD160})}(ripemd160)),ripemd160.exports}var hmac={exports:{}},hasRequiredHmac;function requireHmac(){return hasRequiredHmac||(hasRequiredHmac=1,function(e,r){(function(n,i){e.exports=i(requireCore())})(commonjsGlobal,function(n){(function(){var i=n,a=i.lib,o=a.Base,s=i.enc,l=s.Utf8,c=i.algo;c.HMAC=o.extend({init:function(u,h){u=this._hasher=new u.init,typeof h=="string"&&(h=l.parse(h));var x=u.blockSize,f=x*4;h.sigBytes>f&&(h=u.finalize(h)),h.clamp();for(var g=this._oKey=h.clone(),v=this._iKey=h.clone(),m=g.words,w=v.words,b=0;b<x;b++)m[b]^=1549556828,w[b]^=909522486;g.sigBytes=v.sigBytes=f,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 h=this._hasher,x=h.finalize(u);h.reset();var f=h.finalize(this._oKey.clone().concat(x));return f}})})()})}(hmac)),hmac.exports}var pbkdf2={exports:{}},hasRequiredPbkdf2;function requirePbkdf2(){return hasRequiredPbkdf2||(hasRequiredPbkdf2=1,function(e,r){(function(n,i,a){e.exports=i(requireCore(),requireSha1(),requireHmac())})(commonjsGlobal,function(n){return function(){var i=n,a=i.lib,o=a.Base,s=a.WordArray,l=i.algo,c=l.SHA1,u=l.HMAC,h=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,f){for(var g=this.cfg,v=u.create(g.hasher,x),m=s.create(),w=s.create([1]),b=m.words,d=w.words,p=g.keySize,y=g.iterations;b.length<p;){var E=v.update(f).finalize(w);v.reset();for(var _=E.words,P=_.length,A=E,R=1;R<y;R++){A=v.finalize(A),v.reset();for(var M=A.words,B=0;B<P;B++)_[B]^=M[B]}m.concat(E),d[0]++}return m.sigBytes=p*4,m}});i.PBKDF2=function(x,f,g){return h.create(g).compute(x,f)}}(),n.PBKDF2})}(pbkdf2)),pbkdf2.exports}var evpkdf={exports:{}},hasRequiredEvpkdf;function requireEvpkdf(){return hasRequiredEvpkdf||(hasRequiredEvpkdf=1,function(e,r){(function(n,i,a){e.exports=i(requireCore(),requireSha1(),requireHmac())})(commonjsGlobal,function(n){return function(){var i=n,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(h){this.cfg=this.cfg.extend(h)},compute:function(h,x){for(var f,g=this.cfg,v=g.hasher.create(),m=s.create(),w=m.words,b=g.keySize,d=g.iterations;w.length<b;){f&&v.update(f),f=v.update(h).finalize(x),v.reset();for(var p=1;p<d;p++)f=v.finalize(f),v.reset();m.concat(f)}return m.sigBytes=b*4,m}});i.EvpKDF=function(h,x,f){return u.create(f).compute(h,x)}}(),n.EvpKDF})}(evpkdf)),evpkdf.exports}var cipherCore={exports:{}},hasRequiredCipherCore;function requireCipherCore(){return hasRequiredCipherCore||(hasRequiredCipherCore=1,function(e,r){(function(n,i,a){e.exports=i(requireCore(),requireEvpkdf())})(commonjsGlobal,function(n){n.lib.Cipher||function(i){var a=n,o=a.lib,s=o.Base,l=o.WordArray,c=o.BufferedBlockAlgorithm,u=a.enc;u.Utf8;var h=u.Base64,x=a.algo,f=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,O){this.cfg=this.cfg.extend(O),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"?R:_}return function(B){return{encrypt:function(O,V,q){return M(V).encrypt(B,O,V,q)},decrypt:function(O,V,q){return M(V).decrypt(B,O,V,q)}}}}()});o.StreamCipher=g.extend({_doFinalize:function(){var M=this._process(!0);return M},blockSize:1});var v=a.mode={},m=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}}),w=v.CBC=function(){var M=m.extend();M.Encryptor=M.extend({processBlock:function(O,V){var q=this._cipher,N=q.blockSize;B.call(this,O,V,N),q.encryptBlock(O,V),this._prevBlock=O.slice(V,V+N)}}),M.Decryptor=M.extend({processBlock:function(O,V){var q=this._cipher,N=q.blockSize,T=O.slice(V,V+N);q.decryptBlock(O,V),B.call(this,O,V,N),this._prevBlock=T}});function B(O,V,q){var N,T=this._iv;T?(N=T,this._iv=i):N=this._prevBlock;for(var I=0;I<q;I++)O[V+I]^=N[I]}return M}(),b=a.pad={},d=b.Pkcs7={pad:function(M,B){for(var O=B*4,V=O-M.sigBytes%O,q=V<<24|V<<16|V<<8|V,N=[],T=0;T<V;T+=4)N.push(q);var I=l.create(N,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:w,padding:d}),reset:function(){var M;g.reset.call(this);var B=this.cfg,O=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,O&&O.words):(this._mode=M.call(V,this,O&&O.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 p=o.CipherParams=s.extend({init:function(M){this.mixIn(M)},toString:function(M){return(M||this.formatter).stringify(this)}}),y=a.format={},E=y.OpenSSL={stringify:function(M){var B,O=M.ciphertext,V=M.salt;return V?B=l.create([1398893684,1701076831]).concat(V).concat(O):B=O,B.toString(h)},parse:function(M){var B,O=h.parse(M),V=O.words;return V[0]==1398893684&&V[1]==1701076831&&(B=l.create(V.slice(2,4)),V.splice(0,4),O.sigBytes-=16),p.create({ciphertext:O,salt:B})}},_=o.SerializableCipher=s.extend({cfg:s.extend({format:E}),encrypt:function(M,B,O,V){V=this.cfg.extend(V);var q=M.createEncryptor(O,V),N=q.finalize(B),T=q.cfg;return p.create({ciphertext:N,key:O,iv:T.iv,algorithm:M,mode:T.mode,padding:T.padding,blockSize:M.blockSize,formatter:V.format})},decrypt:function(M,B,O,V){V=this.cfg.extend(V),B=this._parse(B,V.format);var q=M.createDecryptor(O,V).finalize(B.ciphertext);return q},_parse:function(M,B){return typeof M=="string"?B.parse(M,this):M}}),P=a.kdf={},A=P.OpenSSL={execute:function(M,B,O,V){V||(V=l.random(64/8));var q=f.create({keySize:B+O}).compute(M,V),N=l.create(q.words.slice(B),O*4);return q.sigBytes=B*4,p.create({key:q,iv:N,salt:V})}},R=o.PasswordBasedCipher=_.extend({cfg:_.cfg.extend({kdf:A}),encrypt:function(M,B,O,V){V=this.cfg.extend(V);var q=V.kdf.execute(O,M.keySize,M.ivSize);V.iv=q.iv;var N=_.encrypt.call(this,M,B,q.key,V);return N.mixIn(q),N},decrypt:function(M,B,O,V){V=this.cfg.extend(V),B=this._parse(B,V.format);var q=V.kdf.execute(O,M.keySize,M.ivSize,B.salt);V.iv=q.iv;var N=_.decrypt.call(this,M,B,q.key,V);return N}})}()})}(cipherCore)),cipherCore.exports}var modeCfb={exports:{}},hasRequiredModeCfb;function requireModeCfb(){return hasRequiredModeCfb||(hasRequiredModeCfb=1,function(e,r){(function(n,i,a){e.exports=i(requireCore(),requireCipherCore())})(commonjsGlobal,function(n){return n.mode.CFB=function(){var i=n.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,h=this._iv;h?(u=h.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}(),n.mode.CFB})}(modeCfb)),modeCfb.exports}var modeCtr={exports:{}},hasRequiredModeCtr;function requireModeCtr(){return hasRequiredModeCtr||(hasRequiredModeCtr=1,function(e,r){(function(n,i,a){e.exports=i(requireCore(),requireCipherCore())})(commonjsGlobal,function(n){return n.mode.CTR=function(){var i=n.lib.BlockCipherMode.extend(),a=i.Encryptor=i.extend({processBlock:function(o,s){var l=this._cipher,c=l.blockSize,u=this._iv,h=this._counter;u&&(h=this._counter=u.slice(0),this._iv=void 0);var x=h.slice(0);l.encryptBlock(x,0),h[c-1]=h[c-1]+1|0;for(var f=0;f<c;f++)o[s+f]^=x[f]}});return i.Decryptor=a,i}(),n.mode.CTR})}(modeCtr)),modeCtr.exports}var modeCtrGladman={exports:{}},hasRequiredModeCtrGladman;function requireModeCtrGladman(){return hasRequiredModeCtrGladman||(hasRequiredModeCtrGladman=1,function(e,r){(function(n,i,a){e.exports=i(requireCore(),requireCipherCore())})(commonjsGlobal,function(n){/** @preserve
67
+ */return function(i){var a=n,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]),h=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]),f=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]),m=c.RIPEMD160=l.extend({_doReset:function(){this._hash=s.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(k,P){for(var w=0;w<16;w++){var D=P+w,M=k[D];k[D]=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360}var B=this._hash.words,L=g.words,V=v.words,$=u.words,N=h.words,T=x.words,I=f.words,A,C,F,_,O,U,q,H,j,G;U=A=B[0],q=C=B[1],H=F=B[2],j=_=B[3],G=O=B[4];for(var R,w=0;w<80;w+=1)R=A+k[P+$[w]]|0,w<16?R+=E(C,F,_)+L[0]:w<32?R+=b(C,F,_)+L[1]:w<48?R+=d(C,F,_)+L[2]:w<64?R+=p(C,F,_)+L[3]:R+=y(C,F,_)+L[4],R=R|0,R=S(R,T[w]),R=R+O|0,A=O,O=_,_=S(F,10),F=C,C=R,R=U+k[P+N[w]]|0,w<16?R+=y(q,H,j)+V[0]:w<32?R+=p(q,H,j)+V[1]:w<48?R+=d(q,H,j)+V[2]:w<64?R+=b(q,H,j)+V[3]:R+=E(q,H,j)+V[4],R=R|0,R=S(R,I[w]),R=R+G|0,U=G,G=j,j=S(H,10),H=q,q=R;R=B[1]+F+j|0,B[1]=B[2]+_+G|0,B[2]=B[3]+O+U|0,B[3]=B[4]+A+q|0,B[4]=B[0]+C+H|0,B[0]=R},_doFinalize:function(){var k=this._data,P=k.words,w=this._nDataBytes*8,D=k.sigBytes*8;P[D>>>5]|=128<<24-D%32,P[(D+64>>>9<<4)+14]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,k.sigBytes=(P.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 k=l.clone.call(this);return k._hash=this._hash.clone(),k}});function E(k,P,w){return k^P^w}function b(k,P,w){return k&P|~k&w}function d(k,P,w){return(k|~P)^w}function p(k,P,w){return k&w|P&~w}function y(k,P,w){return k^(P|~w)}function S(k,P){return k<<P|k>>>32-P}a.RIPEMD160=l._createHelper(m),a.HmacRIPEMD160=l._createHmacHelper(m)}(),n.RIPEMD160})}(ripemd160)),ripemd160.exports}var hmac={exports:{}},hasRequiredHmac;function requireHmac(){return hasRequiredHmac||(hasRequiredHmac=1,function(e,r){(function(n,i){e.exports=i(requireCore())})(commonjsGlobal,function(n){(function(){var i=n,a=i.lib,o=a.Base,s=i.enc,l=s.Utf8,c=i.algo;c.HMAC=o.extend({init:function(u,h){u=this._hasher=new u.init,typeof h=="string"&&(h=l.parse(h));var x=u.blockSize,f=x*4;h.sigBytes>f&&(h=u.finalize(h)),h.clamp();for(var g=this._oKey=h.clone(),v=this._iKey=h.clone(),m=g.words,E=v.words,b=0;b<x;b++)m[b]^=1549556828,E[b]^=909522486;g.sigBytes=v.sigBytes=f,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 h=this._hasher,x=h.finalize(u);h.reset();var f=h.finalize(this._oKey.clone().concat(x));return f}})})()})}(hmac)),hmac.exports}var pbkdf2={exports:{}},hasRequiredPbkdf2;function requirePbkdf2(){return hasRequiredPbkdf2||(hasRequiredPbkdf2=1,function(e,r){(function(n,i,a){e.exports=i(requireCore(),requireSha1(),requireHmac())})(commonjsGlobal,function(n){return function(){var i=n,a=i.lib,o=a.Base,s=a.WordArray,l=i.algo,c=l.SHA1,u=l.HMAC,h=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,f){for(var g=this.cfg,v=u.create(g.hasher,x),m=s.create(),E=s.create([1]),b=m.words,d=E.words,p=g.keySize,y=g.iterations;b.length<p;){var S=v.update(f).finalize(E);v.reset();for(var k=S.words,P=k.length,w=S,D=1;D<y;D++){w=v.finalize(w),v.reset();for(var M=w.words,B=0;B<P;B++)k[B]^=M[B]}m.concat(S),d[0]++}return m.sigBytes=p*4,m}});i.PBKDF2=function(x,f,g){return h.create(g).compute(x,f)}}(),n.PBKDF2})}(pbkdf2)),pbkdf2.exports}var evpkdf={exports:{}},hasRequiredEvpkdf;function requireEvpkdf(){return hasRequiredEvpkdf||(hasRequiredEvpkdf=1,function(e,r){(function(n,i,a){e.exports=i(requireCore(),requireSha1(),requireHmac())})(commonjsGlobal,function(n){return function(){var i=n,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(h){this.cfg=this.cfg.extend(h)},compute:function(h,x){for(var f,g=this.cfg,v=g.hasher.create(),m=s.create(),E=m.words,b=g.keySize,d=g.iterations;E.length<b;){f&&v.update(f),f=v.update(h).finalize(x),v.reset();for(var p=1;p<d;p++)f=v.finalize(f),v.reset();m.concat(f)}return m.sigBytes=b*4,m}});i.EvpKDF=function(h,x,f){return u.create(f).compute(h,x)}}(),n.EvpKDF})}(evpkdf)),evpkdf.exports}var cipherCore={exports:{}},hasRequiredCipherCore;function requireCipherCore(){return hasRequiredCipherCore||(hasRequiredCipherCore=1,function(e,r){(function(n,i,a){e.exports=i(requireCore(),requireEvpkdf())})(commonjsGlobal,function(n){n.lib.Cipher||function(i){var a=n,o=a.lib,s=o.Base,l=o.WordArray,c=o.BufferedBlockAlgorithm,u=a.enc;u.Utf8;var h=u.Base64,x=a.algo,f=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"?D:k}return function(B){return{encrypt:function(L,V,$){return M(V).encrypt(B,L,V,$)},decrypt:function(L,V,$){return M(V).decrypt(B,L,V,$)}}}}()});o.StreamCipher=g.extend({_doFinalize:function(){var M=this._process(!0);return M},blockSize:1});var v=a.mode={},m=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=m.extend();M.Encryptor=M.extend({processBlock:function(L,V){var $=this._cipher,N=$.blockSize;B.call(this,L,V,N),$.encryptBlock(L,V),this._prevBlock=L.slice(V,V+N)}}),M.Decryptor=M.extend({processBlock:function(L,V){var $=this._cipher,N=$.blockSize,T=L.slice(V,V+N);$.decryptBlock(L,V),B.call(this,L,V,N),this._prevBlock=T}});function B(L,V,$){var N,T=this._iv;T?(N=T,this._iv=i):N=this._prevBlock;for(var I=0;I<$;I++)L[V+I]^=N[I]}return M}(),b=a.pad={},d=b.Pkcs7={pad:function(M,B){for(var L=B*4,V=L-M.sigBytes%L,$=V<<24|V<<16|V<<8|V,N=[],T=0;T<V;T+=4)N.push($);var I=l.create(N,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:E,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 p=o.CipherParams=s.extend({init:function(M){this.mixIn(M)},toString:function(M){return(M||this.formatter).stringify(this)}}),y=a.format={},S=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(h)},parse:function(M){var B,L=h.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),p.create({ciphertext:L,salt:B})}},k=o.SerializableCipher=s.extend({cfg:s.extend({format:S}),encrypt:function(M,B,L,V){V=this.cfg.extend(V);var $=M.createEncryptor(L,V),N=$.finalize(B),T=$.cfg;return p.create({ciphertext:N,key:L,iv:T.iv,algorithm:M,mode:T.mode,padding:T.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 $=M.createDecryptor(L,V).finalize(B.ciphertext);return $},_parse:function(M,B){return typeof M=="string"?B.parse(M,this):M}}),P=a.kdf={},w=P.OpenSSL={execute:function(M,B,L,V){V||(V=l.random(64/8));var $=f.create({keySize:B+L}).compute(M,V),N=l.create($.words.slice(B),L*4);return $.sigBytes=B*4,p.create({key:$,iv:N,salt:V})}},D=o.PasswordBasedCipher=k.extend({cfg:k.cfg.extend({kdf:w}),encrypt:function(M,B,L,V){V=this.cfg.extend(V);var $=V.kdf.execute(L,M.keySize,M.ivSize);V.iv=$.iv;var N=k.encrypt.call(this,M,B,$.key,V);return N.mixIn($),N},decrypt:function(M,B,L,V){V=this.cfg.extend(V),B=this._parse(B,V.format);var $=V.kdf.execute(L,M.keySize,M.ivSize,B.salt);V.iv=$.iv;var N=k.decrypt.call(this,M,B,$.key,V);return N}})}()})}(cipherCore)),cipherCore.exports}var modeCfb={exports:{}},hasRequiredModeCfb;function requireModeCfb(){return hasRequiredModeCfb||(hasRequiredModeCfb=1,function(e,r){(function(n,i,a){e.exports=i(requireCore(),requireCipherCore())})(commonjsGlobal,function(n){return n.mode.CFB=function(){var i=n.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,h=this._iv;h?(u=h.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}(),n.mode.CFB})}(modeCfb)),modeCfb.exports}var modeCtr={exports:{}},hasRequiredModeCtr;function requireModeCtr(){return hasRequiredModeCtr||(hasRequiredModeCtr=1,function(e,r){(function(n,i,a){e.exports=i(requireCore(),requireCipherCore())})(commonjsGlobal,function(n){return n.mode.CTR=function(){var i=n.lib.BlockCipherMode.extend(),a=i.Encryptor=i.extend({processBlock:function(o,s){var l=this._cipher,c=l.blockSize,u=this._iv,h=this._counter;u&&(h=this._counter=u.slice(0),this._iv=void 0);var x=h.slice(0);l.encryptBlock(x,0),h[c-1]=h[c-1]+1|0;for(var f=0;f<c;f++)o[s+f]^=x[f]}});return i.Decryptor=a,i}(),n.mode.CTR})}(modeCtr)),modeCtr.exports}var modeCtrGladman={exports:{}},hasRequiredModeCtrGladman;function requireModeCtrGladman(){return hasRequiredModeCtrGladman||(hasRequiredModeCtrGladman=1,function(e,r){(function(n,i,a){e.exports=i(requireCore(),requireCipherCore())})(commonjsGlobal,function(n){/** @preserve
68
68
  * Counter block mode compatible with Dr Brian Gladman fileenc.c
69
69
  * derived from CryptoJS.mode.CTR
70
70
  * Jan Hruby jhruby.web@gmail.com
71
- */return n.mode.CTRGladman=function(){var i=n.lib.BlockCipherMode.extend();function a(l){if((l>>24&255)===255){var c=l>>16&255,u=l>>8&255,h=l&255;c===255?(c=0,u===255?(u=0,h===255?h=0:++h):++u):++c,l=0,l+=c<<16,l+=u<<8,l+=h}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,h=u.blockSize,x=this._iv,f=this._counter;x&&(f=this._counter=x.slice(0),this._iv=void 0),o(f);var g=f.slice(0);u.encryptBlock(g,0);for(var v=0;v<h;v++)l[c+v]^=g[v]}});return i.Decryptor=s,i}(),n.mode.CTRGladman})}(modeCtrGladman)),modeCtrGladman.exports}var modeOfb={exports:{}},hasRequiredModeOfb;function requireModeOfb(){return hasRequiredModeOfb||(hasRequiredModeOfb=1,function(e,r){(function(n,i,a){e.exports=i(requireCore(),requireCipherCore())})(commonjsGlobal,function(n){return n.mode.OFB=function(){var i=n.lib.BlockCipherMode.extend(),a=i.Encryptor=i.extend({processBlock:function(o,s){var l=this._cipher,c=l.blockSize,u=this._iv,h=this._keystream;u&&(h=this._keystream=u.slice(0),this._iv=void 0),l.encryptBlock(h,0);for(var x=0;x<c;x++)o[s+x]^=h[x]}});return i.Decryptor=a,i}(),n.mode.OFB})}(modeOfb)),modeOfb.exports}var modeEcb={exports:{}},hasRequiredModeEcb;function requireModeEcb(){return hasRequiredModeEcb||(hasRequiredModeEcb=1,function(e,r){(function(n,i,a){e.exports=i(requireCore(),requireCipherCore())})(commonjsGlobal,function(n){return n.mode.ECB=function(){var i=n.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}(),n.mode.ECB})}(modeEcb)),modeEcb.exports}var padAnsix923={exports:{}},hasRequiredPadAnsix923;function requirePadAnsix923(){return hasRequiredPadAnsix923||(hasRequiredPadAnsix923=1,function(e,r){(function(n,i,a){e.exports=i(requireCore(),requireCipherCore())})(commonjsGlobal,function(n){return n.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}},n.pad.Ansix923})}(padAnsix923)),padAnsix923.exports}var padIso10126={exports:{}},hasRequiredPadIso10126;function requirePadIso10126(){return hasRequiredPadIso10126||(hasRequiredPadIso10126=1,function(e,r){(function(n,i,a){e.exports=i(requireCore(),requireCipherCore())})(commonjsGlobal,function(n){return n.pad.Iso10126={pad:function(i,a){var o=a*4,s=o-i.sigBytes%o;i.concat(n.lib.WordArray.random(s-1)).concat(n.lib.WordArray.create([s<<24],1))},unpad:function(i){var a=i.words[i.sigBytes-1>>>2]&255;i.sigBytes-=a}},n.pad.Iso10126})}(padIso10126)),padIso10126.exports}var padIso97971={exports:{}},hasRequiredPadIso97971;function requirePadIso97971(){return hasRequiredPadIso97971||(hasRequiredPadIso97971=1,function(e,r){(function(n,i,a){e.exports=i(requireCore(),requireCipherCore())})(commonjsGlobal,function(n){return n.pad.Iso97971={pad:function(i,a){i.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(i,a)},unpad:function(i){n.pad.ZeroPadding.unpad(i),i.sigBytes--}},n.pad.Iso97971})}(padIso97971)),padIso97971.exports}var padZeropadding={exports:{}},hasRequiredPadZeropadding;function requirePadZeropadding(){return hasRequiredPadZeropadding||(hasRequiredPadZeropadding=1,function(e,r){(function(n,i,a){e.exports=i(requireCore(),requireCipherCore())})(commonjsGlobal,function(n){return n.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}}},n.pad.ZeroPadding})}(padZeropadding)),padZeropadding.exports}var padNopadding={exports:{}},hasRequiredPadNopadding;function requirePadNopadding(){return hasRequiredPadNopadding||(hasRequiredPadNopadding=1,function(e,r){(function(n,i,a){e.exports=i(requireCore(),requireCipherCore())})(commonjsGlobal,function(n){return n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding})}(padNopadding)),padNopadding.exports}var formatHex={exports:{}},hasRequiredFormatHex;function requireFormatHex(){return hasRequiredFormatHex||(hasRequiredFormatHex=1,function(e,r){(function(n,i,a){e.exports=i(requireCore(),requireCipherCore())})(commonjsGlobal,function(n){return function(i){var a=n,o=a.lib,s=o.CipherParams,l=a.enc,c=l.Hex,u=a.format;u.Hex={stringify:function(h){return h.ciphertext.toString(c)},parse:function(h){var x=c.parse(h);return s.create({ciphertext:x})}}}(),n.format.Hex})}(formatHex)),formatHex.exports}var aes={exports:{}},hasRequiredAes;function requireAes(){return hasRequiredAes||(hasRequiredAes=1,function(e,r){(function(n,i,a){e.exports=i(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(n){return function(){var i=n,a=i.lib,o=a.BlockCipher,s=i.algo,l=[],c=[],u=[],h=[],x=[],f=[],g=[],v=[],m=[],w=[];(function(){for(var p=[],y=0;y<256;y++)y<128?p[y]=y<<1:p[y]=y<<1^283;for(var E=0,_=0,y=0;y<256;y++){var P=_^_<<1^_<<2^_<<3^_<<4;P=P>>>8^P&255^99,l[E]=P,c[P]=E;var A=p[E],R=p[A],M=p[R],B=p[P]*257^P*16843008;u[E]=B<<24|B>>>8,h[E]=B<<16|B>>>16,x[E]=B<<8|B>>>24,f[E]=B;var B=M*16843009^R*65537^A*257^E*16843008;g[P]=B<<24|B>>>8,v[P]=B<<16|B>>>16,m[P]=B<<8|B>>>24,w[P]=B,E?(E=A^p[p[p[M^A]]],_^=p[p[_]]):E=_=1}})();var b=[0,1,2,4,8,16,32,64,128,27,54],d=s.AES=o.extend({_doReset:function(){var p;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var y=this._keyPriorReset=this._key,E=y.words,_=y.sigBytes/4,P=this._nRounds=_+6,A=(P+1)*4,R=this._keySchedule=[],M=0;M<A;M++)M<_?R[M]=E[M]:(p=R[M-1],M%_?_>6&&M%_==4&&(p=l[p>>>24]<<24|l[p>>>16&255]<<16|l[p>>>8&255]<<8|l[p&255]):(p=p<<8|p>>>24,p=l[p>>>24]<<24|l[p>>>16&255]<<16|l[p>>>8&255]<<8|l[p&255],p^=b[M/_|0]<<24),R[M]=R[M-_]^p);for(var B=this._invKeySchedule=[],O=0;O<A;O++){var M=A-O;if(O%4)var p=R[M];else var p=R[M-4];O<4||M<=4?B[O]=p:B[O]=g[l[p>>>24]]^v[l[p>>>16&255]]^m[l[p>>>8&255]]^w[l[p&255]]}}},encryptBlock:function(p,y){this._doCryptBlock(p,y,this._keySchedule,u,h,x,f,l)},decryptBlock:function(p,y){var E=p[y+1];p[y+1]=p[y+3],p[y+3]=E,this._doCryptBlock(p,y,this._invKeySchedule,g,v,m,w,c);var E=p[y+1];p[y+1]=p[y+3],p[y+3]=E},_doCryptBlock:function(p,y,E,_,P,A,R,M){for(var B=this._nRounds,O=p[y]^E[0],V=p[y+1]^E[1],q=p[y+2]^E[2],N=p[y+3]^E[3],T=4,I=1;I<B;I++){var S=_[O>>>24]^P[V>>>16&255]^A[q>>>8&255]^R[N&255]^E[T++],C=_[V>>>24]^P[q>>>16&255]^A[N>>>8&255]^R[O&255]^E[T++],D=_[q>>>24]^P[N>>>16&255]^A[O>>>8&255]^R[V&255]^E[T++],k=_[N>>>24]^P[O>>>16&255]^A[V>>>8&255]^R[q&255]^E[T++];O=S,V=C,q=D,N=k}var S=(M[O>>>24]<<24|M[V>>>16&255]<<16|M[q>>>8&255]<<8|M[N&255])^E[T++],C=(M[V>>>24]<<24|M[q>>>16&255]<<16|M[N>>>8&255]<<8|M[O&255])^E[T++],D=(M[q>>>24]<<24|M[N>>>16&255]<<16|M[O>>>8&255]<<8|M[V&255])^E[T++],k=(M[N>>>24]<<24|M[O>>>16&255]<<16|M[V>>>8&255]<<8|M[q&255])^E[T++];p[y]=S,p[y+1]=C,p[y+2]=D,p[y+3]=k},keySize:256/32});i.AES=o._createHelper(d)}(),n.AES})}(aes)),aes.exports}var tripledes={exports:{}},hasRequiredTripledes;function requireTripledes(){return hasRequiredTripledes||(hasRequiredTripledes=1,function(e,r){(function(n,i,a){e.exports=i(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(n){return function(){var i=n,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],h=[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}],f=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],g=l.DES=s.extend({_doReset:function(){for(var b=this._key,d=b.words,p=[],y=0;y<56;y++){var E=c[y]-1;p[y]=d[E>>>5]>>>31-E%32&1}for(var _=this._subKeys=[],P=0;P<16;P++){for(var A=_[P]=[],R=h[P],y=0;y<24;y++)A[y/6|0]|=p[(u[y]-1+R)%28]<<31-y%6,A[4+(y/6|0)]|=p[28+(u[y+24]-1+R)%28]<<31-y%6;A[0]=A[0]<<1|A[0]>>>31;for(var y=1;y<7;y++)A[y]=A[y]>>>(y-1)*4+3;A[7]=A[7]<<5|A[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,p){this._lBlock=b[d],this._rBlock=b[d+1],v.call(this,4,252645135),v.call(this,16,65535),m.call(this,2,858993459),m.call(this,8,16711935),v.call(this,1,1431655765);for(var y=0;y<16;y++){for(var E=p[y],_=this._lBlock,P=this._rBlock,A=0,R=0;R<8;R++)A|=x[R][((P^E[R])&f[R])>>>0];this._lBlock=P,this._rBlock=_^A}var M=this._lBlock;this._lBlock=this._rBlock,this._rBlock=M,v.call(this,1,1431655765),m.call(this,8,16711935),m.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 p=(this._lBlock>>>b^this._rBlock)&d;this._rBlock^=p,this._lBlock^=p<<b}function m(b,d){var p=(this._rBlock>>>b^this._lBlock)&d;this._lBlock^=p,this._rBlock^=p<<b}i.DES=s._createHelper(g);var w=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 p=d.slice(0,2),y=d.length<4?d.slice(0,2):d.slice(2,4),E=d.length<6?d.slice(0,2):d.slice(4,6);this._des1=g.createEncryptor(o.create(p)),this._des2=g.createEncryptor(o.create(y)),this._des3=g.createEncryptor(o.create(E))},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(w)}(),n.TripleDES})}(tripledes)),tripledes.exports}var rc4={exports:{}},hasRequiredRc4;function requireRc4(){return hasRequiredRc4||(hasRequiredRc4=1,function(e,r){(function(n,i,a){e.exports=i(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(n){return function(){var i=n,a=i.lib,o=a.StreamCipher,s=i.algo,l=s.RC4=o.extend({_doReset:function(){for(var h=this._key,x=h.words,f=h.sigBytes,g=this._S=[],v=0;v<256;v++)g[v]=v;for(var v=0,m=0;v<256;v++){var w=v%f,b=x[w>>>2]>>>24-w%4*8&255;m=(m+g[v]+b)%256;var d=g[v];g[v]=g[m],g[m]=d}this._i=this._j=0},_doProcessBlock:function(h,x){h[x]^=c.call(this)},keySize:256/32,ivSize:0});function c(){for(var h=this._S,x=this._i,f=this._j,g=0,v=0;v<4;v++){x=(x+1)%256,f=(f+h[x])%256;var m=h[x];h[x]=h[f],h[f]=m,g|=h[(h[x]+h[f])%256]<<24-v*8}return this._i=x,this._j=f,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 h=this.cfg.drop;h>0;h--)c.call(this)}});i.RC4Drop=o._createHelper(u)}(),n.RC4})}(rc4)),rc4.exports}var rabbit={exports:{}},hasRequiredRabbit;function requireRabbit(){return hasRequiredRabbit||(hasRequiredRabbit=1,function(e,r){(function(n,i,a){e.exports=i(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(n){return function(){var i=n,a=i.lib,o=a.StreamCipher,s=i.algo,l=[],c=[],u=[],h=s.Rabbit=o.extend({_doReset:function(){for(var f=this._key.words,g=this.cfg.iv,v=0;v<4;v++)f[v]=(f[v]<<8|f[v]>>>24)&16711935|(f[v]<<24|f[v]>>>8)&4278255360;var m=this._X=[f[0],f[3]<<16|f[2]>>>16,f[1],f[0]<<16|f[3]>>>16,f[2],f[1]<<16|f[0]>>>16,f[3],f[2]<<16|f[1]>>>16],w=this._C=[f[2]<<16|f[2]>>>16,f[0]&4294901760|f[1]&65535,f[3]<<16|f[3]>>>16,f[1]&4294901760|f[2]&65535,f[0]<<16|f[0]>>>16,f[2]&4294901760|f[3]&65535,f[1]<<16|f[1]>>>16,f[3]&4294901760|f[0]&65535];this._b=0;for(var v=0;v<4;v++)x.call(this);for(var v=0;v<8;v++)w[v]^=m[v+4&7];if(g){var b=g.words,d=b[0],p=b[1],y=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360,E=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,_=y>>>16|E&4294901760,P=E<<16|y&65535;w[0]^=y,w[1]^=_,w[2]^=E,w[3]^=P,w[4]^=y,w[5]^=_,w[6]^=E,w[7]^=P;for(var v=0;v<4;v++)x.call(this)}},_doProcessBlock:function(f,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 m=0;m<4;m++)l[m]=(l[m]<<8|l[m]>>>24)&16711935|(l[m]<<24|l[m]>>>8)&4278255360,f[g+m]^=l[m]},blockSize:128/32,ivSize:64/32});function x(){for(var f=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 m=f[v]+g[v],w=m&65535,b=m>>>16,d=((w*w>>>17)+w*b>>>15)+b*b,p=((m&4294901760)*m|0)+((m&65535)*m|0);u[v]=d^p}f[0]=u[0]+(u[7]<<16|u[7]>>>16)+(u[6]<<16|u[6]>>>16)|0,f[1]=u[1]+(u[0]<<8|u[0]>>>24)+u[7]|0,f[2]=u[2]+(u[1]<<16|u[1]>>>16)+(u[0]<<16|u[0]>>>16)|0,f[3]=u[3]+(u[2]<<8|u[2]>>>24)+u[1]|0,f[4]=u[4]+(u[3]<<16|u[3]>>>16)+(u[2]<<16|u[2]>>>16)|0,f[5]=u[5]+(u[4]<<8|u[4]>>>24)+u[3]|0,f[6]=u[6]+(u[5]<<16|u[5]>>>16)+(u[4]<<16|u[4]>>>16)|0,f[7]=u[7]+(u[6]<<8|u[6]>>>24)+u[5]|0}i.Rabbit=o._createHelper(h)}(),n.Rabbit})}(rabbit)),rabbit.exports}var rabbitLegacy={exports:{}},hasRequiredRabbitLegacy;function requireRabbitLegacy(){return hasRequiredRabbitLegacy||(hasRequiredRabbitLegacy=1,function(e,r){(function(n,i,a){e.exports=i(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(n){return function(){var i=n,a=i.lib,o=a.StreamCipher,s=i.algo,l=[],c=[],u=[],h=s.RabbitLegacy=o.extend({_doReset:function(){var f=this._key.words,g=this.cfg.iv,v=this._X=[f[0],f[3]<<16|f[2]>>>16,f[1],f[0]<<16|f[3]>>>16,f[2],f[1]<<16|f[0]>>>16,f[3],f[2]<<16|f[1]>>>16],m=this._C=[f[2]<<16|f[2]>>>16,f[0]&4294901760|f[1]&65535,f[3]<<16|f[3]>>>16,f[1]&4294901760|f[2]&65535,f[0]<<16|f[0]>>>16,f[2]&4294901760|f[3]&65535,f[1]<<16|f[1]>>>16,f[3]&4294901760|f[0]&65535];this._b=0;for(var w=0;w<4;w++)x.call(this);for(var w=0;w<8;w++)m[w]^=v[w+4&7];if(g){var b=g.words,d=b[0],p=b[1],y=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360,E=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,_=y>>>16|E&4294901760,P=E<<16|y&65535;m[0]^=y,m[1]^=_,m[2]^=E,m[3]^=P,m[4]^=y,m[5]^=_,m[6]^=E,m[7]^=P;for(var w=0;w<4;w++)x.call(this)}},_doProcessBlock:function(f,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 m=0;m<4;m++)l[m]=(l[m]<<8|l[m]>>>24)&16711935|(l[m]<<24|l[m]>>>8)&4278255360,f[g+m]^=l[m]},blockSize:128/32,ivSize:64/32});function x(){for(var f=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 m=f[v]+g[v],w=m&65535,b=m>>>16,d=((w*w>>>17)+w*b>>>15)+b*b,p=((m&4294901760)*m|0)+((m&65535)*m|0);u[v]=d^p}f[0]=u[0]+(u[7]<<16|u[7]>>>16)+(u[6]<<16|u[6]>>>16)|0,f[1]=u[1]+(u[0]<<8|u[0]>>>24)+u[7]|0,f[2]=u[2]+(u[1]<<16|u[1]>>>16)+(u[0]<<16|u[0]>>>16)|0,f[3]=u[3]+(u[2]<<8|u[2]>>>24)+u[1]|0,f[4]=u[4]+(u[3]<<16|u[3]>>>16)+(u[2]<<16|u[2]>>>16)|0,f[5]=u[5]+(u[4]<<8|u[4]>>>24)+u[3]|0,f[6]=u[6]+(u[5]<<16|u[5]>>>16)+(u[4]<<16|u[4]>>>16)|0,f[7]=u[7]+(u[6]<<8|u[6]>>>24)+u[5]|0}i.RabbitLegacy=o._createHelper(h)}(),n.RabbitLegacy})}(rabbitLegacy)),rabbitLegacy.exports}(function(e,r){(function(n,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(n){return n})})(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,r){return e&r}function op_or(e,r){return e|r}function op_xor(e,r){return e^r}function op_andnot(e,r){return e&~r}function lbit(e){if(e==0)return-1;var r=0;return e&65535||(e>>=16,r+=16),e&255||(e>>=8,r+=8),e&15||(e>>=4,r+=4),e&3||(e>>=2,r+=2),e&1||++r,r}function cbit(e){for(var r=0;e!=0;)e&=e-1,++r;return r}var b64map="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b64pad="=";function hex2b64(e){var r,n,i="";for(r=0;r+3<=e.length;r+=3)n=parseInt(e.substring(r,r+3),16),i+=b64map.charAt(n>>6)+b64map.charAt(n&63);for(r+1==e.length?(n=parseInt(e.substring(r,r+1),16),i+=b64map.charAt(n<<2)):r+2==e.length&&(n=parseInt(e.substring(r,r+2),16),i+=b64map.charAt(n>>2)+b64map.charAt((n&3)<<4));(i.length&3)>0;)i+=b64pad;return i}function b64tohex(e){var r="",n,i=0,a=0;for(n=0;n<e.length&&e.charAt(n)!=b64pad;++n){var o=b64map.indexOf(e.charAt(n));o<0||(i==0?(r+=int2char(o>>2),a=o&3,i=1):i==1?(r+=int2char(a<<2|o>>4),a=o&15,i=2):i==2?(r+=int2char(a),r+=int2char(o>>2),a=o&3,i=3):(r+=int2char(a<<2|o>>4),r+=int2char(o&15),i=0))}return i==1&&(r+=int2char(a<<2)),r}var decoder$1,Hex={decode:function(e){var r;if(decoder$1===void 0){var n="0123456789ABCDEF",i=` \f
71
+ */return n.mode.CTRGladman=function(){var i=n.lib.BlockCipherMode.extend();function a(l){if((l>>24&255)===255){var c=l>>16&255,u=l>>8&255,h=l&255;c===255?(c=0,u===255?(u=0,h===255?h=0:++h):++u):++c,l=0,l+=c<<16,l+=u<<8,l+=h}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,h=u.blockSize,x=this._iv,f=this._counter;x&&(f=this._counter=x.slice(0),this._iv=void 0),o(f);var g=f.slice(0);u.encryptBlock(g,0);for(var v=0;v<h;v++)l[c+v]^=g[v]}});return i.Decryptor=s,i}(),n.mode.CTRGladman})}(modeCtrGladman)),modeCtrGladman.exports}var modeOfb={exports:{}},hasRequiredModeOfb;function requireModeOfb(){return hasRequiredModeOfb||(hasRequiredModeOfb=1,function(e,r){(function(n,i,a){e.exports=i(requireCore(),requireCipherCore())})(commonjsGlobal,function(n){return n.mode.OFB=function(){var i=n.lib.BlockCipherMode.extend(),a=i.Encryptor=i.extend({processBlock:function(o,s){var l=this._cipher,c=l.blockSize,u=this._iv,h=this._keystream;u&&(h=this._keystream=u.slice(0),this._iv=void 0),l.encryptBlock(h,0);for(var x=0;x<c;x++)o[s+x]^=h[x]}});return i.Decryptor=a,i}(),n.mode.OFB})}(modeOfb)),modeOfb.exports}var modeEcb={exports:{}},hasRequiredModeEcb;function requireModeEcb(){return hasRequiredModeEcb||(hasRequiredModeEcb=1,function(e,r){(function(n,i,a){e.exports=i(requireCore(),requireCipherCore())})(commonjsGlobal,function(n){return n.mode.ECB=function(){var i=n.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}(),n.mode.ECB})}(modeEcb)),modeEcb.exports}var padAnsix923={exports:{}},hasRequiredPadAnsix923;function requirePadAnsix923(){return hasRequiredPadAnsix923||(hasRequiredPadAnsix923=1,function(e,r){(function(n,i,a){e.exports=i(requireCore(),requireCipherCore())})(commonjsGlobal,function(n){return n.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}},n.pad.Ansix923})}(padAnsix923)),padAnsix923.exports}var padIso10126={exports:{}},hasRequiredPadIso10126;function requirePadIso10126(){return hasRequiredPadIso10126||(hasRequiredPadIso10126=1,function(e,r){(function(n,i,a){e.exports=i(requireCore(),requireCipherCore())})(commonjsGlobal,function(n){return n.pad.Iso10126={pad:function(i,a){var o=a*4,s=o-i.sigBytes%o;i.concat(n.lib.WordArray.random(s-1)).concat(n.lib.WordArray.create([s<<24],1))},unpad:function(i){var a=i.words[i.sigBytes-1>>>2]&255;i.sigBytes-=a}},n.pad.Iso10126})}(padIso10126)),padIso10126.exports}var padIso97971={exports:{}},hasRequiredPadIso97971;function requirePadIso97971(){return hasRequiredPadIso97971||(hasRequiredPadIso97971=1,function(e,r){(function(n,i,a){e.exports=i(requireCore(),requireCipherCore())})(commonjsGlobal,function(n){return n.pad.Iso97971={pad:function(i,a){i.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(i,a)},unpad:function(i){n.pad.ZeroPadding.unpad(i),i.sigBytes--}},n.pad.Iso97971})}(padIso97971)),padIso97971.exports}var padZeropadding={exports:{}},hasRequiredPadZeropadding;function requirePadZeropadding(){return hasRequiredPadZeropadding||(hasRequiredPadZeropadding=1,function(e,r){(function(n,i,a){e.exports=i(requireCore(),requireCipherCore())})(commonjsGlobal,function(n){return n.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}}},n.pad.ZeroPadding})}(padZeropadding)),padZeropadding.exports}var padNopadding={exports:{}},hasRequiredPadNopadding;function requirePadNopadding(){return hasRequiredPadNopadding||(hasRequiredPadNopadding=1,function(e,r){(function(n,i,a){e.exports=i(requireCore(),requireCipherCore())})(commonjsGlobal,function(n){return n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding})}(padNopadding)),padNopadding.exports}var formatHex={exports:{}},hasRequiredFormatHex;function requireFormatHex(){return hasRequiredFormatHex||(hasRequiredFormatHex=1,function(e,r){(function(n,i,a){e.exports=i(requireCore(),requireCipherCore())})(commonjsGlobal,function(n){return function(i){var a=n,o=a.lib,s=o.CipherParams,l=a.enc,c=l.Hex,u=a.format;u.Hex={stringify:function(h){return h.ciphertext.toString(c)},parse:function(h){var x=c.parse(h);return s.create({ciphertext:x})}}}(),n.format.Hex})}(formatHex)),formatHex.exports}var aes={exports:{}},hasRequiredAes;function requireAes(){return hasRequiredAes||(hasRequiredAes=1,function(e,r){(function(n,i,a){e.exports=i(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(n){return function(){var i=n,a=i.lib,o=a.BlockCipher,s=i.algo,l=[],c=[],u=[],h=[],x=[],f=[],g=[],v=[],m=[],E=[];(function(){for(var p=[],y=0;y<256;y++)y<128?p[y]=y<<1:p[y]=y<<1^283;for(var S=0,k=0,y=0;y<256;y++){var P=k^k<<1^k<<2^k<<3^k<<4;P=P>>>8^P&255^99,l[S]=P,c[P]=S;var w=p[S],D=p[w],M=p[D],B=p[P]*257^P*16843008;u[S]=B<<24|B>>>8,h[S]=B<<16|B>>>16,x[S]=B<<8|B>>>24,f[S]=B;var B=M*16843009^D*65537^w*257^S*16843008;g[P]=B<<24|B>>>8,v[P]=B<<16|B>>>16,m[P]=B<<8|B>>>24,E[P]=B,S?(S=w^p[p[p[M^w]]],k^=p[p[k]]):S=k=1}})();var b=[0,1,2,4,8,16,32,64,128,27,54],d=s.AES=o.extend({_doReset:function(){var p;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var y=this._keyPriorReset=this._key,S=y.words,k=y.sigBytes/4,P=this._nRounds=k+6,w=(P+1)*4,D=this._keySchedule=[],M=0;M<w;M++)M<k?D[M]=S[M]:(p=D[M-1],M%k?k>6&&M%k==4&&(p=l[p>>>24]<<24|l[p>>>16&255]<<16|l[p>>>8&255]<<8|l[p&255]):(p=p<<8|p>>>24,p=l[p>>>24]<<24|l[p>>>16&255]<<16|l[p>>>8&255]<<8|l[p&255],p^=b[M/k|0]<<24),D[M]=D[M-k]^p);for(var B=this._invKeySchedule=[],L=0;L<w;L++){var M=w-L;if(L%4)var p=D[M];else var p=D[M-4];L<4||M<=4?B[L]=p:B[L]=g[l[p>>>24]]^v[l[p>>>16&255]]^m[l[p>>>8&255]]^E[l[p&255]]}}},encryptBlock:function(p,y){this._doCryptBlock(p,y,this._keySchedule,u,h,x,f,l)},decryptBlock:function(p,y){var S=p[y+1];p[y+1]=p[y+3],p[y+3]=S,this._doCryptBlock(p,y,this._invKeySchedule,g,v,m,E,c);var S=p[y+1];p[y+1]=p[y+3],p[y+3]=S},_doCryptBlock:function(p,y,S,k,P,w,D,M){for(var B=this._nRounds,L=p[y]^S[0],V=p[y+1]^S[1],$=p[y+2]^S[2],N=p[y+3]^S[3],T=4,I=1;I<B;I++){var A=k[L>>>24]^P[V>>>16&255]^w[$>>>8&255]^D[N&255]^S[T++],C=k[V>>>24]^P[$>>>16&255]^w[N>>>8&255]^D[L&255]^S[T++],F=k[$>>>24]^P[N>>>16&255]^w[L>>>8&255]^D[V&255]^S[T++],_=k[N>>>24]^P[L>>>16&255]^w[V>>>8&255]^D[$&255]^S[T++];L=A,V=C,$=F,N=_}var A=(M[L>>>24]<<24|M[V>>>16&255]<<16|M[$>>>8&255]<<8|M[N&255])^S[T++],C=(M[V>>>24]<<24|M[$>>>16&255]<<16|M[N>>>8&255]<<8|M[L&255])^S[T++],F=(M[$>>>24]<<24|M[N>>>16&255]<<16|M[L>>>8&255]<<8|M[V&255])^S[T++],_=(M[N>>>24]<<24|M[L>>>16&255]<<16|M[V>>>8&255]<<8|M[$&255])^S[T++];p[y]=A,p[y+1]=C,p[y+2]=F,p[y+3]=_},keySize:256/32});i.AES=o._createHelper(d)}(),n.AES})}(aes)),aes.exports}var tripledes={exports:{}},hasRequiredTripledes;function requireTripledes(){return hasRequiredTripledes||(hasRequiredTripledes=1,function(e,r){(function(n,i,a){e.exports=i(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(n){return function(){var i=n,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],h=[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}],f=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],g=l.DES=s.extend({_doReset:function(){for(var b=this._key,d=b.words,p=[],y=0;y<56;y++){var S=c[y]-1;p[y]=d[S>>>5]>>>31-S%32&1}for(var k=this._subKeys=[],P=0;P<16;P++){for(var w=k[P]=[],D=h[P],y=0;y<24;y++)w[y/6|0]|=p[(u[y]-1+D)%28]<<31-y%6,w[4+(y/6|0)]|=p[28+(u[y+24]-1+D)%28]<<31-y%6;w[0]=w[0]<<1|w[0]>>>31;for(var y=1;y<7;y++)w[y]=w[y]>>>(y-1)*4+3;w[7]=w[7]<<5|w[7]>>>27}for(var M=this._invSubKeys=[],y=0;y<16;y++)M[y]=k[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,p){this._lBlock=b[d],this._rBlock=b[d+1],v.call(this,4,252645135),v.call(this,16,65535),m.call(this,2,858993459),m.call(this,8,16711935),v.call(this,1,1431655765);for(var y=0;y<16;y++){for(var S=p[y],k=this._lBlock,P=this._rBlock,w=0,D=0;D<8;D++)w|=x[D][((P^S[D])&f[D])>>>0];this._lBlock=P,this._rBlock=k^w}var M=this._lBlock;this._lBlock=this._rBlock,this._rBlock=M,v.call(this,1,1431655765),m.call(this,8,16711935),m.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 p=(this._lBlock>>>b^this._rBlock)&d;this._rBlock^=p,this._lBlock^=p<<b}function m(b,d){var p=(this._rBlock>>>b^this._lBlock)&d;this._lBlock^=p,this._rBlock^=p<<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 p=d.slice(0,2),y=d.length<4?d.slice(0,2):d.slice(2,4),S=d.length<6?d.slice(0,2):d.slice(4,6);this._des1=g.createEncryptor(o.create(p)),this._des2=g.createEncryptor(o.create(y)),this._des3=g.createEncryptor(o.create(S))},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)}(),n.TripleDES})}(tripledes)),tripledes.exports}var rc4={exports:{}},hasRequiredRc4;function requireRc4(){return hasRequiredRc4||(hasRequiredRc4=1,function(e,r){(function(n,i,a){e.exports=i(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(n){return function(){var i=n,a=i.lib,o=a.StreamCipher,s=i.algo,l=s.RC4=o.extend({_doReset:function(){for(var h=this._key,x=h.words,f=h.sigBytes,g=this._S=[],v=0;v<256;v++)g[v]=v;for(var v=0,m=0;v<256;v++){var E=v%f,b=x[E>>>2]>>>24-E%4*8&255;m=(m+g[v]+b)%256;var d=g[v];g[v]=g[m],g[m]=d}this._i=this._j=0},_doProcessBlock:function(h,x){h[x]^=c.call(this)},keySize:256/32,ivSize:0});function c(){for(var h=this._S,x=this._i,f=this._j,g=0,v=0;v<4;v++){x=(x+1)%256,f=(f+h[x])%256;var m=h[x];h[x]=h[f],h[f]=m,g|=h[(h[x]+h[f])%256]<<24-v*8}return this._i=x,this._j=f,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 h=this.cfg.drop;h>0;h--)c.call(this)}});i.RC4Drop=o._createHelper(u)}(),n.RC4})}(rc4)),rc4.exports}var rabbit={exports:{}},hasRequiredRabbit;function requireRabbit(){return hasRequiredRabbit||(hasRequiredRabbit=1,function(e,r){(function(n,i,a){e.exports=i(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(n){return function(){var i=n,a=i.lib,o=a.StreamCipher,s=i.algo,l=[],c=[],u=[],h=s.Rabbit=o.extend({_doReset:function(){for(var f=this._key.words,g=this.cfg.iv,v=0;v<4;v++)f[v]=(f[v]<<8|f[v]>>>24)&16711935|(f[v]<<24|f[v]>>>8)&4278255360;var m=this._X=[f[0],f[3]<<16|f[2]>>>16,f[1],f[0]<<16|f[3]>>>16,f[2],f[1]<<16|f[0]>>>16,f[3],f[2]<<16|f[1]>>>16],E=this._C=[f[2]<<16|f[2]>>>16,f[0]&4294901760|f[1]&65535,f[3]<<16|f[3]>>>16,f[1]&4294901760|f[2]&65535,f[0]<<16|f[0]>>>16,f[2]&4294901760|f[3]&65535,f[1]<<16|f[1]>>>16,f[3]&4294901760|f[0]&65535];this._b=0;for(var v=0;v<4;v++)x.call(this);for(var v=0;v<8;v++)E[v]^=m[v+4&7];if(g){var b=g.words,d=b[0],p=b[1],y=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360,S=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,k=y>>>16|S&4294901760,P=S<<16|y&65535;E[0]^=y,E[1]^=k,E[2]^=S,E[3]^=P,E[4]^=y,E[5]^=k,E[6]^=S,E[7]^=P;for(var v=0;v<4;v++)x.call(this)}},_doProcessBlock:function(f,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 m=0;m<4;m++)l[m]=(l[m]<<8|l[m]>>>24)&16711935|(l[m]<<24|l[m]>>>8)&4278255360,f[g+m]^=l[m]},blockSize:128/32,ivSize:64/32});function x(){for(var f=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 m=f[v]+g[v],E=m&65535,b=m>>>16,d=((E*E>>>17)+E*b>>>15)+b*b,p=((m&4294901760)*m|0)+((m&65535)*m|0);u[v]=d^p}f[0]=u[0]+(u[7]<<16|u[7]>>>16)+(u[6]<<16|u[6]>>>16)|0,f[1]=u[1]+(u[0]<<8|u[0]>>>24)+u[7]|0,f[2]=u[2]+(u[1]<<16|u[1]>>>16)+(u[0]<<16|u[0]>>>16)|0,f[3]=u[3]+(u[2]<<8|u[2]>>>24)+u[1]|0,f[4]=u[4]+(u[3]<<16|u[3]>>>16)+(u[2]<<16|u[2]>>>16)|0,f[5]=u[5]+(u[4]<<8|u[4]>>>24)+u[3]|0,f[6]=u[6]+(u[5]<<16|u[5]>>>16)+(u[4]<<16|u[4]>>>16)|0,f[7]=u[7]+(u[6]<<8|u[6]>>>24)+u[5]|0}i.Rabbit=o._createHelper(h)}(),n.Rabbit})}(rabbit)),rabbit.exports}var rabbitLegacy={exports:{}},hasRequiredRabbitLegacy;function requireRabbitLegacy(){return hasRequiredRabbitLegacy||(hasRequiredRabbitLegacy=1,function(e,r){(function(n,i,a){e.exports=i(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(n){return function(){var i=n,a=i.lib,o=a.StreamCipher,s=i.algo,l=[],c=[],u=[],h=s.RabbitLegacy=o.extend({_doReset:function(){var f=this._key.words,g=this.cfg.iv,v=this._X=[f[0],f[3]<<16|f[2]>>>16,f[1],f[0]<<16|f[3]>>>16,f[2],f[1]<<16|f[0]>>>16,f[3],f[2]<<16|f[1]>>>16],m=this._C=[f[2]<<16|f[2]>>>16,f[0]&4294901760|f[1]&65535,f[3]<<16|f[3]>>>16,f[1]&4294901760|f[2]&65535,f[0]<<16|f[0]>>>16,f[2]&4294901760|f[3]&65535,f[1]<<16|f[1]>>>16,f[3]&4294901760|f[0]&65535];this._b=0;for(var E=0;E<4;E++)x.call(this);for(var E=0;E<8;E++)m[E]^=v[E+4&7];if(g){var b=g.words,d=b[0],p=b[1],y=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360,S=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,k=y>>>16|S&4294901760,P=S<<16|y&65535;m[0]^=y,m[1]^=k,m[2]^=S,m[3]^=P,m[4]^=y,m[5]^=k,m[6]^=S,m[7]^=P;for(var E=0;E<4;E++)x.call(this)}},_doProcessBlock:function(f,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 m=0;m<4;m++)l[m]=(l[m]<<8|l[m]>>>24)&16711935|(l[m]<<24|l[m]>>>8)&4278255360,f[g+m]^=l[m]},blockSize:128/32,ivSize:64/32});function x(){for(var f=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 m=f[v]+g[v],E=m&65535,b=m>>>16,d=((E*E>>>17)+E*b>>>15)+b*b,p=((m&4294901760)*m|0)+((m&65535)*m|0);u[v]=d^p}f[0]=u[0]+(u[7]<<16|u[7]>>>16)+(u[6]<<16|u[6]>>>16)|0,f[1]=u[1]+(u[0]<<8|u[0]>>>24)+u[7]|0,f[2]=u[2]+(u[1]<<16|u[1]>>>16)+(u[0]<<16|u[0]>>>16)|0,f[3]=u[3]+(u[2]<<8|u[2]>>>24)+u[1]|0,f[4]=u[4]+(u[3]<<16|u[3]>>>16)+(u[2]<<16|u[2]>>>16)|0,f[5]=u[5]+(u[4]<<8|u[4]>>>24)+u[3]|0,f[6]=u[6]+(u[5]<<16|u[5]>>>16)+(u[4]<<16|u[4]>>>16)|0,f[7]=u[7]+(u[6]<<8|u[6]>>>24)+u[5]|0}i.RabbitLegacy=o._createHelper(h)}(),n.RabbitLegacy})}(rabbitLegacy)),rabbitLegacy.exports}(function(e,r){(function(n,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(n){return n})})(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,r){return e&r}function op_or(e,r){return e|r}function op_xor(e,r){return e^r}function op_andnot(e,r){return e&~r}function lbit(e){if(e==0)return-1;var r=0;return e&65535||(e>>=16,r+=16),e&255||(e>>=8,r+=8),e&15||(e>>=4,r+=4),e&3||(e>>=2,r+=2),e&1||++r,r}function cbit(e){for(var r=0;e!=0;)e&=e-1,++r;return r}var b64map="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b64pad="=";function hex2b64(e){var r,n,i="";for(r=0;r+3<=e.length;r+=3)n=parseInt(e.substring(r,r+3),16),i+=b64map.charAt(n>>6)+b64map.charAt(n&63);for(r+1==e.length?(n=parseInt(e.substring(r,r+1),16),i+=b64map.charAt(n<<2)):r+2==e.length&&(n=parseInt(e.substring(r,r+2),16),i+=b64map.charAt(n>>2)+b64map.charAt((n&3)<<4));(i.length&3)>0;)i+=b64pad;return i}function b64tohex(e){var r="",n,i=0,a=0;for(n=0;n<e.length&&e.charAt(n)!=b64pad;++n){var o=b64map.indexOf(e.charAt(n));o<0||(i==0?(r+=int2char(o>>2),a=o&3,i=1):i==1?(r+=int2char(a<<2|o>>4),a=o&15,i=2):i==2?(r+=int2char(a),r+=int2char(o>>2),a=o&3,i=3):(r+=int2char(a<<2|o>>4),r+=int2char(o&15),i=0))}return i==1&&(r+=int2char(a<<2)),r}var decoder$1,Hex={decode:function(e){var r;if(decoder$1===void 0){var n="0123456789ABCDEF",i=` \f
72
72
  \r  \u2028\u2029`;for(decoder$1={},r=0;r<16;++r)decoder$1[n.charAt(r)]=r;for(n=n.toLowerCase(),r=10;r<16;++r)decoder$1[n.charAt(r)]=r;for(r=0;r<i.length;++r)decoder$1[i.charAt(r)]=-1}var a=[],o=0,s=0;for(r=0;r<e.length;++r){var l=e.charAt(r);if(l=="=")break;if(l=decoder$1[l],l!=-1){if(l===void 0)throw new Error("Illegal character at offset "+r);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 r;if(decoder===void 0){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=`= \f
73
73
  \r  \u2028\u2029`;for(decoder=Object.create(null),r=0;r<64;++r)decoder[n.charAt(r)]=r;for(decoder["-"]=62,decoder._=63,r=0;r<i.length;++r)decoder[i.charAt(r)]=-1}var a=[],o=0,s=0;for(r=0;r<e.length;++r){var l=e.charAt(r);if(l=="=")break;if(l=decoder[l],l!=-1){if(l===void 0)throw new Error("Illegal character at offset "+r);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 r=Base64.re.exec(e);if(r)if(r[1])e=r[1];else if(r[2])e=r[2];else throw new Error("RegExp out of sync");return Base64.decode(e)}},max=1e13,Int10=function(){function e(r){this.buf=[+r||0]}return e.prototype.mulAdd=function(r,n){var i=this.buf,a=i.length,o,s;for(o=0;o<a;++o)s=i[o]*r+n,s<max?n=0:(n=0|s/max,s-=n*max),i[o]=s;n>0&&(i[o]=n)},e.prototype.sub=function(r){var n=this.buf,i=n.length,a,o;for(a=0;a<i;++a)o=n[a]-r,o<0?(o+=max,r=1):r=0,n[a]=o;for(;n[n.length-1]===0;)n.pop()},e.prototype.toString=function(r){if((r||10)!=10)throw new Error("only base 10 is supported");for(var n=this.buf,i=n[n.length-1].toString(),a=n.length-2;a>=0;--a)i+=(max+n[a]).toString().substring(1);return i},e.prototype.valueOf=function(){for(var r=this.buf,n=0,i=r.length-1;i>=0;--i)n=n*max+r[i];return n},e.prototype.simplify=function(){var r=this.buf;return r.length==1?r[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,r){return e.length>r&&(e=e.substring(0,r)+ellipsis),e}var Stream=function(){function e(r,n){this.hexDigits="0123456789ABCDEF",r instanceof e?(this.enc=r.enc,this.pos=r.pos):(this.enc=r,this.pos=n)}return e.prototype.get=function(r){if(r===void 0&&(r=this.pos++),r>=this.enc.length)throw new Error("Requesting byte offset ".concat(r," on a stream of length ").concat(this.enc.length));return typeof this.enc=="string"?this.enc.charCodeAt(r):this.enc[r]},e.prototype.hexByte=function(r){return this.hexDigits.charAt(r>>4&15)+this.hexDigits.charAt(r&15)},e.prototype.hexDump=function(r,n,i){for(var a="",o=r;o<n;++o)if(a+=this.hexByte(this.get(o)),i!==!0)switch(o&15){case 7:a+=" ";break;case 15:a+=`
74
74
  `;break;default:a+=" "}return a},e.prototype.isASCII=function(r,n){for(var i=r;i<n;++i){var a=this.get(i);if(a<32||a>176)return!1}return!0},e.prototype.parseStringISO=function(r,n){for(var i="",a=r;a<n;++a)i+=String.fromCharCode(this.get(a));return i},e.prototype.parseStringUTF=function(r,n){for(var i="",a=r;a<n;){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(r,n){for(var i="",a,o,s=r;s<n;)a=this.get(s++),o=this.get(s++),i+=String.fromCharCode(a<<8|o);return i},e.prototype.parseTime=function(r,n,i){var a=this.parseStringISO(r,n),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(r,n){for(var i=this.get(r),a=i>127,o=a?255:0,s,l="";i==o&&++r<n;)i=this.get(r);if(s=n-r,s===0)return a?-1:0;if(s>4){for(l=i,s<<=3;!((+l^o)&128);)l=+l<<1,--s;l="("+s+` bit)
75
75
  `}a&&(i=i-256);for(var c=new Int10(i),u=r+1;u<n;++u)c.mulAdd(256,this.get(u));return l+c.toString()},e.prototype.parseBitString=function(r,n,i){for(var a=this.get(r),o=(n-r-1<<3)-a,s="("+o+` bit)
76
76
  `,l="",c=r+1;c<n;++c){for(var u=this.get(c),h=c==n-1?a:0,x=7;x>=h;--x)l+=u>>x&1?"1":"0";if(l.length>i)return s+stringCut(l,i)}return s+l},e.prototype.parseOctetString=function(r,n,i){if(this.isASCII(r,n))return stringCut(this.parseStringISO(r,n),i);var a=n-r,o="("+a+` byte)
77
77
  `;i/=2,a>i&&(n=r+i);for(var s=r;s<n;++s)o+=this.hexByte(this.get(s));return a>i&&(o+=ellipsis),o},e.prototype.parseOID=function(r,n,i){for(var a="",o=new Int10,s=0,l=r;l<n;++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(r,n,i,a,o){if(!(a instanceof ASN1Tag))throw new Error("Invalid tag value.");this.stream=r,this.header=n,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(r){if(this.tag===void 0)return null;r===void 0&&(r=1/0);var n=this.posContent(),i=Math.abs(this.length);if(!this.tag.isUniversal())return this.sub!==null?"("+this.sub.length+" elem)":this.stream.parseOctetString(n,n+i,r);switch(this.tag.tagNumber){case 1:return this.stream.get(n)===0?"false":"true";case 2:return this.stream.parseInteger(n,n+i);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(n,n+i,r);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(n,n+i,r);case 6:return this.stream.parseOID(n,n+i,r);case 16:case 17:return this.sub!==null?"("+this.sub.length+" elem)":"(no elem)";case 12:return stringCut(this.stream.parseStringUTF(n,n+i),r);case 18:case 19:case 20:case 21:case 22:case 26:return stringCut(this.stream.parseStringISO(n,n+i),r);case 30:return stringCut(this.stream.parseStringBMP(n,n+i),r);case 23:case 24:return this.stream.parseTime(n,n+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(r){r===void 0&&(r="");var n=r+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(n+="+"),n+=this.length,this.tag.tagConstructed?n+=" (constructed)":this.tag.isUniversal()&&(this.tag.tagNumber==3||this.tag.tagNumber==4)&&this.sub!==null&&(n+=" (encapsulates)"),n+=`
78
- `,this.sub!==null){r+=" ";for(var i=0,a=this.sub.length;i<a;++i)n+=this.sub[i].toPrettyString(r)}return n},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(r){var n=r.get(),i=n&127;if(i==n)return i;if(i>6)throw new Error("Length over 48 bits not supported at position "+(r.pos-1));if(i===0)return null;n=0;for(var a=0;a<i;++a)n=n*256+r.get();return n},e.prototype.getHexStringValue=function(){var r=this.toHexString(),n=this.header*2,i=this.length*2;return r.substr(n,i)},e.decode=function(r){var n;r instanceof Stream?n=r:n=new Stream(r,0);var i=new Stream(n),a=new ASN1Tag(n),o=e.decodeLength(n),s=n.pos,l=s-i.pos,c=null,u=function(){var x=[];if(o!==null){for(var f=s+o;n.pos<f;)x[x.length]=e.decode(n);if(n.pos!=f)throw new Error("Content size is not correct for container starting at offset "+s)}else try{for(;;){var g=e.decode(n);if(g.tag.isEOC())break;x[x.length]=g}o=s-n.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&&n.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");c=u();for(var h=0;h<c.length;++h)if(c[h].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);n.pos=s+Math.abs(o)}return new e(i,l,o,a,c)},e}(),ASN1Tag=function(){function e(r){var n=r.get();if(this.tagClass=n>>6,this.tagConstructed=(n&32)!==0,this.tagNumber=n&31,this.tagNumber==31){var i=new Int10;do n=r.get(),i.mulAdd(128,n&127);while(n&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(r,n,i){r!=null&&(typeof r=="number"?this.fromNumber(r,n,i):n==null&&typeof r!="string"?this.fromString(r,256):this.fromString(r,n))}return e.prototype.toString=function(r){if(this.s<0)return"-"+this.negate().toString(r);var n;if(r==16)n=4;else if(r==8)n=3;else if(r==2)n=1;else if(r==32)n=5;else if(r==4)n=2;else return this.toRadix(r);var i=(1<<n)-1,a,o=!1,s="",l=this.t,c=this.DB-l*this.DB%n;if(l-- >0)for(c<this.DB&&(a=this[l]>>c)>0&&(o=!0,s=int2char(a));l>=0;)c<n?(a=(this[l]&(1<<c)-1)<<n-c,a|=this[--l]>>(c+=this.DB-n)):(a=this[l]>>(c-=n)&i,c<=0&&(c+=this.DB,--l)),a>0&&(o=!0),o&&(s+=int2char(a));return o?s:"0"},e.prototype.negate=function(){var r=nbi();return e.ZERO.subTo(this,r),r},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.compareTo=function(r){var n=this.s-r.s;if(n!=0)return n;var i=this.t;if(n=i-r.t,n!=0)return this.s<0?-n:n;for(;--i>=0;)if((n=this[i]-r[i])!=0)return n;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(r){var n=nbi();return this.abs().divRemTo(r,null,n),this.s<0&&n.compareTo(e.ZERO)>0&&r.subTo(n,n),n},e.prototype.modPowInt=function(r,n){var i;return r<256||n.isEven()?i=new Classic(n):i=new Montgomery(n),this.exp(r,i)},e.prototype.clone=function(){var r=nbi();return this.copyTo(r),r},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 r=this.t,n=[];n[0]=this.s;var i=this.DB-r*this.DB%8,a,o=0;if(r-- >0)for(i<this.DB&&(a=this[r]>>i)!=(this.s&this.DM)>>i&&(n[o++]=a|this.s<<this.DB-i);r>=0;)i<8?(a=(this[r]&(1<<i)-1)<<8-i,a|=this[--r]>>(i+=this.DB-8)):(a=this[r]>>(i-=8)&255,i<=0&&(i+=this.DB,--r)),a&128&&(a|=-256),o==0&&(this.s&128)!=(a&128)&&++o,(o>0||a!=this.s)&&(n[o++]=a);return n},e.prototype.equals=function(r){return this.compareTo(r)==0},e.prototype.min=function(r){return this.compareTo(r)<0?this:r},e.prototype.max=function(r){return this.compareTo(r)>0?this:r},e.prototype.and=function(r){var n=nbi();return this.bitwiseTo(r,op_and,n),n},e.prototype.or=function(r){var n=nbi();return this.bitwiseTo(r,op_or,n),n},e.prototype.xor=function(r){var n=nbi();return this.bitwiseTo(r,op_xor,n),n},e.prototype.andNot=function(r){var n=nbi();return this.bitwiseTo(r,op_andnot,n),n},e.prototype.not=function(){for(var r=nbi(),n=0;n<this.t;++n)r[n]=this.DM&~this[n];return r.t=this.t,r.s=~this.s,r},e.prototype.shiftLeft=function(r){var n=nbi();return r<0?this.rShiftTo(-r,n):this.lShiftTo(r,n),n},e.prototype.shiftRight=function(r){var n=nbi();return r<0?this.lShiftTo(-r,n):this.rShiftTo(r,n),n},e.prototype.getLowestSetBit=function(){for(var r=0;r<this.t;++r)if(this[r]!=0)return r*this.DB+lbit(this[r]);return this.s<0?this.t*this.DB:-1},e.prototype.bitCount=function(){for(var r=0,n=this.s&this.DM,i=0;i<this.t;++i)r+=cbit(this[i]^n);return r},e.prototype.testBit=function(r){var n=Math.floor(r/this.DB);return n>=this.t?this.s!=0:(this[n]&1<<r%this.DB)!=0},e.prototype.setBit=function(r){return this.changeBit(r,op_or)},e.prototype.clearBit=function(r){return this.changeBit(r,op_andnot)},e.prototype.flipBit=function(r){return this.changeBit(r,op_xor)},e.prototype.add=function(r){var n=nbi();return this.addTo(r,n),n},e.prototype.subtract=function(r){var n=nbi();return this.subTo(r,n),n},e.prototype.multiply=function(r){var n=nbi();return this.multiplyTo(r,n),n},e.prototype.divide=function(r){var n=nbi();return this.divRemTo(r,n,null),n},e.prototype.remainder=function(r){var n=nbi();return this.divRemTo(r,null,n),n},e.prototype.divideAndRemainder=function(r){var n=nbi(),i=nbi();return this.divRemTo(r,n,i),[n,i]},e.prototype.modPow=function(r,n){var i=r.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(n):n.isEven()?s=new Barrett(n):s=new Montgomery(n);var l=[],c=3,u=a-1,h=(1<<a)-1;if(l[1]=s.convert(this),a>1){var x=nbi();for(s.sqrTo(l[1],x);c<=h;)l[c]=nbi(),s.mulTo(x,l[c-2],l[c]),c+=2}var f=r.t-1,g,v=!0,m=nbi(),w;for(i=nbits(r[f])-1;f>=0;){for(i>=u?g=r[f]>>i-u&h:(g=(r[f]&(1<<i+1)-1)<<u-i,f>0&&(g|=r[f-1]>>this.DB+i-u)),c=a;!(g&1);)g>>=1,--c;if((i-=c)<0&&(i+=this.DB,--f),v)l[g].copyTo(o),v=!1;else{for(;c>1;)s.sqrTo(o,m),s.sqrTo(m,o),c-=2;c>0?s.sqrTo(o,m):(w=o,o=m,m=w),s.mulTo(m,l[g],o)}for(;f>=0&&!(r[f]&1<<i);)s.sqrTo(o,m),w=o,o=m,m=w,--i<0&&(i=this.DB-1,--f)}return s.revert(o)},e.prototype.modInverse=function(r){var n=r.isEven();if(this.isEven()&&n||r.signum()==0)return e.ZERO;for(var i=r.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),n?((!o.isEven()||!s.isEven())&&(o.addTo(this,o),s.subTo(r,s)),o.rShiftTo(1,o)):s.isEven()||s.subTo(r,s),s.rShiftTo(1,s);for(;a.isEven();)a.rShiftTo(1,a),n?((!l.isEven()||!c.isEven())&&(l.addTo(this,l),c.subTo(r,c)),l.rShiftTo(1,l)):c.isEven()||c.subTo(r,c),c.rShiftTo(1,c);i.compareTo(a)>=0?(i.subTo(a,i),n&&o.subTo(l,o),s.subTo(c,s)):(a.subTo(i,a),n&&l.subTo(o,l),c.subTo(s,c))}if(a.compareTo(e.ONE)!=0)return e.ZERO;if(c.compareTo(r)>=0)return c.subtract(r);if(c.signum()<0)c.addTo(r,c);else return c;return c.signum()<0?c.add(r):c},e.prototype.pow=function(r){return this.exp(r,new NullExp)},e.prototype.gcd=function(r){var n=this.s<0?this.negate():this.clone(),i=r.s<0?r.negate():r.clone();if(n.compareTo(i)<0){var a=n;n=i,i=a}var o=n.getLowestSetBit(),s=i.getLowestSetBit();if(s<0)return n;for(o<s&&(s=o),s>0&&(n.rShiftTo(s,n),i.rShiftTo(s,i));n.signum()>0;)(o=n.getLowestSetBit())>0&&n.rShiftTo(o,n),(o=i.getLowestSetBit())>0&&i.rShiftTo(o,i),n.compareTo(i)>=0?(n.subTo(i,n),n.rShiftTo(1,n)):(i.subTo(n,i),i.rShiftTo(1,i));return s>0&&i.lShiftTo(s,i),i},e.prototype.isProbablePrime=function(r){var n,i=this.abs();if(i.t==1&&i[0]<=lowprimes[lowprimes.length-1]){for(n=0;n<lowprimes.length;++n)if(i[0]==lowprimes[n])return!0;return!1}if(i.isEven())return!1;for(n=1;n<lowprimes.length;){for(var a=lowprimes[n],o=n+1;o<lowprimes.length&&a<lplim;)a*=lowprimes[o++];for(a=i.modInt(a);n<o;)if(a%lowprimes[n++]==0)return!1}return i.millerRabin(r)},e.prototype.copyTo=function(r){for(var n=this.t-1;n>=0;--n)r[n]=this[n];r.t=this.t,r.s=this.s},e.prototype.fromInt=function(r){this.t=1,this.s=r<0?-1:0,r>0?this[0]=r:r<-1?this[0]=r+this.DV:this.t=0},e.prototype.fromString=function(r,n){var i;if(n==16)i=4;else if(n==8)i=3;else if(n==256)i=8;else if(n==2)i=1;else if(n==32)i=5;else if(n==4)i=2;else{this.fromRadix(r,n);return}this.t=0,this.s=0;for(var a=r.length,o=!1,s=0;--a>=0;){var l=i==8?+r[a]&255:intAt(r,a);if(l<0){r.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&&+r[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 r=this.s&this.DM;this.t>0&&this[this.t-1]==r;)--this.t},e.prototype.dlShiftTo=function(r,n){var i;for(i=this.t-1;i>=0;--i)n[i+r]=this[i];for(i=r-1;i>=0;--i)n[i]=0;n.t=this.t+r,n.s=this.s},e.prototype.drShiftTo=function(r,n){for(var i=r;i<this.t;++i)n[i-r]=this[i];n.t=Math.max(this.t-r,0),n.s=this.s},e.prototype.lShiftTo=function(r,n){for(var i=r%this.DB,a=this.DB-i,o=(1<<a)-1,s=Math.floor(r/this.DB),l=this.s<<i&this.DM,c=this.t-1;c>=0;--c)n[c+s+1]=this[c]>>a|l,l=(this[c]&o)<<i;for(var c=s-1;c>=0;--c)n[c]=0;n[s]=l,n.t=this.t+s+1,n.s=this.s,n.clamp()},e.prototype.rShiftTo=function(r,n){n.s=this.s;var i=Math.floor(r/this.DB);if(i>=this.t){n.t=0;return}var a=r%this.DB,o=this.DB-a,s=(1<<a)-1;n[0]=this[i]>>a;for(var l=i+1;l<this.t;++l)n[l-i-1]|=(this[l]&s)<<o,n[l-i]=this[l]>>a;a>0&&(n[this.t-i-1]|=(this.s&s)<<o),n.t=this.t-i,n.clamp()},e.prototype.subTo=function(r,n){for(var i=0,a=0,o=Math.min(r.t,this.t);i<o;)a+=this[i]-r[i],n[i++]=a&this.DM,a>>=this.DB;if(r.t<this.t){for(a-=r.s;i<this.t;)a+=this[i],n[i++]=a&this.DM,a>>=this.DB;a+=this.s}else{for(a+=this.s;i<r.t;)a-=r[i],n[i++]=a&this.DM,a>>=this.DB;a-=r.s}n.s=a<0?-1:0,a<-1?n[i++]=this.DV+a:a>0&&(n[i++]=a),n.t=i,n.clamp()},e.prototype.multiplyTo=function(r,n){var i=this.abs(),a=r.abs(),o=i.t;for(n.t=o+a.t;--o>=0;)n[o]=0;for(o=0;o<a.t;++o)n[o+i.t]=i.am(0,a[o],n,o,0,i.t);n.s=0,n.clamp(),this.s!=r.s&&e.ZERO.subTo(n,n)},e.prototype.squareTo=function(r){for(var n=this.abs(),i=r.t=2*n.t;--i>=0;)r[i]=0;for(i=0;i<n.t-1;++i){var a=n.am(i,n[i],r,2*i,0,1);(r[i+n.t]+=n.am(i+1,2*n[i],r,2*i+1,a,n.t-i-1))>=n.DV&&(r[i+n.t]-=n.DV,r[i+n.t+1]=1)}r.t>0&&(r[r.t-1]+=n.am(i,n[i],r,2*i,0,1)),r.s=0,r.clamp()},e.prototype.divRemTo=function(r,n,i){var a=r.abs();if(!(a.t<=0)){var o=this.abs();if(o.t<a.t){n!=null&&n.fromInt(0),i!=null&&this.copyTo(i);return}i==null&&(i=nbi());var s=nbi(),l=this.s,c=r.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 h=s.t,x=s[h-1];if(x!=0){var f=x*(1<<this.F1)+(h>1?s[h-2]>>this.F2:0),g=this.FV/f,v=(1<<this.F1)/f,m=1<<this.F2,w=i.t,b=w-h,d=n??nbi();for(s.dlShiftTo(b,d),i.compareTo(d)>=0&&(i[i.t++]=1,i.subTo(d,i)),e.ONE.dlShiftTo(h,d),d.subTo(s,s);s.t<h;)s[s.t++]=0;for(;--b>=0;){var p=i[--w]==x?this.DM:Math.floor(i[w]*g+(i[w-1]+m)*v);if((i[w]+=s.am(0,p,i,b,0,h))<p)for(s.dlShiftTo(b,d),i.subTo(d,i);i[w]<--p;)i.subTo(d,i)}n!=null&&(i.drShiftTo(h,n),l!=c&&e.ZERO.subTo(n,n)),i.t=h,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 r=this[0];if(!(r&1))return 0;var n=r&3;return n=n*(2-(r&15)*n)&15,n=n*(2-(r&255)*n)&255,n=n*(2-((r&65535)*n&65535))&65535,n=n*(2-r*n%this.DV)%this.DV,n>0?this.DV-n:-n},e.prototype.isEven=function(){return(this.t>0?this[0]&1:this.s)==0},e.prototype.exp=function(r,n){if(r>4294967295||r<1)return e.ONE;var i=nbi(),a=nbi(),o=n.convert(this),s=nbits(r)-1;for(o.copyTo(i);--s>=0;)if(n.sqrTo(i,a),(r&1<<s)>0)n.mulTo(a,o,i);else{var l=i;i=a,a=l}return n.revert(i)},e.prototype.chunkSize=function(r){return Math.floor(Math.LN2*this.DB/Math.log(r))},e.prototype.toRadix=function(r){if(r==null&&(r=10),this.signum()==0||r<2||r>36)return"0";var n=this.chunkSize(r),i=Math.pow(r,n),a=nbv(i),o=nbi(),s=nbi(),l="";for(this.divRemTo(a,o,s);o.signum()>0;)l=(i+s.intValue()).toString(r).substr(1)+l,o.divRemTo(a,o,s);return s.intValue().toString(r)+l},e.prototype.fromRadix=function(r,n){this.fromInt(0),n==null&&(n=10);for(var i=this.chunkSize(n),a=Math.pow(n,i),o=!1,s=0,l=0,c=0;c<r.length;++c){var u=intAt(r,c);if(u<0){r.charAt(c)=="-"&&this.signum()==0&&(o=!0);continue}l=n*l+u,++s>=i&&(this.dMultiply(a),this.dAddOffset(l,0),s=0,l=0)}s>0&&(this.dMultiply(Math.pow(n,s)),this.dAddOffset(l,0)),o&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(r,n,i){if(typeof n=="number")if(r<2)this.fromInt(1);else for(this.fromNumber(r,i),this.testBit(r-1)||this.bitwiseTo(e.ONE.shiftLeft(r-1),op_or,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(n);)this.dAddOffset(2,0),this.bitLength()>r&&this.subTo(e.ONE.shiftLeft(r-1),this);else{var a=[],o=r&7;a.length=(r>>3)+1,n.nextBytes(a),o>0?a[0]&=(1<<o)-1:a[0]=0,this.fromString(a,256)}},e.prototype.bitwiseTo=function(r,n,i){var a,o,s=Math.min(r.t,this.t);for(a=0;a<s;++a)i[a]=n(this[a],r[a]);if(r.t<this.t){for(o=r.s&this.DM,a=s;a<this.t;++a)i[a]=n(this[a],o);i.t=this.t}else{for(o=this.s&this.DM,a=s;a<r.t;++a)i[a]=n(o,r[a]);i.t=r.t}i.s=n(this.s,r.s),i.clamp()},e.prototype.changeBit=function(r,n){var i=e.ONE.shiftLeft(r);return this.bitwiseTo(i,n,i),i},e.prototype.addTo=function(r,n){for(var i=0,a=0,o=Math.min(r.t,this.t);i<o;)a+=this[i]+r[i],n[i++]=a&this.DM,a>>=this.DB;if(r.t<this.t){for(a+=r.s;i<this.t;)a+=this[i],n[i++]=a&this.DM,a>>=this.DB;a+=this.s}else{for(a+=this.s;i<r.t;)a+=r[i],n[i++]=a&this.DM,a>>=this.DB;a+=r.s}n.s=a<0?-1:0,a>0?n[i++]=a:a<-1&&(n[i++]=this.DV+a),n.t=i,n.clamp()},e.prototype.dMultiply=function(r){this[this.t]=this.am(0,r-1,this,0,0,this.t),++this.t,this.clamp()},e.prototype.dAddOffset=function(r,n){if(r!=0){for(;this.t<=n;)this[this.t++]=0;for(this[n]+=r;this[n]>=this.DV;)this[n]-=this.DV,++n>=this.t&&(this[this.t++]=0),++this[n]}},e.prototype.multiplyLowerTo=function(r,n,i){var a=Math.min(this.t+r.t,n);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,r[a],i,a,0,this.t);for(var o=Math.min(r.t,n);a<o;++a)this.am(0,r[a],i,a,0,n-a);i.clamp()},e.prototype.multiplyUpperTo=function(r,n,i){--n;var a=i.t=this.t+r.t-n;for(i.s=0;--a>=0;)i[a]=0;for(a=Math.max(n-this.t,0);a<r.t;++a)i[this.t+a-n]=this.am(n-a,r[a],i,0,0,this.t+a-n);i.clamp(),i.drShiftTo(1,i)},e.prototype.modInt=function(r){if(r<=0)return 0;var n=this.DV%r,i=this.s<0?r-1:0;if(this.t>0)if(n==0)i=this[0]%r;else for(var a=this.t-1;a>=0;--a)i=(n*i+this[a])%r;return i},e.prototype.millerRabin=function(r){var n=this.subtract(e.ONE),i=n.getLowestSetBit();if(i<=0)return!1;var a=n.shiftRight(i);r=r+1>>1,r>lowprimes.length&&(r=lowprimes.length);for(var o=nbi(),s=0;s<r;++s){o.fromInt(lowprimes[Math.floor(Math.random()*lowprimes.length)]);var l=o.modPow(a,this);if(l.compareTo(e.ONE)!=0&&l.compareTo(n)!=0){for(var c=1;c++<i&&l.compareTo(n)!=0;)if(l=l.modPowInt(2,this),l.compareTo(e.ONE)==0)return!1;if(l.compareTo(n)!=0)return!1}}return!0},e.prototype.square=function(){var r=nbi();return this.squareTo(r),r},e.prototype.gcda=function(r,n){var i=this.s<0?this.negate():this.clone(),a=r.s<0?r.negate():r.clone();if(i.compareTo(a)<0){var o=i;i=a,a=o}var s=i.getLowestSetBit(),l=a.getLowestSetBit();if(l<0){n(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(){n(a)},0))};setTimeout(c,10)},e.prototype.fromNumberAsync=function(r,n,i,a){if(typeof n=="number")if(r<2)this.fromInt(1);else{this.fromNumber(r,i),this.testBit(r-1)||this.bitwiseTo(e.ONE.shiftLeft(r-1),op_or,this),this.isEven()&&this.dAddOffset(1,0);var o=this,s=function(){o.dAddOffset(2,0),o.bitLength()>r&&o.subTo(e.ONE.shiftLeft(r-1),o),o.isProbablePrime(n)?setTimeout(function(){a()},0):setTimeout(s,0)};setTimeout(s,0)}else{var l=[],c=r&7;l.length=(r>>3)+1,n.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(r){return r},e.prototype.revert=function(r){return r},e.prototype.mulTo=function(r,n,i){r.multiplyTo(n,i)},e.prototype.sqrTo=function(r,n){r.squareTo(n)},e}(),Classic=function(){function e(r){this.m=r}return e.prototype.convert=function(r){return r.s<0||r.compareTo(this.m)>=0?r.mod(this.m):r},e.prototype.revert=function(r){return r},e.prototype.reduce=function(r){r.divRemTo(this.m,null,r)},e.prototype.mulTo=function(r,n,i){r.multiplyTo(n,i),this.reduce(i)},e.prototype.sqrTo=function(r,n){r.squareTo(n),this.reduce(n)},e}(),Montgomery=function(){function e(r){this.m=r,this.mp=r.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<r.DB-15)-1,this.mt2=2*r.t}return e.prototype.convert=function(r){var n=nbi();return r.abs().dlShiftTo(this.m.t,n),n.divRemTo(this.m,null,n),r.s<0&&n.compareTo(BigInteger.ZERO)>0&&this.m.subTo(n,n),n},e.prototype.revert=function(r){var n=nbi();return r.copyTo(n),this.reduce(n),n},e.prototype.reduce=function(r){for(;r.t<=this.mt2;)r[r.t++]=0;for(var n=0;n<this.m.t;++n){var i=r[n]&32767,a=i*this.mpl+((i*this.mph+(r[n]>>15)*this.mpl&this.um)<<15)&r.DM;for(i=n+this.m.t,r[i]+=this.m.am(0,a,r,n,0,this.m.t);r[i]>=r.DV;)r[i]-=r.DV,r[++i]++}r.clamp(),r.drShiftTo(this.m.t,r),r.compareTo(this.m)>=0&&r.subTo(this.m,r)},e.prototype.mulTo=function(r,n,i){r.multiplyTo(n,i),this.reduce(i)},e.prototype.sqrTo=function(r,n){r.squareTo(n),this.reduce(n)},e}(),Barrett=function(){function e(r){this.m=r,this.r2=nbi(),this.q3=nbi(),BigInteger.ONE.dlShiftTo(2*r.t,this.r2),this.mu=this.r2.divide(r)}return e.prototype.convert=function(r){if(r.s<0||r.t>2*this.m.t)return r.mod(this.m);if(r.compareTo(this.m)<0)return r;var n=nbi();return r.copyTo(n),this.reduce(n),n},e.prototype.revert=function(r){return r},e.prototype.reduce=function(r){for(r.drShiftTo(this.m.t-1,this.r2),r.t>this.m.t+1&&(r.t=this.m.t+1,r.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);r.compareTo(this.r2)<0;)r.dAddOffset(1,this.m.t+1);for(r.subTo(this.r2,r);r.compareTo(this.m)>=0;)r.subTo(this.m,r)},e.prototype.mulTo=function(r,n,i){r.multiplyTo(n,i),this.reduce(i)},e.prototype.sqrTo=function(r,n){r.squareTo(n),this.reduce(n)},e}();function nbi(){return new BigInteger(null)}function parseBigInt(e,r){return new BigInteger(e,r)}var inBrowser$2=typeof navigator<"u";inBrowser$2&&j_lm&&navigator.appName=="Microsoft Internet Explorer"?(BigInteger.prototype.am=function(r,n,i,a,o,s){for(var l=n&32767,c=n>>15;--s>=0;){var u=this[r]&32767,h=this[r++]>>15,x=c*u+h*l;u=l*u+((x&32767)<<15)+i[a]+(o&1073741823),o=(u>>>30)+(x>>>15)+c*h+(o>>>30),i[a++]=u&1073741823}return o},dbits=30):inBrowser$2&&j_lm&&navigator.appName!="Netscape"?(BigInteger.prototype.am=function(r,n,i,a,o,s){for(;--s>=0;){var l=n*this[r++]+i[a]+o;o=Math.floor(l/67108864),i[a++]=l&67108863}return o},dbits=26):(BigInteger.prototype.am=function(r,n,i,a,o,s){for(var l=n&16383,c=n>>14;--s>=0;){var u=this[r]&16383,h=this[r++]>>14,x=c*u+h*l;u=l*u+((x&16383)<<14)+i[a]+o,o=(u>>28)+(x>>14)+c*h,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,r){var n=BI_RC[e.charCodeAt(r)];return n??-1}function nbv(e){var r=nbi();return r.fromInt(e),r}function nbits(e){var r=1,n;return(n=e>>>16)!=0&&(e=n,r+=16),(n=e>>8)!=0&&(e=n,r+=8),(n=e>>4)!=0&&(e=n,r+=4),(n=e>>2)!=0&&(e=n,r+=2),(n=e>>1)!=0&&(e=n,r+=1),r}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(r){var n,i,a;for(n=0;n<256;++n)this.S[n]=n;for(i=0,n=0;n<256;++n)i=i+this.S[n]+r[n%r.length]&255,a=this.S[n],this.S[n]=this.S[i],this.S[i]=a;this.i=0,this.j=0},e.prototype.next=function(){var r;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,r=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=r,this.S[r+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 r=e.x+e.y;rng_pool[rng_pptr++]=r&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(r){for(var n=0;n<r.length;++n)r[n]=rng_get_byte()},e}();function pkcs1pad1(e,r){if(r<e.length+22)return console.error("Message too long for RSA"),null;for(var n=r-e.length-6,i="",a=0;a<n;a+=2)i+="ff";var o="0001"+i+"00"+e;return parseBigInt(o,16)}function pkcs1pad2(e,r){if(r<e.length+11)return console.error("Message too long for RSA"),null;for(var n=[],i=e.length-1;i>=0&&r>0;){var a=e.charCodeAt(i--);a<128?n[--r]=a:a>127&&a<2048?(n[--r]=a&63|128,n[--r]=a>>6|192):(n[--r]=a&63|128,n[--r]=a>>6&63|128,n[--r]=a>>12|224)}n[--r]=0;for(var o=new SecureRandom,s=[];r>2;){for(s[0]=0;s[0]==0;)o.nextBytes(s);n[--r]=s[0]}return n[--r]=2,n[--r]=0,new BigInteger(n)}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(r){return r.modPowInt(this.e,this.n)},e.prototype.doPrivate=function(r){if(this.p==null||this.q==null)return r.modPow(this.d,this.n);for(var n=r.mod(this.p).modPow(this.dmp1,this.p),i=r.mod(this.q).modPow(this.dmq1,this.q);n.compareTo(i)<0;)n=n.add(this.p);return n.subtract(i).multiply(this.coeff).mod(this.p).multiply(this.q).add(i)},e.prototype.setPublic=function(r,n){r!=null&&n!=null&&r.length>0&&n.length>0?(this.n=parseBigInt(r,16),this.e=parseInt(n,16)):console.error("Invalid RSA public key")},e.prototype.encrypt=function(r){var n=this.n.bitLength()+7>>3,i=pkcs1pad2(r,n);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<n*2-s;l++)o="0"+o;return o},e.prototype.setPrivate=function(r,n,i){r!=null&&n!=null&&r.length>0&&n.length>0?(this.n=parseBigInt(r,16),this.e=parseInt(n,16),this.d=parseBigInt(i,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(r,n,i,a,o,s,l,c){r!=null&&n!=null&&r.length>0&&n.length>0?(this.n=parseBigInt(r,16),this.e=parseInt(n,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(r,n){var i=new SecureRandom,a=r>>1;this.e=parseInt(n,16);for(var o=new BigInteger(n,16);;){for(;this.p=new BigInteger(r-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(r){var n=parseBigInt(r,16),i=this.doPrivate(n);return i==null?null:pkcs1unpad2(i,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(r,n,i){var a=new SecureRandom,o=r>>1;this.e=parseInt(n,16);var s=new BigInteger(n,16),l=this,c=function(){var u=function(){if(l.p.compareTo(l.q)<=0){var f=l.p;l.p=l.q,l.q=f}var g=l.p.subtract(BigInteger.ONE),v=l.q.subtract(BigInteger.ONE),m=g.multiply(v);m.gcd(s).compareTo(BigInteger.ONE)==0?(l.n=l.p.multiply(l.q),l.d=s.modInverse(m),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)},h=function(){l.q=nbi(),l.q.fromNumberAsync(o,1,a,function(){l.q.subtract(BigInteger.ONE).gcda(s,function(f){f.compareTo(BigInteger.ONE)==0&&l.q.isProbablePrime(10)?setTimeout(u,0):setTimeout(h,0)})})},x=function(){l.p=nbi(),l.p.fromNumberAsync(r-o,1,a,function(){l.p.subtract(BigInteger.ONE).gcda(s,function(f){f.compareTo(BigInteger.ONE)==0&&l.p.isProbablePrime(10)?setTimeout(h,0):setTimeout(x,0)})})};setTimeout(x,0)};setTimeout(c,0)},e.prototype.sign=function(r,n,i){var a=getDigestHeader(i),o=a+n(r).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(r,n,i){var a=parseBigInt(n,16),o=this.doPublic(a);if(o==null)return null;var s=o.toString(16).replace(/^1f+00/,""),l=removeDigestHeader(s);return l==i(r).toString()},e}();function pkcs1unpad2(e,r){for(var n=e.toByteArray(),i=0;i<n.length&&n[i]==0;)++i;if(n.length-i!=r-1||n[i]!=2)return null;for(++i;n[i]!=0;)if(++i>=n.length)return null;for(var a="";++i<n.length;){var o=n[i]&255;o<128?a+=String.fromCharCode(o):o>191&&o<224?(a+=String.fromCharCode((o&31)<<6|n[i+1]&63),++i):(a+=String.fromCharCode((o&15)<<12|(n[i+1]&63)<<6|n[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 r in DIGEST_HEADERS)if(DIGEST_HEADERS.hasOwnProperty(r)){var n=DIGEST_HEADERS[r],i=n.length;if(e.substr(0,i)==n)return e.substr(i)}return e}/*!
78
+ `,this.sub!==null){r+=" ";for(var i=0,a=this.sub.length;i<a;++i)n+=this.sub[i].toPrettyString(r)}return n},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(r){var n=r.get(),i=n&127;if(i==n)return i;if(i>6)throw new Error("Length over 48 bits not supported at position "+(r.pos-1));if(i===0)return null;n=0;for(var a=0;a<i;++a)n=n*256+r.get();return n},e.prototype.getHexStringValue=function(){var r=this.toHexString(),n=this.header*2,i=this.length*2;return r.substr(n,i)},e.decode=function(r){var n;r instanceof Stream?n=r:n=new Stream(r,0);var i=new Stream(n),a=new ASN1Tag(n),o=e.decodeLength(n),s=n.pos,l=s-i.pos,c=null,u=function(){var x=[];if(o!==null){for(var f=s+o;n.pos<f;)x[x.length]=e.decode(n);if(n.pos!=f)throw new Error("Content size is not correct for container starting at offset "+s)}else try{for(;;){var g=e.decode(n);if(g.tag.isEOC())break;x[x.length]=g}o=s-n.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&&n.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");c=u();for(var h=0;h<c.length;++h)if(c[h].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);n.pos=s+Math.abs(o)}return new e(i,l,o,a,c)},e}(),ASN1Tag=function(){function e(r){var n=r.get();if(this.tagClass=n>>6,this.tagConstructed=(n&32)!==0,this.tagNumber=n&31,this.tagNumber==31){var i=new Int10;do n=r.get(),i.mulAdd(128,n&127);while(n&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(r,n,i){r!=null&&(typeof r=="number"?this.fromNumber(r,n,i):n==null&&typeof r!="string"?this.fromString(r,256):this.fromString(r,n))}return e.prototype.toString=function(r){if(this.s<0)return"-"+this.negate().toString(r);var n;if(r==16)n=4;else if(r==8)n=3;else if(r==2)n=1;else if(r==32)n=5;else if(r==4)n=2;else return this.toRadix(r);var i=(1<<n)-1,a,o=!1,s="",l=this.t,c=this.DB-l*this.DB%n;if(l-- >0)for(c<this.DB&&(a=this[l]>>c)>0&&(o=!0,s=int2char(a));l>=0;)c<n?(a=(this[l]&(1<<c)-1)<<n-c,a|=this[--l]>>(c+=this.DB-n)):(a=this[l]>>(c-=n)&i,c<=0&&(c+=this.DB,--l)),a>0&&(o=!0),o&&(s+=int2char(a));return o?s:"0"},e.prototype.negate=function(){var r=nbi();return e.ZERO.subTo(this,r),r},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.compareTo=function(r){var n=this.s-r.s;if(n!=0)return n;var i=this.t;if(n=i-r.t,n!=0)return this.s<0?-n:n;for(;--i>=0;)if((n=this[i]-r[i])!=0)return n;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(r){var n=nbi();return this.abs().divRemTo(r,null,n),this.s<0&&n.compareTo(e.ZERO)>0&&r.subTo(n,n),n},e.prototype.modPowInt=function(r,n){var i;return r<256||n.isEven()?i=new Classic(n):i=new Montgomery(n),this.exp(r,i)},e.prototype.clone=function(){var r=nbi();return this.copyTo(r),r},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 r=this.t,n=[];n[0]=this.s;var i=this.DB-r*this.DB%8,a,o=0;if(r-- >0)for(i<this.DB&&(a=this[r]>>i)!=(this.s&this.DM)>>i&&(n[o++]=a|this.s<<this.DB-i);r>=0;)i<8?(a=(this[r]&(1<<i)-1)<<8-i,a|=this[--r]>>(i+=this.DB-8)):(a=this[r]>>(i-=8)&255,i<=0&&(i+=this.DB,--r)),a&128&&(a|=-256),o==0&&(this.s&128)!=(a&128)&&++o,(o>0||a!=this.s)&&(n[o++]=a);return n},e.prototype.equals=function(r){return this.compareTo(r)==0},e.prototype.min=function(r){return this.compareTo(r)<0?this:r},e.prototype.max=function(r){return this.compareTo(r)>0?this:r},e.prototype.and=function(r){var n=nbi();return this.bitwiseTo(r,op_and,n),n},e.prototype.or=function(r){var n=nbi();return this.bitwiseTo(r,op_or,n),n},e.prototype.xor=function(r){var n=nbi();return this.bitwiseTo(r,op_xor,n),n},e.prototype.andNot=function(r){var n=nbi();return this.bitwiseTo(r,op_andnot,n),n},e.prototype.not=function(){for(var r=nbi(),n=0;n<this.t;++n)r[n]=this.DM&~this[n];return r.t=this.t,r.s=~this.s,r},e.prototype.shiftLeft=function(r){var n=nbi();return r<0?this.rShiftTo(-r,n):this.lShiftTo(r,n),n},e.prototype.shiftRight=function(r){var n=nbi();return r<0?this.lShiftTo(-r,n):this.rShiftTo(r,n),n},e.prototype.getLowestSetBit=function(){for(var r=0;r<this.t;++r)if(this[r]!=0)return r*this.DB+lbit(this[r]);return this.s<0?this.t*this.DB:-1},e.prototype.bitCount=function(){for(var r=0,n=this.s&this.DM,i=0;i<this.t;++i)r+=cbit(this[i]^n);return r},e.prototype.testBit=function(r){var n=Math.floor(r/this.DB);return n>=this.t?this.s!=0:(this[n]&1<<r%this.DB)!=0},e.prototype.setBit=function(r){return this.changeBit(r,op_or)},e.prototype.clearBit=function(r){return this.changeBit(r,op_andnot)},e.prototype.flipBit=function(r){return this.changeBit(r,op_xor)},e.prototype.add=function(r){var n=nbi();return this.addTo(r,n),n},e.prototype.subtract=function(r){var n=nbi();return this.subTo(r,n),n},e.prototype.multiply=function(r){var n=nbi();return this.multiplyTo(r,n),n},e.prototype.divide=function(r){var n=nbi();return this.divRemTo(r,n,null),n},e.prototype.remainder=function(r){var n=nbi();return this.divRemTo(r,null,n),n},e.prototype.divideAndRemainder=function(r){var n=nbi(),i=nbi();return this.divRemTo(r,n,i),[n,i]},e.prototype.modPow=function(r,n){var i=r.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(n):n.isEven()?s=new Barrett(n):s=new Montgomery(n);var l=[],c=3,u=a-1,h=(1<<a)-1;if(l[1]=s.convert(this),a>1){var x=nbi();for(s.sqrTo(l[1],x);c<=h;)l[c]=nbi(),s.mulTo(x,l[c-2],l[c]),c+=2}var f=r.t-1,g,v=!0,m=nbi(),E;for(i=nbits(r[f])-1;f>=0;){for(i>=u?g=r[f]>>i-u&h:(g=(r[f]&(1<<i+1)-1)<<u-i,f>0&&(g|=r[f-1]>>this.DB+i-u)),c=a;!(g&1);)g>>=1,--c;if((i-=c)<0&&(i+=this.DB,--f),v)l[g].copyTo(o),v=!1;else{for(;c>1;)s.sqrTo(o,m),s.sqrTo(m,o),c-=2;c>0?s.sqrTo(o,m):(E=o,o=m,m=E),s.mulTo(m,l[g],o)}for(;f>=0&&!(r[f]&1<<i);)s.sqrTo(o,m),E=o,o=m,m=E,--i<0&&(i=this.DB-1,--f)}return s.revert(o)},e.prototype.modInverse=function(r){var n=r.isEven();if(this.isEven()&&n||r.signum()==0)return e.ZERO;for(var i=r.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),n?((!o.isEven()||!s.isEven())&&(o.addTo(this,o),s.subTo(r,s)),o.rShiftTo(1,o)):s.isEven()||s.subTo(r,s),s.rShiftTo(1,s);for(;a.isEven();)a.rShiftTo(1,a),n?((!l.isEven()||!c.isEven())&&(l.addTo(this,l),c.subTo(r,c)),l.rShiftTo(1,l)):c.isEven()||c.subTo(r,c),c.rShiftTo(1,c);i.compareTo(a)>=0?(i.subTo(a,i),n&&o.subTo(l,o),s.subTo(c,s)):(a.subTo(i,a),n&&l.subTo(o,l),c.subTo(s,c))}if(a.compareTo(e.ONE)!=0)return e.ZERO;if(c.compareTo(r)>=0)return c.subtract(r);if(c.signum()<0)c.addTo(r,c);else return c;return c.signum()<0?c.add(r):c},e.prototype.pow=function(r){return this.exp(r,new NullExp)},e.prototype.gcd=function(r){var n=this.s<0?this.negate():this.clone(),i=r.s<0?r.negate():r.clone();if(n.compareTo(i)<0){var a=n;n=i,i=a}var o=n.getLowestSetBit(),s=i.getLowestSetBit();if(s<0)return n;for(o<s&&(s=o),s>0&&(n.rShiftTo(s,n),i.rShiftTo(s,i));n.signum()>0;)(o=n.getLowestSetBit())>0&&n.rShiftTo(o,n),(o=i.getLowestSetBit())>0&&i.rShiftTo(o,i),n.compareTo(i)>=0?(n.subTo(i,n),n.rShiftTo(1,n)):(i.subTo(n,i),i.rShiftTo(1,i));return s>0&&i.lShiftTo(s,i),i},e.prototype.isProbablePrime=function(r){var n,i=this.abs();if(i.t==1&&i[0]<=lowprimes[lowprimes.length-1]){for(n=0;n<lowprimes.length;++n)if(i[0]==lowprimes[n])return!0;return!1}if(i.isEven())return!1;for(n=1;n<lowprimes.length;){for(var a=lowprimes[n],o=n+1;o<lowprimes.length&&a<lplim;)a*=lowprimes[o++];for(a=i.modInt(a);n<o;)if(a%lowprimes[n++]==0)return!1}return i.millerRabin(r)},e.prototype.copyTo=function(r){for(var n=this.t-1;n>=0;--n)r[n]=this[n];r.t=this.t,r.s=this.s},e.prototype.fromInt=function(r){this.t=1,this.s=r<0?-1:0,r>0?this[0]=r:r<-1?this[0]=r+this.DV:this.t=0},e.prototype.fromString=function(r,n){var i;if(n==16)i=4;else if(n==8)i=3;else if(n==256)i=8;else if(n==2)i=1;else if(n==32)i=5;else if(n==4)i=2;else{this.fromRadix(r,n);return}this.t=0,this.s=0;for(var a=r.length,o=!1,s=0;--a>=0;){var l=i==8?+r[a]&255:intAt(r,a);if(l<0){r.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&&+r[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 r=this.s&this.DM;this.t>0&&this[this.t-1]==r;)--this.t},e.prototype.dlShiftTo=function(r,n){var i;for(i=this.t-1;i>=0;--i)n[i+r]=this[i];for(i=r-1;i>=0;--i)n[i]=0;n.t=this.t+r,n.s=this.s},e.prototype.drShiftTo=function(r,n){for(var i=r;i<this.t;++i)n[i-r]=this[i];n.t=Math.max(this.t-r,0),n.s=this.s},e.prototype.lShiftTo=function(r,n){for(var i=r%this.DB,a=this.DB-i,o=(1<<a)-1,s=Math.floor(r/this.DB),l=this.s<<i&this.DM,c=this.t-1;c>=0;--c)n[c+s+1]=this[c]>>a|l,l=(this[c]&o)<<i;for(var c=s-1;c>=0;--c)n[c]=0;n[s]=l,n.t=this.t+s+1,n.s=this.s,n.clamp()},e.prototype.rShiftTo=function(r,n){n.s=this.s;var i=Math.floor(r/this.DB);if(i>=this.t){n.t=0;return}var a=r%this.DB,o=this.DB-a,s=(1<<a)-1;n[0]=this[i]>>a;for(var l=i+1;l<this.t;++l)n[l-i-1]|=(this[l]&s)<<o,n[l-i]=this[l]>>a;a>0&&(n[this.t-i-1]|=(this.s&s)<<o),n.t=this.t-i,n.clamp()},e.prototype.subTo=function(r,n){for(var i=0,a=0,o=Math.min(r.t,this.t);i<o;)a+=this[i]-r[i],n[i++]=a&this.DM,a>>=this.DB;if(r.t<this.t){for(a-=r.s;i<this.t;)a+=this[i],n[i++]=a&this.DM,a>>=this.DB;a+=this.s}else{for(a+=this.s;i<r.t;)a-=r[i],n[i++]=a&this.DM,a>>=this.DB;a-=r.s}n.s=a<0?-1:0,a<-1?n[i++]=this.DV+a:a>0&&(n[i++]=a),n.t=i,n.clamp()},e.prototype.multiplyTo=function(r,n){var i=this.abs(),a=r.abs(),o=i.t;for(n.t=o+a.t;--o>=0;)n[o]=0;for(o=0;o<a.t;++o)n[o+i.t]=i.am(0,a[o],n,o,0,i.t);n.s=0,n.clamp(),this.s!=r.s&&e.ZERO.subTo(n,n)},e.prototype.squareTo=function(r){for(var n=this.abs(),i=r.t=2*n.t;--i>=0;)r[i]=0;for(i=0;i<n.t-1;++i){var a=n.am(i,n[i],r,2*i,0,1);(r[i+n.t]+=n.am(i+1,2*n[i],r,2*i+1,a,n.t-i-1))>=n.DV&&(r[i+n.t]-=n.DV,r[i+n.t+1]=1)}r.t>0&&(r[r.t-1]+=n.am(i,n[i],r,2*i,0,1)),r.s=0,r.clamp()},e.prototype.divRemTo=function(r,n,i){var a=r.abs();if(!(a.t<=0)){var o=this.abs();if(o.t<a.t){n!=null&&n.fromInt(0),i!=null&&this.copyTo(i);return}i==null&&(i=nbi());var s=nbi(),l=this.s,c=r.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 h=s.t,x=s[h-1];if(x!=0){var f=x*(1<<this.F1)+(h>1?s[h-2]>>this.F2:0),g=this.FV/f,v=(1<<this.F1)/f,m=1<<this.F2,E=i.t,b=E-h,d=n??nbi();for(s.dlShiftTo(b,d),i.compareTo(d)>=0&&(i[i.t++]=1,i.subTo(d,i)),e.ONE.dlShiftTo(h,d),d.subTo(s,s);s.t<h;)s[s.t++]=0;for(;--b>=0;){var p=i[--E]==x?this.DM:Math.floor(i[E]*g+(i[E-1]+m)*v);if((i[E]+=s.am(0,p,i,b,0,h))<p)for(s.dlShiftTo(b,d),i.subTo(d,i);i[E]<--p;)i.subTo(d,i)}n!=null&&(i.drShiftTo(h,n),l!=c&&e.ZERO.subTo(n,n)),i.t=h,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 r=this[0];if(!(r&1))return 0;var n=r&3;return n=n*(2-(r&15)*n)&15,n=n*(2-(r&255)*n)&255,n=n*(2-((r&65535)*n&65535))&65535,n=n*(2-r*n%this.DV)%this.DV,n>0?this.DV-n:-n},e.prototype.isEven=function(){return(this.t>0?this[0]&1:this.s)==0},e.prototype.exp=function(r,n){if(r>4294967295||r<1)return e.ONE;var i=nbi(),a=nbi(),o=n.convert(this),s=nbits(r)-1;for(o.copyTo(i);--s>=0;)if(n.sqrTo(i,a),(r&1<<s)>0)n.mulTo(a,o,i);else{var l=i;i=a,a=l}return n.revert(i)},e.prototype.chunkSize=function(r){return Math.floor(Math.LN2*this.DB/Math.log(r))},e.prototype.toRadix=function(r){if(r==null&&(r=10),this.signum()==0||r<2||r>36)return"0";var n=this.chunkSize(r),i=Math.pow(r,n),a=nbv(i),o=nbi(),s=nbi(),l="";for(this.divRemTo(a,o,s);o.signum()>0;)l=(i+s.intValue()).toString(r).substr(1)+l,o.divRemTo(a,o,s);return s.intValue().toString(r)+l},e.prototype.fromRadix=function(r,n){this.fromInt(0),n==null&&(n=10);for(var i=this.chunkSize(n),a=Math.pow(n,i),o=!1,s=0,l=0,c=0;c<r.length;++c){var u=intAt(r,c);if(u<0){r.charAt(c)=="-"&&this.signum()==0&&(o=!0);continue}l=n*l+u,++s>=i&&(this.dMultiply(a),this.dAddOffset(l,0),s=0,l=0)}s>0&&(this.dMultiply(Math.pow(n,s)),this.dAddOffset(l,0)),o&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(r,n,i){if(typeof n=="number")if(r<2)this.fromInt(1);else for(this.fromNumber(r,i),this.testBit(r-1)||this.bitwiseTo(e.ONE.shiftLeft(r-1),op_or,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(n);)this.dAddOffset(2,0),this.bitLength()>r&&this.subTo(e.ONE.shiftLeft(r-1),this);else{var a=[],o=r&7;a.length=(r>>3)+1,n.nextBytes(a),o>0?a[0]&=(1<<o)-1:a[0]=0,this.fromString(a,256)}},e.prototype.bitwiseTo=function(r,n,i){var a,o,s=Math.min(r.t,this.t);for(a=0;a<s;++a)i[a]=n(this[a],r[a]);if(r.t<this.t){for(o=r.s&this.DM,a=s;a<this.t;++a)i[a]=n(this[a],o);i.t=this.t}else{for(o=this.s&this.DM,a=s;a<r.t;++a)i[a]=n(o,r[a]);i.t=r.t}i.s=n(this.s,r.s),i.clamp()},e.prototype.changeBit=function(r,n){var i=e.ONE.shiftLeft(r);return this.bitwiseTo(i,n,i),i},e.prototype.addTo=function(r,n){for(var i=0,a=0,o=Math.min(r.t,this.t);i<o;)a+=this[i]+r[i],n[i++]=a&this.DM,a>>=this.DB;if(r.t<this.t){for(a+=r.s;i<this.t;)a+=this[i],n[i++]=a&this.DM,a>>=this.DB;a+=this.s}else{for(a+=this.s;i<r.t;)a+=r[i],n[i++]=a&this.DM,a>>=this.DB;a+=r.s}n.s=a<0?-1:0,a>0?n[i++]=a:a<-1&&(n[i++]=this.DV+a),n.t=i,n.clamp()},e.prototype.dMultiply=function(r){this[this.t]=this.am(0,r-1,this,0,0,this.t),++this.t,this.clamp()},e.prototype.dAddOffset=function(r,n){if(r!=0){for(;this.t<=n;)this[this.t++]=0;for(this[n]+=r;this[n]>=this.DV;)this[n]-=this.DV,++n>=this.t&&(this[this.t++]=0),++this[n]}},e.prototype.multiplyLowerTo=function(r,n,i){var a=Math.min(this.t+r.t,n);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,r[a],i,a,0,this.t);for(var o=Math.min(r.t,n);a<o;++a)this.am(0,r[a],i,a,0,n-a);i.clamp()},e.prototype.multiplyUpperTo=function(r,n,i){--n;var a=i.t=this.t+r.t-n;for(i.s=0;--a>=0;)i[a]=0;for(a=Math.max(n-this.t,0);a<r.t;++a)i[this.t+a-n]=this.am(n-a,r[a],i,0,0,this.t+a-n);i.clamp(),i.drShiftTo(1,i)},e.prototype.modInt=function(r){if(r<=0)return 0;var n=this.DV%r,i=this.s<0?r-1:0;if(this.t>0)if(n==0)i=this[0]%r;else for(var a=this.t-1;a>=0;--a)i=(n*i+this[a])%r;return i},e.prototype.millerRabin=function(r){var n=this.subtract(e.ONE),i=n.getLowestSetBit();if(i<=0)return!1;var a=n.shiftRight(i);r=r+1>>1,r>lowprimes.length&&(r=lowprimes.length);for(var o=nbi(),s=0;s<r;++s){o.fromInt(lowprimes[Math.floor(Math.random()*lowprimes.length)]);var l=o.modPow(a,this);if(l.compareTo(e.ONE)!=0&&l.compareTo(n)!=0){for(var c=1;c++<i&&l.compareTo(n)!=0;)if(l=l.modPowInt(2,this),l.compareTo(e.ONE)==0)return!1;if(l.compareTo(n)!=0)return!1}}return!0},e.prototype.square=function(){var r=nbi();return this.squareTo(r),r},e.prototype.gcda=function(r,n){var i=this.s<0?this.negate():this.clone(),a=r.s<0?r.negate():r.clone();if(i.compareTo(a)<0){var o=i;i=a,a=o}var s=i.getLowestSetBit(),l=a.getLowestSetBit();if(l<0){n(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(){n(a)},0))};setTimeout(c,10)},e.prototype.fromNumberAsync=function(r,n,i,a){if(typeof n=="number")if(r<2)this.fromInt(1);else{this.fromNumber(r,i),this.testBit(r-1)||this.bitwiseTo(e.ONE.shiftLeft(r-1),op_or,this),this.isEven()&&this.dAddOffset(1,0);var o=this,s=function(){o.dAddOffset(2,0),o.bitLength()>r&&o.subTo(e.ONE.shiftLeft(r-1),o),o.isProbablePrime(n)?setTimeout(function(){a()},0):setTimeout(s,0)};setTimeout(s,0)}else{var l=[],c=r&7;l.length=(r>>3)+1,n.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(r){return r},e.prototype.revert=function(r){return r},e.prototype.mulTo=function(r,n,i){r.multiplyTo(n,i)},e.prototype.sqrTo=function(r,n){r.squareTo(n)},e}(),Classic=function(){function e(r){this.m=r}return e.prototype.convert=function(r){return r.s<0||r.compareTo(this.m)>=0?r.mod(this.m):r},e.prototype.revert=function(r){return r},e.prototype.reduce=function(r){r.divRemTo(this.m,null,r)},e.prototype.mulTo=function(r,n,i){r.multiplyTo(n,i),this.reduce(i)},e.prototype.sqrTo=function(r,n){r.squareTo(n),this.reduce(n)},e}(),Montgomery=function(){function e(r){this.m=r,this.mp=r.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<r.DB-15)-1,this.mt2=2*r.t}return e.prototype.convert=function(r){var n=nbi();return r.abs().dlShiftTo(this.m.t,n),n.divRemTo(this.m,null,n),r.s<0&&n.compareTo(BigInteger.ZERO)>0&&this.m.subTo(n,n),n},e.prototype.revert=function(r){var n=nbi();return r.copyTo(n),this.reduce(n),n},e.prototype.reduce=function(r){for(;r.t<=this.mt2;)r[r.t++]=0;for(var n=0;n<this.m.t;++n){var i=r[n]&32767,a=i*this.mpl+((i*this.mph+(r[n]>>15)*this.mpl&this.um)<<15)&r.DM;for(i=n+this.m.t,r[i]+=this.m.am(0,a,r,n,0,this.m.t);r[i]>=r.DV;)r[i]-=r.DV,r[++i]++}r.clamp(),r.drShiftTo(this.m.t,r),r.compareTo(this.m)>=0&&r.subTo(this.m,r)},e.prototype.mulTo=function(r,n,i){r.multiplyTo(n,i),this.reduce(i)},e.prototype.sqrTo=function(r,n){r.squareTo(n),this.reduce(n)},e}(),Barrett=function(){function e(r){this.m=r,this.r2=nbi(),this.q3=nbi(),BigInteger.ONE.dlShiftTo(2*r.t,this.r2),this.mu=this.r2.divide(r)}return e.prototype.convert=function(r){if(r.s<0||r.t>2*this.m.t)return r.mod(this.m);if(r.compareTo(this.m)<0)return r;var n=nbi();return r.copyTo(n),this.reduce(n),n},e.prototype.revert=function(r){return r},e.prototype.reduce=function(r){for(r.drShiftTo(this.m.t-1,this.r2),r.t>this.m.t+1&&(r.t=this.m.t+1,r.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);r.compareTo(this.r2)<0;)r.dAddOffset(1,this.m.t+1);for(r.subTo(this.r2,r);r.compareTo(this.m)>=0;)r.subTo(this.m,r)},e.prototype.mulTo=function(r,n,i){r.multiplyTo(n,i),this.reduce(i)},e.prototype.sqrTo=function(r,n){r.squareTo(n),this.reduce(n)},e}();function nbi(){return new BigInteger(null)}function parseBigInt(e,r){return new BigInteger(e,r)}var inBrowser$2=typeof navigator<"u";inBrowser$2&&j_lm&&navigator.appName=="Microsoft Internet Explorer"?(BigInteger.prototype.am=function(r,n,i,a,o,s){for(var l=n&32767,c=n>>15;--s>=0;){var u=this[r]&32767,h=this[r++]>>15,x=c*u+h*l;u=l*u+((x&32767)<<15)+i[a]+(o&1073741823),o=(u>>>30)+(x>>>15)+c*h+(o>>>30),i[a++]=u&1073741823}return o},dbits=30):inBrowser$2&&j_lm&&navigator.appName!="Netscape"?(BigInteger.prototype.am=function(r,n,i,a,o,s){for(;--s>=0;){var l=n*this[r++]+i[a]+o;o=Math.floor(l/67108864),i[a++]=l&67108863}return o},dbits=26):(BigInteger.prototype.am=function(r,n,i,a,o,s){for(var l=n&16383,c=n>>14;--s>=0;){var u=this[r]&16383,h=this[r++]>>14,x=c*u+h*l;u=l*u+((x&16383)<<14)+i[a]+o,o=(u>>28)+(x>>14)+c*h,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,r){var n=BI_RC[e.charCodeAt(r)];return n??-1}function nbv(e){var r=nbi();return r.fromInt(e),r}function nbits(e){var r=1,n;return(n=e>>>16)!=0&&(e=n,r+=16),(n=e>>8)!=0&&(e=n,r+=8),(n=e>>4)!=0&&(e=n,r+=4),(n=e>>2)!=0&&(e=n,r+=2),(n=e>>1)!=0&&(e=n,r+=1),r}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(r){var n,i,a;for(n=0;n<256;++n)this.S[n]=n;for(i=0,n=0;n<256;++n)i=i+this.S[n]+r[n%r.length]&255,a=this.S[n],this.S[n]=this.S[i],this.S[i]=a;this.i=0,this.j=0},e.prototype.next=function(){var r;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,r=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=r,this.S[r+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 r=e.x+e.y;rng_pool[rng_pptr++]=r&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(r){for(var n=0;n<r.length;++n)r[n]=rng_get_byte()},e}();function pkcs1pad1(e,r){if(r<e.length+22)return console.error("Message too long for RSA"),null;for(var n=r-e.length-6,i="",a=0;a<n;a+=2)i+="ff";var o="0001"+i+"00"+e;return parseBigInt(o,16)}function pkcs1pad2(e,r){if(r<e.length+11)return console.error("Message too long for RSA"),null;for(var n=[],i=e.length-1;i>=0&&r>0;){var a=e.charCodeAt(i--);a<128?n[--r]=a:a>127&&a<2048?(n[--r]=a&63|128,n[--r]=a>>6|192):(n[--r]=a&63|128,n[--r]=a>>6&63|128,n[--r]=a>>12|224)}n[--r]=0;for(var o=new SecureRandom,s=[];r>2;){for(s[0]=0;s[0]==0;)o.nextBytes(s);n[--r]=s[0]}return n[--r]=2,n[--r]=0,new BigInteger(n)}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(r){return r.modPowInt(this.e,this.n)},e.prototype.doPrivate=function(r){if(this.p==null||this.q==null)return r.modPow(this.d,this.n);for(var n=r.mod(this.p).modPow(this.dmp1,this.p),i=r.mod(this.q).modPow(this.dmq1,this.q);n.compareTo(i)<0;)n=n.add(this.p);return n.subtract(i).multiply(this.coeff).mod(this.p).multiply(this.q).add(i)},e.prototype.setPublic=function(r,n){r!=null&&n!=null&&r.length>0&&n.length>0?(this.n=parseBigInt(r,16),this.e=parseInt(n,16)):console.error("Invalid RSA public key")},e.prototype.encrypt=function(r){var n=this.n.bitLength()+7>>3,i=pkcs1pad2(r,n);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<n*2-s;l++)o="0"+o;return o},e.prototype.setPrivate=function(r,n,i){r!=null&&n!=null&&r.length>0&&n.length>0?(this.n=parseBigInt(r,16),this.e=parseInt(n,16),this.d=parseBigInt(i,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(r,n,i,a,o,s,l,c){r!=null&&n!=null&&r.length>0&&n.length>0?(this.n=parseBigInt(r,16),this.e=parseInt(n,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(r,n){var i=new SecureRandom,a=r>>1;this.e=parseInt(n,16);for(var o=new BigInteger(n,16);;){for(;this.p=new BigInteger(r-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(r){var n=parseBigInt(r,16),i=this.doPrivate(n);return i==null?null:pkcs1unpad2(i,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(r,n,i){var a=new SecureRandom,o=r>>1;this.e=parseInt(n,16);var s=new BigInteger(n,16),l=this,c=function(){var u=function(){if(l.p.compareTo(l.q)<=0){var f=l.p;l.p=l.q,l.q=f}var g=l.p.subtract(BigInteger.ONE),v=l.q.subtract(BigInteger.ONE),m=g.multiply(v);m.gcd(s).compareTo(BigInteger.ONE)==0?(l.n=l.p.multiply(l.q),l.d=s.modInverse(m),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)},h=function(){l.q=nbi(),l.q.fromNumberAsync(o,1,a,function(){l.q.subtract(BigInteger.ONE).gcda(s,function(f){f.compareTo(BigInteger.ONE)==0&&l.q.isProbablePrime(10)?setTimeout(u,0):setTimeout(h,0)})})},x=function(){l.p=nbi(),l.p.fromNumberAsync(r-o,1,a,function(){l.p.subtract(BigInteger.ONE).gcda(s,function(f){f.compareTo(BigInteger.ONE)==0&&l.p.isProbablePrime(10)?setTimeout(h,0):setTimeout(x,0)})})};setTimeout(x,0)};setTimeout(c,0)},e.prototype.sign=function(r,n,i){var a=getDigestHeader(i),o=a+n(r).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(r,n,i){var a=parseBigInt(n,16),o=this.doPublic(a);if(o==null)return null;var s=o.toString(16).replace(/^1f+00/,""),l=removeDigestHeader(s);return l==i(r).toString()},e}();function pkcs1unpad2(e,r){for(var n=e.toByteArray(),i=0;i<n.length&&n[i]==0;)++i;if(n.length-i!=r-1||n[i]!=2)return null;for(++i;n[i]!=0;)if(++i>=n.length)return null;for(var a="";++i<n.length;){var o=n[i]&255;o<128?a+=String.fromCharCode(o):o>191&&o<224?(a+=String.fromCharCode((o&31)<<6|n[i+1]&63),++i):(a+=String.fromCharCode((o&15)<<12|(n[i+1]&63)<<6|n[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 r in DIGEST_HEADERS)if(DIGEST_HEADERS.hasOwnProperty(r)){var n=DIGEST_HEADERS[r],i=n.length;if(e.substr(0,i)==n)return e.substr(i)}return e}/*!
79
79
  Copyright (c) 2011, Yahoo! Inc. All rights reserved.
80
80
  Code licensed under the BSD License:
81
81
  http://developer.yahoo.com/yui/license.html
@@ -87,7 +87,7 @@ version: 2.9.0
87
87
  * @version asn1 1.0.13 (2017-Jun-02)
88
88
  * @since jsrsasign 2.1
89
89
  * @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
90
- */var KJUR={};(typeof KJUR.asn1>"u"||!KJUR.asn1)&&(KJUR.asn1={}),KJUR.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var r=e.toString(16);return r.length%2==1&&(r="0"+r),r},this.bigIntToMinTwosComplementsHex=function(e){var r=e.toString(16);if(r.substr(0,1)!="-")r.length%2==1?r="0"+r:r.match(/^[0-7]/)||(r="00"+r);else{var n=r.substr(1),i=n.length;i%2==1?i+=1:r.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);r=l.toString(16).replace(/^-/,"")}return r},this.getPEMStringFromHex=function(e,r){return hextopem(e,r)},this.newObject=function(e){var r=KJUR,n=r.asn1,i=n.DERBoolean,a=n.DERInteger,o=n.DERBitString,s=n.DEROctetString,l=n.DERNull,c=n.DERObjectIdentifier,u=n.DEREnumerated,h=n.DERUTF8String,x=n.DERNumericString,f=n.DERPrintableString,g=n.DERTeletexString,v=n.DERIA5String,m=n.DERUTCTime,w=n.DERGeneralizedTime,b=n.DERSequence,d=n.DERSet,p=n.DERTaggedObject,y=n.ASN1Util.newObject,E=Object.keys(e);if(E.length!=1)throw"key of param shall be only one.";var _=E[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 h(e[_]);if(_=="numstr")return new x(e[_]);if(_=="prnstr")return new f(e[_]);if(_=="telstr")return new g(e[_]);if(_=="ia5str")return new v(e[_]);if(_=="utctime")return new m(e[_]);if(_=="gentime")return new w(e[_]);if(_=="seq"){for(var P=e[_],A=[],R=0;R<P.length;R++){var M=y(P[R]);A.push(M)}return new b({array:A})}if(_=="set"){for(var P=e[_],A=[],R=0;R<P.length;R++){var M=y(P[R]);A.push(M)}return new d({array:A})}if(_=="tag"){var B=e[_];if(Object.prototype.toString.call(B)==="[object Array]"&&B.length==3){var O=y(B[2]);return new p({tag:B[0],explicit:B[1],obj:O})}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 p(V)}}},this.jsonToASN1HEX=function(e){var r=this.newObject(e);return r.getEncodedHex()}},KJUR.asn1.ASN1Util.oidHexToInt=function(e){for(var a="",r=parseInt(e.substr(0,2),16),n=Math.floor(r/40),i=r%40,a=n+"."+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 r=function(l){var c=l.toString(16);return c.length==1&&(c="0"+c),c},n=function(l){var c="",u=new BigInteger(l,10),h=u.toString(2),x=7-h.length%7;x==7&&(x=0);for(var f="",g=0;g<x;g++)f+="0";h=f+h;for(var g=0;g<h.length-1;g+=7){var v=h.substr(g,7);g!=h.length-7&&(v="1"+v),c+=r(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+=r(o),a.splice(0,2);for(var s=0;s<a.length;s++)i+=n(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 r=this.hV.length/2,n=r.toString(16);if(n.length%2==1&&(n="0"+n),r<128)return n;var i=n.length/2;if(i>15)throw"ASN.1 length too long to represent by 8x: n = "+r.toString(16);var a=128+i;return a.toString(16)+n},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(r){this.hTLV=null,this.isModified=!0,this.s=r,this.hV=stohex(this.s)},this.setStringHex=function(r){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},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(r){utc=r.getTime()+r.getTimezoneOffset()*6e4;var n=new Date(utc);return n},this.formatDate=function(r,n,i){var a=this.zeroPadding,o=this.localDateToUTC(r),s=String(o.getFullYear());n=="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),h=a(String(o.getMinutes()),2),x=a(String(o.getSeconds()),2),f=s+l+c+u+h+x;if(i===!0){var g=o.getMilliseconds();if(g!=0){var v=a(String(g),3);v=v.replace(/[0]+$/,""),f=f+"."+v}}return f+"Z"},this.zeroPadding=function(r,n){return r.length>=n?r:new Array(n-r.length+1).join("0")+r},this.getString=function(){return this.s},this.setString=function(r){this.hTLV=null,this.isModified=!0,this.s=r,this.hV=stohex(r)},this.setByDateValue=function(r,n,i,a,o,s){var l=new Date(Date.UTC(r,n-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(r){this.hTLV=null,this.isModified=!0,this.asn1Array=r},this.appendASN1Object=function(r){this.hTLV=null,this.isModified=!0,this.asn1Array.push(r)},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(r){this.hTLV=null,this.isModified=!0,this.hV=KJUR.asn1.ASN1Util.bigIntToMinTwosComplementsHex(r)},this.setByInteger=function(r){var n=new BigInteger(String(r),10);this.setByBigInteger(n)},this.setValueHex=function(r){this.hV=r},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 r=KJUR.asn1.ASN1Util.newObject(e.obj);e.hex="00"+r.getEncodedHex()}KJUR.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(n){this.hTLV=null,this.isModified=!0,this.hV=n},this.setUnusedBitsAndHexValue=function(n,i){if(n<0||7<n)throw"unused bits shall be from 0 to 7: u = "+n;var a="0"+n;this.hTLV=null,this.isModified=!0,this.hV=a+i},this.setByBinaryString=function(n){n=n.replace(/0+$/,"");var i=8-n.length%8;i==8&&(i=0);for(var a=0;a<=i;a++)n+="0";for(var o="",a=0;a<n.length-1;a+=8){var s=n.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(n){for(var i="",a=0;a<n.length;a++)n[a]==!0?i+="1":i+="0";this.setByBinaryString(i)},this.newFalseArray=function(n){for(var i=new Array(n),a=0;a<n;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 r=KJUR.asn1.ASN1Util.newObject(e.obj);e.hex=r.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 r=function(i){var a=i.toString(16);return a.length==1&&(a="0"+a),a},n=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 h=s.substr(u,7);u!=s.length-7&&(h="1"+h),a+=r(parseInt(h,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+=r(s),o.splice(0,2);for(var l=0;l<o.length;l++)a+=n(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(r){this.hTLV=null,this.isModified=!0,this.hV=KJUR.asn1.ASN1Util.bigIntToMinTwosComplementsHex(r)},this.setByInteger=function(r){var n=new BigInteger(String(r),10);this.setByBigInteger(n)},this.setValueHex=function(r){this.hV=r},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(r){this.hTLV=null,this.isModified=!0,this.date=r,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(r){this.hTLV=null,this.isModified=!0,this.date=r,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 r="",n=0;n<this.asn1Array.length;n++){var i=this.asn1Array[n];r+=i.getEncodedHex()}return this.hV=r,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 r=new Array,n=0;n<this.asn1Array.length;n++){var i=this.asn1Array[n];r.push(i.getEncodedHex())}return this.sortFlag==!0&&r.sort(),this.hV=r.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(r,n,i){this.hT=n,this.isExplicit=r,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(/^../,n),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(r,n){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(r,n)};return function(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(r,n);function i(){this.constructor=r}r.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),JSEncryptRSAKey=function(e){__extends(r,e);function r(n){var i=e.call(this)||this;return n&&(typeof n=="string"?i.parseKey(n):(r.hasPrivateKeyProperty(n)||r.hasPublicKeyProperty(n))&&i.parsePropertiesFrom(n)),i}return r.prototype.parseKey=function(n){try{var i=0,a=0,o=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,s=o.test(n)?Hex.decode(n):Base64.unarmor(n),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 h=l.sub[5].getHexStringValue();this.q=parseBigInt(h,16);var x=l.sub[6].getHexStringValue();this.dmp1=parseBigInt(x,16);var f=l.sub[7].getHexStringValue();this.dmq1=parseBigInt(f,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],m=v.sub[0];i=m.sub[0].getHexStringValue(),this.n=parseBigInt(i,16),a=m.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}},r.prototype.getPrivateBaseKey=function(){var n={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(n);return i.getEncodedHex()},r.prototype.getPrivateBaseKeyB64=function(){return hex2b64(this.getPrivateBaseKey())},r.prototype.getPublicBaseKey=function(){var n=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:[n,a]});return o.getEncodedHex()},r.prototype.getPublicBaseKeyB64=function(){return hex2b64(this.getPublicBaseKey())},r.wordwrap=function(n,i){if(i=i||64,!n)return n;var a="(.{1,"+i+`})( +|$
90
+ */var KJUR={};(typeof KJUR.asn1>"u"||!KJUR.asn1)&&(KJUR.asn1={}),KJUR.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var r=e.toString(16);return r.length%2==1&&(r="0"+r),r},this.bigIntToMinTwosComplementsHex=function(e){var r=e.toString(16);if(r.substr(0,1)!="-")r.length%2==1?r="0"+r:r.match(/^[0-7]/)||(r="00"+r);else{var n=r.substr(1),i=n.length;i%2==1?i+=1:r.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);r=l.toString(16).replace(/^-/,"")}return r},this.getPEMStringFromHex=function(e,r){return hextopem(e,r)},this.newObject=function(e){var r=KJUR,n=r.asn1,i=n.DERBoolean,a=n.DERInteger,o=n.DERBitString,s=n.DEROctetString,l=n.DERNull,c=n.DERObjectIdentifier,u=n.DEREnumerated,h=n.DERUTF8String,x=n.DERNumericString,f=n.DERPrintableString,g=n.DERTeletexString,v=n.DERIA5String,m=n.DERUTCTime,E=n.DERGeneralizedTime,b=n.DERSequence,d=n.DERSet,p=n.DERTaggedObject,y=n.ASN1Util.newObject,S=Object.keys(e);if(S.length!=1)throw"key of param shall be only one.";var k=S[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+k+":")==-1)throw"undefined key: "+k;if(k=="bool")return new i(e[k]);if(k=="int")return new a(e[k]);if(k=="bitstr")return new o(e[k]);if(k=="octstr")return new s(e[k]);if(k=="null")return new l(e[k]);if(k=="oid")return new c(e[k]);if(k=="enum")return new u(e[k]);if(k=="utf8str")return new h(e[k]);if(k=="numstr")return new x(e[k]);if(k=="prnstr")return new f(e[k]);if(k=="telstr")return new g(e[k]);if(k=="ia5str")return new v(e[k]);if(k=="utctime")return new m(e[k]);if(k=="gentime")return new E(e[k]);if(k=="seq"){for(var P=e[k],w=[],D=0;D<P.length;D++){var M=y(P[D]);w.push(M)}return new b({array:w})}if(k=="set"){for(var P=e[k],w=[],D=0;D<P.length;D++){var M=y(P[D]);w.push(M)}return new d({array:w})}if(k=="tag"){var B=e[k];if(Object.prototype.toString.call(B)==="[object Array]"&&B.length==3){var L=y(B[2]);return new p({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 p(V)}}},this.jsonToASN1HEX=function(e){var r=this.newObject(e);return r.getEncodedHex()}},KJUR.asn1.ASN1Util.oidHexToInt=function(e){for(var a="",r=parseInt(e.substr(0,2),16),n=Math.floor(r/40),i=r%40,a=n+"."+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 r=function(l){var c=l.toString(16);return c.length==1&&(c="0"+c),c},n=function(l){var c="",u=new BigInteger(l,10),h=u.toString(2),x=7-h.length%7;x==7&&(x=0);for(var f="",g=0;g<x;g++)f+="0";h=f+h;for(var g=0;g<h.length-1;g+=7){var v=h.substr(g,7);g!=h.length-7&&(v="1"+v),c+=r(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+=r(o),a.splice(0,2);for(var s=0;s<a.length;s++)i+=n(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 r=this.hV.length/2,n=r.toString(16);if(n.length%2==1&&(n="0"+n),r<128)return n;var i=n.length/2;if(i>15)throw"ASN.1 length too long to represent by 8x: n = "+r.toString(16);var a=128+i;return a.toString(16)+n},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(r){this.hTLV=null,this.isModified=!0,this.s=r,this.hV=stohex(this.s)},this.setStringHex=function(r){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},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(r){utc=r.getTime()+r.getTimezoneOffset()*6e4;var n=new Date(utc);return n},this.formatDate=function(r,n,i){var a=this.zeroPadding,o=this.localDateToUTC(r),s=String(o.getFullYear());n=="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),h=a(String(o.getMinutes()),2),x=a(String(o.getSeconds()),2),f=s+l+c+u+h+x;if(i===!0){var g=o.getMilliseconds();if(g!=0){var v=a(String(g),3);v=v.replace(/[0]+$/,""),f=f+"."+v}}return f+"Z"},this.zeroPadding=function(r,n){return r.length>=n?r:new Array(n-r.length+1).join("0")+r},this.getString=function(){return this.s},this.setString=function(r){this.hTLV=null,this.isModified=!0,this.s=r,this.hV=stohex(r)},this.setByDateValue=function(r,n,i,a,o,s){var l=new Date(Date.UTC(r,n-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(r){this.hTLV=null,this.isModified=!0,this.asn1Array=r},this.appendASN1Object=function(r){this.hTLV=null,this.isModified=!0,this.asn1Array.push(r)},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(r){this.hTLV=null,this.isModified=!0,this.hV=KJUR.asn1.ASN1Util.bigIntToMinTwosComplementsHex(r)},this.setByInteger=function(r){var n=new BigInteger(String(r),10);this.setByBigInteger(n)},this.setValueHex=function(r){this.hV=r},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 r=KJUR.asn1.ASN1Util.newObject(e.obj);e.hex="00"+r.getEncodedHex()}KJUR.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(n){this.hTLV=null,this.isModified=!0,this.hV=n},this.setUnusedBitsAndHexValue=function(n,i){if(n<0||7<n)throw"unused bits shall be from 0 to 7: u = "+n;var a="0"+n;this.hTLV=null,this.isModified=!0,this.hV=a+i},this.setByBinaryString=function(n){n=n.replace(/0+$/,"");var i=8-n.length%8;i==8&&(i=0);for(var a=0;a<=i;a++)n+="0";for(var o="",a=0;a<n.length-1;a+=8){var s=n.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(n){for(var i="",a=0;a<n.length;a++)n[a]==!0?i+="1":i+="0";this.setByBinaryString(i)},this.newFalseArray=function(n){for(var i=new Array(n),a=0;a<n;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 r=KJUR.asn1.ASN1Util.newObject(e.obj);e.hex=r.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 r=function(i){var a=i.toString(16);return a.length==1&&(a="0"+a),a},n=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 h=s.substr(u,7);u!=s.length-7&&(h="1"+h),a+=r(parseInt(h,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+=r(s),o.splice(0,2);for(var l=0;l<o.length;l++)a+=n(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(r){this.hTLV=null,this.isModified=!0,this.hV=KJUR.asn1.ASN1Util.bigIntToMinTwosComplementsHex(r)},this.setByInteger=function(r){var n=new BigInteger(String(r),10);this.setByBigInteger(n)},this.setValueHex=function(r){this.hV=r},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(r){this.hTLV=null,this.isModified=!0,this.date=r,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(r){this.hTLV=null,this.isModified=!0,this.date=r,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 r="",n=0;n<this.asn1Array.length;n++){var i=this.asn1Array[n];r+=i.getEncodedHex()}return this.hV=r,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 r=new Array,n=0;n<this.asn1Array.length;n++){var i=this.asn1Array[n];r.push(i.getEncodedHex())}return this.sortFlag==!0&&r.sort(),this.hV=r.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(r,n,i){this.hT=n,this.isExplicit=r,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(/^../,n),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(r,n){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(r,n)};return function(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(r,n);function i(){this.constructor=r}r.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),JSEncryptRSAKey=function(e){__extends(r,e);function r(n){var i=e.call(this)||this;return n&&(typeof n=="string"?i.parseKey(n):(r.hasPrivateKeyProperty(n)||r.hasPublicKeyProperty(n))&&i.parsePropertiesFrom(n)),i}return r.prototype.parseKey=function(n){try{var i=0,a=0,o=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,s=o.test(n)?Hex.decode(n):Base64.unarmor(n),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 h=l.sub[5].getHexStringValue();this.q=parseBigInt(h,16);var x=l.sub[6].getHexStringValue();this.dmp1=parseBigInt(x,16);var f=l.sub[7].getHexStringValue();this.dmq1=parseBigInt(f,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],m=v.sub[0];i=m.sub[0].getHexStringValue(),this.n=parseBigInt(i,16),a=m.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}},r.prototype.getPrivateBaseKey=function(){var n={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(n);return i.getEncodedHex()},r.prototype.getPrivateBaseKeyB64=function(){return hex2b64(this.getPrivateBaseKey())},r.prototype.getPublicBaseKey=function(){var n=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:[n,a]});return o.getEncodedHex()},r.prototype.getPublicBaseKeyB64=function(){return hex2b64(this.getPublicBaseKey())},r.wordwrap=function(n,i){if(i=i||64,!n)return n;var a="(.{1,"+i+`})( +|$
91
91
  ?)|(.{1,`+i+"})";return n.match(RegExp(a,"g")).join(`
92
92
  `)},r.prototype.getPrivateKey=function(){var n=`-----BEGIN RSA PRIVATE KEY-----
93
93
  `;return n+=r.wordwrap(this.getPrivateBaseKeyB64())+`
@@ -96,38 +96,38 @@ version: 2.9.0
96
96
  `,n+="-----END PUBLIC KEY-----",n},r.hasPublicKeyProperty=function(n){return n=n||{},n.hasOwnProperty("n")&&n.hasOwnProperty("e")},r.hasPrivateKeyProperty=function(n){return n=n||{},n.hasOwnProperty("n")&&n.hasOwnProperty("e")&&n.hasOwnProperty("d")&&n.hasOwnProperty("p")&&n.hasOwnProperty("q")&&n.hasOwnProperty("dmp1")&&n.hasOwnProperty("dmq1")&&n.hasOwnProperty("coeff")},r.prototype.parsePropertiesFrom=function(n){this.n=n.n,this.e=n.e,n.hasOwnProperty("d")&&(this.d=n.d,this.p=n.p,this.q=n.q,this.dmp1=n.dmp1,this.dmq1=n.dmq1,this.coeff=n.coeff)},r}(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(r){r===void 0&&(r={}),r=r||{},this.default_key_size=r.default_key_size?parseInt(r.default_key_size,10):1024,this.default_public_exponent=r.default_public_exponent||"010001",this.log=r.log||!1,this.key=null}return e.prototype.setKey=function(r){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new JSEncryptRSAKey(r)},e.prototype.setPrivateKey=function(r){this.setKey(r)},e.prototype.setPublicKey=function(r){this.setKey(r)},e.prototype.decrypt=function(r){try{return this.getKey().decrypt(b64tohex(r))}catch{return!1}},e.prototype.encrypt=function(r){try{return hex2b64(this.getKey().encrypt(r))}catch{return!1}},e.prototype.sign=function(r,n,i){try{return hex2b64(this.getKey().sign(r,n,i))}catch{return!1}},e.prototype.verify=function(r,n,i){try{return this.getKey().verify(r,b64tohex(n),i)}catch{return!1}},e.prototype.getKey=function(r){if(!this.key){if(this.key=new JSEncryptRSAKey,r&&{}.toString.call(r)==="[object Function]"){this.key.generateAsync(this.default_key_size,this.default_public_exponent,r);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 r=Math.random().toString(36).substr(2);for(;r.length<16;)r+=Math.random().toString(36).substr(2);return r=r.substr(0,16),r}const iv=CryptoJS.enc.Utf8.parse("ABCDEF1234123412");function aesEncrypt(e,r){r=r||aesKey;const n=CryptoJS.enc.Utf8.parse(r);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,n,{iv,mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.ZeroPadding}).toString()}function aesDecrypt(e,r){r=r||aesKey;const n=CryptoJS.enc.Utf8.parse(r),i=CryptoJS.AES.decrypt(e,n,{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 n=["/diagram","/dataview"].map(i=>`^(.*?)${i}(/|$)`);for(const i of n)if(new RegExp(i).test(e))return!0;return!1}function EncryptConfigParam(e){const{paramType:r,data:n,params:i,method:a}=e;r==="form"?["get","delete"].includes(a)?e.params=getEncryptParam(i,"string"):e.data=getEncryptParam(n,"string"):["get","delete"].includes(a)?e.params=getEncryptParam(i,"string"):e.data=getEncryptParam(n)}function getEncryptParam(e,r){let n=e||{};if(r==="string"){n="";for(const l in e)if(Object.hasOwnProperty.call(e,l)){const c=e[l];n+=`${l}=${encodeURIComponent(c)}&`}}setPublicKey("MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMKaTbS1XHH7u/4dhao1n5Lcegpy6AHKX2TjmTP7IDW6N4wznqlL3Tt+U0/Il1TlNp1/EN+tffYYg4dPrrCUDwcCAwEAAQ==");const a=rsaEncrypt(aesKey);return{c:aesEncrypt(n,aesKey),p:a}}window.getEncryptParam=getEncryptParam;function encryptData(e,r){var n;(n=window==null?void 0:window.config)!=null&&n.encryptFlag&&hasEncryptUrl(e.url)&&(e.data instanceof FormData?e.data=getEncryptFileParam(e.data):EncryptConfigParam(e))}function getEncryptFileParam(e){const r=e.entries(),n=new FormData,i={};for(const o of r){const s=o[0],l=o[1];l instanceof Blob?n.append(s,l):i[s]=l}const a=getEncryptParam(i,"json");return typeof a=="object"&&(n.append("c",a.c),n.append("p",a.p)),n}window.xhaesKey=aesKey,window.xhaesDecrypt=aesDecrypt;function decryptData(e,r){var n;if((n=window==null?void 0:window.config)!=null&&n.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:r={}}=window.config;return r!=null&&r.pltToken&&(e.headers["Plt-Token"]=r.pltToken),encryptData(e),e},e=>Promise.reject(e)),request.interceptors.response.use(e=>{var r,n,i;return requestErrorTip&&+((r=e==null?void 0:e.data)==null?void 0:r.code)==500&&antDesignVue.message.error({content:((n=e==null?void 0:e.data)==null?void 0:n.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:r}=(e==null?void 0:e.response)||{};r>=400&&r<500&&antDesignVue.message.error({content:"请求异常",key:"REQUEST_ERROR",duration:2}),r>=500&&antDesignVue.message.error({content:"服务器异常",key:"REQUEST_ERROR",duration:2})}return Promise.reject(e)});const handleFormatter=e=>e.replace(/\\n/g,`
97
97
  `),formatMoney=(e,r=2)=>{const n=parseFloat(e+"");return isNaN(n)?e:n.toFixed(r).replace(/(\d)(?=(\d{3})+\.)/g,"$1,")},formatThousands=e=>{const r=parseFloat(e+"");return isNaN(r)?e:(r+"").replace(/\B(?=(\d{3})+(?!\d))/g,",")},formatPercentage=(e,r=2)=>{const n=e+"";if(n.includes("%"))return e;const i=parseFloat(n);return isNaN(i)?e:`${(i*100).toFixed(r)}%`},formatDecimals=(e,r=2)=>{const n=e+"",i=parseFloat(n);return isNaN(i)?e:i.toFixed(r)},formatCustom=(e,r)=>useValueFormatter(r,e),lowerCaseIncludes=(e,r)=>{if(typeof e=="string"&&typeof r=="string")return e.toLocaleLowerCase().includes(r.toLocaleLowerCase());if(typeof e=="string"&&Array.isArray(r)){const n=r.length;for(let i=0;i<n;i++){const a=r[i];if(typeof a=="string"&&e.toLocaleLowerCase().includes(a.toLocaleLowerCase()))return!0}}return!1},hasOwn=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),getFixedValueDatas=e=>{const{leftAxisList:r=[],rightAxisList:n=[],queryColumnList:i=[],indicators:a=[]}=e;return[...r,...n,...i,...a].filter(o=>(o==null?void 0:o.calcType)==="COMPONENT").map(o=>({keyName:o.builtInCalcWay,id:o.builtInValueSource}))},canRequestIndicator=(e,r)=>{let n=!0;const i=getFixedValueDatas(e);return i!=null&&i.length&&(n=i.map(a=>r[a.id]).every(a=>a)),n},getLegendFormat=(e,r)=>{var s;const n=e.match(/\{(.+?)\}/g),i=((s=e.split(`
98
98
  `))==null?void 0:s.length)-1;let a="";if(i)for(let l=0;l<i;l++)a+=`
99
- `;let o=e;if(n!=null&&n.length){for(const l of n){const c=useVariablesInText(l,{textData:r},{useNewline:!1,useSpace:!1});c&&(o=o.replace(l,c))}return`${a}{text|${o}}`}else return e},setDefaultRangeVal=(e,r)=>{const{props:n,componentList:i,getGlobalModel:a}=e,{graphicConfig:o={},startValue:s,endValue:l}=n,c=getdefCompleteData({graphicConfig:o,startValue:s,endValue:l,componentList:i,getGlobalModel:a}),{dimensions:u,dataset:h}=r,{classificationList:x=[]}=o,g=x.find(v=>v.show).label||"";for(const v of c)u.includes(v)||u.push(v);u.sort((v,m)=>dayjs(v).isBefore(dayjs(m))?-1:1);for(const v of h){const{data:m}=v;if(m!=null&&m.length){const w=[];for(const b of c)if(m.find(d=>d[g]!==b)){const d=lodashEs.cloneDeep(m[0]);for(const p in d)p===g?d[p]=b:d[p]=0;w.push(d)}v.data.push(...w),v.data.sort((b,d)=>dayjs(b[g]).isBefore(dayjs(d[g]))?-1:1)}}},getConditions=e=>{const r=[];for(const n of e)n.conditions?r.push(...getConditions(n.conditions)):(n==null?void 0:n.dataType)==="component"&&r.push(n);return r};function getdefCompleteData(e){const{startValue:r,endValue:n,componentList:i,graphicConfig:a,getGlobalModel:o}=e,s=getVariableAndField(r),l=getVariableAndField(n),c=[];if(s&&l){const u=i.find(x=>x.keyName===s.keyName),h=i.find(x=>x.keyName===l.keyName);if(u&&h){const x=o(u.id),f=o(h.id),{classificationList:g=[]}=a,v=g.find(m=>m.show);if(v){let m="YYYY-MM";switch(v.name){case"the_year":m="YYYY";break;case"the_month":m="MM";break;case"the_day":m="DD";break;case"the_date":m=(v==null?void 0:v.dateFormat)||m;break}const w=getFormatStep(m);if(m){const b=vue.unref(x[s.field]),d=vue.unref(f[l.field]);let p=dayjs(b);const y=dayjs(d);for(c.push(y.format(m));p.isBefore(y);)c.push(p.format(m)),p=p.add(1,w)}}}}return c}function getVariableAndField(e){let r=null;if(e){const n=e.match(/\{(.+?)\}/g);if(n!=null&&n.length){let i=n[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()),r={keyName:i,field:o}}}return r}function getFormatStep(e){const r=e.split("-");let n="";if(r!=null&&r.length)switch(r[r.length-1]){case"YYYY":n="year";break;case"MM":n="month";break;case"DD":n="day";break}return n}function handleJumpLink(e,r){var x;const{pageMode:n,targetTemplate:i,getRecordValueByKeyName:a,setTemplateData:o}=r,s=e.linkPage||"",l=usePageUrl(n,s),c=e.href;let u=c||l;u=useVariablesInText(u);const h=e.target;if(h)if(h==="event")window.parent.postMessage({type:"openPage",url:c},"*");else{const f={pageId:s,componentId:i};if((x=e.transParams)!=null&&x.length){u.includes("?")?u+="&":u+="?";const g=[];for(const v of e.transParams){const m=a(String(v.fieldName));g.push(`${v.keyName}=${m}`),f[v.keyName]=m}u+=g.join("&")}h==="template"?o(f):(h==="blank"&&(u+=`${u.includes("?")?"&":"?"}drillFlag=1`),window.open(u,"_"+h))}}function getPageUrlParams(e){var n,i;let r={};if(e){const a=(((n=window.config)==null?void 0:n.urlParams)||{})[e]||{};for(const o in a)o.includes("{")||(r[o]=a[o])}else r=((i=window.config)==null?void 0:i.requestParams)||{};return r}const runCode=(e,r)=>{const n={dayjs,...r};let i="";const a=[];for(const l in n)i+=`${l},`,a.push(n[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:r,codeData:n}={},{useNewline:i=!1,useSpace:a=!1}={})=>{const s={...window.config||{},...r},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 h=u.slice(1,-1).trim();const x=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,f=h.match(x);for(let g=0;g<f.length;g++){const v=f[g],m=s[v];m!=null&&typeof m!="function"&&(h=h.replace(v,m))}(/\(.*\)/g.test(h)||/[+/\\*]/g.test(h))&&(h=runCode(h,n)),e=e.replace(u,h)}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,r,n=()=>{})=>{const{requestUrl:i,requestMethod:a,requestHeaders:o,requestParams:s,requestInterval:l,isViewRedrawing:c,isOpenRequestTimer:u,openCustomRequestData:h,projectRequestUrl:x="",getModel:f,requestParamsMode:g,customRequestParams:v,dataSetParam:m,requestType:w,dataType:b}=e,{pageMode:d}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"})||{},{pageId:p}=vue.inject("templateOperate",{pageId:""})||{},{contextRequestUrl:y,touchEventId:E}=vue.inject(GLOBAL_CONFIG,{contextRequestUrl:"",touchEventId:""})||{},{getGlobalModel:_}=vue.inject(GLOBAL_MODEL,{getGlobalModel:B=>{}})||{},P=f||_,A=useVariablesInText(i),R=async(B={})=>{var C;if(b!=="request"&&M){clearInterval(M);return}if(!A||!a||!o)return;let O={};for(const D of s){const{key:k,value:F}=D;if((F==null?void 0:F.id)==="PARENT"&&(F!=null&&F.prop)){const G=(((C=window.config)==null?void 0:C.record)||{})[F.prop];if(G){const j=G[F.propKey||"value"];j&&(["date","range"].some(H=>lowerCaseIncludes(G==null?void 0:G.type,H))?O[k]=vue.unref(j).format(G.format||"YYYY-MM-DD"):O[k]=vue.unref(j))}continue}if(c&&e.dataType!=="indicator"&&r.value.clear(),typeof F=="object"&&F!=null&&F.id){let $={};const{id:G,prop:j,propKey:U,operate:H}=F;let L=!1;try{JSON.parse(G),L=!0}catch{L=!1}G==="THIS"?$=P(vue.unref(E))||{}:$=P(G)||{};const K=vue.unref($[j]);let Y=null;if(["date","range"].some(J=>lowerCaseIncludes($==null?void 0:$.type,J))){const{value:J,type:Z,mode:W}=H||{};if(J&&Z&&W)switch(Z){case"add":Y=vue.unref(K).add(J,W);break;case"minus":Y=vue.unref(K).subtract(J,W);break}Y==null&&(Y=vue.unref(K)),Y=(Y==null?void 0:Y.format((U==null?void 0:U.trim())||$.format))||""}else if(Object.prototype.toString.call(K)==="[object Object]")U?Y=K[U]:Y=j?K[j]:K;else if(lowerCaseIncludes($==null?void 0:$.type,"select")&&vue.unref(K)&&j&&Array.isArray(vue.unref(K)))Y=vue.unref(K).map(J=>Object.prototype.hasOwnProperty.call(J,j)?J[j]:J);else if(L){const J=JSON.parse(G);console.log(J,"urlvalue"),Y=J.value}else Y=K;O[k]=Y}else typeof F=="object"&&F.id===null&&w===1?(console.log(F.propKey,"value.propKey"),O[k]=F.propKey):typeof F=="string"&&(O[k]=useVariablesInText(F))}if(w===1){console.log(O,"_params");const D=Object.entries(O);m.param=m.param.map((k,F)=>({...k,paramKey:D[F][0],defaultValue:D[F][1]||""})),O=m}if(g==="2"&&v!=="{}"){const D=JSON.parse(v);V(D),D&&(O=D)}function V(D){const k={...O,...getPageUrlParams(p)};if(Array.isArray(D))D.forEach((F,$)=>{if(typeof F=="string"){const G=F.match(/\${(.+?)\}/g);if(G!=null&&G.length){const j=G[0].slice(2,-1);j&&k[j]?D[$]=k[j]:D[$]=""}}else V(F)});else if(Object.prototype.toString.call(D)==="[object Object]")for(const F in D)if(typeof D[F]=="string"){const $=D[F].match(/\${(.+?)\}/g);if($!=null&&$.length){const G=$[0].slice(2,-1);G&&k[G]?D[F]=k[G]:D[F]=""}}else V(D[F])}O={...getPageUrlParams(p),...B,...O};let q="";const N=Object.keys(O),T=N.length-1,I=N.length;N.forEach((D,k)=>{let F=O[D];Object.prototype.toString.call(F)==="[object Object]"&&(F=JSON.stringify(F)),k===0?I!==1?q+=`?${D}=${F}&`:q+=`?${D}=${F}`:k===T?q+=`${D}=${F}`:q+=`${D}=${F}&`});function S(D){var k;if(w===1)return{Authentication:(k=window==null?void 0:window.config)==null?void 0:k.indicatorToken};if(typeof D=="string"){const F=JSON.parse(D),$=getPageUrlParams(p);if(Object.prototype.toString.call(F)==="[object Object]"){for(const G in F)if(typeof F[G]=="string"){const j=F[G].match(/\${(.+?)\}/g);if(j!=null&&j.length){const U=j[0].slice(2,-1);U&&$[U]?F[G]=$[U]:F[G]=""}}}return F}else return D}try{const D=["get","head"].includes(a),k={};let F=D?A+q:A;O.dataSqlId&&!F.includes("dataSqlId")&&(F+=`${F.includes("?")?"&":"?"}dataSqlId=${O.dataSqlId}`),Object.prototype.hasOwnProperty.call(O,"signal")&&(k.signal=O.signal);const $=await request({baseURL:vue.unref(y)||x||"",url:F,method:a,headers:o?S(o):{},data:D?{}:O,...k});return n($),$}catch(D){console.error(D)}},M=vue.unref(d)!=="design"&&u&&(h||h===void 0)&&setInterval(R,l*1e3);return vue.onUnmounted(()=>{clearInterval(M)}),R},useTransformChartDataByAttrKey=(e=[],r,n=!1)=>{let{name:i="name",types:a=[]}=r||{};i=(i==null?void 0:i.trim())||i;const o=new Set,s=new Map,l=e.length,c=a.length;if(l===1&&!n){const x=[];for(let g=0;g<c;g++){const v=a[g],{label:m,value:w}=v,b={...e[0],value:e[0][w]};o.add(m),x.push(b)}const f=e[0][i]||"";s.set(f,x)}else for(let x=0;x<l;x++){const f=e[x],g=f[i];o.add(g);for(let v=0;v<c;v++){const m=a[v],{label:w,value:b}=m,d={...f,value:f[b]||0};if(s.has(w)){const p=s.get(w);p.push(d),s.set(w,p)}else s.set(w,[d])}}const u=Array.from(o),h=[];for(const[x,f]of s)h.push({name:x,data:f});return{dimensions:u,dataset:h}},useImagePath=(e,r=!1)=>{var i;if(!e)return e;let n="";return e!=null&&e.includes("://")?n=e:n=((i=window==null?void 0:window.config)==null?void 0:i.uploadPath)+e,r&&(n=`url(${n})`),n},usePageUrl=(e,r)=>{const n=`${BASE_URL}/preview?pageId=${r}`,i=`${BASE_URL}/${r}`;return e==="preview"?n:i},useValueFormatter=(e,r)=>{var a;if(e==null)return r;const n=e.match(/\{.*\}/g);if(n==null||n.length===0)return r;const i=n.length;for(let o=0;o<i;o++){const s=n[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,r);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={},r,n=()=>{})=>{var P;const{pageMode:i}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),{requestToken:a}=vue.inject(GLOBAL_TOKEN,{requestToken:()=>{}}),{setLoadedData:o}=vue.inject(LOADED_DATA,{setLoadedData:(A,R)=>{}}),{getGlobalModel:s}=vue.inject(GLOBAL_MODEL,{getGlobalModel:A=>{}}),{pageId:l}=vue.inject("templateOperate",{pageId:""})||{};e.dataType==="indicator"&&a();const c=A=>{const{around:R,unit:M,id:B}=A;let O="";const{pageMode:V="",componentList:q=[]}=(e==null?void 0:e.graphicConfig)||{};let N=null,T=null;if(V==="design"){const I=q==null?void 0:q.find(G=>G.id===B);if(!I)return[];const{interval:S,intervalUnit:C,startTime:D,endTime:k,operate:F,useCurrentTime:$}=I||{};if($&&(N=dayjs().subtract(S,C),T=dayjs()),D&&(N=dayjs(D)),k&&(T=dayjs(k)),F){const{type:G,value:j,mode:U}=F;switch(G){case"add":N=N&&N.add(j,U),T=T&&T.add(j,U);break;case"minus":N=N&&N.subtract(j,U),T=T&&T.subtract(j,U)}}}else{const I=s(B)||{};vue.unref(I.startTime)&&(N=dayjs(vue.unref(I.startTime))),vue.unref(I.endTime)&&(T=dayjs(vue.unref(I.endTime)))}if(N&&T){const I=T.diff(N,M.toLowerCase());O=`${R==="before"?"-":""}${I+1}`}return O?[O]:[]},u=(A,R)=>Object.prototype.hasOwnProperty.call(A,R),h=(A,R)=>{if(R)u(A,"indexCode")&&(A.hrpIndexCode=A.indexCode,delete A.indexCode),u(A,"indexCodeNum")&&(A.hrpIndexCodeNum=A.indexCodeNum,delete A.indexCodeNum),u(A,"dataType")&&delete A.dataType;else{const{calcWays:M=[],dateCalcTypes:B=[],activeKey:O,componentId:V=""}=A;if(O===5&&(M!=null&&M.length)&&(B!=null&&B.length)&&V){const q=M[0].split("-");(q==null?void 0:q.length)>1&&q[0]==="rangeValue"&&(A.calcWays=c({around:q[1],unit:B[0],id:V})),delete A.radioValue}if(u(A,"dataType")){if(A.fieldType==="DATE"&&(A.label=A.fieldName),A.dataType==="component")if(A.fieldValue==="PARENT"){let q=A.modelKey;q&&A.prop&&(q+=`-${A.prop}`),A.fieldValue="${"+q+"}"}else A.fieldValue="${"+A.fieldValue+"}";delete A.dataType}u(A,"activeKey")&&delete A.activeKey,u(A,"radioValue")&&delete A.radioValue,u(A,"indexCode")&&(A.hrpIndexCode=A.indexCode,delete A.indexCode),u(A,"indexCodeNum")&&(A.hrpIndexCodeNum=A.indexCodeNum,delete A.indexCodeNum),A.dataType!=="component"&&A.useCurrentTime&&(A.fieldValue=dayjs().format(A.dateFormat)),u(A,"modelKey")&&delete A.modelKey,u(A,"prop")&&delete A.prop,delete A.useCurrentTime}},x=(A,R)=>{const M=[];return A!=null&&A.length&&lodashEs.cloneDeep(A).forEach(B=>{if(B.join&&B.conditions){const O=!B.conditions.some(V=>V.join&&V.conditions);B.conditions.forEach((V,q)=>{h(V,R);const N={};if(q<B.conditions.length-1&&(N.join=B.join),O)M.push({...N,...V});else if(V.join&&V.conditions){const T=R?"sqlConditions":"conditions";M.push({[T]:x([V],R),...N})}else M.push({...N,...V})})}else h(B,R),M.push(B)}),M},f=(A={},R)=>{if(A!=null&&A.sortCpnts&&R){const L=y(A);L&&(R.sort=L)}const{label:M,name:B,location:O,show:V,indexCode:q,indexCodeNum:N,calcType:T="COLUMN",builtInFormula:I,builtInValueSource:S,builtInCalcWay:C,formula:D,conditions:k,aggregate:F,distinct:$,dimByCount:G,dataTo:j}=A;let U;if(k&&(U=x(k)),T==="COMPONENT"){const L={};return d(L,S),{label:M.trim(),columnName:B,show:V,calcType:T,componentAlias:C,componentValue:L.fieldValue||null}}const H={label:M.trim(),columnName:B,location:O,show:V,calcType:j==="1"?"VIEW":T,hrpIndexCode:q,hrpIndexCodeNum:N,aggregate:F,builtInFormula:I,builtInValueSource:S,formula:D,conditions:U};if(I==="DATE_OFFSET"){const L=C.split("-");if((L==null?void 0:L.length)===3){let K=L[0];return L[2]==="before"&&L[0]!=="0"&&(K=`-${L[0]}`),{...H,calcWays:[K],dateCalcTypes:[L[1]]}}}else return B==="the_count"&&(H.calcType="AGGREGATE",H.distinct=!!$,H.typeGuid=G),{...H,builtInCalcWay:C}},g=A=>{if(!A)return[];const R=lodashEs.cloneDeep((A==null?void 0:A.controlList)||[]).filter(F=>F.conditionKey!=="parentCode"),{classificationList:M=[],rowHeaderList:B=[],dimensionList:O=[],seriesList:V=[],leftAxisList:q=[],rightAxisList:N=[],queryColumnList:T=[],indicators:I=[]}=A;w(R);const S=[...M,...B,...O,...V,...q,...N,...T,...I],C=[];for(const F of S){const $=getConditions((F==null?void 0:F.conditions)||[]);if($!=null&&$.length){const G=$.filter(j=>(j==null?void 0:j.dataType)==="component").map(j=>{const U={};return j!=null&&j.dateFormat&&(U.format=j.dateFormat),j.fieldValue==="PARENT"&&(U.id="PARENT",U.keyName=j.modelKey,U.modelKey=j.modelKey,U.prop=j.prop),{conditionKey:j.fieldName,conditionLabel:j.fieldName,conditionName:j.fieldName,conditionValueType:j.fieldType,id:j.componentId,keyName:j.fieldValue,rule:j.rule,notGlobal:!0,indexCode:j.indexCode,typeGuid:j.typeGuid,indexCodeNum:j.indexCodeNum,...U}});if(G!=null&&G.length)for(const j of G)C.find(U=>U.keyName===j.keyName)||C.push(j)}}const D=C.length,k=R;for(let F=0;F<D;F++){const $=C[F];if(($==null?void 0:$.conditionKey)==="parentCode")continue;const{id:G,keyName:j,prop:U,format:H,modelKey:L,dataType:K="component",customValue:Y}=$,Q=v($);d(Q,G,{prop:U,dateFormat:H,modelKey:L,keyName:j}),K===""&&(Q.fieldValue=Y||""),k.push(Q)}for(let F=k.length-1;F>=0;F--){const $=k[F];$.globalCondition||getConditions(k).find(j=>j.alias===$.alias&&j.globalCondition)&&k.splice(F,1)}return k};function v(A){const{id:R,keyName:M,conditionLabel:B,conditionKey:O,conditionValueType:V,prop:q,rule:N="NONE",notGlobal:T=!1,indexCode:I,typeGuid:S,indexCodeNum:C,dataType:D="component"}=A;let k=M||R;k&&q&&(k+=`-${q}`);let F=N;return F==="NONE"&&(["startTime","endTime"].includes(q)?F=q==="startTime"?"GREATER_EQUAL":"LESS_EQUAL":M!=null&&M.includes("startTime")?F=q==="GREATER_EQUAL":M!=null&&M.includes("endTime")?F=q==="LESS_EQUAL":F="EQUAL"),R==="PARENT"&&(k=A.modelKey,k&&q&&(k+=`-${q}`),F=N),{rule:F,label:B,fieldName:O,fieldValue:"",valueType:V,alias:k,globalCondition:!T,indexCode:I,typeGuid:S,indexCodeNum:C,dataType:D}}const m=["keyValue","conditionKey","conditionLabel","conditionName","conditionValueType","customValue","id","keyName"];function w(A){if(A!=null&&A.length)for(const R of A)if(R!=null&&R.conditions)w(R.conditions);else{const{id:M,keyName:B,prop:O,modelKey:V,format:q,dataType:N="component",customValue:T}=R,I=v(R);d(I,M,{prop:O,dateFormat:q,modelKey:V,keyName:B}),N===""&&(I.fieldValue=T||"");for(const S in I)R[S]=I[S];for(const S of m)delete R[S]}}function b(A){const R=[];if(A!=null&&A.length){for(const M of A)if(M.variableName){const B={variateName:M.variableName,globalCondition:!1,valueType:M.variableType,alias:M.keyName||""};d(B,M.id,{dateFormat:M.format,prop:M.dateTypeValue,keyName:M.keyName,operateType:M.operateType,operateMode:M.operateMode,operateValue:M.operateValue}),M.dataType===""&&(B.fieldValue=M.variableValue),M.format&&(B.dateFormat=M.format),M.label&&(B.label=M.label),R.push(B)}}return R}function d(A,R,M){const{prop:B="",dateFormat:O="",modelKey:V="",keyName:q="",operateValue:N,operateMode:T,operateType:I}=M||{},S=V||q;if(R==="PARENT"&&S&&B){const U=window.config.record;let H=B,L=O;const K=B.match(/\{(.+?)\}/g);if(K!=null&&K.length){const Y=K[0].slice(1,-1).trim();H=B.replace(K[0],""),L=Y,A.dateFormat=L}if(U&&U[S]){const Y=vue.unref(U[S][H]);dayjs.isDayjs(Y)?A.fieldValue=Y.format(L||"YYYY-MM-DD"):A.fieldValue=Y}return}const C=s(R)||{},{value:D,format:k="YYYY-MM-DD",type:F="",useCurrentTime:$,RECORD:G}=C||{},j=O||k;if(lowerCaseIncludes(C.type,"date")){let U;if($?D?U=vue.unref(D):U=dayjs():U=vue.unref(D),N&&T&&I)switch(I){case"add":U=U.add(N,T);break;case"minus":U=U.subtract(N,T);break}A.fieldValue=U==null?void 0:U.format(j),A.dateFormat=j}else if(F==="ecanRangePicker"){let U=B;if(!B){const L=q&&q.split("-");L!=null&&L.length&&(U=L[L.length-1])}if(!U)return;let H=null;if(vue.unref(C[U])&&(H=dayjs(vue.unref(C[U]))),N&&T&&I){if(N==="rangeValue"){if(C.startTime&&C.endTime){const L=vue.unref(C.endTime).diff(vue.unref(C.startTime),T)+1;switch(I){case"add":H=H&&H.add(L,T);break;case"minus":H=H&&H.subtract(L,T)}}}else if(!isNaN(+N))switch(I){case"add":H=H&&H.add(N,T);break;case"minus":H=H&&H.subtract(N,T)}}if(H&&(A.fieldValue=H==null?void 0:H.format(j)),U==="rangeValue"&&C.startTime&&C.endTime){const L=getFormatStep(j);L&&(A.fieldValue=vue.unref(C.endTime).diff(vue.unref(C.startTime),L)+1)}A.dateFormat=j}else lowerCaseIncludes(F,MODEL_KEY_LIST)?V&&G?A.fieldValue=G[V]:!V&&G?A.fieldValue=G.value:A.fieldValue=vue.unref(D):A.fieldValue=vue.unref(D)}const p=A=>{var R;if(A){const M=Array.isArray(A)?lodashEs.cloneDeep(A):[lodashEs.cloneDeep(A)];let B="",O=[];const V=[],q=[],N=[];for(const T of M){if(T.defaultCode&&(T.label=T.columnName,delete T.defaultCode),T.type==="CUSTOM"&&(O=T.customOrderColumns),B=T.type,V.push(T.label),(R=T.columnName)!=null&&R.includes("_ecanrepeat_")){const I=T.columnName.split("_ecanrepeat_");q.push(I[0])}else q.push(T.columnName);N.push(T.order)}return B!=="CUSTOM"&&(V==null?void 0:V.length)>1&&(B="COMBINATION"),B==="CUSTOM"?{label:V.join(","),columnName:q.join(","),type:B,customOrderColumns:O}:{label:V.join(","),columnName:q.join(","),order:N.join(","),type:B}}else return A},y=A=>{const{sortCpnts:R=[]}=A;let M,B="";for(const O of R){const V=s(O)||{},{type:q,RECORD:N}=V;if(lowerCaseIncludes(q,"image")&&lowerCaseIncludes(N==null?void 0:N.value,["asc","desc"])){B=N.value.toUpperCase();break}}return B&&(M={label:A.label,columnName:A.name,order:B,type:"NORMAL"}),M},E=async(A={})=>{var ge,be,Ee,ke,Ce,Te;e.isViewRedrawing&&r.value.clear(),o(e.id,!1);const{graphicConfig:R,type:M,isGroupTable:B=!1}=e;let{source:O,dataViewId:V,plugin:q="1",layer:N,chartType:T,classificationList:I=[],rowHeaderList:S=[],dimensionList:C=[],seriesList:D=[],leftAxisList:k=[],rightAxisList:F=[],queryColumnList:$=[],indicators:G=[],controlList:j=[],formFields:U={},variableList:H=[],variableConditions:L=[],idxLibMode:K,preview:Y=!1,edvDataSetId:Q}=R||{},J=[];if((R==null?void 0:R.pageMode)==="design"?(J=(R.sqlConditions??[]).map(de=>{const me={};if(!u(de,"globalCondition")&&!de.join&&(me.globalCondition=!0),!de.join){const pe=de.rule||"EQUAL";me.rule=pe==="NONE"?"EQUAL":pe}return{...de,...me}}),L!=null&&L.length&&(J=J.concat(L))):(J=g(R),H!=null&&H.length&&(J=J.concat(b(H)))),J!=null&&J.length){const de=J.filter(pe=>pe.globalCondition),me=J.filter(pe=>!pe.globalCondition);(de==null?void 0:de.length)>1&&(J=[{join:"&&",conditions:de},...me])}J!=null&&J.length&&(J=x(J,"1")),N==null&&(lowerCaseIncludes(M,["table"])||lowerCaseIncludes(M,["list","circulate"])&&(I==null?void 0:I.length)>1?N="1":lowerCaseIncludes(M,["select","checkbox","radio"])?N="3":N="2");let Z;const W=[];let ee="";if(Array.isArray(I)&&I.length>0&&(!["ecanList","ecanCirculate"].includes(M)||(I==null?void 0:I.length)===1)){const de=I.length;for(let me=0;me<de;me++){const pe=I[me]||{},{label:Ae="",name:_e="",show:Ve=!1,sort:De,customGroup:ze,conditions:$e,dateFormat:Me,typeGuid:Ge="",truncations:Fe=[]}=pe;if(Ve||de===1){ee=Ge,Z={label:Ae.trim(),columnName:_e,show:Ve,sort:y(pe)||p(De)||De,customGroup:ze,conditions:x($e),typeGuid:Ge},Me&&(Z.dateFormat=Me),_e==="the_date"&&!Z.dateFormat&&(Z.dateFormat="YYYY-MM");const Pe={};if(Array.isArray(Fe)&&Fe.length>0){const Re=Fe.length;for(let Ie=0;Ie<Re;Ie++){const Oe=Fe[Ie]||{},{rule:Ne="",num:qe=0,name:He=""}=Oe;Ne&&qe&&(Pe.num=qe,Pe.rule=Ne,He&&(Pe.otherGroupName=He))}}if((ge=Object.keys(Pe))!=null&&ge.length&&(Z.truncation=Pe),lowerCaseIncludes(M,"scatter"))W.push(Z);else break}}}let re;if(Array.isArray(D)&&D.length>0){const de=D.length;for(let me=0;me<de;me++){const pe=D[me]||{},{label:Ae="",name:_e="",show:Ve=!1,sort:De,customGroup:ze,conditions:$e,typeGuid:Me}=pe;if(Ve||de===1){re={label:Ae.trim(),columnName:_e,show:Ve,sort:p(De),customGroup:ze,conditions:x($e),typeGuid:Me};break}}}const ie=[];k==null||k.forEach(de=>{de.location="LEFT",ie.push(f(de,Z))}),F==null||F.forEach(de=>{de.location="RIGHT",ie.push(f(de,Z))}),G==null||G.forEach(de=>{de.location="LEFT",ie.push(f(de,Z))});const ae=[];["ecanList","ecanCirculate"].includes(M)&&(I==null?void 0:I.length)>1&&($=I),$==null||$.forEach(de=>{const{label:me,name:pe,location:Ae,show:_e,indexCode:Ve,sort:De,typeGuid:ze,indexCodeNum:$e,dateFormat:Me,conditions:Ge}=de;let Fe=p(De);if(A.sort){const{field:Re,order:Ie}=A.sort;let Oe=ie.find(Ne=>Ne.label===Re);!Oe&&me===Re&&(Oe=de),Oe&&(Fe={columnName:Oe.columnName,label:A.sort.field,order:Ie.toUpperCase(),type:"NORMAL"})}const Pe={label:me,columnName:pe,location:Ae,show:_e,sort:Fe,calcType:"COLUMN",hrpIndexCode:Ve,hrpIndexCodeNum:$e,conditions:x(Ge),typeGuid:ze};Me&&(Pe.dateFormat=Me),pe==="the_date"&&!Pe.dateFormat&&(Pe.dateFormat="YYYY-MM"),ae.push(Pe)});const le=[];let 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 pe=fe[me]||{},{label:Ae="",name:_e="",show:Ve=!1,sort:De,customGroup:ze,conditions:$e,truncations:Me,typeGuid:Ge="",dateFormat:Fe}=pe;let Pe=p(De);if(A.sort){const{field:Oe,order:Ne}=A.sort;let qe=ie.find(He=>He.label===Oe);!qe&&pe.label===Oe&&(qe=pe),qe&&(Pe={columnName:qe.columnName,label:A.sort.field,order:Ne.toUpperCase(),type:"NORMAL"})}const Re={label:Ae.trim(),columnName:_e,show:Ve,sort:Pe,customGroup:ze,conditions:x($e),typeGuid:Ge};Fe&&(Re.dateFormat=Fe),_e==="the_date"&&!Re.dateFormat&&(Re.dateFormat="YYYY-MM");const Ie={};if(Array.isArray(Me)&&Me.length>0){const Oe=Me.length;for(let Ne=0;Ne<Oe;Ne++){const qe=Me[Ne]||{},{rule:He="",num:X=0,name:te=""}=qe;He&&X&&(Ie.num=X,Ie.rule=He,te&&(Ie.otherGroupName=te))}}(be=Object.keys(Ie))!=null&&be.length&&(Re.truncation=Ie),le.push(Re)}}if(lowerCaseIncludes(M,["text","proportion","counter"])&&(T="zb"),B){if(le.length===0||ie.length===0)return;T="grouptable"}else{if(N==="1"&&ae.length===0)return;if(N==="2"&&ie.length===0)return;if(N==="3"&&(!ee||!U.labelField||!U.valueField))return;if(N==="3"&&M==="ecanDataSelect"&&ie.length===0)return}C!=null&&C.length&&(N="1",T="grouptable");let he=l||((Ee=window==null?void 0:window.config)==null?void 0:Ee.pageId);if(!he){const{pathname:de}=window==null?void 0:window.location;if(de){const me=de.split("/");me!=null&&me.length&&(he=me[me.length-1])}}if(M!=="ecanScatter"&&((ke=Object.keys(U))!=null&&ke.length)){const de=getConditions(j).find(pe=>pe.conditionKey==="parentCode"),me={};if(de){const pe=s(de.id)||{};if(pe!=null&&pe.itemCodes)me.parentItemCodes=pe.itemCodes;else return}M==="ecanDataSelect"&&(me.indicatorList=ie.filter(pe=>pe.show));try{const pe=await request.post(`${INDICATOR_URL}/diagram/formData`,{source:O,dataViewId:V,plugin:"4",layer:N,chartType:"normalSelect",rangeIndexTypeGuid:ee,type:M==="ecanDataSelect"?"normalSelectData":"normalSelect",labelField:U.labelField,valueField:U.valueField,pageId:he,sqlConditions:J,idxLibMode:"WITH_DATE_DIM_TABLE",keyName:e.keyName,...me},{headers:{Authentication:(Ce=window==null?void 0:window.config)==null?void 0:Ce.indicatorToken,operateContext:CONTEXT}});return A!=null&&A.isTimer&&n(pe),pe}catch(pe){console.error(pe)}finally{}}else try{let de={};lowerCaseIncludes(M,"scatter")?de={classifications:W}:de={classification:Z};const me=await request.post(`${INDICATOR_URL}/diagram`,{source:O,dataViewId:V,plugin:q,layer:N,chartType:T,...de,series:re,indicatorList:ie,queryColumns:B?[]:ae,pageFlag:!0,pageId:he,edvDataSetId:Q||"",sqlConditions:J.map(pe=>{const{fieldValue:Ae}=pe,_e={};return Ae&&Array.isArray(Ae)&&(_e.fieldValue=JSON.stringify(Ae)),{...pe,..._e}}),idxLibMode:K,preview:Y,rowHeaders:le,keyName:e.keyName},{headers:{Authentication:(Te=window==null?void 0:window.config)==null?void 0:Te.indicatorToken,operateContext:CONTEXT}});return A!=null&&A.isTimer&&n(me),me}catch(de){console.error(de)}finally{}},_=vue.unref(i)!=="design"&&((P=e==null?void 0:e.graphicConfig)==null?void 0:P.pageMode)!=="design"&&e.isOpenRequestTimer&&e.requestInterval&&setInterval(()=>{E({isTimer:!0})},e.requestInterval*1e3);return vue.onUnmounted(()=>{clearInterval(_)}),E},useHrefParamsToGlobalVariables=()=>{const r=window.location.search.slice(1).split("&"),n=r.length,i={};for(let a=0;a<n;a++){const o=r[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$s=vue.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...pageConfigComponentProps,pageId:{type:String,default:""}},setup(e){const{width:r,height:n}=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=r.value,y.height=n.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),h=vue.ref(!1),x=vue.ref();let f;const g=()=>new Promise(y=>{vue.nextTick(()=>{r.value&&n.value?(s.value=parseFloat(r.value),l.value=parseFloat(n.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([r,n],async()=>{e.pageId||(await g(),v(),w(),window.addEventListener("resize",b),d()),h.value=!0},{immediate:!0});const m=vue.ref({});vue.provide("scaleValue",m);const w=()=>{if(a){x.value.style.width="100%",x.value.style.height="auto",i("auto");return}const y=document.body.clientWidth,E=document.body.clientHeight,_=s.value||c.value,P=l.value||u.value,A=y/_;let R=E/P;(s.value!==1920||l.value!==1080)&&(R=l.value/s.value*y/P),m.value={widthScale:A,heightScale:R},x.value&&(x.value.style.transform=`scale(${A}, ${R})`),i(R)},b=lodashEs.debounce(async()=>{await g(),w()},100),d=()=>{const y=window.MutationObserver;f=new y(b),f.observe(x.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},p=()=>{f&&(f.disconnect(),f.takeRecords(),f=null)};return vue.onMounted(()=>{h.value=!1}),vue.onUnmounted(()=>{window.removeEventListener("resize",b),p()}),{style:o,container:x,ready:h}}}),PageConfig_vue_vue_type_style_index_0_scoped_e1e149bf_lang="",_hoisted_1$g={id:"container",ref:"container"};function _sfc_render$x(e,r,n,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$s,[["render",_sfc_render$x],["__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$r=vue.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,props:{...providerConfigComponentProps,pageId:{type:String,default:""}},setup(e,{expose:r,emit:n}){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 ee of vue.unref(s))ee.type==="ecanModal"?W.push(...ee.componentList):W.push(ee);return W});vue.watch(()=>e.theme,()=>{o()}),vue.onMounted(()=>{o()});const u=vue.computed(()=>useVariablesInText(e.contextRequestUrl)),h=vue.computed(()=>e.pageMode),x=vue.computed(()=>e.theme),f=vue.computed(()=>e.width),g=vue.computed(()=>e.height),v=vue.computed(()=>e.pageFontFamily),m=vue.computed(()=>{const W=[],ee=vue.unref(l).filter(re=>re.type==="ecanModal");for(const re of ee)re!=null&&re.requestList&&W.push(...re.requestList);return[...W,...e.requestList]}),w=vue.ref("");vue.provide(GLOBAL_CONFIG,{contextRequestUrl:u,pageMode:h,theme:x,touchEventId:w,width:f,height:g,fontFamily:v,requestList:m});const b=vue.ref({height:"100%",overflow:e.pageMode==="design"?"":"hidden"});vue.provide("setPageHeight",W=>{let ee=W;i.value||(ee=parseFloat(g.value)*W+"px"),b.value.height=ee}),vue.provide("isMobile",i.value),vue.provide("getContainerMap",()=>e.containerMap),vue.provide("getCombinationMap",()=>e.combinationMap),vue.provide("templateOperate",{pageId:e.pageId,templateEmit:n,setTemplateData:W=>{var ee;if(W!=null&&W.pageId){const{componentId:re,...ie}=W;(ee=window.config)!=null&&ee.urlParams||(window.config.urlParams={}),window.config.urlParams[W.pageId]=ie,n("templateChange",W)}}});const d=vue.ref(),p=new Map,y=W=>p.get(W),E=(W,ee)=>{var re;if(d.value=ee,p.set(W,ee),!e.pageId){const ie=vue.unref(s).find(ae=>ae.id===W);ie&&((re=window.config)!=null&&re.record||(window.config.record={}),window.config.record[ie.keyName]=ee)}},_=()=>{d.value=null},P=W=>{let ee=W;if(ee){const re=W.match(/\{(.+?)\}/g);if(re!=null&&re.length){let ie=re[0].slice(1,-1).trim();const ae=ie.match(/\[(.+?)\]/g);let le="";ae!=null&&ae.length&&(ie=ie.replace(ae[0],""),le=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:Ee,recordData:ke}=he||{};lowerCaseIncludes(ge,MODEL_KEY_LIST)?ee=Ee[le]:lowerCaseIncludes(ge,"select")?ee=ke[le]:lowerCaseIncludes(ge,["rangePicker","date"])?dayjs.isDayjs(vue.unref(he[le]))?ee=vue.unref(he[le]).format(he.format):ee=vue.unref(he[le]):ee=be}else ee=(window.config.requestParams||{})[ie]||""}}return ee},A=new Map,R={},M=async(W,ee)=>{var fe;const{requestName:re}=W,ie=await useRequestData({...W,projectRequestUrl:vue.unref(u),getModel:y})(),ae=((fe=ie==null?void 0:ie.data)==null?void 0:fe.data)||{},le=A.get(re);if(le!=null&&le.length&&(!ee||R[re])){for(const he of le)he(ae);ee||A.delete(re)}},B=(W,ee)=>{R[W]&&(clearInterval(R[W]),delete R[W],A.delete(W));const re=vue.unref(c).filter(ae=>!ae.openCustomRequestData&&ae.customRequestName===W),ie=A.get(W)||[];if((re==null?void 0:re.length)>ie.length&&(ie.push(ee),A.set(W,ie),(re==null?void 0:re.length)===ie.length)){const ae=vue.unref(m).find(le=>le.requestName===W);ae&&(ae!=null&&ae.isOpenRequestTimer&&(ae!=null&&ae.requestInterval)?(M(ae,!0),R[W]=setInterval(()=>{M(ae,!0)},ae.requestInterval*1e3)):M(ae))}};vue.provide(GLOBAL_MODEL,{getGlobalModel:y,setGlobalModel:E,clearInteractiveData:_,getRecordValueByKeyName:P,hanldePageRequestData:B,interactiveData:d});const O=vue.ref({}),V=(W,ee)=>{O.value[W]=ee};vue.provide(LOADED_DATA,{loadedData:O,setLoadedData:V});const q=[],N=()=>{q.pop()},T=W=>{q.push(W)},I=new Map,S=W=>I.get(W),C=(W,ee)=>{I.set(W,ee)};vue.provide(MODAL_MODEL,{popUseModalIds:N,pushUseModalIds:T,getModalModel:S,setModalModel:C});const D=mitt(),k=new Set,F=(W,ee)=>{k.add(W),D.on(W,re=>{const{eventName:ie,params:ae}=re;return typeof ee[ie]=="function"&&ee[ie](ae)}),vue.onBeforeUnmount(()=>{$(W)})},$=W=>{k.delete(W),D.off(W)},G=(W,ee,re={})=>{if(W==="PAGE"){const ie=q.length;let ae=[];if(ie===0)ae=[...k];else{const le=q[ie-1];ae=[...S(le)]}ae.forEach(le=>{D.emit(le,{eventName:ee,params:re})})}else D.emit(W,{eventName:ee,params:re})};vue.provide(EVENT_BUS,{onEvent:F,offEvent:$,emitEvent:G});const j=vue.ref(0),U=()=>{j.value=vue.unref(j)+1};vue.provide(GLOBAL_TOKEN,{requestToken:U});const H=new Map,L=new Map,K=({requestFn:W=()=>{},sortNum:ee=0,id:re=""})=>{if(H.has(ee)){const ie=H.get(ee);ie==null||ie.push(W)}else H.set(ee,[W]);L.set(re,W)},Y=W=>new Promise((ee,re)=>{const ie=W.map(ae=>ae());Promise.all(ie).then(ae=>{ee(ae)}).catch(ae=>{re(ae)})}),Q=W=>new Promise(async(ee,re)=>{if(W){if(typeof W=="string"){const ie=L.get(W);if(typeof ie=="function"){const ae=request.interceptors.response.use(le=>(ee(le),le),le=>(re(le),Promise.reject(le)));ie(),request.interceptors.response.eject(ae)}}}else{const ie=Array.from(H);ie.sort((le,fe)=>fe[0]-le[0]);const ae=ie.length;try{e.pageMode!=="design"&&vue.unref(j)>0;for(let le=0;le<ae;le++){const fe=ie[le][1];await Y(fe)}}catch(le){console.error(le)}finally{H.clear(),ee(null)}}});vue.provide(REQUEST_MODEL,{setRequest:K,touchRequest:Q});const J=()=>{D.emit(REFRESH_PAGE)};vue.provide(REFRESH_PAGE,{emitRefreshPage:J});const Z=W=>{D.on(REFRESH_PAGE,()=>W()),vue.onMounted(()=>{D.off(REFRESH_PAGE)})};return vue.watchEffect(()=>{var W;if((W=vue.unref(s))!=null&&W.length&&vue.unref(h)!=="design"){const{jumpType:ee,jumpTime:re,jumpPage:ie,jumpLink:ae}=e;if(re!=null&&re.value){let le=0;switch(re==null?void 0:re.suffix){case"hours":le=re.value*60*60*1e3;break;case"minute":le=re.value*60*1e3;break;case"seconds":le=re.value*1e3;break}setTimeout(()=>{let fe="";ee==="page"&&ie?fe=usePageUrl(vue.unref(h),ie):ee==="link"&&ae&&(fe=ae),fe=useVariablesInText(fe),window.open(fe,"_self")},le)}}}),vue.onBeforeUnmount(()=>{H==null||H.clear(),L==null||L.clear()}),r({touchRequest:Q,getGlobalModel:y,onRefreshPage:Z,emitEvent:G,props:e}),{providerConfig:a,configStyle:b}}}),ProviderConfig_vue_vue_type_style_index_0_scoped_61fdeb02_lang="";function _sfc_render$w(e,r,n,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$r,[["render",_sfc_render$w],["__scopeId","data-v-61fdeb02"]]),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:r}){const n=vue.ref(!1),i=usePickComponentStyle(e),a=vue.ref({}),o=vue.computed(()=>e.variableFontSize||"14px"),s=vue.computed(()=>"-"+vue.unref(o)),l=C=>{var D,k;if(e.showAnimation){const F=e.text.match(/\{(.+?)\}/g)||[];if(F!=null&&F.length){const $=(D=F[0].slice(1,-1))==null?void 0:D.trim();if(vue.unref(a)[$]===C){a.value=C;return}const G=+C[$];let j=0;if(isNaN(G))a.value=C;else{String(G).includes(".")&&(j=((k=String(G).split(".")[1])==null?void 0:k.length)||0);const U=Math.abs(G)*Math.pow(10,j),H=String(U).length;let L=[];for(let Y=0;Y<5;Y++){const Q=Math.ceil(Math.random()*(U+1)-1);L.includes(Q)||L.push(Q)}L.sort((Y,Q)=>Y-Q),L=L.map(Y=>{const Q=String(Y).split("").reverse(),J=[];for(let Z=0;Z<H;Z++)Q&&Q[Z]?J.push(Q[Z]):J.push("0");return j&&J.splice(j,0,"."),(G<0?"-":"")+J.reverse().join("")}),L.push(G);let K=0;for(const Y of L)setTimeout(()=>{a.value={...vue.unref(a),[$]:Y}},K*1e3),K+=.1}}else a.value=C}else a.value=C};vue.watch(()=>[e.data,e.dataType],([C,D])=>{D==="static"&&l(C)},{immediate:!0});const{getGlobalModel:c,setGlobalModel:u,getRecordValueByKeyName:h,hanldePageRequestData:x}=vue.inject(GLOBAL_MODEL,{getGlobalModel:C=>{},setGlobalModel:(C,D)=>{},getRecordValueByKeyName:C=>{},hanldePageRequestData:(C,D)=>{}}),{setLoadedData:f}=vue.inject(LOADED_DATA,{setLoadedData:(C,D)=>{}}),{setTemplateData:g}=vue.inject("templateOperate",{setTemplateData:C=>{}}),v=vue.computed(()=>{let C="";if(e.gradientShow){const{gradientColor:D,gradientOffset:k,gradientAngle:F,color:$}=e;C+=`background: linear-gradient(${F}, ${$}, ${D||"transparent"} ${k*100}%);-webkit-background-clip: text;color: transparent;`}return C}),m=vue.computed(()=>{const C={};if(e.gradientShow){const{gradientColor:D,gradientOffset:k,gradientAngle:F,color:$}=e,G=D||"transparent";C.background=`linear-gradient(${F}, ${$}, ${G} ${k*100}%)`,C["-webkit-background-clip"]="text",C.color="transparent"}return C}),w=vue.computed(()=>{const C={};return e.linkPage&&(C.cursor="pointer",C.userSelect="none"),C}),b=vue.ref(1),d=vue.computed(()=>{var U;if(vue.unref(n))return"NaN";if(!b.value)return;const C=vue.unref(a),D=e.increaseColor||e.color,k=e.declineColor||e.color;let F=e.text;F=F==null?void 0:F.replace(/\n|\\n/g,"<br/>"),F=F==null?void 0:F.replace(/\s(?!\{) | (?!\})\s/g,"&nbsp;");const $=F.match(/\{(.+?)\}/g)||[];let G="",j="";if(e.exceedConfig==="wrap"?j="show-wrap":e.exceedConfig==="ellipsis"&&(j="show-ellipsis"),$==null||$.length===0){if(F&&e.format==="percentage"&&!isNaN(+F)){const H=parseFloat(F),L=H*100,K=p(L.toFixed(2));H>=0?F=`<span class="${j}" style="color: ${K||D||"#ED6643"};font-size:${vue.unref(o)};display: inline-block;${vue.unref(v)}">
99
+ `;let o=e;if(n!=null&&n.length){for(const l of n){const c=useVariablesInText(l,{textData:r},{useNewline:!1,useSpace:!1});c&&(o=o.replace(l,c))}return`${a}{text|${o}}`}else return e},setDefaultRangeVal=(e,r)=>{const{props:n,componentList:i,getGlobalModel:a}=e,{graphicConfig:o={},startValue:s,endValue:l}=n,c=getdefCompleteData({graphicConfig:o,startValue:s,endValue:l,componentList:i,getGlobalModel:a}),{dimensions:u,dataset:h}=r,{classificationList:x=[]}=o,g=x.find(v=>v.show).label||"";for(const v of c)u.includes(v)||u.push(v);u.sort((v,m)=>dayjs(v).isBefore(dayjs(m))?-1:1);for(const v of h){const{data:m}=v;if(m!=null&&m.length){const E=[];for(const b of c)if(m.find(d=>d[g]!==b)){const d=lodashEs.cloneDeep(m[0]);for(const p in d)p===g?d[p]=b:d[p]=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 r=[];for(const n of e)n.conditions?r.push(...getConditions(n.conditions)):(n==null?void 0:n.dataType)==="component"&&r.push(n);return r};function getdefCompleteData(e){const{startValue:r,endValue:n,componentList:i,graphicConfig:a,getGlobalModel:o}=e,s=getVariableAndField(r),l=getVariableAndField(n),c=[];if(s&&l){const u=i.find(x=>x.keyName===s.keyName),h=i.find(x=>x.keyName===l.keyName);if(u&&h){const x=o(u.id),f=o(h.id),{classificationList:g=[]}=a,v=g.find(m=>m.show);if(v){let m="YYYY-MM";switch(v.name){case"the_year":m="YYYY";break;case"the_month":m="MM";break;case"the_day":m="DD";break;case"the_date":m=(v==null?void 0:v.dateFormat)||m;break}const E=getFormatStep(m);if(m){const b=vue.unref(x[s.field]),d=vue.unref(f[l.field]);let p=dayjs(b);const y=dayjs(d);for(c.push(y.format(m));p.isBefore(y);)c.push(p.format(m)),p=p.add(1,E)}}}}return c}function getVariableAndField(e){let r=null;if(e){const n=e.match(/\{(.+?)\}/g);if(n!=null&&n.length){let i=n[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()),r={keyName:i,field:o}}}return r}function getFormatStep(e){const r=e.split("-");let n="";if(r!=null&&r.length)switch(r[r.length-1]){case"YYYY":n="year";break;case"MM":n="month";break;case"DD":n="day";break}return n}function handleJumpLink(e,r){var x;const{pageMode:n,targetTemplate:i,getRecordValueByKeyName:a,setTemplateData:o}=r,s=e.linkPage||"",l=usePageUrl(n,s),c=e.href;let u=c||l;u=useVariablesInText(u);const h=e.target;if(h)if(h==="event")window.parent.postMessage({type:"openPage",url:c},"*");else{const f={pageId:s,componentId:i};if((x=e.transParams)!=null&&x.length){u.includes("?")?u+="&":u+="?";const g=[];for(const v of e.transParams){const m=a(String(v.fieldName));g.push(`${v.keyName}=${m}`),f[v.keyName]=m}u+=g.join("&")}h==="template"?o(f):(h==="blank"&&(u+=`${u.includes("?")?"&":"?"}drillFlag=1`),window.open(u,"_"+h))}}function getPageUrlParams(e){var n,i;let r={};if(e){const a=(((n=window.config)==null?void 0:n.urlParams)||{})[e]||{};for(const o in a)o.includes("{")||(r[o]=a[o])}else r=((i=window.config)==null?void 0:i.requestParams)||{};return r}const runCode=(e,r)=>{const n={dayjs,...r};let i="";const a=[];for(const l in n)i+=`${l},`,a.push(n[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:r,codeData:n}={},{useNewline:i=!1,useSpace:a=!1}={})=>{const s={...window.config||{},...r},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 h=u.slice(1,-1).trim();const x=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,f=h.match(x);for(let g=0;g<f.length;g++){const v=f[g],m=s[v];m!=null&&typeof m!="function"&&(h=h.replace(v,m))}(/\(.*\)/g.test(h)||/[+/\\*]/g.test(h))&&(h=runCode(h,n)),e=e.replace(u,h)}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,r,n=()=>{})=>{const{requestUrl:i,requestMethod:a,requestHeaders:o,requestParams:s,requestInterval:l,isViewRedrawing:c,isOpenRequestTimer:u,openCustomRequestData:h,projectRequestUrl:x="",getModel:f,requestParamsMode:g,customRequestParams:v,dataSetParam:m,requestType:E,dataType:b}=e,{pageMode:d}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"})||{},{pageId:p}=vue.inject("templateOperate",{pageId:""})||{},{contextRequestUrl:y,touchEventId:S}=vue.inject(GLOBAL_CONFIG,{contextRequestUrl:"",touchEventId:""})||{},{getGlobalModel:k}=vue.inject(GLOBAL_MODEL,{getGlobalModel:B=>{}})||{},P=f||k,w=useVariablesInText(i),D=async(B={})=>{var C;if(b!=="request"&&M){clearInterval(M);return}if(!w||!a||!o)return;let L={};for(const F of s){const{key:_,value:O}=F;if((O==null?void 0:O.id)==="PARENT"&&(O!=null&&O.prop)){const q=(((C=window.config)==null?void 0:C.record)||{})[O.prop];if(q){const H=q[O.propKey||"value"];H&&(["date","range"].some(G=>lowerCaseIncludes(q==null?void 0:q.type,G))?L[_]=vue.unref(H).format(q.format||"YYYY-MM-DD"):L[_]=vue.unref(H))}continue}if(c&&e.dataType!=="indicator"&&r.value.clear(),typeof O=="object"&&O!=null&&O.id){let U={};const{id:q,prop:H,propKey:j,operate:G}=O;let R=!1;try{JSON.parse(q),R=!0}catch{R=!1}q==="THIS"?U=P(vue.unref(S))||{}:U=P(q)||{};const W=vue.unref(U[H]);let Y=null;if(["date","range"].some(Z=>lowerCaseIncludes(U==null?void 0:U.type,Z))){const{value:Z,type:J,mode:K}=G||{};if(Z&&J&&K)switch(J){case"add":Y=vue.unref(W).add(Z,K);break;case"minus":Y=vue.unref(W).subtract(Z,K);break}Y==null&&(Y=vue.unref(W)),Y=(Y==null?void 0:Y.format((j==null?void 0:j.trim())||U.format))||""}else if(Object.prototype.toString.call(W)==="[object Object]")j?Y=W[j]:Y=H?W[H]:W;else if(lowerCaseIncludes(U==null?void 0:U.type,"select")&&vue.unref(W)&&H&&Array.isArray(vue.unref(W)))Y=vue.unref(W).map(Z=>Object.prototype.hasOwnProperty.call(Z,H)?Z[H]:Z);else if(R){const Z=JSON.parse(q);console.log(Z,"urlvalue"),Y=Z.value}else Y=W;L[_]=Y}else typeof O=="object"&&O.id===null&&E===1?(console.log(O.propKey,"value.propKey"),L[_]=O.propKey):typeof O=="string"&&(L[_]=useVariablesInText(O))}if(E===1){console.log(L,"_params");const F=Object.entries(L);m.param=m.param.map((_,O)=>({..._,paramKey:F[O][0],defaultValue:F[O][1]||""})),L=m}if(g==="2"&&v!=="{}"){const F=JSON.parse(v);V(F),F&&(L=F)}function V(F){const _={...L,...getPageUrlParams(p)};if(Array.isArray(F))F.forEach((O,U)=>{if(typeof O=="string"){const q=O.match(/\${(.+?)\}/g);if(q!=null&&q.length){const H=q[0].slice(2,-1);H&&_[H]?F[U]=_[H]:F[U]=""}}else V(O)});else if(Object.prototype.toString.call(F)==="[object Object]")for(const O in F)if(typeof F[O]=="string"){const U=F[O].match(/\${(.+?)\}/g);if(U!=null&&U.length){const q=U[0].slice(2,-1);q&&_[q]?F[O]=_[q]:F[O]=""}}else V(F[O])}L={...getPageUrlParams(p),...B,...L};let $="";const N=Object.keys(L),T=N.length-1,I=N.length;N.forEach((F,_)=>{let O=L[F];Object.prototype.toString.call(O)==="[object Object]"&&(O=JSON.stringify(O)),_===0?I!==1?$+=`?${F}=${O}&`:$+=`?${F}=${O}`:_===T?$+=`${F}=${O}`:$+=`${F}=${O}&`});function A(F){var _;if(E===1)return{Authentication:(_=window==null?void 0:window.config)==null?void 0:_.indicatorToken};if(typeof F=="string"){const O=JSON.parse(F),U=getPageUrlParams(p);if(Object.prototype.toString.call(O)==="[object Object]"){for(const q in O)if(typeof O[q]=="string"){const H=O[q].match(/\${(.+?)\}/g);if(H!=null&&H.length){const j=H[0].slice(2,-1);j&&U[j]?O[q]=U[j]:O[q]=""}}}return O}else return F}try{const F=["get","head"].includes(a),_={};let O=F?w+$:w;L.dataSqlId&&!O.includes("dataSqlId")&&(O+=`${O.includes("?")?"&":"?"}dataSqlId=${L.dataSqlId}`),Object.prototype.hasOwnProperty.call(L,"signal")&&(_.signal=L.signal);const U=await request({baseURL:vue.unref(y)||x||"",url:O,method:a,headers:o?A(o):{},data:F?{}:L,..._});return n(U),U}catch(F){console.error(F)}},M=vue.unref(d)!=="design"&&u&&(h||h===void 0)&&setInterval(D,l*1e3);return vue.onUnmounted(()=>{clearInterval(M)}),D},useTransformChartDataByAttrKey=(e=[],r,n=!1)=>{let{name:i="name",types:a=[]}=r||{};i=(i==null?void 0:i.trim())||i;const o=new Set,s=new Map,l=e.length,c=a.length;if(l===1&&!n){const x=[];for(let g=0;g<c;g++){const v=a[g],{label:m,value:E}=v,b={...e[0],value:e[0][E]};o.add(m),x.push(b)}const f=e[0][i]||"";s.set(f,x)}else for(let x=0;x<l;x++){const f=e[x],g=f[i];o.add(g);for(let v=0;v<c;v++){const m=a[v],{label:E,value:b}=m,d={...f,value:f[b]||0};if(s.has(E)){const p=s.get(E);p.push(d),s.set(E,p)}else s.set(E,[d])}}const u=Array.from(o),h=[];for(const[x,f]of s)h.push({name:x,data:f});return{dimensions:u,dataset:h}},useImagePath=(e,r=!1)=>{var i;if(!e)return e;let n="";return e!=null&&e.includes("://")?n=e:n=((i=window==null?void 0:window.config)==null?void 0:i.uploadPath)+e,r&&(n=`url(${n})`),n},usePageUrl=(e,r)=>{const n=`${BASE_URL}/preview?pageId=${r}`,i=`${BASE_URL}/${r}`;return e==="preview"?n:i},useValueFormatter=(e,r)=>{var a;if(e==null)return r;const n=e.match(/\{.*\}/g);if(n==null||n.length===0)return r;const i=n.length;for(let o=0;o<i;o++){const s=n[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,r);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={},r,n=()=>{})=>{var P;const{pageMode:i}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),{requestToken:a}=vue.inject(GLOBAL_TOKEN,{requestToken:()=>{}}),{setLoadedData:o}=vue.inject(LOADED_DATA,{setLoadedData:(w,D)=>{}}),{getGlobalModel:s}=vue.inject(GLOBAL_MODEL,{getGlobalModel:w=>{}}),{pageId:l}=vue.inject("templateOperate",{pageId:""})||{};e.dataType==="indicator"&&a();const c=w=>{const{around:D,unit:M,id:B}=w;let L="";const{pageMode:V="",componentList:$=[]}=(e==null?void 0:e.graphicConfig)||{};let N=null,T=null;if(V==="design"){const I=$==null?void 0:$.find(q=>q.id===B);if(!I)return[];const{interval:A,intervalUnit:C,startTime:F,endTime:_,operate:O,useCurrentTime:U}=I||{};if(U&&(N=dayjs().subtract(A,C),T=dayjs()),F&&(N=dayjs(F)),_&&(T=dayjs(_)),O){const{type:q,value:H,mode:j}=O;switch(q){case"add":N=N&&N.add(H,j),T=T&&T.add(H,j);break;case"minus":N=N&&N.subtract(H,j),T=T&&T.subtract(H,j)}}}else{const I=s(B)||{};vue.unref(I.startTime)&&(N=dayjs(vue.unref(I.startTime))),vue.unref(I.endTime)&&(T=dayjs(vue.unref(I.endTime)))}if(N&&T){const I=T.diff(N,M.toLowerCase());L=`${D==="before"?"-":""}${I+1}`}return L?[L]:[]},u=(w,D)=>Object.prototype.hasOwnProperty.call(w,D),h=(w,D)=>{if(D)u(w,"indexCode")&&(w.hrpIndexCode=w.indexCode,delete w.indexCode),u(w,"indexCodeNum")&&(w.hrpIndexCodeNum=w.indexCodeNum,delete w.indexCodeNum),u(w,"dataType")&&delete w.dataType;else{const{calcWays:M=[],dateCalcTypes:B=[],activeKey:L,componentId:V=""}=w;if(L===5&&(M!=null&&M.length)&&(B!=null&&B.length)&&V){const $=M[0].split("-");($==null?void 0:$.length)>1&&$[0]==="rangeValue"&&(w.calcWays=c({around:$[1],unit:B[0],id:V})),delete w.radioValue}if(u(w,"dataType")){if(w.fieldType==="DATE"&&(w.label=w.fieldName),w.dataType==="component")if(w.fieldValue==="PARENT"){let $=w.modelKey;$&&w.prop&&($+=`-${w.prop}`),w.fieldValue="${"+$+"}"}else w.fieldValue="${"+w.fieldValue+"}";delete w.dataType}u(w,"activeKey")&&delete w.activeKey,u(w,"radioValue")&&delete w.radioValue,u(w,"indexCode")&&(w.hrpIndexCode=w.indexCode,delete w.indexCode),u(w,"indexCodeNum")&&(w.hrpIndexCodeNum=w.indexCodeNum,delete w.indexCodeNum),w.dataType!=="component"&&w.useCurrentTime&&(w.fieldValue=dayjs().format(w.dateFormat)),u(w,"modelKey")&&delete w.modelKey,u(w,"prop")&&delete w.prop,delete w.useCurrentTime}},x=(w,D)=>{const M=[];return w!=null&&w.length&&lodashEs.cloneDeep(w).forEach(B=>{if(B.join&&B.conditions){const L=!B.conditions.some(V=>V.join&&V.conditions);B.conditions.forEach((V,$)=>{h(V,D);const N={};if($<B.conditions.length-1&&(N.join=B.join),L)M.push({...N,...V});else if(V.join&&V.conditions){const T=D?"sqlConditions":"conditions";M.push({[T]:x([V],D),...N})}else M.push({...N,...V})})}else h(B,D),M.push(B)}),M},f=(w={},D)=>{if(w!=null&&w.sortCpnts&&D){const R=y(w);R&&(D.sort=R)}const{label:M,name:B,location:L,show:V,indexCode:$,indexCodeNum:N,calcType:T="COLUMN",builtInFormula:I,builtInValueSource:A,builtInCalcWay:C,formula:F,conditions:_,aggregate:O,distinct:U,dimByCount:q,dataTo:H}=w;let j;if(_&&(j=x(_)),T==="COMPONENT"){const R={};return d(R,A),{label:M.trim(),columnName:B,show:V,calcType:T,componentAlias:C,componentValue:R.fieldValue||null}}const G={label:M.trim(),columnName:B,location:L,show:V,calcType:H==="1"?"VIEW":T,hrpIndexCode:$,hrpIndexCodeNum:N,aggregate:O,builtInFormula:I,builtInValueSource:A,formula:F,conditions:j};if(I==="DATE_OFFSET"){const R=C.split("-");if((R==null?void 0:R.length)===3){let W=R[0];return R[2]==="before"&&R[0]!=="0"&&(W=`-${R[0]}`),{...G,calcWays:[W],dateCalcTypes:[R[1]]}}}else return B==="the_count"&&(G.calcType="AGGREGATE",G.distinct=!!U,G.typeGuid=q),{...G,builtInCalcWay:C}},g=w=>{if(!w)return[];const D=lodashEs.cloneDeep((w==null?void 0:w.controlList)||[]).filter(O=>O.conditionKey!=="parentCode"),{classificationList:M=[],rowHeaderList:B=[],dimensionList:L=[],seriesList:V=[],leftAxisList:$=[],rightAxisList:N=[],queryColumnList:T=[],indicators:I=[]}=w;E(D);const A=[...M,...B,...L,...V,...$,...N,...T,...I],C=[];for(const O of A){const U=getConditions((O==null?void 0:O.conditions)||[]);if(U!=null&&U.length){const q=U.filter(H=>(H==null?void 0:H.dataType)==="component").map(H=>{const j={};return H!=null&&H.dateFormat&&(j.format=H.dateFormat),H.fieldValue==="PARENT"&&(j.id="PARENT",j.keyName=H.modelKey,j.modelKey=H.modelKey,j.prop=H.prop),{conditionKey:H.fieldName,conditionLabel:H.fieldName,conditionName:H.fieldName,conditionValueType:H.fieldType,id:H.componentId,keyName:H.fieldValue,rule:H.rule,notGlobal:!0,indexCode:H.indexCode,typeGuid:H.typeGuid,indexCodeNum:H.indexCodeNum,...j}});if(q!=null&&q.length)for(const H of q)C.find(j=>j.keyName===H.keyName)||C.push(H)}}const F=C.length,_=D;for(let O=0;O<F;O++){const U=C[O];if((U==null?void 0:U.conditionKey)==="parentCode")continue;const{id:q,keyName:H,prop:j,format:G,modelKey:R,dataType:W="component",customValue:Y}=U,X=v(U);d(X,q,{prop:j,dateFormat:G,modelKey:R,keyName:H}),W===""&&(X.fieldValue=Y||""),_.push(X)}for(let O=_.length-1;O>=0;O--){const U=_[O];U.globalCondition||getConditions(_).find(H=>H.alias===U.alias&&H.globalCondition)&&_.splice(O,1)}return _};function v(w){const{id:D,keyName:M,conditionLabel:B,conditionKey:L,conditionValueType:V,prop:$,rule:N="NONE",notGlobal:T=!1,indexCode:I,typeGuid:A,indexCodeNum:C,dataType:F="component"}=w;let _=M||D;_&&$&&(_+=`-${$}`);let O=N;return O==="NONE"&&(["startTime","endTime"].includes($)?O=$==="startTime"?"GREATER_EQUAL":"LESS_EQUAL":M!=null&&M.includes("startTime")?O=$==="GREATER_EQUAL":M!=null&&M.includes("endTime")?O=$==="LESS_EQUAL":O="EQUAL"),D==="PARENT"&&(_=w.modelKey,_&&$&&(_+=`-${$}`),O=N),{rule:O,label:B,fieldName:L,fieldValue:"",valueType:V,alias:_,globalCondition:!T,indexCode:I,typeGuid:A,indexCodeNum:C,dataType:F}}const m=["keyValue","conditionKey","conditionLabel","conditionName","conditionValueType","customValue","id","keyName"];function E(w){if(w!=null&&w.length)for(const D of w)if(D!=null&&D.conditions)E(D.conditions);else{const{id:M,keyName:B,prop:L,modelKey:V,format:$,dataType:N="component",customValue:T}=D,I=v(D);d(I,M,{prop:L,dateFormat:$,modelKey:V,keyName:B}),N===""&&(I.fieldValue=T||"");for(const A in I)D[A]=I[A];for(const A of m)delete D[A]}}function b(w){const D=[];if(w!=null&&w.length){for(const M of w)if(M.variableName){const B={variateName:M.variableName,globalCondition:!1,valueType:M.variableType,alias:M.keyName||""};d(B,M.id,{dateFormat:M.format,prop:M.dateTypeValue,keyName:M.keyName,operateType:M.operateType,operateMode:M.operateMode,operateValue:M.operateValue}),M.dataType===""&&(B.fieldValue=M.variableValue),M.format&&(B.dateFormat=M.format),M.label&&(B.label=M.label),D.push(B)}}return D}function d(w,D,M){const{prop:B="",dateFormat:L="",modelKey:V="",keyName:$="",operateValue:N,operateMode:T,operateType:I}=M||{},A=V||$;if(D==="PARENT"&&A&&B){const j=window.config.record;let G=B,R=L;const W=B.match(/\{(.+?)\}/g);if(W!=null&&W.length){const Y=W[0].slice(1,-1).trim();G=B.replace(W[0],""),R=Y,w.dateFormat=R}if(j&&j[A]){const Y=vue.unref(j[A][G]);dayjs.isDayjs(Y)?w.fieldValue=Y.format(R||"YYYY-MM-DD"):w.fieldValue=Y}return}const C=s(D)||{},{value:F,format:_="YYYY-MM-DD",type:O="",useCurrentTime:U,RECORD:q}=C||{},H=L||_;if(lowerCaseIncludes(C.type,"date")){let j;if(U?F?j=vue.unref(F):j=dayjs():j=vue.unref(F),N&&T&&I)switch(I){case"add":j=j.add(N,T);break;case"minus":j=j.subtract(N,T);break}w.fieldValue=j==null?void 0:j.format(H),w.dateFormat=H}else if(O==="ecanRangePicker"){let j=B;if(!B){const R=$&&$.split("-");R!=null&&R.length&&(j=R[R.length-1])}if(!j)return;let G=null;if(vue.unref(C[j])&&(G=dayjs(vue.unref(C[j]))),N&&T&&I){if(N==="rangeValue"){if(C.startTime&&C.endTime){const R=vue.unref(C.endTime).diff(vue.unref(C.startTime),T)+1;switch(I){case"add":G=G&&G.add(R,T);break;case"minus":G=G&&G.subtract(R,T)}}}else if(!isNaN(+N))switch(I){case"add":G=G&&G.add(N,T);break;case"minus":G=G&&G.subtract(N,T)}}if(G&&(w.fieldValue=G==null?void 0:G.format(H)),j==="rangeValue"&&C.startTime&&C.endTime){const R=getFormatStep(H);R&&(w.fieldValue=vue.unref(C.endTime).diff(vue.unref(C.startTime),R)+1)}w.dateFormat=H}else lowerCaseIncludes(O,MODEL_KEY_LIST)?V&&q?w.fieldValue=q[V]:!V&&q?w.fieldValue=q.value:w.fieldValue=vue.unref(F):w.fieldValue=vue.unref(F)}const p=w=>{var D;if(w){const M=Array.isArray(w)?lodashEs.cloneDeep(w):[lodashEs.cloneDeep(w)];let B="",L=[];const V=[],$=[],N=[];for(const T of M){if(T.defaultCode&&(T.label=T.columnName,delete T.defaultCode),T.type==="CUSTOM"&&(L=T.customOrderColumns),B=T.type,V.push(T.label),(D=T.columnName)!=null&&D.includes("_ecanrepeat_")){const I=T.columnName.split("_ecanrepeat_");$.push(I[0])}else $.push(T.columnName);N.push(T.order)}return B!=="CUSTOM"&&(V==null?void 0:V.length)>1&&(B="COMBINATION"),B==="CUSTOM"?{label:V.join(","),columnName:$.join(","),type:B,customOrderColumns:L}:{label:V.join(","),columnName:$.join(","),order:N.join(","),type:B}}else return w},y=w=>{const{sortCpnts:D=[]}=w;let M,B="";for(const L of D){const V=s(L)||{},{type:$,RECORD:N}=V;if(lowerCaseIncludes($,"image")&&lowerCaseIncludes(N==null?void 0:N.value,["asc","desc"])){B=N.value.toUpperCase();break}}return B&&(M={label:w.label,columnName:w.name,order:B,type:"NORMAL"}),M},S=async(w={})=>{var ye,be,Ee,Te,Ce,_e;e.isViewRedrawing&&r.value.clear(),o(e.id,!1);const{graphicConfig:D,type:M,isGroupTable:B=!1}=e;let{source:L,dataViewId:V,plugin:$="1",layer:N,chartType:T,classificationList:I=[],rowHeaderList:A=[],dimensionList:C=[],seriesList:F=[],leftAxisList:_=[],rightAxisList:O=[],queryColumnList:U=[],indicators:q=[],controlList:H=[],formFields:j={},variableList:G=[],variableConditions:R=[],idxLibMode:W,preview:Y=!1,edvDataSetId:X}=D||{},Z=[];if((D==null?void 0:D.pageMode)==="design"?(Z=(D.sqlConditions??[]).map(de=>{const pe={};if(!u(de,"globalCondition")&&!de.join&&(pe.globalCondition=!0),!de.join){const ve=de.rule||"EQUAL";pe.rule=ve==="NONE"?"EQUAL":ve}return{...de,...pe}}),R!=null&&R.length&&(Z=Z.concat(R))):(Z=g(D),G!=null&&G.length&&(Z=Z.concat(b(G)))),Z!=null&&Z.length){const de=Z.filter(ve=>ve.globalCondition),pe=Z.filter(ve=>!ve.globalCondition);(de==null?void 0:de.length)>1&&(Z=[{join:"&&",conditions:de},...pe])}Z!=null&&Z.length&&(Z=x(Z,"1")),N==null&&(lowerCaseIncludes(M,["table"])||lowerCaseIncludes(M,["list","circulate"])&&(I==null?void 0:I.length)>1?N="1":lowerCaseIncludes(M,["select","checkbox","radio"])?N="3":N="2");let J;const K=[];let ee="";if(Array.isArray(I)&&I.length>0&&(!["ecanList","ecanCirculate"].includes(M)||(I==null?void 0:I.length)===1)){const de=I.length;for(let pe=0;pe<de;pe++){const ve=I[pe]||{},{label:Ae="",name:ke="",show:Oe=!1,sort:Le,customGroup:Ve,conditions:$e,dateFormat:Ie,typeGuid:Ge="",truncations:Fe=[]}=ve;if(Oe||de===1){ee=Ge,J={label:Ae.trim(),columnName:ke,show:Oe,sort:y(ve)||p(Le)||Le,customGroup:Ve,conditions:x($e),typeGuid:Ge},Ie&&(J.dateFormat=Ie),ke==="the_date"&&!J.dateFormat&&(J.dateFormat="YYYY-MM");const Pe={};if(Array.isArray(Fe)&&Fe.length>0){const Re=Fe.length;for(let Me=0;Me<Re;Me++){const Be=Fe[Me]||{},{rule:Ne="",num:qe=0,name:He=""}=Be;Ne&&qe&&(Pe.num=qe,Pe.rule=Ne,He&&(Pe.otherGroupName=He))}}if((ye=Object.keys(Pe))!=null&&ye.length&&(J.truncation=Pe),lowerCaseIncludes(M,"scatter"))K.push(J);else break}}}let re;if(Array.isArray(F)&&F.length>0){const de=F.length;for(let pe=0;pe<de;pe++){const ve=F[pe]||{},{label:Ae="",name:ke="",show:Oe=!1,sort:Le,customGroup:Ve,conditions:$e,typeGuid:Ie}=ve;if(Oe||de===1){re={label:Ae.trim(),columnName:ke,show:Oe,sort:p(Le),customGroup:Ve,conditions:x($e),typeGuid:Ie};break}}}const ne=[];_==null||_.forEach(de=>{de.location="LEFT",ne.push(f(de,J))}),O==null||O.forEach(de=>{de.location="RIGHT",ne.push(f(de,J))}),q==null||q.forEach(de=>{de.location="LEFT",ne.push(f(de,J))});const ie=[];["ecanList","ecanCirculate"].includes(M)&&(I==null?void 0:I.length)>1&&(U=I),U==null||U.forEach(de=>{const{label:pe,name:ve,location:Ae,show:ke,indexCode:Oe,sort:Le,typeGuid:Ve,indexCodeNum:$e,dateFormat:Ie,conditions:Ge}=de;let Fe=p(Le);if(w.sort){const{field:Re,order:Me}=w.sort;let Be=ne.find(Ne=>Ne.label===Re);!Be&&pe===Re&&(Be=de),Be&&(Fe={columnName:Be.columnName,label:w.sort.field,order:Me.toUpperCase(),type:"NORMAL"})}const Pe={label:pe,columnName:ve,location:Ae,show:ke,sort:Fe,calcType:"COLUMN",hrpIndexCode:Oe,hrpIndexCodeNum:$e,conditions:x(Ge),typeGuid:Ve};Ie&&(Pe.dateFormat=Ie),ve==="the_date"&&!Pe.dateFormat&&(Pe.dateFormat="YYYY-MM"),ie.push(Pe)});const le=[];let fe=[];if(Array.isArray(A)&&A.length>0?fe=A:Array.isArray(C)&&C.length>0&&(fe=C),fe!=null&&fe.length){const de=fe.length;for(let pe=0;pe<de;pe++){const ve=fe[pe]||{},{label:Ae="",name:ke="",show:Oe=!1,sort:Le,customGroup:Ve,conditions:$e,truncations:Ie,typeGuid:Ge="",dateFormat:Fe}=ve;let Pe=p(Le);if(w.sort){const{field:Be,order:Ne}=w.sort;let qe=ne.find(He=>He.label===Be);!qe&&ve.label===Be&&(qe=ve),qe&&(Pe={columnName:qe.columnName,label:w.sort.field,order:Ne.toUpperCase(),type:"NORMAL"})}const Re={label:Ae.trim(),columnName:ke,show:Oe,sort:Pe,customGroup:Ve,conditions:x($e),typeGuid:Ge};Fe&&(Re.dateFormat=Fe),ke==="the_date"&&!Re.dateFormat&&(Re.dateFormat="YYYY-MM");const Me={};if(Array.isArray(Ie)&&Ie.length>0){const Be=Ie.length;for(let Ne=0;Ne<Be;Ne++){const qe=Ie[Ne]||{},{rule:He="",num:Je=0,name:Q=""}=qe;He&&Je&&(Me.num=Je,Me.rule=He,Q&&(Me.otherGroupName=Q))}}(be=Object.keys(Me))!=null&&be.length&&(Re.truncation=Me),le.push(Re)}}if(lowerCaseIncludes(M,["text","proportion","counter"])&&(T="zb"),B){if(le.length===0||ne.length===0)return;T="grouptable"}else{if(N==="1"&&ie.length===0)return;if(N==="2"&&ne.length===0)return;if(N==="3"&&(!ee||!j.labelField||!j.valueField))return;if(N==="3"&&M==="ecanDataSelect"&&ne.length===0)return}C!=null&&C.length&&(N="1",T="grouptable");let he=l||((Ee=window==null?void 0:window.config)==null?void 0:Ee.pageId);if(!he){const{pathname:de}=window==null?void 0:window.location;if(de){const pe=de.split("/");pe!=null&&pe.length&&(he=pe[pe.length-1])}}if(M!=="ecanScatter"&&((Te=Object.keys(j))!=null&&Te.length)){const de=getConditions(H).find(ve=>ve.conditionKey==="parentCode"),pe={};if(de){const ve=s(de.id)||{};if(ve!=null&&ve.itemCodes)pe.parentItemCodes=ve.itemCodes;else return}M==="ecanDataSelect"&&(pe.indicatorList=ne.filter(ve=>ve.show));try{const ve=await request.post(`${INDICATOR_URL}/diagram/formData`,{source:L,dataViewId:V,plugin:"4",layer:N,chartType:"normalSelect",rangeIndexTypeGuid:ee,type:M==="ecanDataSelect"?"normalSelectData":"normalSelect",labelField:j.labelField,valueField:j.valueField,pageId:he,sqlConditions:Z,idxLibMode:"WITH_DATE_DIM_TABLE",keyName:e.keyName,...pe},{headers:{Authentication:(Ce=window==null?void 0:window.config)==null?void 0:Ce.indicatorToken,operateContext:CONTEXT}});return w!=null&&w.isTimer&&n(ve),ve}catch(ve){console.error(ve)}finally{}}else try{let de={};lowerCaseIncludes(M,"scatter")?de={classifications:K}:de={classification:J};const pe=await request.post(`${INDICATOR_URL}/diagram`,{source:L,dataViewId:V,plugin:$,layer:N,chartType:T,...de,series:re,indicatorList:ne,queryColumns:B?[]:ie,pageFlag:!0,pageId:he,edvDataSetId:X||"",sqlConditions:Z.map(ve=>{const{fieldValue:Ae}=ve,ke={};return Ae&&Array.isArray(Ae)&&(ke.fieldValue=JSON.stringify(Ae)),{...ve,...ke}}),idxLibMode:W,preview:Y,rowHeaders:le,keyName:e.keyName},{headers:{Authentication:(_e=window==null?void 0:window.config)==null?void 0:_e.indicatorToken,operateContext:CONTEXT}});return w!=null&&w.isTimer&&n(pe),pe}catch(de){console.error(de)}finally{}},k=vue.unref(i)!=="design"&&((P=e==null?void 0:e.graphicConfig)==null?void 0:P.pageMode)!=="design"&&e.isOpenRequestTimer&&e.requestInterval&&setInterval(()=>{S({isTimer:!0})},e.requestInterval*1e3);return vue.onUnmounted(()=>{clearInterval(k)}),S},useHrefParamsToGlobalVariables=()=>{const r=window.location.search.slice(1).split("&"),n=r.length,i={};for(let a=0;a<n;a++){const o=r[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$s=vue.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...pageConfigComponentProps,pageId:{type:String,default:""}},setup(e){const{width:r,height:n}=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=r.value,y.height=n.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),h=vue.ref(!1),x=vue.ref();let f;const g=()=>new Promise(y=>{vue.nextTick(()=>{r.value&&n.value?(s.value=parseFloat(r.value),l.value=parseFloat(n.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([r,n],async()=>{e.pageId||(await g(),v(),E(),window.addEventListener("resize",b),d()),h.value=!0},{immediate:!0});const m=vue.ref({});vue.provide("scaleValue",m);const E=()=>{if(a){x.value.style.width="100%",x.value.style.height="auto",i("auto");return}const y=document.body.clientWidth,S=document.body.clientHeight,k=s.value||c.value,P=l.value||u.value,w=y/k;let D=S/P;(s.value!==1920||l.value!==1080)&&(D=l.value/s.value*y/P),m.value={widthScale:w,heightScale:D},x.value&&(x.value.style.transform=`scale(${w}, ${D})`),i(D)},b=lodashEs.debounce(async()=>{await g(),E()},100),d=()=>{const y=window.MutationObserver;f=new y(b),f.observe(x.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},p=()=>{f&&(f.disconnect(),f.takeRecords(),f=null)};return vue.onMounted(()=>{h.value=!1}),vue.onUnmounted(()=>{window.removeEventListener("resize",b),p()}),{style:o,container:x,ready:h}}}),PageConfig_vue_vue_type_style_index_0_scoped_e1e149bf_lang="",_hoisted_1$g={id:"container",ref:"container"};function _sfc_render$x(e,r,n,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$s,[["render",_sfc_render$x],["__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$r=vue.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,props:{...providerConfigComponentProps,pageId:{type:String,default:""}},setup(e,{expose:r,emit:n}){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 K=[];for(const ee of vue.unref(s))ee.type==="ecanModal"?K.push(...ee.componentList):K.push(ee);return K});vue.watch(()=>e.theme,()=>{o()}),vue.onMounted(()=>{o()});const u=vue.computed(()=>useVariablesInText(e.contextRequestUrl)),h=vue.computed(()=>e.pageMode),x=vue.computed(()=>e.theme),f=vue.computed(()=>e.width),g=vue.computed(()=>e.height),v=vue.computed(()=>e.pageFontFamily),m=vue.computed(()=>{const K=[],ee=vue.unref(l).filter(re=>re.type==="ecanModal");for(const re of ee)re!=null&&re.requestList&&K.push(...re.requestList);return[...K,...e.requestList]}),E=vue.ref("");vue.provide(GLOBAL_CONFIG,{contextRequestUrl:u,pageMode:h,theme:x,touchEventId:E,width:f,height:g,fontFamily:v,requestList:m});const b=vue.ref({height:"100%",overflow:e.pageMode==="design"?"":"hidden"});vue.provide("setPageHeight",K=>{let ee=K;i.value||(ee=parseFloat(g.value)*K+"px"),b.value.height=ee}),vue.provide("isMobile",i.value),vue.provide("getContainerMap",()=>e.containerMap),vue.provide("getCombinationMap",()=>e.combinationMap),vue.provide("templateOperate",{pageId:e.pageId,templateEmit:n,setTemplateData:K=>{var ee;if(K!=null&&K.pageId){const{componentId:re,...ne}=K;(ee=window.config)!=null&&ee.urlParams||(window.config.urlParams={}),window.config.urlParams[K.pageId]=ne,n("templateChange",K)}}});const d=vue.ref(),p=new Map,y=K=>p.get(K),S=(K,ee)=>{var re;if(d.value=ee,p.set(K,ee),!e.pageId){const ne=vue.unref(s).find(ie=>ie.id===K);ne&&((re=window.config)!=null&&re.record||(window.config.record={}),window.config.record[ne.keyName]=ee)}},k=()=>{d.value=null},P=K=>{let ee=K;if(ee){const re=K.match(/\{(.+?)\}/g);if(re!=null&&re.length){let ne=re[0].slice(1,-1).trim();const ie=ne.match(/\[(.+?)\]/g);let le="";ie!=null&&ie.length&&(ne=ne.replace(ie[0],""),le=ie[0].slice(1,-1).trim());const fe=vue.unref(c).find(he=>he.keyName===ne);if(fe){const he=y(fe.id),{type:ye,value:be,RECORD:Ee,recordData:Te}=he||{};lowerCaseIncludes(ye,MODEL_KEY_LIST)?ee=Ee[le]:lowerCaseIncludes(ye,"select")?ee=Te[le]:lowerCaseIncludes(ye,["rangePicker","date"])?dayjs.isDayjs(vue.unref(he[le]))?ee=vue.unref(he[le]).format(he.format):ee=vue.unref(he[le]):ee=be}else ee=(window.config.requestParams||{})[ne]||""}}return ee},w=new Map,D={},M=async(K,ee)=>{var fe;const{requestName:re}=K,ne=await useRequestData({...K,projectRequestUrl:vue.unref(u),getModel:y})(),ie=((fe=ne==null?void 0:ne.data)==null?void 0:fe.data)||{},le=w.get(re);if(le!=null&&le.length&&(!ee||D[re])){for(const he of le)he(ie);ee||w.delete(re)}},B=(K,ee)=>{D[K]&&(clearInterval(D[K]),delete D[K],w.delete(K));const re=vue.unref(c).filter(ie=>!ie.openCustomRequestData&&ie.customRequestName===K),ne=w.get(K)||[];if((re==null?void 0:re.length)>ne.length&&(ne.push(ee),w.set(K,ne),(re==null?void 0:re.length)===ne.length)){const ie=vue.unref(m).find(le=>le.requestName===K);ie&&(ie!=null&&ie.isOpenRequestTimer&&(ie!=null&&ie.requestInterval)?(M(ie,!0),D[K]=setInterval(()=>{M(ie,!0)},ie.requestInterval*1e3)):M(ie))}};vue.provide(GLOBAL_MODEL,{getGlobalModel:y,setGlobalModel:S,clearInteractiveData:k,getRecordValueByKeyName:P,hanldePageRequestData:B,interactiveData:d});const L=vue.ref({}),V=(K,ee)=>{L.value[K]=ee};vue.provide(LOADED_DATA,{loadedData:L,setLoadedData:V});const $=[],N=()=>{$.pop()},T=K=>{$.push(K)},I=new Map,A=K=>I.get(K),C=(K,ee)=>{I.set(K,ee)};vue.provide(MODAL_MODEL,{popUseModalIds:N,pushUseModalIds:T,getModalModel:A,setModalModel:C});const F=mitt(),_=new Set,O=(K,ee)=>{_.add(K),F.on(K,re=>{const{eventName:ne,params:ie}=re;return typeof ee[ne]=="function"&&ee[ne](ie)}),vue.onBeforeUnmount(()=>{U(K)})},U=K=>{_.delete(K),F.off(K)},q=(K,ee,re={})=>{if(K==="PAGE"){const ne=$.length;let ie=[];if(ne===0)ie=[..._];else{const le=$[ne-1];ie=[...A(le)]}ie.forEach(le=>{F.emit(le,{eventName:ee,params:re})})}else F.emit(K,{eventName:ee,params:re})};vue.provide(EVENT_BUS,{onEvent:O,offEvent:U,emitEvent:q});const H=vue.ref(0),j=()=>{H.value=vue.unref(H)+1};vue.provide(GLOBAL_TOKEN,{requestToken:j});const G=new Map,R=new Map,W=({requestFn:K=()=>{},sortNum:ee=0,id:re=""})=>{if(G.has(ee)){const ne=G.get(ee);ne==null||ne.push(K)}else G.set(ee,[K]);R.set(re,K)},Y=K=>new Promise((ee,re)=>{const ne=K.map(ie=>ie());Promise.all(ne).then(ie=>{ee(ie)}).catch(ie=>{re(ie)})}),X=K=>new Promise(async(ee,re)=>{if(K){if(typeof K=="string"){const ne=R.get(K);if(typeof ne=="function"){const ie=request.interceptors.response.use(le=>(ee(le),le),le=>(re(le),Promise.reject(le)));ne(),request.interceptors.response.eject(ie)}}}else{const ne=Array.from(G);ne.sort((le,fe)=>fe[0]-le[0]);const ie=ne.length;try{e.pageMode!=="design"&&vue.unref(H)>0;for(let le=0;le<ie;le++){const fe=ne[le][1];await Y(fe)}}catch(le){console.error(le)}finally{G.clear(),ee(null)}}});vue.provide(REQUEST_MODEL,{setRequest:W,touchRequest:X});const Z=()=>{F.emit(REFRESH_PAGE)};vue.provide(REFRESH_PAGE,{emitRefreshPage:Z});const J=K=>{F.on(REFRESH_PAGE,()=>K()),vue.onMounted(()=>{F.off(REFRESH_PAGE)})};return vue.watchEffect(()=>{var K;if((K=vue.unref(s))!=null&&K.length&&vue.unref(h)!=="design"){const{jumpType:ee,jumpTime:re,jumpPage:ne,jumpLink:ie}=e;if(re!=null&&re.value){let le=0;switch(re==null?void 0:re.suffix){case"hours":le=re.value*60*60*1e3;break;case"minute":le=re.value*60*1e3;break;case"seconds":le=re.value*1e3;break}setTimeout(()=>{let fe="";ee==="page"&&ne?fe=usePageUrl(vue.unref(h),ne):ee==="link"&&ie&&(fe=ie),fe=useVariablesInText(fe),window.open(fe,"_self")},le)}}}),vue.onBeforeUnmount(()=>{G==null||G.clear(),R==null||R.clear()}),r({touchRequest:X,getGlobalModel:y,onRefreshPage:J,emitEvent:q,props:e}),{providerConfig:a,configStyle:b}}}),ProviderConfig_vue_vue_type_style_index_0_scoped_61fdeb02_lang="";function _sfc_render$w(e,r,n,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$r,[["render",_sfc_render$w],["__scopeId","data-v-61fdeb02"]]),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:r}){const n=vue.ref(!1),i=usePickComponentStyle(e),a=vue.ref({}),o=vue.computed(()=>e.variableFontSize||"14px"),s=vue.computed(()=>"-"+vue.unref(o)),l=C=>{var F,_;if(e.showAnimation){const O=e.text.match(/\{(.+?)\}/g)||[];if(O!=null&&O.length){const U=(F=O[0].slice(1,-1))==null?void 0:F.trim();if(vue.unref(a)[U]===C){a.value=C;return}const q=+C[U];let H=0;if(isNaN(q))a.value=C;else{String(q).includes(".")&&(H=((_=String(q).split(".")[1])==null?void 0:_.length)||0);const j=Math.abs(q)*Math.pow(10,H),G=String(j).length;let R=[];for(let Y=0;Y<5;Y++){const X=Math.ceil(Math.random()*(j+1)-1);R.includes(X)||R.push(X)}R.sort((Y,X)=>Y-X),R=R.map(Y=>{const X=String(Y).split("").reverse(),Z=[];for(let J=0;J<G;J++)X&&X[J]?Z.push(X[J]):Z.push("0");return H&&Z.splice(H,0,"."),(q<0?"-":"")+Z.reverse().join("")}),R.push(q);let W=0;for(const Y of R)setTimeout(()=>{a.value={...vue.unref(a),[U]:Y}},W*1e3),W+=.1}}else a.value=C}else a.value=C};vue.watch(()=>[e.data,e.dataType],([C,F])=>{F==="static"&&l(C)},{immediate:!0});const{getGlobalModel:c,setGlobalModel:u,getRecordValueByKeyName:h,hanldePageRequestData:x}=vue.inject(GLOBAL_MODEL,{getGlobalModel:C=>{},setGlobalModel:(C,F)=>{},getRecordValueByKeyName:C=>{},hanldePageRequestData:(C,F)=>{}}),{setLoadedData:f}=vue.inject(LOADED_DATA,{setLoadedData:(C,F)=>{}}),{setTemplateData:g}=vue.inject("templateOperate",{setTemplateData:C=>{}}),v=vue.computed(()=>{let C="";if(e.gradientShow){const{gradientColor:F,gradientOffset:_,gradientAngle:O,color:U}=e;C+=`background: linear-gradient(${O}, ${U}, ${F||"transparent"} ${_*100}%);-webkit-background-clip: text;color: transparent;`}return C}),m=vue.computed(()=>{const C={};if(e.gradientShow){const{gradientColor:F,gradientOffset:_,gradientAngle:O,color:U}=e,q=F||"transparent";C.background=`linear-gradient(${O}, ${U}, ${q} ${_*100}%)`,C["-webkit-background-clip"]="text",C.color="transparent"}return C}),E=vue.computed(()=>{const C={};return e.linkPage&&(C.cursor="pointer",C.userSelect="none"),C}),b=vue.ref(1),d=vue.computed(()=>{var j;if(vue.unref(n))return"NaN";if(!b.value)return;const C=vue.unref(a),F=e.increaseColor||e.color,_=e.declineColor||e.color;let O=e.text;O=O==null?void 0:O.replace(/\n|\\n/g,"<br/>"),O=O==null?void 0:O.replace(/\s(?!\{) | (?!\})\s/g,"&nbsp;");const U=O.match(/\{(.+?)\}/g)||[];let q="",H="";if(e.exceedConfig==="wrap"?H="show-wrap":e.exceedConfig==="ellipsis"&&(H="show-ellipsis"),U==null||U.length===0){if(O&&e.format==="percentage"&&!isNaN(+O)){const G=parseFloat(O),R=G*100,W=p(R.toFixed(2));G>=0?O=`<span class="${H}" style="color: ${W||F||"#ED6643"};font-size:${vue.unref(o)};display: inline-block;${vue.unref(v)}">
100
100
  <div class="percentage-img-box">
101
- <img style="width: ${vue.unref(o)};filter: ${`drop-shadow(${K||D||"#ED6643"} ${vue.unref(o)} 0px)`};" src="${goUp}"/>
101
+ <img style="width: ${vue.unref(o)};filter: ${`drop-shadow(${W||F||"#ED6643"} ${vue.unref(o)} 0px)`};" src="${goUp}"/>
102
102
  </div>
103
- <span style="color: ${K||e.color};${vue.unref(v)}">${Math.abs(+L).toFixed(2)}%</span>
104
- </span>`:F=`<span class="${j}" style="color: ${K||k||"#6ACB97"};font-size:${vue.unref(o)};display: inline-block;${vue.unref(v)}">
103
+ <span style="color: ${W||e.color};${vue.unref(v)}">${Math.abs(+R).toFixed(2)}%</span>
104
+ </span>`:O=`<span class="${H}" style="color: ${W||_||"#6ACB97"};font-size:${vue.unref(o)};display: inline-block;${vue.unref(v)}">
105
105
  <div class="percentage-img-box">
106
- <img style="width: ${vue.unref(o)};filter: ${`drop-shadow(${K||k||"#6ACB97"} ${vue.unref(o)} 0px)`};" src="${goDown}"/>
106
+ <img style="width: ${vue.unref(o)};filter: ${`drop-shadow(${W||_||"#6ACB97"} ${vue.unref(o)} 0px)`};" src="${goDown}"/>
107
107
  </div>
108
- <span style="color: ${K||e.color};${vue.unref(v)}">${e.minusSignShow?"-":""}${Math.abs(+L).toFixed(2)}%</span>
109
- </span>`}G=F}for(let H=0;H<$.length;H++){const L=$[H],K=(U=L==null?void 0:L.slice(1,L.length-1))==null?void 0:U.trim();let Y=K;const Q=K.match(/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g);for(let Z=0;Z<Q.length;Z++){const W=Q[Z],ee=C[W];if(ee)Y=K.replace(W,h(String(ee))||ee);else{const re=getPageUrlParams(E);re[W]&&(Y=decodeURIComponent(re[W]))}}if(/\(.*\)/g.test(Y)){const Z=runCode(Y);Z!=null&&(Y=Z)}let J=Y;if(J===K&&(J=e.variableDefaultValue),J!=null){const Z=e.format;if(Z==="percentage")if(J=+J,isNaN(J))F=F.replace(L,`<span class="${j}" style="color:${p("0.00")||e.variableColor};font-size:${vue.unref(o)};${vue.unref(v)}">0%</span>`);else if(J>=0){J=J*100;const W=p(J.toFixed(2));F=F.replace(L,`<span class="${j}" style="color: ${W||D||"#ED6643"};font-size:${vue.unref(o)};display: inline-block;${vue.unref(v)}">
108
+ <span style="color: ${W||e.color};${vue.unref(v)}">${e.minusSignShow?"-":""}${Math.abs(+R).toFixed(2)}%</span>
109
+ </span>`}q=O}for(let G=0;G<U.length;G++){const R=U[G],W=(j=R==null?void 0:R.slice(1,R.length-1))==null?void 0:j.trim();let Y=W;const X=W.match(/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g);for(let J=0;J<X.length;J++){const K=X[J],ee=C[K];if(ee)Y=W.replace(K,h(String(ee))||ee);else{const re=getPageUrlParams(S);re[K]&&(Y=decodeURIComponent(re[K]))}}if(/\(.*\)/g.test(Y)){const J=runCode(Y);J!=null&&(Y=J)}let Z=Y;if(Z===W&&(Z=e.variableDefaultValue),Z!=null){const J=e.format;if(J==="percentage")if(Z=+Z,isNaN(Z))O=O.replace(R,`<span class="${H}" style="color:${p("0.00")||e.variableColor};font-size:${vue.unref(o)};${vue.unref(v)}">0%</span>`);else if(Z>=0){Z=Z*100;const K=p(Z.toFixed(2));O=O.replace(R,`<span class="${H}" style="color: ${K||F||"#ED6643"};font-size:${vue.unref(o)};display: inline-block;${vue.unref(v)}">
110
110
  <div class="percentage-img-box">
111
- <img style="width: ${vue.unref(o)};filter: ${`drop-shadow(${W||D||"#ED6643"} ${vue.unref(o)} 0px)`};" src="${goUp}"/>
111
+ <img style="width: ${vue.unref(o)};filter: ${`drop-shadow(${K||F||"#ED6643"} ${vue.unref(o)} 0px)`};" src="${goUp}"/>
112
112
  </div>
113
- <span style="color: ${W||e.color};${vue.unref(v)}">${Math.abs(+J).toFixed(2)}%</span>
114
- </span>`)}else{J=J*100;const W=p(J.toFixed(2));F=F.replace(L,`<span class="${j}" style="color: ${W||k||"#6ACB97"};font-size:${vue.unref(o)};display: inline-block;${vue.unref(v)}">
113
+ <span style="color: ${K||e.color};${vue.unref(v)}">${Math.abs(+Z).toFixed(2)}%</span>
114
+ </span>`)}else{Z=Z*100;const K=p(Z.toFixed(2));O=O.replace(R,`<span class="${H}" style="color: ${K||_||"#6ACB97"};font-size:${vue.unref(o)};display: inline-block;${vue.unref(v)}">
115
115
  <div class="percentage-img-box">
116
- <img style="width: ${vue.unref(o)};filter: ${`drop-shadow(${W||k||"#6ACB97"} ${vue.unref(o)} 0px)`};" src="${goDown}"/>
116
+ <img style="width: ${vue.unref(o)};filter: ${`drop-shadow(${K||_||"#6ACB97"} ${vue.unref(o)} 0px)`};" src="${goDown}"/>
117
117
  </div>
118
- <span style="color: ${W||e.color};${vue.unref(v)}">${e.minusSignShow?"-":""}${Math.abs(+J).toFixed(2)}%</span>
119
- </span>`)}else e.format==="percent"?(J=+J,isNaN(J)||(J=(J*100).toFixed(2),F=F.replace(L,`<span class="${j}" style="color:${p(J)||e.variableColor};font-size:${vue.unref(o)};${vue.unref(v)}">${J}%</span>`))):e.format==="money"?(J=+J,isNaN(J)||(J=formatMoney(J),F=F.replace(L,`<span class="${j}" style="color:${p(J)||e.variableColor};font-size:${vue.unref(o)};${vue.unref(v)}">${J}</span>`))):Z==="thousands"?(J=+J,isNaN(J)||(J=formatThousands(J),F=F.replace(L,`<span class="${j}" style="color:${p(J)||e.variableColor};font-size:${vue.unref(o)};${vue.unref(v)}">${J}</span>`))):F=F.replace(L,`<span class="${j}" style="color:${p(J)||e.variableColor};font-size:${vue.unref(o)};${vue.unref(v)}">${J}</span>`)}}if(G||(G=`<span class="${j}" style="color: ${p(F)};${vue.unref(v)}">${F}</span>`),e.unitShow&&e.unitText){const{unitTop:H,unitLeft:L}=e;let K="position:relative;";H&&(K+=`top:${H};`),L&&(K+=`margin-left:${L};`),G+=`<span style='color:${e.unitColor};font-size:${e.unitFontSize};font-weight:${e.unitFontWeight};${K};${vue.unref(v)}'>${e.unitText}</span>`}return e.exceedConfig&&(G=`<span class="${j}" style="display: inline-block;color: ${p(G)};">${G}</span>`),G.includes("span")||(G=`<span class="${j}" style="color: ${p(G)};">${G}</span>`),G});function p(C){let D="",k=!1;const{targetValue:F,targetShow:$,notExpectColor:G}=e;if($){switch(e.targetRule){case"equal":C!==F&&(k=!0);break;case"greater":C<=F&&(k=!0);break;case"greater_equal":C<F&&(k=!0);break;case"less":C>=F&&(k=!0);break;case"less_equal":C>F&&(k=!0);break}k&&(D=G)}return D}const{pageMode:y}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",requestList:[]}),{pageId:E}=vue.inject("templateOperate",{pageId:""})||{},_=useRequestData(e,C=>{var D;l(((D=C==null?void 0:C.data)==null?void 0:D.data)||{})}),P=vue.ref(!1),A=async()=>{var C,D,k;try{P.value=!0;const F=await _();(C=F==null?void 0:F.data)!=null&&C.data.rowsToData?l(((D=F==null?void 0:F.data)==null?void 0:D.data.rowsToData)||{}):l(((k=F==null?void 0:F.data)==null?void 0:k.data)||{})}catch(F){console.error(F)}finally{P.value=!1}},R=C=>{const D=e.id,k=c(D);u(D,{...k,value:C||"",RECORD:C||""})},M=()=>{R("")},B=C=>{var k,F;const{data:D}=(C==null?void 0:C.data)||{};if(D){n.value=!1;const{columns:$=[],rows:G=[]}=((k=C==null?void 0:C.data)==null?void 0:k.data)??{},{graphicConfig:j}=e;let U={};if($.length>0)if((F=j==null?void 0:j.dimensionList)!=null&&F.length){const H=$[0];H&&(G!=null&&G.length)&&(U={value:G[0][H]})}else{const H=$.find(L=>!!L);H&&(U={value:isNaN(G[H])?0:G[H]||0})}R(U==null?void 0:U.value),l(U)}else n.value=!0,R("NaN"),l({value:"NaN"})},O=useIndicatorData(e,B),V=async()=>{try{P.value=!0;const C=await O();B(C)}catch(C){console.error(C)}finally{P.value=!1,f(e.id,!0)}},q=()=>{switch(e.dataType){case"indicator":V();break;case"request":{const{openCustomRequestData:C,customRequestName:D}=e;C||C===void 0?A():x(D,k=>{k&&(k.rowsToData?l(k.rowsToData):l(k))});break}}},{setRequest:N}=vue.inject(REQUEST_MODEL,{setRequest:({id:C,sortNum:D,requestFn:k})=>{}});typeof N=="function"&&N({id:e.id,requestFn:q,sortNum:e.requestSort}),r({refreshData:q});const T=useEmitEvent(e),I=T("click",()=>{const C=document.getElementsByClassName(`ecan-text_${e.id}`);C!=null&&C.length&&R(C[0].innerText),setTimeout(()=>{R("")},0),!(!e.linkPage&&!e.href)&&handleJumpLink(e,{pageMode:vue.unref(y),targetTemplate:e.targetTemplate,getRecordValueByKeyName:h,setTemplateData:g})}),S=T("valueChange",()=>{b.value++});return useOnEvent(e,{refreshData:q,resetRecord:M,click:I,valueChange:S}),vue.watch(()=>d.value,(C,D)=>{C!==D&&S()}),{style:i,myText:d,loading:P,click:I,textIndent:s,vFontSize:o,gradientStyle:m,cursorStyle:w}}}),__injectCSSVars__$4=()=>{vue.useCssVars(e=>({"5f367810":e.vFontSize,"2fb894ef":e.textIndent,f8ec3672:e.percentageSide}))},__setup__$4=__default__$4.setup;__default__$4.setup=__setup__$4?(e,r)=>(__injectCSSVars__$4(),__setup__$4(e,r)):__injectCSSVars__$4;const Text_vue_vue_type_style_index_0_scoped_46c79f85_lang="",Text_vue_vue_type_style_index_1_lang="",_hoisted_1$f=["innerHTML"];function _sfc_render$v(e,r,n,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:r[0]||(r[0]=(...l)=>e.click&&e.click(...l))},null,14,_hoisted_1$f))}const Text=_export_sfc$1(__default__$4,[["render",_sfc_render$v],["__scopeId","data-v-46c79f85"]]),EcanText=withInstall$1(Text),_sfc_main$q=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$u(e,r,n,i,a,o){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$e,vue.toDisplayString(e.text),1)}const ScrollText=_export_sfc$1(_sfc_main$q,[["render",_sfc_render$u],["__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$p=vue.defineComponent({name:"EcanTimeDisplay",props:{...timeDisplayComponentProps},setup(e){const{pageMode:r}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),n=usePickComponentStyle(e),i=()=>{const{format:h,operate:x}=e;let f=dayjs();if(x){const{type:g,value:v,mode:m}=x;switch(g){case"add":f=f.add(v,m);break;case"minus":f=f.subtract(v,m)}}return f.format(h)},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 h=1e3;const{value:x,mode:f}=e.updateInterval||{};x&&(h=h*x);const g={second:1,minute:60,hour:60*60,day:24*60*60};f&&(h=h*g[f]),o=setInterval(()=>{a.value=i(),vue.unref(r)!=="design"&&c()},h)};return useOnEvent(e,{timeChange:c}),vue.onMounted(()=>{u()}),vue.onUnmounted(()=>{s()}),{style:n,time:a}}}),TimeDisplay_vue_vue_type_style_index_0_scoped_b9216314_lang="";function _sfc_render$t(e,r,n,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$p,[["render",_sfc_render$t],["__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$o=vue.defineComponent({name:"EcanList",components:{Skeleton,ATooltip:antDesignVue.Tooltip,MarqueeScroll},props:{...listComponentProps},setup(e,{expose:r}){const n=vue.ref(),i=usePickComponentStyle(e,["backgroundColor"]),a=(I,S)=>{const{format:C,customFormatter:D}=S;if(C==null||C==="")return I;const k={money:formatMoney,percentage:formatPercentage,contrast:formatPercentage,custom:formatCustom};return k[C]?C==="custom"?k[C](I,D)||"":k[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,I=>{var S;n.value=((S=I==null?void 0:I.data)==null?void 0:S.data.rows)||[]}),l=vue.ref(!1),c=async()=>{var I;if(e.dataType==="request")try{l.value=!0;const S=await s();n.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(n))&&(n.value=e.data)},{immediate:!0,deep:!0});const u=vue.computed(()=>({key:"SEQ",width:e.seqWidth,title:e.seqName,align:"center",fontSize:e.seqFontSize})),h=vue.computed(()=>{const{columns:I,isUseSeq:S}=e;return S?[vue.unref(u),...I]:I}),x=I=>{var D;const{columns:S=[],rows:C=[]}=((D=I==null?void 0:I.data)==null?void 0:D.data)??{};e.isUseSeq&&S.unshift(e.seqName),h.value.forEach((k,F)=>{(!e.isUseSeq||F!==0)&&(k.title=S[F],k.key=S[F])}),n.value=C},f=useIndicatorData(e,x),g=async()=>{try{l.value=!0;const I=await f();x(I)}catch(I){console.error(I)}finally{l.value=!1}},v=()=>{switch(e.dataType){case"indicator":g();break;case"request":c();break}},m=useEmitEvent(e),{getGlobalModel:w,setGlobalModel:b}=vue.inject(GLOBAL_MODEL,{getGlobalModel:I=>{},setGlobalModel:(I,S)=>{}}),d=I=>{m("click",()=>{const S=w(e.id);b(e.id,{...S,type:e.type,RECORD:I})})()};useOnEvent(e,{refreshData:v,resetRecord:()=>{const I=e.id,S=w(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}),r({refreshData:v});const E=(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 D=vue.unref(n).map(F=>F[S]),k=Math.max(...D);return k&&(C=I[S]/k*100),C},P=I=>{const{progressColor:S="#1890ff",progressGradientColor:C=""}=I;return C?{background:`linear-gradient(to right, ${S} 0%, ${C} 100%)`}:{backgroundColor:S||"#1890ff"}},A=vue.computed(()=>{const I=parseFloat(e.seqFontSize)+5;return{width:I+10,height:I}}),{pageMode:R}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),M=vue.computed(()=>vue.unref(R)!=="design"&&e.isAutoScroll),B=I=>{const{seqIconConfig:S}=e;let C=S.find(D=>D.key===I+1);return C||(C=S.find(D=>D.key==="other")),!!(C!=null&&C.icon)},O=(I,S)=>{const{seqIconConfig:C}=e;let D=C.find(k=>k.key===I+1);return D||(D=C.find(k=>k.key==="other")),S===1?D!=null&&D.icon?useImagePath(D.icon):"":S===2?(D==null?void 0:D.color)||"#fff":""},V=I=>{const{seqIndexFormatter:S}=e,C=I+1;return S?useVariablesInText(S,{textData:{index:C}},{useNewline:!1,useSpace:!0}):C},q=vue.computed(()=>parseFloat(e.itemWidth)!==100?{height:"100%"}:{}),N=vue.computed(()=>!e.itemWidth||e.itemWidth==="100%"?"0":e.itemColSpan);return{style:i,formatFn:a,contrastClass:o,dataSource:n,loading:l,myColumns:h,click:d,getColumnStyle:E,getPercentage:_,getBackgroundColor:P,isShowSeqIcon:B,getSeqIconData:O,seqIcon4,seqIcon5,seqIcon6,seqIcon7,iconSize:A,isScroll:M,formatSeq:V,wrapStyle:q,colSpan:N,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$5={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$s(e,r,n,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$5)):vue.createCommentVNode("",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.myColumns,(h,x)=>(vue.openBlock(),vue.createElementBlock("div",{class:"column",key:h.key||x,style:vue.normalizeStyle({color:h.titleColor,fontSize:h.fontSize,...e.getColumnStyle(h)})},vue.toDisplayString(h.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,h)=>(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||h,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(h+1),1)])):vue.createCommentVNode("",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.myColumns,x=>{var f;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},[(f=e.seqIconConfig)!=null&&f.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(h)?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:"custom-seq-icon",src:e.getSeqIconData(h,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(h,2),lineHeight:e.seqIconHeight||"",left:e.seqIconOffsetX,top:e.seqIconOffsetY})},vue.toDisplayString(e.formatSeq(h)),5)],4)):(vue.openBlock(),vue.createElementBlock("div",_hoisted_8$2,[h===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)):h===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)):h===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)):h>=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(h)),5)]))],64)):(vue.openBlock(),vue.createElementBlock("span",_hoisted_13$2,vue.toDisplayString(e.formatSeq(h)),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$o,[["render",_sfc_render$s],["__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$n=vue.defineComponent({name:"EcanProportion",components:{AProgress:antDesignVue.Progress,Skeleton},props:{...proportionComponentProps},setup(e,{expose:r}){const n=vue.ref(!1),{pageMode:i}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),a=usePickComponentStyle(e),o=vue.computed(()=>{const E=e.width;return parseFloat(E)}),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 E=vue.unref(s),_=+e.variableDefaultValue;if(E==null)return isNaN(_)?0:_;const P=e.text.match(/\{(.+?)\}/g)||[];let A;const R=new Set(Object.keys(E));for(let M=0;M<P.length;M++){const B=P[M],O=B.slice(1,B.length-1);if(R.has(O)){A=E[O];break}}return typeof A=="number"?A=A*100:typeof A=="string"&&!isNaN(+A)?A=+A*100:isNaN(_)?A=0:A=_*100,e.decimalFormat&&(A=+A.toFixed(2)),A}),c=vue.computed(()=>{var R;let E=e.text;if(E==="")return vue.unref(l);const _=e.variableDefaultValue,P=vue.unref(s),A=E.match(/\{(.+?)\}/g)||[];for(let M=0;M<A.length;M++){const B=A[M];let O=B.slice(1,B.length-1);const V=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,q=B.match(V);for(let T=0;T<(q==null?void 0:q.length);T++){const I=(R=q[T])==null?void 0:R.trim();P[I]!=null&&(O=O.replace(I,P[I]))}let N=O;try{(/\(.*\)/g.test(O)||/[+/\\*]/g.test(O))&&(N=runCode(O))}catch(T){console.error(T)}typeof+N=="number"&&!isNaN(+N)?(N=+N*100,e.decimalFormat&&(N=N.toFixed(2))):typeof N!="string"&&(N=_),E=E.replace(B,`<span style="color: ${e.variableColor};">${N+""}</span>`)}return E=E==null?void 0:E.replace(/\n|\\n/g,"<br/>"),vue.unref(n)?"NaN":E}),u=useRequestData(e,E=>{var _;s.value=((_=E==null?void 0:E.data)==null?void 0:_.data)||{}}),h=vue.ref(!1),x=async()=>{var E,_,P,A,R;if(e.dataType==="request")try{h.value=!0;const M=await u();s.value=((E=M==null?void 0:M.data)==null?void 0:E.data)||{},(P=(_=M==null?void 0:M.data)==null?void 0:_.data)!=null&&P.rowsToData&&(s.value=((R=(A=M==null?void 0:M.data)==null?void 0:A.data)==null?void 0:R.rowsToData)||{})}catch(M){console.error(M)}finally{h.value=!1}},f=(E={})=>{s.value=E},g=E=>{var P;const{data:_}=(E==null?void 0:E.data)||{};if(_){n.value=!1;const{columns:A=[],rows:R=[]}=((P=E==null?void 0:E.data)==null?void 0:P.data)??{};let M={};if(A.length>0){const B=A.find(O=>!!O);B&&(M={percent:R[B]})}f(M)}else n.value=!0,f({percent:"NaN"})},v=useIndicatorData(e,g),m=async()=>{try{h.value=!0;const E=await v();g(E)}catch(E){console.error(E)}finally{h.value=!1}},w=()=>{switch(e.dataType){case"indicator":m();break;case"request":x();break}};useOnEvent(e,{refreshData:w}),r({refreshData:w});const d=useEmitEvent(e)("click",()=>{}),{setRequest:p}=vue.inject(REQUEST_MODEL,{setRequest:({id:E,sortNum:_,requestFn:P})=>{}});typeof p=="function"&&p({id:e.id,requestFn:w,sortNum:e.requestSort});const y=vue.computed(()=>{const{gradientShow:E,gradientColor:_,gradientOffset:P,strokeColor:A}=e;let R=A;return E&&_&&(R={"0%":A,[`${P*100}%`]:_}),R});return{style:a,myWidth:o,text:c,myValue:l,loading:h,click:d,customStrokeColor:y}}}),Proportion_vue_vue_type_style_index_0_scoped_a33d058a_lang="",_hoisted_1$c=["innerHTML"];function _sfc_render$r(e,r,n,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:"progress",percent:e.myValue,width:e.myWidth,type:e.strokeType,strokeColor:e.customStrokeColor,strokeLinecap:e.strokeLinecap,trailColor:e.trailColor,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,["percent","width","type","strokeColor","strokeLinecap","trailColor","strokeWidth","showInfo","gapDegree","onClick"])],4)}const Proportion=_export_sfc$1(_sfc_main$n,[["render",_sfc_render$r],["__scopeId","data-v-a33d058a"]]),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$m=vue.defineComponent({name:"EcanCounter",components:{Skeleton},props:{...counterComponentProps},setup(e,{expose:r}){const n=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,E])=>{E==="static"&&(n.value=y)},{immediate:!0});const{getGlobalModel:s,setGlobalModel:l}=vue.inject(GLOBAL_MODEL,{getGlobalModel:y=>{},setGlobalModel:(y,E)=>{}}),u=useEmitEvent(e)("click",()=>{const y=s(e.id);l(e.id,{...y,type:e.type,value:vue.unref(n)})}),h=()=>{const y=e.id,E=s(y);l(y,{...E,type:e.type,value:""})},x=useRequestData(e,y=>{var E,_;n.value=((_=(E=y==null?void 0:y.data)==null?void 0:E.data)==null?void 0:_.value)||""}),f=vue.ref(!1),g=async()=>{var y,E;try{f.value=!0;const _=await x();n.value=((E=(y=_==null?void 0:_.data)==null?void 0:y.data)==null?void 0:E.value)||""}catch(_){console.error(_)}finally{f.value=!1}},v=y=>{var P;const{data:E}=(y==null?void 0:y.data)||{};let _="";if(E){const{columns:A=[],rows:R=[]}=((P=y==null?void 0:y.data)==null?void 0:P.data)??{};if(A.length>0){const M=A.find(B=>!!B);M&&(_=R[M]||"")}}n.value=String(_)},m=useIndicatorData(e,v),w=async()=>{try{f.value=!0;const y=await m();v(y)}catch(y){console.error(y)}finally{f.value=!1}},b=()=>{switch(e.dataType){case"indicator":w();break;case"request":g();break}},d=vue.computed(()=>{const y=[],{digits:E}=e,_=vue.unref(n)?vue.unref(n).split("").reverse().join(""):"";for(let P=0;P<E;P++)_&&_[P]?y.push(_[P]):y.push("0");return y.reverse()});useOnEvent(e,{refreshData:b,resetRecord:h});const{setRequest:p}=vue.inject(REQUEST_MODEL,{setRequest:({id:y,sortNum:E,requestFn:_})=>{}});return typeof p=="function"&&p({id:e.id,requestFn:b,sortNum:e.requestSort}),r({refreshData:b}),{style:i,valueList:d,digitsStyle:a,fontStyle:o,loading:f,useImagePath,click:u}}}),Counter_vue_vue_type_style_index_0_scoped_82bd9070_lang="",_hoisted_1$b=["src"];function _sfc_render$q(e,r,n,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:r[0]||(r[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$m,[["render",_sfc_render$q],["__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$l=vue.defineComponent({name:"EcanInput",components:{AInput:antDesignVue.Input},props:{...inputComponentProps},setup(e){const r=usePickComponentStyle(e),n=vue.ref(""),{getGlobalModel:i,setGlobalModel:a,getRecordValueByKeyName:o}=vue.inject(GLOBAL_MODEL,{getGlobalModel:h=>{},setGlobalModel:(h,x)=>{},getRecordValueByKeyName:h=>{}});vue.watch(()=>e.value,h=>{n.value=o(h)},{immediate:!0}),a(e.id,{type:e.type,value:n});const s=()=>{const h=i(e.id);a(e.id,{...h,RECORD:n})},l=useEmitEvent(e),c=lodashEs.debounce(l("inputChange",()=>{s()}),300),u=l("inputBlur",()=>{});return{style:r,myValue:n,inputBlur:u,inputChange:c}}}),Input_vue_vue_type_style_index_0_lang="";function _sfc_render$p(e,r,n,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":r[0]||(r[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$l,[["render",_sfc_render$p]]),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 r=vue.inject("isMobile",!1),n=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 P=["year","month","day"];switch(e.picker){case"year":P=["year"];break;case"month":P=["year","month"];break}return P});vue.watch(()=>[e.value,e.useCurrentTime,e.operate],([P,A,R])=>{let M=null;if(P?M=dayjs(useVariablesInText(P)):A&&(M=dayjs()),R&&M){const{type:B,value:O,mode:V}=R;switch(B){case"add":M=M.add(O,V);break;case"minus":M=M.subtract(O,V)}}o.value=M,vue.unref(r)&&E(M)},{deep:!0,immediate:!0});const{setGlobalModel:h}=vue.inject(GLOBAL_MODEL,{setGlobalModel:(P,A)=>{}});h(e.id,{type:e.type,format:e.format,useCurrentTime:e.useCurrentTime,value:o});const f=useEmitEvent(e)("dateChange",()=>{}),g=()=>{vue.unref(o)&&f()};useOnEvent(e,{dateChange:f});const v=vue.ref({}),m=vue.ref({}),w=P=>{P?setTimeout(()=>{m.value=vue.unref(v)},300):m.value={}};vue.onMounted(()=>{setTimeout(()=>{const P=document.querySelector(`#ecan-date-picker-${e.id}`);if(P){const A=P.getBoundingClientRect(),R=parseFloat(vue.unref(n).widthScale)*280;document.body.clientWidth-A.left<R&&(v.value.marginLeft=-1*(R-A.width)+"px")}},0)});const b=()=>{E(vue.unref(o)),l.value=!0},d=()=>{E(),o.value=null},p=()=>{const P=dayjs(vue.unref(c).join("-"));o.value=P,E(P),l.value=!1,g()},y=()=>{o.value=dayjs(),E(),s.value=dayjs().format(e.format),l.value=!1};function E(P){c.value=_(P||dayjs()),s.value=(P==null?void 0:P.format(e.format))||""}function _(P){const A=[];for(const R of vue.unref(u))R==="day"?A.push(P.date()):A.push(P[R]()+(R==="month"?1:0));return A}return{style:i,getPopupContainer:a,myValue:o,locale,change:g,scaleValue:n,popupStyle:v,customStyle:m,openChange:w,isMobile:r,mobileDateStr:s,handleClearDate:d,openDatePick:b,datePickVisible:l,columnsType:u,mobileDate:c,onConfirmDate:p,onCancelDate:y}}}),__injectCSSVars__$3=()=>{vue.useCssVars(e=>({"43c34aaa":e.optionFontSize}))},__setup__$3=__default__$3.setup;__default__$3.setup=__setup__$3?(e,r)=>(__injectCSSVars__$3(),__setup__$3(e,r)):__injectCSSVars__$3;const DatePicker_vue_vue_type_style_index_0_scoped_a500e23b_lang="",DatePicker_vue_vue_type_style_index_1_lang="",_hoisted_1$a=["id"];function _sfc_render$o(e,r,n,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"),h=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(h,{show:e.datePickVisible,"onUpdate:show":r[1]||(r[1]=f=>e.datePickVisible=f),"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":r[0]||(r[0]=f=>e.mobileDate=f),"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":r[2]||(r[2]=f=>e.myValue=f),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$o],["__scopeId","data-v-a500e23b"]]),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,r){(function(n,i){e.exports=i()})(commonjsGlobal,function(){var n="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,h){return u=Number(u),this.$utils().p(h)===i?this.add(3*u,n):l.bind(this)(u,h)};var c=s.startOf;s.startOf=function(u,h){var x=this.$utils(),f=!!x.u(h)||h;if(x.p(u)===i){var g=this.quarter()-1;return f?this.month(3*g).startOf(n).startOf("day"):this.month(3*g+2).endOf(n).endOf("day")}return c.bind(this)(u,h)}}})})(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 r=vue.inject("isMobile",!1),{pageMode:n}=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(),h=vue.ref(),x=vue.ref(),f=vue.ref(),g=vue.ref(0),v=vue.ref({}),m=vue.ref(""),w=vue.computed(()=>{let L=["year","month","day"];switch(e.picker){case"year":L=["year"];break;case"month":L=["year","month"];break}return L});vue.watch(()=>[e.startTime,e.endTime,e.useCurrentTime,e.interval,e.intervalUnit,e.operate],([L,K,Y,Q,J,Z])=>{if(vue.unref(o).every(W=>!W)||vue.unref(n)==="design"){let W=null,ee=null;if(Y&&(W=dayjs().subtract(Q,J),ee=dayjs()),L&&(W=dayjs(useVariablesInText(L))),K&&(ee=dayjs(useVariablesInText(K))),Z){const{type:re,value:ie,mode:ae}=Z;switch(re){case"add":W=W&&W.add(ie,ae),ee=ee&&ee.add(ie,ae);break;case"minus":W=W&&W.subtract(ie,ae),ee=ee&&ee.subtract(ie,ae)}}o.value=[W,ee],vue.unref(r)&&U()}},{immediate:!0});let b=vue.unref(o)[0],d=vue.unref(o)[1],p="";const y=(L,K,Y)=>{Array.isArray(L)?(b=L[0],d=L[1],p=Y.range):(b=null,d=null)},E=L=>{let K=!1,{limitStartTime:Y,limitEndTime:Q}=e;const J={startTime:`${b||""}`,endTime:`${d||""}`};if(Y=useVariablesInText(Y,{codeData:J}),Q=useVariablesInText(Q,{codeData:J}),Y&&Q?K=!(dayjs(Y)<L&&L<dayjs(Q)):Y?K=dayjs(Y)>L:Q&&(K=dayjs(Q)<L),!e.isAllowSpanYear&&p){let Z=null;if(p==="start"?Z=b:p==="end"&&(Z=d),Z){const W=Z.startOf("year"),ee=Z.endOf("year");K=!(W<=L&&L<ee)}}if(!K){const{value:Z=0,mode:W="year"}=e.limitInterval||{};Z&&(p==="start"?K=b.add(Z,W)<L:p==="end"&&(K=d.subtract(Z,W)>L))}return K},{getGlobalModel:_,setGlobalModel:P}=vue.inject(GLOBAL_MODEL,{getGlobalModel:L=>{},setGlobalModel:(L,K)=>{}}),A=vue.computed(()=>Array.isArray(vue.unref(o))?vue.unref(o)[0]:null),R=vue.computed(()=>Array.isArray(vue.unref(o))?vue.unref(o)[1]:null);P(e.id,{type:e.type,format:e.format,startTime:A,endTime:R,interval:e.interval,intervalUnit:e.intervalUnit,useCurrentTime:e.useCurrentTime,operate:e.operate});const M=useEmitEvent(e);let B=!1;const O=M("dateChange",()=>{}),V=L=>{const K=vue.unref(o),Y=K&&K[0]&&K[1];L===!1&&B===!0&&Y&&(O(),B=!1),L||(p="")},q=()=>{B=!0},N=()=>{const{associated:L}=e;if(L){const K=_(L)||{};if(K){const{value:Y}=K;if(Y)switch(vue.unref(Y)){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}}}O()},T=()=>{G(vue.unref(o)),s.value=!0},I=()=>{G(),m.value="",o.value=[null,null]},S=()=>{o.value=[dayjs(vue.unref(l).join("-")),dayjs(vue.unref(c).join("-"))],G(vue.unref(o)),j(),F(),s.value=!1,O()},C=()=>{$(),s.value=!1},D=()=>{var L,K;(L=vue.unref(l))!=null&&L.length&&e.format&&(x.value=new Date(vue.unref(l).join("-")),(K=vue.unref(c))!=null&&K.length&&dayjs(vue.unref(c).join("-")).isBefore(dayjs(vue.unref(l).join("-")))&&(c.value=lodashEs.cloneDeep(vue.unref(l))))},k=()=>{var L,K;(L=vue.unref(c))!=null&&L.length&&e.format&&(h.value=new Date(vue.unref(c).join("-")),(K=vue.unref(l))!=null&&K.length&&dayjs(vue.unref(l).join("-")).isAfter(dayjs(vue.unref(c).join("-")))&&(l.value=lodashEs.cloneDeep(vue.unref(c))))};function F(){v.value={startMinDate:lodashEs.cloneDeep(vue.unref(u)),startMaxDate:lodashEs.cloneDeep(vue.unref(h)),endMinDate:lodashEs.cloneDeep(vue.unref(x)),endMaxDate:lodashEs.cloneDeep(vue.unref(f))}}function $(){u.value=vue.unref(v).startMinDate,h.value=vue.unref(v).startMaxDate,x.value=vue.unref(v).endMinDate,f.value=vue.unref(v).endMaxDate}function G(L=[]){l.value=H(L[0]||dayjs()),c.value=H(L[1]||dayjs())}function j(){var Y,Q;const L=(Y=vue.unref(l))!=null&&Y.length?dayjs(vue.unref(l).join("-")):"",K=(Q=vue.unref(c))!=null&&Q.length?dayjs(vue.unref(c).join("-")):"";m.value=L&&K&&`${L.format(e.format)} 至 ${K.format(e.format)}`}function U(){const{limitStartTime:L,limitEndTime:K,limitInterval:Y,isAllowSpanYear:Q}=e;G(vue.unref(o)),L&&(u.value=new Date(L),x.value=new Date(L),vue.unref(o)[0].isBefore(dayjs(L))&&(vue.unref(o)[0]=dayjs(L),l.value=H(vue.unref(o)[0]))),K&&(h.value=new Date(K),f.value=new Date(K),vue.unref(o)[1].isAfter(dayjs(K))&&(vue.unref(o)[1]=dayjs(K),c.value=H(vue.unref(o)[1]))),vue.unref(o).every(J=>J)&&(Y!=null&&Y.value)&&vue.unref(o)[1].diff(vue.unref(o)[0],Y.mode)>Y.value&&(vue.unref(o)[0]=vue.unref(o)[1].subtract(Y.value,Y.mode),l.value=H(vue.unref(o)[0])),vue.unref(o).every(J=>J)&&!Q&&vue.unref(o)[0].year()!==vue.unref(o)[1].year()&&(vue.unref(o)[0]=dayjs(`${vue.unref(o)[1].year()}-01-01`),l.value=H(vue.unref(o)[0])),F(),j()}function H(L){const K=[];for(const Y of vue.unref(w))Y==="day"?K.push(L.date()):K.push(L[Y]()+(Y==="month"?1:0));return K}return useOnEvent(e,{dateChange:N}),{style:i,getPopupContainer:a,locale,dateChange:O,myValue:o,disabledDate:E,calendarChange:y,openChange:V,change:q,isMobile:r,mobileDateStr:m,datePickVisible:s,columnsType:w,openDatePick:T,handleClearDate:I,onConfirmDate:S,onCancelDate:C,mobileStartDate:l,mobileEndDate:c,startMinDate:u,startMaxDate:h,endMinDate:x,endMaxDate:f,pickerTabKey:g,onStartDateChange:D,onEndDateChange:k}}}),__injectCSSVars__$2=()=>{vue.useCssVars(e=>({a708a7a6:e.optionFontSize}))},__setup__$2=__default__$2.setup;__default__$2.setup=__setup__$2?(e,r)=>(__injectCSSVars__$2(),__setup__$2(e,r)):__injectCSSVars__$2;const RangePicker_vue_vue_type_style_index_0_scoped_c1fd3779_lang="",RangePicker_vue_vue_type_style_index_1_lang="";function _sfc_render$n(e,r,n,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"),h=vue.resolveComponent("van-picker-group"),x=vue.resolveComponent("van-popup"),f=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":r[3]||(r[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(h,{key:0,"active-tab":e.pickerTabKey,"onUpdate:active-tab":r[2]||(r[2]=g=>e.pickerTabKey=g),tabs:["开始日期","结束日期"],onConfirm:e.onConfirmDate,onCancel:e.onCancelDate},{default:vue.withCtx(()=>[vue.createVNode(u,{modelValue:e.mobileStartDate,"onUpdate:modelValue":r[0]||(r[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":r[1]||(r[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(f,{key:1,class:"range-picker",dropdownClassName:"ecan-range-picker-dropdown",value:e.myValue,"onUpdate:value":r[4]||(r[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$n],["__scopeId","data-v-c1fd3779"]]),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$k=vue.defineComponent({name:"EcanButton",components:{AButton:antDesignVue.Button},props:{...buttonComponentProps},setup(e){const r=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:r,click:i,myText:o,myHref:s,myTarget:l,buttonStyle:a}}}),Button_vue_vue_type_style_index_0_lang="";function _sfc_render$m(e,r,n,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$k,[["render",_sfc_render$m]]),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$j=vue.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:antDesignVue.CheckboxGroup},props:{...checkboxComponentProps},setup(e,{expose:r}){const n=usePickComponentStyle(e),i=vue.ref([]),a=vue.ref([]),o=b=>{const d=e.value;let p=[];b.forEach(y=>{y.checked&&p.push(y.value)}),typeof d=="string"&&d!==""?p=p.concat(d.split(",")):Array.isArray(d)&&(p=p.concat(d)),i.value=b,a.value=p};vue.watch(()=>[e.data,e.value],([b])=>{o(b)},{immediate:!0,deep:!0});const s=useRequestData(e,b=>{var d,p;o(((p=(d=b==null?void 0:b.data)==null?void 0:d.data)==null?void 0:p.rows)||[])}),l=async()=>{var p,y;if(e.dataType!=="request")return;const b=await s(),d=((y=(p=b==null?void 0:b.data)==null?void 0:p.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})}),f=b=>{var p;const{data:d}=(b==null?void 0:b.data)||{};if(d){const E=(((p=b==null?void 0:b.data)==null?void 0:p.data)??[]).map(_=>({label:_.label,value:_.value}));o(E)}else o([])},g=useIndicatorData(e,f),v=async()=>{try{const b=await g();f(b)}catch(b){console.error(b)}},m=()=>{switch(e.dataType){case"indicator":v();break;case"request":l();break}},{setRequest:w}=vue.inject(REQUEST_MODEL,{setRequest:({id:b,sortNum:d,requestFn:p})=>{}});return typeof w=="function"&&w({id:e.id,requestFn:m,sortNum:e.requestSort}),r({refreshData:m}),{myOption:i,style:n,myValue:a,checkboxChange:x}}}),Checkbox_vue_vue_type_style_index_0_lang="";function _sfc_render$l(e,r,n,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":r[0]||(r[0]=l=>e.myValue=l),onChange:e.checkboxChange},null,8,["options","value","onChange"])],4)}const Checkbox=_export_sfc$1(_sfc_main$j,[["render",_sfc_render$l]]),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$i=vue.defineComponent({name:"EcanSelect",components:{ASelect:antDesignVue.Select,ASelectOption:antDesignVue.SelectOption,AInput:antDesignVue.Input,DownOutlined:DownOutlined$1},props:{...selectComponentProps},setup(e,{expose:r}){var j,U,H;const n=vue.inject("isMobile",!1),i=vue.ref(!1),a={text:((j=e.dataFieldNames)==null?void 0:j.label)||"label",value:((U=e.dataFieldNames)==null?void 0:U.value)||"value"},o=vue.ref([]),s=usePickComponentStyle(e),l=()=>document.getElementById("ProviderConfig")||document.body,c=vue.ref(e.data||[]),u=vue.ref(),h=vue.computed({get:()=>{var K;const{mode:L}=e;return(K=vue.unref(c))!=null&&K.length?u.value:L==="multiple"||L==="tags"||L==="combobox"?[]:""},set:L=>{u.value=L}}),x=vue.computed(()=>{const{value:L,label:K}=e.dataFieldNames,Y=[];if(Array.isArray(vue.unref(h)))for(const Q of vue.unref(h)){const J=vue.unref(c).find(Z=>Z[L]===Q);J&&Y.push(J[K])}else{const Q=vue.unref(c).find(J=>J[L]===vue.unref(h));Q&&Y.push(Q[K])}return Y.join(",")}),{getGlobalModel:f,setGlobalModel:g,getRecordValueByKeyName:v}=vue.inject(GLOBAL_MODEL,{getGlobalModel:L=>{},setGlobalModel:(L,K)=>{},getRecordValueByKeyName:L=>{}}),m=e.dataFieldNames;vue.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,c.value],()=>{const{mode:L,selectFirstOption:K,value:Y}=e,Q=v(Y),J=m.value;if(L==="multiple"||L==="tags"||L==="combobox"){if(Q)u.value=Q.split(",");else if(K){const Z=vue.unref(c)[0];u.value=Z?[Z[J]]:[]}}else if(Q)u.value=Q;else if(K){const Z=vue.unref(c)[0];u.value=Z?Z[J]:""}},{immediate:!0});const w=(L,K)=>{const Y=m.label,Q=m.value;let J;const Z=K[Y],W=K[Q];return Z!=null?J=Z:W!=null&&(J=W),(J==null?void 0:J.toLowerCase().indexOf(L==null?void 0:L.toLowerCase()))>=0},b=L=>{const{label:K,value:Y,options:Q}=e.dataFieldNames;if(Q&&Array.isArray(L))if(L.some(J=>Q in J)){const J={},Z=[];L.forEach(W=>{J[W[Q]]||(J[W[Q]]=[]),J[W[Q]].push({[K]:W[K],[Y]:W[Y]})});for(const W in J)Z.push({[K]:W,[Q]:J[W]});return Z}else return L;else{if(!Q&&Array.isArray(L))return L=L.map(J=>({label:J[K],value:J[Y]})),L;if(!Q&&!Array.isArray(L))return L}},d=vue.ref(!1),p=L=>{var K,Y;if(c.value=b(((Y=(K=L==null?void 0:L.data)==null?void 0:K.data)==null?void 0:Y.rows)||[]),e.selectFirstOption){let Q=vue.unref(c)[0];if(m.options){const J=Q[m.options];J&&J.length&&(Q=J[0])}u.value=Q[m.value]}},y=useRequestData(e,p),E=async()=>{if(e.dataType==="request"){d.value=!0;try{const L=await y();p(L)}catch(L){console.error(L)}finally{d.value=!1}}},{setLoadedData:_,loadedData:P}=vue.inject(LOADED_DATA,{setLoadedData:(L,K)=>{},loadedData:{}}),A=vue.computed(()=>{let L=u.value;if(e.valueType==="label"&&vue.unref(u)&&vue.unref(c)){const K=m.label,Y=m.value;if(e.mode==="multiple")L=vue.unref(c).filter(Q=>vue.unref(u).includes(Q[Y])).map(Q=>Q[K]);else{const Q=vue.unref(c).find(J=>vue.unref(u)===J[Y]);Q&&(L=Q[K])}}return L}),R=vue.ref([]),M=vue.computed(()=>{const L={};if(e.mode!=="multiple"){const K=vue.unref(R).find(Y=>Y.value===vue.unref(u));K&&(L.itemCodes=K.item_codes)}return L}),B=vue.computed(()=>{const{value:L,label:K}=m,Y=vue.unref(c).find(Q=>Q[L]===vue.unref(h));return Y?{label:Y[K],value:Y[L]}:{}});g(e.id,{type:e.type,value:A,label:(H=vue.unref(B))==null?void 0:H.label,...vue.unref(M),recordData:vue.unref(B)});const O=useEmitEvent(e),V=O("selectChange",()=>{const L=e.id,K=f(L);g(L,{...K,...vue.unref(M),RECORD:A,recordData:vue.unref(B)})}),q=O("clearValue",()=>{["multiple","tags","combobox"].includes(e.mode)?u.value=[]:u.value=null;const L=e.id;g(L,{RECORD:"",recordData:vue.unref(B)})}),N=(L=[])=>{var Y,Q;const K=b(L);if((Q=(Y=e==null?void 0:e.graphicConfig)==null?void 0:Y.formFields)!=null&&Q.hasAllOption){const J=m.label,Z=m.value;K.unshift({[J]:"全部",[Z]:""})}if(c.value=K,e.selectFirstOption){let J=vue.unref(c)[0];if(m.options){const Z=J[m.options];Z&&Z.length&&(J=Z[0])}u.value=J[m.value]}g(e.id,{type:e.type,value:A,...vue.unref(M),recordData:vue.unref(B)})},T=L=>{var J;const{data:K}=(L==null?void 0:L.data)||{},Y=m.label,Q=m.value;if(K){const{rows:Z=[]}=((J=L==null?void 0:L.data)==null?void 0:J.data)||{};R.value=Z;const W=Z.map(ie=>({[Y]:ie.label,[Q]:ie.value})),{id:ee}=e,re=f(ee);g(ee,{...re,...vue.unref(M)}),_(ee,!0),N(W)}else N([])},I=useIndicatorData(e,T),S=async()=>{try{d.value=!0;const L=await I();T(L)}catch(L){console.error(L)}finally{d.value=!1}},C=vue.computed(()=>{var L,K;return(K=getConditions(((L=e==null?void 0:e.graphicConfig)==null?void 0:L.controlList)||[]))==null?void 0:K.find(Y=>Y.conditionKey==="parentCode")}),D=vue.ref(!1);vue.watch(P,L=>{!vue.unref(D)&&vue.unref(C)&&L[vue.unref(C).id]&&(D.value=!0,k())},{deep:!0});const k=()=>{switch(e.dataType){case"indicator":{if(vue.unref(C)){if(vue.unref(P)[vue.unref(C).id]){const{mode:L}=e;L==="multiple"||L==="tags"||L==="combobox"?h.value=[]:h.value="",S()}}else S();break}case"request":E();break}};useOnEvent(e,{selectChange:V,refreshData:k,clearValue:q});const{setRequest:F}=vue.inject(REQUEST_MODEL,{setRequest:({id:L,sortNum:K,requestFn:Y})=>{}});return typeof F=="function"&&F({id:e.id,requestFn:k,sortNum:e.requestSort}),r({refreshData:k}),{style:s,getPopupContainer:l,myValue:u,selectChange:V,options:c,filterOption:w,loading:d,resultValue:h,isMobile:n,customFieldName:a,pickVisible:i,onConfirmPicker:()=>{h.value=vue.unref(o)[0],V(),i.value=!1},mobileValue:x,openPicker:()=>{var L;!Array.isArray(vue.unref(h))&&((L=vue.unref(c))!=null&&L.length)&&e.dataFieldNames.value&&(o.value=vue.unref(h)?[vue.unref(h)]:[vue.unref(c)[0][e.dataFieldNames.value]]),i.value=!0},mobileSelectValue:o}}}),Select_vue_vue_type_style_index_0_scoped_0d9fccbc_lang="",Select_vue_vue_type_style_index_1_lang="";function _sfc_render$k(e,r,n,i,a,o){const s=vue.resolveComponent("down-outlined"),l=vue.resolveComponent("a-input"),c=vue.resolveComponent("van-picker"),u=vue.resolveComponent("van-popup"),h=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":r[1]||(r[1]=f=>e.pickVisible=f),"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":r[0]||(r[0]=f=>e.mobileSelectValue=f),"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":r[2]||(r[2]=f=>e.resultValue=f),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,(f,g)=>(vue.openBlock(),vue.createBlock(h,{key:g,value:f.value,style:vue.normalizeStyle({fontSize:e.optionFontSize})},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(f.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$i,[["render",_sfc_render$k],["__scopeId","data-v-0d9fccbc"]]),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$h={name:"EcanTreeSelect",components:{ATreeSelect:antDesignVue.TreeSelect},props:{...treeSelectComponentProps},setup(e){const r=usePickComponentStyle(e),n=vue.ref(e.data),i=(v,m)=>{const w=e.dataFieldNames,b=w.label,d=w.value;let p;const y=m[b],E=m[d];return y!=null?p=y:E!=null&&(p=E),(p==null?void 0:p.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:m,selectFirstOption:w}=e;v?m?a.value=m.split(","):w&&(a.value=[vue.unref(n)[0]]):m?a.value=m:w&&(a.value=vue.unref(n)[0])},{immediate:!0});const o=vue.ref(!1),s=v=>{var w,b;n.value=((b=(w=v==null?void 0:v.data)==null?void 0:w.data)==null?void 0:b.rows)||[];const m=vue.unref(n)[0];e.value===""&&m!=null&&(a.value=m[e.dataFieldNames.value])},l=useRequestData(e,s),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:h}=vue.inject(GLOBAL_MODEL,{getGlobalModel:v=>{},setGlobalModel:(v,m)=>{}});h(e.id,{type:e.type,value:a});const f=useEmitEvent(e)("selectChange",()=>{const v=e.id,m=u(v);h(v,{...m,RECORD:a})});useOnEvent(e,{selectChange:f,refreshData:c});const{setRequest:g}=vue.inject(REQUEST_MODEL,{setRequest:({id:v,sortNum:m,requestFn:w})=>{}});return g({id:e.id,requestFn:c,sortNum:e.requestSort}),{style:r,treeData:n,filterTreeNode:i,myValue:a,loading:o,selectChange:f}}},TreeSelect_vue_vue_type_style_index_0_scoped_09e7f364_lang="",TreeSelect_vue_vue_type_style_index_1_lang="";function _sfc_render$j(e,r,n,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":r[0]||(r[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$h,[["render",_sfc_render$j],["__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",tabBarGutter:"24px",tabFlexDirection:"row",graphicConfig:{},tabTextAlign:""},radioComponentProps=transformToComponentProps(radioProps),radioEvents=["checkboxChange","click"],_sfc_main$g=vue.defineComponent({name:"EcanRadio",components:{ARadioGroup:antDesignVue.RadioGroup,ARadioButton:antDesignVue.RadioButton,ARadio:antDesignVue.Radio},props:{...radioComponentProps},setup(e,{expose:r}){const{pageMode:n}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),i=usePickComponentStyle(e),a=vue.ref([]),o=vue.ref(""),s=E=>{const _=e.value;let P=[];typeof _=="string"&&_!==""?P=P.concat(_.split(",")):Array.isArray(_)&&(P=P.concat(_)),a.value=E,o.value=P[0]||"",console.log(a.value,o.value," myValue.value")};vue.watch(()=>[e.data,e.value],([E])=>{vue.unref(n)==="design"&&s(E)},{immediate:!0,deep:!0});const l=useRequestData(e,E=>{var _,P;s(((P=(_=E==null?void 0:E.data)==null?void 0:_.data)==null?void 0:P.rows)||[])}),c=async()=>{var P,A;if(e.dataType!=="request")return;const E=await l(),_=((A=(P=E==null?void 0:E.data)==null?void 0:P.data)==null?void 0:A.rows)||[];s(_)},{getGlobalModel:u,setGlobalModel:h}=vue.inject(GLOBAL_MODEL,{getGlobalModel:E=>{},setGlobalModel:(E,_)=>{}});h(e.id,{type:e.type,value:o});const x=useEmitEvent(e),f=()=>{const E=vue.unref(a).find(_=>_.value===vue.unref(o))||{};x("checkboxChange",()=>{const _=u(e.id);h(e.id,{..._,RECORD:o})},E)()},g=E=>{o.value=E,x("click",()=>{const _=u(e.id);h(e.id,{..._,RECORD:o})})()};vue.watch(o,()=>{f()});const v=E=>{var P;const{data:_}=(E==null?void 0:E.data)||{};if(_){const R=(((P=E==null?void 0:E.data)==null?void 0:P.data)??[]).map(M=>({label:M.label,value:M.value}));s(R)}else s([])},m=useIndicatorData(e,v),w=async()=>{try{const E=await m();v(E)}catch(E){console.error(E)}},b=()=>{switch(e.dataType){case"indicator":w();break;case"request":c();break}},{setRequest:d}=vue.inject(REQUEST_MODEL,{setRequest:({id:E,sortNum:_,requestFn:P})=>{}});typeof d=="function"&&d({id:e.id,requestFn:b,sortNum:e.requestSort});const p=E=>{o.value=E.value},y=vue.computed(()=>e.tabFlexDirection==="column"?{display:"flex",height:"30px",lineHeight:"30px"}:{});return vue.onMounted(()=>{s(e.data)}),r({refreshData:b}),{myOption:a,style:i,myValue:o,radioStyle:y,onClickButton:g,useImagePath,tabChange:p}}}),Radio_vue_vue_type_style_index_0_lang="",Radio_vue_vue_type_style_index_1_scoped_5507200e_lang="",_hoisted_1$9=["onClick"];function _sfc_render$i(e,r,n,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.tabBackgroundImage&&e.activeTabBackgroundImage?(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,h)=>(vue.openBlock(),vue.createElementBlock("div",{class:"tab",style:vue.normalizeStyle({padding:`5px ${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:h,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)):(vue.openBlock(),vue.createBlock(c,{key:1,value:e.myValue,"onUpdate:value":r[0]||(r[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,onClick:h=>e.onClickButton(u.value)},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(u.label),1)]),_:2},1032,["value","onClick"])):vue.createCommentVNode("",!0)],64))),128))]),_:1},8,["value"]))],6)}const Radio=_export_sfc$1(_sfc_main$g,[["render",_sfc_render$i],["__scopeId","data-v-5507200e"]]),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},pieComponentProps=transformToComponentProps(pieProps),pieEvents=["click","refreshData","resetRecord"],useDownloadFile=async e=>{var c;const r=await request.post(e,{},{responseType:"blob"}),{data:n,headers:i}=r,a=i["content-disposition"].replace(/\w+;filename=(.*)/,"$1"),o=new Blob([n]),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:[]},modalComponentProps=transformToComponentProps(modalProps),modalEvents=["showModal","hideModal"],containerType=["ecanBorder","ecanTabs","ecanCirculate"];function handleScrollCombinations(e){const{containerMap:r={},sourceList:n=[]}=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=r[o.id],l=[];if((!hasOwn(o,"componentList")||!(o!=null&&o.componentList))&&(o.componentList=[]),s){let c=0;for(const u in s){const h=s[u],x=[];if(h!=null&&h.length)for(const f of h){let g=i.find(v=>v.id===f);g||(g=n.find(v=>v.id===f)),g&&(x.push(g),containerType.includes(g.type)&&x.push(...getComponentByContainer(g.id,r,n)))}for(const f of x)hasOwn(f,"scale")?parseFloat(u)>0&&(f.left=parseFloat(f.left)+c+"px"):(f.left=parseFloat(f.sourceLeft||f.left)-parseFloat(o.sourceLeft||o.left)+c+"px",f.top=parseFloat(f.sourceTop||f.top)-parseFloat(o.sourceTop||o.top)+"px"),l.includes(f.id)||l.push(f.id);o.componentList.push(...x),c=getMaxLeftInComponents(x)}}for(const c of l){const u=i.findIndex(h=>h.id===c);u!==-1&&i.splice(u,1)}}return i}function compatibleMobileList(e){var o,s;const{combinationMap:r={},sourceList:n=[]}=e,i=e.containerMap,a=lodashEs.cloneDeep([...e.componentList,...getTabsSomeComponentList(i,n)]);if(handleContainerMap(i,a),(o=Object.keys(i))!=null&&o.length||(s=Object.keys(r))!=null&&s.length){for(const f in i){const g=a.find(v=>v.id===f);if(g){hasOwn(g,"parentId")||(g.parentId="",g.sourceLeft=g.left,g.sourceTop=g.top);for(const v in i[f])if(i[f][v])for(const m of i[f][v]){const w=a.find(b=>b.id===m);w&&(w.parentId=f,w.sourceLeft=w.left,w.sourceTop=w.top,w.left=parseFloat(w.left)-parseFloat(g.sourceLeft||g.left)+"px",w.top=parseFloat(w.top)-parseFloat(g.sourceTop||g.top)+"px")}}}const l=Array.from(new Set(a.filter(f=>(!hasOwn(f,"parentId")||f.parentId==="")&&f.combinationId).map(f=>f.combinationId))),c=getCombinationList(l,{...e,componentList:a});c!=null&&c.length&&a.unshift(...c);const u=["ecanPie","ecanLine","ecanBar","ecanScatter","ecanComboGraph","ecanCustomGraph","ecanRadar","ecanMap"],h=a.filter(f=>u.includes(f.type)&&!hasOwn(f,"parentId")),x=[];for(const f of h)if(f){const g=f.id+"_vir";x.push({id:g,keyName:f.keyName+"_vir",parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,width:f.width,height:f.height,left:f.left,top:f.top,sourceLeft:f.left,sourceTop:f.top}),f.parentId=g,f.sourceLeft=f.left,f.sourceTop=f.top,f.left=0,f.top=0}x!=null&&x.length&&a.unshift(...x);for(const f of a){const g=document.body.clientWidth;if(f.parentId===""&&containerType.includes(f.type))f.sourceWidth=parseFloat(f.width),f.height=(g/(f.sourceWidth/parseFloat(f.height))).toFixed(2)+"px",f.width="100%",f.position="relative",f.top="auto",f.left="auto";else{const v=a.find(m=>m.id===f.parentId);if((v==null?void 0:v.parentId)===""){const m=v.sourceWidth||parseFloat(v.width),w=g/m;f.scale=w,f.top=parseFloat(f.top)*w-parseFloat(f.height)*(1-w)/2+"px",f.left=parseFloat(f.left)*w-parseFloat(f.width)*(1-w)/2+"px"}}f.type==="ecanModal"&&(f.parentId="",f.fullModal=!0)}return sortList(a)}return a}function handleContainerMap(e,r){const n=lodashEs.cloneDeep(e),i=r.filter(a=>a.type==="ecanTabs"&&a.isAutoScroll);if(i!=null&&i.length)for(const a of i){const o=n[a.id];for(const s in o)for(const l of o[s]){const c=r.find(u=>u.id===l);if(c&&containerType.includes(c.type)){const u=getComponentByContainer(c.id,n,r);for(const h of u)e[a.id][s].push(h.id),containerType.includes(h.type)&&delete e[h.id];delete e[c.id]}}}}function getTabsSomeComponentList(e,r){const n=[],i=r.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=r.find(u=>u.id===l);c&&(n.push(c),containerType.includes(c.type)&&n.push(...getComponentByContainer(c.id,e,r)))}}return n}function getComponentByContainer(e,r,n){const i=[],a=r[e];for(const o in a)for(const s of a[o]){const l=n.find(c=>c.id===s);l&&(i.push(l),containerType.includes(l.type)&&i.push(...getComponentByContainer(l.id,r,n)))}return i}function getCombinationList(e,r,n){const{combinationMap:i={},componentList:a=[]}=r,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:n||"",type:"ecanBorder",borderRadius:"",borderWidth:null,sourceLeft:u.left,sourceTop:u.top});for(const h of c)h&&(h.parentId=s,h.sourceLeft=h.left,h.sourceTop=h.top,h.left=parseFloat(h.left)-parseFloat(u.left)+"px",h.top=parseFloat(h.top)-parseFloat(u.top)+"px")}}}}return o}function sortList(e){const n=e.filter(i=>i.parentId==="");if(n!=null&&n.length){const i=lodashEs.cloneDeep(n).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 r=e.sort((o,s)=>parseFloat(o.top)-parseFloat(s.top))[0],n=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 r&&n&&i&&a?{left:n.left,top:r.top,width:a.computedLeft-parseFloat(n.left)+"px",height:i.computedTop-parseFloat(r.top)+"px"}:null}function getMaxLeftInComponents(e){const r=e.map(n=>parseFloat(n.left)+parseFloat(n.width)).sort((n,i)=>i-n)[0];return r||0}function moveToComponentList(e,r,n){const i=e[n],a=[];if(i)for(const o in i){const s=i[o];for(const l of s){const c=r.find(u=>u.id===l);c&&(a.push(c),containerType.includes(c.type)&&a.push(...getComponentByContainer(c.id,e,r)))}}return a}const _sfc_main$f=vue.defineComponent({name:"Render",props:{component:{type:Object,default:()=>{}}},setup(e,{emit:r}){r("ready",e.component.id)}});function _sfc_render$h(e,r,n,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$f,[["render",_sfc_render$h]]),EcanRender=withInstall$1(Render),_sfc_main$e=vue.defineComponent({name:"EcanModal",components:{AModal:antDesignVue.Modal,CloseOutlined:CloseOutlined$1,Render:EcanRender},props:{...modalComponentProps},setup(e,{emit:r}){const n=vue.ref([]),i=vue.inject("isMobile",!1),a=vue.inject("getContainerMap",()=>{}),o=vue.inject("getCombinationMap",()=>{}),{clearInteractiveData:s,interactiveData:l,setRequestData:c}=vue.inject(GLOBAL_MODEL,{setRequestData:(Z,W)=>{},clearInteractiveData:()=>{},interactiveData:null}),u=()=>document.getElementById("ProviderConfig")||document.body,h=vue.computed(()=>{const Z=e.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[Z]}}),x=e.fullModal?"1920px":e.width,f=e.fullModal?"1080px":e.height,g=e.originalWidth,v=e.originalHeight,m=vue.ref("80%"),w=vue.ref(0),b=vue.ref(),d=vue.ref(0),p=vue.ref({}),y=usePickComponentStyle(e),E=vue.ref({}),_=vue.ref(!1),P=vue.ref();let A;const R=()=>{b.value=parseFloat(x)/parseFloat(g);const Z=parseFloat(f)/parseFloat(v),W=document.body.offsetWidth,ee=document.body.offsetHeight;w.value=W*vue.unref(b),d.value=ee*Z,m.value=`${vue.unref(b)*100}%`,p.value={width:`${vue.unref(w)}px`,height:`${vue.unref(d)}px`,border:`${e.borderWidth} solid ${e.borderColor}`,borderRadius:e.borderRadius+"px",boxShadow:e.boxShadow},E.value={...vue.unref(y),backgroundImage:useImagePath(e.backgroundImage,!0)},i?E.value={...E.value,width:"100%",height:"100%"}:E.value={...E.value,transform:`scale(${vue.unref(w)/parseFloat(x)},${vue.unref(d)/parseFloat(f)})`,width:x,height:f}},M=lodashEs.debounce(()=>{R()},100),B=()=>{const Z=window.MutationObserver;A=new Z(M),A.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},O=()=>{A&&(A.disconnect(),A.takeRecords(),A=null)},V=vue.ref(!1),{touchRequest:q}=vue.inject(REQUEST_MODEL,{touchRequest:()=>{}}),N=vue.ref(""),T=()=>{var ee;const{title:Z}=e,W=(ee=vue.unref(l))==null?void 0:ee.RECORD;return W?useVariablesInText(Z,{textData:W},{useNewline:!1,useSpace:!1}):Z},I=useEmitEvent(e),S=()=>{i&&(document.documentElement.style.overflow="hidden"),N.value=T(),V.value=!0},C=I("hideModal",()=>{r("close"),i&&(document.documentElement.style.overflow="hidden auto",n.value=[]),V.value=!1}),D=()=>{C()},k=()=>{C(),s()},{setModalModel:F,pushUseModalIds:$,popUseModalIds:G}=vue.inject(MODAL_MODEL,{pushUseModalIds:Z=>{},popUseModalIds:()=>{},setModalModel:(Z,W)=>{}}),j=vue.computed(()=>{let Z=e.componentList;const W=lodashEs.cloneDeep(e.componentList),ee=a(),re=o(),ie={containerMap:ee,combinationMap:re};i&&(Z=compatibleMobileList({...ie,componentList:W,sourceList:e.allComponentList})),Z=handleScrollCombinations({...ie,componentList:Z,sourceList:e.allComponentList});const ae=[];for(const le of Z)if(le.type==="ecanCirculate"){const fe=moveToComponentList(ee,vue.unref(W),le.id);le.componentList=fe,ae.push(...fe.map(he=>he.id))}if(ae!=null&&ae.length)for(const le of ae){const fe=Z.findIndex(he=>he.id===le);fe!==-1&&Z.splice(fe,1)}return Z}),U=()=>{const Z=e.id;let W=[];const ee=e.componentList;Array.isArray(ee)&&(W=ee.map(re=>re.id),F(Z,[...new Set(W)]))},H=vue.ref(!1),L={};for(const Z of e.requestList)L[Z.requestName]=useRequestData(Z);vue.watch(()=>V.value,async Z=>{if(Z)_.value=!1,$(e.id),U(),await vue.nextTick(()=>{R(),window.addEventListener("resize",M),B(),_.value=!0}),q();else{for(const W in L)c(W,{});G(),window.removeEventListener("resize",M),O()}});const K=vue.computed(()=>vue.unref(b)>=1),Y=vue.computed(()=>e.fullModal),Q=vue.computed(()=>{let Z="ecan-modal";return vue.unref(K)&&(Z+=" ecan-full-width-modal"),vue.unref(Y)&&(Z+=" ecan-full-modal"),Z});return useOnEvent(e,{showModal:S,hideModal:C}),{modalRef:P,containStyle:p,contentStyle:E,getContainer:u,modalStyle:h,modalWith:m,isFullModal:Y,style:y,visible:V,showModal:S,onOk:D,onCancel:k,isFullWidth:K,wrapClassName:Q,ready:_,usedComponentList:j,isMobile:i,readyIds:n,hasOwn,onComponentReady:Z=>{n.value.push(Z)},formatTitle:N,requestLoaded:H}}}),Modal_vue_vue_type_style_index_0_scoped_000999c2_lang="",Modal_vue_vue_type_style_index_1_lang="";function _sfc_render$g(e,r,n,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,h)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:u.id+h},[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$e,[["render",_sfc_render$g],["__scopeId","data-v-000999c2"]]),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$d=vue.defineComponent({name:"EcanPie",props:{...pieComponentProps},components:{Spin,Echarts,EcanModal},setup(e,{expose:r}){const{pageMode:n,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({}),h=vue.computed(()=>{let{data:q=[]}=vue.unref(l)[0]||{};if(Array.isArray(e.colors)){const N=e.isUseLabelColors,T=e.colors;q=q.map((I,S)=>({label:N?{color:T[S]}:{},...I}))}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 N;o.value=!0,(N=c.value)==null||N.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:N=>{const{marker:T,seriesName:I,name:S,value:C,percent:D,data:k}=N||{};return useVariablesInText(e.tooltipFormatter,{textData:{marker:T,name:S,value:C,percent:D,a:I,b:S,c:C,d:D,...k}},{useNewline:!0,useSpace:!0})},textStyle:{color:e.tooltipTextStyleColor},position:e.tooltipPosition||void 0},legend:vue.unref(u),color:e.colors,series:[{data:q,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=()=>{const q=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:q+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:q}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,formatter:N=>{const{data:T}=l.value[0]||{};let I=0,S,C="0%";if(T)for(const D of T)D.name===N&&(S=+D.value),I+=+D.value;return I&&(C=`${(S/I*100).toFixed(2)}%`),getLegendFormat(e.legendFormatter,{name:N,value:S,percent:C})}}},f=()=>{o.value=!1},{getGlobalModel:g,setGlobalModel:v}=vue.inject(GLOBAL_MODEL,{getGlobalModel:q=>{},setGlobalModel:(q,N)=>{}}),m=(q=[],N)=>{const{dataset:T}=useTransformChartDataByAttrValue(q,N);l.value=T},w=(q=[],N)=>{const T=useTransformChartDataByAttrValue(q,N);l.value=T.dataset};vue.watch(()=>e.data,q=>{(e.dataType==="static"||vue.unref(n)==="design")&&m(q)},{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],()=>{x()},{immediate:!0});const b=vue.ref(!1),d=useRequestData(e,a,q=>{var N,T;m((T=(N=q==null?void 0:q.data)==null?void 0:N.data)==null?void 0:T.rows,e.valueTypeDataFieldNames)}),p=async()=>{var q,N;if(e.dataType==="request")try{b.value=!0;const T=await d();m((N=(q=T==null?void 0:T.data)==null?void 0:q.data)==null?void 0:N.rows,e.valueTypeDataFieldNames)}catch(T){console.error(T)}finally{b.value=!1}},y=useEmitEvent(e);v(e.id,{type:e.type,RECORD:""});const E=y("click",q=>{const N=g(e.id);v(e.id,{...N,type:e.type,RECORD:q==null?void 0:q.data})}),_=q=>{var T;const{data:N}=(q==null?void 0:q.data)||{};if(N){const{columns:I=[],rows:S=[]}=((T=q==null?void 0:q.data)==null?void 0:T.data)??{};let C=[];if(I.length>0){const D=I[0],k=I[1];C=S.filter(F=>!!F).map(F=>({name:F[D],value:isNaN(F[k])?0:F[k]||0}))}w(C)}},P=useIndicatorData(e,a,_),A=async()=>{try{b.value=!0;const q=await P();_(q)}catch(q){console.error(q)}finally{b.value=!1}},{loadedData:R}=vue.inject(LOADED_DATA,{loadedData:{}}),M=vue.ref(!1);vue.watch(R,q=>{if(e.dataType==="indicator"){const N=getFixedValueDatas(e.graphicConfig);N!=null&&N.length&&(!vue.unref(M)&&canRequestIndicator(e.graphicConfig,q)?(M.value=!0,B()):canRequestIndicator(e.graphicConfig,q)||(M.value=!1))}},{deep:!0});const B=()=>{switch(e.dataType){case"indicator":canRequestIndicator(e.graphicConfig,vue.unref(R))&&A();break;case"request":p();break}};useOnEvent(e,{resetRecord:()=>{const q=e.id,N=g(q);v(q,{...N,RECORD:""})},refreshData:B,click:E}),r({refreshData:B});const{setRequest:V}=vue.inject(REQUEST_MODEL,{setRequest:q=>{}});return typeof V=="function"&&V({id:e.id,requestFn:B,sortNum:e.requestSort}),{option:h,style:s,click:E,onClose:f,loading:b,ecanModal:c,echartRef:a}}}),Pie_vue_vue_type_style_index_0_lang="";function _sfc_render$f(e,r,n,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$d,[["render",_sfc_render$f]]),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},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$c=vue.defineComponent({name:"EcanLine",props:{...lineComponentProps},components:{Spin,Echarts,EcanModal},setup(e,{expose:r}){const{pageMode:n,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(),h=vue.computed(()=>o.value?ZOOM_FONT_SIZE:12),x=vue.ref({});let f;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,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:h.value},show:e.tooltipShow,formatter:C=>{var $;const D=C.length;let k="",F=e.tooltipFormatter;f=($=C[0])==null?void 0:$.data,F===""&&(F="{marker} {a} {c}");for(let G=0;G<D;G++){const{marker:j,seriesName:U,name:H,value:L,data:K}=C[G]||{};if(G===0){let Y=H;typeof H=="string"&&H[0]==="0"&&!isNaN(+H)&&(Y=(+H).toString()),k+=`${useValueFormatter(I,Y)}<br/>`}k+=useVariablesInText(F,{textData:{marker:j,name:H,value:L,a:U,b:H,c:L||0,...K}},{useNewline:!0,useSpace:!0}),k+="<br/>"}return k},position:e.tooltipPosition||void 0},xAxis:{type:"category",boundaryGap:e.isBoundaryGap,data:vue.unref(c).map(C=>{let D={};return C&&typeof C=="object"?D={...C}:D={value:C},D}),minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{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)}}),m=()=>{o.value=!1},{getGlobalModel:w,setGlobalModel:b}=vue.inject(GLOBAL_MODEL,{getGlobalModel:I=>{},setGlobalModel:(I,S)=>{}}),d=vue.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),p=(I=[],S=!1)=>{let C;if(e.dataFieldConfigType==="key"){const $=S?e.keyTypeDataFieldNames:null;C=useTransformChartDataByAttrKey(I,$)}else if(e.dataFieldConfigType==="value"){const $=S?e.valueTypeDataFieldNames:null;C=useTransformChartDataByAttrValue(I,$)}c.value=C.dimensions,g.value=C.dataset;const D=C.dataset,k=[],F=D.length;for(let $=0;$<F;$++){const G={};e.shadowColor&&(G.shadowColor=e.shadowColor,G.shadowBlur=e.shadowBlur,G.shadowOffsetY=e.shadowOffsetY,G.shadowOffsetX=e.shadowOffsetX),k.push({type:"line",...D[$],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,...G},...vue.unref(d)})}l.value=k},y=(I=[],S,C=!1)=>{const k=useTransformChartDataByAttrKey(I,C?S:null,!0);c.value=k.dimensions,g.value=k.dataset;const F=k.dataset,$=[],G=F.length;for(let j=0;j<G;j++){const U={};e.shadowColor&&(U.shadowColor=e.shadowColor,U.shadowBlur=e.shadowBlur,U.shadowOffsetY=e.shadowOffsetY,U.shadowOffsetX=e.shadowOffsetX),$.push({type:"line",...F[j],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[j]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[j],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...U},...vue.unref(d)})}l.value=$};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(n)==="design")&&p(I)},{immediate:!0,deep:!0});const E=vue.ref(!1),_=useRequestData(e,a,I=>{var S,C;p((C=(S=I==null?void 0:I.data)==null?void 0:S.data)==null?void 0:C.rows,!0)}),P=async()=>{var I,S;if(e.dataType==="request")try{E.value=!0;const C=await _();p((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{E.value=!1}},A=useEmitEvent(e);b(e.id,{type:e.type,RECORD:""});const R=A("click",I=>{const S=w(e.id);b(e.id,{...S,type:e.type,RECORD:e.tooltipShow?f:I.data})}),M=I=>{a.value.chart.containPixel("grid",[I.offsetX,I.offsetY])&&R()};e.tooltipShow?x.value["zr:click"]=M:x.value.click=R;const B=I=>{var k;const{columns:S=[],rows:C=[]}=((k=I==null?void 0:I.data)==null?void 0:k.data)??{};let D;S.length>0&&(D={name:S[0],types:S.slice(1).map(F=>({label:F,value:F}))}),y(C,D,!0)},O=useIndicatorData(e,a,B),V=async()=>{try{E.value=!0;const I=await O();B(I)}catch(I){console.error(I)}finally{E.value=!1}},q=()=>{switch(e.dataType){case"indicator":V();break;case"request":P();break}};useOnEvent(e,{refreshData:q,resetRecord:()=>{const I=e.id,S=w(I);b(I,{...S,RECORD:""})},click:R});const{setRequest:T}=vue.inject(REQUEST_MODEL,{setRequest:I=>{}});return typeof T=="function"&&T({id:e.id,requestFn:q,sortNum:e.requestSort}),r({refreshData:q}),{option:v,style:s,click:R,loading:E,onClose:m,ecanModal:u,eventObj:x,echartRef:a}}}),Line_vue_vue_type_style_index_0_lang="";function _sfc_render$e(e,r,n,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$c,[["render",_sfc_render$e]]),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},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$b=vue.defineComponent({name:"EcanBar",props:{...barComponentProps},components:{Spin,Echarts,EcanModal,AModal:antDesignVue.Modal},setup(e,{expose:r}){const{pageMode:n,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([]),h=usePickComponentStyle(e),x=vue.ref([]),f=vue.ref(),g=vue.ref({});let v;const m=vue.computed(()=>s.value?ZOOM_FONT_SIZE:12),w=vue.computed(()=>{const{gradientShow:U,gradientColors:H,gradientOffset:L,barBorderRadius:K}=e,Y=vue.unref(x),Q=Y.length,J=[];for(let Z=0;Z<Q;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:ee=>{let re="",ie=e.labelFormatter;ie===""&&(ie="{c}");const{seriesName:ae,name:le,value:fe,data:he}=ee||{};return re+=useVariablesInText(ie,{textData:{name:le,value:fe,a:ae,b:le,c:fe||0,...he}},{useNewline:!0,useSpace:!0}),re}},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:L,color:H[Z]},{offset:1,color:H[Z]}]}}),K){const ee=K.split(",");if(ee!=null&&ee.length){const re=[];for(const ie of ee){const ae=parseFloat(ie);isNaN(ae)||re.push(ae)}W.itemStyle.borderRadius=re}}e.isShowMarkLine&&(W.markLine={data:[{type:e.markLineType}]}),J.push(W)}return J}),b=vue.ref([]),d=vue.ref(!1),p=vue.computed(()=>{const U=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 L=o.value.chart.getOption(),{xAxis:K}=L||{};K&&K.length&&(u.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: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 L;s.value=!0,(L=f.value)==null||L.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:L=>{var J;const K=L.length;let Y="",Q=e.tooltipFormatter;v=(J=L[0])==null?void 0:J.data,Q===""&&(Q="{marker} {a} {c}");for(let Z=0;Z<K;Z++){const{marker:W,seriesName:ee,name:re,value:ie,data:ae}=L[Z]||{};if(Z===0){let le=re;typeof re=="string"&&re[0]==="0"&&!isNaN(+re)&&(le=(+re).toString()),Y+=`${useValueFormatter(H,le)}<br/>`}Y+=useVariablesInText(Q,{textData:{marker:W,name:re,value:ie,a:ee,b:re,c:ie||0,...ae}},{useNewline:!0,useSpace:!0}),Y+="<br/>"}return Y},textStyle:{color:e.tooltipTextStyleColor,fontSize:m.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((L,K)=>({name:L.name,itemStyle:{color:e.colors[K]},icon:e.legendType})),formatter:L=>getLegendFormat(e.legendFormatter,{name:L})},xAxis:{type:e.isUseHorizontalAxis?"value":"category",data:e.isUseHorizontalAxis?null:vue.unref(P),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:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter(L){return typeof L=="string"&&L[0]==="0"&&!isNaN(+L)&&(L=(+L).toString()),useValueFormatter(H,L)}},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(L){return useValueFormatter(U,L)}},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(w)}}),y=()=>{s.value=!1},E=(U=[],H=!1)=>{let L={};if(e.dataFieldConfigType==="key"){const K=H?e.keyTypeDataFieldNames:null;L=useTransformChartDataByAttrKey(U,K)}else if(e.dataFieldConfigType==="value"){const K=H?e.valueTypeDataFieldNames:null;L=useTransformChartDataByAttrValue(U,K)}x.value=L.dataset,b.value=L.dimensions},_=(U=[],H,L=!1)=>{const Y=useTransformChartDataByAttrKey(U,L?H:null,!0);e.defaultRangeValue&&setDefaultRangeVal({props:e,componentList:vue.unref(a),getGlobalModel:D},Y),x.value=Y.dataset,b.value=Y.dimensions},P=vue.computed(()=>vue.unref(b).map(U=>{let H={};return U&&typeof U=="object"?H={...U}:H={value:U},H}));vue.watch(()=>[e.data,e.labelFormatter,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([U])=>{(e.dataType==="static"||vue.unref(n)==="design")&&E(U)},{immediate:!0,deep:!0});const A=useRequestData(e,o,U=>{var H,L;E((L=(H=U==null?void 0:U.data)==null?void 0:H.data)==null?void 0:L.rows,!0)}),R=async()=>{var U,H;try{d.value=!0;const L=await A();E((H=(U=L==null?void 0:L.data)==null?void 0:U.data)==null?void 0:H.rows,!0)}catch(L){console.error(L)}finally{d.value=!1}},M=U=>{var Y;const{columns:H=[],rows:L=[]}=((Y=U==null?void 0:U.data)==null?void 0:Y.data)??{};let K;H.length>0&&(K={name:H[0],types:H.slice(1).map(Q=>({label:Q,value:Q}))}),_(L,K,!0)},B=useIndicatorData(e,o,M),O=async()=>{try{d.value=!0;const U=await B();M(U)}catch(U){console.error(U)}finally{d.value=!1}},{loadedData:V}=vue.inject(LOADED_DATA,{loadedData:{}}),q=vue.ref(!1);vue.watch(V,U=>{if(e.dataType==="indicator"){const H=getFixedValueDatas(e.graphicConfig);H!=null&&H.length&&(!vue.unref(q)&&canRequestIndicator(e.graphicConfig,U)?(q.value=!0,N()):canRequestIndicator(e.graphicConfig,U)||(q.value=!1))}},{deep:!0});const N=()=>{switch(e.dataType){case"indicator":canRequestIndicator(e.graphicConfig,vue.unref(V))&&O();break;case"request":R();break}},T=(U,H)=>!!vue.unref(u)[H.value].value.includes(U),I=async()=>{l.value=!1;const U=o.value.chart.getOption();for(let H=0;H<7;H++)await S(U,H)},S=(U,H)=>new Promise(L=>{setTimeout(()=>{const{series:K,color:Y,xAxis:Q}=U,J=o.value.chart,{splitArea:Z={}}=Q[0]||{};K.forEach((W,ee)=>{const re=W.data;let ie="";H%2?ie=Y[ee]+"a8":ie=Y[ee],re[c.value].itemStyle={color:ie}}),H%2?(Z.show=!0,Z.areaStyle.color=vue.unref(u).map((W,ee)=>ee===c.value?"#ff003b26":"")):Z.show=!1,J.setOption({series:K,xAxis:Q}),L()},200)});r({refreshData:N});const C=useEmitEvent(e),{getGlobalModel:D,setGlobalModel:k}=vue.inject(GLOBAL_MODEL,{getGlobalModel:U=>{},setGlobalModel:(U,H)=>{}});k(e.id,{type:e.type,RECORD:""});const F=C("click",U=>{const H=D(e.id);k(e.id,{...H,type:e.type,RECORD:e.tooltipShow?v:U.data})}),{setRequest:$}=vue.inject(REQUEST_MODEL,{setRequest:U=>{}});typeof $=="function"&&$({id:e.id,requestFn:N,sortNum:e.requestSort});const G=()=>{const U=e.id,H=D(U);k(U,{...H,RECORD:""})},j=U=>{o.value.chart.containPixel("grid",[U.offsetX,U.offsetY])&&F()};return e.tooltipShow?g.value["zr:click"]=j:g.value.click=F,useOnEvent(e,{refreshData:N,click:F,resetRecord:G}),{option:p,style:h,refreshData:N,click:F,loading:d,onClose:y,ecanModal:f,echartRef:o,handleLocationOk:I,onFilterOption:T,locationVisible:l,locationValue:c,locationNames:u,eventObj:g}}}),Bar_vue_vue_type_style_index_0_lang="",Bar_vue_vue_type_style_index_1_scoped_084ccc5c_lang="",_withScopeId$3=e=>(vue.pushScopeId("data-v-084ccc5c"),e=e(),vue.popScopeId(),e),_hoisted_1$8={class:"location-wrap"},_hoisted_2$4=_withScopeId$3(()=>vue.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function _sfc_render$d(e,r,n,i,a,o){const s=vue.resolveComponent("echarts"),l=vue.resolveComponent("spin"),c=vue.resolveComponent("ecan-modal"),u=vue.resolveComponent("a-select-option"),h=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":r[1]||(r[1]=f=>e.locationVisible=f),title:"快速定位",onOk:e.handleLocationOk},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$8,[_hoisted_2$4,vue.createVNode(h,{value:e.locationValue,"onUpdate:value":r[0]||(r[0]=f=>e.locationValue=f),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,(f,g)=>(vue.openBlock(),vue.createBlock(u,{key:g,value:g},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(f.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const Bar=_export_sfc$1(_sfc_main$b,[["render",_sfc_render$d],["__scopeId","data-v-084ccc5c"]]),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},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$a=vue.defineComponent({name:"EcanScatter",props:{...scatterComponentProps},components:{Spin,Echarts,EcanModal},setup(e,{expose:r}){const{pageMode:n,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),h=vue.ref(),x=vue.ref(),f=vue.ref(),g=vue.ref(),v=vue.computed(()=>{const{xAxisMarkLineValue:C=[],yAxisMarkLineValue:D=[]}=e,k=C.map(G=>({...G,x:!0})),F=D.map(G=>({...G,y:!0})),$=k.concat(F);if($!=null&&$.length){const G=[],j={label:{show:!1}};for(const U of $){let H=U.value;const L=H.match(/\{(.+?)\}/g);let K="";if(U.x?K="xAxis":U.y&&(K="yAxis"),L!=null&&L.length){for(const Y of L)H=H.replace(Y,Y.slice(1,-1));if(H){const Y=runCode(H,{max:U.x?vue.unref(h):U.y?vue.unref(f):0,min:U.x?vue.unref(x):U.y?vue.unref(g):0});isNaN(+Y)||G.push({[K]:+Y,...j})}}else isNaN(+U.value)||G.push({[K]:U.value,...j})}return{symbol:["none","none"],data:G}}else return{data:[]}});function m(C,D,k){switch(D){case"startX":C[0].coord[0]=+k;break;case"startY":C[0].coord[1]=+k;break;case"endX":C[1].coord[0]=+k;break;case"endY":C[1].coord[1]=+k;break}}const w=vue.computed(()=>{const{axisMarkArea:C=[]}=e;if(C!=null&&C.length){const D=[];for(const k of C){const F=[{name:"",coord:[],itemStyle:{color:k.color}},{coord:[]}];for(const $ in k)if($!=="color"){let G=k[$];const j=G.match(/\{(.+?)\}/g);if(j!=null&&j.length){for(const U of j)G=G.replace(U,U.slice(1,-1));if(G){const U=runCode(G,{xMax:vue.unref(h),xMin:vue.unref(x),yMax:vue.unref(f),yMin:vue.unref(g)});isNaN(+U)||m(F,$,U)}}else isNaN(+k[$])||m(F,$,k[$])}F.every($=>{var G;return(G=$.coord)==null?void 0:G.length})&&D.push(F)}return{data:D}}else return{data:[]}}),b=vue.computed(()=>{const C=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 k;o.value=!0,(k=c.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,xAxis:{z:10,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,formatter(k){return typeof k=="string"&&k[0]==="0"&&!isNaN(+k)&&(k=(+k).toString()),useValueFormatter(C,k)}},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:10,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(k){return useValueFormatter(D,k)}},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(k){var L;const{marker:F,seriesName:$,componentType:G}=k,j=((L=k==null?void 0:k.data)==null?void 0:L.record)??{},U=j[vue.unref(E).name],H=j[vue.unref(E).value];return["markLine","markArea"].includes(G)?"":useVariablesInText(e.tooltipFormatter,{textData:{marker:F,seriesName:$,a:$,b:U,c:H,...j}},{useNewline:!0,useSpace:!0})},axisPointer:{type:"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:v.value,markArea:w.value}]}}),{getGlobalModel:d,setGlobalModel:p}=vue.inject(GLOBAL_MODEL,{getGlobalModel:C=>{},setGlobalModel:(C,D)=>{}}),y=()=>{const C=vue.unref(a).chart.getModel().getComponent("yAxis").axis.scale._extent,D=vue.unref(a).chart.getModel().getComponent("xAxis").axis.scale._extent;D&&C&&(x.value=D[0],h.value=D[1],g.value=C[0],f.value=C[1])},E=vue.computed(()=>{let C=e.dataFieldNames;if(e.dataType==="indicator"){const{formFields:D={}}=e.graphicConfig;D!=null&&D.labelField&&(D!=null&&D.valueField)&&(C={name:D.labelField,value:D.valueField})}return C}),_=(C=[])=>{const{name:D="name",value:k="value"}=vue.unref(E)||{};l.value=C.map(F=>({value:[F[D],F[k]],record:F})),setTimeout(()=>{y()},0)};vue.watch(()=>e.data,C=>{(e.dataType==="static"||vue.unref(n)==="design")&&_(C)},{immediate:!0,deep:!0});const P=vue.ref(!1),A=useRequestData(e,a,C=>{var D,k;_((k=(D=C==null?void 0:C.data)==null?void 0:D.data)==null?void 0:k.rows)}),R=async()=>{var C,D;if(e.dataType==="request"){P.value=!0;try{const k=await A();_((D=(C=k==null?void 0:k.data)==null?void 0:C.data)==null?void 0:D.rows)}catch(k){console.error(k)}finally{P.value=!1}}},M=()=>{o.value=!1},B=useEmitEvent(e);p(e.id,{type:e.type,RECORD:""});const O=B("click",C=>{const D=e.id,k=d(D);p(D,{...k,type:e.type,RECORD:C==null?void 0:C.data})}),V=C=>{var D,k;_((k=(D=C==null?void 0:C.data)==null?void 0:D.data)==null?void 0:k.rows)},q=useIndicatorData(e,a,V),N=async()=>{try{P.value=!0;const C=await q();V(C)}catch(C){console.error(C)}finally{P.value=!1}},T=()=>{switch(e.dataType){case"indicator":N();break;case"request":R();break}};useOnEvent(e,{refreshData:T,click:O,resetRecord:()=>{const C=e.id,D=d(C);p(C,{...D,RECORD:""})}});const{setRequest:S}=vue.inject(REQUEST_MODEL,{setRequest:C=>{}});return typeof S=="function"&&S({id:e.id,requestFn:T,sortNum:e.requestSort}),r({refreshData:T}),{option:b,style:s,click:O,loading:P,onClose:M,ecanModal:c,echartRef:a}}}),Scatter_vue_vue_type_style_index_0_lang="";function _sfc_render$c(e,r,n,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$a,[["render",_sfc_render$c]]),EcanScatter=withInstall$1(Scatter),customGraphProps={...props,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:"",graphicType:"ecanCustomGraph"},customGraphComponentProps=transformToComponentProps(customGraphProps),_sfc_main$9=vue.defineComponent({name:"EcanCustomGraph",props:{...customGraphComponentProps},components:{Echarts},setup(e){const r=usePickComponentStyle(e),n=vue.ref();return vue.watch(()=>e.optionCode,i=>{try{const a=eval;n.value=a(i)}catch(a){console.error(a)}},{immediate:!0}),{style:r,myOption:n,echarts:echarts__namespace}}});function _sfc_render$b(e,r,n,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$9,[["render",_sfc_render$b]]),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},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$8=vue.defineComponent({name:"EcanComboGraph",props:{...comboGraphComponentProps},components:{Spin,Echarts,EcanModal,AModal:antDesignVue.Modal},setup(e,{expose:r}){const{pageMode:n,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,L)=>{}}),l=vue.ref(),c=vue.ref(!1),u=vue.ref(!1),h=vue.ref(null),x=vue.ref([]),f=vue.ref({});let g;const v=usePickComponentStyle(e),m=vue.ref([]),w=vue.ref([]),b=vue.ref(),d=vue.ref([]),p=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:L}=H||{};L&&L.length&&(x.value=L[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,L)=>({name:H.name,itemStyle:{color:e.colors[L]},icon:e.legendType})),formatter:H=>getLegendFormat(e.legendFormatter,{name:H})},tooltip:{trigger:"axis",show:e.tooltipShow,formatter:H=>{var J;const L=H.length;let K="",Y=e.tooltipFormatter;g=(J=H[0])==null?void 0:J.data,Y===""&&(Y="{marker} {a} {c}");const Q=e.seriesTypes;for(let Z=0;Z<L;Z++){const W=Q[Z],{tooltipFormatter:ee}=W||{},{marker:re,seriesName:ie,name:ae,value:le,data:fe}=H[Z]||{};if(Z===0){let he=ae;typeof ae=="string"&&ae[0]==="0"&&!isNaN(+ae)&&(he=(+ae).toString()),K+=`${useValueFormatter(e.xAxisLabelFormatter,he)}<br/>`}K+=useVariablesInText(ee||Y,{textData:{marker:re,name:ae,value:le,seriesName:ie,a:ie,b:ae,c:le||0,...fe}},{useNewline:!0,useSpace:!0}),K+="<br/>"}return K},textStyle:{color:e.tooltipTextStyleColor,fontSize:p.value},position:e.tooltipPosition||void 0},xAxis:{minInterval:e.xAxisMinInterval,type:"category",data:vue.unref(w).map(H=>{let L={};return H&&typeof H=="object"?L={...H}:L={value:H},L}),splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{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(R),series:vue.unref(m)})),E=()=>{c.value=!1},_=(H=[],L=!1)=>{let K;if(e.dataFieldConfigType==="key"){const Q=L?e.keyTypeDataFieldNames:null;K=useTransformChartDataByAttrKey(H,Q)}else if(e.dataFieldConfigType==="value"){const Q=L?e.valueTypeDataFieldNames:null;K=useTransformChartDataByAttrValue(H,Q)}w.value=K.dimensions;const Y=K.dataset;d.value=K.dataset,m.value=A(Y)},P=(H=[],L,K=!1)=>{const Q=useTransformChartDataByAttrKey(H,K?L:null,!0);e.defaultRangeValue&&setDefaultRangeVal({props:e,componentList:vue.unref(a),getGlobalModel:o},Q),w.value=Q.dimensions;const J=Q.dataset;d.value=Q.dataset,m.value=A(J)};function A(H){const L=[],K=H.length,Y=e.seriesTypes;for(let Q=0;Q<K;Q++){const J=Y[Q],{type:Z,axisIndex:W}=J||{};let ee={type:Z,yAxisIndex:W,...H[Q]};if(Z==="line"){const re={};e.shadowColor&&(re.shadowColor=e.shadowColor,re.shadowBlur=e.shadowBlur,re.shadowOffsetY=e.shadowOffsetY,re.shadowOffsetX=e.shadowOffsetX),ee={...ee,symbolSize:e.symbolSize,smooth:e.smooth,itemStyle:{color:e.colors[Q]},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,...re}}}if(Z==="bar"){const{gradientShow:re,gradientColors:ie,gradientOffset:ae}=e,le={color:e.colors[Q]};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)}le.borderRadius=he}}re&&(le.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[Q]},{offset:ae,color:ie[Q]},{offset:1,color:ie[Q]}]}),ee={...ee,barWidth:e.barWidth.value+e.barWidth.suffix,itemStyle:le}}e.isShowMarkLine&&(ee.markLine={data:[{type:e.markLineType}]}),L.push(ee)}return L}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(n)==="design")&&_(H)},{immediate:!0,deep:!0});const R=vue.computed(()=>{const H=e.yAxis;return H==null?void 0:H.map((L,K)=>({type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:K===0?e.yAxisLeftSplitLineShow:e.yAxisRightSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:K===0?e.yAxisLeftSplitLineType:e.yAxisRightSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter(Y){return useValueFormatter(L.axisLabelFormatter,Y)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:K===0?e.yAxisLeftName:e.yAxisRightName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:K===0?"right":"left"},max:e.yAxisMaxValue||null}))}),M=vue.ref(!1),B=useRequestData(e,l,H=>{var L,K;_((K=(L=H==null?void 0:H.data)==null?void 0:L.data)==null?void 0:K.rows,!0)}),O=async()=>{var H,L;if(e.dataType==="request")try{M.value=!0;const K=await B();_((L=(H=K==null?void 0:K.data)==null?void 0:H.data)==null?void 0:L.rows,!0)}catch(K){console.error(K)}finally{M.value=!1}},V=H=>{var Q;const{columns:L=[],rows:K=[]}=((Q=H==null?void 0:H.data)==null?void 0:Q.data)??{};let Y;L.length>0&&(Y={name:L[0],types:L.slice(1).map(J=>({label:J,value:J}))}),P(K,Y,!0)},q=useIndicatorData(e,l,V),N=async()=>{try{M.value=!0;const H=await q();V(H)}catch(H){console.error(H)}finally{M.value=!1}},{loadedData:T}=vue.inject(LOADED_DATA,{loadedData:{}}),I=vue.ref(!1);vue.watch(T,H=>{if(e.dataType==="indicator"){const L=getFixedValueDatas(e.graphicConfig);L!=null&&L.length&&(!vue.unref(I)&&canRequestIndicator(e.graphicConfig,H)?(I.value=!0,S()):canRequestIndicator(e.graphicConfig,H)||(I.value=!1))}},{deep:!0});const S=()=>{switch(e.dataType){case"indicator":canRequestIndicator(e.graphicConfig,vue.unref(T))&&N();break;case"request":O();break}},C=(H,L)=>!!vue.unref(x)[L.value].value.includes(H),D=async()=>{u.value=!1;const H=l.value.chart.getOption();for(let L=0;L<7;L++)await k(H,L)},k=(H,L)=>new Promise(K=>{setTimeout(()=>{const{series:Y,color:Q,xAxis:J}=H,Z=l.value.chart,{splitArea:W={}}=J[0]||{};Y.forEach((ee,re)=>{const ie=ee.data;let ae="";L%2?ae=Q[re]+"a8":ae=Q[re],ie[h.value].itemStyle={color:ae}}),L%2?(W.show=!0,W.areaStyle.color=vue.unref(x).map((ee,re)=>re===h.value?"#ff003b26":"")):W.show=!1,Z.setOption({series:Y,xAxis:J}),K()},200)});r({refreshData:S});const F=useEmitEvent(e);s(e.id,{type:e.type,RECORD:""});const $=F("click",H=>{const L=o(e.id);s(e.id,{...L,type:e.type,RECORD:e.tooltipShow?g:H==null?void 0:H.data})}),G=H=>{l.value.chart.containPixel("grid",[H.offsetX,H.offsetY])&&$()};e.tooltipShow?f.value["zr:click"]=G:f.value.click=$;const{setRequest:j}=vue.inject(REQUEST_MODEL,{setRequest:H=>{}});return typeof j=="function"&&j({id:e.id,requestFn:S,sortNum:e.requestSort}),useOnEvent(e,{resetRecord:()=>{const H=e.id,L=o(H);s(H,{...L,RECORD:""})},refreshData:S,click:$}),{style:v,option:y,click:$,loading:M,onClose:E,ecanModal:b,echartRef:l,handleLocationOk:D,onFilterOption:C,locationVisible:u,locationValue:h,locationNames:x,eventObj:f}}}),ComboGraph_vue_vue_type_style_index_0_lang="",ComboGraph_vue_vue_type_style_index_1_scoped_5d5326d7_lang="",_withScopeId$2=e=>(vue.pushScopeId("data-v-5d5326d7"),e=e(),vue.popScopeId(),e),_hoisted_1$7={class:"location-wrap"},_hoisted_2$3=_withScopeId$2(()=>vue.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function _sfc_render$a(e,r,n,i,a,o){const s=vue.resolveComponent("echarts"),l=vue.resolveComponent("spin"),c=vue.resolveComponent("ecan-modal"),u=vue.resolveComponent("a-select-option"),h=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":r[1]||(r[1]=f=>e.locationVisible=f),title:"快速定位",onOk:e.handleLocationOk},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$7,[_hoisted_2$3,vue.createVNode(h,{value:e.locationValue,"onUpdate:value":r[0]||(r[0]=f=>e.locationValue=f),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,(f,g)=>(vue.openBlock(),vue.createBlock(u,{key:g,value:g},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(f.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const ComboGraph=_export_sfc$1(_sfc_main$8,[["render",_sfc_render$a],["__scopeId","data-v-5d5326d7"]]),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$7=vue.defineComponent({name:"EcanRadar",props:{...radarComponentProps},components:{Spin,Echarts,EcanModal},setup(e,{expose:r}){const{pageMode:n,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),h=vue.ref([]),x=vue.ref(e.valueTypeDataFieldNames.name),f=vue.computed(()=>{const N=vue.unref(h),T=N.length,I=[];for(let S=0;S<T;S++){const{name:C,data:D=[]}=N[S],k=[{name:C,value:D.map(G=>G.value)}];let F=e.colors[S];if(e.gradientShow){const{gradientOffset:G,gradientColors:j}=e;F={x:.7,y:0,x2:0,y2:0,colorStops:[{offset:0,color:e.colors[S]},{offset:G,color:j[S]},{offset:1,color:j[S]}]}}const $={type:"radar",name:C,data:k,areaStyle:{color:F,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:G=>{const{data:j,value:U}=G;let H=0,L="0%";if(j)for(const K of j.value)H+=+K;return H&&(L=`${(U/H*100).toFixed(2)}%`),useVariablesInText(e.labelFormatter,{textData:{value:U,percent:L}},{useNewline:!1,useSpace:!1})}}};I.push($)}return I}),g=vue.computed(()=>{var C;const N=[],T=[],I=vue.unref(h),S=I.length;for(let D=0;D<S;D++){const{data:k=[]}=I[D];for(let F=0;F<k.length;F++)T.push(k[F].value)}if((C=l.value)!=null&&C.length){const D=T!=null&&T.length?Math.max(...T)*1.2:0;for(const k of l.value)N.push({name:k,max:D})}return N}),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 N;o.value=!0,(N=c.value)==null||N.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:N=>{let T="",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:D,seriesName:k,value:F}=N||{};S===0&&k&&(T+=`${k}<br/>`),T+=useVariablesInText(I,{textData:{marker:D,name:C.name,value:F[S],a:C.name,b:C.name,c:F[S]||0,type:k}},{useNewline:!0,useSpace:!0}),T+="<br/>"}return T},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(h).map(N=>({name:N.name,icon:e.legendType})),formatter:N=>getLegendFormat(e.legendFormatter,{name:N})},series:vue.unref(f)})),m=()=>{o.value=!1},{getGlobalModel:w,setGlobalModel:b}=vue.inject(GLOBAL_MODEL,{getGlobalModel:N=>{},setGlobalModel:(N,T)=>{}}),d=(N=[],T=!1)=>{let I;if(e.dataFieldConfigType==="key"){const S=T?e.keyTypeDataFieldNames:null;I=useTransformChartDataByAttrKey(N,S)}else if(e.dataFieldConfigType==="value"){const S=T?e.valueTypeDataFieldNames:null;I=useTransformChartDataByAttrValue(N,S)}l.value=I.dimensions,h.value=I.dataset},p=(N=[],T,I=!1)=>{const C=useTransformChartDataByAttrKey(N,I?T:null,!0);l.value=C.dimensions,h.value=C.dataset};vue.watch(()=>[e.data,e.areaStyleOpacity,e.legendFontSize,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll,e.labelFormatter],([N])=>{(e.dataType==="static"||vue.unref(n)==="design")&&d(N)},{immediate:!0,deep:!0});const y=vue.ref(!1),E=useRequestData(e,a,N=>{var T,I;d((I=(T=N==null?void 0:N.data)==null?void 0:T.data)==null?void 0:I.rows,!0)}),_=async()=>{var N,T;if(e.dataType==="request")try{y.value=!0;const I=await E();d((T=(N=I==null?void 0:I.data)==null?void 0:N.data)==null?void 0:T.rows,!0)}catch(I){console.error(I)}finally{y.value=!1}},P=useEmitEvent(e);b(e.id,{type:e.type,RECORD:""});const A=N=>{const T=N.event.topTarget.__dimIdx;T!==void 0&&P("click",()=>{var D;const{value:I,name:S}=N.data||{},C=w(e.id);b(e.id,{...C,type:e.type,RECORD:{[vue.unref(x)]:((D=vue.unref(g)[T])==null?void 0:D.name)||"",[S]:I[T],seriesName:S}})})()},R=N=>{var C;const{columns:T=[],rows:I=[]}=((C=N==null?void 0:N.data)==null?void 0:C.data)??{};let S;T.length>0&&(x.value=T[0],S={name:T[0],types:T.slice(1).map(D=>({label:D,value:D}))}),p(I,S,!0)},M=useIndicatorData(e,a,R),B=async()=>{try{y.value=!0;const N=await M();R(N)}catch(N){console.error(N)}finally{y.value=!1}},O=()=>{switch(e.dataType){case"indicator":B();break;case"request":_();break}};useOnEvent(e,{refreshData:O,resetRecord:()=>{const N=e.id,T=w(N);b(N,{...T,RECORD:""})},click:A});const{setRequest:q}=vue.inject(REQUEST_MODEL,{setRequest:N=>{}});return typeof q=="function"&&q({id:e.id,requestFn:O,sortNum:e.requestSort}),r({refreshData:O}),{option:v,style:s,click:A,loading:y,onClose:m,ecanModal:c,echartRef:a}}}),Radar_vue_vue_type_style_index_0_lang="";function _sfc_render$9(e,r,n,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$7,[["render",_sfc_render$9]]),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$6=vue.defineComponent({name:"EcanBorder",props:{...borderComponentProps},setup(e){const r=usePickComponentStyle(e,["background"]),n=vue.computed(()=>{const{isTransparent:v,gradientShow:m,gradientColor:w,gradientOffset:b,gradientAngle:d,backgroundColor:p}=e;if(m){let y=w;return v&&(y="transparent"),y?{background:`linear-gradient(${d}, ${p}, ${y} ${b*100}%)`}:{}}else return{}}),i=vue.computed(()=>{const{events:v}=e;let m={};return v!=null&&v.length&&v.find(b=>b.emit==="showModal")&&(m={cursor:"pointer"}),m}),{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,m=[],w={};if(v){const b=v.split(",");for(const d of b)(+d||+d==0)&&m.push(+d+"px")}return m!=null&&m.length&&(w.borderRadius=m.join(" ")),w}),x=useEmitEvent(e)("click",()=>{}),f=vue.ref([]);vue.watch(()=>e.data,v=>{f.value=v},{immediate:!0,deep:!0}),useOnEvent(e,{click:x});const{setGlobalModel:g}=vue.inject(GLOBAL_MODEL,{setGlobalModel:(v,m)=>{}});return g(e.id,{type:e.type,value:f}),{style:r,gradientStyle:n,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$2=_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$8(e,r,n,i,a,o){return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-border",style:vue.normalizeStyle({...e.style,...e.gradientStyle,...e.borderRadiusStyle,...e.cursorStyle}),onClick:r[0]||(r[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$2,_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$6,[["render",_sfc_render$8],["__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$5=vue.defineComponent({name:"EcanTabs",props:{...tabsComponentProps},components:{ASelect:antDesignVue.Select,ASelectOption:antDesignVue.SelectOption,MarqueeScroll},setup(e){const r=usePickComponentStyle(e),n=vue.ref(0);vue.watch(()=>e.activeKey,A=>{n.value=A},{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=A=>{const R=vue.unref(l)[A],M=[];if(R)for(const B in R)for(const O of R[B]){const V=vue.unref(o).find(q=>q.id===O);M.push(O),s.includes(V==null?void 0:V.type)&&M.push(...c(O))}return M},u=vue.computed(()=>c(e.id));let h=null;const x=()=>{const A=Array.isArray(vue.unref(g))?vue.unref(g).length-1:0;vue.unref(i)!=="design"&&!e.isAutoScroll&&e.autoSwitch&&A>0&&(h=setInterval(()=>{const R=vue.unref(n)+1;R<=A?n.value=R:n.value=0,v.value=vue.unref(g)[vue.unref(n)],d()},e.autoSwitchInterval*1e3))},f=()=>{clearInterval(h)};vue.onMounted(()=>{vue.unref(i)!=="design"&&x()}),vue.onBeforeUnmount(()=>{f()});const g=vue.ref([]),v=vue.ref({});vue.watch(()=>e.data,A=>{g.value=A,v.value=Array.isArray(A)&&A.length>0?A[0]:{}},{immediate:!0,deep:!0});const m=A=>n.value===A,w=useEmitEvent(e),{setGlobalModel:b}=vue.inject(GLOBAL_MODEL,{setGlobalModel:(A,R)=>{}});b(e.id,{RECORD:vue.unref(v),value:vue.unref(v),activeKey:n});const{emitRefreshPage:d}=vue.inject(REFRESH_PAGE,{emitRefreshPage:()=>{}}),p=A=>{let{tab:R,index:M}=A||{};if(A.label){const B=vue.unref(g).findIndex(O=>O.title===A.label);B!==-1&&(M=B,R=vue.unref(g)[B])}w("tabChange",()=>{!isNaN(+M)&&M!==vue.unref(n)&&(v.value=R,n.value=M,b(e.id,{RECORD:R,value:R,activeKey:M}),d())})()},y=vue.computed(()=>{const A=e.componentList.map(R=>parseFloat(R.left)+parseFloat(R.width)).sort((R,M)=>M-R)[0];return{width:A?A+"px":"100%"}}),E=()=>{vue.unref(i)!=="design"&&f()},_=A=>{var R,M;return A?(M=(R=A==null?void 0:A.parentNode)==null?void 0:R.className)!=null&&M.includes("ecan-")?A.parentNode.getAttribute("cpntid"):_(A.parentNode):""},P=A=>{var R;if(vue.unref(i)!=="design"){const M=(A==null?void 0:A.toElement)||{};if((R=M==null?void 0:M.className)!=null&&R.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:p}),{style:r,activeKey:n,isActive:m,tabChange:p,myData:g,useImagePath,pageMode:i,scrollWrapStyle:y,onMouseEnter:E,onMouseLeave:P}}}),Tabs_vue_vue_type_style_index_0_scoped_c936183e_lang="",_hoisted_1$5=["id"],_hoisted_2$1=["onClick"];function _sfc_render$7(e,r,n,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:r[0]||(r[0]=(...u)=>e.onMouseEnter&&e.onMouseEnter(...u)),onMouseleave:r[1]||(r[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,h)=>(vue.openBlock(),vue.createElementBlock("div",{class:"tab",style:vue.normalizeStyle({padding:`5px ${e.tabHorizontalPadding}`,color:e.isActive(h)?e.activeTabColor:e.tabColor,backgroundImage:e.isActive(h)?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:h,onClick:vue.withModifiers(x=>e.tabChange({tab:u,index:h}),["prevent","stop"])},[vue.createElementVNode("div",{class:"tab-inner",style:vue.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.isActive(h)?e.activeTabColor:"transparent"}`:""})},vue.toDisplayString(u.title),5)],12,_hoisted_2$1))),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,h)=>(vue.openBlock(),vue.createBlock(s,{key:h,value:h,onClick:x=>e.tabChange({tab:u,index:h})},{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$5,[["render",_sfc_render$7],["__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((r,n)=>(n&=63,n<36?r+=n.toString(36):n<62?r+=(n-26).toString(36).toUpperCase():n>62?r+="-":r+="_",r),"");const _sfc_main$4=vue.defineComponent({name:"EcanCirculate",props:{...circulateComponentProps,sourceLeft:String,sourceTop:String,sourceWidth:Number},components:{MarqueeScroll,Skeleton},setup(e,{expose:r}){const n=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:A=>{},setGlobalModel:(A,R)=>{}}),c=vue.ref([]),u=vue.ref({}),{pageMode:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),x=vue.computed(()=>{if(vue.unref(o)){const A=document.body.clientWidth,R=e.sourceWidth||parseFloat(e.width);return A/R||1}else return 1});function f(A,R){const M=R.find(B=>B.id===e.id);if(M)for(const B of A)B.left=parseFloat(B.left)-parseFloat(M.sourceLeft||M.left)+"px",B.top=parseFloat(B.top)-parseFloat(M.sourceTop||M.top)+"px"}const g=A=>{const R=A.sort((V,q)=>parseFloat(V.top)-parseFloat(q.top))[0],M=A.sort((V,q)=>parseFloat(V.left)-parseFloat(q.left))[0],B=A.map(V=>parseFloat(V.left)+parseFloat(V.width)).sort((V,q)=>q-V)[0],O=A.map(V=>parseFloat(V.top)+parseFloat(V.height)).sort((V,q)=>q-V)[0];if(M&&B&&R&&O){const V=parseFloat(M.left),q=parseFloat(R.top);return{width:B-V,height:O-q,left:V}}else return{width:0,height:0,left:0}},v=vue.ref({}),m=A=>{var C,D;const R=[],{graphicConfig:M,id:B,componentList:O,keyFieldMap:V,unitInterval:q,colNum:N}=e;let T=lodashEs.cloneDeep(O),I=[];if((C=vue.unref(a))!=null&&C.length)for(const k of vue.unref(a))I.push(k),(D=k==null?void 0:k.componentList)!=null&&D.length&&I.push(...k.componentList);if(M.pageMode==="design"&&M.preview){const{containerMap:k}=M.pageConfig||{};I=M.componentList||[],I.push(e),T=moveToComponentList(k,lodashEs.cloneDeep(I),B)}f(T,I);const S=g(T);if(A!=null&&A.length){const{width:k,left:F,height:$}=S;let G=0,j=0;A.forEach((U,H)=>{U.index=H+1;const L=nanoid(),K=lodashEs.cloneDeep(T);for(const Y of K){const Q=V.find(Z=>Z.keyName===Y.keyName),J=nanoid();if(Y.left=(parseFloat(Y.left)+G)*vue.unref(x)+"px",Y.top=(parseFloat(Y.top)+j)*vue.unref(x)+"px",Y.scale=vue.unref(x),Y.id=J,Y.keyName=Y.name+"_"+J,Y.unitId=L,Q!=null&&Q.fieldName){const Z=Y.text.match(/\{(.+?)\}/g);switch(Y.type){case"ecanText":{Y.data={value:String(U[Q.fieldName])},Z!=null&&Z.length||(Y.text="{value}");break}case"ecanProportion":{Y.data={percent:String(U[Q.fieldName])},Z!=null&&Z.length||(Y.text="{percent}");break}}}}N&&U.index%N===0?(G=0,j+=q+$):G+=q+k,R.push(...K),v.value[L]=U}),u.value={width:((N||A.length)*(k+q)+F)*vue.unref(x)+"px",height:(N?Math.ceil(A.length/N)*(q+$):q+$)*vue.unref(x)+"px"}}c.value=R},w=A=>{var M;const{rows:R=[]}=((M=A==null?void 0:A.data)==null?void 0:M.data)??{};m(R)},b=useIndicatorData(e,w),d=async()=>{try{n.value=!0;const A=await b();w(A)}catch(A){console.error(A)}finally{n.value=!1}},p=()=>{switch(e.dataType){case"indicator":d();break}};useOnEvent(e,{refreshData:p,resetRecord:()=>{const A=e.id,R=s(A);l(A,{...R,RECORD:""})}}),r({refreshData:p}),l(e.id,{type:e.type,RECORD:""});const{setRequest:E}=vue.inject(REQUEST_MODEL,{setRequest:A=>{}});typeof E=="function"&&E({id:e.id,requestFn:p,sortNum:e.requestSort});const _=useEmitEvent(e);return{loading:n,style:i,myComponentList:c,scrollWrapStyle:u,pageMode:h,click:A=>{let R=A.target;if(R){let M=R.getAttribute("unitId");for(;!M&&!R.className.includes("ecan-");)R=R.parentElement,M=R.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$6(e,r,n,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:r[0]||(r[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$4,[["render",_sfc_render$6],["__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$3=vue.defineComponent({name:"EcanTemplate",props:{...templateComponentProps},components:{},setup(e){const r=usePickComponentStyle(e,["background"]),{templateEmit:n}=vue.inject("templateOperate",{templateEmit:(a,o)=>{}})||{};return useOnEvent(e,{refreshData:()=>{n("refreshTemplate",e.pageId)}}),{style:r}}});function _sfc_render$5(e,r,n,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$3,[["render",_sfc_render$5]]),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,r){module.exports=r()}(commonjsGlobal,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(r){_useWebWorker=!!r},getWebWorker=function(){return _useWebWorker},setLocationHref=function(r){locationHref=r},getLocationHref=function(){return locationHref};function createTag(e){return document.createElement(e)}function extendPrototype(e,r){var n,i=e.length,a;for(n=0;n<i;n+=1){a=e[n].prototype;for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(r.prototype[o]=a[o])}}function getDescriptor(e,r){return Object.getOwnPropertyDescriptor(e,r)}function createProxyFunction(e){function r(){}return r.prototype=e,r}var audioControllerFactory=function(){function e(r){this.audios=[],this.audioFactory=r,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(n){this.audios.push(n)},pause:function(){var n,i=this.audios.length;for(n=0;n<i;n+=1)this.audios[n].pause()},resume:function(){var n,i=this.audios.length;for(n=0;n<i;n+=1)this.audios[n].resume()},setRate:function(n){var i,a=this.audios.length;for(i=0;i<a;i+=1)this.audios[i].setRate(n)},createAudio:function(n){return this.audioFactory?this.audioFactory(n):window.Howl?new window.Howl({src:[n]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(n){this.audioFactory=n},setVolume:function(n){this._volume=n,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var n,i=this.audios.length;for(n=0;n<i;n+=1)this.audios[n].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),createTypedArray=function(){function e(n,i){var a=0,o=[],s;switch(n){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 r(n,i){return n==="float32"?new Float32Array(i):n==="int16"?new Int16Array(i):n==="uint8c"?new Uint8ClampedArray(i):e(n,i)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?r: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(n){return typeof n}:_typeof$6=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_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"],r,n=e.length;for(r=0;r<n;r+=1)BMMath[e[r]]=Math[e[r]]})(),BMMath.random=Math.random,BMMath.abs=function(e){var r=_typeof$6(e);if(r==="object"&&e.length){var n=createSizedArray(e.length),i,a=e.length;for(i=0;i<a;i+=1)n[i]=Math.abs(e[i]);return n}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,r,n,i){this.type=e,this.currentTime=r,this.totalTime=n,this.direction=i<0?-1:1}function BMCompleteEvent(e,r){this.type=e,this.direction=r<0?-1:1}function BMCompleteLoopEvent(e,r,n,i){this.type=e,this.currentLoop=n,this.totalLoops=r,this.direction=i<0?-1:1}function BMSegmentStartEvent(e,r,n){this.type=e,this.firstFrame=r,this.totalFrames=n}function BMDestroyEvent(e,r){this.type=e,this.target=r}function BMRenderFrameErrorEvent(e,r){this.type="renderFrameError",this.nativeError=e,this.currentTime=r}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,r,n){var i,a,o,s,l,c,u,h;switch(s=Math.floor(e*6),l=e*6-s,c=n*(1-r),u=n*(1-l*r),h=n*(1-(1-l)*r),s%6){case 0:i=n,a=h,o=c;break;case 1:i=u,a=n,o=c;break;case 2:i=c,a=n,o=h;break;case 3:i=c,a=u,o=n;break;case 4:i=h,a=c,o=n;break;case 5:i=n,a=c,o=u;break}return[i,a,o]}function RGBtoHSV(e,r,n){var i=Math.max(e,r,n),a=Math.min(e,r,n),o=i-a,s,l=i===0?0:o/i,c=i/255;switch(i){case a:s=0;break;case e:s=r-n+o*(r<n?6:0),s/=6*o;break;case r:s=n-e+o*2,s/=6*o;break;case n:s=e-r+o*4,s/=6*o;break}return[s,l,c]}function addSaturationToRGB(e,r){var n=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return n[1]+=r,n[1]>1?n[1]=1:n[1]<=0&&(n[1]=0),HSVtoRGB(n[0],n[1],n[2])}function addBrightnessToRGB(e,r){var n=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return n[2]+=r,n[2]>1?n[2]=1:n[2]<0&&(n[2]=0),HSVtoRGB(n[0],n[1],n[2])}function addHueToRGB(e,r){var n=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return n[0]+=r/360,n[0]>1?n[0]-=1:n[0]<0&&(n[0]+=1),HSVtoRGB(n[0],n[1],n[2])}var rgbToHex=function(){var e=[],r,n;for(r=0;r<256;r+=1)n=r.toString(16),e[r]=n.length===1?"0"+n:n;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(r){subframeEnabled=!!r},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(r){expressionsPlugin=r},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(r){expressionsInterfaces=r},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(r){defaultCurveSegments=r},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(r){idPrefix$1=r};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(n){return typeof n}:_typeof$5=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof$5(e)}var dataManager=function(){var e=1,r=[],n,i,a={onmessage:function(){},postMessage:function(g){n({data:g})}},o={postMessage:function(g){a.onmessage({data:g})}};function s(f){if(window.Worker&&window.Blob&&getWebWorker()){var g=new Blob(["var _workerSelf = self; self.onmessage = ",f.toString()],{type:"text/javascript"}),v=URL.createObjectURL(g);return new Worker(v)}return n=f,a}function l(){i||(i=s(function(g){function v(){function w(N,T){var I,S,C=N.length,D,k,F,$;for(S=0;S<C;S+=1)if(I=N[S],"ks"in I&&!I.completed){if(I.completed=!0,I.hasMask){var G=I.masksProperties;for(k=G.length,D=0;D<k;D+=1)if(G[D].pt.k.i)E(G[D].pt.k);else for($=G[D].pt.k.length,F=0;F<$;F+=1)G[D].pt.k[F].s&&E(G[D].pt.k[F].s[0]),G[D].pt.k[F].e&&E(G[D].pt.k[F].e[0])}I.ty===0?(I.layers=p(I.refId,T),w(I.layers,T)):I.ty===4?y(I.shapes):I.ty===5&&V(I)}}function b(N,T){if(N){var I=0,S=N.length;for(I=0;I<S;I+=1)N[I].t===1&&(N[I].data.layers=p(N[I].data.refId,T),w(N[I].data.layers,T))}}function d(N,T){for(var I=0,S=T.length;I<S;){if(T[I].id===N)return T[I];I+=1}return null}function p(N,T){var I=d(N,T);return I?I.layers.__used?JSON.parse(JSON.stringify(I.layers)):(I.layers.__used=!0,I.layers):null}function y(N){var T,I=N.length,S,C;for(T=I-1;T>=0;T-=1)if(N[T].ty==="sh")if(N[T].ks.k.i)E(N[T].ks.k);else for(C=N[T].ks.k.length,S=0;S<C;S+=1)N[T].ks.k[S].s&&E(N[T].ks.k[S].s[0]),N[T].ks.k[S].e&&E(N[T].ks.k[S].e[0]);else N[T].ty==="gr"&&y(N[T].it)}function E(N){var T,I=N.i.length;for(T=0;T<I;T+=1)N.i[T][0]+=N.v[T][0],N.i[T][1]+=N.v[T][1],N.o[T][0]+=N.v[T][0],N.o[T][1]+=N.v[T][1]}function _(N,T){var I=T?T.split("."):[100,100,100];return N[0]>I[0]?!0:I[0]>N[0]?!1:N[1]>I[1]?!0:I[1]>N[1]?!1:N[2]>I[2]?!0:I[2]>N[2]?!1:null}var P=function(){var N=[4,4,14];function T(S){var C=S.t.d;S.t.d={k:[{s:C,t:0}]}}function I(S){var C,D=S.length;for(C=0;C<D;C+=1)S[C].ty===5&&T(S[C])}return function(S){if(_(N,S.v)&&(I(S.layers),S.assets)){var C,D=S.assets.length;for(C=0;C<D;C+=1)S.assets[C].layers&&I(S.assets[C].layers)}}}(),A=function(){var N=[4,7,99];return function(T){if(T.chars&&!_(N,T.v)){var I,S=T.chars.length;for(I=0;I<S;I+=1){var C=T.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}},T.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"})))}}}}(),R=function(){var N=[5,7,15];function T(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,D=S.length;for(C=0;C<D;C+=1)S[C].ty===5&&T(S[C])}return function(S){if(_(N,S.v)&&(I(S.layers),S.assets)){var C,D=S.assets.length;for(C=0;C<D;C+=1)S.assets[C].layers&&I(S.assets[C].layers)}}}(),M=function(){var N=[4,1,9];function T(S){var C,D=S.length,k,F;for(C=0;C<D;C+=1)if(S[C].ty==="gr")T(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(F=S[C].c.k.length,k=0;k<F;k+=1)S[C].c.k[k].s&&(S[C].c.k[k].s[0]/=255,S[C].c.k[k].s[1]/=255,S[C].c.k[k].s[2]/=255,S[C].c.k[k].s[3]/=255),S[C].c.k[k].e&&(S[C].c.k[k].e[0]/=255,S[C].c.k[k].e[1]/=255,S[C].c.k[k].e[2]/=255,S[C].c.k[k].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,D=S.length;for(C=0;C<D;C+=1)S[C].ty===4&&T(S[C].shapes)}return function(S){if(_(N,S.v)&&(I(S.layers),S.assets)){var C,D=S.assets.length;for(C=0;C<D;C+=1)S.assets[C].layers&&I(S.assets[C].layers)}}}(),B=function(){var N=[4,4,18];function T(S){var C,D=S.length,k,F;for(C=D-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(F=S[C].ks.k.length,k=0;k<F;k+=1)S[C].ks.k[k].s&&(S[C].ks.k[k].s[0].c=S[C].closed),S[C].ks.k[k].e&&(S[C].ks.k[k].e[0].c=S[C].closed);else S[C].ty==="gr"&&T(S[C].it)}function I(S){var C,D,k=S.length,F,$,G,j;for(D=0;D<k;D+=1){if(C=S[D],C.hasMask){var U=C.masksProperties;for($=U.length,F=0;F<$;F+=1)if(U[F].pt.k.i)U[F].pt.k.c=U[F].cl;else for(j=U[F].pt.k.length,G=0;G<j;G+=1)U[F].pt.k[G].s&&(U[F].pt.k[G].s[0].c=U[F].cl),U[F].pt.k[G].e&&(U[F].pt.k[G].e[0].c=U[F].cl)}C.ty===4&&T(C.shapes)}}return function(S){if(_(N,S.v)&&(I(S.layers),S.assets)){var C,D=S.assets.length;for(C=0;C<D;C+=1)S.assets[C].layers&&I(S.assets[C].layers)}}}();function O(N){N.__complete||(M(N),P(N),A(N),R(N),B(N),w(N.layers,N.assets),b(N.chars,N.assets),N.__complete=!0)}function V(N){N.t.a.length===0&&"m"in N.t.p}var q={};return q.completeData=O,q.checkColors=M,q.checkChars=A,q.checkPathProperties=R,q.checkShapes=B,q.completeLayers=w,q}if(o.dataManager||(o.dataManager=v()),o.assetLoader||(o.assetLoader=function(){function w(d){var p=d.getResponseHeader("content-type");return p&&d.responseType==="json"&&p.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,p,y,E){var _,P=new XMLHttpRequest;try{P.responseType="json"}catch{}P.onreadystatechange=function(){if(P.readyState===4)if(P.status===200)_=w(P),y(_);else try{_=w(P),y(_)}catch(A){E&&E(A)}};try{P.open(["G","E","T"].join(""),d,!0)}catch{P.open(["G","E","T"].join(""),p+"/"+d,!0)}P.send()}return{load:b}}()),g.data.type==="loadAnimation")o.assetLoader.load(g.data.path,g.data.fullPath,function(w){o.dataManager.completeData(w),o.postMessage({id:g.data.id,payload:w,status:"success"})},function(){o.postMessage({id:g.data.id,status:"error"})});else if(g.data.type==="complete"){var m=g.data.animation;o.dataManager.completeData(m),o.postMessage({id:g.data.id,payload:m,status:"success"})}else g.data.type==="loadData"&&o.assetLoader.load(g.data.path,g.data.fullPath,function(w){o.postMessage({id:g.data.id,payload:w,status:"success"})},function(){o.postMessage({id:g.data.id,status:"error"})})}),i.onmessage=function(f){var g=f.data,v=g.id,m=r[v];r[v]=null,g.status==="success"?m.onComplete(g.payload):m.onError&&m.onError()})}function c(f,g){e+=1;var v="processId_"+e;return r[v]={onComplete:f,onError:g},v}function u(f,g,v){l();var m=c(g,v);i.postMessage({type:"loadAnimation",path:f,fullPath:window.location.origin+window.location.pathname,id:m})}function h(f,g,v){l();var m=c(g,v);i.postMessage({type:"loadData",path:f,fullPath:window.location.origin+window.location.pathname,id:m})}function x(f,g,v){l();var m=c(g,v);i.postMessage({type:"complete",animation:f,id:m})}return{loadAnimation:u,loadData:h,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 r(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function i(b,d,p){var y="";if(b.e)y=b.p;else if(d){var E=b.p;E.indexOf("images/")!==-1&&(E=E.split("/")[1]),y=d+E}else y=p,y+=b.u?b.u:"",y+=b.p;return y}function a(b){var d=0,p=setInterval((function(){var y=b.getBBox();(y.width||d>500)&&(this._imageLoaded(),clearInterval(p)),d+=1}).bind(this),50)}function o(b){var d=i(b,this.assetsPath,this.path),p=createNS("image");isSafari?this.testImageLoaded(p):p.addEventListener("load",this._imageLoaded,!1),p.addEventListener("error",(function(){y.img=e,this._imageLoaded()}).bind(this),!1),p.setAttributeNS("http://www.w3.org/1999/xlink","href",d),this._elementHelper.append?this._elementHelper.append(p):this._elementHelper.appendChild(p);var y={img:p,assetData:b};return y}function s(b){var d=i(b,this.assetsPath,this.path),p=createTag("img");p.crossOrigin="anonymous",p.addEventListener("load",this._imageLoaded,!1),p.addEventListener("error",(function(){y.img=e,this._imageLoaded()}).bind(this),!1),p.src=d;var y={img:p,assetData:b};return y}function l(b){var d={assetData:b},p=i(b,this.assetsPath,this.path);return dataManager.loadData(p,(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 p,y=b.length;for(p=0;p<y;p+=1)b[p].layers||(!b[p].t||b[p].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(b[p]))):b[p].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(b[p]))))}function u(b){this.path=b||""}function h(b){this.assetsPath=b||""}function x(b){for(var d=0,p=this.images.length;d<p;){if(this.images[d].assetData===b)return this.images[d].img;d+=1}return null}function f(){this.imagesLoadedCb=null,this.images.length=0}function g(){return this.totalImages===this.loadedAssets}function v(){return this.totalFootages===this.loadedFootagesCount}function m(b,d){b==="svg"?(this._elementHelper=d,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function w(){this._imageLoaded=r.bind(this),this._footageLoaded=n.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 w.prototype={loadAssets:c,setAssetsPath:h,setPath:u,loadedImages:g,loadedFootages:v,destroy:f,getAsset:x,createImgData:s,createImageData:o,imageLoaded:r,footageLoaded:n,setCacheType:m},w}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(r,n){if(this._cbs[r])for(var i=this._cbs[r],a=0;a<i.length;a+=1)i[a](n)},addEventListener:function(r,n){return this._cbs[r]||(this._cbs[r]=[]),this._cbs[r].push(n),(function(){this.removeEventListener(r,n)}).bind(this)},removeEventListener:function(r,n){if(!n)this._cbs[r]=null;else if(this._cbs[r]){for(var i=0,a=this._cbs[r].length;i<a;)this._cbs[r][i]===n&&(this._cbs[r].splice(i,1),i-=1,a-=1),i+=1;this._cbs[r].length||(this._cbs[r]=null)}}};var markerParser=function(){function e(r){for(var n=r.split(`\r
120
- `),i={},a,o=0,s=0;s<n.length;s+=1)a=n[s].split(":"),a.length===2&&(i[a[0]]=a[1].trim(),o+=1);if(o===0)throw new Error;return i}return function(r){for(var n=[],i=0;i<r.length;i+=1){var a=r[i],o={time:a.tm,duration:a.dr};try{o.payload=JSON.parse(r[i].cm)}catch{try{o.payload=e(r[i].cm)}catch{o.payload={name:r[i].cm}}}n.push(o)}return n}}(),ProjectInterface=function(){function e(r){this.compositions.push(r)}return function(){function r(n){for(var i=0,a=this.compositions.length;i<a;){if(this.compositions[i].data&&this.compositions[i].data.nm===n)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 r.compositions=[],r.currentFrame=0,r.registerComposition=e,r}}(),renderers={},registerRenderer=function(r,n){renderers[r]=n};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(n){return typeof n}:_typeof$4=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_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 r="svg";e.animType?r=e.animType:e.renderer&&(r=e.renderer);var n=getRenderer(r);this.renderer=new n(this,e.rendererSettings),this.imagePreloader.setCacheType(r,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=r,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,r){r&&_typeof$4(r)!=="object"&&(r=JSON.parse(r));var n={wrapper:e,animationData:r},i=e.attributes;n.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:"",n.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"?n.loop=!1:a==="true"?n.loop=!0:a!==""&&(n.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;n.autoplay=o!=="false",n.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"&&(n.prerender=!1),n.path?this.setParams(n):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 r=this.animationData.layers,n,i=r.length,a=e.layers,o,s=a.length;for(o=0;o<s;o+=1)for(n=0;n<i;){if(r[n].id===a[o].id){r[n]=a[o];break}n+=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,n=0;n<i;n+=1)this.animationData.assets.push(e.assets[n]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(e){this.animationData=e;var r=getExpressionsPlugin();r&&r.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 r=e.shift();this.timeCompleted=r.time*this.frameRate;var n=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(n,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(r){this.triggerConfigError(r)}},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,r){var n=typeof e=="number"?e:void 0,i=typeof r=="number"?r:void 0;this.renderer.updateContainerSize(n,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 r,n=0;n<this.markers.length;n+=1)if(r=this.markers[n],r.payload&&r.payload.name===e)return r;return null},AnimationItem.prototype.goToAndStop=function(e,r,n){if(!(n&&this.name!==n)){var i=Number(e);if(isNaN(i)){var a=this.getMarkerData(e);a&&this.goToAndStop(a.time,!0)}else r?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(e,r,n){if(!(n&&this.name!==n)){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,r,n);this.play()}},AnimationItem.prototype.advanceTime=function(e){if(!(this.isPaused===!0||this.isLoaded===!1)){var r=this.currentRawFrame+e*this.frameModifier,n=!1;r>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(r>this.totalFrames?r%this.totalFrames:0)||(n=!0,r=this.totalFrames-1):r>=this.totalFrames?(this.playCount+=1,this.checkSegments(r%this.totalFrames)||(this.setCurrentRawFrameValue(r%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(r):r<0?this.checkSegments(r%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+r%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(n=!0,r=0)):this.setCurrentRawFrameValue(r),n&&(this.setCurrentRawFrameValue(r),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(e,r){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-r)):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+r)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(e,r){var n=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?n=e:this.currentRawFrame+this.firstFrame>r&&(n=r-e)),this.firstFrame=e,this.totalFrames=r-e,this.timeCompleted=this.totalFrames,n!==-1&&this.goToAndStop(n,!0)},AnimationItem.prototype.playSegments=function(e,r){if(r&&(this.segments.length=0),_typeof$4(e[0])==="object"){var n,i=e.length;for(n=0;n<i;n+=1)this.segments.push(e[n])}else this.segments.push(e);this.segments.length&&r&&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,r){r&&this.name!==r||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 r="";if(e.e)r=e.p;else if(this.assetsPath){var n=e.p;n.indexOf("images/")!==-1&&(n=n.split("/")[1]),r=this.assetsPath+n}else r=this.path,r+=e.u?e.u:"",r+=e.p;return r},AnimationItem.prototype.getAssetData=function(e){for(var r=0,n=this.assets.length;r<n;){if(e===this.assets[r].id)return this.assets[r];r+=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,r,n){try{var i=this.renderer.getElementByPath(e);i.updateDocumentData(r,n)}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 r=new BMRenderFrameErrorEvent(e,this.currentFrame);this.triggerEvent("error",r),this.onError&&this.onError.call(this,r)},AnimationItem.prototype.triggerConfigError=function(e){var r=new BMConfigErrorEvent(e,this.currentFrame);this.triggerEvent("error",r),this.onError&&this.onError.call(this,r)};var animationManager=function(){var e={},r=[],n=0,i=0,a=0,o=!0,s=!1;function l(T){for(var I=0,S=T.target;I<i;)r[I].animation===S&&(r.splice(I,1),I-=1,i-=1,S.isPaused||x()),I+=1}function c(T,I){if(!T)return null;for(var S=0;S<i;){if(r[S].elem===T&&r[S].elem!==null)return r[S].animation;S+=1}var C=new AnimationItem;return f(C,T),C.setData(T,I),C}function u(){var T,I=r.length,S=[];for(T=0;T<I;T+=1)S.push(r[T].animation);return S}function h(){a+=1,M()}function x(){a-=1}function f(T,I){T.addEventListener("destroy",l),T.addEventListener("_active",h),T.addEventListener("_idle",x),r.push({elem:I,animation:T}),i+=1}function g(T){var I=new AnimationItem;return f(I,null),I.setParams(T),I}function v(T,I){var S;for(S=0;S<i;S+=1)r[S].animation.setSpeed(T,I)}function m(T,I){var S;for(S=0;S<i;S+=1)r[S].animation.setDirection(T,I)}function w(T){var I;for(I=0;I<i;I+=1)r[I].animation.play(T)}function b(T){var I=T-n,S;for(S=0;S<i;S+=1)r[S].animation.advanceTime(I);n=T,a&&!s?window.requestAnimationFrame(b):o=!0}function d(T){n=T,window.requestAnimationFrame(b)}function p(T){var I;for(I=0;I<i;I+=1)r[I].animation.pause(T)}function y(T,I,S){var C;for(C=0;C<i;C+=1)r[C].animation.goToAndStop(T,I,S)}function E(T){var I;for(I=0;I<i;I+=1)r[I].animation.stop(T)}function _(T){var I;for(I=0;I<i;I+=1)r[I].animation.togglePause(T)}function P(T){var I;for(I=i-1;I>=0;I-=1)r[I].animation.destroy(T)}function A(T,I,S){var C=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),D,k=C.length;for(D=0;D<k;D+=1)S&&C[D].setAttribute("data-bm-type",S),c(C[D],T);if(I&&k===0){S||(S="svg");var F=document.getElementsByTagName("body")[0];F.innerText="";var $=createTag("div");$.style.width="100%",$.style.height="100%",$.setAttribute("data-bm-type",S),F.appendChild($),c($,T)}}function R(){var T;for(T=0;T<i;T+=1)r[T].animation.resize()}function M(){!s&&a&&o&&(window.requestAnimationFrame(d),o=!1)}function B(){s=!0}function O(){s=!1,M()}function V(T,I){var S;for(S=0;S<i;S+=1)r[S].animation.setVolume(T,I)}function q(T){var I;for(I=0;I<i;I+=1)r[I].animation.mute(T)}function N(T){var I;for(I=0;I<i;I+=1)r[I].animation.unmute(T)}return e.registerAnimation=c,e.loadAnimation=g,e.setSpeed=v,e.setDirection=m,e.play=w,e.pause=p,e.stop=E,e.togglePause=_,e.searchAnimations=A,e.resize=R,e.goToAndStop=y,e.destroy=P,e.freeze=B,e.unfreeze=O,e.setVolume=V,e.mute=q,e.unmute=N,e.getRegisteredAnimations=u,e}(),BezierFactory=function(){var e={};e.getBezierEasing=n;var r={};function n(d,p,y,E,_){var P=_||("bez_"+d+"_"+p+"_"+y+"_"+E).replace(/\./g,"p");if(r[P])return r[P];var A=new b([d,p,y,E]);return r[P]=A,A}var i=4,a=.001,o=1e-7,s=10,l=11,c=1/(l-1),u=typeof Float32Array=="function";function h(d,p){return 1-3*p+3*d}function x(d,p){return 3*p-6*d}function f(d){return 3*d}function g(d,p,y){return((h(p,y)*d+x(p,y))*d+f(p))*d}function v(d,p,y){return 3*h(p,y)*d*d+2*x(p,y)*d+f(p)}function m(d,p,y,E,_){var P,A,R=0;do A=p+(y-p)/2,P=g(A,E,_)-d,P>0?y=A:p=A;while(Math.abs(P)>o&&++R<s);return A}function w(d,p,y,E){for(var _=0;_<i;++_){var P=v(p,y,E);if(P===0)return p;var A=g(p,y,E)-d;p-=A/P}return p}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(p){var y=this._p[0],E=this._p[1],_=this._p[2],P=this._p[3];return this._precomputed||this._precompute(),y===E&&_===P?p:p===0?0:p===1?1:g(this._getTForX(p),E,P)},_precompute:function(){var p=this._p[0],y=this._p[1],E=this._p[2],_=this._p[3];this._precomputed=!0,(p!==y||E!==_)&&this._calcSampleValues()},_calcSampleValues:function(){for(var p=this._p[0],y=this._p[2],E=0;E<l;++E)this._mSampleValues[E]=g(E*c,p,y)},_getTForX:function(p){for(var y=this._p[0],E=this._p[2],_=this._mSampleValues,P=0,A=1,R=l-1;A!==R&&_[A]<=p;++A)P+=c;--A;var M=(p-_[A])/(_[A+1]-_[A]),B=P+M*c,O=v(B,y,E);return O>=a?w(p,B,y,E):O===0?B:m(p,P,P+c,y,E)}},e}(),pooling=function(){function e(r){return r.concat(createSizedArray(r.length))}return{double:e}}(),poolFactory=function(){return function(e,r,n){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=r(),u}function c(u){i===a&&(o=pooling.double(o),a*=2),n&&n(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 r(n){var i,a=n.lengths.length;for(i=0;i<a;i+=1)bezierLengthPool.release(n.lengths[i]);n.lengths.length=0}return poolFactory(8,e,r)}();function bezFunction(){var e=Math;function r(f,g,v,m,w,b){var d=f*m+g*w+v*b-w*m-b*f-v*g;return d>-.001&&d<.001}function n(f,g,v,m,w,b,d,p,y){if(v===0&&b===0&&y===0)return r(f,g,m,w,d,p);var E=e.sqrt(e.pow(m-f,2)+e.pow(w-g,2)+e.pow(b-v,2)),_=e.sqrt(e.pow(d-f,2)+e.pow(p-g,2)+e.pow(y-v,2)),P=e.sqrt(e.pow(d-m,2)+e.pow(p-w,2)+e.pow(y-b,2)),A;return E>_?E>P?A=E-_-P:A=P-_-E:P>_?A=P-_-E:A=_-E-P,A>-1e-4&&A<1e-4}var i=function(){return function(f,g,v,m){var w=getDefaultCurveSegments(),b,d,p,y,E,_=0,P,A=[],R=[],M=bezierLengthPool.newElement();for(p=v.length,b=0;b<w;b+=1){for(E=b/(w-1),P=0,d=0;d<p;d+=1)y=bmPow(1-E,3)*f[d]+3*bmPow(1-E,2)*E*v[d]+3*(1-E)*bmPow(E,2)*m[d]+bmPow(E,3)*g[d],A[d]=y,R[d]!==null&&(P+=bmPow(A[d]-R[d],2)),R[d]=A[d];P&&(P=bmSqrt(P),_+=P),M.percents[b]=E,M.lengths[b]=_}return M.addedLength=_,M}}();function a(f){var g=segmentsLengthPool.newElement(),v=f.c,m=f.v,w=f.o,b=f.i,d,p=f._length,y=g.lengths,E=0;for(d=0;d<p-1;d+=1)y[d]=i(m[d],m[d+1],w[d],b[d+1]),E+=y[d].addedLength;return v&&p&&(y[d]=i(m[d],m[0],w[d],b[0]),E+=y[d].addedLength),g.totalLength=E,g}function o(f){this.segmentLength=0,this.points=new Array(f)}function s(f,g){this.partialLength=f,this.point=g}var l=function(){var f={};return function(g,v,m,w){var b=(g[0]+"_"+g[1]+"_"+v[0]+"_"+v[1]+"_"+m[0]+"_"+m[1]+"_"+w[0]+"_"+w[1]).replace(/\./g,"p");if(!f[b]){var d=getDefaultCurveSegments(),p,y,E,_,P,A=0,R,M,B=null;g.length===2&&(g[0]!==v[0]||g[1]!==v[1])&&r(g[0],g[1],v[0],v[1],g[0]+m[0],g[1]+m[1])&&r(g[0],g[1],v[0],v[1],v[0]+w[0],v[1]+w[1])&&(d=2);var O=new o(d);for(E=m.length,p=0;p<d;p+=1){for(M=createSizedArray(E),P=p/(d-1),R=0,y=0;y<E;y+=1)_=bmPow(1-P,3)*g[y]+3*bmPow(1-P,2)*P*(g[y]+m[y])+3*(1-P)*bmPow(P,2)*(v[y]+w[y])+bmPow(P,3)*v[y],M[y]=_,B!==null&&(R+=bmPow(M[y]-B[y],2));R=bmSqrt(R),A+=R,O.points[p]=new s(R,M),B=M}O.segmentLength=A,f[b]=O}return f[b]}}();function c(f,g){var v=g.percents,m=g.lengths,w=v.length,b=bmFloor((w-1)*f),d=f*g.addedLength,p=0;if(b===w-1||b===0||d===m[b])return v[b];for(var y=m[b]>d?-1:1,E=!0;E;)if(m[b]<=d&&m[b+1]>d?(p=(d-m[b])/(m[b+1]-m[b]),E=!1):b+=y,b<0||b>=w-1){if(b===w-1)return v[b];E=!1}return v[b]+(v[b+1]-v[b])*p}function u(f,g,v,m,w,b){var d=c(w,b),p=1-d,y=e.round((p*p*p*f[0]+(d*p*p+p*d*p+p*p*d)*v[0]+(d*d*p+p*d*d+d*p*d)*m[0]+d*d*d*g[0])*1e3)/1e3,E=e.round((p*p*p*f[1]+(d*p*p+p*d*p+p*p*d)*v[1]+(d*d*p+p*d*d+d*p*d)*m[1]+d*d*d*g[1])*1e3)/1e3;return[y,E]}var h=createTypedArray("float32",8);function x(f,g,v,m,w,b,d){w<0?w=0:w>1&&(w=1);var p=c(w,d);b=b>1?1:b;var y=c(b,d),E,_=f.length,P=1-p,A=1-y,R=P*P*P,M=p*P*P*3,B=p*p*P*3,O=p*p*p,V=P*P*A,q=p*P*A+P*p*A+P*P*y,N=p*p*A+P*p*y+p*P*y,T=p*p*y,I=P*A*A,S=p*A*A+P*y*A+P*A*y,C=p*y*A+P*y*y+p*A*y,D=p*y*y,k=A*A*A,F=y*A*A+A*y*A+A*A*y,$=y*y*A+A*y*y+y*A*y,G=y*y*y;for(E=0;E<_;E+=1)h[E*4]=e.round((R*f[E]+M*v[E]+B*m[E]+O*g[E])*1e3)/1e3,h[E*4+1]=e.round((V*f[E]+q*v[E]+N*m[E]+T*g[E])*1e3)/1e3,h[E*4+2]=e.round((I*f[E]+S*v[E]+C*m[E]+D*g[E])*1e3)/1e3,h[E*4+3]=e.round((k*f[E]+F*v[E]+$*m[E]+G*g[E])*1e3)/1e3;return h}return{getSegmentsLength:a,getNewSegment:x,getPointInSegment:u,buildBezierData:l,pointOnLine2D:r,pointOnLine3D:n}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(e,r){var n=this.offsetTime,i;this.propType==="multidimensional"&&(i=createTypedArray("float32",this.pv.length));for(var a=r.lastIndex,o=a,s=this.keyframes.length-1,l=!0,c,u,h;l;){if(c=this.keyframes[o],u=this.keyframes[o+1],o===s-1&&e>=u.t-n){c.h&&(c=u),a=0;break}if(u.t-n>e){a=o;break}o<s-1?o+=1:(a=0,l=!1)}h=this.keyframesMetadata[o]||{};var x,f,g,v,m,w,b=u.t-n,d=c.t-n,p;if(c.to){h.bezierData||(h.bezierData=bez.buildBezierData(c.s,u.s||c.e,c.to,c.ti));var y=h.bezierData;if(e>=b||e<d){var E=e>=b?y.points.length-1:0;for(f=y.points[E].point.length,x=0;x<f;x+=1)i[x]=y.points[E].point[x]}else{h.__fnct?w=h.__fnct:(w=BezierFactory.getBezierEasing(c.o.x,c.o.y,c.i.x,c.i.y,c.n).get,h.__fnct=w),g=w((e-d)/(b-d));var _=y.segmentLength*g,P,A=r.lastFrame<e&&r._lastKeyframeIndex===o?r._lastAddedLength:0;for(m=r.lastFrame<e&&r._lastKeyframeIndex===o?r._lastPoint:0,l=!0,v=y.points.length;l;){if(A+=y.points[m].partialLength,_===0||g===0||m===y.points.length-1){for(f=y.points[m].point.length,x=0;x<f;x+=1)i[x]=y.points[m].point[x];break}else if(_>=A&&_<A+y.points[m+1].partialLength){for(P=(_-A)/y.points[m+1].partialLength,f=y.points[m].point.length,x=0;x<f;x+=1)i[x]=y.points[m].point[x]+(y.points[m+1].point[x]-y.points[m].point[x])*P;break}m<v-1?m+=1:l=!1}r._lastPoint=m,r._lastAddedLength=A-y.points[m].partialLength,r._lastKeyframeIndex=o}}else{var R,M,B,O,V;if(s=c.s.length,p=u.s||c.e,this.sh&&c.h!==1)if(e>=b)i[0]=p[0],i[1]=p[1],i[2]=p[2];else if(e<=d)i[0]=c.s[0],i[1]=c.s[1],i[2]=c.s[2];else{var q=createQuaternion(c.s),N=createQuaternion(p),T=(e-d)/(b-d);quaternionToEuler(i,slerp(q,N,T))}else for(o=0;o<s;o+=1)c.h!==1&&(e>=b?g=1:e<d?g=0:(c.o.x.constructor===Array?(h.__fnct||(h.__fnct=[]),h.__fnct[o]?w=h.__fnct[o]:(R=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],O=c.i.y[o]===void 0?c.i.y[0]:c.i.y[o],w=BezierFactory.getBezierEasing(R,M,B,O).get,h.__fnct[o]=w)):h.__fnct?w=h.__fnct:(R=c.o.x,M=c.o.y,B=c.i.x,O=c.i.y,w=BezierFactory.getBezierEasing(R,M,B,O).get,c.keyframeMetadata=w),g=w((e-d)/(b-d)))),p=u.s||c.e,V=c.h===1?c.s[o]:c.s[o]+(p[o]-c.s[o])*g,this.propType==="multidimensional"?i[o]=V:i=V}return r.lastIndex=a,i}function slerp(e,r,n){var i=[],a=e[0],o=e[1],s=e[2],l=e[3],c=r[0],u=r[1],h=r[2],x=r[3],f,g,v,m,w;return g=a*c+o*u+s*h+l*x,g<0&&(g=-g,c=-c,u=-u,h=-h,x=-x),1-g>1e-6?(f=Math.acos(g),v=Math.sin(f),m=Math.sin((1-n)*f)/v,w=Math.sin(n*f)/v):(m=1-n,w=n),i[0]=m*a+w*c,i[1]=m*o+w*u,i[2]=m*s+w*h,i[3]=m*l+w*x,i}function quaternionToEuler(e,r){var n=r[0],i=r[1],a=r[2],o=r[3],s=Math.atan2(2*i*o-2*n*a,1-2*i*i-2*a*a),l=Math.asin(2*n*i+2*a*o),c=Math.atan2(2*n*o-2*i*a,1-2*n*n-2*a*a);e[0]=s/degToRads,e[1]=l/degToRads,e[2]=c/degToRads}function createQuaternion(e){var r=e[0]*degToRads,n=e[1]*degToRads,i=e[2]*degToRads,a=Math.cos(r/2),o=Math.cos(n/2),s=Math.cos(i/2),l=Math.sin(r/2),c=Math.sin(n/2),u=Math.sin(i/2),h=a*o*s-l*c*u,x=l*c*s+a*o*u,f=l*o*s+a*c*u,g=a*c*s-l*o*u;return[x,f,g,h]}function getValueAtCurrentTime(){var e=this.comp.renderedFrame-this.offsetTime,r=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=n&&e>=n||this._caching.lastFrame<r&&e<r))){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 r;if(this.propType==="unidimensional")r=e*this.mult,mathAbs(this.v-r)>1e-5&&(this.v=r,this._mdf=!0);else for(var n=0,i=this.v.length;n<i;)r=e[n]*this.mult,mathAbs(this.v[n]-r)>1e-5&&(this.v[n]=r,this._mdf=!0),n+=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,r=this.effectsSequence.length,n=this.kf?this.pv:this.data.k;for(e=0;e<r;e+=1)n=this.effectsSequence[e](n);this.setVValue(n),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,r,n,i){this.propType="unidimensional",this.mult=n||1,this.data=r,this.v=n?r.k*n:r.k,this.pv=r.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,r,n,i){this.propType="multidimensional",this.mult=n||1,this.data=r,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=r.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]=r.k[a]*this.mult,this.pv[a]=r.k[a];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(e,r,n,i){this.propType="unidimensional",this.keyframes=r.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=r,this.mult=n||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,r,n,i){this.propType="multidimensional";var a,o=r.k.length,s,l,c,u;for(a=0;a<o-1;a+=1)r.k[a].to&&r.k[a].s&&r.k[a+1]&&r.k[a+1].s&&(s=r.k[a].s,l=r.k[a+1].s,c=r.k[a].to,u=r.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]))&&(r.k[a].to=null,r.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)&&(r.k[a].to=null,r.k[a].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=r,this.keyframes=r.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=n||1,this.elem=e,this.container=i,this.comp=e.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var h=r.k[0].s.length;for(this.v=createTypedArray("float32",h),this.pv=createTypedArray("float32",h),a=0;a<h;a+=1)this.v[a]=initFrame,this.pv[a]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",h)},this.addEffect=addEffect}var PropertyFactory=function(){function e(n,i,a,o,s){i.sid&&(i=n.globalData.slotManager.getProp(i));var l;if(!i.k.length)l=new ValueProperty(n,i,o,s);else if(typeof i.k[0]=="number")l=new MultiDimensionalProperty(n,i,o,s);else switch(a){case 0:l=new KeyframedValueProperty(n,i,o,s);break;case 1:l=new KeyframedMultidimensionalProperty(n,i,o,s);break}return l.effectsSequence.length&&s.addDynamicProperty(l),l}var r={getProp:e};return r}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(r){this.dynamicProperties.indexOf(r)===-1&&(this.dynamicProperties.push(r),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var r,n=this.dynamicProperties.length;for(r=0;r<n;r+=1)this.dynamicProperties[r].getValue(),this.dynamicProperties[r]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(r){this.container=r,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,r){this.c=e,this.setLength(r);for(var n=0;n<r;)this.v[n]=pointPool.newElement(),this.o[n]=pointPool.newElement(),this.i[n]=pointPool.newElement(),n+=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,r,n,i,a){var o;switch(this._length=Math.max(this._length,i+1),this._length>=this._maxLength&&this.doubleArrayLength(),n){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]=r},ShapePath.prototype.setTripleAt=function(e,r,n,i,a,o,s,l){this.setXYAt(e,r,"v",s,l),this.setXYAt(n,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 r=this.v,n=this.o,i=this.i,a=0;this.c&&(e.setTripleAt(r[0][0],r[0][1],i[0][0],i[0][1],n[0][0],n[0][1],0,!1),a=1);var o=this._length-1,s=this._length,l;for(l=a;l<s;l+=1)e.setTripleAt(r[o][0],r[o][1],i[o][0],i[o][1],n[o][0],n[o][1],l,!1),o-=1;return e},ShapePath.prototype.length=function(){return this._length};var shapePool=function(){function e(){return new ShapePath}function r(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 n(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,r);return i.clone=n,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},r=0,n=4,i=createSizedArray(n);function a(){var s;return r?(r-=1,s=i[r]):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,r===n&&(i=pooling.double(i),n*=2),i[r]=s,r+=1}return e}(),ShapePropertyFactory=function(){var e=-999999;function r(b,d,p){var y=p.lastIndex,E,_,P,A,R,M,B,O,V,q=this.keyframes;if(b<q[0].t-this.offsetTime)E=q[0].s[0],P=!0,y=0;else if(b>=q[q.length-1].t-this.offsetTime)E=q[q.length-1].s?q[q.length-1].s[0]:q[q.length-2].e[0],P=!0;else{for(var N=y,T=q.length-1,I=!0,S,C,D;I&&(S=q[N],C=q[N+1],!(C.t-this.offsetTime>b));)N<T-1?N+=1:I=!1;if(D=this.keyframesMetadata[N]||{},P=S.h===1,y=N,!P){if(b>=C.t-this.offsetTime)O=1;else if(b<S.t-this.offsetTime)O=0;else{var k;D.__fnct?k=D.__fnct:(k=BezierFactory.getBezierEasing(S.o.x,S.o.y,S.i.x,S.i.y).get,D.__fnct=k),O=k((b-(S.t-this.offsetTime))/(C.t-this.offsetTime-(S.t-this.offsetTime)))}_=C.s?C.s[0]:S.e[0]}E=S.s[0]}for(M=d._length,B=E.i[0].length,p.lastIndex=y,A=0;A<M;A+=1)for(R=0;R<B;R+=1)V=P?E.i[A][R]:E.i[A][R]+(_.i[A][R]-E.i[A][R])*O,d.i[A][R]=V,V=P?E.o[A][R]:E.o[A][R]+(_.o[A][R]-E.o[A][R])*O,d.o[A][R]=V,V=P?E.v[A][R]:E.v[A][R]+(_.v[A][R]-E.v[A][R])*O,d.v[A][R]=V}function n(){var b=this.comp.renderedFrame-this.offsetTime,d=this.keyframes[0].t-this.offsetTime,p=this.keyframes[this.keyframes.length-1].t-this.offsetTime,y=this._caching.lastFrame;return y!==e&&(y<d&&b<d||y>p&&b>p)||(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 p,y=b._length;for(p=0;p<y;p+=1)if(b.v[p][0]!==d.v[p][0]||b.v[p][1]!==d.v[p][1]||b.o[p][0]!==d.o[p][0]||b.o[p][1]!==d.o[p][1]||b.i[p][0]!==d.i[p][0]||b.i[p][1]!==d.i[p][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,p=this.effectsSequence.length;for(d=0;d<p;d+=1)b=this.effectsSequence[d](b);this.setVValue(b),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function l(b,d,p){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=p===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=r,l.prototype.getValue=s,l.prototype.setVValue=o,l.prototype.addEffect=c;function u(b,d,p){this.propType="shape",this.comp=b.comp,this.elem=b,this.container=b,this.offsetTime=b.data.st,this.keyframes=p===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=[n.bind(this)]}u.prototype.getValue=s,u.prototype.interpolateShape=r,u.prototype.setVValue=o,u.prototype.addEffect=c;var h=function(){var b=roundCorner;function d(p,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=p,this.comp=p.comp,this.frameId=-1,this.initDynamicPropertyContainer(p),this.p=PropertyFactory.getProp(p,y.p,1,0,this),this.s=PropertyFactory.getProp(p,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],E=this.p.v[1],_=this.s.v[0]/2,P=this.s.v[1]/2,A=this.d!==3,R=this.v;R.v[0][0]=y,R.v[0][1]=E-P,R.v[1][0]=A?y+_:y-_,R.v[1][1]=E,R.v[2][0]=y,R.v[2][1]=E+P,R.v[3][0]=A?y-_:y+_,R.v[3][1]=E,R.i[0][0]=A?y-_*b:y+_*b,R.i[0][1]=E-P,R.i[1][0]=A?y+_:y-_,R.i[1][1]=E-P*b,R.i[2][0]=A?y+_*b:y-_*b,R.i[2][1]=E+P,R.i[3][0]=A?y-_:y+_,R.i[3][1]=E+P*b,R.o[0][0]=A?y+_*b:y-_*b,R.o[0][1]=E-P,R.o[1][0]=A?y+_:y-_,R.o[1][1]=E+P*b,R.o[2][0]=A?y-_*b:y+_*b,R.o[2][1]=E+P,R.o[3][0]=A?y-_:y+_,R.o[3][1]=E-P*b}},extendPrototype([DynamicPropertyContainer],d),d}(),x=function(){function b(d,p){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=d,this.comp=d.comp,this.data=p,this.frameId=-1,this.d=p.d,this.initDynamicPropertyContainer(d),p.sy===1?(this.ir=PropertyFactory.getProp(d,p.ir,0,0,this),this.is=PropertyFactory.getProp(d,p.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(d,p.pt,0,0,this),this.p=PropertyFactory.getProp(d,p.p,1,0,this),this.r=PropertyFactory.getProp(d,p.r,0,degToRads,this),this.or=PropertyFactory.getProp(d,p.or,0,0,this),this.os=PropertyFactory.getProp(d,p.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 p=Math.floor(this.pt.v)*2,y=Math.PI*2/p,E=!0,_=this.or.v,P=this.ir.v,A=this.os.v,R=this.is.v,M=2*Math.PI*_/(p*2),B=2*Math.PI*P/(p*2),O,V,q,N,T=-Math.PI/2;T+=this.r.v;var I=this.data.d===3?-1:1;for(this.v._length=0,O=0;O<p;O+=1){V=E?_:P,q=E?A:R,N=E?M:B;var S=V*Math.cos(T),C=V*Math.sin(T),D=S===0&&C===0?0:C/Math.sqrt(S*S+C*C),k=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-D*N*q*I,C-k*N*q*I,S+D*N*q*I,C+k*N*q*I,O,!0),E=!E,T+=y*I}},convertPolygonToPath:function(){var p=Math.floor(this.pt.v),y=Math.PI*2/p,E=this.or.v,_=this.os.v,P=2*Math.PI*E/(p*4),A,R=-Math.PI*.5,M=this.data.d===3?-1:1;for(R+=this.r.v,this.v._length=0,A=0;A<p;A+=1){var B=E*Math.cos(R),O=E*Math.sin(R),V=B===0&&O===0?0:O/Math.sqrt(B*B+O*O),q=B===0&&O===0?0:-B/Math.sqrt(B*B+O*O);B+=+this.p.v[0],O+=+this.p.v[1],this.v.setTripleAt(B,O,B-V*P*_*M,O-q*P*_*M,B+V*P*_*M,O+q*P*_*M,A,!0),R+=y*M}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],b),b}(),f=function(){function b(d,p){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=p.d,this.initDynamicPropertyContainer(d),this.p=PropertyFactory.getProp(d,p.p,1,0,this),this.s=PropertyFactory.getProp(d,p.s,1,0,this),this.r=PropertyFactory.getProp(d,p.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return b.prototype={convertRectToPath:function(){var p=this.p.v[0],y=this.p.v[1],E=this.s.v[0]/2,_=this.s.v[1]/2,P=bmMin(E,_,this.r.v),A=P*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(p+E,y-_+P,p+E,y-_+P,p+E,y-_+A,0,!0),this.v.setTripleAt(p+E,y+_-P,p+E,y+_-A,p+E,y+_-P,1,!0),P!==0?(this.v.setTripleAt(p+E-P,y+_,p+E-P,y+_,p+E-A,y+_,2,!0),this.v.setTripleAt(p-E+P,y+_,p-E+A,y+_,p-E+P,y+_,3,!0),this.v.setTripleAt(p-E,y+_-P,p-E,y+_-P,p-E,y+_-A,4,!0),this.v.setTripleAt(p-E,y-_+P,p-E,y-_+A,p-E,y-_+P,5,!0),this.v.setTripleAt(p-E+P,y-_,p-E+P,y-_,p-E+A,y-_,6,!0),this.v.setTripleAt(p+E-P,y-_,p+E-A,y-_,p+E-P,y-_,7,!0)):(this.v.setTripleAt(p-E,y+_,p-E+A,y+_,p-E,y+_,2),this.v.setTripleAt(p-E,y-_,p-E,y-_+A,p-E,y-_,3))):(this.v.setTripleAt(p+E,y-_+P,p+E,y-_+A,p+E,y-_+P,0,!0),P!==0?(this.v.setTripleAt(p+E-P,y-_,p+E-P,y-_,p+E-A,y-_,1,!0),this.v.setTripleAt(p-E+P,y-_,p-E+A,y-_,p-E+P,y-_,2,!0),this.v.setTripleAt(p-E,y-_+P,p-E,y-_+P,p-E,y-_+A,3,!0),this.v.setTripleAt(p-E,y+_-P,p-E,y+_-A,p-E,y+_-P,4,!0),this.v.setTripleAt(p-E+P,y+_,p-E+P,y+_,p-E+A,y+_,5,!0),this.v.setTripleAt(p+E-P,y+_,p+E-A,y+_,p+E-P,y+_,6,!0),this.v.setTripleAt(p+E,y+_-P,p+E,y+_-P,p+E,y+_-A,7,!0)):(this.v.setTripleAt(p-E,y-_,p-E+A,y-_,p-E,y-_,1,!0),this.v.setTripleAt(p-E,y+_,p-E,y+_-A,p-E,y+_,2,!0),this.v.setTripleAt(p+E,y+_,p+E-A,y+_,p+E,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,p){var y;if(p===3||p===4){var E=p===3?d.pt:d.ks,_=E.k;_.length?y=new u(b,d,p):y=new l(b,d,p)}else p===5?y=new f(b,d):p===6?y=new h(b,d):p===7&&(y=new x(b,d));return y.k&&b.addDynamicProperty(y),y}function v(){return l}function m(){return u}var w={};return w.getShapeProp=g,w.getConstructorFunction=v,w.getKeyframedConstructorFunction=m,w}();/*!
118
+ <span style="color: ${K||e.color};${vue.unref(v)}">${e.minusSignShow?"-":""}${Math.abs(+Z).toFixed(2)}%</span>
119
+ </span>`)}else e.format==="percent"?(Z=+Z,isNaN(Z)||(Z=(Z*100).toFixed(2),O=O.replace(R,`<span class="${H}" style="color:${p(Z)||e.variableColor};font-size:${vue.unref(o)};${vue.unref(v)}">${Z}%</span>`))):e.format==="money"?(Z=+Z,isNaN(Z)||(Z=formatMoney(Z),O=O.replace(R,`<span class="${H}" style="color:${p(Z)||e.variableColor};font-size:${vue.unref(o)};${vue.unref(v)}">${Z}</span>`))):J==="thousands"?(Z=+Z,isNaN(Z)||(Z=formatThousands(Z),O=O.replace(R,`<span class="${H}" style="color:${p(Z)||e.variableColor};font-size:${vue.unref(o)};${vue.unref(v)}">${Z}</span>`))):O=O.replace(R,`<span class="${H}" style="color:${p(Z)||e.variableColor};font-size:${vue.unref(o)};${vue.unref(v)}">${Z}</span>`)}}if(q||(q=`<span class="${H}" style="color: ${p(O)};${vue.unref(v)}">${O}</span>`),e.unitShow&&e.unitText){const{unitTop:G,unitLeft:R}=e;let W="position:relative;";G&&(W+=`top:${G};`),R&&(W+=`margin-left:${R};`),q+=`<span style='color:${e.unitColor};font-size:${e.unitFontSize};font-weight:${e.unitFontWeight};${W};${vue.unref(v)}'>${e.unitText}</span>`}return e.exceedConfig&&(q=`<span class="${H}" style="display: inline-block;color: ${p(q)};">${q}</span>`),q.includes("span")||(q=`<span class="${H}" style="color: ${p(q)};">${q}</span>`),q});function p(C){let F="",_=!1;const{targetValue:O,targetShow:U,notExpectColor:q}=e;if(U){switch(e.targetRule){case"equal":C!==O&&(_=!0);break;case"greater":C<=O&&(_=!0);break;case"greater_equal":C<O&&(_=!0);break;case"less":C>=O&&(_=!0);break;case"less_equal":C>O&&(_=!0);break}_&&(F=q)}return F}const{pageMode:y}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",requestList:[]}),{pageId:S}=vue.inject("templateOperate",{pageId:""})||{},k=useRequestData(e,C=>{var F;l(((F=C==null?void 0:C.data)==null?void 0:F.data)||{})}),P=vue.ref(!1),w=async()=>{var C,F,_;try{P.value=!0;const O=await k();(C=O==null?void 0:O.data)!=null&&C.data.rowsToData?l(((F=O==null?void 0:O.data)==null?void 0:F.data.rowsToData)||{}):l(((_=O==null?void 0:O.data)==null?void 0:_.data)||{})}catch(O){console.error(O)}finally{P.value=!1}},D=C=>{const F=e.id,_=c(F);u(F,{..._,value:C||"",RECORD:C||""})},M=()=>{D("")},B=C=>{var _,O;const{data:F}=(C==null?void 0:C.data)||{};if(F){n.value=!1;const{columns:U=[],rows:q=[]}=((_=C==null?void 0:C.data)==null?void 0:_.data)??{},{graphicConfig:H}=e;let j={};if(U.length>0)if((O=H==null?void 0:H.dimensionList)!=null&&O.length){const G=U[0];G&&(q!=null&&q.length)&&(j={value:q[0][G]})}else{const G=U.find(R=>!!R);G&&(j={value:isNaN(q[G])?0:q[G]||0})}D(j==null?void 0:j.value),l(j)}else n.value=!0,D("NaN"),l({value:"NaN"})},L=useIndicatorData(e,B),V=async()=>{try{P.value=!0;const C=await L();B(C)}catch(C){console.error(C)}finally{P.value=!1,f(e.id,!0)}},$=()=>{switch(e.dataType){case"indicator":V();break;case"request":{const{openCustomRequestData:C,customRequestName:F}=e;C||C===void 0?w():x(F,_=>{_&&(_.rowsToData?l(_.rowsToData):l(_))});break}}},{setRequest:N}=vue.inject(REQUEST_MODEL,{setRequest:({id:C,sortNum:F,requestFn:_})=>{}});typeof N=="function"&&N({id:e.id,requestFn:$,sortNum:e.requestSort}),r({refreshData:$});const T=useEmitEvent(e),I=T("click",()=>{const C=document.getElementsByClassName(`ecan-text_${e.id}`);C!=null&&C.length&&D(C[0].innerText),setTimeout(()=>{D("")},0),!(!e.linkPage&&!e.href)&&handleJumpLink(e,{pageMode:vue.unref(y),targetTemplate:e.targetTemplate,getRecordValueByKeyName:h,setTemplateData:g})}),A=T("valueChange",()=>{b.value++});return useOnEvent(e,{refreshData:$,resetRecord:M,click:I,valueChange:A}),vue.watch(()=>d.value,(C,F)=>{C!==F&&A()}),{style:i,myText:d,loading:P,click:I,textIndent:s,vFontSize:o,gradientStyle:m,cursorStyle:E}}}),__injectCSSVars__$4=()=>{vue.useCssVars(e=>({"5f367810":e.vFontSize,"2fb894ef":e.textIndent,f8ec3672:e.percentageSide}))},__setup__$4=__default__$4.setup;__default__$4.setup=__setup__$4?(e,r)=>(__injectCSSVars__$4(),__setup__$4(e,r)):__injectCSSVars__$4;const Text_vue_vue_type_style_index_0_scoped_46c79f85_lang="",Text_vue_vue_type_style_index_1_lang="",_hoisted_1$f=["innerHTML"];function _sfc_render$v(e,r,n,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:r[0]||(r[0]=(...l)=>e.click&&e.click(...l))},null,14,_hoisted_1$f))}const Text=_export_sfc$1(__default__$4,[["render",_sfc_render$v],["__scopeId","data-v-46c79f85"]]),EcanText=withInstall$1(Text),_sfc_main$q=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$u(e,r,n,i,a,o){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$e,vue.toDisplayString(e.text),1)}const ScrollText=_export_sfc$1(_sfc_main$q,[["render",_sfc_render$u],["__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$p=vue.defineComponent({name:"EcanTimeDisplay",props:{...timeDisplayComponentProps},setup(e){const{pageMode:r}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),n=usePickComponentStyle(e),i=()=>{const{format:h,operate:x}=e;let f=dayjs();if(x){const{type:g,value:v,mode:m}=x;switch(g){case"add":f=f.add(v,m);break;case"minus":f=f.subtract(v,m)}}return f.format(h)},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 h=1e3;const{value:x,mode:f}=e.updateInterval||{};x&&(h=h*x);const g={second:1,minute:60,hour:60*60,day:24*60*60};f&&(h=h*g[f]),o=setInterval(()=>{a.value=i(),vue.unref(r)!=="design"&&c()},h)};return useOnEvent(e,{timeChange:c}),vue.onMounted(()=>{u()}),vue.onUnmounted(()=>{s()}),{style:n,time:a}}}),TimeDisplay_vue_vue_type_style_index_0_scoped_b9216314_lang="";function _sfc_render$t(e,r,n,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$p,[["render",_sfc_render$t],["__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$o=vue.defineComponent({name:"EcanList",components:{Skeleton,ATooltip:antDesignVue.Tooltip,MarqueeScroll},props:{...listComponentProps},setup(e,{expose:r}){const n=vue.ref(),i=usePickComponentStyle(e,["backgroundColor"]),a=(I,A)=>{const{format:C,customFormatter:F}=A;if(C==null||C==="")return I;const _={money:formatMoney,percentage:formatPercentage,contrast:formatPercentage,custom:formatCustom};return _[C]?C==="custom"?_[C](I,F)||"":_[C](I)||"":""},o=(I,A)=>{const C=parseFloat(I+"");if(A!=="contrast")return"";switch(!0){case C>=0:return"goUp";case C<0:return"goDown"}},s=useRequestData(e,I=>{var A;n.value=((A=I==null?void 0:I.data)==null?void 0:A.data.rows)||[]}),l=vue.ref(!1),c=async()=>{var I;if(e.dataType==="request")try{l.value=!0;const A=await s();n.value=((I=A==null?void 0:A.data)==null?void 0:I.data.rows)||[]}catch(A){console.error(A)}finally{l.value=!1}};vue.watch(()=>e.data,()=>{(e.dataType==="static"||!vue.unref(n))&&(n.value=e.data)},{immediate:!0,deep:!0});const u=vue.computed(()=>({key:"SEQ",width:e.seqWidth,title:e.seqName,align:"center",fontSize:e.seqFontSize})),h=vue.computed(()=>{const{columns:I,isUseSeq:A}=e;return A?[vue.unref(u),...I]:I}),x=I=>{var F;const{columns:A=[],rows:C=[]}=((F=I==null?void 0:I.data)==null?void 0:F.data)??{};e.isUseSeq&&A.unshift(e.seqName),h.value.forEach((_,O)=>{(!e.isUseSeq||O!==0)&&(_.title=A[O],_.key=A[O])}),n.value=C},f=useIndicatorData(e,x),g=async()=>{try{l.value=!0;const I=await f();x(I)}catch(I){console.error(I)}finally{l.value=!1}},v=()=>{switch(e.dataType){case"indicator":g();break;case"request":c();break}},m=useEmitEvent(e),{getGlobalModel:E,setGlobalModel:b}=vue.inject(GLOBAL_MODEL,{getGlobalModel:I=>{},setGlobalModel:(I,A)=>{}}),d=I=>{m("click",()=>{const A=E(e.id);b(e.id,{...A,type:e.type,RECORD:I})})()};useOnEvent(e,{refreshData:v,resetRecord:()=>{const I=e.id,A=E(I);b(I,{...A,type:e.type,RECORD:""})}});const{setRequest:y}=vue.inject(REQUEST_MODEL,{setRequest:({id:I,sortNum:A,requestFn:C})=>{}});typeof y=="function"&&y({id:e.id,requestFn:v,sortNum:e.requestSort}),r({refreshData:v});const S=(I,A)=>({flex:I.width?"none":"1",width:I.width,height:e.itemHeight,lineHeight:e.itemHeight,textAlign:(A?I.cellAlign:I.align)||"left",backgroundColor:I.cellColor}),k=(I,A)=>{let C=0;const F=vue.unref(n).map(O=>O[A]),_=Math.max(...F);return _&&(C=I[A]/_*100),C},P=I=>{const{progressColor:A="#1890ff",progressGradientColor:C=""}=I;return C?{background:`linear-gradient(to right, ${A} 0%, ${C} 100%)`}:{backgroundColor:A||"#1890ff"}},w=vue.computed(()=>{const I=parseFloat(e.seqFontSize)+5;return{width:I+10,height:I}}),{pageMode:D}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),M=vue.computed(()=>vue.unref(D)!=="design"&&e.isAutoScroll),B=I=>{const{seqIconConfig:A}=e;let C=A.find(F=>F.key===I+1);return C||(C=A.find(F=>F.key==="other")),!!(C!=null&&C.icon)},L=(I,A)=>{const{seqIconConfig:C}=e;let F=C.find(_=>_.key===I+1);return F||(F=C.find(_=>_.key==="other")),A===1?F!=null&&F.icon?useImagePath(F.icon):"":A===2?(F==null?void 0:F.color)||"#fff":""},V=I=>{const{seqIndexFormatter:A}=e,C=I+1;return A?useVariablesInText(A,{textData:{index:C}},{useNewline:!1,useSpace:!0}):C},$=vue.computed(()=>parseFloat(e.itemWidth)!==100?{height:"100%"}:{}),N=vue.computed(()=>!e.itemWidth||e.itemWidth==="100%"?"0":e.itemColSpan);return{style:i,formatFn:a,contrastClass:o,dataSource:n,loading:l,myColumns:h,click:d,getColumnStyle:S,getPercentage:k,getBackgroundColor:P,isShowSeqIcon:B,getSeqIconData:L,seqIcon4,seqIcon5,seqIcon6,seqIcon7,iconSize:w,isScroll:M,formatSeq:V,wrapStyle:$,colSpan:N,getText:(I,A)=>(I.format!=null||I.format!=="")&&a(A[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$s(e,r,n,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,(h,x)=>(vue.openBlock(),vue.createElementBlock("div",{class:"column",key:h.key||x,style:vue.normalizeStyle({color:h.titleColor,fontSize:h.fontSize,...e.getColumnStyle(h)})},vue.toDisplayString(h.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,h)=>(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||h,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(h+1),1)])):vue.createCommentVNode("",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.myColumns,x=>{var f;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},[(f=e.seqIconConfig)!=null&&f.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(h)?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:"custom-seq-icon",src:e.getSeqIconData(h,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(h,2),lineHeight:e.seqIconHeight||"",left:e.seqIconOffsetX,top:e.seqIconOffsetY})},vue.toDisplayString(e.formatSeq(h)),5)],4)):(vue.openBlock(),vue.createElementBlock("div",_hoisted_8$2,[h===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)):h===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)):h===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)):h>=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(h)),5)]))],64)):(vue.openBlock(),vue.createElementBlock("span",_hoisted_13$2,vue.toDisplayString(e.formatSeq(h)),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$o,[["render",_sfc_render$s],["__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$n=vue.defineComponent({name:"EcanProportion",components:{AProgress:antDesignVue.Progress,Skeleton},props:{...proportionComponentProps},setup(e,{expose:r}){const n=vue.ref(!1),{pageMode:i}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),a=usePickComponentStyle(e),o=vue.computed(()=>{const S=e.width;return parseFloat(S)}),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 S=vue.unref(s),k=+e.variableDefaultValue;if(S==null)return isNaN(k)?0:k;const P=e.text.match(/\{(.+?)\}/g)||[];let w;const D=new Set(Object.keys(S));for(let M=0;M<P.length;M++){const B=P[M],L=B.slice(1,B.length-1);if(D.has(L)){w=S[L];break}}return typeof w=="number"?w=w*100:typeof w=="string"&&!isNaN(+w)?w=+w*100:isNaN(k)?w=0:w=k*100,e.decimalFormat&&(w=+w.toFixed(2)),w}),c=vue.computed(()=>{var D;let S=e.text;if(S==="")return vue.unref(l);const k=e.variableDefaultValue,P=vue.unref(s),w=S.match(/\{(.+?)\}/g)||[];for(let M=0;M<w.length;M++){const B=w[M];let L=B.slice(1,B.length-1);const V=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,$=B.match(V);for(let T=0;T<($==null?void 0:$.length);T++){const I=(D=$[T])==null?void 0:D.trim();P[I]!=null&&(L=L.replace(I,P[I]))}let N=L;try{(/\(.*\)/g.test(L)||/[+/\\*]/g.test(L))&&(N=runCode(L))}catch(T){console.error(T)}typeof+N=="number"&&!isNaN(+N)?(N=+N*100,e.decimalFormat&&(N=N.toFixed(2))):typeof N!="string"&&(N=k),S=S.replace(B,`<span style="color: ${e.variableColor};">${N+""}</span>`)}return S=S==null?void 0:S.replace(/\n|\\n/g,"<br/>"),vue.unref(n)?"NaN":S}),u=useRequestData(e,S=>{var k;s.value=((k=S==null?void 0:S.data)==null?void 0:k.data)||{}}),h=vue.ref(!1),x=async()=>{var S,k,P,w,D;if(e.dataType==="request")try{h.value=!0;const M=await u();s.value=((S=M==null?void 0:M.data)==null?void 0:S.data)||{},(P=(k=M==null?void 0:M.data)==null?void 0:k.data)!=null&&P.rowsToData&&(s.value=((D=(w=M==null?void 0:M.data)==null?void 0:w.data)==null?void 0:D.rowsToData)||{})}catch(M){console.error(M)}finally{h.value=!1}},f=(S={})=>{s.value=S},g=S=>{var P;const{data:k}=(S==null?void 0:S.data)||{};if(k){n.value=!1;const{columns:w=[],rows:D=[]}=((P=S==null?void 0:S.data)==null?void 0:P.data)??{};let M={};if(w.length>0){const B=w.find(L=>!!L);B&&(M={percent:D[B]})}f(M)}else n.value=!0,f({percent:"NaN"})},v=useIndicatorData(e,g),m=async()=>{try{h.value=!0;const S=await v();g(S)}catch(S){console.error(S)}finally{h.value=!1}},E=()=>{switch(e.dataType){case"indicator":m();break;case"request":x();break}};useOnEvent(e,{refreshData:E}),r({refreshData:E});const d=useEmitEvent(e)("click",()=>{}),{setRequest:p}=vue.inject(REQUEST_MODEL,{setRequest:({id:S,sortNum:k,requestFn:P})=>{}});typeof p=="function"&&p({id:e.id,requestFn:E,sortNum:e.requestSort});const y=vue.computed(()=>{const{gradientShow:S,gradientColor:k,gradientOffset:P,strokeColor:w}=e;let D=w;return S&&k&&(D={"0%":w,[`${P*100}%`]:k}),D});return{style:a,myWidth:o,text:c,myValue:l,loading:h,click:d,customStrokeColor:y}}}),Proportion_vue_vue_type_style_index_0_scoped_a33d058a_lang="",_hoisted_1$c=["innerHTML"];function _sfc_render$r(e,r,n,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:"progress",percent:e.myValue,width:e.myWidth,type:e.strokeType,strokeColor:e.customStrokeColor,strokeLinecap:e.strokeLinecap,trailColor:e.trailColor,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,["percent","width","type","strokeColor","strokeLinecap","trailColor","strokeWidth","showInfo","gapDegree","onClick"])],4)}const Proportion=_export_sfc$1(_sfc_main$n,[["render",_sfc_render$r],["__scopeId","data-v-a33d058a"]]),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$m=vue.defineComponent({name:"EcanCounter",components:{Skeleton},props:{...counterComponentProps},setup(e,{expose:r}){const n=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,S])=>{S==="static"&&(n.value=y)},{immediate:!0});const{getGlobalModel:s,setGlobalModel:l}=vue.inject(GLOBAL_MODEL,{getGlobalModel:y=>{},setGlobalModel:(y,S)=>{}}),u=useEmitEvent(e)("click",()=>{const y=s(e.id);l(e.id,{...y,type:e.type,value:vue.unref(n)})}),h=()=>{const y=e.id,S=s(y);l(y,{...S,type:e.type,value:""})},x=useRequestData(e,y=>{var S,k;n.value=((k=(S=y==null?void 0:y.data)==null?void 0:S.data)==null?void 0:k.value)||""}),f=vue.ref(!1),g=async()=>{var y,S;try{f.value=!0;const k=await x();n.value=((S=(y=k==null?void 0:k.data)==null?void 0:y.data)==null?void 0:S.value)||""}catch(k){console.error(k)}finally{f.value=!1}},v=y=>{var P;const{data:S}=(y==null?void 0:y.data)||{};let k="";if(S){const{columns:w=[],rows:D=[]}=((P=y==null?void 0:y.data)==null?void 0:P.data)??{};if(w.length>0){const M=w.find(B=>!!B);M&&(k=D[M]||"")}}n.value=String(k)},m=useIndicatorData(e,v),E=async()=>{try{f.value=!0;const y=await m();v(y)}catch(y){console.error(y)}finally{f.value=!1}},b=()=>{switch(e.dataType){case"indicator":E();break;case"request":g();break}},d=vue.computed(()=>{const y=[],{digits:S}=e,k=vue.unref(n)?vue.unref(n).split("").reverse().join(""):"";for(let P=0;P<S;P++)k&&k[P]?y.push(k[P]):y.push("0");return y.reverse()});useOnEvent(e,{refreshData:b,resetRecord:h});const{setRequest:p}=vue.inject(REQUEST_MODEL,{setRequest:({id:y,sortNum:S,requestFn:k})=>{}});return typeof p=="function"&&p({id:e.id,requestFn:b,sortNum:e.requestSort}),r({refreshData:b}),{style:i,valueList:d,digitsStyle:a,fontStyle:o,loading:f,useImagePath,click:u}}}),Counter_vue_vue_type_style_index_0_scoped_82bd9070_lang="",_hoisted_1$b=["src"];function _sfc_render$q(e,r,n,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:r[0]||(r[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$m,[["render",_sfc_render$q],["__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$l=vue.defineComponent({name:"EcanInput",components:{AInput:antDesignVue.Input},props:{...inputComponentProps},setup(e){const r=usePickComponentStyle(e),n=vue.ref(""),{getGlobalModel:i,setGlobalModel:a,getRecordValueByKeyName:o}=vue.inject(GLOBAL_MODEL,{getGlobalModel:h=>{},setGlobalModel:(h,x)=>{},getRecordValueByKeyName:h=>{}});vue.watch(()=>e.value,h=>{n.value=o(h)},{immediate:!0}),a(e.id,{type:e.type,value:n});const s=()=>{const h=i(e.id);a(e.id,{...h,RECORD:n})},l=useEmitEvent(e),c=lodashEs.debounce(l("inputChange",()=>{s()}),300),u=l("inputBlur",()=>{});return{style:r,myValue:n,inputBlur:u,inputChange:c}}}),Input_vue_vue_type_style_index_0_lang="";function _sfc_render$p(e,r,n,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":r[0]||(r[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$l,[["render",_sfc_render$p]]),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 r=vue.inject("isMobile",!1),n=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 P=["year","month","day"];switch(e.picker){case"year":P=["year"];break;case"month":P=["year","month"];break}return P});vue.watch(()=>[e.value,e.useCurrentTime,e.operate],([P,w,D])=>{let M=null;if(P?M=dayjs(useVariablesInText(P)):w&&(M=dayjs()),D&&M){const{type:B,value:L,mode:V}=D;switch(B){case"add":M=M.add(L,V);break;case"minus":M=M.subtract(L,V)}}o.value=M,vue.unref(r)&&S(M)},{deep:!0,immediate:!0});const{setGlobalModel:h}=vue.inject(GLOBAL_MODEL,{setGlobalModel:(P,w)=>{}});h(e.id,{type:e.type,format:e.format,useCurrentTime:e.useCurrentTime,value:o});const f=useEmitEvent(e)("dateChange",()=>{}),g=()=>{vue.unref(o)&&f()};useOnEvent(e,{dateChange:f});const v=vue.ref({}),m=vue.ref({}),E=P=>{P?setTimeout(()=>{m.value=vue.unref(v)},300):m.value={}};vue.onMounted(()=>{setTimeout(()=>{const P=document.querySelector(`#ecan-date-picker-${e.id}`);if(P){const w=P.getBoundingClientRect(),D=parseFloat(vue.unref(n).widthScale)*280;document.body.clientWidth-w.left<D&&(v.value.marginLeft=-1*(D-w.width)+"px")}},0)});const b=()=>{S(vue.unref(o)),l.value=!0},d=()=>{S(),o.value=null},p=()=>{const P=dayjs(vue.unref(c).join("-"));o.value=P,S(P),l.value=!1,g()},y=()=>{o.value=dayjs(),S(),s.value=dayjs().format(e.format),l.value=!1};function S(P){c.value=k(P||dayjs()),s.value=(P==null?void 0:P.format(e.format))||""}function k(P){const w=[];for(const D of vue.unref(u))D==="day"?w.push(P.date()):w.push(P[D]()+(D==="month"?1:0));return w}return{style:i,getPopupContainer:a,myValue:o,locale,change:g,scaleValue:n,popupStyle:v,customStyle:m,openChange:E,isMobile:r,mobileDateStr:s,handleClearDate:d,openDatePick:b,datePickVisible:l,columnsType:u,mobileDate:c,onConfirmDate:p,onCancelDate:y}}}),__injectCSSVars__$3=()=>{vue.useCssVars(e=>({"43c34aaa":e.optionFontSize}))},__setup__$3=__default__$3.setup;__default__$3.setup=__setup__$3?(e,r)=>(__injectCSSVars__$3(),__setup__$3(e,r)):__injectCSSVars__$3;const DatePicker_vue_vue_type_style_index_0_scoped_a500e23b_lang="",DatePicker_vue_vue_type_style_index_1_lang="",_hoisted_1$a=["id"];function _sfc_render$o(e,r,n,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"),h=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(h,{show:e.datePickVisible,"onUpdate:show":r[1]||(r[1]=f=>e.datePickVisible=f),"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":r[0]||(r[0]=f=>e.mobileDate=f),"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":r[2]||(r[2]=f=>e.myValue=f),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$o],["__scopeId","data-v-a500e23b"]]),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,r){(function(n,i){e.exports=i()})(commonjsGlobal,function(){var n="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,h){return u=Number(u),this.$utils().p(h)===i?this.add(3*u,n):l.bind(this)(u,h)};var c=s.startOf;s.startOf=function(u,h){var x=this.$utils(),f=!!x.u(h)||h;if(x.p(u)===i){var g=this.quarter()-1;return f?this.month(3*g).startOf(n).startOf("day"):this.month(3*g+2).endOf(n).endOf("day")}return c.bind(this)(u,h)}}})})(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 r=vue.inject("isMobile",!1),{pageMode:n}=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(),h=vue.ref(),x=vue.ref(),f=vue.ref(),g=vue.ref(0),v=vue.ref({}),m=vue.ref(""),E=vue.computed(()=>{let R=["year","month","day"];switch(e.picker){case"year":R=["year"];break;case"month":R=["year","month"];break}return R});vue.watch(()=>[e.startTime,e.endTime,e.useCurrentTime,e.interval,e.intervalUnit,e.operate],([R,W,Y,X,Z,J])=>{if(vue.unref(o).every(K=>!K)||vue.unref(n)==="design"){let K=null,ee=null;if(Y&&(K=dayjs().subtract(X,Z),ee=dayjs()),R&&(K=dayjs(useVariablesInText(R))),W&&(ee=dayjs(useVariablesInText(W))),J){const{type:re,value:ne,mode:ie}=J;switch(re){case"add":K=K&&K.add(ne,ie),ee=ee&&ee.add(ne,ie);break;case"minus":K=K&&K.subtract(ne,ie),ee=ee&&ee.subtract(ne,ie)}}o.value=[K,ee],vue.unref(r)&&j()}},{immediate:!0});let b=vue.unref(o)[0],d=vue.unref(o)[1],p="";const y=(R,W,Y)=>{Array.isArray(R)?(b=R[0],d=R[1],p=Y.range):(b=null,d=null)},S=R=>{let W=!1,{limitStartTime:Y,limitEndTime:X}=e;const Z={startTime:`${b||""}`,endTime:`${d||""}`};if(Y=useVariablesInText(Y,{codeData:Z}),X=useVariablesInText(X,{codeData:Z}),Y&&X?W=!(dayjs(Y)<R&&R<dayjs(X)):Y?W=dayjs(Y)>R:X&&(W=dayjs(X)<R),!e.isAllowSpanYear&&p){let J=null;if(p==="start"?J=b:p==="end"&&(J=d),J){const K=J.startOf("year"),ee=J.endOf("year");W=!(K<=R&&R<ee)}}if(!W){const{value:J=0,mode:K="year"}=e.limitInterval||{};J&&(p==="start"?W=b.add(J,K)<R:p==="end"&&(W=d.subtract(J,K)>R))}return W},{getGlobalModel:k,setGlobalModel:P}=vue.inject(GLOBAL_MODEL,{getGlobalModel:R=>{},setGlobalModel:(R,W)=>{}}),w=vue.computed(()=>Array.isArray(vue.unref(o))?vue.unref(o)[0]:null),D=vue.computed(()=>Array.isArray(vue.unref(o))?vue.unref(o)[1]:null);P(e.id,{type:e.type,format:e.format,startTime:w,endTime:D,interval:e.interval,intervalUnit:e.intervalUnit,useCurrentTime:e.useCurrentTime,operate:e.operate});const M=useEmitEvent(e);let B=!1;const L=M("dateChange",()=>{}),V=R=>{const W=vue.unref(o),Y=W&&W[0]&&W[1];R===!1&&B===!0&&Y&&(L(),B=!1),R||(p="")},$=()=>{B=!0},N=()=>{const{associated:R}=e;if(R){const W=k(R)||{};if(W){const{value:Y}=W;if(Y)switch(vue.unref(Y)){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}}}L()},T=()=>{q(vue.unref(o)),s.value=!0},I=()=>{q(),m.value="",o.value=[null,null]},A=()=>{o.value=[dayjs(vue.unref(l).join("-")),dayjs(vue.unref(c).join("-"))],q(vue.unref(o)),H(),O(),s.value=!1,L()},C=()=>{U(),s.value=!1},F=()=>{var R,W;(R=vue.unref(l))!=null&&R.length&&e.format&&(x.value=new Date(vue.unref(l).join("-")),(W=vue.unref(c))!=null&&W.length&&dayjs(vue.unref(c).join("-")).isBefore(dayjs(vue.unref(l).join("-")))&&(c.value=lodashEs.cloneDeep(vue.unref(l))))},_=()=>{var R,W;(R=vue.unref(c))!=null&&R.length&&e.format&&(h.value=new Date(vue.unref(c).join("-")),(W=vue.unref(l))!=null&&W.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(h)),endMinDate:lodashEs.cloneDeep(vue.unref(x)),endMaxDate:lodashEs.cloneDeep(vue.unref(f))}}function U(){u.value=vue.unref(v).startMinDate,h.value=vue.unref(v).startMaxDate,x.value=vue.unref(v).endMinDate,f.value=vue.unref(v).endMaxDate}function q(R=[]){l.value=G(R[0]||dayjs()),c.value=G(R[1]||dayjs())}function H(){var Y,X;const R=(Y=vue.unref(l))!=null&&Y.length?dayjs(vue.unref(l).join("-")):"",W=(X=vue.unref(c))!=null&&X.length?dayjs(vue.unref(c).join("-")):"";m.value=R&&W&&`${R.format(e.format)} 至 ${W.format(e.format)}`}function j(){const{limitStartTime:R,limitEndTime:W,limitInterval:Y,isAllowSpanYear:X}=e;q(vue.unref(o)),R&&(u.value=new Date(R),x.value=new Date(R),vue.unref(o)[0].isBefore(dayjs(R))&&(vue.unref(o)[0]=dayjs(R),l.value=G(vue.unref(o)[0]))),W&&(h.value=new Date(W),f.value=new Date(W),vue.unref(o)[1].isAfter(dayjs(W))&&(vue.unref(o)[1]=dayjs(W),c.value=G(vue.unref(o)[1]))),vue.unref(o).every(Z=>Z)&&(Y!=null&&Y.value)&&vue.unref(o)[1].diff(vue.unref(o)[0],Y.mode)>Y.value&&(vue.unref(o)[0]=vue.unref(o)[1].subtract(Y.value,Y.mode),l.value=G(vue.unref(o)[0])),vue.unref(o).every(Z=>Z)&&!X&&vue.unref(o)[0].year()!==vue.unref(o)[1].year()&&(vue.unref(o)[0]=dayjs(`${vue.unref(o)[1].year()}-01-01`),l.value=G(vue.unref(o)[0])),O(),H()}function G(R){const W=[];for(const Y of vue.unref(E))Y==="day"?W.push(R.date()):W.push(R[Y]()+(Y==="month"?1:0));return W}return useOnEvent(e,{dateChange:N}),{style:i,getPopupContainer:a,locale,dateChange:L,myValue:o,disabledDate:S,calendarChange:y,openChange:V,change:$,isMobile:r,mobileDateStr:m,datePickVisible:s,columnsType:E,openDatePick:T,handleClearDate:I,onConfirmDate:A,onCancelDate:C,mobileStartDate:l,mobileEndDate:c,startMinDate:u,startMaxDate:h,endMinDate:x,endMaxDate:f,pickerTabKey:g,onStartDateChange:F,onEndDateChange:_}}}),__injectCSSVars__$2=()=>{vue.useCssVars(e=>({a708a7a6:e.optionFontSize}))},__setup__$2=__default__$2.setup;__default__$2.setup=__setup__$2?(e,r)=>(__injectCSSVars__$2(),__setup__$2(e,r)):__injectCSSVars__$2;const RangePicker_vue_vue_type_style_index_0_scoped_c1fd3779_lang="",RangePicker_vue_vue_type_style_index_1_lang="";function _sfc_render$n(e,r,n,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"),h=vue.resolveComponent("van-picker-group"),x=vue.resolveComponent("van-popup"),f=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":r[3]||(r[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(h,{key:0,"active-tab":e.pickerTabKey,"onUpdate:active-tab":r[2]||(r[2]=g=>e.pickerTabKey=g),tabs:["开始日期","结束日期"],onConfirm:e.onConfirmDate,onCancel:e.onCancelDate},{default:vue.withCtx(()=>[vue.createVNode(u,{modelValue:e.mobileStartDate,"onUpdate:modelValue":r[0]||(r[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":r[1]||(r[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(f,{key:1,class:"range-picker",dropdownClassName:"ecan-range-picker-dropdown",value:e.myValue,"onUpdate:value":r[4]||(r[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$n],["__scopeId","data-v-c1fd3779"]]),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$k=vue.defineComponent({name:"EcanButton",components:{AButton:antDesignVue.Button},props:{...buttonComponentProps},setup(e){const r=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:r,click:i,myText:o,myHref:s,myTarget:l,buttonStyle:a}}}),Button_vue_vue_type_style_index_0_lang="";function _sfc_render$m(e,r,n,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$k,[["render",_sfc_render$m]]),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$j=vue.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:antDesignVue.CheckboxGroup},props:{...checkboxComponentProps},setup(e,{expose:r}){const n=usePickComponentStyle(e),i=vue.ref([]),a=vue.ref([]),o=b=>{const d=e.value;let p=[];b.forEach(y=>{y.checked&&p.push(y.value)}),typeof d=="string"&&d!==""?p=p.concat(d.split(",")):Array.isArray(d)&&(p=p.concat(d)),i.value=b,a.value=p};vue.watch(()=>[e.data,e.value],([b])=>{o(b)},{immediate:!0,deep:!0});const s=useRequestData(e,b=>{var d,p;o(((p=(d=b==null?void 0:b.data)==null?void 0:d.data)==null?void 0:p.rows)||[])}),l=async()=>{var p,y;if(e.dataType!=="request")return;const b=await s(),d=((y=(p=b==null?void 0:b.data)==null?void 0:p.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})}),f=b=>{var p;const{data:d}=(b==null?void 0:b.data)||{};if(d){const S=(((p=b==null?void 0:b.data)==null?void 0:p.data)??[]).map(k=>({label:k.label,value:k.value}));o(S)}else o([])},g=useIndicatorData(e,f),v=async()=>{try{const b=await g();f(b)}catch(b){console.error(b)}},m=()=>{switch(e.dataType){case"indicator":v();break;case"request":l();break}},{setRequest:E}=vue.inject(REQUEST_MODEL,{setRequest:({id:b,sortNum:d,requestFn:p})=>{}});return typeof E=="function"&&E({id:e.id,requestFn:m,sortNum:e.requestSort}),r({refreshData:m}),{myOption:i,style:n,myValue:a,checkboxChange:x}}}),Checkbox_vue_vue_type_style_index_0_lang="";function _sfc_render$l(e,r,n,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":r[0]||(r[0]=l=>e.myValue=l),onChange:e.checkboxChange},null,8,["options","value","onChange"])],4)}const Checkbox=_export_sfc$1(_sfc_main$j,[["render",_sfc_render$l]]),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$i=vue.defineComponent({name:"EcanSelect",components:{ASelect:antDesignVue.Select,ASelectOption:antDesignVue.SelectOption,AInput:antDesignVue.Input,DownOutlined:DownOutlined$1},props:{...selectComponentProps},setup(e,{expose:r}){var H,j,G;const n=vue.inject("isMobile",!1),i=vue.ref(!1),a={text:((H=e.dataFieldNames)==null?void 0:H.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(),h=vue.computed({get:()=>{var W;const{mode:R}=e;return(W=vue.unref(c))!=null&&W.length?u.value:R==="multiple"||R==="tags"||R==="combobox"?[]:""},set:R=>{u.value=R}}),x=vue.computed(()=>{const{value:R,label:W}=e.dataFieldNames,Y=[];if(Array.isArray(vue.unref(h)))for(const X of vue.unref(h)){const Z=vue.unref(c).find(J=>J[R]===X);Z&&Y.push(Z[W])}else{const X=vue.unref(c).find(Z=>Z[R]===vue.unref(h));X&&Y.push(X[W])}return Y.join(",")}),{getGlobalModel:f,setGlobalModel:g,getRecordValueByKeyName:v}=vue.inject(GLOBAL_MODEL,{getGlobalModel:R=>{},setGlobalModel:(R,W)=>{},getRecordValueByKeyName:R=>{}}),m=e.dataFieldNames;vue.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,c.value],()=>{const{mode:R,selectFirstOption:W,value:Y}=e,X=v(Y),Z=m.value;if(R==="multiple"||R==="tags"||R==="combobox"){if(X)u.value=X.split(",");else if(W){const J=vue.unref(c)[0];u.value=J?[J[Z]]:[]}}else if(X)u.value=X;else if(W){const J=vue.unref(c)[0];u.value=J?J[Z]:""}},{immediate:!0});const E=(R,W)=>{const Y=m.label,X=m.value;let Z;const J=W[Y],K=W[X];return J!=null?Z=J:K!=null&&(Z=K),(Z==null?void 0:Z.toLowerCase().indexOf(R==null?void 0:R.toLowerCase()))>=0},b=R=>{const{label:W,value:Y,options:X}=e.dataFieldNames;if(X&&Array.isArray(R))if(R.some(Z=>X in Z)){const Z={},J=[];R.forEach(K=>{Z[K[X]]||(Z[K[X]]=[]),Z[K[X]].push({[W]:K[W],[Y]:K[Y]})});for(const K in Z)J.push({[W]:K,[X]:Z[K]});return J}else return R;else{if(!X&&Array.isArray(R))return R=R.map(Z=>({label:Z[W],value:Z[Y]})),R;if(!X&&!Array.isArray(R))return R}},d=vue.ref(!1),p=R=>{var W,Y;if(c.value=b(((Y=(W=R==null?void 0:R.data)==null?void 0:W.data)==null?void 0:Y.rows)||[]),e.selectFirstOption){let X=vue.unref(c)[0];if(m.options){const Z=X[m.options];Z&&Z.length&&(X=Z[0])}u.value=X[m.value]}},y=useRequestData(e,p),S=async()=>{if(e.dataType==="request"){d.value=!0;try{const R=await y();p(R)}catch(R){console.error(R)}finally{d.value=!1}}},{setLoadedData:k,loadedData:P}=vue.inject(LOADED_DATA,{setLoadedData:(R,W)=>{},loadedData:{}}),w=vue.computed(()=>{let R=u.value;if(e.valueType==="label"&&vue.unref(u)&&vue.unref(c)){const W=m.label,Y=m.value;if(e.mode==="multiple")R=vue.unref(c).filter(X=>vue.unref(u).includes(X[Y])).map(X=>X[W]);else{const X=vue.unref(c).find(Z=>vue.unref(u)===Z[Y]);X&&(R=X[W])}}return R}),D=vue.ref([]),M=vue.computed(()=>{const R={};if(e.mode!=="multiple"){const W=vue.unref(D).find(Y=>Y.value===vue.unref(u));W&&(R.itemCodes=W.item_codes)}return R}),B=vue.computed(()=>{const{value:R,label:W}=m,Y=vue.unref(c).find(X=>X[R]===vue.unref(h));return Y?{label:Y[W],value:Y[R]}:{}});g(e.id,{type:e.type,value:w,label:(G=vue.unref(B))==null?void 0:G.label,...vue.unref(M),recordData:vue.unref(B)});const L=useEmitEvent(e),V=L("selectChange",()=>{const R=e.id,W=f(R);g(R,{...W,...vue.unref(M),RECORD:w,recordData:vue.unref(B)})}),$=L("clearValue",()=>{["multiple","tags","combobox"].includes(e.mode)?u.value=[]:u.value=null;const R=e.id;g(R,{RECORD:"",recordData:vue.unref(B)})}),N=(R=[])=>{var Y,X;const W=b(R);if((X=(Y=e==null?void 0:e.graphicConfig)==null?void 0:Y.formFields)!=null&&X.hasAllOption){const Z=m.label,J=m.value;W.unshift({[Z]:"全部",[J]:""})}if(c.value=W,e.selectFirstOption){let Z=vue.unref(c)[0];if(m.options){const J=Z[m.options];J&&J.length&&(Z=J[0])}u.value=Z[m.value]}g(e.id,{type:e.type,value:w,...vue.unref(M),recordData:vue.unref(B)})},T=R=>{var Z;const{data:W}=(R==null?void 0:R.data)||{},Y=m.label,X=m.value;if(W){const{rows:J=[]}=((Z=R==null?void 0:R.data)==null?void 0:Z.data)||{};D.value=J;const K=J.map(ne=>({[Y]:ne.label,[X]:ne.value})),{id:ee}=e,re=f(ee);g(ee,{...re,...vue.unref(M)}),k(ee,!0),N(K)}else N([])},I=useIndicatorData(e,T),A=async()=>{try{d.value=!0;const R=await I();T(R)}catch(R){console.error(R)}finally{d.value=!1}},C=vue.computed(()=>{var R,W;return(W=getConditions(((R=e==null?void 0:e.graphicConfig)==null?void 0:R.controlList)||[]))==null?void 0:W.find(Y=>Y.conditionKey==="parentCode")}),F=vue.ref(!1);vue.watch(P,R=>{!vue.unref(F)&&vue.unref(C)&&R[vue.unref(C).id]&&(F.value=!0,_())},{deep:!0});const _=()=>{switch(e.dataType){case"indicator":{if(vue.unref(C)){if(vue.unref(P)[vue.unref(C).id]){const{mode:R}=e;R==="multiple"||R==="tags"||R==="combobox"?h.value=[]:h.value="",A()}}else A();break}case"request":S();break}};useOnEvent(e,{selectChange:V,refreshData:_,clearValue:$});const{setRequest:O}=vue.inject(REQUEST_MODEL,{setRequest:({id:R,sortNum:W,requestFn:Y})=>{}});return typeof O=="function"&&O({id:e.id,requestFn:_,sortNum:e.requestSort}),r({refreshData:_}),{style:s,getPopupContainer:l,myValue:u,selectChange:V,options:c,filterOption:E,loading:d,resultValue:h,isMobile:n,customFieldName:a,pickVisible:i,onConfirmPicker:()=>{h.value=vue.unref(o)[0],V(),i.value=!1},mobileValue:x,openPicker:()=>{var R;!Array.isArray(vue.unref(h))&&((R=vue.unref(c))!=null&&R.length)&&e.dataFieldNames.value&&(o.value=vue.unref(h)?[vue.unref(h)]:[vue.unref(c)[0][e.dataFieldNames.value]]),i.value=!0},mobileSelectValue:o}}}),Select_vue_vue_type_style_index_0_scoped_0d9fccbc_lang="",Select_vue_vue_type_style_index_1_lang="";function _sfc_render$k(e,r,n,i,a,o){const s=vue.resolveComponent("down-outlined"),l=vue.resolveComponent("a-input"),c=vue.resolveComponent("van-picker"),u=vue.resolveComponent("van-popup"),h=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":r[1]||(r[1]=f=>e.pickVisible=f),"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":r[0]||(r[0]=f=>e.mobileSelectValue=f),"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":r[2]||(r[2]=f=>e.resultValue=f),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,(f,g)=>(vue.openBlock(),vue.createBlock(h,{key:g,value:f.value,style:vue.normalizeStyle({fontSize:e.optionFontSize})},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(f.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$i,[["render",_sfc_render$k],["__scopeId","data-v-0d9fccbc"]]),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$h={name:"EcanTreeSelect",components:{ATreeSelect:antDesignVue.TreeSelect},props:{...treeSelectComponentProps},setup(e){const r=usePickComponentStyle(e),n=vue.ref(e.data),i=(v,m)=>{const E=e.dataFieldNames,b=E.label,d=E.value;let p;const y=m[b],S=m[d];return y!=null?p=y:S!=null&&(p=S),(p==null?void 0:p.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:m,selectFirstOption:E}=e;v?m?a.value=m.split(","):E&&(a.value=[vue.unref(n)[0]]):m?a.value=m:E&&(a.value=vue.unref(n)[0])},{immediate:!0});const o=vue.ref(!1),s=v=>{var E,b;n.value=((b=(E=v==null?void 0:v.data)==null?void 0:E.data)==null?void 0:b.rows)||[];const m=vue.unref(n)[0];e.value===""&&m!=null&&(a.value=m[e.dataFieldNames.value])},l=useRequestData(e,s),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:h}=vue.inject(GLOBAL_MODEL,{getGlobalModel:v=>{},setGlobalModel:(v,m)=>{}});h(e.id,{type:e.type,value:a});const f=useEmitEvent(e)("selectChange",()=>{const v=e.id,m=u(v);h(v,{...m,RECORD:a})});useOnEvent(e,{selectChange:f,refreshData:c});const{setRequest:g}=vue.inject(REQUEST_MODEL,{setRequest:({id:v,sortNum:m,requestFn:E})=>{}});return g({id:e.id,requestFn:c,sortNum:e.requestSort}),{style:r,treeData:n,filterTreeNode:i,myValue:a,loading:o,selectChange:f}}},TreeSelect_vue_vue_type_style_index_0_scoped_09e7f364_lang="",TreeSelect_vue_vue_type_style_index_1_lang="";function _sfc_render$j(e,r,n,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":r[0]||(r[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$h,[["render",_sfc_render$j],["__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:""},radioComponentProps=transformToComponentProps(radioProps),radioEvents=["checkboxChange","click"],_sfc_main$g=vue.defineComponent({name:"EcanRadio",components:{ARadioGroup:antDesignVue.RadioGroup,ARadioButton:antDesignVue.RadioButton,ARadio:antDesignVue.Radio},props:{...radioComponentProps},setup(e,{expose:r}){const{pageMode:n}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),i=usePickComponentStyle(e),a=vue.ref([]),o=vue.ref(""),s=S=>{const k=e.value;let P=[];typeof k=="string"&&k!==""?P=P.concat(k.split(",")):Array.isArray(k)&&(P=P.concat(k)),a.value=S,o.value=P[0]||"",console.log(a.value,o.value," myValue.value")};vue.watch(()=>[e.data,e.value],([S])=>{vue.unref(n)==="design"&&s(S)},{immediate:!0,deep:!0});const l=useRequestData(e,S=>{var k,P;s(((P=(k=S==null?void 0:S.data)==null?void 0:k.data)==null?void 0:P.rows)||[])}),c=async()=>{var P,w;if(e.dataType!=="request")return;const S=await l(),k=((w=(P=S==null?void 0:S.data)==null?void 0:P.data)==null?void 0:w.rows)||[];s(k)},{getGlobalModel:u,setGlobalModel:h}=vue.inject(GLOBAL_MODEL,{getGlobalModel:S=>{},setGlobalModel:(S,k)=>{}});h(e.id,{type:e.type,value:o});const x=useEmitEvent(e),f=()=>{const S=vue.unref(a).find(k=>k.value===vue.unref(o))||{};x("checkboxChange",()=>{const k=u(e.id);h(e.id,{...k,RECORD:o})},S)()},g=S=>{o.value=S,x("click",()=>{const k=u(e.id);h(e.id,{...k,RECORD:o})})()};vue.watch(o,()=>{f()});const v=S=>{var P;const{data:k}=(S==null?void 0:S.data)||{};if(k){const D=(((P=S==null?void 0:S.data)==null?void 0:P.data)??[]).map(M=>({label:M.label,value:M.value}));s(D)}else s([])},m=useIndicatorData(e,v),E=async()=>{try{const S=await m();v(S)}catch(S){console.error(S)}},b=()=>{switch(e.dataType){case"indicator":E();break;case"request":c();break}},{setRequest:d}=vue.inject(REQUEST_MODEL,{setRequest:({id:S,sortNum:k,requestFn:P})=>{}});typeof d=="function"&&d({id:e.id,requestFn:b,sortNum:e.requestSort});const p=S=>{o.value=S.value},y=vue.computed(()=>e.tabFlexDirection==="column"?{display:"flex",height:"30px",lineHeight:"30px"}:{});return vue.onMounted(()=>{s(e.data)}),r({refreshData:b}),{myOption:a,style:i,myValue:o,radioStyle:y,onClickButton:g,useImagePath,tabChange:p}}}),Radio_vue_vue_type_style_index_0_lang="",Radio_vue_vue_type_style_index_1_scoped_b9a5fb2e_lang="",_hoisted_1$9=["onClick"];function _sfc_render$i(e,r,n,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.tabBackgroundImage&&e.activeTabBackgroundImage?(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,h)=>(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:h,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)):(vue.openBlock(),vue.createBlock(c,{key:1,value:e.myValue,"onUpdate:value":r[0]||(r[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,onClick:h=>e.onClickButton(u.value)},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(u.label),1)]),_:2},1032,["value","onClick"])):vue.createCommentVNode("",!0)],64))),128))]),_:1},8,["value"]))],6)}const Radio=_export_sfc$1(_sfc_main$g,[["render",_sfc_render$i],["__scopeId","data-v-b9a5fb2e"]]),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},pieComponentProps=transformToComponentProps(pieProps),pieEvents=["click","refreshData","resetRecord"],useDownloadFile=async e=>{var c;const r=await request.post(e,{},{responseType:"blob"}),{data:n,headers:i}=r,a=i["content-disposition"].replace(/\w+;filename=(.*)/,"$1"),o=new Blob([n]),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:[]},modalComponentProps=transformToComponentProps(modalProps),modalEvents=["showModal","hideModal"],containerType=["ecanBorder","ecanTabs","ecanCirculate"];function handleScrollCombinations(e){const{containerMap:r={},sourceList:n=[]}=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=r[o.id],l=[];if((!hasOwn(o,"componentList")||!(o!=null&&o.componentList))&&(o.componentList=[]),s){let c=0;for(const u in s){const h=s[u],x=[];if(h!=null&&h.length)for(const f of h){let g=i.find(v=>v.id===f);g||(g=n.find(v=>v.id===f)),g&&(x.push(g),containerType.includes(g.type)&&x.push(...getComponentByContainer(g.id,r,n)))}for(const f of x)hasOwn(f,"scale")?parseFloat(u)>0&&(f.left=parseFloat(f.left)+c+"px"):(f.left=parseFloat(f.sourceLeft||f.left)-parseFloat(o.sourceLeft||o.left)+c+"px",f.top=parseFloat(f.sourceTop||f.top)-parseFloat(o.sourceTop||o.top)+"px"),l.includes(f.id)||l.push(f.id);o.componentList.push(...x),c=getMaxLeftInComponents(x)}}for(const c of l){const u=i.findIndex(h=>h.id===c);u!==-1&&i.splice(u,1)}}return i}function compatibleMobileList(e){var o,s;const{combinationMap:r={},sourceList:n=[]}=e,i=e.containerMap,a=lodashEs.cloneDeep([...e.componentList,...getTabsSomeComponentList(i,n)]);if(handleContainerMap(i,a),(o=Object.keys(i))!=null&&o.length||(s=Object.keys(r))!=null&&s.length){for(const f in i){const g=a.find(v=>v.id===f);if(g){hasOwn(g,"parentId")||(g.parentId="",g.sourceLeft=g.left,g.sourceTop=g.top);for(const v in i[f])if(i[f][v])for(const m of i[f][v]){const E=a.find(b=>b.id===m);E&&(E.parentId=f,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(f=>(!hasOwn(f,"parentId")||f.parentId==="")&&f.combinationId).map(f=>f.combinationId))),c=getCombinationList(l,{...e,componentList:a});c!=null&&c.length&&a.unshift(...c);const u=["ecanPie","ecanLine","ecanBar","ecanScatter","ecanComboGraph","ecanCustomGraph","ecanRadar","ecanMap"],h=a.filter(f=>u.includes(f.type)&&!hasOwn(f,"parentId")),x=[];for(const f of h)if(f){const g=f.id+"_vir";x.push({id:g,keyName:f.keyName+"_vir",parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,width:f.width,height:f.height,left:f.left,top:f.top,sourceLeft:f.left,sourceTop:f.top}),f.parentId=g,f.sourceLeft=f.left,f.sourceTop=f.top,f.left=0,f.top=0}x!=null&&x.length&&a.unshift(...x);for(const f of a){const g=document.body.clientWidth;if(f.parentId===""&&containerType.includes(f.type))f.sourceWidth=parseFloat(f.width),f.height=(g/(f.sourceWidth/parseFloat(f.height))).toFixed(2)+"px",f.width="100%",f.position="relative",f.top="auto",f.left="auto";else{const v=a.find(m=>m.id===f.parentId);if((v==null?void 0:v.parentId)===""){const m=v.sourceWidth||parseFloat(v.width),E=g/m;f.scale=E,f.top=parseFloat(f.top)*E-parseFloat(f.height)*(1-E)/2+"px",f.left=parseFloat(f.left)*E-parseFloat(f.width)*(1-E)/2+"px"}}f.type==="ecanModal"&&(f.parentId="",f.fullModal=!0)}return sortList(a)}return a}function handleContainerMap(e,r){const n=lodashEs.cloneDeep(e),i=r.filter(a=>a.type==="ecanTabs"&&a.isAutoScroll);if(i!=null&&i.length)for(const a of i){const o=n[a.id];for(const s in o)for(const l of o[s]){const c=r.find(u=>u.id===l);if(c&&containerType.includes(c.type)){const u=getComponentByContainer(c.id,n,r);for(const h of u)e[a.id][s].push(h.id),containerType.includes(h.type)&&delete e[h.id];delete e[c.id]}}}}function getTabsSomeComponentList(e,r){const n=[],i=r.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=r.find(u=>u.id===l);c&&(n.push(c),containerType.includes(c.type)&&n.push(...getComponentByContainer(c.id,e,r)))}}return n}function getComponentByContainer(e,r,n){const i=[],a=r[e];for(const o in a)for(const s of a[o]){const l=n.find(c=>c.id===s);l&&(i.push(l),containerType.includes(l.type)&&i.push(...getComponentByContainer(l.id,r,n)))}return i}function getCombinationList(e,r,n){const{combinationMap:i={},componentList:a=[]}=r,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:n||"",type:"ecanBorder",borderRadius:"",borderWidth:null,sourceLeft:u.left,sourceTop:u.top});for(const h of c)h&&(h.parentId=s,h.sourceLeft=h.left,h.sourceTop=h.top,h.left=parseFloat(h.left)-parseFloat(u.left)+"px",h.top=parseFloat(h.top)-parseFloat(u.top)+"px")}}}}return o}function sortList(e){const n=e.filter(i=>i.parentId==="");if(n!=null&&n.length){const i=lodashEs.cloneDeep(n).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 r=e.sort((o,s)=>parseFloat(o.top)-parseFloat(s.top))[0],n=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 r&&n&&i&&a?{left:n.left,top:r.top,width:a.computedLeft-parseFloat(n.left)+"px",height:i.computedTop-parseFloat(r.top)+"px"}:null}function getMaxLeftInComponents(e){const r=e.map(n=>parseFloat(n.left)+parseFloat(n.width)).sort((n,i)=>i-n)[0];return r||0}function moveToComponentList(e,r,n){const i=e[n],a=[];if(i)for(const o in i){const s=i[o];for(const l of s){const c=r.find(u=>u.id===l);c&&(a.push(c),containerType.includes(c.type)&&a.push(...getComponentByContainer(c.id,e,r)))}}return a}const _sfc_main$f=vue.defineComponent({name:"Render",props:{component:{type:Object,default:()=>{}}},setup(e,{emit:r}){r("ready",e.component.id)}});function _sfc_render$h(e,r,n,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$f,[["render",_sfc_render$h]]),EcanRender=withInstall$1(Render),_sfc_main$e=vue.defineComponent({name:"EcanModal",components:{AModal:antDesignVue.Modal,CloseOutlined:CloseOutlined$1,Render:EcanRender},props:{...modalComponentProps},setup(e,{emit:r}){const n=vue.ref([]),i=vue.inject("isMobile",!1),a=vue.inject("getContainerMap",()=>{}),o=vue.inject("getCombinationMap",()=>{}),{clearInteractiveData:s,interactiveData:l,setRequestData:c}=vue.inject(GLOBAL_MODEL,{setRequestData:(J,K)=>{},clearInteractiveData:()=>{},interactiveData:null}),u=()=>document.getElementById("ProviderConfig")||document.body,h=vue.computed(()=>{const J=e.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[J]}}),x=e.fullModal?"1920px":e.width,f=e.fullModal?"1080px":e.height,g=e.originalWidth,v=e.originalHeight,m=vue.ref("80%"),E=vue.ref(0),b=vue.ref(),d=vue.ref(0),p=vue.ref({}),y=usePickComponentStyle(e),S=vue.ref({}),k=vue.ref(!1),P=vue.ref();let w;const D=()=>{b.value=parseFloat(x)/parseFloat(g);const J=parseFloat(f)/parseFloat(v),K=document.body.offsetWidth,ee=document.body.offsetHeight;E.value=K*vue.unref(b),d.value=ee*J,m.value=`${vue.unref(b)*100}%`,p.value={width:`${vue.unref(E)}px`,height:`${vue.unref(d)}px`,border:`${e.borderWidth} solid ${e.borderColor}`,borderRadius:e.borderRadius+"px",boxShadow:e.boxShadow},S.value={...vue.unref(y),backgroundImage:useImagePath(e.backgroundImage,!0)},i?S.value={...S.value,width:"100%",height:"100%"}:S.value={...S.value,transform:`scale(${vue.unref(E)/parseFloat(x)},${vue.unref(d)/parseFloat(f)})`,width:x,height:f}},M=lodashEs.debounce(()=>{D()},100),B=()=>{const J=window.MutationObserver;w=new J(M),w.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},L=()=>{w&&(w.disconnect(),w.takeRecords(),w=null)},V=vue.ref(!1),{touchRequest:$}=vue.inject(REQUEST_MODEL,{touchRequest:()=>{}}),N=vue.ref(""),T=()=>{var ee;const{title:J}=e,K=(ee=vue.unref(l))==null?void 0:ee.RECORD;return K?useVariablesInText(J,{textData:K},{useNewline:!1,useSpace:!1}):J},I=useEmitEvent(e),A=()=>{i&&(document.documentElement.style.overflow="hidden"),N.value=T(),V.value=!0},C=I("hideModal",()=>{r("close"),i&&(document.documentElement.style.overflow="hidden auto",n.value=[]),V.value=!1}),F=()=>{C()},_=()=>{C(),s()},{setModalModel:O,pushUseModalIds:U,popUseModalIds:q}=vue.inject(MODAL_MODEL,{pushUseModalIds:J=>{},popUseModalIds:()=>{},setModalModel:(J,K)=>{}}),H=vue.computed(()=>{let J=e.componentList;const K=lodashEs.cloneDeep(e.componentList),ee=a(),re=o(),ne={containerMap:ee,combinationMap:re};i&&(J=compatibleMobileList({...ne,componentList:K,sourceList:e.allComponentList})),J=handleScrollCombinations({...ne,componentList:J,sourceList:e.allComponentList});const ie=[];for(const le of J)if(le.type==="ecanCirculate"){const fe=moveToComponentList(ee,vue.unref(K),le.id);le.componentList=fe,ie.push(...fe.map(he=>he.id))}if(ie!=null&&ie.length)for(const le of ie){const fe=J.findIndex(he=>he.id===le);fe!==-1&&J.splice(fe,1)}return J}),j=()=>{const J=e.id;let K=[];const ee=e.componentList;Array.isArray(ee)&&(K=ee.map(re=>re.id),O(J,[...new Set(K)]))},G=vue.ref(!1),R={};for(const J of e.requestList)R[J.requestName]=useRequestData(J);vue.watch(()=>V.value,async J=>{if(J)k.value=!1,U(e.id),j(),await vue.nextTick(()=>{D(),window.addEventListener("resize",M),B(),k.value=!0}),$();else{for(const K in R)c(K,{});q(),window.removeEventListener("resize",M),L()}});const W=vue.computed(()=>vue.unref(b)>=1),Y=vue.computed(()=>e.fullModal),X=vue.computed(()=>{let J="ecan-modal";return vue.unref(W)&&(J+=" ecan-full-width-modal"),vue.unref(Y)&&(J+=" ecan-full-modal"),J});return useOnEvent(e,{showModal:A,hideModal:C}),{modalRef:P,containStyle:p,contentStyle:S,getContainer:u,modalStyle:h,modalWith:m,isFullModal:Y,style:y,visible:V,showModal:A,onOk:F,onCancel:_,isFullWidth:W,wrapClassName:X,ready:k,usedComponentList:H,isMobile:i,readyIds:n,hasOwn,onComponentReady:J=>{n.value.push(J)},formatTitle:N,requestLoaded:G}}}),Modal_vue_vue_type_style_index_0_scoped_000999c2_lang="",Modal_vue_vue_type_style_index_1_lang="";function _sfc_render$g(e,r,n,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,h)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:u.id+h},[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$e,[["render",_sfc_render$g],["__scopeId","data-v-000999c2"]]),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$d=vue.defineComponent({name:"EcanPie",props:{...pieComponentProps},components:{Spin,Echarts,EcanModal},setup(e,{expose:r}){const{pageMode:n,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({}),h=vue.computed(()=>{let{data:$=[]}=vue.unref(l)[0]||{};if(Array.isArray(e.colors)){const N=e.isUseLabelColors,T=e.colors;$=$.map((I,A)=>({label:N?{color:T[A]}:{},...I}))}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 N;o.value=!0,(N=c.value)==null||N.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:N=>{const{marker:T,seriesName:I,name:A,value:C,percent:F,data:_}=N||{};return useVariablesInText(e.tooltipFormatter,{textData:{marker:T,name:A,value:C,percent:F,a:I,b:A,c:C,d:F,..._}},{useNewline:!0,useSpace:!0})},textStyle:{color:e.tooltipTextStyleColor},position:e.tooltipPosition||void 0},legend:vue.unref(u),color:e.colors,series:[{data:$,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=()=>{const $=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:$+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:$}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,formatter:N=>{const{data:T}=l.value[0]||{};let I=0,A,C="0%";if(T)for(const F of T)F.name===N&&(A=+F.value),I+=+F.value;return I&&(C=`${(A/I*100).toFixed(2)}%`),getLegendFormat(e.legendFormatter,{name:N,value:A,percent:C})}}},f=()=>{o.value=!1},{getGlobalModel:g,setGlobalModel:v}=vue.inject(GLOBAL_MODEL,{getGlobalModel:$=>{},setGlobalModel:($,N)=>{}}),m=($=[],N)=>{const{dataset:T}=useTransformChartDataByAttrValue($,N);l.value=T},E=($=[],N)=>{const T=useTransformChartDataByAttrValue($,N);l.value=T.dataset};vue.watch(()=>e.data,$=>{(e.dataType==="static"||vue.unref(n)==="design")&&m($)},{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],()=>{x()},{immediate:!0});const b=vue.ref(!1),d=useRequestData(e,a,$=>{var N,T;m((T=(N=$==null?void 0:$.data)==null?void 0:N.data)==null?void 0:T.rows,e.valueTypeDataFieldNames)}),p=async()=>{var $,N;if(e.dataType==="request")try{b.value=!0;const T=await d();m((N=($=T==null?void 0:T.data)==null?void 0:$.data)==null?void 0:N.rows,e.valueTypeDataFieldNames)}catch(T){console.error(T)}finally{b.value=!1}},y=useEmitEvent(e);v(e.id,{type:e.type,RECORD:""});const S=y("click",$=>{const N=g(e.id);v(e.id,{...N,type:e.type,RECORD:$==null?void 0:$.data})}),k=$=>{var T;const{data:N}=($==null?void 0:$.data)||{};if(N){const{columns:I=[],rows:A=[]}=((T=$==null?void 0:$.data)==null?void 0:T.data)??{};let C=[];if(I.length>0){const F=I[0],_=I[1];C=A.filter(O=>!!O).map(O=>({name:O[F],value:isNaN(O[_])?0:O[_]||0}))}E(C)}},P=useIndicatorData(e,a,k),w=async()=>{try{b.value=!0;const $=await P();k($)}catch($){console.error($)}finally{b.value=!1}},{loadedData:D}=vue.inject(LOADED_DATA,{loadedData:{}}),M=vue.ref(!1);vue.watch(D,$=>{if(e.dataType==="indicator"){const N=getFixedValueDatas(e.graphicConfig);N!=null&&N.length&&(!vue.unref(M)&&canRequestIndicator(e.graphicConfig,$)?(M.value=!0,B()):canRequestIndicator(e.graphicConfig,$)||(M.value=!1))}},{deep:!0});const B=()=>{switch(e.dataType){case"indicator":canRequestIndicator(e.graphicConfig,vue.unref(D))&&w();break;case"request":p();break}};useOnEvent(e,{resetRecord:()=>{const $=e.id,N=g($);v($,{...N,RECORD:""})},refreshData:B,click:S}),r({refreshData:B});const{setRequest:V}=vue.inject(REQUEST_MODEL,{setRequest:$=>{}});return typeof V=="function"&&V({id:e.id,requestFn:B,sortNum:e.requestSort}),{option:h,style:s,click:S,onClose:f,loading:b,ecanModal:c,echartRef:a}}}),Pie_vue_vue_type_style_index_0_lang="";function _sfc_render$f(e,r,n,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$d,[["render",_sfc_render$f]]),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},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$c=vue.defineComponent({name:"EcanLine",props:{...lineComponentProps},components:{Spin,Echarts,EcanModal},setup(e,{expose:r}){const{pageMode:n,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(),h=vue.computed(()=>o.value?ZOOM_FONT_SIZE:12),x=vue.ref({});let f;const g=vue.ref([]),v=vue.computed(()=>{const I=e.xAxisLabelFormatter,A=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 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:h.value},show:e.tooltipShow,formatter:C=>{var U;const F=C.length;let _="",O=e.tooltipFormatter;f=(U=C[0])==null?void 0:U.data,O===""&&(O="{marker} {a} {c}");for(let q=0;q<F;q++){const{marker:H,seriesName:j,name:G,value:R,data:W}=C[q]||{};if(q===0){let Y=G;typeof G=="string"&&G[0]==="0"&&!isNaN(+G)&&(Y=(+G).toString()),_+=`${useValueFormatter(I,Y)}<br/>`}_+=useVariablesInText(O,{textData:{marker:H,name:G,value:R,a:j,b:G,c:R||0,...W}},{useNewline:!0,useSpace:!0}),_+="<br/>"}return _},position:e.tooltipPosition||void 0},xAxis:{type:"category",boundaryGap:e.isBoundaryGap,data:vue.unref(c).map(C=>{let F={};return C&&typeof C=="object"?F={...C}:F={value:C},F}),minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{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(A,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)}}),m=()=>{o.value=!1},{getGlobalModel:E,setGlobalModel:b}=vue.inject(GLOBAL_MODEL,{getGlobalModel:I=>{},setGlobalModel:(I,A)=>{}}),d=vue.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),p=(I=[],A=!1)=>{let C;if(e.dataFieldConfigType==="key"){const U=A?e.keyTypeDataFieldNames:null;C=useTransformChartDataByAttrKey(I,U)}else if(e.dataFieldConfigType==="value"){const U=A?e.valueTypeDataFieldNames:null;C=useTransformChartDataByAttrValue(I,U)}c.value=C.dimensions,g.value=C.dataset;const F=C.dataset,_=[],O=F.length;for(let U=0;U<O;U++){const q={};e.shadowColor&&(q.shadowColor=e.shadowColor,q.shadowBlur=e.shadowBlur,q.shadowOffsetY=e.shadowOffsetY,q.shadowOffsetX=e.shadowOffsetX),_.push({type:"line",...F[U],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[U]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[U],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...q},...vue.unref(d)})}l.value=_},y=(I=[],A,C=!1)=>{const _=useTransformChartDataByAttrKey(I,C?A:null,!0);c.value=_.dimensions,g.value=_.dataset;const O=_.dataset,U=[],q=O.length;for(let H=0;H<q;H++){const j={};e.shadowColor&&(j.shadowColor=e.shadowColor,j.shadowBlur=e.shadowBlur,j.shadowOffsetY=e.shadowOffsetY,j.shadowOffsetX=e.shadowOffsetX),U.push({type:"line",...O[H],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[H]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[H],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...j},...vue.unref(d)})}l.value=U};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(n)==="design")&&p(I)},{immediate:!0,deep:!0});const S=vue.ref(!1),k=useRequestData(e,a,I=>{var A,C;p((C=(A=I==null?void 0:I.data)==null?void 0:A.data)==null?void 0:C.rows,!0)}),P=async()=>{var I,A;if(e.dataType==="request")try{S.value=!0;const C=await k();p((A=(I=C==null?void 0:C.data)==null?void 0:I.data)==null?void 0:A.rows,!0)}catch(C){console.error(C)}finally{S.value=!1}},w=useEmitEvent(e);b(e.id,{type:e.type,RECORD:""});const D=w("click",I=>{const A=E(e.id);b(e.id,{...A,type:e.type,RECORD:e.tooltipShow?f:I.data})}),M=I=>{a.value.chart.containPixel("grid",[I.offsetX,I.offsetY])&&D()};e.tooltipShow?x.value["zr:click"]=M:x.value.click=D;const B=I=>{var _;const{columns:A=[],rows:C=[]}=((_=I==null?void 0:I.data)==null?void 0:_.data)??{};let F;A.length>0&&(F={name:A[0],types:A.slice(1).map(O=>({label:O,value:O}))}),y(C,F,!0)},L=useIndicatorData(e,a,B),V=async()=>{try{S.value=!0;const I=await L();B(I)}catch(I){console.error(I)}finally{S.value=!1}},$=()=>{switch(e.dataType){case"indicator":V();break;case"request":P();break}};useOnEvent(e,{refreshData:$,resetRecord:()=>{const I=e.id,A=E(I);b(I,{...A,RECORD:""})},click:D});const{setRequest:T}=vue.inject(REQUEST_MODEL,{setRequest:I=>{}});return typeof T=="function"&&T({id:e.id,requestFn:$,sortNum:e.requestSort}),r({refreshData:$}),{option:v,style:s,click:D,loading:S,onClose:m,ecanModal:u,eventObj:x,echartRef:a}}}),Line_vue_vue_type_style_index_0_lang="";function _sfc_render$e(e,r,n,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$c,[["render",_sfc_render$e]]),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},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$b=vue.defineComponent({name:"EcanBar",props:{...barComponentProps},components:{Spin,Echarts,EcanModal,AModal:antDesignVue.Modal},setup(e,{expose:r}){const{pageMode:n,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([]),h=usePickComponentStyle(e),x=vue.ref([]),f=vue.ref(),g=vue.ref({});let v;const m=vue.computed(()=>s.value?ZOOM_FONT_SIZE:12),E=vue.computed(()=>{const{gradientShow:j,gradientColors:G,gradientOffset:R,barBorderRadius:W}=e,Y=vue.unref(x),X=Y.length,Z=[];for(let J=0;J<X;J++){const K={...Y[J],type:"bar",barWidth:e.barWidth.value+e.barWidth.suffix,showBackground:e.showBarBackground};if(e.isStack&&(K.stack="stack"),K.label={show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor,width:e.labelWidth,overflow:e.labelOverflow,formatter:ee=>{let re="",ne=e.labelFormatter;ne===""&&(ne="{c}");const{seriesName:ie,name:le,value:fe,data:he}=ee||{};return re+=useVariablesInText(ne,{textData:{name:le,value:fe,a:ie,b:le,c:fe||0,...he}},{useNewline:!0,useSpace:!0}),re}},K.itemStyle={},j&&(K.itemStyle={color:{x:e.isUseHorizontalAxis?1:0,y:0,x2:0,y2:e.isUseHorizontalAxis?0:1,colorStops:[{offset:0,color:e.colors[J]},{offset:R,color:G[J]},{offset:1,color:G[J]}]}}),W){const ee=W.split(",");if(ee!=null&&ee.length){const re=[];for(const ne of ee){const ie=parseFloat(ne);isNaN(ie)||re.push(ie)}K.itemStyle.borderRadius=re}}e.isShowMarkLine&&(K.markLine={data:[{type:e.markLineType}]}),Z.push(K)}return Z}),b=vue.ref([]),d=vue.ref(!1),p=vue.computed(()=>{const j=e.yAxisLabelFormatter,G=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 R=o.value.chart.getOption(),{xAxis:W}=R||{};W&&W.length&&(u.value=W[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 R;s.value=!0,(R=f.value)==null||R.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:R=>{var Z;const W=R.length;let Y="",X=e.tooltipFormatter;v=(Z=R[0])==null?void 0:Z.data,X===""&&(X="{marker} {a} {c}");for(let J=0;J<W;J++){const{marker:K,seriesName:ee,name:re,value:ne,data:ie}=R[J]||{};if(J===0){let le=re;typeof re=="string"&&re[0]==="0"&&!isNaN(+re)&&(le=(+re).toString()),Y+=`${useValueFormatter(G,le)}<br/>`}Y+=useVariablesInText(X,{textData:{marker:K,name:re,value:ne,a:ee,b:re,c:ne||0,...ie}},{useNewline:!0,useSpace:!0}),Y+="<br/>"}return Y},textStyle:{color:e.tooltipTextStyleColor,fontSize:m.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((R,W)=>({name:R.name,itemStyle:{color:e.colors[W]},icon:e.legendType})),formatter:R=>getLegendFormat(e.legendFormatter,{name:R})},xAxis:{type:e.isUseHorizontalAxis?"value":"category",data:e.isUseHorizontalAxis?null:vue.unref(P),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:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter(R){return typeof R=="string"&&R[0]==="0"&&!isNaN(+R)&&(R=(+R).toString()),useValueFormatter(G,R)}},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(R){return useValueFormatter(j,R)}},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},S=(j=[],G=!1)=>{let R={};if(e.dataFieldConfigType==="key"){const W=G?e.keyTypeDataFieldNames:null;R=useTransformChartDataByAttrKey(j,W)}else if(e.dataFieldConfigType==="value"){const W=G?e.valueTypeDataFieldNames:null;R=useTransformChartDataByAttrValue(j,W)}x.value=R.dataset,b.value=R.dimensions},k=(j=[],G,R=!1)=>{const Y=useTransformChartDataByAttrKey(j,R?G:null,!0);e.defaultRangeValue&&setDefaultRangeVal({props:e,componentList:vue.unref(a),getGlobalModel:F},Y),x.value=Y.dataset,b.value=Y.dimensions},P=vue.computed(()=>vue.unref(b).map(j=>{let G={};return j&&typeof j=="object"?G={...j}:G={value:j},G}));vue.watch(()=>[e.data,e.labelFormatter,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([j])=>{(e.dataType==="static"||vue.unref(n)==="design")&&S(j)},{immediate:!0,deep:!0});const w=useRequestData(e,o,j=>{var G,R;S((R=(G=j==null?void 0:j.data)==null?void 0:G.data)==null?void 0:R.rows,!0)}),D=async()=>{var j,G;try{d.value=!0;const R=await w();S((G=(j=R==null?void 0:R.data)==null?void 0:j.data)==null?void 0:G.rows,!0)}catch(R){console.error(R)}finally{d.value=!1}},M=j=>{var Y;const{columns:G=[],rows:R=[]}=((Y=j==null?void 0:j.data)==null?void 0:Y.data)??{};let W;G.length>0&&(W={name:G[0],types:G.slice(1).map(X=>({label:X,value:X}))}),k(R,W,!0)},B=useIndicatorData(e,o,M),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:{}}),$=vue.ref(!1);vue.watch(V,j=>{if(e.dataType==="indicator"){const G=getFixedValueDatas(e.graphicConfig);G!=null&&G.length&&(!vue.unref($)&&canRequestIndicator(e.graphicConfig,j)?($.value=!0,N()):canRequestIndicator(e.graphicConfig,j)||($.value=!1))}},{deep:!0});const N=()=>{switch(e.dataType){case"indicator":canRequestIndicator(e.graphicConfig,vue.unref(V))&&L();break;case"request":D();break}},T=(j,G)=>!!vue.unref(u)[G.value].value.includes(j),I=async()=>{l.value=!1;const j=o.value.chart.getOption();for(let G=0;G<7;G++)await A(j,G)},A=(j,G)=>new Promise(R=>{setTimeout(()=>{const{series:W,color:Y,xAxis:X}=j,Z=o.value.chart,{splitArea:J={}}=X[0]||{};W.forEach((K,ee)=>{const re=K.data;let ne="";G%2?ne=Y[ee]+"a8":ne=Y[ee],re[c.value].itemStyle={color:ne}}),G%2?(J.show=!0,J.areaStyle.color=vue.unref(u).map((K,ee)=>ee===c.value?"#ff003b26":"")):J.show=!1,Z.setOption({series:W,xAxis:X}),R()},200)});r({refreshData:N});const C=useEmitEvent(e),{getGlobalModel:F,setGlobalModel:_}=vue.inject(GLOBAL_MODEL,{getGlobalModel:j=>{},setGlobalModel:(j,G)=>{}});_(e.id,{type:e.type,RECORD:""});const O=C("click",j=>{const G=F(e.id);_(e.id,{...G,type:e.type,RECORD:e.tooltipShow?v:j.data})}),{setRequest:U}=vue.inject(REQUEST_MODEL,{setRequest:j=>{}});typeof U=="function"&&U({id:e.id,requestFn:N,sortNum:e.requestSort});const q=()=>{const j=e.id,G=F(j);_(j,{...G,RECORD:""})},H=j=>{o.value.chart.containPixel("grid",[j.offsetX,j.offsetY])&&O()};return e.tooltipShow?g.value["zr:click"]=H:g.value.click=O,useOnEvent(e,{refreshData:N,click:O,resetRecord:q}),{option:p,style:h,refreshData:N,click:O,loading:d,onClose:y,ecanModal:f,echartRef:o,handleLocationOk:I,onFilterOption:T,locationVisible:l,locationValue:c,locationNames:u,eventObj:g}}}),Bar_vue_vue_type_style_index_0_lang="",Bar_vue_vue_type_style_index_1_scoped_084ccc5c_lang="",_withScopeId$3=e=>(vue.pushScopeId("data-v-084ccc5c"),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$d(e,r,n,i,a,o){const s=vue.resolveComponent("echarts"),l=vue.resolveComponent("spin"),c=vue.resolveComponent("ecan-modal"),u=vue.resolveComponent("a-select-option"),h=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":r[1]||(r[1]=f=>e.locationVisible=f),title:"快速定位",onOk:e.handleLocationOk},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$8,[_hoisted_2$5,vue.createVNode(h,{value:e.locationValue,"onUpdate:value":r[0]||(r[0]=f=>e.locationValue=f),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,(f,g)=>(vue.openBlock(),vue.createBlock(u,{key:g,value:g},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(f.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const Bar=_export_sfc$1(_sfc_main$b,[["render",_sfc_render$d],["__scopeId","data-v-084ccc5c"]]),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},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$a=vue.defineComponent({name:"EcanScatter",props:{...scatterComponentProps},components:{Spin,Echarts,EcanModal},setup(e,{expose:r}){const{pageMode:n,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),h=vue.ref(),x=vue.ref(),f=vue.ref(),g=vue.ref(),v=vue.computed(()=>{const{xAxisMarkLineValue:C=[],yAxisMarkLineValue:F=[]}=e,_=C.map(q=>({...q,x:!0})),O=F.map(q=>({...q,y:!0})),U=_.concat(O);if(U!=null&&U.length){const q=[],H={label:{show:!1}};for(const j of U){let G=j.value;const R=G.match(/\{(.+?)\}/g);let W="";if(j.x?W="xAxis":j.y&&(W="yAxis"),R!=null&&R.length){for(const Y of R)G=G.replace(Y,Y.slice(1,-1));if(G){const Y=runCode(G,{max:j.x?vue.unref(h):j.y?vue.unref(f):0,min:j.x?vue.unref(x):j.y?vue.unref(g):0});isNaN(+Y)||q.push({[W]:+Y,...H})}}else isNaN(+j.value)||q.push({[W]:j.value,...H})}return{symbol:["none","none"],data:q}}else return{data:[]}});function m(C,F,_){switch(F){case"startX":C[0].coord[0]=+_;break;case"startY":C[0].coord[1]=+_;break;case"endX":C[1].coord[0]=+_;break;case"endY":C[1].coord[1]=+_;break}}const E=vue.computed(()=>{const{axisMarkArea:C=[]}=e;if(C!=null&&C.length){const F=[];for(const _ of C){const O=[{name:"",coord:[],itemStyle:{color:_.color}},{coord:[]}];for(const U in _)if(U!=="color"){let q=_[U];const H=q.match(/\{(.+?)\}/g);if(H!=null&&H.length){for(const j of H)q=q.replace(j,j.slice(1,-1));if(q){const j=runCode(q,{xMax:vue.unref(h),xMin:vue.unref(x),yMax:vue.unref(f),yMin:vue.unref(g)});isNaN(+j)||m(O,U,j)}}else isNaN(+_[U])||m(O,U,_[U])}O.every(U=>{var q;return(q=U.coord)==null?void 0:q.length})&&F.push(O)}return{data:F}}else return{data:[]}}),b=vue.computed(()=>{const C=e.xAxisLabelFormatter,F=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:10,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{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(C,_)}},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:10,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(F,_)}},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 R;const{marker:O,seriesName:U,componentType:q}=_,H=((R=_==null?void 0:_.data)==null?void 0:R.record)??{},j=H[vue.unref(S).name],G=H[vue.unref(S).value];return["markLine","markArea"].includes(q)?"":useVariablesInText(e.tooltipFormatter,{textData:{marker:O,seriesName:U,a:U,b:j,c:G,...H}},{useNewline:!0,useSpace:!0})},axisPointer:{type:"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:v.value,markArea:E.value}]}}),{getGlobalModel:d,setGlobalModel:p}=vue.inject(GLOBAL_MODEL,{getGlobalModel:C=>{},setGlobalModel:(C,F)=>{}}),y=()=>{const C=vue.unref(a).chart.getModel().getComponent("yAxis").axis.scale._extent,F=vue.unref(a).chart.getModel().getComponent("xAxis").axis.scale._extent;F&&C&&(x.value=F[0],h.value=F[1],g.value=C[0],f.value=C[1])},S=vue.computed(()=>{let C=e.dataFieldNames;if(e.dataType==="indicator"){const{formFields:F={}}=e.graphicConfig;F!=null&&F.labelField&&(F!=null&&F.valueField)&&(C={name:F.labelField,value:F.valueField})}return C}),k=(C=[])=>{const{name:F="name",value:_="value"}=vue.unref(S)||{};l.value=C.map(O=>({value:[O[F],O[_]],record:O})),setTimeout(()=>{y()},0)};vue.watch(()=>e.data,C=>{(e.dataType==="static"||vue.unref(n)==="design")&&k(C)},{immediate:!0,deep:!0});const P=vue.ref(!1),w=useRequestData(e,a,C=>{var F,_;k((_=(F=C==null?void 0:C.data)==null?void 0:F.data)==null?void 0:_.rows)}),D=async()=>{var C,F;if(e.dataType==="request"){P.value=!0;try{const _=await w();k((F=(C=_==null?void 0:_.data)==null?void 0:C.data)==null?void 0:F.rows)}catch(_){console.error(_)}finally{P.value=!1}}},M=()=>{o.value=!1},B=useEmitEvent(e);p(e.id,{type:e.type,RECORD:""});const L=B("click",C=>{const F=e.id,_=d(F);p(F,{..._,type:e.type,RECORD:C==null?void 0:C.data})}),V=C=>{var F,_;k((_=(F=C==null?void 0:C.data)==null?void 0:F.data)==null?void 0:_.rows)},$=useIndicatorData(e,a,V),N=async()=>{try{P.value=!0;const C=await $();V(C)}catch(C){console.error(C)}finally{P.value=!1}},T=()=>{switch(e.dataType){case"indicator":N();break;case"request":D();break}};useOnEvent(e,{refreshData:T,click:L,resetRecord:()=>{const C=e.id,F=d(C);p(C,{...F,RECORD:""})}});const{setRequest:A}=vue.inject(REQUEST_MODEL,{setRequest:C=>{}});return typeof A=="function"&&A({id:e.id,requestFn:T,sortNum:e.requestSort}),r({refreshData:T}),{option:b,style:s,click:L,loading:P,onClose:M,ecanModal:c,echartRef:a}}}),Scatter_vue_vue_type_style_index_0_lang="";function _sfc_render$c(e,r,n,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$a,[["render",_sfc_render$c]]),EcanScatter=withInstall$1(Scatter),customGraphProps={...props,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:"",graphicType:"ecanCustomGraph"},customGraphComponentProps=transformToComponentProps(customGraphProps),_sfc_main$9=vue.defineComponent({name:"EcanCustomGraph",props:{...customGraphComponentProps},components:{Echarts},setup(e){const r=usePickComponentStyle(e),n=vue.ref();return vue.watch(()=>e.optionCode,i=>{try{const a=eval;n.value=a(i)}catch(a){console.error(a)}},{immediate:!0}),{style:r,myOption:n,echarts:echarts__namespace}}});function _sfc_render$b(e,r,n,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$9,[["render",_sfc_render$b]]),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},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$8=vue.defineComponent({name:"EcanComboGraph",props:{...comboGraphComponentProps},components:{Spin,Echarts,EcanModal,AModal:antDesignVue.Modal},setup(e,{expose:r}){const{pageMode:n,fontFamily:i}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),a=vue.inject("usedComponentList",[]),{getGlobalModel:o,setGlobalModel:s}=vue.inject(GLOBAL_MODEL,{getGlobalModel:G=>{},setGlobalModel:(G,R)=>{}}),l=vue.ref(),c=vue.ref(!1),u=vue.ref(!1),h=vue.ref(null),x=vue.ref([]),f=vue.ref({});let g;const v=usePickComponentStyle(e),m=vue.ref([]),E=vue.ref([]),b=vue.ref(),d=vue.ref([]),p=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 G=l.value.chart.getOption(),{xAxis:R}=G||{};R&&R.length&&(x.value=R[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 G;c.value=!0,(G=b.value)==null||G.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((G,R)=>({name:G.name,itemStyle:{color:e.colors[R]},icon:e.legendType})),formatter:G=>getLegendFormat(e.legendFormatter,{name:G})},tooltip:{trigger:"axis",show:e.tooltipShow,formatter:G=>{var Z;const R=G.length;let W="",Y=e.tooltipFormatter;g=(Z=G[0])==null?void 0:Z.data,Y===""&&(Y="{marker} {a} {c}");const X=e.seriesTypes;for(let J=0;J<R;J++){const K=X[J],{tooltipFormatter:ee}=K||{},{marker:re,seriesName:ne,name:ie,value:le,data:fe}=G[J]||{};if(J===0){let he=ie;typeof ie=="string"&&ie[0]==="0"&&!isNaN(+ie)&&(he=(+ie).toString()),W+=`${useValueFormatter(e.xAxisLabelFormatter,he)}<br/>`}W+=useVariablesInText(ee||Y,{textData:{marker:re,name:ie,value:le,seriesName:ne,a:ne,b:ie,c:le||0,...fe}},{useNewline:!0,useSpace:!0}),W+="<br/>"}return W},textStyle:{color:e.tooltipTextStyleColor,fontSize:p.value},position:e.tooltipPosition||void 0},xAxis:{minInterval:e.xAxisMinInterval,type:"category",data:vue.unref(E).map(G=>{let R={};return G&&typeof G=="object"?R={...G}:R={value:G},R}),splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter(G){return typeof G=="string"&&G[0]==="0"&&!isNaN(+G)&&(G=(+G).toString()),useValueFormatter(e.xAxisLabelFormatter,G)}},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(D),series:vue.unref(m)})),S=()=>{c.value=!1},k=(G=[],R=!1)=>{let W;if(e.dataFieldConfigType==="key"){const X=R?e.keyTypeDataFieldNames:null;W=useTransformChartDataByAttrKey(G,X)}else if(e.dataFieldConfigType==="value"){const X=R?e.valueTypeDataFieldNames:null;W=useTransformChartDataByAttrValue(G,X)}E.value=W.dimensions;const Y=W.dataset;d.value=W.dataset,m.value=w(Y)},P=(G=[],R,W=!1)=>{const X=useTransformChartDataByAttrKey(G,W?R:null,!0);e.defaultRangeValue&&setDefaultRangeVal({props:e,componentList:vue.unref(a),getGlobalModel:o},X),E.value=X.dimensions;const Z=X.dataset;d.value=X.dataset,m.value=w(Z)};function w(G){const R=[],W=G.length,Y=e.seriesTypes;for(let X=0;X<W;X++){const Z=Y[X],{type:J,axisIndex:K}=Z||{};let ee={type:J,yAxisIndex:K,...G[X]};if(J==="line"){const re={};e.shadowColor&&(re.shadowColor=e.shadowColor,re.shadowBlur=e.shadowBlur,re.shadowOffsetY=e.shadowOffsetY,re.shadowOffsetX=e.shadowOffsetX),ee={...ee,symbolSize:e.symbolSize,smooth:e.smooth,itemStyle:{color:e.colors[X]},areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[X]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[X],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...re}}}if(J==="bar"){const{gradientShow:re,gradientColors:ne,gradientOffset:ie}=e,le={color:e.colors[X]};if(e.barBorderRadius){const fe=e.barBorderRadius.split(",");if(fe!=null&&fe.length){const he=[];for(const ye of fe){const be=parseFloat(ye);isNaN(be)||he.push(be)}le.borderRadius=he}}re&&(le.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[X]},{offset:ie,color:ne[X]},{offset:1,color:ne[X]}]}),ee={...ee,barWidth:e.barWidth.value+e.barWidth.suffix,itemStyle:le}}e.isShowMarkLine&&(ee.markLine={data:[{type:e.markLineType}]}),R.push(ee)}return R}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],([G])=>{(e.dataType==="static"||vue.unref(n)==="design")&&k(G)},{immediate:!0,deep:!0});const D=vue.computed(()=>{const G=e.yAxis;return G==null?void 0:G.map((R,W)=>({type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:W===0?e.yAxisLeftSplitLineShow:e.yAxisRightSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:W===0?e.yAxisLeftSplitLineType:e.yAxisRightSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter(Y){return useValueFormatter(R.axisLabelFormatter,Y)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:W===0?e.yAxisLeftName:e.yAxisRightName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:W===0?"right":"left"},max:e.yAxisMaxValue||null}))}),M=vue.ref(!1),B=useRequestData(e,l,G=>{var R,W;k((W=(R=G==null?void 0:G.data)==null?void 0:R.data)==null?void 0:W.rows,!0)}),L=async()=>{var G,R;if(e.dataType==="request")try{M.value=!0;const W=await B();k((R=(G=W==null?void 0:W.data)==null?void 0:G.data)==null?void 0:R.rows,!0)}catch(W){console.error(W)}finally{M.value=!1}},V=G=>{var X;const{columns:R=[],rows:W=[]}=((X=G==null?void 0:G.data)==null?void 0:X.data)??{};let Y;R.length>0&&(Y={name:R[0],types:R.slice(1).map(Z=>({label:Z,value:Z}))}),P(W,Y,!0)},$=useIndicatorData(e,l,V),N=async()=>{try{M.value=!0;const G=await $();V(G)}catch(G){console.error(G)}finally{M.value=!1}},{loadedData:T}=vue.inject(LOADED_DATA,{loadedData:{}}),I=vue.ref(!1);vue.watch(T,G=>{if(e.dataType==="indicator"){const R=getFixedValueDatas(e.graphicConfig);R!=null&&R.length&&(!vue.unref(I)&&canRequestIndicator(e.graphicConfig,G)?(I.value=!0,A()):canRequestIndicator(e.graphicConfig,G)||(I.value=!1))}},{deep:!0});const A=()=>{switch(e.dataType){case"indicator":canRequestIndicator(e.graphicConfig,vue.unref(T))&&N();break;case"request":L();break}},C=(G,R)=>!!vue.unref(x)[R.value].value.includes(G),F=async()=>{u.value=!1;const G=l.value.chart.getOption();for(let R=0;R<7;R++)await _(G,R)},_=(G,R)=>new Promise(W=>{setTimeout(()=>{const{series:Y,color:X,xAxis:Z}=G,J=l.value.chart,{splitArea:K={}}=Z[0]||{};Y.forEach((ee,re)=>{const ne=ee.data;let ie="";R%2?ie=X[re]+"a8":ie=X[re],ne[h.value].itemStyle={color:ie}}),R%2?(K.show=!0,K.areaStyle.color=vue.unref(x).map((ee,re)=>re===h.value?"#ff003b26":"")):K.show=!1,J.setOption({series:Y,xAxis:Z}),W()},200)});r({refreshData:A});const O=useEmitEvent(e);s(e.id,{type:e.type,RECORD:""});const U=O("click",G=>{const R=o(e.id);s(e.id,{...R,type:e.type,RECORD:e.tooltipShow?g:G==null?void 0:G.data})}),q=G=>{l.value.chart.containPixel("grid",[G.offsetX,G.offsetY])&&U()};e.tooltipShow?f.value["zr:click"]=q:f.value.click=U;const{setRequest:H}=vue.inject(REQUEST_MODEL,{setRequest:G=>{}});return typeof H=="function"&&H({id:e.id,requestFn:A,sortNum:e.requestSort}),useOnEvent(e,{resetRecord:()=>{const G=e.id,R=o(G);s(G,{...R,RECORD:""})},refreshData:A,click:U}),{style:v,option:y,click:U,loading:M,onClose:S,ecanModal:b,echartRef:l,handleLocationOk:F,onFilterOption:C,locationVisible:u,locationValue:h,locationNames:x,eventObj:f}}}),ComboGraph_vue_vue_type_style_index_0_lang="",ComboGraph_vue_vue_type_style_index_1_scoped_5d5326d7_lang="",_withScopeId$2=e=>(vue.pushScopeId("data-v-5d5326d7"),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$a(e,r,n,i,a,o){const s=vue.resolveComponent("echarts"),l=vue.resolveComponent("spin"),c=vue.resolveComponent("ecan-modal"),u=vue.resolveComponent("a-select-option"),h=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":r[1]||(r[1]=f=>e.locationVisible=f),title:"快速定位",onOk:e.handleLocationOk},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$7,[_hoisted_2$4,vue.createVNode(h,{value:e.locationValue,"onUpdate:value":r[0]||(r[0]=f=>e.locationValue=f),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,(f,g)=>(vue.openBlock(),vue.createBlock(u,{key:g,value:g},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(f.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const ComboGraph=_export_sfc$1(_sfc_main$8,[["render",_sfc_render$a],["__scopeId","data-v-5d5326d7"]]),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$7=vue.defineComponent({name:"EcanRadar",props:{...radarComponentProps},components:{Spin,Echarts,EcanModal},setup(e,{expose:r}){const{pageMode:n,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),h=vue.ref([]),x=vue.ref(e.valueTypeDataFieldNames.name),f=vue.computed(()=>{const N=vue.unref(h),T=N.length,I=[];for(let A=0;A<T;A++){const{name:C,data:F=[]}=N[A],_=[{name:C,value:F.map(q=>q.value)}];let O=e.colors[A];if(e.gradientShow){const{gradientOffset:q,gradientColors:H}=e;O={x:.7,y:0,x2:0,y2:0,colorStops:[{offset:0,color:e.colors[A]},{offset:q,color:H[A]},{offset:1,color:H[A]}]}}const U={type:"radar",name:C,data:_,areaStyle:{color:O,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:q=>{const{data:H,value:j}=q;let G=0,R="0%";if(H)for(const W of H.value)G+=+W;return G&&(R=`${(j/G*100).toFixed(2)}%`),useVariablesInText(e.labelFormatter,{textData:{value:j,percent:R}},{useNewline:!1,useSpace:!1})}}};I.push(U)}return I}),g=vue.computed(()=>{var C;const N=[],T=[],I=vue.unref(h),A=I.length;for(let F=0;F<A;F++){const{data:_=[]}=I[F];for(let O=0;O<_.length;O++)T.push(_[O].value)}if((C=l.value)!=null&&C.length){const F=T!=null&&T.length?Math.max(...T)*1.2:0;for(const _ of l.value)N.push({name:_,max:F})}return N}),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 N;o.value=!0,(N=c.value)==null||N.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:N=>{let T="",I=e.tooltipFormatter;I===""&&(I="{marker} {a} {c}");for(let A=0;A<vue.unref(g).length;A++){const C=vue.unref(g)[A],{marker:F,seriesName:_,value:O}=N||{};A===0&&_&&(T+=`${_}<br/>`),T+=useVariablesInText(I,{textData:{marker:F,name:C.name,value:O[A],a:C.name,b:C.name,c:O[A]||0,type:_}},{useNewline:!0,useSpace:!0}),T+="<br/>"}return T},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(h).map(N=>({name:N.name,icon:e.legendType})),formatter:N=>getLegendFormat(e.legendFormatter,{name:N})},series:vue.unref(f)})),m=()=>{o.value=!1},{getGlobalModel:E,setGlobalModel:b}=vue.inject(GLOBAL_MODEL,{getGlobalModel:N=>{},setGlobalModel:(N,T)=>{}}),d=(N=[],T=!1)=>{let I;if(e.dataFieldConfigType==="key"){const A=T?e.keyTypeDataFieldNames:null;I=useTransformChartDataByAttrKey(N,A)}else if(e.dataFieldConfigType==="value"){const A=T?e.valueTypeDataFieldNames:null;I=useTransformChartDataByAttrValue(N,A)}l.value=I.dimensions,h.value=I.dataset},p=(N=[],T,I=!1)=>{const C=useTransformChartDataByAttrKey(N,I?T:null,!0);l.value=C.dimensions,h.value=C.dataset};vue.watch(()=>[e.data,e.areaStyleOpacity,e.legendFontSize,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll,e.labelFormatter],([N])=>{(e.dataType==="static"||vue.unref(n)==="design")&&d(N)},{immediate:!0,deep:!0});const y=vue.ref(!1),S=useRequestData(e,a,N=>{var T,I;d((I=(T=N==null?void 0:N.data)==null?void 0:T.data)==null?void 0:I.rows,!0)}),k=async()=>{var N,T;if(e.dataType==="request")try{y.value=!0;const I=await S();d((T=(N=I==null?void 0:I.data)==null?void 0:N.data)==null?void 0:T.rows,!0)}catch(I){console.error(I)}finally{y.value=!1}},P=useEmitEvent(e);b(e.id,{type:e.type,RECORD:""});const w=N=>{const T=N.event.topTarget.__dimIdx;T!==void 0&&P("click",()=>{var F;const{value:I,name:A}=N.data||{},C=E(e.id);b(e.id,{...C,type:e.type,RECORD:{[vue.unref(x)]:((F=vue.unref(g)[T])==null?void 0:F.name)||"",[A]:I[T],seriesName:A}})})()},D=N=>{var C;const{columns:T=[],rows:I=[]}=((C=N==null?void 0:N.data)==null?void 0:C.data)??{};let A;T.length>0&&(x.value=T[0],A={name:T[0],types:T.slice(1).map(F=>({label:F,value:F}))}),p(I,A,!0)},M=useIndicatorData(e,a,D),B=async()=>{try{y.value=!0;const N=await M();D(N)}catch(N){console.error(N)}finally{y.value=!1}},L=()=>{switch(e.dataType){case"indicator":B();break;case"request":k();break}};useOnEvent(e,{refreshData:L,resetRecord:()=>{const N=e.id,T=E(N);b(N,{...T,RECORD:""})},click:w});const{setRequest:$}=vue.inject(REQUEST_MODEL,{setRequest:N=>{}});return typeof $=="function"&&$({id:e.id,requestFn:L,sortNum:e.requestSort}),r({refreshData:L}),{option:v,style:s,click:w,loading:y,onClose:m,ecanModal:c,echartRef:a}}}),Radar_vue_vue_type_style_index_0_lang="";function _sfc_render$9(e,r,n,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$7,[["render",_sfc_render$9]]),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$6=vue.defineComponent({name:"EcanBorder",props:{...borderComponentProps},setup(e){const r=usePickComponentStyle(e,["background"]),n=vue.computed(()=>{const{isTransparent:v,gradientShow:m,gradientColor:E,gradientOffset:b,gradientAngle:d,backgroundColor:p}=e;if(m){let y=E;return v&&(y="transparent"),y?{background:`linear-gradient(${d}, ${p}, ${y} ${b*100}%)`}:{}}else return{}}),i=vue.computed(()=>{const{events:v}=e;let m={};return v!=null&&v.length&&v.find(b=>b.emit==="showModal")&&(m={cursor:"pointer"}),m}),{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,m=[],E={};if(v){const b=v.split(",");for(const d of b)(+d||+d==0)&&m.push(+d+"px")}return m!=null&&m.length&&(E.borderRadius=m.join(" ")),E}),x=useEmitEvent(e)("click",()=>{}),f=vue.ref([]);vue.watch(()=>e.data,v=>{f.value=v},{immediate:!0,deep:!0}),useOnEvent(e,{click:x});const{setGlobalModel:g}=vue.inject(GLOBAL_MODEL,{setGlobalModel:(v,m)=>{}});return g(e.id,{type:e.type,value:f}),{style:r,gradientStyle:n,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$8(e,r,n,i,a,o){return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-border",style:vue.normalizeStyle({...e.style,...e.gradientStyle,...e.borderRadiusStyle,...e.cursorStyle}),onClick:r[0]||(r[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$6,[["render",_sfc_render$8],["__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$5=vue.defineComponent({name:"EcanTabs",props:{...tabsComponentProps},components:{ASelect:antDesignVue.Select,ASelectOption:antDesignVue.SelectOption,MarqueeScroll},setup(e){const r=usePickComponentStyle(e),n=vue.ref(0);vue.watch(()=>e.activeKey,w=>{n.value=w},{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=w=>{const D=vue.unref(l)[w],M=[];if(D)for(const B in D)for(const L of D[B]){const V=vue.unref(o).find($=>$.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 h=null;const x=()=>{const w=Array.isArray(vue.unref(g))?vue.unref(g).length-1:0;vue.unref(i)!=="design"&&!e.isAutoScroll&&e.autoSwitch&&w>0&&(h=setInterval(()=>{const D=vue.unref(n)+1;D<=w?n.value=D:n.value=0,v.value=vue.unref(g)[vue.unref(n)],d()},e.autoSwitchInterval*1e3))},f=()=>{clearInterval(h)};vue.onMounted(()=>{vue.unref(i)!=="design"&&x()}),vue.onBeforeUnmount(()=>{f()});const g=vue.ref([]),v=vue.ref({});vue.watch(()=>e.data,w=>{g.value=w,v.value=Array.isArray(w)&&w.length>0?w[0]:{}},{immediate:!0,deep:!0});const m=w=>n.value===w,E=useEmitEvent(e),{setGlobalModel:b}=vue.inject(GLOBAL_MODEL,{setGlobalModel:(w,D)=>{}});b(e.id,{RECORD:vue.unref(v),value:vue.unref(v),activeKey:n});const{emitRefreshPage:d}=vue.inject(REFRESH_PAGE,{emitRefreshPage:()=>{}}),p=w=>{let{tab:D,index:M}=w||{};if(w.label){const B=vue.unref(g).findIndex(L=>L.title===w.label);B!==-1&&(M=B,D=vue.unref(g)[B])}E("tabChange",()=>{!isNaN(+M)&&M!==vue.unref(n)&&(v.value=D,n.value=M,b(e.id,{RECORD:D,value:D,activeKey:M}),d())})()},y=vue.computed(()=>{const w=e.componentList.map(D=>parseFloat(D.left)+parseFloat(D.width)).sort((D,M)=>M-D)[0];return{width:w?w+"px":"100%"}}),S=()=>{vue.unref(i)!=="design"&&f()},k=w=>{var D,M;return w?(M=(D=w==null?void 0:w.parentNode)==null?void 0:D.className)!=null&&M.includes("ecan-")?w.parentNode.getAttribute("cpntid"):k(w.parentNode):""},P=w=>{var D;if(vue.unref(i)!=="design"){const M=(w==null?void 0:w.toElement)||{};if((D=M==null?void 0:M.className)!=null&&D.includes("ecan-"))vue.unref(u).includes(M.getAttribute("cpntid"))||x();else if((M==null?void 0:M.className)==="page-config")x();else{const B=k(M);vue.unref(u).includes(B)||x()}}};return useOnEvent(e,{tabChange:p}),{style:r,activeKey:n,isActive:m,tabChange:p,myData:g,useImagePath,pageMode:i,scrollWrapStyle:y,onMouseEnter:S,onMouseLeave:P}}}),Tabs_vue_vue_type_style_index_0_scoped_c936183e_lang="",_hoisted_1$5=["id"],_hoisted_2$2=["onClick"];function _sfc_render$7(e,r,n,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:r[0]||(r[0]=(...u)=>e.onMouseEnter&&e.onMouseEnter(...u)),onMouseleave:r[1]||(r[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,h)=>(vue.openBlock(),vue.createElementBlock("div",{class:"tab",style:vue.normalizeStyle({padding:`5px ${e.tabHorizontalPadding}`,color:e.isActive(h)?e.activeTabColor:e.tabColor,backgroundImage:e.isActive(h)?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:h,onClick:vue.withModifiers(x=>e.tabChange({tab:u,index:h}),["prevent","stop"])},[vue.createElementVNode("div",{class:"tab-inner",style:vue.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.isActive(h)?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,h)=>(vue.openBlock(),vue.createBlock(s,{key:h,value:h,onClick:x=>e.tabChange({tab:u,index:h})},{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$5,[["render",_sfc_render$7],["__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((r,n)=>(n&=63,n<36?r+=n.toString(36):n<62?r+=(n-26).toString(36).toUpperCase():n>62?r+="-":r+="_",r),"");const _sfc_main$4=vue.defineComponent({name:"EcanCirculate",props:{...circulateComponentProps,sourceLeft:String,sourceTop:String,sourceWidth:Number},components:{MarqueeScroll,Skeleton},setup(e,{expose:r}){const n=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:w=>{},setGlobalModel:(w,D)=>{}}),c=vue.ref([]),u=vue.ref({}),{pageMode:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),x=vue.computed(()=>{if(vue.unref(o)){const w=document.body.clientWidth,D=e.sourceWidth||parseFloat(e.width);return w/D||1}else return 1});function f(w,D){const M=D.find(B=>B.id===e.id);if(M)for(const B of w)B.left=parseFloat(B.left)-parseFloat(M.sourceLeft||M.left)+"px",B.top=parseFloat(B.top)-parseFloat(M.sourceTop||M.top)+"px"}const g=w=>{const D=w.sort((V,$)=>parseFloat(V.top)-parseFloat($.top))[0],M=w.sort((V,$)=>parseFloat(V.left)-parseFloat($.left))[0],B=w.map(V=>parseFloat(V.left)+parseFloat(V.width)).sort((V,$)=>$-V)[0],L=w.map(V=>parseFloat(V.top)+parseFloat(V.height)).sort((V,$)=>$-V)[0];if(M&&B&&D&&L){const V=parseFloat(M.left),$=parseFloat(D.top);return{width:B-V,height:L-$,left:V}}else return{width:0,height:0,left:0}},v=vue.ref({}),m=w=>{var C,F;const D=[],{graphicConfig:M,id:B,componentList:L,keyFieldMap:V,unitInterval:$,colNum:N}=e;let T=lodashEs.cloneDeep(L),I=[];if((C=vue.unref(a))!=null&&C.length)for(const _ of vue.unref(a))I.push(_),(F=_==null?void 0:_.componentList)!=null&&F.length&&I.push(..._.componentList);if(M.pageMode==="design"&&M.preview){const{containerMap:_}=M.pageConfig||{};I=M.componentList||[],I.push(e),T=moveToComponentList(_,lodashEs.cloneDeep(I),B)}f(T,I);const A=g(T);if(w!=null&&w.length){const{width:_,left:O,height:U}=A;let q=0,H=0;w.forEach((j,G)=>{j.index=G+1;const R=nanoid(),W=lodashEs.cloneDeep(T);for(const Y of W){const X=V.find(J=>J.keyName===Y.keyName),Z=nanoid();if(Y.left=(parseFloat(Y.left)+q)*vue.unref(x)+"px",Y.top=(parseFloat(Y.top)+H)*vue.unref(x)+"px",Y.scale=vue.unref(x),Y.id=Z,Y.keyName=Y.name+"_"+Z,Y.unitId=R,X!=null&&X.fieldName){const J=Y.text.match(/\{(.+?)\}/g);switch(Y.type){case"ecanText":{Y.data={value:String(j[X.fieldName])},J!=null&&J.length||(Y.text="{value}");break}case"ecanProportion":{Y.data={percent:String(j[X.fieldName])},J!=null&&J.length||(Y.text="{percent}");break}}}}N&&j.index%N===0?(q=0,H+=$+U):q+=$+_,D.push(...W),v.value[R]=j}),u.value={width:((N||w.length)*(_+$)+O)*vue.unref(x)+"px",height:(N?Math.ceil(w.length/N)*($+U):$+U)*vue.unref(x)+"px"}}c.value=D},E=w=>{var M;const{rows:D=[]}=((M=w==null?void 0:w.data)==null?void 0:M.data)??{};m(D)},b=useIndicatorData(e,E),d=async()=>{try{n.value=!0;const w=await b();E(w)}catch(w){console.error(w)}finally{n.value=!1}},p=()=>{switch(e.dataType){case"indicator":d();break}};useOnEvent(e,{refreshData:p,resetRecord:()=>{const w=e.id,D=s(w);l(w,{...D,RECORD:""})}}),r({refreshData:p}),l(e.id,{type:e.type,RECORD:""});const{setRequest:S}=vue.inject(REQUEST_MODEL,{setRequest:w=>{}});typeof S=="function"&&S({id:e.id,requestFn:p,sortNum:e.requestSort});const k=useEmitEvent(e);return{loading:n,style:i,myComponentList:c,scrollWrapStyle:u,pageMode:h,click:w=>{let D=w.target;if(D){let M=D.getAttribute("unitId");for(;!M&&!D.className.includes("ecan-");)D=D.parentElement,M=D.getAttribute("unitId");M&&k("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$6(e,r,n,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:r[0]||(r[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$4,[["render",_sfc_render$6],["__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$3=vue.defineComponent({name:"EcanTemplate",props:{...templateComponentProps},components:{},setup(e){const r=usePickComponentStyle(e,["background"]),{templateEmit:n}=vue.inject("templateOperate",{templateEmit:(a,o)=>{}})||{};return useOnEvent(e,{refreshData:()=>{n("refreshTemplate",e.pageId)}}),{style:r}}});function _sfc_render$5(e,r,n,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$3,[["render",_sfc_render$5]]),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,r){module.exports=r()}(commonjsGlobal,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(r){_useWebWorker=!!r},getWebWorker=function(){return _useWebWorker},setLocationHref=function(r){locationHref=r},getLocationHref=function(){return locationHref};function createTag(e){return document.createElement(e)}function extendPrototype(e,r){var n,i=e.length,a;for(n=0;n<i;n+=1){a=e[n].prototype;for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(r.prototype[o]=a[o])}}function getDescriptor(e,r){return Object.getOwnPropertyDescriptor(e,r)}function createProxyFunction(e){function r(){}return r.prototype=e,r}var audioControllerFactory=function(){function e(r){this.audios=[],this.audioFactory=r,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(n){this.audios.push(n)},pause:function(){var n,i=this.audios.length;for(n=0;n<i;n+=1)this.audios[n].pause()},resume:function(){var n,i=this.audios.length;for(n=0;n<i;n+=1)this.audios[n].resume()},setRate:function(n){var i,a=this.audios.length;for(i=0;i<a;i+=1)this.audios[i].setRate(n)},createAudio:function(n){return this.audioFactory?this.audioFactory(n):window.Howl?new window.Howl({src:[n]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(n){this.audioFactory=n},setVolume:function(n){this._volume=n,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var n,i=this.audios.length;for(n=0;n<i;n+=1)this.audios[n].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),createTypedArray=function(){function e(n,i){var a=0,o=[],s;switch(n){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 r(n,i){return n==="float32"?new Float32Array(i):n==="int16"?new Int16Array(i):n==="uint8c"?new Uint8ClampedArray(i):e(n,i)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?r: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(n){return typeof n}:_typeof$6=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_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"],r,n=e.length;for(r=0;r<n;r+=1)BMMath[e[r]]=Math[e[r]]})(),BMMath.random=Math.random,BMMath.abs=function(e){var r=_typeof$6(e);if(r==="object"&&e.length){var n=createSizedArray(e.length),i,a=e.length;for(i=0;i<a;i+=1)n[i]=Math.abs(e[i]);return n}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,r,n,i){this.type=e,this.currentTime=r,this.totalTime=n,this.direction=i<0?-1:1}function BMCompleteEvent(e,r){this.type=e,this.direction=r<0?-1:1}function BMCompleteLoopEvent(e,r,n,i){this.type=e,this.currentLoop=n,this.totalLoops=r,this.direction=i<0?-1:1}function BMSegmentStartEvent(e,r,n){this.type=e,this.firstFrame=r,this.totalFrames=n}function BMDestroyEvent(e,r){this.type=e,this.target=r}function BMRenderFrameErrorEvent(e,r){this.type="renderFrameError",this.nativeError=e,this.currentTime=r}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,r,n){var i,a,o,s,l,c,u,h;switch(s=Math.floor(e*6),l=e*6-s,c=n*(1-r),u=n*(1-l*r),h=n*(1-(1-l)*r),s%6){case 0:i=n,a=h,o=c;break;case 1:i=u,a=n,o=c;break;case 2:i=c,a=n,o=h;break;case 3:i=c,a=u,o=n;break;case 4:i=h,a=c,o=n;break;case 5:i=n,a=c,o=u;break}return[i,a,o]}function RGBtoHSV(e,r,n){var i=Math.max(e,r,n),a=Math.min(e,r,n),o=i-a,s,l=i===0?0:o/i,c=i/255;switch(i){case a:s=0;break;case e:s=r-n+o*(r<n?6:0),s/=6*o;break;case r:s=n-e+o*2,s/=6*o;break;case n:s=e-r+o*4,s/=6*o;break}return[s,l,c]}function addSaturationToRGB(e,r){var n=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return n[1]+=r,n[1]>1?n[1]=1:n[1]<=0&&(n[1]=0),HSVtoRGB(n[0],n[1],n[2])}function addBrightnessToRGB(e,r){var n=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return n[2]+=r,n[2]>1?n[2]=1:n[2]<0&&(n[2]=0),HSVtoRGB(n[0],n[1],n[2])}function addHueToRGB(e,r){var n=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return n[0]+=r/360,n[0]>1?n[0]-=1:n[0]<0&&(n[0]+=1),HSVtoRGB(n[0],n[1],n[2])}var rgbToHex=function(){var e=[],r,n;for(r=0;r<256;r+=1)n=r.toString(16),e[r]=n.length===1?"0"+n:n;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(r){subframeEnabled=!!r},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(r){expressionsPlugin=r},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(r){expressionsInterfaces=r},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(r){defaultCurveSegments=r},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(r){idPrefix$1=r};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(n){return typeof n}:_typeof$5=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof$5(e)}var dataManager=function(){var e=1,r=[],n,i,a={onmessage:function(){},postMessage:function(g){n({data:g})}},o={postMessage:function(g){a.onmessage({data:g})}};function s(f){if(window.Worker&&window.Blob&&getWebWorker()){var g=new Blob(["var _workerSelf = self; self.onmessage = ",f.toString()],{type:"text/javascript"}),v=URL.createObjectURL(g);return new Worker(v)}return n=f,a}function l(){i||(i=s(function(g){function v(){function E(N,T){var I,A,C=N.length,F,_,O,U;for(A=0;A<C;A+=1)if(I=N[A],"ks"in I&&!I.completed){if(I.completed=!0,I.hasMask){var q=I.masksProperties;for(_=q.length,F=0;F<_;F+=1)if(q[F].pt.k.i)S(q[F].pt.k);else for(U=q[F].pt.k.length,O=0;O<U;O+=1)q[F].pt.k[O].s&&S(q[F].pt.k[O].s[0]),q[F].pt.k[O].e&&S(q[F].pt.k[O].e[0])}I.ty===0?(I.layers=p(I.refId,T),E(I.layers,T)):I.ty===4?y(I.shapes):I.ty===5&&V(I)}}function b(N,T){if(N){var I=0,A=N.length;for(I=0;I<A;I+=1)N[I].t===1&&(N[I].data.layers=p(N[I].data.refId,T),E(N[I].data.layers,T))}}function d(N,T){for(var I=0,A=T.length;I<A;){if(T[I].id===N)return T[I];I+=1}return null}function p(N,T){var I=d(N,T);return I?I.layers.__used?JSON.parse(JSON.stringify(I.layers)):(I.layers.__used=!0,I.layers):null}function y(N){var T,I=N.length,A,C;for(T=I-1;T>=0;T-=1)if(N[T].ty==="sh")if(N[T].ks.k.i)S(N[T].ks.k);else for(C=N[T].ks.k.length,A=0;A<C;A+=1)N[T].ks.k[A].s&&S(N[T].ks.k[A].s[0]),N[T].ks.k[A].e&&S(N[T].ks.k[A].e[0]);else N[T].ty==="gr"&&y(N[T].it)}function S(N){var T,I=N.i.length;for(T=0;T<I;T+=1)N.i[T][0]+=N.v[T][0],N.i[T][1]+=N.v[T][1],N.o[T][0]+=N.v[T][0],N.o[T][1]+=N.v[T][1]}function k(N,T){var I=T?T.split("."):[100,100,100];return N[0]>I[0]?!0:I[0]>N[0]?!1:N[1]>I[1]?!0:I[1]>N[1]?!1:N[2]>I[2]?!0:I[2]>N[2]?!1:null}var P=function(){var N=[4,4,14];function T(A){var C=A.t.d;A.t.d={k:[{s:C,t:0}]}}function I(A){var C,F=A.length;for(C=0;C<F;C+=1)A[C].ty===5&&T(A[C])}return function(A){if(k(N,A.v)&&(I(A.layers),A.assets)){var C,F=A.assets.length;for(C=0;C<F;C+=1)A.assets[C].layers&&I(A.assets[C].layers)}}}(),w=function(){var N=[4,7,99];return function(T){if(T.chars&&!k(N,T.v)){var I,A=T.chars.length;for(I=0;I<A;I+=1){var C=T.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}},T.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"})))}}}}(),D=function(){var N=[5,7,15];function T(A){var C=A.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(A){var C,F=A.length;for(C=0;C<F;C+=1)A[C].ty===5&&T(A[C])}return function(A){if(k(N,A.v)&&(I(A.layers),A.assets)){var C,F=A.assets.length;for(C=0;C<F;C+=1)A.assets[C].layers&&I(A.assets[C].layers)}}}(),M=function(){var N=[4,1,9];function T(A){var C,F=A.length,_,O;for(C=0;C<F;C+=1)if(A[C].ty==="gr")T(A[C].it);else if(A[C].ty==="fl"||A[C].ty==="st")if(A[C].c.k&&A[C].c.k[0].i)for(O=A[C].c.k.length,_=0;_<O;_+=1)A[C].c.k[_].s&&(A[C].c.k[_].s[0]/=255,A[C].c.k[_].s[1]/=255,A[C].c.k[_].s[2]/=255,A[C].c.k[_].s[3]/=255),A[C].c.k[_].e&&(A[C].c.k[_].e[0]/=255,A[C].c.k[_].e[1]/=255,A[C].c.k[_].e[2]/=255,A[C].c.k[_].e[3]/=255);else A[C].c.k[0]/=255,A[C].c.k[1]/=255,A[C].c.k[2]/=255,A[C].c.k[3]/=255}function I(A){var C,F=A.length;for(C=0;C<F;C+=1)A[C].ty===4&&T(A[C].shapes)}return function(A){if(k(N,A.v)&&(I(A.layers),A.assets)){var C,F=A.assets.length;for(C=0;C<F;C+=1)A.assets[C].layers&&I(A.assets[C].layers)}}}(),B=function(){var N=[4,4,18];function T(A){var C,F=A.length,_,O;for(C=F-1;C>=0;C-=1)if(A[C].ty==="sh")if(A[C].ks.k.i)A[C].ks.k.c=A[C].closed;else for(O=A[C].ks.k.length,_=0;_<O;_+=1)A[C].ks.k[_].s&&(A[C].ks.k[_].s[0].c=A[C].closed),A[C].ks.k[_].e&&(A[C].ks.k[_].e[0].c=A[C].closed);else A[C].ty==="gr"&&T(A[C].it)}function I(A){var C,F,_=A.length,O,U,q,H;for(F=0;F<_;F+=1){if(C=A[F],C.hasMask){var j=C.masksProperties;for(U=j.length,O=0;O<U;O+=1)if(j[O].pt.k.i)j[O].pt.k.c=j[O].cl;else for(H=j[O].pt.k.length,q=0;q<H;q+=1)j[O].pt.k[q].s&&(j[O].pt.k[q].s[0].c=j[O].cl),j[O].pt.k[q].e&&(j[O].pt.k[q].e[0].c=j[O].cl)}C.ty===4&&T(C.shapes)}}return function(A){if(k(N,A.v)&&(I(A.layers),A.assets)){var C,F=A.assets.length;for(C=0;C<F;C+=1)A.assets[C].layers&&I(A.assets[C].layers)}}}();function L(N){N.__complete||(M(N),P(N),w(N),D(N),B(N),E(N.layers,N.assets),b(N.chars,N.assets),N.__complete=!0)}function V(N){N.t.a.length===0&&"m"in N.t.p}var $={};return $.completeData=L,$.checkColors=M,$.checkChars=w,$.checkPathProperties=D,$.checkShapes=B,$.completeLayers=E,$}if(o.dataManager||(o.dataManager=v()),o.assetLoader||(o.assetLoader=function(){function E(d){var p=d.getResponseHeader("content-type");return p&&d.responseType==="json"&&p.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,p,y,S){var k,P=new XMLHttpRequest;try{P.responseType="json"}catch{}P.onreadystatechange=function(){if(P.readyState===4)if(P.status===200)k=E(P),y(k);else try{k=E(P),y(k)}catch(w){S&&S(w)}};try{P.open(["G","E","T"].join(""),d,!0)}catch{P.open(["G","E","T"].join(""),p+"/"+d,!0)}P.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 m=g.data.animation;o.dataManager.completeData(m),o.postMessage({id:g.data.id,payload:m,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(f){var g=f.data,v=g.id,m=r[v];r[v]=null,g.status==="success"?m.onComplete(g.payload):m.onError&&m.onError()})}function c(f,g){e+=1;var v="processId_"+e;return r[v]={onComplete:f,onError:g},v}function u(f,g,v){l();var m=c(g,v);i.postMessage({type:"loadAnimation",path:f,fullPath:window.location.origin+window.location.pathname,id:m})}function h(f,g,v){l();var m=c(g,v);i.postMessage({type:"loadData",path:f,fullPath:window.location.origin+window.location.pathname,id:m})}function x(f,g,v){l();var m=c(g,v);i.postMessage({type:"complete",animation:f,id:m})}return{loadAnimation:u,loadData:h,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 r(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function i(b,d,p){var y="";if(b.e)y=b.p;else if(d){var S=b.p;S.indexOf("images/")!==-1&&(S=S.split("/")[1]),y=d+S}else y=p,y+=b.u?b.u:"",y+=b.p;return y}function a(b){var d=0,p=setInterval((function(){var y=b.getBBox();(y.width||d>500)&&(this._imageLoaded(),clearInterval(p)),d+=1}).bind(this),50)}function o(b){var d=i(b,this.assetsPath,this.path),p=createNS("image");isSafari?this.testImageLoaded(p):p.addEventListener("load",this._imageLoaded,!1),p.addEventListener("error",(function(){y.img=e,this._imageLoaded()}).bind(this),!1),p.setAttributeNS("http://www.w3.org/1999/xlink","href",d),this._elementHelper.append?this._elementHelper.append(p):this._elementHelper.appendChild(p);var y={img:p,assetData:b};return y}function s(b){var d=i(b,this.assetsPath,this.path),p=createTag("img");p.crossOrigin="anonymous",p.addEventListener("load",this._imageLoaded,!1),p.addEventListener("error",(function(){y.img=e,this._imageLoaded()}).bind(this),!1),p.src=d;var y={img:p,assetData:b};return y}function l(b){var d={assetData:b},p=i(b,this.assetsPath,this.path);return dataManager.loadData(p,(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 p,y=b.length;for(p=0;p<y;p+=1)b[p].layers||(!b[p].t||b[p].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(b[p]))):b[p].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(b[p]))))}function u(b){this.path=b||""}function h(b){this.assetsPath=b||""}function x(b){for(var d=0,p=this.images.length;d<p;){if(this.images[d].assetData===b)return this.images[d].img;d+=1}return null}function f(){this.imagesLoadedCb=null,this.images.length=0}function g(){return this.totalImages===this.loadedAssets}function v(){return this.totalFootages===this.loadedFootagesCount}function m(b,d){b==="svg"?(this._elementHelper=d,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function E(){this._imageLoaded=r.bind(this),this._footageLoaded=n.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:h,setPath:u,loadedImages:g,loadedFootages:v,destroy:f,getAsset:x,createImgData:s,createImageData:o,imageLoaded:r,footageLoaded:n,setCacheType:m},E}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(r,n){if(this._cbs[r])for(var i=this._cbs[r],a=0;a<i.length;a+=1)i[a](n)},addEventListener:function(r,n){return this._cbs[r]||(this._cbs[r]=[]),this._cbs[r].push(n),(function(){this.removeEventListener(r,n)}).bind(this)},removeEventListener:function(r,n){if(!n)this._cbs[r]=null;else if(this._cbs[r]){for(var i=0,a=this._cbs[r].length;i<a;)this._cbs[r][i]===n&&(this._cbs[r].splice(i,1),i-=1,a-=1),i+=1;this._cbs[r].length||(this._cbs[r]=null)}}};var markerParser=function(){function e(r){for(var n=r.split(`\r
120
+ `),i={},a,o=0,s=0;s<n.length;s+=1)a=n[s].split(":"),a.length===2&&(i[a[0]]=a[1].trim(),o+=1);if(o===0)throw new Error;return i}return function(r){for(var n=[],i=0;i<r.length;i+=1){var a=r[i],o={time:a.tm,duration:a.dr};try{o.payload=JSON.parse(r[i].cm)}catch{try{o.payload=e(r[i].cm)}catch{o.payload={name:r[i].cm}}}n.push(o)}return n}}(),ProjectInterface=function(){function e(r){this.compositions.push(r)}return function(){function r(n){for(var i=0,a=this.compositions.length;i<a;){if(this.compositions[i].data&&this.compositions[i].data.nm===n)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 r.compositions=[],r.currentFrame=0,r.registerComposition=e,r}}(),renderers={},registerRenderer=function(r,n){renderers[r]=n};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(n){return typeof n}:_typeof$4=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_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 r="svg";e.animType?r=e.animType:e.renderer&&(r=e.renderer);var n=getRenderer(r);this.renderer=new n(this,e.rendererSettings),this.imagePreloader.setCacheType(r,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=r,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,r){r&&_typeof$4(r)!=="object"&&(r=JSON.parse(r));var n={wrapper:e,animationData:r},i=e.attributes;n.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:"",n.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"?n.loop=!1:a==="true"?n.loop=!0:a!==""&&(n.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;n.autoplay=o!=="false",n.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"&&(n.prerender=!1),n.path?this.setParams(n):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 r=this.animationData.layers,n,i=r.length,a=e.layers,o,s=a.length;for(o=0;o<s;o+=1)for(n=0;n<i;){if(r[n].id===a[o].id){r[n]=a[o];break}n+=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,n=0;n<i;n+=1)this.animationData.assets.push(e.assets[n]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(e){this.animationData=e;var r=getExpressionsPlugin();r&&r.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 r=e.shift();this.timeCompleted=r.time*this.frameRate;var n=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(n,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(r){this.triggerConfigError(r)}},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,r){var n=typeof e=="number"?e:void 0,i=typeof r=="number"?r:void 0;this.renderer.updateContainerSize(n,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 r,n=0;n<this.markers.length;n+=1)if(r=this.markers[n],r.payload&&r.payload.name===e)return r;return null},AnimationItem.prototype.goToAndStop=function(e,r,n){if(!(n&&this.name!==n)){var i=Number(e);if(isNaN(i)){var a=this.getMarkerData(e);a&&this.goToAndStop(a.time,!0)}else r?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(e,r,n){if(!(n&&this.name!==n)){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,r,n);this.play()}},AnimationItem.prototype.advanceTime=function(e){if(!(this.isPaused===!0||this.isLoaded===!1)){var r=this.currentRawFrame+e*this.frameModifier,n=!1;r>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(r>this.totalFrames?r%this.totalFrames:0)||(n=!0,r=this.totalFrames-1):r>=this.totalFrames?(this.playCount+=1,this.checkSegments(r%this.totalFrames)||(this.setCurrentRawFrameValue(r%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(r):r<0?this.checkSegments(r%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+r%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(n=!0,r=0)):this.setCurrentRawFrameValue(r),n&&(this.setCurrentRawFrameValue(r),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(e,r){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-r)):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+r)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(e,r){var n=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?n=e:this.currentRawFrame+this.firstFrame>r&&(n=r-e)),this.firstFrame=e,this.totalFrames=r-e,this.timeCompleted=this.totalFrames,n!==-1&&this.goToAndStop(n,!0)},AnimationItem.prototype.playSegments=function(e,r){if(r&&(this.segments.length=0),_typeof$4(e[0])==="object"){var n,i=e.length;for(n=0;n<i;n+=1)this.segments.push(e[n])}else this.segments.push(e);this.segments.length&&r&&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,r){r&&this.name!==r||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 r="";if(e.e)r=e.p;else if(this.assetsPath){var n=e.p;n.indexOf("images/")!==-1&&(n=n.split("/")[1]),r=this.assetsPath+n}else r=this.path,r+=e.u?e.u:"",r+=e.p;return r},AnimationItem.prototype.getAssetData=function(e){for(var r=0,n=this.assets.length;r<n;){if(e===this.assets[r].id)return this.assets[r];r+=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,r,n){try{var i=this.renderer.getElementByPath(e);i.updateDocumentData(r,n)}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 r=new BMRenderFrameErrorEvent(e,this.currentFrame);this.triggerEvent("error",r),this.onError&&this.onError.call(this,r)},AnimationItem.prototype.triggerConfigError=function(e){var r=new BMConfigErrorEvent(e,this.currentFrame);this.triggerEvent("error",r),this.onError&&this.onError.call(this,r)};var animationManager=function(){var e={},r=[],n=0,i=0,a=0,o=!0,s=!1;function l(T){for(var I=0,A=T.target;I<i;)r[I].animation===A&&(r.splice(I,1),I-=1,i-=1,A.isPaused||x()),I+=1}function c(T,I){if(!T)return null;for(var A=0;A<i;){if(r[A].elem===T&&r[A].elem!==null)return r[A].animation;A+=1}var C=new AnimationItem;return f(C,T),C.setData(T,I),C}function u(){var T,I=r.length,A=[];for(T=0;T<I;T+=1)A.push(r[T].animation);return A}function h(){a+=1,M()}function x(){a-=1}function f(T,I){T.addEventListener("destroy",l),T.addEventListener("_active",h),T.addEventListener("_idle",x),r.push({elem:I,animation:T}),i+=1}function g(T){var I=new AnimationItem;return f(I,null),I.setParams(T),I}function v(T,I){var A;for(A=0;A<i;A+=1)r[A].animation.setSpeed(T,I)}function m(T,I){var A;for(A=0;A<i;A+=1)r[A].animation.setDirection(T,I)}function E(T){var I;for(I=0;I<i;I+=1)r[I].animation.play(T)}function b(T){var I=T-n,A;for(A=0;A<i;A+=1)r[A].animation.advanceTime(I);n=T,a&&!s?window.requestAnimationFrame(b):o=!0}function d(T){n=T,window.requestAnimationFrame(b)}function p(T){var I;for(I=0;I<i;I+=1)r[I].animation.pause(T)}function y(T,I,A){var C;for(C=0;C<i;C+=1)r[C].animation.goToAndStop(T,I,A)}function S(T){var I;for(I=0;I<i;I+=1)r[I].animation.stop(T)}function k(T){var I;for(I=0;I<i;I+=1)r[I].animation.togglePause(T)}function P(T){var I;for(I=i-1;I>=0;I-=1)r[I].animation.destroy(T)}function w(T,I,A){var C=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),F,_=C.length;for(F=0;F<_;F+=1)A&&C[F].setAttribute("data-bm-type",A),c(C[F],T);if(I&&_===0){A||(A="svg");var O=document.getElementsByTagName("body")[0];O.innerText="";var U=createTag("div");U.style.width="100%",U.style.height="100%",U.setAttribute("data-bm-type",A),O.appendChild(U),c(U,T)}}function D(){var T;for(T=0;T<i;T+=1)r[T].animation.resize()}function M(){!s&&a&&o&&(window.requestAnimationFrame(d),o=!1)}function B(){s=!0}function L(){s=!1,M()}function V(T,I){var A;for(A=0;A<i;A+=1)r[A].animation.setVolume(T,I)}function $(T){var I;for(I=0;I<i;I+=1)r[I].animation.mute(T)}function N(T){var I;for(I=0;I<i;I+=1)r[I].animation.unmute(T)}return e.registerAnimation=c,e.loadAnimation=g,e.setSpeed=v,e.setDirection=m,e.play=E,e.pause=p,e.stop=S,e.togglePause=k,e.searchAnimations=w,e.resize=D,e.goToAndStop=y,e.destroy=P,e.freeze=B,e.unfreeze=L,e.setVolume=V,e.mute=$,e.unmute=N,e.getRegisteredAnimations=u,e}(),BezierFactory=function(){var e={};e.getBezierEasing=n;var r={};function n(d,p,y,S,k){var P=k||("bez_"+d+"_"+p+"_"+y+"_"+S).replace(/\./g,"p");if(r[P])return r[P];var w=new b([d,p,y,S]);return r[P]=w,w}var i=4,a=.001,o=1e-7,s=10,l=11,c=1/(l-1),u=typeof Float32Array=="function";function h(d,p){return 1-3*p+3*d}function x(d,p){return 3*p-6*d}function f(d){return 3*d}function g(d,p,y){return((h(p,y)*d+x(p,y))*d+f(p))*d}function v(d,p,y){return 3*h(p,y)*d*d+2*x(p,y)*d+f(p)}function m(d,p,y,S,k){var P,w,D=0;do w=p+(y-p)/2,P=g(w,S,k)-d,P>0?y=w:p=w;while(Math.abs(P)>o&&++D<s);return w}function E(d,p,y,S){for(var k=0;k<i;++k){var P=v(p,y,S);if(P===0)return p;var w=g(p,y,S)-d;p-=w/P}return p}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(p){var y=this._p[0],S=this._p[1],k=this._p[2],P=this._p[3];return this._precomputed||this._precompute(),y===S&&k===P?p:p===0?0:p===1?1:g(this._getTForX(p),S,P)},_precompute:function(){var p=this._p[0],y=this._p[1],S=this._p[2],k=this._p[3];this._precomputed=!0,(p!==y||S!==k)&&this._calcSampleValues()},_calcSampleValues:function(){for(var p=this._p[0],y=this._p[2],S=0;S<l;++S)this._mSampleValues[S]=g(S*c,p,y)},_getTForX:function(p){for(var y=this._p[0],S=this._p[2],k=this._mSampleValues,P=0,w=1,D=l-1;w!==D&&k[w]<=p;++w)P+=c;--w;var M=(p-k[w])/(k[w+1]-k[w]),B=P+M*c,L=v(B,y,S);return L>=a?E(p,B,y,S):L===0?B:m(p,P,P+c,y,S)}},e}(),pooling=function(){function e(r){return r.concat(createSizedArray(r.length))}return{double:e}}(),poolFactory=function(){return function(e,r,n){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=r(),u}function c(u){i===a&&(o=pooling.double(o),a*=2),n&&n(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 r(n){var i,a=n.lengths.length;for(i=0;i<a;i+=1)bezierLengthPool.release(n.lengths[i]);n.lengths.length=0}return poolFactory(8,e,r)}();function bezFunction(){var e=Math;function r(f,g,v,m,E,b){var d=f*m+g*E+v*b-E*m-b*f-v*g;return d>-.001&&d<.001}function n(f,g,v,m,E,b,d,p,y){if(v===0&&b===0&&y===0)return r(f,g,m,E,d,p);var S=e.sqrt(e.pow(m-f,2)+e.pow(E-g,2)+e.pow(b-v,2)),k=e.sqrt(e.pow(d-f,2)+e.pow(p-g,2)+e.pow(y-v,2)),P=e.sqrt(e.pow(d-m,2)+e.pow(p-E,2)+e.pow(y-b,2)),w;return S>k?S>P?w=S-k-P:w=P-k-S:P>k?w=P-k-S:w=k-S-P,w>-1e-4&&w<1e-4}var i=function(){return function(f,g,v,m){var E=getDefaultCurveSegments(),b,d,p,y,S,k=0,P,w=[],D=[],M=bezierLengthPool.newElement();for(p=v.length,b=0;b<E;b+=1){for(S=b/(E-1),P=0,d=0;d<p;d+=1)y=bmPow(1-S,3)*f[d]+3*bmPow(1-S,2)*S*v[d]+3*(1-S)*bmPow(S,2)*m[d]+bmPow(S,3)*g[d],w[d]=y,D[d]!==null&&(P+=bmPow(w[d]-D[d],2)),D[d]=w[d];P&&(P=bmSqrt(P),k+=P),M.percents[b]=S,M.lengths[b]=k}return M.addedLength=k,M}}();function a(f){var g=segmentsLengthPool.newElement(),v=f.c,m=f.v,E=f.o,b=f.i,d,p=f._length,y=g.lengths,S=0;for(d=0;d<p-1;d+=1)y[d]=i(m[d],m[d+1],E[d],b[d+1]),S+=y[d].addedLength;return v&&p&&(y[d]=i(m[d],m[0],E[d],b[0]),S+=y[d].addedLength),g.totalLength=S,g}function o(f){this.segmentLength=0,this.points=new Array(f)}function s(f,g){this.partialLength=f,this.point=g}var l=function(){var f={};return function(g,v,m,E){var b=(g[0]+"_"+g[1]+"_"+v[0]+"_"+v[1]+"_"+m[0]+"_"+m[1]+"_"+E[0]+"_"+E[1]).replace(/\./g,"p");if(!f[b]){var d=getDefaultCurveSegments(),p,y,S,k,P,w=0,D,M,B=null;g.length===2&&(g[0]!==v[0]||g[1]!==v[1])&&r(g[0],g[1],v[0],v[1],g[0]+m[0],g[1]+m[1])&&r(g[0],g[1],v[0],v[1],v[0]+E[0],v[1]+E[1])&&(d=2);var L=new o(d);for(S=m.length,p=0;p<d;p+=1){for(M=createSizedArray(S),P=p/(d-1),D=0,y=0;y<S;y+=1)k=bmPow(1-P,3)*g[y]+3*bmPow(1-P,2)*P*(g[y]+m[y])+3*(1-P)*bmPow(P,2)*(v[y]+E[y])+bmPow(P,3)*v[y],M[y]=k,B!==null&&(D+=bmPow(M[y]-B[y],2));D=bmSqrt(D),w+=D,L.points[p]=new s(D,M),B=M}L.segmentLength=w,f[b]=L}return f[b]}}();function c(f,g){var v=g.percents,m=g.lengths,E=v.length,b=bmFloor((E-1)*f),d=f*g.addedLength,p=0;if(b===E-1||b===0||d===m[b])return v[b];for(var y=m[b]>d?-1:1,S=!0;S;)if(m[b]<=d&&m[b+1]>d?(p=(d-m[b])/(m[b+1]-m[b]),S=!1):b+=y,b<0||b>=E-1){if(b===E-1)return v[b];S=!1}return v[b]+(v[b+1]-v[b])*p}function u(f,g,v,m,E,b){var d=c(E,b),p=1-d,y=e.round((p*p*p*f[0]+(d*p*p+p*d*p+p*p*d)*v[0]+(d*d*p+p*d*d+d*p*d)*m[0]+d*d*d*g[0])*1e3)/1e3,S=e.round((p*p*p*f[1]+(d*p*p+p*d*p+p*p*d)*v[1]+(d*d*p+p*d*d+d*p*d)*m[1]+d*d*d*g[1])*1e3)/1e3;return[y,S]}var h=createTypedArray("float32",8);function x(f,g,v,m,E,b,d){E<0?E=0:E>1&&(E=1);var p=c(E,d);b=b>1?1:b;var y=c(b,d),S,k=f.length,P=1-p,w=1-y,D=P*P*P,M=p*P*P*3,B=p*p*P*3,L=p*p*p,V=P*P*w,$=p*P*w+P*p*w+P*P*y,N=p*p*w+P*p*y+p*P*y,T=p*p*y,I=P*w*w,A=p*w*w+P*y*w+P*w*y,C=p*y*w+P*y*y+p*w*y,F=p*y*y,_=w*w*w,O=y*w*w+w*y*w+w*w*y,U=y*y*w+w*y*y+y*w*y,q=y*y*y;for(S=0;S<k;S+=1)h[S*4]=e.round((D*f[S]+M*v[S]+B*m[S]+L*g[S])*1e3)/1e3,h[S*4+1]=e.round((V*f[S]+$*v[S]+N*m[S]+T*g[S])*1e3)/1e3,h[S*4+2]=e.round((I*f[S]+A*v[S]+C*m[S]+F*g[S])*1e3)/1e3,h[S*4+3]=e.round((_*f[S]+O*v[S]+U*m[S]+q*g[S])*1e3)/1e3;return h}return{getSegmentsLength:a,getNewSegment:x,getPointInSegment:u,buildBezierData:l,pointOnLine2D:r,pointOnLine3D:n}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(e,r){var n=this.offsetTime,i;this.propType==="multidimensional"&&(i=createTypedArray("float32",this.pv.length));for(var a=r.lastIndex,o=a,s=this.keyframes.length-1,l=!0,c,u,h;l;){if(c=this.keyframes[o],u=this.keyframes[o+1],o===s-1&&e>=u.t-n){c.h&&(c=u),a=0;break}if(u.t-n>e){a=o;break}o<s-1?o+=1:(a=0,l=!1)}h=this.keyframesMetadata[o]||{};var x,f,g,v,m,E,b=u.t-n,d=c.t-n,p;if(c.to){h.bezierData||(h.bezierData=bez.buildBezierData(c.s,u.s||c.e,c.to,c.ti));var y=h.bezierData;if(e>=b||e<d){var S=e>=b?y.points.length-1:0;for(f=y.points[S].point.length,x=0;x<f;x+=1)i[x]=y.points[S].point[x]}else{h.__fnct?E=h.__fnct:(E=BezierFactory.getBezierEasing(c.o.x,c.o.y,c.i.x,c.i.y,c.n).get,h.__fnct=E),g=E((e-d)/(b-d));var k=y.segmentLength*g,P,w=r.lastFrame<e&&r._lastKeyframeIndex===o?r._lastAddedLength:0;for(m=r.lastFrame<e&&r._lastKeyframeIndex===o?r._lastPoint:0,l=!0,v=y.points.length;l;){if(w+=y.points[m].partialLength,k===0||g===0||m===y.points.length-1){for(f=y.points[m].point.length,x=0;x<f;x+=1)i[x]=y.points[m].point[x];break}else if(k>=w&&k<w+y.points[m+1].partialLength){for(P=(k-w)/y.points[m+1].partialLength,f=y.points[m].point.length,x=0;x<f;x+=1)i[x]=y.points[m].point[x]+(y.points[m+1].point[x]-y.points[m].point[x])*P;break}m<v-1?m+=1:l=!1}r._lastPoint=m,r._lastAddedLength=w-y.points[m].partialLength,r._lastKeyframeIndex=o}}else{var D,M,B,L,V;if(s=c.s.length,p=u.s||c.e,this.sh&&c.h!==1)if(e>=b)i[0]=p[0],i[1]=p[1],i[2]=p[2];else if(e<=d)i[0]=c.s[0],i[1]=c.s[1],i[2]=c.s[2];else{var $=createQuaternion(c.s),N=createQuaternion(p),T=(e-d)/(b-d);quaternionToEuler(i,slerp($,N,T))}else for(o=0;o<s;o+=1)c.h!==1&&(e>=b?g=1:e<d?g=0:(c.o.x.constructor===Array?(h.__fnct||(h.__fnct=[]),h.__fnct[o]?E=h.__fnct[o]:(D=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(D,M,B,L).get,h.__fnct[o]=E)):h.__fnct?E=h.__fnct:(D=c.o.x,M=c.o.y,B=c.i.x,L=c.i.y,E=BezierFactory.getBezierEasing(D,M,B,L).get,c.keyframeMetadata=E),g=E((e-d)/(b-d)))),p=u.s||c.e,V=c.h===1?c.s[o]:c.s[o]+(p[o]-c.s[o])*g,this.propType==="multidimensional"?i[o]=V:i=V}return r.lastIndex=a,i}function slerp(e,r,n){var i=[],a=e[0],o=e[1],s=e[2],l=e[3],c=r[0],u=r[1],h=r[2],x=r[3],f,g,v,m,E;return g=a*c+o*u+s*h+l*x,g<0&&(g=-g,c=-c,u=-u,h=-h,x=-x),1-g>1e-6?(f=Math.acos(g),v=Math.sin(f),m=Math.sin((1-n)*f)/v,E=Math.sin(n*f)/v):(m=1-n,E=n),i[0]=m*a+E*c,i[1]=m*o+E*u,i[2]=m*s+E*h,i[3]=m*l+E*x,i}function quaternionToEuler(e,r){var n=r[0],i=r[1],a=r[2],o=r[3],s=Math.atan2(2*i*o-2*n*a,1-2*i*i-2*a*a),l=Math.asin(2*n*i+2*a*o),c=Math.atan2(2*n*o-2*i*a,1-2*n*n-2*a*a);e[0]=s/degToRads,e[1]=l/degToRads,e[2]=c/degToRads}function createQuaternion(e){var r=e[0]*degToRads,n=e[1]*degToRads,i=e[2]*degToRads,a=Math.cos(r/2),o=Math.cos(n/2),s=Math.cos(i/2),l=Math.sin(r/2),c=Math.sin(n/2),u=Math.sin(i/2),h=a*o*s-l*c*u,x=l*c*s+a*o*u,f=l*o*s+a*c*u,g=a*c*s-l*o*u;return[x,f,g,h]}function getValueAtCurrentTime(){var e=this.comp.renderedFrame-this.offsetTime,r=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=n&&e>=n||this._caching.lastFrame<r&&e<r))){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 r;if(this.propType==="unidimensional")r=e*this.mult,mathAbs(this.v-r)>1e-5&&(this.v=r,this._mdf=!0);else for(var n=0,i=this.v.length;n<i;)r=e[n]*this.mult,mathAbs(this.v[n]-r)>1e-5&&(this.v[n]=r,this._mdf=!0),n+=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,r=this.effectsSequence.length,n=this.kf?this.pv:this.data.k;for(e=0;e<r;e+=1)n=this.effectsSequence[e](n);this.setVValue(n),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,r,n,i){this.propType="unidimensional",this.mult=n||1,this.data=r,this.v=n?r.k*n:r.k,this.pv=r.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,r,n,i){this.propType="multidimensional",this.mult=n||1,this.data=r,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=r.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]=r.k[a]*this.mult,this.pv[a]=r.k[a];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(e,r,n,i){this.propType="unidimensional",this.keyframes=r.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=r,this.mult=n||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,r,n,i){this.propType="multidimensional";var a,o=r.k.length,s,l,c,u;for(a=0;a<o-1;a+=1)r.k[a].to&&r.k[a].s&&r.k[a+1]&&r.k[a+1].s&&(s=r.k[a].s,l=r.k[a+1].s,c=r.k[a].to,u=r.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]))&&(r.k[a].to=null,r.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)&&(r.k[a].to=null,r.k[a].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=r,this.keyframes=r.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=n||1,this.elem=e,this.container=i,this.comp=e.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var h=r.k[0].s.length;for(this.v=createTypedArray("float32",h),this.pv=createTypedArray("float32",h),a=0;a<h;a+=1)this.v[a]=initFrame,this.pv[a]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",h)},this.addEffect=addEffect}var PropertyFactory=function(){function e(n,i,a,o,s){i.sid&&(i=n.globalData.slotManager.getProp(i));var l;if(!i.k.length)l=new ValueProperty(n,i,o,s);else if(typeof i.k[0]=="number")l=new MultiDimensionalProperty(n,i,o,s);else switch(a){case 0:l=new KeyframedValueProperty(n,i,o,s);break;case 1:l=new KeyframedMultidimensionalProperty(n,i,o,s);break}return l.effectsSequence.length&&s.addDynamicProperty(l),l}var r={getProp:e};return r}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(r){this.dynamicProperties.indexOf(r)===-1&&(this.dynamicProperties.push(r),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var r,n=this.dynamicProperties.length;for(r=0;r<n;r+=1)this.dynamicProperties[r].getValue(),this.dynamicProperties[r]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(r){this.container=r,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,r){this.c=e,this.setLength(r);for(var n=0;n<r;)this.v[n]=pointPool.newElement(),this.o[n]=pointPool.newElement(),this.i[n]=pointPool.newElement(),n+=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,r,n,i,a){var o;switch(this._length=Math.max(this._length,i+1),this._length>=this._maxLength&&this.doubleArrayLength(),n){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]=r},ShapePath.prototype.setTripleAt=function(e,r,n,i,a,o,s,l){this.setXYAt(e,r,"v",s,l),this.setXYAt(n,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 r=this.v,n=this.o,i=this.i,a=0;this.c&&(e.setTripleAt(r[0][0],r[0][1],i[0][0],i[0][1],n[0][0],n[0][1],0,!1),a=1);var o=this._length-1,s=this._length,l;for(l=a;l<s;l+=1)e.setTripleAt(r[o][0],r[o][1],i[o][0],i[o][1],n[o][0],n[o][1],l,!1),o-=1;return e},ShapePath.prototype.length=function(){return this._length};var shapePool=function(){function e(){return new ShapePath}function r(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 n(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,r);return i.clone=n,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},r=0,n=4,i=createSizedArray(n);function a(){var s;return r?(r-=1,s=i[r]):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,r===n&&(i=pooling.double(i),n*=2),i[r]=s,r+=1}return e}(),ShapePropertyFactory=function(){var e=-999999;function r(b,d,p){var y=p.lastIndex,S,k,P,w,D,M,B,L,V,$=this.keyframes;if(b<$[0].t-this.offsetTime)S=$[0].s[0],P=!0,y=0;else if(b>=$[$.length-1].t-this.offsetTime)S=$[$.length-1].s?$[$.length-1].s[0]:$[$.length-2].e[0],P=!0;else{for(var N=y,T=$.length-1,I=!0,A,C,F;I&&(A=$[N],C=$[N+1],!(C.t-this.offsetTime>b));)N<T-1?N+=1:I=!1;if(F=this.keyframesMetadata[N]||{},P=A.h===1,y=N,!P){if(b>=C.t-this.offsetTime)L=1;else if(b<A.t-this.offsetTime)L=0;else{var _;F.__fnct?_=F.__fnct:(_=BezierFactory.getBezierEasing(A.o.x,A.o.y,A.i.x,A.i.y).get,F.__fnct=_),L=_((b-(A.t-this.offsetTime))/(C.t-this.offsetTime-(A.t-this.offsetTime)))}k=C.s?C.s[0]:A.e[0]}S=A.s[0]}for(M=d._length,B=S.i[0].length,p.lastIndex=y,w=0;w<M;w+=1)for(D=0;D<B;D+=1)V=P?S.i[w][D]:S.i[w][D]+(k.i[w][D]-S.i[w][D])*L,d.i[w][D]=V,V=P?S.o[w][D]:S.o[w][D]+(k.o[w][D]-S.o[w][D])*L,d.o[w][D]=V,V=P?S.v[w][D]:S.v[w][D]+(k.v[w][D]-S.v[w][D])*L,d.v[w][D]=V}function n(){var b=this.comp.renderedFrame-this.offsetTime,d=this.keyframes[0].t-this.offsetTime,p=this.keyframes[this.keyframes.length-1].t-this.offsetTime,y=this._caching.lastFrame;return y!==e&&(y<d&&b<d||y>p&&b>p)||(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 p,y=b._length;for(p=0;p<y;p+=1)if(b.v[p][0]!==d.v[p][0]||b.v[p][1]!==d.v[p][1]||b.o[p][0]!==d.o[p][0]||b.o[p][1]!==d.o[p][1]||b.i[p][0]!==d.i[p][0]||b.i[p][1]!==d.i[p][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,p=this.effectsSequence.length;for(d=0;d<p;d+=1)b=this.effectsSequence[d](b);this.setVValue(b),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function l(b,d,p){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=p===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=r,l.prototype.getValue=s,l.prototype.setVValue=o,l.prototype.addEffect=c;function u(b,d,p){this.propType="shape",this.comp=b.comp,this.elem=b,this.container=b,this.offsetTime=b.data.st,this.keyframes=p===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=[n.bind(this)]}u.prototype.getValue=s,u.prototype.interpolateShape=r,u.prototype.setVValue=o,u.prototype.addEffect=c;var h=function(){var b=roundCorner;function d(p,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=p,this.comp=p.comp,this.frameId=-1,this.initDynamicPropertyContainer(p),this.p=PropertyFactory.getProp(p,y.p,1,0,this),this.s=PropertyFactory.getProp(p,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],S=this.p.v[1],k=this.s.v[0]/2,P=this.s.v[1]/2,w=this.d!==3,D=this.v;D.v[0][0]=y,D.v[0][1]=S-P,D.v[1][0]=w?y+k:y-k,D.v[1][1]=S,D.v[2][0]=y,D.v[2][1]=S+P,D.v[3][0]=w?y-k:y+k,D.v[3][1]=S,D.i[0][0]=w?y-k*b:y+k*b,D.i[0][1]=S-P,D.i[1][0]=w?y+k:y-k,D.i[1][1]=S-P*b,D.i[2][0]=w?y+k*b:y-k*b,D.i[2][1]=S+P,D.i[3][0]=w?y-k:y+k,D.i[3][1]=S+P*b,D.o[0][0]=w?y+k*b:y-k*b,D.o[0][1]=S-P,D.o[1][0]=w?y+k:y-k,D.o[1][1]=S+P*b,D.o[2][0]=w?y-k*b:y+k*b,D.o[2][1]=S+P,D.o[3][0]=w?y-k:y+k,D.o[3][1]=S-P*b}},extendPrototype([DynamicPropertyContainer],d),d}(),x=function(){function b(d,p){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=d,this.comp=d.comp,this.data=p,this.frameId=-1,this.d=p.d,this.initDynamicPropertyContainer(d),p.sy===1?(this.ir=PropertyFactory.getProp(d,p.ir,0,0,this),this.is=PropertyFactory.getProp(d,p.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(d,p.pt,0,0,this),this.p=PropertyFactory.getProp(d,p.p,1,0,this),this.r=PropertyFactory.getProp(d,p.r,0,degToRads,this),this.or=PropertyFactory.getProp(d,p.or,0,0,this),this.os=PropertyFactory.getProp(d,p.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 p=Math.floor(this.pt.v)*2,y=Math.PI*2/p,S=!0,k=this.or.v,P=this.ir.v,w=this.os.v,D=this.is.v,M=2*Math.PI*k/(p*2),B=2*Math.PI*P/(p*2),L,V,$,N,T=-Math.PI/2;T+=this.r.v;var I=this.data.d===3?-1:1;for(this.v._length=0,L=0;L<p;L+=1){V=S?k:P,$=S?w:D,N=S?M:B;var A=V*Math.cos(T),C=V*Math.sin(T),F=A===0&&C===0?0:C/Math.sqrt(A*A+C*C),_=A===0&&C===0?0:-A/Math.sqrt(A*A+C*C);A+=+this.p.v[0],C+=+this.p.v[1],this.v.setTripleAt(A,C,A-F*N*$*I,C-_*N*$*I,A+F*N*$*I,C+_*N*$*I,L,!0),S=!S,T+=y*I}},convertPolygonToPath:function(){var p=Math.floor(this.pt.v),y=Math.PI*2/p,S=this.or.v,k=this.os.v,P=2*Math.PI*S/(p*4),w,D=-Math.PI*.5,M=this.data.d===3?-1:1;for(D+=this.r.v,this.v._length=0,w=0;w<p;w+=1){var B=S*Math.cos(D),L=S*Math.sin(D),V=B===0&&L===0?0:L/Math.sqrt(B*B+L*L),$=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*P*k*M,L-$*P*k*M,B+V*P*k*M,L+$*P*k*M,w,!0),D+=y*M}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],b),b}(),f=function(){function b(d,p){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=p.d,this.initDynamicPropertyContainer(d),this.p=PropertyFactory.getProp(d,p.p,1,0,this),this.s=PropertyFactory.getProp(d,p.s,1,0,this),this.r=PropertyFactory.getProp(d,p.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return b.prototype={convertRectToPath:function(){var p=this.p.v[0],y=this.p.v[1],S=this.s.v[0]/2,k=this.s.v[1]/2,P=bmMin(S,k,this.r.v),w=P*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(p+S,y-k+P,p+S,y-k+P,p+S,y-k+w,0,!0),this.v.setTripleAt(p+S,y+k-P,p+S,y+k-w,p+S,y+k-P,1,!0),P!==0?(this.v.setTripleAt(p+S-P,y+k,p+S-P,y+k,p+S-w,y+k,2,!0),this.v.setTripleAt(p-S+P,y+k,p-S+w,y+k,p-S+P,y+k,3,!0),this.v.setTripleAt(p-S,y+k-P,p-S,y+k-P,p-S,y+k-w,4,!0),this.v.setTripleAt(p-S,y-k+P,p-S,y-k+w,p-S,y-k+P,5,!0),this.v.setTripleAt(p-S+P,y-k,p-S+P,y-k,p-S+w,y-k,6,!0),this.v.setTripleAt(p+S-P,y-k,p+S-w,y-k,p+S-P,y-k,7,!0)):(this.v.setTripleAt(p-S,y+k,p-S+w,y+k,p-S,y+k,2),this.v.setTripleAt(p-S,y-k,p-S,y-k+w,p-S,y-k,3))):(this.v.setTripleAt(p+S,y-k+P,p+S,y-k+w,p+S,y-k+P,0,!0),P!==0?(this.v.setTripleAt(p+S-P,y-k,p+S-P,y-k,p+S-w,y-k,1,!0),this.v.setTripleAt(p-S+P,y-k,p-S+w,y-k,p-S+P,y-k,2,!0),this.v.setTripleAt(p-S,y-k+P,p-S,y-k+P,p-S,y-k+w,3,!0),this.v.setTripleAt(p-S,y+k-P,p-S,y+k-w,p-S,y+k-P,4,!0),this.v.setTripleAt(p-S+P,y+k,p-S+P,y+k,p-S+w,y+k,5,!0),this.v.setTripleAt(p+S-P,y+k,p+S-w,y+k,p+S-P,y+k,6,!0),this.v.setTripleAt(p+S,y+k-P,p+S,y+k-P,p+S,y+k-w,7,!0)):(this.v.setTripleAt(p-S,y-k,p-S+w,y-k,p-S,y-k,1,!0),this.v.setTripleAt(p-S,y+k,p-S,y+k-w,p-S,y+k,2,!0),this.v.setTripleAt(p+S,y+k,p+S-w,y+k,p+S,y+k,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,p){var y;if(p===3||p===4){var S=p===3?d.pt:d.ks,k=S.k;k.length?y=new u(b,d,p):y=new l(b,d,p)}else p===5?y=new f(b,d):p===6?y=new h(b,d):p===7&&(y=new x(b,d));return y.k&&b.addDynamicProperty(y),y}function v(){return l}function m(){return u}var E={};return E.getShapeProp=g,E.getConstructorFunction=v,E.getKeyframedConstructorFunction=m,E}();/*!
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,r=Math.sin,n=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),D=r(S);return this._t(C,-D,0,0,D,C,0,0,0,0,1,0,0,0,0,1)}function s(S){if(S===0)return this;var C=e(S),D=r(S);return this._t(1,0,0,0,0,C,-D,0,0,D,C,0,0,0,0,1)}function l(S){if(S===0)return this;var C=e(S),D=r(S);return this._t(C,0,D,0,0,1,0,0,-D,0,C,0,0,0,0,1)}function c(S){if(S===0)return this;var C=e(S),D=r(S);return this._t(C,-D,0,0,D,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 h(S,C){return this.shear(n(S),n(C))}function x(S,C){var D=e(C),k=r(C);return this._t(D,k,0,0,-k,D,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,n(S),1,0,0,0,0,1,0,0,0,0,1)._t(D,-k,0,0,k,D,0,0,0,0,1,0,0,0,0,1)}function f(S,C,D){return!D&&D!==0&&(D=1),S===1&&C===1&&D===1?this:this._t(S,0,0,0,0,C,0,0,0,0,D,0,0,0,0,1)}function g(S,C,D,k,F,$,G,j,U,H,L,K,Y,Q,J,Z){return this.props[0]=S,this.props[1]=C,this.props[2]=D,this.props[3]=k,this.props[4]=F,this.props[5]=$,this.props[6]=G,this.props[7]=j,this.props[8]=U,this.props[9]=H,this.props[10]=L,this.props[11]=K,this.props[12]=Y,this.props[13]=Q,this.props[14]=J,this.props[15]=Z,this}function v(S,C,D){return D=D||0,S!==0||C!==0||D!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,S,C,D,1):this}function m(S,C,D,k,F,$,G,j,U,H,L,K,Y,Q,J,Z){var W=this.props;if(S===1&&C===0&&D===0&&k===0&&F===0&&$===1&&G===0&&j===0&&U===0&&H===0&&L===1&&K===0)return W[12]=W[12]*S+W[15]*Y,W[13]=W[13]*$+W[15]*Q,W[14]=W[14]*L+W[15]*J,W[15]*=Z,this._identityCalculated=!1,this;var ee=W[0],re=W[1],ie=W[2],ae=W[3],le=W[4],fe=W[5],he=W[6],ge=W[7],be=W[8],Ee=W[9],ke=W[10],Ce=W[11],Te=W[12],de=W[13],me=W[14],pe=W[15];return W[0]=ee*S+re*F+ie*U+ae*Y,W[1]=ee*C+re*$+ie*H+ae*Q,W[2]=ee*D+re*G+ie*L+ae*J,W[3]=ee*k+re*j+ie*K+ae*Z,W[4]=le*S+fe*F+he*U+ge*Y,W[5]=le*C+fe*$+he*H+ge*Q,W[6]=le*D+fe*G+he*L+ge*J,W[7]=le*k+fe*j+he*K+ge*Z,W[8]=be*S+Ee*F+ke*U+Ce*Y,W[9]=be*C+Ee*$+ke*H+Ce*Q,W[10]=be*D+Ee*G+ke*L+Ce*J,W[11]=be*k+Ee*j+ke*K+Ce*Z,W[12]=Te*S+de*F+me*U+pe*Y,W[13]=Te*C+de*$+me*H+pe*Q,W[14]=Te*D+de*G+me*L+pe*J,W[15]=Te*k+de*j+me*K+pe*Z,this._identityCalculated=!1,this}function w(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 p(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 E(S,C,D){return{x:S*this.props[0]+C*this.props[4]+D*this.props[8]+this.props[12],y:S*this.props[1]+C*this.props[5]+D*this.props[9]+this.props[13],z:S*this.props[2]+C*this.props[6]+D*this.props[10]+this.props[14]}}function _(S,C,D){return S*this.props[0]+C*this.props[4]+D*this.props[8]+this.props[12]}function P(S,C,D){return S*this.props[1]+C*this.props[5]+D*this.props[9]+this.props[13]}function A(S,C,D){return S*this.props[2]+C*this.props[6]+D*this.props[10]+this.props[14]}function R(){var S=this.props[0]*this.props[5]-this.props[1]*this.props[4],C=this.props[5]/S,D=-this.props[1]/S,k=-this.props[4]/S,F=this.props[0]/S,$=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/S,G=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/S,j=new Matrix;return j.props[0]=C,j.props[1]=D,j.props[4]=k,j.props[5]=F,j.props[12]=$,j.props[13]=G,j}function M(S){var C=this.getInverseMatrix();return C.applyToPointArray(S[0],S[1],S[2]||0)}function B(S){var C,D=S.length,k=[];for(C=0;C<D;C+=1)k[C]=M(S[C]);return k}function O(S,C,D){var k=createTypedArray("float32",6);if(this.isIdentity())k[0]=S[0],k[1]=S[1],k[2]=C[0],k[3]=C[1],k[4]=D[0],k[5]=D[1];else{var F=this.props[0],$=this.props[1],G=this.props[4],j=this.props[5],U=this.props[12],H=this.props[13];k[0]=S[0]*F+S[1]*G+U,k[1]=S[0]*$+S[1]*j+H,k[2]=C[0]*F+C[1]*G+U,k[3]=C[0]*$+C[1]*j+H,k[4]=D[0]*F+D[1]*G+U,k[5]=D[0]*$+D[1]*j+H}return k}function V(S,C,D){var k;return this.isIdentity()?k=[S,C,D]:k=[S*this.props[0]+C*this.props[4]+D*this.props[8]+this.props[12],S*this.props[1]+C*this.props[5]+D*this.props[9]+this.props[13],S*this.props[2]+C*this.props[6]+D*this.props[10]+this.props[14]],k}function q(S,C){if(this.isIdentity())return S+","+C;var D=this.props;return Math.round((S*D[0]+C*D[4]+D[12])*100)/100+","+Math.round((S*D[1]+C*D[5]+D[13])*100)/100}function N(){for(var S=0,C=this.props,D="matrix3d(",k=1e4;S<16;)D+=i(C[S]*k)/k,D+=S===15?")":",",S+=1;return D}function T(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=T(S[0]),D=T(S[1]),k=T(S[4]),F=T(S[5]),$=T(S[12]),G=T(S[13]);return"matrix("+C+","+D+","+k+","+F+","+$+","+G+")"}return function(){this.reset=a,this.rotate=o,this.rotateX=s,this.rotateY=l,this.rotateZ=c,this.skew=h,this.skewFromAxis=x,this.shear=u,this.scale=f,this.setTransform=g,this.translate=v,this.transform=m,this.multiply=w,this.applyToPoint=E,this.applyToX=_,this.applyToY=P,this.applyToZ=A,this.applyToPointArray=V,this.applyToTriplePoints=O,this.applyToPointStringified=q,this.toCSS=N,this.to2dCSS=I,this.clone=p,this.cloneFromProps=y,this.equals=d,this.inversePoints=B,this.inversePoint=M,this.getInverseMatrix=R,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(n){return typeof n}:_typeof$3=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_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,r){e==="expressions"&&setExpressionsPlugin(r)}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 r=queryString.split("&"),n=0;n<r.length;n+=1){var i=r[n].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={},r={};e.registerModifier=n,e.getModifier=i;function n(a,o){r[a]||(r[a]=o)}function i(a,o,s){return new r[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 r={shape:e.sh,data:e,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(r),this.addShapeToModifier(r),this._isAnimated&&e.setAsAnimated()}},ShapeModifier.prototype.init=function(e,r){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,r),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,r){this.s=PropertyFactory.getProp(e,r.s,0,.01,this),this.e=PropertyFactory.getProp(e,r.e,0,.01,this),this.o=PropertyFactory.getProp(e,r.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=r.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,r,n,i,a){var o=[];r<=1?o.push({s:e,e:r}):e>=1?o.push({s:e-1,e:r-1}):(o.push({s:e,e:1}),o.push({s:0,e:r-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+n)){var h,x;u.s*a<=i?h=0:h=(u.s*a-i)/n,u.e*a>=i+n?x=1:x=(u.e*a-i)/n,s.push([h,x])}return s.length||s.push([0,0]),s},TrimModifier.prototype.releasePathsData=function(e){var r,n=e.length;for(r=0;r<n;r+=1)segmentsLengthPool.release(e[r]);return e.length=0,e},TrimModifier.prototype.processShapes=function(e){var r,n;if(this._mdf||e){var i=this.o.v%360/360;if(i<0&&(i+=1),this.s.v>1?r=1+i:this.s.v<0?r=0+i:r=this.s.v+i,this.e.v>1?n=1+i:this.e.v<0?n=0+i:n=this.e.v+i,r>n){var a=r;r=n,n=a}r=Math.round(r*1e4)*1e-4,n=Math.round(n*1e4)*1e-4,this.sValue=r,this.eValue=n}else r=this.sValue,n=this.eValue;var o,s,l=this.shapes.length,c,u,h,x,f,g=0;if(n===r)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(n===1&&r===0||n===0&&r===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=[],m,w;for(s=0;s<l;s+=1)if(m=this.shapes[s],!m.shape._mdf&&!this._mdf&&!e&&this.m!==2)m.shape.paths=m.localShapeCollection;else{if(o=m.shape.paths,u=o._length,f=0,!m.shape._mdf&&m.pathsData.length)f=m.totalShapeLength;else{for(h=this.releasePathsData(m.pathsData),c=0;c<u;c+=1)x=bez.getSegmentsLength(o.shapes[c]),h.push(x),f+=x.totalLength;m.totalShapeLength=f,m.pathsData=h}g+=f,m.shape._mdf=!0}var b=r,d=n,p=0,y;for(s=l-1;s>=0;s-=1)if(m=this.shapes[s],m.shape._mdf){for(w=m.localShapeCollection,w.releaseShapes(),this.m===2&&l>1?(y=this.calculateShapeEdges(r,n,m.totalShapeLength,p,g),p+=m.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:m.totalShapeLength*b,e:m.totalShapeLength*d}):b>=1?v.push({s:m.totalShapeLength*(b-1),e:m.totalShapeLength*(d-1)}):(v.push({s:m.totalShapeLength*b,e:m.totalShapeLength}),v.push({s:0,e:m.totalShapeLength*(d-1)}));var E=this.addShapes(m,v[0]);if(v[0].s!==v[0].e){if(v.length>1){var _=m.shape.paths.shapes[m.shape.paths._length-1];if(_.c){var P=E.pop();this.addPaths(E,w),E=this.addShapes(m,v[1],P)}else this.addPaths(E,w),E=this.addShapes(m,v[1])}this.addPaths(E,w)}}m.shape.paths=w}}},TrimModifier.prototype.addPaths=function(e,r){var n,i=e.length;for(n=0;n<i;n+=1)r.addShape(e[n])},TrimModifier.prototype.addSegment=function(e,r,n,i,a,o,s){a.setXYAt(r[0],r[1],"o",o),a.setXYAt(n[0],n[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,r,n,i){r.setXYAt(e[1],e[5],"o",n),r.setXYAt(e[2],e[6],"i",n+1),i&&r.setXYAt(e[0],e[4],"v",n),r.setXYAt(e[3],e[7],"v",n+1)},TrimModifier.prototype.addShapes=function(e,r,n){var i=e.pathsData,a=e.shape.paths.shapes,o,s=e.shape.paths._length,l,c,u=0,h,x,f,g,v=[],m,w=!0;for(n?(x=n._length,m=n._length):(n=shapePool.newElement(),x=0,m=0),v.push(n),o=0;o<s;o+=1){for(f=i[o].lengths,n.c=a[o].c,c=a[o].c?f.length:f.length+1,l=1;l<c;l+=1)if(h=f[l-1],u+h.addedLength<r.s)u+=h.addedLength,n.c=!1;else if(u>r.e){n.c=!1;break}else r.s<=u&&r.e>=u+h.addedLength?(this.addSegment(a[o].v[l-1],a[o].o[l-1],a[o].i[l],a[o].v[l],n,x,w),w=!1):(g=bez.getNewSegment(a[o].v[l-1],a[o].v[l],a[o].o[l-1],a[o].i[l],(r.s-u)/h.addedLength,(r.e-u)/h.addedLength,f[l-1]),this.addSegmentFromArray(g,n,x,w),w=!1,n.c=!1),u+=h.addedLength,x+=1;if(a[o].c&&f.length){if(h=f[l-1],u<=r.e){var b=f[l-1].addedLength;r.s<=u&&r.e>=u+b?(this.addSegment(a[o].v[l-1],a[o].o[l-1],a[o].i[0],a[o].v[0],n,x,w),w=!1):(g=bez.getNewSegment(a[o].v[l-1],a[o].v[0],a[o].o[l-1],a[o].i[0],(r.s-u)/b,(r.e-u)/b,f[l-1]),this.addSegmentFromArray(g,n,x,w),w=!1,n.c=!1)}else n.c=!1;u+=h.addedLength,x+=1}if(n._length&&(n.setXYAt(n.v[m][0],n.v[m][1],"i",m),n.setXYAt(n.v[n._length-1][0],n.v[n._length-1][1],"o",n._length-1)),u>r.e)break;o<s-1&&(n=shapePool.newElement(),w=!0,v.push(n),x=0)}return v};function PuckerAndBloatModifier(){}extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(e,r){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,r.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(e,r){var n=r/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,h,x,f;for(o=0;o<a;o+=1)l=e.v[o][0]+(i[0]-e.v[o][0])*n,c=e.v[o][1]+(i[1]-e.v[o][1])*n,u=e.o[o][0]+(i[0]-e.o[o][0])*-n,h=e.o[o][1]+(i[1]-e.o[o][1])*-n,x=e.i[o][0]+(i[0]-e.i[o][0])*-n,f=e.i[o][1]+(i[1]-e.i[o][1])*-n,s.setTripleAt(l,c,u,h,x,f,o);return s},PuckerAndBloatModifier.prototype.processShapes=function(e){var r,n,i=this.shapes.length,a,o,s=this.amount.v;if(s!==0){var l,c;for(n=0;n<i;n+=1){if(l=this.shapes[n],c=l.localShapeCollection,!(!l.shape._mdf&&!this._mdf&&!e))for(c.releaseShapes(),l.shape._mdf=!0,r=l.shape.paths.shapes,o=l.shape.paths._length,a=0;a<o;a+=1)c.addShape(this.processPath(r[a],s));l.shape.paths=l.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var e=[0,0];function r(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 n(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 h,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?(h=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?(h=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)):(h=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){h=[],x=[];var f=this.px,g=this.py;f._caching.lastFrame+f.offsetTime<=f.keyframes[0].t?(h[0]=f.getValueAtTime((f.keyframes[0].t+.01)/u,0),h[1]=g.getValueAtTime((g.keyframes[0].t+.01)/u,0),x[0]=f.getValueAtTime(f.keyframes[0].t/u,0),x[1]=g.getValueAtTime(g.keyframes[0].t/u,0)):f._caching.lastFrame+f.offsetTime>=f.keyframes[f.keyframes.length-1].t?(h[0]=f.getValueAtTime(f.keyframes[f.keyframes.length-1].t/u,0),h[1]=g.getValueAtTime(g.keyframes[g.keyframes.length-1].t/u,0),x[0]=f.getValueAtTime((f.keyframes[f.keyframes.length-1].t-.01)/u,0),x[1]=g.getValueAtTime((g.keyframes[g.keyframes.length-1].t-.01)/u,0)):(h=[f.pv,g.pv],x[0]=f.getValueAtTime((f._caching.lastFrame+f.offsetTime-.01)/u,f.offsetTime),x[1]=g.getValueAtTime((g._caching.lastFrame+g.offsetTime-.01)/u,g.offsetTime))}else x=e,h=x;this.v.rotate(-Math.atan2(h[1]-x[1],h[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,h){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(h||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,f=u.or.k.length;for(x=0;x<f;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:r,getValue:n,precalculateMatrix:i,autoOrient:a},extendPrototype([DynamicPropertyContainer],s),s.prototype.addDynamicProperty=o,s.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function l(c,u,h){return new s(c,u,h)}return{getTransformProperty:l}}();function RepeaterModifier(){}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(e,r){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(e,r.c,0,null,this),this.o=PropertyFactory.getProp(e,r.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(e,r.tr,this),this.so=PropertyFactory.getProp(e,r.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(e,r.tr.eo,0,.01,this),this.data=r,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,r,n,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]),r.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),r.rotate(-i.r.v*s*a),r.translate(i.a.v[0],i.a.v[1],i.a.v[2]),n.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),n.scale(o?1/l:l,o?1/c:c),n.translate(i.a.v[0],i.a.v[1],i.a.v[2])},RepeaterModifier.prototype.init=function(e,r,n,i){for(this.elem=e,this.arr=r,this.pos=n,this.elemsData=i,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,r[n]);n>0;)n-=1,this._elements.unshift(r[n]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var r,n=e.length;for(r=0;r<n;r+=1)e[r]._processed=!1,e[r].ty==="gr"&&this.resetElements(e[r].it)},RepeaterModifier.prototype.cloneElements=function(e){var r=JSON.parse(JSON.stringify(e));return this.resetElements(r),r},RepeaterModifier.prototype.changeGroupRender=function(e,r){var n,i=e.length;for(n=0;n<i;n+=1)e[n]._render=r,e[n].ty==="gr"&&this.changeGroupRender(e[n].it,r)},RepeaterModifier.prototype.processShapes=function(e){var r,n,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 h=this.elemsData[i].it,x=h[h.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 f=this.o.v,g=f%1,v=f>0?Math.floor(f):Math.ceil(f),m=this.pMatrix.props,w=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(f>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(f<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 p,y;o;){if(r=this.elemsData[i].it,n=r[r.length-1].transform.mProps.v.props,y=n.length,r[r.length-1].transform.mProps._mdf=!0,r[r.length-1].transform.op._mdf=!0,r[r.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(w[0],w[1],w[2],w[3],w[4],w[5],w[6],w[7],w[8],w[9],w[10],w[11],w[12],w[13],w[14],w[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(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),p=0;p<y;p+=1)n[p]=this.matrix.props[p];this.matrix.reset()}else for(this.matrix.reset(),p=0;p<y;p+=1)n[p]=this.matrix.props[p];d+=1,o-=1,i+=a}}else for(o=this._currentCopies,i=0,a=1;o;)r=this.elemsData[i].it,n=r[r.length-1].transform.mProps.v.props,r[r.length-1].transform.mProps._mdf=!1,r[r.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,r){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(e,r.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(e,r){var n=shapePool.newElement();n.c=e.c;var i,a=e._length,o,s,l,c,u,h,x=0,f,g,v,m,w,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?(n.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)),h=u?Math.min(u/2,r)/u:0,w=o[0]+(c[0]-o[0])*h,f=w,b=o[1]-(o[1]-c[1])*h,g=b,v=f-(f-o[0])*roundCorner,m=g-(g-o[1])*roundCorner,n.setTripleAt(f,g,v,m,w,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)),h=u?Math.min(u/2,r)/u:0,v=o[0]+(c[0]-o[0])*h,f=v,m=o[1]+(c[1]-o[1])*h,g=m,w=f-(f-o[0])*roundCorner,b=g-(g-o[1])*roundCorner,n.setTripleAt(f,g,v,m,w,b,x),x+=1):(n.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 n},RoundCornersModifier.prototype.processShapes=function(e){var r,n,i=this.shapes.length,a,o,s=this.rd.v;if(s!==0){var l,c;for(n=0;n<i;n+=1){if(l=this.shapes[n],c=l.localShapeCollection,!(!l.shape._mdf&&!this._mdf&&!e))for(c.releaseShapes(),l.shape._mdf=!0,r=l.shape.paths.shapes,o=l.shape.paths._length,a=0;a<o;a+=1)c.addShape(this.processPath(r[a],s));l.shape.paths=l.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function floatEqual(e,r){return Math.abs(e-r)*1e5<=Math.min(Math.abs(e),Math.abs(r))}function floatZero(e){return Math.abs(e)<=1e-5}function lerp(e,r,n){return e*(1-n)+r*n}function lerpPoint(e,r,n){return[lerp(e[0],r[0],n),lerp(e[1],r[1],n)]}function quadRoots(e,r,n){if(e===0)return[];var i=r*r-4*e*n;if(i<0)return[];var a=-r/(2*e);if(i===0)return[a];var o=Math.sqrt(i)/(2*e);return[a-o,a+o]}function polynomialCoefficients(e,r,n,i){return[-e+3*r-3*n+i,3*e-6*r+3*n,-3*e+3*r,e]}function singlePoint(e){return new PolynomialBezier(e,e,e,e,!1)}function PolynomialBezier(e,r,n,i,a){a&&pointEqual(e,r)&&(r=lerpPoint(e,i,1/3)),a&&pointEqual(n,i)&&(n=lerpPoint(e,i,2/3));var o=polynomialCoefficients(e[0],r[0],n[0],i[0]),s=polynomialCoefficients(e[1],r[1],n[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,r,n,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 r=this.derivative(e);return Math.atan2(r[1],r[0])},PolynomialBezier.prototype.normalAngle=function(e){var r=this.derivative(e);return Math.atan2(r[0],r[1])},PolynomialBezier.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(e))return[];var r=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,n=r*r-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(n<0)return[];var i=Math.sqrt(n);return floatZero(i)?i>0&&i<1?[r]:[]:[r-i,r+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 r=lerpPoint(this.points[0],this.points[1],e),n=lerpPoint(this.points[1],this.points[2],e),i=lerpPoint(this.points[2],this.points[3],e),a=lerpPoint(r,n,e),o=lerpPoint(n,i,e),s=lerpPoint(a,o,e);return[new PolynomialBezier(this.points[0],r,a,s,!0),new PolynomialBezier(s,o,i,this.points[3],!0)]};function extrema(e,r){var n=e.points[0][r],i=e.points[e.points.length-1][r];if(n>i){var a=i;i=n,n=a}for(var o=quadRoots(3*e.a[r],2*e.b[r],e.c[r]),s=0;s<o.length;s+=1)if(o[s]>0&&o[s]<1){var l=e.point(o[s])[r];l<n?n=l:l>i&&(i=l)}return{min:n,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,r,n){var i=e.boundingBox();return{cx:i.cx,cy:i.cy,width:i.width,height:i.height,bez:e,t:(r+n)/2,t1:r,t2:n}}function splitData(e){var r=e.bez.split(.5);return[intersectData(r[0],e.t1,e.t),intersectData(r[1],e.t,e.t2)]}function boxIntersect(e,r){return Math.abs(e.cx-r.cx)*2<e.width+r.width&&Math.abs(e.cy-r.cy)*2<e.height+r.height}function intersectsImpl(e,r,n,i,a,o){if(boxIntersect(e,r)){if(n>=o||e.width<=i&&e.height<=i&&r.width<=i&&r.height<=i){a.push([e.t,r.t]);return}var s=splitData(e),l=splitData(r);intersectsImpl(s[0],l[0],n+1,i,a,o),intersectsImpl(s[0],l[1],n+1,i,a,o),intersectsImpl(s[1],l[0],n+1,i,a,o),intersectsImpl(s[1],l[1],n+1,i,a,o)}}PolynomialBezier.prototype.intersections=function(e,r,n){r===void 0&&(r=2),n===void 0&&(n=7);var i=[];return intersectsImpl(intersectData(this,0,1),intersectData(e,0,1),0,r,i,n),i},PolynomialBezier.shapeSegment=function(e,r){var n=(r+1)%e.length();return new PolynomialBezier(e.v[r],e.o[r],e.i[n],e.v[n],!0)},PolynomialBezier.shapeSegmentInverted=function(e,r){var n=(r+1)%e.length();return new PolynomialBezier(e.v[n],e.i[n],e.o[r],e.v[r],!0)};function crossProduct(e,r){return[e[1]*r[2]-e[2]*r[1],e[2]*r[0]-e[0]*r[2],e[0]*r[1]-e[1]*r[0]]}function lineIntersection(e,r,n,i){var a=[e[0],e[1],1],o=[r[0],r[1],1],s=[n[0],n[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,r,n){return[e[0]+Math.cos(r)*n,e[1]-Math.sin(r)*n]}function pointDistance(e,r){return Math.hypot(e[0]-r[0],e[1]-r[1])}function pointEqual(e,r){return floatEqual(e[0],r[0])&&floatEqual(e[1],r[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(e,r){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(e,r.s,0,null,this),this.frequency=PropertyFactory.getProp(e,r.r,0,null,this),this.pointsType=PropertyFactory.getProp(e,r.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(e,r,n,i,a,o,s){var l=n-Math.PI/2,c=n+Math.PI/2,u=r[0]+Math.cos(n)*i*a,h=r[1]-Math.sin(n)*i*a;e.setTripleAt(u,h,u+Math.cos(l)*o,h-Math.sin(l)*o,u+Math.cos(c)*s,h-Math.sin(c)*s,e.length())}function getPerpendicularVector(e,r){var n=[r[0]-e[0],r[1]-e[1]],i=-Math.PI*.5,a=[Math.cos(i)*n[0]-Math.sin(i)*n[1],Math.sin(i)*n[0]+Math.cos(i)*n[1]];return a}function getProjectingAngle(e,r){var n=r===0?e.length()-1:r-1,i=(r+1)%e.length(),a=e.v[n],o=e.v[i],s=getPerpendicularVector(a,o);return Math.atan2(0,1)-Math.atan2(s[1],s[0])}function zigZagCorner(e,r,n,i,a,o,s){var l=getProjectingAngle(r,n),c=r.v[n%r._length],u=r.v[n===0?r._length-1:n-1],h=r.v[(n+1)%r._length],x=o===2?Math.sqrt(Math.pow(c[0]-u[0],2)+Math.pow(c[1]-u[1],2)):0,f=o===2?Math.sqrt(Math.pow(c[0]-h[0],2)+Math.pow(c[1]-h[1],2)):0;setPoint(e,r.v[n%r._length],l,s,i,f/((a+1)*2),x/((a+1)*2))}function zigZagSegment(e,r,n,i,a,o){for(var s=0;s<i;s+=1){var l=(s+1)/(i+1),c=a===2?Math.sqrt(Math.pow(r.points[3][0]-r.points[0][0],2)+Math.pow(r.points[3][1]-r.points[0][1],2)):0,u=r.normalAngle(l),h=r.point(l);setPoint(e,h,u,o,n,c/((i+1)*2),c/((i+1)*2)),o=-o}return o}ZigZagModifier.prototype.processPath=function(e,r,n,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,r,n,i,s);for(var c=0;c<a;c+=1)s=zigZagSegment(o,l,r,n,i,-s),c===a-1&&!e.c?l=null:l=PolynomialBezier.shapeSegment(e,(c+1)%a),zigZagCorner(o,e,c+1,r,n,i,s);return o},ZigZagModifier.prototype.processShapes=function(e){var r,n,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,h;for(n=0;n<i;n+=1){if(u=this.shapes[n],h=u.localShapeCollection,!(!u.shape._mdf&&!this._mdf&&!e))for(h.releaseShapes(),u.shape._mdf=!0,r=u.shape.paths.shapes,o=u.shape.paths._length,a=0;a<o;a+=1)h.addShape(this.processPath(r[a],s,l,c));u.shape.paths=u.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function linearOffset(e,r,n){var i=Math.atan2(r[0]-e[0],r[1]-e[1]);return[polarOffset(e,i,n),polarOffset(r,i,n)]}function offsetSegment(e,r){var n,i,a,o,s,l,c;c=linearOffset(e.points[0],e.points[1],r),n=c[0],i=c[1],c=linearOffset(e.points[1],e.points[2],r),a=c[0],o=c[1],c=linearOffset(e.points[2],e.points[3],r),s=c[0],l=c[1];var u=lineIntersection(n,i,a,o);u===null&&(u=i);var h=lineIntersection(s,l,a,o);return h===null&&(h=s),new PolynomialBezier(n,u,h,l)}function joinLines(e,r,n,i,a){var o=r.points[3],s=n.points[0];if(i===3||pointEqual(o,s))return o;if(i===2){var l=-r.tangentAngle(1),c=-n.tangentAngle(0)+Math.PI,u=lineIntersection(o,polarOffset(o,l+Math.PI/2,100),s,polarOffset(s,l+Math.PI/2,100)),h=u?pointDistance(u,o):pointDistance(o,s)/2,x=polarOffset(o,l,2*h*roundCorner);return e.setXYAt(x[0],x[1],"o",e.length()-1),x=polarOffset(s,c,2*h*roundCorner),e.setTripleAt(s[0],s[1],s[0],s[1],x[0],x[1],e.length()),s}var f=pointEqual(o,r.points[2])?r.points[0]:r.points[2],g=pointEqual(s,n.points[1])?n.points[3]:n.points[1],v=lineIntersection(f,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,r){var n=e.intersections(r);return n.length&&floatEqual(n[0][0],1)&&n.shift(),n.length?n[0]:null}function pruneSegmentIntersection(e,r){var n=e.slice(),i=r.slice(),a=getIntersection(e[e.length-1],r[0]);return a&&(n[e.length-1]=e[e.length-1].split(a[0])[0],i[0]=r[0].split(a[1])[1]),e.length>1&&r.length>1&&(a=getIntersection(e[0],r[r.length-1]),a)?[[e[0].split(a[0])[0]],[r[r.length-1].split(a[1])[1]]]:[n,i]}function pruneIntersections(e){for(var r,n=1;n<e.length;n+=1)r=pruneSegmentIntersection(e[n-1],e[n]),e[n-1]=r[0],e[n]=r[1];return e.length>1&&(r=pruneSegmentIntersection(e[e.length-1],e[0]),e[e.length-1]=r[0],e[0]=r[1]),e}function offsetSegmentSplit(e,r){var n=e.inflectionPoints(),i,a,o,s;if(n.length===0)return[offsetSegment(e,r)];if(n.length===1||floatEqual(n[1],1))return o=e.split(n[0]),i=o[0],a=o[1],[offsetSegment(i,r),offsetSegment(a,r)];o=e.split(n[0]),i=o[0];var l=(n[1]-n[0])/(1-n[0]);return o=o[1].split(l),s=o[0],a=o[1],[offsetSegment(i,r),offsetSegment(s,r),offsetSegment(a,r)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(e,r){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,r.a,0,null,this),this.miterLimit=PropertyFactory.getProp(e,r.ml,0,null,this),this.lineJoin=r.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(e,r,n,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,r));if(!e.c)for(s=o-1;s>=0;s-=1)c=PolynomialBezier.shapeSegmentInverted(e,s),u.push(offsetSegmentSplit(c,r));u=pruneIntersections(u);var h=null,x=null;for(s=0;s<u.length;s+=1){var f=u[s];for(x&&(h=joinLines(a,x,f[0],n,i)),x=f[f.length-1],l=0;l<f.length;l+=1)c=f[l],h&&pointEqual(c.points[0],h)?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()),h=c.points[3]}return u.length&&joinLines(a,x,u[0][0],n,i),a},OffsetPathModifier.prototype.processShapes=function(e){var r,n,i=this.shapes.length,a,o,s=this.amount.v,l=this.miterLimit.v,c=this.lineJoin;if(s!==0){var u,h;for(n=0;n<i;n+=1){if(u=this.shapes[n],h=u.localShapeCollection,!(!u.shape._mdf&&!this._mdf&&!e))for(h.releaseShapes(),u.shape._mdf=!0,r=u.shape.paths.shapes,o=u.shape.paths._length,a=0;a<o;a+=1)h.addShape(this.processPath(r[a],s,c,l));u.shape.paths=u.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function getFontProperties(e){for(var r=e.fStyle?e.fStyle.split(" "):[],n="normal",i="normal",a=r.length,o,s=0;s<a;s+=1)switch(o=r[s].toLowerCase(),o){case"italic":i="italic";break;case"bold":n="700";break;case"black":n="900";break;case"medium":n="500";break;case"regular":case"normal":n="400";break;case"light":case"thin":n="200";break}return{style:i,weight:e.fWeight||n}}var FontManager=function(){var e=5e3,r={w:0,size:0,shapes:[],data:{shapes:[]}},n=[];n=n.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,h=127487,x=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function f(T){var I=T.split(","),S,C=I.length,D=[];for(S=0;S<C;S+=1)I[S]!=="sans-serif"&&I[S]!=="monospace"&&D.push(I[S]);return D.join(",")}function g(T,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 D=C.offsetWidth;return C.style.fontFamily=f(T)+", "+I,{node:C,w:D,parent:S}}function v(){var T,I=this.fonts.length,S,C,D=I;for(T=0;T<I;T+=1)this.fonts[T].loaded?D-=1:this.fonts[T].fOrigin==="n"||this.fonts[T].origin===0?this.fonts[T].loaded=!0:(S=this.fonts[T].monoCase.node,C=this.fonts[T].monoCase.w,S.offsetWidth!==C?(D-=1,this.fonts[T].loaded=!0):(S=this.fonts[T].sansCase.node,C=this.fonts[T].sansCase.w,S.offsetWidth!==C&&(D-=1,this.fonts[T].loaded=!0)),this.fonts[T].loaded&&(this.fonts[T].sansCase.parent.parentNode.removeChild(this.fonts[T].sansCase.parent),this.fonts[T].monoCase.parent.parentNode.removeChild(this.fonts[T].monoCase.parent)));D!==0&&Date.now()-this.initTime<e?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function m(T,I){var S=document.body&&I?"svg":"canvas",C,D=getFontProperties(T);if(S==="svg"){var k=createNS("text");k.style.fontSize="100px",k.setAttribute("font-family",T.fFamily),k.setAttribute("font-style",D.style),k.setAttribute("font-weight",D.weight),k.textContent="1",T.fClass?(k.style.fontFamily="inherit",k.setAttribute("class",T.fClass)):k.style.fontFamily=T.fFamily,I.appendChild(k),C=k}else{var F=new OffscreenCanvas(500,500).getContext("2d");F.font=D.style+" "+D.weight+" 100px "+T.fFamily,C=F}function $(G){return S==="svg"?(C.textContent=G,C.getComputedTextLength()):C.measureText(G).width}return{measureText:$}}function w(T,I){if(!T){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=T.list;return}if(!document.body){this.isLoaded=!0,T.list.forEach(function(L){L.helper=m(L),L.cache={}}),this.fonts=T.list;return}var S=T.list,C,D=S.length,k=D;for(C=0;C<D;C+=1){var F=!0,$,G;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,k-=1;else if(S[C].fOrigin==="p"||S[C].origin===3){if($=document.querySelectorAll('style[f-forigin="p"][f-family="'+S[C].fFamily+'"], style[f-origin="3"][f-family="'+S[C].fFamily+'"]'),$.length>0&&(F=!1),F){var j=createTag("style");j.setAttribute("f-forigin",S[C].fOrigin),j.setAttribute("f-origin",S[C].origin),j.setAttribute("f-family",S[C].fFamily),j.type="text/css",j.innerText="@font-face {font-family: "+S[C].fFamily+"; font-style: normal; src: url('"+S[C].fPath+"');}",I.appendChild(j)}}else if(S[C].fOrigin==="g"||S[C].origin===1){for($=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),G=0;G<$.length;G+=1)$[G].href.indexOf(S[C].fPath)!==-1&&(F=!1);if(F){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($=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),G=0;G<$.length;G+=1)S[C].fPath===$[G].src&&(F=!1);if(F){var H=createTag("link");H.setAttribute("f-forigin",S[C].fOrigin),H.setAttribute("f-origin",S[C].origin),H.setAttribute("rel","stylesheet"),H.setAttribute("href",S[C].fPath),I.appendChild(H)}}S[C].helper=m(S[C],I),S[C].cache={},this.fonts.push(S[C])}k===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function b(T){if(T){this.chars||(this.chars=[]);var I,S=T.length,C,D=this.chars.length,k;for(I=0;I<S;I+=1){for(C=0,k=!1;C<D;)this.chars[C].style===T[I].style&&this.chars[C].fFamily===T[I].fFamily&&this.chars[C].ch===T[I].ch&&(k=!0),C+=1;k||(this.chars.push(T[I]),D+=1)}}}function d(T,I,S){for(var C=0,D=this.chars.length;C<D;){if(this.chars[C].ch===T&&this.chars[C].style===I&&this.chars[C].fFamily===S)return this.chars[C];C+=1}return(typeof T=="string"&&T.charCodeAt(0)!==13||!T)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",T,I,S)),r}function p(T,I,S){var C=this.getFontByName(I),D=T;if(!C.cache[D]){var k=C.helper;if(T===" "){var F=k.measureText("|"+T+"|"),$=k.measureText("||");C.cache[D]=(F-$)/100}else C.cache[D]=k.measureText(T)/100}return C.cache[D]*S}function y(T){for(var I=0,S=this.fonts.length;I<S;){if(this.fonts[I].fName===T)return this.fonts[I];I+=1}return this.fonts[0]}function E(T){var I=0,S=T.charCodeAt(0);if(S>=55296&&S<=56319){var C=T.charCodeAt(1);C>=56320&&C<=57343&&(I=(S-55296)*1024+C-56320+65536)}return I}function _(T,I){var S=T.toString(16)+I.toString(16);return x.indexOf(S)!==-1}function P(T){return T===c}function A(T){return T===l}function R(T){var I=E(T);return I>=u&&I<=h}function M(T){return R(T.substr(0,2))&&R(T.substr(2,2))}function B(T){return n.indexOf(T)!==-1}function O(T,I){var S=E(T.substr(I,2));if(S!==i)return!1;var C=0;for(I+=2;C<5;){if(S=E(T.substr(I,2)),S<o||S>s)return!1;C+=1,I+=2}return E(T.substr(I,2))===a}function V(){this.isLoaded=!0}var q=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)};q.isModifier=_,q.isZeroWidthJoiner=P,q.isFlagEmoji=M,q.isRegionalCode=R,q.isCombinedCharacter=B,q.isRegionalFlag=O,q.isVariationSelector=A,q.BLACK_FLAG_CODE_POINT=i;var N={addChars:b,addFonts:w,getCharData:d,getFontByName:y,measureText:p,checkLoadedFonts:v,setIsLoaded:V};return q.prototype=N,q}();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(r){this.renderableComponents.indexOf(r)===-1&&this.renderableComponents.push(r)},removeRenderableComponent:function(r){this.renderableComponents.indexOf(r)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(r),1)},prepareRenderableFrame:function(r){this.checkLayerLimits(r)},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(r){this.data.ip-this.data.st<=r&&this.data.op-this.data.st>r?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 r,n=this.renderableComponents.length;for(r=0;r<n;r+=1)this.renderableComponents[r].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(r){return e[r]||""}}();function SliderEffect(e,r,n){this.p=PropertyFactory.getProp(r,e.v,0,0,n)}function AngleEffect(e,r,n){this.p=PropertyFactory.getProp(r,e.v,0,0,n)}function ColorEffect(e,r,n){this.p=PropertyFactory.getProp(r,e.v,1,0,n)}function PointEffect(e,r,n){this.p=PropertyFactory.getProp(r,e.v,1,0,n)}function LayerIndexEffect(e,r,n){this.p=PropertyFactory.getProp(r,e.v,0,0,n)}function MaskIndexEffect(e,r,n){this.p=PropertyFactory.getProp(r,e.v,0,0,n)}function CheckboxEffect(e,r,n){this.p=PropertyFactory.getProp(r,e.v,0,0,n)}function NoValueEffect(){this.p={}}function EffectsManager(e,r){var n=e.ef||[];this.effectElements=[];var i,a=n.length,o;for(i=0;i<a;i+=1)o=new GroupEffect(n[i],r),this.effectElements.push(o)}function GroupEffect(e,r){this.init(e,r)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(e,r){this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(r);var n,i=this.data.ef.length,a,o=this.data.ef;for(n=0;n<i;n+=1){switch(a=null,o[n].ty){case 0:a=new SliderEffect(o[n],r,this);break;case 1:a=new AngleEffect(o[n],r,this);break;case 2:a=new ColorEffect(o[n],r,this);break;case 3:a=new PointEffect(o[n],r,this);break;case 4:case 7:a=new CheckboxEffect(o[n],r,this);break;case 10:a=new LayerIndexEffect(o[n],r,this);break;case 11:a=new MaskIndexEffect(o[n],r,this);break;case 5:a=new EffectsManager(o[n],r);break;default:a=new NoValueEffect(o[n]);break}a&&this.effectElements.push(a)}};function BaseElement(){}BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var r=0,n=this.data.masksProperties.length;r<n;){if(this.data.masksProperties[r].mode!=="n"&&this.data.masksProperties[r].cl!==!1)return!0;r+=1}return!1},initExpressions:function(){var r=getExpressionInterfaces();if(r){var n=r("layer"),i=r("effects"),a=r("shape"),o=r("text"),s=r("comp");this.layerInterface=n(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 r=getBlendMode(this.data.bm),n=this.baseElement||this.layerElement;n.style["mix-blend-mode"]=r},initBaseData:function(r,n,i){this.globalData=n,this.comp=i,this.data=r,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(r,n){var i,a=this.dynamicProperties.length;for(i=0;i<a;i+=1)(n||this._isParent&&this.dynamicProperties[i].propType==="transform")&&(this.dynamicProperties[i].getValue(),this.dynamicProperties[i]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(r){this.dynamicProperties.indexOf(r)===-1&&this.dynamicProperties.push(r)}};function FootageElement(e,r,n){this.initFrame(),this.initRenderable(),this.assetData=r.getAssetData(e.refId),this.footageData=r.imageLoader.getAsset(this.assetData),this.initBaseData(e,r,n)}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 r=e("footage");this.layerInterface=r(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData};function AudioElement(e,r,n){this.initFrame(),this.initRenderable(),this.assetData=r.getAssetData(e.refId),this.initBaseData(e,r,n),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,r.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 r=this.tm.v;this._currentTime=r}this._volume=this.lv.v[0];var n=this._volume*this._volumeMultiplier;this._previousVolume!==n&&(this._previousVolume=n,this.audio.volume(n))},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 r,n=this.layers.length,i;for(this.completeLayers=!0,r=n-1;r>=0;r-=1)this.elements[r]||(i=this.layers[r],i.ip-i.st<=e-this.layers[r].st&&i.op-i.st>e-this.layers[r].st&&this.buildItem(r)),this.completeLayers=this.elements[r]?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,r=this.layers.length;for(e=0;e<r;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(e){this.completeLayers=!1;var r,n=e.length,i,a=this.layers.length;for(r=0;r<n;r+=1)for(i=0;i<a;){if(this.layers[i].id===e[r].id){this.layers[i]=e[r];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,r,n){for(var i=this.elements,a=this.layers,o=0,s=a.length;o<s;)a[o].ind==r&&(!i[o]||i[o]===!0?(this.buildItem(o),this.addPendingElement(e)):(n.push(i[o]),i[o].setAsParent(),a[o].parent!==void 0?this.buildElementParenting(e,a[o].parent,n):e.setHierarchy(n))),o+=1},BaseRenderer.prototype.addPendingElement=function(e){this.pendingElements.push(e)},BaseRenderer.prototype.searchExtraCompositions=function(e){var r,n=e.length;for(r=0;r<n;r+=1)if(e[r].xt){var i=this.createComp(e[r]);i.initExpressions(),this.globalData.projectInterface.registerComposition(i)}},BaseRenderer.prototype.getElementById=function(e){var r,n=this.elements.length;for(r=0;r<n;r+=1)if(this.elements[r].data.ind===e)return this.elements[r];return null},BaseRenderer.prototype.getElementByPath=function(e){var r=e.shift(),n;if(typeof r=="number")n=this.elements[r];else{var i,a=this.elements.length;for(i=0;i<a;i+=1)if(this.elements[i].data.nm===r){n=this.elements[i];break}}return e.length===0?n:n.getElementByPath(e)},BaseRenderer.prototype.setupGlobalData=function(e,r){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,r),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 r=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:r,localMat:r,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 r,n=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(r=this.finalTransform.mProp.v.props,n.cloneFromProps(r),i=0;i<a;i+=1)n.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 r=0,n=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;r<n;)this.localTransforms[r]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[r]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),r+=1;if(this.finalTransform._localMatMdf){var i=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(i),r=1;r<n;r+=1){var a=this.localTransforms[r].matrix;i.multiply(a)}i.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var o=this.finalTransform.localOpacity;for(r=0;r<n;r+=1)o*=this.localTransforms[r].opacity*.01;this.finalTransform.localOpacity=o}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var r=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(r.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var n=0,i=r.length;for(n=0;n<i;n+=1)this.localTransforms.push(r[n])}}},globalToLocal:function(r){var n=[];n.push(this.finalTransform);for(var i=!0,a=this.comp;i;)a.finalTransform?(a.data.hasMask&&n.splice(0,0,a.finalTransform),a=a.comp):i=!1;var o,s=n.length,l;for(o=0;o<s;o+=1)l=n[o].mat.applyToPointArray(0,0,0),r=[r[0]-l[0],r[1]-l[1],0];return r},mHelper:new Matrix};function MaskElement(e,r,n){this.data=e,this.element=r,this.globalData=n,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=[],h,x,f=createElementID(),g,v,m,w,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 p;if(l[a].x.k!==0?(b="mask",d="mask",w=PropertyFactory.getProp(this.element,l[a].x,0,null,this.element),p=createElementID(),v=createNS("filter"),v.setAttribute("id",p),m=createNS("feMorphology"),m.setAttribute("operator","erode"),m.setAttribute("in","SourceGraphic"),m.setAttribute("radius","0"),v.appendChild(m),i.appendChild(v),s.setAttribute("stroke",l[a].mode==="s"?"#000000":"#ffffff")):(m=null,w=null),this.storedData[a]={elem:s,x:w,expan:m,lastPath:"",lastOperator:"",filterId:p,lastRadius:0},l[a].mode==="i"){x=u.length;var y=createNS("g");for(h=0;h<x;h+=1)y.appendChild(u[h]);var E=createNS("mask");E.setAttribute("mask-type","alpha"),E.setAttribute("id",f+"_"+c),E.appendChild(s),i.appendChild(E),y.setAttribute("mask","url("+getLocationHref()+"#"+f+"_"+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",f),this.element.maskedElement.setAttribute(d,"url("+getLocationHref()+"#"+f+")"),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 r=this.element.finalTransform.mat,n,i=this.masksProperties.length;for(n=0;n<i;n+=1)if((this.viewData[n].prop._mdf||e)&&this.drawPath(this.masksProperties[n],this.viewData[n].prop.v,this.viewData[n]),(this.viewData[n].op._mdf||e)&&this.viewData[n].elem.setAttribute("fill-opacity",this.viewData[n].op.v),this.masksProperties[n].mode!=="n"&&(this.viewData[n].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[n].invRect.setAttribute("transform",r.getInverseMatrix().to2dCSS()),this.storedData[n].x&&(this.storedData[n].x._mdf||e))){var a=this.storedData[n].expan;this.storedData[n].x.v<0?(this.storedData[n].lastOperator!=="erode"&&(this.storedData[n].lastOperator="erode",this.storedData[n].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[n].filterId+")")),a.setAttribute("radius",-this.storedData[n].x.v)):(this.storedData[n].lastOperator!=="dilate"&&(this.storedData[n].lastOperator="dilate",this.storedData[n].elem.setAttribute("filter",null)),this.storedData[n].elem.setAttribute("stroke-width",this.storedData[n].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,r,n){var i=" M"+r.v[0][0]+","+r.v[0][1],a,o;for(o=r._length,a=1;a<o;a+=1)i+=" C"+r.o[a-1][0]+","+r.o[a-1][1]+" "+r.i[a][0]+","+r.i[a][1]+" "+r.v[a][0]+","+r.v[a][1];if(r.c&&o>1&&(i+=" C"+r.o[a-1][0]+","+r.o[a-1][1]+" "+r.i[0][0]+","+r.i[0][1]+" "+r.v[0][0]+","+r.v[0][1]),n.lastPath!==i){var s="";n.elem&&(r.c&&(s=e.inv?this.solidPath+i:i),n.elem.setAttribute("d",s)),n.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=r,e.createAlphaToLuminanceFilter=n;function r(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 n(){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 r,n="SourceGraphic",i=e.data.ef?e.data.ef.length:0,a=createElementID(),o=filtersFactory.createFilter(a,!0),s=0;this.filters=[];var l;for(r=0;r<i;r+=1){l=null;var c=e.data.ef[r].ty;if(registeredEffects$1[c]){var u=registeredEffects$1[c].effect;l=new u(o,e.effectsManager.effectElements[r],e,idPrefix+s,n),n=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 r,n=this.filters.length;for(r=0;r<n;r+=1)this.filters[r].renderFrame(e)},SVGEffects.prototype.getEffects=function(e){var r,n=this.filters.length,i=[];for(r=0;r<n;r+=1)this.filters[r].type===e&&i.push(this.filters[r]);return i};function registerEffect$1(e,r,n){registeredEffects$1[e]={effect:r,countsAsEffect:n}}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 r=null;if(this.data.td){this.matteMasks={};var n=createNS("g");n.setAttribute("id",this.layerId),n.appendChild(this.layerElement),r=n,this.globalData.defs.appendChild(n)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),r=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,r?r.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(r){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[r]){var n=this.layerId+"_"+r,i,a,o,s;if(r===1||r===3){var l=createNS("mask");l.setAttribute("id",n),l.setAttribute("mask-type",r===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&&r===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(r===2){var c=createNS("mask");c.setAttribute("id",n),c.setAttribute("mask-type","alpha");var u=createNS("g");c.appendChild(u),i=createElementID(),a=filtersFactory.createFilter(i);var h=createNS("feComponentTransfer");h.setAttribute("in","SourceGraphic"),a.appendChild(h);var x=createNS("feFuncA");x.setAttribute("type","table"),x.setAttribute("tableValues","1.0 0.0"),h.appendChild(x),this.globalData.defs.appendChild(a);var f=createNS("rect");f.setAttribute("width",this.comp.data.w),f.setAttribute("height",this.comp.data.h),f.setAttribute("x","0"),f.setAttribute("y","0"),f.setAttribute("fill","#ffffff"),f.setAttribute("opacity","0"),u.setAttribute("filter","url("+getLocationHref()+"#"+i+")"),u.appendChild(f),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(f),s.appendChild(this.layerElement),u.appendChild(s)),this.globalData.defs.appendChild(c)}this.matteMasks[r]=n}return this.matteMasks[r]},setMatte:function(r){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+r+")")}};function HierarchyElement(){}HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(r){this.hierarchy=r},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(n,i,a){this.initFrame(),this.initBaseData(n,i,a),this.initTransform(n,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 n=this.baseElement||this.layerElement;n.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var n=this.baseElement||this.layerElement;n.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(n){this._mdf=!1,this.prepareRenderableFrame(n),this.prepareProperties(n,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};extendPrototype([RenderableElement,createProxyFunction(e)],RenderableDOMElement)})();function IImageElement(e,r,n){this.assetData=r.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=r.slotManager.getProp(this.assetData)),this.initElement(e,r,n),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,r){this.elem=e,this.pos=r}function IShapeElement(){}IShapeElement.prototype={addShapeToModifiers:function(r){var n,i=this.shapeModifiers.length;for(n=0;n<i;n+=1)this.shapeModifiers[n].addShape(r)},isShapeInAnimatedModifiers:function(r){for(var n=0,i=this.shapeModifiers.length;n<i;)if(this.shapeModifiers[n].isAnimatedWithShape(r))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var r,n=this.shapes.length;for(r=0;r<n;r+=1)this.shapes[r].sh.reset();n=this.shapeModifiers.length;var i;for(r=n-1;r>=0&&(i=this.shapeModifiers[r].processShapes(this._isFirstFrame),!i);r-=1);}},searchProcessedElement:function(r){for(var n=this.processedElements,i=0,a=n.length;i<a;){if(n[i].elem===r)return n[i].pos;i+=1}return 0},addProcessedElement:function(r,n){for(var i=this.processedElements,a=i.length;a;)if(a-=1,i[a].elem===r){i[a].pos=n;return}i.push(new ProcessedElement(r,n))},prepareFrame:function(r){this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(e,r,n){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=n,this.lvl=r,this._isAnimated=!!n.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,r){this.data=e,this.type=e.ty,this.d="",this.lvl=r,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,r,n,i){this.elem=e,this.frameId=-1,this.dataProps=createSizedArray(r.length),this.renderer=n,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",r.length?r.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(i);var a,o=r.length||0,s;for(a=0;a<o;a+=1)s=PropertyFactory.getProp(e,r[a].v,0,0,this),this.k=s.k||this.k,this.dataProps[a]={n:r[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 r=0,n=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),r=0;r<n;r+=1)this.dataProps[r].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[r].p.v:this.dashArray[r]=this.dataProps[r].p.v:this.dashoffset[0]=this.dataProps[r].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty);function SVGStrokeStyleData(e,r,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,r.o,0,.01,this),this.w=PropertyFactory.getProp(e,r.w,0,null,this),this.d=new DashProperty(e,r.d||{},"svg",this),this.c=PropertyFactory.getProp(e,r.c,1,255,this),this.style=n,this._isAnimated=!!this._isAnimated}extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData);function SVGFillStyleData(e,r,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,r.o,0,.01,this),this.c=PropertyFactory.getProp(e,r.c,1,255,this),this.style=n}extendPrototype([DynamicPropertyContainer],SVGFillStyleData);function SVGNoStyleData(e,r,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=n}extendPrototype([DynamicPropertyContainer],SVGNoStyleData);function GradientProperty(e,r,n){this.data=r,this.c=createTypedArray("uint8c",r.p*4);var i=r.k.k[0].s?r.k.k[0].s.length-r.p*4:r.k.k.length-r.p*4;this.o=createTypedArray("float32",i),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=i,this.initDynamicPropertyContainer(n),this.prop=PropertyFactory.getProp(e,r.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}GradientProperty.prototype.comparePoints=function(e,r){for(var n=0,i=this.o.length/2,a;n<i;){if(a=Math.abs(e[n*4]-e[r*4+n*2]),a>.01)return!1;n+=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,r=this.data.k.k.length;e<r;){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 r,n=this.data.p*4,i,a;for(r=0;r<n;r+=1)i=r%4===0?100:255,a=Math.round(this.prop.v[r]*i),this.c[r]!==a&&(this.c[r]=a,this._cmdf=!e);if(this.o.length)for(n=this.prop.v.length,r=this.data.p*4;r<n;r+=1)i=r%2===0?100:1,a=r%2===0?Math.round(this.prop.v[r]*100):this.prop.v[r],this.o[r-this.data.p*4]!==a&&(this.o[r-this.data.p*4]=a,this._omdf=!e);this._mdf=!e}},extendPrototype([DynamicPropertyContainer],GradientProperty);function SVGGradientFillStyleData(e,r,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,r,n)}SVGGradientFillStyleData.prototype.initGradientData=function(e,r,n){this.o=PropertyFactory.getProp(e,r.o,0,.01,this),this.s=PropertyFactory.getProp(e,r.s,1,null,this),this.e=PropertyFactory.getProp(e,r.e,1,null,this),this.h=PropertyFactory.getProp(e,r.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(e,r.a||{k:0},0,degToRads,this),this.g=new GradientProperty(e,r.g,this),this.style=n,this.stops=[],this.setGradientData(n.pElem,r),this.setGradientOpacity(r,n),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(e,r){var n=createElementID(),i=createNS(r.t===1?"linearGradient":"radialGradient");i.setAttribute("id",n),i.setAttribute("spreadMethod","pad"),i.setAttribute("gradientUnits","userSpaceOnUse");var a=[],o,s,l;for(l=r.g.p*4,s=0;s<l;s+=4)o=createNS("stop"),i.appendChild(o),a.push(o);e.setAttribute(r.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+n+")"),this.gf=i,this.cst=a},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,r){if(this.g._hasOpacity&&!this.g._collapsable){var n,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 h=this.stops;for(i=e.g.p*4;i<a;i+=2)n=createNS("stop"),n.setAttribute("stop-color","rgb(255,255,255)"),u.appendChild(n),h.push(n);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=h,this.maskId=c,r.msElem=s}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData);function SVGGradientStrokeStyleData(e,r,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(e,r.w,0,null,this),this.d=new DashProperty(e,r.d||{},"svg",this),this.initGradientData(e,r,n),this._isAnimated=!!this._isAnimated}extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(e,r,n){this.transform={mProps:e,op:r,container:n},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var buildShapeString=function(r,n,i,a){if(n===0)return"";var o=r.o,s=r.i,l=r.v,c,u=" M"+a.applyToPointStringified(l[0][0],l[0][1]);for(c=1;c<n;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&&n&&(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,r=new Matrix,n={createRenderFunction:i};function i(x){switch(x.ty){case"fl":return l;case"gf":return u;case"gs":return c;case"st":return h;case"sh":case"el":case"rc":case"sr":return s;case"tr":return a;case"no":return o;default:return null}}function a(x,f,g){(g||f.transform.op._mdf)&&f.transform.container.setAttribute("opacity",f.transform.op.v),(g||f.transform.mProps._mdf)&&f.transform.container.setAttribute("transform",f.transform.mProps.v.to2dCSS())}function o(){}function s(x,f,g){var v,m,w,b,d,p,y=f.styles.length,E=f.lvl,_,P,A,R;for(p=0;p<y;p+=1){if(b=f.sh._mdf||g,f.styles[p].lvl<E){for(P=r.reset(),A=E-f.styles[p].lvl,R=f.transformers.length-1;!b&&A>0;)b=f.transformers[R].mProps._mdf||b,A-=1,R-=1;if(b)for(A=E-f.styles[p].lvl,R=f.transformers.length-1;A>0;)P.multiply(f.transformers[R].mProps.v),A-=1,R-=1}else P=e;if(_=f.sh.paths,m=_._length,b){for(w="",v=0;v<m;v+=1)d=_.shapes[v],d&&d._length&&(w+=buildShapeString(d,d._length,d.c,P));f.caches[p]=w}else w=f.caches[p];f.styles[p].d+=x.hd===!0?"":w,f.styles[p]._mdf=b||f.styles[p]._mdf}}function l(x,f,g){var v=f.style;(f.c._mdf||g)&&v.pElem.setAttribute("fill","rgb("+bmFloor(f.c.v[0])+","+bmFloor(f.c.v[1])+","+bmFloor(f.c.v[2])+")"),(f.o._mdf||g)&&v.pElem.setAttribute("fill-opacity",f.o.v)}function c(x,f,g){u(x,f,g),h(x,f,g)}function u(x,f,g){var v=f.gf,m=f.g._hasOpacity,w=f.s.v,b=f.e.v;if(f.o._mdf||g){var d=x.ty==="gf"?"fill-opacity":"stroke-opacity";f.style.pElem.setAttribute(d,f.o.v)}if(f.s._mdf||g){var p=x.t===1?"x1":"cx",y=p==="x1"?"y1":"cy";v.setAttribute(p,w[0]),v.setAttribute(y,w[1]),m&&!f.g._collapsable&&(f.of.setAttribute(p,w[0]),f.of.setAttribute(y,w[1]))}var E,_,P,A;if(f.g._cmdf||g){E=f.cst;var R=f.g.c;for(P=E.length,_=0;_<P;_+=1)A=E[_],A.setAttribute("offset",R[_*4]+"%"),A.setAttribute("stop-color","rgb("+R[_*4+1]+","+R[_*4+2]+","+R[_*4+3]+")")}if(m&&(f.g._omdf||g)){var M=f.g.o;for(f.g._collapsable?E=f.cst:E=f.ost,P=E.length,_=0;_<P;_+=1)A=E[_],f.g._collapsable||A.setAttribute("offset",M[_*2]+"%"),A.setAttribute("stop-opacity",M[_*2+1])}if(x.t===1)(f.e._mdf||g)&&(v.setAttribute("x2",b[0]),v.setAttribute("y2",b[1]),m&&!f.g._collapsable&&(f.of.setAttribute("x2",b[0]),f.of.setAttribute("y2",b[1])));else{var B;if((f.s._mdf||f.e._mdf||g)&&(B=Math.sqrt(Math.pow(w[0]-b[0],2)+Math.pow(w[1]-b[1],2)),v.setAttribute("r",B),m&&!f.g._collapsable&&f.of.setAttribute("r",B)),f.e._mdf||f.h._mdf||f.a._mdf||g){B||(B=Math.sqrt(Math.pow(w[0]-b[0],2)+Math.pow(w[1]-b[1],2)));var O=Math.atan2(b[1]-w[1],b[0]-w[0]),V=f.h.v;V>=1?V=.99:V<=-1&&(V=-.99);var q=B*V,N=Math.cos(O+f.a.v)*q+w[0],T=Math.sin(O+f.a.v)*q+w[1];v.setAttribute("fx",N),v.setAttribute("fy",T),m&&!f.g._collapsable&&(f.of.setAttribute("fx",N),f.of.setAttribute("fy",T))}}}function h(x,f,g){var v=f.style,m=f.d;m&&(m._mdf||g)&&m.dashStr&&(v.pElem.setAttribute("stroke-dasharray",m.dashStr),v.pElem.setAttribute("stroke-dashoffset",m.dashoffset[0])),f.c&&(f.c._mdf||g)&&v.pElem.setAttribute("stroke","rgb("+bmFloor(f.c.v[0])+","+bmFloor(f.c.v[1])+","+bmFloor(f.c.v[2])+")"),(f.o._mdf||g)&&v.pElem.setAttribute("stroke-opacity",f.o.v),(f.w._mdf||g)&&(v.pElem.setAttribute("stroke-width",f.w.v),v.msElem&&v.msElem.setAttribute("stroke-width",f.w.v))}return n}();function SVGShapeElement(e,r,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,r,n),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,r=this.shapes.length,n,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<r;e+=1)n=this.shapes[e],n.styles.indexOf(o)!==-1&&(s.push(n),l=n._isAnimated||l);s.length>1&&l&&this.setShapesAsAnimated(s)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var r,n=e.length;for(r=0;r<n;r+=1)e[r].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(e,r){var n,i=new SVGStyleData(e,r),a=i.pElem;if(e.ty==="st")n=new SVGStrokeStyleData(this,e,i);else if(e.ty==="fl")n=new SVGFillStyleData(this,e,i);else if(e.ty==="gf"||e.ty==="gs"){var o=e.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;n=new o(this,e,i),this.globalData.defs.appendChild(n.gf),n.maskId&&(this.globalData.defs.appendChild(n.ms),this.globalData.defs.appendChild(n.of),a.setAttribute("mask","url("+getLocationHref()+"#"+n.maskId+")"))}else e.ty==="no"&&(n=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,n),n},SVGShapeElement.prototype.createGroupElement=function(e){var r=new ShapeGroupData;return e.ln&&r.gr.setAttribute("id",e.ln),e.cl&&r.gr.setAttribute("class",e.cl),e.bm&&(r.gr.style["mix-blend-mode"]=getBlendMode(e.bm)),r},SVGShapeElement.prototype.createTransformElement=function(e,r){var n=TransformPropertyFactory.getTransformProperty(this,e,this),i=new SVGTransformData(n,n.o,r);return this.addToAnimatedContents(e,i),i},SVGShapeElement.prototype.createShapeElement=function(e,r,n){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(r,n,a);return this.shapes.push(o),this.addShapeToModifiers(o),this.addToAnimatedContents(e,o),o},SVGShapeElement.prototype.addToAnimatedContents=function(e,r){for(var n=0,i=this.animatedContents.length;n<i;){if(this.animatedContents[n].element===r)return;n+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(e),element:r,data:e})},SVGShapeElement.prototype.setElementStyles=function(e){var r=e.styles,n,i=this.stylesList.length;for(n=0;n<i;n+=1)this.stylesList[n].closed||r.push(this.stylesList[n])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,r=this.itemsData.length;for(e=0;e<r;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),r=this.dynamicProperties.length,e=0;e<r;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(e,r,n,i,a,o,s){var l=[].concat(o),c,u=e.length-1,h,x,f=[],g=[],v,m,w;for(c=u;c>=0;c-=1){if(w=this.searchProcessedElement(e[c]),w?r[c]=n[w-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")w?r[c].style.closed=!1:r[c]=this.createStyleElement(e[c],a),e[c]._render&&r[c].style.pElem.parentNode!==i&&i.appendChild(r[c].style.pElem),f.push(r[c].style);else if(e[c].ty==="gr"){if(!w)r[c]=this.createGroupElement(e[c]);else for(x=r[c].it.length,h=0;h<x;h+=1)r[c].prevViewData[h]=r[c].it[h];this.searchShapes(e[c].it,r[c].it,r[c].prevViewData,r[c].gr,a+1,l,s),e[c]._render&&r[c].gr.parentNode!==i&&i.appendChild(r[c].gr)}else e[c].ty==="tr"?(w||(r[c]=this.createTransformElement(e[c],i)),v=r[c].transform,l.push(v)):e[c].ty==="sh"||e[c].ty==="rc"||e[c].ty==="el"||e[c].ty==="sr"?(w||(r[c]=this.createShapeElement(e[c],l,a)),this.setElementStyles(r[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"?(w?(m=r[c],m.closed=!1):(m=ShapeModifiers.getModifier(e[c].ty),m.init(this,e[c]),r[c]=m,this.shapeModifiers.push(m)),g.push(m)):e[c].ty==="rp"&&(w?(m=r[c],m.closed=!0):(m=ShapeModifiers.getModifier(e[c].ty),r[c]=m,m.init(this,e,c,r),this.shapeModifiers.push(m),s=!1),g.push(m));this.addProcessedElement(e[c],c+1)}for(u=f.length,c=0;c<u;c+=1)f[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,r=this.stylesList.length;for(e=0;e<r;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<r;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,r=this.animatedContents.length,n;for(e=0;e<r;e+=1)n=this.animatedContents[e],(this._isFirstFrame||n.element._isAnimated)&&n.data!==!0&&n.fn(n.data,n.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function LetterProps(e,r,n,i,a,o){this.o=e,this.sw=r,this.sc=n,this.fc=i,this.m=a,this.p=o,this._mdf={o:!0,sw:!!r,sc:!!n,fc:!!i,m:!0,p:!0}}LetterProps.prototype.update=function(e,r,n,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!==r&&(this.sw=r,this._mdf.sw=!0,s=!0),this.sc!==n&&(this.sc=n,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,r){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,r.d&&r.d.sid&&(r.d=e.globalData.slotManager.getProp(r.d)),this.data=r,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,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);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 r=this.currentData,n=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)n!==this.keysIndex?o=this.effectsSequence[i](o,o.t):o=this.effectsSequence[i](this.currentData,o.t);r!==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,r=this.elem.comp.renderedFrame,n=0,i=e.length;n<=i-1&&!(n===i-1||e[n+1].t>r);)n+=1;return this.keysIndex!==n&&(this.keysIndex=n),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var r=[],n=0,i=e.length,a,o,s=!1,l=!1,c="";n<i;)s=l,l=!1,a=e.charCodeAt(n),c=e.charAt(n),FontManager.isCombinedCharacter(a)?s=!0:a>=55296&&a<=56319?FontManager.isRegionalFlag(e,n)?c=e.substr(n,14):(o=e.charCodeAt(n+1),o>=56320&&o<=57343&&(FontManager.isModifier(a,o)?(c=e.substr(n,2),s=!0):FontManager.isFlagEmoji(e.substr(n,4))?c=e.substr(n,4):c=e.substr(n,2))):a>56319?(o=e.charCodeAt(n+1),FontManager.isVariationSelector(a)&&(s=!0)):FontManager.isZeroWidthJoiner(a)&&(s=!0,l=!0),s?(r[r.length-1]+=c,s=!1):r.push(c),n+=c.length;return r},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var r=this.elem.globalData.fontManager,n=this.data,i=[],a,o,s,l=0,c,u=n.m.g,h=0,x=0,f=0,g=[],v=0,m=0,w,b,d=r.getFontByName(e.f),p,y=0,E=getFontProperties(d);e.fWeight=E.weight,e.fStyle=E.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,P;if(e.sz)for(var A=!0,R=e.sz[0],M=e.sz[1],B,O;A;){O=this.buildFinalText(e.t),B=0,v=0,o=O.length,_=e.tr/1e3*e.finalSize;var V=-1;for(a=0;a<o;a+=1)P=O[a].charCodeAt(0),s=!1,O[a]===" "?V=a:(P===13||P===3)&&(v=0,s=!0,B+=e.finalLineHeight||e.finalSize*1.2),r.chars?(p=r.getCharData(O[a],d.fStyle,d.fFamily),y=s?0:p.w*e.finalSize/100):y=r.measureText(O[a],e.f,e.finalSize),v+y>R&&O[a]!==" "?(V===-1?o+=1:a=V,B+=e.finalLineHeight||e.finalSize*1.2,O.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=O,o=e.finalText.length,A=!1)}v=-_,y=0;var q=0,N;for(a=0;a<o;a+=1)if(s=!1,N=e.finalText[a],P=N.charCodeAt(0),P===13||P===3?(q=0,g.push(v),m=v>m?v:m,v=-2*_,c="",s=!0,f+=1):c=N,r.chars?(p=r.getCharData(N,d.fStyle,r.getFontByName(e.f).fFamily),y=s?0:p.w*e.finalSize/100):y=r.measureText(c,e.f,e.finalSize),N===" "?q+=y+_:(v+=y+_+q,q=0),i.push({l:y,an:y,add:h,n:s,anIndexes:[],val:c,line:f,animatorJustifyOffset:0}),u==2){if(h+=y,c===""||c===" "||a===o-1){for((c===""||c===" ")&&(h-=y);x<=a;)i[x].an=h,i[x].ind=l,i[x].extra=y,x+=1;l+=1,h=0}}else if(u==3){if(h+=y,c===""||a===o-1){for(c===""&&(h-=y);x<=a;)i[x].an=h,i[x].ind=l,i[x].extra=y,x+=1;h=0,l+=1}}else i[l].ind=l,i[l].extra=0,l+=1;if(e.l=i,m=v>m?v:m,g.push(v),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=m,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 T=n.a,I,S;b=T.length;var C,D,k=[];for(w=0;w<b;w+=1){for(I=T[w],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),D=0,C=I.s.b,a=0;a<o;a+=1)S=i[a],S.anIndexes[w]=D,(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&&k.push(D),D+=1);n.a[w].s.totalChars=D;var F=-1,$;if(I.s.rn===1)for(a=0;a<o;a+=1)S=i[a],F!=S.anIndexes[w]&&(F=S.anIndexes[w],$=k.splice(Math.floor(Math.random()*k.length),1)[0]),S.anIndexes[w]=$}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,r){r=r===void 0?this.keysIndex:r;var n=this.copyData({},this.data.d.k[r].s);n=this.copyData(n,e),this.data.d.k[r].s=n,this.recalculate(r),this.setCurrentData(n),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(e){var r=this.data.d.k[e].s;r.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(r)},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,r=Math.min,n=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,h=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:h=1+this.xe.v/100;var x=BezierFactory.getBezierEasing(l,c,u,h).get,f=0,g=this.finalS,v=this.finalE,m=this.data.sh;if(m===2)v===g?f=s>=v?1:0:f=e(0,r(.5/(v-g)+(s-g)/(v-g),1)),f=x(f);else if(m===3)v===g?f=s>=v?0:1:f=1-e(0,r(.5/(v-g)+(s-g)/(v-g),1)),f=x(f);else if(m===4)v===g?f=0:(f=e(0,r(.5/(v-g)+(s-g)/(v-g),1)),f<.5?f*=2:f=1-2*(f-.5)),f=x(f);else if(m===5){if(v===g)f=0;else{var w=v-g;s=r(e(0,s+.5-g),v-g);var b=-w/2+s,d=w/2;f=Math.sqrt(1-b*b/(d*d))}f=x(f)}else m===6?(v===g?f=0:(s=r(e(0,s+.5-g),v-g),f=(1+Math.cos(Math.PI+Math.PI*2*s/(v-g)))/2),f=x(f)):(s>=n(g)&&(s-g<0?f=e(0,r(r(v,1)-(g-s),1)):f=e(0,r(v-s,1))),f=x(f));if(this.sm.v!==100){var p=this.sm.v*.01;p===0&&(p=1e-8);var y=.5-p*.5;f<y?f=0:(f=(f-y)/p,f>1&&(f=1))}return f*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,h=this.e.v/l+c;if(u>h){var x=u;u=h,h=x}this.finalS=u,this.finalE=h}},extendPrototype([DynamicPropertyContainer],i);function a(o,s,l){return new i(o,s)}return{getTextSelectorProp:a}}();function TextAnimatorDataProperty(e,r,n){var i={propType:!1},a=PropertyFactory.getProp,o=r.a;this.a={r:o.r?a(e,o.r,0,degToRads,n):i,rx:o.rx?a(e,o.rx,0,degToRads,n):i,ry:o.ry?a(e,o.ry,0,degToRads,n):i,sk:o.sk?a(e,o.sk,0,degToRads,n):i,sa:o.sa?a(e,o.sa,0,degToRads,n):i,s:o.s?a(e,o.s,1,.01,n):i,a:o.a?a(e,o.a,1,0,n):i,o:o.o?a(e,o.o,0,.01,n):i,p:o.p?a(e,o.p,1,0,n):i,sw:o.sw?a(e,o.sw,0,0,n):i,sc:o.sc?a(e,o.sc,1,0,n):i,fc:o.fc?a(e,o.fc,1,0,n):i,fh:o.fh?a(e,o.fh,0,0,n):i,fs:o.fs?a(e,o.fs,0,.01,n):i,fb:o.fb?a(e,o.fb,0,.01,n):i,t:o.t?a(e,o.t,0,0,n):i},this.s=TextSelectorProp.getTextSelectorProp(e,r.s,n),this.s.t=r.s.t}function TextAnimatorProperty(e,r,n){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=r,this._elem=n,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(n)}TextAnimatorProperty.prototype.searchProperties=function(){var e,r=this._textData.a.length,n,i=PropertyFactory.getProp;for(e=0;e<r;e+=1)n=this._textData.a[e],this._animatorsData[e]=new TextAnimatorDataProperty(this._elem,n,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,r){if(this.lettersChangedFlag=r,!(!this._mdf&&!this._isFirstFrame&&!r&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var n=this._moreOptions.alignment.v,i=this._animatorsData,a=this._textData,o=this.mHelper,s=this._renderType,l=this.renderedLetters.length,c,u,h,x,f=e.l,g,v,m,w,b,d,p,y,E,_,P,A,R,M,B;if(this._hasMaskedPath){if(B=this._pathData.m,!this._pathData.n||this._pathData._mdf){var O=B.v;this._pathData.r.v&&(O=O.reverse()),g={tLength:0,segments:[]},x=O._length-1;var V;for(A=0,h=0;h<x;h+=1)V=bez.buildBezierData(O.v[h],O.v[h+1],[O.o[h][0]-O.v[h][0],O.o[h][1]-O.v[h][1]],[O.i[h+1][0]-O.v[h+1][0],O.i[h+1][1]-O.v[h+1][1]]),g.tLength+=V.segmentLength,g.segments.push(V),A+=V.segmentLength;h=x,B.v.c&&(V=bez.buildBezierData(O.v[h],O.v[0],[O.o[h][0]-O.v[h][0],O.o[h][1]-O.v[h][1]],[O.i[0][0]-O.v[0][0],O.i[0][1]-O.v[0][1]]),g.tLength+=V.segmentLength,g.segments.push(V),A+=V.segmentLength),this._pathData.pi=g}if(g=this._pathData.pi,v=this._pathData.f.v,p=0,d=1,w=0,b=!0,_=g.segments,v<0&&B.v.c)for(g.tLength<Math.abs(v)&&(v=-Math.abs(v)%g.tLength),p=_.length-1,E=_[p].points,d=E.length-1;v<0;)v+=E[d].partialLength,d-=1,d<0&&(p-=1,E=_[p].points,d=E.length-1);E=_[p].points,y=E[d-1],m=E[d],P=m.partialLength}x=f.length,c=0,u=0;var q=e.finalSize*1.2*.714,N=!0,T,I,S,C,D;C=i.length;var k,F=-1,$,G,j,U=v,H=p,L=d,K=-1,Y,Q,J,Z,W,ee,re,ie,ae="",le=this.defaultPropsArray,fe;if(e.j===2||e.j===1){var he=0,ge=0,be=e.j===2?-.5:-1,Ee=0,ke=!0;for(h=0;h<x;h+=1)if(f[h].n){for(he&&(he+=ge);Ee<h;)f[Ee].animatorJustifyOffset=he,Ee+=1;he=0,ke=!0}else{for(S=0;S<C;S+=1)T=i[S].a,T.t.propType&&(ke&&e.j===2&&(ge+=T.t.v*be),I=i[S].s,k=I.getMult(f[h].anIndexes[S],a.a[S].s.totalChars),k.length?he+=T.t.v*k[0]*be:he+=T.t.v*k*be);ke=!1}for(he&&(he+=ge);Ee<h;)f[Ee].animatorJustifyOffset=he,Ee+=1}for(h=0;h<x;h+=1){if(o.reset(),Y=1,f[h].n)c=0,u+=e.yOffset,u+=N?1:0,v=U,N=!1,this._hasMaskedPath&&(p=H,d=L,E=_[p].points,y=E[d-1],m=E[d],P=m.partialLength,w=0),ae="",ie="",ee="",fe="",le=this.defaultPropsArray;else{if(this._hasMaskedPath){if(K!==f[h].line){switch(e.j){case 1:v+=A-e.lineWidths[f[h].line];break;case 2:v+=(A-e.lineWidths[f[h].line])/2;break}K=f[h].line}F!==f[h].ind&&(f[F]&&(v+=f[F].extra),v+=f[h].an/2,F=f[h].ind),v+=n[0]*f[h].an*.005;var Ce=0;for(S=0;S<C;S+=1)T=i[S].a,T.p.propType&&(I=i[S].s,k=I.getMult(f[h].anIndexes[S],a.a[S].s.totalChars),k.length?Ce+=T.p.v[0]*k[0]:Ce+=T.p.v[0]*k),T.a.propType&&(I=i[S].s,k=I.getMult(f[h].anIndexes[S],a.a[S].s.totalChars),k.length?Ce+=T.a.v[0]*k[0]:Ce+=T.a.v[0]*k);for(b=!0,this._pathData.a.v&&(v=f[0].an*.5+(A-this._pathData.f.v-f[0].an*.5-f[f.length-1].an*.5)*F/(x-1),v+=this._pathData.f.v);b;)w+P>=v+Ce||!E?(R=(v+Ce-w)/m.partialLength,G=y.point[0]+(m.point[0]-y.point[0])*R,j=y.point[1]+(m.point[1]-y.point[1])*R,o.translate(-n[0]*f[h].an*.005,-(n[1]*q)*.01),b=!1):E&&(w+=m.partialLength,d+=1,d>=E.length&&(d=0,p+=1,_[p]?E=_[p].points:B.v.c?(d=0,p=0,E=_[p].points):(w-=m.partialLength,E=null)),E&&(y=m,m=E[d],P=m.partialLength));$=f[h].an/2-f[h].add,o.translate(-$,0,0)}else $=f[h].an/2-f[h].add,o.translate(-$,0,0),o.translate(-n[0]*f[h].an*.005,-n[1]*q*.01,0);for(S=0;S<C;S+=1)T=i[S].a,T.t.propType&&(I=i[S].s,k=I.getMult(f[h].anIndexes[S],a.a[S].s.totalChars),(c!==0||e.j!==0)&&(this._hasMaskedPath?k.length?v+=T.t.v*k[0]:v+=T.t.v*k:k.length?c+=T.t.v*k[0]:c+=T.t.v*k));for(e.strokeWidthAnim&&(J=e.sw||0),e.strokeColorAnim&&(e.sc?Q=[e.sc[0],e.sc[1],e.sc[2]]:Q=[0,0,0]),e.fillColorAnim&&e.fc&&(Z=[e.fc[0],e.fc[1],e.fc[2]]),S=0;S<C;S+=1)T=i[S].a,T.a.propType&&(I=i[S].s,k=I.getMult(f[h].anIndexes[S],a.a[S].s.totalChars),k.length?o.translate(-T.a.v[0]*k[0],-T.a.v[1]*k[1],T.a.v[2]*k[2]):o.translate(-T.a.v[0]*k,-T.a.v[1]*k,T.a.v[2]*k));for(S=0;S<C;S+=1)T=i[S].a,T.s.propType&&(I=i[S].s,k=I.getMult(f[h].anIndexes[S],a.a[S].s.totalChars),k.length?o.scale(1+(T.s.v[0]-1)*k[0],1+(T.s.v[1]-1)*k[1],1):o.scale(1+(T.s.v[0]-1)*k,1+(T.s.v[1]-1)*k,1));for(S=0;S<C;S+=1){if(T=i[S].a,I=i[S].s,k=I.getMult(f[h].anIndexes[S],a.a[S].s.totalChars),T.sk.propType&&(k.length?o.skewFromAxis(-T.sk.v*k[0],T.sa.v*k[1]):o.skewFromAxis(-T.sk.v*k,T.sa.v*k)),T.r.propType&&(k.length?o.rotateZ(-T.r.v*k[2]):o.rotateZ(-T.r.v*k)),T.ry.propType&&(k.length?o.rotateY(T.ry.v*k[1]):o.rotateY(T.ry.v*k)),T.rx.propType&&(k.length?o.rotateX(T.rx.v*k[0]):o.rotateX(T.rx.v*k)),T.o.propType&&(k.length?Y+=(T.o.v*k[0]-Y)*k[0]:Y+=(T.o.v*k-Y)*k),e.strokeWidthAnim&&T.sw.propType&&(k.length?J+=T.sw.v*k[0]:J+=T.sw.v*k),e.strokeColorAnim&&T.sc.propType)for(W=0;W<3;W+=1)k.length?Q[W]+=(T.sc.v[W]-Q[W])*k[0]:Q[W]+=(T.sc.v[W]-Q[W])*k;if(e.fillColorAnim&&e.fc){if(T.fc.propType)for(W=0;W<3;W+=1)k.length?Z[W]+=(T.fc.v[W]-Z[W])*k[0]:Z[W]+=(T.fc.v[W]-Z[W])*k;T.fh.propType&&(k.length?Z=addHueToRGB(Z,T.fh.v*k[0]):Z=addHueToRGB(Z,T.fh.v*k)),T.fs.propType&&(k.length?Z=addSaturationToRGB(Z,T.fs.v*k[0]):Z=addSaturationToRGB(Z,T.fs.v*k)),T.fb.propType&&(k.length?Z=addBrightnessToRGB(Z,T.fb.v*k[0]):Z=addBrightnessToRGB(Z,T.fb.v*k))}}for(S=0;S<C;S+=1)T=i[S].a,T.p.propType&&(I=i[S].s,k=I.getMult(f[h].anIndexes[S],a.a[S].s.totalChars),this._hasMaskedPath?k.length?o.translate(0,T.p.v[1]*k[0],-T.p.v[2]*k[1]):o.translate(0,T.p.v[1]*k,-T.p.v[2]*k):k.length?o.translate(T.p.v[0]*k[0],T.p.v[1]*k[1],-T.p.v[2]*k[2]):o.translate(T.p.v[0]*k,T.p.v[1]*k,-T.p.v[2]*k));if(e.strokeWidthAnim&&(ee=J<0?0:J),e.strokeColorAnim&&(re="rgb("+Math.round(Q[0]*255)+","+Math.round(Q[1]*255)+","+Math.round(Q[2]*255)+")"),e.fillColorAnim&&e.fc&&(ie="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,n[1]*q*.01+u,0),this._pathData.p.v){M=(m.point[1]-y.point[1])/(m.point[0]-y.point[0]);var Te=Math.atan(M)*180/Math.PI;m.point[0]<y.point[0]&&(Te+=180),o.rotate(-Te*Math.PI/180)}o.translate(G,j,0),v-=n[0]*f[h].an*.005,f[h+1]&&F!==f[h+1].ind&&(v+=f[h].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(f[h].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[f[h].line]),0,0);break;case 2:o.translate(f[h].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[f[h].line])/2,0,0);break}o.translate(0,-e.ls),o.translate($,0,0),o.translate(n[0]*f[h].an*.005,n[1]*q*.01,0),c+=f[h].l+e.tr*.001*e.finalSize}s==="html"?ae=o.toCSS():s==="svg"?ae=o.to2dCSS():le=[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<=h?(D=new LetterProps(fe,ee,re,ie,ae,le),this.renderedLetters.push(D),l+=1,this.lettersChangedFlag=!0):(D=this.renderedLetters[h],this.lettersChangedFlag=D.update(fe,ee,re,ie,ae,le)||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,r,n){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,r,n),this.textProperty=new TextProperty(this,e.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(e.t,this.renderType,this),this.initTransform(e,r,n),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,r){var n,i=r.length,a,o="";for(n=0;n<i;n+=1)r[n].ty==="sh"&&(a=r[n].ks.k,o+=buildShapeString(a,a.i.length,!0,e));return o},ITextElement.prototype.updateDocumentData=function(e,r){this.textProperty.updateDocumentData(e,r)},ITextElement.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},ITextElement.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},ITextElement.prototype.applyTextPropertiesToMatrix=function(e,r,n,i,a){switch(e.ps&&r.translate(e.ps[0],e.ps[1]+e.ascent,0),r.translate(0,-e.ls,0),e.j){case 1:r.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n]),0,0);break;case 2:r.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n])/2,0,0);break}r.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,r,n){this.textSpans=[],this.renderType="svg",this.initElement(e,r,n)}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 r=0,n=e.length,i=[],a="";r<n;)e[r]===String.fromCharCode(13)||e[r]===String.fromCharCode(3)?(i.push(a),a=""):a+=e[r],r+=1;return i.push(a),i},SVGTextLottieElement.prototype.buildShapeData=function(e,r){if(e.shapes&&e.shapes.length){var n=e.shapes[0];if(n.it){var i=n.it[n.it.length-1];i.s&&(i.s.k[0]=r,i.s.k[1]=r)}}return e},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var e,r,n=this.textProperty.currentData;this.renderedLetters=createSizedArray(n?n.l.length:0),n.fc?this.layerElement.setAttribute("fill",this.buildColor(n.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),n.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(n.sc)),this.layerElement.setAttribute("stroke-width",n.sw)),this.layerElement.setAttribute("font-size",n.finalSize);var i=this.globalData.fontManager.getFontByName(n.f);if(i.fClass)this.layerElement.setAttribute("class",i.fClass);else{this.layerElement.setAttribute("font-family",i.fFamily);var a=n.fWeight,o=n.fStyle;this.layerElement.setAttribute("font-style",o),this.layerElement.setAttribute("font-weight",a)}this.layerElement.setAttribute("aria-label",n.t);var s=n.l||[],l=!!this.globalData.fontManager.chars;r=s.length;var c,u=this.mHelper,h="",x=this.data.singleShape,f=0,g=0,v=!0,m=n.tr*.001*n.finalSize;if(x&&!l&&!n.sz){var w=this.textContainer,b="start";switch(n.j){case 1:b="end";break;case 2:b="middle";break;default:b="start";break}w.setAttribute("text-anchor",b),w.setAttribute("letter-spacing",m);var d=this.buildTextContents(n.finalText);for(r=d.length,g=n.ps?n.ps[1]+n.ascent:0,e=0;e<r;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",w.appendChild(c),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=c,g+=n.finalLineHeight;this.layerElement.appendChild(w)}else{var p=this.textSpans.length,y;for(e=0;e<r;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!l||!x||e===0){if(c=p>e?this.textSpans[e].span:createNS(l?"g":"text"),p<=e){if(c.setAttribute("stroke-linecap","butt"),c.setAttribute("stroke-linejoin","round"),c.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=c,l){var E=createNS("g");c.appendChild(E),this.textSpans[e].childSpan=E}this.textSpans[e].span=c,this.layerElement.appendChild(c)}c.style.display="inherit"}if(u.reset(),x&&(s[e].n&&(f=-m,g+=n.yOffset,g+=v?1:0,v=!1),this.applyTextPropertiesToMatrix(n,u,s[e].line,f,g),f+=s[e].l||0,f+=m),l){y=this.globalData.fontManager.getCharData(n.finalText[e],i.fStyle,this.globalData.fontManager.getFontByName(n.f).fFamily);var _;if(y.t===1)_=new SVGCompElement(y.data,this.globalData,this);else{var P=emptyShapeData;y.data&&y.data.shapes&&(P=this.buildShapeData(y.data,n.finalSize)),_=new SVGShapeElement(P,this.globalData,this)}if(this.textSpans[e].glyph){var A=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(A.layerElement),A.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("+n.finalSize/100+","+n.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",h)}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,r=this.textSpans.length,n;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<r;e+=1)n=this.textSpans[e].glyph,n&&(n.prepareFrame(this.comp.renderedFrame-this.data.st),n._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,r,n=this.textAnimator.renderedLetters,i=this.textProperty.currentData.l;r=i.length;var a,o,s;for(e=0;e<r;e+=1)i[e].n||(a=n[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,r,n){this.initElement(e,r,n)}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,r,n){this.initFrame(),this.initBaseData(e,r,n),this.initFrame(),this.initTransform(e,r,n),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 r=this.globalData.defs;this.setupGlobalData(e,r),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var n=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();n.setAttribute("id",a),n.appendChild(i),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+a+")"),r.appendChild(n),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,r=this.layers?this.layers.length:0;for(e=0;e<r;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 r=0,n=this.layers.length;for(r=0;r<n;r+=1)if(this.layers[r].ind===e)return r;return-1},SVGRendererBase.prototype.buildItem=function(e){var r=this.elements;if(!(r[e]||this.layers[e].ty===99)){r[e]=!0;var n=this.createItem(this.layers[e]);if(r[e]=n,getExpressionsPlugin()&&(this.layers[e].ty===0&&this.globalData.projectInterface.registerComposition(n),n.initExpressions()),this.appendElementInPos(n,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(n);else{var a=r[i],o=a.getMatte(this.layers[e].tt);n.setMatte(o)}}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var r=0,n=this.elements.length;r<n;){if(this.elements[r]===e){var i="tp"in e.data?this.findIndexByInd(e.data.tp):r-1,a=this.elements[i],o=a.getMatte(this.layers[r].tt);e.setMatte(o);break}r+=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 r,n=this.layers.length;for(this.completeLayers||this.checkLayers(e),r=n-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].prepareFrame(e-this.layers[r].st);if(this.globalData._mdf)for(r=0;r<n;r+=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(e,r){var n=e.getBaseElement();if(n){for(var i=0,a;i<r;)this.elements[i]&&this.elements[i]!==!0&&this.elements[i].getBaseElement()&&(a=this.elements[i].getBaseElement()),i+=1;a?this.layerElement.insertBefore(n,a):this.layerElement.appendChild(n)}},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,r,n){this.initFrame(),this.initBaseData(e,r,n),this.initTransform(e,r,n),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!r.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 r=this.tm.v;r===this.data.op&&(r=this.data.op-1),this.renderedFrame=r}var n,i=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),n=i-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&(this.elements[n].prepareFrame(this.renderedFrame-this.layers[n].st),this.elements[n]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var e,r=this.layers.length;for(e=0;e<r;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,r=this.layers.length;for(e=0;e<r;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function SVGCompElement(e,r,n){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,r,n),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,r.frameRate,this):{_placeholder:!0}}extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)};function SVGRenderer(e,r){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var n="";if(r&&r.title){var i=createNS("title"),a=createElementID();i.setAttribute("id",a),i.textContent=r.title,this.svgElement.appendChild(i),n+=a}if(r&&r.description){var o=createNS("desc"),s=createElementID();o.setAttribute("id",s),o.textContent=r.description,this.svgElement.appendChild(o),n+=" "+s}n&&this.svgElement.setAttribute("aria-labelledby",n);var l=createNS("defs");this.svgElement.appendChild(l);var c=createNS("g");this.svgElement.appendChild(c),this.layerElement=c,this.renderConfig={preserveAspectRatio:r&&r.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:r&&r.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:r&&r.contentVisibility||"visible",progressiveLoad:r&&r.progressiveLoad||!1,hideOnTransparent:!(r&&r.hideOnTransparent===!1),viewBoxOnly:r&&r.viewBoxOnly||!1,viewBoxSize:r&&r.viewBoxSize||!1,className:r&&r.className||"",id:r&&r.id||"",focusable:r&&r.focusable,filterSize:{width:r&&r.filterSize&&r.filterSize.width||"100%",height:r&&r.filterSize&&r.filterSize.height||"100%",x:r&&r.filterSize&&r.filterSize.x||"0%",y:r&&r.filterSize&&r.filterSize.y||"0%"},width:r&&r.width,height:r&&r.height,runExpressions:!r||r.runExpressions===void 0||r.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(r){var n,i=r.length,a="_";for(n=0;n<i;n+=1)a+=r[n].transform.key+"_";var o=this.sequences[a];return o||(o={transforms:[].concat(r),finalTransform:new Matrix,_mdf:!1},this.sequences[a]=o,this.sequenceList.push(o)),o},processSequence:function(r,n){for(var i=0,a=r.transforms.length,o=n;i<a&&!n;){if(r.transforms[i].transform.mProps._mdf){o=!0;break}i+=1}if(o)for(r.finalTransform.reset(),i=a-1;i>=0;i-=1)r.finalTransform.multiply(r.transforms[i].transform.mProps.v);r._mdf=o},processSequences:function(r){var n,i=this.sequenceList.length;for(n=0;n<i;n+=1)this.processSequence(this.sequenceList[n],r)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var r="__lottie_element_luma_buffer",n=null,i=null,a=null;function o(){var c=createNS("svg"),u=createNS("filter"),h=createNS("feColorMatrix");return u.setAttribute("id",r),h.setAttribute("type","matrix"),h.setAttribute("color-interpolation-filters","sRGB"),h.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(h),c.appendChild(u),c.setAttribute("id",r+"_svg"),featureSupport.svgLumaHidden&&(c.style.display="none"),c}function s(){n||(a=o(),document.body.appendChild(a),n=createTag("canvas"),i=n.getContext("2d"),i.filter="url(#"+r+")",i.fillStyle="rgba(0,0,0,0)",i.fillRect(0,0,1,1))}function l(c){return n||s(),n.width=c.width,n.height=c.height,i.filter="url(#"+r+")",n}return{load:s,get:l}};function createCanvas(e,r){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(e,r);var n=createTag("canvas");return n.width=e,n.height=r,n}var assetLoader=function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas}}(),registeredEffects={};function CVEffects(e){var r,n=e.data.ef?e.data.ef.length:0;this.filters=[];var i;for(r=0;r<n;r+=1){i=null;var a=e.data.ef[r].ty;if(registeredEffects[a]){var o=registeredEffects[a].effect;i=new o(e.effectsManager.effectElements[r],e)}i&&this.filters.push(i)}this.filters.length&&e.addRenderableComponent(this)}CVEffects.prototype.renderFrame=function(e){var r,n=this.filters.length;for(r=0;r<n;r+=1)this.filters[r].renderFrame(e)},CVEffects.prototype.getEffects=function(e){var r,n=this.filters.length,i=[];for(r=0;r<n;r+=1)this.filters[r].type===e&&i.push(this.filters[r]);return i};function registerEffect(e,r){registeredEffects[e]={effect:r}}function CVMaskElement(e,r){this.data=e,this.element=r,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var n,i=this.masksProperties.length,a=!1;for(n=0;n<i;n+=1)this.masksProperties[n].mode!=="n"&&(a=!0),this.viewData[n]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[n],3);this.hasMasks=a,a&&this.element.addRenderableComponent(this)}CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var e=this.element.finalTransform.mat,r=this.element.canvasContext,n,i=this.masksProperties.length,a,o,s;for(r.beginPath(),n=0;n<i;n+=1)if(this.masksProperties[n].mode!=="n"){this.masksProperties[n].inv&&(r.moveTo(0,0),r.lineTo(this.element.globalData.compSize.w,0),r.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),r.lineTo(0,this.element.globalData.compSize.h),r.lineTo(0,0)),s=this.viewData[n].v,a=e.applyToPointArray(s.v[0][0],s.v[0][1],0),r.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]),r.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]),r.bezierCurveTo(o[0],o[1],o[2],o[3],o[4],o[5])}this.element.globalData.renderer.save(!0),r.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 r=this.globalData.canvasContext,n=assetLoader.createCanvas(r.canvas.width,r.canvas.height);this.buffers.push(n);var i=assetLoader.createCanvas(r.canvas.width,r.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 r=this.globalData;if(r.blendMode!==this.data.bm){r.blendMode=this.data.bm;var n=getBlendMode(this.data.bm);r.canvasContext.globalCompositeOperation=n}},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(r){r.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 r=this.buffers[0],n=r.getContext("2d");this.clearCanvas(n),n.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 r=this.buffers[1],n=r.getContext("2d");this.clearCanvas(n),n.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(r,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(r){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!r)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var n=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(n),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(n),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,r,n,i){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var a=4;r.ty==="rc"?a=5:r.ty==="el"?a=6:r.ty==="sr"&&(a=7),this.sh=ShapePropertyFactory.getShapeProp(e,r,a,e);var o,s=n.length,l;for(o=0;o<s;o+=1)n[o].closed||(l={transforms:i.addTransformSequence(n[o].transforms),trNodes:[]},this.styledShapes.push(l),n[o].elements.push(l))}CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated;function CVShapeElement(e,r,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(e,r,n)}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,r){var n={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(r),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||(n.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(n.lc=lineCapEnum[e.lc||2],n.lj=lineJoinEnum[e.lj||2],e.lj==1&&(n.ml=e.ml),i.w=PropertyFactory.getProp(this,e.w,0,null,this),i.w.k||(n.wi=i.w.v),e.d){var a=new DashProperty(this,e.d,"canvas",this);i.d=a,i.d.k||(n.da=i.d.dashArray,n.do=i.d.dashoffset[0])}}else n.r=e.r===2?"evenodd":"nonzero";return this.stylesList.push(n),i.style=n,i},CVShapeElement.prototype.createGroupElement=function(){var e={it:[],prevViewData:[]};return e},CVShapeElement.prototype.createTransformElement=function(e){var r={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 r},CVShapeElement.prototype.createShapeElement=function(e){var r=new CVShapeData(this,e,this.stylesList,this.transformsManager);return this.shapes.push(r),this.addShapeToModifiers(r),r},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,r=this.itemsData.length;for(e=0;e<r;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),r=this.dynamicProperties.length,e=0;e<r;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(e){var r,n=this.stylesList.length;for(r=0;r<n;r+=1)this.stylesList[r].closed||this.stylesList[r].transforms.push(e)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var e,r=this.stylesList.length;for(e=0;e<r;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},CVShapeElement.prototype.closeStyles=function(e){var r,n=e.length;for(r=0;r<n;r+=1)e[r].closed=!0},CVShapeElement.prototype.searchShapes=function(e,r,n,i,a){var o,s=e.length-1,l,c,u=[],h=[],x,f,g,v=[].concat(a);for(o=s;o>=0;o-=1){if(x=this.searchProcessedElement(e[o]),x?r[o]=n[x-1]:e[o]._shouldRender=i,e[o].ty==="fl"||e[o].ty==="st"||e[o].ty==="gf"||e[o].ty==="gs")x?r[o].style.closed=!1:r[o]=this.createStyleElement(e[o],v),u.push(r[o].style);else if(e[o].ty==="gr"){if(!x)r[o]=this.createGroupElement(e[o]);else for(c=r[o].it.length,l=0;l<c;l+=1)r[o].prevViewData[l]=r[o].it[l];this.searchShapes(e[o].it,r[o].it,r[o].prevViewData,i,v)}else e[o].ty==="tr"?(x||(g=this.createTransformElement(e[o]),r[o]=g),v.push(r[o]),this.addTransformToStyleList(r[o])):e[o].ty==="sh"||e[o].ty==="rc"||e[o].ty==="el"||e[o].ty==="sr"?x||(r[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?(f=r[o],f.closed=!1):(f=ShapeModifiers.getModifier(e[o].ty),f.init(this,e[o]),r[o]=f,this.shapeModifiers.push(f)),h.push(f)):e[o].ty==="rp"&&(x?(f=r[o],f.closed=!0):(f=ShapeModifiers.getModifier(e[o].ty),r[o]=f,f.init(this,e,o,r),this.shapeModifiers.push(f),i=!1),h.push(f));this.addProcessedElement(e[o],o+1)}for(this.removeTransformFromStyleList(),this.closeStyles(u),s=h.length,o=0;o<s;o+=1)h[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,r){(e._opMdf||r.op._mdf||this._isFirstFrame)&&(r.opacity=e.opacity,r.opacity*=r.op.v,r._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var e,r=this.stylesList.length,n,i,a,o,s,l,c=this.globalData.renderer,u=this.globalData.canvasContext,h,x;for(e=0;e<r;e+=1)if(x=this.stylesList[e],h=x.type,!((h==="st"||h==="gs")&&x.wi===0||!x.data._shouldRender||x.coOp===0||this.globalData.currentGlobalAlpha===0)){for(c.save(),s=x.elements,h==="st"||h==="gs"?(c.ctxStrokeStyle(h==="st"?x.co:x.grd),c.ctxLineWidth(x.wi),c.ctxLineCap(x.lc),c.ctxLineJoin(x.lj),c.ctxMiterLimit(x.ml||0)):c.ctxFillStyle(h==="fl"?x.co:x.grd),c.ctxOpacity(x.coOp),h!=="st"&&h!=="gs"&&u.beginPath(),c.ctxTransform(x.preTransforms.finalTransform.props),i=s.length,n=0;n<i;n+=1){for((h==="st"||h==="gs")&&(u.beginPath(),x.da&&(u.setLineDash(x.da),u.lineDashOffset=x.do)),l=s[n].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();(h==="st"||h==="gs")&&(c.ctxStroke(),x.da&&u.setLineDash(this.dashResetter))}h!=="st"&&h!=="gs"&&this.globalData.renderer.ctxFill(x.r),c.restore()}},CVShapeElement.prototype.renderShape=function(e,r,n,i){var a,o=r.length-1,s;for(s=e,a=o;a>=0;a-=1)r[a].ty==="tr"?(s=n[a].transform,this.renderShapeTransform(e,s)):r[a].ty==="sh"||r[a].ty==="el"||r[a].ty==="rc"||r[a].ty==="sr"?this.renderPath(r[a],n[a]):r[a].ty==="fl"?this.renderFill(r[a],n[a],s):r[a].ty==="st"?this.renderStroke(r[a],n[a],s):r[a].ty==="gf"||r[a].ty==="gs"?this.renderGradientFill(r[a],n[a],s):r[a].ty==="gr"?this.renderShape(s,r[a].it,n[a].it):r[a].ty;i&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,r){if(this._isFirstFrame||r._mdf||e.transforms._mdf){var n=e.trNodes,i=r.paths,a,o,s,l=i._length;n.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&&n.push({t:"m",p:c.applyToPointArray(u.v[0][0],u.v[0][1],0)}),n.push({t:"c",pts:c.applyToTriplePoints(u.o[a-1],u.i[a],u.v[a])});o===1&&n.push({t:"m",p:c.applyToPointArray(u.v[0][0],u.v[0][1],0)}),u.c&&o&&(n.push({t:"c",pts:c.applyToTriplePoints(u.o[a-1],u.i[0],u.v[0])}),n.push({t:"z"}))}}e.trNodes=n}},CVShapeElement.prototype.renderPath=function(e,r){if(e.hd!==!0&&e._shouldRender){var n,i=r.styledShapes.length;for(n=0;n<i;n+=1)this.renderStyledShape(r.styledShapes[n],r.sh)}},CVShapeElement.prototype.renderFill=function(e,r,n){var i=r.style;(r.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bmFloor(r.c.v[0])+","+bmFloor(r.c.v[1])+","+bmFloor(r.c.v[2])+")"),(r.o._mdf||n._opMdf||this._isFirstFrame)&&(i.coOp=r.o.v*n.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,r,n){var i=r.style,a;if(!i.grd||r.g._mdf||r.s._mdf||r.e._mdf||e.t!==1&&(r.h._mdf||r.a._mdf)){var o=this.globalData.canvasContext,s=r.s.v,l=r.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]),h=r.h.v;h>=1?h=.99:h<=-1&&(h=-.99);var x=c*h,f=Math.cos(u+r.a.v)*x+s[0],g=Math.sin(u+r.a.v)*x+s[1];a=o.createRadialGradient(f,g,0,s[0],s[1],c)}var v,m=e.g.p,w=r.g.c,b=1;for(v=0;v<m;v+=1)r.g._hasOpacity&&r.g._collapsable&&(b=r.g.o[v*2+1]),a.addColorStop(w[v*4]/100,"rgba("+w[v*4+1]+","+w[v*4+2]+","+w[v*4+3]+","+b+")");i.grd=a}i.coOp=r.o.v*n.opacity},CVShapeElement.prototype.renderStroke=function(e,r,n){var i=r.style,a=r.d;a&&(a._mdf||this._isFirstFrame)&&(i.da=a.dashArray,i.do=a.dashoffset[0]),(r.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bmFloor(r.c.v[0])+","+bmFloor(r.c.v[1])+","+bmFloor(r.c.v[2])+")"),(r.o._mdf||n._opMdf||this._isFirstFrame)&&(i.coOp=r.o.v*n.opacity),(r.w._mdf||this._isFirstFrame)&&(i.wi=r.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,r,n){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,r,n)}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 r=!1;e.fc?(r=!0,this.values.fill=this.buildColor(e.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=r;var n=!1;e.sc&&(n=!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=n,this.values.fValue=e.finalSize+"px "+this.globalData.fontManager.getFontByName(e.f).fFamily,o=e.finalText.length;var c,u,h,x,f,g,v,m,w,b,d=this.data.singleShape,p=e.tr*.001*e.finalSize,y=0,E=0,_=!0,P=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=-p,E+=e.yOffset,E+=_?1:0,_=!1),f=u.shapes?u.shapes[0].it:[],v=f.length,l.scale(e.finalSize/100,e.finalSize/100),d&&this.applyTextPropertiesToMatrix(e,l,s[a].line,y,E),w=createSizedArray(v-1);var A=0;for(g=0;g<v;g+=1)if(f[g].ty==="sh"){for(x=f[g].ks.k.i.length,m=f[g].ks.k,b=[],h=1;h<x;h+=1)h===1&&b.push(l.applyToX(m.v[0][0],m.v[0][1],0),l.applyToY(m.v[0][0],m.v[0][1],0)),b.push(l.applyToX(m.o[h-1][0],m.o[h-1][1],0),l.applyToY(m.o[h-1][0],m.o[h-1][1],0),l.applyToX(m.i[h][0],m.i[h][1],0),l.applyToY(m.i[h][0],m.i[h][1],0),l.applyToX(m.v[h][0],m.v[h][1],0),l.applyToY(m.v[h][0],m.v[h][1],0));b.push(l.applyToX(m.o[h-1][0],m.o[h-1][1],0),l.applyToY(m.o[h-1][0],m.o[h-1][1],0),l.applyToX(m.i[0][0],m.i[0][1],0),l.applyToY(m.i[0][0],m.i[0][1],0),l.applyToX(m.v[0][0],m.v[0][1],0),l.applyToY(m.v[0][0],m.v[0][1],0)),w[A]=b,A+=1}d&&(y+=s[a].l,y+=p),this.textSpans[P]?this.textSpans[P].elem=w:this.textSpans[P]={elem:w},P+=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 r,n,i,a,o,s,l=this.textAnimator.renderedLetters,c=this.textProperty.currentData.l;n=c.length;var u,h=null,x=null,f=null,g,v,m=this.globalData.renderer;for(r=0;r<n;r+=1)if(!c[r].n){if(u=l[r],u&&(m.save(),m.ctxTransform(u.p),m.ctxOpacity(u.o)),this.fill){for(u&&u.fc?h!==u.fc&&(m.ctxFillStyle(u.fc),h=u.fc):h!==this.values.fill&&(h=this.values.fill,m.ctxFillStyle(this.values.fill)),g=this.textSpans[r].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(),m.ctxFill()}if(this.stroke){for(u&&u.sw?f!==u.sw&&(f=u.sw,m.ctxLineWidth(u.sw)):f!==this.values.sWidth&&(f=this.values.sWidth,m.ctxLineWidth(this.values.sWidth)),u&&u.sc?x!==u.sc&&(x=u.sc,m.ctxStrokeStyle(u.sc)):x!==this.values.stroke&&(x=this.values.stroke,m.ctxStrokeStyle(this.values.stroke)),g=this.textSpans[r].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(),m.ctxStroke()}u&&this.globalData.renderer.restore()}};function CVImageElement(e,r,n){this.assetData=r.getAssetData(e.refId),this.img=r.imageLoader.getAsset(this.assetData),this.initElement(e,r,n)}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 r=e.getContext("2d"),n=this.img.width,i=this.img.height,a=n/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=n,l=s/o),r.drawImage(this.img,(n-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,r,n){this.initElement(e,r,n)}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,r,n,i){this.canvasContext.fillRect(e,r,n,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 r=this.animationItem.container.style;r.width="100%",r.height="100%";var n="0px 0px 0px";r.transformOrigin=n,r.mozTransformOrigin=n,r.webkitTransformOrigin=n,r["-webkit-transform"]=n,r.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,r){this.reset();var n,i;e?(n=e,i=r,this.canvasContext.canvas.width=n,this.canvasContext.canvas.height=i):(this.animationItem.wrapper&&this.animationItem.container?(n=this.animationItem.wrapper.offsetWidth,i=this.animationItem.wrapper.offsetHeight):(n=this.canvasContext.canvas.width,i=this.canvasContext.canvas.height),this.canvasContext.canvas.width=n*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),h=c.substr(4);a=n/i,o=this.transformCanvas.w/this.transformCanvas.h,o>a&&l==="meet"||o<a&&l==="slice"?(this.transformCanvas.sx=n/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=n/(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=(n-this.transformCanvas.w*(i/this.transformCanvas.h))/2*this.renderConfig.dpr:u==="xMax"&&(o<a&&l==="meet"||o>a&&l==="slice")?this.transformCanvas.tx=(n-this.transformCanvas.w*(i/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,h==="YMid"&&(o>a&&l==="meet"||o<a&&l==="slice")?this.transformCanvas.ty=(i-this.transformCanvas.h*(n/this.transformCanvas.w))/2*this.renderConfig.dpr:h==="YMax"&&(o>a&&l==="meet"||o<a&&l==="slice")?this.transformCanvas.ty=(i-this.transformCanvas.h*(n/this.transformCanvas.w))*this.renderConfig.dpr:this.transformCanvas.ty=0}else this.renderConfig.preserveAspectRatio==="none"?(this.transformCanvas.sx=n/(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,r=this.layers?this.layers.length:0;for(e=r-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,r){if(!(this.renderedFrame===e&&this.renderConfig.clearCanvas===!0&&!r||this.destroyed||e===-1)){this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||r,this.globalData.projectInterface.currentFrame=e;var n,i=this.layers.length;for(this.completeLayers||this.checkLayers(e),n=i-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&this.elements[n].prepareFrame(e-this.layers[n].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),n=i-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&this.elements[n].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(e){var r=this.elements;if(!(r[e]||this.layers[e].ty===99)){var n=this.createItem(this.layers[e],this,this.globalData);r[e]=n,n.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,r=15;for(e=0;e<r;e+=1){var n=new CanvasContext;this.stack[e]=n}this._length=r,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,r=0;for(r=this._length;r<e;r+=1)this.stack[r]=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 r=this.stack[this.cArrPos],n=r.transform,i,a=this.cTr.props;for(i=0;i<16;i+=1)a[i]=n[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(n[0],n[1],n[4],n[5],n[12],n[13]),(e||r.opacity!==-1&&this.currentOpacity!==r.opacity)&&(this.nativeContext.globalAlpha=r.opacity,this.currentOpacity=r.opacity),this.currentFillStyle=r.fillStyle,this.currentStrokeStyle=r.strokeStyle,this.currentLineWidth=r.lineWidth,this.currentLineCap=r.lineCap,this.currentLineJoin=r.lineJoin,this.currentMiterLimit=r.miterLimit},CVContextData.prototype.save=function(e){e&&this.nativeContext.save();var r=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var n=this.stack[this.cArrPos],i;for(i=0;i<16;i+=1)n.transform[i]=r[i];this.cArrPos+=1;var a=this.stack[this.cArrPos];a.opacity=n.opacity,a.fillStyle=n.fillStyle,a.strokeStyle=n.strokeStyle,a.lineWidth=n.lineWidth,a.lineCap=n.lineCap,a.lineJoin=n.lineJoin,a.miterLimit=n.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 r=this.cTr;this.transformMat.multiply(r),r.cloneFromProps(this.transformMat.props);var n=r.props;this.nativeContext.setTransform(n[0],n[1],n[4],n[5],n[12],n[13])},CVContextData.prototype.opacity=function(e){var r=this.stack[this.cArrPos].opacity;r*=e<0?0:e,this.stack[this.cArrPos].opacity!==r&&(this.currentOpacity!==e&&(this.nativeContext.globalAlpha=e,this.currentOpacity=e),this.stack[this.cArrPos].opacity=r)},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,r,n,i){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(e,r,n,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,r,n){this.completeLayers=!1,this.layers=e.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(e,r,n),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,r.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 r,n=this.layers.length;for(r=n-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame()},CVCompElement.prototype.destroy=function(){var e,r=this.layers.length;for(e=r-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,r){this.animationItem=e,this.renderConfig={clearCanvas:r&&r.clearCanvas!==void 0?r.clearCanvas:!0,context:r&&r.context||null,progressiveLoad:r&&r.progressiveLoad||!1,preserveAspectRatio:r&&r.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:r&&r.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:r&&r.contentVisibility||"visible",className:r&&r.className||"",id:r&&r.id||"",runExpressions:!r||r.runExpressions===void 0||r.runExpressions},this.renderConfig.dpr=r&&r.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=r&&r.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 r=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var n=this.finalTransform.mat.toCSS();r.transform=n,r.webkitTransform=n}this.finalTransform._opMdf&&(r.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,r,n){this.initElement(e,r,n)}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,r,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(e,r,n),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 r=this.comp.data?this.comp.data:this.globalData.compSize;e.setAttribute("width",r.w),e.setAttribute("height",r.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,r){var n,i=e.length;for(n=0;n<i;n+=1)r=e[n].mProps.v.applyToPointArray(r[0],r[1],0);return r},HShapeElement.prototype.calculateShapeBoundingBox=function(e,r){var n=e.sh.v,i=e.transformers,a,o=n._length,s,l,c,u;if(!(o<=1)){for(a=0;a<o-1;a+=1)s=this.getTransformedPoint(i,n.v[a]),l=this.getTransformedPoint(i,n.o[a]),c=this.getTransformedPoint(i,n.i[a+1]),u=this.getTransformedPoint(i,n.v[a+1]),this.checkBounds(s,l,c,u,r);n.c&&(s=this.getTransformedPoint(i,n.v[a]),l=this.getTransformedPoint(i,n.o[a]),c=this.getTransformedPoint(i,n.i[0]),u=this.getTransformedPoint(i,n.v[0]),this.checkBounds(s,l,c,u,r))}},HShapeElement.prototype.checkBounds=function(e,r,n,i,a){this.getBoundsOfCurve(e,r,n,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,r,n,i){for(var a=[[e[0],i[0]],[e[1],i[1]]],o,s,l,c,u,h,x,f=0;f<2;++f)s=6*e[f]-12*r[f]+6*n[f],o=-3*e[f]+9*r[f]-9*n[f]+3*i[f],l=3*r[f]-3*e[f],s|=0,o|=0,l|=0,o===0&&s===0||(o===0?(c=-l/s,c>0&&c<1&&a[f].push(this.calculateF(c,e,r,n,i,f))):(u=s*s-4*l*o,u>=0&&(h=(-s+bmSqrt(u))/(2*o),h>0&&h<1&&a[f].push(this.calculateF(h,e,r,n,i,f)),x=(-s-bmSqrt(u))/(2*o),x>0&&x<1&&a[f].push(this.calculateF(x,e,r,n,i,f)))));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,r,n,i,a,o){return bmPow(1-e,3)*r[o]+3*bmPow(1-e,2)*e*n[o]+3*(1-e)*bmPow(e,2)*i[o]+bmPow(e,3)*a[o]},HShapeElement.prototype.calculateBoundingBox=function(e,r){var n,i=e.length;for(n=0;n<i;n+=1)e[n]&&e[n].sh?this.calculateShapeBoundingBox(e[n],r):e[n]&&e[n].it?this.calculateBoundingBox(e[n].it,r):e[n]&&e[n].style&&e[n].w&&this.expandStrokeBoundingBox(e[n].w,r)},HShapeElement.prototype.expandStrokeBoundingBox=function(e,r){var n=0;if(e.keyframes){for(var i=0;i<e.keyframes.length;i+=1){var a=e.keyframes[i].s;a>n&&(n=a)}n*=e.mult}else n=e.v*e.mult;r.x-=n,r.xMax+=n,r.y-=n,r.yMax+=n},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,r=999999;if(e.x=r,e.xMax=-r,e.y=r,e.yMax=-r,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 n=!1;if(this.currentBBox.w!==e.width&&(this.currentBBox.w=e.width,this.shapeCont.setAttribute("width",e.width),n=!0),this.currentBBox.h!==e.height&&(this.currentBBox.h=e.height,this.shapeCont.setAttribute("height",e.height),n=!0),n||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,r,n){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(e,r,n)}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 r=this.innerElem.style,n=e.fc?this.buildColor(e.fc):"rgba(0,0,0,0)";r.fill=n,r.color=n,e.sc&&(r.stroke=this.buildColor(e.sc),r.strokeWidth=e.sw+"px");var i=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars)if(r.fontSize=e.finalSize+"px",r.lineHeight=e.finalSize+"px",i.fClass)this.innerElem.className=i.fClass;else{r.fontFamily=i.fFamily;var a=e.fWeight,o=e.fStyle;r.fontStyle=o,r.fontWeight=a}var s,l,c=e.l;l=c.length;var u,h,x,f=this.mHelper,g,v="",m=0;for(s=0;s<l;s+=1){if(this.globalData.fontManager.chars?(this.textPaths[m]?u=this.textPaths[m]:(u=createNS("path"),u.setAttribute("stroke-linecap",lineCapEnum[1]),u.setAttribute("stroke-linejoin",lineJoinEnum[2]),u.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[m]?(h=this.textSpans[m],x=h.children[0]):(h=createTag("div"),h.style.lineHeight=0,x=createNS("svg"),x.appendChild(u),styleDiv(h)))):this.isMasked?u=this.textPaths[m]?this.textPaths[m]:createNS("text"):this.textSpans[m]?(h=this.textSpans[m],u=this.textPaths[m]):(h=createTag("span"),styleDiv(h),u=createTag("span"),styleDiv(u),h.appendChild(u)),this.globalData.fontManager.chars){var w=this.globalData.fontManager.getCharData(e.finalText[s],i.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily),b;if(w?b=w.data:b=null,f.reset(),b&&b.shapes&&b.shapes.length&&(g=b.shapes[0].it,f.scale(e.finalSize/100,e.finalSize/100),v=this.createPathShape(f,g),u.setAttribute("d",v)),this.isMasked)this.innerElem.appendChild(u);else{if(this.innerElem.appendChild(h),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 p=x.style,y="translate("+(d.x-1)+"px,"+(d.y-1)+"px)";p.transform=y,p.webkitTransform=y,c[s].yOffset=d.y-1}else x.setAttribute("width",1),x.setAttribute("height",1);h.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(h);var E=u.style,_="translate3d(0,"+-e.finalSize/1.2+"px,0)";E.transform=_,E.webkitTransform=_}this.isMasked?this.textSpans[m]=u:this.textSpans[m]=h,this.textSpans[m].style.display="block",this.textPaths[m]=u,m+=1}for(;m<this.textSpans.length;)this.textSpans[m].style.display="none",m+=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 r="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";e.transform=r,e.webkitTransform=r}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),!(!this.lettersChangedFlag&&!this.textAnimator.lettersChangedFlag)){var n,i,a=0,o=this.textAnimator.renderedLetters,s=this.textProperty.currentData.l;i=s.length;var l,c,u;for(n=0;n<i;n+=1)s[n].n?a+=1:(c=this.textSpans[n],u=this.textPaths[n],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 h=this.innerElem.getBBox();this.currentBBox.w!==h.width&&(this.currentBBox.w=h.width,this.svgElement.setAttribute("width",h.width)),this.currentBBox.h!==h.height&&(this.currentBBox.h=h.height,this.svgElement.setAttribute("height",h.height));var x=1;if(this.currentBBox.w!==h.width+x*2||this.currentBBox.h!==h.height+x*2||this.currentBBox.x!==h.x-x||this.currentBBox.y!==h.y-x){this.currentBBox.w=h.width+x*2,this.currentBBox.h=h.height+x*2,this.currentBBox.x=h.x-x,this.currentBBox.y=h.y-x,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var f="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=f,e.webkitTransform=f}}}};function HCameraElement(e,r,n){this.initFrame(),this.initBaseData(e,r,n),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,r=this.comp.threeDElements.length,n,i,a;for(e=0;e<r;e+=1)if(n=this.comp.threeDElements[e],n.type==="3d"){i=n.perspectiveElem.style,a=n.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,r,n;if(this.hierarchy)for(n=this.hierarchy.length,r=0;r<n;r+=1)e=this.hierarchy[r].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(n=this.hierarchy.length-1,r=n;r>=0;r-=1){var i=this.hierarchy[r].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 h=!this._prevMat.equals(this.mat);if((h||this.pe._mdf)&&this.comp.threeDElements){n=this.comp.threeDElements.length;var x,f,g;for(r=0;r<n;r+=1)if(x=this.comp.threeDElements[r],x.type==="3d"){if(h){var v=this.mat.toCSS();g=x.container.style,g.transform=v,g.webkitTransform=v}this.pe._mdf&&(f=x.perspectiveElem.style,f.perspective=this.pe.v+"px",f.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,r,n){this.assetData=r.getAssetData(e.refId),this.initElement(e,r,n)}extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData),r=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(r),r.crossOrigin="anonymous",r.src=e,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)};function HybridRendererBase(e,r){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:r&&r.className||"",imagePreserveAspectRatio:r&&r.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(r&&r.hideOnTransparent===!1),filterSize:{width:r&&r.filterSize&&r.filterSize.width||"400%",height:r&&r.filterSize&&r.filterSize.height||"400%",x:r&&r.filterSize&&r.filterSize.x||"-100%",y:r&&r.filterSize&&r.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,r){var n=e.getBaseElement();if(n){var i=this.layers[r];if(!i.ddd||!this.supports3d)if(this.threeDElements)this.addTo3dContainer(n,r);else{for(var a=0,o,s,l;a<r;)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(n,o):(!i.ddd||!this.supports3d)&&this.layerElement.appendChild(n)}else this.addTo3dContainer(n,r)}},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 r=0,n=this.threeDElements.length;r<n;){if(this.threeDElements[r].startPos<=e&&this.threeDElements[r].endPos>=e)return this.threeDElements[r].perspectiveElem;r+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(e,r){var n=createTag("div"),i,a;styleDiv(n);var o=createTag("div");if(styleDiv(o),r==="3d"){i=n.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}n.appendChild(o);var c={container:o,perspectiveElem:n,startPos:e,endPos:e,type:r};return this.threeDElements.push(c),c},HybridRendererBase.prototype.build3dContainers=function(){var e,r=this.layers.length,n,i="";for(e=0;e<r;e+=1)this.layers[e].ddd&&this.layers[e].ty!==3?(i!=="3d"&&(i="3d",n=this.createThreeDContainer(e,"3d")),n.endPos=Math.max(n.endPos,e)):(i!=="2d"&&(i="2d",n=this.createThreeDContainer(e,"2d")),n.endPos=Math.max(n.endPos,e));for(r=this.threeDElements.length,e=r-1;e>=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,r){for(var n=0,i=this.threeDElements.length;n<i;){if(r<=this.threeDElements[n].endPos){for(var a=this.threeDElements[n].startPos,o;a<r;)this.elements[a]&&this.elements[a].getBaseElement&&(o=this.elements[a].getBaseElement()),a+=1;o?this.threeDElements[n].container.insertBefore(e,o):this.threeDElements[n].container.appendChild(e);break}n+=1}},HybridRendererBase.prototype.configAnimation=function(e){var r=createTag("div"),n=this.animationItem.wrapper,i=r.style;i.width=e.w+"px",i.height=e.h+"px",this.resizerElem=r,styleDiv(r),i.transformStyle="flat",i.mozTransformStyle="flat",i.webkitTransformStyle="flat",this.renderConfig.className&&r.setAttribute("class",this.renderConfig.className),n.appendChild(r),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,r=this.layers?this.layers.length:0;for(e=0;e<r;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,r=this.animationItem.wrapper.offsetHeight,n=e/r,i=this.globalData.compSize.w/this.globalData.compSize.h,a,o,s,l;i>n?(a=e/this.globalData.compSize.w,o=e/this.globalData.compSize.w,s=0,l=(r-this.globalData.compSize.h*(e/this.globalData.compSize.w))/2):(a=r/this.globalData.compSize.h,o=r/this.globalData.compSize.h,s=(e-this.globalData.compSize.w*(r/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,r=this.globalData.compSize.h,n,i=this.threeDElements.length;for(n=0;n<i;n+=1){var a=this.threeDElements[n].perspectiveElem.style;a.webkitPerspective=Math.sqrt(Math.pow(e,2)+Math.pow(r,2))+"px",a.perspective=a.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(e){var r,n=e.length,i=createTag("div");for(r=0;r<n;r+=1)if(e[r].xt){var a=this.createComp(e[r],i,this.globalData.comp,null);a.initExpressions(),this.globalData.projectInterface.registerComposition(a)}};function HCompElement(e,r,n){this.layers=e.layers,this.supports3d=!e.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,r,n),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,r.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,r){for(var n=0,i;n<r;)this.elements[n]&&this.elements[n].getBaseElement&&(i=this.elements[n].getBaseElement()),n+=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,r){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:r&&r.className||"",imagePreserveAspectRatio:r&&r.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(r&&r.hideOnTransparent===!1),filterSize:{width:r&&r.filterSize&&r.filterSize.width||"400%",height:r&&r.filterSize&&r.filterSize.height||"400%",x:r&&r.filterSize&&r.filterSize.x||"-100%",y:r&&r.filterSize&&r.filterSize.y||"-100%"},runExpressions:!r||r.runExpressions===void 0||r.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 r(n){for(var i=0,a=e.layers.length;i<a;){if(e.layers[i].nm===n||e.layers[i].ind===n)return e.elements[i].layerInterface;i+=1}return null}return Object.defineProperty(r,"_name",{value:e.data.nm}),r.layer=r,r.pixelAspect=1,r.height=e.data.h||e.globalData.compSize.h,r.width=e.data.w||e.globalData.compSize.w,r.pixelAspect=1,r.frameDuration=1/e.globalData.frameRate,r.displayStartTime=0,r.numLayers=e.layers.length,r}}();function _typeof$2(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$2=function(n){return typeof n}:_typeof$2=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof$2(e)}function seedRandom(e,r){var n=this,i=256,a=6,o=52,s="random",l=r.pow(i,a),c=r.pow(2,o),u=c*2,h=i-1,x;function f(p,y,E){var _=[];y=y===!0?{entropy:!0}:y||{};var P=w(m(y.entropy?[p,d(e)]:p===null?b():p,3),_),A=new g(_),R=function(){for(var B=A.g(a),O=l,V=0;B<c;)B=(B+V)*i,O*=i,V=A.g(1);for(;B>=u;)B/=2,O/=2,V>>>=1;return(B+V)/O};return R.int32=function(){return A.g(4)|0},R.quick=function(){return A.g(4)/4294967296},R.double=R,w(d(A.S),e),(y.pass||E||function(M,B,O,V){return V&&(V.S&&v(V,A),M.state=function(){return v(A,{})}),O?(r[s]=M,B):M})(R,P,"global"in y?y.global:this==r,y.state)}r["seed"+s]=f;function g(p){var y,E=p.length,_=this,P=0,A=_.i=_.j=0,R=_.S=[];for(E||(p=[E++]);P<i;)R[P]=P++;for(P=0;P<i;P++)R[P]=R[A=h&A+p[P%E]+(y=R[P])],R[A]=y;_.g=function(M){for(var B,O=0,V=_.i,q=_.j,N=_.S;M--;)B=N[V=h&V+1],O=O*i+N[h&(N[V]=N[q=h&q+B])+(N[q]=B)];return _.i=V,_.j=q,O}}function v(p,y){return y.i=p.i,y.j=p.j,y.S=p.S.slice(),y}function m(p,y){var E=[],_=_typeof$2(p),P;if(y&&_=="object")for(P in p)try{E.push(m(p[P],y-1))}catch{}return E.length?E:_=="string"?p:p+"\0"}function w(p,y){for(var E=p+"",_,P=0;P<E.length;)y[h&P]=h&(_^=y[h&P]*19)+E.charCodeAt(P++);return d(y)}function b(){try{var p=new Uint8Array(i);return(n.crypto||n.msCrypto).getRandomValues(p),d(p)}catch{var y=n.navigator,E=y&&y.plugins;return[+new Date,n,E,n.screen,d(e)]}}function d(p){return String.fromCharCode.apply(0,p)}w(r.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(n){return typeof n}:_typeof$1=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_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,r){return e==="number"||r instanceof Number||e==="boolean"||e==="string"}function $bm_neg(e){var r=_typeof$1(e);if(r==="number"||e instanceof Number||r==="boolean")return-e;if($bm_isInstanceOfArray(e)){var n,i=e.length,a=[];for(n=0;n<i;n+=1)a[n]=-e[n];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,r){var n=_typeof$1(e),i=_typeof$1(r);if(isNumerable(n,e)&&isNumerable(i,r)||n==="string"||i==="string")return e+r;if($bm_isInstanceOfArray(e)&&isNumerable(i,r))return e=e.slice(0),e[0]+=r,e;if(isNumerable(n,e)&&$bm_isInstanceOfArray(r))return r=r.slice(0),r[0]=e+r[0],r;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(r)){for(var a=0,o=e.length,s=r.length,l=[];a<o||a<s;)(typeof e[a]=="number"||e[a]instanceof Number)&&(typeof r[a]=="number"||r[a]instanceof Number)?l[a]=e[a]+r[a]:l[a]=r[a]===void 0?e[a]:e[a]||r[a],a+=1;return l}return 0}var add=sum;function sub(e,r){var n=_typeof$1(e),i=_typeof$1(r);if(isNumerable(n,e)&&isNumerable(i,r))return n==="string"&&(e=parseInt(e,10)),i==="string"&&(r=parseInt(r,10)),e-r;if($bm_isInstanceOfArray(e)&&isNumerable(i,r))return e=e.slice(0),e[0]-=r,e;if(isNumerable(n,e)&&$bm_isInstanceOfArray(r))return r=r.slice(0),r[0]=e-r[0],r;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(r)){for(var a=0,o=e.length,s=r.length,l=[];a<o||a<s;)(typeof e[a]=="number"||e[a]instanceof Number)&&(typeof r[a]=="number"||r[a]instanceof Number)?l[a]=e[a]-r[a]:l[a]=r[a]===void 0?e[a]:e[a]||r[a],a+=1;return l}return 0}function mul(e,r){var n=_typeof$1(e),i=_typeof$1(r),a;if(isNumerable(n,e)&&isNumerable(i,r))return e*r;var o,s;if($bm_isInstanceOfArray(e)&&isNumerable(i,r)){for(s=e.length,a=createTypedArray("float32",s),o=0;o<s;o+=1)a[o]=e[o]*r;return a}if(isNumerable(n,e)&&$bm_isInstanceOfArray(r)){for(s=r.length,a=createTypedArray("float32",s),o=0;o<s;o+=1)a[o]=e*r[o];return a}return 0}function div(e,r){var n=_typeof$1(e),i=_typeof$1(r),a;if(isNumerable(n,e)&&isNumerable(i,r))return e/r;var o,s;if($bm_isInstanceOfArray(e)&&isNumerable(i,r)){for(s=e.length,a=createTypedArray("float32",s),o=0;o<s;o+=1)a[o]=e[o]/r;return a}if(isNumerable(n,e)&&$bm_isInstanceOfArray(r)){for(s=r.length,a=createTypedArray("float32",s),o=0;o<s;o+=1)a[o]=e/r[o];return a}return 0}function mod(e,r){return typeof e=="string"&&(e=parseInt(e,10)),typeof r=="string"&&(r=parseInt(r,10)),e%r}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(e,r,n){if(r>n){var i=n;n=r,r=i}return Math.min(Math.max(e,r),n)}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,r){if(typeof e=="number"||e instanceof Number)return r=r||0,Math.abs(e-r);r||(r=helperLengthArray);var n,i=Math.min(e.length,r.length),a=0;for(n=0;n<i;n+=1)a+=Math.pow(r[n]-e[n],2);return Math.sqrt(a)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var r=e[0],n=e[1],i=e[2],a=Math.max(r,n,i),o=Math.min(r,n,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 r:s=(n-i)/u+(n<i?6:0);break;case n:s=(i-r)/u+2;break;case i:s=(r-n)/u+4;break}s/=6}return[s,l,c,e[3]]}function hue2rgb(e,r,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(r-e)*6*n:n<1/2?r:n<2/3?e+(r-e)*(2/3-n)*6:e}function hslToRgb(e){var r=e[0],n=e[1],i=e[2],a,o,s;if(n===0)a=i,s=i,o=i;else{var l=i<.5?i*(1+n):i+n-i*n,c=2*i-l;a=hue2rgb(c,l,r+1/3),o=hue2rgb(c,l,r),s=hue2rgb(c,l,r-1/3)}return[a,o,s,e[3]]}function linear(e,r,n,i,a){if((i===void 0||a===void 0)&&(i=r,a=n,r=0,n=1),n<r){var o=n;n=r,r=o}if(e<=r)return i;if(e>=n)return a;var s=n===r?0:(e-r)/(n-r);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,r){if(r===void 0&&(e===void 0?(e=0,r=1):(r=e,e=void 0)),r.length){var n,i=r.length;e||(e=createTypedArray("float32",i));var a=createTypedArray("float32",i),o=BMMath.random();for(n=0;n<i;n+=1)a[n]=e[n]+o*(r[n]-e[n]);return a}e===void 0&&(e=0);var s=BMMath.random();return e+s*(r-e)}function createPath(e,r,n,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=r&&r[a]?r[a]:l,u=n&&n[a]?n[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(r,n){var i,a,o=this.pv.length?this.pv.length:1,s=createTypedArray("float32",o);r=5;var l=Math.floor(time*r);for(i=0,a=0;i<l;){for(a=0;a<o;a+=1)s[a]+=-n+n*2*BMMath.random();i+=1}var c=time*r,u=c-Math.floor(c),h=createTypedArray("float32",o);if(o>1){for(a=0;a<o;a+=1)h[a]=this.pv[a]+s[a]+(-n+n*2*BMMath.random())*u;return h}return this.pv+s[0]+(-n+n*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,r){return loopIn(e,r,!0)}function loopOutDuration(e,r){return loopOut(e,r,!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,r){var n=[r[0]-e[0],r[1]-e[1],r[2]-e[2]],i=Math.atan2(n[0],Math.sqrt(n[1]*n[1]+n[2]*n[2]))/degToRads,a=-Math.atan2(n[1],n[2])/degToRads;return[a,i,0]}function easeOut(e,r,n,i,a){return applyEase(easeOutBez,e,r,n,i,a)}function easeIn(e,r,n,i,a){return applyEase(easeInBez,e,r,n,i,a)}function ease(e,r,n,i,a){return applyEase(easeInOutBez,e,r,n,i,a)}function applyEase(e,r,n,i,a,o){a===void 0?(a=n,o=i):r=(r-n)/(i-n),r>1?r=1:r<0&&(r=0);var s=e(r);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 r,n=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(r=0;r<n-1;r+=1)if(e===data.k[r].t){i=r+1,a=data.k[r].t;break}else if(e>data.k[r].t&&e<data.k[r+1].t){e-data.k[r].t>data.k[r+1].t-e?(i=r+2,a=data.k[r+1].t):(i=r+1,a=data.k[r].t);break}i===-1&&(i=r+1,a=data.k[r].t)}var o={};return o.index=i,o.time=a/elem.comp.globalData.frameRate,o}function key(e){var r,n,i;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+e);e-=1,r={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,n=0;n<i;n+=1)r[n]=a[n],r.value[n]=a[n];return r}function framesToTime(e,r){return r||(r=elem.comp.globalData.frameRate),e/r}function timeToFrames(e,r){return!e&&e!==0&&(e=time),r||(r=elem.comp.globalData.frameRate),e*r}function seedRandom(e){BMMath.seedrandom(randSeed+e)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(e,r){return typeof value=="string"?r===void 0?value.substring(e):value.substring(e,r):""}function substr(e,r){return typeof value=="string"?r===void 0?value.substr(e):value.substr(e,r):""}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=r,e.resetFrame=ExpressionManager.resetFrame;function r(n){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,h=a.length;for(u=0;u<h;u+=1)a[u].release();a.length=0}n.renderer.compInterface=CompExpressionInterface(n.renderer),n.renderer.globalData.projectInterface.registerComposition(n.renderer),n.renderer.globalData.pushExpression=o,n.renderer.globalData.popExpression=s,n.renderer.globalData.registerExpressionProperty=l}return e}(),MaskManagerInterface=function(){function e(n,i){this._mask=n,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 r=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 r}(),ExpressionPropertyInterface=function(){var e={pv:0,v:0,mult:1},r={pv:[0,0,0],v:[0,0,0],mult:1};function n(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 h="";"s"in l.keyframes[u-1]?h=l.keyframes[u-1].s:"e"in l.keyframes[u-2]?h=l.keyframes[u-2].e:h=l.keyframes[u-2].s;var x=c==="unidimensional"?new Number(h):Object.assign({},h);return x.time=l.keyframes[u-1].t/l.elem.comp.globalData.frameRate,x.value=c==="unidimensional"?h[0]:h,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,n(u,s,"unidimensional"),function(){return s.k&&s.getValue(),c=s.v*l,u.value!==c&&(u=new Number(c),u.value=c,n(u,s,"unidimensional")),u}}function a(s){(!s||!("pv"in s))&&(s=r);var l=1/s.mult,c=s.data&&s.data.l||s.pv.length,u=createTypedArray("float32",c),h=createTypedArray("float32",c);return u.value=h,n(u,s,"multidimensional"),function(){s.k&&s.getValue();for(var x=0;x<c;x+=1)h[x]=s.v[x]*l,u[x]=h[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 r(s){switch(s){case"scale":case"Scale":case"ADBE Scale":case 6:return r.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return r.rotation;case"ADBE Rotate X":return r.xRotation;case"ADBE Rotate Y":return r.yRotation;case"position":case"Position":case"ADBE Position":case 2:return r.position;case"ADBE Position_0":return r.xPosition;case"ADBE Position_1":return r.yPosition;case"ADBE Position_2":return r.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return r.anchorPoint;case"opacity":case"Opacity":case 11:return r.opacity;default:return null}}Object.defineProperty(r,"rotation",{get:ExpressionPropertyInterface(e.r||e.rz)}),Object.defineProperty(r,"zRotation",{get:ExpressionPropertyInterface(e.rz||e.r)}),Object.defineProperty(r,"xRotation",{get:ExpressionPropertyInterface(e.rx)}),Object.defineProperty(r,"yRotation",{get:ExpressionPropertyInterface(e.ry)}),Object.defineProperty(r,"scale",{get:ExpressionPropertyInterface(e.s)});var n,i,a,o;return e.p?o=ExpressionPropertyInterface(e.p):(n=ExpressionPropertyInterface(e.px),i=ExpressionPropertyInterface(e.py),e.pz&&(a=ExpressionPropertyInterface(e.pz))),Object.defineProperty(r,"position",{get:function(){return e.p?o():[n(),i(),a?a():0]}}),Object.defineProperty(r,"xPosition",{get:ExpressionPropertyInterface(e.px)}),Object.defineProperty(r,"yPosition",{get:ExpressionPropertyInterface(e.py)}),Object.defineProperty(r,"zPosition",{get:ExpressionPropertyInterface(e.pz)}),Object.defineProperty(r,"anchorPoint",{get:ExpressionPropertyInterface(e.a)}),Object.defineProperty(r,"opacity",{get:ExpressionPropertyInterface(e.o)}),Object.defineProperty(r,"skew",{get:ExpressionPropertyInterface(e.sk)}),Object.defineProperty(r,"skewAxis",{get:ExpressionPropertyInterface(e.sa)}),Object.defineProperty(r,"orientation",{get:ExpressionPropertyInterface(e.or)}),r}}(),LayerExpressionInterface=function(){function e(u){var h=new Matrix;if(u!==void 0){var x=this._elem.finalTransform.mProp.getValueAtTime(u);x.clone(h)}else{var f=this._elem.finalTransform.mProp;f.applyToMatrix(h)}return h}function r(u,h){var x=this.getMatrix(h);return x.props[12]=0,x.props[13]=0,x.props[14]=0,this.applyPoint(x,u)}function n(u,h){var x=this.getMatrix(h);return this.applyPoint(x,u)}function i(u,h){var x=this.getMatrix(h);return x.props[12]=0,x.props[13]=0,x.props[14]=0,this.invertPoint(x,u)}function a(u,h){var x=this.getMatrix(h);return this.invertPoint(x,u)}function o(u,h){if(this._elem.hierarchy&&this._elem.hierarchy.length){var x,f=this._elem.hierarchy.length;for(x=0;x<f;x+=1)this._elem.hierarchy[x].finalTransform.mProp.applyToMatrix(u)}return u.applyToPointArray(h[0],h[1],h[2]||0)}function s(u,h){if(this._elem.hierarchy&&this._elem.hierarchy.length){var x,f=this._elem.hierarchy.length;for(x=0;x<f;x+=1)this._elem.hierarchy[x].finalTransform.mProp.applyToMatrix(u)}return u.inversePoint(h)}function l(u){var h=new Matrix;if(h.reset(),this._elem.finalTransform.mProp.applyToMatrix(h),this._elem.hierarchy&&this._elem.hierarchy.length){var x,f=this._elem.hierarchy.length;for(x=0;x<f;x+=1)this._elem.hierarchy[x].finalTransform.mProp.applyToMatrix(h);return h.inversePoint(u)}return h.inversePoint(u)}function c(){return[1,1,1,1]}return function(u){var h;function x(m){g.mask=new MaskManagerInterface(m,u)}function f(m){g.effect=m}function g(m){switch(m){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 h;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=n,g.toWorldVec=r,g.fromWorld=a,g.fromWorldVec=i,g.toComp=n,g.fromComp=l,g.sampleImage=c,g.sourceRectAtTime=u.sourceRectAtTime.bind(u),g._elem=u,h=TransformExpressionInterface(u.finalTransform.mProp);var v=getDescriptor(h,"anchorPoint");return Object.defineProperties(g,{hasParent:{get:function(){return u.hierarchy.length}},parent:{get:function(){return u.hierarchy[0].layerInterface}},rotation:getDescriptor(h,"rotation"),scale:getDescriptor(h,"scale"),position:getDescriptor(h,"position"),opacity:getDescriptor(h,"opacity"),anchorPoint:v,anchor_point:v,transform:{get:function(){return h}},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=f,g}}(),propertyGroupFactory=function(){return function(e,r){return function(n){return n=n===void 0?1:n,n<=0?e:r(n-1)}}}(),PropertyInterface=function(){return function(e,r){var n={_name:e};function i(a){return a=a===void 0?1:a,a<=0?n:r(a-1)}return i}}(),EffectsExpressionInterface=function(){var e={createEffectsInterface:r};function r(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(n(l[c],a.effectsManager.effectElements[c],o,a));var h=a.data.ef||[],x=function(g){for(c=0,u=h.length;c<u;){if(g===h[c].nm||g===h[c].mn||g===h[c].ix)return s[c];c+=1}return null};return Object.defineProperty(x,"numProperties",{get:function(){return h.length}}),x}return null}function n(a,o,s,l){function c(g){for(var v=a.ef,m=0,w=v.length;m<w;){if(g===v[m].nm||g===v[m].mn||g===v[m].ix)return v[m].ty===5?h[m]:h[m]();m+=1}throw new Error}var u=propertyGroupFactory(c,s),h=[],x,f=a.ef.length;for(x=0;x<f;x+=1)a.ef[x].ty===5?h.push(n(a.ef[x],o.effectElements[x],o.effectElements[x].propertyGroup,l)):h.push(i(o.effectElements[x],a.ef[x].ty,l,u));return a.mn==="ADBE Color Control"&&Object.defineProperty(c,"color",{get:function(){return h[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(r,n,i){var a=n.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:r.nm},ix:{value:r.ix},propertyIndex:{value:r.ix},mn:{value:r.mn},propertyGroup:{value:i}}),o}}(),ShapeExpressionInterface=function(){function e(v,m,w){var b=[],d,p=v?v.length:0;for(d=0;d<p;d+=1)v[d].ty==="gr"?b.push(n(v[d],m[d],w)):v[d].ty==="fl"?b.push(i(v[d],m[d],w)):v[d].ty==="st"?b.push(s(v[d],m[d],w)):v[d].ty==="tm"?b.push(l(v[d],m[d],w)):v[d].ty==="tr"||(v[d].ty==="el"?b.push(u(v[d],m[d],w)):v[d].ty==="sr"?b.push(h(v[d],m[d],w)):v[d].ty==="sh"?b.push(ShapePathInterface(v[d],m[d],w)):v[d].ty==="rc"?b.push(x(v[d],m[d],w)):v[d].ty==="rd"?b.push(f(v[d],m[d],w)):v[d].ty==="rp"?b.push(g(v[d],m[d],w)):v[d].ty==="gf"?b.push(a(v[d],m[d],w)):b.push(o(v[d],m[d])));return b}function r(v,m,w){var b,d=function(E){for(var _=0,P=b.length;_<P;){if(b[_]._name===E||b[_].mn===E||b[_].propertyIndex===E||b[_].ix===E||b[_].ind===E)return b[_];_+=1}return typeof E=="number"?b[E-1]:null};d.propertyGroup=propertyGroupFactory(d,w),b=e(v.it,m.it,d.propertyGroup),d.numProperties=b.length;var p=c(v.it[v.it.length-1],m.it[m.it.length-1],d.propertyGroup);return d.transform=p,d.propertyIndex=v.cix,d._name=v.nm,d}function n(v,m,w){var b=function(E){switch(E){case"ADBE Vectors Group":case"Contents":case 2:return b.content;default:return b.transform}};b.propertyGroup=propertyGroupFactory(b,w);var d=r(v,m,b.propertyGroup),p=c(v.it[v.it.length-1],m.it[m.it.length-1],b.propertyGroup);return b.content=d,b.transform=p,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,m,w){function b(d){return d==="Color"||d==="color"?b.color:d==="Opacity"||d==="opacity"?b.opacity:null}return Object.defineProperties(b,{color:{get:ExpressionPropertyInterface(m.c)},opacity:{get:ExpressionPropertyInterface(m.o)},_name:{value:v.nm},mn:{value:v.mn}}),m.c.setGroupProperty(PropertyInterface("Color",w)),m.o.setGroupProperty(PropertyInterface("Opacity",w)),b}function a(v,m,w){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(m.s)},endPoint:{get:ExpressionPropertyInterface(m.e)},opacity:{get:ExpressionPropertyInterface(m.o)},type:{get:function(){return"a"}},_name:{value:v.nm},mn:{value:v.mn}}),m.s.setGroupProperty(PropertyInterface("Start Point",w)),m.e.setGroupProperty(PropertyInterface("End Point",w)),m.o.setGroupProperty(PropertyInterface("Opacity",w)),b}function o(){function v(){return null}return v}function s(v,m,w){var b=propertyGroupFactory(P,w),d=propertyGroupFactory(_,b);function p(A){Object.defineProperty(_,v.d[A].nm,{get:ExpressionPropertyInterface(m.d.dataProps[A].p)})}var y,E=v.d?v.d.length:0,_={};for(y=0;y<E;y+=1)p(y),m.d.dataProps[y].p.setGroupProperty(d);function P(A){return A==="Color"||A==="color"?P.color:A==="Opacity"||A==="opacity"?P.opacity:A==="Stroke Width"||A==="stroke width"?P.strokeWidth:null}return Object.defineProperties(P,{color:{get:ExpressionPropertyInterface(m.c)},opacity:{get:ExpressionPropertyInterface(m.o)},strokeWidth:{get:ExpressionPropertyInterface(m.w)},dash:{get:function(){return _}},_name:{value:v.nm},mn:{value:v.mn}}),m.c.setGroupProperty(PropertyInterface("Color",b)),m.o.setGroupProperty(PropertyInterface("Opacity",b)),m.w.setGroupProperty(PropertyInterface("Stroke Width",b)),P}function l(v,m,w){function b(p){return p===v.e.ix||p==="End"||p==="end"?b.end:p===v.s.ix?b.start:p===v.o.ix?b.offset:null}var d=propertyGroupFactory(b,w);return b.propertyIndex=v.ix,m.s.setGroupProperty(PropertyInterface("Start",d)),m.e.setGroupProperty(PropertyInterface("End",d)),m.o.setGroupProperty(PropertyInterface("Offset",d)),b.propertyIndex=v.ix,b.propertyGroup=w,Object.defineProperties(b,{start:{get:ExpressionPropertyInterface(m.s)},end:{get:ExpressionPropertyInterface(m.e)},offset:{get:ExpressionPropertyInterface(m.o)},_name:{value:v.nm}}),b.mn=v.mn,b}function c(v,m,w){function b(p){return v.a.ix===p||p==="Anchor Point"?b.anchorPoint:v.o.ix===p||p==="Opacity"?b.opacity:v.p.ix===p||p==="Position"?b.position:v.r.ix===p||p==="Rotation"||p==="ADBE Vector Rotation"?b.rotation:v.s.ix===p||p==="Scale"?b.scale:v.sk&&v.sk.ix===p||p==="Skew"?b.skew:v.sa&&v.sa.ix===p||p==="Skew Axis"?b.skewAxis:null}var d=propertyGroupFactory(b,w);return m.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",d)),m.transform.mProps.p.setGroupProperty(PropertyInterface("Position",d)),m.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",d)),m.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",d)),m.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",d)),m.transform.mProps.sk&&(m.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",d)),m.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",d))),m.transform.op.setGroupProperty(PropertyInterface("Opacity",d)),Object.defineProperties(b,{opacity:{get:ExpressionPropertyInterface(m.transform.mProps.o)},position:{get:ExpressionPropertyInterface(m.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(m.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(m.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(m.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(m.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(m.transform.mProps.sa)},_name:{value:v.nm}}),b.ty="tr",b.mn=v.mn,b.propertyGroup=w,b}function u(v,m,w){function b(y){return v.p.ix===y?b.position:v.s.ix===y?b.size:null}var d=propertyGroupFactory(b,w);b.propertyIndex=v.ix;var p=m.sh.ty==="tm"?m.sh.prop:m.sh;return p.s.setGroupProperty(PropertyInterface("Size",d)),p.p.setGroupProperty(PropertyInterface("Position",d)),Object.defineProperties(b,{size:{get:ExpressionPropertyInterface(p.s)},position:{get:ExpressionPropertyInterface(p.p)},_name:{value:v.nm}}),b.mn=v.mn,b}function h(v,m,w){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,w),p=m.sh.ty==="tm"?m.sh.prop:m.sh;return b.propertyIndex=v.ix,p.or.setGroupProperty(PropertyInterface("Outer Radius",d)),p.os.setGroupProperty(PropertyInterface("Outer Roundness",d)),p.pt.setGroupProperty(PropertyInterface("Points",d)),p.p.setGroupProperty(PropertyInterface("Position",d)),p.r.setGroupProperty(PropertyInterface("Rotation",d)),v.ir&&(p.ir.setGroupProperty(PropertyInterface("Inner Radius",d)),p.is.setGroupProperty(PropertyInterface("Inner Roundness",d))),Object.defineProperties(b,{position:{get:ExpressionPropertyInterface(p.p)},rotation:{get:ExpressionPropertyInterface(p.r)},points:{get:ExpressionPropertyInterface(p.pt)},outerRadius:{get:ExpressionPropertyInterface(p.or)},outerRoundness:{get:ExpressionPropertyInterface(p.os)},innerRadius:{get:ExpressionPropertyInterface(p.ir)},innerRoundness:{get:ExpressionPropertyInterface(p.is)},_name:{value:v.nm}}),b.mn=v.mn,b}function x(v,m,w){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,w),p=m.sh.ty==="tm"?m.sh.prop:m.sh;return b.propertyIndex=v.ix,p.p.setGroupProperty(PropertyInterface("Position",d)),p.s.setGroupProperty(PropertyInterface("Size",d)),p.r.setGroupProperty(PropertyInterface("Rotation",d)),Object.defineProperties(b,{position:{get:ExpressionPropertyInterface(p.p)},roundness:{get:ExpressionPropertyInterface(p.r)},size:{get:ExpressionPropertyInterface(p.s)},_name:{value:v.nm}}),b.mn=v.mn,b}function f(v,m,w){function b(y){return v.r.ix===y||y==="Round Corners 1"?b.radius:null}var d=propertyGroupFactory(b,w),p=m;return b.propertyIndex=v.ix,p.rd.setGroupProperty(PropertyInterface("Radius",d)),Object.defineProperties(b,{radius:{get:ExpressionPropertyInterface(p.rd)},_name:{value:v.nm}}),b.mn=v.mn,b}function g(v,m,w){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,w),p=m;return b.propertyIndex=v.ix,p.c.setGroupProperty(PropertyInterface("Copies",d)),p.o.setGroupProperty(PropertyInterface("Offset",d)),Object.defineProperties(b,{copies:{get:ExpressionPropertyInterface(p.c)},offset:{get:ExpressionPropertyInterface(p.o)},_name:{value:v.nm}}),b.mn=v.mn,b}return function(v,m,w){var b;function d(y){if(typeof y=="number")return y=y===void 0?1:y,y===0?w:b[y-1];for(var E=0,_=b.length;E<_;){if(b[E]._name===y)return b[E];E+=1}return null}function p(){return w}return d.propertyGroup=propertyGroupFactory(d,p),b=e(v,m,d.propertyGroup),d.numProperties=b.length,d._name="Contents",d}}(),TextExpressionInterface=function(){return function(e){var r;function n(i){switch(i){case"ADBE Text Document":return n.sourceText;default:return null}}return Object.defineProperty(n,"sourceText",{get:function(){e.textProperty.getValue();var a=e.textProperty.currentData.t;return(!r||a!==r.value)&&(r=new String(a),r.value=a||new String(a),Object.defineProperty(r,"style",{get:function(){return{fillColor:e.textProperty.currentData.fc}}})),r}}),n}}();function _typeof(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(n){return typeof n}:_typeof=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_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 h=parseInt(c.substr(u+a.length),10);return o=o[h],_typeof(o)==="object"?l:o}return""}return s},r=function(i){function a(o){return o==="Outline"?a.outlineInterface():null}return a._name="Outline",a.outlineInterface=e(i),a};return function(n){function i(a){return a==="Data"?i.dataInterface:null}return i._name="Data",i.dataInterface=r(n),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 r(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 n(s){var l=-.01,c=this.getValueAtTime(s),u=this.getValueAtTime(s+l),h=0;if(c.length){var x;for(x=0;x<c.length;x+=1)h+=Math.pow(u[x]-c[x],2);h=Math.sqrt(h)*100}else h=0;return h}function i(s){if(this.vel!==void 0)return this.vel;var l=-.001,c=this.getValueAtTime(s),u=this.getValueAtTime(s+l),h;if(c.length){h=createTypedArray("float32",c.length);var x;for(x=0;x<c.length;x+=1)h[x]=(u[x]-c[x])/l}else h=(u-c)/l;return h}function a(){return this.pv}function o(s){this.propertyGroup=s}return{searchExpressions:e,getSpeedAtTime:n,getVelocityAtTime:i,getValueAtTime:r,getStaticValueAtTime:a,setGroupProperty:o}}();function addPropertyDecorator(){function e(f,g,v){if(!this.k||!this.keyframes)return this.pv;f=f?f.toLowerCase():"";var m=this.comp.renderedFrame,w=this.keyframes,b=w[w.length-1].t;if(m<=b)return this.pv;var d,p;v?(g?d=Math.abs(b-this.elem.comp.globalData.frameRate*g):d=Math.max(0,b-this.elem.data.ip),p=b-d):((!g||g>w.length-1)&&(g=w.length-1),p=w[w.length-1-g].t,d=b-p);var y,E,_;if(f==="pingpong"){var P=Math.floor((m-p)/d);if(P%2!==0)return this.getValueAtTime((d-(m-p)%d+p)/this.comp.globalData.frameRate,0)}else if(f==="offset"){var A=this.getValueAtTime(p/this.comp.globalData.frameRate,0),R=this.getValueAtTime(b/this.comp.globalData.frameRate,0),M=this.getValueAtTime(((m-p)%d+p)/this.comp.globalData.frameRate,0),B=Math.floor((m-p)/d);if(this.pv.length){for(_=new Array(A.length),E=_.length,y=0;y<E;y+=1)_[y]=(R[y]-A[y])*B+M[y];return _}return(R-A)*B+M}else if(f==="continue"){var O=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(O.length),E=_.length,y=0;y<E;y+=1)_[y]=O[y]+(O[y]-V[y])*((m-b)/this.comp.globalData.frameRate)/5e-4;return _}return O+(O-V)*((m-b)/.001)}return this.getValueAtTime(((m-p)%d+p)/this.comp.globalData.frameRate,0)}function r(f,g,v){if(!this.k)return this.pv;f=f?f.toLowerCase():"";var m=this.comp.renderedFrame,w=this.keyframes,b=w[0].t;if(m>=b)return this.pv;var d,p;v?(g?d=Math.abs(this.elem.comp.globalData.frameRate*g):d=Math.max(0,this.elem.data.op-b),p=b+d):((!g||g>w.length-1)&&(g=w.length-1),p=w[g].t,d=p-b);var y,E,_;if(f==="pingpong"){var P=Math.floor((b-m)/d);if(P%2===0)return this.getValueAtTime(((b-m)%d+b)/this.comp.globalData.frameRate,0)}else if(f==="offset"){var A=this.getValueAtTime(b/this.comp.globalData.frameRate,0),R=this.getValueAtTime(p/this.comp.globalData.frameRate,0),M=this.getValueAtTime((d-(b-m)%d+b)/this.comp.globalData.frameRate,0),B=Math.floor((b-m)/d)+1;if(this.pv.length){for(_=new Array(A.length),E=_.length,y=0;y<E;y+=1)_[y]=M[y]-(R[y]-A[y])*B;return _}return M-(R-A)*B}else if(f==="continue"){var O=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(O.length),E=_.length,y=0;y<E;y+=1)_[y]=O[y]+(O[y]-V[y])*(b-m)/.001;return _}return O+(O-V)*(b-m)/.001}return this.getValueAtTime((d-((b-m)%d+b))/this.comp.globalData.frameRate,0)}function n(f,g){if(!this.k)return this.pv;if(f=(f||.4)*.5,g=Math.floor(g||5),g<=1)return this.pv;var v=this.comp.renderedFrame/this.comp.globalData.frameRate,m=v-f,w=v+f,b=g>1?(w-m)/(g-1):1,d=0,p=0,y;this.pv.length?y=createTypedArray("float32",this.pv.length):y=0;for(var E;d<g;){if(E=this.getValueAtTime(m+d*b),this.pv.length)for(p=0;p<this.pv.length;p+=1)y[p]+=E[p];else y+=E;d+=1}if(this.pv.length)for(p=0;p<this.pv.length;p+=1)y[p]/=g;else y/=g;return y}function i(f){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(f);g.translate(-v[0]*this.a.mult,-v[1]*this.a.mult,v[2]*this.a.mult)}if(this.appliedTransformations<2){var m=this.s.getValueAtTime(f);g.scale(m[0]*this.s.mult,m[1]*this.s.mult,m[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var w=this.sk.getValueAtTime(f),b=this.sa.getValueAtTime(f);g.skewFromAxis(-w*this.sk.mult,b*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var d=this.r.getValueAtTime(f);g.rotate(-d*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var p=this.rz.getValueAtTime(f),y=this.ry.getValueAtTime(f),E=this.rx.getValueAtTime(f),_=this.or.getValueAtTime(f);g.rotateZ(-p*this.rz.mult).rotateY(y*this.ry.mult).rotateX(E*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 P=this.px.getValueAtTime(f),A=this.py.getValueAtTime(f);if(this.data.p.z){var R=this.pz.getValueAtTime(f);g.translate(P*this.px.mult,A*this.py.mult,-R*this.pz.mult)}else g.translate(P*this.px.mult,A*this.py.mult,0)}else{var M=this.p.getValueAtTime(f);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(f,g,v){var m=o(f,g,v);return m.dynamicProperties.length?m.getValueAtTime=i.bind(m):m.getValueAtTime=a.bind(m),m.setGroupProperty=expressionHelpers.setGroupProperty,m};var s=PropertyFactory.getProp;PropertyFactory.getProp=function(f,g,v,m,w){var b=s(f,g,v,m,w);b.kf?b.getValueAtTime=expressionHelpers.getValueAtTime.bind(b):b.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(b),b.setGroupProperty=expressionHelpers.setGroupProperty,b.loopOut=e,b.loopIn=r,b.smooth=n,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(f,g,b),b.k&&w.addDynamicProperty(b),b};function l(f){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),f*=this.elem.globalData.frameRate,f-=this.offsetTime,f!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<f?this._caching.lastIndex:0,this._cachingAtTime.lastTime=f,this.interpolateShape(f,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}var c=ShapePropertyFactory.getConstructorFunction(),u=ShapePropertyFactory.getKeyframedConstructorFunction();function h(){}h.prototype={vertices:function(g,v){this.k&&this.getValue();var m=this.v;v!==void 0&&(m=this.getValueAtTime(v,0));var w,b=m._length,d=m[g],p=m.v,y=createSizedArray(b);for(w=0;w<b;w+=1)g==="i"||g==="o"?y[w]=[d[w][0]-p[w][0],d[w][1]-p[w][1]]:y[w]=[d[w][0],d[w][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 m=this.v;v!==void 0&&(m=this.getValueAtTime(v,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(m));for(var w=this._segmentsLength,b=w.lengths,d=w.totalLength*g,p=0,y=b.length,E=0,_;p<y;){if(E+b[p].addedLength>d){var P=p,A=m.c&&p===y-1?0:p+1,R=(d-E)/b[p].addedLength;_=bez.getPointInSegment(m.v[P],m.v[A],m.o[P],m.i[A],R,b[p]);break}else E+=b[p].addedLength;p+=1}return _||(_=m.c?[m.v[0][0],m.v[0][1]]:[m.v[m._length-1][0],m.v[m._length-1][1]]),_},vectorOnPath:function(g,v,m){g==1?g=this.v.c:g==0&&(g=.999);var w=this.pointOnPath(g,v),b=this.pointOnPath(g+.001,v),d=b[0]-w[0],p=b[1]-w[1],y=Math.sqrt(Math.pow(d,2)+Math.pow(p,2));if(y===0)return[0,0];var E=m==="tangent"?[d/y,p/y]:[-p/y,d/y];return E},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([h],c),extendPrototype([h],u),u.prototype.getValueAtTime=l,u.prototype.initiateExpression=ExpressionManager.initiateExpression;var x=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(f,g,v,m,w){var b=x(f,g,v,m,w);return b.propertyIndex=g.ix,b.lock=!1,v===3?expressionHelpers.searchExpressions(f,g.pt,b):v===4&&expressionHelpers.searchExpressions(f,g.ks,b),b.k&&f.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(r,n){var i=this.calculateExpression(n);if(r.t!==i){var a={};return this.copyData(a,r),a.t=i.toString(),a.__complete=!1,a}return r},TextProperty.prototype.searchProperty=function(){var r=this.searchKeyframes(),n=this.searchExpressions();return this.kf=r||n,this.kf},TextProperty.prototype.searchExpressions=e}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function e(r,n){var i=createNS("feMerge");i.setAttribute("result",r);var a,o;for(o=0;o<n.length;o+=1)a=createNS("feMergeNode"),a.setAttribute("in",n[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,r,n,i,a){this.filterManager=r;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 r=this.filterManager.effectElements[0].p.v,n=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",n[0]-r[0]+" 0 0 0 "+r[0]+" "+(n[1]-r[1])+" 0 0 0 "+r[1]+" "+(n[2]-r[2])+" 0 0 0 "+r[2]+" 0 0 0 1 0")}};function SVGFillFilter(e,r,n,i){this.filterManager=r;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 r=this.filterManager.effectElements[2].p.v,n=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+r[0]+" 0 0 0 0 "+r[1]+" 0 0 0 0 "+r[2]+" 0 0 0 "+n+" 0")}};function SVGStrokeEffect(e,r,n){this.initialized=!1,this.filterManager=r,this.elem=n,this.paths=[]}SVGStrokeEffect.prototype.initialize=function(){var e=this.elem.layerElement.children||this.elem.layerElement.childNodes,r,n,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),n=createNS("g"),n.setAttribute("fill","none"),n.setAttribute("stroke-linecap","round"),n.setAttribute("stroke-dashoffset",1),i;i<a;i+=1)r=createNS("path"),n.appendChild(r),this.paths.push({p:r,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(n),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,n.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(n),this.elem.layerElement.removeAttribute("mask"),n.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=n},SVGStrokeEffect.prototype.renderFrame=function(e){this.initialized||this.initialize();var r,n=this.paths.length,i,a;for(r=0;r<n;r+=1)if(this.paths[r].m!==-1&&(i=this.elem.maskManager.viewData[this.paths[r].m],a=this.paths[r].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),h=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01,x=Math.floor(u/h),f;for(f=0;f<x;f+=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,r,n,i){this.filterManager=r;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 r=this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v,a=i[0]+" "+n[0]+" "+r[0],o=i[1]+" "+n[1]+" "+r[1],s=i[2]+" "+n[2]+" "+r[2];this.feFuncR.setAttribute("tableValues",a),this.feFuncG.setAttribute("tableValues",o),this.feFuncB.setAttribute("tableValues",s)}};function SVGProLevelsFilter(e,r,n,i){this.filterManager=r;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,r){var n=createNS(e);return n.setAttribute("type","table"),r.appendChild(n),n},SVGProLevelsFilter.prototype.getTableValue=function(e,r,n,i,a){for(var o=0,s=256,l,c=Math.min(e,r),u=Math.max(e,r),h=Array.call(null,{length:s}),x,f=0,g=a-i,v=r-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/n),h[f]=x,f+=1,o+=256/(s-1);return h.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var r,n=this.filterManager.effectElements;this.feFuncRComposed&&(e||n[3].p._mdf||n[4].p._mdf||n[5].p._mdf||n[6].p._mdf||n[7].p._mdf)&&(r=this.getTableValue(n[3].p.v,n[4].p.v,n[5].p.v,n[6].p.v,n[7].p.v),this.feFuncRComposed.setAttribute("tableValues",r),this.feFuncGComposed.setAttribute("tableValues",r),this.feFuncBComposed.setAttribute("tableValues",r)),this.feFuncR&&(e||n[10].p._mdf||n[11].p._mdf||n[12].p._mdf||n[13].p._mdf||n[14].p._mdf)&&(r=this.getTableValue(n[10].p.v,n[11].p.v,n[12].p.v,n[13].p.v,n[14].p.v),this.feFuncR.setAttribute("tableValues",r)),this.feFuncG&&(e||n[17].p._mdf||n[18].p._mdf||n[19].p._mdf||n[20].p._mdf||n[21].p._mdf)&&(r=this.getTableValue(n[17].p.v,n[18].p.v,n[19].p.v,n[20].p.v,n[21].p.v),this.feFuncG.setAttribute("tableValues",r)),this.feFuncB&&(e||n[24].p._mdf||n[25].p._mdf||n[26].p._mdf||n[27].p._mdf||n[28].p._mdf)&&(r=this.getTableValue(n[24].p.v,n[25].p.v,n[26].p.v,n[27].p.v,n[28].p.v),this.feFuncB.setAttribute("tableValues",r)),this.feFuncA&&(e||n[31].p._mdf||n[32].p._mdf||n[33].p._mdf||n[34].p._mdf||n[35].p._mdf)&&(r=this.getTableValue(n[31].p.v,n[32].p.v,n[33].p.v,n[34].p.v,n[35].p.v),this.feFuncA.setAttribute("tableValues",r))}};function SVGDropShadowEffect(e,r,n,i,a){var o=r.container.globalData.renderConfig.filterSize,s=r.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=r;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 h=createNS("feComposite");h.setAttribute("in",i+"_drop_shadow_3"),h.setAttribute("in2",i+"_drop_shadow_2"),h.setAttribute("operator","in"),h.setAttribute("result",i+"_drop_shadow_4"),e.appendChild(h);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 r=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(r[0]*255),Math.round(r[1]*255),Math.round(r[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 n=this.filterManager.effectElements[3].p.v,i=(this.filterManager.effectElements[2].p.v-90)*degToRads,a=n*Math.cos(i),o=n*Math.sin(i);this.feOffset.setAttribute("dx",a),this.feOffset.setAttribute("dy",o)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,r,n){this.initialized=!1,this.filterManager=r,this.filterElem=e,this.elem=n,n.matteElement=createNS("g"),n.matteElement.appendChild(n.layerElement),n.matteElement.appendChild(n.transformedElement),n.baseElement=n.matteElement}SVGMatte3Effect.prototype.findSymbol=function(e){for(var r=0,n=_svgMatteSymbols.length;r<n;){if(_svgMatteSymbols[r]===e)return _svgMatteSymbols[r];r+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(e,r){var n=e.layerElement.parentNode;if(n){for(var i=n.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","#"+r),s?n.insertBefore(l,s):n.appendChild(l)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,r){if(!this.findSymbol(r)){var n=createElementID(),i=createNS("mask");i.setAttribute("id",r.layerId),i.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(r);var a=e.globalData.defs;a.appendChild(i);var o=createNS("symbol");o.setAttribute("id",n),this.replaceInParent(r,n),o.appendChild(r.layerElement),a.appendChild(o);var s=createNS("use");s.setAttribute("href","#"+n),i.appendChild(s),r.data.hd=!1,r.show()}e.setMatte(r.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var e=this.filterManager.effectElements[0].p.v,r=this.elem.comp.elements,n=0,i=r.length;n<i;)r[n]&&r[n].data.ind===e&&this.setElementAsMask(this.elem,r[n]),n+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()};function SVGGaussianBlurEffect(e,r,n,i){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=r;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 r=.3,n=this.filterManager.effectElements[0].p.v*r,i=this.filterManager.effectElements[1].p.v,a=i==3?0:n,o=i==2?0:n;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 r=this.effectsManager.effectElements,n=r[0].p.v,i=r[1].p.v,a=r[2].p.v===1,o=r[3].p.v,s=a?o:r[4].p.v,l=r[5].p.v,c=r[6].p.v,u=r[7].p.v;this.matrix.reset(),this.matrix.translate(-n[0],-n[1],n[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!==r[8].p.v&&(this.opacity=r[8].p.v,this._opMdf=!0)}};function SVGTransformEffect(e,r){this.init(r)}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 r=usePickComponentStyle(e),n=vue.computed(()=>useImagePath(e.imgUrl)),{pageMode:i}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),a=vue.computed(()=>{const v={},{actionType:m,linkPage:w,href:b}=e,{requestParams:d={}}=window.config;return vue.unref(i)!=="design"&&m==="close"&&e.isDrillShow&&!d.drillFlag&&(v.display="none"),(m==="link"&&(w||b)||!m&&(w||b)||m==="close")&&(v.cursor="pointer"),{...vue.unref(r),...v}}),{getGlobalModel:o,setGlobalModel:s,getRecordValueByKeyName:l}=vue.inject(GLOBAL_MODEL,{getGlobalModel:v=>{},setGlobalModel:(v,m)=>{},getRecordValueByKeyName:v=>{}}),{setTemplateData:c}=vue.inject("templateOperate",{setTemplateData:v=>{}}),h=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(),f=vue.ref(),g=()=>{const{directory:v}=e.animationSource;e.isAnimation&&x.value&&v&&(f.value=lottie.loadAnimation({name:`${e.keyName}-lotTie`,container:x.value,renderer:"svg",loop:!0,autoplay:!0,path:useImagePath(v)+"data.json"}),vue.unref(f).setSpeed(1))};return vue.watch(()=>[e.isAnimation,e.animationSource],([v])=>{v&&vue.nextTick(()=>{g()})},{immediate:!0,deep:!0}),useOnEvent(e,{click:h}),{customStyle:a,myImgUrl:n,animation:x,pageMode:i,onClick:h}}}),__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,r)=>(__injectCSSVars__$1(),__setup__$1(e,r)):__injectCSSVars__$1;const Image_vue_vue_type_style_index_0_scoped_8b128e89_lang="",_hoisted_1$3=["src"];function _sfc_render$4(e,r,n,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:r[0]||(r[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:r[1]||(r[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$4],["__scopeId","data-v-8b128e89"]]),EcanImage=withInstall$1(Image$1),iframeProps={...props,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web"},iframeComponentProps=transformToComponentProps(iframeProps),_sfc_main$2=vue.defineComponent({name:"EcanIframe",props:{...iframeComponentProps},setup(e){const r=usePickComponentStyle(e),{contextRequestUrl:n}=vue.inject(GLOBAL_CONFIG,{contextRequestUrl:""}),i=vue.computed(()=>{let a=useVariablesInText(e.link);if(e.linkType==="erd"&&a!=null){let o=vue.unref(n);o[o.length-1]==="/"?o+="erdReport":o+="/erdReport",a=`${ERD_URL||o}?_t=0&uid=${a}`}return a});return{style:r,myLink:i}}}),Iframe_vue_vue_type_style_index_0_scoped_19bc100c_lang="",_hoisted_1$2=["src"];function _sfc_render$3(e,r,n,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$2,[["render",_sfc_render$3],["__scopeId","data-v-19bc100c"]]),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},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:r}){const{pageMode:n}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),i=vue.ref(!1),a=vue.computed(()=>vue.unref(n)!=="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),h=usePickComponentStyle(e),x=vue.ref([]),f=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},m=vue.ref(0),w=vue.ref(0);vue.watchEffect(()=>{var X;(X=x.value)!=null&&X.length&&e.height&&setTimeout(()=>{let te=parseFloat(e.height);const ne=document.querySelector(`#ecanTable-${e.id} .ant-table-body`),ce=document.querySelector(`#ecanTable-${e.id} .ant-table-tbody`),ue=document.querySelector(`#ecanTable-${e.id} thead.ant-table-thead`),se=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`);let oe=0;if(ue&&(te-=(ue==null?void 0:ue.clientHeight)||0),se&&e.isSummaryFixed&&(oe=(se==null?void 0:se.clientHeight)||0,te-=oe),e.paginationShow&&!e.isAutoScroll){let ve=0;ve=v(),ve&&(te-=ve)}(ce==null?void 0:ce.clientHeight)>te?g.value=te:g.value=0,vue.nextTick(()=>{if(oe){const ve=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`),ye=(ve==null?void 0:ve.clientHeight)||0;oe!==ye&&vue.unref(g)&&(g.value=te+oe-ye)}if(e.isAutoScroll&&i.value){m.value=(ne==null?void 0:ne.clientHeight)||0,w.value=(ue==null?void 0:ue.clientHeight)||0,o.value={height:((ce==null?void 0:ce.clientHeight)||0)+"px"};const ve=document.querySelector(`#ecanTable-${e.id} .ant-table-body > table`);if(ve){const ye=ve.cloneNode(!0);ve.style.visibility="hidden",setTimeout(()=>{ne.setAttribute("id","hiddenTableBody")},0);const xe=document.querySelectorAll(`#ecanTable-${e.id} .scroll-wrap`);if(xe!=null&&xe.length){for(const Be of xe)Be.append(ye.cloneNode(!0));const Se=document.querySelectorAll(`#ecanTable-${e.id} .scroll-wrap .ant-table-cell`);if(Se!=null&&Se.length)for(const Be of Se)b(Be);const Le=document.querySelector(`#ecanTable-${e.id} .vue3-marquee`);Le&&Le.addEventListener("scroll",Be=>{var je;document.querySelector(`#ecanTable-${e.id} .ant-table-header`).scrollLeft=((je=Be==null?void 0:Be.target)==null?void 0:je.scrollLeft)||0})}}}})},0)});function b(X){X.addEventListener("click",te=>{const ce=d(te.target).getAttribute("dix");if(ce){const ue=document.querySelector(`#ecanTable-${e.id} #hiddenTableBody td[dix="${ce}"]`);ue&&ue.click()}})}function d(X){return X.className.includes("ant-table-cell")?X:d(X.parentElement)}const p=vue.ref([]),y=vue.ref([]),E=vue.ref([]),_=vue.ref([]),P=vue.ref(0),A=vue.ref(1),R=vue.ref(e.paginationPageSize||10),M=vue.reactive([]),B=(X,te)=>{let ne="";return X.forEach((ce,ue)=>{const{value:se,rule:oe}=ce;ce.conditions?ne+=`(${B(ce.conditions,ce.join)})`:se&&oe&&(ne+=`value ${oe} '${se}'`),ne+=`${ue===X.length-1?"":te?" "+te+" ":""}`}),ne},O=(X=[])=>{var te,ne;if(Array.isArray(X)&&X.length>0){let ce=X.length;const ue=e.columnsFixedNum;if(e.dataType==="indicator"&&((te=vue.unref(l))!=null&&te.length)&&!vue.unref(l).find(se=>{var oe;return(oe=se.children)==null?void 0:oe.length})){const{graphicConfig:{indicators:se=[]}}=e;X.forEach((oe,ve)=>{if(vue.unref(l)[ve])for(const Se in vue.unref(l)[ve])["dataIndex","title"].includes(Se)||(oe[Se]=vue.unref(l)[ve][Se]);const ye=se.find(Se=>Se.label===oe.title),{showLabel:xe=""}=ye||{};xe&&(oe.title=xe)})}for(let se=ce-1;se>=0;se--)(ne=X[se])!=null&&ne.isHidden&&X.splice(se,1);ce=X.length;for(let se=0;se<ce;se++){const oe=X[se];if(se<ue?oe.fixed="left":oe.fixed=!1,e.isSortByFront&&oe.sorter){const Ue=oe.dataIndex;oe.sorter=(Ke,Je)=>Ke[Ue]-Je[Ue]}const{cellAlign:ve="center",cellColor:ye,dataIndex:xe,title:Se,tableFilter:Le,headerCellAlign:Be,headerCellColor:je,overflow:Qe,conditions:Ye}=oe;Le&&(M.push(xe),oe.filterOptionsInputValue="",oe.filterCheckboxGroupValue=[],oe.customFilterDropdown=!0,oe.onFilter=(Ue,Ke)=>Ke[xe].toString().toLowerCase().includes(Ue.toLowerCase())),Ye&&(oe.conditionCode=B(Ye)),oe.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:e.headerFontSize,fontWeight:e.headerFontWeight,textAlign:Be||"center",color:je||e.headerFontColor,borderBottomColor:e.borderColor,backgroundColor:e.headerBackgroundColor}}),oe.customCell=(Ue,Ke,Je)=>({style:{textAlign:ve,color:ye||e.cellFontColor,backgroundColor:e.cellBackgroundColor,borderBottomColor:e.borderColor},class:{highlight:vue.unref(ae)===Ke&&e.clickHighlight},dix:Je.dataIndex+"_"+Ke,onClick:Y("click",()=>{if(!e.linkPage&&!e.href)return;const et=e.id,tt=Q(et);Ue={dataIndex:xe,title:Se,...Ue},J(et,{...tt,type:e.type,RECORD:Ue}),setTimeout(()=>{handleJumpLink(e,{pageMode:vue.unref(n),getRecordValueByKeyName:Z})},0)})}),Qe==="ellipsis"?oe.ellipsis=!0:oe.ellipsis=!1,Array.isArray(oe.children)&&O(oe.children)}}},V=(X=[])=>{var ne;let te=lodashEs.cloneDeep(X);return(ne=vue.unref(_))!=null&&ne.length&&(te=lodashEs.cloneDeep(vue.unref(_))),e.isUseSeq&&te.unshift({title:e.seqName,dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&te.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),O(te),te};vue.watch(R,()=>{A.value=1,ge(!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],()=>{p.value=V(lodashEs.cloneDeep(e.columns))},{immediate:!0,deep:!0}),vue.watch(()=>[e.data,e.dataType],([X,te])=>{te==="static"&&(y.value=X)},{immediate:!0});const q=vue.ref({}),N=X=>{if(Array.isArray(X)){const te=X.length,ne=M,ce=ne.length,ue={};for(let oe=0;oe<te;oe++){const ve=X[oe];for(let ye=0;ye<ce;ye++){const xe=ne[ye];if(ue[xe])ue[xe].add(ve[xe]);else{const Se=new Set;Se.add(ve[xe]),ue[xe]=Se}}}const se={};for(const oe in ue)if(Object.prototype.hasOwnProperty.call(ue,oe)){const ve=ue[oe],ye=Array.from(ve);se[oe]=ye.map(xe=>({label:xe,value:xe}))}q.value=se}};vue.watch(()=>[e.isReverse,p.value,y.value],()=>{const X=vue.unref(p),te=vue.unref(y);if(N(te),e.isReverse){const{columns:ne,dataSource:ce}=T(lodashEs.cloneDeep(X),lodashEs.cloneDeep(te));E.value=ne,x.value=ce.map(ue=>({key:nanoid(6),...ue}))}else E.value=X,x.value=te.map(ne=>({key:nanoid(6),...ne}))},{immediate:!0});const T=(X,te)=>{const ne=X[0],ce=[{title:ne.title,dataIndex:"col0",key:"col0",align:"center"}];for(let se=0;se<te.length;se++){const oe=te[se],ve="col"+(se+1);ce.push({title:oe[ne.dataIndex],dataIndex:ve,key:ve,align:"center"})}const ue=[];for(let se=1;se<X.length;se++){const oe=X[se],ve={col0:oe.title};for(let ye=0;ye<te.length;ye++){const xe=te[ye];ve[`col${ye+1}`]=xe[oe.dataIndex]}ue.push(ve)}return{columns:ce,dataSource:ue}},I=vue.ref(""),S=X=>{var ce;const{rows:te=[],total:ne=0}=((ce=X==null?void 0:X.data)==null?void 0:ce.data)||{};if(P.value=ne,Array.isArray(te)&&(y.value=te),window.config.routerBaseURL.includes("1523545080925487106")){const{requestParams:ue=[]}=e,se=ue.find(oe=>oe.key==="dataSqlId");if((se==null?void 0:se.value)==="xt_jxzebg"){const oe=te.filter(ve=>!ve.绩效总额).map(ve=>ve.ORG_NAME);oe!=null&&oe.length&&vue.nextTick(()=>{antDesignVue.notification.warning({message:"提示",description:`当前时段${oe.join("、")}绩效数据为空`,duration:3})})}}i.value=!0},C=useRequestData(e,S),D=async(X=!0,te={})=>{try{X&&(s.value=!0),vue.unref(I)&&(te.orderCondition=vue.unref(I)),e.paginationShow&&(te={pageNum:vue.unref(A),pageSize:vue.unref(R)||"10",layer:"1",...te});const ne=await C(te);S(ne)}catch(ne){console.error(ne)}finally{s.value=!1}},k=({current:X},te,ne)=>{if(A.value=X,ne&&Object.keys(ne).length>0){const{field:ce,order:ue}=ne,oe={ascend:"asc",descend:"desc"}[ue];ce!=null&&oe!=null&&oe?I.value=ce+" "+oe:oe||(I.value="")}e.isSortByFront||ge(!1)},F=vue.computed(()=>{const X=e.simple,te=[e.paginationPosition],ne={};return e.isShowTotal&&(ne.showTotal=ce=>`共 ${ce} 条数据`),e.paginationShow&&{simple:X,position:te,total:vue.unref(P),current:vue.unref(A),pageSize:vue.unref(R)||"10",showSizeChanger:!1,size:"large",...ne}}),$=X=>+X==1?"是":+X==0?"否":X,G=(X,te)=>{const{format:ne,retentiondigit:ce,customFormatter:ue,defaultVal:se}=te;let oe="";if(ne==null||ne==="")oe=X;else{const ve={money:formatMoney,percentage:formatPercentage,contrast:formatPercentage,boolean:$,decimals:formatDecimals,custom:formatCustom};ve[ne]||(oe=""),ne==="decimals"?oe=ve[ne](X,ce)||"":ne==="custom"?oe=ve[ne](X,ue)||"":oe=ve[ne](X)||""}return oe||(oe=se),oe},j=X=>X==="contrast"?"upDown":"",U=X=>{const{text:te,format:ne,declineColor:ce="#39cf93",increaseColor:ue="#ff512e"}=X;if(ne==="contrast"){const se={fontSize:e.fontSize},oe=parseFloat(te+"");return oe>=0?se.color=ue:oe<0&&(se.color=ce),se}else return{}},H=vue.computed(()=>{const{fontSize:X}=e;return{width:X,height:X,textIndent:`-${parseFloat(X)*2}px`,overflow:"hidden"}}),L=X=>{const{text:te,declineColor:ne="#39cf93",increaseColor:ce="#ff512e"}=X,{fontSize:ue}=e,se=parseFloat(te+""),oe={width:ue,verticalAlign:"unset"};return se>=0?oe.filter=`drop-shadow(${ce||"#ff512e"} ${ue} -1px)`:se<0&&(oe.filter=`drop-shadow(${ne||"#39cf93"} ${ue} -1px)`),oe},K=X=>{const te=parseFloat(X+"");if(te>=0)return goUp;if(te<0)return goDown},Y=useEmitEvent(e),{getGlobalModel:Q,setGlobalModel:J,getRecordValueByKeyName:Z}=vue.inject(GLOBAL_MODEL,{getGlobalModel:X=>{},setGlobalModel:(X,te)=>{},getRecordValueByKeyName:X=>{}});J(e.id,{type:e.type,RECORD:""});const W=(X=[],te=[])=>{let ne=X.map(ce=>({title:ce,dataIndex:ce,key:ce}));vue.unref(l).find(ce=>{var ue;return(ue=ce.children)==null?void 0:ue.length})&&(ne=lodashEs.cloneDeep(vue.unref(l))),_.value=lodashEs.cloneDeep(ne),p.value=V(ne),y.value=te,i.value=!0},ee=X=>{var te,ne,ce,ue;W((ne=(te=X==null?void 0:X.data)==null?void 0:te.data)==null?void 0:ne.columns,(ue=(ce=X==null?void 0:X.data)==null?void 0:ce.data)==null?void 0:ue.rows)},re=useIndicatorData(e,ee),ie=async(X=!0)=>{try{X&&(s.value=!0);const te=vue.unref(I).split(" "),ne={};e.isSortByFront||(ne.sort={order:te[1],field:te[0]});const ce=await re(ne);ee(ce)}catch(te){console.error(te)}finally{s.value=!1}},ae=vue.ref(-1),le=(X,te)=>({onClick:Y("rowClick",()=>{const ne=e.id,ce=Q(ne);J(ne,{...ce,type:e.type,RECORD:X}),ae.value=te})}),{loadedData:fe}=vue.inject(LOADED_DATA,{loadedData:{}}),he=vue.ref(!1);vue.watch(fe,X=>{if(e.dataType==="indicator"){const te=getFixedValueDatas(e.graphicConfig);te!=null&&te.length&&(!vue.unref(he)&&canRequestIndicator(e.graphicConfig,X)?(he.value=!0,ge()):canRequestIndicator(e.graphicConfig,X)||(he.value=!1))}},{deep:!0});const ge=(X=!0)=>{switch(e.dataType){case"request":D(X);break;case"indicator":canRequestIndicator(e.graphicConfig,vue.unref(fe))&&ie(X);break}},be=()=>{const X=e.id,te=Q(X);J(X,{...te,type:e.type,RECORD:""})},Ee=vue.computed(()=>{const X=vue.unref(E);let te=0;const{subTotalColumn:ne,subTotalName:ce}=e;ne&&(te=X.findIndex(ye=>ye.dataIndex===ne),te<0&&(te=0));const ue=[];let se=0;for(let ye=0;ye<X.length;ye++){const xe=X[ye],{isCalcTotal:Se}=xe;ye===te?ue.push({...xe,total:ce}):Se?(ue.push({...xe,index:ye,total:0}),se++):ue.push({...xe})}if(se===0)return[];const oe=vue.unref(x),ve=ke(ue);for(let ye=0;ye<ve.length;ye++){const xe=ve[ye];let Se=0;const{isCalcTotal:Le,dataIndex:Be}=xe;if(Le===!0){for(let je=0;je<oe.length;je++){const Ye=+oe[je][Be];isNaN(Ye)||(Se=new big_js.Big(Se).add(Ye).toNumber())}xe.total=Se}}return ve});function ke(X){var ne;const te=[];for(const ce of X)(ne=ce.children)!=null&&ne.length?te.push(...ke(ce.children)):te.push(ce);return te}const{setRequest:Ce}=vue.inject(REQUEST_MODEL,{setRequest:X=>{}});typeof Ce=="function"&&Ce({id:e.id,requestFn:ge,sortNum:e.requestSort}),r({refreshData:ge});const Te=(X="",te)=>useVariablesInText(X,te),de=X=>{if(X!=="event")return{self:"_self",blank:"_blank"}[X]},me=(X,te="")=>{X==="event"&&window.parent.postMessage({type:"openPage",url:te},"*")},pe=(X,te)=>{X(te.filterCheckboxGroupValue)},Ae=(X,te)=>{X({confirm:!0}),te.filterOptionsInputValue="",te.filterCheckboxGroupValue=[]},_e=()=>{},Ve=X=>{const te=X.dataIndex;if(typeof te=="string"){let ne=vue.unref(q)[te];const ce=vue.unref(X.filterOptionsInputValue).trim();return Array.isArray(ne)?(ne=ne.filter(ue=>typeof ue.label=="string"?ue.label.toLowerCase().includes(ce.toLowerCase()):!0),ne):[]}return[]},De=async()=>{var xe,Se;const X="EXPORT_KEY";antDesignVue.message.loading({key:X,content:"正在导出...",duration:0});let te=[];if(e.dataType==="static")te=e.data;else if(e.dataType==="request"){const Le={layer:"1"};vue.unref(I)&&(Le.orderCondition=vue.unref(I));const Be=await C(Le);te=((Se=(xe=Be==null?void 0:Be.data)==null?void 0:xe.data)==null?void 0:Se.rows)||{}}const ne=vue.unref(E),ce=[],ue=[];ne==null||ne.forEach(Le=>{ce.push(Le.dataIndex),ue.push(Le.title)});const se=te.map(Le=>lodashEs.pick(Le,ce)),oe=xlsx.utils.book_new(),ve=xlsx.utils.aoa_to_sheet([ue]),ye=xlsx.utils.sheet_add_json(ve,se,{skipHeader:!0,origin:"A2"});xlsx.utils.book_append_sheet(oe,ye,"sheet"),xlsx.writeFile(oe,"表格数据.xlsx"),antDesignVue.message.success({key:X,content:"导出成功"})},ze=(X,te=2)=>{const ne=+X*100;return isNaN(ne)||ne<=0?0:ne>=100?100:ne.toFixed(te)};useOnEvent(e,{resetRecord:be,refreshData:ge,exportTableData:De});const $e=(X,te)=>{let ne=null;return e.stripedShow&&(ne=te%2===1?"table-striped":null),ne},Me=vue.computed(()=>{let X=0;const{height:te,isPageBottom:ne}=e;return ne&&te&&(X=parseFloat(te)-v()),X?X+"px":"100%"}),Ge=vue.computed(()=>{let X="#071655";return e.headerBackgroundColor&&(X="transparent"),X}),Fe=vue.computed(()=>{let X="#071655";return(e.cellBackgroundColor||e.stripedShow&&e.stripedColor)&&(X="transparent"),X}),Pe=vue.computed(()=>parseFloat(e.fontSize)+16),Re=vue.computed(()=>{let X="";const{paginationColor:te,paginationBgColor:ne,activePaginationColor:ce,activePaginationBgColor:ue,hoverBackgroundColor:se}=e;return te&&(X+="p-color "),ne&&(X+="p-bg-color "),ce&&(X+="active-p-color "),ue&&(X+="active-p-bg-color "),se&&(X+="hover-bg-color "),X}),Ie=(X,te)=>{const{conditionCode:ne}=X;return runCode(ne,{value:te})};return{x:f,y:g,style:h,customRow:le,pagination:F,formatFn:G,contrastClass:j,tableChange:k,summaryList:Ee,loading:s,onTouchHrefEvent:me,handleHref:Te,handleHrefTarget:de,useRowIndex:ae,tableColumns:E,tableDataSource:x,useFilterOptions:Ve,useSetSelectedKeys:pe,onResetFilter:Ae,onSearchFilterOptions:_e,exportTableData:De,handleProgressText:ze,pageSizeVisible:u,pageSize:R,tableRef:c,rowClassName:$e,tableHeight:Me,tableHeaderBgColor:Ge,tableBodyBgColor:Fe,getChgStyle:U,chgBoxStyle:H,getChgBoxImgStyle:L,getChgBoxImgSrc:K,seqIcon1,seqIcon2,seqIcon3,iconSize:Pe,containerClass:Re,getCellStyle:(X,te)=>{const{overflow:ne,conditionCode:ce,attribute:ue}=X,se={};return ne==="ellipsis"&&(se.overflow="hidden",se.textOverflow="ellipsis"),ce&&(ue!=null&&ue.color)&&Ie(X,te)&&(se.color=ue.color),ue!=null&&ue.icon&&(X==null?void 0:X.cellAlign)==="right"&&(se.display="flex",se.alignItems="center",se.justifyContent="flex-end"),se},isMatchCondition:Ie,getAttrImgSrc:X=>{const{attribute:te}=X;let ne="";return te!=null&&te.icon&&(ne=useImagePath(te.icon)),ne},getAttrImgStyle:X=>{let te={};return(X==null?void 0:X.cellAlign)==="right"?te={marginRight:"5px"}:te={position:"absolute",marginLeft:"5px"},{width:"auto",height:parseFloat(e.fontSize)+6+"px",...te}},getCellText:(X,te)=>X||X===0?X:te==null?void 0:te.defaultVal,autoScrollHeight:m,autoScrollTop:w,isScroll:a,scrollWrapStyle:o}}}),__injectCSSVars__=()=>{vue.useCssVars(e=>({"121bdf34":e.stripedColor,"3cf6dac6":e.tableHeaderBgColor,"360d8ce8":e.tableBodyBgColor,"0975d0ea":e.paginationBgColor,"0f49a5a2":e.paginationColor,"92055bf8":e.activePaginationBgColor,"74242cc9":e.activePaginationColor,"90caa71a":e.hoverBackgroundColor}))},__setup__=__default__.setup;__default__.setup=__setup__?(e,r)=>(__injectCSSVars__(),__setup__(e,r)):__injectCSSVars__;const Table_vue_vue_type_style_index_0_scoped_a353fd0f_lang="",Table_vue_vue_type_style_index_1_lang="",_withScopeId=e=>(vue.pushScopeId("data-v-a353fd0f"),e=e(),vue.popScopeId(),e),_hoisted_1$1=["id"],_hoisted_2={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$2(e,r,n,i,a,o){const s=vue.resolveComponent("a-button"),l=vue.resolveComponent("down-outlined"),c=vue.resolveComponent("right-outlined"),u=vue.resolveComponent("a-input"),h=vue.resolveComponent("a-checkbox-group"),x=vue.resolveComponent("a-table-summary-cell"),f=vue.resolveComponent("a-table-summary-row"),g=vue.resolveComponent("a-table-summary"),v=vue.resolveComponent("a-table"),m=vue.resolveComponent("marquee-scroll"),w=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(w,{loading:e.loading},{default:vue.withCtx(()=>{var b;return[e.isUseExport?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2,[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,customRow:e.customRow,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 p;return[(p=d.record.children)!=null&&p.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:p,setSelectedKeys:y,confirm:E,clearFilters:_})=>[vue.createElementVNode("div",{class:"ecan-table-filter",style:vue.normalizeStyle({height:e.filterDropdownHeight})},[vue.createVNode(u,{value:d.filterOptionsInputValue,"onUpdate:value":P=>d.filterOptionsInputValue=P,placeholder:"请输入关键字",class:"filter-input",onChange:e.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),vue.createVNode(h,{value:d.filterCheckboxGroupValue,"onUpdate:value":P=>d.filterCheckboxGroupValue=P,class:"filter-checkbox",options:e.useFilterOptions(d),onChange:P=>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:()=>E()},{default:vue.withCtx(()=>[_hoisted_6]),_:2},1032,["onClick"]),vue.createVNode(s,{size:"small",style:{width:"90px"},onClick:vue.withModifiers(P=>e.onResetFilter(_,d),["stop"])},{default:vue.withCtx(()=>[_hoisted_7]),_:2},1032,["onClick"])])],4)]),bodyCell:vue.withCtx(({column:d,index:p,text:y,record:E})=>{var _,P,A,R,M,B;return[d.dataIndex==="SEQ"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[e.seqIcon?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[p===0?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:"seq-icon",src:e.seqIcon1,width:e.iconSize,height:e.iconSize},null,8,_hoisted_8)):p===1?(vue.openBlock(),vue.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon2,width:e.iconSize,height:e.iconSize},null,8,_hoisted_9)):p>=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(p+1),5)],64)):(vue.openBlock(),vue.createElementBlock("span",_hoisted_11,vue.toDisplayString(p+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,(O,V)=>(vue.openBlock(),vue.createElementBlock("div",{class:"action",key:V},[vue.createElementVNode("a",{href:e.handleHref(O.href,E),target:e.handleHrefTarget(O.target),style:vue.normalizeStyle({color:O.color,fontSize:e.fontSize,fontWeight:e.fontWeight}),onClick:q=>e.onTouchHrefEvent(O.target,e.handleHref(O.href,E))},vue.toDisplayString(O.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.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:((P=d==null?void 0:d.customFormatter)==null?void 0:P.split("{value}")[0])||""},vue.toDisplayString(((A=d==null?void 0:d.customFormatter)==null?void 0:A.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:((R=d==null?void 0:d.customFormatter)==null?void 0:R.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(f,null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.summaryList,(d,p)=>(vue.openBlock(),vue.createBlock(x,{key:p,index:p,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","customRow","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":r[0]||(r[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:"auto-scroll-content ant-table ant-table-wrapper table",style:vue.normalizeStyle({width:"100%",position:"absolute",left:"0",height:e.autoScrollHeight+"px",top:e.autoScrollTop+"px",overflow:"auto"})},[vue.createVNode(m,{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"])],4)):vue.createCommentVNode("",!0)]}),_:1},8,["loading"])],14,_hoisted_1$1)}const Table=_export_sfc$1(__default__,[["render",_sfc_render$2],["__scopeId","data-v-a353fd0f"]]),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:[]},mapComponentProps=transformToComponentProps(mapProps),mapEvents=["click"];core$1.use([renderers.CanvasRenderer,charts.MapChart,charts.ScatterChart,components$1.VisualMapComponent,components$1.TooltipComponent,components$1.GraphicComponent]);const _sfc_main$1=vue.defineComponent({name:"EcanMap",components:{Echarts},props:{...mapComponentProps},setup(e){const r=useRequestData({...e.tooltipRequestData,requestHeaders:{}}),n=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.computed(()=>e.geoBackgroundImage?{image:vue.unref(s),repeat:e.geoBackgroundImageRepeat}:e.geoItemStyleAreaColor),h=vue.computed(()=>{const S=e.symbolImage;return e.symbolImage?"image://"+useImagePath(S):"circle"}),x=S=>{let C=e.tooltipFormatter;const D=C.match(/\{(.+?)\}/g);if(D==null||D.length===0)return C;for(let k=0;k<D.length;k++){const F=D[k];let $=F.slice(1,-1).trim();const G=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,j=$.match(G);for(let U=0;U<j.length;U++){const H=j[U],L=S[H];L!=null&&($=$.replace(H,L))}C=C.replace(F,$)}return C.split(`
128
- `)},f=vue.ref(!1),g=vue.ref("");let v=new AbortController;const m=(S,C)=>{const D=v.signal;f.value=!0,i.value=S,r({name:S,signal:D}).then(k=>{var F,$;if(k){const G=(($=(F=k==null?void 0:k.data)==null?void 0:F.data)==null?void 0:$.rows)||[];let j="";for(const U of G){const H=x(U)||[];if(H!=null&&H.length)for(const L of H)j+=`<div style="word-break: break-all;white-space: normal;">${L}</div>`}j=`<div style="max-width:200px;">${j}</div>`,a.value=j,C(vue.unref(g),j)}else D.aborted?a.value="Loading":a.value=S,C(vue.unref(g),a.value);f.value=!1})},w=vue.ref(),b=vue.computed(()=>e.dataType==="request"?w.value:e.data),d=vue.computed(()=>{const{mapAreaStyleConfig:S}=e,C=[];for(const D of S){let k="";D.value1&&(k+=`value ${D.rule1} ${D.value1}`),D.value2&&(k+=`${D.value1?"&&":""} value ${D.rule2} ${D.value2}`),k&&C.push({rule:k,color:D.color})}return C.reverse()}),p=vue.computed(()=>{var D;const S=[],{areaStyleKeyName:C}=e;if((D=vue.unref(b))!=null&&D.length)for(const k of vue.unref(b)){const F=k[C];if(F||F===0){const $=vue.unref(d).find(G=>runCode(G.rule,{value:F}));$&&S.push({name:k.name,itemStyle:{areaColor:$.color}})}}return S}),y=vue.computed(()=>{const S=e.geoCenter;let C;return typeof S=="string"&&S!==""&&(C=S.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:C,map:`map-${e.id}`,tooltip:{show:e.tooltipShow,trigger:"item",backgroundColor:e.tooltipBackgroundColor,borderColor:"transparent",textStyle:{color:e.tooltipTextStyleColor},formatter:(D,k,F)=>{g.value=k;const{name:$=""}=D,{requestUrl:G}=e.tooltipRequestData;if(!G){let j="",U=e.tooltipFormatter;U===""&&(U="{name}:{value}");const H=vue.unref(b).find(L=>L.name===$);return H?(j+=useVariablesInText(U,{textData:{name:$,...H}},{useNewline:!0,useSpace:!0}),j):$}if(vue.unref(f))vue.unref(i)!==$&&(v.abort(),v=new AbortController);else{if(vue.unref(i)===$)return vue.unref(a);m($,F)}return"Loading"}},label:{show:e.geoLabelShow,color:e.geoLabelColor,fontSize:e.geoLabelFontSize},itemStyle:{areaColor:vue.unref(u),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:p.value},series:[{type:"scatter",coordinateSystem:"geo",itemStyle:{color:e.itemStyleColor},symbol:vue.unref(h),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:b.value}]}}),E=vue.ref(!1),_=async()=>{var D;E.value=!1;const S=e.mapJson,C=`map-${e.id}`;if(S!=null&&S.path){const k=await request(((D=window==null?void 0:window.config)==null?void 0:D.uploadPath)+S.path);core$1.registerMap(C,(k==null?void 0:k.data)||{})}else core$1.registerMap(C,{});E.value=!0},P=async S=>{var k,F,$,G;const C=(F=(k=S==null?void 0:S.data)==null?void 0:k.data)==null?void 0:F.rows,D=`map-${e.id}`;if(C!=null&&C.path){const j=await request(C.path);core$1.registerMap(D,(j==null?void 0:j.data)||{})}else if(Array.isArray(C))if(w.value=C,($=C[0])!=null&&$.mapUrl){const j=await request((G=C[0])==null?void 0:G.mapUrl);core$1.registerMap(D,(j==null?void 0:j.data)||{})}else core$1.registerMap(D,{});else core$1.registerMap(D,{});vue.nextTick(()=>{E.value=!0})},A=useRequestData(e,P),R=async()=>{if(e.dataType==="request"){E.value=!1;try{const S=await A();P(S)}catch(S){console.error(S),E.value=!0}}},M=()=>{switch(e.dataType){case"static":_();break;case"request":R();break}},{getGlobalModel:B,setGlobalModel:O}=vue.inject(GLOBAL_MODEL,{getGlobalModel:S=>{},setGlobalModel:(S,C)=>{}}),q=useEmitEvent(e)("click",()=>{const S=B(e.id);O(e.id,{...S,RECORD:vue.unref(n)})});useOnEvent(e,{refreshData:M});const{setRequest:N}=vue.inject(REQUEST_MODEL,{setRequest:S=>{}});return typeof N=="function"&&N({id:e.id,requestFn:M,sortNum:e.requestSort}),{option:y,style:o,isLoadedData:E,geoBackgroundImageRef:s,myGeoBackgroundImage:l,customClick:()=>{vue.unref(n)&&q()},onMouseOver:(S={})=>{S.componentType==="geo"&&S.region?n.value=S.region:n.value=null}}}}),Map_vue_vue_type_style_index_0_scoped_61d923b0_lang="",_hoisted_1=["src"];function _sfc_render$1(e,r,n,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]])],4)}const Map$1=_export_sfc$1(_sfc_main$1,[["render",_sfc_render$1],["__scopeId","data-v-61d923b0"]]),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=vue.defineComponent({name:"EcanDataSelect",components:{ASelect:antDesignVue.Select,ASelectOption:antDesignVue.SelectOption},props:{...dataSelectComponentProps},setup(e,{expose:r}){const n=usePickComponentStyle(e),i=()=>document.getElementById("ProviderConfig")||document.body,a=vue.ref(e.data||[]),o=vue.ref(),s=vue.computed({get:()=>{var q;const{mode:V}=e;return(q=vue.unref(a))!=null&&q.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,q)=>{},getRecordValueByKeyName:V=>{}}),h=e.dataFieldNames;vue.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,a.value],()=>{const{mode:V,selectFirstOption:q,value:N}=e,T=u(N),I=h.value;if(V==="multiple"||V==="tags"||V==="combobox"){if(T)o.value=T.split(",");else if(q){const S=vue.unref(a)[0];o.value=S?[S[I]]:[]}}else if(T)o.value=T;else if(q){const S=vue.unref(a)[0];o.value=S?S[I]:""}},{immediate:!0});const x=(V,q)=>{const N=h.label,T=h.value;let I;const S=q[N],C=q[T];return S!=null?I=S:C!=null&&(I=C),(I==null?void 0:I.toLowerCase().indexOf(V==null?void 0:V.toLowerCase()))>=0},f=V=>{const{label:q,value:N,options:T}=e.dataFieldNames;if(T&&Array.isArray(V))if(V.some(I=>T in I)){const I={},S=[];V.forEach(C=>{I[C[T]]||(I[C[T]]=[]),I[C[T]].push({[q]:C[q],[N]:C[N]})});for(const C in I)S.push({[q]:C,[T]:I[C]});return S}else return V;else if(!T)return V},g=vue.ref(!1),v=V=>{var q,N;if(a.value=f(((N=(q=V==null?void 0:V.data)==null?void 0:q.data)==null?void 0:N.rows)||[]),e.selectFirstOption){let T=vue.unref(a)[0];if(h.options){const I=T[h.options];I&&I.length&&(T=I[0])}o.value=T[h.value]}},m=useRequestData(e,v),w=async()=>{if(e.dataType==="request"){g.value=!0;try{const V=await m();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 q=h.label,N=h.value;if(e.mode==="multiple")V=vue.unref(a).filter(T=>vue.unref(o).includes(T[N])).map(T=>T[q]);else{const T=vue.unref(a).find(I=>vue.unref(o)===I[N]);T&&(V=T[q])}}return V}),d=vue.ref([]),p=vue.computed(()=>{const V={};if(e.mode!=="multiple"){const q=vue.unref(d).find(N=>N.value===vue.unref(o));q&&(V.itemCodes=q.item_codes)}return V}),y=vue.computed(()=>{const{value:V,label:q}=h,N=vue.unref(a).find(T=>T[V]===vue.unref(s));return N?{label:N[q],value:N[V]}:{}});c(e.id,{type:e.type,value:b,...vue.unref(p),recordData:vue.unref(y)});const _=useEmitEvent(e)("selectChange",()=>{const V=e.id,q=l(V);c(V,{...q,...vue.unref(p),RECORD:b,recordData:vue.unref(y)})}),P=(V=[])=>{if(a.value=f(V),e.selectFirstOption){let q=vue.unref(a)[0];if(h.options){const N=q[h.options];N&&N.length&&(q=N[0])}o.value=q[h.value]}c(e.id,{type:e.type,value:b,...vue.unref(p),recordData:vue.unref(y)})},A=V=>{var I;const{data:q}=(V==null?void 0:V.data)||{},N=h.label,T=h.value;if(q){const{rows:S=[]}=((I=V==null?void 0:V.data)==null?void 0:I.data)||{};d.value=S;const C=S.map(F=>({[N]:F.label,[T]:F.value})),{id:D}=e,k=l(D);c(D,{...k,...vue.unref(p)}),P(C)}else P([])},R=useIndicatorData(e,A),M=async()=>{try{g.value=!0;const V=await R();A(V)}catch(V){console.error(V)}finally{g.value=!1}},B=()=>{switch(e.dataType){case"indicator":{M();break}case"request":w();break}};useOnEvent(e,{selectChange:_,refreshData:B});const{setRequest:O}=vue.inject(REQUEST_MODEL,{setRequest:({id:V,sortNum:q,requestFn:N})=>{}});return typeof O=="function"&&O({id:e.id,requestFn:B,sortNum:e.requestSort}),r({refreshData:B}),{style:n,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(e,r,n,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":r[0]||(r[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,[["render",_sfc_render],["__scopeId","data-v-585d4f8a"]]),EcanDataSelect=withInstall$1(DataSelect),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,EcanProportion,EcanProviderConfig,EcanRadar,EcanRadio,EcanRangePicker,EcanScatter,EcanScrollText,EcanSelect,EcanTable,EcanTabs,EcanTemplate,EcanText,EcanTimeDisplay,EcanTreeSelect,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,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},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,r){const n=r.split(".");let i=e;return n.forEach(a=>{var o;i=isObject$1(i)&&(o=i[a])!=null?o:""}),i}function pick(e,r,n){return r.reduce((i,a)=>((!n||e[a]!==void 0)&&(i[a]=e[a]),i),{})}const isSameValue=(e,r)=>JSON.stringify(e)===JSON.stringify(r),flat=e=>e.reduce((r,n)=>r.concat(n),[]),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,r)=>({top:0,left:0,right:e,bottom:r,width:e,height:r}),useRect=e=>{const r=vue.unref(e);if(isWindow(r)){const n=r.innerWidth,i=r.innerHeight;return makeDOMRect(n,i)}return r!=null&&r.getBoundingClientRect?r.getBoundingClientRect():makeDOMRect(0,0)};function useParent(e){const r=vue.inject(e,null);if(r){const n=vue.getCurrentInstance(),{link:i,unlink:a,internalChildren:o}=r;i(n),vue.onUnmounted(()=>a(n));const s=vue.computed(()=>o.indexOf(n));return{parent:r,index:s}}return{parent:null,index:vue.ref(-1)}}function flattenVNodes(e){const r=[],n=i=>{Array.isArray(i)&&i.forEach(a=>{var o;vue.isVNode(a)&&(r.push(a),(o=a.component)!=null&&o.subTree&&(r.push(a.component.subTree),n(a.component.subTree.children)),a.children&&n(a.children))})};return n(e),r}var findVNodeIndex=(e,r)=>{const n=e.indexOf(r);return n===-1?e.findIndex(i=>r.key!==void 0&&r.key!==null&&i.type===r.type&&i.key===r.key):n};function sortChildren(e,r,n){const i=flattenVNodes(e.subTree.children);n.sort((o,s)=>findVNodeIndex(i,o.vnode)-findVNodeIndex(i,s.vnode));const a=n.map(o=>o.proxy);r.sort((o,s)=>{const l=a.indexOf(o),c=a.indexOf(s);return l-c})}function useChildren(e){const r=vue.reactive([]),n=vue.reactive([]),i=vue.getCurrentInstance();return{children:r,linkChildren:o=>{const s=c=>{c.proxy&&(n.push(c),r.push(c.proxy),sortChildren(i,r,n))},l=c=>{const u=n.indexOf(c);r.splice(u,1),n.splice(u,1)};vue.provide(e,Object.assign({link:s,unlink:l,children:r,internalChildren:n},o))}}}function onMountedOrActivated(e){let r;vue.onMounted(()=>{e(),vue.nextTick(()=>{r=!0})}),vue.onActivated(()=>{r&&e()})}function useEventListener(e,r,n={}){if(!inBrowser)return;const{target:i=window,passive:a=!1,capture:o=!1}=n;let s=!1,l;const c=x=>{if(s)return;const f=vue.unref(x);f&&!l&&(f.addEventListener(e,r,{capture:o,passive:a}),l=!0)},u=x=>{if(s)return;const f=vue.unref(x);f&&l&&(f.removeEventListener(e,r,o),l=!1)};vue.onUnmounted(()=>u(i)),vue.onDeactivated(()=>u(i)),onMountedOrActivated(()=>c(i));let h;return vue.isRef(i)&&(h=vue.watch(i,(x,f)=>{u(f),c(x)})),()=>{h==null||h(),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,r=defaultRoot){let n=e;for(;n&&n!==r&&isElement(n);){const{overflowY:i}=window.getComputedStyle(n);if(overflowScrollReg.test(i))return n;n=n.parentNode}return r}function useScrollParent(e,r=defaultRoot){const n=vue.ref();return vue.onMounted(()=>{e.value&&(n.value=getScrollParent(e.value,r))}),n}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 r="scrollTop"in e?e.scrollTop:e.pageYOffset;return Math.max(r,0)}function setScrollTop(e,r){"scrollTop"in e?e.scrollTop=r:e.scrollTo(e.scrollX,r)}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,r){if(e===window)return 0;const n=r?getScrollTop(r):getRootScrollTop();return useRect(e).top+n}isIOS();const stopPropagation=e=>e.stopPropagation();function preventDefault(e,r){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),r&&stopPropagation(e)}function isHidden(e){const r=vue.unref(e);if(!r)return!1;const n=window.getComputedStyle(r),i=n.display==="none",a=r.offsetParent===null&&n.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 r=addUnit(e);return{width:r,height:r}}}function getZIndexStyle(e){const r={};return e!==void 0&&(r.zIndex=+e),r}let rootFontSize;function getRootFontSize(){if(!rootFontSize){const e=document.documentElement,r=e.style.fontSize||window.getComputedStyle(e).fontSize;rootFontSize=parseFloat(r)}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,(r,n)=>n.toUpperCase()),kebabCase=e=>e.replace(/([A-Z])/g,"-$1").toLowerCase().replace(/^-/,"");function padZero(e,r=2){let n=e+"";for(;n.length<r;)n="0"+n;return n}const clamp=(e,r,n)=>Math.min(Math.max(e,r),n),{hasOwnProperty}=Object.prototype;function assignKey(e,r,n){const i=r[n];isDef(i)&&(!hasOwnProperty.call(e,n)||!isObject$1(i)?e[n]=i:e[n]=deepAssign(Object(e[n]),i))}function deepAssign(e,r){return Object.keys(r).forEach(n=>{assignKey(e,r,n)}),e}var stdin_default$h={name:"姓名",tel:"电话",save:"保存",clear:"清空",cancel:"取消",confirm:"确认",delete:"删除",loading:"加载中...",noCoupon:"暂无优惠券",nameEmpty:"请填写姓名",addContact:"添加联系人",telInvalid:"请填写正确的电话",vanCalendar:{end:"结束",start:"开始",title:"日期选择",weekdays:["日","一","二","三","四","五","六"],monthTitle:(e,r)=>`${e}年${r}月`,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,r){lang.value=e,this.add({[e]:r})},add(e={}){deepAssign(messages,e)}};var stdin_default$g=Locale;function createTranslate(e){const r=camelize(e)+".";return(n,...i)=>{const a=stdin_default$g.messages(),o=get(a,r+n)||get(a,n);return isFunction(o)?o(...i):o}}function genBem(e,r){return r?typeof r=="string"?` ${e}--${r}`:Array.isArray(r)?r.reduce((n,i)=>n+genBem(e,i),""):Object.keys(r).reduce((n,i)=>n+(r[i]?genBem(e,i):""),""):""}function createBEM(e){return(r,n)=>(r&&typeof r!="string"&&(n=r,r=""),r=r?`${e}__${r}`:e,`${r}${genBem(r,n)}`)}function createNamespace(e){const r=`van-${e}`;return[r,createBEM(r),createTranslate(r)]}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:r=[],done:n,canceled:i,error:a}){if(e){const o=e.apply(null,r);isPromise(o)?o.then(s=>{s?n():i&&i()}).catch(a||noop):o?n():i&&i()}else n()}function withInstall(e){return e.install=r=>{const{name:n}=e;n&&(r.component(n,e),r.component(camelize(`-${n}`),e))},e}const POPUP_TOGGLE_KEY=Symbol();function onPopupReopen(e){const r=vue.inject(POPUP_TOGGLE_KEY,null);r&&vue.watch(r,n=>{n&&e()})}function useExpose(e){const r=vue.getCurrentInstance();r&&extend(r.proxy,e)}const routeProps={to:[String,Object],url:String,replace:Boolean};function route({to:e,url:r,replace:n,$router:i}){e&&i?i[n?"replace":"push"](e):r&&(n?location.replace(r):location.href=r)}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:r}){const n=()=>{if(r.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&&n())return r.content?r.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:h}=e,[x,f]=h.split("-");r.default?(typeof u=="number"?l[x]=addUnit(x==="top"?u:-u):l[x]=x==="top"?addUnit(u):a(u),typeof c=="number"?l[f]=addUnit(f==="left"?c:-c):l[f]=f==="left"?addUnit(c):a(c)):(l.marginTop=addUnit(u),l.marginLeft=addUnit(c))}return l}),s=()=>{if(n()||e.dot)return vue.createVNode("div",{class:bem$f([e.position,{dot:e.dot,fixed:!!r.default}]),style:o.value},[i()])};return()=>{if(r.default){const{tag:l}=e;return vue.createVNode(l,{class:bem$f("wrapper")},{default:()=>[r.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 r={};return Object.keys(e).forEach(n=>{const i=insertDash(kebabCase(n));r[`--van-${i}`]=e[n]}),r}function syncThemeVarsOnRoot(e={},r={}){Object.keys(e).forEach(n=>{e[n]!==r[n]&&document.documentElement.style.setProperty(n,e[n])}),Object.keys(r).forEach(n=>{e[n]||document.documentElement.style.removeProperty(n)})}vue.defineComponent({name:name$g,props:configProviderProps,setup(e,{slots:r}){const n=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(n,(o,s)=>{e.themeVarsScope==="global"&&syncThemeVarsOnRoot(o,s)}),vue.watch(()=>e.themeVarsScope,(o,s)=>{s==="global"&&syncThemeVarsOnRoot({},n.value),o==="global"&&syncThemeVarsOnRoot(n.value,{})}),e.themeVarsScope==="global"&&syncThemeVarsOnRoot(n.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"?n.value:void 0},{default:()=>{var i;return[(i=r.default)==null?void 0:i.call(r)]}})}});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:r}){const n=vue.inject(CONFIG_PROVIDER_KEY,null),i=vue.computed(()=>e.classPrefix||(n==null?void 0:n.iconPrefix)||bem$d());return()=>{const{tag:a,dot:o,name:s,size:l,badge:c,color:u}=e,h=isImage(s);return vue.createVNode(Badge,vue.mergeProps({dot:o,tag:a,class:[i.value,h?"":`${i.value}-${s}`],style:{color:u,fontSize:addUnit(l)},content:c},e.badgeProps),{default:()=>{var x;return[(x=r.default)==null?void 0:x.call(r),h&&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,r)=>vue.createVNode("i",{class:bem$c("line",String(r+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:r}){const n=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:n.value},[r.icon?r.icon():o])},a=()=>{var o;if(r.default)return vue.createVNode("span",{class:bem$c("text"),style:{fontSize:addUnit(e.textSize),color:(o=e.textColor)!=null?o:e.color}},[r.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,r){return e>r?"horizontal":r>e?"vertical":""}function useTouch(){const e=vue.ref(0),r=vue.ref(0),n=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",h=()=>{n.value=0,i.value=0,a.value=0,o.value=0,s.value="",l.value=!0};return{move:g=>{const v=g.touches[0];n.value=(v.clientX<0?0:v.clientX)-e.value,i.value=v.clientY-r.value,a.value=Math.abs(n.value),o.value=Math.abs(i.value);const m=10;(!s.value||a.value<m&&o.value<m)&&(s.value=getDirection(a.value,o.value)),l.value&&(a.value>TAP_OFFSET||o.value>TAP_OFFSET)&&(l.value=!1)},start:g=>{h(),e.value=g.touches[0].clientX,r.value=g.touches[0].clientY},reset:h,startX:e,startY:r,deltaX:n,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,r){const n=useTouch(),i="01",a="10",o=h=>{n.move(h);const x=n.deltaY.value>0?a:i,f=getScrollParent(h.target,e.value),{scrollHeight:g,offsetHeight:v,scrollTop:m}=f;let w="11";m===0?w=v>=g?"00":"01":m+v>=g&&(w="10"),w!=="11"&&n.isVertical()&&!(parseInt(w,2)&parseInt(x,2))&&preventDefault(h,!0)},s=()=>{document.addEventListener("touchstart",n.start),document.addEventListener("touchmove",o,{passive:!1}),totalLockCount||document.body.classList.add(BODY_LOCK_CLASS),totalLockCount++},l=()=>{totalLockCount&&(document.removeEventListener("touchstart",n.start),document.removeEventListener("touchmove",o),totalLockCount--,totalLockCount||document.body.classList.remove(BODY_LOCK_CLASS))},c=()=>r()&&s(),u=()=>r()&&l();onMountedOrActivated(c),vue.onDeactivated(u),vue.onBeforeUnmount(u),vue.watch(r,h=>{h?s():l()})}function useLazyRender(e){const r=vue.ref(!1);return vue.watch(e,n=>{n&&(r.value=n)},{immediate:!0}),n=>()=>r.value?n():null}const useScopeId=()=>{var e;const{scopeId:r}=((e=vue.getCurrentInstance())==null?void 0:e.vnode)||{};return r?{[r]:""}: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:r}){const n=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:n,style:l,class:[bem$b(),e.className]},[(s=r.default)==null?void 0:s.call(r)]),[[vue.vShow,e.show]])});return useEventListener("touchmove",a,{target:n}),()=>{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:r,attrs:n,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 P=e.position==="center"?"animationDuration":"transitionDuration";_[P]=`${e.duration}s`}return _}),h=()=>{a||(a=!0,s.value=e.zIndex!==void 0?+e.zIndex:useGlobalZIndex(),r("open"))},x=()=>{a&&callInterceptor(e.beforeClose,{done(){a=!1,r("close"),r("update:show",!1)}})},f=_=>{r("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:f}),{default:i["overlay-content"]})},v=_=>{r("clickCloseIcon",_),x()},m=()=>{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 w;const b=()=>{w&&clearTimeout(w),w=setTimeout(()=>{r("opened")})},d=()=>r("closed"),p=_=>r("keydown",_),y=c(()=>{var _;const{round:P,position:A,safeAreaInsetTop:R,safeAreaInsetBottom:M}=e;return vue.withDirectives(vue.createVNode("div",vue.mergeProps({ref:l,style:u.value,role:"dialog",tabindex:0,class:[bem$a({round:P,[A]:A}),{"van-safe-area-top":R,"van-safe-area-bottom":M}],onKeydown:p},n,useScopeId()),[(_=i.default)==null?void 0:_.call(i),m()]),[[vue.vShow,e.show]])}),E=()=>{const{position:_,transition:P,transitionAppear:A}=e,R=_==="center"?"van-fade":`van-popup-slide-${_}`;return vue.createVNode(vue.Transition,{name:P||R,appear:A,onAfterEnter:b,onAfterLeave:d},{default:y})};return vue.watch(()=>e.show,_=>{_&&!a&&(h(),n.tabindex===0&&vue.nextTick(()=>{var P;(P=l.value)==null||P.focus()})),!_&&a&&(a=!1,r("close"))}),useExpose({popupRef:l}),useLockScroll(l,()=>e.show&&e.lockScroll),useEventListener("popstate",()=>{e.closeOnPopstate&&(x(),o=!1)}),vue.onMounted(()=>{e.show&&h()}),vue.onActivated(()=>{o&&(r("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(),E()]}):vue.createVNode(vue.Fragment,null,[g(),E()])}});const Popup=withInstall(stdin_default$b),[name$b,bem$9,t]=createNamespace("picker"),getFirstEnabledOption=e=>e.find(r=>!r.disabled)||e[0];function getColumnsType(e,r){const n=e[0];if(n){if(Array.isArray(n))return"multiple";if(r.children in n)return"cascade"}return"default"}function findIndexOfEnabledOption(e,r){r=clamp(r,0,e.length);for(let n=r;n<e.length;n++)if(!e[n].disabled)return n;for(let n=r-1;n>=0;n--)if(!e[n].disabled)return n;return 0}const isOptionExist=(e,r,n)=>r!==void 0&&!!e.find(i=>i[n.value]===r);function findOptionByValue(e,r,n){const i=e.findIndex(o=>o[n.value]===r),a=findIndexOfEnabledOption(e,i);return e[a]}function formatCascadeColumns(e,r,n){const i=[];let a={[r.children]:e},o=0;for(;a&&a[r.children];){const s=a[r.children],l=n.value[o];if(a=isDef(l)?findOptionByValue(s,l,r):void 0,!a&&s.length){const c=getFirstEnabledOption(s)[r.value];a=findOptionByValue(s,c,r)}o++,i.push(s)}return i}function getElementTranslateY(e){const{transform:r}=window.getComputedStyle(e),n=r.slice(7,r.length-1).split(", ")[5];return Number(n)}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:r,slots:n}){let i,a,o,s,l;const c=vue.ref(),u=vue.ref(),h=vue.ref(0),x=vue.ref(0),f=useTouch(),g=()=>e.options.length,v=()=>e.optionHeight*(+e.visibleOptionNum-1)/2,m=M=>{let B=findIndexOfEnabledOption(e.options,M);const O=-B*e.optionHeight,V=()=>{B>g()-1&&(B=findIndexOfEnabledOption(e.options,M));const q=e.options[B][e.fields.value];q!==e.value&&r("change",q)};i&&O!==h.value?l=V:V(),h.value=O},w=()=>e.readonly||!e.options.length,b=M=>{i||w()||(l=null,x.value=DEFAULT_DURATION,m(M),r("clickOption",e.options[M]))},d=M=>clamp(Math.round(-M/e.optionHeight),0,g()-1),p=vue.computed(()=>d(h.value)),y=(M,B)=>{const O=Math.abs(M/B);M=h.value+O/.003*(M<0?-1:1);const V=d(M);x.value=+e.swipeDuration,m(V)},E=()=>{i=!1,x.value=0,l&&(l(),l=null)},_=M=>{if(!w()){if(f.start(M),i){const B=getElementTranslateY(u.value);h.value=Math.min(0,B-v())}x.value=0,a=h.value,o=Date.now(),s=a,l=null}},P=M=>{if(w())return;f.move(M),f.isVertical()&&(i=!0,preventDefault(M,!0));const B=clamp(a+f.deltaY.value,-(g()*e.optionHeight),e.optionHeight),O=d(B);O!==p.value&&r("scrollInto",e.options[O]),h.value=B;const V=Date.now();V-o>MOMENTUM_TIME&&(o=V,s=B)},A=()=>{if(w())return;const M=h.value-s,B=Date.now()-o;if(B<MOMENTUM_TIME&&Math.abs(M)>MOMENTUM_DISTANCE){y(M,B);return}const V=d(h.value);x.value=DEFAULT_DURATION,m(V),setTimeout(()=>{i=!1},0)},R=()=>{const M={height:`${e.optionHeight}px`};return e.options.map((B,O)=>{const V=B[e.fields.text],{disabled:q}=B,N=B[e.fields.value],T={role:"button",style:M,tabindex:q?-1:0,class:[bem$8("item",{disabled:q,selected:N===e.value}),B.className],onClick:()=>b(O)},I={class:"van-ellipsis",[e.allowHtml?"innerHTML":"textContent"]:V};return vue.createVNode("li",T,[n.option?n.option(B,O):vue.createVNode("div",I,null)])})};return useParent(PICKER_KEY),useExpose({stopMomentum:E}),vue.watchEffect(()=>{const M=i?Math.floor(-h.value/e.optionHeight):e.options.findIndex(V=>V[e.fields.value]===e.value),B=findIndexOfEnabledOption(e.options,M),O=-B*e.optionHeight;i&&B<M&&E(),h.value=O}),useEventListener("touchmove",P,{target:c}),()=>vue.createVNode("div",{ref:c,class:bem$8(),onTouchstartPassive:_,onTouchend:A,onTouchcancel:A},[vue.createVNode("ul",{ref:u,style:{transform:`translate3d(0, ${h.value+v()}px, 0)`,transitionDuration:`${x.value}ms`,transitionProperty:x.value?"all":"none"},class:bem$8("wrapper"),onTransitionend:E},[R()])])}});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:r,slots:n}){const i=()=>{if(n.title)return n.title();if(e.title)return vue.createVNode("div",{class:[bem$9("title"),"van-ellipsis"]},[e.title])},a=()=>r("cancel"),o=()=>r("confirm"),s=()=>{var c;const u=(c=e.cancelButtonText)!=null?c:t("cancel");if(!(!n.cancel&&!u))return vue.createVNode("button",{type:"button",class:[bem$9("cancel"),HAPTICS_FEEDBACK],onClick:a},[n.cancel?n.cancel():u])},l=()=>{var c;const u=(c=e.confirmButtonText)!=null?c:t("confirm");if(!(!n.confirm&&!u))return vue.createVNode("button",{type:"button",class:[bem$9("confirm"),HAPTICS_FEEDBACK],onClick:o},[n.confirm?n.confirm():u])};return()=>vue.createVNode("div",{class:bem$9("toolbar")},[n.toolbar?n.toolbar():[s(),i(),l()]])}});const useSyncPropRef=(e,r)=>{const n=vue.ref(e());return vue.watch(e,i=>{i!==n.value&&(n.value=i)}),vue.watch(n,i=>{i!==e()&&r(i)}),n};/**
127
+ */var Matrix=function(){var e=Math.cos,r=Math.sin,n=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(A){if(A===0)return this;var C=e(A),F=r(A);return this._t(C,-F,0,0,F,C,0,0,0,0,1,0,0,0,0,1)}function s(A){if(A===0)return this;var C=e(A),F=r(A);return this._t(1,0,0,0,0,C,-F,0,0,F,C,0,0,0,0,1)}function l(A){if(A===0)return this;var C=e(A),F=r(A);return this._t(C,0,F,0,0,1,0,0,-F,0,C,0,0,0,0,1)}function c(A){if(A===0)return this;var C=e(A),F=r(A);return this._t(C,-F,0,0,F,C,0,0,0,0,1,0,0,0,0,1)}function u(A,C){return this._t(1,C,A,1,0,0)}function h(A,C){return this.shear(n(A),n(C))}function x(A,C){var F=e(C),_=r(C);return this._t(F,_,0,0,-_,F,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,n(A),1,0,0,0,0,1,0,0,0,0,1)._t(F,-_,0,0,_,F,0,0,0,0,1,0,0,0,0,1)}function f(A,C,F){return!F&&F!==0&&(F=1),A===1&&C===1&&F===1?this:this._t(A,0,0,0,0,C,0,0,0,0,F,0,0,0,0,1)}function g(A,C,F,_,O,U,q,H,j,G,R,W,Y,X,Z,J){return this.props[0]=A,this.props[1]=C,this.props[2]=F,this.props[3]=_,this.props[4]=O,this.props[5]=U,this.props[6]=q,this.props[7]=H,this.props[8]=j,this.props[9]=G,this.props[10]=R,this.props[11]=W,this.props[12]=Y,this.props[13]=X,this.props[14]=Z,this.props[15]=J,this}function v(A,C,F){return F=F||0,A!==0||C!==0||F!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,A,C,F,1):this}function m(A,C,F,_,O,U,q,H,j,G,R,W,Y,X,Z,J){var K=this.props;if(A===1&&C===0&&F===0&&_===0&&O===0&&U===1&&q===0&&H===0&&j===0&&G===0&&R===1&&W===0)return K[12]=K[12]*A+K[15]*Y,K[13]=K[13]*U+K[15]*X,K[14]=K[14]*R+K[15]*Z,K[15]*=J,this._identityCalculated=!1,this;var ee=K[0],re=K[1],ne=K[2],ie=K[3],le=K[4],fe=K[5],he=K[6],ye=K[7],be=K[8],Ee=K[9],Te=K[10],Ce=K[11],_e=K[12],de=K[13],pe=K[14],ve=K[15];return K[0]=ee*A+re*O+ne*j+ie*Y,K[1]=ee*C+re*U+ne*G+ie*X,K[2]=ee*F+re*q+ne*R+ie*Z,K[3]=ee*_+re*H+ne*W+ie*J,K[4]=le*A+fe*O+he*j+ye*Y,K[5]=le*C+fe*U+he*G+ye*X,K[6]=le*F+fe*q+he*R+ye*Z,K[7]=le*_+fe*H+he*W+ye*J,K[8]=be*A+Ee*O+Te*j+Ce*Y,K[9]=be*C+Ee*U+Te*G+Ce*X,K[10]=be*F+Ee*q+Te*R+Ce*Z,K[11]=be*_+Ee*H+Te*W+Ce*J,K[12]=_e*A+de*O+pe*j+ve*Y,K[13]=_e*C+de*U+pe*G+ve*X,K[14]=_e*F+de*q+pe*R+ve*Z,K[15]=_e*_+de*H+pe*W+ve*J,this._identityCalculated=!1,this}function E(A){var C=A.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(A){for(var C=0;C<16;){if(A.props[C]!==this.props[C])return!1;C+=1}return!0}function p(A){var C;for(C=0;C<16;C+=1)A.props[C]=this.props[C];return A}function y(A){var C;for(C=0;C<16;C+=1)this.props[C]=A[C]}function S(A,C,F){return{x:A*this.props[0]+C*this.props[4]+F*this.props[8]+this.props[12],y:A*this.props[1]+C*this.props[5]+F*this.props[9]+this.props[13],z:A*this.props[2]+C*this.props[6]+F*this.props[10]+this.props[14]}}function k(A,C,F){return A*this.props[0]+C*this.props[4]+F*this.props[8]+this.props[12]}function P(A,C,F){return A*this.props[1]+C*this.props[5]+F*this.props[9]+this.props[13]}function w(A,C,F){return A*this.props[2]+C*this.props[6]+F*this.props[10]+this.props[14]}function D(){var A=this.props[0]*this.props[5]-this.props[1]*this.props[4],C=this.props[5]/A,F=-this.props[1]/A,_=-this.props[4]/A,O=this.props[0]/A,U=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/A,q=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/A,H=new Matrix;return H.props[0]=C,H.props[1]=F,H.props[4]=_,H.props[5]=O,H.props[12]=U,H.props[13]=q,H}function M(A){var C=this.getInverseMatrix();return C.applyToPointArray(A[0],A[1],A[2]||0)}function B(A){var C,F=A.length,_=[];for(C=0;C<F;C+=1)_[C]=M(A[C]);return _}function L(A,C,F){var _=createTypedArray("float32",6);if(this.isIdentity())_[0]=A[0],_[1]=A[1],_[2]=C[0],_[3]=C[1],_[4]=F[0],_[5]=F[1];else{var O=this.props[0],U=this.props[1],q=this.props[4],H=this.props[5],j=this.props[12],G=this.props[13];_[0]=A[0]*O+A[1]*q+j,_[1]=A[0]*U+A[1]*H+G,_[2]=C[0]*O+C[1]*q+j,_[3]=C[0]*U+C[1]*H+G,_[4]=F[0]*O+F[1]*q+j,_[5]=F[0]*U+F[1]*H+G}return _}function V(A,C,F){var _;return this.isIdentity()?_=[A,C,F]:_=[A*this.props[0]+C*this.props[4]+F*this.props[8]+this.props[12],A*this.props[1]+C*this.props[5]+F*this.props[9]+this.props[13],A*this.props[2]+C*this.props[6]+F*this.props[10]+this.props[14]],_}function $(A,C){if(this.isIdentity())return A+","+C;var F=this.props;return Math.round((A*F[0]+C*F[4]+F[12])*100)/100+","+Math.round((A*F[1]+C*F[5]+F[13])*100)/100}function N(){for(var A=0,C=this.props,F="matrix3d(",_=1e4;A<16;)F+=i(C[A]*_)/_,F+=A===15?")":",",A+=1;return F}function T(A){var C=1e4;return A<1e-6&&A>0||A>-1e-6&&A<0?i(A*C)/C:A}function I(){var A=this.props,C=T(A[0]),F=T(A[1]),_=T(A[4]),O=T(A[5]),U=T(A[12]),q=T(A[13]);return"matrix("+C+","+F+","+_+","+O+","+U+","+q+")"}return function(){this.reset=a,this.rotate=o,this.rotateX=s,this.rotateY=l,this.rotateZ=c,this.skew=h,this.skewFromAxis=x,this.shear=u,this.scale=f,this.setTransform=g,this.translate=v,this.transform=m,this.multiply=E,this.applyToPoint=S,this.applyToX=k,this.applyToY=P,this.applyToZ=w,this.applyToPointArray=V,this.applyToTriplePoints=L,this.applyToPointStringified=$,this.toCSS=N,this.to2dCSS=I,this.clone=p,this.cloneFromProps=y,this.equals=d,this.inversePoints=B,this.inversePoint=M,this.getInverseMatrix=D,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(n){return typeof n}:_typeof$3=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_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,r){e==="expressions"&&setExpressionsPlugin(r)}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 r=queryString.split("&"),n=0;n<r.length;n+=1){var i=r[n].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={},r={};e.registerModifier=n,e.getModifier=i;function n(a,o){r[a]||(r[a]=o)}function i(a,o,s){return new r[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 r={shape:e.sh,data:e,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(r),this.addShapeToModifier(r),this._isAnimated&&e.setAsAnimated()}},ShapeModifier.prototype.init=function(e,r){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,r),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,r){this.s=PropertyFactory.getProp(e,r.s,0,.01,this),this.e=PropertyFactory.getProp(e,r.e,0,.01,this),this.o=PropertyFactory.getProp(e,r.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=r.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,r,n,i,a){var o=[];r<=1?o.push({s:e,e:r}):e>=1?o.push({s:e-1,e:r-1}):(o.push({s:e,e:1}),o.push({s:0,e:r-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+n)){var h,x;u.s*a<=i?h=0:h=(u.s*a-i)/n,u.e*a>=i+n?x=1:x=(u.e*a-i)/n,s.push([h,x])}return s.length||s.push([0,0]),s},TrimModifier.prototype.releasePathsData=function(e){var r,n=e.length;for(r=0;r<n;r+=1)segmentsLengthPool.release(e[r]);return e.length=0,e},TrimModifier.prototype.processShapes=function(e){var r,n;if(this._mdf||e){var i=this.o.v%360/360;if(i<0&&(i+=1),this.s.v>1?r=1+i:this.s.v<0?r=0+i:r=this.s.v+i,this.e.v>1?n=1+i:this.e.v<0?n=0+i:n=this.e.v+i,r>n){var a=r;r=n,n=a}r=Math.round(r*1e4)*1e-4,n=Math.round(n*1e4)*1e-4,this.sValue=r,this.eValue=n}else r=this.sValue,n=this.eValue;var o,s,l=this.shapes.length,c,u,h,x,f,g=0;if(n===r)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(n===1&&r===0||n===0&&r===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=[],m,E;for(s=0;s<l;s+=1)if(m=this.shapes[s],!m.shape._mdf&&!this._mdf&&!e&&this.m!==2)m.shape.paths=m.localShapeCollection;else{if(o=m.shape.paths,u=o._length,f=0,!m.shape._mdf&&m.pathsData.length)f=m.totalShapeLength;else{for(h=this.releasePathsData(m.pathsData),c=0;c<u;c+=1)x=bez.getSegmentsLength(o.shapes[c]),h.push(x),f+=x.totalLength;m.totalShapeLength=f,m.pathsData=h}g+=f,m.shape._mdf=!0}var b=r,d=n,p=0,y;for(s=l-1;s>=0;s-=1)if(m=this.shapes[s],m.shape._mdf){for(E=m.localShapeCollection,E.releaseShapes(),this.m===2&&l>1?(y=this.calculateShapeEdges(r,n,m.totalShapeLength,p,g),p+=m.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:m.totalShapeLength*b,e:m.totalShapeLength*d}):b>=1?v.push({s:m.totalShapeLength*(b-1),e:m.totalShapeLength*(d-1)}):(v.push({s:m.totalShapeLength*b,e:m.totalShapeLength}),v.push({s:0,e:m.totalShapeLength*(d-1)}));var S=this.addShapes(m,v[0]);if(v[0].s!==v[0].e){if(v.length>1){var k=m.shape.paths.shapes[m.shape.paths._length-1];if(k.c){var P=S.pop();this.addPaths(S,E),S=this.addShapes(m,v[1],P)}else this.addPaths(S,E),S=this.addShapes(m,v[1])}this.addPaths(S,E)}}m.shape.paths=E}}},TrimModifier.prototype.addPaths=function(e,r){var n,i=e.length;for(n=0;n<i;n+=1)r.addShape(e[n])},TrimModifier.prototype.addSegment=function(e,r,n,i,a,o,s){a.setXYAt(r[0],r[1],"o",o),a.setXYAt(n[0],n[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,r,n,i){r.setXYAt(e[1],e[5],"o",n),r.setXYAt(e[2],e[6],"i",n+1),i&&r.setXYAt(e[0],e[4],"v",n),r.setXYAt(e[3],e[7],"v",n+1)},TrimModifier.prototype.addShapes=function(e,r,n){var i=e.pathsData,a=e.shape.paths.shapes,o,s=e.shape.paths._length,l,c,u=0,h,x,f,g,v=[],m,E=!0;for(n?(x=n._length,m=n._length):(n=shapePool.newElement(),x=0,m=0),v.push(n),o=0;o<s;o+=1){for(f=i[o].lengths,n.c=a[o].c,c=a[o].c?f.length:f.length+1,l=1;l<c;l+=1)if(h=f[l-1],u+h.addedLength<r.s)u+=h.addedLength,n.c=!1;else if(u>r.e){n.c=!1;break}else r.s<=u&&r.e>=u+h.addedLength?(this.addSegment(a[o].v[l-1],a[o].o[l-1],a[o].i[l],a[o].v[l],n,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],(r.s-u)/h.addedLength,(r.e-u)/h.addedLength,f[l-1]),this.addSegmentFromArray(g,n,x,E),E=!1,n.c=!1),u+=h.addedLength,x+=1;if(a[o].c&&f.length){if(h=f[l-1],u<=r.e){var b=f[l-1].addedLength;r.s<=u&&r.e>=u+b?(this.addSegment(a[o].v[l-1],a[o].o[l-1],a[o].i[0],a[o].v[0],n,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],(r.s-u)/b,(r.e-u)/b,f[l-1]),this.addSegmentFromArray(g,n,x,E),E=!1,n.c=!1)}else n.c=!1;u+=h.addedLength,x+=1}if(n._length&&(n.setXYAt(n.v[m][0],n.v[m][1],"i",m),n.setXYAt(n.v[n._length-1][0],n.v[n._length-1][1],"o",n._length-1)),u>r.e)break;o<s-1&&(n=shapePool.newElement(),E=!0,v.push(n),x=0)}return v};function PuckerAndBloatModifier(){}extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(e,r){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,r.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(e,r){var n=r/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,h,x,f;for(o=0;o<a;o+=1)l=e.v[o][0]+(i[0]-e.v[o][0])*n,c=e.v[o][1]+(i[1]-e.v[o][1])*n,u=e.o[o][0]+(i[0]-e.o[o][0])*-n,h=e.o[o][1]+(i[1]-e.o[o][1])*-n,x=e.i[o][0]+(i[0]-e.i[o][0])*-n,f=e.i[o][1]+(i[1]-e.i[o][1])*-n,s.setTripleAt(l,c,u,h,x,f,o);return s},PuckerAndBloatModifier.prototype.processShapes=function(e){var r,n,i=this.shapes.length,a,o,s=this.amount.v;if(s!==0){var l,c;for(n=0;n<i;n+=1){if(l=this.shapes[n],c=l.localShapeCollection,!(!l.shape._mdf&&!this._mdf&&!e))for(c.releaseShapes(),l.shape._mdf=!0,r=l.shape.paths.shapes,o=l.shape.paths._length,a=0;a<o;a+=1)c.addShape(this.processPath(r[a],s));l.shape.paths=l.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var e=[0,0];function r(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 n(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 h,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?(h=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?(h=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)):(h=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){h=[],x=[];var f=this.px,g=this.py;f._caching.lastFrame+f.offsetTime<=f.keyframes[0].t?(h[0]=f.getValueAtTime((f.keyframes[0].t+.01)/u,0),h[1]=g.getValueAtTime((g.keyframes[0].t+.01)/u,0),x[0]=f.getValueAtTime(f.keyframes[0].t/u,0),x[1]=g.getValueAtTime(g.keyframes[0].t/u,0)):f._caching.lastFrame+f.offsetTime>=f.keyframes[f.keyframes.length-1].t?(h[0]=f.getValueAtTime(f.keyframes[f.keyframes.length-1].t/u,0),h[1]=g.getValueAtTime(g.keyframes[g.keyframes.length-1].t/u,0),x[0]=f.getValueAtTime((f.keyframes[f.keyframes.length-1].t-.01)/u,0),x[1]=g.getValueAtTime((g.keyframes[g.keyframes.length-1].t-.01)/u,0)):(h=[f.pv,g.pv],x[0]=f.getValueAtTime((f._caching.lastFrame+f.offsetTime-.01)/u,f.offsetTime),x[1]=g.getValueAtTime((g._caching.lastFrame+g.offsetTime-.01)/u,g.offsetTime))}else x=e,h=x;this.v.rotate(-Math.atan2(h[1]-x[1],h[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,h){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(h||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,f=u.or.k.length;for(x=0;x<f;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:r,getValue:n,precalculateMatrix:i,autoOrient:a},extendPrototype([DynamicPropertyContainer],s),s.prototype.addDynamicProperty=o,s.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function l(c,u,h){return new s(c,u,h)}return{getTransformProperty:l}}();function RepeaterModifier(){}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(e,r){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(e,r.c,0,null,this),this.o=PropertyFactory.getProp(e,r.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(e,r.tr,this),this.so=PropertyFactory.getProp(e,r.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(e,r.tr.eo,0,.01,this),this.data=r,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,r,n,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]),r.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),r.rotate(-i.r.v*s*a),r.translate(i.a.v[0],i.a.v[1],i.a.v[2]),n.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),n.scale(o?1/l:l,o?1/c:c),n.translate(i.a.v[0],i.a.v[1],i.a.v[2])},RepeaterModifier.prototype.init=function(e,r,n,i){for(this.elem=e,this.arr=r,this.pos=n,this.elemsData=i,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,r[n]);n>0;)n-=1,this._elements.unshift(r[n]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var r,n=e.length;for(r=0;r<n;r+=1)e[r]._processed=!1,e[r].ty==="gr"&&this.resetElements(e[r].it)},RepeaterModifier.prototype.cloneElements=function(e){var r=JSON.parse(JSON.stringify(e));return this.resetElements(r),r},RepeaterModifier.prototype.changeGroupRender=function(e,r){var n,i=e.length;for(n=0;n<i;n+=1)e[n]._render=r,e[n].ty==="gr"&&this.changeGroupRender(e[n].it,r)},RepeaterModifier.prototype.processShapes=function(e){var r,n,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 h=this.elemsData[i].it,x=h[h.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 f=this.o.v,g=f%1,v=f>0?Math.floor(f):Math.ceil(f),m=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(f>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(f<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 p,y;o;){if(r=this.elemsData[i].it,n=r[r.length-1].transform.mProps.v.props,y=n.length,r[r.length-1].transform.mProps._mdf=!0,r[r.length-1].transform.op._mdf=!0,r[r.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(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),p=0;p<y;p+=1)n[p]=this.matrix.props[p];this.matrix.reset()}else for(this.matrix.reset(),p=0;p<y;p+=1)n[p]=this.matrix.props[p];d+=1,o-=1,i+=a}}else for(o=this._currentCopies,i=0,a=1;o;)r=this.elemsData[i].it,n=r[r.length-1].transform.mProps.v.props,r[r.length-1].transform.mProps._mdf=!1,r[r.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,r){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(e,r.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(e,r){var n=shapePool.newElement();n.c=e.c;var i,a=e._length,o,s,l,c,u,h,x=0,f,g,v,m,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?(n.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)),h=u?Math.min(u/2,r)/u:0,E=o[0]+(c[0]-o[0])*h,f=E,b=o[1]-(o[1]-c[1])*h,g=b,v=f-(f-o[0])*roundCorner,m=g-(g-o[1])*roundCorner,n.setTripleAt(f,g,v,m,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)),h=u?Math.min(u/2,r)/u:0,v=o[0]+(c[0]-o[0])*h,f=v,m=o[1]+(c[1]-o[1])*h,g=m,E=f-(f-o[0])*roundCorner,b=g-(g-o[1])*roundCorner,n.setTripleAt(f,g,v,m,E,b,x),x+=1):(n.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 n},RoundCornersModifier.prototype.processShapes=function(e){var r,n,i=this.shapes.length,a,o,s=this.rd.v;if(s!==0){var l,c;for(n=0;n<i;n+=1){if(l=this.shapes[n],c=l.localShapeCollection,!(!l.shape._mdf&&!this._mdf&&!e))for(c.releaseShapes(),l.shape._mdf=!0,r=l.shape.paths.shapes,o=l.shape.paths._length,a=0;a<o;a+=1)c.addShape(this.processPath(r[a],s));l.shape.paths=l.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function floatEqual(e,r){return Math.abs(e-r)*1e5<=Math.min(Math.abs(e),Math.abs(r))}function floatZero(e){return Math.abs(e)<=1e-5}function lerp(e,r,n){return e*(1-n)+r*n}function lerpPoint(e,r,n){return[lerp(e[0],r[0],n),lerp(e[1],r[1],n)]}function quadRoots(e,r,n){if(e===0)return[];var i=r*r-4*e*n;if(i<0)return[];var a=-r/(2*e);if(i===0)return[a];var o=Math.sqrt(i)/(2*e);return[a-o,a+o]}function polynomialCoefficients(e,r,n,i){return[-e+3*r-3*n+i,3*e-6*r+3*n,-3*e+3*r,e]}function singlePoint(e){return new PolynomialBezier(e,e,e,e,!1)}function PolynomialBezier(e,r,n,i,a){a&&pointEqual(e,r)&&(r=lerpPoint(e,i,1/3)),a&&pointEqual(n,i)&&(n=lerpPoint(e,i,2/3));var o=polynomialCoefficients(e[0],r[0],n[0],i[0]),s=polynomialCoefficients(e[1],r[1],n[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,r,n,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 r=this.derivative(e);return Math.atan2(r[1],r[0])},PolynomialBezier.prototype.normalAngle=function(e){var r=this.derivative(e);return Math.atan2(r[0],r[1])},PolynomialBezier.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(e))return[];var r=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,n=r*r-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(n<0)return[];var i=Math.sqrt(n);return floatZero(i)?i>0&&i<1?[r]:[]:[r-i,r+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 r=lerpPoint(this.points[0],this.points[1],e),n=lerpPoint(this.points[1],this.points[2],e),i=lerpPoint(this.points[2],this.points[3],e),a=lerpPoint(r,n,e),o=lerpPoint(n,i,e),s=lerpPoint(a,o,e);return[new PolynomialBezier(this.points[0],r,a,s,!0),new PolynomialBezier(s,o,i,this.points[3],!0)]};function extrema(e,r){var n=e.points[0][r],i=e.points[e.points.length-1][r];if(n>i){var a=i;i=n,n=a}for(var o=quadRoots(3*e.a[r],2*e.b[r],e.c[r]),s=0;s<o.length;s+=1)if(o[s]>0&&o[s]<1){var l=e.point(o[s])[r];l<n?n=l:l>i&&(i=l)}return{min:n,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,r,n){var i=e.boundingBox();return{cx:i.cx,cy:i.cy,width:i.width,height:i.height,bez:e,t:(r+n)/2,t1:r,t2:n}}function splitData(e){var r=e.bez.split(.5);return[intersectData(r[0],e.t1,e.t),intersectData(r[1],e.t,e.t2)]}function boxIntersect(e,r){return Math.abs(e.cx-r.cx)*2<e.width+r.width&&Math.abs(e.cy-r.cy)*2<e.height+r.height}function intersectsImpl(e,r,n,i,a,o){if(boxIntersect(e,r)){if(n>=o||e.width<=i&&e.height<=i&&r.width<=i&&r.height<=i){a.push([e.t,r.t]);return}var s=splitData(e),l=splitData(r);intersectsImpl(s[0],l[0],n+1,i,a,o),intersectsImpl(s[0],l[1],n+1,i,a,o),intersectsImpl(s[1],l[0],n+1,i,a,o),intersectsImpl(s[1],l[1],n+1,i,a,o)}}PolynomialBezier.prototype.intersections=function(e,r,n){r===void 0&&(r=2),n===void 0&&(n=7);var i=[];return intersectsImpl(intersectData(this,0,1),intersectData(e,0,1),0,r,i,n),i},PolynomialBezier.shapeSegment=function(e,r){var n=(r+1)%e.length();return new PolynomialBezier(e.v[r],e.o[r],e.i[n],e.v[n],!0)},PolynomialBezier.shapeSegmentInverted=function(e,r){var n=(r+1)%e.length();return new PolynomialBezier(e.v[n],e.i[n],e.o[r],e.v[r],!0)};function crossProduct(e,r){return[e[1]*r[2]-e[2]*r[1],e[2]*r[0]-e[0]*r[2],e[0]*r[1]-e[1]*r[0]]}function lineIntersection(e,r,n,i){var a=[e[0],e[1],1],o=[r[0],r[1],1],s=[n[0],n[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,r,n){return[e[0]+Math.cos(r)*n,e[1]-Math.sin(r)*n]}function pointDistance(e,r){return Math.hypot(e[0]-r[0],e[1]-r[1])}function pointEqual(e,r){return floatEqual(e[0],r[0])&&floatEqual(e[1],r[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(e,r){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(e,r.s,0,null,this),this.frequency=PropertyFactory.getProp(e,r.r,0,null,this),this.pointsType=PropertyFactory.getProp(e,r.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(e,r,n,i,a,o,s){var l=n-Math.PI/2,c=n+Math.PI/2,u=r[0]+Math.cos(n)*i*a,h=r[1]-Math.sin(n)*i*a;e.setTripleAt(u,h,u+Math.cos(l)*o,h-Math.sin(l)*o,u+Math.cos(c)*s,h-Math.sin(c)*s,e.length())}function getPerpendicularVector(e,r){var n=[r[0]-e[0],r[1]-e[1]],i=-Math.PI*.5,a=[Math.cos(i)*n[0]-Math.sin(i)*n[1],Math.sin(i)*n[0]+Math.cos(i)*n[1]];return a}function getProjectingAngle(e,r){var n=r===0?e.length()-1:r-1,i=(r+1)%e.length(),a=e.v[n],o=e.v[i],s=getPerpendicularVector(a,o);return Math.atan2(0,1)-Math.atan2(s[1],s[0])}function zigZagCorner(e,r,n,i,a,o,s){var l=getProjectingAngle(r,n),c=r.v[n%r._length],u=r.v[n===0?r._length-1:n-1],h=r.v[(n+1)%r._length],x=o===2?Math.sqrt(Math.pow(c[0]-u[0],2)+Math.pow(c[1]-u[1],2)):0,f=o===2?Math.sqrt(Math.pow(c[0]-h[0],2)+Math.pow(c[1]-h[1],2)):0;setPoint(e,r.v[n%r._length],l,s,i,f/((a+1)*2),x/((a+1)*2))}function zigZagSegment(e,r,n,i,a,o){for(var s=0;s<i;s+=1){var l=(s+1)/(i+1),c=a===2?Math.sqrt(Math.pow(r.points[3][0]-r.points[0][0],2)+Math.pow(r.points[3][1]-r.points[0][1],2)):0,u=r.normalAngle(l),h=r.point(l);setPoint(e,h,u,o,n,c/((i+1)*2),c/((i+1)*2)),o=-o}return o}ZigZagModifier.prototype.processPath=function(e,r,n,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,r,n,i,s);for(var c=0;c<a;c+=1)s=zigZagSegment(o,l,r,n,i,-s),c===a-1&&!e.c?l=null:l=PolynomialBezier.shapeSegment(e,(c+1)%a),zigZagCorner(o,e,c+1,r,n,i,s);return o},ZigZagModifier.prototype.processShapes=function(e){var r,n,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,h;for(n=0;n<i;n+=1){if(u=this.shapes[n],h=u.localShapeCollection,!(!u.shape._mdf&&!this._mdf&&!e))for(h.releaseShapes(),u.shape._mdf=!0,r=u.shape.paths.shapes,o=u.shape.paths._length,a=0;a<o;a+=1)h.addShape(this.processPath(r[a],s,l,c));u.shape.paths=u.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function linearOffset(e,r,n){var i=Math.atan2(r[0]-e[0],r[1]-e[1]);return[polarOffset(e,i,n),polarOffset(r,i,n)]}function offsetSegment(e,r){var n,i,a,o,s,l,c;c=linearOffset(e.points[0],e.points[1],r),n=c[0],i=c[1],c=linearOffset(e.points[1],e.points[2],r),a=c[0],o=c[1],c=linearOffset(e.points[2],e.points[3],r),s=c[0],l=c[1];var u=lineIntersection(n,i,a,o);u===null&&(u=i);var h=lineIntersection(s,l,a,o);return h===null&&(h=s),new PolynomialBezier(n,u,h,l)}function joinLines(e,r,n,i,a){var o=r.points[3],s=n.points[0];if(i===3||pointEqual(o,s))return o;if(i===2){var l=-r.tangentAngle(1),c=-n.tangentAngle(0)+Math.PI,u=lineIntersection(o,polarOffset(o,l+Math.PI/2,100),s,polarOffset(s,l+Math.PI/2,100)),h=u?pointDistance(u,o):pointDistance(o,s)/2,x=polarOffset(o,l,2*h*roundCorner);return e.setXYAt(x[0],x[1],"o",e.length()-1),x=polarOffset(s,c,2*h*roundCorner),e.setTripleAt(s[0],s[1],s[0],s[1],x[0],x[1],e.length()),s}var f=pointEqual(o,r.points[2])?r.points[0]:r.points[2],g=pointEqual(s,n.points[1])?n.points[3]:n.points[1],v=lineIntersection(f,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,r){var n=e.intersections(r);return n.length&&floatEqual(n[0][0],1)&&n.shift(),n.length?n[0]:null}function pruneSegmentIntersection(e,r){var n=e.slice(),i=r.slice(),a=getIntersection(e[e.length-1],r[0]);return a&&(n[e.length-1]=e[e.length-1].split(a[0])[0],i[0]=r[0].split(a[1])[1]),e.length>1&&r.length>1&&(a=getIntersection(e[0],r[r.length-1]),a)?[[e[0].split(a[0])[0]],[r[r.length-1].split(a[1])[1]]]:[n,i]}function pruneIntersections(e){for(var r,n=1;n<e.length;n+=1)r=pruneSegmentIntersection(e[n-1],e[n]),e[n-1]=r[0],e[n]=r[1];return e.length>1&&(r=pruneSegmentIntersection(e[e.length-1],e[0]),e[e.length-1]=r[0],e[0]=r[1]),e}function offsetSegmentSplit(e,r){var n=e.inflectionPoints(),i,a,o,s;if(n.length===0)return[offsetSegment(e,r)];if(n.length===1||floatEqual(n[1],1))return o=e.split(n[0]),i=o[0],a=o[1],[offsetSegment(i,r),offsetSegment(a,r)];o=e.split(n[0]),i=o[0];var l=(n[1]-n[0])/(1-n[0]);return o=o[1].split(l),s=o[0],a=o[1],[offsetSegment(i,r),offsetSegment(s,r),offsetSegment(a,r)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(e,r){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,r.a,0,null,this),this.miterLimit=PropertyFactory.getProp(e,r.ml,0,null,this),this.lineJoin=r.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(e,r,n,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,r));if(!e.c)for(s=o-1;s>=0;s-=1)c=PolynomialBezier.shapeSegmentInverted(e,s),u.push(offsetSegmentSplit(c,r));u=pruneIntersections(u);var h=null,x=null;for(s=0;s<u.length;s+=1){var f=u[s];for(x&&(h=joinLines(a,x,f[0],n,i)),x=f[f.length-1],l=0;l<f.length;l+=1)c=f[l],h&&pointEqual(c.points[0],h)?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()),h=c.points[3]}return u.length&&joinLines(a,x,u[0][0],n,i),a},OffsetPathModifier.prototype.processShapes=function(e){var r,n,i=this.shapes.length,a,o,s=this.amount.v,l=this.miterLimit.v,c=this.lineJoin;if(s!==0){var u,h;for(n=0;n<i;n+=1){if(u=this.shapes[n],h=u.localShapeCollection,!(!u.shape._mdf&&!this._mdf&&!e))for(h.releaseShapes(),u.shape._mdf=!0,r=u.shape.paths.shapes,o=u.shape.paths._length,a=0;a<o;a+=1)h.addShape(this.processPath(r[a],s,c,l));u.shape.paths=u.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function getFontProperties(e){for(var r=e.fStyle?e.fStyle.split(" "):[],n="normal",i="normal",a=r.length,o,s=0;s<a;s+=1)switch(o=r[s].toLowerCase(),o){case"italic":i="italic";break;case"bold":n="700";break;case"black":n="900";break;case"medium":n="500";break;case"regular":case"normal":n="400";break;case"light":case"thin":n="200";break}return{style:i,weight:e.fWeight||n}}var FontManager=function(){var e=5e3,r={w:0,size:0,shapes:[],data:{shapes:[]}},n=[];n=n.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,h=127487,x=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function f(T){var I=T.split(","),A,C=I.length,F=[];for(A=0;A<C;A+=1)I[A]!=="sans-serif"&&I[A]!=="monospace"&&F.push(I[A]);return F.join(",")}function g(T,I){var A=createTag("span");A.setAttribute("aria-hidden",!0),A.style.fontFamily=I;var C=createTag("span");C.innerText="giItT1WQy@!-/#",A.style.position="absolute",A.style.left="-10000px",A.style.top="-10000px",A.style.fontSize="300px",A.style.fontVariant="normal",A.style.fontStyle="normal",A.style.fontWeight="normal",A.style.letterSpacing="0",A.appendChild(C),document.body.appendChild(A);var F=C.offsetWidth;return C.style.fontFamily=f(T)+", "+I,{node:C,w:F,parent:A}}function v(){var T,I=this.fonts.length,A,C,F=I;for(T=0;T<I;T+=1)this.fonts[T].loaded?F-=1:this.fonts[T].fOrigin==="n"||this.fonts[T].origin===0?this.fonts[T].loaded=!0:(A=this.fonts[T].monoCase.node,C=this.fonts[T].monoCase.w,A.offsetWidth!==C?(F-=1,this.fonts[T].loaded=!0):(A=this.fonts[T].sansCase.node,C=this.fonts[T].sansCase.w,A.offsetWidth!==C&&(F-=1,this.fonts[T].loaded=!0)),this.fonts[T].loaded&&(this.fonts[T].sansCase.parent.parentNode.removeChild(this.fonts[T].sansCase.parent),this.fonts[T].monoCase.parent.parentNode.removeChild(this.fonts[T].monoCase.parent)));F!==0&&Date.now()-this.initTime<e?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function m(T,I){var A=document.body&&I?"svg":"canvas",C,F=getFontProperties(T);if(A==="svg"){var _=createNS("text");_.style.fontSize="100px",_.setAttribute("font-family",T.fFamily),_.setAttribute("font-style",F.style),_.setAttribute("font-weight",F.weight),_.textContent="1",T.fClass?(_.style.fontFamily="inherit",_.setAttribute("class",T.fClass)):_.style.fontFamily=T.fFamily,I.appendChild(_),C=_}else{var O=new OffscreenCanvas(500,500).getContext("2d");O.font=F.style+" "+F.weight+" 100px "+T.fFamily,C=O}function U(q){return A==="svg"?(C.textContent=q,C.getComputedTextLength()):C.measureText(q).width}return{measureText:U}}function E(T,I){if(!T){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=T.list;return}if(!document.body){this.isLoaded=!0,T.list.forEach(function(R){R.helper=m(R),R.cache={}}),this.fonts=T.list;return}var A=T.list,C,F=A.length,_=F;for(C=0;C<F;C+=1){var O=!0,U,q;if(A[C].loaded=!1,A[C].monoCase=g(A[C].fFamily,"monospace"),A[C].sansCase=g(A[C].fFamily,"sans-serif"),!A[C].fPath)A[C].loaded=!0,_-=1;else if(A[C].fOrigin==="p"||A[C].origin===3){if(U=document.querySelectorAll('style[f-forigin="p"][f-family="'+A[C].fFamily+'"], style[f-origin="3"][f-family="'+A[C].fFamily+'"]'),U.length>0&&(O=!1),O){var H=createTag("style");H.setAttribute("f-forigin",A[C].fOrigin),H.setAttribute("f-origin",A[C].origin),H.setAttribute("f-family",A[C].fFamily),H.type="text/css",H.innerText="@font-face {font-family: "+A[C].fFamily+"; font-style: normal; src: url('"+A[C].fPath+"');}",I.appendChild(H)}}else if(A[C].fOrigin==="g"||A[C].origin===1){for(U=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),q=0;q<U.length;q+=1)U[q].href.indexOf(A[C].fPath)!==-1&&(O=!1);if(O){var j=createTag("link");j.setAttribute("f-forigin",A[C].fOrigin),j.setAttribute("f-origin",A[C].origin),j.type="text/css",j.rel="stylesheet",j.href=A[C].fPath,document.body.appendChild(j)}}else if(A[C].fOrigin==="t"||A[C].origin===2){for(U=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),q=0;q<U.length;q+=1)A[C].fPath===U[q].src&&(O=!1);if(O){var G=createTag("link");G.setAttribute("f-forigin",A[C].fOrigin),G.setAttribute("f-origin",A[C].origin),G.setAttribute("rel","stylesheet"),G.setAttribute("href",A[C].fPath),I.appendChild(G)}}A[C].helper=m(A[C],I),A[C].cache={},this.fonts.push(A[C])}_===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function b(T){if(T){this.chars||(this.chars=[]);var I,A=T.length,C,F=this.chars.length,_;for(I=0;I<A;I+=1){for(C=0,_=!1;C<F;)this.chars[C].style===T[I].style&&this.chars[C].fFamily===T[I].fFamily&&this.chars[C].ch===T[I].ch&&(_=!0),C+=1;_||(this.chars.push(T[I]),F+=1)}}}function d(T,I,A){for(var C=0,F=this.chars.length;C<F;){if(this.chars[C].ch===T&&this.chars[C].style===I&&this.chars[C].fFamily===A)return this.chars[C];C+=1}return(typeof T=="string"&&T.charCodeAt(0)!==13||!T)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",T,I,A)),r}function p(T,I,A){var C=this.getFontByName(I),F=T;if(!C.cache[F]){var _=C.helper;if(T===" "){var O=_.measureText("|"+T+"|"),U=_.measureText("||");C.cache[F]=(O-U)/100}else C.cache[F]=_.measureText(T)/100}return C.cache[F]*A}function y(T){for(var I=0,A=this.fonts.length;I<A;){if(this.fonts[I].fName===T)return this.fonts[I];I+=1}return this.fonts[0]}function S(T){var I=0,A=T.charCodeAt(0);if(A>=55296&&A<=56319){var C=T.charCodeAt(1);C>=56320&&C<=57343&&(I=(A-55296)*1024+C-56320+65536)}return I}function k(T,I){var A=T.toString(16)+I.toString(16);return x.indexOf(A)!==-1}function P(T){return T===c}function w(T){return T===l}function D(T){var I=S(T);return I>=u&&I<=h}function M(T){return D(T.substr(0,2))&&D(T.substr(2,2))}function B(T){return n.indexOf(T)!==-1}function L(T,I){var A=S(T.substr(I,2));if(A!==i)return!1;var C=0;for(I+=2;C<5;){if(A=S(T.substr(I,2)),A<o||A>s)return!1;C+=1,I+=2}return S(T.substr(I,2))===a}function V(){this.isLoaded=!0}var $=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)};$.isModifier=k,$.isZeroWidthJoiner=P,$.isFlagEmoji=M,$.isRegionalCode=D,$.isCombinedCharacter=B,$.isRegionalFlag=L,$.isVariationSelector=w,$.BLACK_FLAG_CODE_POINT=i;var N={addChars:b,addFonts:E,getCharData:d,getFontByName:y,measureText:p,checkLoadedFonts:v,setIsLoaded:V};return $.prototype=N,$}();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(r){this.renderableComponents.indexOf(r)===-1&&this.renderableComponents.push(r)},removeRenderableComponent:function(r){this.renderableComponents.indexOf(r)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(r),1)},prepareRenderableFrame:function(r){this.checkLayerLimits(r)},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(r){this.data.ip-this.data.st<=r&&this.data.op-this.data.st>r?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 r,n=this.renderableComponents.length;for(r=0;r<n;r+=1)this.renderableComponents[r].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(r){return e[r]||""}}();function SliderEffect(e,r,n){this.p=PropertyFactory.getProp(r,e.v,0,0,n)}function AngleEffect(e,r,n){this.p=PropertyFactory.getProp(r,e.v,0,0,n)}function ColorEffect(e,r,n){this.p=PropertyFactory.getProp(r,e.v,1,0,n)}function PointEffect(e,r,n){this.p=PropertyFactory.getProp(r,e.v,1,0,n)}function LayerIndexEffect(e,r,n){this.p=PropertyFactory.getProp(r,e.v,0,0,n)}function MaskIndexEffect(e,r,n){this.p=PropertyFactory.getProp(r,e.v,0,0,n)}function CheckboxEffect(e,r,n){this.p=PropertyFactory.getProp(r,e.v,0,0,n)}function NoValueEffect(){this.p={}}function EffectsManager(e,r){var n=e.ef||[];this.effectElements=[];var i,a=n.length,o;for(i=0;i<a;i+=1)o=new GroupEffect(n[i],r),this.effectElements.push(o)}function GroupEffect(e,r){this.init(e,r)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(e,r){this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(r);var n,i=this.data.ef.length,a,o=this.data.ef;for(n=0;n<i;n+=1){switch(a=null,o[n].ty){case 0:a=new SliderEffect(o[n],r,this);break;case 1:a=new AngleEffect(o[n],r,this);break;case 2:a=new ColorEffect(o[n],r,this);break;case 3:a=new PointEffect(o[n],r,this);break;case 4:case 7:a=new CheckboxEffect(o[n],r,this);break;case 10:a=new LayerIndexEffect(o[n],r,this);break;case 11:a=new MaskIndexEffect(o[n],r,this);break;case 5:a=new EffectsManager(o[n],r);break;default:a=new NoValueEffect(o[n]);break}a&&this.effectElements.push(a)}};function BaseElement(){}BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var r=0,n=this.data.masksProperties.length;r<n;){if(this.data.masksProperties[r].mode!=="n"&&this.data.masksProperties[r].cl!==!1)return!0;r+=1}return!1},initExpressions:function(){var r=getExpressionInterfaces();if(r){var n=r("layer"),i=r("effects"),a=r("shape"),o=r("text"),s=r("comp");this.layerInterface=n(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 r=getBlendMode(this.data.bm),n=this.baseElement||this.layerElement;n.style["mix-blend-mode"]=r},initBaseData:function(r,n,i){this.globalData=n,this.comp=i,this.data=r,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(r,n){var i,a=this.dynamicProperties.length;for(i=0;i<a;i+=1)(n||this._isParent&&this.dynamicProperties[i].propType==="transform")&&(this.dynamicProperties[i].getValue(),this.dynamicProperties[i]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(r){this.dynamicProperties.indexOf(r)===-1&&this.dynamicProperties.push(r)}};function FootageElement(e,r,n){this.initFrame(),this.initRenderable(),this.assetData=r.getAssetData(e.refId),this.footageData=r.imageLoader.getAsset(this.assetData),this.initBaseData(e,r,n)}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 r=e("footage");this.layerInterface=r(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData};function AudioElement(e,r,n){this.initFrame(),this.initRenderable(),this.assetData=r.getAssetData(e.refId),this.initBaseData(e,r,n),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,r.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 r=this.tm.v;this._currentTime=r}this._volume=this.lv.v[0];var n=this._volume*this._volumeMultiplier;this._previousVolume!==n&&(this._previousVolume=n,this.audio.volume(n))},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 r,n=this.layers.length,i;for(this.completeLayers=!0,r=n-1;r>=0;r-=1)this.elements[r]||(i=this.layers[r],i.ip-i.st<=e-this.layers[r].st&&i.op-i.st>e-this.layers[r].st&&this.buildItem(r)),this.completeLayers=this.elements[r]?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,r=this.layers.length;for(e=0;e<r;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(e){this.completeLayers=!1;var r,n=e.length,i,a=this.layers.length;for(r=0;r<n;r+=1)for(i=0;i<a;){if(this.layers[i].id===e[r].id){this.layers[i]=e[r];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,r,n){for(var i=this.elements,a=this.layers,o=0,s=a.length;o<s;)a[o].ind==r&&(!i[o]||i[o]===!0?(this.buildItem(o),this.addPendingElement(e)):(n.push(i[o]),i[o].setAsParent(),a[o].parent!==void 0?this.buildElementParenting(e,a[o].parent,n):e.setHierarchy(n))),o+=1},BaseRenderer.prototype.addPendingElement=function(e){this.pendingElements.push(e)},BaseRenderer.prototype.searchExtraCompositions=function(e){var r,n=e.length;for(r=0;r<n;r+=1)if(e[r].xt){var i=this.createComp(e[r]);i.initExpressions(),this.globalData.projectInterface.registerComposition(i)}},BaseRenderer.prototype.getElementById=function(e){var r,n=this.elements.length;for(r=0;r<n;r+=1)if(this.elements[r].data.ind===e)return this.elements[r];return null},BaseRenderer.prototype.getElementByPath=function(e){var r=e.shift(),n;if(typeof r=="number")n=this.elements[r];else{var i,a=this.elements.length;for(i=0;i<a;i+=1)if(this.elements[i].data.nm===r){n=this.elements[i];break}}return e.length===0?n:n.getElementByPath(e)},BaseRenderer.prototype.setupGlobalData=function(e,r){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,r),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 r=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:r,localMat:r,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 r,n=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(r=this.finalTransform.mProp.v.props,n.cloneFromProps(r),i=0;i<a;i+=1)n.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 r=0,n=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;r<n;)this.localTransforms[r]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[r]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),r+=1;if(this.finalTransform._localMatMdf){var i=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(i),r=1;r<n;r+=1){var a=this.localTransforms[r].matrix;i.multiply(a)}i.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var o=this.finalTransform.localOpacity;for(r=0;r<n;r+=1)o*=this.localTransforms[r].opacity*.01;this.finalTransform.localOpacity=o}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var r=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(r.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var n=0,i=r.length;for(n=0;n<i;n+=1)this.localTransforms.push(r[n])}}},globalToLocal:function(r){var n=[];n.push(this.finalTransform);for(var i=!0,a=this.comp;i;)a.finalTransform?(a.data.hasMask&&n.splice(0,0,a.finalTransform),a=a.comp):i=!1;var o,s=n.length,l;for(o=0;o<s;o+=1)l=n[o].mat.applyToPointArray(0,0,0),r=[r[0]-l[0],r[1]-l[1],0];return r},mHelper:new Matrix};function MaskElement(e,r,n){this.data=e,this.element=r,this.globalData=n,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=[],h,x,f=createElementID(),g,v,m,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 p;if(l[a].x.k!==0?(b="mask",d="mask",E=PropertyFactory.getProp(this.element,l[a].x,0,null,this.element),p=createElementID(),v=createNS("filter"),v.setAttribute("id",p),m=createNS("feMorphology"),m.setAttribute("operator","erode"),m.setAttribute("in","SourceGraphic"),m.setAttribute("radius","0"),v.appendChild(m),i.appendChild(v),s.setAttribute("stroke",l[a].mode==="s"?"#000000":"#ffffff")):(m=null,E=null),this.storedData[a]={elem:s,x:E,expan:m,lastPath:"",lastOperator:"",filterId:p,lastRadius:0},l[a].mode==="i"){x=u.length;var y=createNS("g");for(h=0;h<x;h+=1)y.appendChild(u[h]);var S=createNS("mask");S.setAttribute("mask-type","alpha"),S.setAttribute("id",f+"_"+c),S.appendChild(s),i.appendChild(S),y.setAttribute("mask","url("+getLocationHref()+"#"+f+"_"+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",f),this.element.maskedElement.setAttribute(d,"url("+getLocationHref()+"#"+f+")"),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 r=this.element.finalTransform.mat,n,i=this.masksProperties.length;for(n=0;n<i;n+=1)if((this.viewData[n].prop._mdf||e)&&this.drawPath(this.masksProperties[n],this.viewData[n].prop.v,this.viewData[n]),(this.viewData[n].op._mdf||e)&&this.viewData[n].elem.setAttribute("fill-opacity",this.viewData[n].op.v),this.masksProperties[n].mode!=="n"&&(this.viewData[n].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[n].invRect.setAttribute("transform",r.getInverseMatrix().to2dCSS()),this.storedData[n].x&&(this.storedData[n].x._mdf||e))){var a=this.storedData[n].expan;this.storedData[n].x.v<0?(this.storedData[n].lastOperator!=="erode"&&(this.storedData[n].lastOperator="erode",this.storedData[n].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[n].filterId+")")),a.setAttribute("radius",-this.storedData[n].x.v)):(this.storedData[n].lastOperator!=="dilate"&&(this.storedData[n].lastOperator="dilate",this.storedData[n].elem.setAttribute("filter",null)),this.storedData[n].elem.setAttribute("stroke-width",this.storedData[n].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,r,n){var i=" M"+r.v[0][0]+","+r.v[0][1],a,o;for(o=r._length,a=1;a<o;a+=1)i+=" C"+r.o[a-1][0]+","+r.o[a-1][1]+" "+r.i[a][0]+","+r.i[a][1]+" "+r.v[a][0]+","+r.v[a][1];if(r.c&&o>1&&(i+=" C"+r.o[a-1][0]+","+r.o[a-1][1]+" "+r.i[0][0]+","+r.i[0][1]+" "+r.v[0][0]+","+r.v[0][1]),n.lastPath!==i){var s="";n.elem&&(r.c&&(s=e.inv?this.solidPath+i:i),n.elem.setAttribute("d",s)),n.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=r,e.createAlphaToLuminanceFilter=n;function r(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 n(){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 r,n="SourceGraphic",i=e.data.ef?e.data.ef.length:0,a=createElementID(),o=filtersFactory.createFilter(a,!0),s=0;this.filters=[];var l;for(r=0;r<i;r+=1){l=null;var c=e.data.ef[r].ty;if(registeredEffects$1[c]){var u=registeredEffects$1[c].effect;l=new u(o,e.effectsManager.effectElements[r],e,idPrefix+s,n),n=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 r,n=this.filters.length;for(r=0;r<n;r+=1)this.filters[r].renderFrame(e)},SVGEffects.prototype.getEffects=function(e){var r,n=this.filters.length,i=[];for(r=0;r<n;r+=1)this.filters[r].type===e&&i.push(this.filters[r]);return i};function registerEffect$1(e,r,n){registeredEffects$1[e]={effect:r,countsAsEffect:n}}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 r=null;if(this.data.td){this.matteMasks={};var n=createNS("g");n.setAttribute("id",this.layerId),n.appendChild(this.layerElement),r=n,this.globalData.defs.appendChild(n)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),r=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,r?r.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(r){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[r]){var n=this.layerId+"_"+r,i,a,o,s;if(r===1||r===3){var l=createNS("mask");l.setAttribute("id",n),l.setAttribute("mask-type",r===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&&r===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(r===2){var c=createNS("mask");c.setAttribute("id",n),c.setAttribute("mask-type","alpha");var u=createNS("g");c.appendChild(u),i=createElementID(),a=filtersFactory.createFilter(i);var h=createNS("feComponentTransfer");h.setAttribute("in","SourceGraphic"),a.appendChild(h);var x=createNS("feFuncA");x.setAttribute("type","table"),x.setAttribute("tableValues","1.0 0.0"),h.appendChild(x),this.globalData.defs.appendChild(a);var f=createNS("rect");f.setAttribute("width",this.comp.data.w),f.setAttribute("height",this.comp.data.h),f.setAttribute("x","0"),f.setAttribute("y","0"),f.setAttribute("fill","#ffffff"),f.setAttribute("opacity","0"),u.setAttribute("filter","url("+getLocationHref()+"#"+i+")"),u.appendChild(f),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(f),s.appendChild(this.layerElement),u.appendChild(s)),this.globalData.defs.appendChild(c)}this.matteMasks[r]=n}return this.matteMasks[r]},setMatte:function(r){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+r+")")}};function HierarchyElement(){}HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(r){this.hierarchy=r},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(n,i,a){this.initFrame(),this.initBaseData(n,i,a),this.initTransform(n,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 n=this.baseElement||this.layerElement;n.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var n=this.baseElement||this.layerElement;n.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(n){this._mdf=!1,this.prepareRenderableFrame(n),this.prepareProperties(n,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};extendPrototype([RenderableElement,createProxyFunction(e)],RenderableDOMElement)})();function IImageElement(e,r,n){this.assetData=r.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=r.slotManager.getProp(this.assetData)),this.initElement(e,r,n),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,r){this.elem=e,this.pos=r}function IShapeElement(){}IShapeElement.prototype={addShapeToModifiers:function(r){var n,i=this.shapeModifiers.length;for(n=0;n<i;n+=1)this.shapeModifiers[n].addShape(r)},isShapeInAnimatedModifiers:function(r){for(var n=0,i=this.shapeModifiers.length;n<i;)if(this.shapeModifiers[n].isAnimatedWithShape(r))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var r,n=this.shapes.length;for(r=0;r<n;r+=1)this.shapes[r].sh.reset();n=this.shapeModifiers.length;var i;for(r=n-1;r>=0&&(i=this.shapeModifiers[r].processShapes(this._isFirstFrame),!i);r-=1);}},searchProcessedElement:function(r){for(var n=this.processedElements,i=0,a=n.length;i<a;){if(n[i].elem===r)return n[i].pos;i+=1}return 0},addProcessedElement:function(r,n){for(var i=this.processedElements,a=i.length;a;)if(a-=1,i[a].elem===r){i[a].pos=n;return}i.push(new ProcessedElement(r,n))},prepareFrame:function(r){this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(e,r,n){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=n,this.lvl=r,this._isAnimated=!!n.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,r){this.data=e,this.type=e.ty,this.d="",this.lvl=r,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,r,n,i){this.elem=e,this.frameId=-1,this.dataProps=createSizedArray(r.length),this.renderer=n,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",r.length?r.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(i);var a,o=r.length||0,s;for(a=0;a<o;a+=1)s=PropertyFactory.getProp(e,r[a].v,0,0,this),this.k=s.k||this.k,this.dataProps[a]={n:r[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 r=0,n=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),r=0;r<n;r+=1)this.dataProps[r].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[r].p.v:this.dashArray[r]=this.dataProps[r].p.v:this.dashoffset[0]=this.dataProps[r].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty);function SVGStrokeStyleData(e,r,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,r.o,0,.01,this),this.w=PropertyFactory.getProp(e,r.w,0,null,this),this.d=new DashProperty(e,r.d||{},"svg",this),this.c=PropertyFactory.getProp(e,r.c,1,255,this),this.style=n,this._isAnimated=!!this._isAnimated}extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData);function SVGFillStyleData(e,r,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,r.o,0,.01,this),this.c=PropertyFactory.getProp(e,r.c,1,255,this),this.style=n}extendPrototype([DynamicPropertyContainer],SVGFillStyleData);function SVGNoStyleData(e,r,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=n}extendPrototype([DynamicPropertyContainer],SVGNoStyleData);function GradientProperty(e,r,n){this.data=r,this.c=createTypedArray("uint8c",r.p*4);var i=r.k.k[0].s?r.k.k[0].s.length-r.p*4:r.k.k.length-r.p*4;this.o=createTypedArray("float32",i),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=i,this.initDynamicPropertyContainer(n),this.prop=PropertyFactory.getProp(e,r.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}GradientProperty.prototype.comparePoints=function(e,r){for(var n=0,i=this.o.length/2,a;n<i;){if(a=Math.abs(e[n*4]-e[r*4+n*2]),a>.01)return!1;n+=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,r=this.data.k.k.length;e<r;){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 r,n=this.data.p*4,i,a;for(r=0;r<n;r+=1)i=r%4===0?100:255,a=Math.round(this.prop.v[r]*i),this.c[r]!==a&&(this.c[r]=a,this._cmdf=!e);if(this.o.length)for(n=this.prop.v.length,r=this.data.p*4;r<n;r+=1)i=r%2===0?100:1,a=r%2===0?Math.round(this.prop.v[r]*100):this.prop.v[r],this.o[r-this.data.p*4]!==a&&(this.o[r-this.data.p*4]=a,this._omdf=!e);this._mdf=!e}},extendPrototype([DynamicPropertyContainer],GradientProperty);function SVGGradientFillStyleData(e,r,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,r,n)}SVGGradientFillStyleData.prototype.initGradientData=function(e,r,n){this.o=PropertyFactory.getProp(e,r.o,0,.01,this),this.s=PropertyFactory.getProp(e,r.s,1,null,this),this.e=PropertyFactory.getProp(e,r.e,1,null,this),this.h=PropertyFactory.getProp(e,r.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(e,r.a||{k:0},0,degToRads,this),this.g=new GradientProperty(e,r.g,this),this.style=n,this.stops=[],this.setGradientData(n.pElem,r),this.setGradientOpacity(r,n),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(e,r){var n=createElementID(),i=createNS(r.t===1?"linearGradient":"radialGradient");i.setAttribute("id",n),i.setAttribute("spreadMethod","pad"),i.setAttribute("gradientUnits","userSpaceOnUse");var a=[],o,s,l;for(l=r.g.p*4,s=0;s<l;s+=4)o=createNS("stop"),i.appendChild(o),a.push(o);e.setAttribute(r.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+n+")"),this.gf=i,this.cst=a},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,r){if(this.g._hasOpacity&&!this.g._collapsable){var n,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 h=this.stops;for(i=e.g.p*4;i<a;i+=2)n=createNS("stop"),n.setAttribute("stop-color","rgb(255,255,255)"),u.appendChild(n),h.push(n);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=h,this.maskId=c,r.msElem=s}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData);function SVGGradientStrokeStyleData(e,r,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(e,r.w,0,null,this),this.d=new DashProperty(e,r.d||{},"svg",this),this.initGradientData(e,r,n),this._isAnimated=!!this._isAnimated}extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(e,r,n){this.transform={mProps:e,op:r,container:n},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var buildShapeString=function(r,n,i,a){if(n===0)return"";var o=r.o,s=r.i,l=r.v,c,u=" M"+a.applyToPointStringified(l[0][0],l[0][1]);for(c=1;c<n;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&&n&&(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,r=new Matrix,n={createRenderFunction:i};function i(x){switch(x.ty){case"fl":return l;case"gf":return u;case"gs":return c;case"st":return h;case"sh":case"el":case"rc":case"sr":return s;case"tr":return a;case"no":return o;default:return null}}function a(x,f,g){(g||f.transform.op._mdf)&&f.transform.container.setAttribute("opacity",f.transform.op.v),(g||f.transform.mProps._mdf)&&f.transform.container.setAttribute("transform",f.transform.mProps.v.to2dCSS())}function o(){}function s(x,f,g){var v,m,E,b,d,p,y=f.styles.length,S=f.lvl,k,P,w,D;for(p=0;p<y;p+=1){if(b=f.sh._mdf||g,f.styles[p].lvl<S){for(P=r.reset(),w=S-f.styles[p].lvl,D=f.transformers.length-1;!b&&w>0;)b=f.transformers[D].mProps._mdf||b,w-=1,D-=1;if(b)for(w=S-f.styles[p].lvl,D=f.transformers.length-1;w>0;)P.multiply(f.transformers[D].mProps.v),w-=1,D-=1}else P=e;if(k=f.sh.paths,m=k._length,b){for(E="",v=0;v<m;v+=1)d=k.shapes[v],d&&d._length&&(E+=buildShapeString(d,d._length,d.c,P));f.caches[p]=E}else E=f.caches[p];f.styles[p].d+=x.hd===!0?"":E,f.styles[p]._mdf=b||f.styles[p]._mdf}}function l(x,f,g){var v=f.style;(f.c._mdf||g)&&v.pElem.setAttribute("fill","rgb("+bmFloor(f.c.v[0])+","+bmFloor(f.c.v[1])+","+bmFloor(f.c.v[2])+")"),(f.o._mdf||g)&&v.pElem.setAttribute("fill-opacity",f.o.v)}function c(x,f,g){u(x,f,g),h(x,f,g)}function u(x,f,g){var v=f.gf,m=f.g._hasOpacity,E=f.s.v,b=f.e.v;if(f.o._mdf||g){var d=x.ty==="gf"?"fill-opacity":"stroke-opacity";f.style.pElem.setAttribute(d,f.o.v)}if(f.s._mdf||g){var p=x.t===1?"x1":"cx",y=p==="x1"?"y1":"cy";v.setAttribute(p,E[0]),v.setAttribute(y,E[1]),m&&!f.g._collapsable&&(f.of.setAttribute(p,E[0]),f.of.setAttribute(y,E[1]))}var S,k,P,w;if(f.g._cmdf||g){S=f.cst;var D=f.g.c;for(P=S.length,k=0;k<P;k+=1)w=S[k],w.setAttribute("offset",D[k*4]+"%"),w.setAttribute("stop-color","rgb("+D[k*4+1]+","+D[k*4+2]+","+D[k*4+3]+")")}if(m&&(f.g._omdf||g)){var M=f.g.o;for(f.g._collapsable?S=f.cst:S=f.ost,P=S.length,k=0;k<P;k+=1)w=S[k],f.g._collapsable||w.setAttribute("offset",M[k*2]+"%"),w.setAttribute("stop-opacity",M[k*2+1])}if(x.t===1)(f.e._mdf||g)&&(v.setAttribute("x2",b[0]),v.setAttribute("y2",b[1]),m&&!f.g._collapsable&&(f.of.setAttribute("x2",b[0]),f.of.setAttribute("y2",b[1])));else{var B;if((f.s._mdf||f.e._mdf||g)&&(B=Math.sqrt(Math.pow(E[0]-b[0],2)+Math.pow(E[1]-b[1],2)),v.setAttribute("r",B),m&&!f.g._collapsable&&f.of.setAttribute("r",B)),f.e._mdf||f.h._mdf||f.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]),V=f.h.v;V>=1?V=.99:V<=-1&&(V=-.99);var $=B*V,N=Math.cos(L+f.a.v)*$+E[0],T=Math.sin(L+f.a.v)*$+E[1];v.setAttribute("fx",N),v.setAttribute("fy",T),m&&!f.g._collapsable&&(f.of.setAttribute("fx",N),f.of.setAttribute("fy",T))}}}function h(x,f,g){var v=f.style,m=f.d;m&&(m._mdf||g)&&m.dashStr&&(v.pElem.setAttribute("stroke-dasharray",m.dashStr),v.pElem.setAttribute("stroke-dashoffset",m.dashoffset[0])),f.c&&(f.c._mdf||g)&&v.pElem.setAttribute("stroke","rgb("+bmFloor(f.c.v[0])+","+bmFloor(f.c.v[1])+","+bmFloor(f.c.v[2])+")"),(f.o._mdf||g)&&v.pElem.setAttribute("stroke-opacity",f.o.v),(f.w._mdf||g)&&(v.pElem.setAttribute("stroke-width",f.w.v),v.msElem&&v.msElem.setAttribute("stroke-width",f.w.v))}return n}();function SVGShapeElement(e,r,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,r,n),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,r=this.shapes.length,n,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<r;e+=1)n=this.shapes[e],n.styles.indexOf(o)!==-1&&(s.push(n),l=n._isAnimated||l);s.length>1&&l&&this.setShapesAsAnimated(s)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var r,n=e.length;for(r=0;r<n;r+=1)e[r].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(e,r){var n,i=new SVGStyleData(e,r),a=i.pElem;if(e.ty==="st")n=new SVGStrokeStyleData(this,e,i);else if(e.ty==="fl")n=new SVGFillStyleData(this,e,i);else if(e.ty==="gf"||e.ty==="gs"){var o=e.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;n=new o(this,e,i),this.globalData.defs.appendChild(n.gf),n.maskId&&(this.globalData.defs.appendChild(n.ms),this.globalData.defs.appendChild(n.of),a.setAttribute("mask","url("+getLocationHref()+"#"+n.maskId+")"))}else e.ty==="no"&&(n=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,n),n},SVGShapeElement.prototype.createGroupElement=function(e){var r=new ShapeGroupData;return e.ln&&r.gr.setAttribute("id",e.ln),e.cl&&r.gr.setAttribute("class",e.cl),e.bm&&(r.gr.style["mix-blend-mode"]=getBlendMode(e.bm)),r},SVGShapeElement.prototype.createTransformElement=function(e,r){var n=TransformPropertyFactory.getTransformProperty(this,e,this),i=new SVGTransformData(n,n.o,r);return this.addToAnimatedContents(e,i),i},SVGShapeElement.prototype.createShapeElement=function(e,r,n){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(r,n,a);return this.shapes.push(o),this.addShapeToModifiers(o),this.addToAnimatedContents(e,o),o},SVGShapeElement.prototype.addToAnimatedContents=function(e,r){for(var n=0,i=this.animatedContents.length;n<i;){if(this.animatedContents[n].element===r)return;n+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(e),element:r,data:e})},SVGShapeElement.prototype.setElementStyles=function(e){var r=e.styles,n,i=this.stylesList.length;for(n=0;n<i;n+=1)this.stylesList[n].closed||r.push(this.stylesList[n])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,r=this.itemsData.length;for(e=0;e<r;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),r=this.dynamicProperties.length,e=0;e<r;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(e,r,n,i,a,o,s){var l=[].concat(o),c,u=e.length-1,h,x,f=[],g=[],v,m,E;for(c=u;c>=0;c-=1){if(E=this.searchProcessedElement(e[c]),E?r[c]=n[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?r[c].style.closed=!1:r[c]=this.createStyleElement(e[c],a),e[c]._render&&r[c].style.pElem.parentNode!==i&&i.appendChild(r[c].style.pElem),f.push(r[c].style);else if(e[c].ty==="gr"){if(!E)r[c]=this.createGroupElement(e[c]);else for(x=r[c].it.length,h=0;h<x;h+=1)r[c].prevViewData[h]=r[c].it[h];this.searchShapes(e[c].it,r[c].it,r[c].prevViewData,r[c].gr,a+1,l,s),e[c]._render&&r[c].gr.parentNode!==i&&i.appendChild(r[c].gr)}else e[c].ty==="tr"?(E||(r[c]=this.createTransformElement(e[c],i)),v=r[c].transform,l.push(v)):e[c].ty==="sh"||e[c].ty==="rc"||e[c].ty==="el"||e[c].ty==="sr"?(E||(r[c]=this.createShapeElement(e[c],l,a)),this.setElementStyles(r[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?(m=r[c],m.closed=!1):(m=ShapeModifiers.getModifier(e[c].ty),m.init(this,e[c]),r[c]=m,this.shapeModifiers.push(m)),g.push(m)):e[c].ty==="rp"&&(E?(m=r[c],m.closed=!0):(m=ShapeModifiers.getModifier(e[c].ty),r[c]=m,m.init(this,e,c,r),this.shapeModifiers.push(m),s=!1),g.push(m));this.addProcessedElement(e[c],c+1)}for(u=f.length,c=0;c<u;c+=1)f[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,r=this.stylesList.length;for(e=0;e<r;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<r;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,r=this.animatedContents.length,n;for(e=0;e<r;e+=1)n=this.animatedContents[e],(this._isFirstFrame||n.element._isAnimated)&&n.data!==!0&&n.fn(n.data,n.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function LetterProps(e,r,n,i,a,o){this.o=e,this.sw=r,this.sc=n,this.fc=i,this.m=a,this.p=o,this._mdf={o:!0,sw:!!r,sc:!!n,fc:!!i,m:!0,p:!0}}LetterProps.prototype.update=function(e,r,n,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!==r&&(this.sw=r,this._mdf.sw=!0,s=!0),this.sc!==n&&(this.sc=n,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,r){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,r.d&&r.d.sid&&(r.d=e.globalData.slotManager.getProp(r.d)),this.data=r,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,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);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 r=this.currentData,n=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)n!==this.keysIndex?o=this.effectsSequence[i](o,o.t):o=this.effectsSequence[i](this.currentData,o.t);r!==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,r=this.elem.comp.renderedFrame,n=0,i=e.length;n<=i-1&&!(n===i-1||e[n+1].t>r);)n+=1;return this.keysIndex!==n&&(this.keysIndex=n),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var r=[],n=0,i=e.length,a,o,s=!1,l=!1,c="";n<i;)s=l,l=!1,a=e.charCodeAt(n),c=e.charAt(n),FontManager.isCombinedCharacter(a)?s=!0:a>=55296&&a<=56319?FontManager.isRegionalFlag(e,n)?c=e.substr(n,14):(o=e.charCodeAt(n+1),o>=56320&&o<=57343&&(FontManager.isModifier(a,o)?(c=e.substr(n,2),s=!0):FontManager.isFlagEmoji(e.substr(n,4))?c=e.substr(n,4):c=e.substr(n,2))):a>56319?(o=e.charCodeAt(n+1),FontManager.isVariationSelector(a)&&(s=!0)):FontManager.isZeroWidthJoiner(a)&&(s=!0,l=!0),s?(r[r.length-1]+=c,s=!1):r.push(c),n+=c.length;return r},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var r=this.elem.globalData.fontManager,n=this.data,i=[],a,o,s,l=0,c,u=n.m.g,h=0,x=0,f=0,g=[],v=0,m=0,E,b,d=r.getFontByName(e.f),p,y=0,S=getFontProperties(d);e.fWeight=S.weight,e.fStyle=S.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),o=e.finalText.length,e.finalLineHeight=e.lh;var k=e.tr/1e3*e.finalSize,P;if(e.sz)for(var w=!0,D=e.sz[0],M=e.sz[1],B,L;w;){L=this.buildFinalText(e.t),B=0,v=0,o=L.length,k=e.tr/1e3*e.finalSize;var V=-1;for(a=0;a<o;a+=1)P=L[a].charCodeAt(0),s=!1,L[a]===" "?V=a:(P===13||P===3)&&(v=0,s=!0,B+=e.finalLineHeight||e.finalSize*1.2),r.chars?(p=r.getCharData(L[a],d.fStyle,d.fFamily),y=s?0:p.w*e.finalSize/100):y=r.measureText(L[a],e.f,e.finalSize),v+y>D&&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+=k);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,w=!1)}v=-k,y=0;var $=0,N;for(a=0;a<o;a+=1)if(s=!1,N=e.finalText[a],P=N.charCodeAt(0),P===13||P===3?($=0,g.push(v),m=v>m?v:m,v=-2*k,c="",s=!0,f+=1):c=N,r.chars?(p=r.getCharData(N,d.fStyle,r.getFontByName(e.f).fFamily),y=s?0:p.w*e.finalSize/100):y=r.measureText(c,e.f,e.finalSize),N===" "?$+=y+k:(v+=y+k+$,$=0),i.push({l:y,an:y,add:h,n:s,anIndexes:[],val:c,line:f,animatorJustifyOffset:0}),u==2){if(h+=y,c===""||c===" "||a===o-1){for((c===""||c===" ")&&(h-=y);x<=a;)i[x].an=h,i[x].ind=l,i[x].extra=y,x+=1;l+=1,h=0}}else if(u==3){if(h+=y,c===""||a===o-1){for(c===""&&(h-=y);x<=a;)i[x].an=h,i[x].ind=l,i[x].extra=y,x+=1;h=0,l+=1}}else i[l].ind=l,i[l].extra=0,l+=1;if(e.l=i,m=v>m?v:m,g.push(v),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=m,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 T=n.a,I,A;b=T.length;var C,F,_=[];for(E=0;E<b;E+=1){for(I=T[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),F=0,C=I.s.b,a=0;a<o;a+=1)A=i[a],A.anIndexes[E]=F,(C==1&&A.val!==""||C==2&&A.val!==""&&A.val!==" "||C==3&&(A.n||A.val==" "||a==o-1)||C==4&&(A.n||a==o-1))&&(I.s.rn===1&&_.push(F),F+=1);n.a[E].s.totalChars=F;var O=-1,U;if(I.s.rn===1)for(a=0;a<o;a+=1)A=i[a],O!=A.anIndexes[E]&&(O=A.anIndexes[E],U=_.splice(Math.floor(Math.random()*_.length),1)[0]),A.anIndexes[E]=U}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,r){r=r===void 0?this.keysIndex:r;var n=this.copyData({},this.data.d.k[r].s);n=this.copyData(n,e),this.data.d.k[r].s=n,this.recalculate(r),this.setCurrentData(n),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(e){var r=this.data.d.k[e].s;r.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(r)},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,r=Math.min,n=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,h=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:h=1+this.xe.v/100;var x=BezierFactory.getBezierEasing(l,c,u,h).get,f=0,g=this.finalS,v=this.finalE,m=this.data.sh;if(m===2)v===g?f=s>=v?1:0:f=e(0,r(.5/(v-g)+(s-g)/(v-g),1)),f=x(f);else if(m===3)v===g?f=s>=v?0:1:f=1-e(0,r(.5/(v-g)+(s-g)/(v-g),1)),f=x(f);else if(m===4)v===g?f=0:(f=e(0,r(.5/(v-g)+(s-g)/(v-g),1)),f<.5?f*=2:f=1-2*(f-.5)),f=x(f);else if(m===5){if(v===g)f=0;else{var E=v-g;s=r(e(0,s+.5-g),v-g);var b=-E/2+s,d=E/2;f=Math.sqrt(1-b*b/(d*d))}f=x(f)}else m===6?(v===g?f=0:(s=r(e(0,s+.5-g),v-g),f=(1+Math.cos(Math.PI+Math.PI*2*s/(v-g)))/2),f=x(f)):(s>=n(g)&&(s-g<0?f=e(0,r(r(v,1)-(g-s),1)):f=e(0,r(v-s,1))),f=x(f));if(this.sm.v!==100){var p=this.sm.v*.01;p===0&&(p=1e-8);var y=.5-p*.5;f<y?f=0:(f=(f-y)/p,f>1&&(f=1))}return f*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,h=this.e.v/l+c;if(u>h){var x=u;u=h,h=x}this.finalS=u,this.finalE=h}},extendPrototype([DynamicPropertyContainer],i);function a(o,s,l){return new i(o,s)}return{getTextSelectorProp:a}}();function TextAnimatorDataProperty(e,r,n){var i={propType:!1},a=PropertyFactory.getProp,o=r.a;this.a={r:o.r?a(e,o.r,0,degToRads,n):i,rx:o.rx?a(e,o.rx,0,degToRads,n):i,ry:o.ry?a(e,o.ry,0,degToRads,n):i,sk:o.sk?a(e,o.sk,0,degToRads,n):i,sa:o.sa?a(e,o.sa,0,degToRads,n):i,s:o.s?a(e,o.s,1,.01,n):i,a:o.a?a(e,o.a,1,0,n):i,o:o.o?a(e,o.o,0,.01,n):i,p:o.p?a(e,o.p,1,0,n):i,sw:o.sw?a(e,o.sw,0,0,n):i,sc:o.sc?a(e,o.sc,1,0,n):i,fc:o.fc?a(e,o.fc,1,0,n):i,fh:o.fh?a(e,o.fh,0,0,n):i,fs:o.fs?a(e,o.fs,0,.01,n):i,fb:o.fb?a(e,o.fb,0,.01,n):i,t:o.t?a(e,o.t,0,0,n):i},this.s=TextSelectorProp.getTextSelectorProp(e,r.s,n),this.s.t=r.s.t}function TextAnimatorProperty(e,r,n){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=r,this._elem=n,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(n)}TextAnimatorProperty.prototype.searchProperties=function(){var e,r=this._textData.a.length,n,i=PropertyFactory.getProp;for(e=0;e<r;e+=1)n=this._textData.a[e],this._animatorsData[e]=new TextAnimatorDataProperty(this._elem,n,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,r){if(this.lettersChangedFlag=r,!(!this._mdf&&!this._isFirstFrame&&!r&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var n=this._moreOptions.alignment.v,i=this._animatorsData,a=this._textData,o=this.mHelper,s=this._renderType,l=this.renderedLetters.length,c,u,h,x,f=e.l,g,v,m,E,b,d,p,y,S,k,P,w,D,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(w=0,h=0;h<x;h+=1)V=bez.buildBezierData(L.v[h],L.v[h+1],[L.o[h][0]-L.v[h][0],L.o[h][1]-L.v[h][1]],[L.i[h+1][0]-L.v[h+1][0],L.i[h+1][1]-L.v[h+1][1]]),g.tLength+=V.segmentLength,g.segments.push(V),w+=V.segmentLength;h=x,B.v.c&&(V=bez.buildBezierData(L.v[h],L.v[0],[L.o[h][0]-L.v[h][0],L.o[h][1]-L.v[h][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),w+=V.segmentLength),this._pathData.pi=g}if(g=this._pathData.pi,v=this._pathData.f.v,p=0,d=1,E=0,b=!0,k=g.segments,v<0&&B.v.c)for(g.tLength<Math.abs(v)&&(v=-Math.abs(v)%g.tLength),p=k.length-1,S=k[p].points,d=S.length-1;v<0;)v+=S[d].partialLength,d-=1,d<0&&(p-=1,S=k[p].points,d=S.length-1);S=k[p].points,y=S[d-1],m=S[d],P=m.partialLength}x=f.length,c=0,u=0;var $=e.finalSize*1.2*.714,N=!0,T,I,A,C,F;C=i.length;var _,O=-1,U,q,H,j=v,G=p,R=d,W=-1,Y,X,Z,J,K,ee,re,ne,ie="",le=this.defaultPropsArray,fe;if(e.j===2||e.j===1){var he=0,ye=0,be=e.j===2?-.5:-1,Ee=0,Te=!0;for(h=0;h<x;h+=1)if(f[h].n){for(he&&(he+=ye);Ee<h;)f[Ee].animatorJustifyOffset=he,Ee+=1;he=0,Te=!0}else{for(A=0;A<C;A+=1)T=i[A].a,T.t.propType&&(Te&&e.j===2&&(ye+=T.t.v*be),I=i[A].s,_=I.getMult(f[h].anIndexes[A],a.a[A].s.totalChars),_.length?he+=T.t.v*_[0]*be:he+=T.t.v*_*be);Te=!1}for(he&&(he+=ye);Ee<h;)f[Ee].animatorJustifyOffset=he,Ee+=1}for(h=0;h<x;h+=1){if(o.reset(),Y=1,f[h].n)c=0,u+=e.yOffset,u+=N?1:0,v=j,N=!1,this._hasMaskedPath&&(p=G,d=R,S=k[p].points,y=S[d-1],m=S[d],P=m.partialLength,E=0),ie="",ne="",ee="",fe="",le=this.defaultPropsArray;else{if(this._hasMaskedPath){if(W!==f[h].line){switch(e.j){case 1:v+=w-e.lineWidths[f[h].line];break;case 2:v+=(w-e.lineWidths[f[h].line])/2;break}W=f[h].line}O!==f[h].ind&&(f[O]&&(v+=f[O].extra),v+=f[h].an/2,O=f[h].ind),v+=n[0]*f[h].an*.005;var Ce=0;for(A=0;A<C;A+=1)T=i[A].a,T.p.propType&&(I=i[A].s,_=I.getMult(f[h].anIndexes[A],a.a[A].s.totalChars),_.length?Ce+=T.p.v[0]*_[0]:Ce+=T.p.v[0]*_),T.a.propType&&(I=i[A].s,_=I.getMult(f[h].anIndexes[A],a.a[A].s.totalChars),_.length?Ce+=T.a.v[0]*_[0]:Ce+=T.a.v[0]*_);for(b=!0,this._pathData.a.v&&(v=f[0].an*.5+(w-this._pathData.f.v-f[0].an*.5-f[f.length-1].an*.5)*O/(x-1),v+=this._pathData.f.v);b;)E+P>=v+Ce||!S?(D=(v+Ce-E)/m.partialLength,q=y.point[0]+(m.point[0]-y.point[0])*D,H=y.point[1]+(m.point[1]-y.point[1])*D,o.translate(-n[0]*f[h].an*.005,-(n[1]*$)*.01),b=!1):S&&(E+=m.partialLength,d+=1,d>=S.length&&(d=0,p+=1,k[p]?S=k[p].points:B.v.c?(d=0,p=0,S=k[p].points):(E-=m.partialLength,S=null)),S&&(y=m,m=S[d],P=m.partialLength));U=f[h].an/2-f[h].add,o.translate(-U,0,0)}else U=f[h].an/2-f[h].add,o.translate(-U,0,0),o.translate(-n[0]*f[h].an*.005,-n[1]*$*.01,0);for(A=0;A<C;A+=1)T=i[A].a,T.t.propType&&(I=i[A].s,_=I.getMult(f[h].anIndexes[A],a.a[A].s.totalChars),(c!==0||e.j!==0)&&(this._hasMaskedPath?_.length?v+=T.t.v*_[0]:v+=T.t.v*_:_.length?c+=T.t.v*_[0]:c+=T.t.v*_));for(e.strokeWidthAnim&&(Z=e.sw||0),e.strokeColorAnim&&(e.sc?X=[e.sc[0],e.sc[1],e.sc[2]]:X=[0,0,0]),e.fillColorAnim&&e.fc&&(J=[e.fc[0],e.fc[1],e.fc[2]]),A=0;A<C;A+=1)T=i[A].a,T.a.propType&&(I=i[A].s,_=I.getMult(f[h].anIndexes[A],a.a[A].s.totalChars),_.length?o.translate(-T.a.v[0]*_[0],-T.a.v[1]*_[1],T.a.v[2]*_[2]):o.translate(-T.a.v[0]*_,-T.a.v[1]*_,T.a.v[2]*_));for(A=0;A<C;A+=1)T=i[A].a,T.s.propType&&(I=i[A].s,_=I.getMult(f[h].anIndexes[A],a.a[A].s.totalChars),_.length?o.scale(1+(T.s.v[0]-1)*_[0],1+(T.s.v[1]-1)*_[1],1):o.scale(1+(T.s.v[0]-1)*_,1+(T.s.v[1]-1)*_,1));for(A=0;A<C;A+=1){if(T=i[A].a,I=i[A].s,_=I.getMult(f[h].anIndexes[A],a.a[A].s.totalChars),T.sk.propType&&(_.length?o.skewFromAxis(-T.sk.v*_[0],T.sa.v*_[1]):o.skewFromAxis(-T.sk.v*_,T.sa.v*_)),T.r.propType&&(_.length?o.rotateZ(-T.r.v*_[2]):o.rotateZ(-T.r.v*_)),T.ry.propType&&(_.length?o.rotateY(T.ry.v*_[1]):o.rotateY(T.ry.v*_)),T.rx.propType&&(_.length?o.rotateX(T.rx.v*_[0]):o.rotateX(T.rx.v*_)),T.o.propType&&(_.length?Y+=(T.o.v*_[0]-Y)*_[0]:Y+=(T.o.v*_-Y)*_),e.strokeWidthAnim&&T.sw.propType&&(_.length?Z+=T.sw.v*_[0]:Z+=T.sw.v*_),e.strokeColorAnim&&T.sc.propType)for(K=0;K<3;K+=1)_.length?X[K]+=(T.sc.v[K]-X[K])*_[0]:X[K]+=(T.sc.v[K]-X[K])*_;if(e.fillColorAnim&&e.fc){if(T.fc.propType)for(K=0;K<3;K+=1)_.length?J[K]+=(T.fc.v[K]-J[K])*_[0]:J[K]+=(T.fc.v[K]-J[K])*_;T.fh.propType&&(_.length?J=addHueToRGB(J,T.fh.v*_[0]):J=addHueToRGB(J,T.fh.v*_)),T.fs.propType&&(_.length?J=addSaturationToRGB(J,T.fs.v*_[0]):J=addSaturationToRGB(J,T.fs.v*_)),T.fb.propType&&(_.length?J=addBrightnessToRGB(J,T.fb.v*_[0]):J=addBrightnessToRGB(J,T.fb.v*_))}}for(A=0;A<C;A+=1)T=i[A].a,T.p.propType&&(I=i[A].s,_=I.getMult(f[h].anIndexes[A],a.a[A].s.totalChars),this._hasMaskedPath?_.length?o.translate(0,T.p.v[1]*_[0],-T.p.v[2]*_[1]):o.translate(0,T.p.v[1]*_,-T.p.v[2]*_):_.length?o.translate(T.p.v[0]*_[0],T.p.v[1]*_[1],-T.p.v[2]*_[2]):o.translate(T.p.v[0]*_,T.p.v[1]*_,-T.p.v[2]*_));if(e.strokeWidthAnim&&(ee=Z<0?0:Z),e.strokeColorAnim&&(re="rgb("+Math.round(X[0]*255)+","+Math.round(X[1]*255)+","+Math.round(X[2]*255)+")"),e.fillColorAnim&&e.fc&&(ne="rgb("+Math.round(J[0]*255)+","+Math.round(J[1]*255)+","+Math.round(J[2]*255)+")"),this._hasMaskedPath){if(o.translate(0,-e.ls),o.translate(0,n[1]*$*.01+u,0),this._pathData.p.v){M=(m.point[1]-y.point[1])/(m.point[0]-y.point[0]);var _e=Math.atan(M)*180/Math.PI;m.point[0]<y.point[0]&&(_e+=180),o.rotate(-_e*Math.PI/180)}o.translate(q,H,0),v-=n[0]*f[h].an*.005,f[h+1]&&O!==f[h+1].ind&&(v+=f[h].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(f[h].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[f[h].line]),0,0);break;case 2:o.translate(f[h].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[f[h].line])/2,0,0);break}o.translate(0,-e.ls),o.translate(U,0,0),o.translate(n[0]*f[h].an*.005,n[1]*$*.01,0),c+=f[h].l+e.tr*.001*e.finalSize}s==="html"?ie=o.toCSS():s==="svg"?ie=o.to2dCSS():le=[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<=h?(F=new LetterProps(fe,ee,re,ne,ie,le),this.renderedLetters.push(F),l+=1,this.lettersChangedFlag=!0):(F=this.renderedLetters[h],this.lettersChangedFlag=F.update(fe,ee,re,ne,ie,le)||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,r,n){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,r,n),this.textProperty=new TextProperty(this,e.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(e.t,this.renderType,this),this.initTransform(e,r,n),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,r){var n,i=r.length,a,o="";for(n=0;n<i;n+=1)r[n].ty==="sh"&&(a=r[n].ks.k,o+=buildShapeString(a,a.i.length,!0,e));return o},ITextElement.prototype.updateDocumentData=function(e,r){this.textProperty.updateDocumentData(e,r)},ITextElement.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},ITextElement.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},ITextElement.prototype.applyTextPropertiesToMatrix=function(e,r,n,i,a){switch(e.ps&&r.translate(e.ps[0],e.ps[1]+e.ascent,0),r.translate(0,-e.ls,0),e.j){case 1:r.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n]),0,0);break;case 2:r.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n])/2,0,0);break}r.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,r,n){this.textSpans=[],this.renderType="svg",this.initElement(e,r,n)}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 r=0,n=e.length,i=[],a="";r<n;)e[r]===String.fromCharCode(13)||e[r]===String.fromCharCode(3)?(i.push(a),a=""):a+=e[r],r+=1;return i.push(a),i},SVGTextLottieElement.prototype.buildShapeData=function(e,r){if(e.shapes&&e.shapes.length){var n=e.shapes[0];if(n.it){var i=n.it[n.it.length-1];i.s&&(i.s.k[0]=r,i.s.k[1]=r)}}return e},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var e,r,n=this.textProperty.currentData;this.renderedLetters=createSizedArray(n?n.l.length:0),n.fc?this.layerElement.setAttribute("fill",this.buildColor(n.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),n.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(n.sc)),this.layerElement.setAttribute("stroke-width",n.sw)),this.layerElement.setAttribute("font-size",n.finalSize);var i=this.globalData.fontManager.getFontByName(n.f);if(i.fClass)this.layerElement.setAttribute("class",i.fClass);else{this.layerElement.setAttribute("font-family",i.fFamily);var a=n.fWeight,o=n.fStyle;this.layerElement.setAttribute("font-style",o),this.layerElement.setAttribute("font-weight",a)}this.layerElement.setAttribute("aria-label",n.t);var s=n.l||[],l=!!this.globalData.fontManager.chars;r=s.length;var c,u=this.mHelper,h="",x=this.data.singleShape,f=0,g=0,v=!0,m=n.tr*.001*n.finalSize;if(x&&!l&&!n.sz){var E=this.textContainer,b="start";switch(n.j){case 1:b="end";break;case 2:b="middle";break;default:b="start";break}E.setAttribute("text-anchor",b),E.setAttribute("letter-spacing",m);var d=this.buildTextContents(n.finalText);for(r=d.length,g=n.ps?n.ps[1]+n.ascent:0,e=0;e<r;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+=n.finalLineHeight;this.layerElement.appendChild(E)}else{var p=this.textSpans.length,y;for(e=0;e<r;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!l||!x||e===0){if(c=p>e?this.textSpans[e].span:createNS(l?"g":"text"),p<=e){if(c.setAttribute("stroke-linecap","butt"),c.setAttribute("stroke-linejoin","round"),c.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=c,l){var S=createNS("g");c.appendChild(S),this.textSpans[e].childSpan=S}this.textSpans[e].span=c,this.layerElement.appendChild(c)}c.style.display="inherit"}if(u.reset(),x&&(s[e].n&&(f=-m,g+=n.yOffset,g+=v?1:0,v=!1),this.applyTextPropertiesToMatrix(n,u,s[e].line,f,g),f+=s[e].l||0,f+=m),l){y=this.globalData.fontManager.getCharData(n.finalText[e],i.fStyle,this.globalData.fontManager.getFontByName(n.f).fFamily);var k;if(y.t===1)k=new SVGCompElement(y.data,this.globalData,this);else{var P=emptyShapeData;y.data&&y.data.shapes&&(P=this.buildShapeData(y.data,n.finalSize)),k=new SVGShapeElement(P,this.globalData,this)}if(this.textSpans[e].glyph){var w=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(w.layerElement),w.destroy()}this.textSpans[e].glyph=k,k._debug=!0,k.prepareFrame(0),k.renderFrame(),this.textSpans[e].childSpan.appendChild(k.layerElement),y.t===1&&this.textSpans[e].childSpan.setAttribute("transform","scale("+n.finalSize/100+","+n.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",h)}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,r=this.textSpans.length,n;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<r;e+=1)n=this.textSpans[e].glyph,n&&(n.prepareFrame(this.comp.renderedFrame-this.data.st),n._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,r,n=this.textAnimator.renderedLetters,i=this.textProperty.currentData.l;r=i.length;var a,o,s;for(e=0;e<r;e+=1)i[e].n||(a=n[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,r,n){this.initElement(e,r,n)}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,r,n){this.initFrame(),this.initBaseData(e,r,n),this.initFrame(),this.initTransform(e,r,n),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 r=this.globalData.defs;this.setupGlobalData(e,r),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var n=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();n.setAttribute("id",a),n.appendChild(i),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+a+")"),r.appendChild(n),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,r=this.layers?this.layers.length:0;for(e=0;e<r;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 r=0,n=this.layers.length;for(r=0;r<n;r+=1)if(this.layers[r].ind===e)return r;return-1},SVGRendererBase.prototype.buildItem=function(e){var r=this.elements;if(!(r[e]||this.layers[e].ty===99)){r[e]=!0;var n=this.createItem(this.layers[e]);if(r[e]=n,getExpressionsPlugin()&&(this.layers[e].ty===0&&this.globalData.projectInterface.registerComposition(n),n.initExpressions()),this.appendElementInPos(n,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(n);else{var a=r[i],o=a.getMatte(this.layers[e].tt);n.setMatte(o)}}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var r=0,n=this.elements.length;r<n;){if(this.elements[r]===e){var i="tp"in e.data?this.findIndexByInd(e.data.tp):r-1,a=this.elements[i],o=a.getMatte(this.layers[r].tt);e.setMatte(o);break}r+=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 r,n=this.layers.length;for(this.completeLayers||this.checkLayers(e),r=n-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].prepareFrame(e-this.layers[r].st);if(this.globalData._mdf)for(r=0;r<n;r+=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(e,r){var n=e.getBaseElement();if(n){for(var i=0,a;i<r;)this.elements[i]&&this.elements[i]!==!0&&this.elements[i].getBaseElement()&&(a=this.elements[i].getBaseElement()),i+=1;a?this.layerElement.insertBefore(n,a):this.layerElement.appendChild(n)}},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,r,n){this.initFrame(),this.initBaseData(e,r,n),this.initTransform(e,r,n),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!r.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 r=this.tm.v;r===this.data.op&&(r=this.data.op-1),this.renderedFrame=r}var n,i=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),n=i-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&(this.elements[n].prepareFrame(this.renderedFrame-this.layers[n].st),this.elements[n]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var e,r=this.layers.length;for(e=0;e<r;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,r=this.layers.length;for(e=0;e<r;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function SVGCompElement(e,r,n){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,r,n),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,r.frameRate,this):{_placeholder:!0}}extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)};function SVGRenderer(e,r){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var n="";if(r&&r.title){var i=createNS("title"),a=createElementID();i.setAttribute("id",a),i.textContent=r.title,this.svgElement.appendChild(i),n+=a}if(r&&r.description){var o=createNS("desc"),s=createElementID();o.setAttribute("id",s),o.textContent=r.description,this.svgElement.appendChild(o),n+=" "+s}n&&this.svgElement.setAttribute("aria-labelledby",n);var l=createNS("defs");this.svgElement.appendChild(l);var c=createNS("g");this.svgElement.appendChild(c),this.layerElement=c,this.renderConfig={preserveAspectRatio:r&&r.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:r&&r.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:r&&r.contentVisibility||"visible",progressiveLoad:r&&r.progressiveLoad||!1,hideOnTransparent:!(r&&r.hideOnTransparent===!1),viewBoxOnly:r&&r.viewBoxOnly||!1,viewBoxSize:r&&r.viewBoxSize||!1,className:r&&r.className||"",id:r&&r.id||"",focusable:r&&r.focusable,filterSize:{width:r&&r.filterSize&&r.filterSize.width||"100%",height:r&&r.filterSize&&r.filterSize.height||"100%",x:r&&r.filterSize&&r.filterSize.x||"0%",y:r&&r.filterSize&&r.filterSize.y||"0%"},width:r&&r.width,height:r&&r.height,runExpressions:!r||r.runExpressions===void 0||r.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(r){var n,i=r.length,a="_";for(n=0;n<i;n+=1)a+=r[n].transform.key+"_";var o=this.sequences[a];return o||(o={transforms:[].concat(r),finalTransform:new Matrix,_mdf:!1},this.sequences[a]=o,this.sequenceList.push(o)),o},processSequence:function(r,n){for(var i=0,a=r.transforms.length,o=n;i<a&&!n;){if(r.transforms[i].transform.mProps._mdf){o=!0;break}i+=1}if(o)for(r.finalTransform.reset(),i=a-1;i>=0;i-=1)r.finalTransform.multiply(r.transforms[i].transform.mProps.v);r._mdf=o},processSequences:function(r){var n,i=this.sequenceList.length;for(n=0;n<i;n+=1)this.processSequence(this.sequenceList[n],r)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var r="__lottie_element_luma_buffer",n=null,i=null,a=null;function o(){var c=createNS("svg"),u=createNS("filter"),h=createNS("feColorMatrix");return u.setAttribute("id",r),h.setAttribute("type","matrix"),h.setAttribute("color-interpolation-filters","sRGB"),h.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(h),c.appendChild(u),c.setAttribute("id",r+"_svg"),featureSupport.svgLumaHidden&&(c.style.display="none"),c}function s(){n||(a=o(),document.body.appendChild(a),n=createTag("canvas"),i=n.getContext("2d"),i.filter="url(#"+r+")",i.fillStyle="rgba(0,0,0,0)",i.fillRect(0,0,1,1))}function l(c){return n||s(),n.width=c.width,n.height=c.height,i.filter="url(#"+r+")",n}return{load:s,get:l}};function createCanvas(e,r){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(e,r);var n=createTag("canvas");return n.width=e,n.height=r,n}var assetLoader=function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas}}(),registeredEffects={};function CVEffects(e){var r,n=e.data.ef?e.data.ef.length:0;this.filters=[];var i;for(r=0;r<n;r+=1){i=null;var a=e.data.ef[r].ty;if(registeredEffects[a]){var o=registeredEffects[a].effect;i=new o(e.effectsManager.effectElements[r],e)}i&&this.filters.push(i)}this.filters.length&&e.addRenderableComponent(this)}CVEffects.prototype.renderFrame=function(e){var r,n=this.filters.length;for(r=0;r<n;r+=1)this.filters[r].renderFrame(e)},CVEffects.prototype.getEffects=function(e){var r,n=this.filters.length,i=[];for(r=0;r<n;r+=1)this.filters[r].type===e&&i.push(this.filters[r]);return i};function registerEffect(e,r){registeredEffects[e]={effect:r}}function CVMaskElement(e,r){this.data=e,this.element=r,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var n,i=this.masksProperties.length,a=!1;for(n=0;n<i;n+=1)this.masksProperties[n].mode!=="n"&&(a=!0),this.viewData[n]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[n],3);this.hasMasks=a,a&&this.element.addRenderableComponent(this)}CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var e=this.element.finalTransform.mat,r=this.element.canvasContext,n,i=this.masksProperties.length,a,o,s;for(r.beginPath(),n=0;n<i;n+=1)if(this.masksProperties[n].mode!=="n"){this.masksProperties[n].inv&&(r.moveTo(0,0),r.lineTo(this.element.globalData.compSize.w,0),r.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),r.lineTo(0,this.element.globalData.compSize.h),r.lineTo(0,0)),s=this.viewData[n].v,a=e.applyToPointArray(s.v[0][0],s.v[0][1],0),r.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]),r.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]),r.bezierCurveTo(o[0],o[1],o[2],o[3],o[4],o[5])}this.element.globalData.renderer.save(!0),r.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 r=this.globalData.canvasContext,n=assetLoader.createCanvas(r.canvas.width,r.canvas.height);this.buffers.push(n);var i=assetLoader.createCanvas(r.canvas.width,r.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 r=this.globalData;if(r.blendMode!==this.data.bm){r.blendMode=this.data.bm;var n=getBlendMode(this.data.bm);r.canvasContext.globalCompositeOperation=n}},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(r){r.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 r=this.buffers[0],n=r.getContext("2d");this.clearCanvas(n),n.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 r=this.buffers[1],n=r.getContext("2d");this.clearCanvas(n),n.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(r,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(r){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!r)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var n=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(n),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(n),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,r,n,i){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var a=4;r.ty==="rc"?a=5:r.ty==="el"?a=6:r.ty==="sr"&&(a=7),this.sh=ShapePropertyFactory.getShapeProp(e,r,a,e);var o,s=n.length,l;for(o=0;o<s;o+=1)n[o].closed||(l={transforms:i.addTransformSequence(n[o].transforms),trNodes:[]},this.styledShapes.push(l),n[o].elements.push(l))}CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated;function CVShapeElement(e,r,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(e,r,n)}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,r){var n={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(r),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||(n.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(n.lc=lineCapEnum[e.lc||2],n.lj=lineJoinEnum[e.lj||2],e.lj==1&&(n.ml=e.ml),i.w=PropertyFactory.getProp(this,e.w,0,null,this),i.w.k||(n.wi=i.w.v),e.d){var a=new DashProperty(this,e.d,"canvas",this);i.d=a,i.d.k||(n.da=i.d.dashArray,n.do=i.d.dashoffset[0])}}else n.r=e.r===2?"evenodd":"nonzero";return this.stylesList.push(n),i.style=n,i},CVShapeElement.prototype.createGroupElement=function(){var e={it:[],prevViewData:[]};return e},CVShapeElement.prototype.createTransformElement=function(e){var r={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 r},CVShapeElement.prototype.createShapeElement=function(e){var r=new CVShapeData(this,e,this.stylesList,this.transformsManager);return this.shapes.push(r),this.addShapeToModifiers(r),r},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,r=this.itemsData.length;for(e=0;e<r;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),r=this.dynamicProperties.length,e=0;e<r;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(e){var r,n=this.stylesList.length;for(r=0;r<n;r+=1)this.stylesList[r].closed||this.stylesList[r].transforms.push(e)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var e,r=this.stylesList.length;for(e=0;e<r;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},CVShapeElement.prototype.closeStyles=function(e){var r,n=e.length;for(r=0;r<n;r+=1)e[r].closed=!0},CVShapeElement.prototype.searchShapes=function(e,r,n,i,a){var o,s=e.length-1,l,c,u=[],h=[],x,f,g,v=[].concat(a);for(o=s;o>=0;o-=1){if(x=this.searchProcessedElement(e[o]),x?r[o]=n[x-1]:e[o]._shouldRender=i,e[o].ty==="fl"||e[o].ty==="st"||e[o].ty==="gf"||e[o].ty==="gs")x?r[o].style.closed=!1:r[o]=this.createStyleElement(e[o],v),u.push(r[o].style);else if(e[o].ty==="gr"){if(!x)r[o]=this.createGroupElement(e[o]);else for(c=r[o].it.length,l=0;l<c;l+=1)r[o].prevViewData[l]=r[o].it[l];this.searchShapes(e[o].it,r[o].it,r[o].prevViewData,i,v)}else e[o].ty==="tr"?(x||(g=this.createTransformElement(e[o]),r[o]=g),v.push(r[o]),this.addTransformToStyleList(r[o])):e[o].ty==="sh"||e[o].ty==="rc"||e[o].ty==="el"||e[o].ty==="sr"?x||(r[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?(f=r[o],f.closed=!1):(f=ShapeModifiers.getModifier(e[o].ty),f.init(this,e[o]),r[o]=f,this.shapeModifiers.push(f)),h.push(f)):e[o].ty==="rp"&&(x?(f=r[o],f.closed=!0):(f=ShapeModifiers.getModifier(e[o].ty),r[o]=f,f.init(this,e,o,r),this.shapeModifiers.push(f),i=!1),h.push(f));this.addProcessedElement(e[o],o+1)}for(this.removeTransformFromStyleList(),this.closeStyles(u),s=h.length,o=0;o<s;o+=1)h[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,r){(e._opMdf||r.op._mdf||this._isFirstFrame)&&(r.opacity=e.opacity,r.opacity*=r.op.v,r._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var e,r=this.stylesList.length,n,i,a,o,s,l,c=this.globalData.renderer,u=this.globalData.canvasContext,h,x;for(e=0;e<r;e+=1)if(x=this.stylesList[e],h=x.type,!((h==="st"||h==="gs")&&x.wi===0||!x.data._shouldRender||x.coOp===0||this.globalData.currentGlobalAlpha===0)){for(c.save(),s=x.elements,h==="st"||h==="gs"?(c.ctxStrokeStyle(h==="st"?x.co:x.grd),c.ctxLineWidth(x.wi),c.ctxLineCap(x.lc),c.ctxLineJoin(x.lj),c.ctxMiterLimit(x.ml||0)):c.ctxFillStyle(h==="fl"?x.co:x.grd),c.ctxOpacity(x.coOp),h!=="st"&&h!=="gs"&&u.beginPath(),c.ctxTransform(x.preTransforms.finalTransform.props),i=s.length,n=0;n<i;n+=1){for((h==="st"||h==="gs")&&(u.beginPath(),x.da&&(u.setLineDash(x.da),u.lineDashOffset=x.do)),l=s[n].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();(h==="st"||h==="gs")&&(c.ctxStroke(),x.da&&u.setLineDash(this.dashResetter))}h!=="st"&&h!=="gs"&&this.globalData.renderer.ctxFill(x.r),c.restore()}},CVShapeElement.prototype.renderShape=function(e,r,n,i){var a,o=r.length-1,s;for(s=e,a=o;a>=0;a-=1)r[a].ty==="tr"?(s=n[a].transform,this.renderShapeTransform(e,s)):r[a].ty==="sh"||r[a].ty==="el"||r[a].ty==="rc"||r[a].ty==="sr"?this.renderPath(r[a],n[a]):r[a].ty==="fl"?this.renderFill(r[a],n[a],s):r[a].ty==="st"?this.renderStroke(r[a],n[a],s):r[a].ty==="gf"||r[a].ty==="gs"?this.renderGradientFill(r[a],n[a],s):r[a].ty==="gr"?this.renderShape(s,r[a].it,n[a].it):r[a].ty;i&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,r){if(this._isFirstFrame||r._mdf||e.transforms._mdf){var n=e.trNodes,i=r.paths,a,o,s,l=i._length;n.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&&n.push({t:"m",p:c.applyToPointArray(u.v[0][0],u.v[0][1],0)}),n.push({t:"c",pts:c.applyToTriplePoints(u.o[a-1],u.i[a],u.v[a])});o===1&&n.push({t:"m",p:c.applyToPointArray(u.v[0][0],u.v[0][1],0)}),u.c&&o&&(n.push({t:"c",pts:c.applyToTriplePoints(u.o[a-1],u.i[0],u.v[0])}),n.push({t:"z"}))}}e.trNodes=n}},CVShapeElement.prototype.renderPath=function(e,r){if(e.hd!==!0&&e._shouldRender){var n,i=r.styledShapes.length;for(n=0;n<i;n+=1)this.renderStyledShape(r.styledShapes[n],r.sh)}},CVShapeElement.prototype.renderFill=function(e,r,n){var i=r.style;(r.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bmFloor(r.c.v[0])+","+bmFloor(r.c.v[1])+","+bmFloor(r.c.v[2])+")"),(r.o._mdf||n._opMdf||this._isFirstFrame)&&(i.coOp=r.o.v*n.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,r,n){var i=r.style,a;if(!i.grd||r.g._mdf||r.s._mdf||r.e._mdf||e.t!==1&&(r.h._mdf||r.a._mdf)){var o=this.globalData.canvasContext,s=r.s.v,l=r.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]),h=r.h.v;h>=1?h=.99:h<=-1&&(h=-.99);var x=c*h,f=Math.cos(u+r.a.v)*x+s[0],g=Math.sin(u+r.a.v)*x+s[1];a=o.createRadialGradient(f,g,0,s[0],s[1],c)}var v,m=e.g.p,E=r.g.c,b=1;for(v=0;v<m;v+=1)r.g._hasOpacity&&r.g._collapsable&&(b=r.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=r.o.v*n.opacity},CVShapeElement.prototype.renderStroke=function(e,r,n){var i=r.style,a=r.d;a&&(a._mdf||this._isFirstFrame)&&(i.da=a.dashArray,i.do=a.dashoffset[0]),(r.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bmFloor(r.c.v[0])+","+bmFloor(r.c.v[1])+","+bmFloor(r.c.v[2])+")"),(r.o._mdf||n._opMdf||this._isFirstFrame)&&(i.coOp=r.o.v*n.opacity),(r.w._mdf||this._isFirstFrame)&&(i.wi=r.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,r,n){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,r,n)}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 r=!1;e.fc?(r=!0,this.values.fill=this.buildColor(e.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=r;var n=!1;e.sc&&(n=!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=n,this.values.fValue=e.finalSize+"px "+this.globalData.fontManager.getFontByName(e.f).fFamily,o=e.finalText.length;var c,u,h,x,f,g,v,m,E,b,d=this.data.singleShape,p=e.tr*.001*e.finalSize,y=0,S=0,k=!0,P=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=-p,S+=e.yOffset,S+=k?1:0,k=!1),f=u.shapes?u.shapes[0].it:[],v=f.length,l.scale(e.finalSize/100,e.finalSize/100),d&&this.applyTextPropertiesToMatrix(e,l,s[a].line,y,S),E=createSizedArray(v-1);var w=0;for(g=0;g<v;g+=1)if(f[g].ty==="sh"){for(x=f[g].ks.k.i.length,m=f[g].ks.k,b=[],h=1;h<x;h+=1)h===1&&b.push(l.applyToX(m.v[0][0],m.v[0][1],0),l.applyToY(m.v[0][0],m.v[0][1],0)),b.push(l.applyToX(m.o[h-1][0],m.o[h-1][1],0),l.applyToY(m.o[h-1][0],m.o[h-1][1],0),l.applyToX(m.i[h][0],m.i[h][1],0),l.applyToY(m.i[h][0],m.i[h][1],0),l.applyToX(m.v[h][0],m.v[h][1],0),l.applyToY(m.v[h][0],m.v[h][1],0));b.push(l.applyToX(m.o[h-1][0],m.o[h-1][1],0),l.applyToY(m.o[h-1][0],m.o[h-1][1],0),l.applyToX(m.i[0][0],m.i[0][1],0),l.applyToY(m.i[0][0],m.i[0][1],0),l.applyToX(m.v[0][0],m.v[0][1],0),l.applyToY(m.v[0][0],m.v[0][1],0)),E[w]=b,w+=1}d&&(y+=s[a].l,y+=p),this.textSpans[P]?this.textSpans[P].elem=E:this.textSpans[P]={elem:E},P+=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 r,n,i,a,o,s,l=this.textAnimator.renderedLetters,c=this.textProperty.currentData.l;n=c.length;var u,h=null,x=null,f=null,g,v,m=this.globalData.renderer;for(r=0;r<n;r+=1)if(!c[r].n){if(u=l[r],u&&(m.save(),m.ctxTransform(u.p),m.ctxOpacity(u.o)),this.fill){for(u&&u.fc?h!==u.fc&&(m.ctxFillStyle(u.fc),h=u.fc):h!==this.values.fill&&(h=this.values.fill,m.ctxFillStyle(this.values.fill)),g=this.textSpans[r].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(),m.ctxFill()}if(this.stroke){for(u&&u.sw?f!==u.sw&&(f=u.sw,m.ctxLineWidth(u.sw)):f!==this.values.sWidth&&(f=this.values.sWidth,m.ctxLineWidth(this.values.sWidth)),u&&u.sc?x!==u.sc&&(x=u.sc,m.ctxStrokeStyle(u.sc)):x!==this.values.stroke&&(x=this.values.stroke,m.ctxStrokeStyle(this.values.stroke)),g=this.textSpans[r].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(),m.ctxStroke()}u&&this.globalData.renderer.restore()}};function CVImageElement(e,r,n){this.assetData=r.getAssetData(e.refId),this.img=r.imageLoader.getAsset(this.assetData),this.initElement(e,r,n)}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 r=e.getContext("2d"),n=this.img.width,i=this.img.height,a=n/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=n,l=s/o),r.drawImage(this.img,(n-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,r,n){this.initElement(e,r,n)}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,r,n,i){this.canvasContext.fillRect(e,r,n,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 r=this.animationItem.container.style;r.width="100%",r.height="100%";var n="0px 0px 0px";r.transformOrigin=n,r.mozTransformOrigin=n,r.webkitTransformOrigin=n,r["-webkit-transform"]=n,r.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,r){this.reset();var n,i;e?(n=e,i=r,this.canvasContext.canvas.width=n,this.canvasContext.canvas.height=i):(this.animationItem.wrapper&&this.animationItem.container?(n=this.animationItem.wrapper.offsetWidth,i=this.animationItem.wrapper.offsetHeight):(n=this.canvasContext.canvas.width,i=this.canvasContext.canvas.height),this.canvasContext.canvas.width=n*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),h=c.substr(4);a=n/i,o=this.transformCanvas.w/this.transformCanvas.h,o>a&&l==="meet"||o<a&&l==="slice"?(this.transformCanvas.sx=n/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=n/(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=(n-this.transformCanvas.w*(i/this.transformCanvas.h))/2*this.renderConfig.dpr:u==="xMax"&&(o<a&&l==="meet"||o>a&&l==="slice")?this.transformCanvas.tx=(n-this.transformCanvas.w*(i/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,h==="YMid"&&(o>a&&l==="meet"||o<a&&l==="slice")?this.transformCanvas.ty=(i-this.transformCanvas.h*(n/this.transformCanvas.w))/2*this.renderConfig.dpr:h==="YMax"&&(o>a&&l==="meet"||o<a&&l==="slice")?this.transformCanvas.ty=(i-this.transformCanvas.h*(n/this.transformCanvas.w))*this.renderConfig.dpr:this.transformCanvas.ty=0}else this.renderConfig.preserveAspectRatio==="none"?(this.transformCanvas.sx=n/(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,r=this.layers?this.layers.length:0;for(e=r-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,r){if(!(this.renderedFrame===e&&this.renderConfig.clearCanvas===!0&&!r||this.destroyed||e===-1)){this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||r,this.globalData.projectInterface.currentFrame=e;var n,i=this.layers.length;for(this.completeLayers||this.checkLayers(e),n=i-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&this.elements[n].prepareFrame(e-this.layers[n].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),n=i-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&this.elements[n].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(e){var r=this.elements;if(!(r[e]||this.layers[e].ty===99)){var n=this.createItem(this.layers[e],this,this.globalData);r[e]=n,n.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,r=15;for(e=0;e<r;e+=1){var n=new CanvasContext;this.stack[e]=n}this._length=r,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,r=0;for(r=this._length;r<e;r+=1)this.stack[r]=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 r=this.stack[this.cArrPos],n=r.transform,i,a=this.cTr.props;for(i=0;i<16;i+=1)a[i]=n[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(n[0],n[1],n[4],n[5],n[12],n[13]),(e||r.opacity!==-1&&this.currentOpacity!==r.opacity)&&(this.nativeContext.globalAlpha=r.opacity,this.currentOpacity=r.opacity),this.currentFillStyle=r.fillStyle,this.currentStrokeStyle=r.strokeStyle,this.currentLineWidth=r.lineWidth,this.currentLineCap=r.lineCap,this.currentLineJoin=r.lineJoin,this.currentMiterLimit=r.miterLimit},CVContextData.prototype.save=function(e){e&&this.nativeContext.save();var r=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var n=this.stack[this.cArrPos],i;for(i=0;i<16;i+=1)n.transform[i]=r[i];this.cArrPos+=1;var a=this.stack[this.cArrPos];a.opacity=n.opacity,a.fillStyle=n.fillStyle,a.strokeStyle=n.strokeStyle,a.lineWidth=n.lineWidth,a.lineCap=n.lineCap,a.lineJoin=n.lineJoin,a.miterLimit=n.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 r=this.cTr;this.transformMat.multiply(r),r.cloneFromProps(this.transformMat.props);var n=r.props;this.nativeContext.setTransform(n[0],n[1],n[4],n[5],n[12],n[13])},CVContextData.prototype.opacity=function(e){var r=this.stack[this.cArrPos].opacity;r*=e<0?0:e,this.stack[this.cArrPos].opacity!==r&&(this.currentOpacity!==e&&(this.nativeContext.globalAlpha=e,this.currentOpacity=e),this.stack[this.cArrPos].opacity=r)},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,r,n,i){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(e,r,n,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,r,n){this.completeLayers=!1,this.layers=e.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(e,r,n),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,r.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 r,n=this.layers.length;for(r=n-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame()},CVCompElement.prototype.destroy=function(){var e,r=this.layers.length;for(e=r-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,r){this.animationItem=e,this.renderConfig={clearCanvas:r&&r.clearCanvas!==void 0?r.clearCanvas:!0,context:r&&r.context||null,progressiveLoad:r&&r.progressiveLoad||!1,preserveAspectRatio:r&&r.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:r&&r.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:r&&r.contentVisibility||"visible",className:r&&r.className||"",id:r&&r.id||"",runExpressions:!r||r.runExpressions===void 0||r.runExpressions},this.renderConfig.dpr=r&&r.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=r&&r.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 r=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var n=this.finalTransform.mat.toCSS();r.transform=n,r.webkitTransform=n}this.finalTransform._opMdf&&(r.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,r,n){this.initElement(e,r,n)}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,r,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(e,r,n),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 r=this.comp.data?this.comp.data:this.globalData.compSize;e.setAttribute("width",r.w),e.setAttribute("height",r.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,r){var n,i=e.length;for(n=0;n<i;n+=1)r=e[n].mProps.v.applyToPointArray(r[0],r[1],0);return r},HShapeElement.prototype.calculateShapeBoundingBox=function(e,r){var n=e.sh.v,i=e.transformers,a,o=n._length,s,l,c,u;if(!(o<=1)){for(a=0;a<o-1;a+=1)s=this.getTransformedPoint(i,n.v[a]),l=this.getTransformedPoint(i,n.o[a]),c=this.getTransformedPoint(i,n.i[a+1]),u=this.getTransformedPoint(i,n.v[a+1]),this.checkBounds(s,l,c,u,r);n.c&&(s=this.getTransformedPoint(i,n.v[a]),l=this.getTransformedPoint(i,n.o[a]),c=this.getTransformedPoint(i,n.i[0]),u=this.getTransformedPoint(i,n.v[0]),this.checkBounds(s,l,c,u,r))}},HShapeElement.prototype.checkBounds=function(e,r,n,i,a){this.getBoundsOfCurve(e,r,n,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,r,n,i){for(var a=[[e[0],i[0]],[e[1],i[1]]],o,s,l,c,u,h,x,f=0;f<2;++f)s=6*e[f]-12*r[f]+6*n[f],o=-3*e[f]+9*r[f]-9*n[f]+3*i[f],l=3*r[f]-3*e[f],s|=0,o|=0,l|=0,o===0&&s===0||(o===0?(c=-l/s,c>0&&c<1&&a[f].push(this.calculateF(c,e,r,n,i,f))):(u=s*s-4*l*o,u>=0&&(h=(-s+bmSqrt(u))/(2*o),h>0&&h<1&&a[f].push(this.calculateF(h,e,r,n,i,f)),x=(-s-bmSqrt(u))/(2*o),x>0&&x<1&&a[f].push(this.calculateF(x,e,r,n,i,f)))));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,r,n,i,a,o){return bmPow(1-e,3)*r[o]+3*bmPow(1-e,2)*e*n[o]+3*(1-e)*bmPow(e,2)*i[o]+bmPow(e,3)*a[o]},HShapeElement.prototype.calculateBoundingBox=function(e,r){var n,i=e.length;for(n=0;n<i;n+=1)e[n]&&e[n].sh?this.calculateShapeBoundingBox(e[n],r):e[n]&&e[n].it?this.calculateBoundingBox(e[n].it,r):e[n]&&e[n].style&&e[n].w&&this.expandStrokeBoundingBox(e[n].w,r)},HShapeElement.prototype.expandStrokeBoundingBox=function(e,r){var n=0;if(e.keyframes){for(var i=0;i<e.keyframes.length;i+=1){var a=e.keyframes[i].s;a>n&&(n=a)}n*=e.mult}else n=e.v*e.mult;r.x-=n,r.xMax+=n,r.y-=n,r.yMax+=n},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,r=999999;if(e.x=r,e.xMax=-r,e.y=r,e.yMax=-r,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 n=!1;if(this.currentBBox.w!==e.width&&(this.currentBBox.w=e.width,this.shapeCont.setAttribute("width",e.width),n=!0),this.currentBBox.h!==e.height&&(this.currentBBox.h=e.height,this.shapeCont.setAttribute("height",e.height),n=!0),n||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,r,n){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(e,r,n)}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 r=this.innerElem.style,n=e.fc?this.buildColor(e.fc):"rgba(0,0,0,0)";r.fill=n,r.color=n,e.sc&&(r.stroke=this.buildColor(e.sc),r.strokeWidth=e.sw+"px");var i=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars)if(r.fontSize=e.finalSize+"px",r.lineHeight=e.finalSize+"px",i.fClass)this.innerElem.className=i.fClass;else{r.fontFamily=i.fFamily;var a=e.fWeight,o=e.fStyle;r.fontStyle=o,r.fontWeight=a}var s,l,c=e.l;l=c.length;var u,h,x,f=this.mHelper,g,v="",m=0;for(s=0;s<l;s+=1){if(this.globalData.fontManager.chars?(this.textPaths[m]?u=this.textPaths[m]:(u=createNS("path"),u.setAttribute("stroke-linecap",lineCapEnum[1]),u.setAttribute("stroke-linejoin",lineJoinEnum[2]),u.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[m]?(h=this.textSpans[m],x=h.children[0]):(h=createTag("div"),h.style.lineHeight=0,x=createNS("svg"),x.appendChild(u),styleDiv(h)))):this.isMasked?u=this.textPaths[m]?this.textPaths[m]:createNS("text"):this.textSpans[m]?(h=this.textSpans[m],u=this.textPaths[m]):(h=createTag("span"),styleDiv(h),u=createTag("span"),styleDiv(u),h.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,f.reset(),b&&b.shapes&&b.shapes.length&&(g=b.shapes[0].it,f.scale(e.finalSize/100,e.finalSize/100),v=this.createPathShape(f,g),u.setAttribute("d",v)),this.isMasked)this.innerElem.appendChild(u);else{if(this.innerElem.appendChild(h),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 p=x.style,y="translate("+(d.x-1)+"px,"+(d.y-1)+"px)";p.transform=y,p.webkitTransform=y,c[s].yOffset=d.y-1}else x.setAttribute("width",1),x.setAttribute("height",1);h.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(h);var S=u.style,k="translate3d(0,"+-e.finalSize/1.2+"px,0)";S.transform=k,S.webkitTransform=k}this.isMasked?this.textSpans[m]=u:this.textSpans[m]=h,this.textSpans[m].style.display="block",this.textPaths[m]=u,m+=1}for(;m<this.textSpans.length;)this.textSpans[m].style.display="none",m+=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 r="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";e.transform=r,e.webkitTransform=r}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),!(!this.lettersChangedFlag&&!this.textAnimator.lettersChangedFlag)){var n,i,a=0,o=this.textAnimator.renderedLetters,s=this.textProperty.currentData.l;i=s.length;var l,c,u;for(n=0;n<i;n+=1)s[n].n?a+=1:(c=this.textSpans[n],u=this.textPaths[n],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 h=this.innerElem.getBBox();this.currentBBox.w!==h.width&&(this.currentBBox.w=h.width,this.svgElement.setAttribute("width",h.width)),this.currentBBox.h!==h.height&&(this.currentBBox.h=h.height,this.svgElement.setAttribute("height",h.height));var x=1;if(this.currentBBox.w!==h.width+x*2||this.currentBBox.h!==h.height+x*2||this.currentBBox.x!==h.x-x||this.currentBBox.y!==h.y-x){this.currentBBox.w=h.width+x*2,this.currentBBox.h=h.height+x*2,this.currentBBox.x=h.x-x,this.currentBBox.y=h.y-x,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var f="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=f,e.webkitTransform=f}}}};function HCameraElement(e,r,n){this.initFrame(),this.initBaseData(e,r,n),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,r=this.comp.threeDElements.length,n,i,a;for(e=0;e<r;e+=1)if(n=this.comp.threeDElements[e],n.type==="3d"){i=n.perspectiveElem.style,a=n.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,r,n;if(this.hierarchy)for(n=this.hierarchy.length,r=0;r<n;r+=1)e=this.hierarchy[r].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(n=this.hierarchy.length-1,r=n;r>=0;r-=1){var i=this.hierarchy[r].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 h=!this._prevMat.equals(this.mat);if((h||this.pe._mdf)&&this.comp.threeDElements){n=this.comp.threeDElements.length;var x,f,g;for(r=0;r<n;r+=1)if(x=this.comp.threeDElements[r],x.type==="3d"){if(h){var v=this.mat.toCSS();g=x.container.style,g.transform=v,g.webkitTransform=v}this.pe._mdf&&(f=x.perspectiveElem.style,f.perspective=this.pe.v+"px",f.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,r,n){this.assetData=r.getAssetData(e.refId),this.initElement(e,r,n)}extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData),r=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(r),r.crossOrigin="anonymous",r.src=e,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)};function HybridRendererBase(e,r){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:r&&r.className||"",imagePreserveAspectRatio:r&&r.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(r&&r.hideOnTransparent===!1),filterSize:{width:r&&r.filterSize&&r.filterSize.width||"400%",height:r&&r.filterSize&&r.filterSize.height||"400%",x:r&&r.filterSize&&r.filterSize.x||"-100%",y:r&&r.filterSize&&r.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,r){var n=e.getBaseElement();if(n){var i=this.layers[r];if(!i.ddd||!this.supports3d)if(this.threeDElements)this.addTo3dContainer(n,r);else{for(var a=0,o,s,l;a<r;)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(n,o):(!i.ddd||!this.supports3d)&&this.layerElement.appendChild(n)}else this.addTo3dContainer(n,r)}},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 r=0,n=this.threeDElements.length;r<n;){if(this.threeDElements[r].startPos<=e&&this.threeDElements[r].endPos>=e)return this.threeDElements[r].perspectiveElem;r+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(e,r){var n=createTag("div"),i,a;styleDiv(n);var o=createTag("div");if(styleDiv(o),r==="3d"){i=n.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}n.appendChild(o);var c={container:o,perspectiveElem:n,startPos:e,endPos:e,type:r};return this.threeDElements.push(c),c},HybridRendererBase.prototype.build3dContainers=function(){var e,r=this.layers.length,n,i="";for(e=0;e<r;e+=1)this.layers[e].ddd&&this.layers[e].ty!==3?(i!=="3d"&&(i="3d",n=this.createThreeDContainer(e,"3d")),n.endPos=Math.max(n.endPos,e)):(i!=="2d"&&(i="2d",n=this.createThreeDContainer(e,"2d")),n.endPos=Math.max(n.endPos,e));for(r=this.threeDElements.length,e=r-1;e>=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,r){for(var n=0,i=this.threeDElements.length;n<i;){if(r<=this.threeDElements[n].endPos){for(var a=this.threeDElements[n].startPos,o;a<r;)this.elements[a]&&this.elements[a].getBaseElement&&(o=this.elements[a].getBaseElement()),a+=1;o?this.threeDElements[n].container.insertBefore(e,o):this.threeDElements[n].container.appendChild(e);break}n+=1}},HybridRendererBase.prototype.configAnimation=function(e){var r=createTag("div"),n=this.animationItem.wrapper,i=r.style;i.width=e.w+"px",i.height=e.h+"px",this.resizerElem=r,styleDiv(r),i.transformStyle="flat",i.mozTransformStyle="flat",i.webkitTransformStyle="flat",this.renderConfig.className&&r.setAttribute("class",this.renderConfig.className),n.appendChild(r),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,r=this.layers?this.layers.length:0;for(e=0;e<r;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,r=this.animationItem.wrapper.offsetHeight,n=e/r,i=this.globalData.compSize.w/this.globalData.compSize.h,a,o,s,l;i>n?(a=e/this.globalData.compSize.w,o=e/this.globalData.compSize.w,s=0,l=(r-this.globalData.compSize.h*(e/this.globalData.compSize.w))/2):(a=r/this.globalData.compSize.h,o=r/this.globalData.compSize.h,s=(e-this.globalData.compSize.w*(r/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,r=this.globalData.compSize.h,n,i=this.threeDElements.length;for(n=0;n<i;n+=1){var a=this.threeDElements[n].perspectiveElem.style;a.webkitPerspective=Math.sqrt(Math.pow(e,2)+Math.pow(r,2))+"px",a.perspective=a.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(e){var r,n=e.length,i=createTag("div");for(r=0;r<n;r+=1)if(e[r].xt){var a=this.createComp(e[r],i,this.globalData.comp,null);a.initExpressions(),this.globalData.projectInterface.registerComposition(a)}};function HCompElement(e,r,n){this.layers=e.layers,this.supports3d=!e.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,r,n),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,r.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,r){for(var n=0,i;n<r;)this.elements[n]&&this.elements[n].getBaseElement&&(i=this.elements[n].getBaseElement()),n+=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,r){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:r&&r.className||"",imagePreserveAspectRatio:r&&r.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(r&&r.hideOnTransparent===!1),filterSize:{width:r&&r.filterSize&&r.filterSize.width||"400%",height:r&&r.filterSize&&r.filterSize.height||"400%",x:r&&r.filterSize&&r.filterSize.x||"-100%",y:r&&r.filterSize&&r.filterSize.y||"-100%"},runExpressions:!r||r.runExpressions===void 0||r.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 r(n){for(var i=0,a=e.layers.length;i<a;){if(e.layers[i].nm===n||e.layers[i].ind===n)return e.elements[i].layerInterface;i+=1}return null}return Object.defineProperty(r,"_name",{value:e.data.nm}),r.layer=r,r.pixelAspect=1,r.height=e.data.h||e.globalData.compSize.h,r.width=e.data.w||e.globalData.compSize.w,r.pixelAspect=1,r.frameDuration=1/e.globalData.frameRate,r.displayStartTime=0,r.numLayers=e.layers.length,r}}();function _typeof$2(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$2=function(n){return typeof n}:_typeof$2=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof$2(e)}function seedRandom(e,r){var n=this,i=256,a=6,o=52,s="random",l=r.pow(i,a),c=r.pow(2,o),u=c*2,h=i-1,x;function f(p,y,S){var k=[];y=y===!0?{entropy:!0}:y||{};var P=E(m(y.entropy?[p,d(e)]:p===null?b():p,3),k),w=new g(k),D=function(){for(var B=w.g(a),L=l,V=0;B<c;)B=(B+V)*i,L*=i,V=w.g(1);for(;B>=u;)B/=2,L/=2,V>>>=1;return(B+V)/L};return D.int32=function(){return w.g(4)|0},D.quick=function(){return w.g(4)/4294967296},D.double=D,E(d(w.S),e),(y.pass||S||function(M,B,L,V){return V&&(V.S&&v(V,w),M.state=function(){return v(w,{})}),L?(r[s]=M,B):M})(D,P,"global"in y?y.global:this==r,y.state)}r["seed"+s]=f;function g(p){var y,S=p.length,k=this,P=0,w=k.i=k.j=0,D=k.S=[];for(S||(p=[S++]);P<i;)D[P]=P++;for(P=0;P<i;P++)D[P]=D[w=h&w+p[P%S]+(y=D[P])],D[w]=y;k.g=function(M){for(var B,L=0,V=k.i,$=k.j,N=k.S;M--;)B=N[V=h&V+1],L=L*i+N[h&(N[V]=N[$=h&$+B])+(N[$]=B)];return k.i=V,k.j=$,L}}function v(p,y){return y.i=p.i,y.j=p.j,y.S=p.S.slice(),y}function m(p,y){var S=[],k=_typeof$2(p),P;if(y&&k=="object")for(P in p)try{S.push(m(p[P],y-1))}catch{}return S.length?S:k=="string"?p:p+"\0"}function E(p,y){for(var S=p+"",k,P=0;P<S.length;)y[h&P]=h&(k^=y[h&P]*19)+S.charCodeAt(P++);return d(y)}function b(){try{var p=new Uint8Array(i);return(n.crypto||n.msCrypto).getRandomValues(p),d(p)}catch{var y=n.navigator,S=y&&y.plugins;return[+new Date,n,S,n.screen,d(e)]}}function d(p){return String.fromCharCode.apply(0,p)}E(r.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(n){return typeof n}:_typeof$1=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_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,r){return e==="number"||r instanceof Number||e==="boolean"||e==="string"}function $bm_neg(e){var r=_typeof$1(e);if(r==="number"||e instanceof Number||r==="boolean")return-e;if($bm_isInstanceOfArray(e)){var n,i=e.length,a=[];for(n=0;n<i;n+=1)a[n]=-e[n];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,r){var n=_typeof$1(e),i=_typeof$1(r);if(isNumerable(n,e)&&isNumerable(i,r)||n==="string"||i==="string")return e+r;if($bm_isInstanceOfArray(e)&&isNumerable(i,r))return e=e.slice(0),e[0]+=r,e;if(isNumerable(n,e)&&$bm_isInstanceOfArray(r))return r=r.slice(0),r[0]=e+r[0],r;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(r)){for(var a=0,o=e.length,s=r.length,l=[];a<o||a<s;)(typeof e[a]=="number"||e[a]instanceof Number)&&(typeof r[a]=="number"||r[a]instanceof Number)?l[a]=e[a]+r[a]:l[a]=r[a]===void 0?e[a]:e[a]||r[a],a+=1;return l}return 0}var add=sum;function sub(e,r){var n=_typeof$1(e),i=_typeof$1(r);if(isNumerable(n,e)&&isNumerable(i,r))return n==="string"&&(e=parseInt(e,10)),i==="string"&&(r=parseInt(r,10)),e-r;if($bm_isInstanceOfArray(e)&&isNumerable(i,r))return e=e.slice(0),e[0]-=r,e;if(isNumerable(n,e)&&$bm_isInstanceOfArray(r))return r=r.slice(0),r[0]=e-r[0],r;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(r)){for(var a=0,o=e.length,s=r.length,l=[];a<o||a<s;)(typeof e[a]=="number"||e[a]instanceof Number)&&(typeof r[a]=="number"||r[a]instanceof Number)?l[a]=e[a]-r[a]:l[a]=r[a]===void 0?e[a]:e[a]||r[a],a+=1;return l}return 0}function mul(e,r){var n=_typeof$1(e),i=_typeof$1(r),a;if(isNumerable(n,e)&&isNumerable(i,r))return e*r;var o,s;if($bm_isInstanceOfArray(e)&&isNumerable(i,r)){for(s=e.length,a=createTypedArray("float32",s),o=0;o<s;o+=1)a[o]=e[o]*r;return a}if(isNumerable(n,e)&&$bm_isInstanceOfArray(r)){for(s=r.length,a=createTypedArray("float32",s),o=0;o<s;o+=1)a[o]=e*r[o];return a}return 0}function div(e,r){var n=_typeof$1(e),i=_typeof$1(r),a;if(isNumerable(n,e)&&isNumerable(i,r))return e/r;var o,s;if($bm_isInstanceOfArray(e)&&isNumerable(i,r)){for(s=e.length,a=createTypedArray("float32",s),o=0;o<s;o+=1)a[o]=e[o]/r;return a}if(isNumerable(n,e)&&$bm_isInstanceOfArray(r)){for(s=r.length,a=createTypedArray("float32",s),o=0;o<s;o+=1)a[o]=e/r[o];return a}return 0}function mod(e,r){return typeof e=="string"&&(e=parseInt(e,10)),typeof r=="string"&&(r=parseInt(r,10)),e%r}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(e,r,n){if(r>n){var i=n;n=r,r=i}return Math.min(Math.max(e,r),n)}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,r){if(typeof e=="number"||e instanceof Number)return r=r||0,Math.abs(e-r);r||(r=helperLengthArray);var n,i=Math.min(e.length,r.length),a=0;for(n=0;n<i;n+=1)a+=Math.pow(r[n]-e[n],2);return Math.sqrt(a)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var r=e[0],n=e[1],i=e[2],a=Math.max(r,n,i),o=Math.min(r,n,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 r:s=(n-i)/u+(n<i?6:0);break;case n:s=(i-r)/u+2;break;case i:s=(r-n)/u+4;break}s/=6}return[s,l,c,e[3]]}function hue2rgb(e,r,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(r-e)*6*n:n<1/2?r:n<2/3?e+(r-e)*(2/3-n)*6:e}function hslToRgb(e){var r=e[0],n=e[1],i=e[2],a,o,s;if(n===0)a=i,s=i,o=i;else{var l=i<.5?i*(1+n):i+n-i*n,c=2*i-l;a=hue2rgb(c,l,r+1/3),o=hue2rgb(c,l,r),s=hue2rgb(c,l,r-1/3)}return[a,o,s,e[3]]}function linear(e,r,n,i,a){if((i===void 0||a===void 0)&&(i=r,a=n,r=0,n=1),n<r){var o=n;n=r,r=o}if(e<=r)return i;if(e>=n)return a;var s=n===r?0:(e-r)/(n-r);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,r){if(r===void 0&&(e===void 0?(e=0,r=1):(r=e,e=void 0)),r.length){var n,i=r.length;e||(e=createTypedArray("float32",i));var a=createTypedArray("float32",i),o=BMMath.random();for(n=0;n<i;n+=1)a[n]=e[n]+o*(r[n]-e[n]);return a}e===void 0&&(e=0);var s=BMMath.random();return e+s*(r-e)}function createPath(e,r,n,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=r&&r[a]?r[a]:l,u=n&&n[a]?n[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(r,n){var i,a,o=this.pv.length?this.pv.length:1,s=createTypedArray("float32",o);r=5;var l=Math.floor(time*r);for(i=0,a=0;i<l;){for(a=0;a<o;a+=1)s[a]+=-n+n*2*BMMath.random();i+=1}var c=time*r,u=c-Math.floor(c),h=createTypedArray("float32",o);if(o>1){for(a=0;a<o;a+=1)h[a]=this.pv[a]+s[a]+(-n+n*2*BMMath.random())*u;return h}return this.pv+s[0]+(-n+n*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,r){return loopIn(e,r,!0)}function loopOutDuration(e,r){return loopOut(e,r,!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,r){var n=[r[0]-e[0],r[1]-e[1],r[2]-e[2]],i=Math.atan2(n[0],Math.sqrt(n[1]*n[1]+n[2]*n[2]))/degToRads,a=-Math.atan2(n[1],n[2])/degToRads;return[a,i,0]}function easeOut(e,r,n,i,a){return applyEase(easeOutBez,e,r,n,i,a)}function easeIn(e,r,n,i,a){return applyEase(easeInBez,e,r,n,i,a)}function ease(e,r,n,i,a){return applyEase(easeInOutBez,e,r,n,i,a)}function applyEase(e,r,n,i,a,o){a===void 0?(a=n,o=i):r=(r-n)/(i-n),r>1?r=1:r<0&&(r=0);var s=e(r);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 r,n=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(r=0;r<n-1;r+=1)if(e===data.k[r].t){i=r+1,a=data.k[r].t;break}else if(e>data.k[r].t&&e<data.k[r+1].t){e-data.k[r].t>data.k[r+1].t-e?(i=r+2,a=data.k[r+1].t):(i=r+1,a=data.k[r].t);break}i===-1&&(i=r+1,a=data.k[r].t)}var o={};return o.index=i,o.time=a/elem.comp.globalData.frameRate,o}function key(e){var r,n,i;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+e);e-=1,r={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,n=0;n<i;n+=1)r[n]=a[n],r.value[n]=a[n];return r}function framesToTime(e,r){return r||(r=elem.comp.globalData.frameRate),e/r}function timeToFrames(e,r){return!e&&e!==0&&(e=time),r||(r=elem.comp.globalData.frameRate),e*r}function seedRandom(e){BMMath.seedrandom(randSeed+e)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(e,r){return typeof value=="string"?r===void 0?value.substring(e):value.substring(e,r):""}function substr(e,r){return typeof value=="string"?r===void 0?value.substr(e):value.substr(e,r):""}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=r,e.resetFrame=ExpressionManager.resetFrame;function r(n){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,h=a.length;for(u=0;u<h;u+=1)a[u].release();a.length=0}n.renderer.compInterface=CompExpressionInterface(n.renderer),n.renderer.globalData.projectInterface.registerComposition(n.renderer),n.renderer.globalData.pushExpression=o,n.renderer.globalData.popExpression=s,n.renderer.globalData.registerExpressionProperty=l}return e}(),MaskManagerInterface=function(){function e(n,i){this._mask=n,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 r=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 r}(),ExpressionPropertyInterface=function(){var e={pv:0,v:0,mult:1},r={pv:[0,0,0],v:[0,0,0],mult:1};function n(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 h="";"s"in l.keyframes[u-1]?h=l.keyframes[u-1].s:"e"in l.keyframes[u-2]?h=l.keyframes[u-2].e:h=l.keyframes[u-2].s;var x=c==="unidimensional"?new Number(h):Object.assign({},h);return x.time=l.keyframes[u-1].t/l.elem.comp.globalData.frameRate,x.value=c==="unidimensional"?h[0]:h,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,n(u,s,"unidimensional"),function(){return s.k&&s.getValue(),c=s.v*l,u.value!==c&&(u=new Number(c),u.value=c,n(u,s,"unidimensional")),u}}function a(s){(!s||!("pv"in s))&&(s=r);var l=1/s.mult,c=s.data&&s.data.l||s.pv.length,u=createTypedArray("float32",c),h=createTypedArray("float32",c);return u.value=h,n(u,s,"multidimensional"),function(){s.k&&s.getValue();for(var x=0;x<c;x+=1)h[x]=s.v[x]*l,u[x]=h[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 r(s){switch(s){case"scale":case"Scale":case"ADBE Scale":case 6:return r.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return r.rotation;case"ADBE Rotate X":return r.xRotation;case"ADBE Rotate Y":return r.yRotation;case"position":case"Position":case"ADBE Position":case 2:return r.position;case"ADBE Position_0":return r.xPosition;case"ADBE Position_1":return r.yPosition;case"ADBE Position_2":return r.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return r.anchorPoint;case"opacity":case"Opacity":case 11:return r.opacity;default:return null}}Object.defineProperty(r,"rotation",{get:ExpressionPropertyInterface(e.r||e.rz)}),Object.defineProperty(r,"zRotation",{get:ExpressionPropertyInterface(e.rz||e.r)}),Object.defineProperty(r,"xRotation",{get:ExpressionPropertyInterface(e.rx)}),Object.defineProperty(r,"yRotation",{get:ExpressionPropertyInterface(e.ry)}),Object.defineProperty(r,"scale",{get:ExpressionPropertyInterface(e.s)});var n,i,a,o;return e.p?o=ExpressionPropertyInterface(e.p):(n=ExpressionPropertyInterface(e.px),i=ExpressionPropertyInterface(e.py),e.pz&&(a=ExpressionPropertyInterface(e.pz))),Object.defineProperty(r,"position",{get:function(){return e.p?o():[n(),i(),a?a():0]}}),Object.defineProperty(r,"xPosition",{get:ExpressionPropertyInterface(e.px)}),Object.defineProperty(r,"yPosition",{get:ExpressionPropertyInterface(e.py)}),Object.defineProperty(r,"zPosition",{get:ExpressionPropertyInterface(e.pz)}),Object.defineProperty(r,"anchorPoint",{get:ExpressionPropertyInterface(e.a)}),Object.defineProperty(r,"opacity",{get:ExpressionPropertyInterface(e.o)}),Object.defineProperty(r,"skew",{get:ExpressionPropertyInterface(e.sk)}),Object.defineProperty(r,"skewAxis",{get:ExpressionPropertyInterface(e.sa)}),Object.defineProperty(r,"orientation",{get:ExpressionPropertyInterface(e.or)}),r}}(),LayerExpressionInterface=function(){function e(u){var h=new Matrix;if(u!==void 0){var x=this._elem.finalTransform.mProp.getValueAtTime(u);x.clone(h)}else{var f=this._elem.finalTransform.mProp;f.applyToMatrix(h)}return h}function r(u,h){var x=this.getMatrix(h);return x.props[12]=0,x.props[13]=0,x.props[14]=0,this.applyPoint(x,u)}function n(u,h){var x=this.getMatrix(h);return this.applyPoint(x,u)}function i(u,h){var x=this.getMatrix(h);return x.props[12]=0,x.props[13]=0,x.props[14]=0,this.invertPoint(x,u)}function a(u,h){var x=this.getMatrix(h);return this.invertPoint(x,u)}function o(u,h){if(this._elem.hierarchy&&this._elem.hierarchy.length){var x,f=this._elem.hierarchy.length;for(x=0;x<f;x+=1)this._elem.hierarchy[x].finalTransform.mProp.applyToMatrix(u)}return u.applyToPointArray(h[0],h[1],h[2]||0)}function s(u,h){if(this._elem.hierarchy&&this._elem.hierarchy.length){var x,f=this._elem.hierarchy.length;for(x=0;x<f;x+=1)this._elem.hierarchy[x].finalTransform.mProp.applyToMatrix(u)}return u.inversePoint(h)}function l(u){var h=new Matrix;if(h.reset(),this._elem.finalTransform.mProp.applyToMatrix(h),this._elem.hierarchy&&this._elem.hierarchy.length){var x,f=this._elem.hierarchy.length;for(x=0;x<f;x+=1)this._elem.hierarchy[x].finalTransform.mProp.applyToMatrix(h);return h.inversePoint(u)}return h.inversePoint(u)}function c(){return[1,1,1,1]}return function(u){var h;function x(m){g.mask=new MaskManagerInterface(m,u)}function f(m){g.effect=m}function g(m){switch(m){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 h;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=n,g.toWorldVec=r,g.fromWorld=a,g.fromWorldVec=i,g.toComp=n,g.fromComp=l,g.sampleImage=c,g.sourceRectAtTime=u.sourceRectAtTime.bind(u),g._elem=u,h=TransformExpressionInterface(u.finalTransform.mProp);var v=getDescriptor(h,"anchorPoint");return Object.defineProperties(g,{hasParent:{get:function(){return u.hierarchy.length}},parent:{get:function(){return u.hierarchy[0].layerInterface}},rotation:getDescriptor(h,"rotation"),scale:getDescriptor(h,"scale"),position:getDescriptor(h,"position"),opacity:getDescriptor(h,"opacity"),anchorPoint:v,anchor_point:v,transform:{get:function(){return h}},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=f,g}}(),propertyGroupFactory=function(){return function(e,r){return function(n){return n=n===void 0?1:n,n<=0?e:r(n-1)}}}(),PropertyInterface=function(){return function(e,r){var n={_name:e};function i(a){return a=a===void 0?1:a,a<=0?n:r(a-1)}return i}}(),EffectsExpressionInterface=function(){var e={createEffectsInterface:r};function r(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(n(l[c],a.effectsManager.effectElements[c],o,a));var h=a.data.ef||[],x=function(g){for(c=0,u=h.length;c<u;){if(g===h[c].nm||g===h[c].mn||g===h[c].ix)return s[c];c+=1}return null};return Object.defineProperty(x,"numProperties",{get:function(){return h.length}}),x}return null}function n(a,o,s,l){function c(g){for(var v=a.ef,m=0,E=v.length;m<E;){if(g===v[m].nm||g===v[m].mn||g===v[m].ix)return v[m].ty===5?h[m]:h[m]();m+=1}throw new Error}var u=propertyGroupFactory(c,s),h=[],x,f=a.ef.length;for(x=0;x<f;x+=1)a.ef[x].ty===5?h.push(n(a.ef[x],o.effectElements[x],o.effectElements[x].propertyGroup,l)):h.push(i(o.effectElements[x],a.ef[x].ty,l,u));return a.mn==="ADBE Color Control"&&Object.defineProperty(c,"color",{get:function(){return h[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(r,n,i){var a=n.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:r.nm},ix:{value:r.ix},propertyIndex:{value:r.ix},mn:{value:r.mn},propertyGroup:{value:i}}),o}}(),ShapeExpressionInterface=function(){function e(v,m,E){var b=[],d,p=v?v.length:0;for(d=0;d<p;d+=1)v[d].ty==="gr"?b.push(n(v[d],m[d],E)):v[d].ty==="fl"?b.push(i(v[d],m[d],E)):v[d].ty==="st"?b.push(s(v[d],m[d],E)):v[d].ty==="tm"?b.push(l(v[d],m[d],E)):v[d].ty==="tr"||(v[d].ty==="el"?b.push(u(v[d],m[d],E)):v[d].ty==="sr"?b.push(h(v[d],m[d],E)):v[d].ty==="sh"?b.push(ShapePathInterface(v[d],m[d],E)):v[d].ty==="rc"?b.push(x(v[d],m[d],E)):v[d].ty==="rd"?b.push(f(v[d],m[d],E)):v[d].ty==="rp"?b.push(g(v[d],m[d],E)):v[d].ty==="gf"?b.push(a(v[d],m[d],E)):b.push(o(v[d],m[d])));return b}function r(v,m,E){var b,d=function(S){for(var k=0,P=b.length;k<P;){if(b[k]._name===S||b[k].mn===S||b[k].propertyIndex===S||b[k].ix===S||b[k].ind===S)return b[k];k+=1}return typeof S=="number"?b[S-1]:null};d.propertyGroup=propertyGroupFactory(d,E),b=e(v.it,m.it,d.propertyGroup),d.numProperties=b.length;var p=c(v.it[v.it.length-1],m.it[m.it.length-1],d.propertyGroup);return d.transform=p,d.propertyIndex=v.cix,d._name=v.nm,d}function n(v,m,E){var b=function(S){switch(S){case"ADBE Vectors Group":case"Contents":case 2:return b.content;default:return b.transform}};b.propertyGroup=propertyGroupFactory(b,E);var d=r(v,m,b.propertyGroup),p=c(v.it[v.it.length-1],m.it[m.it.length-1],b.propertyGroup);return b.content=d,b.transform=p,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,m,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(m.c)},opacity:{get:ExpressionPropertyInterface(m.o)},_name:{value:v.nm},mn:{value:v.mn}}),m.c.setGroupProperty(PropertyInterface("Color",E)),m.o.setGroupProperty(PropertyInterface("Opacity",E)),b}function a(v,m,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(m.s)},endPoint:{get:ExpressionPropertyInterface(m.e)},opacity:{get:ExpressionPropertyInterface(m.o)},type:{get:function(){return"a"}},_name:{value:v.nm},mn:{value:v.mn}}),m.s.setGroupProperty(PropertyInterface("Start Point",E)),m.e.setGroupProperty(PropertyInterface("End Point",E)),m.o.setGroupProperty(PropertyInterface("Opacity",E)),b}function o(){function v(){return null}return v}function s(v,m,E){var b=propertyGroupFactory(P,E),d=propertyGroupFactory(k,b);function p(w){Object.defineProperty(k,v.d[w].nm,{get:ExpressionPropertyInterface(m.d.dataProps[w].p)})}var y,S=v.d?v.d.length:0,k={};for(y=0;y<S;y+=1)p(y),m.d.dataProps[y].p.setGroupProperty(d);function P(w){return w==="Color"||w==="color"?P.color:w==="Opacity"||w==="opacity"?P.opacity:w==="Stroke Width"||w==="stroke width"?P.strokeWidth:null}return Object.defineProperties(P,{color:{get:ExpressionPropertyInterface(m.c)},opacity:{get:ExpressionPropertyInterface(m.o)},strokeWidth:{get:ExpressionPropertyInterface(m.w)},dash:{get:function(){return k}},_name:{value:v.nm},mn:{value:v.mn}}),m.c.setGroupProperty(PropertyInterface("Color",b)),m.o.setGroupProperty(PropertyInterface("Opacity",b)),m.w.setGroupProperty(PropertyInterface("Stroke Width",b)),P}function l(v,m,E){function b(p){return p===v.e.ix||p==="End"||p==="end"?b.end:p===v.s.ix?b.start:p===v.o.ix?b.offset:null}var d=propertyGroupFactory(b,E);return b.propertyIndex=v.ix,m.s.setGroupProperty(PropertyInterface("Start",d)),m.e.setGroupProperty(PropertyInterface("End",d)),m.o.setGroupProperty(PropertyInterface("Offset",d)),b.propertyIndex=v.ix,b.propertyGroup=E,Object.defineProperties(b,{start:{get:ExpressionPropertyInterface(m.s)},end:{get:ExpressionPropertyInterface(m.e)},offset:{get:ExpressionPropertyInterface(m.o)},_name:{value:v.nm}}),b.mn=v.mn,b}function c(v,m,E){function b(p){return v.a.ix===p||p==="Anchor Point"?b.anchorPoint:v.o.ix===p||p==="Opacity"?b.opacity:v.p.ix===p||p==="Position"?b.position:v.r.ix===p||p==="Rotation"||p==="ADBE Vector Rotation"?b.rotation:v.s.ix===p||p==="Scale"?b.scale:v.sk&&v.sk.ix===p||p==="Skew"?b.skew:v.sa&&v.sa.ix===p||p==="Skew Axis"?b.skewAxis:null}var d=propertyGroupFactory(b,E);return m.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",d)),m.transform.mProps.p.setGroupProperty(PropertyInterface("Position",d)),m.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",d)),m.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",d)),m.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",d)),m.transform.mProps.sk&&(m.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",d)),m.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",d))),m.transform.op.setGroupProperty(PropertyInterface("Opacity",d)),Object.defineProperties(b,{opacity:{get:ExpressionPropertyInterface(m.transform.mProps.o)},position:{get:ExpressionPropertyInterface(m.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(m.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(m.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(m.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(m.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(m.transform.mProps.sa)},_name:{value:v.nm}}),b.ty="tr",b.mn=v.mn,b.propertyGroup=E,b}function u(v,m,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 p=m.sh.ty==="tm"?m.sh.prop:m.sh;return p.s.setGroupProperty(PropertyInterface("Size",d)),p.p.setGroupProperty(PropertyInterface("Position",d)),Object.defineProperties(b,{size:{get:ExpressionPropertyInterface(p.s)},position:{get:ExpressionPropertyInterface(p.p)},_name:{value:v.nm}}),b.mn=v.mn,b}function h(v,m,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),p=m.sh.ty==="tm"?m.sh.prop:m.sh;return b.propertyIndex=v.ix,p.or.setGroupProperty(PropertyInterface("Outer Radius",d)),p.os.setGroupProperty(PropertyInterface("Outer Roundness",d)),p.pt.setGroupProperty(PropertyInterface("Points",d)),p.p.setGroupProperty(PropertyInterface("Position",d)),p.r.setGroupProperty(PropertyInterface("Rotation",d)),v.ir&&(p.ir.setGroupProperty(PropertyInterface("Inner Radius",d)),p.is.setGroupProperty(PropertyInterface("Inner Roundness",d))),Object.defineProperties(b,{position:{get:ExpressionPropertyInterface(p.p)},rotation:{get:ExpressionPropertyInterface(p.r)},points:{get:ExpressionPropertyInterface(p.pt)},outerRadius:{get:ExpressionPropertyInterface(p.or)},outerRoundness:{get:ExpressionPropertyInterface(p.os)},innerRadius:{get:ExpressionPropertyInterface(p.ir)},innerRoundness:{get:ExpressionPropertyInterface(p.is)},_name:{value:v.nm}}),b.mn=v.mn,b}function x(v,m,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),p=m.sh.ty==="tm"?m.sh.prop:m.sh;return b.propertyIndex=v.ix,p.p.setGroupProperty(PropertyInterface("Position",d)),p.s.setGroupProperty(PropertyInterface("Size",d)),p.r.setGroupProperty(PropertyInterface("Rotation",d)),Object.defineProperties(b,{position:{get:ExpressionPropertyInterface(p.p)},roundness:{get:ExpressionPropertyInterface(p.r)},size:{get:ExpressionPropertyInterface(p.s)},_name:{value:v.nm}}),b.mn=v.mn,b}function f(v,m,E){function b(y){return v.r.ix===y||y==="Round Corners 1"?b.radius:null}var d=propertyGroupFactory(b,E),p=m;return b.propertyIndex=v.ix,p.rd.setGroupProperty(PropertyInterface("Radius",d)),Object.defineProperties(b,{radius:{get:ExpressionPropertyInterface(p.rd)},_name:{value:v.nm}}),b.mn=v.mn,b}function g(v,m,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),p=m;return b.propertyIndex=v.ix,p.c.setGroupProperty(PropertyInterface("Copies",d)),p.o.setGroupProperty(PropertyInterface("Offset",d)),Object.defineProperties(b,{copies:{get:ExpressionPropertyInterface(p.c)},offset:{get:ExpressionPropertyInterface(p.o)},_name:{value:v.nm}}),b.mn=v.mn,b}return function(v,m,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 S=0,k=b.length;S<k;){if(b[S]._name===y)return b[S];S+=1}return null}function p(){return E}return d.propertyGroup=propertyGroupFactory(d,p),b=e(v,m,d.propertyGroup),d.numProperties=b.length,d._name="Contents",d}}(),TextExpressionInterface=function(){return function(e){var r;function n(i){switch(i){case"ADBE Text Document":return n.sourceText;default:return null}}return Object.defineProperty(n,"sourceText",{get:function(){e.textProperty.getValue();var a=e.textProperty.currentData.t;return(!r||a!==r.value)&&(r=new String(a),r.value=a||new String(a),Object.defineProperty(r,"style",{get:function(){return{fillColor:e.textProperty.currentData.fc}}})),r}}),n}}();function _typeof(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(n){return typeof n}:_typeof=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_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 h=parseInt(c.substr(u+a.length),10);return o=o[h],_typeof(o)==="object"?l:o}return""}return s},r=function(i){function a(o){return o==="Outline"?a.outlineInterface():null}return a._name="Outline",a.outlineInterface=e(i),a};return function(n){function i(a){return a==="Data"?i.dataInterface:null}return i._name="Data",i.dataInterface=r(n),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 r(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 n(s){var l=-.01,c=this.getValueAtTime(s),u=this.getValueAtTime(s+l),h=0;if(c.length){var x;for(x=0;x<c.length;x+=1)h+=Math.pow(u[x]-c[x],2);h=Math.sqrt(h)*100}else h=0;return h}function i(s){if(this.vel!==void 0)return this.vel;var l=-.001,c=this.getValueAtTime(s),u=this.getValueAtTime(s+l),h;if(c.length){h=createTypedArray("float32",c.length);var x;for(x=0;x<c.length;x+=1)h[x]=(u[x]-c[x])/l}else h=(u-c)/l;return h}function a(){return this.pv}function o(s){this.propertyGroup=s}return{searchExpressions:e,getSpeedAtTime:n,getVelocityAtTime:i,getValueAtTime:r,getStaticValueAtTime:a,setGroupProperty:o}}();function addPropertyDecorator(){function e(f,g,v){if(!this.k||!this.keyframes)return this.pv;f=f?f.toLowerCase():"";var m=this.comp.renderedFrame,E=this.keyframes,b=E[E.length-1].t;if(m<=b)return this.pv;var d,p;v?(g?d=Math.abs(b-this.elem.comp.globalData.frameRate*g):d=Math.max(0,b-this.elem.data.ip),p=b-d):((!g||g>E.length-1)&&(g=E.length-1),p=E[E.length-1-g].t,d=b-p);var y,S,k;if(f==="pingpong"){var P=Math.floor((m-p)/d);if(P%2!==0)return this.getValueAtTime((d-(m-p)%d+p)/this.comp.globalData.frameRate,0)}else if(f==="offset"){var w=this.getValueAtTime(p/this.comp.globalData.frameRate,0),D=this.getValueAtTime(b/this.comp.globalData.frameRate,0),M=this.getValueAtTime(((m-p)%d+p)/this.comp.globalData.frameRate,0),B=Math.floor((m-p)/d);if(this.pv.length){for(k=new Array(w.length),S=k.length,y=0;y<S;y+=1)k[y]=(D[y]-w[y])*B+M[y];return k}return(D-w)*B+M}else if(f==="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(k=new Array(L.length),S=k.length,y=0;y<S;y+=1)k[y]=L[y]+(L[y]-V[y])*((m-b)/this.comp.globalData.frameRate)/5e-4;return k}return L+(L-V)*((m-b)/.001)}return this.getValueAtTime(((m-p)%d+p)/this.comp.globalData.frameRate,0)}function r(f,g,v){if(!this.k)return this.pv;f=f?f.toLowerCase():"";var m=this.comp.renderedFrame,E=this.keyframes,b=E[0].t;if(m>=b)return this.pv;var d,p;v?(g?d=Math.abs(this.elem.comp.globalData.frameRate*g):d=Math.max(0,this.elem.data.op-b),p=b+d):((!g||g>E.length-1)&&(g=E.length-1),p=E[g].t,d=p-b);var y,S,k;if(f==="pingpong"){var P=Math.floor((b-m)/d);if(P%2===0)return this.getValueAtTime(((b-m)%d+b)/this.comp.globalData.frameRate,0)}else if(f==="offset"){var w=this.getValueAtTime(b/this.comp.globalData.frameRate,0),D=this.getValueAtTime(p/this.comp.globalData.frameRate,0),M=this.getValueAtTime((d-(b-m)%d+b)/this.comp.globalData.frameRate,0),B=Math.floor((b-m)/d)+1;if(this.pv.length){for(k=new Array(w.length),S=k.length,y=0;y<S;y+=1)k[y]=M[y]-(D[y]-w[y])*B;return k}return M-(D-w)*B}else if(f==="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(k=new Array(L.length),S=k.length,y=0;y<S;y+=1)k[y]=L[y]+(L[y]-V[y])*(b-m)/.001;return k}return L+(L-V)*(b-m)/.001}return this.getValueAtTime((d-((b-m)%d+b))/this.comp.globalData.frameRate,0)}function n(f,g){if(!this.k)return this.pv;if(f=(f||.4)*.5,g=Math.floor(g||5),g<=1)return this.pv;var v=this.comp.renderedFrame/this.comp.globalData.frameRate,m=v-f,E=v+f,b=g>1?(E-m)/(g-1):1,d=0,p=0,y;this.pv.length?y=createTypedArray("float32",this.pv.length):y=0;for(var S;d<g;){if(S=this.getValueAtTime(m+d*b),this.pv.length)for(p=0;p<this.pv.length;p+=1)y[p]+=S[p];else y+=S;d+=1}if(this.pv.length)for(p=0;p<this.pv.length;p+=1)y[p]/=g;else y/=g;return y}function i(f){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(f);g.translate(-v[0]*this.a.mult,-v[1]*this.a.mult,v[2]*this.a.mult)}if(this.appliedTransformations<2){var m=this.s.getValueAtTime(f);g.scale(m[0]*this.s.mult,m[1]*this.s.mult,m[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var E=this.sk.getValueAtTime(f),b=this.sa.getValueAtTime(f);g.skewFromAxis(-E*this.sk.mult,b*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var d=this.r.getValueAtTime(f);g.rotate(-d*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var p=this.rz.getValueAtTime(f),y=this.ry.getValueAtTime(f),S=this.rx.getValueAtTime(f),k=this.or.getValueAtTime(f);g.rotateZ(-p*this.rz.mult).rotateY(y*this.ry.mult).rotateX(S*this.rx.mult).rotateZ(-k[2]*this.or.mult).rotateY(k[1]*this.or.mult).rotateX(k[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var P=this.px.getValueAtTime(f),w=this.py.getValueAtTime(f);if(this.data.p.z){var D=this.pz.getValueAtTime(f);g.translate(P*this.px.mult,w*this.py.mult,-D*this.pz.mult)}else g.translate(P*this.px.mult,w*this.py.mult,0)}else{var M=this.p.getValueAtTime(f);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(f,g,v){var m=o(f,g,v);return m.dynamicProperties.length?m.getValueAtTime=i.bind(m):m.getValueAtTime=a.bind(m),m.setGroupProperty=expressionHelpers.setGroupProperty,m};var s=PropertyFactory.getProp;PropertyFactory.getProp=function(f,g,v,m,E){var b=s(f,g,v,m,E);b.kf?b.getValueAtTime=expressionHelpers.getValueAtTime.bind(b):b.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(b),b.setGroupProperty=expressionHelpers.setGroupProperty,b.loopOut=e,b.loopIn=r,b.smooth=n,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(f,g,b),b.k&&E.addDynamicProperty(b),b};function l(f){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),f*=this.elem.globalData.frameRate,f-=this.offsetTime,f!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<f?this._caching.lastIndex:0,this._cachingAtTime.lastTime=f,this.interpolateShape(f,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}var c=ShapePropertyFactory.getConstructorFunction(),u=ShapePropertyFactory.getKeyframedConstructorFunction();function h(){}h.prototype={vertices:function(g,v){this.k&&this.getValue();var m=this.v;v!==void 0&&(m=this.getValueAtTime(v,0));var E,b=m._length,d=m[g],p=m.v,y=createSizedArray(b);for(E=0;E<b;E+=1)g==="i"||g==="o"?y[E]=[d[E][0]-p[E][0],d[E][1]-p[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 m=this.v;v!==void 0&&(m=this.getValueAtTime(v,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(m));for(var E=this._segmentsLength,b=E.lengths,d=E.totalLength*g,p=0,y=b.length,S=0,k;p<y;){if(S+b[p].addedLength>d){var P=p,w=m.c&&p===y-1?0:p+1,D=(d-S)/b[p].addedLength;k=bez.getPointInSegment(m.v[P],m.v[w],m.o[P],m.i[w],D,b[p]);break}else S+=b[p].addedLength;p+=1}return k||(k=m.c?[m.v[0][0],m.v[0][1]]:[m.v[m._length-1][0],m.v[m._length-1][1]]),k},vectorOnPath:function(g,v,m){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],p=b[1]-E[1],y=Math.sqrt(Math.pow(d,2)+Math.pow(p,2));if(y===0)return[0,0];var S=m==="tangent"?[d/y,p/y]:[-p/y,d/y];return S},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([h],c),extendPrototype([h],u),u.prototype.getValueAtTime=l,u.prototype.initiateExpression=ExpressionManager.initiateExpression;var x=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(f,g,v,m,E){var b=x(f,g,v,m,E);return b.propertyIndex=g.ix,b.lock=!1,v===3?expressionHelpers.searchExpressions(f,g.pt,b):v===4&&expressionHelpers.searchExpressions(f,g.ks,b),b.k&&f.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(r,n){var i=this.calculateExpression(n);if(r.t!==i){var a={};return this.copyData(a,r),a.t=i.toString(),a.__complete=!1,a}return r},TextProperty.prototype.searchProperty=function(){var r=this.searchKeyframes(),n=this.searchExpressions();return this.kf=r||n,this.kf},TextProperty.prototype.searchExpressions=e}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function e(r,n){var i=createNS("feMerge");i.setAttribute("result",r);var a,o;for(o=0;o<n.length;o+=1)a=createNS("feMergeNode"),a.setAttribute("in",n[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,r,n,i,a){this.filterManager=r;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 r=this.filterManager.effectElements[0].p.v,n=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",n[0]-r[0]+" 0 0 0 "+r[0]+" "+(n[1]-r[1])+" 0 0 0 "+r[1]+" "+(n[2]-r[2])+" 0 0 0 "+r[2]+" 0 0 0 1 0")}};function SVGFillFilter(e,r,n,i){this.filterManager=r;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 r=this.filterManager.effectElements[2].p.v,n=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+r[0]+" 0 0 0 0 "+r[1]+" 0 0 0 0 "+r[2]+" 0 0 0 "+n+" 0")}};function SVGStrokeEffect(e,r,n){this.initialized=!1,this.filterManager=r,this.elem=n,this.paths=[]}SVGStrokeEffect.prototype.initialize=function(){var e=this.elem.layerElement.children||this.elem.layerElement.childNodes,r,n,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),n=createNS("g"),n.setAttribute("fill","none"),n.setAttribute("stroke-linecap","round"),n.setAttribute("stroke-dashoffset",1),i;i<a;i+=1)r=createNS("path"),n.appendChild(r),this.paths.push({p:r,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(n),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,n.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(n),this.elem.layerElement.removeAttribute("mask"),n.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=n},SVGStrokeEffect.prototype.renderFrame=function(e){this.initialized||this.initialize();var r,n=this.paths.length,i,a;for(r=0;r<n;r+=1)if(this.paths[r].m!==-1&&(i=this.elem.maskManager.viewData[this.paths[r].m],a=this.paths[r].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),h=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01,x=Math.floor(u/h),f;for(f=0;f<x;f+=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,r,n,i){this.filterManager=r;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 r=this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v,a=i[0]+" "+n[0]+" "+r[0],o=i[1]+" "+n[1]+" "+r[1],s=i[2]+" "+n[2]+" "+r[2];this.feFuncR.setAttribute("tableValues",a),this.feFuncG.setAttribute("tableValues",o),this.feFuncB.setAttribute("tableValues",s)}};function SVGProLevelsFilter(e,r,n,i){this.filterManager=r;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,r){var n=createNS(e);return n.setAttribute("type","table"),r.appendChild(n),n},SVGProLevelsFilter.prototype.getTableValue=function(e,r,n,i,a){for(var o=0,s=256,l,c=Math.min(e,r),u=Math.max(e,r),h=Array.call(null,{length:s}),x,f=0,g=a-i,v=r-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/n),h[f]=x,f+=1,o+=256/(s-1);return h.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var r,n=this.filterManager.effectElements;this.feFuncRComposed&&(e||n[3].p._mdf||n[4].p._mdf||n[5].p._mdf||n[6].p._mdf||n[7].p._mdf)&&(r=this.getTableValue(n[3].p.v,n[4].p.v,n[5].p.v,n[6].p.v,n[7].p.v),this.feFuncRComposed.setAttribute("tableValues",r),this.feFuncGComposed.setAttribute("tableValues",r),this.feFuncBComposed.setAttribute("tableValues",r)),this.feFuncR&&(e||n[10].p._mdf||n[11].p._mdf||n[12].p._mdf||n[13].p._mdf||n[14].p._mdf)&&(r=this.getTableValue(n[10].p.v,n[11].p.v,n[12].p.v,n[13].p.v,n[14].p.v),this.feFuncR.setAttribute("tableValues",r)),this.feFuncG&&(e||n[17].p._mdf||n[18].p._mdf||n[19].p._mdf||n[20].p._mdf||n[21].p._mdf)&&(r=this.getTableValue(n[17].p.v,n[18].p.v,n[19].p.v,n[20].p.v,n[21].p.v),this.feFuncG.setAttribute("tableValues",r)),this.feFuncB&&(e||n[24].p._mdf||n[25].p._mdf||n[26].p._mdf||n[27].p._mdf||n[28].p._mdf)&&(r=this.getTableValue(n[24].p.v,n[25].p.v,n[26].p.v,n[27].p.v,n[28].p.v),this.feFuncB.setAttribute("tableValues",r)),this.feFuncA&&(e||n[31].p._mdf||n[32].p._mdf||n[33].p._mdf||n[34].p._mdf||n[35].p._mdf)&&(r=this.getTableValue(n[31].p.v,n[32].p.v,n[33].p.v,n[34].p.v,n[35].p.v),this.feFuncA.setAttribute("tableValues",r))}};function SVGDropShadowEffect(e,r,n,i,a){var o=r.container.globalData.renderConfig.filterSize,s=r.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=r;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 h=createNS("feComposite");h.setAttribute("in",i+"_drop_shadow_3"),h.setAttribute("in2",i+"_drop_shadow_2"),h.setAttribute("operator","in"),h.setAttribute("result",i+"_drop_shadow_4"),e.appendChild(h);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 r=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(r[0]*255),Math.round(r[1]*255),Math.round(r[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 n=this.filterManager.effectElements[3].p.v,i=(this.filterManager.effectElements[2].p.v-90)*degToRads,a=n*Math.cos(i),o=n*Math.sin(i);this.feOffset.setAttribute("dx",a),this.feOffset.setAttribute("dy",o)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,r,n){this.initialized=!1,this.filterManager=r,this.filterElem=e,this.elem=n,n.matteElement=createNS("g"),n.matteElement.appendChild(n.layerElement),n.matteElement.appendChild(n.transformedElement),n.baseElement=n.matteElement}SVGMatte3Effect.prototype.findSymbol=function(e){for(var r=0,n=_svgMatteSymbols.length;r<n;){if(_svgMatteSymbols[r]===e)return _svgMatteSymbols[r];r+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(e,r){var n=e.layerElement.parentNode;if(n){for(var i=n.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","#"+r),s?n.insertBefore(l,s):n.appendChild(l)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,r){if(!this.findSymbol(r)){var n=createElementID(),i=createNS("mask");i.setAttribute("id",r.layerId),i.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(r);var a=e.globalData.defs;a.appendChild(i);var o=createNS("symbol");o.setAttribute("id",n),this.replaceInParent(r,n),o.appendChild(r.layerElement),a.appendChild(o);var s=createNS("use");s.setAttribute("href","#"+n),i.appendChild(s),r.data.hd=!1,r.show()}e.setMatte(r.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var e=this.filterManager.effectElements[0].p.v,r=this.elem.comp.elements,n=0,i=r.length;n<i;)r[n]&&r[n].data.ind===e&&this.setElementAsMask(this.elem,r[n]),n+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()};function SVGGaussianBlurEffect(e,r,n,i){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=r;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 r=.3,n=this.filterManager.effectElements[0].p.v*r,i=this.filterManager.effectElements[1].p.v,a=i==3?0:n,o=i==2?0:n;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 r=this.effectsManager.effectElements,n=r[0].p.v,i=r[1].p.v,a=r[2].p.v===1,o=r[3].p.v,s=a?o:r[4].p.v,l=r[5].p.v,c=r[6].p.v,u=r[7].p.v;this.matrix.reset(),this.matrix.translate(-n[0],-n[1],n[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!==r[8].p.v&&(this.opacity=r[8].p.v,this._opMdf=!0)}};function SVGTransformEffect(e,r){this.init(r)}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 r=usePickComponentStyle(e),n=vue.computed(()=>useImagePath(e.imgUrl)),{pageMode:i}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),a=vue.computed(()=>{const v={},{actionType:m,linkPage:E,href:b}=e,{requestParams:d={}}=window.config;return vue.unref(i)!=="design"&&m==="close"&&e.isDrillShow&&!d.drillFlag&&(v.display="none"),(m==="link"&&(E||b)||!m&&(E||b)||m==="close")&&(v.cursor="pointer"),{...vue.unref(r),...v}}),{getGlobalModel:o,setGlobalModel:s,getRecordValueByKeyName:l}=vue.inject(GLOBAL_MODEL,{getGlobalModel:v=>{},setGlobalModel:(v,m)=>{},getRecordValueByKeyName:v=>{}}),{setTemplateData:c}=vue.inject("templateOperate",{setTemplateData:v=>{}}),h=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(),f=vue.ref(),g=()=>{const{directory:v}=e.animationSource;e.isAnimation&&x.value&&v&&(f.value=lottie.loadAnimation({name:`${e.keyName}-lotTie`,container:x.value,renderer:"svg",loop:!0,autoplay:!0,path:useImagePath(v)+"data.json"}),vue.unref(f).setSpeed(1))};return vue.watch(()=>[e.isAnimation,e.animationSource],([v])=>{v&&vue.nextTick(()=>{g()})},{immediate:!0,deep:!0}),useOnEvent(e,{click:h}),{customStyle:a,myImgUrl:n,animation:x,pageMode:i,onClick:h}}}),__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,r)=>(__injectCSSVars__$1(),__setup__$1(e,r)):__injectCSSVars__$1;const Image_vue_vue_type_style_index_0_scoped_8b128e89_lang="",_hoisted_1$3=["src"];function _sfc_render$4(e,r,n,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:r[0]||(r[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:r[1]||(r[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$4],["__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$2=vue.defineComponent({name:"EcanIframe",props:{...iframeComponentProps},setup(e){const r=usePickComponentStyle(e),{contextRequestUrl:n}=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(n);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:r,myLink:a}}}),Iframe_vue_vue_type_style_index_0_scoped_06253280_lang="",_hoisted_1$2=["src"];function _sfc_render$3(e,r,n,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$2,[["render",_sfc_render$3],["__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:r}){const{pageMode:n}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),i=vue.ref(!1),a=vue.computed(()=>vue.unref(n)!=="design"&&e.isAutoScroll),o=vue.ref({}),s=vue.ref(!1),l=vue.computed(()=>{const Q=lodashEs.cloneDeep(e.columns);return e.isUseSeq&&Q.unshift({title:e.seqName,dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&Q.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),Q}),c=vue.ref(),u=vue.ref(!1),h=usePickComponentStyle(e),x=vue.ref([]),f=vue.computed(()=>e.scrollX),g=vue.ref(parseFloat(e.height)),v=()=>{let Q=0;switch(e.size){case"small":Q=50;break;case"middle":Q=53;break;default:Q=65;break}return Q},m=vue.ref(0),E=vue.ref(""),b=vue.ref(0);vue.watchEffect(()=>{var Q;(Q=x.value)!=null&&Q.length&&e.height&&setTimeout(()=>{let te=parseFloat(e.height);const ae=document.querySelector(`#ecanTable-${e.id} .ant-table-body`),ue=document.querySelector(`#ecanTable-${e.id} .ant-table-tbody`),se=document.querySelector(`#ecanTable-${e.id} thead.ant-table-thead`),ce=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`);let oe=0;if(se&&(te-=(se==null?void 0:se.clientHeight)||0),ce&&e.isSummaryFixed&&(oe=(ce==null?void 0:ce.clientHeight)||0,te-=oe),e.paginationShow&&!e.isAutoScroll){let me=0;me=v(),me&&(te-=me)}(ue==null?void 0:ue.clientHeight)>te?g.value=te:g.value=0,vue.nextTick(()=>{var me;if(oe){const ge=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`),xe=(ge==null?void 0:ge.clientHeight)||0;oe!==xe&&vue.unref(g)&&(g.value=te+oe-xe)}if(e.isAutoScroll&&i.value){m.value=(ae==null?void 0:ae.clientHeight)||0,b.value=(se==null?void 0:se.clientHeight)||0,o.value={height:((ue==null?void 0:ue.clientHeight)||0)+"px"};const ge=document.querySelector(`#ecanTable-${e.id} .ant-table-body > table`);if(E.value=(me=document.querySelector(`#ecanTable-${e.id} .ant-table`))==null?void 0:me.className,ge){const xe=ge.cloneNode(!0);ge.style.visibility="hidden",setTimeout(()=>{ae.setAttribute("id","hiddenTableBody")},0);const Se=document.querySelectorAll(`#ecanTable-${e.id} .scroll-wrap`);if(Se!=null&&Se.length){for(const ze of Se)ze.append(xe.cloneNode(!0));const De=document.querySelectorAll(`#ecanTable-${e.id} .scroll-wrap .ant-table-cell`);if(De!=null&&De.length)for(const ze of De)d(ze);const je=document.querySelector(`#ecanTable-${e.id} .vue3-marquee`);je&&je.addEventListener("scroll",ze=>{var Ze;document.querySelector(`#ecanTable-${e.id} .ant-table-header`).scrollLeft=((Ze=ze==null?void 0:ze.target)==null?void 0:Ze.scrollLeft)||0})}}}})},0)});function d(Q){Q.addEventListener("click",te=>{const ue=p(te.target).getAttribute("dix");if(ue){const se=document.querySelector(`#ecanTable-${e.id} #hiddenTableBody td[dix="${ue}"]`);se&&se.click()}})}function p(Q){return Q.className.includes("ant-table-cell")?Q:p(Q.parentElement)}const y=vue.ref([]),S=vue.ref([]),k=vue.ref([]),P=vue.ref([]),w=vue.ref(0),D=vue.ref(1),M=vue.ref(e.paginationPageSize||10),B=vue.reactive([]),L=(Q,te)=>{let ae="";return Q.forEach((ue,se)=>{const{value:ce,rule:oe}=ue;ue.conditions?ae+=`(${L(ue.conditions,ue.join)})`:ce&&oe&&(ae+=`value ${oe} '${ce}'`),ae+=`${se===Q.length-1?"":te?" "+te+" ":""}`}),ae},V=(Q=[])=>{var te,ae;if(Array.isArray(Q)&&Q.length>0){let ue=Q.length;const se=e.columnsFixedNum;if(e.dataType==="indicator"&&((te=vue.unref(l))!=null&&te.length)&&!vue.unref(l).find(ce=>{var oe;return(oe=ce.children)==null?void 0:oe.length})){const{graphicConfig:{indicators:ce=[]}}=e;Q.forEach((oe,me)=>{if(vue.unref(l)[me])for(const Se in vue.unref(l)[me])["dataIndex","title"].includes(Se)||(oe[Se]=vue.unref(l)[me][Se]);const ge=ce.find(Se=>Se.label===oe.title),{showLabel:xe=""}=ge||{};xe&&(oe.title=xe)})}for(let ce=ue-1;ce>=0;ce--)(ae=Q[ce])!=null&&ae.isHidden&&Q.splice(ce,1);ue=Q.length;for(let ce=0;ce<ue;ce++){const oe=Q[ce];if(ce<se?oe.fixed="left":oe.fixed=!1,e.isSortByFront&&oe.sorter){const Ue=oe.dataIndex;oe.sorter=(We,Ye)=>We[Ue]-Ye[Ue]}const{cellAlign:me="center",cellColor:ge,dataIndex:xe,title:Se,tableFilter:De,headerCellAlign:je,headerCellColor:ze,overflow:Ze,conditions:Xe}=oe;De&&(B.push(xe),oe.filterOptionsInputValue="",oe.filterCheckboxGroupValue=[],oe.customFilterDropdown=!0,oe.onFilter=(Ue,We)=>We[xe].toString().toLowerCase().includes(Ue.toLowerCase())),Xe&&(oe.conditionCode=L(Xe)),oe.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:e.headerFontSize,fontWeight:e.headerFontWeight,textAlign:je||"center",color:ze||e.headerFontColor,borderBottomColor:e.borderColor,backgroundColor:e.headerBackgroundColor}}),oe.customCell=(Ue,We,Ye)=>({style:{textAlign:me,color:$(Ye)?e.linkTextColor:ge||e.cellFontColor,backgroundColor:e.cellBackgroundColor,borderBottomColor:e.borderColor},class:{highlight:vue.unref(fe)===We&&e.clickHighlight,linkText:$(Ye)},dix:Ye.dataIndex+"_"+We,onClick:Z("click",()=>{const tt=e.id,nt=J(tt);Ue={dataIndex:xe,title:Se,...Ue},K(tt,{...nt,type:e.type,RECORD:Ue}),fe.value=We,setTimeout(()=>{if(!e.linkPage&&!e.href)return;let rt=!1;($(Ye)||e.clickTarget!=="cell")&&(rt=!0),rt&&handleJumpLink(e,{pageMode:vue.unref(n),getRecordValueByKeyName:ee})},0)})}),Ze==="ellipsis"?oe.ellipsis=!0:oe.ellipsis=!1,Array.isArray(oe.children)&&V(oe.children)}}};function $(Q){let te=!1;return e.clickTarget==="cell"&&e.clickTargetColumns.includes(Q.dataIndex)&&(te=!0),te}const N=(Q=[])=>{var ae;let te=lodashEs.cloneDeep(Q);return(ae=vue.unref(P))!=null&&ae.length&&(te=lodashEs.cloneDeep(vue.unref(P))),e.isUseSeq&&te.unshift({title:e.seqName,dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&te.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),V(te),te};vue.watch(M,()=>{D.value=1,be(!1)}),vue.watch(c,Q=>{u.value=!!Q}),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=N(lodashEs.cloneDeep(e.columns))},{immediate:!0,deep:!0}),vue.watch(()=>[e.data,e.dataType],([Q,te])=>{te==="static"&&(S.value=Q)},{immediate:!0});const T=vue.ref({}),I=Q=>{if(Array.isArray(Q)){const te=Q.length,ae=B,ue=ae.length,se={};for(let oe=0;oe<te;oe++){const me=Q[oe];for(let ge=0;ge<ue;ge++){const xe=ae[ge];if(se[xe])se[xe].add(me[xe]);else{const Se=new Set;Se.add(me[xe]),se[xe]=Se}}}const ce={};for(const oe in se)if(Object.prototype.hasOwnProperty.call(se,oe)){const me=se[oe],ge=Array.from(me);ce[oe]=ge.map(xe=>({label:xe,value:xe}))}T.value=ce}};vue.watch(()=>[e.isReverse,y.value,S.value],()=>{const Q=vue.unref(y),te=vue.unref(S);if(I(te),e.isReverse){const{columns:ae,dataSource:ue}=A(lodashEs.cloneDeep(Q),lodashEs.cloneDeep(te));k.value=ae,x.value=ue.map(se=>({key:nanoid(6),...se}))}else k.value=Q,x.value=te.map(ae=>({key:nanoid(6),...ae}))},{immediate:!0});const A=(Q,te)=>{const ae=Q[0],ue=[{title:ae.title,dataIndex:"col0",key:"col0",align:"center"}];for(let ce=0;ce<te.length;ce++){const oe=te[ce],me="col"+(ce+1);ue.push({title:oe[ae.dataIndex],dataIndex:me,key:me,align:"center"})}const se=[];for(let ce=1;ce<Q.length;ce++){const oe=Q[ce],me={col0:oe.title};for(let ge=0;ge<te.length;ge++){const xe=te[ge];me[`col${ge+1}`]=xe[oe.dataIndex]}se.push(me)}return{columns:ue,dataSource:se}},C=vue.ref(""),F=Q=>{var ue;const{rows:te=[],total:ae=0}=((ue=Q==null?void 0:Q.data)==null?void 0:ue.data)||{};if(w.value=ae,Array.isArray(te)&&(S.value=te),window.config.routerBaseURL.includes("1523545080925487106")){const{requestParams:se=[]}=e,ce=se.find(oe=>oe.key==="dataSqlId");if((ce==null?void 0:ce.value)==="xt_jxzebg"){const oe=te.filter(me=>!me.绩效总额).map(me=>me.ORG_NAME);oe!=null&&oe.length&&vue.nextTick(()=>{antDesignVue.notification.warning({message:"提示",description:`当前时段${oe.join("、")}绩效数据为空`,duration:3})})}}i.value=!0},_=useRequestData(e,F),O=async(Q=!0,te={})=>{try{Q&&(s.value=!0),vue.unref(C)&&(te.orderCondition=vue.unref(C)),e.paginationShow&&(te={pageNum:vue.unref(D),pageSize:vue.unref(M)||"10",layer:"1",...te});const ae=await _(te);F(ae)}catch(ae){console.error(ae)}finally{s.value=!1}},U=({current:Q},te,ae)=>{if(D.value=Q,ae&&Object.keys(ae).length>0){const{field:ue,order:se}=ae,oe={ascend:"asc",descend:"desc"}[se];ue!=null&&oe!=null&&oe?C.value=ue+" "+oe:oe||(C.value="")}e.isSortByFront||be(!1)},q=vue.computed(()=>{const Q=e.simple,te=[e.paginationPosition],ae={};return e.isShowTotal&&(ae.showTotal=ue=>`共 ${ue} 条数据`),e.paginationShow&&{simple:Q,position:te,total:vue.unref(w),current:vue.unref(D),pageSize:vue.unref(M)||"10",showSizeChanger:!1,size:"large",...ae}}),H=Q=>+Q==1?"是":+Q==0?"否":Q,j=(Q,te)=>{const{format:ae,retentiondigit:ue,customFormatter:se,defaultVal:ce}=te;let oe="";if(ae==null||ae==="")oe=Q;else{const me={money:formatMoney,percentage:formatPercentage,contrast:formatPercentage,boolean:H,decimals:formatDecimals,custom:formatCustom};me[ae]||(oe=""),ae==="decimals"?oe=me[ae](Q,ue)||"":ae==="custom"?oe=me[ae](Q,se)||"":oe=me[ae](Q)||""}return oe||(oe=ce),oe},G=Q=>Q==="contrast"?"upDown":"",R=Q=>{const{text:te,format:ae,declineColor:ue="#39cf93",increaseColor:se="#ff512e"}=Q;if(ae==="contrast"){const ce={fontSize:e.fontSize},oe=parseFloat(te+"");return oe>=0?ce.color=se:oe<0&&(ce.color=ue),ce}else return{}},W=vue.computed(()=>{const{fontSize:Q}=e;return{width:Q,height:Q,textIndent:`-${parseFloat(Q)*2}px`,overflow:"hidden"}}),Y=Q=>{const{text:te,declineColor:ae="#39cf93",increaseColor:ue="#ff512e"}=Q,{fontSize:se}=e,ce=parseFloat(te+""),oe={width:se,verticalAlign:"unset"};return ce>=0?oe.filter=`drop-shadow(${ue||"#ff512e"} ${se} -1px)`:ce<0&&(oe.filter=`drop-shadow(${ae||"#39cf93"} ${se} -1px)`),oe},X=Q=>{const te=parseFloat(Q+"");if(te>=0)return goUp;if(te<0)return goDown},Z=useEmitEvent(e),{getGlobalModel:J,setGlobalModel:K,getRecordValueByKeyName:ee}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Q=>{},setGlobalModel:(Q,te)=>{},getRecordValueByKeyName:Q=>{}});K(e.id,{type:e.type,RECORD:""});const re=(Q=[],te=[])=>{let ae=Q.map(ue=>({title:ue,dataIndex:ue,key:ue}));vue.unref(l).find(ue=>{var se;return(se=ue.children)==null?void 0:se.length})&&(ae=lodashEs.cloneDeep(vue.unref(l))),P.value=lodashEs.cloneDeep(ae),y.value=N(ae),S.value=te,i.value=!0},ne=Q=>{var te,ae,ue,se;re((ae=(te=Q==null?void 0:Q.data)==null?void 0:te.data)==null?void 0:ae.columns,(se=(ue=Q==null?void 0:Q.data)==null?void 0:ue.data)==null?void 0:se.rows)},ie=useIndicatorData(e,ne),le=async(Q=!0)=>{try{Q&&(s.value=!0);const te=vue.unref(C).split(" "),ae={};e.isSortByFront||(ae.sort={order:te[1],field:te[0]});const ue=await ie(ae);ne(ue)}catch(te){console.error(te)}finally{s.value=!1}},fe=vue.ref(-1),{loadedData:he}=vue.inject(LOADED_DATA,{loadedData:{}}),ye=vue.ref(!1);vue.watch(he,Q=>{if(e.dataType==="indicator"){const te=getFixedValueDatas(e.graphicConfig);te!=null&&te.length&&(!vue.unref(ye)&&canRequestIndicator(e.graphicConfig,Q)?(ye.value=!0,be()):canRequestIndicator(e.graphicConfig,Q)||(ye.value=!1))}},{deep:!0});const be=(Q=!0)=>{switch(e.dataType){case"request":O(Q);break;case"indicator":canRequestIndicator(e.graphicConfig,vue.unref(he))&&le(Q);break}},Ee=()=>{const Q=e.id,te=J(Q);K(Q,{...te,type:e.type,RECORD:""})},Te=vue.computed(()=>{const Q=vue.unref(k);let te=0;const{subTotalColumn:ae,subTotalName:ue}=e;ae&&(te=Q.findIndex(ge=>ge.dataIndex===ae),te<0&&(te=0));const se=[];let ce=0;for(let ge=0;ge<Q.length;ge++){const xe=Q[ge],{isCalcTotal:Se}=xe;ge===te?se.push({...xe,total:ue}):Se?(se.push({...xe,index:ge,total:0}),ce++):se.push({...xe})}if(ce===0)return[];const oe=vue.unref(x),me=Ce(se);for(let ge=0;ge<me.length;ge++){const xe=me[ge];let Se=0;const{isCalcTotal:De,dataIndex:je}=xe;if(De===!0){for(let ze=0;ze<oe.length;ze++){const Xe=+oe[ze][je];isNaN(Xe)||(Se=new big_js.Big(Se).add(Xe).toNumber())}xe.total=Se}}return me});function Ce(Q){var ae;const te=[];for(const ue of Q)(ae=ue.children)!=null&&ae.length?te.push(...Ce(ue.children)):te.push(ue);return te}const{setRequest:_e}=vue.inject(REQUEST_MODEL,{setRequest:Q=>{}});typeof _e=="function"&&_e({id:e.id,requestFn:be,sortNum:e.requestSort}),r({refreshData:be});const de=(Q="",te)=>useVariablesInText(Q,te),pe=Q=>{if(Q!=="event")return{self:"_self",blank:"_blank"}[Q]},ve=(Q,te="")=>{Q==="event"&&window.parent.postMessage({type:"openPage",url:te},"*")},Ae=(Q,te)=>{Q(te.filterCheckboxGroupValue)},ke=(Q,te)=>{Q({confirm:!0}),te.filterOptionsInputValue="",te.filterCheckboxGroupValue=[]},Oe=()=>{},Le=Q=>{const te=Q.dataIndex;if(typeof te=="string"){let ae=vue.unref(T)[te];const ue=vue.unref(Q.filterOptionsInputValue).trim();return Array.isArray(ae)?(ae=ae.filter(se=>typeof se.label=="string"?se.label.toLowerCase().includes(ue.toLowerCase()):!0),ae):[]}return[]},Ve=async()=>{var xe,Se;const Q="EXPORT_KEY";antDesignVue.message.loading({key:Q,content:"正在导出...",duration:0});let te=[];if(e.dataType==="static")te=e.data;else if(e.dataType==="request"){const De={layer:"1"};vue.unref(C)&&(De.orderCondition=vue.unref(C));const je=await _(De);te=((Se=(xe=je==null?void 0:je.data)==null?void 0:xe.data)==null?void 0:Se.rows)||{}}const ae=vue.unref(k),ue=[],se=[];ae==null||ae.forEach(De=>{ue.push(De.dataIndex),se.push(De.title)});const ce=te.map(De=>lodashEs.pick(De,ue)),oe=xlsx.utils.book_new(),me=xlsx.utils.aoa_to_sheet([se]),ge=xlsx.utils.sheet_add_json(me,ce,{skipHeader:!0,origin:"A2"});xlsx.utils.book_append_sheet(oe,ge,"sheet"),xlsx.writeFile(oe,"表格数据.xlsx"),antDesignVue.message.success({key:Q,content:"导出成功"})},$e=(Q,te=2)=>{const ae=+Q*100;return isNaN(ae)||ae<=0?0:ae>=100?100:ae.toFixed(te)};useOnEvent(e,{resetRecord:Ee,refreshData:be,exportTableData:Ve});const Ie=(Q,te)=>{let ae=null;return e.stripedShow&&(ae=te%2===1?"table-striped":null),ae},Ge=vue.computed(()=>{let Q=0;const{height:te,isPageBottom:ae}=e;return ae&&te&&(Q=parseFloat(te)-v()),Q?Q+"px":"100%"}),Fe=vue.computed(()=>{let Q="#071655";return e.headerBackgroundColor&&(Q="transparent"),Q}),Pe=vue.computed(()=>{let Q="#071655";return(e.cellBackgroundColor||e.stripedShow&&e.stripedColor)&&(Q="transparent"),Q}),Re=vue.computed(()=>parseFloat(e.fontSize)+16),Me=vue.computed(()=>{let Q="";const{paginationColor:te,paginationBgColor:ae,activePaginationColor:ue,activePaginationBgColor:se,hoverBackgroundColor:ce}=e;return te&&(Q+="p-color "),ae&&(Q+="p-bg-color "),ue&&(Q+="active-p-color "),se&&(Q+="active-p-bg-color "),ce&&(Q+="hover-bg-color "),Q}),Be=(Q,te)=>{const{conditionCode:ae}=Q;return runCode(ae,{value:te})};return{x:f,y:g,style:h,pagination:q,formatFn:j,contrastClass:G,tableChange:U,summaryList:Te,loading:s,onTouchHrefEvent:ve,handleHref:de,handleHrefTarget:pe,useRowIndex:fe,tableColumns:k,tableDataSource:x,useFilterOptions:Le,useSetSelectedKeys:Ae,onResetFilter:ke,onSearchFilterOptions:Oe,exportTableData:Ve,handleProgressText:$e,pageSizeVisible:u,pageSize:M,tableRef:c,rowClassName:Ie,tableHeight:Ge,tableHeaderBgColor:Fe,tableBodyBgColor:Pe,getChgStyle:R,chgBoxStyle:W,getChgBoxImgStyle:Y,getChgBoxImgSrc:X,seqIcon1,seqIcon2,seqIcon3,iconSize:Re,containerClass:Me,getCellStyle:(Q,te)=>{const{overflow:ae,conditionCode:ue,attribute:se}=Q,ce={};return ae==="ellipsis"&&(ce.overflow="hidden",ce.textOverflow="ellipsis"),ue&&(se!=null&&se.color)&&Be(Q,te)&&(ce.color=se.color),se!=null&&se.icon&&(Q==null?void 0:Q.cellAlign)==="right"&&(ce.display="flex",ce.alignItems="center",ce.justifyContent="flex-end"),ce},isMatchCondition:Be,getAttrImgSrc:Q=>{const{attribute:te}=Q;let ae="";return te!=null&&te.icon&&(ae=useImagePath(te.icon)),ae},getAttrImgStyle:Q=>{let te={};return(Q==null?void 0:Q.cellAlign)==="right"?te={marginRight:"5px"}:te={position:"absolute",marginLeft:"5px"},{width:"auto",height:parseFloat(e.fontSize)+6+"px",...te}},getCellText:(Q,te)=>Q||Q===0?Q:te==null?void 0:te.defaultVal,autoScrollHeight:m,autoScrollClass:E,autoScrollTop:b,isScroll:a,scrollWrapStyle:o,isLinkStyle:$}}}),__injectCSSVars__=()=>{vue.useCssVars(e=>({b8448ce6:e.stripedColor,"033efaf8":e.tableHeaderBgColor,"75bb6ae2":e.tableBodyBgColor,"5cf8c823":e.paginationBgColor,"2716c2b0":e.paginationColor,"69238b06":e.activePaginationBgColor,"5b1240fc":e.activePaginationColor,"0d3a3e9a":e.hoverBackgroundColor}))},__setup__=__default__.setup;__default__.setup=__setup__?(e,r)=>(__injectCSSVars__(),__setup__(e,r)):__injectCSSVars__;const Table_vue_vue_type_style_index_0_scoped_8780c326_lang="",Table_vue_vue_type_style_index_1_lang="",_withScopeId=e=>(vue.pushScopeId("data-v-8780c326"),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$2(e,r,n,i,a,o){const s=vue.resolveComponent("a-button"),l=vue.resolveComponent("down-outlined"),c=vue.resolveComponent("right-outlined"),u=vue.resolveComponent("a-input"),h=vue.resolveComponent("a-checkbox-group"),x=vue.resolveComponent("a-table-summary-cell"),f=vue.resolveComponent("a-table-summary-row"),g=vue.resolveComponent("a-table-summary"),v=vue.resolveComponent("a-table"),m=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 p;return[(p=d.record.children)!=null&&p.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:p,setSelectedKeys:y,confirm:S,clearFilters:k})=>[vue.createElementVNode("div",{class:"ecan-table-filter",style:vue.normalizeStyle({height:e.filterDropdownHeight})},[vue.createVNode(u,{value:d.filterOptionsInputValue,"onUpdate:value":P=>d.filterOptionsInputValue=P,placeholder:"请输入关键字",class:"filter-input",onChange:e.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),vue.createVNode(h,{value:d.filterCheckboxGroupValue,"onUpdate:value":P=>d.filterCheckboxGroupValue=P,class:"filter-checkbox",options:e.useFilterOptions(d),onChange:P=>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:()=>S()},{default:vue.withCtx(()=>[_hoisted_6]),_:2},1032,["onClick"]),vue.createVNode(s,{size:"small",style:{width:"90px"},onClick:vue.withModifiers(P=>e.onResetFilter(k,d),["stop"])},{default:vue.withCtx(()=>[_hoisted_7]),_:2},1032,["onClick"])])],4)]),bodyCell:vue.withCtx(({column:d,index:p,text:y,record:S})=>{var k,P,w,D,M,B;return[d.dataIndex==="SEQ"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[e.seqIcon?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[p===0?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:"seq-icon",src:e.seqIcon1,width:e.iconSize,height:e.iconSize},null,8,_hoisted_8)):p===1?(vue.openBlock(),vue.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon2,width:e.iconSize,height:e.iconSize},null,8,_hoisted_9)):p>=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(p+1),5)],64)):(vue.openBlock(),vue.createElementBlock("span",_hoisted_11,vue.toDisplayString(p+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,S),target:e.handleHrefTarget(L.target),style:vue.normalizeStyle({color:L.color,fontSize:e.fontSize,fontWeight:e.fontWeight}),onClick:$=>e.onTouchHrefEvent(L.target,e.handleHref(L.href,S))},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"&&((k=d==null?void 0:d.attribute)!=null&&k.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:((P=d==null?void 0:d.customFormatter)==null?void 0:P.split("{value}")[0])||""},vue.toDisplayString(((w=d==null?void 0:d.customFormatter)==null?void 0:w.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:((D=d==null?void 0:d.customFormatter)==null?void 0:D.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(f,null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.summaryList,(d,p)=>(vue.openBlock(),vue.createBlock(x,{key:p,index:p,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":r[0]||(r[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(m,{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$2],["__scopeId","data-v-8780c326"]]),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=["click"];core$1.use([renderers.CanvasRenderer,charts.MapChart,charts.ScatterChart,components$1.VisualMapComponent,components$1.TooltipComponent,components$1.GraphicComponent]);const _sfc_main$1=vue.defineComponent({name:"EcanMap",components:{Echarts},props:{...mapComponentProps},setup(e){const r=useRequestData({...e.tooltipRequestData,requestHeaders:{}}),n=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([]),h=vue.computed(()=>e.geoBackgroundImage?{image:vue.unref(s),repeat:e.geoBackgroundImageRepeat}:e.geoItemStyleAreaColor),x=vue.computed(()=>{const q=e.symbolImage;return e.symbolImage?"image://"+useImagePath(q):"circle"}),f=q=>{let H=e.tooltipFormatter;const j=H.match(/\{(.+?)\}/g);if(j==null||j.length===0)return H;for(let G=0;G<j.length;G++){const R=j[G];let W=R.slice(1,-1).trim();const Y=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,X=W.match(Y);for(let Z=0;Z<X.length;Z++){const J=X[Z],K=q[J];K!=null&&(W=W.replace(J,K))}H=H.replace(R,W)}return H.split(`
128
+ `)},g=vue.ref(!1),v=vue.ref("");let m=new AbortController;const E=(q,H)=>{const j=m.signal;g.value=!0,i.value=q,r({name:q,signal:j}).then(G=>{var R,W;if(G){const Y=((W=(R=G==null?void 0:G.data)==null?void 0:R.data)==null?void 0:W.rows)||[];let X="";for(const Z of Y){const J=f(Z)||[];if(J!=null&&J.length)for(const K of J)X+=`<div style="word-break: break-all;white-space: normal;">${K}</div>`}X=`<div style="max-width:200px;">${X}</div>`,a.value=X,H(vue.unref(v),X)}else j.aborted?a.value="Loading":a.value=q,H(vue.unref(v),a.value);g.value=!1})},b=vue.ref(),d=vue.computed(()=>e.dataType==="request"?b.value:e.data),p=vue.computed(()=>{const q=[],{mapAreaStyleConfig:H}=e;if(H!=null&&H.length)for(const j of H)q.push({...j,key:nanoid(6)});return q}),y=vue.computed(()=>{const q=[];for(const H of vue.unref(p)){let j="";H.value1&&(j+=`value ${H.rule1} ${H.value1}`),H.value2&&(j+=`${H.value1?"&&":""} value ${H.rule2} ${H.value2}`),j&&q.push({rule:j,color:H.color,key:H.key})}return q.reverse()}),S=vue.computed(()=>{var j;const q=[],{areaStyleKeyName:H}=e;if((j=vue.unref(d))!=null&&j.length)for(const G of vue.unref(d)){const R=G[H];if(R||R===0){const W=vue.unref(y).find(Y=>runCode(Y.rule,{value:R}));W&&q.push({name:G.name,itemStyle:{areaColor:vue.unref(u).includes(W.key)?e.geoItemStyleAreaColor:W.color}})}}return q}),k=vue.computed(()=>{const q=e.geoCenter;let H;return typeof q=="string"&&q!==""&&(H=q.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:H,map:`map-${e.id}`,tooltip:{show:e.tooltipShow,trigger:"item",backgroundColor:e.tooltipBackgroundColor,borderColor:"transparent",textStyle:{color:e.tooltipTextStyleColor},formatter:(j,G,R)=>{v.value=G;const{name:W=""}=j,{requestUrl:Y}=e.tooltipRequestData;if(!Y){let X="",Z=e.tooltipFormatter;Z===""&&(Z="{name}:{value}");const J=vue.unref(d).find(K=>K.name===W);return J?(X+=useVariablesInText(Z,{textData:{name:W,...J}},{useNewline:!0,useSpace:!0}),X):W}if(vue.unref(g))vue.unref(i)!==W&&(m.abort(),m=new AbortController);else{if(vue.unref(i)===W)return vue.unref(a);E(W,R)}return"Loading"}},label:{show:e.geoLabelShow,color:e.geoLabelColor,fontSize:e.geoLabelFontSize},itemStyle:{areaColor:vue.unref(h),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:S.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}]}}),P=vue.ref(!1),w=async()=>{var j;P.value=!1;const q=e.mapJson,H=`map-${e.id}`;if(q!=null&&q.path){const G=await request(((j=window==null?void 0:window.config)==null?void 0:j.uploadPath)+q.path);core$1.registerMap(H,(G==null?void 0:G.data)||{})}else core$1.registerMap(H,{});P.value=!0};vue.watch(()=>e.mapJson,()=>{w()},{immediate:!0,deep:!0});const D=async q=>{var G,R,W,Y;const H=(R=(G=q==null?void 0:q.data)==null?void 0:G.data)==null?void 0:R.rows,j=`map-${e.id}`;if(H!=null&&H.path){const X=await request(H.path);core$1.registerMap(j,(X==null?void 0:X.data)||{})}else if(Array.isArray(H))if(b.value=H,(W=H[0])!=null&&W.mapUrl){const X=await request((Y=H[0])==null?void 0:Y.mapUrl);core$1.registerMap(j,(X==null?void 0:X.data)||{})}else core$1.registerMap(j,{});else core$1.registerMap(j,{});vue.nextTick(()=>{P.value=!0})},M=useRequestData(e,D),B=async()=>{if(e.dataType==="request"){P.value=!1;try{const q=await M();D(q)}catch(q){console.error(q),P.value=!0}}},L=()=>{switch(e.dataType){case"static":w();break;case"request":B();break}},{getGlobalModel:V,setGlobalModel:$}=vue.inject(GLOBAL_MODEL,{getGlobalModel:q=>{},setGlobalModel:(q,H)=>{}}),T=useEmitEvent(e)("click",()=>{const q=V(e.id);$(e.id,{...q,RECORD:vue.unref(n)})});useOnEvent(e,{refreshData:L});const{setRequest:I}=vue.inject(REQUEST_MODEL,{setRequest:q=>{}});typeof I=="function"&&I({id:e.id,requestFn:L,sortNum:e.requestSort});const A=()=>{vue.unref(n)&&T()},C=(q={})=>{q.componentType==="geo"&&q.region?n.value=q.region:n.value=null},F=vue.computed(()=>{const q={},{legendTop:H,legendLeft:j,legendBoxShadow:G}=e;return G&&(q.boxShadow=G),H==="bottom"?q.bottom=0:H==="top"&&(q.top=0),j==="left"?q.left=0:j==="right"&&(q.right=0),q}),_=vue.computed(()=>{const q={};return e.legendOrient==="vertical"&&(q.flexDirection="column"),q}),O=vue.computed(()=>{var q;if((q=vue.unref(p))!=null&&q.length){const H=[];for(const j of vue.unref(p)){const{value1:G,value2:R,rule1:W,rule2:Y,color:X}=j;G&&R?+G<+R?W.includes(">")&&Y.includes("<")&&H.push({text:`${G} - ${R}`,color:X,key:j.key}):+G>+R?W.includes("<")&&Y.includes(">")&&H.push({text:`${R} - ${G}`,color:X,key:j.key}):+G==+R&&H.push({text:`${G} - ${R}`,color:X,key:j.key}):G?H.push({text:`${W} ${G}`,color:X,key:j.key}):R&&H.push({text:`${Y} ${R}`,color:X,key:j.key})}return H}else return[]});return{option:k,style:o,isLoadedData:P,geoBackgroundImageRef:s,myGeoBackgroundImage:l,mapLegendStyle:F,legendContainerStyle:_,mapLegendList:O,hiddenLegendKey:u,customClick:A,onMouseOver:C,handleToggleVisible:q=>{const H=vue.unref(u).findIndex(j=>j===q);H>=0?u.value.splice(H,1):u.value.push(q)}}}}),Map_vue_vue_type_style_index_0_scoped_b045403e_lang="",_hoisted_1=["src"],_hoisted_2=["title","onClick"];function _sfc_render$1(e,r,n,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$1,[["render",_sfc_render$1],["__scopeId","data-v-b045403e"]]),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=vue.defineComponent({name:"EcanDataSelect",components:{ASelect:antDesignVue.Select,ASelectOption:antDesignVue.SelectOption},props:{...dataSelectComponentProps},setup(e,{expose:r}){const n=usePickComponentStyle(e),i=()=>document.getElementById("ProviderConfig")||document.body,a=vue.ref(e.data||[]),o=vue.ref(),s=vue.computed({get:()=>{var $;const{mode:V}=e;return($=vue.unref(a))!=null&&$.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,$)=>{},getRecordValueByKeyName:V=>{}}),h=e.dataFieldNames;vue.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,a.value],()=>{const{mode:V,selectFirstOption:$,value:N}=e,T=u(N),I=h.value;if(V==="multiple"||V==="tags"||V==="combobox"){if(T)o.value=T.split(",");else if($){const A=vue.unref(a)[0];o.value=A?[A[I]]:[]}}else if(T)o.value=T;else if($){const A=vue.unref(a)[0];o.value=A?A[I]:""}},{immediate:!0});const x=(V,$)=>{const N=h.label,T=h.value;let I;const A=$[N],C=$[T];return A!=null?I=A:C!=null&&(I=C),(I==null?void 0:I.toLowerCase().indexOf(V==null?void 0:V.toLowerCase()))>=0},f=V=>{const{label:$,value:N,options:T}=e.dataFieldNames;if(T&&Array.isArray(V))if(V.some(I=>T in I)){const I={},A=[];V.forEach(C=>{I[C[T]]||(I[C[T]]=[]),I[C[T]].push({[$]:C[$],[N]:C[N]})});for(const C in I)A.push({[$]:C,[T]:I[C]});return A}else return V;else if(!T)return V},g=vue.ref(!1),v=V=>{var $,N;if(a.value=f(((N=($=V==null?void 0:V.data)==null?void 0:$.data)==null?void 0:N.rows)||[]),e.selectFirstOption){let T=vue.unref(a)[0];if(h.options){const I=T[h.options];I&&I.length&&(T=I[0])}o.value=T[h.value]}},m=useRequestData(e,v),E=async()=>{if(e.dataType==="request"){g.value=!0;try{const V=await m();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 $=h.label,N=h.value;if(e.mode==="multiple")V=vue.unref(a).filter(T=>vue.unref(o).includes(T[N])).map(T=>T[$]);else{const T=vue.unref(a).find(I=>vue.unref(o)===I[N]);T&&(V=T[$])}}return V}),d=vue.ref([]),p=vue.computed(()=>{const V={};if(e.mode!=="multiple"){const $=vue.unref(d).find(N=>N.value===vue.unref(o));$&&(V.itemCodes=$.item_codes)}return V}),y=vue.computed(()=>{const{value:V,label:$}=h,N=vue.unref(a).find(T=>T[V]===vue.unref(s));return N?{label:N[$],value:N[V]}:{}});c(e.id,{type:e.type,value:b,...vue.unref(p),recordData:vue.unref(y)});const k=useEmitEvent(e)("selectChange",()=>{const V=e.id,$=l(V);c(V,{...$,...vue.unref(p),RECORD:b,recordData:vue.unref(y)})}),P=(V=[])=>{if(a.value=f(V),e.selectFirstOption){let $=vue.unref(a)[0];if(h.options){const N=$[h.options];N&&N.length&&($=N[0])}o.value=$[h.value]}c(e.id,{type:e.type,value:b,...vue.unref(p),recordData:vue.unref(y)})},w=V=>{var I;const{data:$}=(V==null?void 0:V.data)||{},N=h.label,T=h.value;if($){const{rows:A=[]}=((I=V==null?void 0:V.data)==null?void 0:I.data)||{};d.value=A;const C=A.map(O=>({[N]:O.label,[T]:O.value})),{id:F}=e,_=l(F);c(F,{..._,...vue.unref(p)}),P(C)}else P([])},D=useIndicatorData(e,w),M=async()=>{try{g.value=!0;const V=await D();w(V)}catch(V){console.error(V)}finally{g.value=!1}},B=()=>{switch(e.dataType){case"indicator":{M();break}case"request":E();break}};useOnEvent(e,{selectChange:k,refreshData:B});const{setRequest:L}=vue.inject(REQUEST_MODEL,{setRequest:({id:V,sortNum:$,requestFn:N})=>{}});return typeof L=="function"&&L({id:e.id,requestFn:B,sortNum:e.requestSort}),r({refreshData:B}),{style:n,getPopupContainer:i,myValue:o,selectChange:k,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(e,r,n,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":r[0]||(r[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,[["render",_sfc_render],["__scopeId","data-v-585d4f8a"]]),EcanDataSelect=withInstall$1(DataSelect),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,EcanProportion,EcanProviderConfig,EcanRadar,EcanRadio,EcanRangePicker,EcanScatter,EcanScrollText,EcanSelect,EcanTable,EcanTabs,EcanTemplate,EcanText,EcanTimeDisplay,EcanTreeSelect,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,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},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,r){const n=r.split(".");let i=e;return n.forEach(a=>{var o;i=isObject$1(i)&&(o=i[a])!=null?o:""}),i}function pick(e,r,n){return r.reduce((i,a)=>((!n||e[a]!==void 0)&&(i[a]=e[a]),i),{})}const isSameValue=(e,r)=>JSON.stringify(e)===JSON.stringify(r),flat=e=>e.reduce((r,n)=>r.concat(n),[]),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,r)=>({top:0,left:0,right:e,bottom:r,width:e,height:r}),useRect=e=>{const r=vue.unref(e);if(isWindow(r)){const n=r.innerWidth,i=r.innerHeight;return makeDOMRect(n,i)}return r!=null&&r.getBoundingClientRect?r.getBoundingClientRect():makeDOMRect(0,0)};function useParent(e){const r=vue.inject(e,null);if(r){const n=vue.getCurrentInstance(),{link:i,unlink:a,internalChildren:o}=r;i(n),vue.onUnmounted(()=>a(n));const s=vue.computed(()=>o.indexOf(n));return{parent:r,index:s}}return{parent:null,index:vue.ref(-1)}}function flattenVNodes(e){const r=[],n=i=>{Array.isArray(i)&&i.forEach(a=>{var o;vue.isVNode(a)&&(r.push(a),(o=a.component)!=null&&o.subTree&&(r.push(a.component.subTree),n(a.component.subTree.children)),a.children&&n(a.children))})};return n(e),r}var findVNodeIndex=(e,r)=>{const n=e.indexOf(r);return n===-1?e.findIndex(i=>r.key!==void 0&&r.key!==null&&i.type===r.type&&i.key===r.key):n};function sortChildren(e,r,n){const i=flattenVNodes(e.subTree.children);n.sort((o,s)=>findVNodeIndex(i,o.vnode)-findVNodeIndex(i,s.vnode));const a=n.map(o=>o.proxy);r.sort((o,s)=>{const l=a.indexOf(o),c=a.indexOf(s);return l-c})}function useChildren(e){const r=vue.reactive([]),n=vue.reactive([]),i=vue.getCurrentInstance();return{children:r,linkChildren:o=>{const s=c=>{c.proxy&&(n.push(c),r.push(c.proxy),sortChildren(i,r,n))},l=c=>{const u=n.indexOf(c);r.splice(u,1),n.splice(u,1)};vue.provide(e,Object.assign({link:s,unlink:l,children:r,internalChildren:n},o))}}}function onMountedOrActivated(e){let r;vue.onMounted(()=>{e(),vue.nextTick(()=>{r=!0})}),vue.onActivated(()=>{r&&e()})}function useEventListener(e,r,n={}){if(!inBrowser)return;const{target:i=window,passive:a=!1,capture:o=!1}=n;let s=!1,l;const c=x=>{if(s)return;const f=vue.unref(x);f&&!l&&(f.addEventListener(e,r,{capture:o,passive:a}),l=!0)},u=x=>{if(s)return;const f=vue.unref(x);f&&l&&(f.removeEventListener(e,r,o),l=!1)};vue.onUnmounted(()=>u(i)),vue.onDeactivated(()=>u(i)),onMountedOrActivated(()=>c(i));let h;return vue.isRef(i)&&(h=vue.watch(i,(x,f)=>{u(f),c(x)})),()=>{h==null||h(),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,r=defaultRoot){let n=e;for(;n&&n!==r&&isElement(n);){const{overflowY:i}=window.getComputedStyle(n);if(overflowScrollReg.test(i))return n;n=n.parentNode}return r}function useScrollParent(e,r=defaultRoot){const n=vue.ref();return vue.onMounted(()=>{e.value&&(n.value=getScrollParent(e.value,r))}),n}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 r="scrollTop"in e?e.scrollTop:e.pageYOffset;return Math.max(r,0)}function setScrollTop(e,r){"scrollTop"in e?e.scrollTop=r:e.scrollTo(e.scrollX,r)}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,r){if(e===window)return 0;const n=r?getScrollTop(r):getRootScrollTop();return useRect(e).top+n}isIOS();const stopPropagation=e=>e.stopPropagation();function preventDefault(e,r){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),r&&stopPropagation(e)}function isHidden(e){const r=vue.unref(e);if(!r)return!1;const n=window.getComputedStyle(r),i=n.display==="none",a=r.offsetParent===null&&n.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 r=addUnit(e);return{width:r,height:r}}}function getZIndexStyle(e){const r={};return e!==void 0&&(r.zIndex=+e),r}let rootFontSize;function getRootFontSize(){if(!rootFontSize){const e=document.documentElement,r=e.style.fontSize||window.getComputedStyle(e).fontSize;rootFontSize=parseFloat(r)}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,(r,n)=>n.toUpperCase()),kebabCase=e=>e.replace(/([A-Z])/g,"-$1").toLowerCase().replace(/^-/,"");function padZero(e,r=2){let n=e+"";for(;n.length<r;)n="0"+n;return n}const clamp=(e,r,n)=>Math.min(Math.max(e,r),n),{hasOwnProperty}=Object.prototype;function assignKey(e,r,n){const i=r[n];isDef(i)&&(!hasOwnProperty.call(e,n)||!isObject$1(i)?e[n]=i:e[n]=deepAssign(Object(e[n]),i))}function deepAssign(e,r){return Object.keys(r).forEach(n=>{assignKey(e,r,n)}),e}var stdin_default$h={name:"姓名",tel:"电话",save:"保存",clear:"清空",cancel:"取消",confirm:"确认",delete:"删除",loading:"加载中...",noCoupon:"暂无优惠券",nameEmpty:"请填写姓名",addContact:"添加联系人",telInvalid:"请填写正确的电话",vanCalendar:{end:"结束",start:"开始",title:"日期选择",weekdays:["日","一","二","三","四","五","六"],monthTitle:(e,r)=>`${e}年${r}月`,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,r){lang.value=e,this.add({[e]:r})},add(e={}){deepAssign(messages,e)}};var stdin_default$g=Locale;function createTranslate(e){const r=camelize(e)+".";return(n,...i)=>{const a=stdin_default$g.messages(),o=get(a,r+n)||get(a,n);return isFunction(o)?o(...i):o}}function genBem(e,r){return r?typeof r=="string"?` ${e}--${r}`:Array.isArray(r)?r.reduce((n,i)=>n+genBem(e,i),""):Object.keys(r).reduce((n,i)=>n+(r[i]?genBem(e,i):""),""):""}function createBEM(e){return(r,n)=>(r&&typeof r!="string"&&(n=r,r=""),r=r?`${e}__${r}`:e,`${r}${genBem(r,n)}`)}function createNamespace(e){const r=`van-${e}`;return[r,createBEM(r),createTranslate(r)]}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:r=[],done:n,canceled:i,error:a}){if(e){const o=e.apply(null,r);isPromise(o)?o.then(s=>{s?n():i&&i()}).catch(a||noop):o?n():i&&i()}else n()}function withInstall(e){return e.install=r=>{const{name:n}=e;n&&(r.component(n,e),r.component(camelize(`-${n}`),e))},e}const POPUP_TOGGLE_KEY=Symbol();function onPopupReopen(e){const r=vue.inject(POPUP_TOGGLE_KEY,null);r&&vue.watch(r,n=>{n&&e()})}function useExpose(e){const r=vue.getCurrentInstance();r&&extend(r.proxy,e)}const routeProps={to:[String,Object],url:String,replace:Boolean};function route({to:e,url:r,replace:n,$router:i}){e&&i?i[n?"replace":"push"](e):r&&(n?location.replace(r):location.href=r)}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:r}){const n=()=>{if(r.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&&n())return r.content?r.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:h}=e,[x,f]=h.split("-");r.default?(typeof u=="number"?l[x]=addUnit(x==="top"?u:-u):l[x]=x==="top"?addUnit(u):a(u),typeof c=="number"?l[f]=addUnit(f==="left"?c:-c):l[f]=f==="left"?addUnit(c):a(c)):(l.marginTop=addUnit(u),l.marginLeft=addUnit(c))}return l}),s=()=>{if(n()||e.dot)return vue.createVNode("div",{class:bem$f([e.position,{dot:e.dot,fixed:!!r.default}]),style:o.value},[i()])};return()=>{if(r.default){const{tag:l}=e;return vue.createVNode(l,{class:bem$f("wrapper")},{default:()=>[r.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 r={};return Object.keys(e).forEach(n=>{const i=insertDash(kebabCase(n));r[`--van-${i}`]=e[n]}),r}function syncThemeVarsOnRoot(e={},r={}){Object.keys(e).forEach(n=>{e[n]!==r[n]&&document.documentElement.style.setProperty(n,e[n])}),Object.keys(r).forEach(n=>{e[n]||document.documentElement.style.removeProperty(n)})}vue.defineComponent({name:name$g,props:configProviderProps,setup(e,{slots:r}){const n=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(n,(o,s)=>{e.themeVarsScope==="global"&&syncThemeVarsOnRoot(o,s)}),vue.watch(()=>e.themeVarsScope,(o,s)=>{s==="global"&&syncThemeVarsOnRoot({},n.value),o==="global"&&syncThemeVarsOnRoot(n.value,{})}),e.themeVarsScope==="global"&&syncThemeVarsOnRoot(n.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"?n.value:void 0},{default:()=>{var i;return[(i=r.default)==null?void 0:i.call(r)]}})}});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:r}){const n=vue.inject(CONFIG_PROVIDER_KEY,null),i=vue.computed(()=>e.classPrefix||(n==null?void 0:n.iconPrefix)||bem$d());return()=>{const{tag:a,dot:o,name:s,size:l,badge:c,color:u}=e,h=isImage(s);return vue.createVNode(Badge,vue.mergeProps({dot:o,tag:a,class:[i.value,h?"":`${i.value}-${s}`],style:{color:u,fontSize:addUnit(l)},content:c},e.badgeProps),{default:()=>{var x;return[(x=r.default)==null?void 0:x.call(r),h&&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,r)=>vue.createVNode("i",{class:bem$c("line",String(r+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:r}){const n=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:n.value},[r.icon?r.icon():o])},a=()=>{var o;if(r.default)return vue.createVNode("span",{class:bem$c("text"),style:{fontSize:addUnit(e.textSize),color:(o=e.textColor)!=null?o:e.color}},[r.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,r){return e>r?"horizontal":r>e?"vertical":""}function useTouch(){const e=vue.ref(0),r=vue.ref(0),n=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",h=()=>{n.value=0,i.value=0,a.value=0,o.value=0,s.value="",l.value=!0};return{move:g=>{const v=g.touches[0];n.value=(v.clientX<0?0:v.clientX)-e.value,i.value=v.clientY-r.value,a.value=Math.abs(n.value),o.value=Math.abs(i.value);const m=10;(!s.value||a.value<m&&o.value<m)&&(s.value=getDirection(a.value,o.value)),l.value&&(a.value>TAP_OFFSET||o.value>TAP_OFFSET)&&(l.value=!1)},start:g=>{h(),e.value=g.touches[0].clientX,r.value=g.touches[0].clientY},reset:h,startX:e,startY:r,deltaX:n,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,r){const n=useTouch(),i="01",a="10",o=h=>{n.move(h);const x=n.deltaY.value>0?a:i,f=getScrollParent(h.target,e.value),{scrollHeight:g,offsetHeight:v,scrollTop:m}=f;let E="11";m===0?E=v>=g?"00":"01":m+v>=g&&(E="10"),E!=="11"&&n.isVertical()&&!(parseInt(E,2)&parseInt(x,2))&&preventDefault(h,!0)},s=()=>{document.addEventListener("touchstart",n.start),document.addEventListener("touchmove",o,{passive:!1}),totalLockCount||document.body.classList.add(BODY_LOCK_CLASS),totalLockCount++},l=()=>{totalLockCount&&(document.removeEventListener("touchstart",n.start),document.removeEventListener("touchmove",o),totalLockCount--,totalLockCount||document.body.classList.remove(BODY_LOCK_CLASS))},c=()=>r()&&s(),u=()=>r()&&l();onMountedOrActivated(c),vue.onDeactivated(u),vue.onBeforeUnmount(u),vue.watch(r,h=>{h?s():l()})}function useLazyRender(e){const r=vue.ref(!1);return vue.watch(e,n=>{n&&(r.value=n)},{immediate:!0}),n=>()=>r.value?n():null}const useScopeId=()=>{var e;const{scopeId:r}=((e=vue.getCurrentInstance())==null?void 0:e.vnode)||{};return r?{[r]:""}: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:r}){const n=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:n,style:l,class:[bem$b(),e.className]},[(s=r.default)==null?void 0:s.call(r)]),[[vue.vShow,e.show]])});return useEventListener("touchmove",a,{target:n}),()=>{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:r,attrs:n,slots:i}){let a,o;const s=vue.ref(),l=vue.ref(),c=useLazyRender(()=>e.show||!e.lazyRender),u=vue.computed(()=>{const k={zIndex:s.value};if(isDef(e.duration)){const P=e.position==="center"?"animationDuration":"transitionDuration";k[P]=`${e.duration}s`}return k}),h=()=>{a||(a=!0,s.value=e.zIndex!==void 0?+e.zIndex:useGlobalZIndex(),r("open"))},x=()=>{a&&callInterceptor(e.beforeClose,{done(){a=!1,r("close"),r("update:show",!1)}})},f=k=>{r("clickOverlay",k),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:f}),{default:i["overlay-content"]})},v=k=>{r("clickCloseIcon",k),x()},m=()=>{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(()=>{r("opened")})},d=()=>r("closed"),p=k=>r("keydown",k),y=c(()=>{var k;const{round:P,position:w,safeAreaInsetTop:D,safeAreaInsetBottom:M}=e;return vue.withDirectives(vue.createVNode("div",vue.mergeProps({ref:l,style:u.value,role:"dialog",tabindex:0,class:[bem$a({round:P,[w]:w}),{"van-safe-area-top":D,"van-safe-area-bottom":M}],onKeydown:p},n,useScopeId()),[(k=i.default)==null?void 0:k.call(i),m()]),[[vue.vShow,e.show]])}),S=()=>{const{position:k,transition:P,transitionAppear:w}=e,D=k==="center"?"van-fade":`van-popup-slide-${k}`;return vue.createVNode(vue.Transition,{name:P||D,appear:w,onAfterEnter:b,onAfterLeave:d},{default:y})};return vue.watch(()=>e.show,k=>{k&&!a&&(h(),n.tabindex===0&&vue.nextTick(()=>{var P;(P=l.value)==null||P.focus()})),!k&&a&&(a=!1,r("close"))}),useExpose({popupRef:l}),useLockScroll(l,()=>e.show&&e.lockScroll),useEventListener("popstate",()=>{e.closeOnPopstate&&(x(),o=!1)}),vue.onMounted(()=>{e.show&&h()}),vue.onActivated(()=>{o&&(r("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(),S()]}):vue.createVNode(vue.Fragment,null,[g(),S()])}});const Popup=withInstall(stdin_default$b),[name$b,bem$9,t]=createNamespace("picker"),getFirstEnabledOption=e=>e.find(r=>!r.disabled)||e[0];function getColumnsType(e,r){const n=e[0];if(n){if(Array.isArray(n))return"multiple";if(r.children in n)return"cascade"}return"default"}function findIndexOfEnabledOption(e,r){r=clamp(r,0,e.length);for(let n=r;n<e.length;n++)if(!e[n].disabled)return n;for(let n=r-1;n>=0;n--)if(!e[n].disabled)return n;return 0}const isOptionExist=(e,r,n)=>r!==void 0&&!!e.find(i=>i[n.value]===r);function findOptionByValue(e,r,n){const i=e.findIndex(o=>o[n.value]===r),a=findIndexOfEnabledOption(e,i);return e[a]}function formatCascadeColumns(e,r,n){const i=[];let a={[r.children]:e},o=0;for(;a&&a[r.children];){const s=a[r.children],l=n.value[o];if(a=isDef(l)?findOptionByValue(s,l,r):void 0,!a&&s.length){const c=getFirstEnabledOption(s)[r.value];a=findOptionByValue(s,c,r)}o++,i.push(s)}return i}function getElementTranslateY(e){const{transform:r}=window.getComputedStyle(e),n=r.slice(7,r.length-1).split(", ")[5];return Number(n)}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:r,slots:n}){let i,a,o,s,l;const c=vue.ref(),u=vue.ref(),h=vue.ref(0),x=vue.ref(0),f=useTouch(),g=()=>e.options.length,v=()=>e.optionHeight*(+e.visibleOptionNum-1)/2,m=M=>{let B=findIndexOfEnabledOption(e.options,M);const L=-B*e.optionHeight,V=()=>{B>g()-1&&(B=findIndexOfEnabledOption(e.options,M));const $=e.options[B][e.fields.value];$!==e.value&&r("change",$)};i&&L!==h.value?l=V:V(),h.value=L},E=()=>e.readonly||!e.options.length,b=M=>{i||E()||(l=null,x.value=DEFAULT_DURATION,m(M),r("clickOption",e.options[M]))},d=M=>clamp(Math.round(-M/e.optionHeight),0,g()-1),p=vue.computed(()=>d(h.value)),y=(M,B)=>{const L=Math.abs(M/B);M=h.value+L/.003*(M<0?-1:1);const V=d(M);x.value=+e.swipeDuration,m(V)},S=()=>{i=!1,x.value=0,l&&(l(),l=null)},k=M=>{if(!E()){if(f.start(M),i){const B=getElementTranslateY(u.value);h.value=Math.min(0,B-v())}x.value=0,a=h.value,o=Date.now(),s=a,l=null}},P=M=>{if(E())return;f.move(M),f.isVertical()&&(i=!0,preventDefault(M,!0));const B=clamp(a+f.deltaY.value,-(g()*e.optionHeight),e.optionHeight),L=d(B);L!==p.value&&r("scrollInto",e.options[L]),h.value=B;const V=Date.now();V-o>MOMENTUM_TIME&&(o=V,s=B)},w=()=>{if(E())return;const M=h.value-s,B=Date.now()-o;if(B<MOMENTUM_TIME&&Math.abs(M)>MOMENTUM_DISTANCE){y(M,B);return}const V=d(h.value);x.value=DEFAULT_DURATION,m(V),setTimeout(()=>{i=!1},0)},D=()=>{const M={height:`${e.optionHeight}px`};return e.options.map((B,L)=>{const V=B[e.fields.text],{disabled:$}=B,N=B[e.fields.value],T={role:"button",style:M,tabindex:$?-1:0,class:[bem$8("item",{disabled:$,selected:N===e.value}),B.className],onClick:()=>b(L)},I={class:"van-ellipsis",[e.allowHtml?"innerHTML":"textContent"]:V};return vue.createVNode("li",T,[n.option?n.option(B,L):vue.createVNode("div",I,null)])})};return useParent(PICKER_KEY),useExpose({stopMomentum:S}),vue.watchEffect(()=>{const M=i?Math.floor(-h.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&&S(),h.value=L}),useEventListener("touchmove",P,{target:c}),()=>vue.createVNode("div",{ref:c,class:bem$8(),onTouchstartPassive:k,onTouchend:w,onTouchcancel:w},[vue.createVNode("ul",{ref:u,style:{transform:`translate3d(0, ${h.value+v()}px, 0)`,transitionDuration:`${x.value}ms`,transitionProperty:x.value?"all":"none"},class:bem$8("wrapper"),onTransitionend:S},[D()])])}});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:r,slots:n}){const i=()=>{if(n.title)return n.title();if(e.title)return vue.createVNode("div",{class:[bem$9("title"),"van-ellipsis"]},[e.title])},a=()=>r("cancel"),o=()=>r("confirm"),s=()=>{var c;const u=(c=e.cancelButtonText)!=null?c:t("cancel");if(!(!n.cancel&&!u))return vue.createVNode("button",{type:"button",class:[bem$9("cancel"),HAPTICS_FEEDBACK],onClick:a},[n.cancel?n.cancel():u])},l=()=>{var c;const u=(c=e.confirmButtonText)!=null?c:t("confirm");if(!(!n.confirm&&!u))return vue.createVNode("button",{type:"button",class:[bem$9("confirm"),HAPTICS_FEEDBACK],onClick:o},[n.confirm?n.confirm():u])};return()=>vue.createVNode("div",{class:bem$9("toolbar")},[n.toolbar?n.toolbar():[s(),i(),l()]])}});const useSyncPropRef=(e,r)=>{const n=vue.ref(e());return vue.watch(e,i=>{i!==n.value&&(n.value=i)}),vue.watch(n,i=>{i!==e()&&r(i)}),n};/**
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 r=Object.create(null);return n=>r[n]||(r[n]=e(n))},hyphenateRE=/\B([A-Z])/g,hyphenate=cacheStringFunction(e=>e.replace(hyphenateRE,"-$1").toLowerCase());function normalizeStyle(e){if(isArray(e)){const r={};for(let n=0;n<e.length;n++){const i=e[n],a=isString(i)?parseStringStyle(i):normalizeStyle(i);if(a)for(const o in a)r[o]=a[o]}return r}else if(isString(e)||isObject(e))return e}const listDelimiterRE=/;(?![^(]*\))/g,propertyDelimiterRE=/:([^]+)/,styleCommentRE=/\/\*[^]*?\*\//g;function parseStringStyle(e){const r={};return e.replace(styleCommentRE,"").split(listDelimiterRE).forEach(n=>{if(n){const i=n.split(propertyDelimiterRE);i.length>1&&(r[i[0].trim()]=i[1].trim())}}),r}function stringifyStyle(e){let r="";if(!e||isString(e))return r;for(const n in e){const i=e[n];if(isString(i)||typeof i=="number"){const a=n.startsWith("--")?n:hyphenate(n);r+=`${a}:${i};`}}return r}function normalizeClass(e){let r="";if(isString(e))r=e;else if(isArray(e))for(let n=0;n<e.length;n++){const i=normalizeClass(e[n]);i&&(r+=i+" ")}else if(isObject(e))for(const n in e)e[n]&&(r+=n+" ");return r.trim()}function scrollLeftTo(e,r,n){let i,a=0;const o=e.scrollLeft,s=n===0?1:Math.round(n*1e3/16);let l=o;function c(){cancelRaf(i)}function u(){l+=(r-o)/s,e.scrollLeft=l,++a<s&&(i=raf(u))}return u(),c}function scrollTopTo(e,r,n,i){let a,o=getScrollTop(e);const s=o<r,l=n===0?1:Math.round(n*1e3/16),c=(r-o)/l;function u(){cancelRaf(a)}function h(){o+=c,(s&&o>r||!s&&o<r)&&(o=r),setScrollTop(e,o),s&&o<r||!s&&o>r?a=raf(h):i&&(a=raf(i))}return h(),u}let current=0;function useId(){const e=vue.getCurrentInstance(),{name:r="unknown"}=(e==null?void 0:e.type)||{};return process.env.NODE_ENV==="test"?r:`${r}-${++current}`}function useRefs(){const e=vue.ref([]),r=[];return vue.onBeforeUpdate(()=>{e.value=[]}),[e,i=>(r[i]||(r[i]=a=>{e.value[i]=a}),r[i])]}function useVisibilityChange(e,r){if(!inBrowser$1||!window.IntersectionObserver)return;const n=new IntersectionObserver(o=>{r(o[0].intersectionRatio>0)},{root:document.body}),i=()=>{e.value&&n.observe(e.value)},a=()=>{e.value&&n.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:r,slots:n}){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:f,height:g,width:v}=o;if(f)return{width:`${v}px`,height:`${g}px`}}),u=vue.computed(()=>{if(!o.fixed||s.value)return;const f=extend(getZIndexStyle(e.zIndex),{width:`${o.width}px`,height:`${o.height}px`,[e.position]:`${l.value}px`});return o.transform&&(f.transform=`translate3d(0, ${o.transform}px, 0)`),f}),h=f=>r("scroll",{scrollTop:f,isFixed:o.fixed}),x=()=>{if(!i.value||isHidden(i))return;const{container:f,position:g}=e,v=useRect(i),m=getScrollTop(window);if(o.width=v.width,o.height=v.height,g==="top")if(f){const w=useRect(f),b=w.bottom-l.value-o.height;o.fixed=l.value>v.top&&w.bottom>0,o.transform=b<0?b:0}else o.fixed=l.value>v.top;else{const{clientHeight:w}=document.documentElement;if(f){const b=useRect(f),d=w-b.top-l.value-o.height;o.fixed=w-l.value<v.bottom&&w>b.top,o.transform=d<0?-d:0}else o.fixed=w-l.value<v.bottom}h(m)};return vue.watch(()=>o.fixed,f=>r("change",f)),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 f=useRect(i);o.width=f.width,o.height=f.height,s.value=!1}))}),()=>{var f;return vue.createVNode("div",{ref:i,style:c.value},[vue.createVNode("div",{class:bem$7({fixed:o.fixed&&!s.value}),style:u.value},[(f=n.default)==null?void 0:f.call(n)])])}}});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:r,slots:n}){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),h=vue.computed(()=>c.length),x=vue.computed(()=>o[e.vertical?"height":"width"]),f=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*h.value:0),v=vue.computed(()=>x.value?Math.ceil(Math.abs(g.value)/x.value):h.value),m=vue.computed(()=>h.value*x.value),w=vue.computed(()=>(o.active+h.value)%h.value),b=vue.computed(()=>{const k=e.vertical?"vertical":"horizontal";return l.direction.value===k}),d=vue.computed(()=>{const k={transitionDuration:`${o.swiping?0:e.duration}ms`,transform:`translate${e.vertical?"Y":"X"}(${+o.offset.toFixed(2)}px)`};if(x.value){const F=e.vertical?"height":"width",$=e.vertical?"width":"height";k[F]=`${m.value}px`,k[$]=e[$]?`${e[$]}px`:""}return k}),p=k=>{const{active:F}=o;return k?e.loop?clamp(F+k,-1,h.value):clamp(F+k,0,v.value):F},y=(k,F=0)=>{let $=k*x.value;e.loop||($=Math.min($,-g.value));let G=F-$;return e.loop||(G=clamp(G,g.value,0)),G},E=({pace:k=0,offset:F=0,emitChange:$})=>{if(h.value<=1)return;const{active:G}=o,j=p(k),U=y(j,F);if(e.loop){if(c[0]&&U!==g.value){const H=U<g.value;c[0].setOffset(H?m.value:0)}if(c[h.value-1]&&U!==0){const H=U>0;c[h.value-1].setOffset(H?-m.value:0)}}o.active=j,o.offset=U,$&&j!==G&&r("change",w.value)},_=()=>{o.swiping=!0,o.active<=-1?E({pace:h.value}):o.active>=h.value&&E({pace:-h.value})},P=()=>{_(),l.reset(),doubleRaf(()=>{o.swiping=!1,E({pace:-1,emitChange:!0})})},A=()=>{_(),l.reset(),doubleRaf(()=>{o.swiping=!1,E({pace:1,emitChange:!0})})};let R;const M=()=>clearTimeout(R),B=()=>{M(),+e.autoplay>0&&h.value>1&&(R=setTimeout(()=>{A(),B()},+e.autoplay))},O=(k=+e.initialSwipe)=>{if(!i.value)return;const F=()=>{var $,G;if(!isHidden(i)){const j={width:i.value.offsetWidth,height:i.value.offsetHeight};o.rect=j,o.width=+(($=e.width)!=null?$:j.width),o.height=+((G=e.height)!=null?G:j.height)}h.value&&(k=Math.min(h.value-1,k),k===-1&&(k=h.value-1)),o.active=k,o.swiping=!0,o.offset=y(k),c.forEach(j=>{j.setOffset(0)}),B()};isHidden(i)?vue.nextTick().then(F):F()},V=()=>O(o.active);let q;const N=k=>{!e.touchable||k.touches.length>1||(l.start(k),s=!1,q=Date.now(),M(),_())},T=k=>{e.touchable&&o.swiping&&(l.move(k),b.value&&(!e.loop&&(o.active===0&&f.value>0||o.active===h.value-1&&f.value<0)||(preventDefault(k,e.stopPropagation),E({offset:f.value}),s||(r("dragStart",{index:w.value}),s=!0))))},I=()=>{if(!e.touchable||!o.swiping)return;const k=Date.now()-q,F=f.value/k;if((Math.abs(F)>.25||Math.abs(f.value)>x.value/2)&&b.value){const G=e.vertical?l.offsetY.value:l.offsetX.value;let j=0;e.loop?j=G>0?f.value>0?-1:1:0:j=-Math[f.value>0?"ceil":"floor"](f.value/x.value),E({pace:j,emitChange:!0})}else f.value&&E({pace:0});s=!1,o.swiping=!1,r("dragEnd",{index:w.value}),B()},S=(k,F={})=>{_(),l.reset(),doubleRaf(()=>{let $;e.loop&&k===h.value?$=o.active===0?0:k:$=k%h.value,F.immediate?doubleRaf(()=>{o.swiping=!1}):o.swiping=!1,E({pace:$-o.active,emitChange:!0})})},C=(k,F)=>{const $=F===w.value,G=$?{backgroundColor:e.indicatorColor}:void 0;return vue.createVNode("i",{style:G,class:bem$6("indicator",{active:$})},null)},D=()=>{if(n.indicator)return n.indicator({active:w.value,total:h.value});if(e.showIndicators&&h.value>1)return vue.createVNode("div",{class:bem$6("indicators",{vertical:e.vertical})},[Array(h.value).fill("").map(C)])};return useExpose({prev:P,next:A,state:o,resize:V,swipeTo:S}),u({size:x,props:e,count:h,activeIndicator:w}),vue.watch(()=>e.initialSwipe,k=>O(+k)),vue.watch(h,()=>O(o.active)),vue.watch(()=>e.autoplay,B),vue.watch([windowWidth,windowHeight,()=>e.width,()=>e.height],V),vue.watch(usePageVisibility(),k=>{k==="visible"?B():M()}),vue.onMounted(O),vue.onActivated(()=>O(o.active)),onPopupReopen(()=>O(o.active)),vue.onDeactivated(M),vue.onBeforeUnmount(M),useEventListener("touchmove",T,{target:a}),()=>{var k;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:N,onTouchend:I,onTouchcancel:I},[(k=n.default)==null?void 0:k.call(n)]),D()])}}});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:r,slots:n}){const i=vue.ref(),a=l=>r("change",l),o=()=>{var l;const c=(l=n.default)==null?void 0:l.call(n);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:r,slots:n}){let i,a,o,s,l;const c=vue.ref(),u=vue.ref(),h=vue.ref(),x=vue.ref(),f=useId(),g=useScrollParent(c),[v,m]=useRefs(),{children:w,linkChildren:b}=useChildren(TABS_KEY),d=vue.reactive({inited:!1,position:"",lineStyle:{},currentIndex:-1}),p=vue.computed(()=>w.length>+e.swipeThreshold||!e.ellipsis||e.shrink),y=vue.computed(()=>({borderColor:e.color,background:e.background})),E=(j,U)=>{var H;return(H=j.name)!=null?H:U},_=vue.computed(()=>{const j=w[d.currentIndex];if(j)return E(j,d.currentIndex)}),P=vue.computed(()=>unitToPx(e.offsetTop)),A=vue.computed(()=>e.sticky?P.value+i:0),R=j=>{const U=u.value,H=v.value;if(!p.value||!U||!H||!H[d.currentIndex])return;const L=H[d.currentIndex].$el,K=L.offsetLeft-(U.offsetWidth-L.offsetWidth)/2;s&&s(),s=scrollLeftTo(U,K,j?0:+e.duration)},M=()=>{const j=d.inited;vue.nextTick(()=>{const U=v.value;if(!U||!U[d.currentIndex]||e.type!=="line"||isHidden(c.value))return;const H=U[d.currentIndex].$el,{lineWidth:L,lineHeight:K}=e,Y=H.offsetLeft+H.offsetWidth/2,Q={width:addUnit(L),backgroundColor:e.color,transform:`translateX(${Y}px) translateX(-50%)`};if(j&&(Q.transitionDuration=`${e.duration}s`),isDef(K)){const J=addUnit(K);Q.height=J,Q.borderRadius=J}d.lineStyle=Q})},B=j=>{const U=j<d.currentIndex?-1:1;for(;j>=0&&j<w.length;){if(!w[j].disabled)return j;j+=U}},O=(j,U)=>{const H=B(j);if(!isDef(H))return;const L=w[H],K=E(L,H),Y=d.currentIndex!==null;d.currentIndex!==H&&(d.currentIndex=H,U||R(),M()),K!==e.active&&(r("update:active",K),Y&&r("change",K,L.title)),o&&!e.scrollspy&&setRootScrollTop(Math.ceil(getElementTop(c.value)-P.value))},V=(j,U)=>{const H=w.find((K,Y)=>E(K,Y)===j),L=H?w.indexOf(H):0;O(L,U)},q=(j=!1)=>{if(e.scrollspy){const U=w[d.currentIndex].$el;if(U&&g.value){const H=getElementTop(U,g.value)-A.value;a=!0,l&&l(),l=scrollTopTo(g.value,H,j?0:+e.duration,()=>{a=!1})}}},N=(j,U,H)=>{const{title:L,disabled:K}=w[U],Y=E(w[U],U);K||(callInterceptor(e.beforeChange,{args:[Y],done:()=>{O(U),q()}}),route(j)),r("clickTab",{name:Y,title:L,event:H,disabled:K})},T=j=>{o=j.isFixed,r("scroll",j)},I=j=>{vue.nextTick(()=>{V(j),q(!0)})},S=()=>{for(let j=0;j<w.length;j++){const{top:U}=useRect(w[j].$el);if(U>A.value)return j===0?0:j-1}return w.length-1},C=()=>{if(e.scrollspy&&!a){const j=S();O(j)}},D=()=>{if(e.type==="line"&&w.length)return vue.createVNode("div",{class:bem$4("line"),style:d.lineStyle},null)},k=()=>{var j,U,H;const{type:L,border:K,sticky:Y}=e,Q=[vue.createVNode("div",{ref:Y?void 0:h,class:[bem$4("wrap"),{[BORDER_TOP_BOTTOM]:L==="line"&&K}]},[vue.createVNode("div",{ref:u,role:"tablist",class:bem$4("nav",[L,{shrink:e.shrink,complete:p.value}]),style:y.value,"aria-orientation":"horizontal"},[(j=n["nav-left"])==null?void 0:j.call(n),w.map(J=>J.renderTitle(N)),D(),(U=n["nav-right"])==null?void 0:U.call(n)])]),(H=n["nav-bottom"])==null?void 0:H.call(n)];return Y?vue.createVNode("div",{ref:h},[Q]):Q},F=()=>{M(),vue.nextTick(()=>{var j,U;R(!0),(U=(j=x.value)==null?void 0:j.swipeRef.value)==null||U.resize()})};vue.watch(()=>[e.color,e.duration,e.lineWidth,e.lineHeight],M),vue.watch(windowWidth,F),vue.watch(()=>e.active,j=>{j!==_.value&&V(j)}),vue.watch(()=>w.length,()=>{d.inited&&(V(e.active),M(),vue.nextTick(()=>{R(!0)}))});const $=()=>{V(e.active,!0),vue.nextTick(()=>{d.inited=!0,h.value&&(i=useRect(h.value).height),R(!0)})},G=(j,U)=>r("rendered",j,U);return useExpose({resize:F,scrollTo:I}),vue.onActivated(M),onPopupReopen(M),onMountedOrActivated($),useVisibilityChange(c,M),useEventListener("scroll",C,{target:g,passive:!0}),b({id:f,props:e,setLine:M,scrollable:p,onRendered:G,currentName:_,setTitleRefs:m,scrollIntoView:R}),()=>vue.createVNode("div",{ref:c,class:bem$4([e.type])},[e.showHeader?e.sticky?vue.createVNode(Sticky,{container:c.value,offsetTop:P.value,onScroll:T},{default:()=>[k()]}):k():null,vue.createVNode(stdin_default$6,{ref:x,count:w.length,inited:d.inited,animated:e.animated,duration:e.duration,swipeable:e.swipeable,lazyRender:e.lazyRender,currentIndex:d.currentIndex,onChange:O},{default:()=>{var j;return[(j=n.default)==null?void 0:j.call(n)]}})])}});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:r}){const n=vue.computed(()=>{const a={},{type:o,color:s,disabled:l,isActive:c,activeColor:u,inactiveColor:h}=e;s&&o==="card"&&(a.borderColor=s,l||(c?a.backgroundColor=s:a.color=s));const f=c?u:h;return f&&(a.color=f),a}),i=()=>{const a=vue.createVNode("span",{class:bem$3("text",{ellipsis:!e.scrollable})},[r.title?r.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:n.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:r}){let n;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:h}=a.props;return a.size.value&&(u[h?"height":"width"]=`${a.size.value}px`),i.offset&&(u.transform=`translate${h?"Y":"X"}(${i.offset}px)`),u}),l=vue.computed(()=>{const{loop:u,lazyRender:h}=a.props;if(!h||n)return!0;if(!i.mounted)return!1;const x=a.activeIndicator.value,f=a.count.value-1,g=x===0&&u?f:x-1,v=x===f&&u?0:x+1;return n=o.value===x||o.value===g||o.value===v,n}),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=r.default)==null?void 0:u.call(r):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:r}){const n=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}),h=vue.ref(""),x=vue.ref("");vue.watchEffect(()=>{const{titleClass:v,titleStyle:m}=e;h.value=v?normalizeClass(v):"",x.value=m&&typeof m!="string"?stringifyStyle(normalizeStyle(m)):m});const f=v=>vue.createVNode(TabTitle,vue.mergeProps({key:n,id:`${o.id}-${s.value}`,ref:o.setTitleRefs(s.value),style:x.value,class:h.value,isActive:u.value,controls:n,scrollable:o.scrollable.value,activeColor:o.props.titleActiveColor,inactiveColor:o.props.titleInactiveColor,onClick:m=>v(a.proxy,s.value,m)},pick(o.props,["type","color","shrink"]),pick(e,["dot","badge","title","disabled","showZeroBadge"])),{title:r.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:n,renderTitle:f}),()=>{var v;const m=`${o.id}-${s.value}`,{animated:w,swipeable:b,scrollspy:d,lazyRender:p}=o.props;if(!r.default&&!w)return;const y=d||u.value;if(w||b)return vue.createVNode(SwipeItem,{id:n,role:"tabpanel",class:bem$1("panel-wrapper",{inactive:g.value}),tabindex:u.value?0:-1,"aria-hidden":!u.value,"aria-labelledby":m},{default:()=>{var P;return[vue.createVNode("div",{class:bem$1("panel")},[(P=r.default)==null?void 0:P.call(r)])]}});const _=i.value||d||!p?(v=r.default)==null?void 0:v.call(r):null;return vue.withDirectives(vue.createVNode("div",{id:n,role:"tabpanel",class:bem$1("panel"),tabindex:y?0:-1,"aria-labelledby":m},[_]),[[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:r,slots:n}){const i=useSyncPropRef(()=>e.activeTab,u=>r("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:r("confirm",a.map(u=>u.confirm()))},c=()=>r("cancel");return()=>{var u,h;let x=(h=(u=n.default)==null?void 0:u.call(n))==null?void 0:h.filter(g=>g.type!==vue.Comment).map(g=>g.type===vue.Fragment?g.children:g);x&&(x=flat(x));const f=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:f,onConfirm:l,onCancel:c},pick(n,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:r,slots:n}){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)),h=vue.computed(()=>getColumnsType(e.columns,c.value)),x=vue.computed(()=>{const{columns:B}=e;switch(h.value){case"multiple":return B;case"cascade":return formatCascadeColumns(B,c.value,a);default:return[B]}}),f=vue.computed(()=>x.value.some(B=>B.length)),g=vue.computed(()=>x.value.map((B,O)=>findOptionByValue(B,a.value[O],c.value))),v=vue.computed(()=>x.value.map((B,O)=>B.findIndex(V=>V[c.value.value]===a.value[O]))),m=(B,O)=>{if(a.value[B]!==O){const V=a.value.slice(0);V[B]=O,a.value=V}},w=()=>({selectedValues:a.value.slice(0),selectedOptions:g.value,selectedIndexes:v.value}),b=(B,O)=>{m(O,B),h.value==="cascade"&&a.value.forEach((V,q)=>{const N=x.value[q];isOptionExist(N,V,c.value)||m(q,N.length?N[0][c.value.value]:void 0)}),vue.nextTick(()=>{r("change",extend({columnIndex:O},w()))})},d=(B,O)=>{const V={columnIndex:O,currentOption:B};r("clickOption",extend(w(),V)),r("scrollInto",V)},p=()=>{s.forEach(O=>O.stopMomentum());const B=w();return vue.nextTick(()=>{r("confirm",B)}),B},y=()=>r("cancel",w()),E=()=>x.value.map((B,O)=>vue.createVNode(stdin_default$a,{value:a.value[O],fields:c.value,options:B,readonly:e.readonly,allowHtml:e.allowHtml,optionHeight:u.value,swipeDuration:e.swipeDuration,visibleOptionNum:e.visibleOptionNum,onChange:V=>b(V,O),onClickOption:V=>d(V,O),onScrollInto:V=>{r("scrollInto",{currentOption:V,columnIndex:O})}},{option:n.option})),_=B=>{if(f.value){const O={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:O},null)]}},P=()=>{const B=u.value*+e.visibleOptionNum,O={height:`${B}px`};return vue.createVNode("div",{ref:i,class:bem$9("columns"),style:O},[E(),_(B)])},A=()=>{if(e.showToolbar&&!o)return vue.createVNode(stdin_default$9,vue.mergeProps(pick(e,pickerToolbarPropKeys),{onConfirm:p,onCancel:y}),pick(n,pickerToolbarSlots))};vue.watch(x,B=>{B.forEach((O,V)=>{O.length&&!isOptionExist(O,a.value[V],c.value)&&m(V,getFirstEnabledOption(O)[c.value.value])})},{immediate:!0});let R;return vue.watch(()=>e.modelValue,B=>{!isSameValue(B,a.value)&&!isSameValue(B,R)&&(a.value=B.slice(0),R=B.slice(0))},{deep:!0}),vue.watch(a,B=>{isSameValue(B,e.modelValue)||(R=B.slice(0),r("update:modelValue",R))},{immediate:!0}),useEventListener("touchmove",preventDefault,{target:i}),useExpose({confirm:p,getSelectedOptions:()=>g.value}),()=>{var B,O;return vue.createVNode("div",{class:bem$9()},[e.toolbarPosition==="top"?A():null,e.loading?vue.createVNode(Loading,{class:bem$9("loading")},null):null,(B=n["columns-top"])==null?void 0:B.call(n),P(),(O=n["columns-bottom"])==null?void 0:O.call(n),e.toolbarPosition==="bottom"?A():null])}}});const Picker=withInstall(stdin_default$1),sharedProps=extend({},pickerSharedProps,{modelValue:makeArrayProp(),filter:Function,formatter:{type:Function,default:(e,r)=>r}}),pickerInheritKeys=Object.keys(pickerSharedProps);function times(e,r){if(e<0)return[];const n=Array(e);let i=-1;for(;++i<e;)n[i]=r(i);return n}const getMonthEndDay=(e,r)=>32-new Date(e,r-1,32).getDate(),genOptions=(e,r,n,i,a,o)=>{const s=times(r-e+1,l=>{const c=padZero(e+l);return i(n,{text:c,value:c})});return a?a(n,s,o):s},formatValueRange=(e,r)=>e.map((n,i)=>{const a=r[i];if(a.length){const o=+a[0].value,s=+a[a.length-1].value;return padZero(clamp(+n,o,s))}return n}),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:r,slots:n}){const i=vue.ref(e.modelValue),a=vue.ref(!1),o=vue.ref(),s=()=>{const y=e.minDate.getFullYear(),E=e.maxDate.getFullYear();return genOptions(y,E,"year",e.formatter,e.filter)},l=y=>y===e.minDate.getFullYear(),c=y=>y===e.maxDate.getFullYear(),u=y=>y===e.minDate.getMonth()+1,h=y=>y===e.maxDate.getMonth()+1,x=y=>{const{minDate:E,columnsType:_}=e,P=_.indexOf(y),A=a.value?e.modelValue[P]:i.value[P];if(A)return+A;switch(y){case"year":return E.getFullYear();case"month":return E.getMonth()+1;case"day":return E.getDate()}},f=()=>{const y=x("year"),E=l(y)?e.minDate.getMonth()+1:1,_=c(y)?e.maxDate.getMonth()+1:12;return genOptions(E,_,"month",e.formatter,e.filter)},g=()=>{const y=x("year"),E=x("month"),_=l(y)&&u(E)?e.minDate.getDate():1,P=c(y)&&h(E)?e.maxDate.getDate():getMonthEndDay(y,E);return genOptions(_,P,"day",e.formatter,e.filter)},v=()=>{var y;return(y=o.value)==null?void 0:y.confirm()},m=()=>i.value,w=vue.computed(()=>e.columnsType.map(y=>{switch(y){case"year":return s();case"month":return f();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)||r("update:modelValue",y)}),vue.watch(()=>e.modelValue,(y,E)=>{a.value=isSameValue(E,i.value),y=formatValueRange(y,w.value),isSameValue(y,i.value)||(i.value=y),a.value=!1},{immediate:!0});const b=(...y)=>r("change",...y),d=(...y)=>r("cancel",...y),p=(...y)=>r("confirm",...y);return useExpose({confirm:v,getSelectedDate:m}),()=>vue.createVNode(Picker,vue.mergeProps({ref:o,modelValue:i.value,"onUpdate:modelValue":y=>i.value=y,columns:w.value,onChange:b,onCancel:d,onConfirm:p},pick(e,pickerInheritKeys)),n)}});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(r=>{const n=components[r];n.install&&e.use(n)})},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.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.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.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,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 r=Object.create(null);return n=>r[n]||(r[n]=e(n))},hyphenateRE=/\B([A-Z])/g,hyphenate=cacheStringFunction(e=>e.replace(hyphenateRE,"-$1").toLowerCase());function normalizeStyle(e){if(isArray(e)){const r={};for(let n=0;n<e.length;n++){const i=e[n],a=isString(i)?parseStringStyle(i):normalizeStyle(i);if(a)for(const o in a)r[o]=a[o]}return r}else if(isString(e)||isObject(e))return e}const listDelimiterRE=/;(?![^(]*\))/g,propertyDelimiterRE=/:([^]+)/,styleCommentRE=/\/\*[^]*?\*\//g;function parseStringStyle(e){const r={};return e.replace(styleCommentRE,"").split(listDelimiterRE).forEach(n=>{if(n){const i=n.split(propertyDelimiterRE);i.length>1&&(r[i[0].trim()]=i[1].trim())}}),r}function stringifyStyle(e){let r="";if(!e||isString(e))return r;for(const n in e){const i=e[n];if(isString(i)||typeof i=="number"){const a=n.startsWith("--")?n:hyphenate(n);r+=`${a}:${i};`}}return r}function normalizeClass(e){let r="";if(isString(e))r=e;else if(isArray(e))for(let n=0;n<e.length;n++){const i=normalizeClass(e[n]);i&&(r+=i+" ")}else if(isObject(e))for(const n in e)e[n]&&(r+=n+" ");return r.trim()}function scrollLeftTo(e,r,n){let i,a=0;const o=e.scrollLeft,s=n===0?1:Math.round(n*1e3/16);let l=o;function c(){cancelRaf(i)}function u(){l+=(r-o)/s,e.scrollLeft=l,++a<s&&(i=raf(u))}return u(),c}function scrollTopTo(e,r,n,i){let a,o=getScrollTop(e);const s=o<r,l=n===0?1:Math.round(n*1e3/16),c=(r-o)/l;function u(){cancelRaf(a)}function h(){o+=c,(s&&o>r||!s&&o<r)&&(o=r),setScrollTop(e,o),s&&o<r||!s&&o>r?a=raf(h):i&&(a=raf(i))}return h(),u}let current=0;function useId(){const e=vue.getCurrentInstance(),{name:r="unknown"}=(e==null?void 0:e.type)||{};return process.env.NODE_ENV==="test"?r:`${r}-${++current}`}function useRefs(){const e=vue.ref([]),r=[];return vue.onBeforeUpdate(()=>{e.value=[]}),[e,i=>(r[i]||(r[i]=a=>{e.value[i]=a}),r[i])]}function useVisibilityChange(e,r){if(!inBrowser$1||!window.IntersectionObserver)return;const n=new IntersectionObserver(o=>{r(o[0].intersectionRatio>0)},{root:document.body}),i=()=>{e.value&&n.observe(e.value)},a=()=>{e.value&&n.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:r,slots:n}){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:f,height:g,width:v}=o;if(f)return{width:`${v}px`,height:`${g}px`}}),u=vue.computed(()=>{if(!o.fixed||s.value)return;const f=extend(getZIndexStyle(e.zIndex),{width:`${o.width}px`,height:`${o.height}px`,[e.position]:`${l.value}px`});return o.transform&&(f.transform=`translate3d(0, ${o.transform}px, 0)`),f}),h=f=>r("scroll",{scrollTop:f,isFixed:o.fixed}),x=()=>{if(!i.value||isHidden(i))return;const{container:f,position:g}=e,v=useRect(i),m=getScrollTop(window);if(o.width=v.width,o.height=v.height,g==="top")if(f){const E=useRect(f),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(f){const b=useRect(f),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}h(m)};return vue.watch(()=>o.fixed,f=>r("change",f)),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 f=useRect(i);o.width=f.width,o.height=f.height,s.value=!1}))}),()=>{var f;return vue.createVNode("div",{ref:i,style:c.value},[vue.createVNode("div",{class:bem$7({fixed:o.fixed&&!s.value}),style:u.value},[(f=n.default)==null?void 0:f.call(n)])])}}});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:r,slots:n}){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),h=vue.computed(()=>c.length),x=vue.computed(()=>o[e.vertical?"height":"width"]),f=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*h.value:0),v=vue.computed(()=>x.value?Math.ceil(Math.abs(g.value)/x.value):h.value),m=vue.computed(()=>h.value*x.value),E=vue.computed(()=>(o.active+h.value)%h.value),b=vue.computed(()=>{const _=e.vertical?"vertical":"horizontal";return l.direction.value===_}),d=vue.computed(()=>{const _={transitionDuration:`${o.swiping?0:e.duration}ms`,transform:`translate${e.vertical?"Y":"X"}(${+o.offset.toFixed(2)}px)`};if(x.value){const O=e.vertical?"height":"width",U=e.vertical?"width":"height";_[O]=`${m.value}px`,_[U]=e[U]?`${e[U]}px`:""}return _}),p=_=>{const{active:O}=o;return _?e.loop?clamp(O+_,-1,h.value):clamp(O+_,0,v.value):O},y=(_,O=0)=>{let U=_*x.value;e.loop||(U=Math.min(U,-g.value));let q=O-U;return e.loop||(q=clamp(q,g.value,0)),q},S=({pace:_=0,offset:O=0,emitChange:U})=>{if(h.value<=1)return;const{active:q}=o,H=p(_),j=y(H,O);if(e.loop){if(c[0]&&j!==g.value){const G=j<g.value;c[0].setOffset(G?m.value:0)}if(c[h.value-1]&&j!==0){const G=j>0;c[h.value-1].setOffset(G?-m.value:0)}}o.active=H,o.offset=j,U&&H!==q&&r("change",E.value)},k=()=>{o.swiping=!0,o.active<=-1?S({pace:h.value}):o.active>=h.value&&S({pace:-h.value})},P=()=>{k(),l.reset(),doubleRaf(()=>{o.swiping=!1,S({pace:-1,emitChange:!0})})},w=()=>{k(),l.reset(),doubleRaf(()=>{o.swiping=!1,S({pace:1,emitChange:!0})})};let D;const M=()=>clearTimeout(D),B=()=>{M(),+e.autoplay>0&&h.value>1&&(D=setTimeout(()=>{w(),B()},+e.autoplay))},L=(_=+e.initialSwipe)=>{if(!i.value)return;const O=()=>{var U,q;if(!isHidden(i)){const H={width:i.value.offsetWidth,height:i.value.offsetHeight};o.rect=H,o.width=+((U=e.width)!=null?U:H.width),o.height=+((q=e.height)!=null?q:H.height)}h.value&&(_=Math.min(h.value-1,_),_===-1&&(_=h.value-1)),o.active=_,o.swiping=!0,o.offset=y(_),c.forEach(H=>{H.setOffset(0)}),B()};isHidden(i)?vue.nextTick().then(O):O()},V=()=>L(o.active);let $;const N=_=>{!e.touchable||_.touches.length>1||(l.start(_),s=!1,$=Date.now(),M(),k())},T=_=>{e.touchable&&o.swiping&&(l.move(_),b.value&&(!e.loop&&(o.active===0&&f.value>0||o.active===h.value-1&&f.value<0)||(preventDefault(_,e.stopPropagation),S({offset:f.value}),s||(r("dragStart",{index:E.value}),s=!0))))},I=()=>{if(!e.touchable||!o.swiping)return;const _=Date.now()-$,O=f.value/_;if((Math.abs(O)>.25||Math.abs(f.value)>x.value/2)&&b.value){const q=e.vertical?l.offsetY.value:l.offsetX.value;let H=0;e.loop?H=q>0?f.value>0?-1:1:0:H=-Math[f.value>0?"ceil":"floor"](f.value/x.value),S({pace:H,emitChange:!0})}else f.value&&S({pace:0});s=!1,o.swiping=!1,r("dragEnd",{index:E.value}),B()},A=(_,O={})=>{k(),l.reset(),doubleRaf(()=>{let U;e.loop&&_===h.value?U=o.active===0?0:_:U=_%h.value,O.immediate?doubleRaf(()=>{o.swiping=!1}):o.swiping=!1,S({pace:U-o.active,emitChange:!0})})},C=(_,O)=>{const U=O===E.value,q=U?{backgroundColor:e.indicatorColor}:void 0;return vue.createVNode("i",{style:q,class:bem$6("indicator",{active:U})},null)},F=()=>{if(n.indicator)return n.indicator({active:E.value,total:h.value});if(e.showIndicators&&h.value>1)return vue.createVNode("div",{class:bem$6("indicators",{vertical:e.vertical})},[Array(h.value).fill("").map(C)])};return useExpose({prev:P,next:w,state:o,resize:V,swipeTo:A}),u({size:x,props:e,count:h,activeIndicator:E}),vue.watch(()=>e.initialSwipe,_=>L(+_)),vue.watch(h,()=>L(o.active)),vue.watch(()=>e.autoplay,B),vue.watch([windowWidth,windowHeight,()=>e.width,()=>e.height],V),vue.watch(usePageVisibility(),_=>{_==="visible"?B():M()}),vue.onMounted(L),vue.onActivated(()=>L(o.active)),onPopupReopen(()=>L(o.active)),vue.onDeactivated(M),vue.onBeforeUnmount(M),useEventListener("touchmove",T,{target:a}),()=>{var _;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:N,onTouchend:I,onTouchcancel:I},[(_=n.default)==null?void 0:_.call(n)]),F()])}}});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:r,slots:n}){const i=vue.ref(),a=l=>r("change",l),o=()=>{var l;const c=(l=n.default)==null?void 0:l.call(n);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:r,slots:n}){let i,a,o,s,l;const c=vue.ref(),u=vue.ref(),h=vue.ref(),x=vue.ref(),f=useId(),g=useScrollParent(c),[v,m]=useRefs(),{children:E,linkChildren:b}=useChildren(TABS_KEY),d=vue.reactive({inited:!1,position:"",lineStyle:{},currentIndex:-1}),p=vue.computed(()=>E.length>+e.swipeThreshold||!e.ellipsis||e.shrink),y=vue.computed(()=>({borderColor:e.color,background:e.background})),S=(H,j)=>{var G;return(G=H.name)!=null?G:j},k=vue.computed(()=>{const H=E[d.currentIndex];if(H)return S(H,d.currentIndex)}),P=vue.computed(()=>unitToPx(e.offsetTop)),w=vue.computed(()=>e.sticky?P.value+i:0),D=H=>{const j=u.value,G=v.value;if(!p.value||!j||!G||!G[d.currentIndex])return;const R=G[d.currentIndex].$el,W=R.offsetLeft-(j.offsetWidth-R.offsetWidth)/2;s&&s(),s=scrollLeftTo(j,W,H?0:+e.duration)},M=()=>{const H=d.inited;vue.nextTick(()=>{const j=v.value;if(!j||!j[d.currentIndex]||e.type!=="line"||isHidden(c.value))return;const G=j[d.currentIndex].$el,{lineWidth:R,lineHeight:W}=e,Y=G.offsetLeft+G.offsetWidth/2,X={width:addUnit(R),backgroundColor:e.color,transform:`translateX(${Y}px) translateX(-50%)`};if(H&&(X.transitionDuration=`${e.duration}s`),isDef(W)){const Z=addUnit(W);X.height=Z,X.borderRadius=Z}d.lineStyle=X})},B=H=>{const j=H<d.currentIndex?-1:1;for(;H>=0&&H<E.length;){if(!E[H].disabled)return H;H+=j}},L=(H,j)=>{const G=B(H);if(!isDef(G))return;const R=E[G],W=S(R,G),Y=d.currentIndex!==null;d.currentIndex!==G&&(d.currentIndex=G,j||D(),M()),W!==e.active&&(r("update:active",W),Y&&r("change",W,R.title)),o&&!e.scrollspy&&setRootScrollTop(Math.ceil(getElementTop(c.value)-P.value))},V=(H,j)=>{const G=E.find((W,Y)=>S(W,Y)===H),R=G?E.indexOf(G):0;L(R,j)},$=(H=!1)=>{if(e.scrollspy){const j=E[d.currentIndex].$el;if(j&&g.value){const G=getElementTop(j,g.value)-w.value;a=!0,l&&l(),l=scrollTopTo(g.value,G,H?0:+e.duration,()=>{a=!1})}}},N=(H,j,G)=>{const{title:R,disabled:W}=E[j],Y=S(E[j],j);W||(callInterceptor(e.beforeChange,{args:[Y],done:()=>{L(j),$()}}),route(H)),r("clickTab",{name:Y,title:R,event:G,disabled:W})},T=H=>{o=H.isFixed,r("scroll",H)},I=H=>{vue.nextTick(()=>{V(H),$(!0)})},A=()=>{for(let H=0;H<E.length;H++){const{top:j}=useRect(E[H].$el);if(j>w.value)return H===0?0:H-1}return E.length-1},C=()=>{if(e.scrollspy&&!a){const H=A();L(H)}},F=()=>{if(e.type==="line"&&E.length)return vue.createVNode("div",{class:bem$4("line"),style:d.lineStyle},null)},_=()=>{var H,j,G;const{type:R,border:W,sticky:Y}=e,X=[vue.createVNode("div",{ref:Y?void 0:h,class:[bem$4("wrap"),{[BORDER_TOP_BOTTOM]:R==="line"&&W}]},[vue.createVNode("div",{ref:u,role:"tablist",class:bem$4("nav",[R,{shrink:e.shrink,complete:p.value}]),style:y.value,"aria-orientation":"horizontal"},[(H=n["nav-left"])==null?void 0:H.call(n),E.map(Z=>Z.renderTitle(N)),F(),(j=n["nav-right"])==null?void 0:j.call(n)])]),(G=n["nav-bottom"])==null?void 0:G.call(n)];return Y?vue.createVNode("div",{ref:h},[X]):X},O=()=>{M(),vue.nextTick(()=>{var H,j;D(!0),(j=(H=x.value)==null?void 0:H.swipeRef.value)==null||j.resize()})};vue.watch(()=>[e.color,e.duration,e.lineWidth,e.lineHeight],M),vue.watch(windowWidth,O),vue.watch(()=>e.active,H=>{H!==k.value&&V(H)}),vue.watch(()=>E.length,()=>{d.inited&&(V(e.active),M(),vue.nextTick(()=>{D(!0)}))});const U=()=>{V(e.active,!0),vue.nextTick(()=>{d.inited=!0,h.value&&(i=useRect(h.value).height),D(!0)})},q=(H,j)=>r("rendered",H,j);return useExpose({resize:O,scrollTo:I}),vue.onActivated(M),onPopupReopen(M),onMountedOrActivated(U),useVisibilityChange(c,M),useEventListener("scroll",C,{target:g,passive:!0}),b({id:f,props:e,setLine:M,scrollable:p,onRendered:q,currentName:k,setTitleRefs:m,scrollIntoView:D}),()=>vue.createVNode("div",{ref:c,class:bem$4([e.type])},[e.showHeader?e.sticky?vue.createVNode(Sticky,{container:c.value,offsetTop:P.value,onScroll:T},{default:()=>[_()]}):_():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 H;return[(H=n.default)==null?void 0:H.call(n)]}})])}});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:r}){const n=vue.computed(()=>{const a={},{type:o,color:s,disabled:l,isActive:c,activeColor:u,inactiveColor:h}=e;s&&o==="card"&&(a.borderColor=s,l||(c?a.backgroundColor=s:a.color=s));const f=c?u:h;return f&&(a.color=f),a}),i=()=>{const a=vue.createVNode("span",{class:bem$3("text",{ellipsis:!e.scrollable})},[r.title?r.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:n.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:r}){let n;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:h}=a.props;return a.size.value&&(u[h?"height":"width"]=`${a.size.value}px`),i.offset&&(u.transform=`translate${h?"Y":"X"}(${i.offset}px)`),u}),l=vue.computed(()=>{const{loop:u,lazyRender:h}=a.props;if(!h||n)return!0;if(!i.mounted)return!1;const x=a.activeIndicator.value,f=a.count.value-1,g=x===0&&u?f:x-1,v=x===f&&u?0:x+1;return n=o.value===x||o.value===g||o.value===v,n}),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=r.default)==null?void 0:u.call(r):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:r}){const n=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}),h=vue.ref(""),x=vue.ref("");vue.watchEffect(()=>{const{titleClass:v,titleStyle:m}=e;h.value=v?normalizeClass(v):"",x.value=m&&typeof m!="string"?stringifyStyle(normalizeStyle(m)):m});const f=v=>vue.createVNode(TabTitle,vue.mergeProps({key:n,id:`${o.id}-${s.value}`,ref:o.setTitleRefs(s.value),style:x.value,class:h.value,isActive:u.value,controls:n,scrollable:o.scrollable.value,activeColor:o.props.titleActiveColor,inactiveColor:o.props.titleInactiveColor,onClick:m=>v(a.proxy,s.value,m)},pick(o.props,["type","color","shrink"]),pick(e,["dot","badge","title","disabled","showZeroBadge"])),{title:r.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:n,renderTitle:f}),()=>{var v;const m=`${o.id}-${s.value}`,{animated:E,swipeable:b,scrollspy:d,lazyRender:p}=o.props;if(!r.default&&!E)return;const y=d||u.value;if(E||b)return vue.createVNode(SwipeItem,{id:n,role:"tabpanel",class:bem$1("panel-wrapper",{inactive:g.value}),tabindex:u.value?0:-1,"aria-hidden":!u.value,"aria-labelledby":m},{default:()=>{var P;return[vue.createVNode("div",{class:bem$1("panel")},[(P=r.default)==null?void 0:P.call(r)])]}});const k=i.value||d||!p?(v=r.default)==null?void 0:v.call(r):null;return vue.withDirectives(vue.createVNode("div",{id:n,role:"tabpanel",class:bem$1("panel"),tabindex:y?0:-1,"aria-labelledby":m},[k]),[[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:r,slots:n}){const i=useSyncPropRef(()=>e.activeTab,u=>r("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:r("confirm",a.map(u=>u.confirm()))},c=()=>r("cancel");return()=>{var u,h;let x=(h=(u=n.default)==null?void 0:u.call(n))==null?void 0:h.filter(g=>g.type!==vue.Comment).map(g=>g.type===vue.Fragment?g.children:g);x&&(x=flat(x));const f=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:f,onConfirm:l,onCancel:c},pick(n,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:r,slots:n}){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)),h=vue.computed(()=>getColumnsType(e.columns,c.value)),x=vue.computed(()=>{const{columns:B}=e;switch(h.value){case"multiple":return B;case"cascade":return formatCascadeColumns(B,c.value,a);default:return[B]}}),f=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]))),m=(B,L)=>{if(a.value[B]!==L){const V=a.value.slice(0);V[B]=L,a.value=V}},E=()=>({selectedValues:a.value.slice(0),selectedOptions:g.value,selectedIndexes:v.value}),b=(B,L)=>{m(L,B),h.value==="cascade"&&a.value.forEach((V,$)=>{const N=x.value[$];isOptionExist(N,V,c.value)||m($,N.length?N[0][c.value.value]:void 0)}),vue.nextTick(()=>{r("change",extend({columnIndex:L},E()))})},d=(B,L)=>{const V={columnIndex:L,currentOption:B};r("clickOption",extend(E(),V)),r("scrollInto",V)},p=()=>{s.forEach(L=>L.stopMomentum());const B=E();return vue.nextTick(()=>{r("confirm",B)}),B},y=()=>r("cancel",E()),S=()=>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=>{r("scrollInto",{currentOption:V,columnIndex:L})}},{option:n.option})),k=B=>{if(f.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)]}},P=()=>{const B=u.value*+e.visibleOptionNum,L={height:`${B}px`};return vue.createVNode("div",{ref:i,class:bem$9("columns"),style:L},[S(),k(B)])},w=()=>{if(e.showToolbar&&!o)return vue.createVNode(stdin_default$9,vue.mergeProps(pick(e,pickerToolbarPropKeys),{onConfirm:p,onCancel:y}),pick(n,pickerToolbarSlots))};vue.watch(x,B=>{B.forEach((L,V)=>{L.length&&!isOptionExist(L,a.value[V],c.value)&&m(V,getFirstEnabledOption(L)[c.value.value])})},{immediate:!0});let D;return vue.watch(()=>e.modelValue,B=>{!isSameValue(B,a.value)&&!isSameValue(B,D)&&(a.value=B.slice(0),D=B.slice(0))},{deep:!0}),vue.watch(a,B=>{isSameValue(B,e.modelValue)||(D=B.slice(0),r("update:modelValue",D))},{immediate:!0}),useEventListener("touchmove",preventDefault,{target:i}),useExpose({confirm:p,getSelectedOptions:()=>g.value}),()=>{var B,L;return vue.createVNode("div",{class:bem$9()},[e.toolbarPosition==="top"?w():null,e.loading?vue.createVNode(Loading,{class:bem$9("loading")},null):null,(B=n["columns-top"])==null?void 0:B.call(n),P(),(L=n["columns-bottom"])==null?void 0:L.call(n),e.toolbarPosition==="bottom"?w():null])}}});const Picker=withInstall(stdin_default$1),sharedProps=extend({},pickerSharedProps,{modelValue:makeArrayProp(),filter:Function,formatter:{type:Function,default:(e,r)=>r}}),pickerInheritKeys=Object.keys(pickerSharedProps);function times(e,r){if(e<0)return[];const n=Array(e);let i=-1;for(;++i<e;)n[i]=r(i);return n}const getMonthEndDay=(e,r)=>32-new Date(e,r-1,32).getDate(),genOptions=(e,r,n,i,a,o)=>{const s=times(r-e+1,l=>{const c=padZero(e+l);return i(n,{text:c,value:c})});return a?a(n,s,o):s},formatValueRange=(e,r)=>e.map((n,i)=>{const a=r[i];if(a.length){const o=+a[0].value,s=+a[a.length-1].value;return padZero(clamp(+n,o,s))}return n}),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:r,slots:n}){const i=vue.ref(e.modelValue),a=vue.ref(!1),o=vue.ref(),s=()=>{const y=e.minDate.getFullYear(),S=e.maxDate.getFullYear();return genOptions(y,S,"year",e.formatter,e.filter)},l=y=>y===e.minDate.getFullYear(),c=y=>y===e.maxDate.getFullYear(),u=y=>y===e.minDate.getMonth()+1,h=y=>y===e.maxDate.getMonth()+1,x=y=>{const{minDate:S,columnsType:k}=e,P=k.indexOf(y),w=a.value?e.modelValue[P]:i.value[P];if(w)return+w;switch(y){case"year":return S.getFullYear();case"month":return S.getMonth()+1;case"day":return S.getDate()}},f=()=>{const y=x("year"),S=l(y)?e.minDate.getMonth()+1:1,k=c(y)?e.maxDate.getMonth()+1:12;return genOptions(S,k,"month",e.formatter,e.filter)},g=()=>{const y=x("year"),S=x("month"),k=l(y)&&u(S)?e.minDate.getDate():1,P=c(y)&&h(S)?e.maxDate.getDate():getMonthEndDay(y,S);return genOptions(k,P,"day",e.formatter,e.filter)},v=()=>{var y;return(y=o.value)==null?void 0:y.confirm()},m=()=>i.value,E=vue.computed(()=>e.columnsType.map(y=>{switch(y){case"year":return s();case"month":return f();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)||r("update:modelValue",y)}),vue.watch(()=>e.modelValue,(y,S)=>{a.value=isSameValue(S,i.value),y=formatValueRange(y,E.value),isSameValue(y,i.value)||(i.value=y),a.value=!1},{immediate:!0});const b=(...y)=>r("change",...y),d=(...y)=>r("cancel",...y),p=(...y)=>r("confirm",...y);return useExpose({confirm:v,getSelectedDate:m}),()=>vue.createVNode(Picker,vue.mergeProps({ref:o,modelValue:i.value,"onUpdate:modelValue":y=>i.value=y,columns:E.value,onChange:b,onCancel:d,onConfirm:p},pick(e,pickerInheritKeys)),n)}});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(r=>{const n=components[r];n.install&&e.use(n)})},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.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.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.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,Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
133
133
  //# sourceMappingURL=index.umd.js.map