@ecan-bi/datav 1.3.62 → 1.3.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +16239 -8532
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +46 -38
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +2 -2
- package/package.json +2 -1
- package/types/media/image/Image.vue.d.ts +26 -0
- package/types/media/image/index.d.ts +26 -0
- package/types/media/image/props.d.ts +16 -0
package/dist/index.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @ecan-bi/datav@1.3.
|
|
2
|
-
(function($,t){typeof exports=="object"&&typeof module<"u"?t(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"],t):($=typeof globalThis<"u"?globalThis:$||self,t($["@ecan/bi-datav"]={},$.Vue,$["echarts/core"],$.ResizeDetector,$.AntDesignVue,null,null,$.LodashEs,$.Dayjs,$.Axios,$.Mitt,null,null,null,$["ant-design-vue/es/date-picker/locale/zh_CN"],null,null,null,null,$["echarts/renderers"],$["echarts/charts"],$["echarts/components"],null,$.Echarts,null,null,$.Xlsx,$.big.js))})(this,function($,t,it,Xa,he,Ku,Zu,Oe,be,ss,cs,Qu,Ju,Xu,ei,eh,th,nh,oh,Ft,Ct,De,ah,ds,ih,rh,on,fs){var as,is,rs,ls;"use strict";function us(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(o,n,a.get?a:{enumerable:!0,get:()=>e[n]})}}return o.default=e,Object.freeze(o)}const hs=us(ds),gs=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function ms(e,o){function n(i){return(...r)=>{if(e.value||o(),!e.value)throw new Error("ECharts is not initialized yet.");return e.value[i].apply(e.value,r)}}function a(){const i=Object.create(null);return gs.forEach(r=>{i[r]=n(r)}),i}return a()}function ys(e,o,n){let a=null;t.watch([n,e,o],([i,r,s],l,d)=>{i&&r&&s&&(a=it.throttle(()=>{r.resize()},100),Xa.addListener(i,a)),d(()=>{a&&i&&Xa.removeListener(i,a)})})}const xs={autoresize:Boolean},ps="ecLoadingOptions";function bs(e,o,n){const a=t.inject(ps,{}),i=t.computed(()=>({...t.unref(a),...n==null?void 0:n.value}));t.watchEffect(()=>{const r=e.value;r&&(o.value?r.showLoading(i.value):r.hideLoading())})}const vs={loading:Boolean,loadingOptions:Object},lh="",Ss=/^on[^a-z]/,Cs=e=>Ss.test(e);function ws(e){const o={};for(const n in e)Cs(n)||(o[n]=e[n]);return o}const As="x-vue-echarts",ks="ecTheme",Ts="ecInitOptions",Bs="ecUpdateOptions",Tt=t.defineComponent({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...xs,...vs},inheritAttrs:!1,setup(e,{attrs:o,listeners:n}){const a=t.shallowRef(),i=t.shallowRef(),r=t.shallowRef(),s=t.inject(ks,null),l=t.inject(Ts,null),d=t.inject(Bs,null),{autoresize:c,manualUpdate:f,loading:x,loadingOptions:u}=t.toRefs(e),m=t.computed(()=>r.value||e.option||Object.create(null)),y=t.computed(()=>e.theme||t.unref(s)||{}),h=t.computed(()=>e.initOptions||t.unref(l)||{}),A=t.computed(()=>e.updateOptions||t.unref(d)||{}),I=t.computed(()=>ws(o));function v(R){if(i.value||!a.value)return;const p=i.value=it.init(a.value,y.value,h.value);e.group&&(p.group=e.group);let D=n;D||(D={},Object.keys(o).filter(M=>M.indexOf("on")===0&&M.length>2).forEach(M=>{const k=M.charAt(2).toLowerCase()+M.slice(3);D[k]=o[M]})),Object.keys(D).forEach(M=>{const k=D[M];k&&(M.indexOf("zr:")===0?p.getZr().on(M.slice(3).toLowerCase(),k):p.on(M.toLowerCase(),k))});function w(){if(p&&!p.isDisposed())try{p.resize()}catch(M){if(M.message==="Cannot read property 'get' of undefined")return;throw M}}function L(){p.setOption(R||m.value,A.value)}c.value?t.nextTick(()=>{w(),L()}):L()}function S(R,p){e.manualUpdate&&(r.value=R),i.value?i.value.setOption(R,p||{}):v(R)}function C(){i.value&&(i.value.dispose(),i.value=void 0)}let B=null;t.watch(f,R=>{typeof B=="function"&&(B(),B=null),R||(B=t.watch(()=>e.option,p=>{p&&(i.value?i.value.setOption(p,A.value):v())},{deep:!0}))},{immediate:!0}),t.watch([y,h],()=>{C(),v()},{deep:!0}),t.watchEffect(()=>{e.group&&i.value&&(i.value.group=e.group)});const g=ms(i,v);return bs(i,x,u),ys(i,c,a),t.onMounted(()=>{e.option&&v()}),t.onUnmounted(C),{chart:i,root:a,setOption:S,nonEventAttrs:I,...g}},render(){const e={...this.nonEventAttrs};return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",t.h(As,e)}});function ut(e,o){Es(e)&&(e="100%");var n=Ds(e);return e=o===360?e:Math.min(o,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*o),10)/100),Math.abs(e-o)<1e-6?1:(o===360?e=(e<0?e%o+o:e%o)/parseFloat(String(o)):e=e%o/parseFloat(String(o)),e)}function Es(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Ds(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Is(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function mn(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Rn(e){return e.length===1?"0"+e:String(e)}function Rs(e,o,n){return{r:ut(e,255)*255,g:ut(o,255)*255,b:ut(n,255)*255}}function Ln(e,o,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(o-e)*(6*n):n<1/2?o:n<2/3?e+(o-e)*(2/3-n)*6:e}function Ls(e,o,n){var a,i,r;if(e=ut(e,360),o=ut(o,100),n=ut(n,100),o===0)i=n,r=n,a=n;else{var s=n<.5?n*(1+o):n+o-n*o,l=2*n-s;a=Ln(l,s,e+1/3),i=Ln(l,s,e),r=Ln(l,s,e-1/3)}return{r:a*255,g:i*255,b:r*255}}function Ns(e,o,n){e=ut(e,255),o=ut(o,255),n=ut(n,255);var a=Math.max(e,o,n),i=Math.min(e,o,n),r=0,s=a,l=a-i,d=a===0?0:l/a;if(a===i)r=0;else{switch(a){case e:r=(o-n)/l+(o<n?6:0);break;case o:r=(n-e)/l+2;break;case n:r=(e-o)/l+4;break}r/=6}return{h:r,s:d,v:s}}function _s(e,o,n){e=ut(e,360)*6,o=ut(o,100),n=ut(n,100);var a=Math.floor(e),i=e-a,r=n*(1-o),s=n*(1-i*o),l=n*(1-(1-i)*o),d=a%6,c=[n,s,r,r,l,n][d],f=[l,n,n,s,r,r][d],x=[r,r,l,n,n,s][d];return{r:c*255,g:f*255,b:x*255}}function Os(e,o,n,a){var i=[Rn(Math.round(e).toString(16)),Rn(Math.round(o).toString(16)),Rn(Math.round(n).toString(16))];return a&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function ti(e){return rt(e)/255}function rt(e){return parseInt(e,16)}var ni={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 an(e){var o={r:0,g:0,b:0},n=1,a=null,i=null,r=null,s=!1,l=!1;return typeof e=="string"&&(e=zs(e)),typeof e=="object"&&(wt(e.r)&&wt(e.g)&&wt(e.b)?(o=Rs(e.r,e.g,e.b),s=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):wt(e.h)&&wt(e.s)&&wt(e.v)?(a=mn(e.s),i=mn(e.v),o=_s(e.h,a,i),s=!0,l="hsv"):wt(e.h)&&wt(e.s)&&wt(e.l)&&(a=mn(e.s),r=mn(e.l),o=Ls(e.h,a,r),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Is(n),{ok:s,format:e.format||l,r:Math.min(255,Math.max(o.r,0)),g:Math.min(255,Math.max(o.g,0)),b:Math.min(255,Math.max(o.b,0)),a:n}}var Fs="[-\\+]?\\d+%?",Ms="[-\\+]?\\d*\\.\\d+%?",Bt="(?:".concat(Ms,")|(?:").concat(Fs,")"),Nn="[\\s|\\(]+(".concat(Bt,")[,|\\s]+(").concat(Bt,")[,|\\s]+(").concat(Bt,")\\s*\\)?"),_n="[\\s|\\(]+(".concat(Bt,")[,|\\s]+(").concat(Bt,")[,|\\s]+(").concat(Bt,")[,|\\s]+(").concat(Bt,")\\s*\\)?"),yt={CSS_UNIT:new RegExp(Bt),rgb:new RegExp("rgb"+Nn),rgba:new RegExp("rgba"+_n),hsl:new RegExp("hsl"+Nn),hsla:new RegExp("hsla"+_n),hsv:new RegExp("hsv"+Nn),hsva:new RegExp("hsva"+_n),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 zs(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var o=!1;if(ni[e])e=ni[e],o=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=yt.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=yt.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=yt.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=yt.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=yt.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=yt.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=yt.hex8.exec(e),n?{r:rt(n[1]),g:rt(n[2]),b:rt(n[3]),a:ti(n[4]),format:o?"name":"hex8"}:(n=yt.hex6.exec(e),n?{r:rt(n[1]),g:rt(n[2]),b:rt(n[3]),format:o?"name":"hex"}:(n=yt.hex4.exec(e),n?{r:rt(n[1]+n[1]),g:rt(n[2]+n[2]),b:rt(n[3]+n[3]),a:ti(n[4]+n[4]),format:o?"name":"hex8"}:(n=yt.hex3.exec(e),n?{r:rt(n[1]+n[1]),g:rt(n[2]+n[2]),b:rt(n[3]+n[3]),format:o?"name":"hex"}:!1)))))))))}function wt(e){return!!yt.CSS_UNIT.exec(String(e))}var yn=2,oi=.16,Ps=.05,qs=.05,Vs=.15,ai=5,ii=4,Hs=[{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 ri(e){var o=e.r,n=e.g,a=e.b,i=Ns(o,n,a);return{h:i.h*360,s:i.s,v:i.v}}function xn(e){var o=e.r,n=e.g,a=e.b;return"#".concat(Os(o,n,a,!1))}function js(e,o,n){var a=n/100,i={r:(o.r-e.r)*a+e.r,g:(o.g-e.g)*a+e.g,b:(o.b-e.b)*a+e.b};return i}function li(e,o,n){var a;return Math.round(e.h)>=60&&Math.round(e.h)<=240?a=n?Math.round(e.h)-yn*o:Math.round(e.h)+yn*o:a=n?Math.round(e.h)+yn*o:Math.round(e.h)-yn*o,a<0?a+=360:a>=360&&(a-=360),a}function si(e,o,n){if(e.h===0&&e.s===0)return e.s;var a;return n?a=e.s-oi*o:o===ii?a=e.s+oi:a=e.s+Ps*o,a>1&&(a=1),n&&o===ai&&a>.1&&(a=.1),a<.06&&(a=.06),Number(a.toFixed(2))}function ci(e,o,n){var a;return n?a=e.v+qs*o:a=e.v-Vs*o,a>1&&(a=1),Number(a.toFixed(2))}function On(e){for(var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],a=an(e),i=ai;i>0;i-=1){var r=ri(a),s=xn(an({h:li(r,i,!0),s:si(r,i,!0),v:ci(r,i,!0)}));n.push(s)}n.push(xn(a));for(var l=1;l<=ii;l+=1){var d=ri(a),c=xn(an({h:li(d,l),s:si(d,l),v:ci(d,l)}));n.push(c)}return o.theme==="dark"?Hs.map(function(f){var x=f.index,u=f.opacity,m=xn(js(an(o.backgroundColor||"#141414"),an(n[x]),u*100));return m}):n}var Fn={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"},Mn={},zn={};Object.keys(Fn).forEach(function(e){Mn[e]=On(Fn[e]),Mn[e].primary=Mn[e][5],zn[e]=On(Fn[e],{theme:"dark",backgroundColor:"#141414"}),zn[e].primary=zn[e][5]});var di=[],rn=[],Ws="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function Gs(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}function Us(e,o){if(o=o||{},e===void 0)throw new Error(Ws);var n=o.prepend===!0?"prepend":"append",a=o.container!==void 0?o.container:document.querySelector("head"),i=di.indexOf(a);i===-1&&(i=di.push(a)-1,rn[i]={});var r;return rn[i]!==void 0&&rn[i][n]!==void 0?r=rn[i][n]:(r=rn[i][n]=Gs(),n==="prepend"?a.insertBefore(r,a.childNodes[0]):a.appendChild(r)),e.charCodeAt(0)===65279&&(e=e.substr(1,e.length)),r.styleSheet?r.styleSheet.cssText+=e:r.textContent+=e,r}function fi(e){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),a.forEach(function(i){$s(e,i,n[i])})}return e}function $s(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}function Ys(e,o){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(o))}function Ks(e,o){Ys(e,"[@ant-design/icons-vue] ".concat(o))}function ui(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function Pn(e,o,n){return n?t.h(e.tag,fi({key:o},n,e.attrs),(e.children||[]).map(function(a,i){return Pn(a,"".concat(o,"-").concat(e.tag,"-").concat(i))})):t.h(e.tag,fi({key:o},e.attrs),(e.children||[]).map(function(a,i){return Pn(a,"".concat(o,"-").concat(e.tag,"-").concat(i))}))}function hi(e){return On(e)[0]}function gi(e){return e?Array.isArray(e)?e:[e]:[]}var Zs=`
|
|
1
|
+
/*! @ecan-bi/datav@1.3.64 */
|
|
2
|
+
(function(Se,qe){typeof exports=="object"&&typeof module<"u"?qe(exports,require("vue"),require("echarts/core"),require("resize-detector"),require("ant-design-vue"),require("ant-design-vue/es/spin/style"),require("ant-design-vue/es/skeleton/style"),require("lodash-es"),require("dayjs"),require("axios"),require("mitt"),require("ant-design-vue/es/progress/style"),require("ant-design-vue/es/input/style"),require("ant-design-vue/es/date-picker/style"),require("ant-design-vue/es/date-picker/locale/zh_CN"),require("ant-design-vue/es/button/style"),require("ant-design-vue/es/checkbox/style"),require("ant-design-vue/es/select/style"),require("ant-design-vue/es/tree-select/style"),require("echarts/renderers"),require("echarts/charts"),require("echarts/components"),require("ant-design-vue/es/modal/style"),require("echarts"),require("ant-design-vue/es/table/style"),require("ant-design-vue/es/notification/style"),require("xlsx"),require("big.js")):typeof define=="function"&&define.amd?define(["exports","vue","echarts/core","resize-detector","ant-design-vue","ant-design-vue/es/spin/style","ant-design-vue/es/skeleton/style","lodash-es","dayjs","axios","mitt","ant-design-vue/es/progress/style","ant-design-vue/es/input/style","ant-design-vue/es/date-picker/style","ant-design-vue/es/date-picker/locale/zh_CN","ant-design-vue/es/button/style","ant-design-vue/es/checkbox/style","ant-design-vue/es/select/style","ant-design-vue/es/tree-select/style","echarts/renderers","echarts/charts","echarts/components","ant-design-vue/es/modal/style","echarts","ant-design-vue/es/table/style","ant-design-vue/es/notification/style","xlsx","big.js"],qe):(Se=typeof globalThis<"u"?globalThis:Se||self,qe(Se["@ecan/bi-datav"]={},Se.Vue,Se["echarts/core"],Se.ResizeDetector,Se.AntDesignVue,null,null,Se.LodashEs,Se.Dayjs,Se.Axios,Se.Mitt,null,null,null,Se["ant-design-vue/es/date-picker/locale/zh_CN"],null,null,null,null,Se["echarts/renderers"],Se["echarts/charts"],Se["echarts/components"],null,Se.Echarts,null,null,Se.Xlsx,Se.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 Se,qe,He,je;"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={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},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:C,loadingOptions:f}=vue.toRefs(e),g=vue.computed(()=>o.value||e.option||Object.create(null)),v=vue.computed(()=>e.theme||vue.unref(s)||{}),d=vue.computed(()=>e.initOptions||vue.unref(l)||{}),_=vue.computed(()=>e.updateOptions||vue.unref(c)||{}),x=vue.computed(()=>omitOn(r));function m(P){if(a.value||!i.value)return;const k=a.value=core$1.init(i.value,v.value,d.value);e.group&&(k.group=e.group);let F=n;F||(F={},Object.keys(r).filter(O=>O.indexOf("on")===0&&O.length>2).forEach(O=>{const D=O.charAt(2).toLowerCase()+O.slice(3);F[D]=r[O]})),Object.keys(F).forEach(O=>{const D=F[O];D&&(O.indexOf("zr:")===0?k.getZr().on(O.slice(3).toLowerCase(),D):k.on(O.toLowerCase(),D))});function B(){if(k&&!k.isDisposed())try{k.resize()}catch(O){if(O.message==="Cannot read property 'get' of undefined")return;throw O}}function L(){k.setOption(P||g.value,_.value)}u.value?vue.nextTick(()=>{B(),L()}):L()}function p(P,k){e.manualUpdate&&(o.value=P),a.value?a.value.setOption(P,k||{}):m(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,k=>{k&&(a.value?a.value.setOption(k,_.value):m())},{deep:!0}))},{immediate:!0}),vue.watch([v,d],()=>{y(),m()},{deep:!0}),vue.watchEffect(()=>{e.group&&a.value&&(a.value.group=e.group)});const S=usePublicAPI(a,m);return useLoading(a,C,f),useAutoresize(a,u,i),vue.onMounted(()=>{e.option&&m()}),vue.onUnmounted(y),{chart:a,root:i,setOption:p,nonEventAttrs:x,...S}},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],C=[o,o,l,n,n,s][c];return{r:u*255,g:h*255,b:C*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 C=h.index,f=h.opacity,g=toHex(mix(inputToRGB(r.backgroundColor||"#141414"),inputToRGB(n[C]),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$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}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$4({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$4({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;
|
|
@@ -53,9 +53,9 @@
|
|
|
53
53
|
transform: rotate(360deg);
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
`,
|
|
57
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
58
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function h0(e,o){if(e){if(typeof e=="string")return pi(e,o);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 pi(e,o)}}function pi(e,o){(o==null||o>e.length)&&(o=e.length);for(var n=0,a=new Array(o);n<o;n++)a[n]=e[n];return a}function g0(e,o){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var a=[],i=!0,r=!1,s,l;try{for(n=n.call(e);!(i=(s=n.next()).done)&&(a.push(s.value),!(o&&a.length===o));i=!0);}catch(d){r=!0,l=d}finally{try{!i&&n.return!=null&&n.return()}finally{if(r)throw l}}return a}}function m0(e){if(Array.isArray(e))return e}function bi(e){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),a.forEach(function(i){Vn(e,i,n[i])})}return e}function Vn(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}function y0(e,o){if(e==null)return{};var n=x0(e,o),a,i;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i<r.length;i++)a=r[i],!(o.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}function x0(e,o){if(e==null)return{};var n={},a=Object.keys(e),i,r;for(r=0;r<a.length;r++)i=a[r],!(o.indexOf(i)>=0)&&(n[i]=e[i]);return n}xi("#1890ff");var Ht=function(o,n){var a,i=bi({},o,n.attrs),r=i.class,s=i.icon,l=i.spin,d=i.rotate,c=i.tabindex,f=i.twoToneColor,x=i.onClick,u=y0(i,d0),m=(a={anticon:!0},Vn(a,"anticon-".concat(s.name),!!s.name),Vn(a,r,r),a),y=l===""||l||s.name==="loading"?"anticon-spin":"",h=c;h===void 0&&x&&(h=-1,u.tabindex=h);var A=d?{msTransform:"rotate(".concat(d,"deg)"),transform:"rotate(".concat(d,"deg)")}:void 0,I=gi(f),v=f0(I,2),S=v[0],C=v[1];return t.createVNode("span",bi({role:"img","aria-label":s.name},u,{onClick:x,class:m}),[t.createVNode(qn,{class:y,icon:s,primaryColor:S,secondaryColor:C,style:A},null)])};Ht.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},Ht.displayName="AntdIcon",Ht.inheritAttrs=!1,Ht.getTwoToneColor=c0,Ht.setTwoToneColor=xi;const vi=Ht;var p0={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 b0=p0;function Si(e){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),a.forEach(function(i){v0(e,i,n[i])})}return e}function v0(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}var Hn=function(o,n){var a=Si({},o,n.attrs);return t.createVNode(vi,Si({},a,{icon:b0}),null)};Hn.displayName="CloseOutlined",Hn.inheritAttrs=!1;const S0=Hn;var C0={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 w0=C0;function Ci(e){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),a.forEach(function(i){A0(e,i,n[i])})}return e}function A0(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}var jn=function(o,n){var a=Ci({},o,n.attrs);return t.createVNode(vi,Ci({},a,{icon:w0}),null)};jn.displayName="LoadingOutlined",jn.inheritAttrs=!1;const k0=jn,T0=t.defineComponent({props:{spinning:{type:Boolean,default:!1}},components:{ASpin:he.Spin},setup(){return{indicator:t.h(k0,{style:{fontSize:"24px",color:"#1890ff"},spin:!0})}}}),sh="",ve=(e,o)=>{const n=e.__vccOpts||e;for(const[a,i]of o)n[a]=i;return n},B0={class:"spin-wrapper"};function E0(e,o,n,a,i,r){const s=t.resolveComponent("a-spin");return t.openBlock(),t.createElementBlock("div",B0,[e.spinning?(t.openBlock(),t.createBlock(s,{key:0,class:"spin",spinning:e.spinning,indicator:e.indicator,tip:"加载中..."},null,8,["spinning","indicator"])):t.renderSlot(e.$slots,"default",{key:1})])}const jt=ve(T0,[["render",E0]]),D0=t.defineComponent({name:"Skeleton",props:{loading:{type:Boolean,default:!1}},components:{ASkeleton:he.Skeleton}});function I0(e,o,n,a,i,r){const s=t.resolveComponent("a-skeleton");return t.openBlock(),t.createBlock(s,{active:"",loading:e.loading},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["loading"])}const Wt=ve(D0,[["render",I0]]);(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(o){console.error("vite-plugin-css-injected-by-js",o)}})();var R0=Object.defineProperty,wi=Object.getOwnPropertySymbols,L0=Object.prototype.hasOwnProperty,N0=Object.prototype.propertyIsEnumerable,Ai=(e,o,n)=>o in e?R0(e,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[o]=n,ki=(e,o)=>{for(var n in o||(o={}))L0.call(o,n)&&Ai(e,n,o[n]);if(wi)for(var n of wi(o))N0.call(o,n)&&Ai(e,n,o[n]);return e},_0=(e,o)=>{const n=e.__vccOpts||e;for(const[a,i]of o)n[a]=i;return n};const O0=t.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:o}){const n=t.ref(0),a=t.ref("100%"),i=t.ref("100%"),r=t.ref(0),s=t.ref(!1),l=t.ref(!1),d=t.ref(0),c=t.ref(0),f=t.ref(0),x=t.ref(0),u=t.ref(!1),m=t.ref(!1),y=t.ref(0),h=t.ref(null),A=t.ref("200px"),I=t.ref(!1),v=t.ref(null),S=t.ref(null),C=async()=>{await B(),r.value++},B=async()=>{e.vertical&&(s.value=!0),setInterval(()=>{if(a.value="0%",i.value="0%",v.value!==null&&S.value!==null&&v.value&&S.value)if(e.vertical&&"clientHeight"in v.value&&"clientHeight"in S.value){x.value=v.value.clientHeight,f.value=S.value.clientHeight;const F=Math.ceil(f.value/x.value);return n.value=isFinite(F)?F:0,s.value=!1,n.value}else if(!e.vertical&&"clientWidth"in v.value&&"clientWidth"in S.value){if(c.value=v.value.clientWidth,d.value=S.value.clientWidth,e.animateOnOverflowOnly)return c.value<d.value?(l.value=!0,o("onOverflowDetected")):(l.value=!1,o("onOverflowCleared")),0;const F=Math.ceil(d.value/c.value);return n.value=isFinite(F)?F:0,n.value}else return a.value="100%",i.value="100%",0;else return a.value="100%",i.value="100%",0},100)};t.watch(c,async()=>{e.clone&&C()}),t.watch(d,async()=>{(e.clone||e.animateOnOverflowOnly)&&C()}),t.watch(()=>e.pause,(F,b)=>{F!==b&&o(F?"onResume":"onPause")});const g=()=>{e.pauseOnHover&&(o("onPause"),u.value=!0)},R=()=>{e.pauseOnHover&&(o("onResume"),u.value=!1)},p=()=>{e.pauseOnClick&&(o("onPause"),m.value=!0)},D=()=>{e.pauseOnClick&&(o("onResume"),m.value=!1)},w=t.computed(()=>e.pause||e.vertical&&s.value||e.animateOnOverflowOnly&&l.value?"paused":"running"),L=t.computed(()=>e.pauseOnHover&&(u.value||m.value)||!e.pauseOnHover&&w.value==="paused"?"paused":"running"),M=t.computed(()=>e.pauseOnHover&&u.value||e.pauseOnClick&&m.value||!e.pauseOnHover&&w.value==="paused"?"paused":"running"),k=t.computed(()=>{const F={"--duration":`${e.duration}s`,"--delay":`${e.delay}s`,"--direction":`${e.direction}`,"--pauseOnHover":`${L.value}`,"--pauseOnClick":`${M.value}`,"--pauseAnimation":`${w.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":`${A.value}`,"--min-width":`${a.value}`,"--min-height":`${i.value}`},b={"--orientation":"scrollX",orientation:"horizontal"};return e.vertical&&(b["--orientation"]="scrollY"),ki(ki({},F),b)}),O=t.computed(()=>!!e.gradient),T=async()=>{e.vertical?(i.value="100%",a.value="auto",e.animateOnOverflowOnly&&console.warn("The `animateOnOverflowOnly` prop is not supported for vertical marquees.")):(i.value="auto",e.animateOnOverflowOnly?a.value="auto":a.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."),A.value=e.gradientWidth):e.gradientLength&&(A.value=e.gradientLength)),(e.clone||e.animateOnOverflowOnly)&&(await B(),C()),I.value=!0};return t.onMounted(async()=>{T(),h.value=setInterval(()=>{y.value++,e.loop!==0&&y.value===e.loop&&(o("onComplete"),clearInterval(h.value)),o("onLoopComplete")},e.duration*1e3)}),t.onBeforeUnmount(()=>{clearInterval(h.value)}),{ready:I,contentWidth:c,containerWidth:d,contentHeight:x,containerHeight:f,loopCounter:y,loopInterval:h,mouseOverMarquee:u,mouseDownMarquee:m,minWidth:a,minHeight:i,animateOnOverflowPause:l,marqueeContent:v,marqueeOverlayContainer:S,componentKey:r,showGradient:O,cloneAmount:n,ForcesUpdate:C,checkForClone:B,setupMarquee:T,getCurrentStyle:k,hoverStarted:g,hoverEnded:R,mouseDown:p,mouseUp:D}}}),F0={class:"transparent-overlay",ref:"marqueeOverlayContainer","aria-hidden":!0},M0={class:"marquee",ref:"marqueeContent"},z0={key:1,"aria-hidden":!0,class:"marquee"};function P0(e,o,n,a,i,r){return e.ready?(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["vue3-marquee",{vertical:e.vertical,horizontal:!e.vertical}]),style:t.normalizeStyle(e.getCurrentStyle),key:e.componentKey,onMouseenter:o[0]||(o[0]=(...s)=>e.hoverStarted&&e.hoverStarted(...s)),onMouseleave:o[1]||(o[1]=(...s)=>e.hoverEnded&&e.hoverEnded(...s)),onMousedown:o[2]||(o[2]=(...s)=>e.mouseDown&&e.mouseDown(...s)),onMouseup:o[3]||(o[3]=(...s)=>e.mouseUp&&e.mouseUp(...s))},[t.createElementVNode("div",F0,null,512),e.showGradient?(t.openBlock(),t.createElementBlock("div",{key:0,"aria-hidden":!0,class:t.normalizeClass(["overlay",{vertical:e.vertical,horizontal:!e.vertical}])},null,2)):t.createCommentVNode("",!0),t.createElementVNode("div",M0,[t.renderSlot(e.$slots,"default")],512),!e.animateOnOverflowOnly||e.animateOnOverflowOnly&&!e.animateOnOverflowPause?(t.openBlock(),t.createElementBlock("div",z0,[t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.cloneAmount,s=>(t.openBlock(),t.createElementBlock("div",{"aria-hidden":!0,class:"marquee cloned",key:s},[t.renderSlot(e.$slots,"default")]))),128))],38)):t.createCommentVNode("",!0)}var q0=_0(O0,[["render",P0]]);const V0=t.defineComponent({name:"SeamScroll",components:{Vue3Marquee:q0},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:t.ref(e.visible)}}}),ch="";function H0(e,o,n,a,i,r){const s=t.resolveComponent("Vue3Marquee");return e.isAutoScroll?(t.openBlock(),t.createBlock(s,{key:0,class:"vue-marquee",style:t.normalizeStyle({...e.marqueeStyle,width:"100%"}),duration:e.step,vertical:e.vertical,pauseOnHover:!0},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["style","duration","vertical"])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"list-wrap",style:t.normalizeStyle(e.wrapStyle)},[t.renderSlot(e.$slots,"default")],4))}const Wn=ve(V0,[["render",H0]]);process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const Ae=(e,o)=>{if(e.install=n=>{for(const a of[e,...Object.values(o??{})])n.component(a.name,a)},o)for(const[n,a]of Object.entries(o))e[n]=a;return e},Re={id:"",name:"",keyName:"",type:"",width:"100px",height:"40px",position:"absolute",top:"0px",left:"0px",zIndex:1,rotate:"0deg",isShow:!0,isRender:!0,requestUrl:"",requestMethod:"get",requestHeaders:{},isOpenRequestTimer:!1,requestInterval:1,requestSort:0,requestParams:[{key:null,value:{}}],events:[],dataType:"static",scale:1},Te=e=>{const o={};if(typeof e=="object"&&e!=null)for(const n in e){const a=e[n];o[n]={type:a==null?void 0:a.constructor,default:a}}return o},Gn={width:"1920px",height:"1080px",backgroundColor:"#ffffff",backgroundImage:"",backgroundSize:"100% 100%",contextRequestUrl:"",mode:"normal",pageFontFamily:"",jumpType:"page",jumpTime:null,jumpPage:"",jumpLink:"",requestList:[]},Un=Te(Gn),j0=["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"],Ie=(e,o=[])=>{const n=Oe.without(j0,...o);return t.computed(()=>Oe.pick(e,n))},$n="EVENT_BUS",ze="GLOBAL_CONFIG",Le="GLOBAL_MODEL",He="REQUEST_MODEL",Ti="GLOBAL_TOKEN",sn="REFRESH_PAGE",Bi="MODAL_MODEL",Et="LOADED_DATA",Qe=18,Ei="ygt",Di=((as=window==null?void 0:window.config)==null?void 0:as.indicatorURL)||"";(is=window==null?void 0:window.config)!=null&&is.uploadPath;const Ii=((rs=window==null?void 0:window.config)==null?void 0:rs.routerBaseURL)||"./",W0=((ls=window==null?void 0:window.config)==null?void 0:ls.erdURL)||"",Ri=["table","bar","combograph","line","pie","radar","scatter","list","circulate"],Fe=(e,o)=>{t.watch(()=>e.id,n=>{const a=t.inject($n,{onEvent:(i,r)=>{}});n!=null&&n!==""&&a.onEvent(n,o)},{immediate:!0})},Ne=e=>{const o=e.events,n=e.id,a=t.inject($n,{emitEvent:(r,s,l)=>{}}),{touchEventId:i}=t.inject(ze,{touchEventId:t.ref("")});return(r,s=()=>{},l)=>function(){s.call(this,...arguments);const{emitEvent:d}=a;o.forEach(c=>{if(r===c.on)try{i.value=n,l?d(c.target,c.emit,l):d(c.target,c.emit)}catch(f){console.error(f)}})}},Gt=(e,o)=>{let{name:n="name",value:a="value",type:i="type"}=o||{};n=n==null?void 0:n.trim(),a=a==null?void 0:a.trim(),i=i==null?void 0:i.trim();const r=new Map,s=e.length;for(let c=0;c<s;c++){const f=e[c],x=f[n]||"",u=f[a]||"",m=f[i]||"";if(r.has(m)){const y=r.get(m);y.push({name:x,value:u,...f}),r.set(m,y)}else r.set(m,[{name:x,value:u,...f}])}const l=[],d=[];for(const[c,f]of r)if(d.push({name:c,data:f}),f!=null&&f.length)if(l.length)for(const x of f)l.includes(x.name)||l.push(x.name);else l.push(...f.map(x=>x.name));return{dimensions:l,dataset:d}};var me=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Li(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function G0(e){if(e.__esModule)return e;var o=e.default;if(typeof o=="function"){var n=function a(){return this instanceof a?Reflect.construct(o,arguments,this.constructor):o.apply(this,arguments)};n.prototype=o.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var i=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(n,a,i.get?i:{enumerable:!0,get:function(){return e[a]}})}),n}var Ni={exports:{}};function U0(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 Yn={exports:{}};const $0=G0(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var _i;function we(){return _i||(_i=1,function(e,o){(function(n,a){e.exports=a()})(me,function(){var n=n||function(a,i){var r;if(typeof window<"u"&&window.crypto&&(r=window.crypto),typeof self<"u"&&self.crypto&&(r=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(r=globalThis.crypto),!r&&typeof window<"u"&&window.msCrypto&&(r=window.msCrypto),!r&&typeof me<"u"&&me.crypto&&(r=me.crypto),!r&&typeof U0=="function")try{r=$0}catch{}var s=function(){if(r){if(typeof r.getRandomValues=="function")try{return r.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof r.randomBytes=="function")try{return r.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},l=Object.create||function(){function v(){}return function(S){var C;return v.prototype=S,C=new v,v.prototype=null,C}}(),d={},c=d.lib={},f=c.Base=function(){return{extend:function(v){var S=l(this);return v&&S.mixIn(v),(!S.hasOwnProperty("init")||this.init===S.init)&&(S.init=function(){S.$super.init.apply(this,arguments)}),S.init.prototype=S,S.$super=this,S},create:function(){var v=this.extend();return v.init.apply(v,arguments),v},init:function(){},mixIn:function(v){for(var S in v)v.hasOwnProperty(S)&&(this[S]=v[S]);v.hasOwnProperty("toString")&&(this.toString=v.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),x=c.WordArray=f.extend({init:function(v,S){v=this.words=v||[],S!=i?this.sigBytes=S:this.sigBytes=v.length*4},toString:function(v){return(v||m).stringify(this)},concat:function(v){var S=this.words,C=v.words,B=this.sigBytes,g=v.sigBytes;if(this.clamp(),B%4)for(var R=0;R<g;R++){var p=C[R>>>2]>>>24-R%4*8&255;S[B+R>>>2]|=p<<24-(B+R)%4*8}else for(var D=0;D<g;D+=4)S[B+D>>>2]=C[D>>>2];return this.sigBytes+=g,this},clamp:function(){var v=this.words,S=this.sigBytes;v[S>>>2]&=4294967295<<32-S%4*8,v.length=a.ceil(S/4)},clone:function(){var v=f.clone.call(this);return v.words=this.words.slice(0),v},random:function(v){for(var S=[],C=0;C<v;C+=4)S.push(s());return new x.init(S,v)}}),u=d.enc={},m=u.Hex={stringify:function(v){for(var S=v.words,C=v.sigBytes,B=[],g=0;g<C;g++){var R=S[g>>>2]>>>24-g%4*8&255;B.push((R>>>4).toString(16)),B.push((R&15).toString(16))}return B.join("")},parse:function(v){for(var S=v.length,C=[],B=0;B<S;B+=2)C[B>>>3]|=parseInt(v.substr(B,2),16)<<24-B%8*4;return new x.init(C,S/2)}},y=u.Latin1={stringify:function(v){for(var S=v.words,C=v.sigBytes,B=[],g=0;g<C;g++){var R=S[g>>>2]>>>24-g%4*8&255;B.push(String.fromCharCode(R))}return B.join("")},parse:function(v){for(var S=v.length,C=[],B=0;B<S;B++)C[B>>>2]|=(v.charCodeAt(B)&255)<<24-B%4*8;return new x.init(C,S)}},h=u.Utf8={stringify:function(v){try{return decodeURIComponent(escape(y.stringify(v)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(v){return y.parse(unescape(encodeURIComponent(v)))}},A=c.BufferedBlockAlgorithm=f.extend({reset:function(){this._data=new x.init,this._nDataBytes=0},_append:function(v){typeof v=="string"&&(v=h.parse(v)),this._data.concat(v),this._nDataBytes+=v.sigBytes},_process:function(v){var S,C=this._data,B=C.words,g=C.sigBytes,R=this.blockSize,p=R*4,D=g/p;v?D=a.ceil(D):D=a.max((D|0)-this._minBufferSize,0);var w=D*R,L=a.min(w*4,g);if(w){for(var M=0;M<w;M+=R)this._doProcessBlock(B,M);S=B.splice(0,w),C.sigBytes-=L}return new x.init(S,L)},clone:function(){var v=f.clone.call(this);return v._data=this._data.clone(),v},_minBufferSize:0});c.Hasher=A.extend({cfg:f.extend(),init:function(v){this.cfg=this.cfg.extend(v),this.reset()},reset:function(){A.reset.call(this),this._doReset()},update:function(v){return this._append(v),this._process(),this},finalize:function(v){v&&this._append(v);var S=this._doFinalize();return S},blockSize:16,_createHelper:function(v){return function(S,C){return new v.init(C).finalize(S)}},_createHmacHelper:function(v){return function(S,C){return new I.HMAC.init(v,C).finalize(S)}}});var I=d.algo={};return d}(Math);return n})}(Yn)),Yn.exports}var Kn={exports:{}},Oi;function bn(){return Oi||(Oi=1,function(e,o){(function(n,a){e.exports=a(we())})(me,function(n){return function(a){var i=n,r=i.lib,s=r.Base,l=r.WordArray,d=i.x64={};d.Word=s.extend({init:function(c,f){this.high=c,this.low=f}}),d.WordArray=s.extend({init:function(c,f){c=this.words=c||[],f!=a?this.sigBytes=f:this.sigBytes=c.length*8},toX32:function(){for(var c=this.words,f=c.length,x=[],u=0;u<f;u++){var m=c[u];x.push(m.high),x.push(m.low)}return l.create(x,this.sigBytes)},clone:function(){for(var c=s.clone.call(this),f=c.words=this.words.slice(0),x=f.length,u=0;u<x;u++)f[u]=f[u].clone();return c}})}(),n})}(Kn)),Kn.exports}var Zn={exports:{}},Fi;function Y0(){return Fi||(Fi=1,function(e,o){(function(n,a){e.exports=a(we())})(me,function(n){return function(){if(typeof ArrayBuffer=="function"){var a=n,i=a.lib,r=i.WordArray,s=r.init,l=r.init=function(d){if(d instanceof ArrayBuffer&&(d=new Uint8Array(d)),(d instanceof Int8Array||typeof Uint8ClampedArray<"u"&&d instanceof Uint8ClampedArray||d instanceof Int16Array||d instanceof Uint16Array||d instanceof Int32Array||d instanceof Uint32Array||d instanceof Float32Array||d instanceof Float64Array)&&(d=new Uint8Array(d.buffer,d.byteOffset,d.byteLength)),d instanceof Uint8Array){for(var c=d.byteLength,f=[],x=0;x<c;x++)f[x>>>2]|=d[x]<<24-x%4*8;s.call(this,f,c)}else s.apply(this,arguments)};l.prototype=r}}(),n.lib.WordArray})}(Zn)),Zn.exports}var Qn={exports:{}},Mi;function K0(){return Mi||(Mi=1,function(e,o){(function(n,a){e.exports=a(we())})(me,function(n){return function(){var a=n,i=a.lib,r=i.WordArray,s=a.enc;s.Utf16=s.Utf16BE={stringify:function(d){for(var c=d.words,f=d.sigBytes,x=[],u=0;u<f;u+=2){var m=c[u>>>2]>>>16-u%4*8&65535;x.push(String.fromCharCode(m))}return x.join("")},parse:function(d){for(var c=d.length,f=[],x=0;x<c;x++)f[x>>>1]|=d.charCodeAt(x)<<16-x%2*16;return r.create(f,c*2)}},s.Utf16LE={stringify:function(d){for(var c=d.words,f=d.sigBytes,x=[],u=0;u<f;u+=2){var m=l(c[u>>>2]>>>16-u%4*8&65535);x.push(String.fromCharCode(m))}return x.join("")},parse:function(d){for(var c=d.length,f=[],x=0;x<c;x++)f[x>>>1]|=l(d.charCodeAt(x)<<16-x%2*16);return r.create(f,c*2)}};function l(d){return d<<8&4278255360|d>>>8&16711935}}(),n.enc.Utf16})}(Qn)),Qn.exports}var Jn={exports:{}},zi;function Ut(){return zi||(zi=1,function(e,o){(function(n,a){e.exports=a(we())})(me,function(n){return function(){var a=n,i=a.lib,r=i.WordArray,s=a.enc;s.Base64={stringify:function(d){var c=d.words,f=d.sigBytes,x=this._map;d.clamp();for(var u=[],m=0;m<f;m+=3)for(var y=c[m>>>2]>>>24-m%4*8&255,h=c[m+1>>>2]>>>24-(m+1)%4*8&255,A=c[m+2>>>2]>>>24-(m+2)%4*8&255,I=y<<16|h<<8|A,v=0;v<4&&m+v*.75<f;v++)u.push(x.charAt(I>>>6*(3-v)&63));var S=x.charAt(64);if(S)for(;u.length%4;)u.push(S);return u.join("")},parse:function(d){var c=d.length,f=this._map,x=this._reverseMap;if(!x){x=this._reverseMap=[];for(var u=0;u<f.length;u++)x[f.charCodeAt(u)]=u}var m=f.charAt(64);if(m){var y=d.indexOf(m);y!==-1&&(c=y)}return l(d,c,x)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function l(d,c,f){for(var x=[],u=0,m=0;m<c;m++)if(m%4){var y=f[d.charCodeAt(m-1)]<<m%4*2,h=f[d.charCodeAt(m)]>>>6-m%4*2,A=y|h;x[u>>>2]|=A<<24-u%4*8,u++}return r.create(x,u)}}(),n.enc.Base64})}(Jn)),Jn.exports}var Xn={exports:{}},Pi;function Z0(){return Pi||(Pi=1,function(e,o){(function(n,a){e.exports=a(we())})(me,function(n){return function(){var a=n,i=a.lib,r=i.WordArray,s=a.enc;s.Base64url={stringify:function(d,c=!0){var f=d.words,x=d.sigBytes,u=c?this._safe_map:this._map;d.clamp();for(var m=[],y=0;y<x;y+=3)for(var h=f[y>>>2]>>>24-y%4*8&255,A=f[y+1>>>2]>>>24-(y+1)%4*8&255,I=f[y+2>>>2]>>>24-(y+2)%4*8&255,v=h<<16|A<<8|I,S=0;S<4&&y+S*.75<x;S++)m.push(u.charAt(v>>>6*(3-S)&63));var C=u.charAt(64);if(C)for(;m.length%4;)m.push(C);return m.join("")},parse:function(d,c=!0){var f=d.length,x=c?this._safe_map:this._map,u=this._reverseMap;if(!u){u=this._reverseMap=[];for(var m=0;m<x.length;m++)u[x.charCodeAt(m)]=m}var y=x.charAt(64);if(y){var h=d.indexOf(y);h!==-1&&(f=h)}return l(d,f,u)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function l(d,c,f){for(var x=[],u=0,m=0;m<c;m++)if(m%4){var y=f[d.charCodeAt(m-1)]<<m%4*2,h=f[d.charCodeAt(m)]>>>6-m%4*2,A=y|h;x[u>>>2]|=A<<24-u%4*8,u++}return r.create(x,u)}}(),n.enc.Base64url})}(Xn)),Xn.exports}var eo={exports:{}},qi;function $t(){return qi||(qi=1,function(e,o){(function(n,a){e.exports=a(we())})(me,function(n){return function(a){var i=n,r=i.lib,s=r.WordArray,l=r.Hasher,d=i.algo,c=[];(function(){for(var h=0;h<64;h++)c[h]=a.abs(a.sin(h+1))*4294967296|0})();var f=d.MD5=l.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(h,A){for(var I=0;I<16;I++){var v=A+I,S=h[v];h[v]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360}var C=this._hash.words,B=h[A+0],g=h[A+1],R=h[A+2],p=h[A+3],D=h[A+4],w=h[A+5],L=h[A+6],M=h[A+7],k=h[A+8],O=h[A+9],T=h[A+10],F=h[A+11],b=h[A+12],E=h[A+13],_=h[A+14],q=h[A+15],N=C[0],V=C[1],z=C[2],P=C[3];N=x(N,V,z,P,B,7,c[0]),P=x(P,N,V,z,g,12,c[1]),z=x(z,P,N,V,R,17,c[2]),V=x(V,z,P,N,p,22,c[3]),N=x(N,V,z,P,D,7,c[4]),P=x(P,N,V,z,w,12,c[5]),z=x(z,P,N,V,L,17,c[6]),V=x(V,z,P,N,M,22,c[7]),N=x(N,V,z,P,k,7,c[8]),P=x(P,N,V,z,O,12,c[9]),z=x(z,P,N,V,T,17,c[10]),V=x(V,z,P,N,F,22,c[11]),N=x(N,V,z,P,b,7,c[12]),P=x(P,N,V,z,E,12,c[13]),z=x(z,P,N,V,_,17,c[14]),V=x(V,z,P,N,q,22,c[15]),N=u(N,V,z,P,g,5,c[16]),P=u(P,N,V,z,L,9,c[17]),z=u(z,P,N,V,F,14,c[18]),V=u(V,z,P,N,B,20,c[19]),N=u(N,V,z,P,w,5,c[20]),P=u(P,N,V,z,T,9,c[21]),z=u(z,P,N,V,q,14,c[22]),V=u(V,z,P,N,D,20,c[23]),N=u(N,V,z,P,O,5,c[24]),P=u(P,N,V,z,_,9,c[25]),z=u(z,P,N,V,p,14,c[26]),V=u(V,z,P,N,k,20,c[27]),N=u(N,V,z,P,E,5,c[28]),P=u(P,N,V,z,R,9,c[29]),z=u(z,P,N,V,M,14,c[30]),V=u(V,z,P,N,b,20,c[31]),N=m(N,V,z,P,w,4,c[32]),P=m(P,N,V,z,k,11,c[33]),z=m(z,P,N,V,F,16,c[34]),V=m(V,z,P,N,_,23,c[35]),N=m(N,V,z,P,g,4,c[36]),P=m(P,N,V,z,D,11,c[37]),z=m(z,P,N,V,M,16,c[38]),V=m(V,z,P,N,T,23,c[39]),N=m(N,V,z,P,E,4,c[40]),P=m(P,N,V,z,B,11,c[41]),z=m(z,P,N,V,p,16,c[42]),V=m(V,z,P,N,L,23,c[43]),N=m(N,V,z,P,O,4,c[44]),P=m(P,N,V,z,b,11,c[45]),z=m(z,P,N,V,q,16,c[46]),V=m(V,z,P,N,R,23,c[47]),N=y(N,V,z,P,B,6,c[48]),P=y(P,N,V,z,M,10,c[49]),z=y(z,P,N,V,_,15,c[50]),V=y(V,z,P,N,w,21,c[51]),N=y(N,V,z,P,b,6,c[52]),P=y(P,N,V,z,p,10,c[53]),z=y(z,P,N,V,T,15,c[54]),V=y(V,z,P,N,g,21,c[55]),N=y(N,V,z,P,k,6,c[56]),P=y(P,N,V,z,q,10,c[57]),z=y(z,P,N,V,L,15,c[58]),V=y(V,z,P,N,E,21,c[59]),N=y(N,V,z,P,D,6,c[60]),P=y(P,N,V,z,F,10,c[61]),z=y(z,P,N,V,R,15,c[62]),V=y(V,z,P,N,O,21,c[63]),C[0]=C[0]+N|0,C[1]=C[1]+V|0,C[2]=C[2]+z|0,C[3]=C[3]+P|0},_doFinalize:function(){var h=this._data,A=h.words,I=this._nDataBytes*8,v=h.sigBytes*8;A[v>>>5]|=128<<24-v%32;var S=a.floor(I/4294967296),C=I;A[(v+64>>>9<<4)+15]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,A[(v+64>>>9<<4)+14]=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,h.sigBytes=(A.length+1)*4,this._process();for(var B=this._hash,g=B.words,R=0;R<4;R++){var p=g[R];g[R]=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360}return B},clone:function(){var h=l.clone.call(this);return h._hash=this._hash.clone(),h}});function x(h,A,I,v,S,C,B){var g=h+(A&I|~A&v)+S+B;return(g<<C|g>>>32-C)+A}function u(h,A,I,v,S,C,B){var g=h+(A&v|I&~v)+S+B;return(g<<C|g>>>32-C)+A}function m(h,A,I,v,S,C,B){var g=h+(A^I^v)+S+B;return(g<<C|g>>>32-C)+A}function y(h,A,I,v,S,C,B){var g=h+(I^(A|~v))+S+B;return(g<<C|g>>>32-C)+A}i.MD5=l._createHelper(f),i.HmacMD5=l._createHmacHelper(f)}(Math),n.MD5})}(eo)),eo.exports}var to={exports:{}},Vi;function no(){return Vi||(Vi=1,function(e,o){(function(n,a){e.exports=a(we())})(me,function(n){return function(){var a=n,i=a.lib,r=i.WordArray,s=i.Hasher,l=a.algo,d=[],c=l.SHA1=s.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(f,x){for(var u=this._hash.words,m=u[0],y=u[1],h=u[2],A=u[3],I=u[4],v=0;v<80;v++){if(v<16)d[v]=f[x+v]|0;else{var S=d[v-3]^d[v-8]^d[v-14]^d[v-16];d[v]=S<<1|S>>>31}var C=(m<<5|m>>>27)+I+d[v];v<20?C+=(y&h|~y&A)+1518500249:v<40?C+=(y^h^A)+1859775393:v<60?C+=(y&h|y&A|h&A)-1894007588:C+=(y^h^A)-899497514,I=A,A=h,h=y<<30|y>>>2,y=m,m=C}u[0]=u[0]+m|0,u[1]=u[1]+y|0,u[2]=u[2]+h|0,u[3]=u[3]+A|0,u[4]=u[4]+I|0},_doFinalize:function(){var f=this._data,x=f.words,u=this._nDataBytes*8,m=f.sigBytes*8;return x[m>>>5]|=128<<24-m%32,x[(m+64>>>9<<4)+14]=Math.floor(u/4294967296),x[(m+64>>>9<<4)+15]=u,f.sigBytes=x.length*4,this._process(),this._hash},clone:function(){var f=s.clone.call(this);return f._hash=this._hash.clone(),f}});a.SHA1=s._createHelper(c),a.HmacSHA1=s._createHmacHelper(c)}(),n.SHA1})}(to)),to.exports}var oo={exports:{}},Hi;function ji(){return Hi||(Hi=1,function(e,o){(function(n,a){e.exports=a(we())})(me,function(n){return function(a){var i=n,r=i.lib,s=r.WordArray,l=r.Hasher,d=i.algo,c=[],f=[];(function(){function m(I){for(var v=a.sqrt(I),S=2;S<=v;S++)if(!(I%S))return!1;return!0}function y(I){return(I-(I|0))*4294967296|0}for(var h=2,A=0;A<64;)m(h)&&(A<8&&(c[A]=y(a.pow(h,1/2))),f[A]=y(a.pow(h,1/3)),A++),h++})();var x=[],u=d.SHA256=l.extend({_doReset:function(){this._hash=new s.init(c.slice(0))},_doProcessBlock:function(m,y){for(var h=this._hash.words,A=h[0],I=h[1],v=h[2],S=h[3],C=h[4],B=h[5],g=h[6],R=h[7],p=0;p<64;p++){if(p<16)x[p]=m[y+p]|0;else{var D=x[p-15],w=(D<<25|D>>>7)^(D<<14|D>>>18)^D>>>3,L=x[p-2],M=(L<<15|L>>>17)^(L<<13|L>>>19)^L>>>10;x[p]=w+x[p-7]+M+x[p-16]}var k=C&B^~C&g,O=A&I^A&v^I&v,T=(A<<30|A>>>2)^(A<<19|A>>>13)^(A<<10|A>>>22),F=(C<<26|C>>>6)^(C<<21|C>>>11)^(C<<7|C>>>25),b=R+F+k+f[p]+x[p],E=T+O;R=g,g=B,B=C,C=S+b|0,S=v,v=I,I=A,A=b+E|0}h[0]=h[0]+A|0,h[1]=h[1]+I|0,h[2]=h[2]+v|0,h[3]=h[3]+S|0,h[4]=h[4]+C|0,h[5]=h[5]+B|0,h[6]=h[6]+g|0,h[7]=h[7]+R|0},_doFinalize:function(){var m=this._data,y=m.words,h=this._nDataBytes*8,A=m.sigBytes*8;return y[A>>>5]|=128<<24-A%32,y[(A+64>>>9<<4)+14]=a.floor(h/4294967296),y[(A+64>>>9<<4)+15]=h,m.sigBytes=y.length*4,this._process(),this._hash},clone:function(){var m=l.clone.call(this);return m._hash=this._hash.clone(),m}});i.SHA256=l._createHelper(u),i.HmacSHA256=l._createHmacHelper(u)}(Math),n.SHA256})}(oo)),oo.exports}var ao={exports:{}},Wi;function Q0(){return Wi||(Wi=1,function(e,o){(function(n,a,i){e.exports=a(we(),ji())})(me,function(n){return function(){var a=n,i=a.lib,r=i.WordArray,s=a.algo,l=s.SHA256,d=s.SHA224=l.extend({_doReset:function(){this._hash=new r.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var c=l._doFinalize.call(this);return c.sigBytes-=4,c}});a.SHA224=l._createHelper(d),a.HmacSHA224=l._createHmacHelper(d)}(),n.SHA224})}(ao)),ao.exports}var io={exports:{}},Gi;function Ui(){return Gi||(Gi=1,function(e,o){(function(n,a,i){e.exports=a(we(),bn())})(me,function(n){return function(){var a=n,i=a.lib,r=i.Hasher,s=a.x64,l=s.Word,d=s.WordArray,c=a.algo;function f(){return l.create.apply(l,arguments)}var x=[f(1116352408,3609767458),f(1899447441,602891725),f(3049323471,3964484399),f(3921009573,2173295548),f(961987163,4081628472),f(1508970993,3053834265),f(2453635748,2937671579),f(2870763221,3664609560),f(3624381080,2734883394),f(310598401,1164996542),f(607225278,1323610764),f(1426881987,3590304994),f(1925078388,4068182383),f(2162078206,991336113),f(2614888103,633803317),f(3248222580,3479774868),f(3835390401,2666613458),f(4022224774,944711139),f(264347078,2341262773),f(604807628,2007800933),f(770255983,1495990901),f(1249150122,1856431235),f(1555081692,3175218132),f(1996064986,2198950837),f(2554220882,3999719339),f(2821834349,766784016),f(2952996808,2566594879),f(3210313671,3203337956),f(3336571891,1034457026),f(3584528711,2466948901),f(113926993,3758326383),f(338241895,168717936),f(666307205,1188179964),f(773529912,1546045734),f(1294757372,1522805485),f(1396182291,2643833823),f(1695183700,2343527390),f(1986661051,1014477480),f(2177026350,1206759142),f(2456956037,344077627),f(2730485921,1290863460),f(2820302411,3158454273),f(3259730800,3505952657),f(3345764771,106217008),f(3516065817,3606008344),f(3600352804,1432725776),f(4094571909,1467031594),f(275423344,851169720),f(430227734,3100823752),f(506948616,1363258195),f(659060556,3750685593),f(883997877,3785050280),f(958139571,3318307427),f(1322822218,3812723403),f(1537002063,2003034995),f(1747873779,3602036899),f(1955562222,1575990012),f(2024104815,1125592928),f(2227730452,2716904306),f(2361852424,442776044),f(2428436474,593698344),f(2756734187,3733110249),f(3204031479,2999351573),f(3329325298,3815920427),f(3391569614,3928383900),f(3515267271,566280711),f(3940187606,3454069534),f(4118630271,4000239992),f(116418474,1914138554),f(174292421,2731055270),f(289380356,3203993006),f(460393269,320620315),f(685471733,587496836),f(852142971,1086792851),f(1017036298,365543100),f(1126000580,2618297676),f(1288033470,3409855158),f(1501505948,4234509866),f(1607167915,987167468),f(1816402316,1246189591)],u=[];(function(){for(var y=0;y<80;y++)u[y]=f()})();var m=c.SHA512=r.extend({_doReset:function(){this._hash=new d.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(y,h){for(var A=this._hash.words,I=A[0],v=A[1],S=A[2],C=A[3],B=A[4],g=A[5],R=A[6],p=A[7],D=I.high,w=I.low,L=v.high,M=v.low,k=S.high,O=S.low,T=C.high,F=C.low,b=B.high,E=B.low,_=g.high,q=g.low,N=R.high,V=R.low,z=p.high,P=p.low,X=D,U=w,j=L,H=M,K=k,te=O,ce=T,ye=F,G=b,J=E,ee=_,ne=q,ae=N,ie=V,ue=z,Se=P,ke=0;ke<80;ke++){var qe,We,de=u[ke];if(ke<16)We=de.high=y[h+ke*2]|0,qe=de.low=y[h+ke*2+1]|0;else{var xe=u[ke-15],fe=xe.high,Ge=xe.low,ct=(fe>>>1|Ge<<31)^(fe>>>8|Ge<<24)^fe>>>7,tt=(Ge>>>1|fe<<31)^(Ge>>>8|fe<<24)^(Ge>>>7|fe<<25),dt=u[ke-2],Ye=dt.high,et=dt.low,$e=(Ye>>>19|et<<13)^(Ye<<3|et>>>29)^Ye>>>6,St=(et>>>19|Ye<<13)^(et<<3|Ye>>>29)^(et>>>6|Ye<<26),nt=u[ke-7],Ke=nt.high,ft=nt.low,W=u[ke-16],Y=W.high,Q=W.low;qe=tt+ft,We=ct+Ke+(qe>>>0<tt>>>0?1:0),qe=qe+St,We=We+$e+(qe>>>0<St>>>0?1:0),qe=qe+Q,We=We+Y+(qe>>>0<Q>>>0?1:0),de.high=We,de.low=qe}var re=G&ee^~G&ae,se=J&ne^~J&ie,le=X&j^X&K^j&K,oe=U&H^U&te^H&te,Ce=(X>>>28|U<<4)^(X<<30|U>>>2)^(X<<25|U>>>7),Be=(U>>>28|X<<4)^(U<<30|X>>>2)^(U<<25|X>>>7),Ee=(G>>>14|J<<18)^(G>>>18|J<<14)^(G<<23|J>>>9),Ve=(J>>>14|G<<18)^(J>>>18|G<<14)^(J<<23|G>>>9),ot=x[ke],kt=ot.high,Ot=ot.low,Ze=Se+Ve,at=ue+Ee+(Ze>>>0<Se>>>0?1:0),Ze=Ze+se,at=at+re+(Ze>>>0<se>>>0?1:0),Ze=Ze+Ot,at=at+kt+(Ze>>>0<Ot>>>0?1:0),Ze=Ze+qe,at=at+We+(Ze>>>0<qe>>>0?1:0),bt=Be+oe,qt=Ce+le+(bt>>>0<Be>>>0?1:0);ue=ae,Se=ie,ae=ee,ie=ne,ee=G,ne=J,J=ye+Ze|0,G=ce+at+(J>>>0<ye>>>0?1:0)|0,ce=K,ye=te,K=j,te=H,j=X,H=U,U=Ze+bt|0,X=at+qt+(U>>>0<Ze>>>0?1:0)|0}w=I.low=w+U,I.high=D+X+(w>>>0<U>>>0?1:0),M=v.low=M+H,v.high=L+j+(M>>>0<H>>>0?1:0),O=S.low=O+te,S.high=k+K+(O>>>0<te>>>0?1:0),F=C.low=F+ye,C.high=T+ce+(F>>>0<ye>>>0?1:0),E=B.low=E+J,B.high=b+G+(E>>>0<J>>>0?1:0),q=g.low=q+ne,g.high=_+ee+(q>>>0<ne>>>0?1:0),V=R.low=V+ie,R.high=N+ae+(V>>>0<ie>>>0?1:0),P=p.low=P+Se,p.high=z+ue+(P>>>0<Se>>>0?1:0)},_doFinalize:function(){var y=this._data,h=y.words,A=this._nDataBytes*8,I=y.sigBytes*8;h[I>>>5]|=128<<24-I%32,h[(I+128>>>10<<5)+30]=Math.floor(A/4294967296),h[(I+128>>>10<<5)+31]=A,y.sigBytes=h.length*4,this._process();var v=this._hash.toX32();return v},clone:function(){var y=r.clone.call(this);return y._hash=this._hash.clone(),y},blockSize:1024/32});a.SHA512=r._createHelper(m),a.HmacSHA512=r._createHmacHelper(m)}(),n.SHA512})}(io)),io.exports}var ro={exports:{}},$i;function J0(){return $i||($i=1,function(e,o){(function(n,a,i){e.exports=a(we(),bn(),Ui())})(me,function(n){return function(){var a=n,i=a.x64,r=i.Word,s=i.WordArray,l=a.algo,d=l.SHA512,c=l.SHA384=d.extend({_doReset:function(){this._hash=new s.init([new r.init(3418070365,3238371032),new r.init(1654270250,914150663),new r.init(2438529370,812702999),new r.init(355462360,4144912697),new r.init(1731405415,4290775857),new r.init(2394180231,1750603025),new r.init(3675008525,1694076839),new r.init(1203062813,3204075428)])},_doFinalize:function(){var f=d._doFinalize.call(this);return f.sigBytes-=16,f}});a.SHA384=d._createHelper(c),a.HmacSHA384=d._createHmacHelper(c)}(),n.SHA384})}(ro)),ro.exports}var lo={exports:{}},Yi;function X0(){return Yi||(Yi=1,function(e,o){(function(n,a,i){e.exports=a(we(),bn())})(me,function(n){return function(a){var i=n,r=i.lib,s=r.WordArray,l=r.Hasher,d=i.x64,c=d.Word,f=i.algo,x=[],u=[],m=[];(function(){for(var A=1,I=0,v=0;v<24;v++){x[A+5*I]=(v+1)*(v+2)/2%64;var S=I%5,C=(2*A+3*I)%5;A=S,I=C}for(var A=0;A<5;A++)for(var I=0;I<5;I++)u[A+5*I]=I+(2*A+3*I)%5*5;for(var B=1,g=0;g<24;g++){for(var R=0,p=0,D=0;D<7;D++){if(B&1){var w=(1<<D)-1;w<32?p^=1<<w:R^=1<<w-32}B&128?B=B<<1^113:B<<=1}m[g]=c.create(R,p)}})();var y=[];(function(){for(var A=0;A<25;A++)y[A]=c.create()})();var h=f.SHA3=l.extend({cfg:l.cfg.extend({outputLength:512}),_doReset:function(){for(var A=this._state=[],I=0;I<25;I++)A[I]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(A,I){for(var v=this._state,S=this.blockSize/2,C=0;C<S;C++){var B=A[I+2*C],g=A[I+2*C+1];B=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,g=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360;var R=v[C];R.high^=g,R.low^=B}for(var p=0;p<24;p++){for(var D=0;D<5;D++){for(var w=0,L=0,M=0;M<5;M++){var R=v[D+5*M];w^=R.high,L^=R.low}var k=y[D];k.high=w,k.low=L}for(var D=0;D<5;D++)for(var O=y[(D+4)%5],T=y[(D+1)%5],F=T.high,b=T.low,w=O.high^(F<<1|b>>>31),L=O.low^(b<<1|F>>>31),M=0;M<5;M++){var R=v[D+5*M];R.high^=w,R.low^=L}for(var E=1;E<25;E++){var w,L,R=v[E],_=R.high,q=R.low,N=x[E];N<32?(w=_<<N|q>>>32-N,L=q<<N|_>>>32-N):(w=q<<N-32|_>>>64-N,L=_<<N-32|q>>>64-N);var V=y[u[E]];V.high=w,V.low=L}var z=y[0],P=v[0];z.high=P.high,z.low=P.low;for(var D=0;D<5;D++)for(var M=0;M<5;M++){var E=D+5*M,R=v[E],X=y[E],U=y[(D+1)%5+5*M],j=y[(D+2)%5+5*M];R.high=X.high^~U.high&j.high,R.low=X.low^~U.low&j.low}var R=v[0],H=m[p];R.high^=H.high,R.low^=H.low}},_doFinalize:function(){var A=this._data,I=A.words;this._nDataBytes*8;var v=A.sigBytes*8,S=this.blockSize*32;I[v>>>5]|=1<<24-v%32,I[(a.ceil((v+1)/S)*S>>>5)-1]|=128,A.sigBytes=I.length*4,this._process();for(var C=this._state,B=this.cfg.outputLength/8,g=B/8,R=[],p=0;p<g;p++){var D=C[p],w=D.high,L=D.low;w=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,L=(L<<8|L>>>24)&16711935|(L<<24|L>>>8)&4278255360,R.push(L),R.push(w)}return new s.init(R,B)},clone:function(){for(var A=l.clone.call(this),I=A._state=this._state.slice(0),v=0;v<25;v++)I[v]=I[v].clone();return A}});i.SHA3=l._createHelper(h),i.HmacSHA3=l._createHmacHelper(h)}(Math),n.SHA3})}(lo)),lo.exports}var so={exports:{}},Ki;function ec(){return Ki||(Ki=1,function(e,o){(function(n,a){e.exports=a(we())})(me,function(n){/** @preserve
|
|
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$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 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$3({},twoToneColorPalette)}var IconBase=function(r,n){var i=_objectSpread$3({},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$3({},u,{icon:u.icon(c.primaryColor,c.secondaryColor)})),generate(u.icon,"svg-".concat(u.name),_objectSpread$3({},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
|
+
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$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}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=function(r,n){var i,a=_objectSpread$2({},r,n.attrs),o=a.class,s=a.icon,l=a.spin,c=a.rotate,u=a.tabindex,h=a.twoToneColor,C=a.onClick,f=_objectWithoutProperties(a,_excluded),g=(i={anticon:!0},_defineProperty$2(i,"anticon-".concat(s.name),!!s.name),_defineProperty$2(i,o,o),i),v=l===""||l||s.name==="loading"?"anticon-spin":"",d=u;d===void 0&&C&&(d=-1,f.tabindex=d);var _=c?{msTransform:"rotate(".concat(c,"deg)"),transform:"rotate(".concat(c,"deg)")}:void 0,x=normalizeTwoToneColors(h),m=_slicedToArray(x,2),p=m[0],y=m[1];return vue.createVNode("span",_objectSpread$2({role:"img","aria-label":s.name},f,{onClick:C,class:g}),[vue.createVNode(VueIcon,{class:v,icon:s,primaryColor:p,secondaryColor:y,style:_},null)])};Icon.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},Icon.displayName="AntdIcon",Icon.inheritAttrs=!1,Icon.getTwoToneColor=getTwoToneColor,Icon.setTwoToneColor=setTwoToneColor;const AntdIcon=Icon;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$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 CloseOutlined=function(r,n){var i=_objectSpread$1({},r,n.attrs);return vue.createVNode(AntdIcon,_objectSpread$1({},i,{icon:CloseOutlinedSvg}),null)};CloseOutlined.displayName="CloseOutlined",CloseOutlined.inheritAttrs=!1;const CloseOutlined$1=CloseOutlined;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(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 LoadingOutlined=function(r,n){var i=_objectSpread({},r,n.attrs);return vue.createVNode(AntdIcon,_objectSpread({},i,{icon:LoadingOutlinedSvg}),null)};LoadingOutlined.displayName="LoadingOutlined",LoadingOutlined.inheritAttrs=!1;const LoadingOutlined$1=LoadingOutlined,_sfc_main$v=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$A(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$v,[["render",_sfc_render$A]]),_sfc_main$u=vue.defineComponent({name:"Skeleton",props:{loading:{type:Boolean,default:!1}},components:{ASkeleton:antDesignVue.Skeleton}});function _sfc_render$z(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$u,[["render",_sfc_render$z]]);(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$t=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),C=vue.ref(0),f=vue.ref(!1),g=vue.ref(!1),v=vue.ref(0),d=vue.ref(null),_=vue.ref("200px"),x=vue.ref(!1),m=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%",m.value!==null&&p.value!==null&&m.value&&p.value)if(e.vertical&&"clientHeight"in m.value&&"clientHeight"in p.value){C.value=m.value.clientHeight,h.value=p.value.clientHeight;const T=Math.ceil(h.value/C.value);return n.value=isFinite(T)?T:0,s.value=!1,n.value}else if(!e.vertical&&"clientWidth"in m.value&&"clientWidth"in p.value){if(u.value=m.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,w)=>{T!==w&&r(T?"onResume":"onPause")});const S=()=>{e.pauseOnHover&&(r("onPause"),f.value=!0)},P=()=>{e.pauseOnHover&&(r("onResume"),f.value=!1)},k=()=>{e.pauseOnClick&&(r("onPause"),g.value=!0)},F=()=>{e.pauseOnClick&&(r("onResume"),g.value=!1)},B=vue.computed(()=>e.pause||e.vertical&&s.value||e.animateOnOverflowOnly&&l.value?"paused":"running"),L=vue.computed(()=>e.pauseOnHover&&(f.value||g.value)||!e.pauseOnHover&&B.value==="paused"?"paused":"running"),O=vue.computed(()=>e.pauseOnHover&&f.value||e.pauseOnClick&&g.value||!e.pauseOnHover&&B.value==="paused"?"paused":"running"),D=vue.computed(()=>{const T={"--duration":`${e.duration}s`,"--delay":`${e.delay}s`,"--direction":`${e.direction}`,"--pauseOnHover":`${L.value}`,"--pauseOnClick":`${O.value}`,"--pauseAnimation":`${B.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":`${_.value}`,"--min-width":`${i.value}`,"--min-height":`${a.value}`},w={"--orientation":"scrollX",orientation:"horizontal"};return e.vertical&&(w["--orientation"]="scrollY"),__spreadValues(__spreadValues({},T),w)}),V=vue.computed(()=>!!e.gradient),M=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."),_.value=e.gradientWidth):e.gradientLength&&(_.value=e.gradientLength)),(e.clone||e.animateOnOverflowOnly)&&(await E(),y()),x.value=!0};return vue.onMounted(async()=>{M(),d.value=setInterval(()=>{v.value++,e.loop!==0&&v.value===e.loop&&(r("onComplete"),clearInterval(d.value)),r("onLoopComplete")},e.duration*1e3)}),vue.onBeforeUnmount(()=>{clearInterval(d.value)}),{ready:x,contentWidth:u,containerWidth:c,contentHeight:C,containerHeight:h,loopCounter:v,loopInterval:d,mouseOverMarquee:f,mouseDownMarquee:g,minWidth:i,minHeight:a,animateOnOverflowPause:l,marqueeContent:m,marqueeOverlayContainer:p,componentKey:o,showGradient:V,cloneAmount:n,ForcesUpdate:y,checkForClone:E,setupMarquee:M,getCurrentStyle:D,hoverStarted:S,hoverEnded:P,mouseDown:k,mouseUp:F}}}),_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$y(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$t,[["render",_sfc_render$y]]);const _sfc_main$s=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$x(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$s,[["render",_sfc_render$x]]);process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const withInstall=(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:"",requestMethod:"get",requestHeaders:{},isOpenRequestTimer:!1,requestInterval:1,requestSort:0,requestParams:[{key:null,value:{}}],events:[],dataType:"static",scale:1},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=((Se=window==null?void 0:window.config)==null?void 0:Se.indicatorURL)||"";(qe=window==null?void 0:window.config)!=null&&qe.uploadPath;const BASE_URL=((He=window==null?void 0:window.config)==null?void 0:He.routerBaseURL)||"./",ERD_URL=((je=window==null?void 0:window.config)==null?void 0:je.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],C=h[n]||"",f=h[i]||"",g=h[a]||"";if(o.has(g)){const v=o.get(g);v.push({name:C,value:f,...h}),o.set(g,v)}else o.set(g,[{name:C,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 C of h)l.includes(C.name)||l.push(C.name);else l.push(...h.map(C=>C.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 m(){}return function(p){var y;return m.prototype=p,y=new m,m.prototype=null,y}}(),c={},u=c.lib={},h=u.Base=function(){return{extend:function(m){var p=l(this);return m&&p.mixIn(m),(!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 m=this.extend();return m.init.apply(m,arguments),m},init:function(){},mixIn:function(m){for(var p in m)m.hasOwnProperty(p)&&(this[p]=m[p]);m.hasOwnProperty("toString")&&(this.toString=m.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),C=u.WordArray=h.extend({init:function(m,p){m=this.words=m||[],p!=a?this.sigBytes=p:this.sigBytes=m.length*4},toString:function(m){return(m||g).stringify(this)},concat:function(m){var p=this.words,y=m.words,E=this.sigBytes,S=m.sigBytes;if(this.clamp(),E%4)for(var P=0;P<S;P++){var k=y[P>>>2]>>>24-P%4*8&255;p[E+P>>>2]|=k<<24-(E+P)%4*8}else for(var F=0;F<S;F+=4)p[E+F>>>2]=y[F>>>2];return this.sigBytes+=S,this},clamp:function(){var m=this.words,p=this.sigBytes;m[p>>>2]&=4294967295<<32-p%4*8,m.length=i.ceil(p/4)},clone:function(){var m=h.clone.call(this);return m.words=this.words.slice(0),m},random:function(m){for(var p=[],y=0;y<m;y+=4)p.push(s());return new C.init(p,m)}}),f=c.enc={},g=f.Hex={stringify:function(m){for(var p=m.words,y=m.sigBytes,E=[],S=0;S<y;S++){var P=p[S>>>2]>>>24-S%4*8&255;E.push((P>>>4).toString(16)),E.push((P&15).toString(16))}return E.join("")},parse:function(m){for(var p=m.length,y=[],E=0;E<p;E+=2)y[E>>>3]|=parseInt(m.substr(E,2),16)<<24-E%8*4;return new C.init(y,p/2)}},v=f.Latin1={stringify:function(m){for(var p=m.words,y=m.sigBytes,E=[],S=0;S<y;S++){var P=p[S>>>2]>>>24-S%4*8&255;E.push(String.fromCharCode(P))}return E.join("")},parse:function(m){for(var p=m.length,y=[],E=0;E<p;E++)y[E>>>2]|=(m.charCodeAt(E)&255)<<24-E%4*8;return new C.init(y,p)}},d=f.Utf8={stringify:function(m){try{return decodeURIComponent(escape(v.stringify(m)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(m){return v.parse(unescape(encodeURIComponent(m)))}},_=u.BufferedBlockAlgorithm=h.extend({reset:function(){this._data=new C.init,this._nDataBytes=0},_append:function(m){typeof m=="string"&&(m=d.parse(m)),this._data.concat(m),this._nDataBytes+=m.sigBytes},_process:function(m){var p,y=this._data,E=y.words,S=y.sigBytes,P=this.blockSize,k=P*4,F=S/k;m?F=i.ceil(F):F=i.max((F|0)-this._minBufferSize,0);var B=F*P,L=i.min(B*4,S);if(B){for(var O=0;O<B;O+=P)this._doProcessBlock(E,O);p=E.splice(0,B),y.sigBytes-=L}return new C.init(p,L)},clone:function(){var m=h.clone.call(this);return m._data=this._data.clone(),m},_minBufferSize:0});u.Hasher=_.extend({cfg:h.extend(),init:function(m){this.cfg=this.cfg.extend(m),this.reset()},reset:function(){_.reset.call(this),this._doReset()},update:function(m){return this._append(m),this._process(),this},finalize:function(m){m&&this._append(m);var p=this._doFinalize();return p},blockSize:16,_createHelper:function(m){return function(p,y){return new m.init(y).finalize(p)}},_createHmacHelper:function(m){return function(p,y){return new x.HMAC.init(m,y).finalize(p)}}});var x=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,C=[],f=0;f<h;f++){var g=u[f];C.push(g.high),C.push(g.low)}return l.create(C,this.sigBytes)},clone:function(){for(var u=s.clone.call(this),h=u.words=this.words.slice(0),C=h.length,f=0;f<C;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=[],C=0;C<u;C++)h[C>>>2]|=c[C]<<24-C%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,C=[],f=0;f<h;f+=2){var g=u[f>>>2]>>>16-f%4*8&65535;C.push(String.fromCharCode(g))}return C.join("")},parse:function(c){for(var u=c.length,h=[],C=0;C<u;C++)h[C>>>1]|=c.charCodeAt(C)<<16-C%2*16;return o.create(h,u*2)}},s.Utf16LE={stringify:function(c){for(var u=c.words,h=c.sigBytes,C=[],f=0;f<h;f+=2){var g=l(u[f>>>2]>>>16-f%4*8&65535);C.push(String.fromCharCode(g))}return C.join("")},parse:function(c){for(var u=c.length,h=[],C=0;C<u;C++)h[C>>>1]|=l(c.charCodeAt(C)<<16-C%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,C=this._map;c.clamp();for(var f=[],g=0;g<h;g+=3)for(var v=u[g>>>2]>>>24-g%4*8&255,d=u[g+1>>>2]>>>24-(g+1)%4*8&255,_=u[g+2>>>2]>>>24-(g+2)%4*8&255,x=v<<16|d<<8|_,m=0;m<4&&g+m*.75<h;m++)f.push(C.charAt(x>>>6*(3-m)&63));var p=C.charAt(64);if(p)for(;f.length%4;)f.push(p);return f.join("")},parse:function(c){var u=c.length,h=this._map,C=this._reverseMap;if(!C){C=this._reverseMap=[];for(var f=0;f<h.length;f++)C[h.charCodeAt(f)]=f}var g=h.charAt(64);if(g){var v=c.indexOf(g);v!==-1&&(u=v)}return l(c,u,C)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function l(c,u,h){for(var C=[],f=0,g=0;g<u;g++)if(g%4){var v=h[c.charCodeAt(g-1)]<<g%4*2,d=h[c.charCodeAt(g)]>>>6-g%4*2,_=v|d;C[f>>>2]|=_<<24-f%4*8,f++}return o.create(C,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,C=c.sigBytes,f=u?this._safe_map:this._map;c.clamp();for(var g=[],v=0;v<C;v+=3)for(var d=h[v>>>2]>>>24-v%4*8&255,_=h[v+1>>>2]>>>24-(v+1)%4*8&255,x=h[v+2>>>2]>>>24-(v+2)%4*8&255,m=d<<16|_<<8|x,p=0;p<4&&v+p*.75<C;p++)g.push(f.charAt(m>>>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,C=u?this._safe_map:this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var g=0;g<C.length;g++)f[C.charCodeAt(g)]=g}var v=C.charAt(64);if(v){var d=c.indexOf(v);d!==-1&&(h=d)}return l(c,h,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function l(c,u,h){for(var C=[],f=0,g=0;g<u;g++)if(g%4){var v=h[c.charCodeAt(g-1)]<<g%4*2,d=h[c.charCodeAt(g)]>>>6-g%4*2,_=v|d;C[f>>>2]|=_<<24-f%4*8,f++}return o.create(C,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 d=0;d<64;d++)u[d]=i.abs(i.sin(d+1))*4294967296|0})();var h=c.MD5=l.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(d,_){for(var x=0;x<16;x++){var m=_+x,p=d[m];d[m]=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360}var y=this._hash.words,E=d[_+0],S=d[_+1],P=d[_+2],k=d[_+3],F=d[_+4],B=d[_+5],L=d[_+6],O=d[_+7],D=d[_+8],V=d[_+9],M=d[_+10],T=d[_+11],w=d[_+12],b=d[_+13],A=d[_+14],R=d[_+15],I=y[0],q=y[1],N=y[2],G=y[3];I=C(I,q,N,G,E,7,u[0]),G=C(G,I,q,N,S,12,u[1]),N=C(N,G,I,q,P,17,u[2]),q=C(q,N,G,I,k,22,u[3]),I=C(I,q,N,G,F,7,u[4]),G=C(G,I,q,N,B,12,u[5]),N=C(N,G,I,q,L,17,u[6]),q=C(q,N,G,I,O,22,u[7]),I=C(I,q,N,G,D,7,u[8]),G=C(G,I,q,N,V,12,u[9]),N=C(N,G,I,q,M,17,u[10]),q=C(q,N,G,I,T,22,u[11]),I=C(I,q,N,G,w,7,u[12]),G=C(G,I,q,N,b,12,u[13]),N=C(N,G,I,q,A,17,u[14]),q=C(q,N,G,I,R,22,u[15]),I=f(I,q,N,G,S,5,u[16]),G=f(G,I,q,N,L,9,u[17]),N=f(N,G,I,q,T,14,u[18]),q=f(q,N,G,I,E,20,u[19]),I=f(I,q,N,G,B,5,u[20]),G=f(G,I,q,N,M,9,u[21]),N=f(N,G,I,q,R,14,u[22]),q=f(q,N,G,I,F,20,u[23]),I=f(I,q,N,G,V,5,u[24]),G=f(G,I,q,N,A,9,u[25]),N=f(N,G,I,q,k,14,u[26]),q=f(q,N,G,I,D,20,u[27]),I=f(I,q,N,G,b,5,u[28]),G=f(G,I,q,N,P,9,u[29]),N=f(N,G,I,q,O,14,u[30]),q=f(q,N,G,I,w,20,u[31]),I=g(I,q,N,G,B,4,u[32]),G=g(G,I,q,N,D,11,u[33]),N=g(N,G,I,q,T,16,u[34]),q=g(q,N,G,I,A,23,u[35]),I=g(I,q,N,G,S,4,u[36]),G=g(G,I,q,N,F,11,u[37]),N=g(N,G,I,q,O,16,u[38]),q=g(q,N,G,I,M,23,u[39]),I=g(I,q,N,G,b,4,u[40]),G=g(G,I,q,N,E,11,u[41]),N=g(N,G,I,q,k,16,u[42]),q=g(q,N,G,I,L,23,u[43]),I=g(I,q,N,G,V,4,u[44]),G=g(G,I,q,N,w,11,u[45]),N=g(N,G,I,q,R,16,u[46]),q=g(q,N,G,I,P,23,u[47]),I=v(I,q,N,G,E,6,u[48]),G=v(G,I,q,N,O,10,u[49]),N=v(N,G,I,q,A,15,u[50]),q=v(q,N,G,I,B,21,u[51]),I=v(I,q,N,G,w,6,u[52]),G=v(G,I,q,N,k,10,u[53]),N=v(N,G,I,q,M,15,u[54]),q=v(q,N,G,I,S,21,u[55]),I=v(I,q,N,G,D,6,u[56]),G=v(G,I,q,N,R,10,u[57]),N=v(N,G,I,q,L,15,u[58]),q=v(q,N,G,I,b,21,u[59]),I=v(I,q,N,G,F,6,u[60]),G=v(G,I,q,N,T,10,u[61]),N=v(N,G,I,q,P,15,u[62]),q=v(q,N,G,I,V,21,u[63]),y[0]=y[0]+I|0,y[1]=y[1]+q|0,y[2]=y[2]+N|0,y[3]=y[3]+G|0},_doFinalize:function(){var d=this._data,_=d.words,x=this._nDataBytes*8,m=d.sigBytes*8;_[m>>>5]|=128<<24-m%32;var p=i.floor(x/4294967296),y=x;_[(m+64>>>9<<4)+15]=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,_[(m+64>>>9<<4)+14]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,d.sigBytes=(_.length+1)*4,this._process();for(var E=this._hash,S=E.words,P=0;P<4;P++){var k=S[P];S[P]=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360}return E},clone:function(){var d=l.clone.call(this);return d._hash=this._hash.clone(),d}});function C(d,_,x,m,p,y,E){var S=d+(_&x|~_&m)+p+E;return(S<<y|S>>>32-y)+_}function f(d,_,x,m,p,y,E){var S=d+(_&m|x&~m)+p+E;return(S<<y|S>>>32-y)+_}function g(d,_,x,m,p,y,E){var S=d+(_^x^m)+p+E;return(S<<y|S>>>32-y)+_}function v(d,_,x,m,p,y,E){var S=d+(x^(_|~m))+p+E;return(S<<y|S>>>32-y)+_}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,C){for(var f=this._hash.words,g=f[0],v=f[1],d=f[2],_=f[3],x=f[4],m=0;m<80;m++){if(m<16)c[m]=h[C+m]|0;else{var p=c[m-3]^c[m-8]^c[m-14]^c[m-16];c[m]=p<<1|p>>>31}var y=(g<<5|g>>>27)+x+c[m];m<20?y+=(v&d|~v&_)+1518500249:m<40?y+=(v^d^_)+1859775393:m<60?y+=(v&d|v&_|d&_)-1894007588:y+=(v^d^_)-899497514,x=_,_=d,d=v<<30|v>>>2,v=g,g=y}f[0]=f[0]+g|0,f[1]=f[1]+v|0,f[2]=f[2]+d|0,f[3]=f[3]+_|0,f[4]=f[4]+x|0},_doFinalize:function(){var h=this._data,C=h.words,f=this._nDataBytes*8,g=h.sigBytes*8;return C[g>>>5]|=128<<24-g%32,C[(g+64>>>9<<4)+14]=Math.floor(f/4294967296),C[(g+64>>>9<<4)+15]=f,h.sigBytes=C.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(x){for(var m=i.sqrt(x),p=2;p<=m;p++)if(!(x%p))return!1;return!0}function v(x){return(x-(x|0))*4294967296|0}for(var d=2,_=0;_<64;)g(d)&&(_<8&&(u[_]=v(i.pow(d,1/2))),h[_]=v(i.pow(d,1/3)),_++),d++})();var C=[],f=c.SHA256=l.extend({_doReset:function(){this._hash=new s.init(u.slice(0))},_doProcessBlock:function(g,v){for(var d=this._hash.words,_=d[0],x=d[1],m=d[2],p=d[3],y=d[4],E=d[5],S=d[6],P=d[7],k=0;k<64;k++){if(k<16)C[k]=g[v+k]|0;else{var F=C[k-15],B=(F<<25|F>>>7)^(F<<14|F>>>18)^F>>>3,L=C[k-2],O=(L<<15|L>>>17)^(L<<13|L>>>19)^L>>>10;C[k]=B+C[k-7]+O+C[k-16]}var D=y&E^~y&S,V=_&x^_&m^x&m,M=(_<<30|_>>>2)^(_<<19|_>>>13)^(_<<10|_>>>22),T=(y<<26|y>>>6)^(y<<21|y>>>11)^(y<<7|y>>>25),w=P+T+D+h[k]+C[k],b=M+V;P=S,S=E,E=y,y=p+w|0,p=m,m=x,x=_,_=w+b|0}d[0]=d[0]+_|0,d[1]=d[1]+x|0,d[2]=d[2]+m|0,d[3]=d[3]+p|0,d[4]=d[4]+y|0,d[5]=d[5]+E|0,d[6]=d[6]+S|0,d[7]=d[7]+P|0},_doFinalize:function(){var g=this._data,v=g.words,d=this._nDataBytes*8,_=g.sigBytes*8;return v[_>>>5]|=128<<24-_%32,v[(_+64>>>9<<4)+14]=i.floor(d/4294967296),v[(_+64>>>9<<4)+15]=d,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 C=[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,d){for(var _=this._hash.words,x=_[0],m=_[1],p=_[2],y=_[3],E=_[4],S=_[5],P=_[6],k=_[7],F=x.high,B=x.low,L=m.high,O=m.low,D=p.high,V=p.low,M=y.high,T=y.low,w=E.high,b=E.low,A=S.high,R=S.low,I=P.high,q=P.low,N=k.high,G=k.low,Y=F,U=B,j=L,H=O,Z=D,X=V,ae=M,fe=T,$=w,K=b,ee=A,te=R,re=I,ne=q,he=N,ve=G,pe=0;pe<80;pe++){var ye,be,ce=f[pe];if(pe<16)be=ce.high=v[d+pe*2]|0,ye=ce.low=v[d+pe*2+1]|0;else{var de=f[pe-15],ue=de.high,Ce=de.low,_e=(ue>>>1|Ce<<31)^(ue>>>8|Ce<<24)^ue>>>7,Ae=(Ce>>>1|ue<<31)^(Ce>>>8|ue<<24)^(Ce>>>7|ue<<25),we=f[pe-2],Te=we.high,Me=we.low,ke=(Te>>>19|Me<<13)^(Te<<3|Me>>>29)^Te>>>6,Oe=(Me>>>19|Te<<13)^(Me<<3|Te>>>29)^(Me>>>6|Te<<26),Fe=f[pe-7],Pe=Fe.high,Re=Fe.low,W=f[pe-16],J=W.high,Q=W.low;ye=Ae+Re,be=_e+Pe+(ye>>>0<Ae>>>0?1:0),ye=ye+Oe,be=be+ke+(ye>>>0<Oe>>>0?1:0),ye=ye+Q,be=be+J+(ye>>>0<Q>>>0?1:0),ce.high=be,ce.low=ye}var oe=$&ee^~$&re,le=K&te^~K&ne,se=Y&j^Y&Z^j&Z,ie=U&H^U&X^H&X,me=(Y>>>28|U<<4)^(Y<<30|U>>>2)^(Y<<25|U>>>7),ge=(U>>>28|Y<<4)^(U<<30|Y>>>2)^(U<<25|Y>>>7),xe=($>>>14|K<<18)^($>>>18|K<<14)^($<<23|K>>>9),Ee=(K>>>14|$<<18)^(K>>>18|$<<14)^(K<<23|$>>>9),Be=C[pe],Ve=Be.high,Ne=Be.low,Ie=ve+Ee,De=he+xe+(Ie>>>0<ve>>>0?1:0),Ie=Ie+le,De=De+oe+(Ie>>>0<le>>>0?1:0),Ie=Ie+Ne,De=De+Ve+(Ie>>>0<Ne>>>0?1:0),Ie=Ie+ye,De=De+be+(Ie>>>0<ye>>>0?1:0),Le=ge+ie,ze=me+se+(Le>>>0<ge>>>0?1:0);he=re,ve=ne,re=ee,ne=te,ee=$,te=K,K=fe+Ie|0,$=ae+De+(K>>>0<fe>>>0?1:0)|0,ae=Z,fe=X,Z=j,X=H,j=Y,H=U,U=Ie+Le|0,Y=De+ze+(U>>>0<Ie>>>0?1:0)|0}B=x.low=B+U,x.high=F+Y+(B>>>0<U>>>0?1:0),O=m.low=O+H,m.high=L+j+(O>>>0<H>>>0?1:0),V=p.low=V+X,p.high=D+Z+(V>>>0<X>>>0?1:0),T=y.low=T+fe,y.high=M+ae+(T>>>0<fe>>>0?1:0),b=E.low=b+K,E.high=w+$+(b>>>0<K>>>0?1:0),R=S.low=R+te,S.high=A+ee+(R>>>0<te>>>0?1:0),q=P.low=q+ne,P.high=I+re+(q>>>0<ne>>>0?1:0),G=k.low=G+ve,k.high=N+he+(G>>>0<ve>>>0?1:0)},_doFinalize:function(){var v=this._data,d=v.words,_=this._nDataBytes*8,x=v.sigBytes*8;d[x>>>5]|=128<<24-x%32,d[(x+128>>>10<<5)+30]=Math.floor(_/4294967296),d[(x+128>>>10<<5)+31]=_,v.sigBytes=d.length*4,this._process();var m=this._hash.toX32();return m},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,C=[],f=[],g=[];(function(){for(var _=1,x=0,m=0;m<24;m++){C[_+5*x]=(m+1)*(m+2)/2%64;var p=x%5,y=(2*_+3*x)%5;_=p,x=y}for(var _=0;_<5;_++)for(var x=0;x<5;x++)f[_+5*x]=x+(2*_+3*x)%5*5;for(var E=1,S=0;S<24;S++){for(var P=0,k=0,F=0;F<7;F++){if(E&1){var B=(1<<F)-1;B<32?k^=1<<B:P^=1<<B-32}E&128?E=E<<1^113:E<<=1}g[S]=u.create(P,k)}})();var v=[];(function(){for(var _=0;_<25;_++)v[_]=u.create()})();var d=h.SHA3=l.extend({cfg:l.cfg.extend({outputLength:512}),_doReset:function(){for(var _=this._state=[],x=0;x<25;x++)_[x]=new u.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(_,x){for(var m=this._state,p=this.blockSize/2,y=0;y<p;y++){var E=_[x+2*y],S=_[x+2*y+1];E=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,S=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360;var P=m[y];P.high^=S,P.low^=E}for(var k=0;k<24;k++){for(var F=0;F<5;F++){for(var B=0,L=0,O=0;O<5;O++){var P=m[F+5*O];B^=P.high,L^=P.low}var D=v[F];D.high=B,D.low=L}for(var F=0;F<5;F++)for(var V=v[(F+4)%5],M=v[(F+1)%5],T=M.high,w=M.low,B=V.high^(T<<1|w>>>31),L=V.low^(w<<1|T>>>31),O=0;O<5;O++){var P=m[F+5*O];P.high^=B,P.low^=L}for(var b=1;b<25;b++){var B,L,P=m[b],A=P.high,R=P.low,I=C[b];I<32?(B=A<<I|R>>>32-I,L=R<<I|A>>>32-I):(B=R<<I-32|A>>>64-I,L=A<<I-32|R>>>64-I);var q=v[f[b]];q.high=B,q.low=L}var N=v[0],G=m[0];N.high=G.high,N.low=G.low;for(var F=0;F<5;F++)for(var O=0;O<5;O++){var b=F+5*O,P=m[b],Y=v[b],U=v[(F+1)%5+5*O],j=v[(F+2)%5+5*O];P.high=Y.high^~U.high&j.high,P.low=Y.low^~U.low&j.low}var P=m[0],H=g[k];P.high^=H.high,P.low^=H.low}},_doFinalize:function(){var _=this._data,x=_.words;this._nDataBytes*8;var m=_.sigBytes*8,p=this.blockSize*32;x[m>>>5]|=1<<24-m%32,x[(i.ceil((m+1)/p)*p>>>5)-1]|=128,_.sigBytes=x.length*4,this._process();for(var y=this._state,E=this.cfg.outputLength/8,S=E/8,P=[],k=0;k<S;k++){var F=y[k],B=F.high,L=F.low;B=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,L=(L<<8|L>>>24)&16711935|(L<<24|L>>>8)&4278255360,P.push(L),P.push(B)}return new s.init(P,E)},clone:function(){for(var _=l.clone.call(this),x=_._state=this._state.slice(0),m=0;m<25;m++)x[m]=x[m].clone();return _}});a.SHA3=l._createHelper(d),a.HmacSHA3=l._createHmacHelper(d)}(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,58 +64,66 @@ 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(a){var i=n,r=i.lib,s=r.WordArray,l=r.Hasher,d=i.algo,c=s.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),f=s.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),x=s.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),u=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]),m=s.create([0,1518500249,1859775393,2400959708,2840853838]),y=s.create([1352829926,1548603684,1836072691,2053994217,0]),h=d.RIPEMD160=l.extend({_doReset:function(){this._hash=s.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(g,R){for(var p=0;p<16;p++){var D=R+p,w=g[D];g[D]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360}var L=this._hash.words,M=m.words,k=y.words,O=c.words,T=f.words,F=x.words,b=u.words,E,_,q,N,V,z,P,X,U,j;z=E=L[0],P=_=L[1],X=q=L[2],U=N=L[3],j=V=L[4];for(var H,p=0;p<80;p+=1)H=E+g[R+O[p]]|0,p<16?H+=A(_,q,N)+M[0]:p<32?H+=I(_,q,N)+M[1]:p<48?H+=v(_,q,N)+M[2]:p<64?H+=S(_,q,N)+M[3]:H+=C(_,q,N)+M[4],H=H|0,H=B(H,F[p]),H=H+V|0,E=V,V=N,N=B(q,10),q=_,_=H,H=z+g[R+T[p]]|0,p<16?H+=C(P,X,U)+k[0]:p<32?H+=S(P,X,U)+k[1]:p<48?H+=v(P,X,U)+k[2]:p<64?H+=I(P,X,U)+k[3]:H+=A(P,X,U)+k[4],H=H|0,H=B(H,b[p]),H=H+j|0,z=j,j=U,U=B(X,10),X=P,P=H;H=L[1]+q+U|0,L[1]=L[2]+N+j|0,L[2]=L[3]+V+z|0,L[3]=L[4]+E+P|0,L[4]=L[0]+_+X|0,L[0]=H},_doFinalize:function(){var g=this._data,R=g.words,p=this._nDataBytes*8,D=g.sigBytes*8;R[D>>>5]|=128<<24-D%32,R[(D+64>>>9<<4)+14]=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,g.sigBytes=(R.length+1)*4,this._process();for(var w=this._hash,L=w.words,M=0;M<5;M++){var k=L[M];L[M]=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360}return w},clone:function(){var g=l.clone.call(this);return g._hash=this._hash.clone(),g}});function A(g,R,p){return g^R^p}function I(g,R,p){return g&R|~g&p}function v(g,R,p){return(g|~R)^p}function S(g,R,p){return g&p|R&~p}function C(g,R,p){return g^(R|~p)}function B(g,R){return g<<R|g>>>32-R}i.RIPEMD160=l._createHelper(h),i.HmacRIPEMD160=l._createHmacHelper(h)}(),n.RIPEMD160})}(so)),so.exports}var co={exports:{}},Zi;function fo(){return Zi||(Zi=1,function(e,o){(function(n,a){e.exports=a(we())})(me,function(n){(function(){var a=n,i=a.lib,r=i.Base,s=a.enc,l=s.Utf8,d=a.algo;d.HMAC=r.extend({init:function(c,f){c=this._hasher=new c.init,typeof f=="string"&&(f=l.parse(f));var x=c.blockSize,u=x*4;f.sigBytes>u&&(f=c.finalize(f)),f.clamp();for(var m=this._oKey=f.clone(),y=this._iKey=f.clone(),h=m.words,A=y.words,I=0;I<x;I++)h[I]^=1549556828,A[I]^=909522486;m.sigBytes=y.sigBytes=u,this.reset()},reset:function(){var c=this._hasher;c.reset(),c.update(this._iKey)},update:function(c){return this._hasher.update(c),this},finalize:function(c){var f=this._hasher,x=f.finalize(c);f.reset();var u=f.finalize(this._oKey.clone().concat(x));return u}})})()})}(co)),co.exports}var uo={exports:{}},Qi;function tc(){return Qi||(Qi=1,function(e,o){(function(n,a,i){e.exports=a(we(),no(),fo())})(me,function(n){return function(){var a=n,i=a.lib,r=i.Base,s=i.WordArray,l=a.algo,d=l.SHA1,c=l.HMAC,f=l.PBKDF2=r.extend({cfg:r.extend({keySize:128/32,hasher:d,iterations:1}),init:function(x){this.cfg=this.cfg.extend(x)},compute:function(x,u){for(var m=this.cfg,y=c.create(m.hasher,x),h=s.create(),A=s.create([1]),I=h.words,v=A.words,S=m.keySize,C=m.iterations;I.length<S;){var B=y.update(u).finalize(A);y.reset();for(var g=B.words,R=g.length,p=B,D=1;D<C;D++){p=y.finalize(p),y.reset();for(var w=p.words,L=0;L<R;L++)g[L]^=w[L]}h.concat(B),v[0]++}return h.sigBytes=S*4,h}});a.PBKDF2=function(x,u,m){return f.create(m).compute(x,u)}}(),n.PBKDF2})}(uo)),uo.exports}var ho={exports:{}},Ji;function Mt(){return Ji||(Ji=1,function(e,o){(function(n,a,i){e.exports=a(we(),no(),fo())})(me,function(n){return function(){var a=n,i=a.lib,r=i.Base,s=i.WordArray,l=a.algo,d=l.MD5,c=l.EvpKDF=r.extend({cfg:r.extend({keySize:128/32,hasher:d,iterations:1}),init:function(f){this.cfg=this.cfg.extend(f)},compute:function(f,x){for(var u,m=this.cfg,y=m.hasher.create(),h=s.create(),A=h.words,I=m.keySize,v=m.iterations;A.length<I;){u&&y.update(u),u=y.update(f).finalize(x),y.reset();for(var S=1;S<v;S++)u=y.finalize(u),y.reset();h.concat(u)}return h.sigBytes=I*4,h}});a.EvpKDF=function(f,x,u){return c.create(u).compute(f,x)}}(),n.EvpKDF})}(ho)),ho.exports}var go={exports:{}},Xi;function Ue(){return Xi||(Xi=1,function(e,o){(function(n,a,i){e.exports=a(we(),Mt())})(me,function(n){n.lib.Cipher||function(a){var i=n,r=i.lib,s=r.Base,l=r.WordArray,d=r.BufferedBlockAlgorithm,c=i.enc;c.Utf8;var f=c.Base64,x=i.algo,u=x.EvpKDF,m=r.Cipher=d.extend({cfg:s.extend(),createEncryptor:function(w,L){return this.create(this._ENC_XFORM_MODE,w,L)},createDecryptor:function(w,L){return this.create(this._DEC_XFORM_MODE,w,L)},init:function(w,L,M){this.cfg=this.cfg.extend(M),this._xformMode=w,this._key=L,this.reset()},reset:function(){d.reset.call(this),this._doReset()},process:function(w){return this._append(w),this._process()},finalize:function(w){w&&this._append(w);var L=this._doFinalize();return L},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function w(L){return typeof L=="string"?D:g}return function(L){return{encrypt:function(M,k,O){return w(k).encrypt(L,M,k,O)},decrypt:function(M,k,O){return w(k).decrypt(L,M,k,O)}}}}()});r.StreamCipher=m.extend({_doFinalize:function(){var w=this._process(!0);return w},blockSize:1});var y=i.mode={},h=r.BlockCipherMode=s.extend({createEncryptor:function(w,L){return this.Encryptor.create(w,L)},createDecryptor:function(w,L){return this.Decryptor.create(w,L)},init:function(w,L){this._cipher=w,this._iv=L}}),A=y.CBC=function(){var w=h.extend();w.Encryptor=w.extend({processBlock:function(M,k){var O=this._cipher,T=O.blockSize;L.call(this,M,k,T),O.encryptBlock(M,k),this._prevBlock=M.slice(k,k+T)}}),w.Decryptor=w.extend({processBlock:function(M,k){var O=this._cipher,T=O.blockSize,F=M.slice(k,k+T);O.decryptBlock(M,k),L.call(this,M,k,T),this._prevBlock=F}});function L(M,k,O){var T,F=this._iv;F?(T=F,this._iv=a):T=this._prevBlock;for(var b=0;b<O;b++)M[k+b]^=T[b]}return w}(),I=i.pad={},v=I.Pkcs7={pad:function(w,L){for(var M=L*4,k=M-w.sigBytes%M,O=k<<24|k<<16|k<<8|k,T=[],F=0;F<k;F+=4)T.push(O);var b=l.create(T,k);w.concat(b)},unpad:function(w){var L=w.words[w.sigBytes-1>>>2]&255;w.sigBytes-=L}};r.BlockCipher=m.extend({cfg:m.cfg.extend({mode:A,padding:v}),reset:function(){var w;m.reset.call(this);var L=this.cfg,M=L.iv,k=L.mode;this._xformMode==this._ENC_XFORM_MODE?w=k.createEncryptor:(w=k.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==w?this._mode.init(this,M&&M.words):(this._mode=w.call(k,this,M&&M.words),this._mode.__creator=w)},_doProcessBlock:function(w,L){this._mode.processBlock(w,L)},_doFinalize:function(){var w,L=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(L.pad(this._data,this.blockSize),w=this._process(!0)):(w=this._process(!0),L.unpad(w)),w},blockSize:128/32});var S=r.CipherParams=s.extend({init:function(w){this.mixIn(w)},toString:function(w){return(w||this.formatter).stringify(this)}}),C=i.format={},B=C.OpenSSL={stringify:function(w){var L,M=w.ciphertext,k=w.salt;return k?L=l.create([1398893684,1701076831]).concat(k).concat(M):L=M,L.toString(f)},parse:function(w){var L,M=f.parse(w),k=M.words;return k[0]==1398893684&&k[1]==1701076831&&(L=l.create(k.slice(2,4)),k.splice(0,4),M.sigBytes-=16),S.create({ciphertext:M,salt:L})}},g=r.SerializableCipher=s.extend({cfg:s.extend({format:B}),encrypt:function(w,L,M,k){k=this.cfg.extend(k);var O=w.createEncryptor(M,k),T=O.finalize(L),F=O.cfg;return S.create({ciphertext:T,key:M,iv:F.iv,algorithm:w,mode:F.mode,padding:F.padding,blockSize:w.blockSize,formatter:k.format})},decrypt:function(w,L,M,k){k=this.cfg.extend(k),L=this._parse(L,k.format);var O=w.createDecryptor(M,k).finalize(L.ciphertext);return O},_parse:function(w,L){return typeof w=="string"?L.parse(w,this):w}}),R=i.kdf={},p=R.OpenSSL={execute:function(w,L,M,k){k||(k=l.random(64/8));var O=u.create({keySize:L+M}).compute(w,k),T=l.create(O.words.slice(L),M*4);return O.sigBytes=L*4,S.create({key:O,iv:T,salt:k})}},D=r.PasswordBasedCipher=g.extend({cfg:g.cfg.extend({kdf:p}),encrypt:function(w,L,M,k){k=this.cfg.extend(k);var O=k.kdf.execute(M,w.keySize,w.ivSize);k.iv=O.iv;var T=g.encrypt.call(this,w,L,O.key,k);return T.mixIn(O),T},decrypt:function(w,L,M,k){k=this.cfg.extend(k),L=this._parse(L,k.format);var O=k.kdf.execute(M,w.keySize,w.ivSize,L.salt);k.iv=O.iv;var T=g.decrypt.call(this,w,L,O.key,k);return T}})}()})}(go)),go.exports}var mo={exports:{}},er;function nc(){return er||(er=1,function(e,o){(function(n,a,i){e.exports=a(we(),Ue())})(me,function(n){return n.mode.CFB=function(){var a=n.lib.BlockCipherMode.extend();a.Encryptor=a.extend({processBlock:function(r,s){var l=this._cipher,d=l.blockSize;i.call(this,r,s,d,l),this._prevBlock=r.slice(s,s+d)}}),a.Decryptor=a.extend({processBlock:function(r,s){var l=this._cipher,d=l.blockSize,c=r.slice(s,s+d);i.call(this,r,s,d,l),this._prevBlock=c}});function i(r,s,l,d){var c,f=this._iv;f?(c=f.slice(0),this._iv=void 0):c=this._prevBlock,d.encryptBlock(c,0);for(var x=0;x<l;x++)r[s+x]^=c[x]}return a}(),n.mode.CFB})}(mo)),mo.exports}var yo={exports:{}},tr;function oc(){return tr||(tr=1,function(e,o){(function(n,a,i){e.exports=a(we(),Ue())})(me,function(n){return n.mode.CTR=function(){var a=n.lib.BlockCipherMode.extend(),i=a.Encryptor=a.extend({processBlock:function(r,s){var l=this._cipher,d=l.blockSize,c=this._iv,f=this._counter;c&&(f=this._counter=c.slice(0),this._iv=void 0);var x=f.slice(0);l.encryptBlock(x,0),f[d-1]=f[d-1]+1|0;for(var u=0;u<d;u++)r[s+u]^=x[u]}});return a.Decryptor=i,a}(),n.mode.CTR})}(yo)),yo.exports}var xo={exports:{}},nr;function ac(){return nr||(nr=1,function(e,o){(function(n,a,i){e.exports=a(we(),Ue())})(me,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]),C=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]),d=c.RIPEMD160=l.extend({_doReset:function(){this._hash=s.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(S,P){for(var k=0;k<16;k++){var F=P+k,B=S[F];S[F]=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360}var L=this._hash.words,O=g.words,D=v.words,V=u.words,M=h.words,T=C.words,w=f.words,b,A,R,I,q,N,G,Y,U,j;N=b=L[0],G=A=L[1],Y=R=L[2],U=I=L[3],j=q=L[4];for(var H,k=0;k<80;k+=1)H=b+S[P+V[k]]|0,k<16?H+=_(A,R,I)+O[0]:k<32?H+=x(A,R,I)+O[1]:k<48?H+=m(A,R,I)+O[2]:k<64?H+=p(A,R,I)+O[3]:H+=y(A,R,I)+O[4],H=H|0,H=E(H,T[k]),H=H+q|0,b=q,q=I,I=E(R,10),R=A,A=H,H=N+S[P+M[k]]|0,k<16?H+=y(G,Y,U)+D[0]:k<32?H+=p(G,Y,U)+D[1]:k<48?H+=m(G,Y,U)+D[2]:k<64?H+=x(G,Y,U)+D[3]:H+=_(G,Y,U)+D[4],H=H|0,H=E(H,w[k]),H=H+j|0,N=j,j=U,U=E(Y,10),Y=G,G=H;H=L[1]+R+U|0,L[1]=L[2]+I+j|0,L[2]=L[3]+q+N|0,L[3]=L[4]+b+G|0,L[4]=L[0]+A+Y|0,L[0]=H},_doFinalize:function(){var S=this._data,P=S.words,k=this._nDataBytes*8,F=S.sigBytes*8;P[F>>>5]|=128<<24-F%32,P[(F+64>>>9<<4)+14]=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360,S.sigBytes=(P.length+1)*4,this._process();for(var B=this._hash,L=B.words,O=0;O<5;O++){var D=L[O];L[O]=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360}return B},clone:function(){var S=l.clone.call(this);return S._hash=this._hash.clone(),S}});function _(S,P,k){return S^P^k}function x(S,P,k){return S&P|~S&k}function m(S,P,k){return(S|~P)^k}function p(S,P,k){return S&k|P&~k}function y(S,P,k){return S^(P|~k)}function E(S,P){return S<<P|S>>>32-P}a.RIPEMD160=l._createHelper(d),a.HmacRIPEMD160=l._createHmacHelper(d)}(),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 C=u.blockSize,f=C*4;h.sigBytes>f&&(h=u.finalize(h)),h.clamp();for(var g=this._oKey=h.clone(),v=this._iKey=h.clone(),d=g.words,_=v.words,x=0;x<C;x++)d[x]^=1549556828,_[x]^=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,C=h.finalize(u);h.reset();var f=h.finalize(this._oKey.clone().concat(C));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(C){this.cfg=this.cfg.extend(C)},compute:function(C,f){for(var g=this.cfg,v=u.create(g.hasher,C),d=s.create(),_=s.create([1]),x=d.words,m=_.words,p=g.keySize,y=g.iterations;x.length<p;){var E=v.update(f).finalize(_);v.reset();for(var S=E.words,P=S.length,k=E,F=1;F<y;F++){k=v.finalize(k),v.reset();for(var B=k.words,L=0;L<P;L++)S[L]^=B[L]}d.concat(E),m[0]++}return d.sigBytes=p*4,d}});i.PBKDF2=function(C,f,g){return h.create(g).compute(C,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,C){for(var f,g=this.cfg,v=g.hasher.create(),d=s.create(),_=d.words,x=g.keySize,m=g.iterations;_.length<x;){f&&v.update(f),f=v.update(h).finalize(C),v.reset();for(var p=1;p<m;p++)f=v.finalize(f),v.reset();d.concat(f)}return d.sigBytes=x*4,d}});i.EvpKDF=function(h,C,f){return u.create(f).compute(h,C)}}(),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,C=a.algo,f=C.EvpKDF,g=o.Cipher=c.extend({cfg:s.extend(),createEncryptor:function(B,L){return this.create(this._ENC_XFORM_MODE,B,L)},createDecryptor:function(B,L){return this.create(this._DEC_XFORM_MODE,B,L)},init:function(B,L,O){this.cfg=this.cfg.extend(O),this._xformMode=B,this._key=L,this.reset()},reset:function(){c.reset.call(this),this._doReset()},process:function(B){return this._append(B),this._process()},finalize:function(B){B&&this._append(B);var L=this._doFinalize();return L},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function B(L){return typeof L=="string"?F:S}return function(L){return{encrypt:function(O,D,V){return B(D).encrypt(L,O,D,V)},decrypt:function(O,D,V){return B(D).decrypt(L,O,D,V)}}}}()});o.StreamCipher=g.extend({_doFinalize:function(){var B=this._process(!0);return B},blockSize:1});var v=a.mode={},d=o.BlockCipherMode=s.extend({createEncryptor:function(B,L){return this.Encryptor.create(B,L)},createDecryptor:function(B,L){return this.Decryptor.create(B,L)},init:function(B,L){this._cipher=B,this._iv=L}}),_=v.CBC=function(){var B=d.extend();B.Encryptor=B.extend({processBlock:function(O,D){var V=this._cipher,M=V.blockSize;L.call(this,O,D,M),V.encryptBlock(O,D),this._prevBlock=O.slice(D,D+M)}}),B.Decryptor=B.extend({processBlock:function(O,D){var V=this._cipher,M=V.blockSize,T=O.slice(D,D+M);V.decryptBlock(O,D),L.call(this,O,D,M),this._prevBlock=T}});function L(O,D,V){var M,T=this._iv;T?(M=T,this._iv=i):M=this._prevBlock;for(var w=0;w<V;w++)O[D+w]^=M[w]}return B}(),x=a.pad={},m=x.Pkcs7={pad:function(B,L){for(var O=L*4,D=O-B.sigBytes%O,V=D<<24|D<<16|D<<8|D,M=[],T=0;T<D;T+=4)M.push(V);var w=l.create(M,D);B.concat(w)},unpad:function(B){var L=B.words[B.sigBytes-1>>>2]&255;B.sigBytes-=L}};o.BlockCipher=g.extend({cfg:g.cfg.extend({mode:_,padding:m}),reset:function(){var B;g.reset.call(this);var L=this.cfg,O=L.iv,D=L.mode;this._xformMode==this._ENC_XFORM_MODE?B=D.createEncryptor:(B=D.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==B?this._mode.init(this,O&&O.words):(this._mode=B.call(D,this,O&&O.words),this._mode.__creator=B)},_doProcessBlock:function(B,L){this._mode.processBlock(B,L)},_doFinalize:function(){var B,L=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(L.pad(this._data,this.blockSize),B=this._process(!0)):(B=this._process(!0),L.unpad(B)),B},blockSize:128/32});var p=o.CipherParams=s.extend({init:function(B){this.mixIn(B)},toString:function(B){return(B||this.formatter).stringify(this)}}),y=a.format={},E=y.OpenSSL={stringify:function(B){var L,O=B.ciphertext,D=B.salt;return D?L=l.create([1398893684,1701076831]).concat(D).concat(O):L=O,L.toString(h)},parse:function(B){var L,O=h.parse(B),D=O.words;return D[0]==1398893684&&D[1]==1701076831&&(L=l.create(D.slice(2,4)),D.splice(0,4),O.sigBytes-=16),p.create({ciphertext:O,salt:L})}},S=o.SerializableCipher=s.extend({cfg:s.extend({format:E}),encrypt:function(B,L,O,D){D=this.cfg.extend(D);var V=B.createEncryptor(O,D),M=V.finalize(L),T=V.cfg;return p.create({ciphertext:M,key:O,iv:T.iv,algorithm:B,mode:T.mode,padding:T.padding,blockSize:B.blockSize,formatter:D.format})},decrypt:function(B,L,O,D){D=this.cfg.extend(D),L=this._parse(L,D.format);var V=B.createDecryptor(O,D).finalize(L.ciphertext);return V},_parse:function(B,L){return typeof B=="string"?L.parse(B,this):B}}),P=a.kdf={},k=P.OpenSSL={execute:function(B,L,O,D){D||(D=l.random(64/8));var V=f.create({keySize:L+O}).compute(B,D),M=l.create(V.words.slice(L),O*4);return V.sigBytes=L*4,p.create({key:V,iv:M,salt:D})}},F=o.PasswordBasedCipher=S.extend({cfg:S.cfg.extend({kdf:k}),encrypt:function(B,L,O,D){D=this.cfg.extend(D);var V=D.kdf.execute(O,B.keySize,B.ivSize);D.iv=V.iv;var M=S.encrypt.call(this,B,L,V.key,D);return M.mixIn(V),M},decrypt:function(B,L,O,D){D=this.cfg.extend(D),L=this._parse(L,D.format);var V=D.kdf.execute(O,B.keySize,B.ivSize,L.salt);D.iv=V.iv;var M=S.decrypt.call(this,B,L,V.key,D);return M}})}()})}(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 C=0;C<l;C++)o[s+C]^=u[C]}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 C=h.slice(0);l.encryptBlock(C,0),h[c-1]=h[c-1]+1|0;for(var f=0;f<c;f++)o[s+f]^=C[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 a=n.lib.BlockCipherMode.extend();function i(l){if((l>>24&255)===255){var d=l>>16&255,c=l>>8&255,f=l&255;d===255?(d=0,c===255?(c=0,f===255?f=0:++f):++c):++d,l=0,l+=d<<16,l+=c<<8,l+=f}else l+=1<<24;return l}function r(l){return(l[0]=i(l[0]))===0&&(l[1]=i(l[1])),l}var s=a.Encryptor=a.extend({processBlock:function(l,d){var c=this._cipher,f=c.blockSize,x=this._iv,u=this._counter;x&&(u=this._counter=x.slice(0),this._iv=void 0),r(u);var m=u.slice(0);c.encryptBlock(m,0);for(var y=0;y<f;y++)l[d+y]^=m[y]}});return a.Decryptor=s,a}(),n.mode.CTRGladman})}(xo)),xo.exports}var po={exports:{}},or;function ic(){return or||(or=1,function(e,o){(function(n,a,i){e.exports=a(we(),Ue())})(me,function(n){return n.mode.OFB=function(){var a=n.lib.BlockCipherMode.extend(),i=a.Encryptor=a.extend({processBlock:function(r,s){var l=this._cipher,d=l.blockSize,c=this._iv,f=this._keystream;c&&(f=this._keystream=c.slice(0),this._iv=void 0),l.encryptBlock(f,0);for(var x=0;x<d;x++)r[s+x]^=f[x]}});return a.Decryptor=i,a}(),n.mode.OFB})}(po)),po.exports}var bo={exports:{}},ar;function rc(){return ar||(ar=1,function(e,o){(function(n,a,i){e.exports=a(we(),Ue())})(me,function(n){return n.mode.ECB=function(){var a=n.lib.BlockCipherMode.extend();return a.Encryptor=a.extend({processBlock:function(i,r){this._cipher.encryptBlock(i,r)}}),a.Decryptor=a.extend({processBlock:function(i,r){this._cipher.decryptBlock(i,r)}}),a}(),n.mode.ECB})}(bo)),bo.exports}var vo={exports:{}},ir;function lc(){return ir||(ir=1,function(e,o){(function(n,a,i){e.exports=a(we(),Ue())})(me,function(n){return n.pad.AnsiX923={pad:function(a,i){var r=a.sigBytes,s=i*4,l=s-r%s,d=r+l-1;a.clamp(),a.words[d>>>2]|=l<<24-d%4*8,a.sigBytes+=l},unpad:function(a){var i=a.words[a.sigBytes-1>>>2]&255;a.sigBytes-=i}},n.pad.Ansix923})}(vo)),vo.exports}var So={exports:{}},rr;function sc(){return rr||(rr=1,function(e,o){(function(n,a,i){e.exports=a(we(),Ue())})(me,function(n){return n.pad.Iso10126={pad:function(a,i){var r=i*4,s=r-a.sigBytes%r;a.concat(n.lib.WordArray.random(s-1)).concat(n.lib.WordArray.create([s<<24],1))},unpad:function(a){var i=a.words[a.sigBytes-1>>>2]&255;a.sigBytes-=i}},n.pad.Iso10126})}(So)),So.exports}var Co={exports:{}},lr;function cc(){return lr||(lr=1,function(e,o){(function(n,a,i){e.exports=a(we(),Ue())})(me,function(n){return n.pad.Iso97971={pad:function(a,i){a.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(a,i)},unpad:function(a){n.pad.ZeroPadding.unpad(a),a.sigBytes--}},n.pad.Iso97971})}(Co)),Co.exports}var wo={exports:{}},sr;function dc(){return sr||(sr=1,function(e,o){(function(n,a,i){e.exports=a(we(),Ue())})(me,function(n){return n.pad.ZeroPadding={pad:function(a,i){var r=i*4;a.clamp(),a.sigBytes+=r-(a.sigBytes%r||r)},unpad:function(a){for(var i=a.words,r=a.sigBytes-1,r=a.sigBytes-1;r>=0;r--)if(i[r>>>2]>>>24-r%4*8&255){a.sigBytes=r+1;break}}},n.pad.ZeroPadding})}(wo)),wo.exports}var Ao={exports:{}},cr;function fc(){return cr||(cr=1,function(e,o){(function(n,a,i){e.exports=a(we(),Ue())})(me,function(n){return n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding})}(Ao)),Ao.exports}var ko={exports:{}},dr;function uc(){return dr||(dr=1,function(e,o){(function(n,a,i){e.exports=a(we(),Ue())})(me,function(n){return function(a){var i=n,r=i.lib,s=r.CipherParams,l=i.enc,d=l.Hex,c=i.format;c.Hex={stringify:function(f){return f.ciphertext.toString(d)},parse:function(f){var x=d.parse(f);return s.create({ciphertext:x})}}}(),n.format.Hex})}(ko)),ko.exports}var To={exports:{}},fr;function hc(){return fr||(fr=1,function(e,o){(function(n,a,i){e.exports=a(we(),Ut(),$t(),Mt(),Ue())})(me,function(n){return function(){var a=n,i=a.lib,r=i.BlockCipher,s=a.algo,l=[],d=[],c=[],f=[],x=[],u=[],m=[],y=[],h=[],A=[];(function(){for(var S=[],C=0;C<256;C++)C<128?S[C]=C<<1:S[C]=C<<1^283;for(var B=0,g=0,C=0;C<256;C++){var R=g^g<<1^g<<2^g<<3^g<<4;R=R>>>8^R&255^99,l[B]=R,d[R]=B;var p=S[B],D=S[p],w=S[D],L=S[R]*257^R*16843008;c[B]=L<<24|L>>>8,f[B]=L<<16|L>>>16,x[B]=L<<8|L>>>24,u[B]=L;var L=w*16843009^D*65537^p*257^B*16843008;m[R]=L<<24|L>>>8,y[R]=L<<16|L>>>16,h[R]=L<<8|L>>>24,A[R]=L,B?(B=p^S[S[S[w^p]]],g^=S[S[g]]):B=g=1}})();var I=[0,1,2,4,8,16,32,64,128,27,54],v=s.AES=r.extend({_doReset:function(){var S;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var C=this._keyPriorReset=this._key,B=C.words,g=C.sigBytes/4,R=this._nRounds=g+6,p=(R+1)*4,D=this._keySchedule=[],w=0;w<p;w++)w<g?D[w]=B[w]:(S=D[w-1],w%g?g>6&&w%g==4&&(S=l[S>>>24]<<24|l[S>>>16&255]<<16|l[S>>>8&255]<<8|l[S&255]):(S=S<<8|S>>>24,S=l[S>>>24]<<24|l[S>>>16&255]<<16|l[S>>>8&255]<<8|l[S&255],S^=I[w/g|0]<<24),D[w]=D[w-g]^S);for(var L=this._invKeySchedule=[],M=0;M<p;M++){var w=p-M;if(M%4)var S=D[w];else var S=D[w-4];M<4||w<=4?L[M]=S:L[M]=m[l[S>>>24]]^y[l[S>>>16&255]]^h[l[S>>>8&255]]^A[l[S&255]]}}},encryptBlock:function(S,C){this._doCryptBlock(S,C,this._keySchedule,c,f,x,u,l)},decryptBlock:function(S,C){var B=S[C+1];S[C+1]=S[C+3],S[C+3]=B,this._doCryptBlock(S,C,this._invKeySchedule,m,y,h,A,d);var B=S[C+1];S[C+1]=S[C+3],S[C+3]=B},_doCryptBlock:function(S,C,B,g,R,p,D,w){for(var L=this._nRounds,M=S[C]^B[0],k=S[C+1]^B[1],O=S[C+2]^B[2],T=S[C+3]^B[3],F=4,b=1;b<L;b++){var E=g[M>>>24]^R[k>>>16&255]^p[O>>>8&255]^D[T&255]^B[F++],_=g[k>>>24]^R[O>>>16&255]^p[T>>>8&255]^D[M&255]^B[F++],q=g[O>>>24]^R[T>>>16&255]^p[M>>>8&255]^D[k&255]^B[F++],N=g[T>>>24]^R[M>>>16&255]^p[k>>>8&255]^D[O&255]^B[F++];M=E,k=_,O=q,T=N}var E=(w[M>>>24]<<24|w[k>>>16&255]<<16|w[O>>>8&255]<<8|w[T&255])^B[F++],_=(w[k>>>24]<<24|w[O>>>16&255]<<16|w[T>>>8&255]<<8|w[M&255])^B[F++],q=(w[O>>>24]<<24|w[T>>>16&255]<<16|w[M>>>8&255]<<8|w[k&255])^B[F++],N=(w[T>>>24]<<24|w[M>>>16&255]<<16|w[k>>>8&255]<<8|w[O&255])^B[F++];S[C]=E,S[C+1]=_,S[C+2]=q,S[C+3]=N},keySize:256/32});a.AES=r._createHelper(v)}(),n.AES})}(To)),To.exports}var Bo={exports:{}},ur;function gc(){return ur||(ur=1,function(e,o){(function(n,a,i){e.exports=a(we(),Ut(),$t(),Mt(),Ue())})(me,function(n){return function(){var a=n,i=a.lib,r=i.WordArray,s=i.BlockCipher,l=a.algo,d=[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],c=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],f=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],x=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],m=l.DES=s.extend({_doReset:function(){for(var I=this._key,v=I.words,S=[],C=0;C<56;C++){var B=d[C]-1;S[C]=v[B>>>5]>>>31-B%32&1}for(var g=this._subKeys=[],R=0;R<16;R++){for(var p=g[R]=[],D=f[R],C=0;C<24;C++)p[C/6|0]|=S[(c[C]-1+D)%28]<<31-C%6,p[4+(C/6|0)]|=S[28+(c[C+24]-1+D)%28]<<31-C%6;p[0]=p[0]<<1|p[0]>>>31;for(var C=1;C<7;C++)p[C]=p[C]>>>(C-1)*4+3;p[7]=p[7]<<5|p[7]>>>27}for(var w=this._invSubKeys=[],C=0;C<16;C++)w[C]=g[15-C]},encryptBlock:function(I,v){this._doCryptBlock(I,v,this._subKeys)},decryptBlock:function(I,v){this._doCryptBlock(I,v,this._invSubKeys)},_doCryptBlock:function(I,v,S){this._lBlock=I[v],this._rBlock=I[v+1],y.call(this,4,252645135),y.call(this,16,65535),h.call(this,2,858993459),h.call(this,8,16711935),y.call(this,1,1431655765);for(var C=0;C<16;C++){for(var B=S[C],g=this._lBlock,R=this._rBlock,p=0,D=0;D<8;D++)p|=x[D][((R^B[D])&u[D])>>>0];this._lBlock=R,this._rBlock=g^p}var w=this._lBlock;this._lBlock=this._rBlock,this._rBlock=w,y.call(this,1,1431655765),h.call(this,8,16711935),h.call(this,2,858993459),y.call(this,16,65535),y.call(this,4,252645135),I[v]=this._lBlock,I[v+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function y(I,v){var S=(this._lBlock>>>I^this._rBlock)&v;this._rBlock^=S,this._lBlock^=S<<I}function h(I,v){var S=(this._rBlock>>>I^this._lBlock)&v;this._lBlock^=S,this._rBlock^=S<<I}a.DES=s._createHelper(m);var A=l.TripleDES=s.extend({_doReset:function(){var I=this._key,v=I.words;if(v.length!==2&&v.length!==4&&v.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var S=v.slice(0,2),C=v.length<4?v.slice(0,2):v.slice(2,4),B=v.length<6?v.slice(0,2):v.slice(4,6);this._des1=m.createEncryptor(r.create(S)),this._des2=m.createEncryptor(r.create(C)),this._des3=m.createEncryptor(r.create(B))},encryptBlock:function(I,v){this._des1.encryptBlock(I,v),this._des2.decryptBlock(I,v),this._des3.encryptBlock(I,v)},decryptBlock:function(I,v){this._des3.decryptBlock(I,v),this._des2.encryptBlock(I,v),this._des1.decryptBlock(I,v)},keySize:192/32,ivSize:64/32,blockSize:64/32});a.TripleDES=s._createHelper(A)}(),n.TripleDES})}(Bo)),Bo.exports}var Eo={exports:{}},hr;function mc(){return hr||(hr=1,function(e,o){(function(n,a,i){e.exports=a(we(),Ut(),$t(),Mt(),Ue())})(me,function(n){return function(){var a=n,i=a.lib,r=i.StreamCipher,s=a.algo,l=s.RC4=r.extend({_doReset:function(){for(var f=this._key,x=f.words,u=f.sigBytes,m=this._S=[],y=0;y<256;y++)m[y]=y;for(var y=0,h=0;y<256;y++){var A=y%u,I=x[A>>>2]>>>24-A%4*8&255;h=(h+m[y]+I)%256;var v=m[y];m[y]=m[h],m[h]=v}this._i=this._j=0},_doProcessBlock:function(f,x){f[x]^=d.call(this)},keySize:256/32,ivSize:0});function d(){for(var f=this._S,x=this._i,u=this._j,m=0,y=0;y<4;y++){x=(x+1)%256,u=(u+f[x])%256;var h=f[x];f[x]=f[u],f[u]=h,m|=f[(f[x]+f[u])%256]<<24-y*8}return this._i=x,this._j=u,m}a.RC4=r._createHelper(l);var c=s.RC4Drop=l.extend({cfg:l.cfg.extend({drop:192}),_doReset:function(){l._doReset.call(this);for(var f=this.cfg.drop;f>0;f--)d.call(this)}});a.RC4Drop=r._createHelper(c)}(),n.RC4})}(Eo)),Eo.exports}var Do={exports:{}},gr;function yc(){return gr||(gr=1,function(e,o){(function(n,a,i){e.exports=a(we(),Ut(),$t(),Mt(),Ue())})(me,function(n){return function(){var a=n,i=a.lib,r=i.StreamCipher,s=a.algo,l=[],d=[],c=[],f=s.Rabbit=r.extend({_doReset:function(){for(var u=this._key.words,m=this.cfg.iv,y=0;y<4;y++)u[y]=(u[y]<<8|u[y]>>>24)&16711935|(u[y]<<24|u[y]>>>8)&4278255360;var h=this._X=[u[0],u[3]<<16|u[2]>>>16,u[1],u[0]<<16|u[3]>>>16,u[2],u[1]<<16|u[0]>>>16,u[3],u[2]<<16|u[1]>>>16],A=this._C=[u[2]<<16|u[2]>>>16,u[0]&4294901760|u[1]&65535,u[3]<<16|u[3]>>>16,u[1]&4294901760|u[2]&65535,u[0]<<16|u[0]>>>16,u[2]&4294901760|u[3]&65535,u[1]<<16|u[1]>>>16,u[3]&4294901760|u[0]&65535];this._b=0;for(var y=0;y<4;y++)x.call(this);for(var y=0;y<8;y++)A[y]^=h[y+4&7];if(m){var I=m.words,v=I[0],S=I[1],C=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,B=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,g=C>>>16|B&4294901760,R=B<<16|C&65535;A[0]^=C,A[1]^=g,A[2]^=B,A[3]^=R,A[4]^=C,A[5]^=g,A[6]^=B,A[7]^=R;for(var y=0;y<4;y++)x.call(this)}},_doProcessBlock:function(u,m){var y=this._X;x.call(this),l[0]=y[0]^y[5]>>>16^y[3]<<16,l[1]=y[2]^y[7]>>>16^y[5]<<16,l[2]=y[4]^y[1]>>>16^y[7]<<16,l[3]=y[6]^y[3]>>>16^y[1]<<16;for(var h=0;h<4;h++)l[h]=(l[h]<<8|l[h]>>>24)&16711935|(l[h]<<24|l[h]>>>8)&4278255360,u[m+h]^=l[h]},blockSize:128/32,ivSize:64/32});function x(){for(var u=this._X,m=this._C,y=0;y<8;y++)d[y]=m[y];m[0]=m[0]+1295307597+this._b|0,m[1]=m[1]+3545052371+(m[0]>>>0<d[0]>>>0?1:0)|0,m[2]=m[2]+886263092+(m[1]>>>0<d[1]>>>0?1:0)|0,m[3]=m[3]+1295307597+(m[2]>>>0<d[2]>>>0?1:0)|0,m[4]=m[4]+3545052371+(m[3]>>>0<d[3]>>>0?1:0)|0,m[5]=m[5]+886263092+(m[4]>>>0<d[4]>>>0?1:0)|0,m[6]=m[6]+1295307597+(m[5]>>>0<d[5]>>>0?1:0)|0,m[7]=m[7]+3545052371+(m[6]>>>0<d[6]>>>0?1:0)|0,this._b=m[7]>>>0<d[7]>>>0?1:0;for(var y=0;y<8;y++){var h=u[y]+m[y],A=h&65535,I=h>>>16,v=((A*A>>>17)+A*I>>>15)+I*I,S=((h&4294901760)*h|0)+((h&65535)*h|0);c[y]=v^S}u[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,u[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,u[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,u[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,u[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,u[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,u[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,u[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}a.Rabbit=r._createHelper(f)}(),n.Rabbit})}(Do)),Do.exports}var Io={exports:{}},mr;function xc(){return mr||(mr=1,function(e,o){(function(n,a,i){e.exports=a(we(),Ut(),$t(),Mt(),Ue())})(me,function(n){return function(){var a=n,i=a.lib,r=i.StreamCipher,s=a.algo,l=[],d=[],c=[],f=s.RabbitLegacy=r.extend({_doReset:function(){var u=this._key.words,m=this.cfg.iv,y=this._X=[u[0],u[3]<<16|u[2]>>>16,u[1],u[0]<<16|u[3]>>>16,u[2],u[1]<<16|u[0]>>>16,u[3],u[2]<<16|u[1]>>>16],h=this._C=[u[2]<<16|u[2]>>>16,u[0]&4294901760|u[1]&65535,u[3]<<16|u[3]>>>16,u[1]&4294901760|u[2]&65535,u[0]<<16|u[0]>>>16,u[2]&4294901760|u[3]&65535,u[1]<<16|u[1]>>>16,u[3]&4294901760|u[0]&65535];this._b=0;for(var A=0;A<4;A++)x.call(this);for(var A=0;A<8;A++)h[A]^=y[A+4&7];if(m){var I=m.words,v=I[0],S=I[1],C=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,B=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,g=C>>>16|B&4294901760,R=B<<16|C&65535;h[0]^=C,h[1]^=g,h[2]^=B,h[3]^=R,h[4]^=C,h[5]^=g,h[6]^=B,h[7]^=R;for(var A=0;A<4;A++)x.call(this)}},_doProcessBlock:function(u,m){var y=this._X;x.call(this),l[0]=y[0]^y[5]>>>16^y[3]<<16,l[1]=y[2]^y[7]>>>16^y[5]<<16,l[2]=y[4]^y[1]>>>16^y[7]<<16,l[3]=y[6]^y[3]>>>16^y[1]<<16;for(var h=0;h<4;h++)l[h]=(l[h]<<8|l[h]>>>24)&16711935|(l[h]<<24|l[h]>>>8)&4278255360,u[m+h]^=l[h]},blockSize:128/32,ivSize:64/32});function x(){for(var u=this._X,m=this._C,y=0;y<8;y++)d[y]=m[y];m[0]=m[0]+1295307597+this._b|0,m[1]=m[1]+3545052371+(m[0]>>>0<d[0]>>>0?1:0)|0,m[2]=m[2]+886263092+(m[1]>>>0<d[1]>>>0?1:0)|0,m[3]=m[3]+1295307597+(m[2]>>>0<d[2]>>>0?1:0)|0,m[4]=m[4]+3545052371+(m[3]>>>0<d[3]>>>0?1:0)|0,m[5]=m[5]+886263092+(m[4]>>>0<d[4]>>>0?1:0)|0,m[6]=m[6]+1295307597+(m[5]>>>0<d[5]>>>0?1:0)|0,m[7]=m[7]+3545052371+(m[6]>>>0<d[6]>>>0?1:0)|0,this._b=m[7]>>>0<d[7]>>>0?1:0;for(var y=0;y<8;y++){var h=u[y]+m[y],A=h&65535,I=h>>>16,v=((A*A>>>17)+A*I>>>15)+I*I,S=((h&4294901760)*h|0)+((h&65535)*h|0);c[y]=v^S}u[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,u[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,u[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,u[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,u[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,u[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,u[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,u[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}a.RabbitLegacy=r._createHelper(f)}(),n.RabbitLegacy})}(Io)),Io.exports}(function(e,o){(function(n,a,i){e.exports=a(we(),bn(),Y0(),K0(),Ut(),Z0(),$t(),no(),ji(),Q0(),Ui(),J0(),X0(),ec(),fo(),tc(),Mt(),Ue(),nc(),oc(),ac(),ic(),rc(),lc(),sc(),cc(),dc(),fc(),uc(),hc(),gc(),mc(),yc(),xc())})(me,function(n){return n})})(Ni);var pc=Ni.exports;const lt=Li(pc);var bc="0123456789abcdefghijklmnopqrstuvwxyz";function At(e){return bc.charAt(e)}function vc(e,o){return e&o}function vn(e,o){return e|o}function yr(e,o){return e^o}function xr(e,o){return e&~o}function Sc(e){if(e==0)return-1;var o=0;return e&65535||(e>>=16,o+=16),e&255||(e>>=8,o+=8),e&15||(e>>=4,o+=4),e&3||(e>>=2,o+=2),e&1||++o,o}function Cc(e){for(var o=0;e!=0;)e&=e-1,++o;return o}var Yt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",pr="=";function Sn(e){var o,n,a="";for(o=0;o+3<=e.length;o+=3)n=parseInt(e.substring(o,o+3),16),a+=Yt.charAt(n>>6)+Yt.charAt(n&63);for(o+1==e.length?(n=parseInt(e.substring(o,o+1),16),a+=Yt.charAt(n<<2)):o+2==e.length&&(n=parseInt(e.substring(o,o+2),16),a+=Yt.charAt(n>>2)+Yt.charAt((n&3)<<4));(a.length&3)>0;)a+=pr;return a}function br(e){var o="",n,a=0,i=0;for(n=0;n<e.length&&e.charAt(n)!=pr;++n){var r=Yt.indexOf(e.charAt(n));r<0||(a==0?(o+=At(r>>2),i=r&3,a=1):a==1?(o+=At(i<<2|r>>4),i=r&15,a=2):a==2?(o+=At(i),o+=At(r>>2),i=r&3,a=3):(o+=At(i<<2|r>>4),o+=At(r&15),a=0))}return a==1&&(o+=At(i<<2)),o}var Kt,wc={decode:function(e){var o;if(Kt===void 0){var n="0123456789ABCDEF",a=` \f
|
|
72
|
-
\r \u2028\u2029`;for(
|
|
73
|
-
\r \u2028\u2029`;for(
|
|
74
|
-
`;break;default:
|
|
75
|
-
`}
|
|
76
|
-
`,l="",
|
|
77
|
-
`;
|
|
78
|
-
`,this.sub!==null){o+=" ";for(var a=0,i=this.sub.length;a<i;++a)n+=this.sub[a].toPrettyString(o)}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(o){var n=o.get(),a=n&127;if(a==n)return a;if(a>6)throw new Error("Length over 48 bits not supported at position "+(o.pos-1));if(a===0)return null;n=0;for(var i=0;i<a;++i)n=n*256+o.get();return n},e.prototype.getHexStringValue=function(){var o=this.toHexString(),n=this.header*2,a=this.length*2;return o.substr(n,a)},e.decode=function(o){var n;o instanceof Lo?n=o:n=new Lo(o,0);var a=new Lo(n),i=new Sr(n),r=e.decodeLength(n),s=n.pos,l=s-a.pos,d=null,c=function(){var x=[];if(r!==null){for(var u=s+r;n.pos<u;)x[x.length]=e.decode(n);if(n.pos!=u)throw new Error("Content size is not correct for container starting at offset "+s)}else try{for(;;){var m=e.decode(n);if(m.tag.isEOC())break;x[x.length]=m}r=s-n.pos}catch(y){throw new Error("Exception while decoding undefined length content: "+y)}return x};if(i.tagConstructed)d=c();else if(i.isUniversal()&&(i.tagNumber==3||i.tagNumber==4))try{if(i.tagNumber==3&&n.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");d=c();for(var f=0;f<d.length;++f)if(d[f].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch{d=null}if(d===null){if(r===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+s);n.pos=s+Math.abs(r)}return new e(a,l,r,i,d)},e}(),Sr=function(){function e(o){var n=o.get();if(this.tagClass=n>>6,this.tagConstructed=(n&32)!==0,this.tagNumber=n&31,this.tagNumber==31){var a=new cn;do n=o.get(),a.mulAdd(128,n&127);while(n&128);this.tagNumber=a.simplify()}}return e.prototype.isUniversal=function(){return this.tagClass===0},e.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},e}(),Dt,Bc=0xdeadbeefcafe,Cr=(Bc&16777215)==15715070,Je=[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],Ec=(1<<26)/Je[Je.length-1],ge=function(){function e(o,n,a){o!=null&&(typeof o=="number"?this.fromNumber(o,n,a):n==null&&typeof o!="string"?this.fromString(o,256):this.fromString(o,n))}return e.prototype.toString=function(o){if(this.s<0)return"-"+this.negate().toString(o);var n;if(o==16)n=4;else if(o==8)n=3;else if(o==2)n=1;else if(o==32)n=5;else if(o==4)n=2;else return this.toRadix(o);var a=(1<<n)-1,i,r=!1,s="",l=this.t,d=this.DB-l*this.DB%n;if(l-- >0)for(d<this.DB&&(i=this[l]>>d)>0&&(r=!0,s=At(i));l>=0;)d<n?(i=(this[l]&(1<<d)-1)<<n-d,i|=this[--l]>>(d+=this.DB-n)):(i=this[l]>>(d-=n)&a,d<=0&&(d+=this.DB,--l)),i>0&&(r=!0),r&&(s+=At(i));return r?s:"0"},e.prototype.negate=function(){var o=pe();return e.ZERO.subTo(this,o),o},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.compareTo=function(o){var n=this.s-o.s;if(n!=0)return n;var a=this.t;if(n=a-o.t,n!=0)return this.s<0?-n:n;for(;--a>=0;)if((n=this[a]-o[a])!=0)return n;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+wn(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(o){var n=pe();return this.abs().divRemTo(o,null,n),this.s<0&&n.compareTo(e.ZERO)>0&&o.subTo(n,n),n},e.prototype.modPowInt=function(o,n){var a;return o<256||n.isEven()?a=new wr(n):a=new Ar(n),this.exp(o,a)},e.prototype.clone=function(){var o=pe();return this.copyTo(o),o},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 o=this.t,n=[];n[0]=this.s;var a=this.DB-o*this.DB%8,i,r=0;if(o-- >0)for(a<this.DB&&(i=this[o]>>a)!=(this.s&this.DM)>>a&&(n[r++]=i|this.s<<this.DB-a);o>=0;)a<8?(i=(this[o]&(1<<a)-1)<<8-a,i|=this[--o]>>(a+=this.DB-8)):(i=this[o]>>(a-=8)&255,a<=0&&(a+=this.DB,--o)),i&128&&(i|=-256),r==0&&(this.s&128)!=(i&128)&&++r,(r>0||i!=this.s)&&(n[r++]=i);return n},e.prototype.equals=function(o){return this.compareTo(o)==0},e.prototype.min=function(o){return this.compareTo(o)<0?this:o},e.prototype.max=function(o){return this.compareTo(o)>0?this:o},e.prototype.and=function(o){var n=pe();return this.bitwiseTo(o,vc,n),n},e.prototype.or=function(o){var n=pe();return this.bitwiseTo(o,vn,n),n},e.prototype.xor=function(o){var n=pe();return this.bitwiseTo(o,yr,n),n},e.prototype.andNot=function(o){var n=pe();return this.bitwiseTo(o,xr,n),n},e.prototype.not=function(){for(var o=pe(),n=0;n<this.t;++n)o[n]=this.DM&~this[n];return o.t=this.t,o.s=~this.s,o},e.prototype.shiftLeft=function(o){var n=pe();return o<0?this.rShiftTo(-o,n):this.lShiftTo(o,n),n},e.prototype.shiftRight=function(o){var n=pe();return o<0?this.lShiftTo(-o,n):this.rShiftTo(o,n),n},e.prototype.getLowestSetBit=function(){for(var o=0;o<this.t;++o)if(this[o]!=0)return o*this.DB+Sc(this[o]);return this.s<0?this.t*this.DB:-1},e.prototype.bitCount=function(){for(var o=0,n=this.s&this.DM,a=0;a<this.t;++a)o+=Cc(this[a]^n);return o},e.prototype.testBit=function(o){var n=Math.floor(o/this.DB);return n>=this.t?this.s!=0:(this[n]&1<<o%this.DB)!=0},e.prototype.setBit=function(o){return this.changeBit(o,vn)},e.prototype.clearBit=function(o){return this.changeBit(o,xr)},e.prototype.flipBit=function(o){return this.changeBit(o,yr)},e.prototype.add=function(o){var n=pe();return this.addTo(o,n),n},e.prototype.subtract=function(o){var n=pe();return this.subTo(o,n),n},e.prototype.multiply=function(o){var n=pe();return this.multiplyTo(o,n),n},e.prototype.divide=function(o){var n=pe();return this.divRemTo(o,n,null),n},e.prototype.remainder=function(o){var n=pe();return this.divRemTo(o,null,n),n},e.prototype.divideAndRemainder=function(o){var n=pe(),a=pe();return this.divRemTo(o,n,a),[n,a]},e.prototype.modPow=function(o,n){var a=o.bitLength(),i,r=It(1),s;if(a<=0)return r;a<18?i=1:a<48?i=3:a<144?i=4:a<768?i=5:i=6,a<8?s=new wr(n):n.isEven()?s=new Ic(n):s=new Ar(n);var l=[],d=3,c=i-1,f=(1<<i)-1;if(l[1]=s.convert(this),i>1){var x=pe();for(s.sqrTo(l[1],x);d<=f;)l[d]=pe(),s.mulTo(x,l[d-2],l[d]),d+=2}var u=o.t-1,m,y=!0,h=pe(),A;for(a=wn(o[u])-1;u>=0;){for(a>=c?m=o[u]>>a-c&f:(m=(o[u]&(1<<a+1)-1)<<c-a,u>0&&(m|=o[u-1]>>this.DB+a-c)),d=i;!(m&1);)m>>=1,--d;if((a-=d)<0&&(a+=this.DB,--u),y)l[m].copyTo(r),y=!1;else{for(;d>1;)s.sqrTo(r,h),s.sqrTo(h,r),d-=2;d>0?s.sqrTo(r,h):(A=r,r=h,h=A),s.mulTo(h,l[m],r)}for(;u>=0&&!(o[u]&1<<a);)s.sqrTo(r,h),A=r,r=h,h=A,--a<0&&(a=this.DB-1,--u)}return s.revert(r)},e.prototype.modInverse=function(o){var n=o.isEven();if(this.isEven()&&n||o.signum()==0)return e.ZERO;for(var a=o.clone(),i=this.clone(),r=It(1),s=It(0),l=It(0),d=It(1);a.signum()!=0;){for(;a.isEven();)a.rShiftTo(1,a),n?((!r.isEven()||!s.isEven())&&(r.addTo(this,r),s.subTo(o,s)),r.rShiftTo(1,r)):s.isEven()||s.subTo(o,s),s.rShiftTo(1,s);for(;i.isEven();)i.rShiftTo(1,i),n?((!l.isEven()||!d.isEven())&&(l.addTo(this,l),d.subTo(o,d)),l.rShiftTo(1,l)):d.isEven()||d.subTo(o,d),d.rShiftTo(1,d);a.compareTo(i)>=0?(a.subTo(i,a),n&&r.subTo(l,r),s.subTo(d,s)):(i.subTo(a,i),n&&l.subTo(r,l),d.subTo(s,d))}if(i.compareTo(e.ONE)!=0)return e.ZERO;if(d.compareTo(o)>=0)return d.subtract(o);if(d.signum()<0)d.addTo(o,d);else return d;return d.signum()<0?d.add(o):d},e.prototype.pow=function(o){return this.exp(o,new Dc)},e.prototype.gcd=function(o){var n=this.s<0?this.negate():this.clone(),a=o.s<0?o.negate():o.clone();if(n.compareTo(a)<0){var i=n;n=a,a=i}var r=n.getLowestSetBit(),s=a.getLowestSetBit();if(s<0)return n;for(r<s&&(s=r),s>0&&(n.rShiftTo(s,n),a.rShiftTo(s,a));n.signum()>0;)(r=n.getLowestSetBit())>0&&n.rShiftTo(r,n),(r=a.getLowestSetBit())>0&&a.rShiftTo(r,a),n.compareTo(a)>=0?(n.subTo(a,n),n.rShiftTo(1,n)):(a.subTo(n,a),a.rShiftTo(1,a));return s>0&&a.lShiftTo(s,a),a},e.prototype.isProbablePrime=function(o){var n,a=this.abs();if(a.t==1&&a[0]<=Je[Je.length-1]){for(n=0;n<Je.length;++n)if(a[0]==Je[n])return!0;return!1}if(a.isEven())return!1;for(n=1;n<Je.length;){for(var i=Je[n],r=n+1;r<Je.length&&i<Ec;)i*=Je[r++];for(i=a.modInt(i);n<r;)if(i%Je[n++]==0)return!1}return a.millerRabin(o)},e.prototype.copyTo=function(o){for(var n=this.t-1;n>=0;--n)o[n]=this[n];o.t=this.t,o.s=this.s},e.prototype.fromInt=function(o){this.t=1,this.s=o<0?-1:0,o>0?this[0]=o:o<-1?this[0]=o+this.DV:this.t=0},e.prototype.fromString=function(o,n){var a;if(n==16)a=4;else if(n==8)a=3;else if(n==256)a=8;else if(n==2)a=1;else if(n==32)a=5;else if(n==4)a=2;else{this.fromRadix(o,n);return}this.t=0,this.s=0;for(var i=o.length,r=!1,s=0;--i>=0;){var l=a==8?+o[i]&255:Tr(o,i);if(l<0){o.charAt(i)=="-"&&(r=!0);continue}r=!1,s==0?this[this.t++]=l:s+a>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+=a,s>=this.DB&&(s-=this.DB)}a==8&&+o[0]&128&&(this.s=-1,s>0&&(this[this.t-1]|=(1<<this.DB-s)-1<<s)),this.clamp(),r&&e.ZERO.subTo(this,this)},e.prototype.clamp=function(){for(var o=this.s&this.DM;this.t>0&&this[this.t-1]==o;)--this.t},e.prototype.dlShiftTo=function(o,n){var a;for(a=this.t-1;a>=0;--a)n[a+o]=this[a];for(a=o-1;a>=0;--a)n[a]=0;n.t=this.t+o,n.s=this.s},e.prototype.drShiftTo=function(o,n){for(var a=o;a<this.t;++a)n[a-o]=this[a];n.t=Math.max(this.t-o,0),n.s=this.s},e.prototype.lShiftTo=function(o,n){for(var a=o%this.DB,i=this.DB-a,r=(1<<i)-1,s=Math.floor(o/this.DB),l=this.s<<a&this.DM,d=this.t-1;d>=0;--d)n[d+s+1]=this[d]>>i|l,l=(this[d]&r)<<a;for(var d=s-1;d>=0;--d)n[d]=0;n[s]=l,n.t=this.t+s+1,n.s=this.s,n.clamp()},e.prototype.rShiftTo=function(o,n){n.s=this.s;var a=Math.floor(o/this.DB);if(a>=this.t){n.t=0;return}var i=o%this.DB,r=this.DB-i,s=(1<<i)-1;n[0]=this[a]>>i;for(var l=a+1;l<this.t;++l)n[l-a-1]|=(this[l]&s)<<r,n[l-a]=this[l]>>i;i>0&&(n[this.t-a-1]|=(this.s&s)<<r),n.t=this.t-a,n.clamp()},e.prototype.subTo=function(o,n){for(var a=0,i=0,r=Math.min(o.t,this.t);a<r;)i+=this[a]-o[a],n[a++]=i&this.DM,i>>=this.DB;if(o.t<this.t){for(i-=o.s;a<this.t;)i+=this[a],n[a++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;a<o.t;)i-=o[a],n[a++]=i&this.DM,i>>=this.DB;i-=o.s}n.s=i<0?-1:0,i<-1?n[a++]=this.DV+i:i>0&&(n[a++]=i),n.t=a,n.clamp()},e.prototype.multiplyTo=function(o,n){var a=this.abs(),i=o.abs(),r=a.t;for(n.t=r+i.t;--r>=0;)n[r]=0;for(r=0;r<i.t;++r)n[r+a.t]=a.am(0,i[r],n,r,0,a.t);n.s=0,n.clamp(),this.s!=o.s&&e.ZERO.subTo(n,n)},e.prototype.squareTo=function(o){for(var n=this.abs(),a=o.t=2*n.t;--a>=0;)o[a]=0;for(a=0;a<n.t-1;++a){var i=n.am(a,n[a],o,2*a,0,1);(o[a+n.t]+=n.am(a+1,2*n[a],o,2*a+1,i,n.t-a-1))>=n.DV&&(o[a+n.t]-=n.DV,o[a+n.t+1]=1)}o.t>0&&(o[o.t-1]+=n.am(a,n[a],o,2*a,0,1)),o.s=0,o.clamp()},e.prototype.divRemTo=function(o,n,a){var i=o.abs();if(!(i.t<=0)){var r=this.abs();if(r.t<i.t){n!=null&&n.fromInt(0),a!=null&&this.copyTo(a);return}a==null&&(a=pe());var s=pe(),l=this.s,d=o.s,c=this.DB-wn(i[i.t-1]);c>0?(i.lShiftTo(c,s),r.lShiftTo(c,a)):(i.copyTo(s),r.copyTo(a));var f=s.t,x=s[f-1];if(x!=0){var u=x*(1<<this.F1)+(f>1?s[f-2]>>this.F2:0),m=this.FV/u,y=(1<<this.F1)/u,h=1<<this.F2,A=a.t,I=A-f,v=n??pe();for(s.dlShiftTo(I,v),a.compareTo(v)>=0&&(a[a.t++]=1,a.subTo(v,a)),e.ONE.dlShiftTo(f,v),v.subTo(s,s);s.t<f;)s[s.t++]=0;for(;--I>=0;){var S=a[--A]==x?this.DM:Math.floor(a[A]*m+(a[A-1]+h)*y);if((a[A]+=s.am(0,S,a,I,0,f))<S)for(s.dlShiftTo(I,v),a.subTo(v,a);a[A]<--S;)a.subTo(v,a)}n!=null&&(a.drShiftTo(f,n),l!=d&&e.ZERO.subTo(n,n)),a.t=f,a.clamp(),c>0&&a.rShiftTo(c,a),l<0&&e.ZERO.subTo(a,a)}}},e.prototype.invDigit=function(){if(this.t<1)return 0;var o=this[0];if(!(o&1))return 0;var n=o&3;return n=n*(2-(o&15)*n)&15,n=n*(2-(o&255)*n)&255,n=n*(2-((o&65535)*n&65535))&65535,n=n*(2-o*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(o,n){if(o>4294967295||o<1)return e.ONE;var a=pe(),i=pe(),r=n.convert(this),s=wn(o)-1;for(r.copyTo(a);--s>=0;)if(n.sqrTo(a,i),(o&1<<s)>0)n.mulTo(i,r,a);else{var l=a;a=i,i=l}return n.revert(a)},e.prototype.chunkSize=function(o){return Math.floor(Math.LN2*this.DB/Math.log(o))},e.prototype.toRadix=function(o){if(o==null&&(o=10),this.signum()==0||o<2||o>36)return"0";var n=this.chunkSize(o),a=Math.pow(o,n),i=It(a),r=pe(),s=pe(),l="";for(this.divRemTo(i,r,s);r.signum()>0;)l=(a+s.intValue()).toString(o).substr(1)+l,r.divRemTo(i,r,s);return s.intValue().toString(o)+l},e.prototype.fromRadix=function(o,n){this.fromInt(0),n==null&&(n=10);for(var a=this.chunkSize(n),i=Math.pow(n,a),r=!1,s=0,l=0,d=0;d<o.length;++d){var c=Tr(o,d);if(c<0){o.charAt(d)=="-"&&this.signum()==0&&(r=!0);continue}l=n*l+c,++s>=a&&(this.dMultiply(i),this.dAddOffset(l,0),s=0,l=0)}s>0&&(this.dMultiply(Math.pow(n,s)),this.dAddOffset(l,0)),r&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(o,n,a){if(typeof n=="number")if(o<2)this.fromInt(1);else for(this.fromNumber(o,a),this.testBit(o-1)||this.bitwiseTo(e.ONE.shiftLeft(o-1),vn,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(n);)this.dAddOffset(2,0),this.bitLength()>o&&this.subTo(e.ONE.shiftLeft(o-1),this);else{var i=[],r=o&7;i.length=(o>>3)+1,n.nextBytes(i),r>0?i[0]&=(1<<r)-1:i[0]=0,this.fromString(i,256)}},e.prototype.bitwiseTo=function(o,n,a){var i,r,s=Math.min(o.t,this.t);for(i=0;i<s;++i)a[i]=n(this[i],o[i]);if(o.t<this.t){for(r=o.s&this.DM,i=s;i<this.t;++i)a[i]=n(this[i],r);a.t=this.t}else{for(r=this.s&this.DM,i=s;i<o.t;++i)a[i]=n(r,o[i]);a.t=o.t}a.s=n(this.s,o.s),a.clamp()},e.prototype.changeBit=function(o,n){var a=e.ONE.shiftLeft(o);return this.bitwiseTo(a,n,a),a},e.prototype.addTo=function(o,n){for(var a=0,i=0,r=Math.min(o.t,this.t);a<r;)i+=this[a]+o[a],n[a++]=i&this.DM,i>>=this.DB;if(o.t<this.t){for(i+=o.s;a<this.t;)i+=this[a],n[a++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;a<o.t;)i+=o[a],n[a++]=i&this.DM,i>>=this.DB;i+=o.s}n.s=i<0?-1:0,i>0?n[a++]=i:i<-1&&(n[a++]=this.DV+i),n.t=a,n.clamp()},e.prototype.dMultiply=function(o){this[this.t]=this.am(0,o-1,this,0,0,this.t),++this.t,this.clamp()},e.prototype.dAddOffset=function(o,n){if(o!=0){for(;this.t<=n;)this[this.t++]=0;for(this[n]+=o;this[n]>=this.DV;)this[n]-=this.DV,++n>=this.t&&(this[this.t++]=0),++this[n]}},e.prototype.multiplyLowerTo=function(o,n,a){var i=Math.min(this.t+o.t,n);for(a.s=0,a.t=i;i>0;)a[--i]=0;for(var r=a.t-this.t;i<r;++i)a[i+this.t]=this.am(0,o[i],a,i,0,this.t);for(var r=Math.min(o.t,n);i<r;++i)this.am(0,o[i],a,i,0,n-i);a.clamp()},e.prototype.multiplyUpperTo=function(o,n,a){--n;var i=a.t=this.t+o.t-n;for(a.s=0;--i>=0;)a[i]=0;for(i=Math.max(n-this.t,0);i<o.t;++i)a[this.t+i-n]=this.am(n-i,o[i],a,0,0,this.t+i-n);a.clamp(),a.drShiftTo(1,a)},e.prototype.modInt=function(o){if(o<=0)return 0;var n=this.DV%o,a=this.s<0?o-1:0;if(this.t>0)if(n==0)a=this[0]%o;else for(var i=this.t-1;i>=0;--i)a=(n*a+this[i])%o;return a},e.prototype.millerRabin=function(o){var n=this.subtract(e.ONE),a=n.getLowestSetBit();if(a<=0)return!1;var i=n.shiftRight(a);o=o+1>>1,o>Je.length&&(o=Je.length);for(var r=pe(),s=0;s<o;++s){r.fromInt(Je[Math.floor(Math.random()*Je.length)]);var l=r.modPow(i,this);if(l.compareTo(e.ONE)!=0&&l.compareTo(n)!=0){for(var d=1;d++<a&&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 o=pe();return this.squareTo(o),o},e.prototype.gcda=function(o,n){var a=this.s<0?this.negate():this.clone(),i=o.s<0?o.negate():o.clone();if(a.compareTo(i)<0){var r=a;a=i,i=r}var s=a.getLowestSetBit(),l=i.getLowestSetBit();if(l<0){n(a);return}s<l&&(l=s),l>0&&(a.rShiftTo(l,a),i.rShiftTo(l,i));var d=function(){(s=a.getLowestSetBit())>0&&a.rShiftTo(s,a),(s=i.getLowestSetBit())>0&&i.rShiftTo(s,i),a.compareTo(i)>=0?(a.subTo(i,a),a.rShiftTo(1,a)):(i.subTo(a,i),i.rShiftTo(1,i)),a.signum()>0?setTimeout(d,0):(l>0&&i.lShiftTo(l,i),setTimeout(function(){n(i)},0))};setTimeout(d,10)},e.prototype.fromNumberAsync=function(o,n,a,i){if(typeof n=="number")if(o<2)this.fromInt(1);else{this.fromNumber(o,a),this.testBit(o-1)||this.bitwiseTo(e.ONE.shiftLeft(o-1),vn,this),this.isEven()&&this.dAddOffset(1,0);var r=this,s=function(){r.dAddOffset(2,0),r.bitLength()>o&&r.subTo(e.ONE.shiftLeft(o-1),r),r.isProbablePrime(n)?setTimeout(function(){i()},0):setTimeout(s,0)};setTimeout(s,0)}else{var l=[],d=o&7;l.length=(o>>3)+1,n.nextBytes(l),d>0?l[0]&=(1<<d)-1:l[0]=0,this.fromString(l,256)}},e}(),Dc=function(){function e(){}return e.prototype.convert=function(o){return o},e.prototype.revert=function(o){return o},e.prototype.mulTo=function(o,n,a){o.multiplyTo(n,a)},e.prototype.sqrTo=function(o,n){o.squareTo(n)},e}(),wr=function(){function e(o){this.m=o}return e.prototype.convert=function(o){return o.s<0||o.compareTo(this.m)>=0?o.mod(this.m):o},e.prototype.revert=function(o){return o},e.prototype.reduce=function(o){o.divRemTo(this.m,null,o)},e.prototype.mulTo=function(o,n,a){o.multiplyTo(n,a),this.reduce(a)},e.prototype.sqrTo=function(o,n){o.squareTo(n),this.reduce(n)},e}(),Ar=function(){function e(o){this.m=o,this.mp=o.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<o.DB-15)-1,this.mt2=2*o.t}return e.prototype.convert=function(o){var n=pe();return o.abs().dlShiftTo(this.m.t,n),n.divRemTo(this.m,null,n),o.s<0&&n.compareTo(ge.ZERO)>0&&this.m.subTo(n,n),n},e.prototype.revert=function(o){var n=pe();return o.copyTo(n),this.reduce(n),n},e.prototype.reduce=function(o){for(;o.t<=this.mt2;)o[o.t++]=0;for(var n=0;n<this.m.t;++n){var a=o[n]&32767,i=a*this.mpl+((a*this.mph+(o[n]>>15)*this.mpl&this.um)<<15)&o.DM;for(a=n+this.m.t,o[a]+=this.m.am(0,i,o,n,0,this.m.t);o[a]>=o.DV;)o[a]-=o.DV,o[++a]++}o.clamp(),o.drShiftTo(this.m.t,o),o.compareTo(this.m)>=0&&o.subTo(this.m,o)},e.prototype.mulTo=function(o,n,a){o.multiplyTo(n,a),this.reduce(a)},e.prototype.sqrTo=function(o,n){o.squareTo(n),this.reduce(n)},e}(),Ic=function(){function e(o){this.m=o,this.r2=pe(),this.q3=pe(),ge.ONE.dlShiftTo(2*o.t,this.r2),this.mu=this.r2.divide(o)}return e.prototype.convert=function(o){if(o.s<0||o.t>2*this.m.t)return o.mod(this.m);if(o.compareTo(this.m)<0)return o;var n=pe();return o.copyTo(n),this.reduce(n),n},e.prototype.revert=function(o){return o},e.prototype.reduce=function(o){for(o.drShiftTo(this.m.t-1,this.r2),o.t>this.m.t+1&&(o.t=this.m.t+1,o.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);o.compareTo(this.r2)<0;)o.dAddOffset(1,this.m.t+1);for(o.subTo(this.r2,o);o.compareTo(this.m)>=0;)o.subTo(this.m,o)},e.prototype.mulTo=function(o,n,a){o.multiplyTo(n,a),this.reduce(a)},e.prototype.sqrTo=function(o,n){o.squareTo(n),this.reduce(n)},e}();function pe(){return new ge(null)}function Me(e,o){return new ge(e,o)}var kr=typeof navigator<"u";kr&&Cr&&navigator.appName=="Microsoft Internet Explorer"?(ge.prototype.am=function(o,n,a,i,r,s){for(var l=n&32767,d=n>>15;--s>=0;){var c=this[o]&32767,f=this[o++]>>15,x=d*c+f*l;c=l*c+((x&32767)<<15)+a[i]+(r&1073741823),r=(c>>>30)+(x>>>15)+d*f+(r>>>30),a[i++]=c&1073741823}return r},Dt=30):kr&&Cr&&navigator.appName!="Netscape"?(ge.prototype.am=function(o,n,a,i,r,s){for(;--s>=0;){var l=n*this[o++]+a[i]+r;r=Math.floor(l/67108864),a[i++]=l&67108863}return r},Dt=26):(ge.prototype.am=function(o,n,a,i,r,s){for(var l=n&16383,d=n>>14;--s>=0;){var c=this[o]&16383,f=this[o++]>>14,x=d*c+f*l;c=l*c+((x&16383)<<14)+a[i]+r,r=(c>>28)+(x>>14)+d*f,a[i++]=c&268435455}return r},Dt=28),ge.prototype.DB=Dt,ge.prototype.DM=(1<<Dt)-1,ge.prototype.DV=1<<Dt;var No=52;ge.prototype.FV=Math.pow(2,No),ge.prototype.F1=No-Dt,ge.prototype.F2=2*Dt-No;var Cn=[],Jt,ht;for(Jt="0".charCodeAt(0),ht=0;ht<=9;++ht)Cn[Jt++]=ht;for(Jt="a".charCodeAt(0),ht=10;ht<36;++ht)Cn[Jt++]=ht;for(Jt="A".charCodeAt(0),ht=10;ht<36;++ht)Cn[Jt++]=ht;function Tr(e,o){var n=Cn[e.charCodeAt(o)];return n??-1}function It(e){var o=pe();return o.fromInt(e),o}function wn(e){var o=1,n;return(n=e>>>16)!=0&&(e=n,o+=16),(n=e>>8)!=0&&(e=n,o+=8),(n=e>>4)!=0&&(e=n,o+=4),(n=e>>2)!=0&&(e=n,o+=2),(n=e>>1)!=0&&(e=n,o+=1),o}ge.ZERO=It(0),ge.ONE=It(1);var Rc=function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(o){var n,a,i;for(n=0;n<256;++n)this.S[n]=n;for(a=0,n=0;n<256;++n)a=a+this.S[n]+o[n%o.length]&255,i=this.S[n],this.S[n]=this.S[a],this.S[a]=i;this.i=0,this.j=0},e.prototype.next=function(){var o;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,o=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=o,this.S[o+this.S[this.i]&255]},e}();function Lc(){return new Rc}var Br=256,An,Rt=null,xt;if(Rt==null){Rt=[],xt=0;var kn=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var _o=new Uint32Array(256);for(window.crypto.getRandomValues(_o),kn=0;kn<_o.length;++kn)Rt[xt++]=_o[kn]&255}var Tn=0,Bn=function(e){if(Tn=Tn||0,Tn>=256||xt>=Br){window.removeEventListener?window.removeEventListener("mousemove",Bn,!1):window.detachEvent&&window.detachEvent("onmousemove",Bn);return}try{var o=e.x+e.y;Rt[xt++]=o&255,Tn+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",Bn,!1):window.attachEvent&&window.attachEvent("onmousemove",Bn))}function Nc(){if(An==null){for(An=Lc();xt<Br;){var e=Math.floor(65536*Math.random());Rt[xt++]=e&255}for(An.init(Rt),xt=0;xt<Rt.length;++xt)Rt[xt]=0;xt=0}return An.next()}var Oo=function(){function e(){}return e.prototype.nextBytes=function(o){for(var n=0;n<o.length;++n)o[n]=Nc()},e}();function _c(e,o){if(o<e.length+22)return console.error("Message too long for RSA"),null;for(var n=o-e.length-6,a="",i=0;i<n;i+=2)a+="ff";var r="0001"+a+"00"+e;return Me(r,16)}function Oc(e,o){if(o<e.length+11)return console.error("Message too long for RSA"),null;for(var n=[],a=e.length-1;a>=0&&o>0;){var i=e.charCodeAt(a--);i<128?n[--o]=i:i>127&&i<2048?(n[--o]=i&63|128,n[--o]=i>>6|192):(n[--o]=i&63|128,n[--o]=i>>6&63|128,n[--o]=i>>12|224)}n[--o]=0;for(var r=new Oo,s=[];o>2;){for(s[0]=0;s[0]==0;)r.nextBytes(s);n[--o]=s[0]}return n[--o]=2,n[--o]=0,new ge(n)}var Fc=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(o){return o.modPowInt(this.e,this.n)},e.prototype.doPrivate=function(o){if(this.p==null||this.q==null)return o.modPow(this.d,this.n);for(var n=o.mod(this.p).modPow(this.dmp1,this.p),a=o.mod(this.q).modPow(this.dmq1,this.q);n.compareTo(a)<0;)n=n.add(this.p);return n.subtract(a).multiply(this.coeff).mod(this.p).multiply(this.q).add(a)},e.prototype.setPublic=function(o,n){o!=null&&n!=null&&o.length>0&&n.length>0?(this.n=Me(o,16),this.e=parseInt(n,16)):console.error("Invalid RSA public key")},e.prototype.encrypt=function(o){var n=this.n.bitLength()+7>>3,a=Oc(o,n);if(a==null)return null;var i=this.doPublic(a);if(i==null)return null;for(var r=i.toString(16),s=r.length,l=0;l<n*2-s;l++)r="0"+r;return r},e.prototype.setPrivate=function(o,n,a){o!=null&&n!=null&&o.length>0&&n.length>0?(this.n=Me(o,16),this.e=parseInt(n,16),this.d=Me(a,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(o,n,a,i,r,s,l,d){o!=null&&n!=null&&o.length>0&&n.length>0?(this.n=Me(o,16),this.e=parseInt(n,16),this.d=Me(a,16),this.p=Me(i,16),this.q=Me(r,16),this.dmp1=Me(s,16),this.dmq1=Me(l,16),this.coeff=Me(d,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(o,n){var a=new Oo,i=o>>1;this.e=parseInt(n,16);for(var r=new ge(n,16);;){for(;this.p=new ge(o-i,1,a),!(this.p.subtract(ge.ONE).gcd(r).compareTo(ge.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new ge(i,1,a),!(this.q.subtract(ge.ONE).gcd(r).compareTo(ge.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(ge.ONE),d=this.q.subtract(ge.ONE),c=l.multiply(d);if(c.gcd(r).compareTo(ge.ONE)==0){this.n=this.p.multiply(this.q),this.d=r.modInverse(c),this.dmp1=this.d.mod(l),this.dmq1=this.d.mod(d),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(o){var n=Me(o,16),a=this.doPrivate(n);return a==null?null:Mc(a,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(o,n,a){var i=new Oo,r=o>>1;this.e=parseInt(n,16);var s=new ge(n,16),l=this,d=function(){var c=function(){if(l.p.compareTo(l.q)<=0){var u=l.p;l.p=l.q,l.q=u}var m=l.p.subtract(ge.ONE),y=l.q.subtract(ge.ONE),h=m.multiply(y);h.gcd(s).compareTo(ge.ONE)==0?(l.n=l.p.multiply(l.q),l.d=s.modInverse(h),l.dmp1=l.d.mod(m),l.dmq1=l.d.mod(y),l.coeff=l.q.modInverse(l.p),setTimeout(function(){a()},0)):setTimeout(d,0)},f=function(){l.q=pe(),l.q.fromNumberAsync(r,1,i,function(){l.q.subtract(ge.ONE).gcda(s,function(u){u.compareTo(ge.ONE)==0&&l.q.isProbablePrime(10)?setTimeout(c,0):setTimeout(f,0)})})},x=function(){l.p=pe(),l.p.fromNumberAsync(o-r,1,i,function(){l.p.subtract(ge.ONE).gcda(s,function(u){u.compareTo(ge.ONE)==0&&l.p.isProbablePrime(10)?setTimeout(f,0):setTimeout(x,0)})})};setTimeout(x,0)};setTimeout(d,0)},e.prototype.sign=function(o,n,a){var i=zc(a),r=i+n(o).toString(),s=_c(r,this.n.bitLength()/4);if(s==null)return null;var l=this.doPrivate(s);if(l==null)return null;var d=l.toString(16);return d.length&1?"0"+d:d},e.prototype.verify=function(o,n,a){var i=Me(n,16),r=this.doPublic(i);if(r==null)return null;var s=r.toString(16).replace(/^1f+00/,""),l=Pc(s);return l==a(o).toString()},e}();function Mc(e,o){for(var n=e.toByteArray(),a=0;a<n.length&&n[a]==0;)++a;if(n.length-a!=o-1||n[a]!=2)return null;for(++a;n[a]!=0;)if(++a>=n.length)return null;for(var i="";++a<n.length;){var r=n[a]&255;r<128?i+=String.fromCharCode(r):r>191&&r<224?(i+=String.fromCharCode((r&31)<<6|n[a+1]&63),++a):(i+=String.fromCharCode((r&15)<<12|(n[a+1]&63)<<6|n[a+2]&63),a+=2)}return i}var En={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function zc(e){return En[e]||""}function Pc(e){for(var o in En)if(En.hasOwnProperty(o)){var n=En[o],a=n.length;if(e.substr(0,a)==n)return e.substr(a)}return e}/*!
|
|
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,C=this._iv,f=this._counter;C&&(f=this._counter=C.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 C=0;C<c;C++)o[s+C]^=h[C]}});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 C=c.parse(h);return s.create({ciphertext:C})}}}(),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=[],C=[],f=[],g=[],v=[],d=[],_=[];(function(){for(var p=[],y=0;y<256;y++)y<128?p[y]=y<<1:p[y]=y<<1^283;for(var E=0,S=0,y=0;y<256;y++){var P=S^S<<1^S<<2^S<<3^S<<4;P=P>>>8^P&255^99,l[E]=P,c[P]=E;var k=p[E],F=p[k],B=p[F],L=p[P]*257^P*16843008;u[E]=L<<24|L>>>8,h[E]=L<<16|L>>>16,C[E]=L<<8|L>>>24,f[E]=L;var L=B*16843009^F*65537^k*257^E*16843008;g[P]=L<<24|L>>>8,v[P]=L<<16|L>>>16,d[P]=L<<8|L>>>24,_[P]=L,E?(E=k^p[p[p[B^k]]],S^=p[p[S]]):E=S=1}})();var x=[0,1,2,4,8,16,32,64,128,27,54],m=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,S=y.sigBytes/4,P=this._nRounds=S+6,k=(P+1)*4,F=this._keySchedule=[],B=0;B<k;B++)B<S?F[B]=E[B]:(p=F[B-1],B%S?S>6&&B%S==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^=x[B/S|0]<<24),F[B]=F[B-S]^p);for(var L=this._invKeySchedule=[],O=0;O<k;O++){var B=k-O;if(O%4)var p=F[B];else var p=F[B-4];O<4||B<=4?L[O]=p:L[O]=g[l[p>>>24]]^v[l[p>>>16&255]]^d[l[p>>>8&255]]^_[l[p&255]]}}},encryptBlock:function(p,y){this._doCryptBlock(p,y,this._keySchedule,u,h,C,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,d,_,c);var E=p[y+1];p[y+1]=p[y+3],p[y+3]=E},_doCryptBlock:function(p,y,E,S,P,k,F,B){for(var L=this._nRounds,O=p[y]^E[0],D=p[y+1]^E[1],V=p[y+2]^E[2],M=p[y+3]^E[3],T=4,w=1;w<L;w++){var b=S[O>>>24]^P[D>>>16&255]^k[V>>>8&255]^F[M&255]^E[T++],A=S[D>>>24]^P[V>>>16&255]^k[M>>>8&255]^F[O&255]^E[T++],R=S[V>>>24]^P[M>>>16&255]^k[O>>>8&255]^F[D&255]^E[T++],I=S[M>>>24]^P[O>>>16&255]^k[D>>>8&255]^F[V&255]^E[T++];O=b,D=A,V=R,M=I}var b=(B[O>>>24]<<24|B[D>>>16&255]<<16|B[V>>>8&255]<<8|B[M&255])^E[T++],A=(B[D>>>24]<<24|B[V>>>16&255]<<16|B[M>>>8&255]<<8|B[O&255])^E[T++],R=(B[V>>>24]<<24|B[M>>>16&255]<<16|B[O>>>8&255]<<8|B[D&255])^E[T++],I=(B[M>>>24]<<24|B[O>>>16&255]<<16|B[D>>>8&255]<<8|B[V&255])^E[T++];p[y]=b,p[y+1]=A,p[y+2]=R,p[y+3]=I},keySize:256/32});i.AES=o._createHelper(m)}(),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],C=[{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 x=this._key,m=x.words,p=[],y=0;y<56;y++){var E=c[y]-1;p[y]=m[E>>>5]>>>31-E%32&1}for(var S=this._subKeys=[],P=0;P<16;P++){for(var k=S[P]=[],F=h[P],y=0;y<24;y++)k[y/6|0]|=p[(u[y]-1+F)%28]<<31-y%6,k[4+(y/6|0)]|=p[28+(u[y+24]-1+F)%28]<<31-y%6;k[0]=k[0]<<1|k[0]>>>31;for(var y=1;y<7;y++)k[y]=k[y]>>>(y-1)*4+3;k[7]=k[7]<<5|k[7]>>>27}for(var B=this._invSubKeys=[],y=0;y<16;y++)B[y]=S[15-y]},encryptBlock:function(x,m){this._doCryptBlock(x,m,this._subKeys)},decryptBlock:function(x,m){this._doCryptBlock(x,m,this._invSubKeys)},_doCryptBlock:function(x,m,p){this._lBlock=x[m],this._rBlock=x[m+1],v.call(this,4,252645135),v.call(this,16,65535),d.call(this,2,858993459),d.call(this,8,16711935),v.call(this,1,1431655765);for(var y=0;y<16;y++){for(var E=p[y],S=this._lBlock,P=this._rBlock,k=0,F=0;F<8;F++)k|=C[F][((P^E[F])&f[F])>>>0];this._lBlock=P,this._rBlock=S^k}var B=this._lBlock;this._lBlock=this._rBlock,this._rBlock=B,v.call(this,1,1431655765),d.call(this,8,16711935),d.call(this,2,858993459),v.call(this,16,65535),v.call(this,4,252645135),x[m]=this._lBlock,x[m+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function v(x,m){var p=(this._lBlock>>>x^this._rBlock)&m;this._rBlock^=p,this._lBlock^=p<<x}function d(x,m){var p=(this._rBlock>>>x^this._lBlock)&m;this._lBlock^=p,this._rBlock^=p<<x}i.DES=s._createHelper(g);var _=l.TripleDES=s.extend({_doReset:function(){var x=this._key,m=x.words;if(m.length!==2&&m.length!==4&&m.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var p=m.slice(0,2),y=m.length<4?m.slice(0,2):m.slice(2,4),E=m.length<6?m.slice(0,2):m.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(x,m){this._des1.encryptBlock(x,m),this._des2.decryptBlock(x,m),this._des3.encryptBlock(x,m)},decryptBlock:function(x,m){this._des3.decryptBlock(x,m),this._des2.encryptBlock(x,m),this._des1.decryptBlock(x,m)},keySize:192/32,ivSize:64/32,blockSize:64/32});i.TripleDES=s._createHelper(_)}(),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,C=h.words,f=h.sigBytes,g=this._S=[],v=0;v<256;v++)g[v]=v;for(var v=0,d=0;v<256;v++){var _=v%f,x=C[_>>>2]>>>24-_%4*8&255;d=(d+g[v]+x)%256;var m=g[v];g[v]=g[d],g[d]=m}this._i=this._j=0},_doProcessBlock:function(h,C){h[C]^=c.call(this)},keySize:256/32,ivSize:0});function c(){for(var h=this._S,C=this._i,f=this._j,g=0,v=0;v<4;v++){C=(C+1)%256,f=(f+h[C])%256;var d=h[C];h[C]=h[f],h[f]=d,g|=h[(h[C]+h[f])%256]<<24-v*8}return this._i=C,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 d=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],_=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++)C.call(this);for(var v=0;v<8;v++)_[v]^=d[v+4&7];if(g){var x=g.words,m=x[0],p=x[1],y=(m<<8|m>>>24)&16711935|(m<<24|m>>>8)&4278255360,E=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,S=y>>>16|E&4294901760,P=E<<16|y&65535;_[0]^=y,_[1]^=S,_[2]^=E,_[3]^=P,_[4]^=y,_[5]^=S,_[6]^=E,_[7]^=P;for(var v=0;v<4;v++)C.call(this)}},_doProcessBlock:function(f,g){var v=this._X;C.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 d=0;d<4;d++)l[d]=(l[d]<<8|l[d]>>>24)&16711935|(l[d]<<24|l[d]>>>8)&4278255360,f[g+d]^=l[d]},blockSize:128/32,ivSize:64/32});function C(){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 d=f[v]+g[v],_=d&65535,x=d>>>16,m=((_*_>>>17)+_*x>>>15)+x*x,p=((d&4294901760)*d|0)+((d&65535)*d|0);u[v]=m^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],d=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 _=0;_<4;_++)C.call(this);for(var _=0;_<8;_++)d[_]^=v[_+4&7];if(g){var x=g.words,m=x[0],p=x[1],y=(m<<8|m>>>24)&16711935|(m<<24|m>>>8)&4278255360,E=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,S=y>>>16|E&4294901760,P=E<<16|y&65535;d[0]^=y,d[1]^=S,d[2]^=E,d[3]^=P,d[4]^=y,d[5]^=S,d[6]^=E,d[7]^=P;for(var _=0;_<4;_++)C.call(this)}},_doProcessBlock:function(f,g){var v=this._X;C.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 d=0;d<4;d++)l[d]=(l[d]<<8|l[d]>>>24)&16711935|(l[d]<<24|l[d]>>>8)&4278255360,f[g+d]^=l[d]},blockSize:128/32,ivSize:64/32});function C(){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 d=f[v]+g[v],_=d&65535,x=d>>>16,m=((_*_>>>17)+_*x>>>15)+x*x,p=((d&4294901760)*d|0)+((d&65535)*d|0);u[v]=m^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
|
+
\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
|
+
\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
|
+
`;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
|
+
`}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
|
+
`,l="",c=r+1;c<n;++c){for(var u=this.get(c),h=c==n-1?a:0,C=7;C>=h;--C)l+=u>>C&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
|
+
`;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 C=[];if(o!==null){for(var f=s+o;n.pos<f;)C[C.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;C[C.length]=g}o=s-n.pos}catch(v){throw new Error("Exception while decoding undefined length content: "+v)}return C};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 C=nbi();for(s.sqrTo(l[1],C);c<=h;)l[c]=nbi(),s.mulTo(C,l[c-2],l[c]),c+=2}var f=r.t-1,g,v=!0,d=nbi(),_;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,d),s.sqrTo(d,o),c-=2;c>0?s.sqrTo(o,d):(_=o,o=d,d=_),s.mulTo(d,l[g],o)}for(;f>=0&&!(r[f]&1<<i);)s.sqrTo(o,d),_=o,o=d,d=_,--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,C=s[h-1];if(C!=0){var f=C*(1<<this.F1)+(h>1?s[h-2]>>this.F2:0),g=this.FV/f,v=(1<<this.F1)/f,d=1<<this.F2,_=i.t,x=_-h,m=n??nbi();for(s.dlShiftTo(x,m),i.compareTo(m)>=0&&(i[i.t++]=1,i.subTo(m,i)),e.ONE.dlShiftTo(h,m),m.subTo(s,s);s.t<h;)s[s.t++]=0;for(;--x>=0;){var p=i[--_]==C?this.DM:Math.floor(i[_]*g+(i[_-1]+d)*v);if((i[_]+=s.am(0,p,i,x,0,h))<p)for(s.dlShiftTo(x,m),i.subTo(m,i);i[_]<--p;)i.subTo(m,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=typeof navigator<"u";inBrowser&&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,C=c*u+h*l;u=l*u+((C&32767)<<15)+i[a]+(o&1073741823),o=(u>>>30)+(C>>>15)+c*h+(o>>>30),i[a++]=u&1073741823}return o},dbits=30):inBrowser&&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,C=c*u+h*l;u=l*u+((C&16383)<<14)+i[a]+o,o=(u>>28)+(C>>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=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var z=new Uint32Array(256);for(window.crypto.getRandomValues(z),t=0;t<z.length;++t)rng_pool[rng_pptr++]=z[t]&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),d=g.multiply(v);d.gcd(s).compareTo(BigInteger.ONE)==0?(l.n=l.p.multiply(l.q),l.d=s.modInverse(d),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)})})},C=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(C,0)})})};setTimeout(C,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
|
|
82
82
|
version: 2.9.0
|
|
83
|
-
*/var
|
|
83
|
+
*/var YAHOO={};YAHOO.lang={extend:function(e,r,n){if(!r||!e)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var i=function(){};if(i.prototype=r.prototype,e.prototype=new i,e.prototype.constructor=e,e.superclass=r.prototype,r.prototype.constructor==Object.prototype.constructor&&(r.prototype.constructor=r),n){var a;for(a in n)e.prototype[a]=n[a];var o=function(){},s=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(o=function(l,c){for(a=0;a<s.length;a=a+1){var u=s[a],h=c[u];typeof h=="function"&&h!=Object.prototype[u]&&(l[u]=h)}})}catch{}o(e.prototype,n)}}};/**
|
|
84
84
|
* @fileOverview
|
|
85
85
|
* @name asn1-1.0.js
|
|
86
86
|
* @author Kenji Urushima kenji.urushima@gmail.com
|
|
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 Z={};(typeof Z.asn1>"u"||!Z.asn1)&&(Z.asn1={}),Z.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var o=e.toString(16);return o.length%2==1&&(o="0"+o),o},this.bigIntToMinTwosComplementsHex=function(e){var o=e.toString(16);if(o.substr(0,1)!="-")o.length%2==1?o="0"+o:o.match(/^[0-7]/)||(o="00"+o);else{var n=o.substr(1),a=n.length;a%2==1?a+=1:o.match(/^[0-7]/)||(a+=2);for(var i="",r=0;r<a;r++)i+="f";var s=new ge(i,16),l=s.xor(e).add(ge.ONE);o=l.toString(16).replace(/^-/,"")}return o},this.getPEMStringFromHex=function(e,o){return hextopem(e,o)},this.newObject=function(e){var o=Z,n=o.asn1,a=n.DERBoolean,i=n.DERInteger,r=n.DERBitString,s=n.DEROctetString,l=n.DERNull,d=n.DERObjectIdentifier,c=n.DEREnumerated,f=n.DERUTF8String,x=n.DERNumericString,u=n.DERPrintableString,m=n.DERTeletexString,y=n.DERIA5String,h=n.DERUTCTime,A=n.DERGeneralizedTime,I=n.DERSequence,v=n.DERSet,S=n.DERTaggedObject,C=n.ASN1Util.newObject,B=Object.keys(e);if(B.length!=1)throw"key of param shall be only one.";var g=B[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+g+":")==-1)throw"undefined key: "+g;if(g=="bool")return new a(e[g]);if(g=="int")return new i(e[g]);if(g=="bitstr")return new r(e[g]);if(g=="octstr")return new s(e[g]);if(g=="null")return new l(e[g]);if(g=="oid")return new d(e[g]);if(g=="enum")return new c(e[g]);if(g=="utf8str")return new f(e[g]);if(g=="numstr")return new x(e[g]);if(g=="prnstr")return new u(e[g]);if(g=="telstr")return new m(e[g]);if(g=="ia5str")return new y(e[g]);if(g=="utctime")return new h(e[g]);if(g=="gentime")return new A(e[g]);if(g=="seq"){for(var R=e[g],p=[],D=0;D<R.length;D++){var w=C(R[D]);p.push(w)}return new I({array:p})}if(g=="set"){for(var R=e[g],p=[],D=0;D<R.length;D++){var w=C(R[D]);p.push(w)}return new v({array:p})}if(g=="tag"){var L=e[g];if(Object.prototype.toString.call(L)==="[object Array]"&&L.length==3){var M=C(L[2]);return new S({tag:L[0],explicit:L[1],obj:M})}else{var k={};if(L.explicit!==void 0&&(k.explicit=L.explicit),L.tag!==void 0&&(k.tag=L.tag),L.obj===void 0)throw"obj shall be specified for 'tag'.";return k.obj=C(L.obj),new S(k)}}},this.jsonToASN1HEX=function(e){var o=this.newObject(e);return o.getEncodedHex()}},Z.asn1.ASN1Util.oidHexToInt=function(e){for(var i="",o=parseInt(e.substr(0,2),16),n=Math.floor(o/40),a=o%40,i=n+"."+a,r="",s=2;s<e.length;s+=2){var l=parseInt(e.substr(s,2),16),d=("00000000"+l.toString(2)).slice(-8);if(r=r+d.substr(1,7),d.substr(0,1)=="0"){var c=new ge(r,2);i=i+"."+c.toString(10),r=""}}return i},Z.asn1.ASN1Util.oidIntToHex=function(e){var o=function(l){var d=l.toString(16);return d.length==1&&(d="0"+d),d},n=function(l){var d="",c=new ge(l,10),f=c.toString(2),x=7-f.length%7;x==7&&(x=0);for(var u="",m=0;m<x;m++)u+="0";f=u+f;for(var m=0;m<f.length-1;m+=7){var y=f.substr(m,7);m!=f.length-7&&(y="1"+y),d+=o(parseInt(y,2))}return d};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var a="",i=e.split("."),r=parseInt(i[0])*40+parseInt(i[1]);a+=o(r),i.splice(0,2);for(var s=0;s<i.length;s++)a+=n(i[s]);return a},Z.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 o=this.hV.length/2,n=o.toString(16);if(n.length%2==1&&(n="0"+n),o<128)return n;var a=n.length/2;if(a>15)throw"ASN.1 length too long to represent by 8x: n = "+o.toString(16);var i=128+a;return i.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""}},Z.asn1.DERAbstractString=function(e){Z.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(o){this.hTLV=null,this.isModified=!0,this.s=o,this.hV=stohex(this.s)},this.setStringHex=function(o){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=o},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))},Pe.lang.extend(Z.asn1.DERAbstractString,Z.asn1.ASN1Object),Z.asn1.DERAbstractTime=function(e){Z.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(o){utc=o.getTime()+o.getTimezoneOffset()*6e4;var n=new Date(utc);return n},this.formatDate=function(o,n,a){var i=this.zeroPadding,r=this.localDateToUTC(o),s=String(r.getFullYear());n=="utc"&&(s=s.substr(2,2));var l=i(String(r.getMonth()+1),2),d=i(String(r.getDate()),2),c=i(String(r.getHours()),2),f=i(String(r.getMinutes()),2),x=i(String(r.getSeconds()),2),u=s+l+d+c+f+x;if(a===!0){var m=r.getMilliseconds();if(m!=0){var y=i(String(m),3);y=y.replace(/[0]+$/,""),u=u+"."+y}}return u+"Z"},this.zeroPadding=function(o,n){return o.length>=n?o:new Array(n-o.length+1).join("0")+o},this.getString=function(){return this.s},this.setString=function(o){this.hTLV=null,this.isModified=!0,this.s=o,this.hV=stohex(o)},this.setByDateValue=function(o,n,a,i,r,s){var l=new Date(Date.UTC(o,n-1,a,i,r,s,0));this.setByDate(l)},this.getFreshValueHex=function(){return this.hV}},Pe.lang.extend(Z.asn1.DERAbstractTime,Z.asn1.ASN1Object),Z.asn1.DERAbstractStructured=function(e){Z.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(o){this.hTLV=null,this.isModified=!0,this.asn1Array=o},this.appendASN1Object=function(o){this.hTLV=null,this.isModified=!0,this.asn1Array.push(o)},this.asn1Array=new Array,typeof e<"u"&&typeof e.array<"u"&&(this.asn1Array=e.array)},Pe.lang.extend(Z.asn1.DERAbstractStructured,Z.asn1.ASN1Object),Z.asn1.DERBoolean=function(){Z.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},Pe.lang.extend(Z.asn1.DERBoolean,Z.asn1.ASN1Object),Z.asn1.DERInteger=function(e){Z.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(o){this.hTLV=null,this.isModified=!0,this.hV=Z.asn1.ASN1Util.bigIntToMinTwosComplementsHex(o)},this.setByInteger=function(o){var n=new ge(String(o),10);this.setByBigInteger(n)},this.setValueHex=function(o){this.hV=o},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))},Pe.lang.extend(Z.asn1.DERInteger,Z.asn1.ASN1Object),Z.asn1.DERBitString=function(e){if(e!==void 0&&typeof e.obj<"u"){var o=Z.asn1.ASN1Util.newObject(e.obj);e.hex="00"+o.getEncodedHex()}Z.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,a){if(n<0||7<n)throw"unused bits shall be from 0 to 7: u = "+n;var i="0"+n;this.hTLV=null,this.isModified=!0,this.hV=i+a},this.setByBinaryString=function(n){n=n.replace(/0+$/,"");var a=8-n.length%8;a==8&&(a=0);for(var i=0;i<=a;i++)n+="0";for(var r="",i=0;i<n.length-1;i+=8){var s=n.substr(i,8),l=parseInt(s,2).toString(16);l.length==1&&(l="0"+l),r+=l}this.hTLV=null,this.isModified=!0,this.hV="0"+a+r},this.setByBooleanArray=function(n){for(var a="",i=0;i<n.length;i++)n[i]==!0?a+="1":a+="0";this.setByBinaryString(a)},this.newFalseArray=function(n){for(var a=new Array(n),i=0;i<n;i++)a[i]=!1;return a},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))},Pe.lang.extend(Z.asn1.DERBitString,Z.asn1.ASN1Object),Z.asn1.DEROctetString=function(e){if(e!==void 0&&typeof e.obj<"u"){var o=Z.asn1.ASN1Util.newObject(e.obj);e.hex=o.getEncodedHex()}Z.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},Pe.lang.extend(Z.asn1.DEROctetString,Z.asn1.DERAbstractString),Z.asn1.DERNull=function(){Z.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},Pe.lang.extend(Z.asn1.DERNull,Z.asn1.ASN1Object),Z.asn1.DERObjectIdentifier=function(e){var o=function(a){var i=a.toString(16);return i.length==1&&(i="0"+i),i},n=function(a){var i="",r=new ge(a,10),s=r.toString(2),l=7-s.length%7;l==7&&(l=0);for(var d="",c=0;c<l;c++)d+="0";s=d+s;for(var c=0;c<s.length-1;c+=7){var f=s.substr(c,7);c!=s.length-7&&(f="1"+f),i+=o(parseInt(f,2))}return i};Z.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(a){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=a},this.setValueOidString=function(a){if(!a.match(/^[0-9.]+$/))throw"malformed oid string: "+a;var i="",r=a.split("."),s=parseInt(r[0])*40+parseInt(r[1]);i+=o(s),r.splice(0,2);for(var l=0;l<r.length;l++)i+=n(r[l]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=i},this.setValueName=function(a){var i=Z.asn1.x509.OID.name2oid(a);if(i!=="")this.setValueOidString(i);else throw"DERObjectIdentifier oidName undefined: "+a},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))},Pe.lang.extend(Z.asn1.DERObjectIdentifier,Z.asn1.ASN1Object),Z.asn1.DEREnumerated=function(e){Z.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(o){this.hTLV=null,this.isModified=!0,this.hV=Z.asn1.ASN1Util.bigIntToMinTwosComplementsHex(o)},this.setByInteger=function(o){var n=new ge(String(o),10);this.setByBigInteger(n)},this.setValueHex=function(o){this.hV=o},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))},Pe.lang.extend(Z.asn1.DEREnumerated,Z.asn1.ASN1Object),Z.asn1.DERUTF8String=function(e){Z.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},Pe.lang.extend(Z.asn1.DERUTF8String,Z.asn1.DERAbstractString),Z.asn1.DERNumericString=function(e){Z.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},Pe.lang.extend(Z.asn1.DERNumericString,Z.asn1.DERAbstractString),Z.asn1.DERPrintableString=function(e){Z.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},Pe.lang.extend(Z.asn1.DERPrintableString,Z.asn1.DERAbstractString),Z.asn1.DERTeletexString=function(e){Z.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},Pe.lang.extend(Z.asn1.DERTeletexString,Z.asn1.DERAbstractString),Z.asn1.DERIA5String=function(e){Z.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},Pe.lang.extend(Z.asn1.DERIA5String,Z.asn1.DERAbstractString),Z.asn1.DERUTCTime=function(e){Z.asn1.DERUTCTime.superclass.constructor.call(this,e),this.hT="17",this.setByDate=function(o){this.hTLV=null,this.isModified=!0,this.date=o,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))},Pe.lang.extend(Z.asn1.DERUTCTime,Z.asn1.DERAbstractTime),Z.asn1.DERGeneralizedTime=function(e){Z.asn1.DERGeneralizedTime.superclass.constructor.call(this,e),this.hT="18",this.withMillis=!1,this.setByDate=function(o){this.hTLV=null,this.isModified=!0,this.date=o,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))},Pe.lang.extend(Z.asn1.DERGeneralizedTime,Z.asn1.DERAbstractTime),Z.asn1.DERSequence=function(e){Z.asn1.DERSequence.superclass.constructor.call(this,e),this.hT="30",this.getFreshValueHex=function(){for(var o="",n=0;n<this.asn1Array.length;n++){var a=this.asn1Array[n];o+=a.getEncodedHex()}return this.hV=o,this.hV}},Pe.lang.extend(Z.asn1.DERSequence,Z.asn1.DERAbstractStructured),Z.asn1.DERSet=function(e){Z.asn1.DERSet.superclass.constructor.call(this,e),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var o=new Array,n=0;n<this.asn1Array.length;n++){var a=this.asn1Array[n];o.push(a.getEncodedHex())}return this.sortFlag==!0&&o.sort(),this.hV=o.join(""),this.hV},typeof e<"u"&&typeof e.sortflag<"u"&&e.sortflag==!1&&(this.sortFlag=!1)},Pe.lang.extend(Z.asn1.DERSet,Z.asn1.DERAbstractStructured),Z.asn1.DERTaggedObject=function(e){Z.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(o,n,a){this.hT=n,this.isExplicit=o,this.asn1Object=a,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=a.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)))},Pe.lang.extend(Z.asn1.DERTaggedObject,Z.asn1.ASN1Object);var qc=globalThis&&globalThis.__extends||function(){var e=function(o,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,i){a.__proto__=i}||function(a,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(a[r]=i[r])},e(o,n)};return function(o,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(o,n);function a(){this.constructor=o}o.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),Er=function(e){qc(o,e);function o(n){var a=e.call(this)||this;return n&&(typeof n=="string"?a.parseKey(n):(o.hasPrivateKeyProperty(n)||o.hasPublicKeyProperty(n))&&a.parsePropertiesFrom(n)),a}return o.prototype.parseKey=function(n){try{var a=0,i=0,r=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,s=r.test(n)?wc.decode(n):Ro.unarmor(n),l=Tc.decode(s);if(l.sub.length===3&&(l=l.sub[2].sub[0]),l.sub.length===9){a=l.sub[1].getHexStringValue(),this.n=Me(a,16),i=l.sub[2].getHexStringValue(),this.e=parseInt(i,16);var d=l.sub[3].getHexStringValue();this.d=Me(d,16);var c=l.sub[4].getHexStringValue();this.p=Me(c,16);var f=l.sub[5].getHexStringValue();this.q=Me(f,16);var x=l.sub[6].getHexStringValue();this.dmp1=Me(x,16);var u=l.sub[7].getHexStringValue();this.dmq1=Me(u,16);var m=l.sub[8].getHexStringValue();this.coeff=Me(m,16)}else if(l.sub.length===2)if(l.sub[0].sub){var y=l.sub[1],h=y.sub[0];a=h.sub[0].getHexStringValue(),this.n=Me(a,16),i=h.sub[1].getHexStringValue(),this.e=parseInt(i,16)}else a=l.sub[0].getHexStringValue(),this.n=Me(a,16),i=l.sub[1].getHexStringValue(),this.e=parseInt(i,16);else return!1;return!0}catch{return!1}},o.prototype.getPrivateBaseKey=function(){var n={array:[new Z.asn1.DERInteger({int:0}),new Z.asn1.DERInteger({bigint:this.n}),new Z.asn1.DERInteger({int:this.e}),new Z.asn1.DERInteger({bigint:this.d}),new Z.asn1.DERInteger({bigint:this.p}),new Z.asn1.DERInteger({bigint:this.q}),new Z.asn1.DERInteger({bigint:this.dmp1}),new Z.asn1.DERInteger({bigint:this.dmq1}),new Z.asn1.DERInteger({bigint:this.coeff})]},a=new Z.asn1.DERSequence(n);return a.getEncodedHex()},o.prototype.getPrivateBaseKeyB64=function(){return Sn(this.getPrivateBaseKey())},o.prototype.getPublicBaseKey=function(){var n=new Z.asn1.DERSequence({array:[new Z.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new Z.asn1.DERNull]}),a=new Z.asn1.DERSequence({array:[new Z.asn1.DERInteger({bigint:this.n}),new Z.asn1.DERInteger({int:this.e})]}),i=new Z.asn1.DERBitString({hex:"00"+a.getEncodedHex()}),r=new Z.asn1.DERSequence({array:[n,i]});return r.getEncodedHex()},o.prototype.getPublicBaseKeyB64=function(){return Sn(this.getPublicBaseKey())},o.wordwrap=function(n,a){if(a=a||64,!n)return n;var i="(.{1,"+a+`})( +|$
|
|
91
|
-
?)|(.{1,`+
|
|
92
|
-
`)},
|
|
93
|
-
`;return n+=
|
|
94
|
-
`,n+="-----END RSA PRIVATE KEY-----",n},
|
|
95
|
-
`;return n+=
|
|
96
|
-
`,n+="-----END PUBLIC KEY-----",n},
|
|
97
|
-
`),
|
|
98
|
-
`))==null?void 0:s.length)-1;let
|
|
99
|
-
`;let r=e;if(n!=null&&n.length){for(const l of n){const d=_e(l,{textData:o},{useNewline:!1,useSpace:!1});d&&(r=r.replace(l,d))}return`${i}{text|${r}}`}else return e},Fr=(e,o)=>{const{props:n,componentList:a,getGlobalModel:i}=e,{graphicConfig:r={},startValue:s,endValue:l}=n,d=Xc({graphicConfig:r,startValue:s,endValue:l,componentList:a,getGlobalModel:i}),{dimensions:c,dataset:f}=o,{classificationList:x=[]}=r,m=x.find(y=>y.show).label||"";for(const y of d)c.includes(y)||c.push(y);c.sort((y,h)=>be(y).isBefore(be(h))?-1:1);for(const y of f){const{data:h}=y;if(h!=null&&h.length){const A=[];for(const I of d)if(h.find(v=>v[m]!==I)){const v=Oe.cloneDeep(h[0]);for(const S in v)S===m?v[S]=I:v[S]=0;A.push(v)}y.data.push(...A),y.data.sort((I,v)=>be(I[m]).isBefore(be(v[m]))?-1:1)}}},un=e=>{const o=[];for(const n of e)n.conditions?o.push(...un(n.conditions)):(n==null?void 0:n.dataType)==="component"&&o.push(n);return o};function Xc(e){const{startValue:o,endValue:n,componentList:a,graphicConfig:i,getGlobalModel:r}=e,s=Mr(o),l=Mr(n),d=[];if(s&&l){const c=a.find(x=>x.keyName===s.keyName),f=a.find(x=>x.keyName===l.keyName);if(c&&f){const x=r(c.id),u=r(f.id),{classificationList:m=[]}=i,y=m.find(h=>h.show);if(y){let h="YYYY-MM";switch(y.name){case"the_year":h="YYYY";break;case"the_month":h="MM";break;case"the_day":h="DD";break;case"the_date":h=(y==null?void 0:y.dateFormat)||h;break}const A=zr(h);if(h){const I=t.unref(x[s.field]),v=t.unref(u[l.field]);let S=be(I);const C=be(v);for(d.push(C.format(h));S.isBefore(C);)d.push(S.format(h)),S=S.add(1,A)}}}}return d}function Mr(e){let o=null;if(e){const n=e.match(/\{(.+?)\}/g);if(n!=null&&n.length){let a=n[0].slice(1,-1).trim();const i=a.match(/\[(.+?)\]/g);let r="";i!=null&&i.length&&(a=a.replace(i[0],""),r=i[0].slice(1,-1).trim()),o={keyName:a,field:r}}}return o}function zr(e){const o=e.split("-");let n="";if(o!=null&&o.length)switch(o[o.length-1]){case"YYYY":n="year";break;case"MM":n="month";break;case"DD":n="day";break}return n}const hn=(e,o)=>{const n={dayjs:be,...o};let a="";const i=[];for(const l in n)a+=`${l},`,i.push(n[l]);a=a.replace(/,$/,"");const r=`function (${a}){return ${e}}`;let s;try{s=Function(`"use strict";return (${r})`)()(...i)}catch{return e}return s},_e=(e="",{textData:o,codeData:n}={},{useNewline:a=!1,useSpace:i=!1}={})=>{const s={...window.config||{},...o},l=e.match(/\{(.+?)\}/g);if(l==null||l.length===0)return e;for(let d=0;d<l.length;d++){const c=l[d];let f=c.slice(1,-1).trim();const x=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,u=f.match(x);for(let m=0;m<u.length;m++){const y=u[m],h=s[y];h!=null&&typeof h!="function"&&(f=f.replace(y,h))}(/\(.*\)/g.test(f)||/[+/\\*]/g.test(f))&&(f=hn(f,n)),e=e.replace(c,f)}return a&&(e=e==null?void 0:e.replace(/\n|\\n/g,"<br/>")),i&&(e=e==null?void 0:e.replace(/\s{2,}?/g," ")),e},je=(e,o=()=>{})=>{const{requestUrl:n,requestMethod:a,requestHeaders:i,requestParams:r,requestInterval:s,isOpenRequestTimer:l,openCustomRequestData:d,projectRequestUrl:c="",getModel:f}=e,{pageMode:x}=t.inject(ze,{pageMode:"normal"}),{contextRequestUrl:u,touchEventId:m}=t.inject(ze,{contextRequestUrl:"",touchEventId:""})||{},{getGlobalModel:y}=t.inject(Le,{getGlobalModel:S=>{}})||{},h=f||y,A=_e(n),I=async(S={})=>{if(!A||!a||!i)return;let C={};r.forEach(D=>{const{key:w,value:L}=D;if(typeof L=="object"&&L!=null&&L.id){let M={};const{id:k,prop:O,propKey:T,operate:F}=L;k==="THIS"?M=h(t.unref(m))||{}:M=h(k)||{};const b=t.unref(M[O]);let E=null;if(["date","range"].some(q=>st(M==null?void 0:M.type,q))){const{value:q,type:N,mode:V}=F||{};if(q&&N&&V)switch(N){case"add":E=t.unref(b).add(q,V);break;case"minus":E=t.unref(b).subtract(q,V);break}E==null&&(E=t.unref(b)),E=(E==null?void 0:E.format((T==null?void 0:T.trim())||M.format))||""}else Object.prototype.toString.call(b)==="[object Object]"?T?E=b[T]:E=O?b[O]:b:st(M==null?void 0:M.type,"select")&&t.unref(b)&&O&&Array.isArray(t.unref(b))?E=t.unref(b).map(q=>Object.prototype.hasOwnProperty.call(q,O)?q[O]:q):E=b;C[w]=E}else typeof L=="string"&&(C[w]=_e(L))}),C={...window.config.requestParams,...S,...C};let B="";const g=Object.keys(C),R=g.length-1,p=g.length;g.forEach((D,w)=>{let L=C[D];Object.prototype.toString.call(L)==="[object Object]"&&(L=JSON.stringify(L)),w===0?p!==1?B+=`?${D}=${L}&`:B+=`?${D}=${L}`:w===R?B+=`${D}=${L}`:B+=`${D}=${L}&`});try{const D=["get","head"].includes(a),w={};let L=D?A+B:A;C.dataSqlId&&!L.includes("dataSqlId")&&(L+=`${L.includes("?")?"&":"?"}dataSqlId=${C.dataSqlId}`),Object.prototype.hasOwnProperty.call(C,"signal")&&(w.signal=C.signal);const M=await vt({baseURL:t.unref(u)||c||"",url:L,method:a,headers:i,data:D?{}:C,...w});return o(M),M}catch(D){console.error(D)}},v=t.unref(x)!=="design"&&l&&(d||d===void 0)&&setInterval(I,s*1e3);return t.onUnmounted(()=>{clearInterval(v)}),I},Lt=(e=[],o,n=!1)=>{let{name:a="name",types:i=[]}=o||{};a=(a==null?void 0:a.trim())||a;const r=new Set,s=new Map,l=e.length,d=i.length;if(l===1&&!n){const x=[];for(let m=0;m<d;m++){const y=i[m],{label:h,value:A}=y,I={...e[0],value:e[0][A]};r.add(h),x.push(I)}const u=e[0][a]||"";s.set(u,x)}else for(let x=0;x<l;x++){const u=e[x],m=u[a];r.add(m);for(let y=0;y<d;y++){const h=i[y],{label:A,value:I}=h,v={...u,value:u[I]||0};if(s.has(A)){const S=s.get(A);S.push(v),s.set(A,S)}else s.set(A,[v])}}const c=Array.from(r),f=[];for(const[x,u]of s)f.push({name:x,data:u});return{dimensions:c,dataset:f}},pt=(e,o=!1)=>{var a;if(!e)return e;let n="";return e!=null&&e.includes("://")?n=e:n=((a=window==null?void 0:window.config)==null?void 0:a.uploadPath)+e,o&&(n=`url(${n})`),n},zo=(e,o)=>{const n=`${Ii}/preview?pageId=${o}`,a=`${Ii}/${o}`;return e==="preview"?n:a},mt=(e,o)=>{var i;if(e==null)return o;const n=e.match(/\{.*\}/g);if(n==null||n.length===0)return o;const a=n.length;for(let r=0;r<a;r++){const s=n[r];if(s==null||s==="")break;let l=(i=s.slice(1,-1))==null?void 0:i.trim();l=l==null?void 0:l.replace(/value/g,o);try{let d=l;(/\(.*\)/g.test(l)||/[+/\\*]/g.test(l))&&(d=hn(l)),e=e.replace(s,d)}catch{e=e.replace(s,l)}}return e},Xe=(e={},o=()=>{})=>{var B;const{pageMode:n}=t.inject(ze,{pageMode:"normal"}),{requestToken:a}=t.inject(Ti,{requestToken:()=>{}}),{setLoadedData:i}=t.inject(Et,{setLoadedData:(g,R)=>{}}),{getGlobalModel:r}=t.inject(Le,{getGlobalModel:g=>{}});e.dataType==="indicator"&&a();const s=g=>{const{around:R,unit:p,id:D}=g;let w="";const{pageMode:L="",componentList:M=[]}=(e==null?void 0:e.graphicConfig)||{};let k=null,O=null;if(L==="design"){const T=M==null?void 0:M.find(V=>V.id===D);if(!T)return[];const{interval:F,intervalUnit:b,startTime:E,endTime:_,operate:q,useCurrentTime:N}=T||{};if(N&&(k=be().subtract(F,b),O=be()),E&&(k=be(E)),_&&(O=be(_)),q){const{type:V,value:z,mode:P}=q;switch(V){case"add":k=k&&k.add(z,P),O=O&&O.add(z,P);break;case"minus":k=k&&k.subtract(z,P),O=O&&O.subtract(z,P)}}}else{const T=r(D)||{};t.unref(T.startTime)&&(k=be(t.unref(T.startTime))),t.unref(T.endTime)&&(O=be(t.unref(T.endTime)))}if(k&&O){const T=O.diff(k,p.toLowerCase());w=`${R==="before"?"-":""}${T+1}`}return w?[w]:[]},l=(g,R)=>Object.prototype.hasOwnProperty.call(g,R),d=(g,R)=>{if(R)l(g,"indexCode")&&(g.hrpIndexCode=g.indexCode,delete g.indexCode),l(g,"indexCodeNum")&&(g.hrpIndexCodeNum=g.indexCodeNum,delete g.indexCodeNum),l(g,"dataType")&&delete g.dataType;else{const{calcWays:p=[],dateCalcTypes:D=[],activeKey:w,componentId:L=""}=g;if(w===5&&(p!=null&&p.length)&&(D!=null&&D.length)&&L){const M=p[0].split("-");(M==null?void 0:M.length)>1&&M[0]==="rangeValue"&&(g.calcWays=s({around:M[1],unit:D[0],id:L})),delete g.radioValue}l(g,"dataType")&&(g.fieldType==="DATE"&&(g.label=g.fieldName),g.dataType==="component"&&(g.fieldValue="${"+g.fieldValue+"}"),delete g.dataType),l(g,"activeKey")&&delete g.activeKey,l(g,"radioValue")&&delete g.radioValue,l(g,"indexCode")&&(g.hrpIndexCode=g.indexCode,delete g.indexCode),l(g,"indexCodeNum")&&(g.hrpIndexCodeNum=g.indexCodeNum,delete g.indexCodeNum),g.dataType!=="component"&&g.useCurrentTime&&(g.fieldValue=be().format(g.dateFormat)),delete g.useCurrentTime}},c=(g,R)=>{const p=[];return g!=null&&g.length&&Oe.cloneDeep(g).forEach(D=>{if(D.join&&D.conditions){const w=!D.conditions.some(L=>L.join&&L.conditions);D.conditions.forEach((L,M)=>{d(L,R);const k={};if(M<D.conditions.length-1&&(k.join=D.join),w)p.push({...k,...L});else if(L.join&&L.conditions){const O=R?"sqlConditions":"conditions";p.push({[O]:c([L],R),...k})}else p.push({...k,...L})})}else d(D,R),p.push(D)}),p},f=(g={},R)=>{if(g!=null&&g.sortCpnts&&R){const U=v(g);U&&(R.sort=U)}const{label:p,name:D,location:w,show:L,indexCode:M,indexCodeNum:k,calcType:O="COLUMN",builtInFormula:T,builtInValueSource:F,builtInCalcWay:b,formula:E,conditions:_,aggregate:q,distinct:N,dimByCount:V,dataTo:z}=g;let P;if(_&&(P=c(_)),O==="COMPONENT"){const U={};return A(U,F),{label:p.trim(),columnName:D,show:L,calcType:O,componentAlias:b,componentValue:U.fieldValue||null}}const X={label:p.trim(),columnName:D,location:w,show:L,calcType:z==="1"?"VIEW":O,hrpIndexCode:M,hrpIndexCodeNum:k,aggregate:q,builtInFormula:T,builtInValueSource:F,formula:E,conditions:P};if(T==="DATE_OFFSET"){const U=b.split("-");if((U==null?void 0:U.length)===3){let j=U[0];return U[2]==="before"&&U[0]!=="0"&&(j=`-${U[0]}`),{...X,calcWays:[j],dateCalcTypes:[U[1]]}}}else return D==="the_count"&&(X.calcType="AGGREGATE",X.distinct=!!N,X.typeGuid=V),{...X,builtInCalcWay:b}},x=g=>{if(!g)return[];const R=Oe.cloneDeep((g==null?void 0:g.controlList)||[]),{classificationList:p=[],rowHeaderList:D=[],dimensionList:w=[],seriesList:L=[],leftAxisList:M=[],rightAxisList:k=[],queryColumnList:O=[],indicators:T=[]}=g;y(R);const F=[...p,...D,...w,...L,...M,...k,...O,...T],b=[];for(const q of F){const N=un((q==null?void 0:q.conditions)||[]);if(N!=null&&N.length){const V=N.filter(z=>(z==null?void 0:z.dataType)==="component").map(z=>{const P={};return z!=null&&z.dateFormat&&(P.format=z.dateFormat),{conditionKey:z.fieldName,conditionLabel:z.fieldName,conditionName:z.fieldName,conditionValueType:z.fieldType,id:z.componentId,keyName:z.fieldValue,rule:z.rule,notGlobal:!0,indexCode:z.indexCode,typeGuid:z.typeGuid,indexCodeNum:z.indexCodeNum,...P}});if(V!=null&&V.length)for(const z of V)b.find(P=>P.keyName===z.keyName)||b.push(z)}}const E=b.length,_=R;for(let q=0;q<E;q++){const N=b[q];if((N==null?void 0:N.conditionKey)==="parentCode")continue;const{id:V,keyName:z,prop:P,format:X,modelKey:U,dataType:j="component",customValue:H}=N,K=u(N);A(K,V,{prop:P,dateFormat:X,modelKey:U,keyName:z}),j===""&&(K.fieldValue=H||""),_.push(K)}for(let q=_.length-1;q>=0;q--){const N=_[q];N.globalCondition||un(_).find(z=>z.alias===N.alias&&z.globalCondition)&&_.splice(q,1)}return _};function u(g){const{id:R,keyName:p,conditionLabel:D,conditionKey:w,conditionValueType:L,prop:M,rule:k="NONE",notGlobal:O=!1,indexCode:T,typeGuid:F,indexCodeNum:b,dataType:E="component"}=g;let _=p||R;_&&M&&(_+=`-${M}`);let q=k;return q==="NONE"&&(["startTime","endTime"].includes(M)?q=M==="startTime"?"GREATER_EQUAL":"LESS_EQUAL":p!=null&&p.includes("startTime")?q=M==="GREATER_EQUAL":p!=null&&p.includes("endTime")?q=M==="LESS_EQUAL":q="EQUAL"),{rule:q,label:D,fieldName:w,fieldValue:"",valueType:L,alias:_,globalCondition:!O,indexCode:T,typeGuid:F,indexCodeNum:b,dataType:E}}const m=["keyValue","conditionKey","conditionLabel","conditionName","conditionValueType","customValue","id","keyName"];function y(g){if(g!=null&&g.length)for(const R of g)if(R!=null&&R.conditions)y(R.conditions);else{const{id:p,keyName:D,prop:w,modelKey:L,format:M,dataType:k="component",customValue:O}=R,T=u(R);A(T,p,{prop:w,dateFormat:M,modelKey:L,keyName:D}),k===""&&(T.fieldValue=O||"");for(const F in T)R[F]=T[F];for(const F of m)delete R[F]}}function h(g){const R=[];if(g!=null&&g.length){for(const p of g)if(p.variableName){const D={variateName:p.variableName,globalCondition:!1,valueType:p.variableType,alias:p.keyName||""};A(D,p.id,{dateFormat:p.format,prop:p.dateTypeValue,keyName:p.keyName,operateType:p.operateType,operateMode:p.operateMode,operateValue:p.operateValue}),p.dataType===""&&(D.fieldValue=p.variableValue),p.format&&(D.dateFormat=p.format),p.label&&(D.label=p.label),R.push(D)}}return R}function A(g,R,p){const D=r(R)||{},{prop:w="",dateFormat:L="",modelKey:M="",keyName:k="",operateValue:O,operateMode:T,operateType:F}=p||{},{value:b,format:E="YYYY-MM-DD",type:_="",useCurrentTime:q,RECORD:N}=D||{},V=L||E;if(st(D.type,"date")){let z;if(q?b?z=t.unref(b):z=be():z=t.unref(b),O&&T&&F)switch(F){case"add":z=z.add(O,T);break;case"minus":z=z.subtract(O,T);break}g.fieldValue=z==null?void 0:z.format(V),g.dateFormat=V}else if(_==="ecanRangePicker"){let z=w;if(!w){const X=k&&k.split("-");X!=null&&X.length&&(z=X[X.length-1])}if(!z)return;let P=null;if(t.unref(D[z])&&(P=be(t.unref(D[z]))),O&&T&&F){if(O==="rangeValue"){if(D.startTime&&D.endTime){const X=t.unref(D.endTime).diff(t.unref(D.startTime),T)+1;switch(F){case"add":P=P&&P.add(X,T);break;case"minus":P=P&&P.subtract(X,T)}}}else if(!isNaN(+O))switch(F){case"add":P=P&&P.add(O,T);break;case"minus":P=P&&P.subtract(O,T)}}if(P&&(g.fieldValue=P==null?void 0:P.format(V)),z==="rangeValue"&&D.startTime&&D.endTime){const X=zr(V);X&&(g.fieldValue=t.unref(D.endTime).diff(t.unref(D.startTime),X)+1)}g.dateFormat=V}else st(_,Ri)?M&&N?g.fieldValue=N[M]:!M&&N?g.fieldValue=N.value:g.fieldValue=t.unref(b):g.fieldValue=t.unref(b)}const I=g=>{if(g){const R=Oe.cloneDeep(g);return g.defaultCode&&(R.label=R.columnName,delete R.defaultCode),R}else return g},v=g=>{const{sortCpnts:R=[]}=g;let p,D="";for(const w of R){const L=r(w)||{},{type:M,RECORD:k}=L;if(st(M,"image")&&st(k==null?void 0:k.value,["asc","desc"])){D=k.value.toUpperCase();break}}return D&&(p={label:g.label,columnName:g.name,order:D,type:"NORMAL"}),p},S=async(g={})=>{var ie,ue,Se,ke,qe,We;i(e.id,!1);const{graphicConfig:R,type:p,isGroupTable:D=!1}=e;let{source:w,dataViewId:L,plugin:M="1",layer:k,chartType:O,classificationList:T=[],rowHeaderList:F=[],dimensionList:b=[],seriesList:E=[],leftAxisList:_=[],rightAxisList:q=[],queryColumnList:N=[],indicators:V=[],controlList:z=[],formFields:P={},variableList:X=[],variableConditions:U=[],idxLibMode:j,preview:H=!1}=R||{},K=[];if((R==null?void 0:R.pageMode)==="design"?(K=(R.sqlConditions??[]).map(de=>{const xe={};if(!l(de,"globalCondition")&&!de.join&&(xe.globalCondition=!0),!de.join){const fe=de.rule||"EQUAL";xe.rule=fe==="NONE"?"EQUAL":fe}return{...de,...xe}}),U!=null&&U.length&&(K=K.concat(U))):(K=x(R),X!=null&&X.length&&(K=K.concat(h(X)))),K!=null&&K.length){const de=K.filter(fe=>fe.globalCondition),xe=K.filter(fe=>!fe.globalCondition);(de==null?void 0:de.length)>1&&(K=[{join:"&&",conditions:de},...xe])}K!=null&&K.length&&(K=c(K,"1")),k==null&&(st(p,["table"])||st(p,["list","circulate"])&&(T==null?void 0:T.length)>1?k="1":st(p,["select","checkbox","radio"])?k="3":k="2");let te,ce="";if(Array.isArray(T)&&T.length>0&&(!["ecanList","ecanCirculate"].includes(p)||(T==null?void 0:T.length)===1)){const de=T.length;for(let xe=0;xe<de;xe++){const fe=T[xe]||{},{label:Ge="",name:ct="",show:tt=!1,sort:dt,customGroup:Ye,conditions:et,dateFormat:$e,typeGuid:St="",truncations:nt=[]}=fe;if(tt||de===1){ce=St,te={label:Ge.trim(),columnName:ct,show:tt,sort:v(fe)||I(dt)||dt,customGroup:Ye,conditions:c(et),typeGuid:St},$e&&(te.dateFormat=$e),ct==="the_date"&&!te.dateFormat&&(te.dateFormat="YYYY-MM");const Ke={};if(Array.isArray(nt)&&nt.length>0){const ft=nt.length;for(let W=0;W<ft;W++){const Y=nt[W]||{},{rule:Q="",num:re=0,name:se=""}=Y;Q&&re&&(Ke.num=re,Ke.rule=Q,se&&(Ke.otherGroupName=se))}}(ie=Object.keys(Ke))!=null&&ie.length&&(te.truncation=Ke);break}}}let ye;if(Array.isArray(E)&&E.length>0){const de=E.length;for(let xe=0;xe<de;xe++){const fe=E[xe]||{},{label:Ge="",name:ct="",show:tt=!1,sort:dt,customGroup:Ye,conditions:et,typeGuid:$e}=fe;if(tt||de===1){ye={label:Ge.trim(),columnName:ct,show:tt,sort:dt,customGroup:Ye,conditions:c(et),typeGuid:$e};break}}}const G=[];_==null||_.forEach(de=>{de.location="LEFT",G.push(f(de,te))}),q==null||q.forEach(de=>{de.location="RIGHT",G.push(f(de,te))}),V==null||V.forEach(de=>{de.location="LEFT",G.push(f(de,te))});const J=[];["ecanList","ecanCirculate"].includes(p)&&(T==null?void 0:T.length)>1&&(N=T),N==null||N.forEach(de=>{const{label:xe,name:fe,location:Ge,show:ct,indexCode:tt,sort:dt,typeGuid:Ye,indexCodeNum:et,dateFormat:$e,conditions:St}=de;let nt=dt;if(g.sort){const{field:ft,order:W}=g.sort;let Y=G.find(Q=>Q.label===ft);!Y&&xe===ft&&(Y=de),Y&&(nt={columnName:Y.columnName,label:g.sort.field,order:W.toUpperCase(),type:"NORMAL"})}const Ke={label:xe,columnName:fe,location:Ge,show:ct,sort:nt,calcType:"COLUMN",hrpIndexCode:tt,hrpIndexCodeNum:et,conditions:c(St),typeGuid:Ye};$e&&(Ke.dateFormat=$e),fe==="the_date"&&!Ke.dateFormat&&(Ke.dateFormat="YYYY-MM"),J.push(Ke)});const ee=[];let ne=[];if(Array.isArray(F)&&F.length>0?ne=F:Array.isArray(b)&&b.length>0&&(ne=b),ne!=null&&ne.length){const de=ne.length;for(let xe=0;xe<de;xe++){const fe=ne[xe]||{},{label:Ge="",name:ct="",show:tt=!1,sort:dt,customGroup:Ye,conditions:et,truncations:$e,typeGuid:St="",dateFormat:nt}=fe;let Ke=dt;if(g.sort){const{field:Y,order:Q}=g.sort;let re=G.find(se=>se.label===Y);!re&&fe.label===Y&&(re=fe),re&&(Ke={columnName:re.columnName,label:g.sort.field,order:Q.toUpperCase(),type:"NORMAL"})}const ft={label:Ge.trim(),columnName:ct,show:tt,sort:Ke,customGroup:Ye,conditions:c(et),typeGuid:St};nt&&(ft.dateFormat=nt),ct==="the_date"&&!ft.dateFormat&&(ft.dateFormat="YYYY-MM");const W={};if(Array.isArray($e)&&$e.length>0){const Y=$e.length;for(let Q=0;Q<Y;Q++){const re=$e[Q]||{},{rule:se="",num:le=0,name:oe=""}=re;se&&le&&(W.num=le,W.rule=se,oe&&(W.otherGroupName=oe))}}(ue=Object.keys(W))!=null&&ue.length&&(ft.truncation=W),ee.push(ft)}}if(st(p,["text","proportion","counter"])&&(O="zb"),D){if(ee.length===0||G.length===0)return;O="grouptable"}else{if(k==="1"&&J.length===0)return;if(k==="2"&&G.length===0)return;if(k==="3"&&(!ce||!P.labelField||!P.valueField))return;if(k==="3"&&p==="ecanDataSelect"&&G.length===0)return}b!=null&&b.length&&(k="1",O="grouptable");let ae=(Se=window==null?void 0:window.config)==null?void 0:Se.pageId;if(!ae){const{pathname:de}=window==null?void 0:window.location;if(de){const xe=de.split("/");xe!=null&&xe.length&&(ae=xe[xe.length-1])}}if((ke=Object.keys(P))!=null&&ke.length){const de=un(z).find(fe=>fe.conditionKey==="parentCode"),xe={};if(de){const fe=r(de.id)||{};if(fe!=null&&fe.itemCodes)xe.parentItemCodes=fe.itemCodes;else return}p==="ecanDataSelect"&&(xe.indicatorList=G.filter(fe=>fe.show));try{const fe=await vt.post(`${Di}/diagram/formData`,{source:w,dataViewId:L,plugin:"4",layer:k,chartType:"normalSelect",rangeIndexTypeGuid:ce,type:p==="ecanDataSelect"?"normalSelectData":"normalSelect",labelField:P.labelField,valueField:P.valueField,pageId:ae,sqlConditions:K,idxLibMode:"WITH_DATE_DIM_TABLE",keyName:e.keyName,...xe},{headers:{Authentication:(qe=window==null?void 0:window.config)==null?void 0:qe.indicatorToken,operateContext:Ei}});return g!=null&&g.isTimer&&o(fe),fe}catch(fe){console.error(fe)}finally{}}else try{const de=await vt.post(`${Di}/diagram`,{source:w,dataViewId:L,plugin:M,layer:k,chartType:O,classification:te,series:ye,indicatorList:G,queryColumns:D?[]:J,pageFlag:!0,pageId:ae,sqlConditions:K.map(xe=>{const{fieldValue:fe}=xe,Ge={};return fe&&Array.isArray(fe)&&(Ge.fieldValue=JSON.stringify(fe)),{...xe,...Ge}}),idxLibMode:j,preview:H,rowHeaders:ee,keyName:e.keyName},{headers:{Authentication:(We=window==null?void 0:window.config)==null?void 0:We.indicatorToken,operateContext:Ei}});return g!=null&&g.isTimer&&o(de),de}catch(de){console.error(de)}finally{}},C=t.unref(n)!=="design"&&((B=e==null?void 0:e.graphicConfig)==null?void 0:B.pageMode)!=="design"&&e.isOpenRequestTimer&&e.requestInterval&&setInterval(()=>{S({isTimer:!0})},e.requestInterval*1e3);return t.onUnmounted(()=>{clearInterval(C)}),S},ed=()=>{const o=window.location.search.slice(1).split("&"),n=o.length,a={};for(let i=0;i<n;i++){const r=o[i];if(r==null||r==="")continue;const s=r.split("=");if(Array.isArray(s)){const l=s[0];l.includes("{")||(a[l]=s[1])}}window.config.requestParams={...window.config.requestParams,...a},window.config={...window.config,...a}},td=t.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...Un},setup(e){const{width:o,height:n}=t.inject(ze,{width:null,height:null}),a=t.inject("setPageHeight",C=>{}),i=t.inject("isMobile",!1),r=t.computed(()=>{const C={};return i||(C.width=o.value,C.height=n.value),{...C,backgroundColor:e.backgroundColor,backgroundImage:pt(e.backgroundImage,!0),backgroundSize:e.backgroundSize}}),s=t.ref(0),l=t.ref(0),d=t.ref(0),c=t.ref(0),f=t.ref(!1),x=t.ref();let u;const m=()=>new Promise(C=>{t.nextTick(()=>{o.value&&n.value?(s.value=parseFloat(o.value),l.value=parseFloat(n.value)):(s.value=x.value.clientWidth,l.value=x.value.clientHeight),(!d.value||!c.value)&&(d.value=window.screen.width,c.value=window.screen.height),C()})}),y=()=>{s.value&&l.value?(x.value.style.width=`${s.value}px`,x.value.style.height=`${l.value}px`):(x.value.style.width=`${d.value}px`,x.value.style.height=`${c.value}px`)};t.watch([o,n],async()=>{await m(),y(),A(),window.addEventListener("resize",I),v(),f.value=!0},{immediate:!0});const h=t.ref({});t.provide("scaleValue",h);const A=()=>{if(i){x.value.style.width="100%",x.value.style.height="auto",a("auto");return}const C=document.body.clientWidth,B=document.body.clientHeight,g=s.value||d.value,R=l.value||c.value,p=C/g;let D=B/R;(s.value!==1920||l.value!==1080)&&(D=l.value/s.value*C/R),h.value={widthScale:p,heightScale:D},x.value&&(x.value.style.transform=`scale(${p}, ${D})`),a(D)},I=Oe.debounce(async()=>{await m(),A()},100),v=()=>{const C=window.MutationObserver;u=new C(I),u.observe(x.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},S=()=>{u&&(u.disconnect(),u.takeRecords(),u=null)};return t.onMounted(()=>{f.value=!1}),t.onUnmounted(()=>{window.removeEventListener("resize",I),S()}),{style:r,container:x,ready:f}}}),uh="",nd={id:"container",ref:"container"};function od(e,o,n,a,i,r){return t.openBlock(),t.createElementBlock("div",nd,[e.ready?(t.openBlock(),t.createElementBlock("div",{key:0,class:"page-config",style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default",{},void 0,!0)],4)):t.createCommentVNode("",!0)],512)}const Pr=Ae(ve(td,[["render",od],["__scopeId","data-v-b496b36e"]])),Po={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{},combinationMap:{},width:"1920px",height:"1080px",pageFontFamily:"",jumpType:"page",jumpTime:null,jumpPage:"",jumpLink:"",requestList:[]},qo=Te(Po),ad=t.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,props:{...qo},setup(e,{expose:o}){ed();const n=t.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=t.ref(),i=()=>{a.value.setAttribute("datav-theme",e.theme)},r=t.inject("usedComponentList",[]),s=t.inject("componentList",[]),l=t.computed(()=>{const G=[];for(const J of t.unref(r))J.type==="ecanModal"?G.push(...J.componentList):G.push(J);return G});t.watch(()=>e.theme,()=>{i()}),t.onMounted(()=>{i()});const d=t.computed(()=>_e(e.contextRequestUrl)),c=t.computed(()=>e.pageMode),f=t.computed(()=>e.theme),x=t.computed(()=>e.width),u=t.computed(()=>e.height),m=t.computed(()=>e.pageFontFamily),y=t.computed(()=>{const G=[],J=t.unref(s).filter(ee=>ee.type==="ecanModal");for(const ee of J)ee!=null&&ee.requestList&&G.push(...ee.requestList);return[...G,...e.requestList]}),h=t.ref("");t.provide(ze,{contextRequestUrl:d,pageMode:c,theme:f,touchEventId:h,width:x,height:u,fontFamily:m,requestList:y});const A=t.ref({height:"100%",overflow:e.pageMode==="design"?"":"hidden"});t.provide("setPageHeight",G=>{let J=G;n.value||(J=parseFloat(u.value)*G+"px"),A.value.height=J}),t.provide("isMobile",n.value),t.provide("getContainerMap",()=>e.containerMap),t.provide("getCombinationMap",()=>e.combinationMap);const I=t.ref(),v=new Map;console.log("globalModel",v);const S=G=>v.get(G),C=(G,J)=>{I.value=J,v.set(G,J)},B=()=>{I.value=null},g=G=>{let J=G;if(J){const ee=G.match(/\{(.+?)\}/g);if(ee!=null&&ee.length){let ne=ee[0].slice(1,-1).trim();const ae=ne.match(/\[(.+?)\]/g);let ie="";ae!=null&&ae.length&&(ne=ne.replace(ae[0],""),ie=ae[0].slice(1,-1).trim());const ue=t.unref(r).find(Se=>Se.keyName===ne);if(ue){const Se=S(ue.id),{type:ke,value:qe,RECORD:We,recordData:de}=Se||{};st(ke,Ri)?J=We[ie]:st(ke,"select")?J=de[ie]:st(ke,["rangePicker","date"])?be.isDayjs(t.unref(Se[ie]))?J=t.unref(Se[ie]).format(Se.format):J=t.unref(Se[ie]):J=qe}else J=""}}return J},R=new Map,p={},D=async(G,J)=>{var ue;const{requestName:ee}=G,ne=await je({...G,projectRequestUrl:t.unref(d),getModel:S})(),ae=((ue=ne==null?void 0:ne.data)==null?void 0:ue.data)||{},ie=R.get(ee);if(ie!=null&&ie.length&&(!J||p[ee])){for(const Se of ie)Se(ae);J||R.delete(ee)}},w=(G,J)=>{p[G]&&(clearInterval(p[G]),delete p[G],R.delete(G));const ee=t.unref(l).filter(ae=>ae.customRequestName===G),ne=R.get(G)||[];if((ee==null?void 0:ee.length)>ne.length&&(ne.push(J),R.set(G,ne),(ee==null?void 0:ee.length)===ne.length)){const ae=t.unref(y).find(ie=>ie.requestName===G);ae&&(ae!=null&&ae.isOpenRequestTimer&&(ae!=null&&ae.requestInterval)?(D(ae,!0),p[G]=setInterval(()=>{D(ae,!0)},ae.requestInterval*1e3)):D(ae))}};t.provide(Le,{getGlobalModel:S,setGlobalModel:C,clearInteractiveData:B,getRecordValueByKeyName:g,hanldePageRequestData:w,interactiveData:I});const L=t.ref({}),M=(G,J)=>{L.value[G]=J};t.provide(Et,{loadedData:L,setLoadedData:M});const k=[],O=()=>{k.pop()},T=G=>{k.push(G)},F=new Map,b=G=>F.get(G),E=(G,J)=>{F.set(G,J)};t.provide(Bi,{popUseModalIds:O,pushUseModalIds:T,getModalModel:b,setModalModel:E});const _=cs(),q=new Set,N=(G,J)=>{q.add(G),_.on(G,ee=>{const{eventName:ne,params:ae}=ee;return typeof J[ne]=="function"&&J[ne](ae)}),t.onBeforeUnmount(()=>{V(G)})},V=G=>{q.delete(G),_.off(G)},z=(G,J,ee={})=>{if(G==="PAGE"){const ne=k.length;let ae=[];if(ne===0)ae=[...q];else{const ie=k[ne-1];ae=[...b(ie)]}ae.forEach(ie=>{_.emit(ie,{eventName:J,params:ee})})}else _.emit(G,{eventName:J,params:ee})};t.provide($n,{onEvent:N,offEvent:V,emitEvent:z});const P=t.ref(0),X=()=>{P.value=t.unref(P)+1};t.provide(Ti,{requestToken:X});const U=new Map,j=new Map,H=({requestFn:G=()=>{},sortNum:J=0,id:ee=""})=>{if(U.has(J)){const ne=U.get(J);ne==null||ne.push(G)}else U.set(J,[G]);j.set(ee,G)},K=G=>new Promise((J,ee)=>{const ne=G.map(ae=>ae());Promise.all(ne).then(ae=>{J(ae)}).catch(ae=>{ee(ae)})}),te=G=>new Promise(async(J,ee)=>{if(G){if(typeof G=="string"){const ne=j.get(G);if(typeof ne=="function"){const ae=vt.interceptors.response.use(ie=>(J(ie),ie),ie=>(ee(ie),Promise.reject(ie)));ne(),vt.interceptors.response.eject(ae)}}}else{const ne=Array.from(U);ne.sort((ie,ue)=>ue[0]-ie[0]);const ae=ne.length;try{e.pageMode!=="design"&&t.unref(P)>0;for(let ie=0;ie<ae;ie++){const ue=ne[ie][1];await K(ue)}}catch(ie){console.error(ie)}finally{U.clear(),J(null)}}});t.provide(He,{setRequest:H,touchRequest:te});const ce=()=>{_.emit(sn)};t.provide(sn,{emitRefreshPage:ce});const ye=G=>{_.on(sn,()=>G()),t.onMounted(()=>{_.off(sn)})};return t.watchEffect(()=>{var G;if((G=t.unref(r))!=null&&G.length&&t.unref(c)!=="design"){const{jumpType:J,jumpTime:ee,jumpPage:ne,jumpLink:ae}=e;if(ee!=null&&ee.value){let ie=0;switch(ee==null?void 0:ee.suffix){case"hours":ie=ee.value*60*60*1e3;break;case"minute":ie=ee.value*60*1e3;break;case"seconds":ie=ee.value*1e3;break}setTimeout(()=>{let ue="";J==="page"&&ne?ue=zo(t.unref(c),ne):J==="link"&&ae&&(ue=ae),ue=_e(ue),window.open(ue,"_self")},ie)}}}),t.onBeforeUnmount(()=>{U==null||U.clear(),j==null||j.clear()}),o({touchRequest:te,getGlobalModel:S,onRefreshPage:ye}),{providerConfig:a,configStyle:A}}}),gh="";function id(e,o,n,a,i,r){return t.openBlock(),t.createElementBlock("div",{id:"ProviderConfig",ref:"providerConfig",style:t.normalizeStyle({...e.configStyle,fontFamily:e.pageFontFamily})},[t.renderSlot(e.$slots,"default",{},void 0,!0)],4)}const qr=Ae(ve(ad,[["render",id],["__scopeId","data-v-fc92f909"]])),Vo={...Re,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:""},Ho=Te(Vo),Vr=["refreshData","click","valueChange"],jo="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=",Wo="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==",Go=t.defineComponent({name:"EcanText",components:{Skeleton:Wt},props:{...Ho},setup(e,{expose:o}){const n=t.ref(!1),a=Ie(e),i=t.ref({}),r=t.computed(()=>e.variableFontSize||"14px"),s=t.computed(()=>"-"+t.unref(r)),l=T=>{var F,b;if(e.showAnimation){const E=e.text.match(/\{(.+?)\}/g)||[];if(E!=null&&E.length){const _=(F=E[0].slice(1,-1))==null?void 0:F.trim();if(t.unref(i)[_]===T){i.value=T;return}const q=+T[_];let N=0;if(isNaN(q))i.value=T;else{String(q).includes(".")&&(N=((b=String(q).split(".")[1])==null?void 0:b.length)||0);const V=Math.abs(q)*Math.pow(10,N),z=String(V).length;let P=[];for(let U=0;U<5;U++){const j=Math.ceil(Math.random()*(V+1)-1);P.includes(j)||P.push(j)}P.sort((U,j)=>U-j),P=P.map(U=>{const j=String(U).split("").reverse(),H=[];for(let K=0;K<z;K++)j&&j[K]?H.push(j[K]):H.push("0");return N&&H.splice(N,0,"."),(q<0?"-":"")+H.reverse().join("")}),P.push(q);let X=0;for(const U of P)setTimeout(()=>{i.value={...t.unref(i),[_]:U}},X*1e3),X+=.1}}else i.value=T}else i.value=T};t.watch(()=>[e.data,e.dataType],([T,F])=>{F==="static"&&l(T)},{immediate:!0});const{getGlobalModel:d,setGlobalModel:c,getRecordValueByKeyName:f,hanldePageRequestData:x}=t.inject(Le,{getGlobalModel:T=>{},setGlobalModel:(T,F)=>{},getRecordValueByKeyName:T=>{},hanldePageRequestData:(T,F)=>{}}),{setLoadedData:u}=t.inject(Et,{setLoadedData:(T,F)=>{}}),m=t.computed(()=>{let T="";if(e.gradientShow){const{gradientColor:F,gradientOffset:b,gradientAngle:E,color:_}=e;T+=`background: linear-gradient(${E}, ${_}, ${F||"transparent"} ${b*100}%);-webkit-background-clip: text;color: transparent;`}return T}),y=t.computed(()=>{const T={};if(e.gradientShow){const{gradientColor:F,gradientOffset:b,gradientAngle:E,color:_}=e,q=F||"transparent";T.background=`linear-gradient(${E}, ${_}, ${q} ${b*100}%)`,T["-webkit-background-clip"]="text",T.color="transparent"}return T}),h=t.computed(()=>{var V;if(t.unref(n))return"NaN";const T=t.unref(i),F=e.increaseColor||e.color,b=e.declineColor||e.color;let E=e.text;E=E==null?void 0:E.replace(/\n|\\n/g,"<br/>"),E=E==null?void 0:E.replace(/\s(?!\{) | (?!\})\s/g," ");const _=E.match(/\{(.+?)\}/g)||[];let q="",N="";if(e.exceedConfig==="wrap"?N="show-wrap":e.exceedConfig==="ellipsis"&&(N="show-ellipsis"),_==null||_.length===0){if(E&&e.format==="percentage"&&!isNaN(+E)){const z=parseFloat(E),P=z*100,X=A(P.toFixed(2));z>=0?E=`<span class="${N}" style="color: ${X||F||"#ED6643"};font-size:${t.unref(r)};display: inline-block;${t.unref(m)}">
|
|
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,C=n.DERNumericString,f=n.DERPrintableString,g=n.DERTeletexString,v=n.DERIA5String,d=n.DERUTCTime,_=n.DERGeneralizedTime,x=n.DERSequence,m=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 S=E[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+S+":")==-1)throw"undefined key: "+S;if(S=="bool")return new i(e[S]);if(S=="int")return new a(e[S]);if(S=="bitstr")return new o(e[S]);if(S=="octstr")return new s(e[S]);if(S=="null")return new l(e[S]);if(S=="oid")return new c(e[S]);if(S=="enum")return new u(e[S]);if(S=="utf8str")return new h(e[S]);if(S=="numstr")return new C(e[S]);if(S=="prnstr")return new f(e[S]);if(S=="telstr")return new g(e[S]);if(S=="ia5str")return new v(e[S]);if(S=="utctime")return new d(e[S]);if(S=="gentime")return new _(e[S]);if(S=="seq"){for(var P=e[S],k=[],F=0;F<P.length;F++){var B=y(P[F]);k.push(B)}return new x({array:k})}if(S=="set"){for(var P=e[S],k=[],F=0;F<P.length;F++){var B=y(P[F]);k.push(B)}return new m({array:k})}if(S=="tag"){var L=e[S];if(Object.prototype.toString.call(L)==="[object Array]"&&L.length==3){var O=y(L[2]);return new p({tag:L[0],explicit:L[1],obj:O})}else{var D={};if(L.explicit!==void 0&&(D.explicit=L.explicit),L.tag!==void 0&&(D.tag=L.tag),L.obj===void 0)throw"obj shall be specified for 'tag'.";return D.obj=y(L.obj),new p(D)}}},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),C=7-h.length%7;C==7&&(C=0);for(var f="",g=0;g<C;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),C=a(String(o.getSeconds()),2),f=s+l+c+u+h+C;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 C=l.sub[6].getHexStringValue();this.dmp1=parseBigInt(C,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],d=v.sub[0];i=d.sub[0].getHexStringValue(),this.n=parseBigInt(i,16),a=d.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
|
+
?)|(.{1,`+i+"})";return n.match(RegExp(a,"g")).join(`
|
|
92
|
+
`)},r.prototype.getPrivateKey=function(){var n=`-----BEGIN RSA PRIVATE KEY-----
|
|
93
|
+
`;return n+=r.wordwrap(this.getPrivateBaseKeyB64())+`
|
|
94
|
+
`,n+="-----END RSA PRIVATE KEY-----",n},r.prototype.getPublicKey=function(){var n=`-----BEGIN PUBLIC KEY-----
|
|
95
|
+
`;return n+=r.wordwrap(this.getPublicBaseKeyB64())+`
|
|
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
|
+
`),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
|
+
`))==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:C=[]}=o,g=C.find(v=>v.show).label||"";for(const v of c)u.includes(v)||u.push(v);u.sort((v,d)=>dayjs(v).isBefore(dayjs(d))?-1:1);for(const v of h){const{data:d}=v;if(d!=null&&d.length){const _=[];for(const x of c)if(d.find(m=>m[g]!==x)){const m=lodashEs.cloneDeep(d[0]);for(const p in m)p===g?m[p]=x:m[p]=0;_.push(m)}v.data.push(..._),v.data.sort((x,m)=>dayjs(x[g]).isBefore(dayjs(m[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(C=>C.keyName===s.keyName),h=i.find(C=>C.keyName===l.keyName);if(u&&h){const C=o(u.id),f=o(h.id),{classificationList:g=[]}=a,v=g.find(d=>d.show);if(v){let d="YYYY-MM";switch(v.name){case"the_year":d="YYYY";break;case"the_month":d="MM";break;case"the_day":d="DD";break;case"the_date":d=(v==null?void 0:v.dateFormat)||d;break}const _=getFormatStep(d);if(d){const x=vue.unref(C[s.field]),m=vue.unref(f[l.field]);let p=dayjs(x);const y=dayjs(m);for(c.push(y.format(d));p.isBefore(y);)c.push(p.format(d)),p=p.add(1,_)}}}}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}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 C=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,f=h.match(C);for(let g=0;g<f.length;g++){const v=f[g],d=s[v];d!=null&&typeof d!="function"&&(h=h.replace(v,d))}(/\(.*\)/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," ")),e},useRequestData=(e,r=()=>{})=>{const{requestUrl:n,requestMethod:i,requestHeaders:a,requestParams:o,requestInterval:s,isOpenRequestTimer:l,openCustomRequestData:c,projectRequestUrl:u="",getModel:h}=e,{pageMode:C}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),{contextRequestUrl:f,touchEventId:g}=vue.inject(GLOBAL_CONFIG,{contextRequestUrl:"",touchEventId:""})||{},{getGlobalModel:v}=vue.inject(GLOBAL_MODEL,{getGlobalModel:p=>{}})||{},d=h||v,_=useVariablesInText(n),x=async(p={})=>{if(!_||!i||!a)return;let y={};o.forEach(F=>{const{key:B,value:L}=F;if(typeof L=="object"&&L!=null&&L.id){let O={};const{id:D,prop:V,propKey:M,operate:T}=L;D==="THIS"?O=d(vue.unref(g))||{}:O=d(D)||{};const w=vue.unref(O[V]);let b=null;if(["date","range"].some(R=>lowerCaseIncludes(O==null?void 0:O.type,R))){const{value:R,type:I,mode:q}=T||{};if(R&&I&&q)switch(I){case"add":b=vue.unref(w).add(R,q);break;case"minus":b=vue.unref(w).subtract(R,q);break}b==null&&(b=vue.unref(w)),b=(b==null?void 0:b.format((M==null?void 0:M.trim())||O.format))||""}else Object.prototype.toString.call(w)==="[object Object]"?M?b=w[M]:b=V?w[V]:w:lowerCaseIncludes(O==null?void 0:O.type,"select")&&vue.unref(w)&&V&&Array.isArray(vue.unref(w))?b=vue.unref(w).map(R=>Object.prototype.hasOwnProperty.call(R,V)?R[V]:R):b=w;y[B]=b}else typeof L=="string"&&(y[B]=useVariablesInText(L))}),y={...window.config.requestParams,...p,...y};let E="";const S=Object.keys(y),P=S.length-1,k=S.length;S.forEach((F,B)=>{let L=y[F];Object.prototype.toString.call(L)==="[object Object]"&&(L=JSON.stringify(L)),B===0?k!==1?E+=`?${F}=${L}&`:E+=`?${F}=${L}`:B===P?E+=`${F}=${L}`:E+=`${F}=${L}&`});try{const F=["get","head"].includes(i),B={};let L=F?_+E:_;y.dataSqlId&&!L.includes("dataSqlId")&&(L+=`${L.includes("?")?"&":"?"}dataSqlId=${y.dataSqlId}`),Object.prototype.hasOwnProperty.call(y,"signal")&&(B.signal=y.signal);const O=await request({baseURL:vue.unref(f)||u||"",url:L,method:i,headers:a,data:F?{}:y,...B});return r(O),O}catch(F){console.error(F)}},m=vue.unref(C)!=="design"&&l&&(c||c===void 0)&&setInterval(x,s*1e3);return vue.onUnmounted(()=>{clearInterval(m)}),x},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 C=[];for(let g=0;g<c;g++){const v=a[g],{label:d,value:_}=v,x={...e[0],value:e[0][_]};o.add(d),C.push(x)}const f=e[0][i]||"";s.set(f,C)}else for(let C=0;C<l;C++){const f=e[C],g=f[i];o.add(g);for(let v=0;v<c;v++){const d=a[v],{label:_,value:x}=d,m={...f,value:f[x]||0};if(s.has(_)){const p=s.get(_);p.push(m),s.set(_,p)}else s.set(_,[m])}}const u=Array.from(o),h=[];for(const[C,f]of s)h.push({name:C,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=()=>{})=>{var E;const{pageMode:n}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),{requestToken:i}=vue.inject(GLOBAL_TOKEN,{requestToken:()=>{}}),{setLoadedData:a}=vue.inject(LOADED_DATA,{setLoadedData:(S,P)=>{}}),{getGlobalModel:o}=vue.inject(GLOBAL_MODEL,{getGlobalModel:S=>{}});e.dataType==="indicator"&&i();const s=S=>{const{around:P,unit:k,id:F}=S;let B="";const{pageMode:L="",componentList:O=[]}=(e==null?void 0:e.graphicConfig)||{};let D=null,V=null;if(L==="design"){const M=O==null?void 0:O.find(q=>q.id===F);if(!M)return[];const{interval:T,intervalUnit:w,startTime:b,endTime:A,operate:R,useCurrentTime:I}=M||{};if(I&&(D=dayjs().subtract(T,w),V=dayjs()),b&&(D=dayjs(b)),A&&(V=dayjs(A)),R){const{type:q,value:N,mode:G}=R;switch(q){case"add":D=D&&D.add(N,G),V=V&&V.add(N,G);break;case"minus":D=D&&D.subtract(N,G),V=V&&V.subtract(N,G)}}}else{const M=o(F)||{};vue.unref(M.startTime)&&(D=dayjs(vue.unref(M.startTime))),vue.unref(M.endTime)&&(V=dayjs(vue.unref(M.endTime)))}if(D&&V){const M=V.diff(D,k.toLowerCase());B=`${P==="before"?"-":""}${M+1}`}return B?[B]:[]},l=(S,P)=>Object.prototype.hasOwnProperty.call(S,P),c=(S,P)=>{if(P)l(S,"indexCode")&&(S.hrpIndexCode=S.indexCode,delete S.indexCode),l(S,"indexCodeNum")&&(S.hrpIndexCodeNum=S.indexCodeNum,delete S.indexCodeNum),l(S,"dataType")&&delete S.dataType;else{const{calcWays:k=[],dateCalcTypes:F=[],activeKey:B,componentId:L=""}=S;if(B===5&&(k!=null&&k.length)&&(F!=null&&F.length)&&L){const O=k[0].split("-");(O==null?void 0:O.length)>1&&O[0]==="rangeValue"&&(S.calcWays=s({around:O[1],unit:F[0],id:L})),delete S.radioValue}l(S,"dataType")&&(S.fieldType==="DATE"&&(S.label=S.fieldName),S.dataType==="component"&&(S.fieldValue="${"+S.fieldValue+"}"),delete S.dataType),l(S,"activeKey")&&delete S.activeKey,l(S,"radioValue")&&delete S.radioValue,l(S,"indexCode")&&(S.hrpIndexCode=S.indexCode,delete S.indexCode),l(S,"indexCodeNum")&&(S.hrpIndexCodeNum=S.indexCodeNum,delete S.indexCodeNum),S.dataType!=="component"&&S.useCurrentTime&&(S.fieldValue=dayjs().format(S.dateFormat)),delete S.useCurrentTime}},u=(S,P)=>{const k=[];return S!=null&&S.length&&lodashEs.cloneDeep(S).forEach(F=>{if(F.join&&F.conditions){const B=!F.conditions.some(L=>L.join&&L.conditions);F.conditions.forEach((L,O)=>{c(L,P);const D={};if(O<F.conditions.length-1&&(D.join=F.join),B)k.push({...D,...L});else if(L.join&&L.conditions){const V=P?"sqlConditions":"conditions";k.push({[V]:u([L],P),...D})}else k.push({...D,...L})})}else c(F,P),k.push(F)}),k},h=(S={},P)=>{if(S!=null&&S.sortCpnts&&P){const U=m(S);U&&(P.sort=U)}const{label:k,name:F,location:B,show:L,indexCode:O,indexCodeNum:D,calcType:V="COLUMN",builtInFormula:M,builtInValueSource:T,builtInCalcWay:w,formula:b,conditions:A,aggregate:R,distinct:I,dimByCount:q,dataTo:N}=S;let G;if(A&&(G=u(A)),V==="COMPONENT"){const U={};return _(U,T),{label:k.trim(),columnName:F,show:L,calcType:V,componentAlias:w,componentValue:U.fieldValue||null}}const Y={label:k.trim(),columnName:F,location:B,show:L,calcType:N==="1"?"VIEW":V,hrpIndexCode:O,hrpIndexCodeNum:D,aggregate:R,builtInFormula:M,builtInValueSource:T,formula:b,conditions:G};if(M==="DATE_OFFSET"){const U=w.split("-");if((U==null?void 0:U.length)===3){let j=U[0];return U[2]==="before"&&U[0]!=="0"&&(j=`-${U[0]}`),{...Y,calcWays:[j],dateCalcTypes:[U[1]]}}}else return F==="the_count"&&(Y.calcType="AGGREGATE",Y.distinct=!!I,Y.typeGuid=q),{...Y,builtInCalcWay:w}},C=S=>{if(!S)return[];const P=lodashEs.cloneDeep((S==null?void 0:S.controlList)||[]),{classificationList:k=[],rowHeaderList:F=[],dimensionList:B=[],seriesList:L=[],leftAxisList:O=[],rightAxisList:D=[],queryColumnList:V=[],indicators:M=[]}=S;v(P);const T=[...k,...F,...B,...L,...O,...D,...V,...M],w=[];for(const R of T){const I=getConditions((R==null?void 0:R.conditions)||[]);if(I!=null&&I.length){const q=I.filter(N=>(N==null?void 0:N.dataType)==="component").map(N=>{const G={};return N!=null&&N.dateFormat&&(G.format=N.dateFormat),{conditionKey:N.fieldName,conditionLabel:N.fieldName,conditionName:N.fieldName,conditionValueType:N.fieldType,id:N.componentId,keyName:N.fieldValue,rule:N.rule,notGlobal:!0,indexCode:N.indexCode,typeGuid:N.typeGuid,indexCodeNum:N.indexCodeNum,...G}});if(q!=null&&q.length)for(const N of q)w.find(G=>G.keyName===N.keyName)||w.push(N)}}const b=w.length,A=P;for(let R=0;R<b;R++){const I=w[R];if((I==null?void 0:I.conditionKey)==="parentCode")continue;const{id:q,keyName:N,prop:G,format:Y,modelKey:U,dataType:j="component",customValue:H}=I,Z=f(I);_(Z,q,{prop:G,dateFormat:Y,modelKey:U,keyName:N}),j===""&&(Z.fieldValue=H||""),A.push(Z)}for(let R=A.length-1;R>=0;R--){const I=A[R];I.globalCondition||getConditions(A).find(N=>N.alias===I.alias&&N.globalCondition)&&A.splice(R,1)}return A};function f(S){const{id:P,keyName:k,conditionLabel:F,conditionKey:B,conditionValueType:L,prop:O,rule:D="NONE",notGlobal:V=!1,indexCode:M,typeGuid:T,indexCodeNum:w,dataType:b="component"}=S;let A=k||P;A&&O&&(A+=`-${O}`);let R=D;return R==="NONE"&&(["startTime","endTime"].includes(O)?R=O==="startTime"?"GREATER_EQUAL":"LESS_EQUAL":k!=null&&k.includes("startTime")?R=O==="GREATER_EQUAL":k!=null&&k.includes("endTime")?R=O==="LESS_EQUAL":R="EQUAL"),{rule:R,label:F,fieldName:B,fieldValue:"",valueType:L,alias:A,globalCondition:!V,indexCode:M,typeGuid:T,indexCodeNum:w,dataType:b}}const g=["keyValue","conditionKey","conditionLabel","conditionName","conditionValueType","customValue","id","keyName"];function v(S){if(S!=null&&S.length)for(const P of S)if(P!=null&&P.conditions)v(P.conditions);else{const{id:k,keyName:F,prop:B,modelKey:L,format:O,dataType:D="component",customValue:V}=P,M=f(P);_(M,k,{prop:B,dateFormat:O,modelKey:L,keyName:F}),D===""&&(M.fieldValue=V||"");for(const T in M)P[T]=M[T];for(const T of g)delete P[T]}}function d(S){const P=[];if(S!=null&&S.length){for(const k of S)if(k.variableName){const F={variateName:k.variableName,globalCondition:!1,valueType:k.variableType,alias:k.keyName||""};_(F,k.id,{dateFormat:k.format,prop:k.dateTypeValue,keyName:k.keyName,operateType:k.operateType,operateMode:k.operateMode,operateValue:k.operateValue}),k.dataType===""&&(F.fieldValue=k.variableValue),k.format&&(F.dateFormat=k.format),k.label&&(F.label=k.label),P.push(F)}}return P}function _(S,P,k){const F=o(P)||{},{prop:B="",dateFormat:L="",modelKey:O="",keyName:D="",operateValue:V,operateMode:M,operateType:T}=k||{},{value:w,format:b="YYYY-MM-DD",type:A="",useCurrentTime:R,RECORD:I}=F||{},q=L||b;if(lowerCaseIncludes(F.type,"date")){let N;if(R?w?N=vue.unref(w):N=dayjs():N=vue.unref(w),V&&M&&T)switch(T){case"add":N=N.add(V,M);break;case"minus":N=N.subtract(V,M);break}S.fieldValue=N==null?void 0:N.format(q),S.dateFormat=q}else if(A==="ecanRangePicker"){let N=B;if(!B){const Y=D&&D.split("-");Y!=null&&Y.length&&(N=Y[Y.length-1])}if(!N)return;let G=null;if(vue.unref(F[N])&&(G=dayjs(vue.unref(F[N]))),V&&M&&T){if(V==="rangeValue"){if(F.startTime&&F.endTime){const Y=vue.unref(F.endTime).diff(vue.unref(F.startTime),M)+1;switch(T){case"add":G=G&&G.add(Y,M);break;case"minus":G=G&&G.subtract(Y,M)}}}else if(!isNaN(+V))switch(T){case"add":G=G&&G.add(V,M);break;case"minus":G=G&&G.subtract(V,M)}}if(G&&(S.fieldValue=G==null?void 0:G.format(q)),N==="rangeValue"&&F.startTime&&F.endTime){const Y=getFormatStep(q);Y&&(S.fieldValue=vue.unref(F.endTime).diff(vue.unref(F.startTime),Y)+1)}S.dateFormat=q}else lowerCaseIncludes(A,MODEL_KEY_LIST)?O&&I?S.fieldValue=I[O]:!O&&I?S.fieldValue=I.value:S.fieldValue=vue.unref(w):S.fieldValue=vue.unref(w)}const x=S=>{if(S){const P=lodashEs.cloneDeep(S);return S.defaultCode&&(P.label=P.columnName,delete P.defaultCode),P}else return S},m=S=>{const{sortCpnts:P=[]}=S;let k,F="";for(const B of P){const L=o(B)||{},{type:O,RECORD:D}=L;if(lowerCaseIncludes(O,"image")&&lowerCaseIncludes(D==null?void 0:D.value,["asc","desc"])){F=D.value.toUpperCase();break}}return F&&(k={label:S.label,columnName:S.name,order:F,type:"NORMAL"}),k},p=async(S={})=>{var ne,he,ve,pe,ye,be;a(e.id,!1);const{graphicConfig:P,type:k,isGroupTable:F=!1}=e;let{source:B,dataViewId:L,plugin:O="1",layer:D,chartType:V,classificationList:M=[],rowHeaderList:T=[],dimensionList:w=[],seriesList:b=[],leftAxisList:A=[],rightAxisList:R=[],queryColumnList:I=[],indicators:q=[],controlList:N=[],formFields:G={},variableList:Y=[],variableConditions:U=[],idxLibMode:j,preview:H=!1}=P||{},Z=[];if((P==null?void 0:P.pageMode)==="design"?(Z=(P.sqlConditions??[]).map(ce=>{const de={};if(!l(ce,"globalCondition")&&!ce.join&&(de.globalCondition=!0),!ce.join){const ue=ce.rule||"EQUAL";de.rule=ue==="NONE"?"EQUAL":ue}return{...ce,...de}}),U!=null&&U.length&&(Z=Z.concat(U))):(Z=C(P),Y!=null&&Y.length&&(Z=Z.concat(d(Y)))),Z!=null&&Z.length){const ce=Z.filter(ue=>ue.globalCondition),de=Z.filter(ue=>!ue.globalCondition);(ce==null?void 0:ce.length)>1&&(Z=[{join:"&&",conditions:ce},...de])}Z!=null&&Z.length&&(Z=u(Z,"1")),D==null&&(lowerCaseIncludes(k,["table"])||lowerCaseIncludes(k,["list","circulate"])&&(M==null?void 0:M.length)>1?D="1":lowerCaseIncludes(k,["select","checkbox","radio"])?D="3":D="2");let X,ae="";if(Array.isArray(M)&&M.length>0&&(!["ecanList","ecanCirculate"].includes(k)||(M==null?void 0:M.length)===1)){const ce=M.length;for(let de=0;de<ce;de++){const ue=M[de]||{},{label:Ce="",name:_e="",show:Ae=!1,sort:we,customGroup:Te,conditions:Me,dateFormat:ke,typeGuid:Oe="",truncations:Fe=[]}=ue;if(Ae||ce===1){ae=Oe,X={label:Ce.trim(),columnName:_e,show:Ae,sort:m(ue)||x(we)||we,customGroup:Te,conditions:u(Me),typeGuid:Oe},ke&&(X.dateFormat=ke),_e==="the_date"&&!X.dateFormat&&(X.dateFormat="YYYY-MM");const Pe={};if(Array.isArray(Fe)&&Fe.length>0){const Re=Fe.length;for(let W=0;W<Re;W++){const J=Fe[W]||{},{rule:Q="",num:oe=0,name:le=""}=J;Q&&oe&&(Pe.num=oe,Pe.rule=Q,le&&(Pe.otherGroupName=le))}}(ne=Object.keys(Pe))!=null&&ne.length&&(X.truncation=Pe);break}}}let fe;if(Array.isArray(b)&&b.length>0){const ce=b.length;for(let de=0;de<ce;de++){const ue=b[de]||{},{label:Ce="",name:_e="",show:Ae=!1,sort:we,customGroup:Te,conditions:Me,typeGuid:ke}=ue;if(Ae||ce===1){fe={label:Ce.trim(),columnName:_e,show:Ae,sort:we,customGroup:Te,conditions:u(Me),typeGuid:ke};break}}}const $=[];A==null||A.forEach(ce=>{ce.location="LEFT",$.push(h(ce,X))}),R==null||R.forEach(ce=>{ce.location="RIGHT",$.push(h(ce,X))}),q==null||q.forEach(ce=>{ce.location="LEFT",$.push(h(ce,X))});const K=[];["ecanList","ecanCirculate"].includes(k)&&(M==null?void 0:M.length)>1&&(I=M),I==null||I.forEach(ce=>{const{label:de,name:ue,location:Ce,show:_e,indexCode:Ae,sort:we,typeGuid:Te,indexCodeNum:Me,dateFormat:ke,conditions:Oe}=ce;let Fe=we;if(S.sort){const{field:Re,order:W}=S.sort;let J=$.find(Q=>Q.label===Re);!J&&de===Re&&(J=ce),J&&(Fe={columnName:J.columnName,label:S.sort.field,order:W.toUpperCase(),type:"NORMAL"})}const Pe={label:de,columnName:ue,location:Ce,show:_e,sort:Fe,calcType:"COLUMN",hrpIndexCode:Ae,hrpIndexCodeNum:Me,conditions:u(Oe),typeGuid:Te};ke&&(Pe.dateFormat=ke),ue==="the_date"&&!Pe.dateFormat&&(Pe.dateFormat="YYYY-MM"),K.push(Pe)});const ee=[];let te=[];if(Array.isArray(T)&&T.length>0?te=T:Array.isArray(w)&&w.length>0&&(te=w),te!=null&&te.length){const ce=te.length;for(let de=0;de<ce;de++){const ue=te[de]||{},{label:Ce="",name:_e="",show:Ae=!1,sort:we,customGroup:Te,conditions:Me,truncations:ke,typeGuid:Oe="",dateFormat:Fe}=ue;let Pe=we;if(S.sort){const{field:J,order:Q}=S.sort;let oe=$.find(le=>le.label===J);!oe&&ue.label===J&&(oe=ue),oe&&(Pe={columnName:oe.columnName,label:S.sort.field,order:Q.toUpperCase(),type:"NORMAL"})}const Re={label:Ce.trim(),columnName:_e,show:Ae,sort:Pe,customGroup:Te,conditions:u(Me),typeGuid:Oe};Fe&&(Re.dateFormat=Fe),_e==="the_date"&&!Re.dateFormat&&(Re.dateFormat="YYYY-MM");const W={};if(Array.isArray(ke)&&ke.length>0){const J=ke.length;for(let Q=0;Q<J;Q++){const oe=ke[Q]||{},{rule:le="",num:se=0,name:ie=""}=oe;le&&se&&(W.num=se,W.rule=le,ie&&(W.otherGroupName=ie))}}(he=Object.keys(W))!=null&&he.length&&(Re.truncation=W),ee.push(Re)}}if(lowerCaseIncludes(k,["text","proportion","counter"])&&(V="zb"),F){if(ee.length===0||$.length===0)return;V="grouptable"}else{if(D==="1"&&K.length===0)return;if(D==="2"&&$.length===0)return;if(D==="3"&&(!ae||!G.labelField||!G.valueField))return;if(D==="3"&&k==="ecanDataSelect"&&$.length===0)return}w!=null&&w.length&&(D="1",V="grouptable");let re=(ve=window==null?void 0:window.config)==null?void 0:ve.pageId;if(!re){const{pathname:ce}=window==null?void 0:window.location;if(ce){const de=ce.split("/");de!=null&&de.length&&(re=de[de.length-1])}}if((pe=Object.keys(G))!=null&&pe.length){const ce=getConditions(N).find(ue=>ue.conditionKey==="parentCode"),de={};if(ce){const ue=o(ce.id)||{};if(ue!=null&&ue.itemCodes)de.parentItemCodes=ue.itemCodes;else return}k==="ecanDataSelect"&&(de.indicatorList=$.filter(ue=>ue.show));try{const ue=await request.post(`${INDICATOR_URL}/diagram/formData`,{source:B,dataViewId:L,plugin:"4",layer:D,chartType:"normalSelect",rangeIndexTypeGuid:ae,type:k==="ecanDataSelect"?"normalSelectData":"normalSelect",labelField:G.labelField,valueField:G.valueField,pageId:re,sqlConditions:Z,idxLibMode:"WITH_DATE_DIM_TABLE",keyName:e.keyName,...de},{headers:{Authentication:(ye=window==null?void 0:window.config)==null?void 0:ye.indicatorToken,operateContext:CONTEXT}});return S!=null&&S.isTimer&&r(ue),ue}catch(ue){console.error(ue)}finally{}}else try{const ce=await request.post(`${INDICATOR_URL}/diagram`,{source:B,dataViewId:L,plugin:O,layer:D,chartType:V,classification:X,series:fe,indicatorList:$,queryColumns:F?[]:K,pageFlag:!0,pageId:re,sqlConditions:Z.map(de=>{const{fieldValue:ue}=de,Ce={};return ue&&Array.isArray(ue)&&(Ce.fieldValue=JSON.stringify(ue)),{...de,...Ce}}),idxLibMode:j,preview:H,rowHeaders:ee,keyName:e.keyName},{headers:{Authentication:(be=window==null?void 0:window.config)==null?void 0:be.indicatorToken,operateContext:CONTEXT}});return S!=null&&S.isTimer&&r(ce),ce}catch(ce){console.error(ce)}finally{}},y=vue.unref(n)!=="design"&&((E=e==null?void 0:e.graphicConfig)==null?void 0:E.pageMode)!=="design"&&e.isOpenRequestTimer&&e.requestInterval&&setInterval(()=>{p({isTimer:!0})},e.requestInterval*1e3);return vue.onUnmounted(()=>{clearInterval(y)}),p},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$r=vue.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...pageConfigComponentProps},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.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),C=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=C.value.clientWidth,l.value=C.value.clientHeight),(!c.value||!u.value)&&(c.value=window.screen.width,u.value=window.screen.height),y()})}),v=()=>{s.value&&l.value?(C.value.style.width=`${s.value}px`,C.value.style.height=`${l.value}px`):(C.value.style.width=`${c.value}px`,C.value.style.height=`${u.value}px`)};vue.watch([r,n],async()=>{await g(),v(),_(),window.addEventListener("resize",x),m(),h.value=!0},{immediate:!0});const d=vue.ref({});vue.provide("scaleValue",d);const _=()=>{if(a){C.value.style.width="100%",C.value.style.height="auto",i("auto");return}const y=document.body.clientWidth,E=document.body.clientHeight,S=s.value||c.value,P=l.value||u.value,k=y/S;let F=E/P;(s.value!==1920||l.value!==1080)&&(F=l.value/s.value*y/P),d.value={widthScale:k,heightScale:F},C.value&&(C.value.style.transform=`scale(${k}, ${F})`),i(F)},x=lodashEs.debounce(async()=>{await g(),_()},100),m=()=>{const y=window.MutationObserver;f=new y(x),f.observe(C.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",x),p()}),{style:o,container:C,ready:h}}}),PageConfig_vue_vue_type_style_index_0_scoped_b496b36e_lang="",_hoisted_1$g={id:"container",ref:"container"};function _sfc_render$w(e,r,n,i,a,o){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$g,[e.ready?(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$r,[["render",_sfc_render$w],["__scopeId","data-v-b496b36e"]]),EcanPageConfig=withInstall(PageConfig),providerConfig={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{},combinationMap:{},width:"1920px",height:"1080px",pageFontFamily:"",jumpType:"page",jumpTime:null,jumpPage:"",jumpLink:"",requestList:[]},providerConfigComponentProps=transformToComponentProps(providerConfig),_sfc_main$q=vue.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,props:{...providerConfigComponentProps},setup(e,{expose:r}){useHrefParamsToGlobalVariables();const n=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)),i=vue.ref(),a=()=>{i.value.setAttribute("datav-theme",e.theme)},o=vue.inject("usedComponentList",[]),s=vue.inject("componentList",[]),l=vue.computed(()=>{const $=[];for(const K of vue.unref(o))K.type==="ecanModal"?$.push(...K.componentList):$.push(K);return $});vue.watch(()=>e.theme,()=>{a()}),vue.onMounted(()=>{a()});const c=vue.computed(()=>useVariablesInText(e.contextRequestUrl)),u=vue.computed(()=>e.pageMode),h=vue.computed(()=>e.theme),C=vue.computed(()=>e.width),f=vue.computed(()=>e.height),g=vue.computed(()=>e.pageFontFamily),v=vue.computed(()=>{const $=[],K=vue.unref(s).filter(ee=>ee.type==="ecanModal");for(const ee of K)ee!=null&&ee.requestList&&$.push(...ee.requestList);return[...$,...e.requestList]}),d=vue.ref("");vue.provide(GLOBAL_CONFIG,{contextRequestUrl:c,pageMode:u,theme:h,touchEventId:d,width:C,height:f,fontFamily:g,requestList:v});const _=vue.ref({height:"100%",overflow:e.pageMode==="design"?"":"hidden"});vue.provide("setPageHeight",$=>{let K=$;n.value||(K=parseFloat(f.value)*$+"px"),_.value.height=K}),vue.provide("isMobile",n.value),vue.provide("getContainerMap",()=>e.containerMap),vue.provide("getCombinationMap",()=>e.combinationMap);const x=vue.ref(),m=new Map;console.log("globalModel",m);const p=$=>m.get($),y=($,K)=>{x.value=K,m.set($,K)},E=()=>{x.value=null},S=$=>{let K=$;if(K){const ee=$.match(/\{(.+?)\}/g);if(ee!=null&&ee.length){let te=ee[0].slice(1,-1).trim();const re=te.match(/\[(.+?)\]/g);let ne="";re!=null&&re.length&&(te=te.replace(re[0],""),ne=re[0].slice(1,-1).trim());const he=vue.unref(o).find(ve=>ve.keyName===te);if(he){const ve=p(he.id),{type:pe,value:ye,RECORD:be,recordData:ce}=ve||{};lowerCaseIncludes(pe,MODEL_KEY_LIST)?K=be[ne]:lowerCaseIncludes(pe,"select")?K=ce[ne]:lowerCaseIncludes(pe,["rangePicker","date"])?dayjs.isDayjs(vue.unref(ve[ne]))?K=vue.unref(ve[ne]).format(ve.format):K=vue.unref(ve[ne]):K=ye}else K=""}}return K},P=new Map,k={},F=async($,K)=>{var he;const{requestName:ee}=$,te=await useRequestData({...$,projectRequestUrl:vue.unref(c),getModel:p})(),re=((he=te==null?void 0:te.data)==null?void 0:he.data)||{},ne=P.get(ee);if(ne!=null&&ne.length&&(!K||k[ee])){for(const ve of ne)ve(re);K||P.delete(ee)}},B=($,K)=>{k[$]&&(clearInterval(k[$]),delete k[$],P.delete($));const ee=vue.unref(l).filter(re=>re.customRequestName===$),te=P.get($)||[];if((ee==null?void 0:ee.length)>te.length&&(te.push(K),P.set($,te),(ee==null?void 0:ee.length)===te.length)){const re=vue.unref(v).find(ne=>ne.requestName===$);re&&(re!=null&&re.isOpenRequestTimer&&(re!=null&&re.requestInterval)?(F(re,!0),k[$]=setInterval(()=>{F(re,!0)},re.requestInterval*1e3)):F(re))}};vue.provide(GLOBAL_MODEL,{getGlobalModel:p,setGlobalModel:y,clearInteractiveData:E,getRecordValueByKeyName:S,hanldePageRequestData:B,interactiveData:x});const L=vue.ref({}),O=($,K)=>{L.value[$]=K};vue.provide(LOADED_DATA,{loadedData:L,setLoadedData:O});const D=[],V=()=>{D.pop()},M=$=>{D.push($)},T=new Map,w=$=>T.get($),b=($,K)=>{T.set($,K)};vue.provide(MODAL_MODEL,{popUseModalIds:V,pushUseModalIds:M,getModalModel:w,setModalModel:b});const A=mitt(),R=new Set,I=($,K)=>{R.add($),A.on($,ee=>{const{eventName:te,params:re}=ee;return typeof K[te]=="function"&&K[te](re)}),vue.onBeforeUnmount(()=>{q($)})},q=$=>{R.delete($),A.off($)},N=($,K,ee={})=>{if($==="PAGE"){const te=D.length;let re=[];if(te===0)re=[...R];else{const ne=D[te-1];re=[...w(ne)]}re.forEach(ne=>{A.emit(ne,{eventName:K,params:ee})})}else A.emit($,{eventName:K,params:ee})};vue.provide(EVENT_BUS,{onEvent:I,offEvent:q,emitEvent:N});const G=vue.ref(0),Y=()=>{G.value=vue.unref(G)+1};vue.provide(GLOBAL_TOKEN,{requestToken:Y});const U=new Map,j=new Map,H=({requestFn:$=()=>{},sortNum:K=0,id:ee=""})=>{if(U.has(K)){const te=U.get(K);te==null||te.push($)}else U.set(K,[$]);j.set(ee,$)},Z=$=>new Promise((K,ee)=>{const te=$.map(re=>re());Promise.all(te).then(re=>{K(re)}).catch(re=>{ee(re)})}),X=$=>new Promise(async(K,ee)=>{if($){if(typeof $=="string"){const te=j.get($);if(typeof te=="function"){const re=request.interceptors.response.use(ne=>(K(ne),ne),ne=>(ee(ne),Promise.reject(ne)));te(),request.interceptors.response.eject(re)}}}else{const te=Array.from(U);te.sort((ne,he)=>he[0]-ne[0]);const re=te.length;try{e.pageMode!=="design"&&vue.unref(G)>0;for(let ne=0;ne<re;ne++){const he=te[ne][1];await Z(he)}}catch(ne){console.error(ne)}finally{U.clear(),K(null)}}});vue.provide(REQUEST_MODEL,{setRequest:H,touchRequest:X});const ae=()=>{A.emit(REFRESH_PAGE)};vue.provide(REFRESH_PAGE,{emitRefreshPage:ae});const fe=$=>{A.on(REFRESH_PAGE,()=>$()),vue.onMounted(()=>{A.off(REFRESH_PAGE)})};return vue.watchEffect(()=>{var $;if(($=vue.unref(o))!=null&&$.length&&vue.unref(u)!=="design"){const{jumpType:K,jumpTime:ee,jumpPage:te,jumpLink:re}=e;if(ee!=null&&ee.value){let ne=0;switch(ee==null?void 0:ee.suffix){case"hours":ne=ee.value*60*60*1e3;break;case"minute":ne=ee.value*60*1e3;break;case"seconds":ne=ee.value*1e3;break}setTimeout(()=>{let he="";K==="page"&&te?he=usePageUrl(vue.unref(u),te):K==="link"&&re&&(he=re),he=useVariablesInText(he),window.open(he,"_self")},ne)}}}),vue.onBeforeUnmount(()=>{U==null||U.clear(),j==null||j.clear()}),r({touchRequest:X,getGlobalModel:p,onRefreshPage:fe}),{providerConfig:i,configStyle:_}}}),ProviderConfig_vue_vue_type_style_index_0_scoped_fc92f909_lang="";function _sfc_render$v(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$q,[["render",_sfc_render$v],["__scopeId","data-v-fc92f909"]]),EcanProviderConfig=withInstall(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:""},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=M=>{var T,w;if(e.showAnimation){const b=e.text.match(/\{(.+?)\}/g)||[];if(b!=null&&b.length){const A=(T=b[0].slice(1,-1))==null?void 0:T.trim();if(vue.unref(a)[A]===M){a.value=M;return}const R=+M[A];let I=0;if(isNaN(R))a.value=M;else{String(R).includes(".")&&(I=((w=String(R).split(".")[1])==null?void 0:w.length)||0);const q=Math.abs(R)*Math.pow(10,I),N=String(q).length;let G=[];for(let U=0;U<5;U++){const j=Math.ceil(Math.random()*(q+1)-1);G.includes(j)||G.push(j)}G.sort((U,j)=>U-j),G=G.map(U=>{const j=String(U).split("").reverse(),H=[];for(let Z=0;Z<N;Z++)j&&j[Z]?H.push(j[Z]):H.push("0");return I&&H.splice(I,0,"."),(R<0?"-":"")+H.reverse().join("")}),G.push(R);let Y=0;for(const U of G)setTimeout(()=>{a.value={...vue.unref(a),[A]:U}},Y*1e3),Y+=.1}}else a.value=M}else a.value=M};vue.watch(()=>[e.data,e.dataType],([M,T])=>{T==="static"&&l(M)},{immediate:!0});const{getGlobalModel:c,setGlobalModel:u,getRecordValueByKeyName:h,hanldePageRequestData:C}=vue.inject(GLOBAL_MODEL,{getGlobalModel:M=>{},setGlobalModel:(M,T)=>{},getRecordValueByKeyName:M=>{},hanldePageRequestData:(M,T)=>{}}),{setLoadedData:f}=vue.inject(LOADED_DATA,{setLoadedData:(M,T)=>{}}),g=vue.computed(()=>{let M="";if(e.gradientShow){const{gradientColor:T,gradientOffset:w,gradientAngle:b,color:A}=e;M+=`background: linear-gradient(${b}, ${A}, ${T||"transparent"} ${w*100}%);-webkit-background-clip: text;color: transparent;`}return M}),v=vue.computed(()=>{const M={};if(e.gradientShow){const{gradientColor:T,gradientOffset:w,gradientAngle:b,color:A}=e,R=T||"transparent";M.background=`linear-gradient(${b}, ${A}, ${R} ${w*100}%)`,M["-webkit-background-clip"]="text",M.color="transparent"}return M}),d=vue.computed(()=>{var q;if(vue.unref(n))return"NaN";const M=vue.unref(a),T=e.increaseColor||e.color,w=e.declineColor||e.color;let b=e.text;b=b==null?void 0:b.replace(/\n|\\n/g,"<br/>"),b=b==null?void 0:b.replace(/\s(?!\{) | (?!\})\s/g," ");const A=b.match(/\{(.+?)\}/g)||[];let R="",I="";if(e.exceedConfig==="wrap"?I="show-wrap":e.exceedConfig==="ellipsis"&&(I="show-ellipsis"),A==null||A.length===0){if(b&&e.format==="percentage"&&!isNaN(+b)){const N=parseFloat(b),G=N*100,Y=_(G.toFixed(2));N>=0?b=`<span class="${I}" style="color: ${Y||T||"#ED6643"};font-size:${vue.unref(o)};display: inline-block;${vue.unref(g)}">
|
|
100
100
|
<div class="percentage-img-box">
|
|
101
|
-
<img style="width: ${
|
|
101
|
+
<img style="width: ${vue.unref(o)};filter: ${`drop-shadow(${Y||T||"#ED6643"} ${vue.unref(o)} 0px)`};" src="${goUp}"/>
|
|
102
102
|
</div>
|
|
103
|
-
<span style="color: ${
|
|
104
|
-
</span>`:
|
|
103
|
+
<span style="color: ${Y||e.color};${vue.unref(g)}">${Math.abs(+G).toFixed(2)}%</span>
|
|
104
|
+
</span>`:b=`<span class="${I}" style="color: ${Y||w||"#6ACB97"};font-size:${vue.unref(o)};display: inline-block;${vue.unref(g)}">
|
|
105
105
|
<div class="percentage-img-box">
|
|
106
|
-
<img style="width: ${
|
|
106
|
+
<img style="width: ${vue.unref(o)};filter: ${`drop-shadow(${Y||w||"#6ACB97"} ${vue.unref(o)} 0px)`};" src="${goDown}"/>
|
|
107
107
|
</div>
|
|
108
|
-
<span style="color: ${
|
|
109
|
-
</span>`}
|
|
108
|
+
<span style="color: ${Y||e.color};${vue.unref(g)}">${e.minusSignShow?"-":""}${Math.abs(+G).toFixed(2)}%</span>
|
|
109
|
+
</span>`}R=b}for(let N=0;N<A.length;N++){const G=A[N],Y=(q=G==null?void 0:G.slice(1,G.length-1))==null?void 0:q.trim();let U=Y;const j=Y.match(/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g);for(let Z=0;Z<j.length;Z++){const X=j[Z],ae=M[X];ae&&(U=Y.replace(X,h(String(ae))||ae))}if(/\(.*\)/g.test(U)){const Z=runCode(U);Z!=null&&(U=Z)}let H=U;if(H===Y&&(H=e.variableDefaultValue),H!=null){const Z=e.format;if(Z==="percentage")if(H=+H,isNaN(H))b=b.replace(G,`<span class="${I}" style="color:${_("0.00")||e.variableColor};font-size:${vue.unref(o)};${vue.unref(g)}">0%</span>`);else if(H>=0){H=H*100;const X=_(H.toFixed(2));b=b.replace(G,`<span class="${I}" style="color: ${X||T||"#ED6643"};font-size:${vue.unref(o)};display: inline-block;${vue.unref(g)}">
|
|
110
110
|
<div class="percentage-img-box">
|
|
111
|
-
<img style="width: ${
|
|
111
|
+
<img style="width: ${vue.unref(o)};filter: ${`drop-shadow(${X||T||"#ED6643"} ${vue.unref(o)} 0px)`};" src="${goUp}"/>
|
|
112
112
|
</div>
|
|
113
|
-
<span style="color: ${
|
|
114
|
-
</span>`)}else{H=H*100;const
|
|
113
|
+
<span style="color: ${X||e.color};${vue.unref(g)}">${Math.abs(+H).toFixed(2)}%</span>
|
|
114
|
+
</span>`)}else{H=H*100;const X=_(H.toFixed(2));b=b.replace(G,`<span class="${I}" style="color: ${X||w||"#6ACB97"};font-size:${vue.unref(o)};display: inline-block;${vue.unref(g)}">
|
|
115
115
|
<div class="percentage-img-box">
|
|
116
|
-
<img style="width: ${
|
|
116
|
+
<img style="width: ${vue.unref(o)};filter: ${`drop-shadow(${X||w||"#6ACB97"} ${vue.unref(o)} 0px)`};" src="${goDown}"/>
|
|
117
117
|
</div>
|
|
118
|
-
<span style="color: ${
|
|
119
|
-
</span>`)}else e.format==="percent"?(H=+H,isNaN(H)||(H=(H*100).toFixed(2),E=E.replace(P,`<span class="${N}" style="color:${A(H)||e.variableColor};font-size:${t.unref(r)};${t.unref(m)}">${H}%</span>`))):e.format==="money"?(H=+H,isNaN(H)||(H=Mo(H),E=E.replace(P,`<span class="${N}" style="color:${A(H)||e.variableColor};font-size:${t.unref(r)};${t.unref(m)}">${H}</span>`))):K==="thousands"?(H=+H,isNaN(H)||(H=Qc(H),E=E.replace(P,`<span class="${N}" style="color:${A(H)||e.variableColor};font-size:${t.unref(r)};${t.unref(m)}">${H}</span>`))):E=E.replace(P,`<span class="${N}" style="color:${A(H)||e.variableColor};font-size:${t.unref(r)};${t.unref(m)}">${H}</span>`)}}if(q||(q=`<span class="${N}" style="color: ${A(E)};${t.unref(m)}">${E}</span>`),e.unitShow&&e.unitText){const{unitTop:z,unitLeft:P}=e;let X="position:relative;";z&&(X+=`top:${z};`),P&&(X+=`margin-left:${P};`),q+=`<span style='color:${e.unitColor};font-size:${e.unitFontSize};font-weight:${e.unitFontWeight};${X};${t.unref(m)}'>${e.unitText}</span>`}return e.exceedConfig&&(q=`<span class="${N}" style="display: inline-block;color: ${A(q)};">${q}</span>`),q.includes("span")||(q=`<span class="${N}" style="color: ${A(q)};">${q}</span>`),q});function A(T){let F="",b=!1;const{targetValue:E,targetShow:_,notExpectColor:q}=e;if(_){switch(e.targetRule){case"equal":T!==E&&(b=!0);break;case"greater":T<=E&&(b=!0);break;case"greater_equal":T<E&&(b=!0);break;case"less":T>=E&&(b=!0);break;case"less_equal":T>E&&(b=!0);break}b&&(F=q)}return F}const{pageMode:I}=t.inject(ze,{pageMode:"normal",requestList:[]}),v=je(e,T=>{var F;l(((F=T==null?void 0:T.data)==null?void 0:F.data)||{})}),S=t.ref(!1),C=async()=>{var T;try{S.value=!0;const F=await v();l(((T=F==null?void 0:F.data)==null?void 0:T.data)||{})}catch(F){console.error(F)}finally{S.value=!1}},B=T=>{const F=e.id,b=d(F);c(F,{...b,value:T||"",RECORD:T||""})},g=()=>{B("")},R=T=>{var b,E;const{data:F}=(T==null?void 0:T.data)||{};if(F){n.value=!1;const{columns:_=[],rows:q=[]}=((b=T==null?void 0:T.data)==null?void 0:b.data)??{},{graphicConfig:N}=e;let V={};if(_.length>0)if((E=N==null?void 0:N.dimensionList)!=null&&E.length){const z=_[0];z&&(q!=null&&q.length)&&(V={value:q[0][z]})}else{const z=_.find(P=>!!P);z&&(V={value:isNaN(q[z])?0:q[z]||0})}B(V==null?void 0:V.value),l(V)}else n.value=!0,B("NaN"),l({value:"NaN"})},p=Xe(e,R),D=async()=>{try{S.value=!0;const T=await p();R(T)}catch(T){console.error(T)}finally{S.value=!1,u(e.id,!0)}},w=()=>{switch(e.dataType){case"indicator":D();break;case"request":{const{openCustomRequestData:T,customRequestName:F,customRequestField:b}=e;T||T===void 0?C():x(F,E=>{E&&l({[b]:E[b]})});break}}},{setRequest:L}=t.inject(He,{setRequest:({id:T,sortNum:F,requestFn:b})=>{}});typeof L=="function"&&L({id:e.id,requestFn:w,sortNum:e.requestSort}),Fe(e,{refreshData:w,resetRecord:g}),o({refreshData:w});const M=Ne(e),k=M("click",()=>{var N;const T=document.getElementsByClassName(`ecan-text_${e.id}`);if(T!=null&&T.length&&B(T[0].innerText),setTimeout(()=>{B("")},0),!e.linkPage&&!e.href)return;const F=e.linkPage||"",b=zo(t.unref(I),F),E=e.href;let _=E||b;_=_e(_);const q=e.target;if(q)if(q!=="event"){if((N=e.transParams)!=null&&N.length){_.includes("?")?_+="&":_+="?";const V=[];for(const z of e.transParams)V.push(`${z.keyName}=${f(String(z.fieldName))}`);_+=V.join("&")}window.open(_,"_"+q)}else window.parent.postMessage({type:"openPage",url:E},"*")}),O=M("valueChange",()=>{});return t.watch(()=>h.value,(T,F)=>{T!==F&&O()}),{style:a,myText:h,loading:S,click:k,textIndent:s,vFontSize:r,gradientStyle:y}}}),Hr=()=>{t.useCssVars(e=>({"2919b577":e.vFontSize,bb85f730:e.textIndent,"36e7efc0":e.percentageSide}))},jr=Go.setup;Go.setup=jr?(e,o)=>(Hr(),jr(e,o)):Hr;const yh="",xh="",rd=["innerHTML"];function ld(e,o,n,a,i,r){const s=t.resolveComponent("skeleton");return e.loading?(t.openBlock(),t.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:t.normalizeStyle(e.style)},[t.createVNode(s,{loading:e.loading},null,8,["loading"])],4)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["ecan-text","ecan-text_"+e.id]),style:t.normalizeStyle({...e.style,...e.gradientStyle}),innerHTML:e.myText,onClick:o[0]||(o[0]=(...l)=>e.click&&e.click(...l))},null,14,rd))}const Wr=Ae(ve(Go,[["render",ld],["__scopeId","data-v-1ecc1ea2"]])),sd=t.defineComponent({name:"EcanScrollText",setup(){return{text:t.ref("基础文本")}}}),bh="",cd={class:"red"};function dd(e,o,n,a,i,r){return t.openBlock(),t.createElementBlock("div",cd,t.toDisplayString(e.text),1)}const Gr=Ae(ve(sd,[["render",dd],["__scopeId","data-v-4dd9c03e"]])),Uo={...Re,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"}},$o=Te(Uo),Ur=["timeChange"],fd=t.defineComponent({name:"EcanTimeDisplay",props:{...$o},setup(e){const o=Ie(e),n=()=>{const{format:c,operate:f}=e;let x=be();if(f){const{type:u,value:m,mode:y}=f;switch(u){case"add":x=x.add(m,y);break;case"minus":x=x.subtract(m,y)}}return x.format(c)},a=t.ref();t.watch(()=>[e.operate,e.format],()=>{a.value=n()},{immediate:!0,deep:!0}),t.watch(()=>e.updateInterval,()=>{d()},{deep:!0});let i=null;const r=()=>{clearInterval(i),i=null},l=Ne(e)("timeChange",()=>{}),d=()=>{i&&r();let c=1e3;const{value:f,mode:x}=e.updateInterval||{};f&&(c=c*f);const u={second:1,minute:60,hour:60*60,day:24*60*60};x&&(c=c*u[x]),i=setInterval(()=>{a.value=n(),l()},c)};return Fe(e,{timeChange:l}),t.onMounted(()=>{d()}),t.onUnmounted(()=>{r()}),{style:o,time:a}}}),Sh="";function ud(e,o,n,a,i,r){return t.openBlock(),t.createElementBlock("div",{class:"time-display",style:t.normalizeStyle(e.style)},t.toDisplayString(e.time),5)}const $r=Ae(ve(fd,[["render",ud],["__scopeId","data-v-b628fca2"]])),Yo={...Re,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%"},Ko=Te(Yo),Yr=["refreshData","click","resetRecord"],hd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAWhJREFUSEvNlz9Lw0AYxp/3iJ2TgqN+ia5ihbb0A/hnEXG3QxHEyUkQVwcHwU3cgoI4hHKXUnQS3Z0VQVBwbTVtXrlciyKmLo2XmxI47v3x3HPvPUdcKk3B85og2gYwjUkOIoD5CcAeSXk0bmniSqWJQuEA/f4kEb7WMjD6f42kPE0rQlyrPYJoZjg5O5g4voDnrZDvf/xWRIMkuJkOo8odXHeefL9rG+QWrlvOA8gNomiBOp2ePUVM5S7iuE5heG0bBNBeieMdKLWvv74D/Y9Zf0rAfEZKLdkHEUIrcw8h5qjVetNAdhRJKidH+nnY6EJ7IKN9YY4ANPIAou+WDXsgZmtewLxKSik7ICOzOk6ZguDVplnPScpFe8c3Jw2th8GgTu32lb0Wb4yZg0vPgOQmBvwRjKrVBwgxm3lUZL6E4yxTELyneaQBxznMPDwzr5NSJ+nhWT8nisVNAFuZPSeYd0mp43G5+BNp2sfxEUU29gAAAABJRU5ErkJggg==",gd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAbVJREFUSEvNl7tKA1EQhmfOyd6ClikVLHwCWzHb5QHUbWIStVRQBLGyEEFsLSwUq6idKIiFjZdNUgTR3k7wAoqC2GU3mz0ju5uIRaKN68l5gDMfM//M/IO0PaS4yd55ErTEEFMEf/cYIvgknjjgmpq3t376GZ2iOa8l+Ybn+CD+kqIZlSFA+C1CTpuw9zvBYK2YfuCM9QmKgaIZNcEQGj4da0bKQuug3g4G3T2TYmQIYwYlIqIbVXdH0KrW2oI4u2Z8qfgqT6AVutZ1Ny0VhAelEXSl+2DilO1IywhCKNgaR8oouVJFGkikk0grvqBl9c5cx5UV8R0I/0MjbTJwqOftMekgmsLA9fxbTa8Po1V9D8eMpIyAwhE8n55JYM6YvDyXBhIN21DEHgHNdgNIg4BmpIEEpak3xGsCMKsU7DMpIC2xeg2R7p2uvMkTK9GRXiiNSmnfrhhoYXcQODzBMkr2oixtxLeW3osP5oDMpRdZxl9sQNcYo1oxfc8Z64/dKgo6efwwxgfnTt1OGpnVDL4Zp3mOAouCmivvdjTPwTlRN3oWBMFiHOeEIPFEAKtGvrTz0znxCSDl9ZPnj4lKAAAAAElFTkSuQmCC",md="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAZhJREFUSEvNl79LY0EUhb87L6uwkHSieRjBwm7/ApHVbcwzrT8ake21EGHZympBbLewEOxk2xVEBAVttBLtrRWTiLtaiTHue3NlsgiKRiwSJ1NOMffjzLl3zghH+oHL81ms/Y4xHajSsGUMJMkZIgtE4fJr5wqbpVnS6Z9UrmkoxENVMYCC6BTD4a96MMJW8RQT5LC2YUI8OygInDLrdGcn+CR3LxUStsvaFCUeV3NXpPaIdPKZ/lzlZZCtUgNNUUdUB2LtIZlksBVADmivDvGl99afIiLOsBWUPFG47w/EVXbdU7uieJ7h7CIiT7pDeA+PPJfgN1E49njbD0hbO9xVj8kkA/TnrmqCeVIEUimI4zJqphjp2vUHUpPBmZh/JDrjH0Q1xjLtDyRIQRJfQDBJ1LnjB+TBrFYGKWT/+DTrGlE46qd9W2Kgue5QvUXIkw/3/I34/69vCzx6b4oBrROMiieYoKfpUTGON9CbcQp91ToeKc7wMbPU9PCsfCXKrtYPz+478fd8DtVvGGnOd0LlB4Vw5bV0fg/E2Mcb2D1RagAAAABJRU5ErkJggg==",yd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAapJREFUSEvNl88rBGEYx7/P7K6yO2VGOfJPuAqF/AGYi7Q7y8mWTcnJQUquDg4kVnITJQdpZyVOsndXtKUoM4vyY3feR7OLiN0cjHff05ze7+d95vs+7/chtC6FGvRQkgiTBGrCXy4igEVOgGbzaXOx2takdaWSSl39PBefAPBfYpT3KsF4H2LITsc3KgmQ3pO6BFEz2AeId1VSwELsOHrEwKbx8hMM6T1r7EslPqsReefMqlq4PbdpPFYASflYijfJEgifqlqkQzKIArB7YheoE4emZ8Zvy/OI/xUpyz5CoNfOmMeSQah8gwRP2db5HDAtvtjoHyvyocuMLccy+6WDkBICi+KZq4Tb7vaN21K7kVGRcqMLeAa+EqChfDqWkQfy9l+YUWAgUQMgXGTQqDwQCoDZvWZWBvNW1JIC8m7WQlB0POzFb6SZlYFtJ232Sbq+tdPQnth1e52DkSN5LZ5q5dH7XQz4r2AksqqmVglG3asXUJQWv6MiWOzawfsB7I09V/DISoKCkQW/wzMzoo4VW68YnkvjRGNonEATBPgzTjDP5K3h5Wojwitkj93H9BVpxQAAAABJRU5ErkJggg==",xd=t.defineComponent({name:"EcanList",components:{Skeleton:Wt,ATooltip:he.Tooltip,MarqueeScroll:Wn},props:{...Ko},setup(e,{expose:o}){const n=t.ref(),a=Ie(e,["backgroundColor"]),i=(b,E)=>{const{format:_,customFormatter:q}=E;if(_==null||_==="")return b;const N={money:Mo,percentage:Dn,contrast:Dn,custom:Or};return N[_]?_==="custom"?N[_](b,q)||"":N[_](b)||"":""},r=(b,E)=>{const _=parseFloat(b+"");if(E!=="contrast")return"";switch(!0){case _>=0:return"goUp";case _<0:return"goDown"}},s=je(e,b=>{var E;n.value=((E=b==null?void 0:b.data)==null?void 0:E.data.rows)||[]}),l=t.ref(!1),d=async()=>{var b;if(e.dataType==="request")try{l.value=!0;const E=await s();n.value=((b=E==null?void 0:E.data)==null?void 0:b.data.rows)||[]}catch(E){console.error(E)}finally{l.value=!1}};t.watch(()=>e.data,()=>{(e.dataType==="static"||!t.unref(n))&&(n.value=e.data)},{immediate:!0,deep:!0});const c=t.computed(()=>({key:"SEQ",width:e.seqWidth,title:e.seqName,align:"center",fontSize:e.seqFontSize})),f=t.computed(()=>{const{columns:b,isUseSeq:E}=e;return E?[t.unref(c),...b]:b}),x=b=>{var q;const{columns:E=[],rows:_=[]}=((q=b==null?void 0:b.data)==null?void 0:q.data)??{};e.isUseSeq&&E.unshift(e.seqName),f.value.forEach((N,V)=>{(!e.isUseSeq||V!==0)&&(N.title=E[V],N.key=E[V])}),n.value=_},u=Xe(e,x),m=async()=>{try{l.value=!0;const b=await u();x(b)}catch(b){console.error(b)}finally{l.value=!1}},y=()=>{switch(e.dataType){case"indicator":m();break;case"request":d();break}},h=Ne(e),{getGlobalModel:A,setGlobalModel:I}=t.inject(Le,{getGlobalModel:b=>{},setGlobalModel:(b,E)=>{}}),v=b=>{h("click",()=>{const E=A(e.id);I(e.id,{...E,type:e.type,RECORD:b})})()};Fe(e,{refreshData:y,resetRecord:()=>{const b=e.id,E=A(b);I(b,{...E,type:e.type,RECORD:""})}});const{setRequest:C}=t.inject(He,{setRequest:({id:b,sortNum:E,requestFn:_})=>{}});typeof C=="function"&&C({id:e.id,requestFn:y,sortNum:e.requestSort}),o({refreshData:y});const B=(b,E)=>({flex:b.width?"none":"1",width:b.width,height:e.itemHeight,lineHeight:e.itemHeight,textAlign:(E?b.cellAlign:b.align)||"left",backgroundColor:b.cellColor}),g=(b,E)=>{let _=0;const q=t.unref(n).map(V=>V[E]),N=Math.max(...q);return N&&(_=b[E]/N*100),_},R=b=>{const{progressColor:E="#1890ff",progressGradientColor:_=""}=b;return _?{background:`linear-gradient(to right, ${E} 0%, ${_} 100%)`}:{backgroundColor:E||"#1890ff"}},p=t.computed(()=>{const b=parseFloat(e.seqFontSize)+5;return{width:b+10,height:b}}),{pageMode:D}=t.inject(ze,{pageMode:"normal"}),w=t.computed(()=>t.unref(D)!=="design"&&e.isAutoScroll),L=b=>{const{seqIconConfig:E}=e;let _=E.find(q=>q.key===b+1);return _||(_=E.find(q=>q.key==="other")),!!(_!=null&&_.icon)},M=(b,E)=>{const{seqIconConfig:_}=e;let q=_.find(N=>N.key===b+1);return q||(q=_.find(N=>N.key==="other")),E===1?q!=null&&q.icon?pt(q.icon):"":E===2?(q==null?void 0:q.color)||"#fff":""},k=b=>{const{seqIndexFormatter:E}=e,_=b+1;return E?_e(E,{textData:{index:_}},{useNewline:!1,useSpace:!0}):_},O=t.computed(()=>parseFloat(e.itemWidth)!==100?{height:"100%"}:{}),T=t.computed(()=>!e.itemWidth||e.itemWidth==="100%"?"0":e.itemColSpan);return{style:a,formatFn:i,contrastClass:r,dataSource:n,loading:l,myColumns:f,click:v,getColumnStyle:B,getPercentage:g,getBackgroundColor:R,isShowSeqIcon:L,getSeqIconData:M,seqIcon4:hd,seqIcon5:gd,seqIcon6:md,seqIcon7:yd,iconSize:p,isScroll:w,formatSeq:k,wrapStyle:O,colSpan:T,getText:(b,E)=>(b.format!=null||b.format!=="")&&i(E[b.key],b)}}}),wh="",Ah="",pd=e=>(t.pushScopeId("data-v-d6191ac4"),e=e(),t.popScopeId(),e),bd={key:0,class:"title"},vd={key:0,class:"ranking"},Sd=["onClick"],Cd={key:0,class:"ranking"},wd=pd(()=>t.createElementVNode("div",{class:"icon"},null,-1)),Ad={class:"sort"},kd=["src"],Td={key:1},Bd=["src","width","height"],Ed=["src","width","height"],Dd=["src","width","height"],Id=["src","width","height"],Rd={key:1},Ld=["title"],Nd={key:2,class:"empty"};function _d(e,o,n,a,i,r){const s=t.resolveComponent("a-tooltip"),l=t.resolveComponent("marquee-scroll"),d=t.resolveComponent("skeleton");return t.openBlock(),t.createElementBlock("div",{class:"ecan-list",style:t.normalizeStyle(e.style)},[t.createVNode(d,{loading:e.loading},{default:t.withCtx(()=>[e.useTitle?(t.openBlock(),t.createElementBlock("div",bd,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columnCount,c=>(t.openBlock(),t.createElementBlock("div",{class:"title-inner",style:t.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(100% / ${e.columnCount} - ${e.itemColSpan} * ${e.columnCount-1}/ ${e.columnCount})`,marginRight:c%e.columnCount!==0?e.itemColSpan:"",padding:`0 ${e.itemPadding}`}),key:c},[e.useRanking?(t.openBlock(),t.createElementBlock("div",vd)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myColumns,(f,x)=>(t.openBlock(),t.createElementBlock("div",{class:"column",key:f.key||x,style:t.normalizeStyle({color:f.titleColor,...e.getColumnStyle(f)})},t.toDisplayString(f.title),5))),128))],4))),128))])):t.createCommentVNode("",!0),e.dataSource.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:"ecan-list-content",style:t.normalizeStyle({paddingTop:e.useTitle?e.itemRowSpan:0,height:e.useTitle?"calc(100% - 40px)":"100%"})},[t.createVNode(l,{visible:e.isScroll,step:e.scrollSpeed,wrapStyle:{display:"flex",flexDirection:"column",flexWrap:"wrap",...e.wrapStyle}},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.dataSource.slice(0,e.sliceCount),(c,f)=>(t.openBlock(),t.createElementBlock("div",{class:"item",style:t.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(${e.itemWidth} - ${e.colSpan})`,marginRight:e.colSpan,marginBottom:e.itemRowSpan,padding:`0 ${e.itemPadding}`}),key:c.id||f,onClick:x=>e.click(c)},[e.useRanking?(t.openBlock(),t.createElementBlock("div",Cd,[wd,t.createElementVNode("div",Ad," Top "+t.toDisplayString(f+1),1)])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myColumns,x=>{var u;return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["column",e.contrastClass(c[x.key],x.format),x.key==="SEQ"?"seq-column":""]),key:x.key,style:t.normalizeStyle({fontSize:x.fontSize,color:e.contrastClass(c[x.key],x.format)===""?x.color:"",fontWeight:x.fontWeight,...e.getColumnStyle(x,"cell")})},[x.key==="SEQ"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.seqIcon?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(u=e.seqIconConfig)!=null&&u.length?(t.openBlock(),t.createElementBlock("div",{key:0,class:"icon-box",style:t.normalizeStyle({width:e.seqIconWidth||"",height:e.seqIconHeight||""})},[e.seqIconWidth&&e.seqIconHeight&&e.isShowSeqIcon(f)?(t.openBlock(),t.createElementBlock("img",{key:0,class:"custom-seq-icon",src:e.getSeqIconData(f,1),style:t.normalizeStyle({width:e.seqIconWidth,height:e.seqIconHeight})},null,12,kd)):t.createCommentVNode("",!0),t.createElementVNode("span",{class:"custom-seq-text",style:t.normalizeStyle({fontSize:e.seqFontSize,color:e.getSeqIconData(f,2),lineHeight:e.seqIconHeight||"",left:e.seqIconOffsetX,top:e.seqIconOffsetY})},t.toDisplayString(e.formatSeq(f)),5)],4)):(t.openBlock(),t.createElementBlock("div",Td,[f===0?(t.openBlock(),t.createElementBlock("img",{key:0,class:"seq-icon",src:e.seqIcon4,width:e.iconSize.width,height:e.iconSize.height},null,8,Bd)):f===1?(t.openBlock(),t.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon5,width:e.iconSize.width,height:e.iconSize.height},null,8,Ed)):f===2?(t.openBlock(),t.createElementBlock("img",{key:2,class:"seq-icon",src:e.seqIcon6,width:e.iconSize.width,height:e.iconSize.height},null,8,Dd)):f>=3?(t.openBlock(),t.createElementBlock("img",{key:3,class:"seq-icon",src:e.seqIcon7,width:e.iconSize.width,height:e.iconSize.height},null,8,Id)):t.createCommentVNode("",!0),t.createElementVNode("span",{class:"seq-icon seq-text",style:t.normalizeStyle({fontSize:e.seqFontSize})},t.toDisplayString(e.formatSeq(f)),5)]))],64)):(t.openBlock(),t.createElementBlock("span",Rd,t.toDisplayString(e.formatSeq(f)),1))],64)):x.format==="progress"?(t.openBlock(),t.createElementBlock("div",{key:1,class:"progress-cell",style:t.normalizeStyle({height:e.itemHeight})},[t.createElementVNode("div",{class:"progress",style:t.normalizeStyle({height:x.progressWidth||"14px",backgroundColor:x.progressBaseColor})},[t.createVNode(s,{title:c[x.key],overlayClassName:"ecan-list-tooltip",color:"#fff"},{default:t.withCtx(()=>[t.createElementVNode("div",{style:t.normalizeStyle({borderRadius:"10px",height:x.progressWidth||"14px",width:`${e.getPercentage(c,x.key)}%`,...e.getBackgroundColor(x)})},null,4)]),_:2},1032,["title"])],4)],4)):(t.openBlock(),t.createElementBlock("span",{key:2,title:e.getText(x,c)},t.toDisplayString(e.getText(x,c)),9,Ld))],6)}),128))],12,Sd))),128))]),_:1},8,["visible","step","wrapStyle"])],4)):(t.openBlock(),t.createElementBlock("div",Nd," 暂无数据 "))]),_:1},8,["loading"])],4)}const Kr=Ae(ve(xd,[["render",_d],["__scopeId","data-v-d6191ac4"]])),Zo={...Re,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:{}},Qo=Te(Zo),Zr=["refreshData","click"],Od=t.defineComponent({name:"EcanProportion",components:{AProgress:he.Progress,Skeleton:Wt},props:{...Qo},setup(e,{expose:o}){const n=t.ref(!1),{pageMode:a}=t.inject(ze,{pageMode:"normal"}),i=Ie(e),r=t.computed(()=>{const B=e.width;return parseFloat(B)}),s=t.ref({});t.watch(()=>e.data,()=>{(e.dataType==="static"||t.unref(a)==="design")&&(s.value=e.data)},{immediate:!0,deep:!0});const l=t.computed(()=>{const B=t.unref(s),g=+e.variableDefaultValue;if(B==null)return isNaN(g)?0:g;const R=e.text.match(/\{(.+?)\}/g)||[];let p;const D=new Set(Object.keys(B));for(let w=0;w<R.length;w++){const L=R[w],M=L.slice(1,L.length-1);if(D.has(M)){p=B[M];break}}return typeof p=="number"?p=p*100:typeof p=="string"&&!isNaN(+p)?p=+p*100:isNaN(g)?p=0:p=g*100,e.decimalFormat&&(p=+p.toFixed(2)),p}),d=t.computed(()=>{var D;let B=e.text;if(B==="")return t.unref(l);const g=e.variableDefaultValue,R=t.unref(s),p=B.match(/\{(.+?)\}/g)||[];for(let w=0;w<p.length;w++){const L=p[w];let M=L.slice(1,L.length-1);const k=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,O=L.match(k);for(let F=0;F<(O==null?void 0:O.length);F++){const b=(D=O[F])==null?void 0:D.trim();R[b]!=null&&(M=M.replace(b,R[b]))}let T=M;try{(/\(.*\)/g.test(M)||/[+/\\*]/g.test(M))&&(T=hn(M))}catch(F){console.error(F)}typeof+T=="number"&&!isNaN(+T)?(T=+T*100,e.decimalFormat&&(T=T.toFixed(2))):typeof T!="string"&&(T=g),B=B.replace(L,`<span style="color: ${e.variableColor};">${T+""}</span>`)}return B=B==null?void 0:B.replace(/\n|\\n/g,"<br/>"),t.unref(n)?"NaN":B}),c=je(e,B=>{var g;s.value=((g=B==null?void 0:B.data)==null?void 0:g.data)||{}}),f=t.ref(!1),x=async()=>{var B;if(e.dataType==="request")try{f.value=!0;const g=await c();s.value=((B=g==null?void 0:g.data)==null?void 0:B.data)||{}}catch(g){console.error(g)}finally{f.value=!1}},u=(B={})=>{s.value=B},m=B=>{var R;const{data:g}=(B==null?void 0:B.data)||{};if(g){n.value=!1;const{columns:p=[],rows:D=[]}=((R=B==null?void 0:B.data)==null?void 0:R.data)??{};let w={};if(p.length>0){const L=p.find(M=>!!M);L&&(w={percent:D[L]})}u(w)}else n.value=!0,u({percent:"NaN"})},y=Xe(e,m),h=async()=>{try{f.value=!0;const B=await y();m(B)}catch(B){console.error(B)}finally{f.value=!1}},A=()=>{switch(e.dataType){case"indicator":h();break;case"request":x();break}};Fe(e,{refreshData:A}),o({refreshData:A});const v=Ne(e)("click",()=>{}),{setRequest:S}=t.inject(He,{setRequest:({id:B,sortNum:g,requestFn:R})=>{}});typeof S=="function"&&S({id:e.id,requestFn:A,sortNum:e.requestSort});const C=t.computed(()=>{const{gradientShow:B,gradientColor:g,gradientOffset:R,strokeColor:p}=e;let D=p;return B&&g&&(D={"0%":p,[`${R*100}%`]:g}),D});return{style:i,myWidth:r,text:d,myValue:l,loading:f,click:v,customStrokeColor:C}}}),Th="",Fd=["innerHTML"];function Md(e,o,n,a,i,r){const s=t.resolveComponent("skeleton"),l=t.resolveComponent("a-progress");return t.openBlock(),t.createElementBlock("div",{class:"ecan-proportion",style:t.normalizeStyle(e.style)},[t.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:t.withCtx(()=>[e.loading?(t.openBlock(),t.createBlock(s,{key:0,loading:e.loading},null,8,["loading"])):e.strokeTextShow?(t.openBlock(),t.createElementBlock("div",{key:1,class:"format",style:t.normalizeStyle({width:e.strokeTextWidth,fontSize:e.fontSize,color:e.color,fontWeight:e.fontWeight,lineHeight:e.lineHeight})},[t.createElementVNode("span",{style:{"white-space":"nowrap"},innerHTML:e.text},null,8,Fd)],4)):t.createCommentVNode("",!0)]),_:1},8,["percent","width","type","strokeColor","strokeLinecap","trailColor","strokeWidth","showInfo","gapDegree","onClick"])],4)}const Qr=Ae(ve(Od,[["render",Md],["__scopeId","data-v-38f2fa04"]])),Jo={...Re,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:{}},Xo=Te(Jo),Jr=["refreshData","click","resetRecord"],zd=t.defineComponent({name:"EcanCounter",components:{Skeleton:Wt},props:{...Xo},setup(e,{expose:o}){const n=t.ref(),a=Ie(e),i=t.computed(()=>({width:e.unitWidth,height:e.unitHeight,marginRight:e.unitInterval+"px"})),r=t.computed(()=>({color:e.color,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle}));t.watch(()=>[e.data,e.dataType],([C,B])=>{B==="static"&&(n.value=C)},{immediate:!0});const{getGlobalModel:s,setGlobalModel:l}=t.inject(Le,{getGlobalModel:C=>{},setGlobalModel:(C,B)=>{}}),c=Ne(e)("click",()=>{const C=s(e.id);l(e.id,{...C,type:e.type,value:t.unref(n)})}),f=()=>{const C=e.id,B=s(C);l(C,{...B,type:e.type,value:""})},x=je(e,C=>{var B,g;n.value=((g=(B=C==null?void 0:C.data)==null?void 0:B.data)==null?void 0:g.value)||""}),u=t.ref(!1),m=async()=>{var C,B;try{u.value=!0;const g=await x();n.value=((B=(C=g==null?void 0:g.data)==null?void 0:C.data)==null?void 0:B.value)||""}catch(g){console.error(g)}finally{u.value=!1}},y=C=>{var R;const{data:B}=(C==null?void 0:C.data)||{};let g="";if(B){const{columns:p=[],rows:D=[]}=((R=C==null?void 0:C.data)==null?void 0:R.data)??{};if(p.length>0){const w=p.find(L=>!!L);w&&(g=D[w]||"")}}n.value=String(g)},h=Xe(e,y),A=async()=>{try{u.value=!0;const C=await h();y(C)}catch(C){console.error(C)}finally{u.value=!1}},I=()=>{switch(e.dataType){case"indicator":A();break;case"request":m();break}},v=t.computed(()=>{const C=[],{digits:B}=e,g=t.unref(n)?t.unref(n).split("").reverse().join(""):"";for(let R=0;R<B;R++)g&&g[R]?C.push(g[R]):C.push("0");return C.reverse()});Fe(e,{refreshData:I,resetRecord:f});const{setRequest:S}=t.inject(He,{setRequest:({id:C,sortNum:B,requestFn:g})=>{}});return typeof S=="function"&&S({id:e.id,requestFn:I,sortNum:e.requestSort}),o({refreshData:I}),{style:a,valueList:v,digitsStyle:i,fontStyle:r,loading:u,useImagePath:pt,click:c}}}),Eh="",Pd=["src"];function qd(e,o,n,a,i,r){var l;const s=t.resolveComponent("skeleton");return e.loading?(t.openBlock(),t.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:t.normalizeStyle(e.style)},[t.createVNode(s,{loading:e.loading},null,8,["loading"])],4)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"ecan-counter",style:t.normalizeStyle(e.style),onClick:o[0]||(o[0]=(...d)=>e.click&&e.click(...d))},[(l=e.valueList)!=null&&l.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.valueList,(d,c)=>(t.openBlock(),t.createElementBlock("div",{class:"digits-item",style:t.normalizeStyle(e.digitsStyle),key:c},[e.counterBackgroundImage?(t.openBlock(),t.createElementBlock("img",{key:0,class:"item-image",src:e.useImagePath(e.counterBackgroundImage)},null,8,Pd)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"item-text",style:t.normalizeStyle(e.fontStyle)},t.toDisplayString(d),5)],4))),128)):t.createCommentVNode("",!0)],4))}const Xr=Ae(ve(zd,[["render",qd],["__scopeId","data-v-82bd9070"]])),ea={...Re,width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字",optionFontSize:"14px"},ta=Te(ea),el=["inputChange","inputBlur"],Vd=t.defineComponent({name:"EcanInput",components:{AInput:he.Input},props:{...ta},setup(e){const o=Ie(e),n=t.ref(""),{getGlobalModel:a,setGlobalModel:i,getRecordValueByKeyName:r}=t.inject(Le,{getGlobalModel:f=>{},setGlobalModel:(f,x)=>{},getRecordValueByKeyName:f=>{}});t.watch(()=>e.value,f=>{n.value=r(f)},{immediate:!0}),i(e.id,{type:e.type,value:n});const s=()=>{const f=a(e.id);i(e.id,{...f,RECORD:n})},l=Ne(e),d=Oe.debounce(l("inputChange",()=>{s()}),300),c=l("inputBlur",()=>{});return{style:o,myValue:n,inputBlur:c,inputChange:d}}}),Ih="";function Hd(e,o,n,a,i,r){const s=t.resolveComponent("a-input");return t.openBlock(),t.createElementBlock("div",{class:"ecan-input",style:t.normalizeStyle(e.style)},[t.createVNode(s,{class:"input",value:e.myValue,"onUpdate:value":o[0]||(o[0]=l=>e.myValue=l),placeholder:e.placeholder,onChange:e.inputChange,onBlur:e.inputBlur,style:t.normalizeStyle({fontSize:e.optionFontSize})},null,8,["value","placeholder","onChange","onBlur","style"])],4)}const tl=Ae(ve(Vd,[["render",Hd]])),na={...Re,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"},oa=Te(na),nl=["dateChange"],aa=t.defineComponent({name:"EcanDatePicker",props:{...oa},components:{ADatePicker:he.DatePicker},setup(e){const o=t.inject("scaleValue",{widthScale:"1",heightScale:"1"}),n=Ie(e),a=()=>document.getElementById("ProviderConfig")||document.body,i=t.ref(null);t.watch(()=>[e.value,e.useCurrentTime,e.operate],([u,m,y])=>{let h=null;if(u?h=be(_e(u)):m&&(h=be()),y&&h){const{type:A,value:I,mode:v}=y;switch(A){case"add":h=h.add(I,v);break;case"minus":h=h.subtract(I,v)}}i.value=h},{deep:!0,immediate:!0});const{setGlobalModel:r}=t.inject(Le,{setGlobalModel:(u,m)=>{}});r(e.id,{type:e.type,format:e.format,useCurrentTime:e.useCurrentTime,value:i});const l=Ne(e)("dateChange",()=>{}),d=()=>{t.unref(i)&&l()};Fe(e,{dateChange:l});const c=t.ref({}),f=t.ref({}),x=u=>{u?setTimeout(()=>{f.value=t.unref(c)},300):f.value={}};return t.onMounted(()=>{setTimeout(()=>{const u=document.querySelector(`#ecan-date-picker-${e.id}`);if(u){const m=u.getBoundingClientRect(),y=parseFloat(t.unref(o).widthScale)*280;document.body.clientWidth-m.left<y&&(c.value.marginLeft=-1*(y-m.width)+"px")}},0)}),{style:n,getPopupContainer:a,myValue:i,locale:ei,change:d,scaleValue:o,popupStyle:c,customStyle:f,openChange:x}}}),ol=()=>{t.useCssVars(e=>({d6fb5b46:e.optionFontSize}))},al=aa.setup;aa.setup=al?(e,o)=>(ol(),al(e,o)):ol;const Lh="",Nh="",jd=["id"];function Wd(e,o,n,a,i,r){const s=t.resolveComponent("a-date-picker");return t.openBlock(),t.createElementBlock("div",{class:"ecan-date-picker",style:t.normalizeStyle(e.style),id:"ecan-date-picker-"+e.id},[t.createVNode(s,{class:"date-picker",dropdownClassName:"ecan-date-picker-dropdown",value:e.myValue,"onUpdate:value":o[0]||(o[0]=l=>e.myValue=l),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,jd)}const il=Ae(ve(aa,[["render",Wd],["__scopeId","data-v-d4ec0d66"]])),ia={...Re,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},ra=Te(ia),rl=["dateChange"];var ll={exports:{}};(function(e,o){(function(n,a){e.exports=a()})(me,function(){var n="month",a="quarter";return function(i,r){var s=r.prototype;s.quarter=function(c){return this.$utils().u(c)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(c-1))};var l=s.add;s.add=function(c,f){return c=Number(c),this.$utils().p(f)===a?this.add(3*c,n):l.bind(this)(c,f)};var d=s.startOf;s.startOf=function(c,f){var x=this.$utils(),u=!!x.u(f)||f;if(x.p(c)===a){var m=this.quarter()-1;return u?this.month(3*m).startOf(n).startOf("day"):this.month(3*m+2).endOf(n).endOf("day")}return d.bind(this)(c,f)}}})})(ll);var Gd=ll.exports;const Ud=Li(Gd);be.extend(Ud);const la=t.defineComponent({name:"EcanRangePicker",components:{ARangePicker:he.RangePicker},props:{...ra},setup(e){const o=Ie(e),n=()=>document.getElementById("ProviderConfig")||document.body,a=t.ref([null,null]);t.watch(()=>[e.startTime,e.endTime,e.useCurrentTime,e.interval,e.intervalUnit,e.operate],([S,C,B,g,R,p])=>{let D=null,w=null;if(B&&(D=be().subtract(g,R),w=be()),S&&(D=be(_e(S))),C&&(w=be(_e(C))),p){const{type:L,value:M,mode:k}=p;switch(L){case"add":D=D&&D.add(M,k),w=w&&w.add(M,k);break;case"minus":D=D&&D.subtract(M,k),w=w&&w.subtract(M,k)}}a.value=[D,w]},{immediate:!0});let i=t.unref(a)[0],r=t.unref(a)[1],s="";const l=(S,C,B)=>{Array.isArray(S)?(i=S[0],r=S[1],s=B.range):(i=null,r=null)};window.dayjs=be;const d=S=>{let C=!1,{limitStartTime:B,limitEndTime:g}=e;const R={startTime:`${i||""}`,endTime:`${r||""}`};if(B=_e(B,{codeData:R}),g=_e(g,{codeData:R}),B&&g?C=!(be(B)<S&&S<be(g)):B?C=be(B)>S:g&&(C=be(g)<S),!e.isAllowSpanYear&&s){let p=null;if(s==="start"?p=i:s==="end"&&(p=r),p){const D=p.startOf("year"),w=p.endOf("year");C=!(D<=S&&S<w)}}if(!C){const{value:p=0,mode:D="year"}=e.limitInterval||{};p&&(s==="start"?C=i.add(p,D)<S:s==="end"&&(C=r.subtract(p,D)>S))}return C},{getGlobalModel:c,setGlobalModel:f}=t.inject(Le,{getGlobalModel:S=>{},setGlobalModel:(S,C)=>{}}),x=t.computed(()=>Array.isArray(t.unref(a))?t.unref(a)[0]:null),u=t.computed(()=>Array.isArray(t.unref(a))?t.unref(a)[1]:null);f(e.id,{type:e.type,format:e.format,startTime:x,endTime:u,interval:e.interval,intervalUnit:e.intervalUnit,useCurrentTime:e.useCurrentTime,operate:e.operate});const m=Ne(e);let y=!1;const h=m("dateChange",()=>{}),A=S=>{const C=t.unref(a),B=C&&C[0]&&C[1];S===!1&&y===!0&&B&&(h(),y=!1),S||(s="")},I=()=>{y=!0};return Fe(e,{dateChange:()=>{const{associated:S}=e;if(S){const C=c(S)||{};if(C){const{value:B}=C;if(B)switch(t.unref(B)){case"month":a.value=[be().startOf("month"),be().endOf("month")];break;case"quarter":a.value=[be().startOf("quarter"),be().endOf("quarter")];break;case"year":a.value=[be().startOf("year"),be().endOf("year")];break}}}h()}}),{style:o,getPopupContainer:n,locale:ei,dateChange:h,myValue:a,disabledDate:d,calendarChange:l,openChange:A,change:I}}}),sl=()=>{t.useCssVars(e=>({"2d84b603":e.optionFontSize}))},cl=la.setup;la.setup=cl?(e,o)=>(sl(),cl(e,o)):sl;const Oh="",Fh="";function $d(e,o,n,a,i,r){const s=t.resolveComponent("a-range-picker");return t.openBlock(),t.createElementBlock("div",{class:"ecan-range-picker",style:t.normalizeStyle(e.style)},[t.createVNode(s,{class:"range-picker",dropdownClassName:"ecan-range-picker-dropdown",value:e.myValue,"onUpdate:value":o[0]||(o[0]=l=>e.myValue=l),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 dl=Ae(ve(la,[["render",$d],["__scopeId","data-v-c9c68612"]])),sa={...Re,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"},ca=Te(sa),fl=["click"],Yd=t.defineComponent({name:"EcanButton",components:{AButton:he.Button},props:{...ca},setup(e){const o=Ie(e),a=Ne(e)("click",()=>{const d=t.unref(s);d&&e.target==="event"&&window.parent.postMessage({type:"openPage",url:d},"*")}),i=t.computed(()=>{const d={};return e.mode!=="primary"&&(d.backgroundColor=e.buttonBackgroundColor||"transparent",d.color=e.tooltipTextStyleColor,d.borderColor=e.borderColor||"transparent"),{height:e.height,...d}}),r=t.computed(()=>_e(e.text)),s=t.computed(()=>_e(e.href)||null),l=t.computed(()=>{const d=e.target;if(!(d==="event"||t.unref(s)==null))return{self:"_self",blank:"_blank"}[d]});return{style:o,click:a,myText:r,myHref:s,myTarget:l,buttonStyle:i}}}),zh="";function Kd(e,o,n,a,i,r){const s=t.resolveComponent("a-button");return t.openBlock(),t.createElementBlock("div",{class:"ecan-button",style:t.normalizeStyle(e.style)},[t.createVNode(s,{block:"",onClick:e.click,type:e.mode,danger:e.danger,shape:e.shape,href:e.myHref,target:e.myTarget,style:t.normalizeStyle(e.buttonStyle),class:t.normalizeClass(e.tooltipTextStyleColor?"custom-color":"")},{default:t.withCtx(()=>[t.createElementVNode("span",{style:t.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},t.toDisplayString(e.myText),5)]),_:1},8,["onClick","type","danger","shape","href","target","style","class"])],4)}const ul=Ae(ve(Yd,[["render",Kd]])),da={...Re,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:{}},fa=Te(da),hl=["checkboxChange"],Zd=t.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:he.CheckboxGroup},props:{...fa},setup(e,{expose:o}){const n=Ie(e),a=t.ref([]),i=t.ref([]),r=I=>{const v=e.value;let S=[];I.forEach(C=>{C.checked&&S.push(C.value)}),typeof v=="string"&&v!==""?S=S.concat(v.split(",")):Array.isArray(v)&&(S=S.concat(v)),a.value=I,i.value=S};t.watch(()=>[e.data,e.value],([I])=>{r(I)},{immediate:!0,deep:!0});const s=je(e,I=>{var v,S;r(((S=(v=I==null?void 0:I.data)==null?void 0:v.data)==null?void 0:S.rows)||[])}),l=async()=>{var S,C;if(e.dataType!=="request")return;const I=await s(),v=((C=(S=I==null?void 0:I.data)==null?void 0:S.data)==null?void 0:C.rows)||[];r(v)},{getGlobalModel:d,setGlobalModel:c}=t.inject(Le,{getGlobalModel:I=>{},setGlobalModel:(I,v)=>{}});c(e.id,{type:e.type,value:i});const x=Ne(e)("checkboxChange",()=>{const I=d(e.id);c(e.id,{...I,RECORD:i})}),u=I=>{var S;const{data:v}=(I==null?void 0:I.data)||{};if(v){const B=(((S=I==null?void 0:I.data)==null?void 0:S.data)??[]).map(g=>({label:g.label,value:g.value}));r(B)}else r([])},m=Xe(e,u),y=async()=>{try{const I=await m();u(I)}catch(I){console.error(I)}},h=()=>{switch(e.dataType){case"indicator":y();break;case"request":l();break}},{setRequest:A}=t.inject(He,{setRequest:({id:I,sortNum:v,requestFn:S})=>{}});return typeof A=="function"&&A({id:e.id,requestFn:h,sortNum:e.requestSort}),o({refreshData:h}),{myOption:a,style:n,myValue:i,checkboxChange:x}}}),qh="";function Qd(e,o,n,a,i,r){const s=t.resolveComponent("a-checkbox-group");return t.openBlock(),t.createElementBlock("div",{class:"ecan-checkbox",style:t.normalizeStyle(e.style)},[t.createVNode(s,{options:e.myOption,value:e.myValue,"onUpdate:value":o[0]||(o[0]=l=>e.myValue=l),onChange:e.checkboxChange},null,8,["options","value","onChange"])],4)}const gl=Ae(ve(Zd,[["render",Qd]])),ua={...Re,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"},ha=Te(ua),ml=["selectChange","refreshData"],Jd=t.defineComponent({name:"EcanSelect",components:{ASelect:he.Select,ASelectOption:he.SelectOption},props:{...ha},setup(e,{expose:o}){const n=Ie(e),a=()=>document.getElementById("ProviderConfig")||document.body,i=t.ref(e.data||[]),r=t.ref(),s=t.computed({get:()=>{var E;const{mode:b}=e;return(E=t.unref(i))!=null&&E.length?r.value:b==="multiple"||b==="tags"||b==="combobox"?[]:""},set:b=>{r.value=b}}),{getGlobalModel:l,setGlobalModel:d,getRecordValueByKeyName:c}=t.inject(Le,{getGlobalModel:b=>{},setGlobalModel:(b,E)=>{},getRecordValueByKeyName:b=>{}}),f=e.dataFieldNames;t.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,i.value],()=>{const{mode:b,selectFirstOption:E,value:_}=e,q=c(_),N=f.value;if(b==="multiple"||b==="tags"||b==="combobox"){if(q)r.value=q.split(",");else if(E){const V=t.unref(i)[0];r.value=V?[V[N]]:[]}}else if(q)r.value=q;else if(E){const V=t.unref(i)[0];r.value=V?V[N]:""}},{immediate:!0});const x=(b,E)=>{const _=f.label,q=f.value;let N;const V=E[_],z=E[q];return V!=null?N=V:z!=null&&(N=z),(N==null?void 0:N.toLowerCase().indexOf(b==null?void 0:b.toLowerCase()))>=0},u=b=>{const{label:E,value:_,options:q}=e.dataFieldNames;if(q&&Array.isArray(b))if(b.some(N=>q in N)){const N={},V=[];b.forEach(z=>{N[z[q]]||(N[z[q]]=[]),N[z[q]].push({[E]:z[E],[_]:z[_]})});for(const z in N)V.push({[E]:z,[q]:N[z]});return V}else return b;else if(!q)return b},m=t.ref(!1),y=b=>{var E,_;if(i.value=u(((_=(E=b==null?void 0:b.data)==null?void 0:E.data)==null?void 0:_.rows)||[]),e.selectFirstOption){let q=t.unref(i)[0];if(f.options){const N=q[f.options];N&&N.length&&(q=N[0])}r.value=q[f.value]}},h=je(e,y),A=async()=>{if(e.dataType==="request"){m.value=!0;try{const b=await h();y(b)}catch(b){console.error(b)}finally{m.value=!1}}},{setLoadedData:I,loadedData:v}=t.inject(Et,{setLoadedData:(b,E)=>{},loadedData:{}}),S=t.computed(()=>{let b=r.value;if(e.valueType==="label"&&t.unref(r)&&t.unref(i)){const E=f.label,_=f.value;if(e.mode==="multiple")b=t.unref(i).filter(q=>t.unref(r).includes(q[_])).map(q=>q[E]);else{const q=t.unref(i).find(N=>t.unref(r)===N[_]);q&&(b=q[E])}}return b}),C=t.ref([]),B=t.computed(()=>{const b={};if(e.mode!=="multiple"){const E=t.unref(C).find(_=>_.value===t.unref(r));E&&(b.itemCodes=E.item_codes)}return b}),g=t.computed(()=>{const{value:b,label:E}=f,_=t.unref(i).find(q=>q[b]===t.unref(s));return _?{label:_[E],value:_[b]}:{}});d(e.id,{type:e.type,value:S,...t.unref(B),recordData:t.unref(g)});const p=Ne(e)("selectChange",()=>{const b=e.id,E=l(b);d(b,{...E,...t.unref(B),RECORD:S,recordData:t.unref(g)})}),D=(b=[])=>{if(i.value=u(b),e.selectFirstOption){let E=t.unref(i)[0];if(f.options){const _=E[f.options];_&&_.length&&(E=_[0])}r.value=E[f.value]}d(e.id,{type:e.type,value:S,...t.unref(B),recordData:t.unref(g)})},w=b=>{var N;const{data:E}=(b==null?void 0:b.data)||{},_=f.label,q=f.value;if(E){const V=((N=b==null?void 0:b.data)==null?void 0:N.data)??[];C.value=V;const z=V.map(U=>({[_]:U.label,[q]:U.value})),{id:P}=e,X=l(P);d(P,{...X,...t.unref(B)}),I(P,!0),D(z)}else D([])},L=Xe(e,w),M=async()=>{try{m.value=!0;const b=await L();w(b)}catch(b){console.error(b)}finally{m.value=!1}},k=t.computed(()=>{var b,E;return(E=un(((b=e==null?void 0:e.graphicConfig)==null?void 0:b.controlList)||[]))==null?void 0:E.find(_=>_.conditionKey==="parentCode")}),O=t.ref(!1);t.watch(v,b=>{!t.unref(O)&&t.unref(k)&&b[t.unref(k).id]&&(O.value=!0,T())},{deep:!0});const T=()=>{switch(e.dataType){case"indicator":{if(t.unref(k)){if(t.unref(v)[t.unref(k).id]){const{mode:b}=e;b==="multiple"||b==="tags"||b==="combobox"?s.value=[]:s.value="",M()}}else M();break}case"request":A();break}};Fe(e,{selectChange:p,refreshData:T});const{setRequest:F}=t.inject(He,{setRequest:({id:b,sortNum:E,requestFn:_})=>{}});return typeof F=="function"&&F({id:e.id,requestFn:T,sortNum:e.requestSort}),o({refreshData:T}),{style:n,getPopupContainer:a,myValue:r,selectChange:p,options:i,filterOption:x,loading:m,resultValue:s}}}),Hh="",jh="";function Xd(e,o,n,a,i,r){const s=t.resolveComponent("a-select-option"),l=t.resolveComponent("a-select");return t.openBlock(),t.createElementBlock("div",{class:"ecan-select",style:t.normalizeStyle(e.style)},[t.createVNode(l,{class:"select",value:e.resultValue,"onUpdate:value":o[0]||(o[0]=d=>e.resultValue=d),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:t.normalizeStyle({fontSize:e.optionFontSize})},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,(d,c)=>(t.openBlock(),t.createBlock(s,{key:c,value:d.value,label:d.label,style:t.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 yl=Ae(ve(Jd,[["render",Xd],["__scopeId","data-v-478fe018"]])),ga={...Re,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},ma=Te(ga),xl=["selectChange","refreshData"],ef={name:"EcanTreeSelect",components:{ATreeSelect:he.TreeSelect},props:{...ma},setup(e){const o=Ie(e),n=t.ref(e.data),a=(y,h)=>{const A=e.dataFieldNames,I=A.label,v=A.value;let S;const C=h[I],B=h[v];return C!=null?S=C:B!=null&&(S=B),(S==null?void 0:S.toLowerCase().indexOf(y==null?void 0:y.toLowerCase()))>=0},i=t.ref();t.watch(()=>[e.multiple,e.value,e.treeCheckable,e.selectFirstOption],()=>{const{multiple:y,value:h,selectFirstOption:A}=e;y?h?i.value=h.split(","):A&&(i.value=[t.unref(n)[0]]):h?i.value=h:A&&(i.value=t.unref(n)[0])},{immediate:!0});const r=t.ref(!1),s=y=>{var A,I;n.value=((I=(A=y==null?void 0:y.data)==null?void 0:A.data)==null?void 0:I.rows)||[];const h=t.unref(n)[0];e.value===""&&h!=null&&(i.value=h[e.dataFieldNames.value])},l=je(e,s),d=async()=>{if(e.dataType==="request"){r.value=!0;try{const y=await l();s(y)}catch(y){console.error(y)}finally{r.value=!1}}},{getGlobalModel:c,setGlobalModel:f}=t.inject(Le,{getGlobalModel:y=>{},setGlobalModel:(y,h)=>{}});f(e.id,{type:e.type,value:i});const u=Ne(e)("selectChange",()=>{const y=e.id,h=c(y);f(y,{...h,RECORD:i})});Fe(e,{selectChange:u,refreshData:d});const{setRequest:m}=t.inject(He,{setRequest:({id:y,sortNum:h,requestFn:A})=>{}});return m({id:e.id,requestFn:d,sortNum:e.requestSort}),{style:o,treeData:n,filterTreeNode:a,myValue:i,loading:r,selectChange:u}}},Gh="",Uh="";function tf(e,o,n,a,i,r){const s=t.resolveComponent("a-tree-select");return t.openBlock(),t.createElementBlock("div",{class:"ecan-tree-select",style:t.normalizeStyle(a.style)},[t.createVNode(s,{class:"tree-select",value:a.myValue,"onUpdate:value":o[0]||(o[0]=l=>a.myValue=l),allowClear:"",showSearch:"",loading:a.loading,fieldNames:e.dataFieldNames,treeData:a.treeData,maxTagCount:e.maxTagCount,multiple:e.multiple,treeCheckable:e.treeCheckable,filterTreeNode:a.filterTreeNode,placeholder:e.placeholder,onChange:a.selectChange},null,8,["value","loading","fieldNames","treeData","maxTagCount","multiple","treeCheckable","filterTreeNode","placeholder","onChange"])],4)}const pl=Ae(ve(ef,[["render",tf],["__scopeId","data-v-09e7f364"]])),ya={...Re,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:""},xa=Te(ya),bl=["checkboxChange","click"],nf=t.defineComponent({name:"EcanRadio",components:{ARadioGroup:he.RadioGroup,ARadioButton:he.RadioButton,ARadio:he.Radio},props:{...xa},setup(e,{expose:o}){const{pageMode:n}=t.inject(ze,{pageMode:"normal"}),a=Ie(e),i=t.ref([]),r=t.ref(""),s=B=>{const g=e.value;let R=[];typeof g=="string"&&g!==""?R=R.concat(g.split(",")):Array.isArray(g)&&(R=R.concat(g)),i.value=B,r.value=R[0]||""};t.watch(()=>[e.data,e.value],([B])=>{t.unref(n)==="design"&&s(B)},{immediate:!0,deep:!0});const l=je(e,B=>{var g,R;s(((R=(g=B==null?void 0:B.data)==null?void 0:g.data)==null?void 0:R.rows)||[])}),d=async()=>{var R,p;if(e.dataType!=="request")return;const B=await l(),g=((p=(R=B==null?void 0:B.data)==null?void 0:R.data)==null?void 0:p.rows)||[];s(g)},{getGlobalModel:c,setGlobalModel:f}=t.inject(Le,{getGlobalModel:B=>{},setGlobalModel:(B,g)=>{}});f(e.id,{type:e.type,value:r});const x=Ne(e),u=()=>{const B=t.unref(i).find(g=>g.value===t.unref(r))||{};x("checkboxChange",()=>{const g=c(e.id);f(e.id,{...g,RECORD:r})},B)()},m=B=>{r.value=B,x("click",()=>{const g=c(e.id);f(e.id,{...g,RECORD:r})})()};t.watch(r,()=>{u()});const y=B=>{var R;const{data:g}=(B==null?void 0:B.data)||{};if(g){const D=(((R=B==null?void 0:B.data)==null?void 0:R.data)??[]).map(w=>({label:w.label,value:w.value}));s(D)}else s([])},h=Xe(e,y),A=async()=>{try{const B=await h();y(B)}catch(B){console.error(B)}},I=()=>{switch(e.dataType){case"indicator":A();break;case"request":d();break}},{setRequest:v}=t.inject(He,{setRequest:({id:B,sortNum:g,requestFn:R})=>{}});typeof v=="function"&&v({id:e.id,requestFn:I,sortNum:e.requestSort});const S=B=>{r.value=B.value},C=t.computed(()=>e.tabFlexDirection==="column"?{display:"flex",height:"30px",lineHeight:"30px"}:{});return t.onMounted(()=>{s(e.data)}),o({refreshData:I}),{myOption:i,style:a,myValue:r,radioStyle:C,onClickButton:m,useImagePath:pt,tabChange:S}}}),Yh="",Kh="",of=["onClick"];function af(e,o,n,a,i,r){const s=t.resolveComponent("a-radio"),l=t.resolveComponent("a-radio-button"),d=t.resolveComponent("a-radio-group");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["ecan-radio",e.optionType]),style:t.normalizeStyle(e.style)},[e.tabBackgroundImage&&e.activeTabBackgroundImage?(t.openBlock(),t.createElementBlock("div",{key:0,class:"tabs-header",style:t.normalizeStyle({fontSize:e.tabFontSize,flexDirection:e.tabFlexDirection,alignItems:e.tabTextAlign})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myOption,(c,f)=>(t.openBlock(),t.createElementBlock("div",{class:"tab",style:t.normalizeStyle({padding:`5px ${e.tabHorizontalPadding}`,color:e.myValue===c.value?e.activeTabColor:e.tabColor,backgroundImage:e.myValue===c.value?e.useImagePath(e.activeTabBackgroundImage,!0):e.useImagePath(e.tabBackgroundImage,!0),marginRight:e.tabFlexDirection==="row"?e.tabBarGutter:"0",marginBottom:e.tabFlexDirection==="column"?e.tabBarGutter:"0"}),key:f,onClick:t.withModifiers(x=>e.tabChange(c),["prevent","stop"])},[t.createElementVNode("div",{class:"tab-inner",style:t.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.myValue===c.value?e.activeTabColor:"transparent"}`:""})},t.toDisplayString(c.label),5)],12,of))),128))],4)):(t.openBlock(),t.createBlock(d,{key:1,value:e.myValue,"onUpdate:value":o[0]||(o[0]=c=>e.myValue=c)},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myOption,c=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:c.value},[e.optionType==="default"?(t.openBlock(),t.createBlock(s,{key:0,value:c.value,style:t.normalizeStyle(e.radioStyle)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(c.label),1)]),_:2},1032,["value","style"])):e.optionType==="button"?(t.openBlock(),t.createBlock(l,{key:1,value:c.value,onClick:f=>e.onClickButton(c.value)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(c.label),1)]),_:2},1032,["value","onClick"])):t.createCommentVNode("",!0)],64))),128))]),_:1},8,["value"]))],6)}const vl=Ae(ve(nf,[["render",af],["__scopeId","data-v-7ca4e814"]])),pa={...Re,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},ba=Te(pa),Sl=["click","refreshData","resetRecord"],nn=async e=>{var d;const o=await vt.post(e,{},{responseType:"blob"}),{data:n,headers:a}=o,i=a["content-disposition"].replace(/\w+;filename=(.*)/,"$1"),r=new Blob([n]),s=document.createElement("a"),l=window.URL.createObjectURL(r);s.href=l,s.download=decodeURI(i),s.style.display="none",document.body.appendChild(s),s.click(),(d=s.parentNode)==null||d.removeChild(s),window.URL.revokeObjectURL(l)},va={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:[]},Sa=Te(va),Cl=["showModal","hideModal"],Pt=["ecanBorder","ecanTabs","ecanCirculate"];function wl(e){const{containerMap:o={},sourceList:n=[]}=e,a=Oe.cloneDeep(e.componentList),i=a.filter(r=>r.type==="ecanTabs"&&r.isAutoScroll);if(i!=null&&i.length)for(const r of i){const s=o[r.id],l=[];if((!tn(r,"componentList")||!(r!=null&&r.componentList))&&(r.componentList=[]),s){let d=0;for(const c in s){const f=s[c],x=[];if(f!=null&&f.length)for(const u of f){let m=a.find(y=>y.id===u);m||(m=n.find(y=>y.id===u)),m&&(x.push(m),Pt.includes(m.type)&&x.push(...gn(m.id,o,n)))}for(const u of x)tn(u,"scale")?parseFloat(c)>0&&(u.left=parseFloat(u.left)+d+"px"):(u.left=parseFloat(u.sourceLeft||u.left)-parseFloat(r.sourceLeft||r.left)+d+"px",u.top=parseFloat(u.sourceTop||u.top)-parseFloat(r.sourceTop||r.top)+"px"),l.includes(u.id)||l.push(u.id);r.componentList.push(...x),d=ff(x)}}for(const d of l){const c=a.findIndex(f=>f.id===d);c!==-1&&a.splice(c,1)}}return a}function Al(e){var r,s;const{combinationMap:o={},sourceList:n=[]}=e,a=e.containerMap,i=Oe.cloneDeep([...e.componentList,...lf(a,n)]);if(rf(a,i),(r=Object.keys(a))!=null&&r.length||(s=Object.keys(o))!=null&&s.length){for(const u in a){const m=i.find(y=>y.id===u);if(m){tn(m,"parentId")||(m.parentId="",m.sourceLeft=m.left,m.sourceTop=m.top);for(const y in a[u])if(a[u][y])for(const h of a[u][y]){const A=i.find(I=>I.id===h);A&&(A.parentId=u,A.sourceLeft=A.left,A.sourceTop=A.top,A.left=parseFloat(A.left)-parseFloat(m.sourceLeft||m.left)+"px",A.top=parseFloat(A.top)-parseFloat(m.sourceTop||m.top)+"px")}}}const l=Array.from(new Set(i.filter(u=>(!tn(u,"parentId")||u.parentId==="")&&u.combinationId).map(u=>u.combinationId))),d=sf(l,{...e,componentList:i});d!=null&&d.length&&i.unshift(...d);const c=["ecanPie","ecanLine","ecanBar","ecanScatter","ecanComboGraph","ecanCustomGraph","ecanRadar","ecanMap"],f=i.filter(u=>c.includes(u.type)&&!tn(u,"parentId")),x=[];for(const u of f)if(u){const m=u.id+"_vir";x.push({id:m,keyName:u.keyName+"_vir",parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,width:u.width,height:u.height,left:u.left,top:u.top,sourceLeft:u.left,sourceTop:u.top}),u.parentId=m,u.sourceLeft=u.left,u.sourceTop=u.top,u.left=0,u.top=0}x!=null&&x.length&&i.unshift(...x);for(const u of i){const m=document.body.clientWidth;if(u.parentId===""&&Pt.includes(u.type))u.sourceWidth=parseFloat(u.width),u.height=(m/(u.sourceWidth/parseFloat(u.height))).toFixed(2)+"px",u.width="100%",u.position="relative",u.top="auto",u.left="auto";else{const y=i.find(h=>h.id===u.parentId);if((y==null?void 0:y.parentId)===""){const h=y.sourceWidth||parseFloat(y.width),A=m/h;u.scale=A,u.top=parseFloat(u.top)*A-parseFloat(u.height)*(1-A)/2+"px",u.left=parseFloat(u.left)*A-parseFloat(u.width)*(1-A)/2+"px"}}u.type==="ecanModal"&&(u.parentId="",u.fullModal=!0)}return cf(i)}return i}function rf(e,o){const n=Oe.cloneDeep(e),a=o.filter(i=>i.type==="ecanTabs"&&i.isAutoScroll);if(a!=null&&a.length)for(const i of a){const r=n[i.id];for(const s in r)for(const l of r[s]){const d=o.find(c=>c.id===l);if(d&&Pt.includes(d.type)){const c=gn(d.id,n,o);for(const f of c)e[i.id][s].push(f.id),Pt.includes(f.type)&&delete e[f.id];delete e[d.id]}}}}function lf(e,o){const n=[],a=o.filter(i=>i.type==="ecanTabs"&&i.isAutoScroll);if(a!=null&&a.length)for(const i of a){const r=e[i.id];for(const s in r)if(parseFloat(s)>0)for(const l of r[s]){const d=o.find(c=>c.id===l);d&&(n.push(d),Pt.includes(d.type)&&n.push(...gn(d.id,e,o)))}}return n}function gn(e,o,n){const a=[],i=o[e];for(const r in i)for(const s of i[r]){const l=n.find(d=>d.id===s);l&&(a.push(l),Pt.includes(l.type)&&a.push(...gn(l.id,o,n)))}return a}function sf(e,o,n){const{combinationMap:a={},componentList:i=[]}=o,r=[];for(const s of e){const l=a[s];if(l!=null&&l.length){const d=i.filter(c=>l.includes(c.id));if(d!=null&&d.length){const c=df(d);if(c){r.push({...c,id:s,keyName:s,parentId:n||"",type:"ecanBorder",borderRadius:"",borderWidth:null,sourceLeft:c.left,sourceTop:c.top});for(const f of d)f&&(f.parentId=s,f.sourceLeft=f.left,f.sourceTop=f.top,f.left=parseFloat(f.left)-parseFloat(c.left)+"px",f.top=parseFloat(f.top)-parseFloat(c.top)+"px")}}}}return r}function cf(e){const n=e.filter(a=>a.parentId==="");if(n!=null&&n.length){const a=Oe.cloneDeep(n).map(i=>({...i,sourceTop:parseFloat(i.sourceTop),sourceLeft:parseFloat(i.sourceLeft)}));for(let i=0;i<a.length-1;i++)for(let r=0;r<a.length-i-1;r++){let s=!1;if((a[r].sourceTop-a[r+1].sourceTop>50||Math.abs(a[r+1].sourceTop-a[r].sourceTop)<=50&&a[r].sourceLeft>a[r+1].sourceLeft)&&(s=!0),s){const l=a[r];a[r]=a[r+1],a[r+1]=l}}for(const i of a){const r=e.findIndex(s=>s.id===i.id);r!==-1&&e.splice(r,1)}return[...a,...e]}return e}function df(e){const o=e.sort((r,s)=>parseFloat(r.top)-parseFloat(s.top))[0],n=e.sort((r,s)=>parseFloat(r.left)-parseFloat(s.left))[0],a=e.map(r=>({...r,computedTop:parseFloat(r.top)+parseFloat(r.height)})).sort((r,s)=>s.computedTop-r.computedTop)[0],i=e.map(r=>({...r,computedLeft:parseFloat(r.left)+parseFloat(r.width)})).sort((r,s)=>s.computedLeft-r.computedLeft)[0];return o&&n&&a&&i?{left:n.left,top:o.top,width:i.computedLeft-parseFloat(n.left)+"px",height:a.computedTop-parseFloat(o.top)+"px"}:null}function ff(e){const o=e.map(n=>parseFloat(n.left)+parseFloat(n.width)).sort((n,a)=>a-n)[0];return o||0}function Ca(e,o,n){const a=e[n],i=[];if(a)for(const r in a){const s=a[r];for(const l of s){const d=o.find(c=>c.id===l);d&&(i.push(d),Pt.includes(d.type)&&i.push(...gn(d.id,e,o)))}}return i}const uf=t.defineComponent({name:"Render",props:{component:{type:Object,default:()=>{}}},setup(e,{emit:o}){o("ready",e.component.id)}});function hf(e,o,n,a,i,r){return e.component.parentId?(t.openBlock(),t.createBlock(t.Teleport,{key:0,to:"#container_"+e.component.parentId},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.component.type),t.mergeProps({style:{scale:e.component.scale}},e.component),null,16,["style"]))],8,["to"])):(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.component.type),t.normalizeProps(t.mergeProps({key:1},e.component)),null,16))}const gf=Ae(ve(uf,[["render",hf]])),mf=t.defineComponent({name:"EcanModal",components:{AModal:he.Modal,CloseOutlined:S0,Render:gf},props:{...Sa},setup(e,{emit:o}){const n=t.ref([]),a=t.inject("isMobile",!1),i=t.inject("getContainerMap",()=>{}),r=t.inject("getCombinationMap",()=>{}),{clearInteractiveData:s,interactiveData:l,setRequestData:d}=t.inject(Le,{setRequestData:(G,J)=>{},clearInteractiveData:()=>{},interactiveData:null}),c=()=>document.getElementById("ProviderConfig")||document.body,f=t.computed(()=>{const G=e.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[G]}}),x=e.fullModal?"1920px":e.width,u=e.fullModal?"1080px":e.height,m=e.originalWidth,y=e.originalHeight,h=t.ref("80%"),A=t.ref(0),I=t.ref(),v=t.ref(0),S=t.ref({}),C=Ie(e),B=t.ref({}),g=t.ref(!1),R=t.ref();let p;const D=()=>{I.value=parseFloat(x)/parseFloat(m);const G=parseFloat(u)/parseFloat(y),J=document.body.offsetWidth,ee=document.body.offsetHeight;A.value=J*t.unref(I),v.value=ee*G,h.value=`${t.unref(I)*100}%`,S.value={width:`${t.unref(A)}px`,height:`${t.unref(v)}px`,border:`${e.borderWidth} solid ${e.borderColor}`,borderRadius:e.borderRadius+"px",boxShadow:e.boxShadow},B.value={...t.unref(C),backgroundImage:pt(e.backgroundImage,!0)},a?B.value={...B.value,width:"100%",height:"100%"}:B.value={...B.value,transform:`scale(${t.unref(A)/parseFloat(x)},${t.unref(v)/parseFloat(u)})`,width:x,height:u}},w=Oe.debounce(()=>{D()},100),L=()=>{const G=window.MutationObserver;p=new G(w),p.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},M=()=>{p&&(p.disconnect(),p.takeRecords(),p=null)},k=t.ref(!1),{touchRequest:O}=t.inject(He,{touchRequest:()=>{}}),T=t.ref(""),F=()=>{var ee;const{title:G}=e,J=(ee=t.unref(l))==null?void 0:ee.RECORD;return J?_e(G,{textData:J},{useNewline:!1,useSpace:!1}):G},b=Ne(e),E=()=>{a&&(document.documentElement.style.overflow="hidden"),T.value=F(),k.value=!0},_=b("hideModal",()=>{o("close"),a&&(document.documentElement.style.overflow="hidden auto",n.value=[]),k.value=!1}),q=()=>{_()},N=()=>{_(),s()},{setModalModel:V,pushUseModalIds:z,popUseModalIds:P}=t.inject(Bi,{pushUseModalIds:G=>{},popUseModalIds:()=>{},setModalModel:(G,J)=>{}}),X=t.computed(()=>{let G=e.componentList;const J=Oe.cloneDeep(e.componentList),ee=i(),ne=r(),ae={containerMap:ee,combinationMap:ne};a&&(G=Al({...ae,componentList:J,sourceList:e.allComponentList})),G=wl({...ae,componentList:G,sourceList:e.allComponentList});const ie=[];for(const ue of G)if(ue.type==="ecanCirculate"){const Se=Ca(ee,t.unref(J),ue.id);ue.componentList=Se,ie.push(...Se.map(ke=>ke.id))}if(ie!=null&&ie.length)for(const ue of ie){const Se=G.findIndex(ke=>ke.id===ue);Se!==-1&&G.splice(Se,1)}return G}),U=()=>{const G=e.id;let J=[];const ee=e.componentList;Array.isArray(ee)&&(J=ee.map(ne=>ne.id),V(G,[...new Set(J)]))},j=t.ref(!1),H={};for(const G of e.requestList)H[G.requestName]=je(G);t.watch(()=>k.value,async G=>{if(G)g.value=!1,z(e.id),U(),await t.nextTick(()=>{D(),window.addEventListener("resize",w),L(),g.value=!0}),O();else{for(const J in H)d(J,{});P(),window.removeEventListener("resize",w),M()}});const K=t.computed(()=>t.unref(I)>=1),te=t.computed(()=>e.fullModal),ce=t.computed(()=>{let G="ecan-modal";return t.unref(K)&&(G+=" ecan-full-width-modal"),t.unref(te)&&(G+=" ecan-full-modal"),G});return Fe(e,{showModal:E,hideModal:_}),{modalRef:R,containStyle:S,contentStyle:B,getContainer:c,modalStyle:f,modalWith:h,isFullModal:te,style:C,visible:k,showModal:E,onOk:q,onCancel:N,isFullWidth:K,wrapClassName:ce,ready:g,usedComponentList:X,isMobile:a,readyIds:n,hasOwn:tn,onComponentReady:G=>{n.value.push(G)},formatTitle:T,requestLoaded:j}}}),Jh="",Xh="";function yf(e,o,n,a,i,r){const s=t.resolveComponent("close-outlined"),l=t.resolveComponent("render"),d=t.resolveComponent("a-modal");return t.openBlock(),t.createBlock(d,{getContainer:e.getContainer,wrapClassName:e.wrapClassName,centered:"",visible:e.visible,footer:null,width:e.isFullModal||e.isFullWidth?"100%":e.modalWith,destroyOnClose:e.destroyOnClose,style:t.normalizeStyle(e.modalStyle),closable:!1,onOk:e.onOk,onCancel:e.onCancel,ref:"modalRef",id:"container_"+e.id},{default:t.withCtx(()=>[t.createElementVNode("div",{class:"contain",ref:"containRef",style:t.normalizeStyle(e.containStyle)},[e.ready?(t.openBlock(),t.createElementBlock("div",{key:0,class:"content",style:t.normalizeStyle(e.contentStyle)},[t.createElementVNode("div",{class:"header-bar",style:t.normalizeStyle({backgroundColor:e.backgroundColor,padding:"20px 30px",height:e.isMobile?"62px":""})},[e.formatTitle?(t.openBlock(),t.createElementBlock("div",{key:0,class:"ant-modal-title",style:t.normalizeStyle({fontSize:e.titleFontSize,color:e.titleColor})},t.toDisplayString(e.formatTitle),5)):t.createCommentVNode("",!0),e.isShowCloseBtn?(t.openBlock(),t.createBlock(s,{key:1,class:"close-icon",style:t.normalizeStyle({color:e.closeBtnColor}),onClick:e.onCancel},null,8,["style","onClick"])):t.createCommentVNode("",!0)],4),e.usedComponentList.length?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.isMobile?"mobile-wrap":"")},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.usedComponentList,(c,f)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:c.id+f},[e.isMobile?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.hasOwn(c,"parentId")&&(e.readyIds.includes(c.parentId)||c.parentId==="")?(t.openBlock(),t.createBlock(l,{key:0,component:c,onReady:e.onComponentReady},null,8,["component","onReady"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createBlock(t.resolveDynamicComponent(c.type),t.normalizeProps(t.mergeProps({key:1},c)),null,16))],64))),128))],2)):t.renderSlot(e.$slots,"default",{key:1},void 0,!0)],4)):t.createCommentVNode("",!0)],4)]),_:3},8,["getContainer","wrapClassName","visible","width","destroyOnClose","style","onOk","onCancel","id"])}const Nt=Ae(ve(mf,[["render",yf],["__scopeId","data-v-000999c2"]]));it.use([Ft.CanvasRenderer,Ct.PieChart,De.TitleComponent,De.ToolboxComponent,De.TooltipComponent,De.LegendComponent]);const xf=t.defineComponent({name:"EcanPie",props:{...ba},components:{Spin:jt,Echarts:Tt,EcanModal:Nt},setup(e,{expose:o}){const{pageMode:n,fontFamily:a}=t.inject(ze,{pageMode:"normal",fontFamily:""}),i=t.ref(!1),r=Ie(e),s=t.ref([]),l=t.ref(),d=t.ref({}),c=t.computed(()=>{let{data:k=[]}=t.unref(s)[0]||{};if(Array.isArray(e.colors)){const O=e.isUseLabelColors,T=e.colors;k=k.map((F,b)=>({label:O?{color:T[b]}:{},...F}))}return{textStyle:{fontFamily:t.unref(a)},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(){nn(e.toolboxDownloadUrl)}},myDataZoom:{show:i.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;i.value=!0,(O=l.value)==null||O.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(){he.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:O=>{const{marker:T,seriesName:F,name:b,value:E,percent:_,data:q}=O||{};return _e(e.tooltipFormatter,{textData:{marker:T,name:b,value:E,percent:_,a:F,b,c:E,d:_,...q}},{useNewline:!0,useSpace:!0})},textStyle:{color:e.tooltipTextStyleColor},position:e.tooltipPosition||void 0},legend:t.unref(d),color:e.colors,series:[{data:k,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:i.value?Qe:e.labelFontSize,position:e.labelPosition,formatter:Zc(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:{}}}]}}),f=()=>{const k=i.value?Qe:parseFloat(e.legendFontSize);d.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:k+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:k}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,formatter:O=>{const{data:T}=s.value[0]||{};let F=0,b,E="0%";if(T)for(const _ of T)_.name===O&&(b=+_.value),F+=+_.value;return F&&(E=`${(b/F*100).toFixed(2)}%`),fn(e.legendFormatter,{name:O,value:b,percent:E})}}},x=()=>{i.value=!1},{getGlobalModel:u,setGlobalModel:m}=t.inject(Le,{getGlobalModel:k=>{},setGlobalModel:(k,O)=>{}}),y=(k=[],O)=>{const{dataset:T}=Gt(k,O);s.value=T},h=(k=[],O)=>{const T=Gt(k,O);s.value=T.dataset};t.watch(()=>e.data,k=>{(e.dataType==="static"||t.unref(n)==="design")&&y(k)},{immediate:!0,deep:!0}),t.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],()=>{f()},{immediate:!0});const A=t.ref(!1),I=je(e,k=>{var O,T;y((T=(O=k==null?void 0:k.data)==null?void 0:O.data)==null?void 0:T.rows,e.valueTypeDataFieldNames)}),v=async()=>{var k,O;if(e.dataType==="request")try{A.value=!0;const T=await I();y((O=(k=T==null?void 0:T.data)==null?void 0:k.data)==null?void 0:O.rows,e.valueTypeDataFieldNames)}catch(T){console.error(T)}finally{A.value=!1}},S=Ne(e);m(e.id,{type:e.type,RECORD:""});const C=S("click",k=>{const O=u(e.id);m(e.id,{...O,type:e.type,RECORD:k==null?void 0:k.data})}),B=k=>{var T;const{data:O}=(k==null?void 0:k.data)||{};if(O){const{columns:F=[],rows:b=[]}=((T=k==null?void 0:k.data)==null?void 0:T.data)??{};let E=[];if(F.length>0){const _=F[0],q=F[1];E=b.filter(N=>!!N).map(N=>({name:N[_],value:isNaN(N[q])?0:N[q]||0}))}h(E)}},g=Xe(e,B),R=async()=>{try{A.value=!0;const k=await g();B(k)}catch(k){console.error(k)}finally{A.value=!1}},{loadedData:p}=t.inject(Et,{loadedData:{}}),D=t.ref(!1);t.watch(p,k=>{if(e.dataType==="indicator"){const O=dn(e.graphicConfig);O!=null&&O.length&&(!t.unref(D)&>(e.graphicConfig,k)?(D.value=!0,w()):gt(e.graphicConfig,k)||(D.value=!1))}},{deep:!0});const w=()=>{switch(e.dataType){case"indicator":gt(e.graphicConfig,t.unref(p))&&R();break;case"request":v();break}};Fe(e,{resetRecord:()=>{const k=e.id,O=u(k);m(k,{...O,RECORD:""})},refreshData:w,click:C}),o({refreshData:w});const{setRequest:M}=t.inject(He,{setRequest:k=>{}});return typeof M=="function"&&M({id:e.id,requestFn:w,sortNum:e.requestSort}),{option:c,style:r,click:C,onClose:x,loading:A,ecanModal:l}}}),t1="";function pf(e,o,n,a,i,r){const s=t.resolveComponent("echarts"),l=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(l,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),t.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const kl=Ae(ve(xf,[["render",pf]])),wa={...Re,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},Aa=Te(wa),Tl=["click","refreshData","resetRecord"];it.use([Ft.CanvasRenderer,Ct.LineChart,De.ToolboxComponent,De.TitleComponent,De.LegendComponent,De.MarkLineComponent]);const bf=t.defineComponent({name:"EcanLine",props:{...Aa},components:{Spin:jt,Echarts:Tt,EcanModal:Nt},setup(e,{expose:o}){const{pageMode:n,fontFamily:a}=t.inject(ze,{pageMode:"normal",fontFamily:""}),i=t.ref(),r=t.ref(!1),s=Ie(e),l=t.ref([]),d=t.ref([]),c=t.ref(),f=t.computed(()=>r.value?Qe:12),x=t.ref({});let u;const m=t.ref([]),y=t.computed(()=>{const b=e.xAxisLabelFormatter,E=e.yAxisLabelFormatter;return{textStyle:{fontFamily:t.unref(a)},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(){nn(e.toolboxDownloadUrl)}},myDataZoom:{show:r.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.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(){he.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subText:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,tooltip:{trigger:"axis",textStyle:{fontSize:f.value},show:e.tooltipShow,formatter:_=>{var z;const q=_.length;let N="",V=e.tooltipFormatter;u=(z=_[0])==null?void 0:z.data,V===""&&(V="{marker} {a} {c}");for(let P=0;P<q;P++){const{marker:X,seriesName:U,name:j,value:H,data:K}=_[P]||{};if(P===0){let te=j;typeof j=="string"&&j[0]==="0"&&!isNaN(+j)&&(te=(+j).toString()),N+=`${mt(b,te)}<br/>`}N+=_e(V,{textData:{marker:X,name:j,value:H,a:U,b:j,c:H||0,...K}},{useNewline:!0,useSpace:!0}),N+="<br/>"}return N},position:e.tooltipPosition||void 0},xAxis:{type:"category",boundaryGap:e.isBoundaryGap,data:t.unref(d).map(_=>{let q={};return _&&typeof _=="object"?q={..._}:q={value:_},q}),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(_){return typeof _=="string"&&_[0]==="0"&&!isNaN(+_)&&(_=(+_).toString()),mt(b,_)}},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(_){return mt(E,_)}},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:(r.value?Qe:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:r.value?Qe:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:t.unref(m).map(_=>({name:_.name,icon:e.legendType})),formatter:_=>fn(e.legendFormatter,{name:_})},series:t.unref(l)}}),h=()=>{r.value=!1},{getGlobalModel:A,setGlobalModel:I}=t.inject(Le,{getGlobalModel:b=>{},setGlobalModel:(b,E)=>{}}),v=t.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),S=(b=[],E=!1)=>{let _;if(e.dataFieldConfigType==="key"){const z=E?e.keyTypeDataFieldNames:null;_=Lt(b,z)}else if(e.dataFieldConfigType==="value"){const z=E?e.valueTypeDataFieldNames:null;_=Gt(b,z)}d.value=_.dimensions,m.value=_.dataset;const q=_.dataset,N=[],V=q.length;for(let z=0;z<V;z++){const P={};e.shadowColor&&(P.shadowColor=e.shadowColor,P.shadowBlur=e.shadowBlur,P.shadowOffsetY=e.shadowOffsetY,P.shadowOffsetX=e.shadowOffsetX),N.push({type:"line",...q[z],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[z]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[z],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...P},...t.unref(v)})}l.value=N},C=(b=[],E,_=!1)=>{const N=Lt(b,_?E:null,!0);d.value=N.dimensions,m.value=N.dataset;const V=N.dataset,z=[],P=V.length;for(let X=0;X<P;X++){const U={};e.shadowColor&&(U.shadowColor=e.shadowColor,U.shadowBlur=e.shadowBlur,U.shadowOffsetY=e.shadowOffsetY,U.shadowOffsetX=e.shadowOffsetX),z.push({type:"line",...V[X],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[X]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[X],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...U},...t.unref(v)})}l.value=z};t.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],([b])=>{(e.dataType==="static"||t.unref(n)==="design")&&S(b)},{immediate:!0,deep:!0});const B=t.ref(!1),g=je(e,b=>{var E,_;S((_=(E=b==null?void 0:b.data)==null?void 0:E.data)==null?void 0:_.rows,!0)}),R=async()=>{var b,E;if(e.dataType==="request")try{B.value=!0;const _=await g();S((E=(b=_==null?void 0:_.data)==null?void 0:b.data)==null?void 0:E.rows,!0)}catch(_){console.error(_)}finally{B.value=!1}},p=Ne(e);I(e.id,{type:e.type,RECORD:""});const D=p("click",b=>{const E=A(e.id);I(e.id,{...E,type:e.type,RECORD:e.tooltipShow?u:b.data})}),w=b=>{i.value.chart.containPixel("grid",[b.offsetX,b.offsetY])&&D()};e.tooltipShow?x.value["zr:click"]=w:x.value.click=D;const L=b=>{var N;const{columns:E=[],rows:_=[]}=((N=b==null?void 0:b.data)==null?void 0:N.data)??{};let q;E.length>0&&(q={name:E[0],types:E.slice(1).map(V=>({label:V,value:V}))}),C(_,q,!0)},M=Xe(e,L),k=async()=>{try{B.value=!0;const b=await M();L(b)}catch(b){console.error(b)}finally{B.value=!1}},O=()=>{switch(e.dataType){case"indicator":k();break;case"request":R();break}};Fe(e,{refreshData:O,resetRecord:()=>{const b=e.id,E=A(b);I(b,{...E,RECORD:""})},click:D});const{setRequest:F}=t.inject(He,{setRequest:b=>{}});return typeof F=="function"&&F({id:e.id,requestFn:O,sortNum:e.requestSort}),o({refreshData:O}),{option:y,style:s,click:D,loading:B,onClose:h,ecanModal:c,eventObj:x,echartRef:i}}}),o1="";function vf(e,o,n,a,i,r){const s=t.resolveComponent("echarts"),l=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(l,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,t.mergeProps({ref:"echartRef",option:e.option,autoresize:""},t.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),t.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Bl=Ae(ve(bf,[["render",vf]])),ka={...Re,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},Ta=Te(ka),El=["refreshData","click","resetRecord"];it.use([Ft.CanvasRenderer,Ct.BarChart,De.TitleComponent,De.LegendComponent,De.DatasetComponent,De.ToolboxComponent,De.MarkLineComponent]);const Sf=t.defineComponent({name:"EcanBar",props:{...Ta},components:{Spin:jt,Echarts:Tt,EcanModal:Nt,AModal:he.Modal},setup(e,{expose:o}){const{pageMode:n,fontFamily:a}=t.inject(ze,{pageMode:"normal",fontFamily:""}),i=t.inject("usedComponentList",[]),r=t.ref(),s=t.ref(!1),l=t.ref(!1),d=t.ref(null),c=t.ref([]),f=Ie(e),x=t.ref([]),u=t.ref(),m=t.ref({});let y;const h=t.computed(()=>s.value?Qe:12),A=t.computed(()=>{const{gradientShow:U,gradientColors:j,gradientOffset:H,barBorderRadius:K}=e,te=t.unref(x),ce=te.length,ye=[];for(let G=0;G<ce;G++){const J={...te[G],type:"bar",barWidth:e.barWidth,showBackground:e.showBarBackground};if(e.isStack&&(J.stack="stack"),J.label={show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor,width:e.labelWidth,overflow:e.labelOverflow,formatter:ee=>{let ne="",ae=e.labelFormatter;ae===""&&(ae="{c}");const{seriesName:ie,name:ue,value:Se,data:ke}=ee||{};return ne+=_e(ae,{textData:{name:ue,value:Se,a:ie,b:ue,c:Se||0,...ke}},{useNewline:!0,useSpace:!0}),ne}},J.itemStyle={},U&&(J.itemStyle={color:{x:e.isUseHorizontalAxis?1:0,y:0,x2:0,y2:e.isUseHorizontalAxis?0:1,colorStops:[{offset:0,color:e.colors[G]},{offset:H,color:j[G]},{offset:1,color:j[G]}]}}),K){const ee=K.split(",");if(ee!=null&&ee.length){const ne=[];for(const ae of ee){const ie=parseFloat(ae);isNaN(ie)||ne.push(ie)}J.itemStyle.borderRadius=ne}}e.isShowMarkLine&&(J.markLine={data:[{type:e.markLineType}]}),ye.push(J)}return ye}),I=t.ref([]),v=t.ref(!1),S=t.computed(()=>{const U=e.yAxisLabelFormatter,j=e.xAxisLabelFormatter;return{textStyle:{fontFamily:t.unref(a)},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 H=r.value.chart.getOption(),{xAxis:K}=H||{};K&&K.length&&(c.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(){nn(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 H;s.value=!0,(H=u.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(){he.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:H=>{var ye;const K=H.length;let te="",ce=e.tooltipFormatter;y=(ye=H[0])==null?void 0:ye.data,ce===""&&(ce="{marker} {a} {c}");for(let G=0;G<K;G++){const{marker:J,seriesName:ee,name:ne,value:ae,data:ie}=H[G]||{};if(G===0){let ue=ne;typeof ne=="string"&&ne[0]==="0"&&!isNaN(+ne)&&(ue=(+ne).toString()),te+=`${mt(j,ue)}<br/>`}te+=_e(ce,{textData:{marker:J,name:ne,value:ae,a:ee,b:ne,c:ae||0,...ie}},{useNewline:!0,useSpace:!0}),te+="<br/>"}return te},textStyle:{color:e.tooltipTextStyleColor,fontSize:h.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?Qe:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:s.value?Qe:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:t.unref(x).map((H,K)=>({name:H.name,itemStyle:{color:e.colors[K]},icon:e.legendType})),formatter:H=>fn(e.legendFormatter,{name:H})},xAxis:{type:e.isUseHorizontalAxis?"value":"category",data:e.isUseHorizontalAxis?null:t.unref(R),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(H){return typeof H=="string"&&H[0]==="0"&&!isNaN(+H)&&(H=(+H).toString()),mt(j,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:{type:e.isUseHorizontalAxis?"category":"value",data:e.isUseHorizontalAxis?t.unref(I):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(H){return mt(U,H)}},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:t.unref(A)}}),C=()=>{s.value=!1},B=(U=[],j=!1)=>{let H={};if(e.dataFieldConfigType==="key"){const K=j?e.keyTypeDataFieldNames:null;H=Lt(U,K)}else if(e.dataFieldConfigType==="value"){const K=j?e.valueTypeDataFieldNames:null;H=Gt(U,K)}x.value=H.dataset,I.value=H.dimensions},g=(U=[],j,H=!1)=>{const te=Lt(U,H?j:null,!0);e.defaultRangeValue&&Fr({props:e,componentList:t.unref(i),getGlobalModel:q},te),x.value=te.dataset,I.value=te.dimensions},R=t.computed(()=>t.unref(I).map(U=>{let j={};return U&&typeof U=="object"?j={...U}:j={value:U},j}));t.watch(()=>[e.data,e.labelFormatter,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([U])=>{(e.dataType==="static"||t.unref(n)==="design")&&B(U)},{immediate:!0,deep:!0});const p=je(e,U=>{var j,H;B((H=(j=U==null?void 0:U.data)==null?void 0:j.data)==null?void 0:H.rows,!0)}),D=async()=>{var U,j;try{v.value=!0;const H=await p();B((j=(U=H==null?void 0:H.data)==null?void 0:U.data)==null?void 0:j.rows,!0)}catch(H){console.error(H)}finally{v.value=!1}},w=U=>{var te;const{columns:j=[],rows:H=[]}=((te=U==null?void 0:U.data)==null?void 0:te.data)??{};let K;j.length>0&&(K={name:j[0],types:j.slice(1).map(ce=>({label:ce,value:ce}))}),g(H,K,!0)},L=Xe(e,w),M=async()=>{try{v.value=!0;const U=await L();w(U)}catch(U){console.error(U)}finally{v.value=!1}},{loadedData:k}=t.inject(Et,{loadedData:{}}),O=t.ref(!1);t.watch(k,U=>{if(e.dataType==="indicator"){const j=dn(e.graphicConfig);j!=null&&j.length&&(!t.unref(O)&>(e.graphicConfig,U)?(O.value=!0,T()):gt(e.graphicConfig,U)||(O.value=!1))}},{deep:!0});const T=()=>{switch(e.dataType){case"indicator":gt(e.graphicConfig,t.unref(k))&&M();break;case"request":D();break}},F=(U,j)=>!!t.unref(c)[j.value].value.includes(U),b=async()=>{l.value=!1;const U=r.value.chart.getOption();for(let j=0;j<7;j++)await E(U,j)},E=(U,j)=>new Promise(H=>{setTimeout(()=>{const{series:K,color:te,xAxis:ce}=U,ye=r.value.chart,{splitArea:G={}}=ce[0]||{};K.forEach((J,ee)=>{const ne=J.data;let ae="";j%2?ae=te[ee]+"a8":ae=te[ee],ne[d.value].itemStyle={color:ae}}),j%2?(G.show=!0,G.areaStyle.color=t.unref(c).map((J,ee)=>ee===d.value?"#ff003b26":"")):G.show=!1,ye.setOption({series:K,xAxis:ce}),H()},200)});o({refreshData:T});const _=Ne(e),{getGlobalModel:q,setGlobalModel:N}=t.inject(Le,{getGlobalModel:U=>{},setGlobalModel:(U,j)=>{}});N(e.id,{type:e.type,RECORD:""});const V=_("click",U=>{const j=q(e.id);N(e.id,{...j,type:e.type,RECORD:e.tooltipShow?y:U.data})}),{setRequest:z}=t.inject(He,{setRequest:U=>{}});typeof z=="function"&&z({id:e.id,requestFn:T,sortNum:e.requestSort});const P=()=>{const U=e.id,j=q(U);N(U,{...j,RECORD:""})},X=U=>{r.value.chart.containPixel("grid",[U.offsetX,U.offsetY])&&V()};return e.tooltipShow?m.value["zr:click"]=X:m.value.click=V,Fe(e,{refreshData:T,click:V,resetRecord:P}),{option:S,style:f,refreshData:T,click:V,loading:v,onClose:C,ecanModal:u,echartRef:r,handleLocationOk:b,onFilterOption:F,locationVisible:l,locationValue:d,locationNames:c,eventObj:m}}}),i1="",r1="",Cf=e=>(t.pushScopeId("data-v-36e67f03"),e=e(),t.popScopeId(),e),wf={class:"location-wrap"},Af=Cf(()=>t.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function kf(e,o,n,a,i,r){const s=t.resolveComponent("echarts"),l=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal"),c=t.resolveComponent("a-select-option"),f=t.resolveComponent("a-select"),x=t.resolveComponent("a-modal");return t.openBlock(),t.createElementBlock("div",{class:"ecan-bar",style:t.normalizeStyle(e.style)},[t.createVNode(l,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,t.mergeProps({ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:""},t.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),t.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),t.createVNode(x,{visible:e.locationVisible,"onUpdate:visible":o[1]||(o[1]=u=>e.locationVisible=u),title:"快速定位",onOk:e.handleLocationOk},{default:t.withCtx(()=>[t.createElementVNode("div",wf,[Af,t.createVNode(f,{value:e.locationValue,"onUpdate:value":o[0]||(o[0]=u=>e.locationValue=u),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":e.onFilterOption},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.locationNames,(u,m)=>(t.openBlock(),t.createBlock(c,{key:m,value:m},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(u.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const Dl=Ae(ve(Sf,[["render",kf],["__scopeId","data-v-36e67f03"]])),Ba={...Re,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,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:"",isShowMarkLine:!1,markLineType:"average",yAxisName:"",xAxisName:""},Ea=Te(Ba),Il=["click","refreshData","resetRecord"];it.use([Ft.CanvasRenderer,Ct.ScatterChart,De.ToolboxComponent,De.TitleComponent,De.TooltipComponent,De.LegendComponent,De.MarkLineComponent]);const Tf=t.defineComponent({name:"EcanScatter",props:{...Ea},components:{Spin:jt,Echarts:Tt,EcanModal:Nt},setup(e){const{pageMode:o,fontFamily:n}=t.inject(ze,{pageMode:"normal",fontFamily:""}),a=t.ref(!1),i=Ie(e),r=t.ref([]),s=t.ref(),l=t.computed(()=>a.value?Qe:12),d=t.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),c=t.computed(()=>{const g=e.xAxisLabelFormatter,R=e.yAxisLabelFormatter;return{textStyle:{fontFamily:t.unref(n)},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(){nn(e.toolboxDownloadUrl)}},myDataZoom:{show:a.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 p;a.value=!0,(p=s.value)==null||p.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(){he.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:{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(p){return typeof p=="string"&&p[0]==="0"&&!isNaN(+p)&&(p=(+p).toString()),mt(g,p)}},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"}},yAxis:{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(p){return mt(R,p)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:e.yAxisName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:"right"}},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter(p){var O;const{marker:D,seriesName:w}=p,L=((O=p==null?void 0:p.data)==null?void 0:O.record)??{},{name:M,value:k}=L;return _e(e.tooltipFormatter,{textData:{marker:D,seriesName:w,a:w,b:M,c:k,...L}})},axisPointer:{type:"cross"},textStyle:{fontSize:l.value},position:e.tooltipPosition||void 0},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:l.value}},series:[{data:t.unref(r),type:"scatter",symbolSize:e.symbolSize,...t.unref(d)}]}}),{getGlobalModel:f,setGlobalModel:x}=t.inject(Le,{getGlobalModel:g=>{},setGlobalModel:(g,R)=>{}}),u=(g=[],R)=>{const{name:p="name",value:D="value"}=R||{};r.value=g.map(w=>({value:[w[p],w[D]],record:w}))};t.watch(()=>e.data,g=>{(e.dataType==="static"||t.unref(o)==="design")&&u(g)},{immediate:!0,deep:!0});const m=t.ref(!1),y=je(e,g=>{var R,p;u((p=(R=g==null?void 0:g.data)==null?void 0:R.data)==null?void 0:p.rows,e.dataFieldNames)}),h=async()=>{var g,R;if(e.dataType==="request"){m.value=!0;try{const p=await y();u((R=(g=p==null?void 0:p.data)==null?void 0:g.data)==null?void 0:R.rows,e.dataFieldNames)}catch(p){console.error(p)}finally{m.value=!1}}},A=()=>{a.value=!1},I=Ne(e);x(e.id,{type:e.type,RECORD:""});const v=I("click",g=>{const R=e.id,p=f(R);x(R,{...p,type:e.type,RECORD:g==null?void 0:g.data})});Fe(e,{refreshData:()=>{h()},click:v,resetRecord:()=>{const g=e.id,R=f(g);x(g,{...R,RECORD:""})}});const{setRequest:B}=t.inject(He,{setRequest:g=>{}});return typeof B=="function"&&B({id:e.id,requestFn:h,sortNum:e.requestSort}),{option:c,style:i,click:v,loading:m,onClose:A,ecanModal:s}}}),s1="";function Bf(e,o,n,a,i,r){const s=t.resolveComponent("echarts"),l=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(l,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),t.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Rl=Ae(ve(Tf,[["render",Bf]])),Da={...Re,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:"",graphicType:"ecanCustomGraph"},Ia=Te(Da),Ef=t.defineComponent({name:"EcanCustomGraph",props:{...Ia},components:{Echarts:Tt},setup(e){const o=Ie(e),n=t.ref();return t.watch(()=>e.optionCode,a=>{try{const i=eval;n.value=i(a)}catch(i){console.error(i)}},{immediate:!0}),{style:o,myOption:n,echarts:hs}}});function Df(e,o,n,a,i,r){const s=t.resolveComponent("echarts");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(s,{option:e.myOption,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])],4)}const Ll=Ae(ve(Ef,[["render",Df]])),Ra={...Re,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},La=Te(Ra),Nl=["refreshData","click","resetRecord"];it.use([Ft.CanvasRenderer,Ct.BarChart,Ct.LineChart,De.TitleComponent,De.LegendComponent,De.DatasetComponent,De.ToolboxComponent,De.MarkLineComponent]);const If=t.defineComponent({name:"EcanComboGraph",props:{...La},components:{Spin:jt,Echarts:Tt,EcanModal:Nt,AModal:he.Modal},setup(e,{expose:o}){const{pageMode:n,fontFamily:a}=t.inject(ze,{pageMode:"normal",fontFamily:""}),i=t.inject("usedComponentList",[]),{getGlobalModel:r,setGlobalModel:s}=t.inject(Le,{getGlobalModel:j=>{},setGlobalModel:(j,H)=>{}}),l=t.ref(),d=t.ref(!1),c=t.ref(!1),f=t.ref(null),x=t.ref([]),u=t.ref({});let m;const y=Ie(e),h=t.ref([]),A=t.ref([]),I=t.ref(),v=t.ref([]),S=t.computed(()=>d.value?Qe:12),C=t.computed(()=>({textStyle:{fontFamily:t.unref(a)},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:d.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(){c.value=!0;const j=l.value.chart.getOption(),{xAxis:H}=j||{};H&&H.length&&(x.value=H[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(){nn(e.toolboxDownloadUrl)}},myDataZoom:{show:d.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var j;d.value=!0,(j=I.value)==null||j.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){he.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:(d.value?Qe:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:d.value?Qe:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:t.unref(v).map((j,H)=>({name:j.name,itemStyle:{color:e.colors[H]},icon:e.legendType})),formatter:j=>fn(e.legendFormatter,{name:j})},tooltip:{trigger:"axis",show:e.tooltipShow,formatter:j=>{var ye;const H=j.length;let K="",te=e.tooltipFormatter;m=(ye=j[0])==null?void 0:ye.data,te===""&&(te="{marker} {a} {c}");const ce=e.seriesTypes;for(let G=0;G<H;G++){const J=ce[G],{tooltipFormatter:ee}=J||{},{marker:ne,seriesName:ae,name:ie,value:ue,data:Se}=j[G]||{};if(G===0){let ke=ie;typeof ie=="string"&&ie[0]==="0"&&!isNaN(+ie)&&(ke=(+ie).toString()),K+=`${mt(e.xAxisLabelFormatter,ke)}<br/>`}K+=_e(ee||te,{textData:{marker:ne,name:ie,value:ue,seriesName:ae,a:ae,b:ie,c:ue||0,...Se}},{useNewline:!0,useSpace:!0}),K+="<br/>"}return K},textStyle:{color:e.tooltipTextStyleColor,fontSize:S.value},position:e.tooltipPosition||void 0},xAxis:{minInterval:e.xAxisMinInterval,type:"category",data:t.unref(A).map(j=>{let H={};return j&&typeof j=="object"?H={...j}:H={value:j},H}),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(j){return typeof j=="string"&&j[0]==="0"&&!isNaN(+j)&&(j=(+j).toString()),mt(e.xAxisLabelFormatter,j)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"},max:e.xAxisMaxValue||null},yAxis:t.unref(D),series:t.unref(h)})),B=()=>{d.value=!1},g=(j=[],H=!1)=>{let K;if(e.dataFieldConfigType==="key"){const ce=H?e.keyTypeDataFieldNames:null;K=Lt(j,ce)}else if(e.dataFieldConfigType==="value"){const ce=H?e.valueTypeDataFieldNames:null;K=Gt(j,ce)}A.value=K.dimensions;const te=K.dataset;v.value=K.dataset,h.value=p(te)},R=(j=[],H,K=!1)=>{const ce=Lt(j,K?H:null,!0);e.defaultRangeValue&&Fr({props:e,componentList:t.unref(i),getGlobalModel:r},ce),A.value=ce.dimensions;const ye=ce.dataset;v.value=ce.dataset,h.value=p(ye)};function p(j){const H=[],K=j.length,te=e.seriesTypes;for(let ce=0;ce<K;ce++){const ye=te[ce],{type:G,axisIndex:J}=ye||{};let ee={type:G,yAxisIndex:J,...j[ce]};if(G==="line"){const ne={};e.shadowColor&&(ne.shadowColor=e.shadowColor,ne.shadowBlur=e.shadowBlur,ne.shadowOffsetY=e.shadowOffsetY,ne.shadowOffsetX=e.shadowOffsetX),ee={...ee,symbolSize:e.symbolSize,smooth:e.smooth,itemStyle:{color:e.colors[ce]},areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[ce]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[ce],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...ne}}}if(G==="bar"){const{gradientShow:ne,gradientColors:ae,gradientOffset:ie}=e,ue={};if(e.barBorderRadius){const Se=e.barBorderRadius.split(",");if(Se!=null&&Se.length){const ke=[];for(const qe of Se){const We=parseFloat(qe);isNaN(We)||ke.push(We)}ue.borderRadius=ke}}ne&&(ue.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[ce]},{offset:ie,color:ae[ce]},{offset:1,color:ae[ce]}]}),ee={...ee,barWidth:e.barWidth,itemStyle:ue}}e.isShowMarkLine&&(ee.markLine={data:[{type:e.markLineType}]}),H.push(ee)}return H}t.watch(()=>[e.data,e.seriesTypes,e.symbolSize,e.smooth,e.areaStyleOpacity,e.lineStyleWidth,e.barWidth,e.barBorderRadius,e.areaGradientShow,e.areaGradientColor,e.gradientShow,e.gradientColors,e.gradientOffset,e.shadowColor,e.shadowBlur,e.shadowOffsetY,e.shadowOffsetX,e.legendFontSize,e.xAxisLabelFormatter,e.isShowMarkLine,e.markLineType,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([j])=>{(e.dataType==="static"||t.unref(n)==="design")&&g(j)},{immediate:!0,deep:!0});const D=t.computed(()=>{const j=e.yAxis;return j==null?void 0:j.map((H,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(te){return mt(H.axisLabelFormatter,te)}},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}))}),w=t.ref(!1),L=je(e,j=>{var H,K;g((K=(H=j==null?void 0:j.data)==null?void 0:H.data)==null?void 0:K.rows,!0)}),M=async()=>{var j,H;if(e.dataType==="request")try{w.value=!0;const K=await L();g((H=(j=K==null?void 0:K.data)==null?void 0:j.data)==null?void 0:H.rows,!0)}catch(K){console.error(K)}finally{w.value=!1}},k=j=>{var ce;const{columns:H=[],rows:K=[]}=((ce=j==null?void 0:j.data)==null?void 0:ce.data)??{};let te;H.length>0&&(te={name:H[0],types:H.slice(1).map(ye=>({label:ye,value:ye}))}),R(K,te,!0)},O=Xe(e,k),T=async()=>{try{w.value=!0;const j=await O();k(j)}catch(j){console.error(j)}finally{w.value=!1}},{loadedData:F}=t.inject(Et,{loadedData:{}}),b=t.ref(!1);t.watch(F,j=>{if(e.dataType==="indicator"){const H=dn(e.graphicConfig);H!=null&&H.length&&(!t.unref(b)&>(e.graphicConfig,j)?(b.value=!0,E()):gt(e.graphicConfig,j)||(b.value=!1))}},{deep:!0});const E=()=>{switch(e.dataType){case"indicator":gt(e.graphicConfig,t.unref(F))&&T();break;case"request":M();break}},_=(j,H)=>!!t.unref(x)[H.value].value.includes(j),q=async()=>{c.value=!1;const j=l.value.chart.getOption();for(let H=0;H<7;H++)await N(j,H)},N=(j,H)=>new Promise(K=>{setTimeout(()=>{const{series:te,color:ce,xAxis:ye}=j,G=l.value.chart,{splitArea:J={}}=ye[0]||{};te.forEach((ee,ne)=>{const ae=ee.data;let ie="";H%2?ie=ce[ne]+"a8":ie=ce[ne],ae[f.value].itemStyle={color:ie}}),H%2?(J.show=!0,J.areaStyle.color=t.unref(x).map((ee,ne)=>ne===f.value?"#ff003b26":"")):J.show=!1,G.setOption({series:te,xAxis:ye}),K()},200)});o({refreshData:E});const V=Ne(e);s(e.id,{type:e.type,RECORD:""});const z=V("click",j=>{const H=r(e.id);s(e.id,{...H,type:e.type,RECORD:e.tooltipShow?m:j==null?void 0:j.data})}),P=j=>{l.value.chart.containPixel("grid",[j.offsetX,j.offsetY])&&z()};e.tooltipShow?u.value["zr:click"]=P:u.value.click=z;const{setRequest:X}=t.inject(He,{setRequest:j=>{}});return typeof X=="function"&&X({id:e.id,requestFn:E,sortNum:e.requestSort}),Fe(e,{resetRecord:()=>{const j=e.id,H=r(j);s(j,{...H,RECORD:""})},refreshData:E,click:z}),{style:y,option:C,click:z,loading:w,onClose:B,ecanModal:I,echartRef:l,handleLocationOk:q,onFilterOption:_,locationVisible:c,locationValue:f,locationNames:x,eventObj:u}}}),f1="",u1="",Rf=e=>(t.pushScopeId("data-v-db85dc30"),e=e(),t.popScopeId(),e),Lf={class:"location-wrap"},Nf=Rf(()=>t.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function _f(e,o,n,a,i,r){const s=t.resolveComponent("echarts"),l=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal"),c=t.resolveComponent("a-select-option"),f=t.resolveComponent("a-select"),x=t.resolveComponent("a-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(l,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,t.mergeProps({ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:""},t.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),t.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),t.createVNode(x,{visible:e.locationVisible,"onUpdate:visible":o[1]||(o[1]=u=>e.locationVisible=u),title:"快速定位",onOk:e.handleLocationOk},{default:t.withCtx(()=>[t.createElementVNode("div",Lf,[Nf,t.createVNode(f,{value:e.locationValue,"onUpdate:value":o[0]||(o[0]=u=>e.locationValue=u),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":e.onFilterOption},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.locationNames,(u,m)=>(t.openBlock(),t.createBlock(c,{key:m,value:m},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(u.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const _l=Ae(ve(If,[["render",_f],["__scopeId","data-v-db85dc30"]])),Na={...Re,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},_a=Te(Na),Ol=["refreshData","click","resetRecord"];it.use([Ft.CanvasRenderer,Ct.RadarChart,De.ToolboxComponent,De.TitleComponent,De.LegendComponent]);const Of=t.defineComponent({name:"EcanRadar",props:{..._a},components:{Spin:jt,Echarts:Tt,EcanModal:Nt},setup(e,{expose:o}){const{pageMode:n,fontFamily:a}=t.inject(ze,{pageMode:"normal",fontFamily:""}),i=t.ref(),r=t.ref(!1),s=Ie(e),l=t.ref([]),d=t.ref(),c=t.computed(()=>r.value?Qe:12),f=t.ref([]),x=t.ref(e.valueTypeDataFieldNames.name),u=t.computed(()=>{const T=t.unref(f),F=T.length,b=[];for(let E=0;E<F;E++){const{name:_,data:q=[]}=T[E],N=[{name:_,value:q.map(P=>P.value)}];let V=e.colors[E];if(e.gradientShow){const{gradientOffset:P,gradientColors:X}=e;V={x:.7,y:0,x2:0,y2:0,colorStops:[{offset:0,color:e.colors[E]},{offset:P,color:X[E]},{offset:1,color:X[E]}]}}const z={type:"radar",name:_,data:N,areaStyle:{color:V,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:P=>{const{data:X,value:U}=P;let j=0,H="0%";if(X)for(const K of X.value)j+=+K;return j&&(H=`${(U/j*100).toFixed(2)}%`),_e(e.labelFormatter,{textData:{value:U,percent:H}},{useNewline:!1,useSpace:!1})}}};b.push(z)}return b}),m=t.computed(()=>{var _;const T=[],F=[],b=t.unref(f),E=b.length;for(let q=0;q<E;q++){const{data:N=[]}=b[q];for(let V=0;V<N.length;V++)F.push(N[V].value)}if((_=l.value)!=null&&_.length){const q=F!=null&&F.length?Math.max(...F)*1.2:0;for(const N of l.value)T.push({name:N,max:q})}return T}),y=t.computed(()=>({textStyle:{fontFamily:t.unref(a)},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(){nn(e.toolboxDownloadUrl)}},myDataZoom:{show:r.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 T;r.value=!0,(T=d.value)==null||T.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(){he.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:c.value},show:e.tooltipShow,formatter:T=>{let F="",b=e.tooltipFormatter;b===""&&(b="{marker} {a} {c}");for(let E=0;E<t.unref(m).length;E++){const _=t.unref(m)[E],{marker:q,seriesName:N,value:V}=T||{};E===0&&N&&(F+=`${N}<br/>`),F+=_e(b,{textData:{marker:q,name:_.name,value:V[E],a:_.name,b:_.name,c:V[E]||0,type:N}},{useNewline:!0,useSpace:!0}),F+="<br/>"}return F},position:e.tooltipPosition||void 0},radar:{indicator:t.unref(m),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:(r.value?Qe:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:r.value?Qe:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:t.unref(f).map(T=>({name:T.name,icon:e.legendType})),formatter:T=>fn(e.legendFormatter,{name:T})},series:t.unref(u)})),h=()=>{r.value=!1},{getGlobalModel:A,setGlobalModel:I}=t.inject(Le,{getGlobalModel:T=>{},setGlobalModel:(T,F)=>{}}),v=(T=[],F=!1)=>{let b;if(e.dataFieldConfigType==="key"){const E=F?e.keyTypeDataFieldNames:null;b=Lt(T,E)}else if(e.dataFieldConfigType==="value"){const E=F?e.valueTypeDataFieldNames:null;b=Gt(T,E)}l.value=b.dimensions,f.value=b.dataset},S=(T=[],F,b=!1)=>{const _=Lt(T,b?F:null,!0);l.value=_.dimensions,f.value=_.dataset};t.watch(()=>[e.data,e.areaStyleOpacity,e.legendFontSize,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll,e.labelFormatter],([T])=>{(e.dataType==="static"||t.unref(n)==="design")&&v(T)},{immediate:!0,deep:!0});const C=t.ref(!1),B=je(e,T=>{var F,b;v((b=(F=T==null?void 0:T.data)==null?void 0:F.data)==null?void 0:b.rows,!0)}),g=async()=>{var T,F;if(e.dataType==="request")try{C.value=!0;const b=await B();v((F=(T=b==null?void 0:b.data)==null?void 0:T.data)==null?void 0:F.rows,!0)}catch(b){console.error(b)}finally{C.value=!1}},R=Ne(e);I(e.id,{type:e.type,RECORD:""});const p=T=>{const F=T.event.topTarget.__dimIdx;F!==void 0&&R("click",()=>{var q;const{value:b,name:E}=T.data||{},_=A(e.id);I(e.id,{..._,type:e.type,RECORD:{[t.unref(x)]:((q=t.unref(m)[F])==null?void 0:q.name)||"",[E]:b[F],seriesName:E}})})()},D=T=>{var _;const{columns:F=[],rows:b=[]}=((_=T==null?void 0:T.data)==null?void 0:_.data)??{};let E;F.length>0&&(x.value=F[0],E={name:F[0],types:F.slice(1).map(q=>({label:q,value:q}))}),S(b,E,!0)},w=Xe(e,D),L=async()=>{try{C.value=!0;const T=await w();D(T)}catch(T){console.error(T)}finally{C.value=!1}},M=()=>{switch(e.dataType){case"indicator":L();break;case"request":g();break}};Fe(e,{refreshData:M,resetRecord:()=>{const T=e.id,F=A(T);I(T,{...F,RECORD:""})},click:p});const{setRequest:O}=t.inject(He,{setRequest:T=>{}});return typeof O=="function"&&O({id:e.id,requestFn:M,sortNum:e.requestSort}),o({refreshData:M}),{option:y,style:s,click:p,loading:C,onClose:h,ecanModal:d,echartRef:i}}}),g1="";function Ff(e,o,n,a,i,r){const s=t.resolveComponent("echarts"),l=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(l,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{ref:"echartRef",option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),t.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Fl=Ae(ve(Of,[["render",Ff]])),Mf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXOVNTGXMWFD0ak6KN1ZKaojYmbribndW9MXELNQEFFUyiNqQlmEQ1JqpgErUifUUTUVEIupx1wzpjvWfdsh4FQX8ANe4nnpsb9NEAAAAASUVORK5CYII=",zf="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==",Pf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg==",qf="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==",Oa={...Re,name:"边框",keyName:"边框",type:"ecanBorder",width:"300px",height:"300px",zIndex:0,fontSize:"16px",fontFamily:"",fontWeight:700,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"},Fa=Te(Oa),Ml=["click"],Vf=t.defineComponent({name:"EcanBorder",props:{...Fa},setup(e){const o=Ie(e,["background"]),n=t.computed(()=>{const{isTransparent:y,gradientShow:h,gradientColor:A,gradientOffset:I,gradientAngle:v,backgroundColor:S}=e;if(h){let C=A;return y&&(C="transparent"),C?{background:`linear-gradient(${v}, ${S}, ${C} ${I*100}%)`}:{}}else return{}}),a=t.computed(()=>{const{events:y}=e;let h={};return y!=null&&y.length&&y.find(I=>I.emit==="showModal")&&(h={cursor:"pointer"}),h}),{theme:i}=t.inject(ze,{theme:"light"}),r=t.computed(()=>{let y="";switch(e.titleMode){case"type-2":y="2";break}return y}),s=t.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-left.png":Mf,"../../assets/border-title-decoration-left2.png":zf})[`../../assets/border-title-decoration-left${r.value}.png`],self.location).href),l=t.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-right.png":Pf,"../../assets/border-title-decoration-right2.png":qf})[`../../assets/border-title-decoration-right${r.value}.png`],self.location).href),d=t.computed(()=>({width:"100%",height:"100%"})),c=t.computed(()=>{const{borderRadius:y}=e,h=[],A={};if(y){const I=y.split(",");for(const v of I)(+v||+v==0)&&h.push(+v+"px")}return h!=null&&h.length&&(A.borderRadius=h.join(" ")),A}),x=Ne(e)("click",()=>{}),u=t.ref([]);t.watch(()=>e.data,y=>{u.value=y},{immediate:!0,deep:!0}),Fe(e,{click:x});const{setGlobalModel:m}=t.inject(Le,{setGlobalModel:(y,h)=>{}});return m(e.id,{type:e.type,value:u}),{style:o,gradientStyle:n,click:x,borderStyle:d,theme:i,borderRadiusStyle:c,titleLeftIcon:s,titleRightIcon:l,cursorStyle:a}}}),y1="",_t=e=>(t.pushScopeId("data-v-8dd53b8f"),e=e(),t.popScopeId(),e),Hf=["id"],jf=_t(()=>t.createElementVNode("div",{class:"top-left border-item"},null,-1)),Wf=_t(()=>t.createElementVNode("div",{class:"top-right border-item"},null,-1)),Gf=_t(()=>t.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),Uf=_t(()=>t.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),$f={class:"title-item"},Yf=["src"],Kf={class:"title"},Zf=["src"],Qf=_t(()=>t.createElementVNode("div",{class:"top-left border-item"},null,-1)),Jf=_t(()=>t.createElementVNode("div",{class:"top-right border-item"},null,-1)),Xf=_t(()=>t.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),eu=_t(()=>t.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),tu={key:2,class:"left-title"},nu={class:"title"};function ou(e,o,n,a,i,r){return t.openBlock(),t.createElementBlock("div",{class:"ecan-border",style:t.normalizeStyle({...e.style,...e.gradientStyle,...e.borderRadiusStyle,...e.cursorStyle}),onClick:o[0]||(o[0]=(...s)=>e.click&&e.click(...s)),id:"container_"+e.id},[e.mode==="no-title"?(t.openBlock(),t.createElementBlock("div",{key:0,class:"no-title",style:t.normalizeStyle(e.borderStyle)},[e.useBorderModify?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[jf,Wf,Gf,Uf],64)):t.createCommentVNode("",!0)],4)):t.createCommentVNode("",!0),e.mode==="top-title"?(t.openBlock(),t.createElementBlock("div",{key:1,class:"top-title",style:t.normalizeStyle(e.borderStyle)},[t.createElementVNode("div",{class:t.normalizeClass(["title-item-wrapper",e.titleMode])},[t.createElementVNode("div",$f,[t.createElementVNode("img",{class:t.normalizeClass(["title-decoration",e.titleMode]),src:e.titleLeftIcon},null,10,Yf),t.createElementVNode("div",Kf,t.toDisplayString(e.title),1),t.createElementVNode("img",{class:t.normalizeClass(["title-decoration",e.titleMode]),src:e.titleRightIcon},null,10,Zf)])],2),Qf,Jf,Xf,eu],4)):t.createCommentVNode("",!0),e.mode==="left-title"?(t.openBlock(),t.createElementBlock("div",tu,[t.createElementVNode("div",nu,[t.createElementVNode("span",null,t.toDisplayString(e.title),1)])])):t.createCommentVNode("",!0)],12,Hf)}const zl=Ae(ve(Vf,[["render",ou],["__scopeId","data-v-8dd53b8f"]])),Ma={...Re,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"},za=Te(Ma),Pl=["tabChange"],au=t.defineComponent({name:"EcanTabs",props:{...za},components:{ASelect:he.Select,ASelectOption:he.SelectOption,MarqueeScroll:Wn},setup(e){const o=Ie(e),n=t.ref(0);t.watch(()=>e.activeKey,p=>{n.value=p},{immediate:!0});const{pageMode:a}=t.inject(ze,{pageMode:"normal"}),i=t.inject("getContainerMap",()=>{}),r=t.inject("componentList",[]),s=["ecanBorder","ecanTabs","ecanCirculate"],l=t.computed(()=>i()||{}),d=p=>{const D=t.unref(l)[p],w=[];if(D)for(const L in D)for(const M of D[L]){const k=t.unref(r).find(O=>O.id===M);w.push(M),s.includes(k==null?void 0:k.type)&&w.push(...d(M))}return w},c=t.computed(()=>d(e.id));let f=null;const x=()=>{const p=Array.isArray(t.unref(m))?t.unref(m).length-1:0;t.unref(a)!=="design"&&!e.isAutoScroll&&e.autoSwitch&&p>0&&(f=setInterval(()=>{const D=t.unref(n)+1;D<=p?n.value=D:n.value=0,y.value=t.unref(m)[t.unref(n)],v()},e.autoSwitchInterval*1e3))},u=()=>{clearInterval(f)};t.onMounted(()=>{t.unref(a)!=="design"&&x()}),t.onBeforeUnmount(()=>{u()});const m=t.ref([]),y=t.ref({});t.watch(()=>e.data,p=>{m.value=p,y.value=Array.isArray(p)&&p.length>0?p[0]:{}},{immediate:!0,deep:!0});const h=p=>n.value===p,A=Ne(e),{setGlobalModel:I}=t.inject(Le,{setGlobalModel:(p,D)=>{}});I(e.id,{value:y,activeKey:n});const{emitRefreshPage:v}=t.inject(sn,{emitRefreshPage:()=>{}}),S=p=>{let{tab:D,index:w}=p||{};if(p.label){const L=t.unref(m).findIndex(M=>M.title===p.label);L!==-1&&(w=L,D=t.unref(m)[L])}A("tabChange",()=>{!isNaN(+w)&&w!==t.unref(n)&&(y.value=D,n.value=w,v())})()},C=t.computed(()=>{const p=e.componentList.map(D=>parseFloat(D.left)+parseFloat(D.width)).sort((D,w)=>w-D)[0];return{width:p?p+"px":"100%"}}),B=()=>{t.unref(a)!=="design"&&u()},g=p=>{var D,w;return p?(w=(D=p==null?void 0:p.parentNode)==null?void 0:D.className)!=null&&w.includes("ecan-")?p.parentNode.getAttribute("cpntid"):g(p.parentNode):""},R=p=>{var D;if(t.unref(a)!=="design"){const w=(p==null?void 0:p.toElement)||{};if((D=w==null?void 0:w.className)!=null&&D.includes("ecan-"))t.unref(c).includes(w.getAttribute("cpntid"))||x();else if((w==null?void 0:w.className)==="page-config")x();else{const L=g(w);t.unref(c).includes(L)||x()}}};return Fe(e,{tabChange:S}),{style:o,activeKey:n,isActive:h,tabChange:S,myData:m,useImagePath:pt,pageMode:a,scrollWrapStyle:C,onMouseEnter:B,onMouseLeave:R}}}),p1="",iu=["id"],ru=["onClick"];function lu(e,o,n,a,i,r){const s=t.resolveComponent("a-select-option"),l=t.resolveComponent("a-select"),d=t.resolveComponent("marquee-scroll");return t.openBlock(),t.createElementBlock("div",{class:"ecan-tabs",style:t.normalizeStyle(e.style),id:"container_"+e.id,onMouseenter:o[0]||(o[0]=(...c)=>e.onMouseEnter&&e.onMouseEnter(...c)),onMouseleave:o[1]||(o[1]=(...c)=>e.onMouseLeave&&e.onMouseLeave(...c))},[e.pageMode==="design"||!e.isAutoScroll?t.withDirectives((t.openBlock(),t.createElementBlock("div",{key:0,class:"tabs-header",style:t.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"?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.myData,(c,f)=>(t.openBlock(),t.createElementBlock("div",{class:"tab",style:t.normalizeStyle({padding:`5px ${e.tabHorizontalPadding}`,color:e.isActive(f)?e.activeTabColor:e.tabColor,backgroundImage:e.isActive(f)?e.useImagePath(e.activeTabBackgroundImage,!0):e.useImagePath(e.tabBackgroundImage,!0),marginRight:e.tabFlexDirection==="row"?e.tabBarGutter:null,marginBottom:e.tabFlexDirection==="column"?e.tabBarGutter:null,fontWeight:e.tabFontWeight}),key:f,onClick:t.withModifiers(x=>e.tabChange({tab:c,index:f}),["prevent","stop"])},[t.createElementVNode("div",{class:"tab-inner",style:t.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.isActive(f)?e.activeTabColor:"transparent"}`:""})},t.toDisplayString(c.title),5)],12,ru))),128)):e.tabType==="select"?(t.openBlock(),t.createBlock(l,{key:1,value:e.activeKey,style:t.normalizeStyle({width:e.tabWidth})},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myData,(c,f)=>(t.openBlock(),t.createBlock(s,{key:f,value:f,onClick:x=>e.tabChange({tab:c,index:f})},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(c.title),1)]),_:2},1032,["value","onClick"]))),128))]),_:1},8,["value","style"])):t.createCommentVNode("",!0)],4)),[[t.vShow,e.pageMode==="design"||!e.hideTabs]]):t.createCommentVNode("",!0),e.pageMode!=="design"&&e.isAutoScroll?(t.openBlock(),t.createBlock(d,{key:1,visible:e.isAutoScroll,step:e.scrollSpeed,vertical:!1,style:t.normalizeStyle({height:e.height})},{default:t.withCtx(()=>[t.createElementVNode("div",{class:"scroll-wrap",style:t.normalizeStyle(e.scrollWrapStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.componentList,c=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(c.type),t.normalizeProps(t.mergeProps({key:c.id},c)),null,16))),128))],4)]),_:1},8,["visible","step","style"])):t.createCommentVNode("",!0)],44,iu)}const ql=Ae(ve(au,[["render",lu],["__scopeId","data-v-5848288f"]])),Pa={...Re,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"},qa=Te(Pa),Vl=["click","refreshData","resetRecord"];let Hl=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((o,n)=>(n&=63,n<36?o+=n.toString(36):n<62?o+=(n-26).toString(36).toUpperCase():n>62?o+="-":o+="_",o),"");const su=t.defineComponent({name:"EcanCirculate",props:{...qa,sourceLeft:String,sourceTop:String,sourceWidth:Number},components:{MarqueeScroll:Wn,Skeleton:Wt},setup(e,{expose:o}){const n=t.ref(!1),a=Ie(e,["background"]),i=t.inject("usedComponentList",[]),r=t.inject("isMobile",!1),{getGlobalModel:s,setGlobalModel:l}=t.inject(Le,{getGlobalModel:p=>{},setGlobalModel:(p,D)=>{}}),d=t.ref([]),c=t.ref({}),{pageMode:f}=t.inject(ze,{pageMode:"normal"}),x=t.computed(()=>{if(t.unref(r)){const p=document.body.clientWidth,D=e.sourceWidth||parseFloat(e.width);return p/D||1}else return 1});function u(p,D){const w=D.find(L=>L.id===e.id);if(w)for(const L of p)L.left=parseFloat(L.left)-parseFloat(w.sourceLeft||w.left)+"px",L.top=parseFloat(L.top)-parseFloat(w.sourceTop||w.top)+"px"}const m=p=>{const D=p.sort((k,O)=>parseFloat(k.top)-parseFloat(O.top))[0],w=p.sort((k,O)=>parseFloat(k.left)-parseFloat(O.left))[0],L=p.map(k=>parseFloat(k.left)+parseFloat(k.width)).sort((k,O)=>O-k)[0],M=p.map(k=>parseFloat(k.top)+parseFloat(k.height)).sort((k,O)=>O-k)[0];if(w&&L&&D&&M){const k=parseFloat(w.left),O=parseFloat(D.top);return{width:L-k,height:M-O,left:k}}else return{width:0,height:0,left:0}},y=t.ref({}),h=p=>{var _,q;const D=[],{graphicConfig:w,id:L,componentList:M,keyFieldMap:k,unitInterval:O,colNum:T}=e;let F=Oe.cloneDeep(M),b=[];if((_=t.unref(i))!=null&&_.length)for(const N of t.unref(i))b.push(N),(q=N==null?void 0:N.componentList)!=null&&q.length&&b.push(...N.componentList);if(w.pageMode==="design"&&w.preview){const{containerMap:N}=w.pageConfig||{};b=w.componentList||[],b.push(e),F=Ca(N,Oe.cloneDeep(b),L)}u(F,b);const E=m(F);if(p!=null&&p.length){const{width:N,left:V,height:z}=E;let P=0,X=0;p.forEach((U,j)=>{U.index=j+1;const H=Hl(),K=Oe.cloneDeep(F);for(const te of K){const ce=k.find(G=>G.keyName===te.keyName),ye=Hl();if(te.left=(parseFloat(te.left)+P)*t.unref(x)+"px",te.top=(parseFloat(te.top)+X)*t.unref(x)+"px",te.scale=t.unref(x),te.id=ye,te.keyName=te.name+"_"+ye,te.unitId=H,ce!=null&&ce.fieldName){const G=te.text.match(/\{(.+?)\}/g);switch(te.type){case"ecanText":{te.data={value:String(U[ce.fieldName])},G!=null&&G.length||(te.text="{value}");break}case"ecanProportion":{te.data={percent:String(U[ce.fieldName])},G!=null&&G.length||(te.text="{percent}");break}}}}T&&U.index%T===0?(P=0,X+=O+z):P+=O+N,D.push(...K),y.value[H]=U}),c.value={width:((T||p.length)*(N+O)+V)*t.unref(x)+"px",height:(T?Math.ceil(p.length/T)*(O+z):O+z)*t.unref(x)+"px"}}d.value=D},A=p=>{var w;const{rows:D=[]}=((w=p==null?void 0:p.data)==null?void 0:w.data)??{};h(D)},I=Xe(e,A),v=async()=>{try{n.value=!0;const p=await I();A(p)}catch(p){console.error(p)}finally{n.value=!1}},S=()=>{switch(e.dataType){case"indicator":v();break}};Fe(e,{refreshData:S,resetRecord:()=>{const p=e.id,D=s(p);l(p,{...D,RECORD:""})}}),o({refreshData:S}),l(e.id,{type:e.type,RECORD:""});const{setRequest:B}=t.inject(He,{setRequest:p=>{}});typeof B=="function"&&B({id:e.id,requestFn:S,sortNum:e.requestSort});const g=Ne(e);return{loading:n,style:a,myComponentList:d,scrollWrapStyle:c,pageMode:f,click:p=>{let D=p.target;if(D){let w=D.getAttribute("unitId");for(;!w&&!D.className.includes("ecan-");)D=D.parentElement,w=D.getAttribute("unitId");w&&g("click",()=>{const L=s(e.id);l(e.id,{...L,type:e.type,RECORD:t.unref(y)[w]})})()}}}}}),v1="",cu=["id"];function du(e,o,n,a,i,r){const s=t.resolveComponent("marquee-scroll"),l=t.resolveComponent("skeleton");return t.openBlock(),t.createElementBlock("div",{class:"ecan-circulate",style:t.normalizeStyle(e.style),id:"container_"+e.id,onClick:o[0]||(o[0]=(...d)=>e.click&&e.click(...d))},[t.createVNode(l,{loading:e.loading},{default:t.withCtx(()=>{var d;return[(d=e.myComponentList)!=null&&d.length?(t.openBlock(),t.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:t.withCtx(()=>[t.createElementVNode("div",{class:"scroll-wrap",style:t.normalizeStyle(e.scrollWrapStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myComponentList,c=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(c.type),t.normalizeProps(t.mergeProps({key:c.id},c)),null,16))),128))],4)]),_:1},8,["visible","step","vertical"])):t.createCommentVNode("",!0)]}),_:1},8,["loading"])],12,cu)}const jl=Ae(ve(su,[["render",du],["__scopeId","data-v-85608bec"]])),Va={...Re,name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",target:"self",href:"",linkPage:"",data:{},isHoverStyle:!1,borderRadius:""},Ha=Te(Va),Wl=["click"],ja=t.defineComponent({name:"EcanImage",props:{...Ha},setup(e){const o=Ie(e),n=t.computed(()=>pt(e.imgUrl)),{pageMode:a}=t.inject(ze,{pageMode:"normal"}),{getGlobalModel:i,setGlobalModel:r}=t.inject(Le,{getGlobalModel:d=>{},setGlobalModel:(d,c)=>{}}),l=Ne(e)("click",()=>{const d=i(e.id);if(r(e.id,{...d,type:e.type,RECORD:e.data||{}}),setTimeout(()=>{r(e.id,{...d,type:e.type,RECORD:{}})},0),!e.linkPage&&!e.href)return;const c=e.linkPage||"",f=zo(t.unref(a),c),x=e.href;let u=x||f;u=_e(u);const m=e.target;m&&(m!=="event"?window.open(u,"_"+m):window.parent.postMessage({type:"openPage",url:x},"*"))});return Fe(e,{click:l}),{style:o,myImgUrl:n,onClick:l}}}),Gl=()=>{t.useCssVars(e=>({"102827c2":e.isHoverStyle?"pointer":"auto","5de838e7":e.isHoverStyle?"0.6":"1"}))},Ul=ja.setup;ja.setup=Ul?(e,o)=>(Gl(),Ul(e,o)):Gl;const C1="",fu=["src"];function uu(e,o,n,a,i,r){return e.myImgUrl!==""?(t.openBlock(),t.createElementBlock("img",{key:0,class:"ecan-image",style:t.normalizeStyle(e.style),src:e.myImgUrl,onClick:o[0]||(o[0]=(...s)=>e.onClick&&e.onClick(...s))},null,12,fu)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"image-placeholder",style:t.normalizeStyle(e.style)}," 请上传图片 ",4))}const $l=Ae(ve(ja,[["render",uu],["__scopeId","data-v-47ea6e7c"]])),Wa={...Re,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web"},Ga=Te(Wa),hu=t.defineComponent({name:"EcanIframe",props:{...Ga},setup(e){const o=Ie(e),{contextRequestUrl:n}=t.inject(ze,{contextRequestUrl:""}),a=t.computed(()=>{let i=_e(e.link);if(e.linkType==="erd"&&i!=null){let r=t.unref(n);r[r.length-1]==="/"?r+="erdReport":r+="/erdReport",i=`${W0||r}?_t=0&uid=${i}`}return i});return{style:o,myLink:a}}}),A1="",gu=["src"];function mu(e,o,n,a,i,r){return e.myLink?(t.openBlock(),t.createElementBlock("iframe",{key:0,src:e.myLink,style:t.normalizeStyle(e.style)},null,12,gu)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"iframe-placeholder",style:t.normalizeStyle(e.style)}," 请填写网页链接 ",4))}const Yl=Ae(ve(hu,[["render",mu],["__scopeId","data-v-19bc100c"]])),Ua={...Re,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},$a=Te(Ua),Kl=["click","refreshData","resetRecord","exportTableData"],yu="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",xu="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==",pu="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==",Ya=t.defineComponent({name:"EcanTable",components:{Skeleton:Wt,AButton:he.Button,AInput:he.Input,ACheckboxGroup:he.CheckboxGroup,ATable:he.Table,ATableSummary:he.TableSummary,ATableSummaryRow:he.TableSummaryRow,ATableSummaryCell:he.TableSummaryCell},props:{...$a},setup(e,{expose:o}){const n=t.ref(!1),a=t.computed(()=>{const W=Oe.cloneDeep(e.columns);return e.isUseSeq&&W.unshift({title:e.seqName,dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&W.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),W}),i=t.ref(),r=t.ref(!1),s=Ie(e),l=t.ref([]),d=t.computed(()=>e.scrollX),c=t.ref(0),f=()=>{let W=0;switch(e.size){case"small":W=50;break;case"middle":W=53;break;default:W=65;break}return W};t.watchEffect(()=>{var W;(W=l.value)!=null&&W.length&&e.height&&t.nextTick(()=>{let Y=parseFloat(e.height);const Q=document.querySelector(`#ecanTable-${e.id} .ant-table-tbody`),re=document.querySelector(`#ecanTable-${e.id} thead.ant-table-thead`),se=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`);let le=0;if(re&&(Y-=(re==null?void 0:re.clientHeight)||0),se&&e.isSummaryFixed&&(le=(se==null?void 0:se.clientHeight)||0,Y-=le),e.paginationShow){let oe=0;oe=f(),oe&&(Y-=oe)}(Q==null?void 0:Q.clientHeight)>Y?c.value=Y:c.value=0,t.nextTick(()=>{if(le){const oe=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`),Ce=(oe==null?void 0:oe.clientHeight)||0;le!==Ce&&t.unref(c)&&(c.value=Y+le-Ce)}})})});const x=t.ref([]),u=t.ref([]),m=t.ref([]),y=t.ref([]),h=t.ref(0),A=t.ref(1),I=t.ref(e.paginationPageSize||10),v=t.reactive([]),S=(W,Y)=>{let Q="";return W.forEach((re,se)=>{const{value:le,rule:oe}=re;re.conditions?Q+=`(${S(re.conditions,re.join)})`:le&&oe&&(Q+=`value ${oe} '${le}'`),Q+=`${se===W.length-1?"":Y?" "+Y+" ":""}`}),Q},C=(W=[])=>{var Y,Q;if(Array.isArray(W)&&W.length>0){let re=W.length;const se=e.columnsFixedNum;if(e.dataType==="indicator"&&((Y=t.unref(a))!=null&&Y.length)){const{graphicConfig:{indicators:le=[]}}=e;W.forEach((oe,Ce)=>{if(t.unref(a)[Ce])for(const Ve in t.unref(a)[Ce])["dataIndex","title"].includes(Ve)||(oe[Ve]=t.unref(a)[Ce][Ve]);const Be=le.find(Ve=>Ve.label===oe.title),{showLabel:Ee=""}=Be||{};Ee&&(oe.title=Ee)})}for(let le=re-1;le>=0;le--)(Q=W[le])!=null&&Q.isHidden&&W.splice(le,1);re=W.length;for(let le=0;le<re;le++){const oe=W[le];if(le<se?oe.fixed="left":oe.fixed=!1,e.isSortByFront&&oe.sorter){const bt=oe.dataIndex;oe.sorter=(qt,In)=>qt[bt]-In[bt]}const{cellAlign:Ce="center",cellColor:Be,dataIndex:Ee,title:Ve,tableFilter:ot,headerCellAlign:kt,headerCellColor:Ot,overflow:Ze,conditions:at}=oe;ot&&(v.push(Ee),oe.filterOptionsInputValue="",oe.filterCheckboxGroupValue=[],oe.customFilterDropdown=!0,oe.onFilter=(bt,qt)=>qt[Ee].toString().toLowerCase().includes(bt.toLowerCase())),at&&(oe.conditionCode=S(at)),oe.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:e.headerFontSize,fontWeight:e.headerFontWeight,textAlign:kt||"center",color:Ot||e.headerFontColor,borderBottomColor:e.borderColor,backgroundColor:e.headerBackgroundColor}}),oe.customCell=(bt,qt)=>({style:{textAlign:Ce,color:Be||e.cellFontColor,backgroundColor:e.cellBackgroundColor,borderBottomColor:e.borderColor},class:{highlight:t.unref(K)===qt&&e.clickHighlight},onClick:V("click",()=>{const In=e.id,Yu=z(In);bt={dataIndex:Ee,title:Ve,...bt},P(In,{...Yu,type:e.type,RECORD:bt})})}),Ze==="ellipsis"?oe.ellipsis=!0:oe.ellipsis=!1,Array.isArray(oe.children)&&C(oe.children)}}},B=(W=[])=>{var Q;let Y=Oe.cloneDeep(W);return(Q=t.unref(y))!=null&&Q.length&&(Y=Oe.cloneDeep(t.unref(y))),e.isUseSeq&&Y.unshift({title:e.seqName,dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&Y.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),C(Y),Y};t.watch(I,()=>{A.value=1,G(!1)}),t.watch(i,W=>{r.value=!!W}),t.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],()=>{x.value=B(Oe.cloneDeep(e.columns))},{immediate:!0,deep:!0}),t.watch(()=>[e.data,e.dataType],([W,Y])=>{Y==="static"&&(u.value=W)},{immediate:!0});const g=t.ref({}),R=W=>{if(Array.isArray(W)){const Y=W.length,Q=v,re=Q.length,se={};for(let oe=0;oe<Y;oe++){const Ce=W[oe];for(let Be=0;Be<re;Be++){const Ee=Q[Be];if(se[Ee])se[Ee].add(Ce[Ee]);else{const Ve=new Set;Ve.add(Ce[Ee]),se[Ee]=Ve}}}const le={};for(const oe in se)if(Object.prototype.hasOwnProperty.call(se,oe)){const Ce=se[oe],Be=Array.from(Ce);le[oe]=Be.map(Ee=>({label:Ee,value:Ee}))}g.value=le}};t.watch(()=>[e.isReverse,x.value,u.value],()=>{const W=t.unref(x),Y=t.unref(u);if(R(Y),e.isReverse){const{columns:Q,dataSource:re}=p(Oe.cloneDeep(W),Oe.cloneDeep(Y));m.value=Q,l.value=re}else m.value=W,l.value=Y},{immediate:!0});const p=(W,Y)=>{const Q=W[0],re=[{title:Q.title,dataIndex:"col0",key:"col0",align:"center"}];for(let le=0;le<Y.length;le++){const oe=Y[le],Ce="col"+(le+1);re.push({title:oe[Q.dataIndex],dataIndex:Ce,key:Ce,align:"center"})}const se=[];for(let le=1;le<W.length;le++){const oe=W[le],Ce={col0:oe.title};for(let Be=0;Be<Y.length;Be++){const Ee=Y[Be];Ce[`col${Be+1}`]=Ee[oe.dataIndex]}se.push(Ce)}return{columns:re,dataSource:se}},D=t.ref(""),w=W=>{var re;const{rows:Y=[],total:Q=0}=((re=W==null?void 0:W.data)==null?void 0:re.data)||{};if(h.value=Q,Array.isArray(Y)&&(u.value=Y),window.config.routerBaseURL.includes("1523545080925487106")){const{requestParams:se=[]}=e,le=se.find(oe=>oe.key==="dataSqlId");if((le==null?void 0:le.value)==="xt_jxzebg"){const oe=Y.filter(Ce=>!Ce.绩效总额).map(Ce=>Ce.ORG_NAME);oe!=null&&oe.length&&t.nextTick(()=>{he.notification.warning({message:"提示",description:`当前时段${oe.join("、")}绩效数据为空`,duration:3})})}}},L=je(e,w),M=async(W=!0,Y={})=>{try{W&&(n.value=!0),t.unref(D)&&(Y.orderCondition=t.unref(D)),e.paginationShow&&(Y={pageNum:t.unref(A),pageSize:t.unref(I)||"10",layer:"1",...Y});const Q=await L(Y);w(Q)}catch(Q){console.error(Q)}finally{n.value=!1}},k=({current:W},Y,Q)=>{if(A.value=W,Q&&Object.keys(Q).length>0){const{field:re,order:se}=Q,oe={ascend:"asc",descend:"desc"}[se];re!=null&&oe!=null&&oe?D.value=re+" "+oe:oe||(D.value="")}e.isSortByFront||G(!1)},O=t.computed(()=>{const W=e.simple,Y=[e.paginationPosition],Q={};return e.isShowTotal&&(Q.showTotal=re=>`共 ${re} 条数据`),e.paginationShow&&{simple:W,position:Y,total:t.unref(h),current:t.unref(A),pageSize:t.unref(I)||"10",showSizeChanger:!1,size:"large",...Q}}),T=W=>+W==1?"是":+W==0?"否":W,F=(W,Y)=>{const{format:Q,retentiondigit:re,customFormatter:se,defaultVal:le}=Y;let oe="";if(Q==null||Q==="")oe=W;else{const Ce={money:Mo,percentage:Dn,contrast:Dn,boolean:T,decimals:Jc,custom:Or};Ce[Q]||(oe=""),Q==="decimals"?oe=Ce[Q](W,re)||"":Q==="custom"?oe=Ce[Q](W,se)||"":oe=Ce[Q](W)||""}return oe||(oe=le),oe},b=W=>W==="contrast"?"upDown":"",E=W=>{const{text:Y,format:Q,declineColor:re="#39cf93",increaseColor:se="#ff512e"}=W;if(Q==="contrast"){const le={fontSize:e.fontSize},oe=parseFloat(Y+"");return oe>=0?le.color=se:oe<0&&(le.color=re),le}else return{}},_=t.computed(()=>{const{fontSize:W}=e;return{width:W,height:W,textIndent:`-${parseFloat(W)*2}px`,overflow:"hidden"}}),q=W=>{const{text:Y,declineColor:Q="#39cf93",increaseColor:re="#ff512e"}=W,{fontSize:se}=e,le=parseFloat(Y+""),oe={width:se,verticalAlign:"unset"};return le>=0?oe.filter=`drop-shadow(${re||"#ff512e"} ${se} -1px)`:le<0&&(oe.filter=`drop-shadow(${Q||"#39cf93"} ${se} -1px)`),oe},N=W=>{const Y=parseFloat(W+"");if(Y>=0)return jo;if(Y<0)return Wo},V=Ne(e),{getGlobalModel:z,setGlobalModel:P}=t.inject(Le,{getGlobalModel:W=>{},setGlobalModel:(W,Y)=>{}});P(e.id,{type:e.type,RECORD:""});const X=(W=[],Y=[])=>{const Q=W.map(re=>({title:re,dataIndex:re,key:re}));y.value=Oe.cloneDeep(Q),x.value=B(Q),u.value=Y},U=W=>{var Y,Q,re,se;X((Q=(Y=W==null?void 0:W.data)==null?void 0:Y.data)==null?void 0:Q.columns,(se=(re=W==null?void 0:W.data)==null?void 0:re.data)==null?void 0:se.rows)},j=Xe(e,U),H=async(W=!0)=>{try{W&&(n.value=!0);const Y=t.unref(D).split(" "),Q={};e.isSortByFront||(Q.sort={order:Y[1],field:Y[0]});const re=await j(Q);U(re)}catch(Y){console.error(Y)}finally{n.value=!1}},K=t.ref(-1),te=(W,Y)=>({onClick:V("rowClick",()=>{const Q=e.id,re=z(Q);P(Q,{...re,type:e.type,RECORD:W}),K.value=Y})}),{loadedData:ce}=t.inject(Et,{loadedData:{}}),ye=t.ref(!1);t.watch(ce,W=>{if(e.dataType==="indicator"){const Y=dn(e.graphicConfig);Y!=null&&Y.length&&(!t.unref(ye)&>(e.graphicConfig,W)?(ye.value=!0,G()):gt(e.graphicConfig,W)||(ye.value=!1))}},{deep:!0});const G=(W=!0)=>{switch(e.dataType){case"request":M(W);break;case"indicator":gt(e.graphicConfig,t.unref(ce))&&H(W);break}},J=()=>{const W=e.id,Y=z(W);P(W,{...Y,type:e.type,RECORD:""})},ee=t.computed(()=>{const W=t.unref(m);let Y=0;const{subTotalColumn:Q,subTotalName:re}=e;Q&&(Y=W.findIndex(Be=>Be.dataIndex===Q),Y<0&&(Y=0));const se=[];let le=0;for(let Be=0;Be<W.length;Be++){const Ee=W[Be],{isCalcTotal:Ve}=Ee;Be===Y?se.push({...Ee,total:re}):Ve?(se.push({...Ee,index:Be,total:0}),le++):se.push({...Ee})}if(le===0)return[];const oe=t.unref(l),Ce=ne(se);for(let Be=0;Be<Ce.length;Be++){const Ee=Ce[Be];let Ve=0;const{isCalcTotal:ot,dataIndex:kt}=Ee;if(ot===!0){for(let Ot=0;Ot<oe.length;Ot++){const at=+oe[Ot][kt];isNaN(at)||(Ve=new fs.Big(Ve).add(at).toNumber())}Ee.total=Ve}}return Ce});function ne(W){var Q;const Y=[];for(const re of W)(Q=re.children)!=null&&Q.length?Y.push(...ne(re.children)):Y.push(re);return Y}const{setRequest:ae}=t.inject(He,{setRequest:W=>{}});typeof ae=="function"&&ae({id:e.id,requestFn:G,sortNum:e.requestSort}),o({refreshData:G});const ie=(W="",Y)=>_e(W,Y),ue=W=>{if(W!=="event")return{self:"_self",blank:"_blank"}[W]},Se=(W,Y="")=>{W==="event"&&window.parent.postMessage({type:"openPage",url:Y},"*")},ke=(W,Y)=>{W(Y.filterCheckboxGroupValue)},qe=(W,Y)=>{W({confirm:!0}),Y.filterOptionsInputValue="",Y.filterCheckboxGroupValue=[]},We=()=>{},de=W=>{const Y=W.dataIndex;if(typeof Y=="string"){let Q=t.unref(g)[Y];const re=t.unref(W.filterOptionsInputValue).trim();return Array.isArray(Q)?(Q=Q.filter(se=>typeof se.label=="string"?se.label.toLowerCase().includes(re.toLowerCase()):!0),Q):[]}return[]},xe=async()=>{var Ee,Ve;const W="EXPORT_KEY";he.message.loading({key:W,content:"正在导出...",duration:0});let Y=[];if(e.dataType==="static")Y=e.data;else if(e.dataType==="request"){const ot={layer:"1"};t.unref(D)&&(ot.orderCondition=t.unref(D));const kt=await L(ot);Y=((Ve=(Ee=kt==null?void 0:kt.data)==null?void 0:Ee.data)==null?void 0:Ve.rows)||{}}const Q=t.unref(m),re=[],se=[];Q==null||Q.forEach(ot=>{re.push(ot.dataIndex),se.push(ot.title)});const le=Y.map(ot=>Oe.pick(ot,re)),oe=on.utils.book_new(),Ce=on.utils.aoa_to_sheet([se]),Be=on.utils.sheet_add_json(Ce,le,{skipHeader:!0,origin:"A2"});on.utils.book_append_sheet(oe,Be,"sheet"),on.writeFile(oe,"表格数据.xlsx"),he.message.success({key:W,content:"导出成功"})},fe=(W,Y=2)=>{const Q=+W*100;return isNaN(Q)||Q<=0?0:Q>=100?100:Q.toFixed(Y)};Fe(e,{resetRecord:J,refreshData:G,exportTableData:xe});const Ge=(W,Y)=>{let Q=null;return e.stripedShow&&(Q=Y%2===1?"table-striped":null),Q},ct=t.computed(()=>{let W=0;const{height:Y,isPageBottom:Q}=e;return Q&&Y&&(W=parseFloat(Y)-f()),W?W+"px":"100%"}),tt=t.computed(()=>{let W="#071655";return e.headerBackgroundColor&&(W="transparent"),W}),dt=t.computed(()=>{let W="#071655";return(e.cellBackgroundColor||e.stripedShow&&e.stripedColor)&&(W="transparent"),W}),Ye=t.computed(()=>parseFloat(e.fontSize)+16),et=t.computed(()=>{let W="";const{paginationColor:Y,paginationBgColor:Q,activePaginationColor:re,activePaginationBgColor:se,hoverBackgroundColor:le}=e;return Y&&(W+="p-color "),Q&&(W+="p-bg-color "),re&&(W+="active-p-color "),se&&(W+="active-p-bg-color "),le&&(W+="hover-bg-color "),W}),$e=(W,Y)=>{const{conditionCode:Q}=W;return hn(Q,{value:Y})};return{x:d,y:c,style:s,customRow:te,pagination:O,formatFn:F,contrastClass:b,tableChange:k,summaryList:ee,loading:n,onTouchHrefEvent:Se,handleHref:ie,handleHrefTarget:ue,useRowIndex:K,tableColumns:m,tableDataSource:l,useFilterOptions:de,useSetSelectedKeys:ke,onResetFilter:qe,onSearchFilterOptions:We,exportTableData:xe,handleProgressText:fe,pageSizeVisible:r,pageSize:I,tableRef:i,rowClassName:Ge,tableHeight:ct,tableHeaderBgColor:tt,tableBodyBgColor:dt,getChgStyle:E,chgBoxStyle:_,getChgBoxImgStyle:q,getChgBoxImgSrc:N,seqIcon1:yu,seqIcon2:xu,seqIcon3:pu,iconSize:Ye,containerClass:et,getCellStyle:(W,Y)=>{const{overflow:Q,conditionCode:re,attribute:se}=W,le={};return Q==="ellipsis"&&(le.overflow="hidden",le.textOverflow="ellipsis"),re&&(se!=null&&se.color)&&$e(W,Y)&&(le.color=se.color),se!=null&&se.icon&&(W==null?void 0:W.cellAlign)==="right"&&(le.display="flex",le.alignItems="center",le.justifyContent="flex-end"),le},isMatchCondition:$e,getAttrImgSrc:W=>{const{attribute:Y}=W;let Q="";return Y!=null&&Y.icon&&(Q=pt(Y.icon)),Q},getAttrImgStyle:W=>{let Y={};return(W==null?void 0:W.cellAlign)==="right"?Y={marginRight:"5px"}:Y={position:"absolute",marginLeft:"5px"},{width:"auto",height:parseFloat(e.fontSize)+6+"px",...Y}},getCellText:(W,Y)=>W||W===0?W:Y==null?void 0:Y.defaultVal}}}),Zl=()=>{t.useCssVars(e=>({e4452790:e.stripedColor,cfc76e22:e.tableHeaderBgColor,"6d62afba":e.tableBodyBgColor,"8675ef50":e.paginationBgColor,c1652fc6:e.paginationColor,b696821c:e.activePaginationBgColor,"15e40592":e.activePaginationColor,"271e1645":e.hoverBackgroundColor}))},Ql=Ya.setup;Ya.setup=Ql?(e,o)=>(Zl(),Ql(e,o)):Zl;const T1="",B1="",bu=e=>(t.pushScopeId("data-v-a207df51"),e=e(),t.popScopeId(),e),vu=["id"],Su={key:0,class:"table-tool"},Cu=t.createTextVNode("导出数据"),wu=t.createTextVNode(" 搜索 "),Au=t.createTextVNode(" 重置 "),ku=["src","width","height"],Tu=["src","width","height"],Bu=["src","width","height"],Eu={key:1},Du={key:1,class:"action-list"},Iu=["href","target","onClick"],Ru={key:2,class:"progress-cell"},Lu=["src"],Nu=["title"],_u=["title"],Ou=["src"],Fu=["title"],Mu=["src"],zu=["src"],Pu={class:"ant-pagination-options-quick-jumper"},qu=bu(()=>t.createElementVNode("span",null,"条 / 页",-1));function Vu(e,o,n,a,i,r){const s=t.resolveComponent("a-button"),l=t.resolveComponent("a-input"),d=t.resolveComponent("a-checkbox-group"),c=t.resolveComponent("a-table-summary-cell"),f=t.resolveComponent("a-table-summary-row"),x=t.resolveComponent("a-table-summary"),u=t.resolveComponent("a-table"),m=t.resolveComponent("skeleton");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["ecan-table",e.containerClass]),id:"ecanTable-"+e.id,style:t.normalizeStyle(e.style)},[t.createVNode(m,{loading:e.loading},{default:t.withCtx(()=>{var y;return[e.isUseExport?(t.openBlock(),t.createElementBlock("div",Su,[t.createVNode(s,{class:"export-button",onClick:e.exportTableData},{default:t.withCtx(()=>[Cu]),_:1},8,["onClick"])])):t.createCommentVNode("",!0),t.createVNode(u,{ref:"tableRef",class:"table",style:t.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}:{},pagination:e.pagination,"row-class-name":e.rowClassName,"show-header":!e.hideTableHeader,onChange:e.tableChange},{customFilterDropdown:t.withCtx(({column:h,selectedKeys:A,setSelectedKeys:I,confirm:v,clearFilters:S})=>[t.createElementVNode("div",{class:"ecan-table-filter",style:t.normalizeStyle({height:e.filterDropdownHeight})},[t.createVNode(l,{value:h.filterOptionsInputValue,"onUpdate:value":C=>h.filterOptionsInputValue=C,placeholder:"请输入关键字",class:"filter-input",onChange:e.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),t.createVNode(d,{value:h.filterCheckboxGroupValue,"onUpdate:value":C=>h.filterCheckboxGroupValue=C,class:"filter-checkbox",options:e.useFilterOptions(h),onChange:C=>e.useSetSelectedKeys(I,h)},null,8,["value","onUpdate:value","options","onChange"]),t.createElementVNode("div",null,[t.createVNode(s,{type:"primary",size:"small",style:{width:"90px","margin-right":"8px"},onClick:()=>v()},{default:t.withCtx(()=>[wu]),_:2},1032,["onClick"]),t.createVNode(s,{size:"small",style:{width:"90px"},onClick:t.withModifiers(C=>e.onResetFilter(S,h),["stop"])},{default:t.withCtx(()=>[Au]),_:2},1032,["onClick"])])],4)]),bodyCell:t.withCtx(({column:h,index:A,text:I,record:v})=>{var S,C,B,g,R,p;return[h.dataIndex==="SEQ"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.seqIcon?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[A===0?(t.openBlock(),t.createElementBlock("img",{key:0,class:"seq-icon",src:e.seqIcon1,width:e.iconSize,height:e.iconSize},null,8,ku)):A===1?(t.openBlock(),t.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon2,width:e.iconSize,height:e.iconSize},null,8,Tu)):A>=2?(t.openBlock(),t.createElementBlock("img",{key:2,class:"seq-icon",src:e.seqIcon3,width:e.iconSize,height:e.iconSize},null,8,Bu)):t.createCommentVNode("",!0),t.createElementVNode("span",{class:"seq-icon seq-text",style:t.normalizeStyle({fontSize:e.fontSize})},t.toDisplayString(A+1),5)],64)):(t.openBlock(),t.createElementBlock("span",Eu,t.toDisplayString(A+1),1))],64)):h.dataIndex==="ACTION"?(t.openBlock(),t.createElementBlock("div",Du,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.actionList,(D,w)=>(t.openBlock(),t.createElementBlock("div",{class:"action",key:w},[t.createElementVNode("a",{href:e.handleHref(D.href,v),target:e.handleHrefTarget(D.target),style:t.normalizeStyle({color:D.color,fontSize:e.fontSize,fontWeight:e.fontWeight}),onClick:L=>e.onTouchHrefEvent(D.target,e.handleHref(D.href,v))},t.toDisplayString(D.title),13,Iu)]))),128))])):h.format==="progress"?(t.openBlock(),t.createElementBlock("div",Ru,[t.createElementVNode("div",{class:"progress",style:t.normalizeStyle({background:h.progressColor||"#1890ff",height:h.progressWidth||"18px",width:`${e.handleProgressText(I,h.progressTextDecimalPlaces)}%`})},null,4),t.createElementVNode("div",{class:"progress-text",style:t.normalizeStyle({color:+e.handleProgressText(I)<100?h.progressTextColor||"#333":h.progressFinishedTextColor||"#fff"})},t.toDisplayString(e.handleProgressText(I,h.progressTextDecimalPlaces))+"% ",5)])):(t.openBlock(),t.createElementBlock("div",{key:3,style:t.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight,...e.getCellStyle(h,I)})},[e.isMatchCondition(h,I)&&(h==null?void 0:h.cellAlign)==="right"&&((S=h==null?void 0:h.attribute)!=null&&S.icon)?(t.openBlock(),t.createElementBlock("img",{key:0,style:t.normalizeStyle(e.getAttrImgStyle(h)),src:e.getAttrImgSrc(h)},null,12,Lu)):t.createCommentVNode("",!0),h.format==="contrast"?(t.openBlock(),t.createElementBlock("span",{key:1,title:((C=h==null?void 0:h.customFormatter)==null?void 0:C.split("{value}")[0])||""},t.toDisplayString(((B=h==null?void 0:h.customFormatter)==null?void 0:B.split("{value}")[0])||""),9,Nu)):t.createCommentVNode("",!0),t.createElementVNode("span",{class:t.normalizeClass([e.contrastClass(h.format)]),style:t.normalizeStyle(e.getChgStyle({...h,text:I})),title:h.format!=null?e.formatFn(I,h):I},[h.format==="contrast"?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle(e.chgBoxStyle)},[t.createElementVNode("img",{style:t.normalizeStyle(e.getChgBoxImgStyle({...h,text:I})),src:e.getChgBoxImgSrc(I)},null,12,Ou)],4)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(h.format!=null?e.formatFn(I,h):e.getCellText(I,h)),1)],14,_u),h.format==="contrast"?(t.openBlock(),t.createElementBlock("span",{key:2,title:((g=h==null?void 0:h.customFormatter)==null?void 0:g.split("{value}")[1])||""},t.toDisplayString(((R=h==null?void 0:h.customFormatter)==null?void 0:R.split("{value}")[1])||""),9,Fu)):t.createCommentVNode("",!0),e.isMatchCondition(h,I)&&(h==null?void 0:h.cellAlign)!=="right"&&((p=h==null?void 0:h.attribute)!=null&&p.icon)?(t.openBlock(),t.createElementBlock("img",{key:3,style:t.normalizeStyle(e.getAttrImgStyle(h)),src:e.getAttrImgSrc(h)},null,12,Mu)):t.createCommentVNode("",!0)],4))]}),summary:t.withCtx(()=>[e.summaryList.length>0?(t.openBlock(),t.createBlock(x,{key:0,fixed:e.isSummaryFixed},{default:t.withCtx(()=>[t.createVNode(f,null,{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.summaryList,(h,A)=>(t.openBlock(),t.createBlock(c,{key:A,index:A,style:t.normalizeStyle({backgroundColor:e.cellBackgroundColor,textAlign:h.cellAlign||"center",color:e.cellFontColor,borderBottomColor:e.borderColor})},{default:t.withCtx(()=>[t.createElementVNode("span",{class:t.normalizeClass([e.contrastClass(h.format)]),style:t.normalizeStyle({...e.getChgStyle({...h,text:h.total}),fontSize:e.fontSize,fontWeight:e.fontWeight})},[h.format==="contrast"?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle(e.chgBoxStyle)},[t.createElementVNode("img",{style:t.normalizeStyle(e.getChgBoxImgStyle({...h,text:h.total})),src:e.getChgBoxImgSrc(h.total)},null,12,zu)],4)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString((h.format!=null||h.format!=="")&&e.formatFn(h.total,h)),1)],6)]),_:2},1032,["index","style"]))),128))]),_:1})]),_:1},8,["fixed"])):t.createCommentVNode("",!0)]),_:1},8,["style","columns","data-source","bordered","size","customRow","scroll","pagination","row-class-name","show-header","onChange"]),e.paginationShow?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(y=e.tableDataSource)!=null&&y.length&&!e.simple&&e.pageSizeShow&&e.pageSizeVisible?(t.openBlock(),t.createBlock(t.Teleport,{key:0,to:"#ecanTable-"+e.id+" .ant-pagination"},[t.createElementVNode("div",Pu,[t.withDirectives(t.createElementVNode("input",{type:"text","onUpdate:modelValue":o[0]||(o[0]=h=>e.pageSize=h)},null,512),[[t.vModelText,e.pageSize]]),qu])],8,["to"])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)]}),_:1},8,["loading"])],14,vu)}const Jl=Ae(ve(Ya,[["render",Vu],["__scopeId","data-v-a207df51"]])),Ka={...Re,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"},Za=Te(Ka),Xl=["click"];it.use([Ft.CanvasRenderer,Ct.MapChart,Ct.ScatterChart,De.VisualMapComponent,De.TooltipComponent,De.GraphicComponent]);const Hu=t.defineComponent({name:"EcanMap",components:{Echarts:Tt},props:{...Za},setup(e){const o=je({...e.tooltipRequestData,requestHeaders:{}}),n=t.ref(),a=t.ref(""),i=t.ref(""),r=Ie(e,["backgroundImage"]),s=t.ref(),l=t.computed(()=>pt(e.geoBackgroundImage)),d=t.computed(()=>pt(e.backgroundImage)),c=t.computed(()=>e.geoBackgroundImage?{image:t.unref(s),repeat:e.geoBackgroundImageRepeat}:e.geoItemStyleAreaColor),f=t.computed(()=>{const O=e.symbolImage;return e.symbolImage?"image://"+pt(O):"circle"}),x=O=>{let T=e.tooltipFormatter;const F=T.match(/\{(.+?)\}/g);if(F==null||F.length===0)return T;for(let b=0;b<F.length;b++){const E=F[b];let _=E.slice(1,-1).trim();const q=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,N=_.match(q);for(let V=0;V<N.length;V++){const z=N[V],P=O[z];P!=null&&(_=_.replace(z,P))}T=T.replace(E,_)}return T.split(`
|
|
120
|
-
`)},u=t.ref(!1),m=t.ref("");let y=new AbortController;const h=(O,T)=>{const F=y.signal;u.value=!0,a.value=O,o({name:O,signal:F}).then(b=>{var E,_;if(b){const q=((_=(E=b==null?void 0:b.data)==null?void 0:E.data)==null?void 0:_.rows)||[];let N="";for(const V of q){const z=x(V)||[];if(z!=null&&z.length)for(const P of z)N+=`<div style="word-break: break-all;white-space: normal;">${P}</div>`}N=`<div style="max-width:200px;">${N}</div>`,i.value=N,T(t.unref(m),N)}else F.aborted?i.value="Loading":i.value=O,T(t.unref(m),i.value);u.value=!1})},A=t.computed(()=>{const O=e.geoCenter;let T;return typeof O=="string"&&O!==""&&(T=O.split(",")),{tooltip:{show:!0},graphic:[{type:"image",style:{width:parseFloat(e.width),height:parseFloat(e.height),image:t.unref(d)},top:"center"}],geo:{zoom:e.geoZoom,roam:e.geoRoam,center:T,map:`map-${e.id}`,tooltip:{show:e.tooltipShow,trigger:"item",backgroundColor:e.tooltipBackgroundColor,borderColor:"transparent",textStyle:{color:e.tooltipTextStyleColor},formatter:(F,b,E)=>{m.value=b;const{name:_=""}=F,{requestUrl:q}=e.tooltipRequestData;if(!q)return _;if(t.unref(u))t.unref(a)!==_&&(y.abort(),y=new AbortController);else{if(t.unref(a)===_)return t.unref(i);h(_,E)}return"Loading"}},label:{show:e.geoLabelShow,color:e.geoLabelColor,fontSize:e.geoLabelFontSize},itemStyle:{areaColor:t.unref(c),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}}},series:[{type:"scatter",coordinateSystem:"geo",itemStyle:{color:e.itemStyleColor},symbol:t.unref(f),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:e.data}]}}),I=t.ref(!1),v=async()=>{var F;I.value=!1;const O=e.mapJson,T=`map-${e.id}`;if(O!=null&&O.path){const b=await vt(((F=window==null?void 0:window.config)==null?void 0:F.uploadPath)+O.path);it.registerMap(T,(b==null?void 0:b.data)||{})}else it.registerMap(T,{});I.value=!0};t.watch(()=>e.mapJson,()=>{v()},{immediate:!0,deep:!0});const S=async O=>{var b,E;const T=((E=(b=O==null?void 0:O.data)==null?void 0:b.data)==null?void 0:E.rows)||{},F=`map-${e.id}`;if(T!=null&&T.path){const _=await vt(T.path);it.registerMap(F,(_==null?void 0:_.data)||{})}else it.registerMap(F,{})},C=je(e,S),B=async()=>{if(e.dataType==="request"){I.value=!1;try{const O=await C();S(O)}catch(O){console.error(O)}finally{I.value=!0}}},g=()=>{switch(e.dataType){case"request":B();break}},{getGlobalModel:R,setGlobalModel:p}=t.inject(Le,{getGlobalModel:O=>{},setGlobalModel:(O,T)=>{}}),w=Ne(e)("click",()=>{const O=R(e.id);p(e.id,{...O,RECORD:t.unref(n)})});Fe(e,{refreshData:g});const{setRequest:L}=t.inject(He,{setRequest:O=>{}});return typeof L=="function"&&L({id:e.id,requestFn:g,sortNum:e.requestSort}),{option:A,style:r,isLoadedData:I,geoBackgroundImageRef:s,myGeoBackgroundImage:l,customClick:()=>{t.unref(n)&&w()},onMouseOver:(O={})=>{O.componentType==="geo"&&O.region?n.value=O.region:n.value=null}}}}),D1="",ju=["src"];function Wu(e,o,n,a,i,r){const s=t.resolveComponent("echarts");return t.openBlock(),t.createElementBlock("div",{class:"ecan-map",style:t.normalizeStyle(e.style)},[e.isLoadedData?(t.openBlock(),t.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"])):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("img",{ref:"geoBackgroundImageRef",src:e.myGeoBackgroundImage},null,8,ju),[[t.vShow,!1]])],4)}const es=Ae(ve(Hu,[["render",Wu],["__scopeId","data-v-a049dc3f"]])),Qa={...Re,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"},Ja=Te(Qa),ts=["selectChange","refreshData"],Gu=t.defineComponent({name:"EcanDataSelect",components:{ASelect:he.Select,ASelectOption:he.SelectOption},props:{...Ja},setup(e,{expose:o}){const n=Ie(e),a=()=>document.getElementById("ProviderConfig")||document.body,i=t.ref(e.data||[]),r=t.ref(),s=t.computed({get:()=>{var O;const{mode:k}=e;return(O=t.unref(i))!=null&&O.length?r.value:k==="multiple"||k==="tags"||k==="combobox"?[]:""},set:k=>{r.value=k}}),{getGlobalModel:l,setGlobalModel:d,getRecordValueByKeyName:c}=t.inject(Le,{getGlobalModel:k=>{},setGlobalModel:(k,O)=>{},getRecordValueByKeyName:k=>{}}),f=e.dataFieldNames;t.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,i.value],()=>{const{mode:k,selectFirstOption:O,value:T}=e,F=c(T),b=f.value;if(k==="multiple"||k==="tags"||k==="combobox"){if(F)r.value=F.split(",");else if(O){const E=t.unref(i)[0];r.value=E?[E[b]]:[]}}else if(F)r.value=F;else if(O){const E=t.unref(i)[0];r.value=E?E[b]:""}},{immediate:!0});const x=(k,O)=>{const T=f.label,F=f.value;let b;const E=O[T],_=O[F];return E!=null?b=E:_!=null&&(b=_),(b==null?void 0:b.toLowerCase().indexOf(k==null?void 0:k.toLowerCase()))>=0},u=k=>{const{label:O,value:T,options:F}=e.dataFieldNames;if(F&&Array.isArray(k))if(k.some(b=>F in b)){const b={},E=[];k.forEach(_=>{b[_[F]]||(b[_[F]]=[]),b[_[F]].push({[O]:_[O],[T]:_[T]})});for(const _ in b)E.push({[O]:_,[F]:b[_]});return E}else return k;else if(!F)return k},m=t.ref(!1),y=k=>{var O,T;if(i.value=u(((T=(O=k==null?void 0:k.data)==null?void 0:O.data)==null?void 0:T.rows)||[]),e.selectFirstOption){let F=t.unref(i)[0];if(f.options){const b=F[f.options];b&&b.length&&(F=b[0])}r.value=F[f.value]}},h=je(e,y),A=async()=>{if(e.dataType==="request"){m.value=!0;try{const k=await h();y(k)}catch(k){console.error(k)}finally{m.value=!1}}},I=t.computed(()=>{let k=r.value;if(e.valueType==="label"&&t.unref(r)&&t.unref(i)){const O=f.label,T=f.value;if(e.mode==="multiple")k=t.unref(i).filter(F=>t.unref(r).includes(F[T])).map(F=>F[O]);else{const F=t.unref(i).find(b=>t.unref(r)===b[T]);F&&(k=F[O])}}return k}),v=t.ref([]),S=t.computed(()=>{const k={};if(e.mode!=="multiple"){const O=t.unref(v).find(T=>T.value===t.unref(r));O&&(k.itemCodes=O.item_codes)}return k}),C=t.computed(()=>{const{value:k,label:O}=f,T=t.unref(i).find(F=>F[k]===t.unref(s));return T?{label:T[O],value:T[k]}:{}});d(e.id,{type:e.type,value:I,...t.unref(S),recordData:t.unref(C)});const g=Ne(e)("selectChange",()=>{const k=e.id,O=l(k);d(k,{...O,...t.unref(S),RECORD:I,recordData:t.unref(C)})}),R=(k=[])=>{if(i.value=u(k),e.selectFirstOption){let O=t.unref(i)[0];if(f.options){const T=O[f.options];T&&T.length&&(O=T[0])}r.value=O[f.value]}d(e.id,{type:e.type,value:I,...t.unref(S),recordData:t.unref(C)})},p=k=>{var b;const{data:O}=(k==null?void 0:k.data)||{},T=f.label,F=f.value;if(O){const E=((b=k==null?void 0:k.data)==null?void 0:b.data)??[];v.value=E;const _=E.map(V=>({[T]:V.label,[F]:V.value})),{id:q}=e,N=l(q);d(q,{...N,...t.unref(S)}),R(_)}else R([])},D=Xe(e,p),w=async()=>{try{m.value=!0;const k=await D();p(k)}catch(k){console.error(k)}finally{m.value=!1}},L=()=>{switch(e.dataType){case"indicator":{w();break}case"request":A();break}};Fe(e,{selectChange:g,refreshData:L});const{setRequest:M}=t.inject(He,{setRequest:({id:k,sortNum:O,requestFn:T})=>{}});return typeof M=="function"&&M({id:e.id,requestFn:L,sortNum:e.requestSort}),o({refreshData:L}),{style:n,getPopupContainer:a,myValue:r,selectChange:g,options:i,filterOption:x,loading:m,resultValue:s}}}),R1="",L1="";function Uu(e,o,n,a,i,r){const s=t.resolveComponent("a-select-option"),l=t.resolveComponent("a-select");return t.openBlock(),t.createElementBlock("div",{class:"ecan-select",style:t.normalizeStyle(e.style)},[t.createVNode(l,{class:"select",value:e.resultValue,"onUpdate:value":o[0]||(o[0]=d=>e.resultValue=d),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:t.normalizeStyle({fontSize:e.optionFontSize})},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,(d,c)=>(t.openBlock(),t.createBlock(s,{key:c,value:d.value,label:d.label,style:t.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 ns=Ae(ve(Gu,[["render",Uu],["__scopeId","data-v-703a9095"]])),os=Object.freeze(Object.defineProperty({__proto__:null,EcanBar:Dl,EcanBorder:zl,EcanButton:ul,EcanCheckbox:gl,EcanCirculate:jl,EcanComboGraph:_l,EcanCounter:Xr,EcanCustomGraph:Ll,EcanDataSelect:ns,EcanDatePicker:il,EcanIframe:Yl,EcanImage:$l,EcanInput:tl,EcanLine:Bl,EcanList:Kr,EcanMap:es,EcanModal:Nt,EcanPageConfig:Pr,EcanPie:kl,EcanProportion:Qr,EcanProviderConfig:qr,EcanRadar:Fl,EcanRadio:vl,EcanRangePicker:dl,EcanScatter:Rl,EcanScrollText:Gr,EcanSelect:yl,EcanTable:Jl,EcanTabs:ql,EcanText:Wr,EcanTimeDisplay:$r,EcanTreeSelect:pl,barComponentProps:Ta,barEvents:El,barProps:ka,borderComponentProps:Fa,borderEvents:Ml,borderProps:Oa,buttonComponentProps:ca,buttonEvents:fl,buttonProps:sa,checkboxComponentProps:fa,checkboxEvents:hl,checkboxProps:da,circulateComponentProps:qa,circulateEvents:Vl,circulateProps:Pa,comboGraphComponentProps:La,comboGraphEvents:Nl,comboGraphProps:Ra,counterComponentProps:Xo,counterEvents:Jr,counterProps:Jo,customGraphComponentProps:Ia,customGraphProps:Da,dataSelectComponentProps:Ja,dataSelectEvents:ts,dataSelectProps:Qa,datePickerComponentProps:oa,datePickerEvents:nl,datePickerProps:na,iframeComponentProps:Ga,iframeProps:Wa,imageComponentProps:Ha,imageEvents:Wl,imageProps:Va,inputComponentProps:ta,inputEvents:el,inputProps:ea,lineComponentProps:Aa,lineEvents:Tl,lineProps:wa,listComponentProps:Ko,listEvents:Yr,listProps:Yo,mapComponentProps:Za,mapEvents:Xl,mapProps:Ka,modalComponentProps:Sa,modalEvents:Cl,modalProps:va,pageConfig:Gn,pageConfigComponentProps:Un,pieComponentProps:ba,pieEvents:Sl,pieProps:pa,proportionComponentProps:Qo,proportionEvents:Zr,proportionProps:Zo,providerConfig:Po,providerConfigComponentProps:qo,radarComponentProps:_a,radarEvents:Ol,radarProps:Na,radioComponentProps:xa,radioEvents:bl,radioProps:ya,rangePickerComponentProps:ra,rangePickerEvents:rl,rangePickerProps:ia,scatterComponentProps:Ea,scatterEvents:Il,scatterProps:Ba,selectComponentProps:ha,selectEvents:ml,selectProps:ua,tableComponentProps:$a,tableEvents:Kl,tableProps:Ua,tabsComponentProps:za,tabsEvents:Pl,tabsProps:Ma,textComponentProps:Ho,textEvents:Vr,textProps:Vo,timeDisplayComponentProps:$o,timeDisplayEvents:Ur,timeDisplayProps:Uo,treeSelectComponentProps:ma,treeSelectEvents:xl,treeSelectProps:ga},Symbol.toStringTag,{value:"Module"})),$u={install:e=>{Object.keys(os).forEach(o=>{const n=os[o];n.install&&e.use(n)})}};$.EcanBar=Dl,$.EcanBorder=zl,$.EcanButton=ul,$.EcanCheckbox=gl,$.EcanCirculate=jl,$.EcanComboGraph=_l,$.EcanCounter=Xr,$.EcanCustomGraph=Ll,$.EcanDataSelect=ns,$.EcanDatePicker=il,$.EcanIframe=Yl,$.EcanImage=$l,$.EcanInput=tl,$.EcanLine=Bl,$.EcanList=Kr,$.EcanMap=es,$.EcanModal=Nt,$.EcanPageConfig=Pr,$.EcanPie=kl,$.EcanProportion=Qr,$.EcanProviderConfig=qr,$.EcanRadar=Fl,$.EcanRadio=vl,$.EcanRangePicker=dl,$.EcanScatter=Rl,$.EcanScrollText=Gr,$.EcanSelect=yl,$.EcanTable=Jl,$.EcanTabs=ql,$.EcanText=Wr,$.EcanTimeDisplay=$r,$.EcanTreeSelect=pl,$.barComponentProps=Ta,$.barEvents=El,$.barProps=ka,$.borderComponentProps=Fa,$.borderEvents=Ml,$.borderProps=Oa,$.buttonComponentProps=ca,$.buttonEvents=fl,$.buttonProps=sa,$.checkboxComponentProps=fa,$.checkboxEvents=hl,$.checkboxProps=da,$.circulateComponentProps=qa,$.circulateEvents=Vl,$.circulateProps=Pa,$.comboGraphComponentProps=La,$.comboGraphEvents=Nl,$.comboGraphProps=Ra,$.compatibleMobileList=Al,$.counterComponentProps=Xo,$.counterEvents=Jr,$.counterProps=Jo,$.customGraphComponentProps=Ia,$.customGraphProps=Da,$.dataSelectComponentProps=Ja,$.dataSelectEvents=ts,$.dataSelectProps=Qa,$.datePickerComponentProps=oa,$.datePickerEvents=nl,$.datePickerProps=na,$.default=$u,$.handleScrollCombinations=wl,$.iframeComponentProps=Ga,$.iframeProps=Wa,$.imageComponentProps=Ha,$.imageEvents=Wl,$.imageProps=Va,$.inputComponentProps=ta,$.inputEvents=el,$.inputProps=ea,$.lineComponentProps=Aa,$.lineEvents=Tl,$.lineProps=wa,$.listComponentProps=Ko,$.listEvents=Yr,$.listProps=Yo,$.mapComponentProps=Za,$.mapEvents=Xl,$.mapProps=Ka,$.modalComponentProps=Sa,$.modalEvents=Cl,$.modalProps=va,$.moveToComponentList=Ca,$.pageConfig=Gn,$.pageConfigComponentProps=Un,$.pieComponentProps=ba,$.pieEvents=Sl,$.pieProps=pa,$.proportionComponentProps=Qo,$.proportionEvents=Zr,$.proportionProps=Zo,$.providerConfig=Po,$.providerConfigComponentProps=qo,$.radarComponentProps=_a,$.radarEvents=Ol,$.radarProps=Na,$.radioComponentProps=xa,$.radioEvents=bl,$.radioProps=ya,$.rangePickerComponentProps=ra,$.rangePickerEvents=rl,$.rangePickerProps=ia,$.scatterComponentProps=Ea,$.scatterEvents=Il,$.scatterProps=Ba,$.selectComponentProps=ha,$.selectEvents=ml,$.selectProps=ua,$.tableComponentProps=$a,$.tableEvents=Kl,$.tableProps=Ua,$.tabsComponentProps=za,$.tabsEvents=Pl,$.tabsProps=Ma,$.textComponentProps=Ho,$.textEvents=Vr,$.textProps=Vo,$.timeDisplayComponentProps=$o,$.timeDisplayEvents=Ur,$.timeDisplayProps=Uo,$.treeSelectComponentProps=ma,$.treeSelectEvents=xl,$.treeSelectProps=ga,Object.defineProperties($,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
118
|
+
<span style="color: ${X||e.color};${vue.unref(g)}">${e.minusSignShow?"-":""}${Math.abs(+H).toFixed(2)}%</span>
|
|
119
|
+
</span>`)}else e.format==="percent"?(H=+H,isNaN(H)||(H=(H*100).toFixed(2),b=b.replace(G,`<span class="${I}" style="color:${_(H)||e.variableColor};font-size:${vue.unref(o)};${vue.unref(g)}">${H}%</span>`))):e.format==="money"?(H=+H,isNaN(H)||(H=formatMoney(H),b=b.replace(G,`<span class="${I}" style="color:${_(H)||e.variableColor};font-size:${vue.unref(o)};${vue.unref(g)}">${H}</span>`))):Z==="thousands"?(H=+H,isNaN(H)||(H=formatThousands(H),b=b.replace(G,`<span class="${I}" style="color:${_(H)||e.variableColor};font-size:${vue.unref(o)};${vue.unref(g)}">${H}</span>`))):b=b.replace(G,`<span class="${I}" style="color:${_(H)||e.variableColor};font-size:${vue.unref(o)};${vue.unref(g)}">${H}</span>`)}}if(R||(R=`<span class="${I}" style="color: ${_(b)};${vue.unref(g)}">${b}</span>`),e.unitShow&&e.unitText){const{unitTop:N,unitLeft:G}=e;let Y="position:relative;";N&&(Y+=`top:${N};`),G&&(Y+=`margin-left:${G};`),R+=`<span style='color:${e.unitColor};font-size:${e.unitFontSize};font-weight:${e.unitFontWeight};${Y};${vue.unref(g)}'>${e.unitText}</span>`}return e.exceedConfig&&(R=`<span class="${I}" style="display: inline-block;color: ${_(R)};">${R}</span>`),R.includes("span")||(R=`<span class="${I}" style="color: ${_(R)};">${R}</span>`),R});function _(M){let T="",w=!1;const{targetValue:b,targetShow:A,notExpectColor:R}=e;if(A){switch(e.targetRule){case"equal":M!==b&&(w=!0);break;case"greater":M<=b&&(w=!0);break;case"greater_equal":M<b&&(w=!0);break;case"less":M>=b&&(w=!0);break;case"less_equal":M>b&&(w=!0);break}w&&(T=R)}return T}const{pageMode:x}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",requestList:[]}),m=useRequestData(e,M=>{var T;l(((T=M==null?void 0:M.data)==null?void 0:T.data)||{})}),p=vue.ref(!1),y=async()=>{var M;try{p.value=!0;const T=await m();l(((M=T==null?void 0:T.data)==null?void 0:M.data)||{})}catch(T){console.error(T)}finally{p.value=!1}},E=M=>{const T=e.id,w=c(T);u(T,{...w,value:M||"",RECORD:M||""})},S=()=>{E("")},P=M=>{var w,b;const{data:T}=(M==null?void 0:M.data)||{};if(T){n.value=!1;const{columns:A=[],rows:R=[]}=((w=M==null?void 0:M.data)==null?void 0:w.data)??{},{graphicConfig:I}=e;let q={};if(A.length>0)if((b=I==null?void 0:I.dimensionList)!=null&&b.length){const N=A[0];N&&(R!=null&&R.length)&&(q={value:R[0][N]})}else{const N=A.find(G=>!!G);N&&(q={value:isNaN(R[N])?0:R[N]||0})}E(q==null?void 0:q.value),l(q)}else n.value=!0,E("NaN"),l({value:"NaN"})},k=useIndicatorData(e,P),F=async()=>{try{p.value=!0;const M=await k();P(M)}catch(M){console.error(M)}finally{p.value=!1,f(e.id,!0)}},B=()=>{switch(e.dataType){case"indicator":F();break;case"request":{const{openCustomRequestData:M,customRequestName:T,customRequestField:w}=e;M||M===void 0?y():C(T,b=>{b&&l({[w]:b[w]})});break}}},{setRequest:L}=vue.inject(REQUEST_MODEL,{setRequest:({id:M,sortNum:T,requestFn:w})=>{}});typeof L=="function"&&L({id:e.id,requestFn:B,sortNum:e.requestSort}),useOnEvent(e,{refreshData:B,resetRecord:S}),r({refreshData:B});const O=useEmitEvent(e),D=O("click",()=>{var I;const M=document.getElementsByClassName(`ecan-text_${e.id}`);if(M!=null&&M.length&&E(M[0].innerText),setTimeout(()=>{E("")},0),!e.linkPage&&!e.href)return;const T=e.linkPage||"",w=usePageUrl(vue.unref(x),T),b=e.href;let A=b||w;A=useVariablesInText(A);const R=e.target;if(R)if(R!=="event"){if((I=e.transParams)!=null&&I.length){A.includes("?")?A+="&":A+="?";const q=[];for(const N of e.transParams)q.push(`${N.keyName}=${h(String(N.fieldName))}`);A+=q.join("&")}window.open(A,"_"+R)}else window.parent.postMessage({type:"openPage",url:b},"*")}),V=O("valueChange",()=>{});return vue.watch(()=>d.value,(M,T)=>{M!==T&&V()}),{style:i,myText:d,loading:p,click:D,textIndent:s,vFontSize:o,gradientStyle:v}}}),__injectCSSVars__$4=()=>{vue.useCssVars(e=>({"2919b577":e.vFontSize,bb85f730:e.textIndent,"36e7efc0":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_1ecc1ea2_lang="",Text_vue_vue_type_style_index_1_lang="",_hoisted_1$f=["innerHTML"];function _sfc_render$u(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}),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$u],["__scopeId","data-v-1ecc1ea2"]]),EcanText=withInstall(Text),_sfc_main$p=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$t(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$p,[["render",_sfc_render$t],["__scopeId","data-v-4dd9c03e"]]),EcanScrollText=withInstall(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$o=vue.defineComponent({name:"EcanTimeDisplay",props:{...timeDisplayComponentProps},setup(e){const r=usePickComponentStyle(e),n=()=>{const{format:u,operate:h}=e;let C=dayjs();if(h){const{type:f,value:g,mode:v}=h;switch(f){case"add":C=C.add(g,v);break;case"minus":C=C.subtract(g,v)}}return C.format(u)},i=vue.ref();vue.watch(()=>[e.operate,e.format],()=>{i.value=n()},{immediate:!0,deep:!0}),vue.watch(()=>e.updateInterval,()=>{c()},{deep:!0});let a=null;const o=()=>{clearInterval(a),a=null},l=useEmitEvent(e)("timeChange",()=>{}),c=()=>{a&&o();let u=1e3;const{value:h,mode:C}=e.updateInterval||{};h&&(u=u*h);const f={second:1,minute:60,hour:60*60,day:24*60*60};C&&(u=u*f[C]),a=setInterval(()=>{i.value=n(),l()},u)};return useOnEvent(e,{timeChange:l}),vue.onMounted(()=>{c()}),vue.onUnmounted(()=>{o()}),{style:r,time:i}}}),TimeDisplay_vue_vue_type_style_index_0_scoped_b628fca2_lang="";function _sfc_render$s(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$o,[["render",_sfc_render$s],["__scopeId","data-v-b628fca2"]]),EcanTimeDisplay=withInstall(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$n=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=(w,b)=>{const{format:A,customFormatter:R}=b;if(A==null||A==="")return w;const I={money:formatMoney,percentage:formatPercentage,contrast:formatPercentage,custom:formatCustom};return I[A]?A==="custom"?I[A](w,R)||"":I[A](w)||"":""},o=(w,b)=>{const A=parseFloat(w+"");if(b!=="contrast")return"";switch(!0){case A>=0:return"goUp";case A<0:return"goDown"}},s=useRequestData(e,w=>{var b;n.value=((b=w==null?void 0:w.data)==null?void 0:b.data.rows)||[]}),l=vue.ref(!1),c=async()=>{var w;if(e.dataType==="request")try{l.value=!0;const b=await s();n.value=((w=b==null?void 0:b.data)==null?void 0:w.data.rows)||[]}catch(b){console.error(b)}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:w,isUseSeq:b}=e;return b?[vue.unref(u),...w]:w}),C=w=>{var R;const{columns:b=[],rows:A=[]}=((R=w==null?void 0:w.data)==null?void 0:R.data)??{};e.isUseSeq&&b.unshift(e.seqName),h.value.forEach((I,q)=>{(!e.isUseSeq||q!==0)&&(I.title=b[q],I.key=b[q])}),n.value=A},f=useIndicatorData(e,C),g=async()=>{try{l.value=!0;const w=await f();C(w)}catch(w){console.error(w)}finally{l.value=!1}},v=()=>{switch(e.dataType){case"indicator":g();break;case"request":c();break}},d=useEmitEvent(e),{getGlobalModel:_,setGlobalModel:x}=vue.inject(GLOBAL_MODEL,{getGlobalModel:w=>{},setGlobalModel:(w,b)=>{}}),m=w=>{d("click",()=>{const b=_(e.id);x(e.id,{...b,type:e.type,RECORD:w})})()};useOnEvent(e,{refreshData:v,resetRecord:()=>{const w=e.id,b=_(w);x(w,{...b,type:e.type,RECORD:""})}});const{setRequest:y}=vue.inject(REQUEST_MODEL,{setRequest:({id:w,sortNum:b,requestFn:A})=>{}});typeof y=="function"&&y({id:e.id,requestFn:v,sortNum:e.requestSort}),r({refreshData:v});const E=(w,b)=>({flex:w.width?"none":"1",width:w.width,height:e.itemHeight,lineHeight:e.itemHeight,textAlign:(b?w.cellAlign:w.align)||"left",backgroundColor:w.cellColor}),S=(w,b)=>{let A=0;const R=vue.unref(n).map(q=>q[b]),I=Math.max(...R);return I&&(A=w[b]/I*100),A},P=w=>{const{progressColor:b="#1890ff",progressGradientColor:A=""}=w;return A?{background:`linear-gradient(to right, ${b} 0%, ${A} 100%)`}:{backgroundColor:b||"#1890ff"}},k=vue.computed(()=>{const w=parseFloat(e.seqFontSize)+5;return{width:w+10,height:w}}),{pageMode:F}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),B=vue.computed(()=>vue.unref(F)!=="design"&&e.isAutoScroll),L=w=>{const{seqIconConfig:b}=e;let A=b.find(R=>R.key===w+1);return A||(A=b.find(R=>R.key==="other")),!!(A!=null&&A.icon)},O=(w,b)=>{const{seqIconConfig:A}=e;let R=A.find(I=>I.key===w+1);return R||(R=A.find(I=>I.key==="other")),b===1?R!=null&&R.icon?useImagePath(R.icon):"":b===2?(R==null?void 0:R.color)||"#fff":""},D=w=>{const{seqIndexFormatter:b}=e,A=w+1;return b?useVariablesInText(b,{textData:{index:A}},{useNewline:!1,useSpace:!0}):A},V=vue.computed(()=>parseFloat(e.itemWidth)!==100?{height:"100%"}:{}),M=vue.computed(()=>!e.itemWidth||e.itemWidth==="100%"?"0":e.itemColSpan);return{style:i,formatFn:a,contrastClass:o,dataSource:n,loading:l,myColumns:h,click:m,getColumnStyle:E,getPercentage:S,getBackgroundColor:P,isShowSeqIcon:L,getSeqIconData:O,seqIcon4,seqIcon5,seqIcon6,seqIcon7,iconSize:k,isScroll:B,formatSeq:D,wrapStyle:V,colSpan:M,getText:(w,b)=>(w.format!=null||w.format!=="")&&a(b[w.key],w)}}}),List_vue_vue_type_style_index_0_scoped_d6191ac4_lang="",List_vue_vue_type_style_index_1_lang="",_withScopeId$4=e=>(vue.pushScopeId("data-v-d6191ac4"),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$r(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,C)=>(vue.openBlock(),vue.createElementBlock("div",{class:"column",key:h.key||C,style:vue.normalizeStyle({color:h.titleColor,...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:C=>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,C=>{var f;return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["column",e.contrastClass(u[C.key],C.format),C.key==="SEQ"?"seq-column":""]),key:C.key,style:vue.normalizeStyle({fontSize:C.fontSize,color:e.contrastClass(u[C.key],C.format)===""?C.color:"",fontWeight:C.fontWeight,...e.getColumnStyle(C,"cell")})},[C.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)):C.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:C.progressWidth||"14px",backgroundColor:C.progressBaseColor})},[vue.createVNode(s,{title:u[C.key],overlayClassName:"ecan-list-tooltip",color:"#fff"},{default:vue.withCtx(()=>[vue.createElementVNode("div",{style:vue.normalizeStyle({borderRadius:"10px",height:C.progressWidth||"14px",width:`${e.getPercentage(u,C.key)}%`,...e.getBackgroundColor(C)})},null,4)]),_:2},1032,["title"])],4)],4)):(vue.openBlock(),vue.createElementBlock("span",{key:2,title:e.getText(C,u)},vue.toDisplayString(e.getText(C,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$n,[["render",_sfc_render$r],["__scopeId","data-v-d6191ac4"]]),EcanList=withInstall(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$m=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),S=+e.variableDefaultValue;if(E==null)return isNaN(S)?0:S;const P=e.text.match(/\{(.+?)\}/g)||[];let k;const F=new Set(Object.keys(E));for(let B=0;B<P.length;B++){const L=P[B],O=L.slice(1,L.length-1);if(F.has(O)){k=E[O];break}}return typeof k=="number"?k=k*100:typeof k=="string"&&!isNaN(+k)?k=+k*100:isNaN(S)?k=0:k=S*100,e.decimalFormat&&(k=+k.toFixed(2)),k}),c=vue.computed(()=>{var F;let E=e.text;if(E==="")return vue.unref(l);const S=e.variableDefaultValue,P=vue.unref(s),k=E.match(/\{(.+?)\}/g)||[];for(let B=0;B<k.length;B++){const L=k[B];let O=L.slice(1,L.length-1);const D=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,V=L.match(D);for(let T=0;T<(V==null?void 0:V.length);T++){const w=(F=V[T])==null?void 0:F.trim();P[w]!=null&&(O=O.replace(w,P[w]))}let M=O;try{(/\(.*\)/g.test(O)||/[+/\\*]/g.test(O))&&(M=runCode(O))}catch(T){console.error(T)}typeof+M=="number"&&!isNaN(+M)?(M=+M*100,e.decimalFormat&&(M=M.toFixed(2))):typeof M!="string"&&(M=S),E=E.replace(L,`<span style="color: ${e.variableColor};">${M+""}</span>`)}return E=E==null?void 0:E.replace(/\n|\\n/g,"<br/>"),vue.unref(n)?"NaN":E}),u=useRequestData(e,E=>{var S;s.value=((S=E==null?void 0:E.data)==null?void 0:S.data)||{}}),h=vue.ref(!1),C=async()=>{var E;if(e.dataType==="request")try{h.value=!0;const S=await u();s.value=((E=S==null?void 0:S.data)==null?void 0:E.data)||{}}catch(S){console.error(S)}finally{h.value=!1}},f=(E={})=>{s.value=E},g=E=>{var P;const{data:S}=(E==null?void 0:E.data)||{};if(S){n.value=!1;const{columns:k=[],rows:F=[]}=((P=E==null?void 0:E.data)==null?void 0:P.data)??{};let B={};if(k.length>0){const L=k.find(O=>!!O);L&&(B={percent:F[L]})}f(B)}else n.value=!0,f({percent:"NaN"})},v=useIndicatorData(e,g),d=async()=>{try{h.value=!0;const E=await v();g(E)}catch(E){console.error(E)}finally{h.value=!1}},_=()=>{switch(e.dataType){case"indicator":d();break;case"request":C();break}};useOnEvent(e,{refreshData:_}),r({refreshData:_});const m=useEmitEvent(e)("click",()=>{}),{setRequest:p}=vue.inject(REQUEST_MODEL,{setRequest:({id:E,sortNum:S,requestFn:P})=>{}});typeof p=="function"&&p({id:e.id,requestFn:_,sortNum:e.requestSort});const y=vue.computed(()=>{const{gradientShow:E,gradientColor:S,gradientOffset:P,strokeColor:k}=e;let F=k;return E&&S&&(F={"0%":k,[`${P*100}%`]:S}),F});return{style:a,myWidth:o,text:c,myValue:l,loading:h,click:m,customStrokeColor:y}}}),Proportion_vue_vue_type_style_index_0_scoped_38f2fa04_lang="",_hoisted_1$c=["innerHTML"];function _sfc_render$q(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$m,[["render",_sfc_render$q],["__scopeId","data-v-38f2fa04"]]),EcanProportion=withInstall(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$l=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:""})},C=useRequestData(e,y=>{var E,S;n.value=((S=(E=y==null?void 0:y.data)==null?void 0:E.data)==null?void 0:S.value)||""}),f=vue.ref(!1),g=async()=>{var y,E;try{f.value=!0;const S=await C();n.value=((E=(y=S==null?void 0:S.data)==null?void 0:y.data)==null?void 0:E.value)||""}catch(S){console.error(S)}finally{f.value=!1}},v=y=>{var P;const{data:E}=(y==null?void 0:y.data)||{};let S="";if(E){const{columns:k=[],rows:F=[]}=((P=y==null?void 0:y.data)==null?void 0:P.data)??{};if(k.length>0){const B=k.find(L=>!!L);B&&(S=F[B]||"")}}n.value=String(S)},d=useIndicatorData(e,v),_=async()=>{try{f.value=!0;const y=await d();v(y)}catch(y){console.error(y)}finally{f.value=!1}},x=()=>{switch(e.dataType){case"indicator":_();break;case"request":g();break}},m=vue.computed(()=>{const y=[],{digits:E}=e,S=vue.unref(n)?vue.unref(n).split("").reverse().join(""):"";for(let P=0;P<E;P++)S&&S[P]?y.push(S[P]):y.push("0");return y.reverse()});useOnEvent(e,{refreshData:x,resetRecord:h});const{setRequest:p}=vue.inject(REQUEST_MODEL,{setRequest:({id:y,sortNum:E,requestFn:S})=>{}});return typeof p=="function"&&p({id:e.id,requestFn:x,sortNum:e.requestSort}),r({refreshData:x}),{style:i,valueList:m,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$p(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$l,[["render",_sfc_render$p],["__scopeId","data-v-82bd9070"]]),EcanCounter=withInstall(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$k=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,C)=>{},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$o(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$k,[["render",_sfc_render$o]]),EcanInput=withInstall(Input),datePickerProps={...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),datePickerEvents=["dateChange"],__default__$3=vue.defineComponent({name:"EcanDatePicker",props:{...datePickerComponentProps},components:{ADatePicker:antDesignVue.DatePicker},setup(e){const r=vue.inject("scaleValue",{widthScale:"1",heightScale:"1"}),n=usePickComponentStyle(e),i=()=>document.getElementById("ProviderConfig")||document.body,a=vue.ref(null);vue.watch(()=>[e.value,e.useCurrentTime,e.operate],([f,g,v])=>{let d=null;if(f?d=dayjs(useVariablesInText(f)):g&&(d=dayjs()),v&&d){const{type:_,value:x,mode:m}=v;switch(_){case"add":d=d.add(x,m);break;case"minus":d=d.subtract(x,m)}}a.value=d},{deep:!0,immediate:!0});const{setGlobalModel:o}=vue.inject(GLOBAL_MODEL,{setGlobalModel:(f,g)=>{}});o(e.id,{type:e.type,format:e.format,useCurrentTime:e.useCurrentTime,value:a});const l=useEmitEvent(e)("dateChange",()=>{}),c=()=>{vue.unref(a)&&l()};useOnEvent(e,{dateChange:l});const u=vue.ref({}),h=vue.ref({}),C=f=>{f?setTimeout(()=>{h.value=vue.unref(u)},300):h.value={}};return vue.onMounted(()=>{setTimeout(()=>{const f=document.querySelector(`#ecan-date-picker-${e.id}`);if(f){const g=f.getBoundingClientRect(),v=parseFloat(vue.unref(r).widthScale)*280;document.body.clientWidth-g.left<v&&(u.value.marginLeft=-1*(v-g.width)+"px")}},0)}),{style:n,getPopupContainer:i,myValue:a,locale,change:c,scaleValue:r,popupStyle:u,customStyle:h,openChange:C}}}),__injectCSSVars__$3=()=>{vue.useCssVars(e=>({d6fb5b46: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_d4ec0d66_lang="",DatePicker_vue_vue_type_style_index_1_lang="",_hoisted_1$a=["id"];function _sfc_render$n(e,r,n,i,a,o){const s=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},[vue.createVNode(s,{class:"date-picker",dropdownClassName:"ecan-date-picker-dropdown",value:e.myValue,"onUpdate:value":r[0]||(r[0]=l=>e.myValue=l),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=_export_sfc$1(__default__$3,[["render",_sfc_render$n],["__scopeId","data-v-d4ec0d66"]]),EcanDatePicker=withInstall(DatePicker),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 C=this.$utils(),f=!!C.u(h)||h;if(C.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},props:{...rangePickerComponentProps},setup(e){const{pageMode:r}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),n=usePickComponentStyle(e),i=()=>document.getElementById("ProviderConfig")||document.body,a=vue.ref([null,null]);vue.watch(()=>[e.startTime,e.endTime,e.useCurrentTime,e.interval,e.intervalUnit,e.operate],([y,E,S,P,k,F])=>{if(vue.unref(a).every(B=>!B)||vue.unref(r)==="design"){let B=null,L=null;if(S&&(B=dayjs().subtract(P,k),L=dayjs()),y&&(B=dayjs(useVariablesInText(y))),E&&(L=dayjs(useVariablesInText(E))),F){const{type:O,value:D,mode:V}=F;switch(O){case"add":B=B&&B.add(D,V),L=L&&L.add(D,V);break;case"minus":B=B&&B.subtract(D,V),L=L&&L.subtract(D,V)}}a.value=[B,L]}},{immediate:!0});let o=vue.unref(a)[0],s=vue.unref(a)[1],l="";const c=(y,E,S)=>{Array.isArray(y)?(o=y[0],s=y[1],l=S.range):(o=null,s=null)};window.dayjs=dayjs;const u=y=>{let E=!1,{limitStartTime:S,limitEndTime:P}=e;const k={startTime:`${o||""}`,endTime:`${s||""}`};if(S=useVariablesInText(S,{codeData:k}),P=useVariablesInText(P,{codeData:k}),S&&P?E=!(dayjs(S)<y&&y<dayjs(P)):S?E=dayjs(S)>y:P&&(E=dayjs(P)<y),!e.isAllowSpanYear&&l){let F=null;if(l==="start"?F=o:l==="end"&&(F=s),F){const B=F.startOf("year"),L=F.endOf("year");E=!(B<=y&&y<L)}}if(!E){const{value:F=0,mode:B="year"}=e.limitInterval||{};F&&(l==="start"?E=o.add(F,B)<y:l==="end"&&(E=s.subtract(F,B)>y))}return E},{getGlobalModel:h,setGlobalModel:C}=vue.inject(GLOBAL_MODEL,{getGlobalModel:y=>{},setGlobalModel:(y,E)=>{}}),f=vue.computed(()=>Array.isArray(vue.unref(a))?vue.unref(a)[0]:null),g=vue.computed(()=>Array.isArray(vue.unref(a))?vue.unref(a)[1]:null);C(e.id,{type:e.type,format:e.format,startTime:f,endTime:g,interval:e.interval,intervalUnit:e.intervalUnit,useCurrentTime:e.useCurrentTime,operate:e.operate});const v=useEmitEvent(e);let d=!1;const _=v("dateChange",()=>{}),x=y=>{const E=vue.unref(a),S=E&&E[0]&&E[1];y===!1&&d===!0&&S&&(_(),d=!1),y||(l="")},m=()=>{d=!0};return useOnEvent(e,{dateChange:()=>{const{associated:y}=e;if(y){const E=h(y)||{};if(E){const{value:S}=E;if(S)switch(vue.unref(S)){case"month":a.value=[dayjs().startOf("month"),dayjs().endOf("month")];break;case"quarter":a.value=[dayjs().startOf("quarter"),dayjs().endOf("quarter")];break;case"year":a.value=[dayjs().startOf("year"),dayjs().endOf("year")];break}}}_()}}),{style:n,getPopupContainer:i,locale,dateChange:_,myValue:a,disabledDate:u,calendarChange:c,openChange:x,change:m}}}),__injectCSSVars__$2=()=>{vue.useCssVars(e=>({"28d0c084":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_90124d72_lang="",RangePicker_vue_vue_type_style_index_1_lang="";function _sfc_render$m(e,r,n,i,a,o){const s=vue.resolveComponent("a-range-picker");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-range-picker",style:vue.normalizeStyle(e.style)},[vue.createVNode(s,{class:"range-picker",dropdownClassName:"ecan-range-picker-dropdown",value:e.myValue,"onUpdate:value":r[0]||(r[0]=l=>e.myValue=l),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$m],["__scopeId","data-v-90124d72"]]),EcanRangePicker=withInstall(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$j=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$l(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$j,[["render",_sfc_render$l]]),EcanButton=withInstall(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$i=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=x=>{const m=e.value;let p=[];x.forEach(y=>{y.checked&&p.push(y.value)}),typeof m=="string"&&m!==""?p=p.concat(m.split(",")):Array.isArray(m)&&(p=p.concat(m)),i.value=x,a.value=p};vue.watch(()=>[e.data,e.value],([x])=>{o(x)},{immediate:!0,deep:!0});const s=useRequestData(e,x=>{var m,p;o(((p=(m=x==null?void 0:x.data)==null?void 0:m.data)==null?void 0:p.rows)||[])}),l=async()=>{var p,y;if(e.dataType!=="request")return;const x=await s(),m=((y=(p=x==null?void 0:x.data)==null?void 0:p.data)==null?void 0:y.rows)||[];o(m)},{getGlobalModel:c,setGlobalModel:u}=vue.inject(GLOBAL_MODEL,{getGlobalModel:x=>{},setGlobalModel:(x,m)=>{}});u(e.id,{type:e.type,value:a});const C=useEmitEvent(e)("checkboxChange",()=>{const x=c(e.id);u(e.id,{...x,RECORD:a})}),f=x=>{var p;const{data:m}=(x==null?void 0:x.data)||{};if(m){const E=(((p=x==null?void 0:x.data)==null?void 0:p.data)??[]).map(S=>({label:S.label,value:S.value}));o(E)}else o([])},g=useIndicatorData(e,f),v=async()=>{try{const x=await g();f(x)}catch(x){console.error(x)}},d=()=>{switch(e.dataType){case"indicator":v();break;case"request":l();break}},{setRequest:_}=vue.inject(REQUEST_MODEL,{setRequest:({id:x,sortNum:m,requestFn:p})=>{}});return typeof _=="function"&&_({id:e.id,requestFn:d,sortNum:e.requestSort}),r({refreshData:d}),{myOption:i,style:n,myValue:a,checkboxChange:C}}}),Checkbox_vue_vue_type_style_index_0_lang="";function _sfc_render$k(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$i,[["render",_sfc_render$k]]),EcanCheckbox=withInstall(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"],_sfc_main$h=vue.defineComponent({name:"EcanSelect",components:{ASelect:antDesignVue.Select,ASelectOption:antDesignVue.SelectOption},props:{...selectComponentProps},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 b;const{mode:w}=e;return(b=vue.unref(a))!=null&&b.length?o.value:w==="multiple"||w==="tags"||w==="combobox"?[]:""},set:w=>{o.value=w}}),{getGlobalModel:l,setGlobalModel:c,getRecordValueByKeyName:u}=vue.inject(GLOBAL_MODEL,{getGlobalModel:w=>{},setGlobalModel:(w,b)=>{},getRecordValueByKeyName:w=>{}}),h=e.dataFieldNames;vue.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,a.value],()=>{const{mode:w,selectFirstOption:b,value:A}=e,R=u(A),I=h.value;if(w==="multiple"||w==="tags"||w==="combobox"){if(R)o.value=R.split(",");else if(b){const q=vue.unref(a)[0];o.value=q?[q[I]]:[]}}else if(R)o.value=R;else if(b){const q=vue.unref(a)[0];o.value=q?q[I]:""}},{immediate:!0});const C=(w,b)=>{const A=h.label,R=h.value;let I;const q=b[A],N=b[R];return q!=null?I=q:N!=null&&(I=N),(I==null?void 0:I.toLowerCase().indexOf(w==null?void 0:w.toLowerCase()))>=0},f=w=>{const{label:b,value:A,options:R}=e.dataFieldNames;if(R&&Array.isArray(w))if(w.some(I=>R in I)){const I={},q=[];w.forEach(N=>{I[N[R]]||(I[N[R]]=[]),I[N[R]].push({[b]:N[b],[A]:N[A]})});for(const N in I)q.push({[b]:N,[R]:I[N]});return q}else return w;else if(!R)return w},g=vue.ref(!1),v=w=>{var b,A;if(a.value=f(((A=(b=w==null?void 0:w.data)==null?void 0:b.data)==null?void 0:A.rows)||[]),e.selectFirstOption){let R=vue.unref(a)[0];if(h.options){const I=R[h.options];I&&I.length&&(R=I[0])}o.value=R[h.value]}},d=useRequestData(e,v),_=async()=>{if(e.dataType==="request"){g.value=!0;try{const w=await d();v(w)}catch(w){console.error(w)}finally{g.value=!1}}},{setLoadedData:x,loadedData:m}=vue.inject(LOADED_DATA,{setLoadedData:(w,b)=>{},loadedData:{}}),p=vue.computed(()=>{let w=o.value;if(e.valueType==="label"&&vue.unref(o)&&vue.unref(a)){const b=h.label,A=h.value;if(e.mode==="multiple")w=vue.unref(a).filter(R=>vue.unref(o).includes(R[A])).map(R=>R[b]);else{const R=vue.unref(a).find(I=>vue.unref(o)===I[A]);R&&(w=R[b])}}return w}),y=vue.ref([]),E=vue.computed(()=>{const w={};if(e.mode!=="multiple"){const b=vue.unref(y).find(A=>A.value===vue.unref(o));b&&(w.itemCodes=b.item_codes)}return w}),S=vue.computed(()=>{const{value:w,label:b}=h,A=vue.unref(a).find(R=>R[w]===vue.unref(s));return A?{label:A[b],value:A[w]}:{}});c(e.id,{type:e.type,value:p,...vue.unref(E),recordData:vue.unref(S)});const k=useEmitEvent(e)("selectChange",()=>{const w=e.id,b=l(w);c(w,{...b,...vue.unref(E),RECORD:p,recordData:vue.unref(S)})}),F=(w=[])=>{if(a.value=f(w),e.selectFirstOption){let b=vue.unref(a)[0];if(h.options){const A=b[h.options];A&&A.length&&(b=A[0])}o.value=b[h.value]}c(e.id,{type:e.type,value:p,...vue.unref(E),recordData:vue.unref(S)})},B=w=>{var I;const{data:b}=(w==null?void 0:w.data)||{},A=h.label,R=h.value;if(b){const q=((I=w==null?void 0:w.data)==null?void 0:I.data)??[];y.value=q;const N=q.map(U=>({[A]:U.label,[R]:U.value})),{id:G}=e,Y=l(G);c(G,{...Y,...vue.unref(E)}),x(G,!0),F(N)}else F([])},L=useIndicatorData(e,B),O=async()=>{try{g.value=!0;const w=await L();B(w)}catch(w){console.error(w)}finally{g.value=!1}},D=vue.computed(()=>{var w,b;return(b=getConditions(((w=e==null?void 0:e.graphicConfig)==null?void 0:w.controlList)||[]))==null?void 0:b.find(A=>A.conditionKey==="parentCode")}),V=vue.ref(!1);vue.watch(m,w=>{!vue.unref(V)&&vue.unref(D)&&w[vue.unref(D).id]&&(V.value=!0,M())},{deep:!0});const M=()=>{switch(e.dataType){case"indicator":{if(vue.unref(D)){if(vue.unref(m)[vue.unref(D).id]){const{mode:w}=e;w==="multiple"||w==="tags"||w==="combobox"?s.value=[]:s.value="",O()}}else O();break}case"request":_();break}};useOnEvent(e,{selectChange:k,refreshData:M});const{setRequest:T}=vue.inject(REQUEST_MODEL,{setRequest:({id:w,sortNum:b,requestFn:A})=>{}});return typeof T=="function"&&T({id:e.id,requestFn:M,sortNum:e.requestSort}),r({refreshData:M}),{style:n,getPopupContainer:i,myValue:o,selectChange:k,options:a,filterOption:C,loading:g,resultValue:s}}}),Select_vue_vue_type_style_index_0_scoped_478fe018_lang="",Select_vue_vue_type_style_index_1_lang="";function _sfc_render$j(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 Select=_export_sfc$1(_sfc_main$h,[["render",_sfc_render$j],["__scopeId","data-v-478fe018"]]),EcanSelect=withInstall(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$g={name:"EcanTreeSelect",components:{ATreeSelect:antDesignVue.TreeSelect},props:{...treeSelectComponentProps},setup(e){const r=usePickComponentStyle(e),n=vue.ref(e.data),i=(v,d)=>{const _=e.dataFieldNames,x=_.label,m=_.value;let p;const y=d[x],E=d[m];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:d,selectFirstOption:_}=e;v?d?a.value=d.split(","):_&&(a.value=[vue.unref(n)[0]]):d?a.value=d:_&&(a.value=vue.unref(n)[0])},{immediate:!0});const o=vue.ref(!1),s=v=>{var _,x;n.value=((x=(_=v==null?void 0:v.data)==null?void 0:_.data)==null?void 0:x.rows)||[];const d=vue.unref(n)[0];e.value===""&&d!=null&&(a.value=d[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,d)=>{}});h(e.id,{type:e.type,value:a});const f=useEmitEvent(e)("selectChange",()=>{const v=e.id,d=u(v);h(v,{...d,RECORD:a})});useOnEvent(e,{selectChange:f,refreshData:c});const{setRequest:g}=vue.inject(REQUEST_MODEL,{setRequest:({id:v,sortNum:d,requestFn:_})=>{}});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$i(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$g,[["render",_sfc_render$i],["__scopeId","data-v-09e7f364"]]),EcanTreeSelect=withInstall(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$f=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 S=e.value;let P=[];typeof S=="string"&&S!==""?P=P.concat(S.split(",")):Array.isArray(S)&&(P=P.concat(S)),a.value=E,o.value=P[0]||""};vue.watch(()=>[e.data,e.value],([E])=>{vue.unref(n)==="design"&&s(E)},{immediate:!0,deep:!0});const l=useRequestData(e,E=>{var S,P;s(((P=(S=E==null?void 0:E.data)==null?void 0:S.data)==null?void 0:P.rows)||[])}),c=async()=>{var P,k;if(e.dataType!=="request")return;const E=await l(),S=((k=(P=E==null?void 0:E.data)==null?void 0:P.data)==null?void 0:k.rows)||[];s(S)},{getGlobalModel:u,setGlobalModel:h}=vue.inject(GLOBAL_MODEL,{getGlobalModel:E=>{},setGlobalModel:(E,S)=>{}});h(e.id,{type:e.type,value:o});const C=useEmitEvent(e),f=()=>{const E=vue.unref(a).find(S=>S.value===vue.unref(o))||{};C("checkboxChange",()=>{const S=u(e.id);h(e.id,{...S,RECORD:o})},E)()},g=E=>{o.value=E,C("click",()=>{const S=u(e.id);h(e.id,{...S,RECORD:o})})()};vue.watch(o,()=>{f()});const v=E=>{var P;const{data:S}=(E==null?void 0:E.data)||{};if(S){const F=(((P=E==null?void 0:E.data)==null?void 0:P.data)??[]).map(B=>({label:B.label,value:B.value}));s(F)}else s([])},d=useIndicatorData(e,v),_=async()=>{try{const E=await d();v(E)}catch(E){console.error(E)}},x=()=>{switch(e.dataType){case"indicator":_();break;case"request":c();break}},{setRequest:m}=vue.inject(REQUEST_MODEL,{setRequest:({id:E,sortNum:S,requestFn:P})=>{}});typeof m=="function"&&m({id:e.id,requestFn:x,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:x}),{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_7ca4e814_lang="",_hoisted_1$9=["onClick"];function _sfc_render$h(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(C=>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$f,[["render",_sfc_render$h],["__scopeId","data-v-7ca4e814"]]),EcanRadio=withInstall(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],C=[];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&&(C.push(g),containerType.includes(g.type)&&C.push(...getComponentByContainer(g.id,r,n)))}for(const f of C)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(...C),c=getMaxLeftInComponents(C)}}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 d of i[f][v]){const _=a.find(x=>x.id===d);_&&(_.parentId=f,_.sourceLeft=_.left,_.sourceTop=_.top,_.left=parseFloat(_.left)-parseFloat(g.sourceLeft||g.left)+"px",_.top=parseFloat(_.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")),C=[];for(const f of h)if(f){const g=f.id+"_vir";C.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}C!=null&&C.length&&a.unshift(...C);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(d=>d.id===f.parentId);if((v==null?void 0:v.parentId)===""){const d=v.sourceWidth||parseFloat(v.width),_=g/d;f.scale=_,f.top=parseFloat(f.top)*_-parseFloat(f.height)*(1-_)/2+"px",f.left=parseFloat(f.left)*_-parseFloat(f.width)*(1-_)/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$e=vue.defineComponent({name:"Render",props:{component:{type:Object,default:()=>{}}},setup(e,{emit:r}){r("ready",e.component.id)}});function _sfc_render$g(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$e,[["render",_sfc_render$g]]),EcanRender=withInstall(Render),_sfc_main$d=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:($,K)=>{},clearInteractiveData:()=>{},interactiveData:null}),u=()=>document.getElementById("ProviderConfig")||document.body,h=vue.computed(()=>{const $=e.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[$]}}),C=e.fullModal?"1920px":e.width,f=e.fullModal?"1080px":e.height,g=e.originalWidth,v=e.originalHeight,d=vue.ref("80%"),_=vue.ref(0),x=vue.ref(),m=vue.ref(0),p=vue.ref({}),y=usePickComponentStyle(e),E=vue.ref({}),S=vue.ref(!1),P=vue.ref();let k;const F=()=>{x.value=parseFloat(C)/parseFloat(g);const $=parseFloat(f)/parseFloat(v),K=document.body.offsetWidth,ee=document.body.offsetHeight;_.value=K*vue.unref(x),m.value=ee*$,d.value=`${vue.unref(x)*100}%`,p.value={width:`${vue.unref(_)}px`,height:`${vue.unref(m)}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(_)/parseFloat(C)},${vue.unref(m)/parseFloat(f)})`,width:C,height:f}},B=lodashEs.debounce(()=>{F()},100),L=()=>{const $=window.MutationObserver;k=new $(B),k.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},O=()=>{k&&(k.disconnect(),k.takeRecords(),k=null)},D=vue.ref(!1),{touchRequest:V}=vue.inject(REQUEST_MODEL,{touchRequest:()=>{}}),M=vue.ref(""),T=()=>{var ee;const{title:$}=e,K=(ee=vue.unref(l))==null?void 0:ee.RECORD;return K?useVariablesInText($,{textData:K},{useNewline:!1,useSpace:!1}):$},w=useEmitEvent(e),b=()=>{i&&(document.documentElement.style.overflow="hidden"),M.value=T(),D.value=!0},A=w("hideModal",()=>{r("close"),i&&(document.documentElement.style.overflow="hidden auto",n.value=[]),D.value=!1}),R=()=>{A()},I=()=>{A(),s()},{setModalModel:q,pushUseModalIds:N,popUseModalIds:G}=vue.inject(MODAL_MODEL,{pushUseModalIds:$=>{},popUseModalIds:()=>{},setModalModel:($,K)=>{}}),Y=vue.computed(()=>{let $=e.componentList;const K=lodashEs.cloneDeep(e.componentList),ee=a(),te=o(),re={containerMap:ee,combinationMap:te};i&&($=compatibleMobileList({...re,componentList:K,sourceList:e.allComponentList})),$=handleScrollCombinations({...re,componentList:$,sourceList:e.allComponentList});const ne=[];for(const he of $)if(he.type==="ecanCirculate"){const ve=moveToComponentList(ee,vue.unref(K),he.id);he.componentList=ve,ne.push(...ve.map(pe=>pe.id))}if(ne!=null&&ne.length)for(const he of ne){const ve=$.findIndex(pe=>pe.id===he);ve!==-1&&$.splice(ve,1)}return $}),U=()=>{const $=e.id;let K=[];const ee=e.componentList;Array.isArray(ee)&&(K=ee.map(te=>te.id),q($,[...new Set(K)]))},j=vue.ref(!1),H={};for(const $ of e.requestList)H[$.requestName]=useRequestData($);vue.watch(()=>D.value,async $=>{if($)S.value=!1,N(e.id),U(),await vue.nextTick(()=>{F(),window.addEventListener("resize",B),L(),S.value=!0}),V();else{for(const K in H)c(K,{});G(),window.removeEventListener("resize",B),O()}});const Z=vue.computed(()=>vue.unref(x)>=1),X=vue.computed(()=>e.fullModal),ae=vue.computed(()=>{let $="ecan-modal";return vue.unref(Z)&&($+=" ecan-full-width-modal"),vue.unref(X)&&($+=" ecan-full-modal"),$});return useOnEvent(e,{showModal:b,hideModal:A}),{modalRef:P,containStyle:p,contentStyle:E,getContainer:u,modalStyle:h,modalWith:d,isFullModal:X,style:y,visible:D,showModal:b,onOk:R,onCancel:I,isFullWidth:Z,wrapClassName:ae,ready:S,usedComponentList:Y,isMobile:i,readyIds:n,hasOwn,onComponentReady:$=>{n.value.push($)},formatTitle:M,requestLoaded:j}}}),Modal_vue_vue_type_style_index_0_scoped_000999c2_lang="",Modal_vue_vue_type_style_index_1_lang="";function _sfc_render$f(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$d,[["render",_sfc_render$f],["__scopeId","data-v-000999c2"]]),EcanModal=withInstall(Modal);core$1.use([renderers.CanvasRenderer,charts.PieChart,components$1.TitleComponent,components$1.ToolboxComponent,components$1.TooltipComponent,components$1.LegendComponent]);const _sfc_main$c=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(!1),o=usePickComponentStyle(e),s=vue.ref([]),l=vue.ref(),c=vue.ref({}),u=vue.computed(()=>{let{data:D=[]}=vue.unref(s)[0]||{};if(Array.isArray(e.colors)){const V=e.isUseLabelColors,M=e.colors;D=D.map((T,w)=>({label:V?{color:M[w]}:{},...T}))}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:a.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var V;a.value=!0,(V=l.value)==null||V.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){antDesignVue.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter:V=>{const{marker:M,seriesName:T,name:w,value:b,percent:A,data:R}=V||{};return useVariablesInText(e.tooltipFormatter,{textData:{marker:M,name:w,value:b,percent:A,a:T,b:w,c:b,d:A,...R}},{useNewline:!0,useSpace:!0})},textStyle:{color:e.tooltipTextStyleColor},position:e.tooltipPosition||void 0},legend:vue.unref(c),color:e.colors,series:[{data:D,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:a.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:{}}}]}}),h=()=>{const D=a.value?ZOOM_FONT_SIZE:parseFloat(e.legendFontSize);c.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:D+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:D}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,formatter:V=>{const{data:M}=s.value[0]||{};let T=0,w,b="0%";if(M)for(const A of M)A.name===V&&(w=+A.value),T+=+A.value;return T&&(b=`${(w/T*100).toFixed(2)}%`),getLegendFormat(e.legendFormatter,{name:V,value:w,percent:b})}}},C=()=>{a.value=!1},{getGlobalModel:f,setGlobalModel:g}=vue.inject(GLOBAL_MODEL,{getGlobalModel:D=>{},setGlobalModel:(D,V)=>{}}),v=(D=[],V)=>{const{dataset:M}=useTransformChartDataByAttrValue(D,V);s.value=M},d=(D=[],V)=>{const M=useTransformChartDataByAttrValue(D,V);s.value=M.dataset};vue.watch(()=>e.data,D=>{(e.dataType==="static"||vue.unref(n)==="design")&&v(D)},{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],()=>{h()},{immediate:!0});const _=vue.ref(!1),x=useRequestData(e,D=>{var V,M;v((M=(V=D==null?void 0:D.data)==null?void 0:V.data)==null?void 0:M.rows,e.valueTypeDataFieldNames)}),m=async()=>{var D,V;if(e.dataType==="request")try{_.value=!0;const M=await x();v((V=(D=M==null?void 0:M.data)==null?void 0:D.data)==null?void 0:V.rows,e.valueTypeDataFieldNames)}catch(M){console.error(M)}finally{_.value=!1}},p=useEmitEvent(e);g(e.id,{type:e.type,RECORD:""});const y=p("click",D=>{const V=f(e.id);g(e.id,{...V,type:e.type,RECORD:D==null?void 0:D.data})}),E=D=>{var M;const{data:V}=(D==null?void 0:D.data)||{};if(V){const{columns:T=[],rows:w=[]}=((M=D==null?void 0:D.data)==null?void 0:M.data)??{};let b=[];if(T.length>0){const A=T[0],R=T[1];b=w.filter(I=>!!I).map(I=>({name:I[A],value:isNaN(I[R])?0:I[R]||0}))}d(b)}},S=useIndicatorData(e,E),P=async()=>{try{_.value=!0;const D=await S();E(D)}catch(D){console.error(D)}finally{_.value=!1}},{loadedData:k}=vue.inject(LOADED_DATA,{loadedData:{}}),F=vue.ref(!1);vue.watch(k,D=>{if(e.dataType==="indicator"){const V=getFixedValueDatas(e.graphicConfig);V!=null&&V.length&&(!vue.unref(F)&&canRequestIndicator(e.graphicConfig,D)?(F.value=!0,B()):canRequestIndicator(e.graphicConfig,D)||(F.value=!1))}},{deep:!0});const B=()=>{switch(e.dataType){case"indicator":canRequestIndicator(e.graphicConfig,vue.unref(k))&&P();break;case"request":m();break}};useOnEvent(e,{resetRecord:()=>{const D=e.id,V=f(D);g(D,{...V,RECORD:""})},refreshData:B,click:y}),r({refreshData:B});const{setRequest:O}=vue.inject(REQUEST_MODEL,{setRequest:D=>{}});return typeof O=="function"&&O({id:e.id,requestFn:B,sortNum:e.requestSort}),{option:u,style:o,click:y,onClose:C,loading:_,ecanModal:l}}}),Pie_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,{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 Pie=_export_sfc$1(_sfc_main$c,[["render",_sfc_render$e]]),EcanPie=withInstall(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$b=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),C=vue.ref({});let f;const g=vue.ref([]),v=vue.computed(()=>{const w=e.xAxisLabelFormatter,b=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 A;o.value=!0,(A=u.value)==null||A.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:A=>{var N;const R=A.length;let I="",q=e.tooltipFormatter;f=(N=A[0])==null?void 0:N.data,q===""&&(q="{marker} {a} {c}");for(let G=0;G<R;G++){const{marker:Y,seriesName:U,name:j,value:H,data:Z}=A[G]||{};if(G===0){let X=j;typeof j=="string"&&j[0]==="0"&&!isNaN(+j)&&(X=(+j).toString()),I+=`${useValueFormatter(w,X)}<br/>`}I+=useVariablesInText(q,{textData:{marker:Y,name:j,value:H,a:U,b:j,c:H||0,...Z}},{useNewline:!0,useSpace:!0}),I+="<br/>"}return I},position:e.tooltipPosition||void 0},xAxis:{type:"category",boundaryGap:e.isBoundaryGap,data:vue.unref(c).map(A=>{let R={};return A&&typeof A=="object"?R={...A}:R={value:A},R}),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(A){return typeof A=="string"&&A[0]==="0"&&!isNaN(+A)&&(A=(+A).toString()),useValueFormatter(w,A)}},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(A){return useValueFormatter(b,A)}},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(A=>({name:A.name,icon:e.legendType})),formatter:A=>getLegendFormat(e.legendFormatter,{name:A})},series:vue.unref(l)}}),d=()=>{o.value=!1},{getGlobalModel:_,setGlobalModel:x}=vue.inject(GLOBAL_MODEL,{getGlobalModel:w=>{},setGlobalModel:(w,b)=>{}}),m=vue.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),p=(w=[],b=!1)=>{let A;if(e.dataFieldConfigType==="key"){const N=b?e.keyTypeDataFieldNames:null;A=useTransformChartDataByAttrKey(w,N)}else if(e.dataFieldConfigType==="value"){const N=b?e.valueTypeDataFieldNames:null;A=useTransformChartDataByAttrValue(w,N)}c.value=A.dimensions,g.value=A.dataset;const R=A.dataset,I=[],q=R.length;for(let N=0;N<q;N++){const G={};e.shadowColor&&(G.shadowColor=e.shadowColor,G.shadowBlur=e.shadowBlur,G.shadowOffsetY=e.shadowOffsetY,G.shadowOffsetX=e.shadowOffsetX),I.push({type:"line",...R[N],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[N]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[N],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...G},...vue.unref(m)})}l.value=I},y=(w=[],b,A=!1)=>{const I=useTransformChartDataByAttrKey(w,A?b:null,!0);c.value=I.dimensions,g.value=I.dataset;const q=I.dataset,N=[],G=q.length;for(let Y=0;Y<G;Y++){const U={};e.shadowColor&&(U.shadowColor=e.shadowColor,U.shadowBlur=e.shadowBlur,U.shadowOffsetY=e.shadowOffsetY,U.shadowOffsetX=e.shadowOffsetX),N.push({type:"line",...q[Y],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[Y]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[Y],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...U},...vue.unref(m)})}l.value=N};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],([w])=>{(e.dataType==="static"||vue.unref(n)==="design")&&p(w)},{immediate:!0,deep:!0});const E=vue.ref(!1),S=useRequestData(e,w=>{var b,A;p((A=(b=w==null?void 0:w.data)==null?void 0:b.data)==null?void 0:A.rows,!0)}),P=async()=>{var w,b;if(e.dataType==="request")try{E.value=!0;const A=await S();p((b=(w=A==null?void 0:A.data)==null?void 0:w.data)==null?void 0:b.rows,!0)}catch(A){console.error(A)}finally{E.value=!1}},k=useEmitEvent(e);x(e.id,{type:e.type,RECORD:""});const F=k("click",w=>{const b=_(e.id);x(e.id,{...b,type:e.type,RECORD:e.tooltipShow?f:w.data})}),B=w=>{a.value.chart.containPixel("grid",[w.offsetX,w.offsetY])&&F()};e.tooltipShow?C.value["zr:click"]=B:C.value.click=F;const L=w=>{var I;const{columns:b=[],rows:A=[]}=((I=w==null?void 0:w.data)==null?void 0:I.data)??{};let R;b.length>0&&(R={name:b[0],types:b.slice(1).map(q=>({label:q,value:q}))}),y(A,R,!0)},O=useIndicatorData(e,L),D=async()=>{try{E.value=!0;const w=await O();L(w)}catch(w){console.error(w)}finally{E.value=!1}},V=()=>{switch(e.dataType){case"indicator":D();break;case"request":P();break}};useOnEvent(e,{refreshData:V,resetRecord:()=>{const w=e.id,b=_(w);x(w,{...b,RECORD:""})},click:F});const{setRequest:T}=vue.inject(REQUEST_MODEL,{setRequest:w=>{}});return typeof T=="function"&&T({id:e.id,requestFn:V,sortNum:e.requestSort}),r({refreshData:V}),{option:v,style:s,click:F,loading:E,onClose:d,ecanModal:u,eventObj:C,echartRef:a}}}),Line_vue_vue_type_style_index_0_lang="";function _sfc_render$d(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$b,[["render",_sfc_render$d]]),EcanLine=withInstall(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$a=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),C=vue.ref([]),f=vue.ref(),g=vue.ref({});let v;const d=vue.computed(()=>s.value?ZOOM_FONT_SIZE:12),_=vue.computed(()=>{const{gradientShow:U,gradientColors:j,gradientOffset:H,barBorderRadius:Z}=e,X=vue.unref(C),ae=X.length,fe=[];for(let $=0;$<ae;$++){const K={...X[$],type:"bar",barWidth:e.barWidth,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 te="",re=e.labelFormatter;re===""&&(re="{c}");const{seriesName:ne,name:he,value:ve,data:pe}=ee||{};return te+=useVariablesInText(re,{textData:{name:he,value:ve,a:ne,b:he,c:ve||0,...pe}},{useNewline:!0,useSpace:!0}),te}},K.itemStyle={},U&&(K.itemStyle={color:{x:e.isUseHorizontalAxis?1:0,y:0,x2:0,y2:e.isUseHorizontalAxis?0:1,colorStops:[{offset:0,color:e.colors[$]},{offset:H,color:j[$]},{offset:1,color:j[$]}]}}),Z){const ee=Z.split(",");if(ee!=null&&ee.length){const te=[];for(const re of ee){const ne=parseFloat(re);isNaN(ne)||te.push(ne)}K.itemStyle.borderRadius=te}}e.isShowMarkLine&&(K.markLine={data:[{type:e.markLineType}]}),fe.push(K)}return fe}),x=vue.ref([]),m=vue.ref(!1),p=vue.computed(()=>{const U=e.yAxisLabelFormatter,j=e.xAxisLabelFormatter;return{textStyle:{fontFamily:vue.unref(i)},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myLocation:{show:s.value?!1:e.toolboxLocation,title:"快速定位",icon:"path://M512 512m-80 0a80 80 0 1 0 160 0 80 80 0 1 0-160 0Z, M960 480h-33.632C910.752 276.16 747.84 113.248 544 97.632V64a32 32 0 1 0-64 0v33.632C276.16 113.248 113.248 276.16 97.632 480H64a32 32 0 0 0 0 64h33.632C113.248 747.84 276.16 910.752 480 926.368V960a32 32 0 1 0 64 0v-33.632C747.84 910.752 910.752 747.84 926.368 544H960a32 32 0 1 0 0-64zM544 862.368V800a32 32 0 1 0-64 0v62.368C311.424 847.104 176.896 712.576 161.632 544H224a32 32 0 1 0 0-64H161.632C176.896 311.424 311.424 176.896 480 161.632V224a32 32 0 0 0 64 0V161.632c168.576 15.296 303.104 149.792 318.368 318.368H800a32 32 0 1 0 0 64h62.368c-15.264 168.576-149.792 303.104-318.368 318.368z",onclick(){l.value=!0;const H=o.value.chart.getOption(),{xAxis:Z}=H||{};Z&&Z.length&&(u.value=Z[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 H;s.value=!0,(H=f.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})}}}},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:H=>{var fe;const Z=H.length;let X="",ae=e.tooltipFormatter;v=(fe=H[0])==null?void 0:fe.data,ae===""&&(ae="{marker} {a} {c}");for(let $=0;$<Z;$++){const{marker:K,seriesName:ee,name:te,value:re,data:ne}=H[$]||{};if($===0){let he=te;typeof te=="string"&&te[0]==="0"&&!isNaN(+te)&&(he=(+te).toString()),X+=`${useValueFormatter(j,he)}<br/>`}X+=useVariablesInText(ae,{textData:{marker:K,name:te,value:re,a:ee,b:te,c:re||0,...ne}},{useNewline:!0,useSpace:!0}),X+="<br/>"}return X},textStyle:{color:e.tooltipTextStyleColor,fontSize:d.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(C).map((H,Z)=>({name:H.name,itemStyle:{color:e.colors[Z]},icon:e.legendType})),formatter:H=>getLegendFormat(e.legendFormatter,{name:H})},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(H){return typeof H=="string"&&H[0]==="0"&&!isNaN(+H)&&(H=(+H).toString()),useValueFormatter(j,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:{type:e.isUseHorizontalAxis?"category":"value",data:e.isUseHorizontalAxis?vue.unref(x):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(H){return useValueFormatter(U,H)}},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(_)}}),y=()=>{s.value=!1},E=(U=[],j=!1)=>{let H={};if(e.dataFieldConfigType==="key"){const Z=j?e.keyTypeDataFieldNames:null;H=useTransformChartDataByAttrKey(U,Z)}else if(e.dataFieldConfigType==="value"){const Z=j?e.valueTypeDataFieldNames:null;H=useTransformChartDataByAttrValue(U,Z)}C.value=H.dataset,x.value=H.dimensions},S=(U=[],j,H=!1)=>{const X=useTransformChartDataByAttrKey(U,H?j:null,!0);e.defaultRangeValue&&setDefaultRangeVal({props:e,componentList:vue.unref(a),getGlobalModel:R},X),C.value=X.dataset,x.value=X.dimensions},P=vue.computed(()=>vue.unref(x).map(U=>{let j={};return U&&typeof U=="object"?j={...U}:j={value:U},j}));vue.watch(()=>[e.data,e.labelFormatter,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([U])=>{(e.dataType==="static"||vue.unref(n)==="design")&&E(U)},{immediate:!0,deep:!0});const k=useRequestData(e,U=>{var j,H;E((H=(j=U==null?void 0:U.data)==null?void 0:j.data)==null?void 0:H.rows,!0)}),F=async()=>{var U,j;try{m.value=!0;const H=await k();E((j=(U=H==null?void 0:H.data)==null?void 0:U.data)==null?void 0:j.rows,!0)}catch(H){console.error(H)}finally{m.value=!1}},B=U=>{var X;const{columns:j=[],rows:H=[]}=((X=U==null?void 0:U.data)==null?void 0:X.data)??{};let Z;j.length>0&&(Z={name:j[0],types:j.slice(1).map(ae=>({label:ae,value:ae}))}),S(H,Z,!0)},L=useIndicatorData(e,B),O=async()=>{try{m.value=!0;const U=await L();B(U)}catch(U){console.error(U)}finally{m.value=!1}},{loadedData:D}=vue.inject(LOADED_DATA,{loadedData:{}}),V=vue.ref(!1);vue.watch(D,U=>{if(e.dataType==="indicator"){const j=getFixedValueDatas(e.graphicConfig);j!=null&&j.length&&(!vue.unref(V)&&canRequestIndicator(e.graphicConfig,U)?(V.value=!0,M()):canRequestIndicator(e.graphicConfig,U)||(V.value=!1))}},{deep:!0});const M=()=>{switch(e.dataType){case"indicator":canRequestIndicator(e.graphicConfig,vue.unref(D))&&O();break;case"request":F();break}},T=(U,j)=>!!vue.unref(u)[j.value].value.includes(U),w=async()=>{l.value=!1;const U=o.value.chart.getOption();for(let j=0;j<7;j++)await b(U,j)},b=(U,j)=>new Promise(H=>{setTimeout(()=>{const{series:Z,color:X,xAxis:ae}=U,fe=o.value.chart,{splitArea:$={}}=ae[0]||{};Z.forEach((K,ee)=>{const te=K.data;let re="";j%2?re=X[ee]+"a8":re=X[ee],te[c.value].itemStyle={color:re}}),j%2?($.show=!0,$.areaStyle.color=vue.unref(u).map((K,ee)=>ee===c.value?"#ff003b26":"")):$.show=!1,fe.setOption({series:Z,xAxis:ae}),H()},200)});r({refreshData:M});const A=useEmitEvent(e),{getGlobalModel:R,setGlobalModel:I}=vue.inject(GLOBAL_MODEL,{getGlobalModel:U=>{},setGlobalModel:(U,j)=>{}});I(e.id,{type:e.type,RECORD:""});const q=A("click",U=>{const j=R(e.id);I(e.id,{...j,type:e.type,RECORD:e.tooltipShow?v:U.data})}),{setRequest:N}=vue.inject(REQUEST_MODEL,{setRequest:U=>{}});typeof N=="function"&&N({id:e.id,requestFn:M,sortNum:e.requestSort});const G=()=>{const U=e.id,j=R(U);I(U,{...j,RECORD:""})},Y=U=>{o.value.chart.containPixel("grid",[U.offsetX,U.offsetY])&&q()};return e.tooltipShow?g.value["zr:click"]=Y:g.value.click=q,useOnEvent(e,{refreshData:M,click:q,resetRecord:G}),{option:p,style:h,refreshData:M,click:q,loading:m,onClose:y,ecanModal:f,echartRef:o,handleLocationOk:w,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_36e67f03_lang="",_withScopeId$3=e=>(vue.pushScopeId("data-v-36e67f03"),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$c(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"),C=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(C,{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$a,[["render",_sfc_render$c],["__scopeId","data-v-36e67f03"]]),EcanBar=withInstall(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,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:"",isShowMarkLine:!1,markLineType:"average",yAxisName:"",xAxisName:""},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]);const _sfc_main$9=vue.defineComponent({name:"EcanScatter",props:{...scatterComponentProps},components:{Spin,Echarts,EcanModal},setup(e){const{pageMode:r,fontFamily:n}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),i=vue.ref(!1),a=usePickComponentStyle(e),o=vue.ref([]),s=vue.ref(),l=vue.computed(()=>i.value?ZOOM_FONT_SIZE:12),c=vue.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),u=vue.computed(()=>{const S=e.xAxisLabelFormatter,P=e.yAxisLabelFormatter;return{textStyle:{fontFamily:vue.unref(n)},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:i.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;i.value=!0,(k=s.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:{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(S,k)}},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"}},yAxis:{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(k){return useValueFormatter(P,k)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:e.yAxisName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:"right"}},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter(k){var V;const{marker:F,seriesName:B}=k,L=((V=k==null?void 0:k.data)==null?void 0:V.record)??{},{name:O,value:D}=L;return useVariablesInText(e.tooltipFormatter,{textData:{marker:F,seriesName:B,a:B,b:O,c:D,...L}})},axisPointer:{type:"cross"},textStyle:{fontSize:l.value},position:e.tooltipPosition||void 0},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:l.value}},series:[{data:vue.unref(o),type:"scatter",symbolSize:e.symbolSize,...vue.unref(c)}]}}),{getGlobalModel:h,setGlobalModel:C}=vue.inject(GLOBAL_MODEL,{getGlobalModel:S=>{},setGlobalModel:(S,P)=>{}}),f=(S=[],P)=>{const{name:k="name",value:F="value"}=P||{};o.value=S.map(B=>({value:[B[k],B[F]],record:B}))};vue.watch(()=>e.data,S=>{(e.dataType==="static"||vue.unref(r)==="design")&&f(S)},{immediate:!0,deep:!0});const g=vue.ref(!1),v=useRequestData(e,S=>{var P,k;f((k=(P=S==null?void 0:S.data)==null?void 0:P.data)==null?void 0:k.rows,e.dataFieldNames)}),d=async()=>{var S,P;if(e.dataType==="request"){g.value=!0;try{const k=await v();f((P=(S=k==null?void 0:k.data)==null?void 0:S.data)==null?void 0:P.rows,e.dataFieldNames)}catch(k){console.error(k)}finally{g.value=!1}}},_=()=>{i.value=!1},x=useEmitEvent(e);C(e.id,{type:e.type,RECORD:""});const m=x("click",S=>{const P=e.id,k=h(P);C(P,{...k,type:e.type,RECORD:S==null?void 0:S.data})});useOnEvent(e,{refreshData:()=>{d()},click:m,resetRecord:()=>{const S=e.id,P=h(S);C(S,{...P,RECORD:""})}});const{setRequest:E}=vue.inject(REQUEST_MODEL,{setRequest:S=>{}});return typeof E=="function"&&E({id:e.id,requestFn:d,sortNum:e.requestSort}),{option:u,style:a,click:m,loading:g,onClose:_,ecanModal:s}}}),Scatter_vue_vue_type_style_index_0_lang="";function _sfc_render$b(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,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$9,[["render",_sfc_render$b]]),EcanScatter=withInstall(Scatter),customGraphProps={...props,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:"",graphicType:"ecanCustomGraph"},customGraphComponentProps=transformToComponentProps(customGraphProps),_sfc_main$8=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$a(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$8,[["render",_sfc_render$a]]),EcanCustomGraph=withInstall(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$7=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:j=>{},setGlobalModel:(j,H)=>{}}),l=vue.ref(),c=vue.ref(!1),u=vue.ref(!1),h=vue.ref(null),C=vue.ref([]),f=vue.ref({});let g;const v=usePickComponentStyle(e),d=vue.ref([]),_=vue.ref([]),x=vue.ref(),m=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 j=l.value.chart.getOption(),{xAxis:H}=j||{};H&&H.length&&(C.value=H[0].data)}},myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){useDownloadFile(e.toolboxDownloadUrl)}},myDataZoom:{show:c.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var j;c.value=!0,(j=x.value)==null||j.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){antDesignVue.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,legend:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(c.value?ZOOM_FONT_SIZE:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:c.value?ZOOM_FONT_SIZE:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:vue.unref(m).map((j,H)=>({name:j.name,itemStyle:{color:e.colors[H]},icon:e.legendType})),formatter:j=>getLegendFormat(e.legendFormatter,{name:j})},tooltip:{trigger:"axis",show:e.tooltipShow,formatter:j=>{var fe;const H=j.length;let Z="",X=e.tooltipFormatter;g=(fe=j[0])==null?void 0:fe.data,X===""&&(X="{marker} {a} {c}");const ae=e.seriesTypes;for(let $=0;$<H;$++){const K=ae[$],{tooltipFormatter:ee}=K||{},{marker:te,seriesName:re,name:ne,value:he,data:ve}=j[$]||{};if($===0){let pe=ne;typeof ne=="string"&&ne[0]==="0"&&!isNaN(+ne)&&(pe=(+ne).toString()),Z+=`${useValueFormatter(e.xAxisLabelFormatter,pe)}<br/>`}Z+=useVariablesInText(ee||X,{textData:{marker:te,name:ne,value:he,seriesName:re,a:re,b:ne,c:he||0,...ve}},{useNewline:!0,useSpace:!0}),Z+="<br/>"}return Z},textStyle:{color:e.tooltipTextStyleColor,fontSize:p.value},position:e.tooltipPosition||void 0},xAxis:{minInterval:e.xAxisMinInterval,type:"category",data:vue.unref(_).map(j=>{let H={};return j&&typeof j=="object"?H={...j}:H={value:j},H}),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(j){return typeof j=="string"&&j[0]==="0"&&!isNaN(+j)&&(j=(+j).toString()),useValueFormatter(e.xAxisLabelFormatter,j)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"},max:e.xAxisMaxValue||null},yAxis:vue.unref(F),series:vue.unref(d)})),E=()=>{c.value=!1},S=(j=[],H=!1)=>{let Z;if(e.dataFieldConfigType==="key"){const ae=H?e.keyTypeDataFieldNames:null;Z=useTransformChartDataByAttrKey(j,ae)}else if(e.dataFieldConfigType==="value"){const ae=H?e.valueTypeDataFieldNames:null;Z=useTransformChartDataByAttrValue(j,ae)}_.value=Z.dimensions;const X=Z.dataset;m.value=Z.dataset,d.value=k(X)},P=(j=[],H,Z=!1)=>{const ae=useTransformChartDataByAttrKey(j,Z?H:null,!0);e.defaultRangeValue&&setDefaultRangeVal({props:e,componentList:vue.unref(a),getGlobalModel:o},ae),_.value=ae.dimensions;const fe=ae.dataset;m.value=ae.dataset,d.value=k(fe)};function k(j){const H=[],Z=j.length,X=e.seriesTypes;for(let ae=0;ae<Z;ae++){const fe=X[ae],{type:$,axisIndex:K}=fe||{};let ee={type:$,yAxisIndex:K,...j[ae]};if($==="line"){const te={};e.shadowColor&&(te.shadowColor=e.shadowColor,te.shadowBlur=e.shadowBlur,te.shadowOffsetY=e.shadowOffsetY,te.shadowOffsetX=e.shadowOffsetX),ee={...ee,symbolSize:e.symbolSize,smooth:e.smooth,itemStyle:{color:e.colors[ae]},areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[ae]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[ae],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...te}}}if($==="bar"){const{gradientShow:te,gradientColors:re,gradientOffset:ne}=e,he={};if(e.barBorderRadius){const ve=e.barBorderRadius.split(",");if(ve!=null&&ve.length){const pe=[];for(const ye of ve){const be=parseFloat(ye);isNaN(be)||pe.push(be)}he.borderRadius=pe}}te&&(he.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[ae]},{offset:ne,color:re[ae]},{offset:1,color:re[ae]}]}),ee={...ee,barWidth:e.barWidth,itemStyle:he}}e.isShowMarkLine&&(ee.markLine={data:[{type:e.markLineType}]}),H.push(ee)}return H}vue.watch(()=>[e.data,e.seriesTypes,e.symbolSize,e.smooth,e.areaStyleOpacity,e.lineStyleWidth,e.barWidth,e.barBorderRadius,e.areaGradientShow,e.areaGradientColor,e.gradientShow,e.gradientColors,e.gradientOffset,e.shadowColor,e.shadowBlur,e.shadowOffsetY,e.shadowOffsetX,e.legendFontSize,e.xAxisLabelFormatter,e.isShowMarkLine,e.markLineType,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([j])=>{(e.dataType==="static"||vue.unref(n)==="design")&&S(j)},{immediate:!0,deep:!0});const F=vue.computed(()=>{const j=e.yAxis;return j==null?void 0:j.map((H,Z)=>({type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:Z===0?e.yAxisLeftSplitLineShow:e.yAxisRightSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:Z===0?e.yAxisLeftSplitLineType:e.yAxisRightSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter(X){return useValueFormatter(H.axisLabelFormatter,X)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:Z===0?e.yAxisLeftName:e.yAxisRightName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:Z===0?"right":"left"},max:e.yAxisMaxValue||null}))}),B=vue.ref(!1),L=useRequestData(e,j=>{var H,Z;S((Z=(H=j==null?void 0:j.data)==null?void 0:H.data)==null?void 0:Z.rows,!0)}),O=async()=>{var j,H;if(e.dataType==="request")try{B.value=!0;const Z=await L();S((H=(j=Z==null?void 0:Z.data)==null?void 0:j.data)==null?void 0:H.rows,!0)}catch(Z){console.error(Z)}finally{B.value=!1}},D=j=>{var ae;const{columns:H=[],rows:Z=[]}=((ae=j==null?void 0:j.data)==null?void 0:ae.data)??{};let X;H.length>0&&(X={name:H[0],types:H.slice(1).map(fe=>({label:fe,value:fe}))}),P(Z,X,!0)},V=useIndicatorData(e,D),M=async()=>{try{B.value=!0;const j=await V();D(j)}catch(j){console.error(j)}finally{B.value=!1}},{loadedData:T}=vue.inject(LOADED_DATA,{loadedData:{}}),w=vue.ref(!1);vue.watch(T,j=>{if(e.dataType==="indicator"){const H=getFixedValueDatas(e.graphicConfig);H!=null&&H.length&&(!vue.unref(w)&&canRequestIndicator(e.graphicConfig,j)?(w.value=!0,b()):canRequestIndicator(e.graphicConfig,j)||(w.value=!1))}},{deep:!0});const b=()=>{switch(e.dataType){case"indicator":canRequestIndicator(e.graphicConfig,vue.unref(T))&&M();break;case"request":O();break}},A=(j,H)=>!!vue.unref(C)[H.value].value.includes(j),R=async()=>{u.value=!1;const j=l.value.chart.getOption();for(let H=0;H<7;H++)await I(j,H)},I=(j,H)=>new Promise(Z=>{setTimeout(()=>{const{series:X,color:ae,xAxis:fe}=j,$=l.value.chart,{splitArea:K={}}=fe[0]||{};X.forEach((ee,te)=>{const re=ee.data;let ne="";H%2?ne=ae[te]+"a8":ne=ae[te],re[h.value].itemStyle={color:ne}}),H%2?(K.show=!0,K.areaStyle.color=vue.unref(C).map((ee,te)=>te===h.value?"#ff003b26":"")):K.show=!1,$.setOption({series:X,xAxis:fe}),Z()},200)});r({refreshData:b});const q=useEmitEvent(e);s(e.id,{type:e.type,RECORD:""});const N=q("click",j=>{const H=o(e.id);s(e.id,{...H,type:e.type,RECORD:e.tooltipShow?g:j==null?void 0:j.data})}),G=j=>{l.value.chart.containPixel("grid",[j.offsetX,j.offsetY])&&N()};e.tooltipShow?f.value["zr:click"]=G:f.value.click=N;const{setRequest:Y}=vue.inject(REQUEST_MODEL,{setRequest:j=>{}});return typeof Y=="function"&&Y({id:e.id,requestFn:b,sortNum:e.requestSort}),useOnEvent(e,{resetRecord:()=>{const j=e.id,H=o(j);s(j,{...H,RECORD:""})},refreshData:b,click:N}),{style:v,option:y,click:N,loading:B,onClose:E,ecanModal:x,echartRef:l,handleLocationOk:R,onFilterOption:A,locationVisible:u,locationValue:h,locationNames:C,eventObj:f}}}),ComboGraph_vue_vue_type_style_index_0_lang="",ComboGraph_vue_vue_type_style_index_1_scoped_db85dc30_lang="",_withScopeId$2=e=>(vue.pushScopeId("data-v-db85dc30"),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$9(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"),C=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(C,{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$7,[["render",_sfc_render$9],["__scopeId","data-v-db85dc30"]]),EcanComboGraph=withInstall(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$6=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([]),C=vue.ref(e.valueTypeDataFieldNames.name),f=vue.computed(()=>{const M=vue.unref(h),T=M.length,w=[];for(let b=0;b<T;b++){const{name:A,data:R=[]}=M[b],I=[{name:A,value:R.map(G=>G.value)}];let q=e.colors[b];if(e.gradientShow){const{gradientOffset:G,gradientColors:Y}=e;q={x:.7,y:0,x2:0,y2:0,colorStops:[{offset:0,color:e.colors[b]},{offset:G,color:Y[b]},{offset:1,color:Y[b]}]}}const N={type:"radar",name:A,data:I,areaStyle:{color:q,opacity:e.areaStyleOpacity},tooltip:{trigger:"item"},symbolSize:e.symbolSize,lineStyle:{width:e.lineStyleWidth},label:{show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor,width:e.labelWidth,overflow:e.labelOverflow,formatter:G=>{const{data:Y,value:U}=G;let j=0,H="0%";if(Y)for(const Z of Y.value)j+=+Z;return j&&(H=`${(U/j*100).toFixed(2)}%`),useVariablesInText(e.labelFormatter,{textData:{value:U,percent:H}},{useNewline:!1,useSpace:!1})}}};w.push(N)}return w}),g=vue.computed(()=>{var A;const M=[],T=[],w=vue.unref(h),b=w.length;for(let R=0;R<b;R++){const{data:I=[]}=w[R];for(let q=0;q<I.length;q++)T.push(I[q].value)}if((A=l.value)!=null&&A.length){const R=T!=null&&T.length?Math.max(...T)*1.2:0;for(const I of l.value)M.push({name:I,max:R})}return M}),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 M;o.value=!0,(M=c.value)==null||M.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:M=>{let T="",w=e.tooltipFormatter;w===""&&(w="{marker} {a} {c}");for(let b=0;b<vue.unref(g).length;b++){const A=vue.unref(g)[b],{marker:R,seriesName:I,value:q}=M||{};b===0&&I&&(T+=`${I}<br/>`),T+=useVariablesInText(w,{textData:{marker:R,name:A.name,value:q[b],a:A.name,b:A.name,c:q[b]||0,type:I}},{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(M=>({name:M.name,icon:e.legendType})),formatter:M=>getLegendFormat(e.legendFormatter,{name:M})},series:vue.unref(f)})),d=()=>{o.value=!1},{getGlobalModel:_,setGlobalModel:x}=vue.inject(GLOBAL_MODEL,{getGlobalModel:M=>{},setGlobalModel:(M,T)=>{}}),m=(M=[],T=!1)=>{let w;if(e.dataFieldConfigType==="key"){const b=T?e.keyTypeDataFieldNames:null;w=useTransformChartDataByAttrKey(M,b)}else if(e.dataFieldConfigType==="value"){const b=T?e.valueTypeDataFieldNames:null;w=useTransformChartDataByAttrValue(M,b)}l.value=w.dimensions,h.value=w.dataset},p=(M=[],T,w=!1)=>{const A=useTransformChartDataByAttrKey(M,w?T:null,!0);l.value=A.dimensions,h.value=A.dataset};vue.watch(()=>[e.data,e.areaStyleOpacity,e.legendFontSize,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll,e.labelFormatter],([M])=>{(e.dataType==="static"||vue.unref(n)==="design")&&m(M)},{immediate:!0,deep:!0});const y=vue.ref(!1),E=useRequestData(e,M=>{var T,w;m((w=(T=M==null?void 0:M.data)==null?void 0:T.data)==null?void 0:w.rows,!0)}),S=async()=>{var M,T;if(e.dataType==="request")try{y.value=!0;const w=await E();m((T=(M=w==null?void 0:w.data)==null?void 0:M.data)==null?void 0:T.rows,!0)}catch(w){console.error(w)}finally{y.value=!1}},P=useEmitEvent(e);x(e.id,{type:e.type,RECORD:""});const k=M=>{const T=M.event.topTarget.__dimIdx;T!==void 0&&P("click",()=>{var R;const{value:w,name:b}=M.data||{},A=_(e.id);x(e.id,{...A,type:e.type,RECORD:{[vue.unref(C)]:((R=vue.unref(g)[T])==null?void 0:R.name)||"",[b]:w[T],seriesName:b}})})()},F=M=>{var A;const{columns:T=[],rows:w=[]}=((A=M==null?void 0:M.data)==null?void 0:A.data)??{};let b;T.length>0&&(C.value=T[0],b={name:T[0],types:T.slice(1).map(R=>({label:R,value:R}))}),p(w,b,!0)},B=useIndicatorData(e,F),L=async()=>{try{y.value=!0;const M=await B();F(M)}catch(M){console.error(M)}finally{y.value=!1}},O=()=>{switch(e.dataType){case"indicator":L();break;case"request":S();break}};useOnEvent(e,{refreshData:O,resetRecord:()=>{const M=e.id,T=_(M);x(M,{...T,RECORD:""})},click:k});const{setRequest:V}=vue.inject(REQUEST_MODEL,{setRequest:M=>{}});return typeof V=="function"&&V({id:e.id,requestFn:O,sortNum:e.requestSort}),r({refreshData:O}),{option:v,style:s,click:k,loading:y,onClose:d,ecanModal:c,echartRef:a}}}),Radar_vue_vue_type_style_index_0_lang="";function _sfc_render$8(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$6,[["render",_sfc_render$8]]),EcanRadar=withInstall(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:700,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$5=vue.defineComponent({name:"EcanBorder",props:{...borderComponentProps},setup(e){const r=usePickComponentStyle(e,["background"]),n=vue.computed(()=>{const{isTransparent:v,gradientShow:d,gradientColor:_,gradientOffset:x,gradientAngle:m,backgroundColor:p}=e;if(d){let y=_;return v&&(y="transparent"),y?{background:`linear-gradient(${m}, ${p}, ${y} ${x*100}%)`}:{}}else return{}}),i=vue.computed(()=>{const{events:v}=e;let d={};return v!=null&&v.length&&v.find(x=>x.emit==="showModal")&&(d={cursor:"pointer"}),d}),{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,d=[],_={};if(v){const x=v.split(",");for(const m of x)(+m||+m==0)&&d.push(+m+"px")}return d!=null&&d.length&&(_.borderRadius=d.join(" ")),_}),C=useEmitEvent(e)("click",()=>{}),f=vue.ref([]);vue.watch(()=>e.data,v=>{f.value=v},{immediate:!0,deep:!0}),useOnEvent(e,{click:C});const{setGlobalModel:g}=vue.inject(GLOBAL_MODEL,{setGlobalModel:(v,d)=>{}});return g(e.id,{type:e.type,value:f}),{style:r,gradientStyle:n,click:C,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$7(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$5,[["render",_sfc_render$7],["__scopeId","data-v-8dd53b8f"]]),EcanBorder=withInstall(Border),tabsProps={...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),tabsEvents=["tabChange"],_sfc_main$4=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,k=>{n.value=k},{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=k=>{const F=vue.unref(l)[k],B=[];if(F)for(const L in F)for(const O of F[L]){const D=vue.unref(o).find(V=>V.id===O);B.push(O),s.includes(D==null?void 0:D.type)&&B.push(...c(O))}return B},u=vue.computed(()=>c(e.id));let h=null;const C=()=>{const k=Array.isArray(vue.unref(g))?vue.unref(g).length-1:0;vue.unref(i)!=="design"&&!e.isAutoScroll&&e.autoSwitch&&k>0&&(h=setInterval(()=>{const F=vue.unref(n)+1;F<=k?n.value=F:n.value=0,v.value=vue.unref(g)[vue.unref(n)],m()},e.autoSwitchInterval*1e3))},f=()=>{clearInterval(h)};vue.onMounted(()=>{vue.unref(i)!=="design"&&C()}),vue.onBeforeUnmount(()=>{f()});const g=vue.ref([]),v=vue.ref({});vue.watch(()=>e.data,k=>{g.value=k,v.value=Array.isArray(k)&&k.length>0?k[0]:{}},{immediate:!0,deep:!0});const d=k=>n.value===k,_=useEmitEvent(e),{setGlobalModel:x}=vue.inject(GLOBAL_MODEL,{setGlobalModel:(k,F)=>{}});x(e.id,{value:v,activeKey:n});const{emitRefreshPage:m}=vue.inject(REFRESH_PAGE,{emitRefreshPage:()=>{}}),p=k=>{let{tab:F,index:B}=k||{};if(k.label){const L=vue.unref(g).findIndex(O=>O.title===k.label);L!==-1&&(B=L,F=vue.unref(g)[L])}_("tabChange",()=>{!isNaN(+B)&&B!==vue.unref(n)&&(v.value=F,n.value=B,m())})()},y=vue.computed(()=>{const k=e.componentList.map(F=>parseFloat(F.left)+parseFloat(F.width)).sort((F,B)=>B-F)[0];return{width:k?k+"px":"100%"}}),E=()=>{vue.unref(i)!=="design"&&f()},S=k=>{var F,B;return k?(B=(F=k==null?void 0:k.parentNode)==null?void 0:F.className)!=null&&B.includes("ecan-")?k.parentNode.getAttribute("cpntid"):S(k.parentNode):""},P=k=>{var F;if(vue.unref(i)!=="design"){const B=(k==null?void 0:k.toElement)||{};if((F=B==null?void 0:B.className)!=null&&F.includes("ecan-"))vue.unref(u).includes(B.getAttribute("cpntid"))||C();else if((B==null?void 0:B.className)==="page-config")C();else{const L=S(B);vue.unref(u).includes(L)||C()}}};return useOnEvent(e,{tabChange:p}),{style:r,activeKey:n,isActive:d,tabChange:p,myData:g,useImagePath,pageMode:i,scrollWrapStyle:y,onMouseEnter:E,onMouseLeave:P}}}),Tabs_vue_vue_type_style_index_0_scoped_5848288f_lang="",_hoisted_1$5=["id"],_hoisted_2$1=["onClick"];function _sfc_render$6(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(C=>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:C=>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=_export_sfc$1(_sfc_main$4,[["render",_sfc_render$6],["__scopeId","data-v-5848288f"]]),EcanTabs=withInstall(Tabs),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$3=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:k=>{},setGlobalModel:(k,F)=>{}}),c=vue.ref([]),u=vue.ref({}),{pageMode:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),C=vue.computed(()=>{if(vue.unref(o)){const k=document.body.clientWidth,F=e.sourceWidth||parseFloat(e.width);return k/F||1}else return 1});function f(k,F){const B=F.find(L=>L.id===e.id);if(B)for(const L of k)L.left=parseFloat(L.left)-parseFloat(B.sourceLeft||B.left)+"px",L.top=parseFloat(L.top)-parseFloat(B.sourceTop||B.top)+"px"}const g=k=>{const F=k.sort((D,V)=>parseFloat(D.top)-parseFloat(V.top))[0],B=k.sort((D,V)=>parseFloat(D.left)-parseFloat(V.left))[0],L=k.map(D=>parseFloat(D.left)+parseFloat(D.width)).sort((D,V)=>V-D)[0],O=k.map(D=>parseFloat(D.top)+parseFloat(D.height)).sort((D,V)=>V-D)[0];if(B&&L&&F&&O){const D=parseFloat(B.left),V=parseFloat(F.top);return{width:L-D,height:O-V,left:D}}else return{width:0,height:0,left:0}},v=vue.ref({}),d=k=>{var A,R;const F=[],{graphicConfig:B,id:L,componentList:O,keyFieldMap:D,unitInterval:V,colNum:M}=e;let T=lodashEs.cloneDeep(O),w=[];if((A=vue.unref(a))!=null&&A.length)for(const I of vue.unref(a))w.push(I),(R=I==null?void 0:I.componentList)!=null&&R.length&&w.push(...I.componentList);if(B.pageMode==="design"&&B.preview){const{containerMap:I}=B.pageConfig||{};w=B.componentList||[],w.push(e),T=moveToComponentList(I,lodashEs.cloneDeep(w),L)}f(T,w);const b=g(T);if(k!=null&&k.length){const{width:I,left:q,height:N}=b;let G=0,Y=0;k.forEach((U,j)=>{U.index=j+1;const H=nanoid(),Z=lodashEs.cloneDeep(T);for(const X of Z){const ae=D.find($=>$.keyName===X.keyName),fe=nanoid();if(X.left=(parseFloat(X.left)+G)*vue.unref(C)+"px",X.top=(parseFloat(X.top)+Y)*vue.unref(C)+"px",X.scale=vue.unref(C),X.id=fe,X.keyName=X.name+"_"+fe,X.unitId=H,ae!=null&&ae.fieldName){const $=X.text.match(/\{(.+?)\}/g);switch(X.type){case"ecanText":{X.data={value:String(U[ae.fieldName])},$!=null&&$.length||(X.text="{value}");break}case"ecanProportion":{X.data={percent:String(U[ae.fieldName])},$!=null&&$.length||(X.text="{percent}");break}}}}M&&U.index%M===0?(G=0,Y+=V+N):G+=V+I,F.push(...Z),v.value[H]=U}),u.value={width:((M||k.length)*(I+V)+q)*vue.unref(C)+"px",height:(M?Math.ceil(k.length/M)*(V+N):V+N)*vue.unref(C)+"px"}}c.value=F},_=k=>{var B;const{rows:F=[]}=((B=k==null?void 0:k.data)==null?void 0:B.data)??{};d(F)},x=useIndicatorData(e,_),m=async()=>{try{n.value=!0;const k=await x();_(k)}catch(k){console.error(k)}finally{n.value=!1}},p=()=>{switch(e.dataType){case"indicator":m();break}};useOnEvent(e,{refreshData:p,resetRecord:()=>{const k=e.id,F=s(k);l(k,{...F,RECORD:""})}}),r({refreshData:p}),l(e.id,{type:e.type,RECORD:""});const{setRequest:E}=vue.inject(REQUEST_MODEL,{setRequest:k=>{}});typeof E=="function"&&E({id:e.id,requestFn:p,sortNum:e.requestSort});const S=useEmitEvent(e);return{loading:n,style:i,myComponentList:c,scrollWrapStyle:u,pageMode:h,click:k=>{let F=k.target;if(F){let B=F.getAttribute("unitId");for(;!B&&!F.className.includes("ecan-");)F=F.parentElement,B=F.getAttribute("unitId");B&&S("click",()=>{const L=s(e.id);l(e.id,{...L,type:e.type,RECORD:vue.unref(v)[B]})})()}}}}}),Circulate_vue_vue_type_style_index_0_scoped_85608bec_lang="",_hoisted_1$4=["id"];function _sfc_render$5(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$3,[["render",_sfc_render$5],["__scopeId","data-v-85608bec"]]),EcanCirculate=withInstall(Circulate),imageProps={...props,name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",target:"self",href:"",linkPage:"",data:{},isHoverStyle:!1,borderRadius:"",isAnimation:!1,animationSource:{name:"",directory:""}},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 _(M,T){var w,b,A=M.length,R,I,q,N;for(b=0;b<A;b+=1)if(w=M[b],"ks"in w&&!w.completed){if(w.completed=!0,w.hasMask){var G=w.masksProperties;for(I=G.length,R=0;R<I;R+=1)if(G[R].pt.k.i)E(G[R].pt.k);else for(N=G[R].pt.k.length,q=0;q<N;q+=1)G[R].pt.k[q].s&&E(G[R].pt.k[q].s[0]),G[R].pt.k[q].e&&E(G[R].pt.k[q].e[0])}w.ty===0?(w.layers=p(w.refId,T),_(w.layers,T)):w.ty===4?y(w.shapes):w.ty===5&&D(w)}}function x(M,T){if(M){var w=0,b=M.length;for(w=0;w<b;w+=1)M[w].t===1&&(M[w].data.layers=p(M[w].data.refId,T),_(M[w].data.layers,T))}}function m(M,T){for(var w=0,b=T.length;w<b;){if(T[w].id===M)return T[w];w+=1}return null}function p(M,T){var w=m(M,T);return w?w.layers.__used?JSON.parse(JSON.stringify(w.layers)):(w.layers.__used=!0,w.layers):null}function y(M){var T,w=M.length,b,A;for(T=w-1;T>=0;T-=1)if(M[T].ty==="sh")if(M[T].ks.k.i)E(M[T].ks.k);else for(A=M[T].ks.k.length,b=0;b<A;b+=1)M[T].ks.k[b].s&&E(M[T].ks.k[b].s[0]),M[T].ks.k[b].e&&E(M[T].ks.k[b].e[0]);else M[T].ty==="gr"&&y(M[T].it)}function E(M){var T,w=M.i.length;for(T=0;T<w;T+=1)M.i[T][0]+=M.v[T][0],M.i[T][1]+=M.v[T][1],M.o[T][0]+=M.v[T][0],M.o[T][1]+=M.v[T][1]}function S(M,T){var w=T?T.split("."):[100,100,100];return M[0]>w[0]?!0:w[0]>M[0]?!1:M[1]>w[1]?!0:w[1]>M[1]?!1:M[2]>w[2]?!0:w[2]>M[2]?!1:null}var P=function(){var M=[4,4,14];function T(b){var A=b.t.d;b.t.d={k:[{s:A,t:0}]}}function w(b){var A,R=b.length;for(A=0;A<R;A+=1)b[A].ty===5&&T(b[A])}return function(b){if(S(M,b.v)&&(w(b.layers),b.assets)){var A,R=b.assets.length;for(A=0;A<R;A+=1)b.assets[A].layers&&w(b.assets[A].layers)}}}(),k=function(){var M=[4,7,99];return function(T){if(T.chars&&!S(M,T.v)){var w,b=T.chars.length;for(w=0;w<b;w+=1){var A=T.chars[w];A.data&&A.data.shapes&&(y(A.data.shapes),A.data.ip=0,A.data.op=99999,A.data.st=0,A.data.sr=1,A.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[w].t||(A.data.shapes.push({ty:"no"}),A.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),F=function(){var M=[5,7,15];function T(b){var A=b.t.p;typeof A.a=="number"&&(A.a={a:0,k:A.a}),typeof A.p=="number"&&(A.p={a:0,k:A.p}),typeof A.r=="number"&&(A.r={a:0,k:A.r})}function w(b){var A,R=b.length;for(A=0;A<R;A+=1)b[A].ty===5&&T(b[A])}return function(b){if(S(M,b.v)&&(w(b.layers),b.assets)){var A,R=b.assets.length;for(A=0;A<R;A+=1)b.assets[A].layers&&w(b.assets[A].layers)}}}(),B=function(){var M=[4,1,9];function T(b){var A,R=b.length,I,q;for(A=0;A<R;A+=1)if(b[A].ty==="gr")T(b[A].it);else if(b[A].ty==="fl"||b[A].ty==="st")if(b[A].c.k&&b[A].c.k[0].i)for(q=b[A].c.k.length,I=0;I<q;I+=1)b[A].c.k[I].s&&(b[A].c.k[I].s[0]/=255,b[A].c.k[I].s[1]/=255,b[A].c.k[I].s[2]/=255,b[A].c.k[I].s[3]/=255),b[A].c.k[I].e&&(b[A].c.k[I].e[0]/=255,b[A].c.k[I].e[1]/=255,b[A].c.k[I].e[2]/=255,b[A].c.k[I].e[3]/=255);else b[A].c.k[0]/=255,b[A].c.k[1]/=255,b[A].c.k[2]/=255,b[A].c.k[3]/=255}function w(b){var A,R=b.length;for(A=0;A<R;A+=1)b[A].ty===4&&T(b[A].shapes)}return function(b){if(S(M,b.v)&&(w(b.layers),b.assets)){var A,R=b.assets.length;for(A=0;A<R;A+=1)b.assets[A].layers&&w(b.assets[A].layers)}}}(),L=function(){var M=[4,4,18];function T(b){var A,R=b.length,I,q;for(A=R-1;A>=0;A-=1)if(b[A].ty==="sh")if(b[A].ks.k.i)b[A].ks.k.c=b[A].closed;else for(q=b[A].ks.k.length,I=0;I<q;I+=1)b[A].ks.k[I].s&&(b[A].ks.k[I].s[0].c=b[A].closed),b[A].ks.k[I].e&&(b[A].ks.k[I].e[0].c=b[A].closed);else b[A].ty==="gr"&&T(b[A].it)}function w(b){var A,R,I=b.length,q,N,G,Y;for(R=0;R<I;R+=1){if(A=b[R],A.hasMask){var U=A.masksProperties;for(N=U.length,q=0;q<N;q+=1)if(U[q].pt.k.i)U[q].pt.k.c=U[q].cl;else for(Y=U[q].pt.k.length,G=0;G<Y;G+=1)U[q].pt.k[G].s&&(U[q].pt.k[G].s[0].c=U[q].cl),U[q].pt.k[G].e&&(U[q].pt.k[G].e[0].c=U[q].cl)}A.ty===4&&T(A.shapes)}}return function(b){if(S(M,b.v)&&(w(b.layers),b.assets)){var A,R=b.assets.length;for(A=0;A<R;A+=1)b.assets[A].layers&&w(b.assets[A].layers)}}}();function O(M){M.__complete||(B(M),P(M),k(M),F(M),L(M),_(M.layers,M.assets),x(M.chars,M.assets),M.__complete=!0)}function D(M){M.t.a.length===0&&"m"in M.t.p}var V={};return V.completeData=O,V.checkColors=B,V.checkChars=k,V.checkPathProperties=F,V.checkShapes=L,V.completeLayers=_,V}if(o.dataManager||(o.dataManager=v()),o.assetLoader||(o.assetLoader=function(){function _(m){var p=m.getResponseHeader("content-type");return p&&m.responseType==="json"&&p.indexOf("json")!==-1||m.response&&_typeof$5(m.response)==="object"?m.response:m.response&&typeof m.response=="string"?JSON.parse(m.response):m.responseText?JSON.parse(m.responseText):null}function x(m,p,y,E){var S,P=new XMLHttpRequest;try{P.responseType="json"}catch{}P.onreadystatechange=function(){if(P.readyState===4)if(P.status===200)S=_(P),y(S);else try{S=_(P),y(S)}catch(k){E&&E(k)}};try{P.open(["G","E","T"].join(""),m,!0)}catch{P.open(["G","E","T"].join(""),p+"/"+m,!0)}P.send()}return{load:x}}()),g.data.type==="loadAnimation")o.assetLoader.load(g.data.path,g.data.fullPath,function(_){o.dataManager.completeData(_),o.postMessage({id:g.data.id,payload:_,status:"success"})},function(){o.postMessage({id:g.data.id,status:"error"})});else if(g.data.type==="complete"){var d=g.data.animation;o.dataManager.completeData(d),o.postMessage({id:g.data.id,payload:d,status:"success"})}else g.data.type==="loadData"&&o.assetLoader.load(g.data.path,g.data.fullPath,function(_){o.postMessage({id:g.data.id,payload:_,status:"success"})},function(){o.postMessage({id:g.data.id,status:"error"})})}),i.onmessage=function(f){var g=f.data,v=g.id,d=r[v];r[v]=null,g.status==="success"?d.onComplete(g.payload):d.onError&&d.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 d=c(g,v);i.postMessage({type:"loadAnimation",path:f,fullPath:window.location.origin+window.location.pathname,id:d})}function h(f,g,v){l();var d=c(g,v);i.postMessage({type:"loadData",path:f,fullPath:window.location.origin+window.location.pathname,id:d})}function C(f,g,v){l();var d=c(g,v);i.postMessage({type:"complete",animation:f,id:d})}return{loadAnimation:u,loadData:h,completeAnimation:C}}(),ImagePreloader=function(){var e=function(){var x=createTag("canvas");x.width=1,x.height=1;var m=x.getContext("2d");return m.fillStyle="rgba(0,0,0,0)",m.fillRect(0,0,1,1),x}();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(x,m,p){var y="";if(x.e)y=x.p;else if(m){var E=x.p;E.indexOf("images/")!==-1&&(E=E.split("/")[1]),y=m+E}else y=p,y+=x.u?x.u:"",y+=x.p;return y}function a(x){var m=0,p=setInterval((function(){var y=x.getBBox();(y.width||m>500)&&(this._imageLoaded(),clearInterval(p)),m+=1}).bind(this),50)}function o(x){var m=i(x,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",m),this._elementHelper.append?this._elementHelper.append(p):this._elementHelper.appendChild(p);var y={img:p,assetData:x};return y}function s(x){var m=i(x,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=m;var y={img:p,assetData:x};return y}function l(x){var m={assetData:x},p=i(x,this.assetsPath,this.path);return dataManager.loadData(p,(function(y){m.img=y,this._footageLoaded()}).bind(this),(function(){m.img={},this._footageLoaded()}).bind(this)),m}function c(x,m){this.imagesLoadedCb=m;var p,y=x.length;for(p=0;p<y;p+=1)x[p].layers||(!x[p].t||x[p].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(x[p]))):x[p].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(x[p]))))}function u(x){this.path=x||""}function h(x){this.assetsPath=x||""}function C(x){for(var m=0,p=this.images.length;m<p;){if(this.images[m].assetData===x)return this.images[m].img;m+=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 d(x,m){x==="svg"?(this._elementHelper=m,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function _(){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 _.prototype={loadAssets:c,setAssetsPath:h,setPath:u,loadedImages:g,loadedFootages:v,destroy:f,getAsset:C,createImgData:s,createImageData:o,imageLoaded:r,footageLoaded:n,setCacheType:d},_}();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 w=0,b=T.target;w<i;)r[w].animation===b&&(r.splice(w,1),w-=1,i-=1,b.isPaused||C()),w+=1}function c(T,w){if(!T)return null;for(var b=0;b<i;){if(r[b].elem===T&&r[b].elem!==null)return r[b].animation;b+=1}var A=new AnimationItem;return f(A,T),A.setData(T,w),A}function u(){var T,w=r.length,b=[];for(T=0;T<w;T+=1)b.push(r[T].animation);return b}function h(){a+=1,B()}function C(){a-=1}function f(T,w){T.addEventListener("destroy",l),T.addEventListener("_active",h),T.addEventListener("_idle",C),r.push({elem:w,animation:T}),i+=1}function g(T){var w=new AnimationItem;return f(w,null),w.setParams(T),w}function v(T,w){var b;for(b=0;b<i;b+=1)r[b].animation.setSpeed(T,w)}function d(T,w){var b;for(b=0;b<i;b+=1)r[b].animation.setDirection(T,w)}function _(T){var w;for(w=0;w<i;w+=1)r[w].animation.play(T)}function x(T){var w=T-n,b;for(b=0;b<i;b+=1)r[b].animation.advanceTime(w);n=T,a&&!s?window.requestAnimationFrame(x):o=!0}function m(T){n=T,window.requestAnimationFrame(x)}function p(T){var w;for(w=0;w<i;w+=1)r[w].animation.pause(T)}function y(T,w,b){var A;for(A=0;A<i;A+=1)r[A].animation.goToAndStop(T,w,b)}function E(T){var w;for(w=0;w<i;w+=1)r[w].animation.stop(T)}function S(T){var w;for(w=0;w<i;w+=1)r[w].animation.togglePause(T)}function P(T){var w;for(w=i-1;w>=0;w-=1)r[w].animation.destroy(T)}function k(T,w,b){var A=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),R,I=A.length;for(R=0;R<I;R+=1)b&&A[R].setAttribute("data-bm-type",b),c(A[R],T);if(w&&I===0){b||(b="svg");var q=document.getElementsByTagName("body")[0];q.innerText="";var N=createTag("div");N.style.width="100%",N.style.height="100%",N.setAttribute("data-bm-type",b),q.appendChild(N),c(N,T)}}function F(){var T;for(T=0;T<i;T+=1)r[T].animation.resize()}function B(){!s&&a&&o&&(window.requestAnimationFrame(m),o=!1)}function L(){s=!0}function O(){s=!1,B()}function D(T,w){var b;for(b=0;b<i;b+=1)r[b].animation.setVolume(T,w)}function V(T){var w;for(w=0;w<i;w+=1)r[w].animation.mute(T)}function M(T){var w;for(w=0;w<i;w+=1)r[w].animation.unmute(T)}return e.registerAnimation=c,e.loadAnimation=g,e.setSpeed=v,e.setDirection=d,e.play=_,e.pause=p,e.stop=E,e.togglePause=S,e.searchAnimations=k,e.resize=F,e.goToAndStop=y,e.destroy=P,e.freeze=L,e.unfreeze=O,e.setVolume=D,e.mute=V,e.unmute=M,e.getRegisteredAnimations=u,e}(),BezierFactory=function(){var e={};e.getBezierEasing=n;var r={};function n(m,p,y,E,S){var P=S||("bez_"+m+"_"+p+"_"+y+"_"+E).replace(/\./g,"p");if(r[P])return r[P];var k=new x([m,p,y,E]);return r[P]=k,k}var i=4,a=.001,o=1e-7,s=10,l=11,c=1/(l-1),u=typeof Float32Array=="function";function h(m,p){return 1-3*p+3*m}function C(m,p){return 3*p-6*m}function f(m){return 3*m}function g(m,p,y){return((h(p,y)*m+C(p,y))*m+f(p))*m}function v(m,p,y){return 3*h(p,y)*m*m+2*C(p,y)*m+f(p)}function d(m,p,y,E,S){var P,k,F=0;do k=p+(y-p)/2,P=g(k,E,S)-m,P>0?y=k:p=k;while(Math.abs(P)>o&&++F<s);return k}function _(m,p,y,E){for(var S=0;S<i;++S){var P=v(p,y,E);if(P===0)return p;var k=g(p,y,E)-m;p-=k/P}return p}function x(m){this._p=m,this._mSampleValues=u?new Float32Array(l):new Array(l),this._precomputed=!1,this.get=this.get.bind(this)}return x.prototype={get:function(p){var y=this._p[0],E=this._p[1],S=this._p[2],P=this._p[3];return this._precomputed||this._precompute(),y===E&&S===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],S=this._p[3];this._precomputed=!0,(p!==y||E!==S)&&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],S=this._mSampleValues,P=0,k=1,F=l-1;k!==F&&S[k]<=p;++k)P+=c;--k;var B=(p-S[k])/(S[k+1]-S[k]),L=P+B*c,O=v(L,y,E);return O>=a?_(p,L,y,E):O===0?L:d(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,d,_,x){var m=f*d+g*_+v*x-_*d-x*f-v*g;return m>-.001&&m<.001}function n(f,g,v,d,_,x,m,p,y){if(v===0&&x===0&&y===0)return r(f,g,d,_,m,p);var E=e.sqrt(e.pow(d-f,2)+e.pow(_-g,2)+e.pow(x-v,2)),S=e.sqrt(e.pow(m-f,2)+e.pow(p-g,2)+e.pow(y-v,2)),P=e.sqrt(e.pow(m-d,2)+e.pow(p-_,2)+e.pow(y-x,2)),k;return E>S?E>P?k=E-S-P:k=P-S-E:P>S?k=P-S-E:k=S-E-P,k>-1e-4&&k<1e-4}var i=function(){return function(f,g,v,d){var _=getDefaultCurveSegments(),x,m,p,y,E,S=0,P,k=[],F=[],B=bezierLengthPool.newElement();for(p=v.length,x=0;x<_;x+=1){for(E=x/(_-1),P=0,m=0;m<p;m+=1)y=bmPow(1-E,3)*f[m]+3*bmPow(1-E,2)*E*v[m]+3*(1-E)*bmPow(E,2)*d[m]+bmPow(E,3)*g[m],k[m]=y,F[m]!==null&&(P+=bmPow(k[m]-F[m],2)),F[m]=k[m];P&&(P=bmSqrt(P),S+=P),B.percents[x]=E,B.lengths[x]=S}return B.addedLength=S,B}}();function a(f){var g=segmentsLengthPool.newElement(),v=f.c,d=f.v,_=f.o,x=f.i,m,p=f._length,y=g.lengths,E=0;for(m=0;m<p-1;m+=1)y[m]=i(d[m],d[m+1],_[m],x[m+1]),E+=y[m].addedLength;return v&&p&&(y[m]=i(d[m],d[0],_[m],x[0]),E+=y[m].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,d,_){var x=(g[0]+"_"+g[1]+"_"+v[0]+"_"+v[1]+"_"+d[0]+"_"+d[1]+"_"+_[0]+"_"+_[1]).replace(/\./g,"p");if(!f[x]){var m=getDefaultCurveSegments(),p,y,E,S,P,k=0,F,B,L=null;g.length===2&&(g[0]!==v[0]||g[1]!==v[1])&&r(g[0],g[1],v[0],v[1],g[0]+d[0],g[1]+d[1])&&r(g[0],g[1],v[0],v[1],v[0]+_[0],v[1]+_[1])&&(m=2);var O=new o(m);for(E=d.length,p=0;p<m;p+=1){for(B=createSizedArray(E),P=p/(m-1),F=0,y=0;y<E;y+=1)S=bmPow(1-P,3)*g[y]+3*bmPow(1-P,2)*P*(g[y]+d[y])+3*(1-P)*bmPow(P,2)*(v[y]+_[y])+bmPow(P,3)*v[y],B[y]=S,L!==null&&(F+=bmPow(B[y]-L[y],2));F=bmSqrt(F),k+=F,O.points[p]=new s(F,B),L=B}O.segmentLength=k,f[x]=O}return f[x]}}();function c(f,g){var v=g.percents,d=g.lengths,_=v.length,x=bmFloor((_-1)*f),m=f*g.addedLength,p=0;if(x===_-1||x===0||m===d[x])return v[x];for(var y=d[x]>m?-1:1,E=!0;E;)if(d[x]<=m&&d[x+1]>m?(p=(m-d[x])/(d[x+1]-d[x]),E=!1):x+=y,x<0||x>=_-1){if(x===_-1)return v[x];E=!1}return v[x]+(v[x+1]-v[x])*p}function u(f,g,v,d,_,x){var m=c(_,x),p=1-m,y=e.round((p*p*p*f[0]+(m*p*p+p*m*p+p*p*m)*v[0]+(m*m*p+p*m*m+m*p*m)*d[0]+m*m*m*g[0])*1e3)/1e3,E=e.round((p*p*p*f[1]+(m*p*p+p*m*p+p*p*m)*v[1]+(m*m*p+p*m*m+m*p*m)*d[1]+m*m*m*g[1])*1e3)/1e3;return[y,E]}var h=createTypedArray("float32",8);function C(f,g,v,d,_,x,m){_<0?_=0:_>1&&(_=1);var p=c(_,m);x=x>1?1:x;var y=c(x,m),E,S=f.length,P=1-p,k=1-y,F=P*P*P,B=p*P*P*3,L=p*p*P*3,O=p*p*p,D=P*P*k,V=p*P*k+P*p*k+P*P*y,M=p*p*k+P*p*y+p*P*y,T=p*p*y,w=P*k*k,b=p*k*k+P*y*k+P*k*y,A=p*y*k+P*y*y+p*k*y,R=p*y*y,I=k*k*k,q=y*k*k+k*y*k+k*k*y,N=y*y*k+k*y*y+y*k*y,G=y*y*y;for(E=0;E<S;E+=1)h[E*4]=e.round((F*f[E]+B*v[E]+L*d[E]+O*g[E])*1e3)/1e3,h[E*4+1]=e.round((D*f[E]+V*v[E]+M*d[E]+T*g[E])*1e3)/1e3,h[E*4+2]=e.round((w*f[E]+b*v[E]+A*d[E]+R*g[E])*1e3)/1e3,h[E*4+3]=e.round((I*f[E]+q*v[E]+N*d[E]+G*g[E])*1e3)/1e3;return h}return{getSegmentsLength:a,getNewSegment:C,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 C,f,g,v,d,_,x=u.t-n,m=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>=x||e<m){var E=e>=x?y.points.length-1:0;for(f=y.points[E].point.length,C=0;C<f;C+=1)i[C]=y.points[E].point[C]}else{h.__fnct?_=h.__fnct:(_=BezierFactory.getBezierEasing(c.o.x,c.o.y,c.i.x,c.i.y,c.n).get,h.__fnct=_),g=_((e-m)/(x-m));var S=y.segmentLength*g,P,k=r.lastFrame<e&&r._lastKeyframeIndex===o?r._lastAddedLength:0;for(d=r.lastFrame<e&&r._lastKeyframeIndex===o?r._lastPoint:0,l=!0,v=y.points.length;l;){if(k+=y.points[d].partialLength,S===0||g===0||d===y.points.length-1){for(f=y.points[d].point.length,C=0;C<f;C+=1)i[C]=y.points[d].point[C];break}else if(S>=k&&S<k+y.points[d+1].partialLength){for(P=(S-k)/y.points[d+1].partialLength,f=y.points[d].point.length,C=0;C<f;C+=1)i[C]=y.points[d].point[C]+(y.points[d+1].point[C]-y.points[d].point[C])*P;break}d<v-1?d+=1:l=!1}r._lastPoint=d,r._lastAddedLength=k-y.points[d].partialLength,r._lastKeyframeIndex=o}}else{var F,B,L,O,D;if(s=c.s.length,p=u.s||c.e,this.sh&&c.h!==1)if(e>=x)i[0]=p[0],i[1]=p[1],i[2]=p[2];else if(e<=m)i[0]=c.s[0],i[1]=c.s[1],i[2]=c.s[2];else{var V=createQuaternion(c.s),M=createQuaternion(p),T=(e-m)/(x-m);quaternionToEuler(i,slerp(V,M,T))}else for(o=0;o<s;o+=1)c.h!==1&&(e>=x?g=1:e<m?g=0:(c.o.x.constructor===Array?(h.__fnct||(h.__fnct=[]),h.__fnct[o]?_=h.__fnct[o]:(F=c.o.x[o]===void 0?c.o.x[0]:c.o.x[o],B=c.o.y[o]===void 0?c.o.y[0]:c.o.y[o],L=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],_=BezierFactory.getBezierEasing(F,B,L,O).get,h.__fnct[o]=_)):h.__fnct?_=h.__fnct:(F=c.o.x,B=c.o.y,L=c.i.x,O=c.i.y,_=BezierFactory.getBezierEasing(F,B,L,O).get,c.keyframeMetadata=_),g=_((e-m)/(x-m)))),p=u.s||c.e,D=c.h===1?c.s[o]:c.s[o]+(p[o]-c.s[o])*g,this.propType==="multidimensional"?i[o]=D:i=D}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],C=r[3],f,g,v,d,_;return g=a*c+o*u+s*h+l*C,g<0&&(g=-g,c=-c,u=-u,h=-h,C=-C),1-g>1e-6?(f=Math.acos(g),v=Math.sin(f),d=Math.sin((1-n)*f)/v,_=Math.sin(n*f)/v):(d=1-n,_=n),i[0]=d*a+_*c,i[1]=d*o+_*u,i[2]=d*s+_*h,i[3]=d*l+_*C,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,C=l*c*s+a*o*u,f=l*o*s+a*c*u,g=a*c*s-l*o*u;return[C,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(x,m,p){var y=p.lastIndex,E,S,P,k,F,B,L,O,D,V=this.keyframes;if(x<V[0].t-this.offsetTime)E=V[0].s[0],P=!0,y=0;else if(x>=V[V.length-1].t-this.offsetTime)E=V[V.length-1].s?V[V.length-1].s[0]:V[V.length-2].e[0],P=!0;else{for(var M=y,T=V.length-1,w=!0,b,A,R;w&&(b=V[M],A=V[M+1],!(A.t-this.offsetTime>x));)M<T-1?M+=1:w=!1;if(R=this.keyframesMetadata[M]||{},P=b.h===1,y=M,!P){if(x>=A.t-this.offsetTime)O=1;else if(x<b.t-this.offsetTime)O=0;else{var I;R.__fnct?I=R.__fnct:(I=BezierFactory.getBezierEasing(b.o.x,b.o.y,b.i.x,b.i.y).get,R.__fnct=I),O=I((x-(b.t-this.offsetTime))/(A.t-this.offsetTime-(b.t-this.offsetTime)))}S=A.s?A.s[0]:b.e[0]}E=b.s[0]}for(B=m._length,L=E.i[0].length,p.lastIndex=y,k=0;k<B;k+=1)for(F=0;F<L;F+=1)D=P?E.i[k][F]:E.i[k][F]+(S.i[k][F]-E.i[k][F])*O,m.i[k][F]=D,D=P?E.o[k][F]:E.o[k][F]+(S.o[k][F]-E.o[k][F])*O,m.o[k][F]=D,D=P?E.v[k][F]:E.v[k][F]+(S.v[k][F]-E.v[k][F])*O,m.v[k][F]=D}function n(){var x=this.comp.renderedFrame-this.offsetTime,m=this.keyframes[0].t-this.offsetTime,p=this.keyframes[this.keyframes.length-1].t-this.offsetTime,y=this._caching.lastFrame;return y!==e&&(y<m&&x<m||y>p&&x>p)||(this._caching.lastIndex=y<x?this._caching.lastIndex:0,this.interpolateShape(x,this.pv,this._caching)),this._caching.lastFrame=x,this.pv}function i(){this.paths=this.localShapeCollection}function a(x,m){if(x._length!==m._length||x.c!==m.c)return!1;var p,y=x._length;for(p=0;p<y;p+=1)if(x.v[p][0]!==m.v[p][0]||x.v[p][1]!==m.v[p][1]||x.o[p][0]!==m.o[p][0]||x.o[p][1]!==m.o[p][1]||x.i[p][0]!==m.i[p][0]||x.i[p][1]!==m.i[p][1])return!1;return!0}function o(x){a(this.v,x)||(this.v=shapePool.clone(x),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 x;this.kf?x=this.pv:this.data.ks?x=this.data.ks.k:x=this.data.pt.k;var m,p=this.effectsSequence.length;for(m=0;m<p;m+=1)x=this.effectsSequence[m](x);this.setVValue(x),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function l(x,m,p){this.propType="shape",this.comp=x.comp,this.container=x,this.elem=x,this.data=m,this.k=!1,this.kf=!1,this._mdf=!1;var y=p===3?m.pt.k:m.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(x){this.effectsSequence.push(x),this.container.addDynamicProperty(this)}l.prototype.interpolateShape=r,l.prototype.getValue=s,l.prototype.setVValue=o,l.prototype.addEffect=c;function u(x,m,p){this.propType="shape",this.comp=x.comp,this.elem=x,this.container=x,this.offsetTime=x.data.st,this.keyframes=p===3?m.pt.k:m.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 x=roundCorner;function m(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 m.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],S=this.s.v[0]/2,P=this.s.v[1]/2,k=this.d!==3,F=this.v;F.v[0][0]=y,F.v[0][1]=E-P,F.v[1][0]=k?y+S:y-S,F.v[1][1]=E,F.v[2][0]=y,F.v[2][1]=E+P,F.v[3][0]=k?y-S:y+S,F.v[3][1]=E,F.i[0][0]=k?y-S*x:y+S*x,F.i[0][1]=E-P,F.i[1][0]=k?y+S:y-S,F.i[1][1]=E-P*x,F.i[2][0]=k?y+S*x:y-S*x,F.i[2][1]=E+P,F.i[3][0]=k?y-S:y+S,F.i[3][1]=E+P*x,F.o[0][0]=k?y+S*x:y-S*x,F.o[0][1]=E-P,F.o[1][0]=k?y+S:y-S,F.o[1][1]=E+P*x,F.o[2][0]=k?y-S*x:y+S*x,F.o[2][1]=E+P,F.o[3][0]=k?y-S:y+S,F.o[3][1]=E-P*x}},extendPrototype([DynamicPropertyContainer],m),m}(),C=function(){function x(m,p){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=m,this.comp=m.comp,this.data=p,this.frameId=-1,this.d=p.d,this.initDynamicPropertyContainer(m),p.sy===1?(this.ir=PropertyFactory.getProp(m,p.ir,0,0,this),this.is=PropertyFactory.getProp(m,p.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(m,p.pt,0,0,this),this.p=PropertyFactory.getProp(m,p.p,1,0,this),this.r=PropertyFactory.getProp(m,p.r,0,degToRads,this),this.or=PropertyFactory.getProp(m,p.or,0,0,this),this.os=PropertyFactory.getProp(m,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 x.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,S=this.or.v,P=this.ir.v,k=this.os.v,F=this.is.v,B=2*Math.PI*S/(p*2),L=2*Math.PI*P/(p*2),O,D,V,M,T=-Math.PI/2;T+=this.r.v;var w=this.data.d===3?-1:1;for(this.v._length=0,O=0;O<p;O+=1){D=E?S:P,V=E?k:F,M=E?B:L;var b=D*Math.cos(T),A=D*Math.sin(T),R=b===0&&A===0?0:A/Math.sqrt(b*b+A*A),I=b===0&&A===0?0:-b/Math.sqrt(b*b+A*A);b+=+this.p.v[0],A+=+this.p.v[1],this.v.setTripleAt(b,A,b-R*M*V*w,A-I*M*V*w,b+R*M*V*w,A+I*M*V*w,O,!0),E=!E,T+=y*w}},convertPolygonToPath:function(){var p=Math.floor(this.pt.v),y=Math.PI*2/p,E=this.or.v,S=this.os.v,P=2*Math.PI*E/(p*4),k,F=-Math.PI*.5,B=this.data.d===3?-1:1;for(F+=this.r.v,this.v._length=0,k=0;k<p;k+=1){var L=E*Math.cos(F),O=E*Math.sin(F),D=L===0&&O===0?0:O/Math.sqrt(L*L+O*O),V=L===0&&O===0?0:-L/Math.sqrt(L*L+O*O);L+=+this.p.v[0],O+=+this.p.v[1],this.v.setTripleAt(L,O,L-D*P*S*B,O-V*P*S*B,L+D*P*S*B,O+V*P*S*B,k,!0),F+=y*B}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],x),x}(),f=function(){function x(m,p){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=m,this.comp=m.comp,this.frameId=-1,this.d=p.d,this.initDynamicPropertyContainer(m),this.p=PropertyFactory.getProp(m,p.p,1,0,this),this.s=PropertyFactory.getProp(m,p.s,1,0,this),this.r=PropertyFactory.getProp(m,p.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return x.prototype={convertRectToPath:function(){var p=this.p.v[0],y=this.p.v[1],E=this.s.v[0]/2,S=this.s.v[1]/2,P=bmMin(E,S,this.r.v),k=P*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(p+E,y-S+P,p+E,y-S+P,p+E,y-S+k,0,!0),this.v.setTripleAt(p+E,y+S-P,p+E,y+S-k,p+E,y+S-P,1,!0),P!==0?(this.v.setTripleAt(p+E-P,y+S,p+E-P,y+S,p+E-k,y+S,2,!0),this.v.setTripleAt(p-E+P,y+S,p-E+k,y+S,p-E+P,y+S,3,!0),this.v.setTripleAt(p-E,y+S-P,p-E,y+S-P,p-E,y+S-k,4,!0),this.v.setTripleAt(p-E,y-S+P,p-E,y-S+k,p-E,y-S+P,5,!0),this.v.setTripleAt(p-E+P,y-S,p-E+P,y-S,p-E+k,y-S,6,!0),this.v.setTripleAt(p+E-P,y-S,p+E-k,y-S,p+E-P,y-S,7,!0)):(this.v.setTripleAt(p-E,y+S,p-E+k,y+S,p-E,y+S,2),this.v.setTripleAt(p-E,y-S,p-E,y-S+k,p-E,y-S,3))):(this.v.setTripleAt(p+E,y-S+P,p+E,y-S+k,p+E,y-S+P,0,!0),P!==0?(this.v.setTripleAt(p+E-P,y-S,p+E-P,y-S,p+E-k,y-S,1,!0),this.v.setTripleAt(p-E+P,y-S,p-E+k,y-S,p-E+P,y-S,2,!0),this.v.setTripleAt(p-E,y-S+P,p-E,y-S+P,p-E,y-S+k,3,!0),this.v.setTripleAt(p-E,y+S-P,p-E,y+S-k,p-E,y+S-P,4,!0),this.v.setTripleAt(p-E+P,y+S,p-E+P,y+S,p-E+k,y+S,5,!0),this.v.setTripleAt(p+E-P,y+S,p+E-k,y+S,p+E-P,y+S,6,!0),this.v.setTripleAt(p+E,y+S-P,p+E,y+S-P,p+E,y+S-k,7,!0)):(this.v.setTripleAt(p-E,y-S,p-E+k,y-S,p-E,y-S,1,!0),this.v.setTripleAt(p-E,y+S,p-E,y+S-k,p-E,y+S,2,!0),this.v.setTripleAt(p+E,y+S,p+E-k,y+S,p+E,y+S,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],x),x}();function g(x,m,p){var y;if(p===3||p===4){var E=p===3?m.pt:m.ks,S=E.k;S.length?y=new u(x,m,p):y=new l(x,m,p)}else p===5?y=new f(x,m):p===6?y=new h(x,m):p===7&&(y=new C(x,m));return y.k&&x.addDynamicProperty(y),y}function v(){return l}function d(){return u}var _={};return _.getShapeProp=g,_.getConstructorFunction=v,_.getKeyframedConstructorFunction=d,_}();/*!
|
|
121
|
+
Transformation Matrix v2.0
|
|
122
|
+
(c) Epistemex 2014-2015
|
|
123
|
+
www.epistemex.com
|
|
124
|
+
By Ken Fyrstenberg
|
|
125
|
+
Contributions by leeoniya.
|
|
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(b){if(b===0)return this;var A=e(b),R=r(b);return this._t(A,-R,0,0,R,A,0,0,0,0,1,0,0,0,0,1)}function s(b){if(b===0)return this;var A=e(b),R=r(b);return this._t(1,0,0,0,0,A,-R,0,0,R,A,0,0,0,0,1)}function l(b){if(b===0)return this;var A=e(b),R=r(b);return this._t(A,0,R,0,0,1,0,0,-R,0,A,0,0,0,0,1)}function c(b){if(b===0)return this;var A=e(b),R=r(b);return this._t(A,-R,0,0,R,A,0,0,0,0,1,0,0,0,0,1)}function u(b,A){return this._t(1,A,b,1,0,0)}function h(b,A){return this.shear(n(b),n(A))}function C(b,A){var R=e(A),I=r(A);return this._t(R,I,0,0,-I,R,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,n(b),1,0,0,0,0,1,0,0,0,0,1)._t(R,-I,0,0,I,R,0,0,0,0,1,0,0,0,0,1)}function f(b,A,R){return!R&&R!==0&&(R=1),b===1&&A===1&&R===1?this:this._t(b,0,0,0,0,A,0,0,0,0,R,0,0,0,0,1)}function g(b,A,R,I,q,N,G,Y,U,j,H,Z,X,ae,fe,$){return this.props[0]=b,this.props[1]=A,this.props[2]=R,this.props[3]=I,this.props[4]=q,this.props[5]=N,this.props[6]=G,this.props[7]=Y,this.props[8]=U,this.props[9]=j,this.props[10]=H,this.props[11]=Z,this.props[12]=X,this.props[13]=ae,this.props[14]=fe,this.props[15]=$,this}function v(b,A,R){return R=R||0,b!==0||A!==0||R!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,b,A,R,1):this}function d(b,A,R,I,q,N,G,Y,U,j,H,Z,X,ae,fe,$){var K=this.props;if(b===1&&A===0&&R===0&&I===0&&q===0&&N===1&&G===0&&Y===0&&U===0&&j===0&&H===1&&Z===0)return K[12]=K[12]*b+K[15]*X,K[13]=K[13]*N+K[15]*ae,K[14]=K[14]*H+K[15]*fe,K[15]*=$,this._identityCalculated=!1,this;var ee=K[0],te=K[1],re=K[2],ne=K[3],he=K[4],ve=K[5],pe=K[6],ye=K[7],be=K[8],ce=K[9],de=K[10],ue=K[11],Ce=K[12],_e=K[13],Ae=K[14],we=K[15];return K[0]=ee*b+te*q+re*U+ne*X,K[1]=ee*A+te*N+re*j+ne*ae,K[2]=ee*R+te*G+re*H+ne*fe,K[3]=ee*I+te*Y+re*Z+ne*$,K[4]=he*b+ve*q+pe*U+ye*X,K[5]=he*A+ve*N+pe*j+ye*ae,K[6]=he*R+ve*G+pe*H+ye*fe,K[7]=he*I+ve*Y+pe*Z+ye*$,K[8]=be*b+ce*q+de*U+ue*X,K[9]=be*A+ce*N+de*j+ue*ae,K[10]=be*R+ce*G+de*H+ue*fe,K[11]=be*I+ce*Y+de*Z+ue*$,K[12]=Ce*b+_e*q+Ae*U+we*X,K[13]=Ce*A+_e*N+Ae*j+we*ae,K[14]=Ce*R+_e*G+Ae*H+we*fe,K[15]=Ce*I+_e*Y+Ae*Z+we*$,this._identityCalculated=!1,this}function _(b){var A=b.props;return this.transform(A[0],A[1],A[2],A[3],A[4],A[5],A[6],A[7],A[8],A[9],A[10],A[11],A[12],A[13],A[14],A[15])}function x(){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 m(b){for(var A=0;A<16;){if(b.props[A]!==this.props[A])return!1;A+=1}return!0}function p(b){var A;for(A=0;A<16;A+=1)b.props[A]=this.props[A];return b}function y(b){var A;for(A=0;A<16;A+=1)this.props[A]=b[A]}function E(b,A,R){return{x:b*this.props[0]+A*this.props[4]+R*this.props[8]+this.props[12],y:b*this.props[1]+A*this.props[5]+R*this.props[9]+this.props[13],z:b*this.props[2]+A*this.props[6]+R*this.props[10]+this.props[14]}}function S(b,A,R){return b*this.props[0]+A*this.props[4]+R*this.props[8]+this.props[12]}function P(b,A,R){return b*this.props[1]+A*this.props[5]+R*this.props[9]+this.props[13]}function k(b,A,R){return b*this.props[2]+A*this.props[6]+R*this.props[10]+this.props[14]}function F(){var b=this.props[0]*this.props[5]-this.props[1]*this.props[4],A=this.props[5]/b,R=-this.props[1]/b,I=-this.props[4]/b,q=this.props[0]/b,N=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/b,G=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/b,Y=new Matrix;return Y.props[0]=A,Y.props[1]=R,Y.props[4]=I,Y.props[5]=q,Y.props[12]=N,Y.props[13]=G,Y}function B(b){var A=this.getInverseMatrix();return A.applyToPointArray(b[0],b[1],b[2]||0)}function L(b){var A,R=b.length,I=[];for(A=0;A<R;A+=1)I[A]=B(b[A]);return I}function O(b,A,R){var I=createTypedArray("float32",6);if(this.isIdentity())I[0]=b[0],I[1]=b[1],I[2]=A[0],I[3]=A[1],I[4]=R[0],I[5]=R[1];else{var q=this.props[0],N=this.props[1],G=this.props[4],Y=this.props[5],U=this.props[12],j=this.props[13];I[0]=b[0]*q+b[1]*G+U,I[1]=b[0]*N+b[1]*Y+j,I[2]=A[0]*q+A[1]*G+U,I[3]=A[0]*N+A[1]*Y+j,I[4]=R[0]*q+R[1]*G+U,I[5]=R[0]*N+R[1]*Y+j}return I}function D(b,A,R){var I;return this.isIdentity()?I=[b,A,R]:I=[b*this.props[0]+A*this.props[4]+R*this.props[8]+this.props[12],b*this.props[1]+A*this.props[5]+R*this.props[9]+this.props[13],b*this.props[2]+A*this.props[6]+R*this.props[10]+this.props[14]],I}function V(b,A){if(this.isIdentity())return b+","+A;var R=this.props;return Math.round((b*R[0]+A*R[4]+R[12])*100)/100+","+Math.round((b*R[1]+A*R[5]+R[13])*100)/100}function M(){for(var b=0,A=this.props,R="matrix3d(",I=1e4;b<16;)R+=i(A[b]*I)/I,R+=b===15?")":",",b+=1;return R}function T(b){var A=1e4;return b<1e-6&&b>0||b>-1e-6&&b<0?i(b*A)/A:b}function w(){var b=this.props,A=T(b[0]),R=T(b[1]),I=T(b[4]),q=T(b[5]),N=T(b[12]),G=T(b[13]);return"matrix("+A+","+R+","+I+","+q+","+N+","+G+")"}return function(){this.reset=a,this.rotate=o,this.rotateX=s,this.rotateY=l,this.rotateZ=c,this.skew=h,this.skewFromAxis=C,this.shear=u,this.scale=f,this.setTransform=g,this.translate=v,this.transform=d,this.multiply=_,this.applyToPoint=E,this.applyToX=S,this.applyToY=P,this.applyToZ=k,this.applyToPointArray=D,this.applyToTriplePoints=O,this.applyToPointStringified=V,this.toCSS=M,this.to2dCSS=w,this.clone=p,this.cloneFromProps=y,this.equals=m,this.inversePoints=L,this.inversePoint=B,this.getInverseMatrix=F,this._t=this.transform,this.isIdentity=x,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,C;u.s*a<=i?h=0:h=(u.s*a-i)/n,u.e*a>=i+n?C=1:C=(u.e*a-i)/n,s.push([h,C])}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,C,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=[],d,_;for(s=0;s<l;s+=1)if(d=this.shapes[s],!d.shape._mdf&&!this._mdf&&!e&&this.m!==2)d.shape.paths=d.localShapeCollection;else{if(o=d.shape.paths,u=o._length,f=0,!d.shape._mdf&&d.pathsData.length)f=d.totalShapeLength;else{for(h=this.releasePathsData(d.pathsData),c=0;c<u;c+=1)C=bez.getSegmentsLength(o.shapes[c]),h.push(C),f+=C.totalLength;d.totalShapeLength=f,d.pathsData=h}g+=f,d.shape._mdf=!0}var x=r,m=n,p=0,y;for(s=l-1;s>=0;s-=1)if(d=this.shapes[s],d.shape._mdf){for(_=d.localShapeCollection,_.releaseShapes(),this.m===2&&l>1?(y=this.calculateShapeEdges(r,n,d.totalShapeLength,p,g),p+=d.totalShapeLength):y=[[x,m]],u=y.length,c=0;c<u;c+=1){x=y[c][0],m=y[c][1],v.length=0,m<=1?v.push({s:d.totalShapeLength*x,e:d.totalShapeLength*m}):x>=1?v.push({s:d.totalShapeLength*(x-1),e:d.totalShapeLength*(m-1)}):(v.push({s:d.totalShapeLength*x,e:d.totalShapeLength}),v.push({s:0,e:d.totalShapeLength*(m-1)}));var E=this.addShapes(d,v[0]);if(v[0].s!==v[0].e){if(v.length>1){var S=d.shape.paths.shapes[d.shape.paths._length-1];if(S.c){var P=E.pop();this.addPaths(E,_),E=this.addShapes(d,v[1],P)}else this.addPaths(E,_),E=this.addShapes(d,v[1])}this.addPaths(E,_)}}d.shape.paths=_}}},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,C,f,g,v=[],d,_=!0;for(n?(C=n._length,d=n._length):(n=shapePool.newElement(),C=0,d=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,C,_),_=!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,C,_),_=!1,n.c=!1),u+=h.addedLength,C+=1;if(a[o].c&&f.length){if(h=f[l-1],u<=r.e){var x=f[l-1].addedLength;r.s<=u&&r.e>=u+x?(this.addSegment(a[o].v[l-1],a[o].o[l-1],a[o].i[0],a[o].v[0],n,C,_),_=!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)/x,(r.e-u)/x,f[l-1]),this.addSegmentFromArray(g,n,C,_),_=!1,n.c=!1)}else n.c=!1;u+=h.addedLength,C+=1}if(n._length&&(n.setXYAt(n.v[d][0],n.v[d][1],"i",d),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(),_=!0,v.push(n),C=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,C,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,C=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,C,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,C;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),C=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),C=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/u,0)):(h=this.p.pv,C=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=[],C=[];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),C[0]=f.getValueAtTime(f.keyframes[0].t/u,0),C[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),C[0]=f.getValueAtTime((f.keyframes[f.keyframes.length-1].t-.01)/u,0),C[1]=g.getValueAtTime((g.keyframes[g.keyframes.length-1].t-.01)/u,0)):(h=[f.pv,g.pv],C[0]=f.getValueAtTime((f._caching.lastFrame+f.offsetTime-.01)/u,f.offsetTime),C[1]=g.getValueAtTime((g._caching.lastFrame+g.offsetTime-.01)/u,g.offsetTime))}else C=e,h=C;this.v.rotate(-Math.atan2(h[1]-C[1],h[0]-C[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 C,f=u.or.k.length;for(C=0;C<f;C+=1)u.or.k[C].to=null,u.or.k[C].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,C=h[h.length-1];C.transform.op.v!==0?(C.transform.op._mdf=!0,C.transform.op.v=0):C.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),d=this.pMatrix.props,_=this.rMatrix.props,x=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var m=0;if(f>0){for(;m<v;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),m+=1;g&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,g,!1),m+=g)}else if(f<0){for(;m>v;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),m-=1;g&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-g,!0),m-=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)),m!==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(_[0],_[1],_[2],_[3],_[4],_[5],_[6],_[7],_[8],_[9],_[10],_[11],_[12],_[13],_[14],_[15]),this.matrix.transform(x[0],x[1],x[2],x[3],x[4],x[5],x[6],x[7],x[8],x[9],x[10],x[11],x[12],x[13],x[14],x[15]),this.matrix.transform(d[0],d[1],d[2],d[3],d[4],d[5],d[6],d[7],d[8],d[9],d[10],d[11],d[12],d[13],d[14],d[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];m+=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,C=0,f,g,v,d,_,x;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],C),C+=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,_=o[0]+(c[0]-o[0])*h,f=_,x=o[1]-(o[1]-c[1])*h,g=x,v=f-(f-o[0])*roundCorner,d=g-(g-o[1])*roundCorner,n.setTripleAt(f,g,v,d,_,x,C),C+=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,d=o[1]+(c[1]-o[1])*h,g=d,_=f-(f-o[0])*roundCorner,x=g-(g-o[1])*roundCorner,n.setTripleAt(f,g,v,d,_,x,C),C+=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],C),C+=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],C=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),C/((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,C=polarOffset(o,l,2*h*roundCorner);return e.setXYAt(C[0],C[1],"o",e.length()-1),C=polarOffset(s,c,2*h*roundCorner),e.setTripleAt(s[0],s[1],s[0],s[1],C[0],C[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,C=null;for(s=0;s<u.length;s+=1){var f=u[s];for(C&&(h=joinLines(a,C,f[0],n,i)),C=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,C,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,C=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function f(T){var w=T.split(","),b,A=w.length,R=[];for(b=0;b<A;b+=1)w[b]!=="sans-serif"&&w[b]!=="monospace"&&R.push(w[b]);return R.join(",")}function g(T,w){var b=createTag("span");b.setAttribute("aria-hidden",!0),b.style.fontFamily=w;var A=createTag("span");A.innerText="giItT1WQy@!-/#",b.style.position="absolute",b.style.left="-10000px",b.style.top="-10000px",b.style.fontSize="300px",b.style.fontVariant="normal",b.style.fontStyle="normal",b.style.fontWeight="normal",b.style.letterSpacing="0",b.appendChild(A),document.body.appendChild(b);var R=A.offsetWidth;return A.style.fontFamily=f(T)+", "+w,{node:A,w:R,parent:b}}function v(){var T,w=this.fonts.length,b,A,R=w;for(T=0;T<w;T+=1)this.fonts[T].loaded?R-=1:this.fonts[T].fOrigin==="n"||this.fonts[T].origin===0?this.fonts[T].loaded=!0:(b=this.fonts[T].monoCase.node,A=this.fonts[T].monoCase.w,b.offsetWidth!==A?(R-=1,this.fonts[T].loaded=!0):(b=this.fonts[T].sansCase.node,A=this.fonts[T].sansCase.w,b.offsetWidth!==A&&(R-=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)));R!==0&&Date.now()-this.initTime<e?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function d(T,w){var b=document.body&&w?"svg":"canvas",A,R=getFontProperties(T);if(b==="svg"){var I=createNS("text");I.style.fontSize="100px",I.setAttribute("font-family",T.fFamily),I.setAttribute("font-style",R.style),I.setAttribute("font-weight",R.weight),I.textContent="1",T.fClass?(I.style.fontFamily="inherit",I.setAttribute("class",T.fClass)):I.style.fontFamily=T.fFamily,w.appendChild(I),A=I}else{var q=new OffscreenCanvas(500,500).getContext("2d");q.font=R.style+" "+R.weight+" 100px "+T.fFamily,A=q}function N(G){return b==="svg"?(A.textContent=G,A.getComputedTextLength()):A.measureText(G).width}return{measureText:N}}function _(T,w){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(H){H.helper=d(H),H.cache={}}),this.fonts=T.list;return}var b=T.list,A,R=b.length,I=R;for(A=0;A<R;A+=1){var q=!0,N,G;if(b[A].loaded=!1,b[A].monoCase=g(b[A].fFamily,"monospace"),b[A].sansCase=g(b[A].fFamily,"sans-serif"),!b[A].fPath)b[A].loaded=!0,I-=1;else if(b[A].fOrigin==="p"||b[A].origin===3){if(N=document.querySelectorAll('style[f-forigin="p"][f-family="'+b[A].fFamily+'"], style[f-origin="3"][f-family="'+b[A].fFamily+'"]'),N.length>0&&(q=!1),q){var Y=createTag("style");Y.setAttribute("f-forigin",b[A].fOrigin),Y.setAttribute("f-origin",b[A].origin),Y.setAttribute("f-family",b[A].fFamily),Y.type="text/css",Y.innerText="@font-face {font-family: "+b[A].fFamily+"; font-style: normal; src: url('"+b[A].fPath+"');}",w.appendChild(Y)}}else if(b[A].fOrigin==="g"||b[A].origin===1){for(N=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),G=0;G<N.length;G+=1)N[G].href.indexOf(b[A].fPath)!==-1&&(q=!1);if(q){var U=createTag("link");U.setAttribute("f-forigin",b[A].fOrigin),U.setAttribute("f-origin",b[A].origin),U.type="text/css",U.rel="stylesheet",U.href=b[A].fPath,document.body.appendChild(U)}}else if(b[A].fOrigin==="t"||b[A].origin===2){for(N=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),G=0;G<N.length;G+=1)b[A].fPath===N[G].src&&(q=!1);if(q){var j=createTag("link");j.setAttribute("f-forigin",b[A].fOrigin),j.setAttribute("f-origin",b[A].origin),j.setAttribute("rel","stylesheet"),j.setAttribute("href",b[A].fPath),w.appendChild(j)}}b[A].helper=d(b[A],w),b[A].cache={},this.fonts.push(b[A])}I===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function x(T){if(T){this.chars||(this.chars=[]);var w,b=T.length,A,R=this.chars.length,I;for(w=0;w<b;w+=1){for(A=0,I=!1;A<R;)this.chars[A].style===T[w].style&&this.chars[A].fFamily===T[w].fFamily&&this.chars[A].ch===T[w].ch&&(I=!0),A+=1;I||(this.chars.push(T[w]),R+=1)}}}function m(T,w,b){for(var A=0,R=this.chars.length;A<R;){if(this.chars[A].ch===T&&this.chars[A].style===w&&this.chars[A].fFamily===b)return this.chars[A];A+=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,w,b)),r}function p(T,w,b){var A=this.getFontByName(w),R=T;if(!A.cache[R]){var I=A.helper;if(T===" "){var q=I.measureText("|"+T+"|"),N=I.measureText("||");A.cache[R]=(q-N)/100}else A.cache[R]=I.measureText(T)/100}return A.cache[R]*b}function y(T){for(var w=0,b=this.fonts.length;w<b;){if(this.fonts[w].fName===T)return this.fonts[w];w+=1}return this.fonts[0]}function E(T){var w=0,b=T.charCodeAt(0);if(b>=55296&&b<=56319){var A=T.charCodeAt(1);A>=56320&&A<=57343&&(w=(b-55296)*1024+A-56320+65536)}return w}function S(T,w){var b=T.toString(16)+w.toString(16);return C.indexOf(b)!==-1}function P(T){return T===c}function k(T){return T===l}function F(T){var w=E(T);return w>=u&&w<=h}function B(T){return F(T.substr(0,2))&&F(T.substr(2,2))}function L(T){return n.indexOf(T)!==-1}function O(T,w){var b=E(T.substr(w,2));if(b!==i)return!1;var A=0;for(w+=2;A<5;){if(b=E(T.substr(w,2)),b<o||b>s)return!1;A+=1,w+=2}return E(T.substr(w,2))===a}function D(){this.isLoaded=!0}var V=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)};V.isModifier=S,V.isZeroWidthJoiner=P,V.isFlagEmoji=B,V.isRegionalCode=F,V.isCombinedCharacter=L,V.isRegionalFlag=O,V.isVariationSelector=k,V.BLACK_FLAG_CODE_POINT=i;var M={addChars:x,addFonts:_,getCharData:m,getFontByName:y,measureText:p,checkLoadedFonts:v,setIsLoaded:D};return V.prototype=M,V}();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,C,f=createElementID(),g,v,d,_,x="clipPath",m="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)&&(x="mask",m="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?(x="mask",m="mask",_=PropertyFactory.getProp(this.element,l[a].x,0,null,this.element),p=createElementID(),v=createNS("filter"),v.setAttribute("id",p),d=createNS("feMorphology"),d.setAttribute("operator","erode"),d.setAttribute("in","SourceGraphic"),d.setAttribute("radius","0"),v.appendChild(d),i.appendChild(v),s.setAttribute("stroke",l[a].mode==="s"?"#000000":"#ffffff")):(d=null,_=null),this.storedData[a]={elem:s,x:_,expan:d,lastPath:"",lastOperator:"",filterId:p,lastRadius:0},l[a].mode==="i"){C=u.length;var y=createNS("g");for(h=0;h<C;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(x),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(m,"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 C=createNS("feFuncA");C.setAttribute("type","table"),C.setAttribute("tableValues","1.0 0.0"),h.appendChild(C),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(C){switch(C.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(C,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(C,f,g){var v,d,_,x,m,p,y=f.styles.length,E=f.lvl,S,P,k,F;for(p=0;p<y;p+=1){if(x=f.sh._mdf||g,f.styles[p].lvl<E){for(P=r.reset(),k=E-f.styles[p].lvl,F=f.transformers.length-1;!x&&k>0;)x=f.transformers[F].mProps._mdf||x,k-=1,F-=1;if(x)for(k=E-f.styles[p].lvl,F=f.transformers.length-1;k>0;)P.multiply(f.transformers[F].mProps.v),k-=1,F-=1}else P=e;if(S=f.sh.paths,d=S._length,x){for(_="",v=0;v<d;v+=1)m=S.shapes[v],m&&m._length&&(_+=buildShapeString(m,m._length,m.c,P));f.caches[p]=_}else _=f.caches[p];f.styles[p].d+=C.hd===!0?"":_,f.styles[p]._mdf=x||f.styles[p]._mdf}}function l(C,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(C,f,g){u(C,f,g),h(C,f,g)}function u(C,f,g){var v=f.gf,d=f.g._hasOpacity,_=f.s.v,x=f.e.v;if(f.o._mdf||g){var m=C.ty==="gf"?"fill-opacity":"stroke-opacity";f.style.pElem.setAttribute(m,f.o.v)}if(f.s._mdf||g){var p=C.t===1?"x1":"cx",y=p==="x1"?"y1":"cy";v.setAttribute(p,_[0]),v.setAttribute(y,_[1]),d&&!f.g._collapsable&&(f.of.setAttribute(p,_[0]),f.of.setAttribute(y,_[1]))}var E,S,P,k;if(f.g._cmdf||g){E=f.cst;var F=f.g.c;for(P=E.length,S=0;S<P;S+=1)k=E[S],k.setAttribute("offset",F[S*4]+"%"),k.setAttribute("stop-color","rgb("+F[S*4+1]+","+F[S*4+2]+","+F[S*4+3]+")")}if(d&&(f.g._omdf||g)){var B=f.g.o;for(f.g._collapsable?E=f.cst:E=f.ost,P=E.length,S=0;S<P;S+=1)k=E[S],f.g._collapsable||k.setAttribute("offset",B[S*2]+"%"),k.setAttribute("stop-opacity",B[S*2+1])}if(C.t===1)(f.e._mdf||g)&&(v.setAttribute("x2",x[0]),v.setAttribute("y2",x[1]),d&&!f.g._collapsable&&(f.of.setAttribute("x2",x[0]),f.of.setAttribute("y2",x[1])));else{var L;if((f.s._mdf||f.e._mdf||g)&&(L=Math.sqrt(Math.pow(_[0]-x[0],2)+Math.pow(_[1]-x[1],2)),v.setAttribute("r",L),d&&!f.g._collapsable&&f.of.setAttribute("r",L)),f.e._mdf||f.h._mdf||f.a._mdf||g){L||(L=Math.sqrt(Math.pow(_[0]-x[0],2)+Math.pow(_[1]-x[1],2)));var O=Math.atan2(x[1]-_[1],x[0]-_[0]),D=f.h.v;D>=1?D=.99:D<=-1&&(D=-.99);var V=L*D,M=Math.cos(O+f.a.v)*V+_[0],T=Math.sin(O+f.a.v)*V+_[1];v.setAttribute("fx",M),v.setAttribute("fy",T),d&&!f.g._collapsable&&(f.of.setAttribute("fx",M),f.of.setAttribute("fy",T))}}}function h(C,f,g){var v=f.style,d=f.d;d&&(d._mdf||g)&&d.dashStr&&(v.pElem.setAttribute("stroke-dasharray",d.dashStr),v.pElem.setAttribute("stroke-dashoffset",d.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,C,f=[],g=[],v,d,_;for(c=u;c>=0;c-=1){if(_=this.searchProcessedElement(e[c]),_?r[c]=n[_-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")_?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(!_)r[c]=this.createGroupElement(e[c]);else for(C=r[c].it.length,h=0;h<C;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"?(_||(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"?(_||(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"?(_?(d=r[c],d.closed=!1):(d=ShapeModifiers.getModifier(e[c].ty),d.init(this,e[c]),r[c]=d,this.shapeModifiers.push(d)),g.push(d)):e[c].ty==="rp"&&(_?(d=r[c],d.closed=!0):(d=ShapeModifiers.getModifier(e[c].ty),r[c]=d,d.init(this,e,c,r),this.shapeModifiers.push(d),s=!1),g.push(d));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,C=0,f=0,g=[],v=0,d=0,_,x,m=r.getFontByName(e.f),p,y=0,E=getFontProperties(m);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 S=e.tr/1e3*e.finalSize,P;if(e.sz)for(var k=!0,F=e.sz[0],B=e.sz[1],L,O;k;){O=this.buildFinalText(e.t),L=0,v=0,o=O.length,S=e.tr/1e3*e.finalSize;var D=-1;for(a=0;a<o;a+=1)P=O[a].charCodeAt(0),s=!1,O[a]===" "?D=a:(P===13||P===3)&&(v=0,s=!0,L+=e.finalLineHeight||e.finalSize*1.2),r.chars?(p=r.getCharData(O[a],m.fStyle,m.fFamily),y=s?0:p.w*e.finalSize/100):y=r.measureText(O[a],e.f,e.finalSize),v+y>F&&O[a]!==" "?(D===-1?o+=1:a=D,L+=e.finalLineHeight||e.finalSize*1.2,O.splice(a,D===a?1:0,"\r"),D=-1,v=0):(v+=y,v+=S);L+=m.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&B<L?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=O,o=e.finalText.length,k=!1)}v=-S,y=0;var V=0,M;for(a=0;a<o;a+=1)if(s=!1,M=e.finalText[a],P=M.charCodeAt(0),P===13||P===3?(V=0,g.push(v),d=v>d?v:d,v=-2*S,c="",s=!0,f+=1):c=M,r.chars?(p=r.getCharData(M,m.fStyle,r.getFontByName(e.f).fFamily),y=s?0:p.w*e.finalSize/100):y=r.measureText(c,e.f,e.finalSize),M===" "?V+=y+S:(v+=y+S+V,V=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);C<=a;)i[C].an=h,i[C].ind=l,i[C].extra=y,C+=1;l+=1,h=0}}else if(u==3){if(h+=y,c===""||a===o-1){for(c===""&&(h-=y);C<=a;)i[C].an=h,i[C].ind=l,i[C].extra=y,C+=1;h=0,l+=1}}else i[l].ind=l,i[l].extra=0,l+=1;if(e.l=i,d=v>d?v:d,g.push(v),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=d,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,w,b;x=T.length;var A,R,I=[];for(_=0;_<x;_+=1){for(w=T[_],w.a.sc&&(e.strokeColorAnim=!0),w.a.sw&&(e.strokeWidthAnim=!0),(w.a.fc||w.a.fh||w.a.fs||w.a.fb)&&(e.fillColorAnim=!0),R=0,A=w.s.b,a=0;a<o;a+=1)b=i[a],b.anIndexes[_]=R,(A==1&&b.val!==""||A==2&&b.val!==""&&b.val!==" "||A==3&&(b.n||b.val==" "||a==o-1)||A==4&&(b.n||a==o-1))&&(w.s.rn===1&&I.push(R),R+=1);n.a[_].s.totalChars=R;var q=-1,N;if(w.s.rn===1)for(a=0;a<o;a+=1)b=i[a],q!=b.anIndexes[_]&&(q=b.anIndexes[_],N=I.splice(Math.floor(Math.random()*I.length),1)[0]),b.anIndexes[_]=N}e.yOffset=e.finalLineHeight||e.finalSize*1.2,e.ls=e.ls||0,e.ascent=m.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 C=BezierFactory.getBezierEasing(l,c,u,h).get,f=0,g=this.finalS,v=this.finalE,d=this.data.sh;if(d===2)v===g?f=s>=v?1:0:f=e(0,r(.5/(v-g)+(s-g)/(v-g),1)),f=C(f);else if(d===3)v===g?f=s>=v?0:1:f=1-e(0,r(.5/(v-g)+(s-g)/(v-g),1)),f=C(f);else if(d===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=C(f);else if(d===5){if(v===g)f=0;else{var _=v-g;s=r(e(0,s+.5-g),v-g);var x=-_/2+s,m=_/2;f=Math.sqrt(1-x*x/(m*m))}f=C(f)}else d===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=C(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=C(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 C=u;u=h,h=C}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,C,f=e.l,g,v,d,_,x,m,p,y,E,S,P,k,F,B,L;if(this._hasMaskedPath){if(L=this._pathData.m,!this._pathData.n||this._pathData._mdf){var O=L.v;this._pathData.r.v&&(O=O.reverse()),g={tLength:0,segments:[]},C=O._length-1;var D;for(k=0,h=0;h<C;h+=1)D=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+=D.segmentLength,g.segments.push(D),k+=D.segmentLength;h=C,L.v.c&&(D=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+=D.segmentLength,g.segments.push(D),k+=D.segmentLength),this._pathData.pi=g}if(g=this._pathData.pi,v=this._pathData.f.v,p=0,m=1,_=0,x=!0,S=g.segments,v<0&&L.v.c)for(g.tLength<Math.abs(v)&&(v=-Math.abs(v)%g.tLength),p=S.length-1,E=S[p].points,m=E.length-1;v<0;)v+=E[m].partialLength,m-=1,m<0&&(p-=1,E=S[p].points,m=E.length-1);E=S[p].points,y=E[m-1],d=E[m],P=d.partialLength}C=f.length,c=0,u=0;var V=e.finalSize*1.2*.714,M=!0,T,w,b,A,R;A=i.length;var I,q=-1,N,G,Y,U=v,j=p,H=m,Z=-1,X,ae,fe,$,K,ee,te,re,ne="",he=this.defaultPropsArray,ve;if(e.j===2||e.j===1){var pe=0,ye=0,be=e.j===2?-.5:-1,ce=0,de=!0;for(h=0;h<C;h+=1)if(f[h].n){for(pe&&(pe+=ye);ce<h;)f[ce].animatorJustifyOffset=pe,ce+=1;pe=0,de=!0}else{for(b=0;b<A;b+=1)T=i[b].a,T.t.propType&&(de&&e.j===2&&(ye+=T.t.v*be),w=i[b].s,I=w.getMult(f[h].anIndexes[b],a.a[b].s.totalChars),I.length?pe+=T.t.v*I[0]*be:pe+=T.t.v*I*be);de=!1}for(pe&&(pe+=ye);ce<h;)f[ce].animatorJustifyOffset=pe,ce+=1}for(h=0;h<C;h+=1){if(o.reset(),X=1,f[h].n)c=0,u+=e.yOffset,u+=M?1:0,v=U,M=!1,this._hasMaskedPath&&(p=j,m=H,E=S[p].points,y=E[m-1],d=E[m],P=d.partialLength,_=0),ne="",re="",ee="",ve="",he=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Z!==f[h].line){switch(e.j){case 1:v+=k-e.lineWidths[f[h].line];break;case 2:v+=(k-e.lineWidths[f[h].line])/2;break}Z=f[h].line}q!==f[h].ind&&(f[q]&&(v+=f[q].extra),v+=f[h].an/2,q=f[h].ind),v+=n[0]*f[h].an*.005;var ue=0;for(b=0;b<A;b+=1)T=i[b].a,T.p.propType&&(w=i[b].s,I=w.getMult(f[h].anIndexes[b],a.a[b].s.totalChars),I.length?ue+=T.p.v[0]*I[0]:ue+=T.p.v[0]*I),T.a.propType&&(w=i[b].s,I=w.getMult(f[h].anIndexes[b],a.a[b].s.totalChars),I.length?ue+=T.a.v[0]*I[0]:ue+=T.a.v[0]*I);for(x=!0,this._pathData.a.v&&(v=f[0].an*.5+(k-this._pathData.f.v-f[0].an*.5-f[f.length-1].an*.5)*q/(C-1),v+=this._pathData.f.v);x;)_+P>=v+ue||!E?(F=(v+ue-_)/d.partialLength,G=y.point[0]+(d.point[0]-y.point[0])*F,Y=y.point[1]+(d.point[1]-y.point[1])*F,o.translate(-n[0]*f[h].an*.005,-(n[1]*V)*.01),x=!1):E&&(_+=d.partialLength,m+=1,m>=E.length&&(m=0,p+=1,S[p]?E=S[p].points:L.v.c?(m=0,p=0,E=S[p].points):(_-=d.partialLength,E=null)),E&&(y=d,d=E[m],P=d.partialLength));N=f[h].an/2-f[h].add,o.translate(-N,0,0)}else N=f[h].an/2-f[h].add,o.translate(-N,0,0),o.translate(-n[0]*f[h].an*.005,-n[1]*V*.01,0);for(b=0;b<A;b+=1)T=i[b].a,T.t.propType&&(w=i[b].s,I=w.getMult(f[h].anIndexes[b],a.a[b].s.totalChars),(c!==0||e.j!==0)&&(this._hasMaskedPath?I.length?v+=T.t.v*I[0]:v+=T.t.v*I:I.length?c+=T.t.v*I[0]:c+=T.t.v*I));for(e.strokeWidthAnim&&(fe=e.sw||0),e.strokeColorAnim&&(e.sc?ae=[e.sc[0],e.sc[1],e.sc[2]]:ae=[0,0,0]),e.fillColorAnim&&e.fc&&($=[e.fc[0],e.fc[1],e.fc[2]]),b=0;b<A;b+=1)T=i[b].a,T.a.propType&&(w=i[b].s,I=w.getMult(f[h].anIndexes[b],a.a[b].s.totalChars),I.length?o.translate(-T.a.v[0]*I[0],-T.a.v[1]*I[1],T.a.v[2]*I[2]):o.translate(-T.a.v[0]*I,-T.a.v[1]*I,T.a.v[2]*I));for(b=0;b<A;b+=1)T=i[b].a,T.s.propType&&(w=i[b].s,I=w.getMult(f[h].anIndexes[b],a.a[b].s.totalChars),I.length?o.scale(1+(T.s.v[0]-1)*I[0],1+(T.s.v[1]-1)*I[1],1):o.scale(1+(T.s.v[0]-1)*I,1+(T.s.v[1]-1)*I,1));for(b=0;b<A;b+=1){if(T=i[b].a,w=i[b].s,I=w.getMult(f[h].anIndexes[b],a.a[b].s.totalChars),T.sk.propType&&(I.length?o.skewFromAxis(-T.sk.v*I[0],T.sa.v*I[1]):o.skewFromAxis(-T.sk.v*I,T.sa.v*I)),T.r.propType&&(I.length?o.rotateZ(-T.r.v*I[2]):o.rotateZ(-T.r.v*I)),T.ry.propType&&(I.length?o.rotateY(T.ry.v*I[1]):o.rotateY(T.ry.v*I)),T.rx.propType&&(I.length?o.rotateX(T.rx.v*I[0]):o.rotateX(T.rx.v*I)),T.o.propType&&(I.length?X+=(T.o.v*I[0]-X)*I[0]:X+=(T.o.v*I-X)*I),e.strokeWidthAnim&&T.sw.propType&&(I.length?fe+=T.sw.v*I[0]:fe+=T.sw.v*I),e.strokeColorAnim&&T.sc.propType)for(K=0;K<3;K+=1)I.length?ae[K]+=(T.sc.v[K]-ae[K])*I[0]:ae[K]+=(T.sc.v[K]-ae[K])*I;if(e.fillColorAnim&&e.fc){if(T.fc.propType)for(K=0;K<3;K+=1)I.length?$[K]+=(T.fc.v[K]-$[K])*I[0]:$[K]+=(T.fc.v[K]-$[K])*I;T.fh.propType&&(I.length?$=addHueToRGB($,T.fh.v*I[0]):$=addHueToRGB($,T.fh.v*I)),T.fs.propType&&(I.length?$=addSaturationToRGB($,T.fs.v*I[0]):$=addSaturationToRGB($,T.fs.v*I)),T.fb.propType&&(I.length?$=addBrightnessToRGB($,T.fb.v*I[0]):$=addBrightnessToRGB($,T.fb.v*I))}}for(b=0;b<A;b+=1)T=i[b].a,T.p.propType&&(w=i[b].s,I=w.getMult(f[h].anIndexes[b],a.a[b].s.totalChars),this._hasMaskedPath?I.length?o.translate(0,T.p.v[1]*I[0],-T.p.v[2]*I[1]):o.translate(0,T.p.v[1]*I,-T.p.v[2]*I):I.length?o.translate(T.p.v[0]*I[0],T.p.v[1]*I[1],-T.p.v[2]*I[2]):o.translate(T.p.v[0]*I,T.p.v[1]*I,-T.p.v[2]*I));if(e.strokeWidthAnim&&(ee=fe<0?0:fe),e.strokeColorAnim&&(te="rgb("+Math.round(ae[0]*255)+","+Math.round(ae[1]*255)+","+Math.round(ae[2]*255)+")"),e.fillColorAnim&&e.fc&&(re="rgb("+Math.round($[0]*255)+","+Math.round($[1]*255)+","+Math.round($[2]*255)+")"),this._hasMaskedPath){if(o.translate(0,-e.ls),o.translate(0,n[1]*V*.01+u,0),this._pathData.p.v){B=(d.point[1]-y.point[1])/(d.point[0]-y.point[0]);var Ce=Math.atan(B)*180/Math.PI;d.point[0]<y.point[0]&&(Ce+=180),o.rotate(-Ce*Math.PI/180)}o.translate(G,Y,0),v-=n[0]*f[h].an*.005,f[h+1]&&q!==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(N,0,0),o.translate(n[0]*f[h].an*.005,n[1]*V*.01,0),c+=f[h].l+e.tr*.001*e.finalSize}s==="html"?ne=o.toCSS():s==="svg"?ne=o.to2dCSS():he=[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]],ve=X}l<=h?(R=new LetterProps(ve,ee,te,re,ne,he),this.renderedLetters.push(R),l+=1,this.lettersChangedFlag=!0):(R=this.renderedLetters[h],this.lettersChangedFlag=R.update(ve,ee,te,re,ne,he)||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="",C=this.data.singleShape,f=0,g=0,v=!0,d=n.tr*.001*n.finalSize;if(C&&!l&&!n.sz){var _=this.textContainer,x="start";switch(n.j){case 1:x="end";break;case 2:x="middle";break;default:x="start";break}_.setAttribute("text-anchor",x),_.setAttribute("letter-spacing",d);var m=this.buildTextContents(n.finalText);for(r=m.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=m[e],c.setAttribute("x",0),c.setAttribute("y",g),c.style.display="inherit",_.appendChild(c),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=c,g+=n.finalLineHeight;this.layerElement.appendChild(_)}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||!C||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(),C&&(s[e].n&&(f=-d,g+=n.yOffset,g+=v?1:0,v=!1),this.applyTextPropertiesToMatrix(n,u,s[e].line,f,g),f+=s[e].l||0,f+=d),l){y=this.globalData.fontManager.getCharData(n.finalText[e],i.fStyle,this.globalData.fontManager.getFontByName(n.f).fFamily);var S;if(y.t===1)S=new SVGCompElement(y.data,this.globalData,this);else{var P=emptyShapeData;y.data&&y.data.shapes&&(P=this.buildShapeData(y.data,n.finalSize)),S=new SVGShapeElement(P,this.globalData,this)}if(this.textSpans[e].glyph){var k=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(k.layerElement),k.destroy()}this.textSpans[e].glyph=S,S._debug=!0,S.prepareFrame(0),S.renderFrame(),this.textSpans[e].childSpan.appendChild(S.layerElement),y.t===1&&this.textSpans[e].childSpan.setAttribute("transform","scale("+n.finalSize/100+","+n.finalSize/100+")")}else C&&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")}C&&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=[],C,f,g,v=[].concat(a);for(o=s;o>=0;o-=1){if(C=this.searchProcessedElement(e[o]),C?r[o]=n[C-1]:e[o]._shouldRender=i,e[o].ty==="fl"||e[o].ty==="st"||e[o].ty==="gf"||e[o].ty==="gs")C?r[o].style.closed=!1:r[o]=this.createStyleElement(e[o],v),u.push(r[o].style);else if(e[o].ty==="gr"){if(!C)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"?(C||(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"?C||(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"?(C?(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"&&(C?(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,C;for(e=0;e<r;e+=1)if(C=this.stylesList[e],h=C.type,!((h==="st"||h==="gs")&&C.wi===0||!C.data._shouldRender||C.coOp===0||this.globalData.currentGlobalAlpha===0)){for(c.save(),s=C.elements,h==="st"||h==="gs"?(c.ctxStrokeStyle(h==="st"?C.co:C.grd),c.ctxLineWidth(C.wi),c.ctxLineCap(C.lc),c.ctxLineJoin(C.lj),c.ctxMiterLimit(C.ml||0)):c.ctxFillStyle(h==="fl"?C.co:C.grd),c.ctxOpacity(C.coOp),h!=="st"&&h!=="gs"&&u.beginPath(),c.ctxTransform(C.preTransforms.finalTransform.props),i=s.length,n=0;n<i;n+=1){for((h==="st"||h==="gs")&&(u.beginPath(),C.da&&(u.setLineDash(C.da),u.lineDashOffset=C.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(),C.da&&u.setLineDash(this.dashResetter))}h!=="st"&&h!=="gs"&&this.globalData.renderer.ctxFill(C.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 C=c*h,f=Math.cos(u+r.a.v)*C+s[0],g=Math.sin(u+r.a.v)*C+s[1];a=o.createRadialGradient(f,g,0,s[0],s[1],c)}var v,d=e.g.p,_=r.g.c,x=1;for(v=0;v<d;v+=1)r.g._hasOpacity&&r.g._collapsable&&(x=r.g.o[v*2+1]),a.addColorStop(_[v*4]/100,"rgba("+_[v*4+1]+","+_[v*4+2]+","+_[v*4+3]+","+x+")");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,C,f,g,v,d,_,x,m=this.data.singleShape,p=e.tr*.001*e.finalSize,y=0,E=0,S=!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(),m&&s[a].n&&(y=-p,E+=e.yOffset,E+=S?1:0,S=!1),f=u.shapes?u.shapes[0].it:[],v=f.length,l.scale(e.finalSize/100,e.finalSize/100),m&&this.applyTextPropertiesToMatrix(e,l,s[a].line,y,E),_=createSizedArray(v-1);var k=0;for(g=0;g<v;g+=1)if(f[g].ty==="sh"){for(C=f[g].ks.k.i.length,d=f[g].ks.k,x=[],h=1;h<C;h+=1)h===1&&x.push(l.applyToX(d.v[0][0],d.v[0][1],0),l.applyToY(d.v[0][0],d.v[0][1],0)),x.push(l.applyToX(d.o[h-1][0],d.o[h-1][1],0),l.applyToY(d.o[h-1][0],d.o[h-1][1],0),l.applyToX(d.i[h][0],d.i[h][1],0),l.applyToY(d.i[h][0],d.i[h][1],0),l.applyToX(d.v[h][0],d.v[h][1],0),l.applyToY(d.v[h][0],d.v[h][1],0));x.push(l.applyToX(d.o[h-1][0],d.o[h-1][1],0),l.applyToY(d.o[h-1][0],d.o[h-1][1],0),l.applyToX(d.i[0][0],d.i[0][1],0),l.applyToY(d.i[0][0],d.i[0][1],0),l.applyToX(d.v[0][0],d.v[0][1],0),l.applyToY(d.v[0][0],d.v[0][1],0)),_[k]=x,k+=1}m&&(y+=s[a].l,y+=p),this.textSpans[P]?this.textSpans[P].elem=_:this.textSpans[P]={elem:_},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,C=null,f=null,g,v,d=this.globalData.renderer;for(r=0;r<n;r+=1)if(!c[r].n){if(u=l[r],u&&(d.save(),d.ctxTransform(u.p),d.ctxOpacity(u.o)),this.fill){for(u&&u.fc?h!==u.fc&&(d.ctxFillStyle(u.fc),h=u.fc):h!==this.values.fill&&(h=this.values.fill,d.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(),d.ctxFill()}if(this.stroke){for(u&&u.sw?f!==u.sw&&(f=u.sw,d.ctxLineWidth(u.sw)):f!==this.values.sWidth&&(f=this.values.sWidth,d.ctxLineWidth(this.values.sWidth)),u&&u.sc?C!==u.sc&&(C=u.sc,d.ctxStrokeStyle(u.sc)):C!==this.values.stroke&&(C=this.values.stroke,d.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(),d.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,C,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)),C=(-s-bmSqrt(u))/(2*o),C>0&&C<1&&a[f].push(this.calculateF(C,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,C,f=this.mHelper,g,v="",d=0;for(s=0;s<l;s+=1){if(this.globalData.fontManager.chars?(this.textPaths[d]?u=this.textPaths[d]:(u=createNS("path"),u.setAttribute("stroke-linecap",lineCapEnum[1]),u.setAttribute("stroke-linejoin",lineJoinEnum[2]),u.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[d]?(h=this.textSpans[d],C=h.children[0]):(h=createTag("div"),h.style.lineHeight=0,C=createNS("svg"),C.appendChild(u),styleDiv(h)))):this.isMasked?u=this.textPaths[d]?this.textPaths[d]:createNS("text"):this.textSpans[d]?(h=this.textSpans[d],u=this.textPaths[d]):(h=createTag("span"),styleDiv(h),u=createTag("span"),styleDiv(u),h.appendChild(u)),this.globalData.fontManager.chars){var _=this.globalData.fontManager.getCharData(e.finalText[s],i.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily),x;if(_?x=_.data:x=null,f.reset(),x&&x.shapes&&x.shapes.length&&(g=x.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),x&&x.shapes){document.body.appendChild(C);var m=C.getBBox();C.setAttribute("width",m.width+2),C.setAttribute("height",m.height+2),C.setAttribute("viewBox",m.x-1+" "+(m.y-1)+" "+(m.width+2)+" "+(m.height+2));var p=C.style,y="translate("+(m.x-1)+"px,"+(m.y-1)+"px)";p.transform=y,p.webkitTransform=y,c[s].yOffset=m.y-1}else C.setAttribute("width",1),C.setAttribute("height",1);h.appendChild(C)}}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,S="translate3d(0,"+-e.finalSize/1.2+"px,0)";E.transform=S,E.webkitTransform=S}this.isMasked?this.textSpans[d]=u:this.textSpans[d]=h,this.textSpans[d].style.display="block",this.textPaths[d]=u,d+=1}for(;d<this.textSpans.length;)this.textSpans[d].style.display="none",d+=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 C=1;if(this.currentBBox.w!==h.width+C*2||this.currentBBox.h!==h.height+C*2||this.currentBBox.x!==h.x-C||this.currentBBox.y!==h.y-C){this.currentBBox.w=h.width+C*2,this.currentBBox.h=h.height+C*2,this.currentBBox.x=h.x-C,this.currentBBox.y=h.y-C,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 C,f,g;for(r=0;r<n;r+=1)if(C=this.comp.threeDElements[r],C.type==="3d"){if(h){var v=this.mat.toCSS();g=C.container.style,g.transform=v,g.webkitTransform=v}this.pe._mdf&&(f=C.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,C;function f(p,y,E){var S=[];y=y===!0?{entropy:!0}:y||{};var P=_(d(y.entropy?[p,m(e)]:p===null?x():p,3),S),k=new g(S),F=function(){for(var L=k.g(a),O=l,D=0;L<c;)L=(L+D)*i,O*=i,D=k.g(1);for(;L>=u;)L/=2,O/=2,D>>>=1;return(L+D)/O};return F.int32=function(){return k.g(4)|0},F.quick=function(){return k.g(4)/4294967296},F.double=F,_(m(k.S),e),(y.pass||E||function(B,L,O,D){return D&&(D.S&&v(D,k),B.state=function(){return v(k,{})}),O?(r[s]=B,L):B})(F,P,"global"in y?y.global:this==r,y.state)}r["seed"+s]=f;function g(p){var y,E=p.length,S=this,P=0,k=S.i=S.j=0,F=S.S=[];for(E||(p=[E++]);P<i;)F[P]=P++;for(P=0;P<i;P++)F[P]=F[k=h&k+p[P%E]+(y=F[P])],F[k]=y;S.g=function(B){for(var L,O=0,D=S.i,V=S.j,M=S.S;B--;)L=M[D=h&D+1],O=O*i+M[h&(M[D]=M[V=h&V+L])+(M[V]=L)];return S.i=D,S.j=V,O}}function v(p,y){return y.i=p.i,y.j=p.j,y.S=p.S.slice(),y}function d(p,y){var E=[],S=_typeof$2(p),P;if(y&&S=="object")for(P in p)try{E.push(d(p[P],y-1))}catch{}return E.length?E:S=="string"?p:p+"\0"}function _(p,y){for(var E=p+"",S,P=0;P<E.length;)y[h&P]=h&(S^=y[h&P]*19)+E.charCodeAt(P++);return m(y)}function x(){try{var p=new Uint8Array(i);return(n.crypto||n.msCrypto).getRandomValues(p),m(p)}catch{var y=n.navigator,E=y&&y.plugins;return[+new Date,n,E,n.screen,m(e)]}}function m(p){return String.fromCharCode.apply(0,p)}_(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 C=c==="unidimensional"?new Number(h):Object.assign({},h);return C.time=l.keyframes[u-1].t/l.elem.comp.globalData.frameRate,C.value=c==="unidimensional"?h[0]:h,C},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 C=0;C<c;C+=1)h[C]=s.v[C]*l,u[C]=h[C];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 C=this._elem.finalTransform.mProp.getValueAtTime(u);C.clone(h)}else{var f=this._elem.finalTransform.mProp;f.applyToMatrix(h)}return h}function r(u,h){var C=this.getMatrix(h);return C.props[12]=0,C.props[13]=0,C.props[14]=0,this.applyPoint(C,u)}function n(u,h){var C=this.getMatrix(h);return this.applyPoint(C,u)}function i(u,h){var C=this.getMatrix(h);return C.props[12]=0,C.props[13]=0,C.props[14]=0,this.invertPoint(C,u)}function a(u,h){var C=this.getMatrix(h);return this.invertPoint(C,u)}function o(u,h){if(this._elem.hierarchy&&this._elem.hierarchy.length){var C,f=this._elem.hierarchy.length;for(C=0;C<f;C+=1)this._elem.hierarchy[C].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 C,f=this._elem.hierarchy.length;for(C=0;C<f;C+=1)this._elem.hierarchy[C].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 C,f=this._elem.hierarchy.length;for(C=0;C<f;C+=1)this._elem.hierarchy[C].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 C(d){g.mask=new MaskManagerInterface(d,u)}function f(d){g.effect=d}function g(d){switch(d){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=C,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||[],C=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(C,"numProperties",{get:function(){return h.length}}),C}return null}function n(a,o,s,l){function c(g){for(var v=a.ef,d=0,_=v.length;d<_;){if(g===v[d].nm||g===v[d].mn||g===v[d].ix)return v[d].ty===5?h[d]:h[d]();d+=1}throw new Error}var u=propertyGroupFactory(c,s),h=[],C,f=a.ef.length;for(C=0;C<f;C+=1)a.ef[C].ty===5?h.push(n(a.ef[C],o.effectElements[C],o.effectElements[C].propertyGroup,l)):h.push(i(o.effectElements[C],a.ef[C].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,d,_){var x=[],m,p=v?v.length:0;for(m=0;m<p;m+=1)v[m].ty==="gr"?x.push(n(v[m],d[m],_)):v[m].ty==="fl"?x.push(i(v[m],d[m],_)):v[m].ty==="st"?x.push(s(v[m],d[m],_)):v[m].ty==="tm"?x.push(l(v[m],d[m],_)):v[m].ty==="tr"||(v[m].ty==="el"?x.push(u(v[m],d[m],_)):v[m].ty==="sr"?x.push(h(v[m],d[m],_)):v[m].ty==="sh"?x.push(ShapePathInterface(v[m],d[m],_)):v[m].ty==="rc"?x.push(C(v[m],d[m],_)):v[m].ty==="rd"?x.push(f(v[m],d[m],_)):v[m].ty==="rp"?x.push(g(v[m],d[m],_)):v[m].ty==="gf"?x.push(a(v[m],d[m],_)):x.push(o(v[m],d[m])));return x}function r(v,d,_){var x,m=function(E){for(var S=0,P=x.length;S<P;){if(x[S]._name===E||x[S].mn===E||x[S].propertyIndex===E||x[S].ix===E||x[S].ind===E)return x[S];S+=1}return typeof E=="number"?x[E-1]:null};m.propertyGroup=propertyGroupFactory(m,_),x=e(v.it,d.it,m.propertyGroup),m.numProperties=x.length;var p=c(v.it[v.it.length-1],d.it[d.it.length-1],m.propertyGroup);return m.transform=p,m.propertyIndex=v.cix,m._name=v.nm,m}function n(v,d,_){var x=function(E){switch(E){case"ADBE Vectors Group":case"Contents":case 2:return x.content;default:return x.transform}};x.propertyGroup=propertyGroupFactory(x,_);var m=r(v,d,x.propertyGroup),p=c(v.it[v.it.length-1],d.it[d.it.length-1],x.propertyGroup);return x.content=m,x.transform=p,Object.defineProperty(x,"_name",{get:function(){return v.nm}}),x.numProperties=v.np,x.propertyIndex=v.ix,x.nm=v.nm,x.mn=v.mn,x}function i(v,d,_){function x(m){return m==="Color"||m==="color"?x.color:m==="Opacity"||m==="opacity"?x.opacity:null}return Object.defineProperties(x,{color:{get:ExpressionPropertyInterface(d.c)},opacity:{get:ExpressionPropertyInterface(d.o)},_name:{value:v.nm},mn:{value:v.mn}}),d.c.setGroupProperty(PropertyInterface("Color",_)),d.o.setGroupProperty(PropertyInterface("Opacity",_)),x}function a(v,d,_){function x(m){return m==="Start Point"||m==="start point"?x.startPoint:m==="End Point"||m==="end point"?x.endPoint:m==="Opacity"||m==="opacity"?x.opacity:null}return Object.defineProperties(x,{startPoint:{get:ExpressionPropertyInterface(d.s)},endPoint:{get:ExpressionPropertyInterface(d.e)},opacity:{get:ExpressionPropertyInterface(d.o)},type:{get:function(){return"a"}},_name:{value:v.nm},mn:{value:v.mn}}),d.s.setGroupProperty(PropertyInterface("Start Point",_)),d.e.setGroupProperty(PropertyInterface("End Point",_)),d.o.setGroupProperty(PropertyInterface("Opacity",_)),x}function o(){function v(){return null}return v}function s(v,d,_){var x=propertyGroupFactory(P,_),m=propertyGroupFactory(S,x);function p(k){Object.defineProperty(S,v.d[k].nm,{get:ExpressionPropertyInterface(d.d.dataProps[k].p)})}var y,E=v.d?v.d.length:0,S={};for(y=0;y<E;y+=1)p(y),d.d.dataProps[y].p.setGroupProperty(m);function P(k){return k==="Color"||k==="color"?P.color:k==="Opacity"||k==="opacity"?P.opacity:k==="Stroke Width"||k==="stroke width"?P.strokeWidth:null}return Object.defineProperties(P,{color:{get:ExpressionPropertyInterface(d.c)},opacity:{get:ExpressionPropertyInterface(d.o)},strokeWidth:{get:ExpressionPropertyInterface(d.w)},dash:{get:function(){return S}},_name:{value:v.nm},mn:{value:v.mn}}),d.c.setGroupProperty(PropertyInterface("Color",x)),d.o.setGroupProperty(PropertyInterface("Opacity",x)),d.w.setGroupProperty(PropertyInterface("Stroke Width",x)),P}function l(v,d,_){function x(p){return p===v.e.ix||p==="End"||p==="end"?x.end:p===v.s.ix?x.start:p===v.o.ix?x.offset:null}var m=propertyGroupFactory(x,_);return x.propertyIndex=v.ix,d.s.setGroupProperty(PropertyInterface("Start",m)),d.e.setGroupProperty(PropertyInterface("End",m)),d.o.setGroupProperty(PropertyInterface("Offset",m)),x.propertyIndex=v.ix,x.propertyGroup=_,Object.defineProperties(x,{start:{get:ExpressionPropertyInterface(d.s)},end:{get:ExpressionPropertyInterface(d.e)},offset:{get:ExpressionPropertyInterface(d.o)},_name:{value:v.nm}}),x.mn=v.mn,x}function c(v,d,_){function x(p){return v.a.ix===p||p==="Anchor Point"?x.anchorPoint:v.o.ix===p||p==="Opacity"?x.opacity:v.p.ix===p||p==="Position"?x.position:v.r.ix===p||p==="Rotation"||p==="ADBE Vector Rotation"?x.rotation:v.s.ix===p||p==="Scale"?x.scale:v.sk&&v.sk.ix===p||p==="Skew"?x.skew:v.sa&&v.sa.ix===p||p==="Skew Axis"?x.skewAxis:null}var m=propertyGroupFactory(x,_);return d.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",m)),d.transform.mProps.p.setGroupProperty(PropertyInterface("Position",m)),d.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",m)),d.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",m)),d.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",m)),d.transform.mProps.sk&&(d.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",m)),d.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",m))),d.transform.op.setGroupProperty(PropertyInterface("Opacity",m)),Object.defineProperties(x,{opacity:{get:ExpressionPropertyInterface(d.transform.mProps.o)},position:{get:ExpressionPropertyInterface(d.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(d.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(d.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(d.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(d.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(d.transform.mProps.sa)},_name:{value:v.nm}}),x.ty="tr",x.mn=v.mn,x.propertyGroup=_,x}function u(v,d,_){function x(y){return v.p.ix===y?x.position:v.s.ix===y?x.size:null}var m=propertyGroupFactory(x,_);x.propertyIndex=v.ix;var p=d.sh.ty==="tm"?d.sh.prop:d.sh;return p.s.setGroupProperty(PropertyInterface("Size",m)),p.p.setGroupProperty(PropertyInterface("Position",m)),Object.defineProperties(x,{size:{get:ExpressionPropertyInterface(p.s)},position:{get:ExpressionPropertyInterface(p.p)},_name:{value:v.nm}}),x.mn=v.mn,x}function h(v,d,_){function x(y){return v.p.ix===y?x.position:v.r.ix===y?x.rotation:v.pt.ix===y?x.points:v.or.ix===y||y==="ADBE Vector Star Outer Radius"?x.outerRadius:v.os.ix===y?x.outerRoundness:v.ir&&(v.ir.ix===y||y==="ADBE Vector Star Inner Radius")?x.innerRadius:v.is&&v.is.ix===y?x.innerRoundness:null}var m=propertyGroupFactory(x,_),p=d.sh.ty==="tm"?d.sh.prop:d.sh;return x.propertyIndex=v.ix,p.or.setGroupProperty(PropertyInterface("Outer Radius",m)),p.os.setGroupProperty(PropertyInterface("Outer Roundness",m)),p.pt.setGroupProperty(PropertyInterface("Points",m)),p.p.setGroupProperty(PropertyInterface("Position",m)),p.r.setGroupProperty(PropertyInterface("Rotation",m)),v.ir&&(p.ir.setGroupProperty(PropertyInterface("Inner Radius",m)),p.is.setGroupProperty(PropertyInterface("Inner Roundness",m))),Object.defineProperties(x,{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}}),x.mn=v.mn,x}function C(v,d,_){function x(y){return v.p.ix===y?x.position:v.r.ix===y?x.roundness:v.s.ix===y||y==="Size"||y==="ADBE Vector Rect Size"?x.size:null}var m=propertyGroupFactory(x,_),p=d.sh.ty==="tm"?d.sh.prop:d.sh;return x.propertyIndex=v.ix,p.p.setGroupProperty(PropertyInterface("Position",m)),p.s.setGroupProperty(PropertyInterface("Size",m)),p.r.setGroupProperty(PropertyInterface("Rotation",m)),Object.defineProperties(x,{position:{get:ExpressionPropertyInterface(p.p)},roundness:{get:ExpressionPropertyInterface(p.r)},size:{get:ExpressionPropertyInterface(p.s)},_name:{value:v.nm}}),x.mn=v.mn,x}function f(v,d,_){function x(y){return v.r.ix===y||y==="Round Corners 1"?x.radius:null}var m=propertyGroupFactory(x,_),p=d;return x.propertyIndex=v.ix,p.rd.setGroupProperty(PropertyInterface("Radius",m)),Object.defineProperties(x,{radius:{get:ExpressionPropertyInterface(p.rd)},_name:{value:v.nm}}),x.mn=v.mn,x}function g(v,d,_){function x(y){return v.c.ix===y||y==="Copies"?x.copies:v.o.ix===y||y==="Offset"?x.offset:null}var m=propertyGroupFactory(x,_),p=d;return x.propertyIndex=v.ix,p.c.setGroupProperty(PropertyInterface("Copies",m)),p.o.setGroupProperty(PropertyInterface("Offset",m)),Object.defineProperties(x,{copies:{get:ExpressionPropertyInterface(p.c)},offset:{get:ExpressionPropertyInterface(p.o)},_name:{value:v.nm}}),x.mn=v.mn,x}return function(v,d,_){var x;function m(y){if(typeof y=="number")return y=y===void 0?1:y,y===0?_:x[y-1];for(var E=0,S=x.length;E<S;){if(x[E]._name===y)return x[E];E+=1}return null}function p(){return _}return m.propertyGroup=propertyGroupFactory(m,p),x=e(v,d,m.propertyGroup),m.numProperties=x.length,m._name="Contents",m}}(),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 C;for(C=0;C<c.length;C+=1)h+=Math.pow(u[C]-c[C],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 C;for(C=0;C<c.length;C+=1)h[C]=(u[C]-c[C])/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 d=this.comp.renderedFrame,_=this.keyframes,x=_[_.length-1].t;if(d<=x)return this.pv;var m,p;v?(g?m=Math.abs(x-this.elem.comp.globalData.frameRate*g):m=Math.max(0,x-this.elem.data.ip),p=x-m):((!g||g>_.length-1)&&(g=_.length-1),p=_[_.length-1-g].t,m=x-p);var y,E,S;if(f==="pingpong"){var P=Math.floor((d-p)/m);if(P%2!==0)return this.getValueAtTime((m-(d-p)%m+p)/this.comp.globalData.frameRate,0)}else if(f==="offset"){var k=this.getValueAtTime(p/this.comp.globalData.frameRate,0),F=this.getValueAtTime(x/this.comp.globalData.frameRate,0),B=this.getValueAtTime(((d-p)%m+p)/this.comp.globalData.frameRate,0),L=Math.floor((d-p)/m);if(this.pv.length){for(S=new Array(k.length),E=S.length,y=0;y<E;y+=1)S[y]=(F[y]-k[y])*L+B[y];return S}return(F-k)*L+B}else if(f==="continue"){var O=this.getValueAtTime(x/this.comp.globalData.frameRate,0),D=this.getValueAtTime((x-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(S=new Array(O.length),E=S.length,y=0;y<E;y+=1)S[y]=O[y]+(O[y]-D[y])*((d-x)/this.comp.globalData.frameRate)/5e-4;return S}return O+(O-D)*((d-x)/.001)}return this.getValueAtTime(((d-p)%m+p)/this.comp.globalData.frameRate,0)}function r(f,g,v){if(!this.k)return this.pv;f=f?f.toLowerCase():"";var d=this.comp.renderedFrame,_=this.keyframes,x=_[0].t;if(d>=x)return this.pv;var m,p;v?(g?m=Math.abs(this.elem.comp.globalData.frameRate*g):m=Math.max(0,this.elem.data.op-x),p=x+m):((!g||g>_.length-1)&&(g=_.length-1),p=_[g].t,m=p-x);var y,E,S;if(f==="pingpong"){var P=Math.floor((x-d)/m);if(P%2===0)return this.getValueAtTime(((x-d)%m+x)/this.comp.globalData.frameRate,0)}else if(f==="offset"){var k=this.getValueAtTime(x/this.comp.globalData.frameRate,0),F=this.getValueAtTime(p/this.comp.globalData.frameRate,0),B=this.getValueAtTime((m-(x-d)%m+x)/this.comp.globalData.frameRate,0),L=Math.floor((x-d)/m)+1;if(this.pv.length){for(S=new Array(k.length),E=S.length,y=0;y<E;y+=1)S[y]=B[y]-(F[y]-k[y])*L;return S}return B-(F-k)*L}else if(f==="continue"){var O=this.getValueAtTime(x/this.comp.globalData.frameRate,0),D=this.getValueAtTime((x+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(S=new Array(O.length),E=S.length,y=0;y<E;y+=1)S[y]=O[y]+(O[y]-D[y])*(x-d)/.001;return S}return O+(O-D)*(x-d)/.001}return this.getValueAtTime((m-((x-d)%m+x))/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,d=v-f,_=v+f,x=g>1?(_-d)/(g-1):1,m=0,p=0,y;this.pv.length?y=createTypedArray("float32",this.pv.length):y=0;for(var E;m<g;){if(E=this.getValueAtTime(d+m*x),this.pv.length)for(p=0;p<this.pv.length;p+=1)y[p]+=E[p];else y+=E;m+=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 d=this.s.getValueAtTime(f);g.scale(d[0]*this.s.mult,d[1]*this.s.mult,d[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var _=this.sk.getValueAtTime(f),x=this.sa.getValueAtTime(f);g.skewFromAxis(-_*this.sk.mult,x*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var m=this.r.getValueAtTime(f);g.rotate(-m*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),S=this.or.getValueAtTime(f);g.rotateZ(-p*this.rz.mult).rotateY(y*this.ry.mult).rotateX(E*this.rx.mult).rotateZ(-S[2]*this.or.mult).rotateY(S[1]*this.or.mult).rotateX(S[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var P=this.px.getValueAtTime(f),k=this.py.getValueAtTime(f);if(this.data.p.z){var F=this.pz.getValueAtTime(f);g.translate(P*this.px.mult,k*this.py.mult,-F*this.pz.mult)}else g.translate(P*this.px.mult,k*this.py.mult,0)}else{var B=this.p.getValueAtTime(f);g.translate(B[0]*this.p.mult,B[1]*this.p.mult,-B[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 d=o(f,g,v);return d.dynamicProperties.length?d.getValueAtTime=i.bind(d):d.getValueAtTime=a.bind(d),d.setGroupProperty=expressionHelpers.setGroupProperty,d};var s=PropertyFactory.getProp;PropertyFactory.getProp=function(f,g,v,d,_){var x=s(f,g,v,d,_);x.kf?x.getValueAtTime=expressionHelpers.getValueAtTime.bind(x):x.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(x),x.setGroupProperty=expressionHelpers.setGroupProperty,x.loopOut=e,x.loopIn=r,x.smooth=n,x.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(x),x.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(x),x.numKeys=g.a===1?g.k.length:0,x.propertyIndex=g.ix;var m=0;return v!==0&&(m=createTypedArray("float32",g.a===1?g.k[0].s.length:g.k.length)),x._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:m},expressionHelpers.searchExpressions(f,g,x),x.k&&_.addDynamicProperty(x),x};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 d=this.v;v!==void 0&&(d=this.getValueAtTime(v,0));var _,x=d._length,m=d[g],p=d.v,y=createSizedArray(x);for(_=0;_<x;_+=1)g==="i"||g==="o"?y[_]=[m[_][0]-p[_][0],m[_][1]-p[_][1]]:y[_]=[m[_][0],m[_][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 d=this.v;v!==void 0&&(d=this.getValueAtTime(v,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(d));for(var _=this._segmentsLength,x=_.lengths,m=_.totalLength*g,p=0,y=x.length,E=0,S;p<y;){if(E+x[p].addedLength>m){var P=p,k=d.c&&p===y-1?0:p+1,F=(m-E)/x[p].addedLength;S=bez.getPointInSegment(d.v[P],d.v[k],d.o[P],d.i[k],F,x[p]);break}else E+=x[p].addedLength;p+=1}return S||(S=d.c?[d.v[0][0],d.v[0][1]]:[d.v[d._length-1][0],d.v[d._length-1][1]]),S},vectorOnPath:function(g,v,d){g==1?g=this.v.c:g==0&&(g=.999);var _=this.pointOnPath(g,v),x=this.pointOnPath(g+.001,v),m=x[0]-_[0],p=x[1]-_[1],y=Math.sqrt(Math.pow(m,2)+Math.pow(p,2));if(y===0)return[0,0];var E=d==="tangent"?[m/y,p/y]:[-p/y,m/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 C=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(f,g,v,d,_){var x=C(f,g,v,d,_);return x.propertyIndex=g.ix,x.lock=!1,v===3?expressionHelpers.searchExpressions(f,g.pt,x):v===4&&expressionHelpers.searchExpressions(f,g.ks,x),x.k&&f.addDynamicProperty(x),x}}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,C=Math.floor(u/h),f;for(f=0;f<C;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}),C,f=0,g=a-i,v=r-e;o<=256;)l=o/256,l<=c?C=v<0?a:i:l>=u?C=v<0?i:a:C=i+g*Math.pow((l-e)/v,1/n),h[f]=C,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 C=this.createMergeNode(i,[i+"_drop_shadow_4",a]);e.appendChild(C)}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"}),{getGlobalModel:a,setGlobalModel:o}=vue.inject(GLOBAL_MODEL,{getGlobalModel:C=>{},setGlobalModel:(C,f)=>{}}),l=useEmitEvent(e)("click",()=>{const C=a(e.id);if(o(e.id,{...C,type:e.type,RECORD:e.data||{}}),setTimeout(()=>{o(e.id,{...C,type:e.type,RECORD:{}})},0),!e.linkPage&&!e.href)return;const f=e.linkPage||"",g=usePageUrl(vue.unref(i),f),v=e.href;let d=v||g;d=useVariablesInText(d);const _=e.target;_&&(_!=="event"?window.open(d,"_"+_):window.parent.postMessage({type:"openPage",url:v},"*"))}),c=vue.ref(),u=vue.ref(),h=()=>{const{directory:C}=e.animationSource;e.isAnimation&&c.value&&C&&(u.value=lottie.loadAnimation({name:`${e.keyName}-lotTie`,container:c.value,renderer:"svg",loop:!0,autoplay:!0,path:useImagePath(C)+"data.json"}),vue.unref(u).setSpeed(1))};return vue.watch(()=>[e.isAnimation,e.animationSource],([C])=>{C&&vue.nextTick(()=>{h()})},{immediate:!0,deep:!0}),useOnEvent(e,{click:l}),{style:r,myImgUrl:n,animation:c,pageMode:i,onClick:l}}}),__injectCSSVars__$1=()=>{vue.useCssVars(e=>({"01f4f5d8":e.isHoverStyle?"pointer":"auto",26617791: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_8c627cf7_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.style),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.style),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.style)}," 请上传图片 ",6)):vue.createCommentVNode("",!0)],64)}const Image$1=_export_sfc$1(__default__$1,[["render",_sfc_render$4],["__scopeId","data-v-8c627cf7"]]),EcanImage=withInstall(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(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},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},props:{...tableComponentProps},setup(e,{expose:r}){const n=vue.ref(!1),i=vue.computed(()=>{const W=lodashEs.cloneDeep(e.columns);return e.isUseSeq&&W.unshift({title:e.seqName,dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&W.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),W}),a=vue.ref(),o=vue.ref(!1),s=usePickComponentStyle(e),l=vue.ref([]),c=vue.computed(()=>e.scrollX),u=vue.ref(0),h=()=>{let W=0;switch(e.size){case"small":W=50;break;case"middle":W=53;break;default:W=65;break}return W};vue.watchEffect(()=>{var W;(W=l.value)!=null&&W.length&&e.height&&vue.nextTick(()=>{let J=parseFloat(e.height);const Q=document.querySelector(`#ecanTable-${e.id} .ant-table-tbody`),oe=document.querySelector(`#ecanTable-${e.id} thead.ant-table-thead`),le=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`);let se=0;if(oe&&(J-=(oe==null?void 0:oe.clientHeight)||0),le&&e.isSummaryFixed&&(se=(le==null?void 0:le.clientHeight)||0,J-=se),e.paginationShow){let ie=0;ie=h(),ie&&(J-=ie)}(Q==null?void 0:Q.clientHeight)>J?u.value=J:u.value=0,vue.nextTick(()=>{if(se){const ie=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`),me=(ie==null?void 0:ie.clientHeight)||0;se!==me&&vue.unref(u)&&(u.value=J+se-me)}})})});const C=vue.ref([]),f=vue.ref([]),g=vue.ref([]),v=vue.ref([]),d=vue.ref(0),_=vue.ref(1),x=vue.ref(e.paginationPageSize||10),m=vue.reactive([]),p=(W,J)=>{let Q="";return W.forEach((oe,le)=>{const{value:se,rule:ie}=oe;oe.conditions?Q+=`(${p(oe.conditions,oe.join)})`:se&&ie&&(Q+=`value ${ie} '${se}'`),Q+=`${le===W.length-1?"":J?" "+J+" ":""}`}),Q},y=(W=[])=>{var J,Q;if(Array.isArray(W)&&W.length>0){let oe=W.length;const le=e.columnsFixedNum;if(e.dataType==="indicator"&&((J=vue.unref(i))!=null&&J.length)){const{graphicConfig:{indicators:se=[]}}=e;W.forEach((ie,me)=>{if(vue.unref(i)[me])for(const Ee in vue.unref(i)[me])["dataIndex","title"].includes(Ee)||(ie[Ee]=vue.unref(i)[me][Ee]);const ge=se.find(Ee=>Ee.label===ie.title),{showLabel:xe=""}=ge||{};xe&&(ie.title=xe)})}for(let se=oe-1;se>=0;se--)(Q=W[se])!=null&&Q.isHidden&&W.splice(se,1);oe=W.length;for(let se=0;se<oe;se++){const ie=W[se];if(se<le?ie.fixed="left":ie.fixed=!1,e.isSortByFront&&ie.sorter){const Le=ie.dataIndex;ie.sorter=(ze,Ge)=>ze[Le]-Ge[Le]}const{cellAlign:me="center",cellColor:ge,dataIndex:xe,title:Ee,tableFilter:Be,headerCellAlign:Ve,headerCellColor:Ne,overflow:Ie,conditions:De}=ie;Be&&(m.push(xe),ie.filterOptionsInputValue="",ie.filterCheckboxGroupValue=[],ie.customFilterDropdown=!0,ie.onFilter=(Le,ze)=>ze[xe].toString().toLowerCase().includes(Le.toLowerCase())),De&&(ie.conditionCode=p(De)),ie.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:e.headerFontSize,fontWeight:e.headerFontWeight,textAlign:Ve||"center",color:Ne||e.headerFontColor,borderBottomColor:e.borderColor,backgroundColor:e.headerBackgroundColor}}),ie.customCell=(Le,ze)=>({style:{textAlign:me,color:ge||e.cellFontColor,backgroundColor:e.cellBackgroundColor,borderBottomColor:e.borderColor},class:{highlight:vue.unref(Z)===ze&&e.clickHighlight},onClick:q("click",()=>{const Ge=e.id,$e=N(Ge);Le={dataIndex:xe,title:Ee,...Le},G(Ge,{...$e,type:e.type,RECORD:Le})})}),Ie==="ellipsis"?ie.ellipsis=!0:ie.ellipsis=!1,Array.isArray(ie.children)&&y(ie.children)}}},E=(W=[])=>{var Q;let J=lodashEs.cloneDeep(W);return(Q=vue.unref(v))!=null&&Q.length&&(J=lodashEs.cloneDeep(vue.unref(v))),e.isUseSeq&&J.unshift({title:e.seqName,dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&J.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),y(J),J};vue.watch(x,()=>{_.value=1,$(!1)}),vue.watch(a,W=>{o.value=!!W}),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],()=>{C.value=E(lodashEs.cloneDeep(e.columns))},{immediate:!0,deep:!0}),vue.watch(()=>[e.data,e.dataType],([W,J])=>{J==="static"&&(f.value=W)},{immediate:!0});const S=vue.ref({}),P=W=>{if(Array.isArray(W)){const J=W.length,Q=m,oe=Q.length,le={};for(let ie=0;ie<J;ie++){const me=W[ie];for(let ge=0;ge<oe;ge++){const xe=Q[ge];if(le[xe])le[xe].add(me[xe]);else{const Ee=new Set;Ee.add(me[xe]),le[xe]=Ee}}}const se={};for(const ie in le)if(Object.prototype.hasOwnProperty.call(le,ie)){const me=le[ie],ge=Array.from(me);se[ie]=ge.map(xe=>({label:xe,value:xe}))}S.value=se}};vue.watch(()=>[e.isReverse,C.value,f.value],()=>{const W=vue.unref(C),J=vue.unref(f);if(P(J),e.isReverse){const{columns:Q,dataSource:oe}=k(lodashEs.cloneDeep(W),lodashEs.cloneDeep(J));g.value=Q,l.value=oe}else g.value=W,l.value=J},{immediate:!0});const k=(W,J)=>{const Q=W[0],oe=[{title:Q.title,dataIndex:"col0",key:"col0",align:"center"}];for(let se=0;se<J.length;se++){const ie=J[se],me="col"+(se+1);oe.push({title:ie[Q.dataIndex],dataIndex:me,key:me,align:"center"})}const le=[];for(let se=1;se<W.length;se++){const ie=W[se],me={col0:ie.title};for(let ge=0;ge<J.length;ge++){const xe=J[ge];me[`col${ge+1}`]=xe[ie.dataIndex]}le.push(me)}return{columns:oe,dataSource:le}},F=vue.ref(""),B=W=>{var oe;const{rows:J=[],total:Q=0}=((oe=W==null?void 0:W.data)==null?void 0:oe.data)||{};if(d.value=Q,Array.isArray(J)&&(f.value=J),window.config.routerBaseURL.includes("1523545080925487106")){const{requestParams:le=[]}=e,se=le.find(ie=>ie.key==="dataSqlId");if((se==null?void 0:se.value)==="xt_jxzebg"){const ie=J.filter(me=>!me.绩效总额).map(me=>me.ORG_NAME);ie!=null&&ie.length&&vue.nextTick(()=>{antDesignVue.notification.warning({message:"提示",description:`当前时段${ie.join("、")}绩效数据为空`,duration:3})})}}},L=useRequestData(e,B),O=async(W=!0,J={})=>{try{W&&(n.value=!0),vue.unref(F)&&(J.orderCondition=vue.unref(F)),e.paginationShow&&(J={pageNum:vue.unref(_),pageSize:vue.unref(x)||"10",layer:"1",...J});const Q=await L(J);B(Q)}catch(Q){console.error(Q)}finally{n.value=!1}},D=({current:W},J,Q)=>{if(_.value=W,Q&&Object.keys(Q).length>0){const{field:oe,order:le}=Q,ie={ascend:"asc",descend:"desc"}[le];oe!=null&&ie!=null&&ie?F.value=oe+" "+ie:ie||(F.value="")}e.isSortByFront||$(!1)},V=vue.computed(()=>{const W=e.simple,J=[e.paginationPosition],Q={};return e.isShowTotal&&(Q.showTotal=oe=>`共 ${oe} 条数据`),e.paginationShow&&{simple:W,position:J,total:vue.unref(d),current:vue.unref(_),pageSize:vue.unref(x)||"10",showSizeChanger:!1,size:"large",...Q}}),M=W=>+W==1?"是":+W==0?"否":W,T=(W,J)=>{const{format:Q,retentiondigit:oe,customFormatter:le,defaultVal:se}=J;let ie="";if(Q==null||Q==="")ie=W;else{const me={money:formatMoney,percentage:formatPercentage,contrast:formatPercentage,boolean:M,decimals:formatDecimals,custom:formatCustom};me[Q]||(ie=""),Q==="decimals"?ie=me[Q](W,oe)||"":Q==="custom"?ie=me[Q](W,le)||"":ie=me[Q](W)||""}return ie||(ie=se),ie},w=W=>W==="contrast"?"upDown":"",b=W=>{const{text:J,format:Q,declineColor:oe="#39cf93",increaseColor:le="#ff512e"}=W;if(Q==="contrast"){const se={fontSize:e.fontSize},ie=parseFloat(J+"");return ie>=0?se.color=le:ie<0&&(se.color=oe),se}else return{}},A=vue.computed(()=>{const{fontSize:W}=e;return{width:W,height:W,textIndent:`-${parseFloat(W)*2}px`,overflow:"hidden"}}),R=W=>{const{text:J,declineColor:Q="#39cf93",increaseColor:oe="#ff512e"}=W,{fontSize:le}=e,se=parseFloat(J+""),ie={width:le,verticalAlign:"unset"};return se>=0?ie.filter=`drop-shadow(${oe||"#ff512e"} ${le} -1px)`:se<0&&(ie.filter=`drop-shadow(${Q||"#39cf93"} ${le} -1px)`),ie},I=W=>{const J=parseFloat(W+"");if(J>=0)return goUp;if(J<0)return goDown},q=useEmitEvent(e),{getGlobalModel:N,setGlobalModel:G}=vue.inject(GLOBAL_MODEL,{getGlobalModel:W=>{},setGlobalModel:(W,J)=>{}});G(e.id,{type:e.type,RECORD:""});const Y=(W=[],J=[])=>{const Q=W.map(oe=>({title:oe,dataIndex:oe,key:oe}));v.value=lodashEs.cloneDeep(Q),C.value=E(Q),f.value=J},U=W=>{var J,Q,oe,le;Y((Q=(J=W==null?void 0:W.data)==null?void 0:J.data)==null?void 0:Q.columns,(le=(oe=W==null?void 0:W.data)==null?void 0:oe.data)==null?void 0:le.rows)},j=useIndicatorData(e,U),H=async(W=!0)=>{try{W&&(n.value=!0);const J=vue.unref(F).split(" "),Q={};e.isSortByFront||(Q.sort={order:J[1],field:J[0]});const oe=await j(Q);U(oe)}catch(J){console.error(J)}finally{n.value=!1}},Z=vue.ref(-1),X=(W,J)=>({onClick:q("rowClick",()=>{const Q=e.id,oe=N(Q);G(Q,{...oe,type:e.type,RECORD:W}),Z.value=J})}),{loadedData:ae}=vue.inject(LOADED_DATA,{loadedData:{}}),fe=vue.ref(!1);vue.watch(ae,W=>{if(e.dataType==="indicator"){const J=getFixedValueDatas(e.graphicConfig);J!=null&&J.length&&(!vue.unref(fe)&&canRequestIndicator(e.graphicConfig,W)?(fe.value=!0,$()):canRequestIndicator(e.graphicConfig,W)||(fe.value=!1))}},{deep:!0});const $=(W=!0)=>{switch(e.dataType){case"request":O(W);break;case"indicator":canRequestIndicator(e.graphicConfig,vue.unref(ae))&&H(W);break}},K=()=>{const W=e.id,J=N(W);G(W,{...J,type:e.type,RECORD:""})},ee=vue.computed(()=>{const W=vue.unref(g);let J=0;const{subTotalColumn:Q,subTotalName:oe}=e;Q&&(J=W.findIndex(ge=>ge.dataIndex===Q),J<0&&(J=0));const le=[];let se=0;for(let ge=0;ge<W.length;ge++){const xe=W[ge],{isCalcTotal:Ee}=xe;ge===J?le.push({...xe,total:oe}):Ee?(le.push({...xe,index:ge,total:0}),se++):le.push({...xe})}if(se===0)return[];const ie=vue.unref(l),me=te(le);for(let ge=0;ge<me.length;ge++){const xe=me[ge];let Ee=0;const{isCalcTotal:Be,dataIndex:Ve}=xe;if(Be===!0){for(let Ne=0;Ne<ie.length;Ne++){const De=+ie[Ne][Ve];isNaN(De)||(Ee=new big_js.Big(Ee).add(De).toNumber())}xe.total=Ee}}return me});function te(W){var Q;const J=[];for(const oe of W)(Q=oe.children)!=null&&Q.length?J.push(...te(oe.children)):J.push(oe);return J}const{setRequest:re}=vue.inject(REQUEST_MODEL,{setRequest:W=>{}});typeof re=="function"&&re({id:e.id,requestFn:$,sortNum:e.requestSort}),r({refreshData:$});const ne=(W="",J)=>useVariablesInText(W,J),he=W=>{if(W!=="event")return{self:"_self",blank:"_blank"}[W]},ve=(W,J="")=>{W==="event"&&window.parent.postMessage({type:"openPage",url:J},"*")},pe=(W,J)=>{W(J.filterCheckboxGroupValue)},ye=(W,J)=>{W({confirm:!0}),J.filterOptionsInputValue="",J.filterCheckboxGroupValue=[]},be=()=>{},ce=W=>{const J=W.dataIndex;if(typeof J=="string"){let Q=vue.unref(S)[J];const oe=vue.unref(W.filterOptionsInputValue).trim();return Array.isArray(Q)?(Q=Q.filter(le=>typeof le.label=="string"?le.label.toLowerCase().includes(oe.toLowerCase()):!0),Q):[]}return[]},de=async()=>{var xe,Ee;const W="EXPORT_KEY";antDesignVue.message.loading({key:W,content:"正在导出...",duration:0});let J=[];if(e.dataType==="static")J=e.data;else if(e.dataType==="request"){const Be={layer:"1"};vue.unref(F)&&(Be.orderCondition=vue.unref(F));const Ve=await L(Be);J=((Ee=(xe=Ve==null?void 0:Ve.data)==null?void 0:xe.data)==null?void 0:Ee.rows)||{}}const Q=vue.unref(g),oe=[],le=[];Q==null||Q.forEach(Be=>{oe.push(Be.dataIndex),le.push(Be.title)});const se=J.map(Be=>lodashEs.pick(Be,oe)),ie=xlsx.utils.book_new(),me=xlsx.utils.aoa_to_sheet([le]),ge=xlsx.utils.sheet_add_json(me,se,{skipHeader:!0,origin:"A2"});xlsx.utils.book_append_sheet(ie,ge,"sheet"),xlsx.writeFile(ie,"表格数据.xlsx"),antDesignVue.message.success({key:W,content:"导出成功"})},ue=(W,J=2)=>{const Q=+W*100;return isNaN(Q)||Q<=0?0:Q>=100?100:Q.toFixed(J)};useOnEvent(e,{resetRecord:K,refreshData:$,exportTableData:de});const Ce=(W,J)=>{let Q=null;return e.stripedShow&&(Q=J%2===1?"table-striped":null),Q},_e=vue.computed(()=>{let W=0;const{height:J,isPageBottom:Q}=e;return Q&&J&&(W=parseFloat(J)-h()),W?W+"px":"100%"}),Ae=vue.computed(()=>{let W="#071655";return e.headerBackgroundColor&&(W="transparent"),W}),we=vue.computed(()=>{let W="#071655";return(e.cellBackgroundColor||e.stripedShow&&e.stripedColor)&&(W="transparent"),W}),Te=vue.computed(()=>parseFloat(e.fontSize)+16),Me=vue.computed(()=>{let W="";const{paginationColor:J,paginationBgColor:Q,activePaginationColor:oe,activePaginationBgColor:le,hoverBackgroundColor:se}=e;return J&&(W+="p-color "),Q&&(W+="p-bg-color "),oe&&(W+="active-p-color "),le&&(W+="active-p-bg-color "),se&&(W+="hover-bg-color "),W}),ke=(W,J)=>{const{conditionCode:Q}=W;return runCode(Q,{value:J})};return{x:c,y:u,style:s,customRow:X,pagination:V,formatFn:T,contrastClass:w,tableChange:D,summaryList:ee,loading:n,onTouchHrefEvent:ve,handleHref:ne,handleHrefTarget:he,useRowIndex:Z,tableColumns:g,tableDataSource:l,useFilterOptions:ce,useSetSelectedKeys:pe,onResetFilter:ye,onSearchFilterOptions:be,exportTableData:de,handleProgressText:ue,pageSizeVisible:o,pageSize:x,tableRef:a,rowClassName:Ce,tableHeight:_e,tableHeaderBgColor:Ae,tableBodyBgColor:we,getChgStyle:b,chgBoxStyle:A,getChgBoxImgStyle:R,getChgBoxImgSrc:I,seqIcon1,seqIcon2,seqIcon3,iconSize:Te,containerClass:Me,getCellStyle:(W,J)=>{const{overflow:Q,conditionCode:oe,attribute:le}=W,se={};return Q==="ellipsis"&&(se.overflow="hidden",se.textOverflow="ellipsis"),oe&&(le!=null&&le.color)&&ke(W,J)&&(se.color=le.color),le!=null&&le.icon&&(W==null?void 0:W.cellAlign)==="right"&&(se.display="flex",se.alignItems="center",se.justifyContent="flex-end"),se},isMatchCondition:ke,getAttrImgSrc:W=>{const{attribute:J}=W;let Q="";return J!=null&&J.icon&&(Q=useImagePath(J.icon)),Q},getAttrImgStyle:W=>{let J={};return(W==null?void 0:W.cellAlign)==="right"?J={marginRight:"5px"}:J={position:"absolute",marginLeft:"5px"},{width:"auto",height:parseFloat(e.fontSize)+6+"px",...J}},getCellText:(W,J)=>W||W===0?W:J==null?void 0:J.defaultVal}}}),__injectCSSVars__=()=>{vue.useCssVars(e=>({e4452790:e.stripedColor,cfc76e22:e.tableHeaderBgColor,"6d62afba":e.tableBodyBgColor,"8675ef50":e.paginationBgColor,c1652fc6:e.paginationColor,b696821c:e.activePaginationBgColor,"15e40592":e.activePaginationColor,"271e1645":e.hoverBackgroundColor}))},__setup__=__default__.setup;__default__.setup=__setup__?(e,r)=>(__injectCSSVars__(),__setup__(e,r)):__injectCSSVars__;const Table_vue_vue_type_style_index_0_scoped_a207df51_lang="",Table_vue_vue_type_style_index_1_lang="",_withScopeId=e=>(vue.pushScopeId("data-v-a207df51"),e=e(),vue.popScopeId(),e),_hoisted_1$1=["id"],_hoisted_2={key:0,class:"table-tool"},_hoisted_3=vue.createTextVNode("导出数据"),_hoisted_4=vue.createTextVNode(" 搜索 "),_hoisted_5=vue.createTextVNode(" 重置 "),_hoisted_6=["src","width","height"],_hoisted_7=["src","width","height"],_hoisted_8=["src","width","height"],_hoisted_9={key:1},_hoisted_10={key:1,class:"action-list"},_hoisted_11=["href","target","onClick"],_hoisted_12={key:2,class:"progress-cell"},_hoisted_13=["src"],_hoisted_14=["title"],_hoisted_15=["title"],_hoisted_16=["src"],_hoisted_17=["title"],_hoisted_18=["src"],_hoisted_19=["src"],_hoisted_20={class:"ant-pagination-options-quick-jumper"},_hoisted_21=_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("a-input"),c=vue.resolveComponent("a-checkbox-group"),u=vue.resolveComponent("a-table-summary-cell"),h=vue.resolveComponent("a-table-summary-row"),C=vue.resolveComponent("a-table-summary"),f=vue.resolveComponent("a-table"),g=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(g,{loading:e.loading},{default:vue.withCtx(()=>{var v;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(f,{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}:{},pagination:e.pagination,"row-class-name":e.rowClassName,"show-header":!e.hideTableHeader,onChange:e.tableChange},{customFilterDropdown:vue.withCtx(({column:d,selectedKeys:_,setSelectedKeys:x,confirm:m,clearFilters:p})=>[vue.createElementVNode("div",{class:"ecan-table-filter",style:vue.normalizeStyle({height:e.filterDropdownHeight})},[vue.createVNode(l,{value:d.filterOptionsInputValue,"onUpdate:value":y=>d.filterOptionsInputValue=y,placeholder:"请输入关键字",class:"filter-input",onChange:e.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),vue.createVNode(c,{value:d.filterCheckboxGroupValue,"onUpdate:value":y=>d.filterCheckboxGroupValue=y,class:"filter-checkbox",options:e.useFilterOptions(d),onChange:y=>e.useSetSelectedKeys(x,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:()=>m()},{default:vue.withCtx(()=>[_hoisted_4]),_:2},1032,["onClick"]),vue.createVNode(s,{size:"small",style:{width:"90px"},onClick:vue.withModifiers(y=>e.onResetFilter(p,d),["stop"])},{default:vue.withCtx(()=>[_hoisted_5]),_:2},1032,["onClick"])])],4)]),bodyCell:vue.withCtx(({column:d,index:_,text:x,record:m})=>{var p,y,E,S,P,k;return[d.dataIndex==="SEQ"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[e.seqIcon?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[_===0?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:"seq-icon",src:e.seqIcon1,width:e.iconSize,height:e.iconSize},null,8,_hoisted_6)):_===1?(vue.openBlock(),vue.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon2,width:e.iconSize,height:e.iconSize},null,8,_hoisted_7)):_>=2?(vue.openBlock(),vue.createElementBlock("img",{key:2,class:"seq-icon",src:e.seqIcon3,width:e.iconSize,height:e.iconSize},null,8,_hoisted_8)):vue.createCommentVNode("",!0),vue.createElementVNode("span",{class:"seq-icon seq-text",style:vue.normalizeStyle({fontSize:e.fontSize})},vue.toDisplayString(_+1),5)],64)):(vue.openBlock(),vue.createElementBlock("span",_hoisted_9,vue.toDisplayString(_+1),1))],64)):d.dataIndex==="ACTION"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_10,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.actionList,(F,B)=>(vue.openBlock(),vue.createElementBlock("div",{class:"action",key:B},[vue.createElementVNode("a",{href:e.handleHref(F.href,m),target:e.handleHrefTarget(F.target),style:vue.normalizeStyle({color:F.color,fontSize:e.fontSize,fontWeight:e.fontWeight}),onClick:L=>e.onTouchHrefEvent(F.target,e.handleHref(F.href,m))},vue.toDisplayString(F.title),13,_hoisted_11)]))),128))])):d.format==="progress"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_12,[vue.createElementVNode("div",{class:"progress",style:vue.normalizeStyle({background:d.progressColor||"#1890ff",height:d.progressWidth||"18px",width:`${e.handleProgressText(x,d.progressTextDecimalPlaces)}%`})},null,4),vue.createElementVNode("div",{class:"progress-text",style:vue.normalizeStyle({color:+e.handleProgressText(x)<100?d.progressTextColor||"#333":d.progressFinishedTextColor||"#fff"})},vue.toDisplayString(e.handleProgressText(x,d.progressTextDecimalPlaces))+"% ",5)])):(vue.openBlock(),vue.createElementBlock("div",{key:3,style:vue.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight,...e.getCellStyle(d,x)})},[e.isMatchCondition(d,x)&&(d==null?void 0:d.cellAlign)==="right"&&((p=d==null?void 0:d.attribute)!=null&&p.icon)?(vue.openBlock(),vue.createElementBlock("img",{key:0,style:vue.normalizeStyle(e.getAttrImgStyle(d)),src:e.getAttrImgSrc(d)},null,12,_hoisted_13)):vue.createCommentVNode("",!0),d.format==="contrast"?(vue.openBlock(),vue.createElementBlock("span",{key:1,title:((y=d==null?void 0:d.customFormatter)==null?void 0:y.split("{value}")[0])||""},vue.toDisplayString(((E=d==null?void 0:d.customFormatter)==null?void 0:E.split("{value}")[0])||""),9,_hoisted_14)):vue.createCommentVNode("",!0),vue.createElementVNode("span",{class:vue.normalizeClass([e.contrastClass(d.format)]),style:vue.normalizeStyle(e.getChgStyle({...d,text:x})),title:d.format!=null?e.formatFn(x,d):x},[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:x})),src:e.getChgBoxImgSrc(x)},null,12,_hoisted_16)],4)):vue.createCommentVNode("",!0),vue.createTextVNode(" "+vue.toDisplayString(d.format!=null?e.formatFn(x,d):e.getCellText(x,d)),1)],14,_hoisted_15),d.format==="contrast"?(vue.openBlock(),vue.createElementBlock("span",{key:2,title:((S=d==null?void 0:d.customFormatter)==null?void 0:S.split("{value}")[1])||""},vue.toDisplayString(((P=d==null?void 0:d.customFormatter)==null?void 0:P.split("{value}")[1])||""),9,_hoisted_17)):vue.createCommentVNode("",!0),e.isMatchCondition(d,x)&&(d==null?void 0:d.cellAlign)!=="right"&&((k=d==null?void 0:d.attribute)!=null&&k.icon)?(vue.openBlock(),vue.createElementBlock("img",{key:3,style:vue.normalizeStyle(e.getAttrImgStyle(d)),src:e.getAttrImgSrc(d)},null,12,_hoisted_18)):vue.createCommentVNode("",!0)],4))]}),summary:vue.withCtx(()=>[e.summaryList.length>0?(vue.openBlock(),vue.createBlock(C,{key:0,fixed:e.isSummaryFixed},{default:vue.withCtx(()=>[vue.createVNode(h,null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.summaryList,(d,_)=>(vue.openBlock(),vue.createBlock(u,{key:_,index:_,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_19)],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},[(v=e.tableDataSource)!=null&&v.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_20,[vue.withDirectives(vue.createElementVNode("input",{type:"text","onUpdate:modelValue":r[0]||(r[0]=d=>e.pageSize=d)},null,512),[[vue.vModelText,e.pageSize]]),_hoisted_21])],8,["to"])):vue.createCommentVNode("",!0)],64)):vue.createCommentVNode("",!0)]}),_:1},8,["loading"])],14,_hoisted_1$1)}const Table=_export_sfc$1(__default__,[["render",_sfc_render$2],["__scopeId","data-v-a207df51"]]),EcanTable=withInstall(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"},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 V=e.symbolImage;return e.symbolImage?"image://"+useImagePath(V):"circle"}),C=V=>{let M=e.tooltipFormatter;const T=M.match(/\{(.+?)\}/g);if(T==null||T.length===0)return M;for(let w=0;w<T.length;w++){const b=T[w];let A=b.slice(1,-1).trim();const R=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,I=A.match(R);for(let q=0;q<I.length;q++){const N=I[q],G=V[N];G!=null&&(A=A.replace(N,G))}M=M.replace(b,A)}return M.split(`
|
|
128
|
+
`)},f=vue.ref(!1),g=vue.ref("");let v=new AbortController;const d=(V,M)=>{const T=v.signal;f.value=!0,i.value=V,r({name:V,signal:T}).then(w=>{var b,A;if(w){const R=((A=(b=w==null?void 0:w.data)==null?void 0:b.data)==null?void 0:A.rows)||[];let I="";for(const q of R){const N=C(q)||[];if(N!=null&&N.length)for(const G of N)I+=`<div style="word-break: break-all;white-space: normal;">${G}</div>`}I=`<div style="max-width:200px;">${I}</div>`,a.value=I,M(vue.unref(g),I)}else T.aborted?a.value="Loading":a.value=V,M(vue.unref(g),a.value);f.value=!1})},_=vue.computed(()=>{const V=e.geoCenter;let M;return typeof V=="string"&&V!==""&&(M=V.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:M,map:`map-${e.id}`,tooltip:{show:e.tooltipShow,trigger:"item",backgroundColor:e.tooltipBackgroundColor,borderColor:"transparent",textStyle:{color:e.tooltipTextStyleColor},formatter:(T,w,b)=>{g.value=w;const{name:A=""}=T,{requestUrl:R}=e.tooltipRequestData;if(!R)return A;if(vue.unref(f))vue.unref(i)!==A&&(v.abort(),v=new AbortController);else{if(vue.unref(i)===A)return vue.unref(a);d(A,b)}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}}},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:e.data}]}}),x=vue.ref(!1),m=async()=>{var T;x.value=!1;const V=e.mapJson,M=`map-${e.id}`;if(V!=null&&V.path){const w=await request(((T=window==null?void 0:window.config)==null?void 0:T.uploadPath)+V.path);core$1.registerMap(M,(w==null?void 0:w.data)||{})}else core$1.registerMap(M,{});x.value=!0};vue.watch(()=>e.mapJson,()=>{m()},{immediate:!0,deep:!0});const p=async V=>{var w,b;const M=((b=(w=V==null?void 0:V.data)==null?void 0:w.data)==null?void 0:b.rows)||{},T=`map-${e.id}`;if(M!=null&&M.path){const A=await request(M.path);core$1.registerMap(T,(A==null?void 0:A.data)||{})}else core$1.registerMap(T,{})},y=useRequestData(e,p),E=async()=>{if(e.dataType==="request"){x.value=!1;try{const V=await y();p(V)}catch(V){console.error(V)}finally{x.value=!0}}},S=()=>{switch(e.dataType){case"request":E();break}},{getGlobalModel:P,setGlobalModel:k}=vue.inject(GLOBAL_MODEL,{getGlobalModel:V=>{},setGlobalModel:(V,M)=>{}}),B=useEmitEvent(e)("click",()=>{const V=P(e.id);k(e.id,{...V,RECORD:vue.unref(n)})});useOnEvent(e,{refreshData:S});const{setRequest:L}=vue.inject(REQUEST_MODEL,{setRequest:V=>{}});return typeof L=="function"&&L({id:e.id,requestFn:S,sortNum:e.requestSort}),{option:_,style:o,isLoadedData:x,geoBackgroundImageRef:s,myGeoBackgroundImage:l,customClick:()=>{vue.unref(n)&&B()},onMouseOver:(V={})=>{V.componentType==="geo"&&V.region?n.value=V.region:n.value=null}}}}),Map_vue_vue_type_style_index_0_scoped_a049dc3f_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-a049dc3f"]]),EcanMap=withInstall(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 V;const{mode:D}=e;return(V=vue.unref(a))!=null&&V.length?o.value:D==="multiple"||D==="tags"||D==="combobox"?[]:""},set:D=>{o.value=D}}),{getGlobalModel:l,setGlobalModel:c,getRecordValueByKeyName:u}=vue.inject(GLOBAL_MODEL,{getGlobalModel:D=>{},setGlobalModel:(D,V)=>{},getRecordValueByKeyName:D=>{}}),h=e.dataFieldNames;vue.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,a.value],()=>{const{mode:D,selectFirstOption:V,value:M}=e,T=u(M),w=h.value;if(D==="multiple"||D==="tags"||D==="combobox"){if(T)o.value=T.split(",");else if(V){const b=vue.unref(a)[0];o.value=b?[b[w]]:[]}}else if(T)o.value=T;else if(V){const b=vue.unref(a)[0];o.value=b?b[w]:""}},{immediate:!0});const C=(D,V)=>{const M=h.label,T=h.value;let w;const b=V[M],A=V[T];return b!=null?w=b:A!=null&&(w=A),(w==null?void 0:w.toLowerCase().indexOf(D==null?void 0:D.toLowerCase()))>=0},f=D=>{const{label:V,value:M,options:T}=e.dataFieldNames;if(T&&Array.isArray(D))if(D.some(w=>T in w)){const w={},b=[];D.forEach(A=>{w[A[T]]||(w[A[T]]=[]),w[A[T]].push({[V]:A[V],[M]:A[M]})});for(const A in w)b.push({[V]:A,[T]:w[A]});return b}else return D;else if(!T)return D},g=vue.ref(!1),v=D=>{var V,M;if(a.value=f(((M=(V=D==null?void 0:D.data)==null?void 0:V.data)==null?void 0:M.rows)||[]),e.selectFirstOption){let T=vue.unref(a)[0];if(h.options){const w=T[h.options];w&&w.length&&(T=w[0])}o.value=T[h.value]}},d=useRequestData(e,v),_=async()=>{if(e.dataType==="request"){g.value=!0;try{const D=await d();v(D)}catch(D){console.error(D)}finally{g.value=!1}}},x=vue.computed(()=>{let D=o.value;if(e.valueType==="label"&&vue.unref(o)&&vue.unref(a)){const V=h.label,M=h.value;if(e.mode==="multiple")D=vue.unref(a).filter(T=>vue.unref(o).includes(T[M])).map(T=>T[V]);else{const T=vue.unref(a).find(w=>vue.unref(o)===w[M]);T&&(D=T[V])}}return D}),m=vue.ref([]),p=vue.computed(()=>{const D={};if(e.mode!=="multiple"){const V=vue.unref(m).find(M=>M.value===vue.unref(o));V&&(D.itemCodes=V.item_codes)}return D}),y=vue.computed(()=>{const{value:D,label:V}=h,M=vue.unref(a).find(T=>T[D]===vue.unref(s));return M?{label:M[V],value:M[D]}:{}});c(e.id,{type:e.type,value:x,...vue.unref(p),recordData:vue.unref(y)});const S=useEmitEvent(e)("selectChange",()=>{const D=e.id,V=l(D);c(D,{...V,...vue.unref(p),RECORD:x,recordData:vue.unref(y)})}),P=(D=[])=>{if(a.value=f(D),e.selectFirstOption){let V=vue.unref(a)[0];if(h.options){const M=V[h.options];M&&M.length&&(V=M[0])}o.value=V[h.value]}c(e.id,{type:e.type,value:x,...vue.unref(p),recordData:vue.unref(y)})},k=D=>{var w;const{data:V}=(D==null?void 0:D.data)||{},M=h.label,T=h.value;if(V){const b=((w=D==null?void 0:D.data)==null?void 0:w.data)??[];m.value=b;const A=b.map(q=>({[M]:q.label,[T]:q.value})),{id:R}=e,I=l(R);c(R,{...I,...vue.unref(p)}),P(A)}else P([])},F=useIndicatorData(e,k),B=async()=>{try{g.value=!0;const D=await F();k(D)}catch(D){console.error(D)}finally{g.value=!1}},L=()=>{switch(e.dataType){case"indicator":{B();break}case"request":_();break}};useOnEvent(e,{selectChange:S,refreshData:L});const{setRequest:O}=vue.inject(REQUEST_MODEL,{setRequest:({id:D,sortNum:V,requestFn:M})=>{}});return typeof O=="function"&&O({id:e.id,requestFn:L,sortNum:e.requestSort}),r({refreshData:L}),{style:n,getPopupContainer:i,myValue:o,selectChange:S,options:a,filterOption:C,loading:g,resultValue:s}}}),DataSelect_vue_vue_type_style_index_0_scoped_703a9095_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-703a9095"]]),EcanDataSelect=withInstall(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,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,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,textComponentProps,textEvents,textProps,timeDisplayComponentProps,timeDisplayEvents,timeDisplayProps,treeSelectComponentProps,treeSelectEvents,treeSelectProps},Symbol.toStringTag,{value:"Module"})),install=e=>{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.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,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,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"}})});
|
|
121
129
|
//# sourceMappingURL=index.umd.js.map
|