go-core 0.2.23 → 0.2.25
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/code.es5.js +8 -8
- package/dist/code.umd.js +11 -11
- package/package.json +2 -2
package/dist/code.es5.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import t,{uniq as e}from"lodash";import n from"axios";var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function i(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function a(t,e){return t(e={exports:{}},e.exports),e.exports}var o=a((function(t,e){t.exports=function(){var e,n;function r(){return e.apply(null,arguments)}function a(t){e=t}function o(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function s(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function l(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function c(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(l(t,e))return!1;return!0}function u(t){return void 0===t}function h(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function d(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function f(t,e){var n,r=[],i=t.length;for(n=0;n<i;++n)r.push(e(t[n],n));return r}function p(t,e){for(var n in e)l(e,n)&&(t[n]=e[n]);return l(e,"toString")&&(t.toString=e.toString),l(e,"valueOf")&&(t.valueOf=e.valueOf),t}function m(t,e,n,r){return Kn(t,e,n,r,!0).utc()}function g(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function v(t){return null==t._pf&&(t._pf=g()),t._pf}function y(t){var e=null,r=!1,i=t._d&&!isNaN(t._d.getTime());return i&&(e=v(t),r=n.call(e.parsedDateParts,(function(t){return null!=t})),i=e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&r),t._strict&&(i=i&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour)),null!=Object.isFrozen&&Object.isFrozen(t)?i:(t._isValid=i,t._isValid)}function b(t){var e=m(NaN);return null!=t?p(v(e),t):v(e).userInvalidated=!0,e}n=Array.prototype.some?Array.prototype.some:function(t){var e,n=Object(this),r=n.length>>>0;for(e=0;e<r;e++)if(e in n&&t.call(this,n[e],e,n))return!0;return!1};var _=r.momentProperties=[],w=!1;function D(t,e){var n,r,i,a=_.length;if(u(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),u(e._i)||(t._i=e._i),u(e._f)||(t._f=e._f),u(e._l)||(t._l=e._l),u(e._strict)||(t._strict=e._strict),u(e._tzm)||(t._tzm=e._tzm),u(e._isUTC)||(t._isUTC=e._isUTC),u(e._offset)||(t._offset=e._offset),u(e._pf)||(t._pf=v(e)),u(e._locale)||(t._locale=e._locale),a>0)for(n=0;n<a;n++)u(i=e[r=_[n]])||(t[r]=i);return t}function S(t){D(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===w&&(w=!0,r.updateOffset(this),w=!1)}function x(t){return t instanceof S||null!=t&&null!=t._isAMomentObject}function T(t){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function k(t,e){var n=!0;return p((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,t),n){var i,a,o,s=[],c=arguments.length;for(a=0;a<c;a++){if(i="","object"==typeof arguments[a]){for(o in i+="\n["+a+"] ",arguments[0])l(arguments[0],o)&&(i+=o+": "+arguments[0][o]+", ");i=i.slice(0,-2)}else i=arguments[a];s.push(i)}T(t+"\nArguments: "+Array.prototype.slice.call(s).join("")+"\n"+(new Error).stack),n=!1}return e.apply(this,arguments)}),e)}var C,E={};function A(t,e){null!=r.deprecationHandler&&r.deprecationHandler(t,e),E[t]||(T(e),E[t]=!0)}function O(t){return"undefined"!=typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function M(t){var e,n;for(n in t)l(t,n)&&(O(e=t[n])?this[n]=e:this["_"+n]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function N(t,e){var n,r=p({},t);for(n in e)l(e,n)&&(s(t[n])&&s(e[n])?(r[n]={},p(r[n],t[n]),p(r[n],e[n])):null!=e[n]?r[n]=e[n]:delete r[n]);for(n in t)l(t,n)&&!l(e,n)&&s(t[n])&&(r[n]=p({},r[n]));return r}function P(t){null!=t&&this.set(t)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,C=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)l(t,e)&&n.push(e);return n};var V={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function R(t,e,n){var r=this._calendar[t]||this._calendar.sameElse;return O(r)?r.call(e,n):r}function B(t,e,n){var r=""+Math.abs(t),i=e-r.length;return(t>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var I=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,F=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,j={},L={};function Y(t,e,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),t&&(L[t]=i),e&&(L[e[0]]=function(){return B(i.apply(this,arguments),e[1],e[2])}),n&&(L[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),t)})}function z(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function H(t){var e,n,r=t.match(I);for(e=0,n=r.length;e<n;e++)L[r[e]]?r[e]=L[r[e]]:r[e]=z(r[e]);return function(e){var i,a="";for(i=0;i<n;i++)a+=O(r[i])?r[i].call(e,t):r[i];return a}}function U(t,e){return t.isValid()?(e=q(e,t.localeData()),j[e]=j[e]||H(e),j[e](t)):t.localeData().invalidDate()}function q(t,e){var n=5;function r(t){return e.longDateFormat(t)||t}for(F.lastIndex=0;n>=0&&F.test(t);)t=t.replace(F,r),F.lastIndex=0,n-=1;return t}var G={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function W(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.match(I).map((function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t})).join(""),this._longDateFormat[t])}var $="Invalid date";function K(){return this._invalidDate}var Z="%d",X=/\d{1,2}/;function J(t){return this._ordinal.replace("%d",t)}var Q={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function tt(t,e,n,r){var i=this._relativeTime[n];return O(i)?i(t,e,n,r):i.replace(/%d/i,t)}function et(t,e){var n=this._relativeTime[t>0?"future":"past"];return O(n)?n(e):n.replace(/%s/i,e)}var nt={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function rt(t){return"string"==typeof t?nt[t]||nt[t.toLowerCase()]:void 0}function it(t){var e,n,r={};for(n in t)l(t,n)&&(e=rt(n))&&(r[e]=t[n]);return r}var at={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function ot(t){var e,n=[];for(e in t)l(t,e)&&n.push({unit:e,priority:at[e]});return n.sort((function(t,e){return t.priority-e.priority})),n}var st,lt=/\d/,ct=/\d\d/,ut=/\d{3}/,ht=/\d{4}/,dt=/[+-]?\d{6}/,ft=/\d\d?/,pt=/\d\d\d\d?/,mt=/\d\d\d\d\d\d?/,gt=/\d{1,3}/,vt=/\d{1,4}/,yt=/[+-]?\d{1,6}/,bt=/\d+/,_t=/[+-]?\d+/,wt=/Z|[+-]\d\d:?\d\d/gi,Dt=/Z|[+-]\d\d(?::?\d\d)?/gi,St=/[+-]?\d+(\.\d{1,3})?/,xt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Tt=/^[1-9]\d?/,kt=/^([1-9]\d|\d)/;function Ct(t,e,n){st[t]=O(e)?e:function(t,r){return t&&n?n:e}}function Et(t,e){return l(st,t)?st[t](e._strict,e._locale):new RegExp(At(t))}function At(t){return Ot(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,n,r,i){return e||n||r||i})))}function Ot(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Mt(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function Nt(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=Mt(e)),n}st={};var Pt={};function Vt(t,e){var n,r,i=e;for("string"==typeof t&&(t=[t]),h(e)&&(i=function(t,n){n[e]=Nt(t)}),r=t.length,n=0;n<r;n++)Pt[t[n]]=i}function Rt(t,e){Vt(t,(function(t,n,r,i){r._w=r._w||{},e(t,r._w,r,i)}))}function Bt(t,e,n){null!=e&&l(Pt,t)&&Pt[t](e,n._a,n,t)}function It(t){return t%4==0&&t%100!=0||t%400==0}var Ft=0,jt=1,Lt=2,Yt=3,zt=4,Ht=5,Ut=6,qt=7,Gt=8;function Wt(t){return It(t)?366:365}Y("Y",0,0,(function(){var t=this.year();return t<=9999?B(t,4):"+"+t})),Y(0,["YY",2],0,(function(){return this.year()%100})),Y(0,["YYYY",4],0,"year"),Y(0,["YYYYY",5],0,"year"),Y(0,["YYYYYY",6,!0],0,"year"),Ct("Y",_t),Ct("YY",ft,ct),Ct("YYYY",vt,ht),Ct("YYYYY",yt,dt),Ct("YYYYYY",yt,dt),Vt(["YYYYY","YYYYYY"],Ft),Vt("YYYY",(function(t,e){e[Ft]=2===t.length?r.parseTwoDigitYear(t):Nt(t)})),Vt("YY",(function(t,e){e[Ft]=r.parseTwoDigitYear(t)})),Vt("Y",(function(t,e){e[Ft]=parseInt(t,10)})),r.parseTwoDigitYear=function(t){return Nt(t)+(Nt(t)>68?1900:2e3)};var $t,Kt=Xt("FullYear",!0);function Zt(){return It(this.year())}function Xt(t,e){return function(n){return null!=n?(Qt(this,t,n),r.updateOffset(this,e),this):Jt(this,t)}}function Jt(t,e){if(!t.isValid())return NaN;var n=t._d,r=t._isUTC;switch(e){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Qt(t,e,n){var r,i,a,o,s;if(t.isValid()&&!isNaN(n)){switch(r=t._d,i=t._isUTC,e){case"Milliseconds":return void(i?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(i?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(i?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(i?r.setUTCHours(n):r.setHours(n));case"Date":return void(i?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}a=n,o=t.month(),s=29!==(s=t.date())||1!==o||It(a)?s:28,i?r.setUTCFullYear(a,o,s):r.setFullYear(a,o,s)}}function te(t){return O(this[t=rt(t)])?this[t]():this}function ee(t,e){if("object"==typeof t){var n,r=ot(t=it(t)),i=r.length;for(n=0;n<i;n++)this[r[n].unit](t[r[n].unit])}else if(O(this[t=rt(t)]))return this[t](e);return this}function ne(t,e){return(t%e+e)%e}function re(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=ne(e,12);return t+=(e-n)/12,1===n?It(t)?29:28:31-n%7%2}$t=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},Y("M",["MM",2],"Mo",(function(){return this.month()+1})),Y("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),Y("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),Ct("M",ft,Tt),Ct("MM",ft,ct),Ct("MMM",(function(t,e){return e.monthsShortRegex(t)})),Ct("MMMM",(function(t,e){return e.monthsRegex(t)})),Vt(["M","MM"],(function(t,e){e[jt]=Nt(t)-1})),Vt(["MMM","MMMM"],(function(t,e,n,r){var i=n._locale.monthsParse(t,r,n._strict);null!=i?e[jt]=i:v(n).invalidMonth=t}));var ie="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ae="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),oe=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,se=xt,le=xt;function ce(t,e){return t?o(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||oe).test(e)?"format":"standalone"][t.month()]:o(this._months)?this._months:this._months.standalone}function ue(t,e){return t?o(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[oe.test(e)?"format":"standalone"][t.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function he(t,e,n){var r,i,a,o=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=m([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(i=$t.call(this._shortMonthsParse,o))?i:null:-1!==(i=$t.call(this._longMonthsParse,o))?i:null:"MMM"===e?-1!==(i=$t.call(this._shortMonthsParse,o))||-1!==(i=$t.call(this._longMonthsParse,o))?i:null:-1!==(i=$t.call(this._longMonthsParse,o))||-1!==(i=$t.call(this._shortMonthsParse,o))?i:null}function de(t,e,n){var r,i,a;if(this._monthsParseExact)return he.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=m([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(a="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[r].test(t))return r;if(n&&"MMM"===e&&this._shortMonthsParse[r].test(t))return r;if(!n&&this._monthsParse[r].test(t))return r}}function fe(t,e){if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=Nt(e);else if(!h(e=t.localeData().monthsParse(e)))return t;var n=e,r=t.date();return r=r<29?r:Math.min(r,re(t.year(),n)),t._isUTC?t._d.setUTCMonth(n,r):t._d.setMonth(n,r),t}function pe(t){return null!=t?(fe(this,t),r.updateOffset(this,!0),this):Jt(this,"Month")}function me(){return re(this.year(),this.month())}function ge(t){return this._monthsParseExact?(l(this,"_monthsRegex")||ye.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=se),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}function ve(t){return this._monthsParseExact?(l(this,"_monthsRegex")||ye.call(this),t?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=le),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function ye(){function t(t,e){return e.length-t.length}var e,n,r,i,a=[],o=[],s=[];for(e=0;e<12;e++)n=m([2e3,e]),r=Ot(this.monthsShort(n,"")),i=Ot(this.months(n,"")),a.push(r),o.push(i),s.push(i),s.push(r);a.sort(t),o.sort(t),s.sort(t),this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+a.join("|")+")","i")}function be(t,e,n,r,i,a,o){var s;return t<100&&t>=0?(s=new Date(t+400,e,n,r,i,a,o),isFinite(s.getFullYear())&&s.setFullYear(t)):s=new Date(t,e,n,r,i,a,o),s}function _e(t){var e,n;return t<100&&t>=0?((n=Array.prototype.slice.call(arguments))[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function we(t,e,n){var r=7+e-n;return-(7+_e(t,0,r).getUTCDay()-e)%7+r-1}function De(t,e,n,r,i){var a,o,s=1+7*(e-1)+(7+n-r)%7+we(t,r,i);return s<=0?o=Wt(a=t-1)+s:s>Wt(t)?(a=t+1,o=s-Wt(t)):(a=t,o=s),{year:a,dayOfYear:o}}function Se(t,e,n){var r,i,a=we(t.year(),e,n),o=Math.floor((t.dayOfYear()-a-1)/7)+1;return o<1?r=o+xe(i=t.year()-1,e,n):o>xe(t.year(),e,n)?(r=o-xe(t.year(),e,n),i=t.year()+1):(i=t.year(),r=o),{week:r,year:i}}function xe(t,e,n){var r=we(t,e,n),i=we(t+1,e,n);return(Wt(t)-r+i)/7}function Te(t){return Se(t,this._week.dow,this._week.doy).week}Y("w",["ww",2],"wo","week"),Y("W",["WW",2],"Wo","isoWeek"),Ct("w",ft,Tt),Ct("ww",ft,ct),Ct("W",ft,Tt),Ct("WW",ft,ct),Rt(["w","ww","W","WW"],(function(t,e,n,r){e[r.substr(0,1)]=Nt(t)}));var ke={dow:0,doy:6};function Ce(){return this._week.dow}function Ee(){return this._week.doy}function Ae(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function Oe(t){var e=Se(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")}function Me(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}function Ne(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function Pe(t,e){return t.slice(e,7).concat(t.slice(0,e))}Y("d",0,"do","day"),Y("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),Y("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),Y("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),Y("e",0,0,"weekday"),Y("E",0,0,"isoWeekday"),Ct("d",ft),Ct("e",ft),Ct("E",ft),Ct("dd",(function(t,e){return e.weekdaysMinRegex(t)})),Ct("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),Ct("dddd",(function(t,e){return e.weekdaysRegex(t)})),Rt(["dd","ddd","dddd"],(function(t,e,n,r){var i=n._locale.weekdaysParse(t,r,n._strict);null!=i?e.d=i:v(n).invalidWeekday=t})),Rt(["d","e","E"],(function(t,e,n,r){e[r]=Nt(t)}));var Ve="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Re="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Be="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ie=xt,Fe=xt,je=xt;function Le(t,e){var n=o(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Pe(n,this._week.dow):t?n[t.day()]:n}function Ye(t){return!0===t?Pe(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function ze(t){return!0===t?Pe(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function He(t,e,n){var r,i,a,o=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=m([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(i=$t.call(this._weekdaysParse,o))?i:null:"ddd"===e?-1!==(i=$t.call(this._shortWeekdaysParse,o))?i:null:-1!==(i=$t.call(this._minWeekdaysParse,o))?i:null:"dddd"===e?-1!==(i=$t.call(this._weekdaysParse,o))||-1!==(i=$t.call(this._shortWeekdaysParse,o))||-1!==(i=$t.call(this._minWeekdaysParse,o))?i:null:"ddd"===e?-1!==(i=$t.call(this._shortWeekdaysParse,o))||-1!==(i=$t.call(this._weekdaysParse,o))||-1!==(i=$t.call(this._minWeekdaysParse,o))?i:null:-1!==(i=$t.call(this._minWeekdaysParse,o))||-1!==(i=$t.call(this._weekdaysParse,o))||-1!==(i=$t.call(this._shortWeekdaysParse,o))?i:null}function Ue(t,e,n){var r,i,a;if(this._weekdaysParseExact)return He.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=m([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[r].test(t))return r;if(n&&"ddd"===e&&this._shortWeekdaysParse[r].test(t))return r;if(n&&"dd"===e&&this._minWeekdaysParse[r].test(t))return r;if(!n&&this._weekdaysParse[r].test(t))return r}}function qe(t){if(!this.isValid())return null!=t?this:NaN;var e=Jt(this,"Day");return null!=t?(t=Me(t,this.localeData()),this.add(t-e,"d")):e}function Ge(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")}function We(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=Ne(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7}function $e(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Xe.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=Ie),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ke(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Xe.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Fe),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Ze(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Xe.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=je),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Xe(){function t(t,e){return e.length-t.length}var e,n,r,i,a,o=[],s=[],l=[],c=[];for(e=0;e<7;e++)n=m([2e3,1]).day(e),r=Ot(this.weekdaysMin(n,"")),i=Ot(this.weekdaysShort(n,"")),a=Ot(this.weekdays(n,"")),o.push(r),s.push(i),l.push(a),c.push(r),c.push(i),c.push(a);o.sort(t),s.sort(t),l.sort(t),c.sort(t),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Je(){return this.hours()%12||12}function Qe(){return this.hours()||24}function tn(t,e){Y(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function en(t,e){return e._meridiemParse}function nn(t){return"p"===(t+"").toLowerCase().charAt(0)}Y("H",["HH",2],0,"hour"),Y("h",["hh",2],0,Je),Y("k",["kk",2],0,Qe),Y("hmm",0,0,(function(){return""+Je.apply(this)+B(this.minutes(),2)})),Y("hmmss",0,0,(function(){return""+Je.apply(this)+B(this.minutes(),2)+B(this.seconds(),2)})),Y("Hmm",0,0,(function(){return""+this.hours()+B(this.minutes(),2)})),Y("Hmmss",0,0,(function(){return""+this.hours()+B(this.minutes(),2)+B(this.seconds(),2)})),tn("a",!0),tn("A",!1),Ct("a",en),Ct("A",en),Ct("H",ft,kt),Ct("h",ft,Tt),Ct("k",ft,Tt),Ct("HH",ft,ct),Ct("hh",ft,ct),Ct("kk",ft,ct),Ct("hmm",pt),Ct("hmmss",mt),Ct("Hmm",pt),Ct("Hmmss",mt),Vt(["H","HH"],Yt),Vt(["k","kk"],(function(t,e,n){var r=Nt(t);e[Yt]=24===r?0:r})),Vt(["a","A"],(function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t})),Vt(["h","hh"],(function(t,e,n){e[Yt]=Nt(t),v(n).bigHour=!0})),Vt("hmm",(function(t,e,n){var r=t.length-2;e[Yt]=Nt(t.substr(0,r)),e[zt]=Nt(t.substr(r)),v(n).bigHour=!0})),Vt("hmmss",(function(t,e,n){var r=t.length-4,i=t.length-2;e[Yt]=Nt(t.substr(0,r)),e[zt]=Nt(t.substr(r,2)),e[Ht]=Nt(t.substr(i)),v(n).bigHour=!0})),Vt("Hmm",(function(t,e,n){var r=t.length-2;e[Yt]=Nt(t.substr(0,r)),e[zt]=Nt(t.substr(r))})),Vt("Hmmss",(function(t,e,n){var r=t.length-4,i=t.length-2;e[Yt]=Nt(t.substr(0,r)),e[zt]=Nt(t.substr(r,2)),e[Ht]=Nt(t.substr(i))}));var rn=/[ap]\.?m?\.?/i,an=Xt("Hours",!0);function on(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}var sn,ln={calendar:V,longDateFormat:G,invalidDate:$,ordinal:Z,dayOfMonthOrdinalParse:X,relativeTime:Q,months:ie,monthsShort:ae,week:ke,weekdays:Ve,weekdaysMin:Be,weekdaysShort:Re,meridiemParse:rn},cn={},un={};function hn(t,e){var n,r=Math.min(t.length,e.length);for(n=0;n<r;n+=1)if(t[n]!==e[n])return n;return r}function dn(t){return t?t.toLowerCase().replace("_","-"):t}function fn(t){for(var e,n,r,i,a=0;a<t.length;){for(e=(i=dn(t[a]).split("-")).length,n=(n=dn(t[a+1]))?n.split("-"):null;e>0;){if(r=mn(i.slice(0,e).join("-")))return r;if(n&&n.length>=e&&hn(i,n)>=e-1)break;e--}a++}return sn}function pn(t){return!(!t||!t.match("^[^/\\\\]*$"))}function mn(e){var n=null;if(void 0===cn[e]&&t&&t.exports&&pn(e))try{n=sn._abbr,i(),gn(n)}catch(t){cn[e]=null}return cn[e]}function gn(t,e){var n;return t&&((n=u(e)?bn(t):vn(t,e))?sn=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),sn._abbr}function vn(t,e){if(null!==e){var n,r=ln;if(e.abbr=t,null!=cn[t])A("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=cn[t]._config;else if(null!=e.parentLocale)if(null!=cn[e.parentLocale])r=cn[e.parentLocale]._config;else{if(null==(n=mn(e.parentLocale)))return un[e.parentLocale]||(un[e.parentLocale]=[]),un[e.parentLocale].push({name:t,config:e}),null;r=n._config}return cn[t]=new P(N(r,e)),un[t]&&un[t].forEach((function(t){vn(t.name,t.config)})),gn(t),cn[t]}return delete cn[t],null}function yn(t,e){if(null!=e){var n,r,i=ln;null!=cn[t]&&null!=cn[t].parentLocale?cn[t].set(N(cn[t]._config,e)):(null!=(r=mn(t))&&(i=r._config),e=N(i,e),null==r&&(e.abbr=t),(n=new P(e)).parentLocale=cn[t],cn[t]=n),gn(t)}else null!=cn[t]&&(null!=cn[t].parentLocale?(cn[t]=cn[t].parentLocale,t===gn()&&gn(t)):null!=cn[t]&&delete cn[t]);return cn[t]}function bn(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return sn;if(!o(t)){if(e=mn(t))return e;t=[t]}return fn(t)}function _n(){return C(cn)}function wn(t){var e,n=t._a;return n&&-2===v(t).overflow&&(e=n[jt]<0||n[jt]>11?jt:n[Lt]<1||n[Lt]>re(n[Ft],n[jt])?Lt:n[Yt]<0||n[Yt]>24||24===n[Yt]&&(0!==n[zt]||0!==n[Ht]||0!==n[Ut])?Yt:n[zt]<0||n[zt]>59?zt:n[Ht]<0||n[Ht]>59?Ht:n[Ut]<0||n[Ut]>999?Ut:-1,v(t)._overflowDayOfYear&&(e<Ft||e>Lt)&&(e=Lt),v(t)._overflowWeeks&&-1===e&&(e=qt),v(t)._overflowWeekday&&-1===e&&(e=Gt),v(t).overflow=e),t}var Dn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Sn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,xn=/Z|[+-]\d\d(?::?\d\d)?/,Tn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],kn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Cn=/^\/?Date\((-?\d+)/i,En=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,An={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function On(t){var e,n,r,i,a,o,s=t._i,l=Dn.exec(s)||Sn.exec(s),c=Tn.length,u=kn.length;if(l){for(v(t).iso=!0,e=0,n=c;e<n;e++)if(Tn[e][1].exec(l[1])){i=Tn[e][0],r=!1!==Tn[e][2];break}if(null==i)return void(t._isValid=!1);if(l[3]){for(e=0,n=u;e<n;e++)if(kn[e][1].exec(l[3])){a=(l[2]||" ")+kn[e][0];break}if(null==a)return void(t._isValid=!1)}if(!r&&null!=a)return void(t._isValid=!1);if(l[4]){if(!xn.exec(l[4]))return void(t._isValid=!1);o="Z"}t._f=i+(a||"")+(o||""),zn(t)}else t._isValid=!1}function Mn(t,e,n,r,i,a){var o=[Nn(t),ae.indexOf(e),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return a&&o.push(parseInt(a,10)),o}function Nn(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function Pn(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Vn(t,e,n){return!t||Re.indexOf(t)===new Date(e[0],e[1],e[2]).getDay()||(v(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Rn(t,e,n){if(t)return An[t];if(e)return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}function Bn(t){var e,n=En.exec(Pn(t._i));if(n){if(e=Mn(n[4],n[3],n[2],n[5],n[6],n[7]),!Vn(n[1],e,t))return;t._a=e,t._tzm=Rn(n[8],n[9],n[10]),t._d=_e.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),v(t).rfc2822=!0}else t._isValid=!1}function In(t){var e=Cn.exec(t._i);null===e?(On(t),!1===t._isValid&&(delete t._isValid,Bn(t),!1===t._isValid&&(delete t._isValid,t._strict?t._isValid=!1:r.createFromInputFallback(t)))):t._d=new Date(+e[1])}function Fn(t,e,n){return null!=t?t:null!=e?e:n}function jn(t){var e=new Date(r.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function Ln(t){var e,n,r,i,a,o=[];if(!t._d){for(r=jn(t),t._w&&null==t._a[Lt]&&null==t._a[jt]&&Yn(t),null!=t._dayOfYear&&(a=Fn(t._a[Ft],r[Ft]),(t._dayOfYear>Wt(a)||0===t._dayOfYear)&&(v(t)._overflowDayOfYear=!0),n=_e(a,0,t._dayOfYear),t._a[jt]=n.getUTCMonth(),t._a[Lt]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=o[e]=r[e];for(;e<7;e++)t._a[e]=o[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[Yt]&&0===t._a[zt]&&0===t._a[Ht]&&0===t._a[Ut]&&(t._nextDay=!0,t._a[Yt]=0),t._d=(t._useUTC?_e:be).apply(null,o),i=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[Yt]=24),t._w&&void 0!==t._w.d&&t._w.d!==i&&(v(t).weekdayMismatch=!0)}}function Yn(t){var e,n,r,i,a,o,s,l,c;null!=(e=t._w).GG||null!=e.W||null!=e.E?(a=1,o=4,n=Fn(e.GG,t._a[Ft],Se(Zn(),1,4).year),r=Fn(e.W,1),((i=Fn(e.E,1))<1||i>7)&&(l=!0)):(a=t._locale._week.dow,o=t._locale._week.doy,c=Se(Zn(),a,o),n=Fn(e.gg,t._a[Ft],c.year),r=Fn(e.w,c.week),null!=e.d?((i=e.d)<0||i>6)&&(l=!0):null!=e.e?(i=e.e+a,(e.e<0||e.e>6)&&(l=!0)):i=a),r<1||r>xe(n,a,o)?v(t)._overflowWeeks=!0:null!=l?v(t)._overflowWeekday=!0:(s=De(n,r,i,a,o),t._a[Ft]=s.year,t._dayOfYear=s.dayOfYear)}function zn(t){if(t._f!==r.ISO_8601)if(t._f!==r.RFC_2822){t._a=[],v(t).empty=!0;var e,n,i,a,o,s,l,c=""+t._i,u=c.length,h=0;for(l=(i=q(t._f,t._locale).match(I)||[]).length,e=0;e<l;e++)a=i[e],(n=(c.match(Et(a,t))||[])[0])&&((o=c.substr(0,c.indexOf(n))).length>0&&v(t).unusedInput.push(o),c=c.slice(c.indexOf(n)+n.length),h+=n.length),L[a]?(n?v(t).empty=!1:v(t).unusedTokens.push(a),Bt(a,n,t)):t._strict&&!n&&v(t).unusedTokens.push(a);v(t).charsLeftOver=u-h,c.length>0&&v(t).unusedInput.push(c),t._a[Yt]<=12&&!0===v(t).bigHour&&t._a[Yt]>0&&(v(t).bigHour=void 0),v(t).parsedDateParts=t._a.slice(0),v(t).meridiem=t._meridiem,t._a[Yt]=Hn(t._locale,t._a[Yt],t._meridiem),null!==(s=v(t).era)&&(t._a[Ft]=t._locale.erasConvertYear(s,t._a[Ft])),Ln(t),wn(t)}else Bn(t);else On(t)}function Hn(t,e,n){var r;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?((r=t.isPM(n))&&e<12&&(e+=12),r||12!==e||(e=0),e):e}function Un(t){var e,n,r,i,a,o,s=!1,l=t._f.length;if(0===l)return v(t).invalidFormat=!0,void(t._d=new Date(NaN));for(i=0;i<l;i++)a=0,o=!1,e=D({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[i],zn(e),y(e)&&(o=!0),a+=v(e).charsLeftOver,a+=10*v(e).unusedTokens.length,v(e).score=a,s?a<r&&(r=a,n=e):(null==r||a<r||o)&&(r=a,n=e,o&&(s=!0));p(t,n||e)}function qn(t){if(!t._d){var e=it(t._i),n=void 0===e.day?e.date:e.day;t._a=f([e.year,e.month,n,e.hour,e.minute,e.second,e.millisecond],(function(t){return t&&parseInt(t,10)})),Ln(t)}}function Gn(t){var e=new S(wn(Wn(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function Wn(t){var e=t._i,n=t._f;return t._locale=t._locale||bn(t._l),null===e||void 0===n&&""===e?b({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),x(e)?new S(wn(e)):(d(e)?t._d=e:o(n)?Un(t):n?zn(t):$n(t),y(t)||(t._d=null),t))}function $n(t){var e=t._i;u(e)?t._d=new Date(r.now()):d(e)?t._d=new Date(e.valueOf()):"string"==typeof e?In(t):o(e)?(t._a=f(e.slice(0),(function(t){return parseInt(t,10)})),Ln(t)):s(e)?qn(t):h(e)?t._d=new Date(e):r.createFromInputFallback(t)}function Kn(t,e,n,r,i){var a={};return!0!==e&&!1!==e||(r=e,e=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(s(t)&&c(t)||o(t)&&0===t.length)&&(t=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=i,a._l=n,a._i=t,a._f=e,a._strict=r,Gn(a)}function Zn(t,e,n,r){return Kn(t,e,n,r,!1)}r.createFromInputFallback=k("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))})),r.ISO_8601=function(){},r.RFC_2822=function(){};var Xn=k("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Zn.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:b()})),Jn=k("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Zn.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:b()}));function Qn(t,e){var n,r;if(1===e.length&&o(e[0])&&(e=e[0]),!e.length)return Zn();for(n=e[0],r=1;r<e.length;++r)e[r].isValid()&&!e[r][t](n)||(n=e[r]);return n}function tr(){return Qn("isBefore",[].slice.call(arguments,0))}function er(){return Qn("isAfter",[].slice.call(arguments,0))}var nr=function(){return Date.now?Date.now():+new Date},rr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ir(t){var e,n,r=!1,i=rr.length;for(e in t)if(l(t,e)&&(-1===$t.call(rr,e)||null!=t[e]&&isNaN(t[e])))return!1;for(n=0;n<i;++n)if(t[rr[n]]){if(r)return!1;parseFloat(t[rr[n]])!==Nt(t[rr[n]])&&(r=!0)}return!0}function ar(){return this._isValid}function or(){return Ar(NaN)}function sr(t){var e=it(t),n=e.year||0,r=e.quarter||0,i=e.month||0,a=e.week||e.isoWeek||0,o=e.day||0,s=e.hour||0,l=e.minute||0,c=e.second||0,u=e.millisecond||0;this._isValid=ir(e),this._milliseconds=+u+1e3*c+6e4*l+1e3*s*60*60,this._days=+o+7*a,this._months=+i+3*r+12*n,this._data={},this._locale=bn(),this._bubble()}function lr(t){return t instanceof sr}function cr(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function ur(t,e,n){var r,i=Math.min(t.length,e.length),a=Math.abs(t.length-e.length),o=0;for(r=0;r<i;r++)(n&&t[r]!==e[r]||!n&&Nt(t[r])!==Nt(e[r]))&&o++;return o+a}function hr(t,e){Y(t,0,0,(function(){var t=this.utcOffset(),n="+";return t<0&&(t=-t,n="-"),n+B(~~(t/60),2)+e+B(~~t%60,2)}))}hr("Z",":"),hr("ZZ",""),Ct("Z",Dt),Ct("ZZ",Dt),Vt(["Z","ZZ"],(function(t,e,n){n._useUTC=!0,n._tzm=fr(Dt,t)}));var dr=/([\+\-]|\d\d)/gi;function fr(t,e){var n,r,i=(e||"").match(t);return null===i?null:0===(r=60*(n=((i[i.length-1]||[])+"").match(dr)||["-",0,0])[1]+Nt(n[2]))?0:"+"===n[0]?r:-r}function pr(t,e){var n,i;return e._isUTC?(n=e.clone(),i=(x(t)||d(t)?t.valueOf():Zn(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),r.updateOffset(n,!1),n):Zn(t).local()}function mr(t){return-Math.round(t._d.getTimezoneOffset())}function gr(t,e,n){var i,a=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=fr(Dt,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(i=mr(this)),this._offset=t,this._isUTC=!0,null!=i&&this.add(i,"m"),a!==t&&(!e||this._changeInProgress?Vr(this,Ar(t-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:mr(this)}function vr(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function yr(t){return this.utcOffset(0,t)}function br(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(mr(this),"m")),this}function _r(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=fr(wt,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this}function wr(t){return!!this.isValid()&&(t=t?Zn(t).utcOffset():0,(this.utcOffset()-t)%60==0)}function Dr(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Sr(){if(!u(this._isDSTShifted))return this._isDSTShifted;var t,e={};return D(e,this),(e=Wn(e))._a?(t=e._isUTC?m(e._a):Zn(e._a),this._isDSTShifted=this.isValid()&&ur(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function xr(){return!!this.isValid()&&!this._isUTC}function Tr(){return!!this.isValid()&&this._isUTC}function kr(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var Cr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Er=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ar(t,e){var n,r,i,a=t,o=null;return lr(t)?a={ms:t._milliseconds,d:t._days,M:t._months}:h(t)||!isNaN(+t)?(a={},e?a[e]=+t:a.milliseconds=+t):(o=Cr.exec(t))?(n="-"===o[1]?-1:1,a={y:0,d:Nt(o[Lt])*n,h:Nt(o[Yt])*n,m:Nt(o[zt])*n,s:Nt(o[Ht])*n,ms:Nt(cr(1e3*o[Ut]))*n}):(o=Er.exec(t))?(n="-"===o[1]?-1:1,a={y:Or(o[2],n),M:Or(o[3],n),w:Or(o[4],n),d:Or(o[5],n),h:Or(o[6],n),m:Or(o[7],n),s:Or(o[8],n)}):null==a?a={}:"object"==typeof a&&("from"in a||"to"in a)&&(i=Nr(Zn(a.from),Zn(a.to)),(a={}).ms=i.milliseconds,a.M=i.months),r=new sr(a),lr(t)&&l(t,"_locale")&&(r._locale=t._locale),lr(t)&&l(t,"_isValid")&&(r._isValid=t._isValid),r}function Or(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Mr(t,e){var n={};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Nr(t,e){var n;return t.isValid()&&e.isValid()?(e=pr(e,t),t.isBefore(e)?n=Mr(t,e):((n=Mr(e,t)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Pr(t,e){return function(n,r){var i;return null===r||isNaN(+r)||(A(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),Vr(this,Ar(n,r),t),this}}function Vr(t,e,n,i){var a=e._milliseconds,o=cr(e._days),s=cr(e._months);t.isValid()&&(i=null==i||i,s&&fe(t,Jt(t,"Month")+s*n),o&&Qt(t,"Date",Jt(t,"Date")+o*n),a&&t._d.setTime(t._d.valueOf()+a*n),i&&r.updateOffset(t,o||s))}Ar.fn=sr.prototype,Ar.invalid=or;var Rr=Pr(1,"add"),Br=Pr(-1,"subtract");function Ir(t){return"string"==typeof t||t instanceof String}function Fr(t){return x(t)||d(t)||Ir(t)||h(t)||Lr(t)||jr(t)||null==t}function jr(t){var e,n,r=s(t)&&!c(t),i=!1,a=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],o=a.length;for(e=0;e<o;e+=1)n=a[e],i=i||l(t,n);return r&&i}function Lr(t){var e=o(t),n=!1;return e&&(n=0===t.filter((function(e){return!h(e)&&Ir(t)})).length),e&&n}function Yr(t){var e,n,r=s(t)&&!c(t),i=!1,a=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(e=0;e<a.length;e+=1)n=a[e],i=i||l(t,n);return r&&i}function zr(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Hr(t,e){1===arguments.length&&(arguments[0]?Fr(arguments[0])?(t=arguments[0],e=void 0):Yr(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var n=t||Zn(),i=pr(n,this).startOf("day"),a=r.calendarFormat(this,i)||"sameElse",o=e&&(O(e[a])?e[a].call(this,n):e[a]);return this.format(o||this.localeData().calendar(a,this,Zn(n)))}function Ur(){return new S(this)}function qr(t,e){var n=x(t)?t:Zn(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=rt(e)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf())}function Gr(t,e){var n=x(t)?t:Zn(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=rt(e)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf())}function Wr(t,e,n,r){var i=x(t)?t:Zn(t),a=x(e)?e:Zn(e);return!!(this.isValid()&&i.isValid()&&a.isValid())&&("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(a,n):!this.isAfter(a,n))}function $r(t,e){var n,r=x(t)?t:Zn(t);return!(!this.isValid()||!r.isValid())&&("millisecond"===(e=rt(e)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf()))}function Kr(t,e){return this.isSame(t,e)||this.isAfter(t,e)}function Zr(t,e){return this.isSame(t,e)||this.isBefore(t,e)}function Xr(t,e,n){var r,i,a;if(!this.isValid())return NaN;if(!(r=pr(t,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),e=rt(e)){case"year":a=Jr(this,r)/12;break;case"month":a=Jr(this,r);break;case"quarter":a=Jr(this,r)/3;break;case"second":a=(this-r)/1e3;break;case"minute":a=(this-r)/6e4;break;case"hour":a=(this-r)/36e5;break;case"day":a=(this-r-i)/864e5;break;case"week":a=(this-r-i)/6048e5;break;default:a=this-r}return n?a:Mt(a)}function Jr(t,e){if(t.date()<e.date())return-Jr(e,t);var n=12*(e.year()-t.year())+(e.month()-t.month()),r=t.clone().add(n,"months");return-(n+(e-r<0?(e-r)/(r-t.clone().add(n-1,"months")):(e-r)/(t.clone().add(n+1,"months")-r)))||0}function Qr(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ti(t){if(!this.isValid())return null;var e=!0!==t,n=e?this.clone().utc():this;return n.year()<0||n.year()>9999?U(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):O(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",U(n,"Z")):U(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ei(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,e,n,r,i="moment",a="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",a="Z"),t="["+i+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=a+'[")]',this.format(t+e+n+r)}function ni(t){t||(t=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var e=U(this,t);return this.localeData().postformat(e)}function ri(t,e){return this.isValid()&&(x(t)&&t.isValid()||Zn(t).isValid())?Ar({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function ii(t){return this.from(Zn(),t)}function ai(t,e){return this.isValid()&&(x(t)&&t.isValid()||Zn(t).isValid())?Ar({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function oi(t){return this.to(Zn(),t)}function si(t){var e;return void 0===t?this._locale._abbr:(null!=(e=bn(t))&&(this._locale=e),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var li=k("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(t){return void 0===t?this.localeData():this.locale(t)}));function ci(){return this._locale}var ui=1e3,hi=60*ui,di=60*hi,fi=3506328*di;function pi(t,e){return(t%e+e)%e}function mi(t,e,n){return t<100&&t>=0?new Date(t+400,e,n)-fi:new Date(t,e,n).valueOf()}function gi(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-fi:Date.UTC(t,e,n)}function vi(t){var e,n;if(void 0===(t=rt(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?gi:mi,t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=pi(e+(this._isUTC?0:this.utcOffset()*hi),di);break;case"minute":e=this._d.valueOf(),e-=pi(e,hi);break;case"second":e=this._d.valueOf(),e-=pi(e,ui)}return this._d.setTime(e),r.updateOffset(this,!0),this}function yi(t){var e,n;if(void 0===(t=rt(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?gi:mi,t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=di-pi(e+(this._isUTC?0:this.utcOffset()*hi),di)-1;break;case"minute":e=this._d.valueOf(),e+=hi-pi(e,hi)-1;break;case"second":e=this._d.valueOf(),e+=ui-pi(e,ui)-1}return this._d.setTime(e),r.updateOffset(this,!0),this}function bi(){return this._d.valueOf()-6e4*(this._offset||0)}function _i(){return Math.floor(this.valueOf()/1e3)}function wi(){return new Date(this.valueOf())}function Di(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function Si(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function xi(){return this.isValid()?this.toISOString():null}function Ti(){return y(this)}function ki(){return p({},v(this))}function Ci(){return v(this).overflow}function Ei(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Ai(t,e){var n,i,a,o=this._eras||bn("en")._eras;for(n=0,i=o.length;n<i;++n)switch("string"==typeof o[n].since&&(a=r(o[n].since).startOf("day"),o[n].since=a.valueOf()),typeof o[n].until){case"undefined":o[n].until=1/0;break;case"string":a=r(o[n].until).startOf("day").valueOf(),o[n].until=a.valueOf()}return o}function Oi(t,e,n){var r,i,a,o,s,l=this.eras();for(t=t.toUpperCase(),r=0,i=l.length;r<i;++r)if(a=l[r].name.toUpperCase(),o=l[r].abbr.toUpperCase(),s=l[r].narrow.toUpperCase(),n)switch(e){case"N":case"NN":case"NNN":if(o===t)return l[r];break;case"NNNN":if(a===t)return l[r];break;case"NNNNN":if(s===t)return l[r]}else if([a,o,s].indexOf(t)>=0)return l[r]}function Mi(t,e){var n=t.since<=t.until?1:-1;return void 0===e?r(t.since).year():r(t.since).year()+(e-t.offset)*n}function Ni(){var t,e,n,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t){if(n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until)return r[t].name;if(r[t].until<=n&&n<=r[t].since)return r[t].name}return""}function Pi(){var t,e,n,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t){if(n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until)return r[t].narrow;if(r[t].until<=n&&n<=r[t].since)return r[t].narrow}return""}function Vi(){var t,e,n,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t){if(n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until)return r[t].abbr;if(r[t].until<=n&&n<=r[t].since)return r[t].abbr}return""}function Ri(){var t,e,n,i,a=this.localeData().eras();for(t=0,e=a.length;t<e;++t)if(n=a[t].since<=a[t].until?1:-1,i=this.clone().startOf("day").valueOf(),a[t].since<=i&&i<=a[t].until||a[t].until<=i&&i<=a[t].since)return(this.year()-r(a[t].since).year())*n+a[t].offset;return this.year()}function Bi(t){return l(this,"_erasNameRegex")||Hi.call(this),t?this._erasNameRegex:this._erasRegex}function Ii(t){return l(this,"_erasAbbrRegex")||Hi.call(this),t?this._erasAbbrRegex:this._erasRegex}function Fi(t){return l(this,"_erasNarrowRegex")||Hi.call(this),t?this._erasNarrowRegex:this._erasRegex}function ji(t,e){return e.erasAbbrRegex(t)}function Li(t,e){return e.erasNameRegex(t)}function Yi(t,e){return e.erasNarrowRegex(t)}function zi(t,e){return e._eraYearOrdinalRegex||bt}function Hi(){var t,e,n,r,i,a=[],o=[],s=[],l=[],c=this.eras();for(t=0,e=c.length;t<e;++t)n=Ot(c[t].name),r=Ot(c[t].abbr),i=Ot(c[t].narrow),o.push(n),a.push(r),s.push(i),l.push(n),l.push(r),l.push(i);this._erasRegex=new RegExp("^("+l.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+o.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i")}function Ui(t,e){Y(0,[t,t.length],0,e)}function qi(t){return Xi.call(this,t,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Gi(t){return Xi.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function Wi(){return xe(this.year(),1,4)}function $i(){return xe(this.isoWeekYear(),1,4)}function Ki(){var t=this.localeData()._week;return xe(this.year(),t.dow,t.doy)}function Zi(){var t=this.localeData()._week;return xe(this.weekYear(),t.dow,t.doy)}function Xi(t,e,n,r,i){var a;return null==t?Se(this,r,i).year:(e>(a=xe(t,r,i))&&(e=a),Ji.call(this,t,e,n,r,i))}function Ji(t,e,n,r,i){var a=De(t,e,n,r,i),o=_e(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}function Qi(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}Y("N",0,0,"eraAbbr"),Y("NN",0,0,"eraAbbr"),Y("NNN",0,0,"eraAbbr"),Y("NNNN",0,0,"eraName"),Y("NNNNN",0,0,"eraNarrow"),Y("y",["y",1],"yo","eraYear"),Y("y",["yy",2],0,"eraYear"),Y("y",["yyy",3],0,"eraYear"),Y("y",["yyyy",4],0,"eraYear"),Ct("N",ji),Ct("NN",ji),Ct("NNN",ji),Ct("NNNN",Li),Ct("NNNNN",Yi),Vt(["N","NN","NNN","NNNN","NNNNN"],(function(t,e,n,r){var i=n._locale.erasParse(t,r,n._strict);i?v(n).era=i:v(n).invalidEra=t})),Ct("y",bt),Ct("yy",bt),Ct("yyy",bt),Ct("yyyy",bt),Ct("yo",zi),Vt(["y","yy","yyy","yyyy"],Ft),Vt(["yo"],(function(t,e,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=t.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?e[Ft]=n._locale.eraYearOrdinalParse(t,i):e[Ft]=parseInt(t,10)})),Y(0,["gg",2],0,(function(){return this.weekYear()%100})),Y(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Ui("gggg","weekYear"),Ui("ggggg","weekYear"),Ui("GGGG","isoWeekYear"),Ui("GGGGG","isoWeekYear"),Ct("G",_t),Ct("g",_t),Ct("GG",ft,ct),Ct("gg",ft,ct),Ct("GGGG",vt,ht),Ct("gggg",vt,ht),Ct("GGGGG",yt,dt),Ct("ggggg",yt,dt),Rt(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,n,r){e[r.substr(0,2)]=Nt(t)})),Rt(["gg","GG"],(function(t,e,n,i){e[i]=r.parseTwoDigitYear(t)})),Y("Q",0,"Qo","quarter"),Ct("Q",lt),Vt("Q",(function(t,e){e[jt]=3*(Nt(t)-1)})),Y("D",["DD",2],"Do","date"),Ct("D",ft,Tt),Ct("DD",ft,ct),Ct("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),Vt(["D","DD"],Lt),Vt("Do",(function(t,e){e[Lt]=Nt(t.match(ft)[0])}));var ta=Xt("Date",!0);function ea(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")}Y("DDD",["DDDD",3],"DDDo","dayOfYear"),Ct("DDD",gt),Ct("DDDD",ut),Vt(["DDD","DDDD"],(function(t,e,n){n._dayOfYear=Nt(t)})),Y("m",["mm",2],0,"minute"),Ct("m",ft,kt),Ct("mm",ft,ct),Vt(["m","mm"],zt);var na=Xt("Minutes",!1);Y("s",["ss",2],0,"second"),Ct("s",ft,kt),Ct("ss",ft,ct),Vt(["s","ss"],Ht);var ra,ia,aa=Xt("Seconds",!1);for(Y("S",0,0,(function(){return~~(this.millisecond()/100)})),Y(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),Y(0,["SSS",3],0,"millisecond"),Y(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),Y(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),Y(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),Y(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),Y(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),Y(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),Ct("S",gt,lt),Ct("SS",gt,ct),Ct("SSS",gt,ut),ra="SSSS";ra.length<=9;ra+="S")Ct(ra,bt);function oa(t,e){e[Ut]=Nt(1e3*("0."+t))}for(ra="S";ra.length<=9;ra+="S")Vt(ra,oa);function sa(){return this._isUTC?"UTC":""}function la(){return this._isUTC?"Coordinated Universal Time":""}ia=Xt("Milliseconds",!1),Y("z",0,0,"zoneAbbr"),Y("zz",0,0,"zoneName");var ca=S.prototype;function ua(t){return Zn(1e3*t)}function ha(){return Zn.apply(null,arguments).parseZone()}function da(t){return t}ca.add=Rr,ca.calendar=Hr,ca.clone=Ur,ca.diff=Xr,ca.endOf=yi,ca.format=ni,ca.from=ri,ca.fromNow=ii,ca.to=ai,ca.toNow=oi,ca.get=te,ca.invalidAt=Ci,ca.isAfter=qr,ca.isBefore=Gr,ca.isBetween=Wr,ca.isSame=$r,ca.isSameOrAfter=Kr,ca.isSameOrBefore=Zr,ca.isValid=Ti,ca.lang=li,ca.locale=si,ca.localeData=ci,ca.max=Jn,ca.min=Xn,ca.parsingFlags=ki,ca.set=ee,ca.startOf=vi,ca.subtract=Br,ca.toArray=Di,ca.toObject=Si,ca.toDate=wi,ca.toISOString=ti,ca.inspect=ei,"undefined"!=typeof Symbol&&null!=Symbol.for&&(ca[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ca.toJSON=xi,ca.toString=Qr,ca.unix=_i,ca.valueOf=bi,ca.creationData=Ei,ca.eraName=Ni,ca.eraNarrow=Pi,ca.eraAbbr=Vi,ca.eraYear=Ri,ca.year=Kt,ca.isLeapYear=Zt,ca.weekYear=qi,ca.isoWeekYear=Gi,ca.quarter=ca.quarters=Qi,ca.month=pe,ca.daysInMonth=me,ca.week=ca.weeks=Ae,ca.isoWeek=ca.isoWeeks=Oe,ca.weeksInYear=Ki,ca.weeksInWeekYear=Zi,ca.isoWeeksInYear=Wi,ca.isoWeeksInISOWeekYear=$i,ca.date=ta,ca.day=ca.days=qe,ca.weekday=Ge,ca.isoWeekday=We,ca.dayOfYear=ea,ca.hour=ca.hours=an,ca.minute=ca.minutes=na,ca.second=ca.seconds=aa,ca.millisecond=ca.milliseconds=ia,ca.utcOffset=gr,ca.utc=yr,ca.local=br,ca.parseZone=_r,ca.hasAlignedHourOffset=wr,ca.isDST=Dr,ca.isLocal=xr,ca.isUtcOffset=Tr,ca.isUtc=kr,ca.isUTC=kr,ca.zoneAbbr=sa,ca.zoneName=la,ca.dates=k("dates accessor is deprecated. Use date instead.",ta),ca.months=k("months accessor is deprecated. Use month instead",pe),ca.years=k("years accessor is deprecated. Use year instead",Kt),ca.zone=k("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",vr),ca.isDSTShifted=k("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Sr);var fa=P.prototype;function pa(t,e,n,r){var i=bn(),a=m().set(r,e);return i[n](a,t)}function ma(t,e,n){if(h(t)&&(e=t,t=void 0),t=t||"",null!=e)return pa(t,e,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=pa(t,r,n,"month");return i}function ga(t,e,n,r){"boolean"==typeof t?(h(e)&&(n=e,e=void 0),e=e||""):(n=e=t,t=!1,h(e)&&(n=e,e=void 0),e=e||"");var i,a=bn(),o=t?a._week.dow:0,s=[];if(null!=n)return pa(e,(n+o)%7,r,"day");for(i=0;i<7;i++)s[i]=pa(e,(i+o)%7,r,"day");return s}function va(t,e){return ma(t,e,"months")}function ya(t,e){return ma(t,e,"monthsShort")}function ba(t,e,n){return ga(t,e,n,"weekdays")}function _a(t,e,n){return ga(t,e,n,"weekdaysShort")}function wa(t,e,n){return ga(t,e,n,"weekdaysMin")}fa.calendar=R,fa.longDateFormat=W,fa.invalidDate=K,fa.ordinal=J,fa.preparse=da,fa.postformat=da,fa.relativeTime=tt,fa.pastFuture=et,fa.set=M,fa.eras=Ai,fa.erasParse=Oi,fa.erasConvertYear=Mi,fa.erasAbbrRegex=Ii,fa.erasNameRegex=Bi,fa.erasNarrowRegex=Fi,fa.months=ce,fa.monthsShort=ue,fa.monthsParse=de,fa.monthsRegex=ve,fa.monthsShortRegex=ge,fa.week=Te,fa.firstDayOfYear=Ee,fa.firstDayOfWeek=Ce,fa.weekdays=Le,fa.weekdaysMin=ze,fa.weekdaysShort=Ye,fa.weekdaysParse=Ue,fa.weekdaysRegex=$e,fa.weekdaysShortRegex=Ke,fa.weekdaysMinRegex=Ze,fa.isPM=nn,fa.meridiem=on,gn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===Nt(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),r.lang=k("moment.lang is deprecated. Use moment.locale instead.",gn),r.langData=k("moment.langData is deprecated. Use moment.localeData instead.",bn);var Da=Math.abs;function Sa(){var t=this._data;return this._milliseconds=Da(this._milliseconds),this._days=Da(this._days),this._months=Da(this._months),t.milliseconds=Da(t.milliseconds),t.seconds=Da(t.seconds),t.minutes=Da(t.minutes),t.hours=Da(t.hours),t.months=Da(t.months),t.years=Da(t.years),this}function xa(t,e,n,r){var i=Ar(e,n);return t._milliseconds+=r*i._milliseconds,t._days+=r*i._days,t._months+=r*i._months,t._bubble()}function Ta(t,e){return xa(this,t,e,1)}function ka(t,e){return xa(this,t,e,-1)}function Ca(t){return t<0?Math.floor(t):Math.ceil(t)}function Ea(){var t,e,n,r,i,a=this._milliseconds,o=this._days,s=this._months,l=this._data;return a>=0&&o>=0&&s>=0||a<=0&&o<=0&&s<=0||(a+=864e5*Ca(Oa(s)+o),o=0,s=0),l.milliseconds=a%1e3,t=Mt(a/1e3),l.seconds=t%60,e=Mt(t/60),l.minutes=e%60,n=Mt(e/60),l.hours=n%24,o+=Mt(n/24),s+=i=Mt(Aa(o)),o-=Ca(Oa(i)),r=Mt(s/12),s%=12,l.days=o,l.months=s,l.years=r,this}function Aa(t){return 4800*t/146097}function Oa(t){return 146097*t/4800}function Ma(t){if(!this.isValid())return NaN;var e,n,r=this._milliseconds;if("month"===(t=rt(t))||"quarter"===t||"year"===t)switch(e=this._days+r/864e5,n=this._months+Aa(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(Oa(this._months)),t){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hour":return 24*e+r/36e5;case"minute":return 1440*e+r/6e4;case"second":return 86400*e+r/1e3;case"millisecond":return Math.floor(864e5*e)+r;default:throw new Error("Unknown unit "+t)}}function Na(t){return function(){return this.as(t)}}var Pa=Na("ms"),Va=Na("s"),Ra=Na("m"),Ba=Na("h"),Ia=Na("d"),Fa=Na("w"),ja=Na("M"),La=Na("Q"),Ya=Na("y"),za=Pa;function Ha(){return Ar(this)}function Ua(t){return t=rt(t),this.isValid()?this[t+"s"]():NaN}function qa(t){return function(){return this.isValid()?this._data[t]:NaN}}var Ga=qa("milliseconds"),Wa=qa("seconds"),$a=qa("minutes"),Ka=qa("hours"),Za=qa("days"),Xa=qa("months"),Ja=qa("years");function Qa(){return Mt(this.days()/7)}var to=Math.round,eo={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function no(t,e,n,r,i){return i.relativeTime(e||1,!!n,t,r)}function ro(t,e,n,r){var i=Ar(t).abs(),a=to(i.as("s")),o=to(i.as("m")),s=to(i.as("h")),l=to(i.as("d")),c=to(i.as("M")),u=to(i.as("w")),h=to(i.as("y")),d=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||o<=1&&["m"]||o<n.m&&["mm",o]||s<=1&&["h"]||s<n.h&&["hh",s]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(d=d||u<=1&&["w"]||u<n.w&&["ww",u]),(d=d||c<=1&&["M"]||c<n.M&&["MM",c]||h<=1&&["y"]||["yy",h])[2]=e,d[3]=+t>0,d[4]=r,no.apply(null,d)}function io(t){return void 0===t?to:"function"==typeof t&&(to=t,!0)}function ao(t,e){return void 0!==eo[t]&&(void 0===e?eo[t]:(eo[t]=e,"s"===t&&(eo.ss=e-1),!0))}function oo(t,e){if(!this.isValid())return this.localeData().invalidDate();var n,r,i=!1,a=eo;return"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(i=t),"object"==typeof e&&(a=Object.assign({},eo,e),null!=e.s&&null==e.ss&&(a.ss=e.s-1)),r=ro(this,!i,a,n=this.localeData()),i&&(r=n.pastFuture(+this,r)),n.postformat(r)}var so=Math.abs;function lo(t){return(t>0)-(t<0)||+t}function co(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n,r,i,a,o,s,l=so(this._milliseconds)/1e3,c=so(this._days),u=so(this._months),h=this.asSeconds();return h?(t=Mt(l/60),e=Mt(t/60),l%=60,t%=60,n=Mt(u/12),u%=12,r=l?l.toFixed(3).replace(/\.?0+$/,""):"",i=h<0?"-":"",a=lo(this._months)!==lo(h)?"-":"",o=lo(this._days)!==lo(h)?"-":"",s=lo(this._milliseconds)!==lo(h)?"-":"",i+"P"+(n?a+n+"Y":"")+(u?a+u+"M":"")+(c?o+c+"D":"")+(e||t||l?"T":"")+(e?s+e+"H":"")+(t?s+t+"M":"")+(l?s+r+"S":"")):"P0D"}var uo=sr.prototype;return uo.isValid=ar,uo.abs=Sa,uo.add=Ta,uo.subtract=ka,uo.as=Ma,uo.asMilliseconds=Pa,uo.asSeconds=Va,uo.asMinutes=Ra,uo.asHours=Ba,uo.asDays=Ia,uo.asWeeks=Fa,uo.asMonths=ja,uo.asQuarters=La,uo.asYears=Ya,uo.valueOf=za,uo._bubble=Ea,uo.clone=Ha,uo.get=Ua,uo.milliseconds=Ga,uo.seconds=Wa,uo.minutes=$a,uo.hours=Ka,uo.days=Za,uo.weeks=Qa,uo.months=Xa,uo.years=Ja,uo.humanize=oo,uo.toISOString=co,uo.toString=co,uo.toJSON=co,uo.locale=si,uo.localeData=ci,uo.toIsoString=k("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",co),uo.lang=li,Y("X",0,0,"unix"),Y("x",0,0,"valueOf"),Ct("x",_t),Ct("X",St),Vt("X",(function(t,e,n){n._d=new Date(1e3*parseFloat(t))})),Vt("x",(function(t,e,n){n._d=new Date(Nt(t))})),
|
|
2
2
|
//! moment.js
|
|
3
|
-
r.version="2.30.1",a(Zn),r.fn=ca,r.min=tr,r.max=er,r.now=nr,r.utc=m,r.unix=ua,r.months=va,r.isDate=d,r.locale=gn,r.invalid=b,r.duration=Ar,r.isMoment=x,r.weekdays=ba,r.parseZone=ha,r.localeData=bn,r.isDuration=lr,r.monthsShort=ya,r.weekdaysMin=wa,r.defineLocale=vn,r.updateLocale=yn,r.locales=_n,r.weekdaysShort=_a,r.normalizeUnits=rt,r.relativeTimeRounding=io,r.relativeTimeThreshold=ao,r.calendarFormat=zr,r.prototype=ca,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()})),s={size:{width:1920,height:1080},resource:{jspaths:[],csspaths:[],otherpaths:[],fonts:[]},globalSource:[],alternateData:{},contextList:{},selectd:[],baseComs:[],globalVars:[],globalConstant:[],globalEvents:[],pages:[],pageIndex:0,groupFlag:!1,plant:{baseData:{width:1920,height:1080},option:null,optionDes:null},list:[],menuList:[],syncFlag:!0,multiple:!1,undoRedoPointer:-1,undos:[],redos:[],cache:[],cloneCache:[],shareVariable:{},shareVariableTree:{},catch:{selectd:[],list:[]},currentEditerCid:"",currentArea:{left:0,top:0,width:0,height:0,show:!1},caseList:[],constant:[],caseInfo:null,pageId:null,toPage:null,tw:null,watermark:null,endnotes:null,selectdChangeOrigin:"",sysConst:[{des:"年份",key:1001,mapField:"YEAR",mapping:"-",model:"2",name:"YEAR",value:o().get("year")},{des:"月份",key:1005,mapField:"MONTH",mapping:"-",model:"2",name:"MONTH",value:o().get("month")},{des:"日期",key:1004,mapField:"DATE",mapping:"-",model:"2",name:"DATE",value:o().get("date")},{des:"星期",key:1003,mapField:"WEEK",mapping:"-",model:"2",name:"WEEK",value:o().format("dddd")},{des:"版本",key:1002,mapField:"VERSION",mapping:"-",model:"2",name:"VERSION",value:"1.0.0"},{des:"手机号",key:2001,mapField:"U_PHONE",mapping:"-",model:"2",name:"U_PHONE",value:""},{des:"用户省",key:2002,mapField:"U_PROVINCE",mapping:"-",model:"2",name:"U_PROVINCE",value:""},{des:"用户市",key:2003,mapField:"U_CITY",mapping:"-",model:"2",name:"U_CITY",value:""},{des:"用户区县",key:2004,mapField:"U_COUNTY",mapping:"-",model:"2",name:"U_COUNTY",value:""}],historyFlag:!0,shareComs:new Map},l=function(t,e){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},l(t,e)};var c=function(){return c=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},c.apply(this,arguments)};function u(t,e,n,r){return new(n||(n=Promise))((function(i,a){function o(t){try{l(r.next(t))}catch(t){a(t)}}function s(t){try{l(r.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}l((r=r.apply(t,e||[])).next())}))}function h(t,e){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=e.call(t,o)}catch(t){s=[6,t],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}function d(t,e,n){if(n||2===arguments.length)for(var r,i=0,a=e.length;i<a;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError;var f={createItem:function(e){e.catch={selectd:t.cloneDeep(e.selectd),list:t.cloneDeep(e.list)}},resetData:function(e,n){if(e.historyFlag){var r=t.cloneDeep(n);e.selected=r.selected,e.list=r.list}},execute:function(e){e.historyFlag&&(e.undoRedoPointer===e.undos.length-1?(e.undos.length>5&&t.pullAt(e.undos,0),e.undos.push({selectd:t.cloneDeep(e.selectd),list:t.cloneDeep(e.list)})):e.undos.splice(e.undoRedoPointer+1,e.undos.length-1-e.undoRedoPointer,{selectd:t.cloneDeep(e.selectd),list:t.cloneDeep(e.list)}),e.undoRedoPointer=e.undos.length-1)},undo:function(t){if(t.historyFlag&&t.undoRedoPointer>0&&t.undoRedoPointer<t.undos.length){t.undoRedoPointer=t.undoRedoPointer-1;var e=t.undos[t.undoRedoPointer];this.commit("GoCom/resetData",e)}},redo:function(t){if(t.historyFlag&&t.undoRedoPointer>=0&&t.undoRedoPointer<t.undos.length){t.undoRedoPointer=t.undoRedoPointer+1;var e=t.undos[t.undoRedoPointer];this.commit("GoCom/resetData",e)}},switchHistoryFlag:function(t){t.historyFlag=!t.historyFlag,t.historyFlag||(t.undos=[],t.undoRedoPointer=-1)}},p=new Blob(["\nfunction proxyObj(originObj) {\n const exposeObj = new Proxy(originObj, {\n has: (target, key) => {\n if (['fetch', 'XMLHttpRequest', 'postMessage'].indexOf(key) >= 0) {\n throw new Error('Illegal operation for key'+key)\n } else {\n return target[key]\n }\n },\n })\n return exposeObj\n}\nfunction compileCode(src) {\n src = 'with (exposeObj) {'+src+'}'\n //console.log(src)\n return new Function('exposeObj', src)\n}\nfunction run(code) {\n let proxy = proxyObj({})\n let result = compileCode(code)(proxy)\n return result\n}\n\nonmessage = (e) => {\n try {\n let result = run(e.data.code)\n postMessage({\n code: 1,\n result,\n })\n } catch (err) {\n postMessage({\n code: -1,\n err,\n })\n }\n}\n\n"]),m=URL.createObjectURL(p);function g(t,e){return void 0===e&&(e=5e3),u(this,void 0,void 0,(function(){var n;return h(this,(function(r){return n=new Worker(m),[2,new Promise((function(r,i){var a=function(){clearTimeout(s),n.removeEventListener("message",o),n.terminate(),n=null},o=function(t){var e=t.data,n=e.code,o=e.result,s=e.err;a(),1===n?r(o):i(s)};n.postMessage({code:t}),n.addEventListener("message",o);var s=setTimeout((function(){a(),i("timeout")}),e)}))]}))}))}function v(e,n,r,i,a){return u(this,void 0,void 0,(function(){var r,a,o,s,l,c,u;return h(this,(function(d){switch(d.label){case 0:if(r=e,a=t.cloneDeep(n),o=a.use,s=a.data,!o)return[3,4];c=function(e){var n,a;return h(this,(function(o){switch(o.label){case 0:return s[e].use?(n=s[e].dependVars,a={},i&&a&&n&&n.length&&n.map((function(e){var n=t.cloneDeep(i).filter((function(t){var n=t.mapField==e;return n&&(a[e]=t.value),n}));n&&0!=n.length||(a[e]="")})),[4,y(s[e].code,r,a,s[e].mode?s[e].mode:"worker")]):[3,2];case 1:l=o.sent(),r=l.data,o.label=2;case 2:return[2]}}))},u=0,d.label=1;case 1:return u<s.length?[5,c(u)]:[3,4];case 2:d.sent(),d.label=3;case 3:return u++,[3,1];case 4:return[2,r]}}))}))}function y(t,e,n,r){return void 0===n&&(n={}),void 0===r&&(r="worker"),u(this,void 0,void 0,(function(){var i,a,o,s,l,c,u,f,p;return h(this,(function(h){switch(h.label){case 0:return h.trys.push([0,4,,5]),"window"!=r?[3,1]:(a=(i=[["data"],[e]])[0],o=i[1],"object"==typeof n&&Object.keys(n).forEach((function(t){a.push(t),o.push(n[t])})),s=new(Function.bind.apply(Function,d(d([void 0],a,!1),[t],!1))),[2,{success:!0,data:s.apply(void 0,o)}]);case 1:return u=(l=[e,n,""])[1],f=l[2],"object"==typeof(c=l[0])&&(c=JSON.stringify(e)),"object"==typeof n&&(u=JSON.stringify(n)),Object.keys(n).forEach((function(t){return f+="".concat(t,",")})),p="let data=eval(".concat(c,"); \n let app=").concat(JSON.stringify({}),";"),p+=f?"let {".concat(f,"} = eval(").concat(u,"); "):"",[4,g(p+="".concat(t))];case 2:return[2,{success:!0,data:h.sent()}];case 3:return[3,5];case 4:return[2,{success:!1,error:h.sent(),data:e}];case 5:return[2]}}))}))}var b="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function _(){throw new Error("setTimeout has not been defined")}function w(){throw new Error("clearTimeout has not been defined")}var D=_,S=w;function x(t){if(D===setTimeout)return setTimeout(t,0);if((D===_||!D)&&setTimeout)return D=setTimeout,setTimeout(t,0);try{return D(t,0)}catch(e){try{return D.call(null,t,0)}catch(e){return D.call(this,t,0)}}}"function"==typeof b.setTimeout&&(D=setTimeout),"function"==typeof b.clearTimeout&&(S=clearTimeout);var T,k=[],C=!1,E=-1;function A(){C&&T&&(C=!1,T.length?k=T.concat(k):E=-1,k.length&&O())}function O(){if(!C){var t=x(A);C=!0;for(var e=k.length;e;){for(T=k,k=[];++E<e;)T&&T[E].run();E=-1,e=k.length}T=null,C=!1,function(t){if(S===clearTimeout)return clearTimeout(t);if((S===w||!S)&&clearTimeout)return S=clearTimeout,clearTimeout(t);try{return S(t)}catch(e){try{return S.call(null,t)}catch(e){return S.call(this,t)}}}(t)}}function M(t,e){this.fun=t,this.array=e}M.prototype.run=function(){this.fun.apply(null,this.array)};function N(){}var P=N,V=N,R=N,B=N,I=N,F=N,j=N;var L=b.performance||{},Y=L.now||L.mozNow||L.msNow||L.oNow||L.webkitNow||function(){return(new Date).getTime()};var z=new Date;var H={nextTick:function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];k.push(new M(t,e)),1!==k.length||C||x(O)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:P,addListener:V,once:R,off:B,removeListener:I,removeAllListeners:F,emit:j,binding:function(t){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(t){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(t){var e=.001*Y.call(L),n=Math.floor(e),r=Math.floor(e%1*1e9);return t&&(n-=t[0],(r-=t[1])<0&&(n--,r+=1e9)),[n,r]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-z)/1e3}},U="0123456789abcdefghijklmnopqrstuvwxyz";function q(t){return U.charAt(t)}function G(t,e){return t&e}function W(t,e){return t|e}function $(t,e){return t^e}function K(t,e){return t&~e}function Z(t){if(0==t)return-1;var e=0;return 65535&t||(t>>=16,e+=16),255&t||(t>>=8,e+=8),15&t||(t>>=4,e+=4),3&t||(t>>=2,e+=2),1&t||++e,e}function X(t){for(var e=0;0!=t;)t&=t-1,++e;return e}var J,Q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function tt(t){var e,n,r="";for(e=0;e+3<=t.length;e+=3)n=parseInt(t.substring(e,e+3),16),r+=Q.charAt(n>>6)+Q.charAt(63&n);for(e+1==t.length?(n=parseInt(t.substring(e,e+1),16),r+=Q.charAt(n<<2)):e+2==t.length&&(n=parseInt(t.substring(e,e+2),16),r+=Q.charAt(n>>2)+Q.charAt((3&n)<<4));(3&r.length)>0;)r+="=";return r}function et(t){var e,n="",r=0,i=0;for(e=0;e<t.length&&"="!=t.charAt(e);++e){var a=Q.indexOf(t.charAt(e));a<0||(0==r?(n+=q(a>>2),i=3&a,r=1):1==r?(n+=q(i<<2|a>>4),i=15&a,r=2):2==r?(n+=q(i),n+=q(a>>2),i=3&a,r=3):(n+=q(i<<2|a>>4),n+=q(15&a),r=0))}return 1==r&&(n+=q(i<<2)),n}var nt,rt=function(t){var e;if(void 0===J){var n="0123456789ABCDEF",r=" \f\n\r\t \u2028\u2029";for(J={},e=0;e<16;++e)J[n.charAt(e)]=e;for(n=n.toLowerCase(),e=10;e<16;++e)J[n.charAt(e)]=e;for(e=0;e<8;++e)J[r.charAt(e)]=-1}var i=[],a=0,o=0;for(e=0;e<t.length;++e){var s=t.charAt(e);if("="==s)break;if(-1!=(s=J[s])){if(void 0===s)throw new Error("Illegal character at offset "+e);a|=s,++o>=2?(i[i.length]=a,a=0,o=0):a<<=4}}if(o)throw new Error("Hex encoding incomplete: 4 bits missing");return i},it={decode:function(t){var e;if(void 0===nt){var n="= \f\n\r\t \u2028\u2029";for(nt=Object.create(null),e=0;e<64;++e)nt["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)]=e;for(nt["-"]=62,nt._=63,e=0;e<9;++e)nt[n.charAt(e)]=-1}var r=[],i=0,a=0;for(e=0;e<t.length;++e){var o=t.charAt(e);if("="==o)break;if(-1!=(o=nt[o])){if(void 0===o)throw new Error("Illegal character at offset "+e);i|=o,++a>=4?(r[r.length]=i>>16,r[r.length]=i>>8&255,r[r.length]=255&i,i=0,a=0):i<<=6}}switch(a){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:r[r.length]=i>>10;break;case 3:r[r.length]=i>>16,r[r.length]=i>>8&255}return r},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(t){var e=it.re.exec(t);if(e)if(e[1])t=e[1];else{if(!e[2])throw new Error("RegExp out of sync");t=e[2]}return it.decode(t)}},at=1e13,ot=function(){function t(t){this.buf=[+t||0]}return t.prototype.mulAdd=function(t,e){var n,r,i=this.buf,a=i.length;for(n=0;n<a;++n)(r=i[n]*t+e)<at?e=0:r-=(e=0|r/at)*at,i[n]=r;e>0&&(i[n]=e)},t.prototype.sub=function(t){var e,n,r=this.buf,i=r.length;for(e=0;e<i;++e)(n=r[e]-t)<0?(n+=at,t=1):t=0,r[e]=n;for(;0===r[r.length-1];)r.pop()},t.prototype.toString=function(t){if(10!=(t||10))throw new Error("only base 10 is supported");for(var e=this.buf,n=e[e.length-1].toString(),r=e.length-2;r>=0;--r)n+=(at+e[r]).toString().substring(1);return n},t.prototype.valueOf=function(){for(var t=this.buf,e=0,n=t.length-1;n>=0;--n)e=e*at+t[n];return e},t.prototype.simplify=function(){var t=this.buf;return 1==t.length?t[0]:this},t}(),st=/^(\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)?)?$/,lt=/^(\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 ct(t,e){return t.length>e&&(t=t.substring(0,e)+"…"),t}var ut,ht=function(){function t(e,n){this.hexDigits="0123456789ABCDEF",e instanceof t?(this.enc=e.enc,this.pos=e.pos):(this.enc=e,this.pos=n)}return t.prototype.get=function(t){if(void 0===t&&(t=this.pos++),t>=this.enc.length)throw new Error("Requesting byte offset ".concat(t," on a stream of length ").concat(this.enc.length));return"string"==typeof this.enc?this.enc.charCodeAt(t):this.enc[t]},t.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(15&t)},t.prototype.hexDump=function(t,e,n){for(var r="",i=t;i<e;++i)if(r+=this.hexByte(this.get(i)),!0!==n)switch(15&i){case 7:r+=" ";break;case 15:r+="\n";break;default:r+=" "}return r},t.prototype.isASCII=function(t,e){for(var n=t;n<e;++n){var r=this.get(n);if(r<32||r>176)return!1}return!0},t.prototype.parseStringISO=function(t,e){for(var n="",r=t;r<e;++r)n+=String.fromCharCode(this.get(r));return n},t.prototype.parseStringUTF=function(t,e){for(var n="",r=t;r<e;){var i=this.get(r++);n+=i<128?String.fromCharCode(i):i>191&&i<224?String.fromCharCode((31&i)<<6|63&this.get(r++)):String.fromCharCode((15&i)<<12|(63&this.get(r++))<<6|63&this.get(r++))}return n},t.prototype.parseStringBMP=function(t,e){for(var n,r,i="",a=t;a<e;)n=this.get(a++),r=this.get(a++),i+=String.fromCharCode(n<<8|r);return i},t.prototype.parseTime=function(t,e,n){var r=this.parseStringISO(t,e),i=(n?st:lt).exec(r);return i?(n&&(i[1]=+i[1],i[1]+=+i[1]<70?2e3:1900),r=i[1]+"-"+i[2]+"-"+i[3]+" "+i[4],i[5]&&(r+=":"+i[5],i[6]&&(r+=":"+i[6],i[7]&&(r+="."+i[7]))),i[8]&&(r+=" UTC","Z"!=i[8]&&(r+=i[8],i[9]&&(r+=":"+i[9]))),r):"Unrecognized time: "+r},t.prototype.parseInteger=function(t,e){for(var n,r=this.get(t),i=r>127,a=i?255:0,o="";r==a&&++t<e;)r=this.get(t);if(0===(n=e-t))return i?-1:0;if(n>4){for(o=r,n<<=3;!(128&(+o^a));)o=+o<<1,--n;o="("+n+" bit)\n"}i&&(r-=256);for(var s=new ot(r),l=t+1;l<e;++l)s.mulAdd(256,this.get(l));return o+s.toString()},t.prototype.parseBitString=function(t,e,n){for(var r=this.get(t),i="("+((e-t-1<<3)-r)+" bit)\n",a="",o=t+1;o<e;++o){for(var s=this.get(o),l=o==e-1?r:0,c=7;c>=l;--c)a+=s>>c&1?"1":"0";if(a.length>n)return i+ct(a,n)}return i+a},t.prototype.parseOctetString=function(t,e,n){if(this.isASCII(t,e))return ct(this.parseStringISO(t,e),n);var r=e-t,i="("+r+" byte)\n";r>(n/=2)&&(e=t+n);for(var a=t;a<e;++a)i+=this.hexByte(this.get(a));return r>n&&(i+="…"),i},t.prototype.parseOID=function(t,e,n){for(var r="",i=new ot,a=0,o=t;o<e;++o){var s=this.get(o);if(i.mulAdd(128,127&s),a+=7,!(128&s)){if(""===r)if((i=i.simplify())instanceof ot)i.sub(80),r="2."+i.toString();else{var l=i<80?i<40?0:1:2;r=l+"."+(i-40*l)}else r+="."+i.toString();if(r.length>n)return ct(r,n);i=new ot,a=0}}return a>0&&(r+=".incomplete"),r},t}(),dt=function(){function t(t,e,n,r,i){if(!(r instanceof ft))throw new Error("Invalid tag value.");this.stream=t,this.header=e,this.length=n,this.tag=r,this.sub=i}return t.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()}},t.prototype.content=function(t){if(void 0===this.tag)return null;void 0===t&&(t=1/0);var e=this.posContent(),n=Math.abs(this.length);if(!this.tag.isUniversal())return null!==this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+n,t);switch(this.tag.tagNumber){case 1:return 0===this.stream.get(e)?"false":"true";case 2:return this.stream.parseInteger(e,e+n);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(e,e+n,t);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+n,t);case 6:return this.stream.parseOID(e,e+n,t);case 16:case 17:return null!==this.sub?"("+this.sub.length+" elem)":"(no elem)";case 12:return ct(this.stream.parseStringUTF(e,e+n),t);case 18:case 19:case 20:case 21:case 22:case 26:return ct(this.stream.parseStringISO(e,e+n),t);case 30:return ct(this.stream.parseStringBMP(e,e+n),t);case 23:case 24:return this.stream.parseTime(e,e+n,23==this.tag.tagNumber)}return null},t.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null===this.sub?"null":this.sub.length)+"]"},t.prototype.toPrettyString=function(t){void 0===t&&(t="");var e=t+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(e+="+"),e+=this.length,this.tag.tagConstructed?e+=" (constructed)":!this.tag.isUniversal()||3!=this.tag.tagNumber&&4!=this.tag.tagNumber||null===this.sub||(e+=" (encapsulates)"),e+="\n",null!==this.sub){t+=" ";for(var n=0,r=this.sub.length;n<r;++n)e+=this.sub[n].toPrettyString(t)}return e},t.prototype.posStart=function(){return this.stream.pos},t.prototype.posContent=function(){return this.stream.pos+this.header},t.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},t.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},t.decodeLength=function(t){var e=t.get(),n=127&e;if(n==e)return n;if(n>6)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(0===n)return null;e=0;for(var r=0;r<n;++r)e=256*e+t.get();return e},t.prototype.getHexStringValue=function(){var t=this.toHexString(),e=2*this.header,n=2*this.length;return t.substr(e,n)},t.decode=function(e){var n;n=e instanceof ht?e:new ht(e,0);var r=new ht(n),i=new ft(n),a=t.decodeLength(n),o=n.pos,s=o-r.pos,l=null,c=function(){var e=[];if(null!==a){for(var r=o+a;n.pos<r;)e[e.length]=t.decode(n);if(n.pos!=r)throw new Error("Content size is not correct for container starting at offset "+o)}else try{for(;;){var i=t.decode(n);if(i.tag.isEOC())break;e[e.length]=i}a=o-n.pos}catch(t){throw new Error("Exception while decoding undefined length content: "+t)}return e};if(i.tagConstructed)l=c();else if(i.isUniversal()&&(3==i.tagNumber||4==i.tagNumber))try{if(3==i.tagNumber&&0!=n.get())throw new Error("BIT STRINGs with unused bits cannot encapsulate.");l=c();for(var u=0;u<l.length;++u)if(l[u].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(t){l=null}if(null===l){if(null===a)throw new Error("We can't skip over an invalid tag with undefined length at offset "+o);n.pos=o+Math.abs(a)}return new t(r,s,a,i,l)},t}(),ft=function(){function t(t){var e=t.get();if(this.tagClass=e>>6,this.tagConstructed=!!(32&e),this.tagNumber=31&e,31==this.tagNumber){var n=new ot;do{e=t.get(),n.mulAdd(128,127&e)}while(128&e);this.tagNumber=n.simplify()}}return t.prototype.isUniversal=function(){return 0===this.tagClass},t.prototype.isEOC=function(){return 0===this.tagClass&&0===this.tagNumber},t}(),pt=[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],mt=(1<<26)/pt[pt.length-1],gt=function(){function t(t,e,n){null!=t&&("number"==typeof t?this.fromNumber(t,e,n):null==e&&"string"!=typeof t?this.fromString(t,256):this.fromString(t,e))}return t.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else{if(4!=t)return this.toRadix(t);e=2}var n,r=(1<<e)-1,i=!1,a="",o=this.t,s=this.DB-o*this.DB%e;if(o-- >0)for(s<this.DB&&(n=this[o]>>s)>0&&(i=!0,a=q(n));o>=0;)s<e?(n=(this[o]&(1<<s)-1)<<e-s,n|=this[--o]>>(s+=this.DB-e)):(n=this[o]>>(s-=e)&r,s<=0&&(s+=this.DB,--o)),n>0&&(i=!0),i&&(a+=q(n));return i?a:"0"},t.prototype.negate=function(){var e=wt();return t.ZERO.subTo(this,e),e},t.prototype.abs=function(){return this.s<0?this.negate():this},t.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var n=this.t;if(0!=(e=n-t.t))return this.s<0?-e:e;for(;--n>=0;)if(0!=(e=this[n]-t[n]))return e;return 0},t.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+At(this[this.t-1]^this.s&this.DM)},t.prototype.mod=function(e){var n=wt();return this.abs().divRemTo(e,null,n),this.s<0&&n.compareTo(t.ZERO)>0&&e.subTo(n,n),n},t.prototype.modPowInt=function(t,e){var n;return n=t<256||e.isEven()?new yt(e):new bt(e),this.exp(t,n)},t.prototype.clone=function(){var t=wt();return this.copyTo(t),t},t.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},t.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},t.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},t.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},t.prototype.toByteArray=function(){var t=this.t,e=[];e[0]=this.s;var n,r=this.DB-t*this.DB%8,i=0;if(t-- >0)for(r<this.DB&&(n=this[t]>>r)!=(this.s&this.DM)>>r&&(e[i++]=n|this.s<<this.DB-r);t>=0;)r<8?(n=(this[t]&(1<<r)-1)<<8-r,n|=this[--t]>>(r+=this.DB-8)):(n=this[t]>>(r-=8)&255,r<=0&&(r+=this.DB,--t)),128&n&&(n|=-256),0==i&&(128&this.s)!=(128&n)&&++i,(i>0||n!=this.s)&&(e[i++]=n);return e},t.prototype.equals=function(t){return 0==this.compareTo(t)},t.prototype.min=function(t){return this.compareTo(t)<0?this:t},t.prototype.max=function(t){return this.compareTo(t)>0?this:t},t.prototype.and=function(t){var e=wt();return this.bitwiseTo(t,G,e),e},t.prototype.or=function(t){var e=wt();return this.bitwiseTo(t,W,e),e},t.prototype.xor=function(t){var e=wt();return this.bitwiseTo(t,$,e),e},t.prototype.andNot=function(t){var e=wt();return this.bitwiseTo(t,K,e),e},t.prototype.not=function(){for(var t=wt(),e=0;e<this.t;++e)t[e]=this.DM&~this[e];return t.t=this.t,t.s=~this.s,t},t.prototype.shiftLeft=function(t){var e=wt();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},t.prototype.shiftRight=function(t){var e=wt();return t<0?this.lShiftTo(-t,e):this.rShiftTo(t,e),e},t.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(0!=this[t])return t*this.DB+Z(this[t]);return this.s<0?this.t*this.DB:-1},t.prototype.bitCount=function(){for(var t=0,e=this.s&this.DM,n=0;n<this.t;++n)t+=X(this[n]^e);return t},t.prototype.testBit=function(t){var e=Math.floor(t/this.DB);return e>=this.t?0!=this.s:!!(this[e]&1<<t%this.DB)},t.prototype.setBit=function(t){return this.changeBit(t,W)},t.prototype.clearBit=function(t){return this.changeBit(t,K)},t.prototype.flipBit=function(t){return this.changeBit(t,$)},t.prototype.add=function(t){var e=wt();return this.addTo(t,e),e},t.prototype.subtract=function(t){var e=wt();return this.subTo(t,e),e},t.prototype.multiply=function(t){var e=wt();return this.multiplyTo(t,e),e},t.prototype.divide=function(t){var e=wt();return this.divRemTo(t,e,null),e},t.prototype.remainder=function(t){var e=wt();return this.divRemTo(t,null,e),e},t.prototype.divideAndRemainder=function(t){var e=wt(),n=wt();return this.divRemTo(t,e,n),[e,n]},t.prototype.modPow=function(t,e){var n,r,i=t.bitLength(),a=Et(1);if(i<=0)return a;n=i<18?1:i<48?3:i<144?4:i<768?5:6,r=i<8?new yt(e):e.isEven()?new _t(e):new bt(e);var o=[],s=3,l=n-1,c=(1<<n)-1;if(o[1]=r.convert(this),n>1){var u=wt();for(r.sqrTo(o[1],u);s<=c;)o[s]=wt(),r.mulTo(u,o[s-2],o[s]),s+=2}var h,d,f=t.t-1,p=!0,m=wt();for(i=At(t[f])-1;f>=0;){for(i>=l?h=t[f]>>i-l&c:(h=(t[f]&(1<<i+1)-1)<<l-i,f>0&&(h|=t[f-1]>>this.DB+i-l)),s=n;!(1&h);)h>>=1,--s;if((i-=s)<0&&(i+=this.DB,--f),p)o[h].copyTo(a),p=!1;else{for(;s>1;)r.sqrTo(a,m),r.sqrTo(m,a),s-=2;s>0?r.sqrTo(a,m):(d=a,a=m,m=d),r.mulTo(m,o[h],a)}for(;f>=0&&!(t[f]&1<<i);)r.sqrTo(a,m),d=a,a=m,m=d,--i<0&&(i=this.DB-1,--f)}return r.revert(a)},t.prototype.modInverse=function(e){var n=e.isEven();if(this.isEven()&&n||0==e.signum())return t.ZERO;for(var r=e.clone(),i=this.clone(),a=Et(1),o=Et(0),s=Et(0),l=Et(1);0!=r.signum();){for(;r.isEven();)r.rShiftTo(1,r),n?(a.isEven()&&o.isEven()||(a.addTo(this,a),o.subTo(e,o)),a.rShiftTo(1,a)):o.isEven()||o.subTo(e,o),o.rShiftTo(1,o);for(;i.isEven();)i.rShiftTo(1,i),n?(s.isEven()&&l.isEven()||(s.addTo(this,s),l.subTo(e,l)),s.rShiftTo(1,s)):l.isEven()||l.subTo(e,l),l.rShiftTo(1,l);r.compareTo(i)>=0?(r.subTo(i,r),n&&a.subTo(s,a),o.subTo(l,o)):(i.subTo(r,i),n&&s.subTo(a,s),l.subTo(o,l))}return 0!=i.compareTo(t.ONE)?t.ZERO:l.compareTo(e)>=0?l.subtract(e):l.signum()<0?(l.addTo(e,l),l.signum()<0?l.add(e):l):l},t.prototype.pow=function(t){return this.exp(t,new vt)},t.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),n=t.s<0?t.negate():t.clone();if(e.compareTo(n)<0){var r=e;e=n,n=r}var i=e.getLowestSetBit(),a=n.getLowestSetBit();if(a<0)return e;for(i<a&&(a=i),a>0&&(e.rShiftTo(a,e),n.rShiftTo(a,n));e.signum()>0;)(i=e.getLowestSetBit())>0&&e.rShiftTo(i,e),(i=n.getLowestSetBit())>0&&n.rShiftTo(i,n),e.compareTo(n)>=0?(e.subTo(n,e),e.rShiftTo(1,e)):(n.subTo(e,n),n.rShiftTo(1,n));return a>0&&n.lShiftTo(a,n),n},t.prototype.isProbablePrime=function(t){var e,n=this.abs();if(1==n.t&&n[0]<=pt[pt.length-1]){for(e=0;e<pt.length;++e)if(n[0]==pt[e])return!0;return!1}if(n.isEven())return!1;for(e=1;e<pt.length;){for(var r=pt[e],i=e+1;i<pt.length&&r<mt;)r*=pt[i++];for(r=n.modInt(r);e<i;)if(r%pt[e++]==0)return!1}return n.millerRabin(t)},t.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},t.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},t.prototype.fromString=function(e,n){var r;if(16==n)r=4;else if(8==n)r=3;else if(256==n)r=8;else if(2==n)r=1;else if(32==n)r=5;else{if(4!=n)return void this.fromRadix(e,n);r=2}this.t=0,this.s=0;for(var i=e.length,a=!1,o=0;--i>=0;){var s=8==r?255&+e[i]:Ct(e,i);s<0?"-"==e.charAt(i)&&(a=!0):(a=!1,0==o?this[this.t++]=s:o+r>this.DB?(this[this.t-1]|=(s&(1<<this.DB-o)-1)<<o,this[this.t++]=s>>this.DB-o):this[this.t-1]|=s<<o,(o+=r)>=this.DB&&(o-=this.DB))}8==r&&128&+e[0]&&(this.s=-1,o>0&&(this[this.t-1]|=(1<<this.DB-o)-1<<o)),this.clamp(),a&&t.ZERO.subTo(this,this)},t.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},t.prototype.dlShiftTo=function(t,e){var n;for(n=this.t-1;n>=0;--n)e[n+t]=this[n];for(n=t-1;n>=0;--n)e[n]=0;e.t=this.t+t,e.s=this.s},t.prototype.drShiftTo=function(t,e){for(var n=t;n<this.t;++n)e[n-t]=this[n];e.t=Math.max(this.t-t,0),e.s=this.s},t.prototype.lShiftTo=function(t,e){for(var n=t%this.DB,r=this.DB-n,i=(1<<r)-1,a=Math.floor(t/this.DB),o=this.s<<n&this.DM,s=this.t-1;s>=0;--s)e[s+a+1]=this[s]>>r|o,o=(this[s]&i)<<n;for(s=a-1;s>=0;--s)e[s]=0;e[a]=o,e.t=this.t+a+1,e.s=this.s,e.clamp()},t.prototype.rShiftTo=function(t,e){e.s=this.s;var n=Math.floor(t/this.DB);if(n>=this.t)e.t=0;else{var r=t%this.DB,i=this.DB-r,a=(1<<r)-1;e[0]=this[n]>>r;for(var o=n+1;o<this.t;++o)e[o-n-1]|=(this[o]&a)<<i,e[o-n]=this[o]>>r;r>0&&(e[this.t-n-1]|=(this.s&a)<<i),e.t=this.t-n,e.clamp()}},t.prototype.subTo=function(t,e){for(var n=0,r=0,i=Math.min(t.t,this.t);n<i;)r+=this[n]-t[n],e[n++]=r&this.DM,r>>=this.DB;if(t.t<this.t){for(r-=t.s;n<this.t;)r+=this[n],e[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<t.t;)r-=t[n],e[n++]=r&this.DM,r>>=this.DB;r-=t.s}e.s=r<0?-1:0,r<-1?e[n++]=this.DV+r:r>0&&(e[n++]=r),e.t=n,e.clamp()},t.prototype.multiplyTo=function(e,n){var r=this.abs(),i=e.abs(),a=r.t;for(n.t=a+i.t;--a>=0;)n[a]=0;for(a=0;a<i.t;++a)n[a+r.t]=r.am(0,i[a],n,a,0,r.t);n.s=0,n.clamp(),this.s!=e.s&&t.ZERO.subTo(n,n)},t.prototype.squareTo=function(t){for(var e=this.abs(),n=t.t=2*e.t;--n>=0;)t[n]=0;for(n=0;n<e.t-1;++n){var r=e.am(n,e[n],t,2*n,0,1);(t[n+e.t]+=e.am(n+1,2*e[n],t,2*n+1,r,e.t-n-1))>=e.DV&&(t[n+e.t]-=e.DV,t[n+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(n,e[n],t,2*n,0,1)),t.s=0,t.clamp()},t.prototype.divRemTo=function(e,n,r){var i=e.abs();if(!(i.t<=0)){var a=this.abs();if(a.t<i.t)return null!=n&&n.fromInt(0),void(null!=r&&this.copyTo(r));null==r&&(r=wt());var o=wt(),s=this.s,l=e.s,c=this.DB-At(i[i.t-1]);c>0?(i.lShiftTo(c,o),a.lShiftTo(c,r)):(i.copyTo(o),a.copyTo(r));var u=o.t,h=o[u-1];if(0!=h){var d=h*(1<<this.F1)+(u>1?o[u-2]>>this.F2:0),f=this.FV/d,p=(1<<this.F1)/d,m=1<<this.F2,g=r.t,v=g-u,y=null==n?wt():n;for(o.dlShiftTo(v,y),r.compareTo(y)>=0&&(r[r.t++]=1,r.subTo(y,r)),t.ONE.dlShiftTo(u,y),y.subTo(o,o);o.t<u;)o[o.t++]=0;for(;--v>=0;){var b=r[--g]==h?this.DM:Math.floor(r[g]*f+(r[g-1]+m)*p);if((r[g]+=o.am(0,b,r,v,0,u))<b)for(o.dlShiftTo(v,y),r.subTo(y,r);r[g]<--b;)r.subTo(y,r)}null!=n&&(r.drShiftTo(u,n),s!=l&&t.ZERO.subTo(n,n)),r.t=u,r.clamp(),c>0&&r.rShiftTo(c,r),s<0&&t.ZERO.subTo(r,r)}}},t.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(!(1&t))return 0;var e=3&t;return(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)>0?this.DV-e:-e},t.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},t.prototype.exp=function(e,n){if(e>4294967295||e<1)return t.ONE;var r=wt(),i=wt(),a=n.convert(this),o=At(e)-1;for(a.copyTo(r);--o>=0;)if(n.sqrTo(r,i),(e&1<<o)>0)n.mulTo(i,a,r);else{var s=r;r=i,i=s}return n.revert(r)},t.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},t.prototype.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||t>36)return"0";var e=this.chunkSize(t),n=Math.pow(t,e),r=Et(n),i=wt(),a=wt(),o="";for(this.divRemTo(r,i,a);i.signum()>0;)o=(n+a.intValue()).toString(t).substr(1)+o,i.divRemTo(r,i,a);return a.intValue().toString(t)+o},t.prototype.fromRadix=function(e,n){this.fromInt(0),null==n&&(n=10);for(var r=this.chunkSize(n),i=Math.pow(n,r),a=!1,o=0,s=0,l=0;l<e.length;++l){var c=Ct(e,l);c<0?"-"==e.charAt(l)&&0==this.signum()&&(a=!0):(s=n*s+c,++o>=r&&(this.dMultiply(i),this.dAddOffset(s,0),o=0,s=0))}o>0&&(this.dMultiply(Math.pow(n,o)),this.dAddOffset(s,0)),a&&t.ZERO.subTo(this,this)},t.prototype.fromNumber=function(e,n,r){if("number"==typeof n)if(e<2)this.fromInt(1);else for(this.fromNumber(e,r),this.testBit(e-1)||this.bitwiseTo(t.ONE.shiftLeft(e-1),W,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(n);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(t.ONE.shiftLeft(e-1),this);else{var i=[],a=7&e;i.length=1+(e>>3),n.nextBytes(i),a>0?i[0]&=(1<<a)-1:i[0]=0,this.fromString(i,256)}},t.prototype.bitwiseTo=function(t,e,n){var r,i,a=Math.min(t.t,this.t);for(r=0;r<a;++r)n[r]=e(this[r],t[r]);if(t.t<this.t){for(i=t.s&this.DM,r=a;r<this.t;++r)n[r]=e(this[r],i);n.t=this.t}else{for(i=this.s&this.DM,r=a;r<t.t;++r)n[r]=e(i,t[r]);n.t=t.t}n.s=e(this.s,t.s),n.clamp()},t.prototype.changeBit=function(e,n){var r=t.ONE.shiftLeft(e);return this.bitwiseTo(r,n,r),r},t.prototype.addTo=function(t,e){for(var n=0,r=0,i=Math.min(t.t,this.t);n<i;)r+=this[n]+t[n],e[n++]=r&this.DM,r>>=this.DB;if(t.t<this.t){for(r+=t.s;n<this.t;)r+=this[n],e[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<t.t;)r+=t[n],e[n++]=r&this.DM,r>>=this.DB;r+=t.s}e.s=r<0?-1:0,r>0?e[n++]=r:r<-1&&(e[n++]=this.DV+r),e.t=n,e.clamp()},t.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},t.prototype.dAddOffset=function(t,e){if(0!=t){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},t.prototype.multiplyLowerTo=function(t,e,n){var r=Math.min(this.t+t.t,e);for(n.s=0,n.t=r;r>0;)n[--r]=0;for(var i=n.t-this.t;r<i;++r)n[r+this.t]=this.am(0,t[r],n,r,0,this.t);for(i=Math.min(t.t,e);r<i;++r)this.am(0,t[r],n,r,0,e-r);n.clamp()},t.prototype.multiplyUpperTo=function(t,e,n){--e;var r=n.t=this.t+t.t-e;for(n.s=0;--r>=0;)n[r]=0;for(r=Math.max(e-this.t,0);r<t.t;++r)n[this.t+r-e]=this.am(e-r,t[r],n,0,0,this.t+r-e);n.clamp(),n.drShiftTo(1,n)},t.prototype.modInt=function(t){if(t<=0)return 0;var e=this.DV%t,n=this.s<0?t-1:0;if(this.t>0)if(0==e)n=this[0]%t;else for(var r=this.t-1;r>=0;--r)n=(e*n+this[r])%t;return n},t.prototype.millerRabin=function(e){var n=this.subtract(t.ONE),r=n.getLowestSetBit();if(r<=0)return!1;var i=n.shiftRight(r);(e=e+1>>1)>pt.length&&(e=pt.length);for(var a=wt(),o=0;o<e;++o){a.fromInt(pt[Math.floor(Math.random()*pt.length)]);var s=a.modPow(i,this);if(0!=s.compareTo(t.ONE)&&0!=s.compareTo(n)){for(var l=1;l++<r&&0!=s.compareTo(n);)if(0==(s=s.modPowInt(2,this)).compareTo(t.ONE))return!1;if(0!=s.compareTo(n))return!1}}return!0},t.prototype.square=function(){var t=wt();return this.squareTo(t),t},t.prototype.gcda=function(t,e){var n=this.s<0?this.negate():this.clone(),r=t.s<0?t.negate():t.clone();if(n.compareTo(r)<0){var i=n;n=r,r=i}var a=n.getLowestSetBit(),o=r.getLowestSetBit();if(o<0)e(n);else{a<o&&(o=a),o>0&&(n.rShiftTo(o,n),r.rShiftTo(o,r));var s=function(){(a=n.getLowestSetBit())>0&&n.rShiftTo(a,n),(a=r.getLowestSetBit())>0&&r.rShiftTo(a,r),n.compareTo(r)>=0?(n.subTo(r,n),n.rShiftTo(1,n)):(r.subTo(n,r),r.rShiftTo(1,r)),n.signum()>0?setTimeout(s,0):(o>0&&r.lShiftTo(o,r),setTimeout((function(){e(r)}),0))};setTimeout(s,10)}},t.prototype.fromNumberAsync=function(e,n,r,i){if("number"==typeof n)if(e<2)this.fromInt(1);else{this.fromNumber(e,r),this.testBit(e-1)||this.bitwiseTo(t.ONE.shiftLeft(e-1),W,this),this.isEven()&&this.dAddOffset(1,0);var a=this,o=function(){a.dAddOffset(2,0),a.bitLength()>e&&a.subTo(t.ONE.shiftLeft(e-1),a),a.isProbablePrime(n)?setTimeout((function(){i()}),0):setTimeout(o,0)};setTimeout(o,0)}else{var s=[],l=7&e;s.length=1+(e>>3),n.nextBytes(s),l>0?s[0]&=(1<<l)-1:s[0]=0,this.fromString(s,256)}},t}(),vt=function(){function t(){}return t.prototype.convert=function(t){return t},t.prototype.revert=function(t){return t},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n)},t.prototype.sqrTo=function(t,e){t.squareTo(e)},t}(),yt=function(){function t(t){this.m=t}return t.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},t.prototype.revert=function(t){return t},t.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}(),bt=function(){function t(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}return t.prototype.convert=function(t){var e=wt();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(gt.ZERO)>0&&this.m.subTo(e,e),e},t.prototype.revert=function(t){var e=wt();return t.copyTo(e),this.reduce(e),e},t.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var n=32767&t[e],r=n*this.mpl+((n*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;for(t[n=e+this.m.t]+=this.m.am(0,r,t,e,0,this.m.t);t[n]>=t.DV;)t[n]-=t.DV,t[++n]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}(),_t=function(){function t(t){this.m=t,this.r2=wt(),this.q3=wt(),gt.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t)}return t.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=wt();return t.copyTo(e),this.reduce(e),e},t.prototype.revert=function(t){return t},t.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}();function wt(){return new gt(null)}function Dt(t,e){return new gt(t,e)}var St="undefined"!=typeof navigator;St&&"Microsoft Internet Explorer"==navigator.appName?(gt.prototype.am=function(t,e,n,r,i,a){for(var o=32767&e,s=e>>15;--a>=0;){var l=32767&this[t],c=this[t++]>>15,u=s*l+c*o;i=((l=o*l+((32767&u)<<15)+n[r]+(1073741823&i))>>>30)+(u>>>15)+s*c+(i>>>30),n[r++]=1073741823&l}return i},ut=30):St&&"Netscape"!=navigator.appName?(gt.prototype.am=function(t,e,n,r,i,a){for(;--a>=0;){var o=e*this[t++]+n[r]+i;i=Math.floor(o/67108864),n[r++]=67108863&o}return i},ut=26):(gt.prototype.am=function(t,e,n,r,i,a){for(var o=16383&e,s=e>>14;--a>=0;){var l=16383&this[t],c=this[t++]>>14,u=s*l+c*o;i=((l=o*l+((16383&u)<<14)+n[r]+i)>>28)+(u>>14)+s*c,n[r++]=268435455&l}return i},ut=28),gt.prototype.DB=ut,gt.prototype.DM=(1<<ut)-1,gt.prototype.DV=1<<ut;gt.prototype.FV=Math.pow(2,52),gt.prototype.F1=52-ut,gt.prototype.F2=2*ut-52;var xt,Tt,kt=[];for(xt="0".charCodeAt(0),Tt=0;Tt<=9;++Tt)kt[xt++]=Tt;for(xt="a".charCodeAt(0),Tt=10;Tt<36;++Tt)kt[xt++]=Tt;for(xt="A".charCodeAt(0),Tt=10;Tt<36;++Tt)kt[xt++]=Tt;function Ct(t,e){var n=kt[t.charCodeAt(e)];return null==n?-1:n}function Et(t){var e=wt();return e.fromInt(t),e}function At(t){var e,n=1;return 0!=(e=t>>>16)&&(t=e,n+=16),0!=(e=t>>8)&&(t=e,n+=8),0!=(e=t>>4)&&(t=e,n+=4),0!=(e=t>>2)&&(t=e,n+=2),0!=(e=t>>1)&&(t=e,n+=1),n}gt.ZERO=Et(0),gt.ONE=Et(1);var Ot=function(){function t(){this.i=0,this.j=0,this.S=[]}return t.prototype.init=function(t){var e,n,r;for(e=0;e<256;++e)this.S[e]=e;for(n=0,e=0;e<256;++e)n=n+this.S[e]+t[e%t.length]&255,r=this.S[e],this.S[e]=this.S[n],this.S[n]=r;this.i=0,this.j=0},t.prototype.next=function(){var t;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,t=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=t,this.S[t+this.S[this.i]&255]},t}();var Mt,Nt,Pt=null;if(null==Pt){Pt=[],Nt=0;var Vt=void 0;if("undefined"!=typeof window&&window.crypto&&window.crypto.getRandomValues){var Rt=new Uint32Array(256);for(window.crypto.getRandomValues(Rt),Vt=0;Vt<Rt.length;++Vt)Pt[Nt++]=255&Rt[Vt]}var Bt=0,It=function(t){if((Bt=Bt||0)>=256||Nt>=256)window.removeEventListener?window.removeEventListener("mousemove",It,!1):window.detachEvent&&window.detachEvent("onmousemove",It);else try{var e=t.x+t.y;Pt[Nt++]=255&e,Bt+=1}catch(t){}};"undefined"!=typeof window&&(window.addEventListener?window.addEventListener("mousemove",It,!1):window.attachEvent&&window.attachEvent("onmousemove",It))}function Ft(){if(null==Mt){for(Mt=new Ot;Nt<256;){var t=Math.floor(65536*Math.random());Pt[Nt++]=255&t}for(Mt.init(Pt),Nt=0;Nt<Pt.length;++Nt)Pt[Nt]=0;Nt=0}return Mt.next()}var jt=function(){function t(){}return t.prototype.nextBytes=function(t){for(var e=0;e<t.length;++e)t[e]=Ft()},t}();var Lt=function(){function t(){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 t.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)},t.prototype.doPrivate=function(t){if(null==this.p||null==this.q)return t.modPow(this.d,this.n);for(var e=t.mod(this.p).modPow(this.dmp1,this.p),n=t.mod(this.q).modPow(this.dmq1,this.q);e.compareTo(n)<0;)e=e.add(this.p);return e.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n)},t.prototype.setPublic=function(t,e){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=Dt(t,16),this.e=parseInt(e,16)):console.error("Invalid RSA public key")},t.prototype.encrypt=function(t){var e=this.n.bitLength()+7>>3,n=function(t,e){if(e<t.length+11)return console.error("Message too long for RSA"),null;for(var n=[],r=t.length-1;r>=0&&e>0;){var i=t.charCodeAt(r--);i<128?n[--e]=i:i>127&&i<2048?(n[--e]=63&i|128,n[--e]=i>>6|192):(n[--e]=63&i|128,n[--e]=i>>6&63|128,n[--e]=i>>12|224)}n[--e]=0;for(var a=new jt,o=[];e>2;){for(o[0]=0;0==o[0];)a.nextBytes(o);n[--e]=o[0]}return n[--e]=2,n[--e]=0,new gt(n)}(t,e);if(null==n)return null;var r=this.doPublic(n);if(null==r)return null;for(var i=r.toString(16),a=i.length,o=0;o<2*e-a;o++)i="0"+i;return i},t.prototype.setPrivate=function(t,e,n){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=Dt(t,16),this.e=parseInt(e,16),this.d=Dt(n,16)):console.error("Invalid RSA private key")},t.prototype.setPrivateEx=function(t,e,n,r,i,a,o,s){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=Dt(t,16),this.e=parseInt(e,16),this.d=Dt(n,16),this.p=Dt(r,16),this.q=Dt(i,16),this.dmp1=Dt(a,16),this.dmq1=Dt(o,16),this.coeff=Dt(s,16)):console.error("Invalid RSA private key")},t.prototype.generate=function(t,e){var n=new jt,r=t>>1;this.e=parseInt(e,16);for(var i=new gt(e,16);;){for(;this.p=new gt(t-r,1,n),0!=this.p.subtract(gt.ONE).gcd(i).compareTo(gt.ONE)||!this.p.isProbablePrime(10););for(;this.q=new gt(r,1,n),0!=this.q.subtract(gt.ONE).gcd(i).compareTo(gt.ONE)||!this.q.isProbablePrime(10););if(this.p.compareTo(this.q)<=0){var a=this.p;this.p=this.q,this.q=a}var o=this.p.subtract(gt.ONE),s=this.q.subtract(gt.ONE),l=o.multiply(s);if(0==l.gcd(i).compareTo(gt.ONE)){this.n=this.p.multiply(this.q),this.d=i.modInverse(l),this.dmp1=this.d.mod(o),this.dmq1=this.d.mod(s),this.coeff=this.q.modInverse(this.p);break}}},t.prototype.decrypt=function(t){var e=Dt(t,16),n=this.doPrivate(e);return null==n?null:function(t,e){var n=t.toByteArray(),r=0;for(;r<n.length&&0==n[r];)++r;if(n.length-r!=e-1||2!=n[r])return null;++r;for(;0!=n[r];)if(++r>=n.length)return null;var i="";for(;++r<n.length;){var a=255&n[r];a<128?i+=String.fromCharCode(a):a>191&&a<224?(i+=String.fromCharCode((31&a)<<6|63&n[r+1]),++r):(i+=String.fromCharCode((15&a)<<12|(63&n[r+1])<<6|63&n[r+2]),r+=2)}return i}(n,this.n.bitLength()+7>>3)},t.prototype.generateAsync=function(t,e,n){var r=new jt,i=t>>1;this.e=parseInt(e,16);var a=new gt(e,16),o=this,s=function(){var e=function(){if(o.p.compareTo(o.q)<=0){var t=o.p;o.p=o.q,o.q=t}var e=o.p.subtract(gt.ONE),r=o.q.subtract(gt.ONE),i=e.multiply(r);0==i.gcd(a).compareTo(gt.ONE)?(o.n=o.p.multiply(o.q),o.d=a.modInverse(i),o.dmp1=o.d.mod(e),o.dmq1=o.d.mod(r),o.coeff=o.q.modInverse(o.p),setTimeout((function(){n()}),0)):setTimeout(s,0)},l=function(){o.q=wt(),o.q.fromNumberAsync(i,1,r,(function(){o.q.subtract(gt.ONE).gcda(a,(function(t){0==t.compareTo(gt.ONE)&&o.q.isProbablePrime(10)?setTimeout(e,0):setTimeout(l,0)}))}))},c=function(){o.p=wt(),o.p.fromNumberAsync(t-i,1,r,(function(){o.p.subtract(gt.ONE).gcda(a,(function(t){0==t.compareTo(gt.ONE)&&o.p.isProbablePrime(10)?setTimeout(l,0):setTimeout(c,0)}))}))};setTimeout(c,0)};setTimeout(s,0)},t.prototype.sign=function(t,e,n){var r=function(t,e){if(e<t.length+22)return console.error("Message too long for RSA"),null;for(var n=e-t.length-6,r="",i=0;i<n;i+=2)r+="ff";return Dt("0001"+r+"00"+t,16)}((Yt[n]||"")+e(t).toString(),this.n.bitLength()/4);if(null==r)return null;var i=this.doPrivate(r);if(null==i)return null;var a=i.toString(16);return 1&a.length?"0"+a:a},t.prototype.verify=function(t,e,n){var r=Dt(e,16),i=this.doPublic(r);return null==i?null:function(t){for(var e in Yt)if(Yt.hasOwnProperty(e)){var n=Yt[e],r=n.length;if(t.substr(0,r)==n)return t.substr(r)}return t}
|
|
3
|
+
r.version="2.30.1",a(Zn),r.fn=ca,r.min=tr,r.max=er,r.now=nr,r.utc=m,r.unix=ua,r.months=va,r.isDate=d,r.locale=gn,r.invalid=b,r.duration=Ar,r.isMoment=x,r.weekdays=ba,r.parseZone=ha,r.localeData=bn,r.isDuration=lr,r.monthsShort=ya,r.weekdaysMin=wa,r.defineLocale=vn,r.updateLocale=yn,r.locales=_n,r.weekdaysShort=_a,r.normalizeUnits=rt,r.relativeTimeRounding=io,r.relativeTimeThreshold=ao,r.calendarFormat=zr,r.prototype=ca,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()})),s={size:{width:1920,height:1080},resource:{jspaths:[],csspaths:[],otherpaths:[],fonts:[]},globalSource:[],alternateData:{},contextList:{},selectd:[],baseComs:[],globalVars:[],globalConstant:[],globalEvents:[],pages:[],pageIndex:0,groupFlag:!1,plant:{baseData:{width:1920,height:1080},option:null,optionDes:null},list:[],menuList:[],syncFlag:!0,multiple:!1,undoRedoPointer:-1,undos:[],redos:[],cache:[],cloneCache:[],shareVariable:{},shareVariableTree:{},catch:{selectd:[],list:[]},currentEditerCid:"",currentArea:{left:0,top:0,width:0,height:0,show:!1},caseList:[],constant:[],caseInfo:null,pageId:null,toPage:null,tw:null,watermark:null,endnotes:null,selectdChangeOrigin:"",sysConst:[{des:"年份",key:1001,mapField:"YEAR",mapping:"-",model:"2",name:"YEAR",value:o().get("year")},{des:"月份",key:1005,mapField:"MONTH",mapping:"-",model:"2",name:"MONTH",value:o().get("month")},{des:"日期",key:1004,mapField:"DATE",mapping:"-",model:"2",name:"DATE",value:o().get("date")},{des:"星期",key:1003,mapField:"WEEK",mapping:"-",model:"2",name:"WEEK",value:o().format("dddd")},{des:"版本",key:1002,mapField:"VERSION",mapping:"-",model:"2",name:"VERSION",value:"1.0.0"},{des:"手机号",key:2001,mapField:"U_PHONE",mapping:"-",model:"2",name:"U_PHONE",value:""},{des:"用户省",key:2002,mapField:"U_PROVINCE",mapping:"-",model:"2",name:"U_PROVINCE",value:""},{des:"用户市",key:2003,mapField:"U_CITY",mapping:"-",model:"2",name:"U_CITY",value:""},{des:"用户区县",key:2004,mapField:"U_COUNTY",mapping:"-",model:"2",name:"U_COUNTY",value:""}],historyFlag:!0,shareComs:new Map},l=function(t,e){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},l(t,e)};var c=function(){return c=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},c.apply(this,arguments)};function u(t,e,n,r){return new(n||(n=Promise))((function(i,a){function o(t){try{l(r.next(t))}catch(t){a(t)}}function s(t){try{l(r.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}l((r=r.apply(t,e||[])).next())}))}function h(t,e){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=e.call(t,o)}catch(t){s=[6,t],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}function d(t,e,n){if(n||2===arguments.length)for(var r,i=0,a=e.length;i<a;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError;var f={createItem:function(e){e.catch={selectd:t.cloneDeep(e.selectd),list:t.cloneDeep(e.list)}},resetData:function(e,n){if(e.historyFlag){var r=t.cloneDeep(n);e.selected=r.selected,e.list=r.list}},execute:function(e){e.historyFlag&&(e.undoRedoPointer===e.undos.length-1?(e.undos.length>5&&t.pullAt(e.undos,0),e.undos.push({selectd:t.cloneDeep(e.selectd),list:t.cloneDeep(e.list)})):e.undos.splice(e.undoRedoPointer+1,e.undos.length-1-e.undoRedoPointer,{selectd:t.cloneDeep(e.selectd),list:t.cloneDeep(e.list)}),e.undoRedoPointer=e.undos.length-1)},undo:function(t){if(t.historyFlag&&t.undoRedoPointer>0&&t.undoRedoPointer<t.undos.length){t.undoRedoPointer=t.undoRedoPointer-1;var e=t.undos[t.undoRedoPointer];this.commit("GoCom/resetData",e)}},redo:function(t){if(t.historyFlag&&t.undoRedoPointer>=0&&t.undoRedoPointer<t.undos.length){t.undoRedoPointer=t.undoRedoPointer+1;var e=t.undos[t.undoRedoPointer];this.commit("GoCom/resetData",e)}},switchHistoryFlag:function(t){t.historyFlag=!t.historyFlag,t.historyFlag||(t.undos=[],t.undoRedoPointer=-1)}},p=new Blob(["\nfunction proxyObj(originObj) {\n const exposeObj = new Proxy(originObj, {\n has: (target, key) => {\n if (['fetch', 'XMLHttpRequest', 'postMessage'].indexOf(key) >= 0) {\n throw new Error('Illegal operation for key'+key)\n } else {\n return target[key]\n }\n },\n })\n return exposeObj\n}\nfunction compileCode(src) {\n src = 'with (exposeObj) {'+src+'}'\n //console.log(src)\n return new Function('exposeObj', src)\n}\nfunction run(code) {\n let proxy = proxyObj({})\n let result = compileCode(code)(proxy)\n return result\n}\n\nonmessage = (e) => {\n try {\n let result = run(e.data.code)\n postMessage({\n code: 1,\n result,\n })\n } catch (err) {\n postMessage({\n code: -1,\n err,\n })\n }\n}\n\n"]),m=URL.createObjectURL(p);function g(t,e){return void 0===e&&(e=5e3),u(this,void 0,void 0,(function(){var n;return h(this,(function(r){return n=new Worker(m),[2,new Promise((function(r,i){var a=function(){clearTimeout(s),n.removeEventListener("message",o),n.terminate(),n=null},o=function(t){var e=t.data,n=e.code,o=e.result,s=e.err;a(),1===n?r(o):i(s)};n.postMessage({code:t}),n.addEventListener("message",o);var s=setTimeout((function(){a(),i("timeout")}),e)}))]}))}))}function v(e,n,r,i,a){return u(this,void 0,void 0,(function(){var r,a,o,s,l,c,u;return h(this,(function(d){switch(d.label){case 0:if(r=e,a=t.cloneDeep(n),o=a.use,s=a.data,!o)return[3,4];c=function(e){var n,a;return h(this,(function(o){switch(o.label){case 0:return s[e].use?(n=s[e].dependVars,a={},i&&a&&n&&n.length&&n.map((function(e){var n=t.cloneDeep(i).filter((function(t){var n=t.mapField==e;return n&&(a[e]=t.value),n}));n&&0!=n.length||(a[e]="")})),[4,y(s[e].code,r,a,s[e].mode?s[e].mode:"worker")]):[3,2];case 1:l=o.sent(),r=l.data,o.label=2;case 2:return[2]}}))},u=0,d.label=1;case 1:return u<s.length?[5,c(u)]:[3,4];case 2:d.sent(),d.label=3;case 3:return u++,[3,1];case 4:return[2,r]}}))}))}function y(t,e,n,r){return void 0===n&&(n={}),void 0===r&&(r="worker"),u(this,void 0,void 0,(function(){var i,a,o,s,l,c,u,f,p;return h(this,(function(h){switch(h.label){case 0:return h.trys.push([0,4,,5]),"window"!=r?[3,1]:(a=(i=[["data"],[e]])[0],o=i[1],"object"==typeof n&&Object.keys(n).forEach((function(t){a.push(t),o.push(n[t])})),s=new(Function.bind.apply(Function,d(d([void 0],a,!1),[t],!1))),[2,{success:!0,data:s.apply(void 0,o)}]);case 1:return u=(l=[e,n,""])[1],f=l[2],"object"==typeof(c=l[0])&&(c=JSON.stringify(e)),"object"==typeof n&&(u=JSON.stringify(n)),Object.keys(n).forEach((function(t){return f+="".concat(t,",")})),p="let data=eval(".concat(c,"); \n let app=").concat(JSON.stringify({}),";"),p+=f?"let {".concat(f,"} = eval(").concat(u,"); "):"",[4,g(p+="".concat(t))];case 2:return[2,{success:!0,data:h.sent()}];case 3:return[3,5];case 4:return[2,{success:!1,error:h.sent(),data:e}];case 5:return[2]}}))}))}var b="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function _(){throw new Error("setTimeout has not been defined")}function w(){throw new Error("clearTimeout has not been defined")}var D=_,S=w;function x(t){if(D===setTimeout)return setTimeout(t,0);if((D===_||!D)&&setTimeout)return D=setTimeout,setTimeout(t,0);try{return D(t,0)}catch(e){try{return D.call(null,t,0)}catch(e){return D.call(this,t,0)}}}"function"==typeof b.setTimeout&&(D=setTimeout),"function"==typeof b.clearTimeout&&(S=clearTimeout);var T,k=[],C=!1,E=-1;function A(){C&&T&&(C=!1,T.length?k=T.concat(k):E=-1,k.length&&O())}function O(){if(!C){var t=x(A);C=!0;for(var e=k.length;e;){for(T=k,k=[];++E<e;)T&&T[E].run();E=-1,e=k.length}T=null,C=!1,function(t){if(S===clearTimeout)return clearTimeout(t);if((S===w||!S)&&clearTimeout)return S=clearTimeout,clearTimeout(t);try{return S(t)}catch(e){try{return S.call(null,t)}catch(e){return S.call(this,t)}}}(t)}}function M(t,e){this.fun=t,this.array=e}M.prototype.run=function(){this.fun.apply(null,this.array)};function N(){}var P=N,V=N,R=N,B=N,I=N,F=N,j=N;var L=b.performance||{},Y=L.now||L.mozNow||L.msNow||L.oNow||L.webkitNow||function(){return(new Date).getTime()};var z=new Date;var H={nextTick:function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];k.push(new M(t,e)),1!==k.length||C||x(O)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:P,addListener:V,once:R,off:B,removeListener:I,removeAllListeners:F,emit:j,binding:function(t){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(t){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(t){var e=.001*Y.call(L),n=Math.floor(e),r=Math.floor(e%1*1e9);return t&&(n-=t[0],(r-=t[1])<0&&(n--,r+=1e9)),[n,r]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-z)/1e3}},U="0123456789abcdefghijklmnopqrstuvwxyz";function q(t){return U.charAt(t)}function G(t,e){return t&e}function W(t,e){return t|e}function $(t,e){return t^e}function K(t,e){return t&~e}function Z(t){if(0==t)return-1;var e=0;return 0==(65535&t)&&(t>>=16,e+=16),0==(255&t)&&(t>>=8,e+=8),0==(15&t)&&(t>>=4,e+=4),0==(3&t)&&(t>>=2,e+=2),0==(1&t)&&++e,e}function X(t){for(var e=0;0!=t;)t&=t-1,++e;return e}var J,Q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function tt(t){var e,n,r="";for(e=0;e+3<=t.length;e+=3)n=parseInt(t.substring(e,e+3),16),r+=Q.charAt(n>>6)+Q.charAt(63&n);for(e+1==t.length?(n=parseInt(t.substring(e,e+1),16),r+=Q.charAt(n<<2)):e+2==t.length&&(n=parseInt(t.substring(e,e+2),16),r+=Q.charAt(n>>2)+Q.charAt((3&n)<<4));(3&r.length)>0;)r+="=";return r}function et(t){var e,n="",r=0,i=0;for(e=0;e<t.length&&"="!=t.charAt(e);++e){var a=Q.indexOf(t.charAt(e));a<0||(0==r?(n+=q(a>>2),i=3&a,r=1):1==r?(n+=q(i<<2|a>>4),i=15&a,r=2):2==r?(n+=q(i),n+=q(a>>2),i=3&a,r=3):(n+=q(i<<2|a>>4),n+=q(15&a),r=0))}return 1==r&&(n+=q(i<<2)),n}var nt,rt=function(t){var e;if(void 0===J){var n="0123456789ABCDEF",r=" \f\n\r\t \u2028\u2029";for(J={},e=0;e<16;++e)J[n.charAt(e)]=e;for(n=n.toLowerCase(),e=10;e<16;++e)J[n.charAt(e)]=e;for(e=0;e<8;++e)J[r.charAt(e)]=-1}var i=[],a=0,o=0;for(e=0;e<t.length;++e){var s=t.charAt(e);if("="==s)break;if(-1!=(s=J[s])){if(void 0===s)throw new Error("Illegal character at offset "+e);a|=s,++o>=2?(i[i.length]=a,a=0,o=0):a<<=4}}if(o)throw new Error("Hex encoding incomplete: 4 bits missing");return i},it={decode:function(t){var e;if(void 0===nt){var n="= \f\n\r\t \u2028\u2029";for(nt=Object.create(null),e=0;e<64;++e)nt["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)]=e;for(nt["-"]=62,nt._=63,e=0;e<9;++e)nt[n.charAt(e)]=-1}var r=[],i=0,a=0;for(e=0;e<t.length;++e){var o=t.charAt(e);if("="==o)break;if(-1!=(o=nt[o])){if(void 0===o)throw new Error("Illegal character at offset "+e);i|=o,++a>=4?(r[r.length]=i>>16,r[r.length]=i>>8&255,r[r.length]=255&i,i=0,a=0):i<<=6}}switch(a){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:r[r.length]=i>>10;break;case 3:r[r.length]=i>>16,r[r.length]=i>>8&255}return r},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(t){var e=it.re.exec(t);if(e)if(e[1])t=e[1];else{if(!e[2])throw new Error("RegExp out of sync");t=e[2]}return it.decode(t)}},at=1e13,ot=function(){function t(t){this.buf=[+t||0]}return t.prototype.mulAdd=function(t,e){var n,r,i=this.buf,a=i.length;for(n=0;n<a;++n)(r=i[n]*t+e)<at?e=0:r-=(e=0|r/at)*at,i[n]=r;e>0&&(i[n]=e)},t.prototype.sub=function(t){var e,n,r=this.buf,i=r.length;for(e=0;e<i;++e)(n=r[e]-t)<0?(n+=at,t=1):t=0,r[e]=n;for(;0===r[r.length-1];)r.pop()},t.prototype.toString=function(t){if(10!=(t||10))throw new Error("only base 10 is supported");for(var e=this.buf,n=e[e.length-1].toString(),r=e.length-2;r>=0;--r)n+=(at+e[r]).toString().substring(1);return n},t.prototype.valueOf=function(){for(var t=this.buf,e=0,n=t.length-1;n>=0;--n)e=e*at+t[n];return e},t.prototype.simplify=function(){var t=this.buf;return 1==t.length?t[0]:this},t}(),st=/^(\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)?)?$/,lt=/^(\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 ct(t,e){return t.length>e&&(t=t.substring(0,e)+"…"),t}var ut,ht=function(){function t(e,n){this.hexDigits="0123456789ABCDEF",e instanceof t?(this.enc=e.enc,this.pos=e.pos):(this.enc=e,this.pos=n)}return t.prototype.get=function(t){if(void 0===t&&(t=this.pos++),t>=this.enc.length)throw new Error("Requesting byte offset ".concat(t," on a stream of length ").concat(this.enc.length));return"string"==typeof this.enc?this.enc.charCodeAt(t):this.enc[t]},t.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(15&t)},t.prototype.hexDump=function(t,e,n){for(var r="",i=t;i<e;++i)if(r+=this.hexByte(this.get(i)),!0!==n)switch(15&i){case 7:r+=" ";break;case 15:r+="\n";break;default:r+=" "}return r},t.prototype.isASCII=function(t,e){for(var n=t;n<e;++n){var r=this.get(n);if(r<32||r>176)return!1}return!0},t.prototype.parseStringISO=function(t,e){for(var n="",r=t;r<e;++r)n+=String.fromCharCode(this.get(r));return n},t.prototype.parseStringUTF=function(t,e){for(var n="",r=t;r<e;){var i=this.get(r++);n+=i<128?String.fromCharCode(i):i>191&&i<224?String.fromCharCode((31&i)<<6|63&this.get(r++)):String.fromCharCode((15&i)<<12|(63&this.get(r++))<<6|63&this.get(r++))}return n},t.prototype.parseStringBMP=function(t,e){for(var n,r,i="",a=t;a<e;)n=this.get(a++),r=this.get(a++),i+=String.fromCharCode(n<<8|r);return i},t.prototype.parseTime=function(t,e,n){var r=this.parseStringISO(t,e),i=(n?st:lt).exec(r);return i?(n&&(i[1]=+i[1],i[1]+=+i[1]<70?2e3:1900),r=i[1]+"-"+i[2]+"-"+i[3]+" "+i[4],i[5]&&(r+=":"+i[5],i[6]&&(r+=":"+i[6],i[7]&&(r+="."+i[7]))),i[8]&&(r+=" UTC","Z"!=i[8]&&(r+=i[8],i[9]&&(r+=":"+i[9]))),r):"Unrecognized time: "+r},t.prototype.parseInteger=function(t,e){for(var n,r=this.get(t),i=r>127,a=i?255:0,o="";r==a&&++t<e;)r=this.get(t);if(0===(n=e-t))return i?-1:0;if(n>4){for(o=r,n<<=3;0==(128&(+o^a));)o=+o<<1,--n;o="("+n+" bit)\n"}i&&(r-=256);for(var s=new ot(r),l=t+1;l<e;++l)s.mulAdd(256,this.get(l));return o+s.toString()},t.prototype.parseBitString=function(t,e,n){for(var r=this.get(t),i="("+((e-t-1<<3)-r)+" bit)\n",a="",o=t+1;o<e;++o){for(var s=this.get(o),l=o==e-1?r:0,c=7;c>=l;--c)a+=s>>c&1?"1":"0";if(a.length>n)return i+ct(a,n)}return i+a},t.prototype.parseOctetString=function(t,e,n){if(this.isASCII(t,e))return ct(this.parseStringISO(t,e),n);var r=e-t,i="("+r+" byte)\n";r>(n/=2)&&(e=t+n);for(var a=t;a<e;++a)i+=this.hexByte(this.get(a));return r>n&&(i+="…"),i},t.prototype.parseOID=function(t,e,n){for(var r="",i=new ot,a=0,o=t;o<e;++o){var s=this.get(o);if(i.mulAdd(128,127&s),a+=7,!(128&s)){if(""===r)if((i=i.simplify())instanceof ot)i.sub(80),r="2."+i.toString();else{var l=i<80?i<40?0:1:2;r=l+"."+(i-40*l)}else r+="."+i.toString();if(r.length>n)return ct(r,n);i=new ot,a=0}}return a>0&&(r+=".incomplete"),r},t}(),dt=function(){function t(t,e,n,r,i){if(!(r instanceof ft))throw new Error("Invalid tag value.");this.stream=t,this.header=e,this.length=n,this.tag=r,this.sub=i}return t.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()}},t.prototype.content=function(t){if(void 0===this.tag)return null;void 0===t&&(t=1/0);var e=this.posContent(),n=Math.abs(this.length);if(!this.tag.isUniversal())return null!==this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+n,t);switch(this.tag.tagNumber){case 1:return 0===this.stream.get(e)?"false":"true";case 2:return this.stream.parseInteger(e,e+n);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(e,e+n,t);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+n,t);case 6:return this.stream.parseOID(e,e+n,t);case 16:case 17:return null!==this.sub?"("+this.sub.length+" elem)":"(no elem)";case 12:return ct(this.stream.parseStringUTF(e,e+n),t);case 18:case 19:case 20:case 21:case 22:case 26:return ct(this.stream.parseStringISO(e,e+n),t);case 30:return ct(this.stream.parseStringBMP(e,e+n),t);case 23:case 24:return this.stream.parseTime(e,e+n,23==this.tag.tagNumber)}return null},t.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null===this.sub?"null":this.sub.length)+"]"},t.prototype.toPrettyString=function(t){void 0===t&&(t="");var e=t+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(e+="+"),e+=this.length,this.tag.tagConstructed?e+=" (constructed)":!this.tag.isUniversal()||3!=this.tag.tagNumber&&4!=this.tag.tagNumber||null===this.sub||(e+=" (encapsulates)"),e+="\n",null!==this.sub){t+=" ";for(var n=0,r=this.sub.length;n<r;++n)e+=this.sub[n].toPrettyString(t)}return e},t.prototype.posStart=function(){return this.stream.pos},t.prototype.posContent=function(){return this.stream.pos+this.header},t.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},t.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},t.decodeLength=function(t){var e=t.get(),n=127&e;if(n==e)return n;if(n>6)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(0===n)return null;e=0;for(var r=0;r<n;++r)e=256*e+t.get();return e},t.prototype.getHexStringValue=function(){var t=this.toHexString(),e=2*this.header,n=2*this.length;return t.substr(e,n)},t.decode=function(e){var n;n=e instanceof ht?e:new ht(e,0);var r=new ht(n),i=new ft(n),a=t.decodeLength(n),o=n.pos,s=o-r.pos,l=null,c=function(){var e=[];if(null!==a){for(var r=o+a;n.pos<r;)e[e.length]=t.decode(n);if(n.pos!=r)throw new Error("Content size is not correct for container starting at offset "+o)}else try{for(;;){var i=t.decode(n);if(i.tag.isEOC())break;e[e.length]=i}a=o-n.pos}catch(t){throw new Error("Exception while decoding undefined length content: "+t)}return e};if(i.tagConstructed)l=c();else if(i.isUniversal()&&(3==i.tagNumber||4==i.tagNumber))try{if(3==i.tagNumber&&0!=n.get())throw new Error("BIT STRINGs with unused bits cannot encapsulate.");l=c();for(var u=0;u<l.length;++u)if(l[u].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(t){l=null}if(null===l){if(null===a)throw new Error("We can't skip over an invalid tag with undefined length at offset "+o);n.pos=o+Math.abs(a)}return new t(r,s,a,i,l)},t}(),ft=function(){function t(t){var e=t.get();if(this.tagClass=e>>6,this.tagConstructed=0!=(32&e),this.tagNumber=31&e,31==this.tagNumber){var n=new ot;do{e=t.get(),n.mulAdd(128,127&e)}while(128&e);this.tagNumber=n.simplify()}}return t.prototype.isUniversal=function(){return 0===this.tagClass},t.prototype.isEOC=function(){return 0===this.tagClass&&0===this.tagNumber},t}(),pt=[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],mt=(1<<26)/pt[pt.length-1],gt=function(){function t(t,e,n){null!=t&&("number"==typeof t?this.fromNumber(t,e,n):null==e&&"string"!=typeof t?this.fromString(t,256):this.fromString(t,e))}return t.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else{if(4!=t)return this.toRadix(t);e=2}var n,r=(1<<e)-1,i=!1,a="",o=this.t,s=this.DB-o*this.DB%e;if(o-- >0)for(s<this.DB&&(n=this[o]>>s)>0&&(i=!0,a=q(n));o>=0;)s<e?(n=(this[o]&(1<<s)-1)<<e-s,n|=this[--o]>>(s+=this.DB-e)):(n=this[o]>>(s-=e)&r,s<=0&&(s+=this.DB,--o)),n>0&&(i=!0),i&&(a+=q(n));return i?a:"0"},t.prototype.negate=function(){var e=wt();return t.ZERO.subTo(this,e),e},t.prototype.abs=function(){return this.s<0?this.negate():this},t.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var n=this.t;if(0!=(e=n-t.t))return this.s<0?-e:e;for(;--n>=0;)if(0!=(e=this[n]-t[n]))return e;return 0},t.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+At(this[this.t-1]^this.s&this.DM)},t.prototype.mod=function(e){var n=wt();return this.abs().divRemTo(e,null,n),this.s<0&&n.compareTo(t.ZERO)>0&&e.subTo(n,n),n},t.prototype.modPowInt=function(t,e){var n;return n=t<256||e.isEven()?new yt(e):new bt(e),this.exp(t,n)},t.prototype.clone=function(){var t=wt();return this.copyTo(t),t},t.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},t.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},t.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},t.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},t.prototype.toByteArray=function(){var t=this.t,e=[];e[0]=this.s;var n,r=this.DB-t*this.DB%8,i=0;if(t-- >0)for(r<this.DB&&(n=this[t]>>r)!=(this.s&this.DM)>>r&&(e[i++]=n|this.s<<this.DB-r);t>=0;)r<8?(n=(this[t]&(1<<r)-1)<<8-r,n|=this[--t]>>(r+=this.DB-8)):(n=this[t]>>(r-=8)&255,r<=0&&(r+=this.DB,--t)),0!=(128&n)&&(n|=-256),0==i&&(128&this.s)!=(128&n)&&++i,(i>0||n!=this.s)&&(e[i++]=n);return e},t.prototype.equals=function(t){return 0==this.compareTo(t)},t.prototype.min=function(t){return this.compareTo(t)<0?this:t},t.prototype.max=function(t){return this.compareTo(t)>0?this:t},t.prototype.and=function(t){var e=wt();return this.bitwiseTo(t,G,e),e},t.prototype.or=function(t){var e=wt();return this.bitwiseTo(t,W,e),e},t.prototype.xor=function(t){var e=wt();return this.bitwiseTo(t,$,e),e},t.prototype.andNot=function(t){var e=wt();return this.bitwiseTo(t,K,e),e},t.prototype.not=function(){for(var t=wt(),e=0;e<this.t;++e)t[e]=this.DM&~this[e];return t.t=this.t,t.s=~this.s,t},t.prototype.shiftLeft=function(t){var e=wt();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},t.prototype.shiftRight=function(t){var e=wt();return t<0?this.lShiftTo(-t,e):this.rShiftTo(t,e),e},t.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(0!=this[t])return t*this.DB+Z(this[t]);return this.s<0?this.t*this.DB:-1},t.prototype.bitCount=function(){for(var t=0,e=this.s&this.DM,n=0;n<this.t;++n)t+=X(this[n]^e);return t},t.prototype.testBit=function(t){var e=Math.floor(t/this.DB);return e>=this.t?0!=this.s:0!=(this[e]&1<<t%this.DB)},t.prototype.setBit=function(t){return this.changeBit(t,W)},t.prototype.clearBit=function(t){return this.changeBit(t,K)},t.prototype.flipBit=function(t){return this.changeBit(t,$)},t.prototype.add=function(t){var e=wt();return this.addTo(t,e),e},t.prototype.subtract=function(t){var e=wt();return this.subTo(t,e),e},t.prototype.multiply=function(t){var e=wt();return this.multiplyTo(t,e),e},t.prototype.divide=function(t){var e=wt();return this.divRemTo(t,e,null),e},t.prototype.remainder=function(t){var e=wt();return this.divRemTo(t,null,e),e},t.prototype.divideAndRemainder=function(t){var e=wt(),n=wt();return this.divRemTo(t,e,n),[e,n]},t.prototype.modPow=function(t,e){var n,r,i=t.bitLength(),a=Et(1);if(i<=0)return a;n=i<18?1:i<48?3:i<144?4:i<768?5:6,r=i<8?new yt(e):e.isEven()?new _t(e):new bt(e);var o=[],s=3,l=n-1,c=(1<<n)-1;if(o[1]=r.convert(this),n>1){var u=wt();for(r.sqrTo(o[1],u);s<=c;)o[s]=wt(),r.mulTo(u,o[s-2],o[s]),s+=2}var h,d,f=t.t-1,p=!0,m=wt();for(i=At(t[f])-1;f>=0;){for(i>=l?h=t[f]>>i-l&c:(h=(t[f]&(1<<i+1)-1)<<l-i,f>0&&(h|=t[f-1]>>this.DB+i-l)),s=n;0==(1&h);)h>>=1,--s;if((i-=s)<0&&(i+=this.DB,--f),p)o[h].copyTo(a),p=!1;else{for(;s>1;)r.sqrTo(a,m),r.sqrTo(m,a),s-=2;s>0?r.sqrTo(a,m):(d=a,a=m,m=d),r.mulTo(m,o[h],a)}for(;f>=0&&0==(t[f]&1<<i);)r.sqrTo(a,m),d=a,a=m,m=d,--i<0&&(i=this.DB-1,--f)}return r.revert(a)},t.prototype.modInverse=function(e){var n=e.isEven();if(this.isEven()&&n||0==e.signum())return t.ZERO;for(var r=e.clone(),i=this.clone(),a=Et(1),o=Et(0),s=Et(0),l=Et(1);0!=r.signum();){for(;r.isEven();)r.rShiftTo(1,r),n?(a.isEven()&&o.isEven()||(a.addTo(this,a),o.subTo(e,o)),a.rShiftTo(1,a)):o.isEven()||o.subTo(e,o),o.rShiftTo(1,o);for(;i.isEven();)i.rShiftTo(1,i),n?(s.isEven()&&l.isEven()||(s.addTo(this,s),l.subTo(e,l)),s.rShiftTo(1,s)):l.isEven()||l.subTo(e,l),l.rShiftTo(1,l);r.compareTo(i)>=0?(r.subTo(i,r),n&&a.subTo(s,a),o.subTo(l,o)):(i.subTo(r,i),n&&s.subTo(a,s),l.subTo(o,l))}return 0!=i.compareTo(t.ONE)?t.ZERO:l.compareTo(e)>=0?l.subtract(e):l.signum()<0?(l.addTo(e,l),l.signum()<0?l.add(e):l):l},t.prototype.pow=function(t){return this.exp(t,new vt)},t.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),n=t.s<0?t.negate():t.clone();if(e.compareTo(n)<0){var r=e;e=n,n=r}var i=e.getLowestSetBit(),a=n.getLowestSetBit();if(a<0)return e;for(i<a&&(a=i),a>0&&(e.rShiftTo(a,e),n.rShiftTo(a,n));e.signum()>0;)(i=e.getLowestSetBit())>0&&e.rShiftTo(i,e),(i=n.getLowestSetBit())>0&&n.rShiftTo(i,n),e.compareTo(n)>=0?(e.subTo(n,e),e.rShiftTo(1,e)):(n.subTo(e,n),n.rShiftTo(1,n));return a>0&&n.lShiftTo(a,n),n},t.prototype.isProbablePrime=function(t){var e,n=this.abs();if(1==n.t&&n[0]<=pt[pt.length-1]){for(e=0;e<pt.length;++e)if(n[0]==pt[e])return!0;return!1}if(n.isEven())return!1;for(e=1;e<pt.length;){for(var r=pt[e],i=e+1;i<pt.length&&r<mt;)r*=pt[i++];for(r=n.modInt(r);e<i;)if(r%pt[e++]==0)return!1}return n.millerRabin(t)},t.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},t.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},t.prototype.fromString=function(e,n){var r;if(16==n)r=4;else if(8==n)r=3;else if(256==n)r=8;else if(2==n)r=1;else if(32==n)r=5;else{if(4!=n)return void this.fromRadix(e,n);r=2}this.t=0,this.s=0;for(var i=e.length,a=!1,o=0;--i>=0;){var s=8==r?255&+e[i]:Ct(e,i);s<0?"-"==e.charAt(i)&&(a=!0):(a=!1,0==o?this[this.t++]=s:o+r>this.DB?(this[this.t-1]|=(s&(1<<this.DB-o)-1)<<o,this[this.t++]=s>>this.DB-o):this[this.t-1]|=s<<o,(o+=r)>=this.DB&&(o-=this.DB))}8==r&&0!=(128&+e[0])&&(this.s=-1,o>0&&(this[this.t-1]|=(1<<this.DB-o)-1<<o)),this.clamp(),a&&t.ZERO.subTo(this,this)},t.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},t.prototype.dlShiftTo=function(t,e){var n;for(n=this.t-1;n>=0;--n)e[n+t]=this[n];for(n=t-1;n>=0;--n)e[n]=0;e.t=this.t+t,e.s=this.s},t.prototype.drShiftTo=function(t,e){for(var n=t;n<this.t;++n)e[n-t]=this[n];e.t=Math.max(this.t-t,0),e.s=this.s},t.prototype.lShiftTo=function(t,e){for(var n=t%this.DB,r=this.DB-n,i=(1<<r)-1,a=Math.floor(t/this.DB),o=this.s<<n&this.DM,s=this.t-1;s>=0;--s)e[s+a+1]=this[s]>>r|o,o=(this[s]&i)<<n;for(s=a-1;s>=0;--s)e[s]=0;e[a]=o,e.t=this.t+a+1,e.s=this.s,e.clamp()},t.prototype.rShiftTo=function(t,e){e.s=this.s;var n=Math.floor(t/this.DB);if(n>=this.t)e.t=0;else{var r=t%this.DB,i=this.DB-r,a=(1<<r)-1;e[0]=this[n]>>r;for(var o=n+1;o<this.t;++o)e[o-n-1]|=(this[o]&a)<<i,e[o-n]=this[o]>>r;r>0&&(e[this.t-n-1]|=(this.s&a)<<i),e.t=this.t-n,e.clamp()}},t.prototype.subTo=function(t,e){for(var n=0,r=0,i=Math.min(t.t,this.t);n<i;)r+=this[n]-t[n],e[n++]=r&this.DM,r>>=this.DB;if(t.t<this.t){for(r-=t.s;n<this.t;)r+=this[n],e[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<t.t;)r-=t[n],e[n++]=r&this.DM,r>>=this.DB;r-=t.s}e.s=r<0?-1:0,r<-1?e[n++]=this.DV+r:r>0&&(e[n++]=r),e.t=n,e.clamp()},t.prototype.multiplyTo=function(e,n){var r=this.abs(),i=e.abs(),a=r.t;for(n.t=a+i.t;--a>=0;)n[a]=0;for(a=0;a<i.t;++a)n[a+r.t]=r.am(0,i[a],n,a,0,r.t);n.s=0,n.clamp(),this.s!=e.s&&t.ZERO.subTo(n,n)},t.prototype.squareTo=function(t){for(var e=this.abs(),n=t.t=2*e.t;--n>=0;)t[n]=0;for(n=0;n<e.t-1;++n){var r=e.am(n,e[n],t,2*n,0,1);(t[n+e.t]+=e.am(n+1,2*e[n],t,2*n+1,r,e.t-n-1))>=e.DV&&(t[n+e.t]-=e.DV,t[n+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(n,e[n],t,2*n,0,1)),t.s=0,t.clamp()},t.prototype.divRemTo=function(e,n,r){var i=e.abs();if(!(i.t<=0)){var a=this.abs();if(a.t<i.t)return null!=n&&n.fromInt(0),void(null!=r&&this.copyTo(r));null==r&&(r=wt());var o=wt(),s=this.s,l=e.s,c=this.DB-At(i[i.t-1]);c>0?(i.lShiftTo(c,o),a.lShiftTo(c,r)):(i.copyTo(o),a.copyTo(r));var u=o.t,h=o[u-1];if(0!=h){var d=h*(1<<this.F1)+(u>1?o[u-2]>>this.F2:0),f=this.FV/d,p=(1<<this.F1)/d,m=1<<this.F2,g=r.t,v=g-u,y=null==n?wt():n;for(o.dlShiftTo(v,y),r.compareTo(y)>=0&&(r[r.t++]=1,r.subTo(y,r)),t.ONE.dlShiftTo(u,y),y.subTo(o,o);o.t<u;)o[o.t++]=0;for(;--v>=0;){var b=r[--g]==h?this.DM:Math.floor(r[g]*f+(r[g-1]+m)*p);if((r[g]+=o.am(0,b,r,v,0,u))<b)for(o.dlShiftTo(v,y),r.subTo(y,r);r[g]<--b;)r.subTo(y,r)}null!=n&&(r.drShiftTo(u,n),s!=l&&t.ZERO.subTo(n,n)),r.t=u,r.clamp(),c>0&&r.rShiftTo(c,r),s<0&&t.ZERO.subTo(r,r)}}},t.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;return(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)>0?this.DV-e:-e},t.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},t.prototype.exp=function(e,n){if(e>4294967295||e<1)return t.ONE;var r=wt(),i=wt(),a=n.convert(this),o=At(e)-1;for(a.copyTo(r);--o>=0;)if(n.sqrTo(r,i),(e&1<<o)>0)n.mulTo(i,a,r);else{var s=r;r=i,i=s}return n.revert(r)},t.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},t.prototype.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||t>36)return"0";var e=this.chunkSize(t),n=Math.pow(t,e),r=Et(n),i=wt(),a=wt(),o="";for(this.divRemTo(r,i,a);i.signum()>0;)o=(n+a.intValue()).toString(t).substr(1)+o,i.divRemTo(r,i,a);return a.intValue().toString(t)+o},t.prototype.fromRadix=function(e,n){this.fromInt(0),null==n&&(n=10);for(var r=this.chunkSize(n),i=Math.pow(n,r),a=!1,o=0,s=0,l=0;l<e.length;++l){var c=Ct(e,l);c<0?"-"==e.charAt(l)&&0==this.signum()&&(a=!0):(s=n*s+c,++o>=r&&(this.dMultiply(i),this.dAddOffset(s,0),o=0,s=0))}o>0&&(this.dMultiply(Math.pow(n,o)),this.dAddOffset(s,0)),a&&t.ZERO.subTo(this,this)},t.prototype.fromNumber=function(e,n,r){if("number"==typeof n)if(e<2)this.fromInt(1);else for(this.fromNumber(e,r),this.testBit(e-1)||this.bitwiseTo(t.ONE.shiftLeft(e-1),W,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(n);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(t.ONE.shiftLeft(e-1),this);else{var i=[],a=7&e;i.length=1+(e>>3),n.nextBytes(i),a>0?i[0]&=(1<<a)-1:i[0]=0,this.fromString(i,256)}},t.prototype.bitwiseTo=function(t,e,n){var r,i,a=Math.min(t.t,this.t);for(r=0;r<a;++r)n[r]=e(this[r],t[r]);if(t.t<this.t){for(i=t.s&this.DM,r=a;r<this.t;++r)n[r]=e(this[r],i);n.t=this.t}else{for(i=this.s&this.DM,r=a;r<t.t;++r)n[r]=e(i,t[r]);n.t=t.t}n.s=e(this.s,t.s),n.clamp()},t.prototype.changeBit=function(e,n){var r=t.ONE.shiftLeft(e);return this.bitwiseTo(r,n,r),r},t.prototype.addTo=function(t,e){for(var n=0,r=0,i=Math.min(t.t,this.t);n<i;)r+=this[n]+t[n],e[n++]=r&this.DM,r>>=this.DB;if(t.t<this.t){for(r+=t.s;n<this.t;)r+=this[n],e[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<t.t;)r+=t[n],e[n++]=r&this.DM,r>>=this.DB;r+=t.s}e.s=r<0?-1:0,r>0?e[n++]=r:r<-1&&(e[n++]=this.DV+r),e.t=n,e.clamp()},t.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},t.prototype.dAddOffset=function(t,e){if(0!=t){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},t.prototype.multiplyLowerTo=function(t,e,n){var r=Math.min(this.t+t.t,e);for(n.s=0,n.t=r;r>0;)n[--r]=0;for(var i=n.t-this.t;r<i;++r)n[r+this.t]=this.am(0,t[r],n,r,0,this.t);for(i=Math.min(t.t,e);r<i;++r)this.am(0,t[r],n,r,0,e-r);n.clamp()},t.prototype.multiplyUpperTo=function(t,e,n){--e;var r=n.t=this.t+t.t-e;for(n.s=0;--r>=0;)n[r]=0;for(r=Math.max(e-this.t,0);r<t.t;++r)n[this.t+r-e]=this.am(e-r,t[r],n,0,0,this.t+r-e);n.clamp(),n.drShiftTo(1,n)},t.prototype.modInt=function(t){if(t<=0)return 0;var e=this.DV%t,n=this.s<0?t-1:0;if(this.t>0)if(0==e)n=this[0]%t;else for(var r=this.t-1;r>=0;--r)n=(e*n+this[r])%t;return n},t.prototype.millerRabin=function(e){var n=this.subtract(t.ONE),r=n.getLowestSetBit();if(r<=0)return!1;var i=n.shiftRight(r);(e=e+1>>1)>pt.length&&(e=pt.length);for(var a=wt(),o=0;o<e;++o){a.fromInt(pt[Math.floor(Math.random()*pt.length)]);var s=a.modPow(i,this);if(0!=s.compareTo(t.ONE)&&0!=s.compareTo(n)){for(var l=1;l++<r&&0!=s.compareTo(n);)if(0==(s=s.modPowInt(2,this)).compareTo(t.ONE))return!1;if(0!=s.compareTo(n))return!1}}return!0},t.prototype.square=function(){var t=wt();return this.squareTo(t),t},t.prototype.gcda=function(t,e){var n=this.s<0?this.negate():this.clone(),r=t.s<0?t.negate():t.clone();if(n.compareTo(r)<0){var i=n;n=r,r=i}var a=n.getLowestSetBit(),o=r.getLowestSetBit();if(o<0)e(n);else{a<o&&(o=a),o>0&&(n.rShiftTo(o,n),r.rShiftTo(o,r));var s=function(){(a=n.getLowestSetBit())>0&&n.rShiftTo(a,n),(a=r.getLowestSetBit())>0&&r.rShiftTo(a,r),n.compareTo(r)>=0?(n.subTo(r,n),n.rShiftTo(1,n)):(r.subTo(n,r),r.rShiftTo(1,r)),n.signum()>0?setTimeout(s,0):(o>0&&r.lShiftTo(o,r),setTimeout((function(){e(r)}),0))};setTimeout(s,10)}},t.prototype.fromNumberAsync=function(e,n,r,i){if("number"==typeof n)if(e<2)this.fromInt(1);else{this.fromNumber(e,r),this.testBit(e-1)||this.bitwiseTo(t.ONE.shiftLeft(e-1),W,this),this.isEven()&&this.dAddOffset(1,0);var a=this,o=function(){a.dAddOffset(2,0),a.bitLength()>e&&a.subTo(t.ONE.shiftLeft(e-1),a),a.isProbablePrime(n)?setTimeout((function(){i()}),0):setTimeout(o,0)};setTimeout(o,0)}else{var s=[],l=7&e;s.length=1+(e>>3),n.nextBytes(s),l>0?s[0]&=(1<<l)-1:s[0]=0,this.fromString(s,256)}},t}(),vt=function(){function t(){}return t.prototype.convert=function(t){return t},t.prototype.revert=function(t){return t},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n)},t.prototype.sqrTo=function(t,e){t.squareTo(e)},t}(),yt=function(){function t(t){this.m=t}return t.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},t.prototype.revert=function(t){return t},t.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}(),bt=function(){function t(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}return t.prototype.convert=function(t){var e=wt();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(gt.ZERO)>0&&this.m.subTo(e,e),e},t.prototype.revert=function(t){var e=wt();return t.copyTo(e),this.reduce(e),e},t.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var n=32767&t[e],r=n*this.mpl+((n*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;for(t[n=e+this.m.t]+=this.m.am(0,r,t,e,0,this.m.t);t[n]>=t.DV;)t[n]-=t.DV,t[++n]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}(),_t=function(){function t(t){this.m=t,this.r2=wt(),this.q3=wt(),gt.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t)}return t.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=wt();return t.copyTo(e),this.reduce(e),e},t.prototype.revert=function(t){return t},t.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}();function wt(){return new gt(null)}function Dt(t,e){return new gt(t,e)}var St="undefined"!=typeof navigator;St&&"Microsoft Internet Explorer"==navigator.appName?(gt.prototype.am=function(t,e,n,r,i,a){for(var o=32767&e,s=e>>15;--a>=0;){var l=32767&this[t],c=this[t++]>>15,u=s*l+c*o;i=((l=o*l+((32767&u)<<15)+n[r]+(1073741823&i))>>>30)+(u>>>15)+s*c+(i>>>30),n[r++]=1073741823&l}return i},ut=30):St&&"Netscape"!=navigator.appName?(gt.prototype.am=function(t,e,n,r,i,a){for(;--a>=0;){var o=e*this[t++]+n[r]+i;i=Math.floor(o/67108864),n[r++]=67108863&o}return i},ut=26):(gt.prototype.am=function(t,e,n,r,i,a){for(var o=16383&e,s=e>>14;--a>=0;){var l=16383&this[t],c=this[t++]>>14,u=s*l+c*o;i=((l=o*l+((16383&u)<<14)+n[r]+i)>>28)+(u>>14)+s*c,n[r++]=268435455&l}return i},ut=28),gt.prototype.DB=ut,gt.prototype.DM=(1<<ut)-1,gt.prototype.DV=1<<ut;gt.prototype.FV=Math.pow(2,52),gt.prototype.F1=52-ut,gt.prototype.F2=2*ut-52;var xt,Tt,kt=[];for(xt="0".charCodeAt(0),Tt=0;Tt<=9;++Tt)kt[xt++]=Tt;for(xt="a".charCodeAt(0),Tt=10;Tt<36;++Tt)kt[xt++]=Tt;for(xt="A".charCodeAt(0),Tt=10;Tt<36;++Tt)kt[xt++]=Tt;function Ct(t,e){var n=kt[t.charCodeAt(e)];return null==n?-1:n}function Et(t){var e=wt();return e.fromInt(t),e}function At(t){var e,n=1;return 0!=(e=t>>>16)&&(t=e,n+=16),0!=(e=t>>8)&&(t=e,n+=8),0!=(e=t>>4)&&(t=e,n+=4),0!=(e=t>>2)&&(t=e,n+=2),0!=(e=t>>1)&&(t=e,n+=1),n}gt.ZERO=Et(0),gt.ONE=Et(1);var Ot=function(){function t(){this.i=0,this.j=0,this.S=[]}return t.prototype.init=function(t){var e,n,r;for(e=0;e<256;++e)this.S[e]=e;for(n=0,e=0;e<256;++e)n=n+this.S[e]+t[e%t.length]&255,r=this.S[e],this.S[e]=this.S[n],this.S[n]=r;this.i=0,this.j=0},t.prototype.next=function(){var t;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,t=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=t,this.S[t+this.S[this.i]&255]},t}();var Mt,Nt,Pt=null;if(null==Pt){Pt=[],Nt=0;var Vt=void 0;if("undefined"!=typeof window&&window.crypto&&window.crypto.getRandomValues){var Rt=new Uint32Array(256);for(window.crypto.getRandomValues(Rt),Vt=0;Vt<Rt.length;++Vt)Pt[Nt++]=255&Rt[Vt]}var Bt=0,It=function(t){if((Bt=Bt||0)>=256||Nt>=256)window.removeEventListener?window.removeEventListener("mousemove",It,!1):window.detachEvent&&window.detachEvent("onmousemove",It);else try{var e=t.x+t.y;Pt[Nt++]=255&e,Bt+=1}catch(t){}};"undefined"!=typeof window&&(window.addEventListener?window.addEventListener("mousemove",It,!1):window.attachEvent&&window.attachEvent("onmousemove",It))}function Ft(){if(null==Mt){for(Mt=new Ot;Nt<256;){var t=Math.floor(65536*Math.random());Pt[Nt++]=255&t}for(Mt.init(Pt),Nt=0;Nt<Pt.length;++Nt)Pt[Nt]=0;Nt=0}return Mt.next()}var jt=function(){function t(){}return t.prototype.nextBytes=function(t){for(var e=0;e<t.length;++e)t[e]=Ft()},t}();var Lt=function(){function t(){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 t.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)},t.prototype.doPrivate=function(t){if(null==this.p||null==this.q)return t.modPow(this.d,this.n);for(var e=t.mod(this.p).modPow(this.dmp1,this.p),n=t.mod(this.q).modPow(this.dmq1,this.q);e.compareTo(n)<0;)e=e.add(this.p);return e.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n)},t.prototype.setPublic=function(t,e){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=Dt(t,16),this.e=parseInt(e,16)):console.error("Invalid RSA public key")},t.prototype.encrypt=function(t){var e=this.n.bitLength()+7>>3,n=function(t,e){if(e<t.length+11)return console.error("Message too long for RSA"),null;for(var n=[],r=t.length-1;r>=0&&e>0;){var i=t.charCodeAt(r--);i<128?n[--e]=i:i>127&&i<2048?(n[--e]=63&i|128,n[--e]=i>>6|192):(n[--e]=63&i|128,n[--e]=i>>6&63|128,n[--e]=i>>12|224)}n[--e]=0;for(var a=new jt,o=[];e>2;){for(o[0]=0;0==o[0];)a.nextBytes(o);n[--e]=o[0]}return n[--e]=2,n[--e]=0,new gt(n)}(t,e);if(null==n)return null;var r=this.doPublic(n);if(null==r)return null;for(var i=r.toString(16),a=i.length,o=0;o<2*e-a;o++)i="0"+i;return i},t.prototype.setPrivate=function(t,e,n){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=Dt(t,16),this.e=parseInt(e,16),this.d=Dt(n,16)):console.error("Invalid RSA private key")},t.prototype.setPrivateEx=function(t,e,n,r,i,a,o,s){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=Dt(t,16),this.e=parseInt(e,16),this.d=Dt(n,16),this.p=Dt(r,16),this.q=Dt(i,16),this.dmp1=Dt(a,16),this.dmq1=Dt(o,16),this.coeff=Dt(s,16)):console.error("Invalid RSA private key")},t.prototype.generate=function(t,e){var n=new jt,r=t>>1;this.e=parseInt(e,16);for(var i=new gt(e,16);;){for(;this.p=new gt(t-r,1,n),0!=this.p.subtract(gt.ONE).gcd(i).compareTo(gt.ONE)||!this.p.isProbablePrime(10););for(;this.q=new gt(r,1,n),0!=this.q.subtract(gt.ONE).gcd(i).compareTo(gt.ONE)||!this.q.isProbablePrime(10););if(this.p.compareTo(this.q)<=0){var a=this.p;this.p=this.q,this.q=a}var o=this.p.subtract(gt.ONE),s=this.q.subtract(gt.ONE),l=o.multiply(s);if(0==l.gcd(i).compareTo(gt.ONE)){this.n=this.p.multiply(this.q),this.d=i.modInverse(l),this.dmp1=this.d.mod(o),this.dmq1=this.d.mod(s),this.coeff=this.q.modInverse(this.p);break}}},t.prototype.decrypt=function(t){var e=Dt(t,16),n=this.doPrivate(e);return null==n?null:function(t,e){var n=t.toByteArray(),r=0;for(;r<n.length&&0==n[r];)++r;if(n.length-r!=e-1||2!=n[r])return null;++r;for(;0!=n[r];)if(++r>=n.length)return null;var i="";for(;++r<n.length;){var a=255&n[r];a<128?i+=String.fromCharCode(a):a>191&&a<224?(i+=String.fromCharCode((31&a)<<6|63&n[r+1]),++r):(i+=String.fromCharCode((15&a)<<12|(63&n[r+1])<<6|63&n[r+2]),r+=2)}return i}(n,this.n.bitLength()+7>>3)},t.prototype.generateAsync=function(t,e,n){var r=new jt,i=t>>1;this.e=parseInt(e,16);var a=new gt(e,16),o=this,s=function(){var e=function(){if(o.p.compareTo(o.q)<=0){var t=o.p;o.p=o.q,o.q=t}var e=o.p.subtract(gt.ONE),r=o.q.subtract(gt.ONE),i=e.multiply(r);0==i.gcd(a).compareTo(gt.ONE)?(o.n=o.p.multiply(o.q),o.d=a.modInverse(i),o.dmp1=o.d.mod(e),o.dmq1=o.d.mod(r),o.coeff=o.q.modInverse(o.p),setTimeout((function(){n()}),0)):setTimeout(s,0)},l=function(){o.q=wt(),o.q.fromNumberAsync(i,1,r,(function(){o.q.subtract(gt.ONE).gcda(a,(function(t){0==t.compareTo(gt.ONE)&&o.q.isProbablePrime(10)?setTimeout(e,0):setTimeout(l,0)}))}))},c=function(){o.p=wt(),o.p.fromNumberAsync(t-i,1,r,(function(){o.p.subtract(gt.ONE).gcda(a,(function(t){0==t.compareTo(gt.ONE)&&o.p.isProbablePrime(10)?setTimeout(l,0):setTimeout(c,0)}))}))};setTimeout(c,0)};setTimeout(s,0)},t.prototype.sign=function(t,e,n){var r=function(t,e){if(e<t.length+22)return console.error("Message too long for RSA"),null;for(var n=e-t.length-6,r="",i=0;i<n;i+=2)r+="ff";return Dt("0001"+r+"00"+t,16)}((Yt[n]||"")+e(t).toString(),this.n.bitLength()/4);if(null==r)return null;var i=this.doPrivate(r);if(null==i)return null;var a=i.toString(16);return 0==(1&a.length)?a:"0"+a},t.prototype.verify=function(t,e,n){var r=Dt(e,16),i=this.doPublic(r);return null==i?null:function(t){for(var e in Yt)if(Yt.hasOwnProperty(e)){var n=Yt[e],r=n.length;if(t.substr(0,r)==n)return t.substr(r)}return t}
|
|
4
4
|
/*!
|
|
5
5
|
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
|
|
6
6
|
Code licensed under the BSD License:
|
|
@@ -29,24 +29,24 @@ function(t){var e=n,r=e.lib,i=r.WordArray,a=r.Hasher,o=e.algo,s=i.create([0,1,2,
|
|
|
29
29
|
* derived from CryptoJS.mode.CTR
|
|
30
30
|
* Jan Hruby jhruby.web@gmail.com
|
|
31
31
|
*/
|
|
32
|
-
(n=Zt).mode.CTRGladman=function(){var t=n.lib.BlockCipherMode.extend();function e(t){if(255&~(t>>24))t+=1<<24;else{var e=t>>16&255,n=t>>8&255,r=255&t;255===e?(e=0,255===n?(n=0,255===r?r=0:++r):++n):++e,t=0,t+=e<<16,t+=n<<8,t+=r}return t}function r(t){return 0===(t[0]=e(t[0]))&&(t[1]=e(t[1])),t}var i=t.Encryptor=t.extend({processBlock:function(t,e){var n=this._cipher,i=n.blockSize,a=this._iv,o=this._counter;a&&(o=this._counter=a.slice(0),this._iv=void 0),r(o);var s=o.slice(0);n.encryptBlock(s,0);for(var l=0;l<i;l++)t[e+l]^=s[l]}});return t.Decryptor=i,t}(),n.mode.CTRGladman)})),a((function(t,e){var n,r,i;t.exports=((i=Zt).mode.OFB=(n=i.lib.BlockCipherMode.extend(),r=n.Encryptor=n.extend({processBlock:function(t,e){var n=this._cipher,r=n.blockSize,i=this._iv,a=this._keystream;i&&(a=this._keystream=i.slice(0),this._iv=void 0),n.encryptBlock(a,0);for(var o=0;o<r;o++)t[e+o]^=a[o]}}),n.Decryptor=r,n),i.mode.OFB)})),a((function(t,e){var n,r;t.exports=((r=Zt).mode.ECB=((n=r.lib.BlockCipherMode.extend()).Encryptor=n.extend({processBlock:function(t,e){this._cipher.encryptBlock(t,e)}}),n.Decryptor=n.extend({processBlock:function(t,e){this._cipher.decryptBlock(t,e)}}),n),r.mode.ECB)})),a((function(t,e){var n;t.exports=((n=Zt).pad.AnsiX923={pad:function(t,e){var n=t.sigBytes,r=4*e,i=r-n%r,a=n+i-1;t.clamp(),t.words[a>>>2]|=i<<24-a%4*8,t.sigBytes+=i},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},n.pad.Ansix923)})),a((function(t,e){var n;t.exports=((n=Zt).pad.Iso10126={pad:function(t,e){var r=4*e,i=r-t.sigBytes%r;t.concat(n.lib.WordArray.random(i-1)).concat(n.lib.WordArray.create([i<<24],1))},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},n.pad.Iso10126)})),a((function(t,e){var n;t.exports=((n=Zt).pad.Iso97971={pad:function(t,e){t.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(t,e)},unpad:function(t){n.pad.ZeroPadding.unpad(t),t.sigBytes--}},n.pad.Iso97971)})),a((function(t,e){var n;t.exports=((n=Zt).pad.ZeroPadding={pad:function(t,e){var n=4*e;t.clamp(),t.sigBytes+=n-(t.sigBytes%n||n)},unpad:function(t){var e=t.words,n=t.sigBytes-1;for(n=t.sigBytes-1;n>=0;n--)if(e[n>>>2]>>>24-n%4*8&255){t.sigBytes=n+1;break}}},n.pad.ZeroPadding)})),a((function(t,e){var n;t.exports=((n=Zt).pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding)})),a((function(t,e){var n;t.exports=(n=Zt,function(t){var e=n,r=e.lib.CipherParams,i=e.enc.Hex;e.format.Hex={stringify:function(t){return t.ciphertext.toString(i)},parse:function(t){var e=i.parse(t);return r.create({ciphertext:e})}}}(),n.format.Hex)})),a((function(t,e){var n;t.exports=(n=Zt,function(){var t=n,e=t.lib.BlockCipher,r=t.algo,i=[],a=[],o=[],s=[],l=[],c=[],u=[],h=[],d=[],f=[];!function(){for(var t=[],e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;var n=0,r=0;for(e=0;e<256;e++){var p=r^r<<1^r<<2^r<<3^r<<4;p=p>>>8^255&p^99,i[n]=p,a[p]=n;var m=t[n],g=t[m],v=t[g],y=257*t[p]^16843008*p;o[n]=y<<24|y>>>8,s[n]=y<<16|y>>>16,l[n]=y<<8|y>>>24,c[n]=y,y=16843009*v^65537*g^257*m^16843008*n,u[p]=y<<24|y>>>8,h[p]=y<<16|y>>>16,d[p]=y<<8|y>>>24,f[p]=y,n?(n=m^t[t[t[v^m]]],r^=t[t[r]]):n=r=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],m=r.AES=e.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,e=t.words,n=t.sigBytes/4,r=4*((this._nRounds=n+6)+1),a=this._keySchedule=[],o=0;o<r;o++)o<n?a[o]=e[o]:(c=a[o-1],o%n?n>6&&o%n==4&&(c=i[c>>>24]<<24|i[c>>>16&255]<<16|i[c>>>8&255]<<8|i[255&c]):(c=i[(c=c<<8|c>>>24)>>>24]<<24|i[c>>>16&255]<<16|i[c>>>8&255]<<8|i[255&c],c^=p[o/n|0]<<24),a[o]=a[o-n]^c);for(var s=this._invKeySchedule=[],l=0;l<r;l++){if(o=r-l,l%4)var c=a[o];else c=a[o-4];s[l]=l<4||o<=4?c:u[i[c>>>24]]^h[i[c>>>16&255]]^d[i[c>>>8&255]]^f[i[255&c]]}}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,o,s,l,c,i)},decryptBlock:function(t,e){var n=t[e+1];t[e+1]=t[e+3],t[e+3]=n,this._doCryptBlock(t,e,this._invKeySchedule,u,h,d,f,a),n=t[e+1],t[e+1]=t[e+3],t[e+3]=n},_doCryptBlock:function(t,e,n,r,i,a,o,s){for(var l=this._nRounds,c=t[e]^n[0],u=t[e+1]^n[1],h=t[e+2]^n[2],d=t[e+3]^n[3],f=4,p=1;p<l;p++){var m=r[c>>>24]^i[u>>>16&255]^a[h>>>8&255]^o[255&d]^n[f++],g=r[u>>>24]^i[h>>>16&255]^a[d>>>8&255]^o[255&c]^n[f++],v=r[h>>>24]^i[d>>>16&255]^a[c>>>8&255]^o[255&u]^n[f++],y=r[d>>>24]^i[c>>>16&255]^a[u>>>8&255]^o[255&h]^n[f++];c=m,u=g,h=v,d=y}m=(s[c>>>24]<<24|s[u>>>16&255]<<16|s[h>>>8&255]<<8|s[255&d])^n[f++],g=(s[u>>>24]<<24|s[h>>>16&255]<<16|s[d>>>8&255]<<8|s[255&c])^n[f++],v=(s[h>>>24]<<24|s[d>>>16&255]<<16|s[c>>>8&255]<<8|s[255&u])^n[f++],y=(s[d>>>24]<<24|s[c>>>16&255]<<16|s[u>>>8&255]<<8|s[255&h])^n[f++],t[e]=m,t[e+1]=g,t[e+2]=v,t[e+3]=y},keySize:8});t.AES=e._createHelper(m)}(),n.AES)})),a((function(t,e){var n;t.exports=(n=Zt,function(){var t=n,e=t.lib,r=e.WordArray,i=e.BlockCipher,a=t.algo,o=[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],s=[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],l=[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}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=a.DES=i.extend({_doReset:function(){for(var t=this._key.words,e=[],n=0;n<56;n++){var r=o[n]-1;e[n]=t[r>>>5]>>>31-r%32&1}for(var i=this._subKeys=[],a=0;a<16;a++){var c=i[a]=[],u=l[a];for(n=0;n<24;n++)c[n/6|0]|=e[(s[n]-1+u)%28]<<31-n%6,c[4+(n/6|0)]|=e[28+(s[n+24]-1+u)%28]<<31-n%6;for(c[0]=c[0]<<1|c[0]>>>31,n=1;n<7;n++)c[n]=c[n]>>>4*(n-1)+3;c[7]=c[7]<<5|c[7]>>>27}var h=this._invSubKeys=[];for(n=0;n<16;n++)h[n]=i[15-n]},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._subKeys)},decryptBlock:function(t,e){this._doCryptBlock(t,e,this._invSubKeys)},_doCryptBlock:function(t,e,n){this._lBlock=t[e],this._rBlock=t[e+1],d.call(this,4,252645135),d.call(this,16,65535),f.call(this,2,858993459),f.call(this,8,16711935),d.call(this,1,1431655765);for(var r=0;r<16;r++){for(var i=n[r],a=this._lBlock,o=this._rBlock,s=0,l=0;l<8;l++)s|=c[l][((o^i[l])&u[l])>>>0];this._lBlock=o,this._rBlock=a^s}var h=this._lBlock;this._lBlock=this._rBlock,this._rBlock=h,d.call(this,1,1431655765),f.call(this,8,16711935),f.call(this,2,858993459),d.call(this,16,65535),d.call(this,4,252645135),t[e]=this._lBlock,t[e+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function d(t,e){var n=(this._lBlock>>>t^this._rBlock)&e;this._rBlock^=n,this._lBlock^=n<<t}function f(t,e){var n=(this._rBlock>>>t^this._lBlock)&e;this._lBlock^=n,this._rBlock^=n<<t}t.DES=i._createHelper(h);var p=a.TripleDES=i.extend({_doReset:function(){var t=this._key.words;if(2!==t.length&&4!==t.length&&t.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var e=t.slice(0,2),n=t.length<4?t.slice(0,2):t.slice(2,4),i=t.length<6?t.slice(0,2):t.slice(4,6);this._des1=h.createEncryptor(r.create(e)),this._des2=h.createEncryptor(r.create(n)),this._des3=h.createEncryptor(r.create(i))},encryptBlock:function(t,e){this._des1.encryptBlock(t,e),this._des2.decryptBlock(t,e),this._des3.encryptBlock(t,e)},decryptBlock:function(t,e){this._des3.decryptBlock(t,e),this._des2.encryptBlock(t,e),this._des1.decryptBlock(t,e)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=i._createHelper(p)}(),n.TripleDES)})),a((function(t,e){var n;t.exports=(n=Zt,function(){var t=n,e=t.lib.StreamCipher,r=t.algo,i=r.RC4=e.extend({_doReset:function(){for(var t=this._key,e=t.words,n=t.sigBytes,r=this._S=[],i=0;i<256;i++)r[i]=i;i=0;for(var a=0;i<256;i++){var o=i%n,s=e[o>>>2]>>>24-o%4*8&255;a=(a+r[i]+s)%256;var l=r[i];r[i]=r[a],r[a]=l}this._i=this._j=0},_doProcessBlock:function(t,e){t[e]^=a.call(this)},keySize:8,ivSize:0});function a(){for(var t=this._S,e=this._i,n=this._j,r=0,i=0;i<4;i++){n=(n+t[e=(e+1)%256])%256;var a=t[e];t[e]=t[n],t[n]=a,r|=t[(t[e]+t[n])%256]<<24-8*i}return this._i=e,this._j=n,r}t.RC4=e._createHelper(i);var o=r.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)a.call(this)}});t.RC4Drop=e._createHelper(o)}(),n.RC4)})),a((function(t,e){var n;t.exports=(n=Zt,function(){var t=n,e=t.lib.StreamCipher,r=t.algo,i=[],a=[],o=[],s=r.Rabbit=e.extend({_doReset:function(){for(var t=this._key.words,e=this.cfg.iv,n=0;n<4;n++)t[n]=16711935&(t[n]<<8|t[n]>>>24)|4278255360&(t[n]<<24|t[n]>>>8);var r=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],i=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];for(this._b=0,n=0;n<4;n++)l.call(this);for(n=0;n<8;n++)i[n]^=r[n+4&7];if(e){var a=e.words,o=a[0],s=a[1],c=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=c>>>16|4294901760&u,d=u<<16|65535&c;for(i[0]^=c,i[1]^=h,i[2]^=u,i[3]^=d,i[4]^=c,i[5]^=h,i[6]^=u,i[7]^=d,n=0;n<4;n++)l.call(this)}},_doProcessBlock:function(t,e){var n=this._X;l.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)i[r]=16711935&(i[r]<<8|i[r]>>>24)|4278255360&(i[r]<<24|i[r]>>>8),t[e+r]^=i[r]},blockSize:4,ivSize:2});function l(){for(var t=this._X,e=this._C,n=0;n<8;n++)a[n]=e[n];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<a[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<a[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<a[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<a[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<a[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<a[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<a[6]>>>0?1:0)|0,this._b=e[7]>>>0<a[7]>>>0?1:0,n=0;n<8;n++){var r=t[n]+e[n],i=65535&r,s=r>>>16,l=((i*i>>>17)+i*s>>>15)+s*s,c=((4294901760&r)*r|0)+((65535&r)*r|0);o[n]=l^c}t[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,t[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,t[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,t[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,t[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,t[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,t[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,t[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}t.Rabbit=e._createHelper(s)}(),n.Rabbit)})),a((function(t,e){var n;t.exports=(n=Zt,function(){var t=n,e=t.lib.StreamCipher,r=t.algo,i=[],a=[],o=[],s=r.RabbitLegacy=e.extend({_doReset:function(){var t=this._key.words,e=this.cfg.iv,n=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],r=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var i=0;i<4;i++)l.call(this);for(i=0;i<8;i++)r[i]^=n[i+4&7];if(e){var a=e.words,o=a[0],s=a[1],c=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=c>>>16|4294901760&u,d=u<<16|65535&c;for(r[0]^=c,r[1]^=h,r[2]^=u,r[3]^=d,r[4]^=c,r[5]^=h,r[6]^=u,r[7]^=d,i=0;i<4;i++)l.call(this)}},_doProcessBlock:function(t,e){var n=this._X;l.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)i[r]=16711935&(i[r]<<8|i[r]>>>24)|4278255360&(i[r]<<24|i[r]>>>8),t[e+r]^=i[r]},blockSize:4,ivSize:2});function l(){for(var t=this._X,e=this._C,n=0;n<8;n++)a[n]=e[n];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<a[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<a[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<a[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<a[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<a[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<a[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<a[6]>>>0?1:0)|0,this._b=e[7]>>>0<a[7]>>>0?1:0,n=0;n<8;n++){var r=t[n]+e[n],i=65535&r,s=r>>>16,l=((i*i>>>17)+i*s>>>15)+s*s,c=((4294901760&r)*r|0)+((65535&r)*r|0);o[n]=l^c}t[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,t[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,t[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,t[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,t[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,t[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,t[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,t[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}t.RabbitLegacy=e._createHelper(s)}(),n.RabbitLegacy)})),a((function(t,e){var n;t.exports=(n=Zt,function(){var t=n,e=t.lib.BlockCipher,r=t.algo;const i=16,a=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],o=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var s={pbox:[],sbox:[]};function l(t,e){let n=e>>24&255,r=e>>16&255,i=e>>8&255,a=255&e,o=t.sbox[0][n]+t.sbox[1][r];return o^=t.sbox[2][i],o+=t.sbox[3][a],o}function c(t,e,n){let r,a=e,o=n;for(let e=0;e<i;++e)a^=t.pbox[e],o=l(t,a)^o,r=a,a=o,o=r;return r=a,a=o,o=r,o^=t.pbox[i],a^=t.pbox[i+1],{left:a,right:o}}function u(t,e,n){let r,a=e,o=n;for(let e=i+1;e>1;--e)a^=t.pbox[e],o=l(t,a)^o,r=a,a=o,o=r;return r=a,a=o,o=r,o^=t.pbox[1],a^=t.pbox[0],{left:a,right:o}}function h(t,e,n){for(let e=0;e<4;e++){t.sbox[e]=[];for(let n=0;n<256;n++)t.sbox[e][n]=o[e][n]}let r=0;for(let o=0;o<i+2;o++)t.pbox[o]=a[o]^e[r],r++,r>=n&&(r=0);let s=0,l=0,u=0;for(let e=0;e<i+2;e+=2)u=c(t,s,l),s=u.left,l=u.right,t.pbox[e]=s,t.pbox[e+1]=l;for(let e=0;e<4;e++)for(let n=0;n<256;n+=2)u=c(t,s,l),s=u.left,l=u.right,t.sbox[e][n]=s,t.sbox[e][n+1]=l;return!0}var d=r.Blowfish=e.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var t=this._keyPriorReset=this._key,e=t.words,n=t.sigBytes/4;h(s,e,n)}},encryptBlock:function(t,e){var n=c(s,t[e],t[e+1]);t[e]=n.left,t[e+1]=n.right},decryptBlock:function(t,e){var n=u(s,t[e],t[e+1]);t[e]=n.left,t[e+1]=n.right},blockSize:2,keySize:4,ivSize:2});t.Blowfish=e._createHelper(d)}(),n.Blowfish)})),a((function(t,e){t.exports=Zt})));var Jt=function(t,e){try{var n=e.xRatio,r=e.yRatio;return isNaN(n)||isNaN(r)?(console.error("发生错误:on updataSizeDeep in go-code "),t):(t.forEach((function(t){var i;t.baseData.left=t.baseData.left*n,t.baseData.width=t.baseData.width*n,t.baseData.top=t.baseData.top*r,t.baseData.height=t.baseData.height*r,t.baseData.angle=t.baseData.angle,(null===(i=null==t?void 0:t.children)||void 0===i?void 0:i.length)&&Jt(null==t?void 0:t.children,e)})),t)}catch(e){return t}},Qt=function(t,e){var n=!0;try{for(var r=0,i=["width","height","left","top","opacity","angel","skewY","skewX","rotateX","rotateY"];r<i.length;r++){var a=i[r];if(Object.hasOwn(t,a)&&isNaN(t[a])){if(!("string"==typeof t[a]&&t[a].includes("%")||"NaN"==t[a])){console.warn(a+"--参数校验不合法:"+e),n=!1;break}n=!0}}return n}catch(t){return console.warn("参数校验不合法:"+e),!1}},te=function(t,e,n){var r=t[n];return t.splice(n,1),t.splice(e,0,r),t},ee=function(e,n,r){var i=t.findIndex(e,(function(t){return t.cid==r})),a=t.findIndex(e,(function(t){return t.cid==n}));return te(e,a,i)},ne=function(t,e,n){for(var r=-1,i=0;i<t.length;i++){var a=t[i];if(a.children&&a.children.length)for(var o=0;o<a.children.length;o++){if(r=o,a.children[o].cid===n){switch(e){case"up":r>=1&&te(a.children,r-1,r);break;case"down":r<a.children.length-2&&te(a.children,r+1,r);break;case"top":0!==r&&te(a.children,0,r);break;case"bottom":var s=a.children.length-1;r!==s&&te(a.children,s,r)}break}}}return t},re=function(e,n,r){var i=!1,a=function(e){for(var o=0;o<e.length;o++){if(e[o].cid==n){i=e[o],r&&t.remove(e,(function(t){return t.cid==n}));break}if(e[o].children)a(e[o].children);else if(e[o].dynamicChildren){if(e[o].dynamicChildren instanceof Map){for(var s=Array.from(e[o].dynamicChildren),l=0;l<s.length;l++)if(s[l]instanceof Array){var c=s[l][1];a(c)}}else if(e[o].dynamicChildren instanceof Array)for(s=e[o].dynamicChildren,l=0;l<s.length;l++)if(s[l]instanceof Array){c=s[l][1];a(c)}}else e[o].stateChildren&&a(e[o].stateChildren)}};return a(e),i||!1},ie=function(t,e){var n=[],r=function(t){for(var i=0;i<t.length;i++){if(t[i].cid===e)return!0;if(Array.isArray(t[i].children)){if(r(t[i].children))return n.push(t[i]),!0;r(t[i].children)}}};return r(t),n},ae=function(t,e){var n=null,r=function(t,i){for(var a=0,o=t;a<o.length;a++){var s=o[a];if(s.cid==e){n=i;break}if(s.children)r(s.children,s);else if(s.dynamicChildren)if(s.dynamicChildren instanceof Map){for(var l=Array.from(s.dynamicChildren),c=0;c<l.length;c++)if(l[c]instanceof Array){var u=l[c][1];r(u,s)}}else s.dynamicChildren;else s.stateChildren&&r(s.stateChildren,s)}};return r(t,null),n||!1},oe=function(t,e,n){for(var r,i=function(i){var a=t[i];if(a.cid===e)return r=a,n&&t.splice(i,1),{value:r};if(a.children&&a.children.length){for(var o=0;o<a.children.length;o++)if(a.children[o].cid===e)return r=a.children[o],n&&a.children.splice(o,1),{value:r}}else if(a.stateChildren&&a.stateChildren.length){for(o=0;o<a.stateChildren.length;o++)if(a.stateChildren[o].cid===e)return r=a.stateChildren[o],n&&a.stateChildren.splice(o,1),{value:r}}else if(a.dynamicChildren){var s=void 0;if(a.dynamicChildren instanceof Map?s=a.dynamicChildren.get(a.activeDynamic):a.dynamicChildren instanceof Array&&(s=a.dynamicChildren.find((function(t){return t[0]==a.activeDynamic}))[1]),s)for(o=0;o<s.length;o++)if(s[o].cid===e)return r=s[o],n&&s.splice(o,1),{value:r}}},a=0;a<t.length;a++){var o=i(a);if("object"==typeof o)return o.value}return!!r},se=function(t,e,n){var r=oe(t,e),i=oe(t,n);return r.pid&&i.pid||!r.pid&&!i.pid},le=function(t,e){var n=function(t){for(var r,i,a,o=0,s=t;o<s.length;o++){var l=s[o],c=null===(a=null===(i=null===(r=null==l?void 0:l.tmpData)||void 0===r?void 0:r.source)||void 0===i?void 0:i.converse)||void 0===a?void 0:a.data;if(null==c?void 0:c.length)for(var u=0,h=c;u<h.length;u++){var d=h[u];d.code=d.code.replace(/>/g,">").replace(/</g,"<")}e(l),l&&l.children?n(l.children):l&&l.dynamicChildren?(l.dynamicChildren&&l.dynamicChildren instanceof Map&&l.dynamicChildren.forEach((function(t){n(t)})),l.dynamicChildren&&l.dynamicChildren instanceof Array&&l.dynamicChildren.forEach((function(t){n(t[1])}))):(null==l?void 0:l.stateChildren)&&n(l.stateChildren)}};n(t)},ce=function(t){var e=t.length,n=function(t,e){for(var r=function(r){var i=t[r];if(i&&i.children&&i.children.length){var a=i.children.length;n(i.children,a)}else if(i&&i.dynamicChildren){var o=i.dynamicChildren.length;Array.from(i.dynamicChildren).forEach((function(t,e){n(t[1],o)}))}i.z=10*e-r},i=0;i<t.length;i++)r(i)};n(t,e)},ue=function(t){var e=function(t,n){for(var r=function(r){var i=t[r],a=Te();n?i.pid=n:i.drag||(i.baseData.left=0,i.baseData.top=0),i.cid=a,i&&i.children&&i.children.length?e(i.children,a):i&&i.dynamicChildren&&Array.from(i.dynamicChildren).forEach((function(t,n){e(t[1],a)}))},i=0;i<t.length;i++)r(i)};e(t)},he=function(e,n,r,i){try{if(!e||!e.hasOwnProperty(n)&&!e.hasOwnProperty(i))throw"The property you want to modify is not found. Please check whether the attribute ".concat(n," is entered correctly!");if(i){t.cloneDeep(e[i][n]);e[i][n]=r}else e[n]=r}catch(t){console.error(t)}},de=function(e,n){var r;try{var i="tmpData";if(!e||!(null===(r=e[i])||void 0===r?void 0:r.hasOwnProperty("option")))throw new Error("The property you want to modify is not found. Please check whether the attribute 'option' is entered correctly!");var a=t.cloneDeep(e[i].option),o={};Object.assign(o,a,n),console.log(o,a,"newOP"),e[i].option=o}catch(t){console.error(new Error("An error occurred: ".concat(t)))}},fe=function(t){try{if(!t)throw" 没有找到组件";t.isShow||"false"==t.isShow?t.isShow=!1:t.isShow=!0}catch(t){console.error(t)}},pe=function(t,e){e.forEach((function(e){e.baseData.left=e.baseData.left-t.left,e.baseData.top=e.baseData.top-t.top}))},me=function(e,n){var r=t.cloneDeep(e),i=[];return r.children&&r.children.length&&r.children.forEach((function(t){var e=n&&(null==r?void 0:r.pid)?re(n,r.pid):null;ge(t,r,e),i.push(t)})),i},ge=function(t,e,n){var r=function(t,e,n){var r=t.baseData.left,i=t.baseData.top,a=e;if(r+=a.baseData.left,i+=a.baseData.top,n){if(n.baseData.angle){var o=n.baseData.angle*Math.PI/180,s=Math.cos(o),l=Math.sin(o),c=r*l+i*s;r=r*s-i*l,i=c}n.baseData.scale&&(r*=n.baseData.scale.x,i*=n.baseData.scale.y)}return{left:r,top:i}}(t,e,n),i=r.left,a=r.top;t.baseData.left=i,t.baseData.top=a},ve=function(t,e){t.baseData.left=t.baseData.left+e.left,t.baseData.top=t.baseData.top+e.top},ye=function(t,e,n){var r={left:0,top:0};return t.left=t.left||0,t.top=t.top||0,e.left=e.left||0,e.top=e.top||0,n&&0!==n?(r.left=t.left-e.left,r.top=t.top-e.top):(r.left=t.left+e.left,r.top=t.top+e.top),r},be=function(e,n){var r=t.cloneDeep(e),i=[],a=function(t,e){var n=re(t,e);i.push(n.baseData),n.pid&&a(t,n.pid)};a(r,n);var o={left:0,top:0};return i.map((function(t){t&&(o.left+=t.left,o.top+=t.top)})),o},_e=function(e,n,r){var i=e.slice();return r||(i=t.cloneDeep(e)),i.length>1&&i.sort((function(t,e){return t.baseData[n]-e.baseData[n]})),i},we=function(t,e){var n=[];return t.map((function(t){var r=e.find((function(e){return e.cid===t}));r&&n.push(r)})),De(n)},De=function(t,e){if(t.length>0){var n={left:0,top:0,width:0,height:0},r=_e(t,"left",e),i=_e(t,"top",e),a=r[0].baseData,o=r[r.length-1].baseData,s=i[0].baseData,l=i[i.length-1].baseData,c=Math.max.apply(Math,i.map((function(t){return 1*t.baseData.top+1*t.baseData.height}))),u=Math.max.apply(Math,i.map((function(t){return 1*t.baseData.left+1*t.baseData.width})));return n.left=a.left,n.width=Math.max(1*o.left+1*o.width,u)-1*a.left,n.top=s.top,n.height=Math.max(1*l.top+1*l.height,c)-1*s.top,n}return{left:0,top:0,width:0,height:0}},Se=function(e,n,r,i){var a=e.children,o=t.cloneDeep(n),s=t.cloneDeep(De(a,i)),l=o.left,c=o.top;o.width,o.height;var u=s.left,h=s.top,d=s.width,f=s.height,p={left:l+u,top:c+h,width:d,height:f,angle:n.angle?n.angle:0};return a.forEach((function(e){var n=t.cloneDeep(e.baseData);e.baseData.left<0?n.left=0:n.left=n.left-u,e.baseData.top<0?n.top=0:n.top=n.top-h,e.baseData=n})),e.baseData=p,e.children=a,p},xe=function(t,e){for(var n=0;n<t.length;n++){var r=t[n];t[n].index=n,r.children&&r.children.length?xe(r.children):e&&e(r)}},Te=function(){return(Math.random().toString().substr(3,10)+Date.now()).toString()};function ke(t,e){var n=t.types,r=t.element,i=t.actions,a=t.events,o=t.eventsComs;t.filter,Oi.state.globalVars;for(var s=function(t){var e=n[t],s=r.tmpData.actions[t];if(s&&s.use){o&&o.push(r.cid);var l=s[s.behave];if(!l)return"continue";"vars"===s.behave?l.map((function(t){t.type=e,t.id=r.cid,t.model=0,t.originalValue||(t.originalValue=t.value),t.mapField&&i.push(t)})):l.length>0&&l.forEach((function(t,n){"toggle"===s.behave&&""!==t.value&&t.value.length&&a.push({id:r.cid,type:s.behave,children:t.value.map((function(t){return{cid:t.cid,visible:t.visible}})),eventType:e,index:n}),"update"===s.behave&&""!==t.value&&t.value.length?a.push({id:r.cid,type:s.behave,children:t.value.map((function(t){return{cid:t.cid,visible:t.visible}})),eventType:e,index:n}):"link"===s.behave&&""!==t.value?a.push({id:r.cid,type:s.behave,link:t.value,eventType:e,target:t.target,index:n}):"page"===s.behave&&""!==t.value?a.push({id:r.cid,type:s.behave,page:t.value,params:t.params,eventType:e,index:n}):"dynamic"===s.behave&&""!==t.value&&t.value.length>0?a.push({id:r.cid,type:s.behave,dynamic:t.value,eventType:e,index:n}):a.push(void 0)}))}},l=0;l<n.length;l++)s(l)}var Ce="anov@2019:helloX",Ee="anov@2020:helloX";function Ae(t,e){var n=Oi.state.globalVars,r={};n.forEach((function(t){(null==t?void 0:t.name)&&(r[t.name]=t.value||t.originvalue)}));try{return/^(?:[^\r\n]*[\r\n]){0,2}(?:[^\r\n]*(?=\{))?\s*(?:function\s*[^\r\n]*|\(.*?\))?\s*[\w\s\$\._\[\]]*\s*(?:[=:]\s*)?(?:new\s+)?[A-Z]\w*\s*(?:\[.*?\]|\([^\r\n]*\))*\s*\{.*?\}/i.test(t),new Function("data","vars",t)(e,r)}catch(t){return console.error(t),e}}var Oe={type:"static",converse:{use:!1,data:[]},static:{data:{},originData:""},api:{requestType:"get",url:"",headers:{use:!1,value:""},params:"",agency:!1,cookie:!0,autoUpdate:{open:!1,time:10},data:""},datasource:{data:"",inputSql:"",dsName:"",dsType:300,autoUpdate:{open:!1,time:10}},indicator:{zbId:"",zbName:"",params:"",data:"",autoUpdate:{open:!1,time:10}},staticFile:{data:"",dsName:"",dsType:201}},Me=function(t){var e;try{var n=[];if((null==t?void 0:t.dynamicChildren)instanceof Map)for(var r=Array.from(null==t?void 0:t.dynamicChildren),i=0;i<r.length;i++)r[i]instanceof Array&&n.push.apply(n,r[i][1]);else if((null==t?void 0:t.dynamicChildren)instanceof Array)for(r=null==t?void 0:t.dynamicChildren,i=0;i<r.length;i++)r[i]instanceof Array&&n.push.apply(n,r[i][1]);if(null==n?void 0:n.length)for(var a=0,o=n;a<o.length;a++){var s=o[a];if(s){var l=null===(e=null==s?void 0:s.tmpData)||void 0===e?void 0:e.source,c=l.type;l&&"packData"==c&&(s.tmpData.source.packData.data=t.source[0])}}}catch(t){console.log(t)}},Ne=Object.defineProperty,Pe=Object.getOwnPropertySymbols,Ve=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,Be=(t,e,n)=>e in t?Ne(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ie=(t,e)=>{for(var n in e||(e={}))Ve.call(e,n)&&Be(t,n,e[n]);if(Pe)for(var n of Pe(e))Re.call(e,n)&&Be(t,n,e[n]);return t},Fe=Symbol.for("immer-nothing"),je=Symbol.for("immer-draftable"),Le=Symbol.for("immer-state"),Ye="production"!==H.env.NODE_ENV?[function(t){return`The plugin for '${t}' has not been loaded into Immer. To enable the plugin, import and call \`enable${t}()\` when initializing your application.`},function(t){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${t}'`},"This object has been frozen and should not be mutated",function(t){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+t},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(t){return`'current' expects a draft, got: ${t}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(t){return`'original' expects a draft, got: ${t}`}]:[];function ze(t,...e){if("production"!==H.env.NODE_ENV){const n=Ye[t],r="function"==typeof n?n.apply(null,e):n;throw new Error(`[Immer] ${r}`)}throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var He=Object.getPrototypeOf;function Ue(t){return!!t&&!!t[Le]}function qe(t){var e;return!!t&&(We(t)||Array.isArray(t)||!!t[je]||!!(null==(e=t.constructor)?void 0:e[je])||Je(t)||Qe(t))}var Ge=Object.prototype.constructor.toString();function We(t){if(!t||"object"!=typeof t)return!1;const e=He(t);if(null===e)return!0;const n=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===Ge}function $e(t,e){0===Ke(t)?Reflect.ownKeys(t).forEach((n=>{e(n,t[n],t)})):t.forEach(((n,r)=>e(r,n,t)))}function Ke(t){const e=t[Le];return e?e.type_:Array.isArray(t)?1:Je(t)?2:Qe(t)?3:0}function Ze(t,e){return 2===Ke(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Xe(t,e,n){const r=Ke(t);2===r?t.set(e,n):3===r?t.add(n):t[e]=n}function Je(t){return t instanceof Map}function Qe(t){return t instanceof Set}function tn(t){return t.copy_||t.base_}function en(t,e){if(Je(t))return new Map(t);if(Qe(t))return new Set(t);if(Array.isArray(t))return Array.prototype.slice.call(t);if(!e&&We(t)){if(!He(t)){const e=Object.create(null);return Object.assign(e,t)}return Ie({},t)}const n=Object.getOwnPropertyDescriptors(t);delete n[Le];let r=Reflect.ownKeys(n);for(let e=0;e<r.length;e++){const i=r[e],a=n[i];!1===a.writable&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(n[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[i]})}return Object.create(He(t),n)}function nn(t,e=!1){return an(t)||Ue(t)||!qe(t)||(Ke(t)>1&&(t.set=t.add=t.clear=t.delete=rn),Object.freeze(t),e&&Object.entries(t).forEach((([t,e])=>nn(e,!0)))),t}function rn(){ze(2)}function an(t){return Object.isFrozen(t)}var on,sn={};function ln(t){const e=sn[t];return e||ze(0,t),e}function cn(){return on}function un(t,e){e&&(ln("Patches"),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function hn(t){dn(t),t.drafts_.forEach(pn),t.drafts_=null}function dn(t){t===on&&(on=t.parent_)}function fn(t){return on={drafts_:[],parent_:on,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function pn(t){const e=t[Le];0===e.type_||1===e.type_?e.revoke_():e.revoked_=!0}function mn(t,e){e.unfinalizedDrafts_=e.drafts_.length;const n=e.drafts_[0];return void 0!==t&&t!==n?(n[Le].modified_&&(hn(e),ze(4)),qe(t)&&(t=gn(e,t),e.parent_||yn(e,t)),e.patches_&&ln("Patches").generateReplacementPatches_(n[Le].base_,t,e.patches_,e.inversePatches_)):t=gn(e,n,[]),hn(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==Fe?t:void 0}function gn(t,e,n){if(an(e))return e;const r=e[Le];if(!r)return $e(e,((i,a)=>vn(t,r,e,i,a,n))),e;if(r.scope_!==t)return e;if(!r.modified_)return yn(t,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const e=r.copy_;let i=e,a=!1;3===r.type_&&(i=new Set(e),e.clear(),a=!0),$e(i,((i,o)=>vn(t,r,e,i,o,n,a))),yn(t,e,!1),n&&t.patches_&&ln("Patches").generatePatches_(r,n,t.patches_,t.inversePatches_)}return r.copy_}function vn(t,e,n,r,i,a,o){if("production"!==H.env.NODE_ENV&&i===n&&ze(5),Ue(i)){const o=gn(t,i,a&&e&&3!==e.type_&&!Ze(e.assigned_,r)?a.concat(r):void 0);if(Xe(n,r,o),!Ue(o))return;t.canAutoFreeze_=!1}else o&&n.add(i);if(qe(i)&&!an(i)){if(!t.immer_.autoFreeze_&&t.unfinalizedDrafts_<1)return;gn(t,i),e&&e.scope_.parent_||"symbol"==typeof r||!Object.prototype.propertyIsEnumerable.call(n,r)||yn(t,i)}}function yn(t,e,n=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&nn(e,n)}var bn={get(t,e){if(e===Le)return t;const n=tn(t);if(!Ze(n,e))return function(t,e,n){var r;const i=Dn(e,n);return i?"value"in i?i.value:null==(r=i.get)?void 0:r.call(t.draft_):void 0}(t,n,e);const r=n[e];return t.finalized_||!qe(r)?r:r===wn(t.base_,e)?(xn(t),t.copy_[e]=Tn(r,t)):r},has:(t,e)=>e in tn(t),ownKeys:t=>Reflect.ownKeys(tn(t)),set(t,e,n){const r=Dn(tn(t),e);if(null==r?void 0:r.set)return r.set.call(t.draft_,n),!0;if(!t.modified_){const r=wn(tn(t),e),i=null==r?void 0:r[Le];if(i&&i.base_===n)return t.copy_[e]=n,t.assigned_[e]=!1,!0;if(function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}(n,r)&&(void 0!==n||Ze(t.base_,e)))return!0;xn(t),Sn(t)}return t.copy_[e]===n&&(void 0!==n||e in t.copy_)||Number.isNaN(n)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=n,t.assigned_[e]=!0),!0},deleteProperty:(t,e)=>(void 0!==wn(t.base_,e)||e in t.base_?(t.assigned_[e]=!1,xn(t),Sn(t)):delete t.assigned_[e],t.copy_&&delete t.copy_[e],!0),getOwnPropertyDescriptor(t,e){const n=tn(t),r=Reflect.getOwnPropertyDescriptor(n,e);return r?{writable:!0,configurable:1!==t.type_||"length"!==e,enumerable:r.enumerable,value:n[e]}:r},defineProperty(){ze(11)},getPrototypeOf:t=>He(t.base_),setPrototypeOf(){ze(12)}},_n={};function wn(t,e){const n=t[Le];return(n?tn(n):t)[e]}function Dn(t,e){if(!(e in t))return;let n=He(t);for(;n;){const t=Object.getOwnPropertyDescriptor(n,e);if(t)return t;n=He(n)}}function Sn(t){t.modified_||(t.modified_=!0,t.parent_&&Sn(t.parent_))}function xn(t){t.copy_||(t.copy_=en(t.base_,t.scope_.immer_.useStrictShallowCopy_))}$e(bn,((t,e)=>{_n[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),_n.deleteProperty=function(t,e){return"production"!==H.env.NODE_ENV&&isNaN(parseInt(e))&&ze(13),_n.set.call(this,t,e,void 0)},_n.set=function(t,e,n){return"production"!==H.env.NODE_ENV&&"length"!==e&&isNaN(parseInt(e))&&ze(14),bn.set.call(this,t[0],e,n,t[0])};function Tn(t,e){const n=Je(t)?ln("MapSet").proxyMap_(t,e):Qe(t)?ln("MapSet").proxySet_(t,e):function(t,e){const n=Array.isArray(t),r={type_:n?1:0,scope_:e?e.scope_:cn(),modified_:!1,finalized_:!1,assigned_:{},parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,a=bn;n&&(i=[r],a=_n);const{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,s}(t,e);return(e?e.scope_:cn()).drafts_.push(n),n}function kn(t){if(!qe(t)||an(t))return t;const e=t[Le];let n;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,n=en(t,e.scope_.immer_.useStrictShallowCopy_)}else n=en(t,!0);return $e(n,((t,e)=>{Xe(n,t,kn(e))})),e&&(e.finalized_=!1),n}var Cn=new class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,e,n)=>{if("function"==typeof t&&"function"!=typeof e){const n=e;e=t;const r=this;return function(t=n,...i){return r.produce(t,(t=>e.call(this,t,...i)))}}let r;if("function"!=typeof e&&ze(6),void 0!==n&&"function"!=typeof n&&ze(7),qe(t)){const i=fn(this),a=Tn(t,void 0);let o=!0;try{r=e(a),o=!1}finally{o?hn(i):dn(i)}return un(i,n),mn(r,i)}if(!t||"object"!=typeof t){if(r=e(t),void 0===r&&(r=t),r===Fe&&(r=void 0),this.autoFreeze_&&nn(r,!0),n){const e=[],i=[];ln("Patches").generateReplacementPatches_(t,r,e,i),n(e,i)}return r}ze(1,t)},this.produceWithPatches=(t,e)=>{if("function"==typeof t)return(e,...n)=>this.produceWithPatches(e,(e=>t(e,...n)));let n,r;const i=this.produce(t,e,((t,e)=>{n=t,r=e}));return[i,n,r]},"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),"boolean"==typeof(null==t?void 0:t.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy)}createDraft(t){qe(t)||ze(8),Ue(t)&&(t=function(t){Ue(t)||ze(10,t);return kn(t)}(t));const e=fn(this),n=Tn(t,void 0);return n[Le].isManual_=!0,dn(e),n}finishDraft(t,e){const n=t&&t[Le];n&&n.isManual_||ze(9);const{scope_:r}=n;return un(r,e),mn(void 0,r)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}applyPatches(t,e){let n;for(n=e.length-1;n>=0;n--){const r=e[n];if(0===r.path.length&&"replace"===r.op){t=r.value;break}}n>-1&&(e=e.slice(n+1));const r=ln("Patches").applyPatches_;return Ue(t)?r(t,e):this.produce(t,(t=>r(t,e)))}},En=Cn.produce;Cn.produceWithPatches.bind(Cn);var An=Cn.setAutoFreeze.bind(Cn);function On(t,e){return An(!1),En(t,e)}Cn.setUseStrictShallowCopy.bind(Cn),Cn.applyPatches.bind(Cn),Cn.createDraft.bind(Cn),Cn.finishDraft.bind(Cn);var Mn={updataArea:function(t,e){t.currentArea=e},selectdArea:function(t,e){var n=we(e,t.list);t.currentArea=n},updataAngle:function(t,e){var n=e.id,r=e.angle,i=re(t.list,n);"boolean"!=typeof i&&(i.baseData.angle=r)},updataBaseData:function(t,e){var n,r=e.data;if(null==(null===(n=null==r?void 0:r.baseData)||void 0===n?void 0:n.opacity)&&(r.baseData.opacity=100),Qt(e.data.baseData,"updataBaseData")){var i=e.ratio,a=re(t.list,r.cid),o=e.oldData;if("object"!=typeof a||a.pid){if("object"==typeof a&&a.pid){var s=re(t.list,a.pid);"object"==typeof s?(a.baseData.left<0&&(a.baseData.left=0),a.baseData.top<0&&(a.baseData.top=0),Object.assign(a.baseData,r.baseData),Se(s,s.baseData),t.groupFlag=!t.groupFlag):s||(a.baseData.left<0&&(a.baseData.left=0),a.baseData.top<0&&(a.baseData.top=0),Object.assign(a.baseData,r.baseData))}}else if(Object.assign(a.baseData,r.baseData),i&&a.children&&a.children.length>0){var l=a.baseData.width/o.width,c=a.baseData.height/o.height;Jt(a.children,{xRatio:l,yRatio:c})}}},multipleUpdataBaseData:function(e,n){if(n.ratio)for(var r=n.newData,i=n.oldData,a=r.width/i.width,o=r.height/i.height,s=e.cache.length;s--;)e.cache[s].baseData.left=e.cache[s].baseData.left*a,e.cache[s].baseData.width=e.cache[s].baseData.width*a,e.cache[s].baseData.top=e.cache[s].baseData.top*o,e.cache[s].baseData.height=e.cache[s].baseData.height*o;else for(s=e.cache.length;s--;){var l=t.cloneDeep(e.cache[s].baseData);l.left=l.left+n.deltaX,l.top=l.top+n.deltaY,e.cache[s].comPanel?e.cache[s].comPanel.setAttrData(Object.assign(l,n.baseData)):e.cache[s].baseData=l}},multipleUpdata:function(t,e){var n=e.ids,r=e.data,i=re(t.list,n);i&&Object.assign(i.baseData,r)},multipleMove:function(t,e){},move:function(t,e){var n=t.selectd,r=e.type,i=e.speed?e.speed:1;if(0!==n.length){var a=t.list.filter((function(t){return n.includes(t.cid)}));0==a.length&&(a=[re(t.list,n[0])]);for(var o=0;o<a.length;o++){var s=a[o];if(s.pid&&t.selectd.length>1)return void console.warn("Only one component can be moved within a group");if("up"===r?s.baseData.top=s.baseData.top-i:"down"===r?s.baseData.top+=i:"left"===r?s.baseData.left-=i:"right"===r&&(s.baseData.left+=i),"object"==typeof s&&s.pid){var l=re(t.list,s.pid);"object"==typeof l&&(Se(l,l.baseData),t.groupFlag=!t.groupFlag)}}}else console.warn("Warning! please select the component to move.")},updataGroupBaseData:function(e,n){var r=re(e.list,n.pid),i=t.cloneDeep(r);re(r.children,n.cid),Se(r,i.baseData)},editGroupBaseData:function(t,e){var n=re(t.list,e);n.children.forEach((function(t){ve(t,n.baseData)}))},syncBaseData:function(e,n){var r=n.cid,i=n.data,a=n.isContainer;console.time("syncBaseData");var o=function(t){for(var e=0;e<t.length;e++)r===t[e].cid?t[e].baseData=Object.assign({},t[e].baseData,i):t[e].hasOwnProperty("children")&&o(t[e].children)},s=On(e.list,(function(t){void 0!==a&&t.length&&o(t)}));if(a)e.list=s;else{var l=re(s,r);if(l){var c=t.cloneDeep(l.baseData),u=Object.assign({},l.baseData,i);this.commit("GoCom/updataBaseData",{data:{cid:r,baseData:u},oldData:c,ratio:!0})}}console.timeEnd("syncBaseData")},updataItemData:function(t,e){var n=e.cid,r=e.propsName,i=e.propsValue,a=re(t.list,n);a&&(a[r]=i)},updataOpacity:function(t,e){var n=e.cid,r=e.propsValue,i=re(t.list,n);"boolean"!=typeof i&&i&&(i.baseData.opacity=r)}};function Nn(t,e,n,r){return new(n||(n=Promise))((function(i,a){function o(t){try{l(r.next(t))}catch(t){a(t)}}function s(t){try{l(r.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}l((r=r.apply(t,e||[])).next())}))}"function"==typeof SuppressedError&&SuppressedError;class Pn{constructor(){this.requests=[],console.log("RequestTracker")}static getInstance(){return Pn.instance||(Pn.instance=new Pn),Pn.instance}addRequest(t){if(this.isDuplicateRequest(t)){let e=this.findRequest(t);this.cancelRequest(e)}this.requests.push(t)}findRequest(t){let e;for(const n of this.requests)if(this.areRequestsEqual(n,t)){e=n;break}return e}removeRequest(t){const e=this.requests.indexOf(t);-1!==e&&this.requests.splice(e,1)}cancelRequest(t){t.cancelToken.cancel("Request canceled"),this.removeRequest(t)}isDuplicateRequest(t){return this.requests.some((e=>this.areRequestsEqual(e,t)))}areRequestsEqual(t,e){return t.url===e.url&&JSON.stringify(t.data)===JSON.stringify(e.data)&&JSON.stringify(t.params)===JSON.stringify(e.params)&&t.method===e.method}}const Vn=Pn.getInstance(),Rn=3e3,Bn=3e3,In=(t="",e)=>{let r,i=n.create({baseURL:t,timeout:Rn,headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"}});return i.interceptors.request.use((function(t){let{url:e,params:i,headers:a,data:o,method:s}=t;const l=n.CancelToken.source();return r={url:e,params:i,headers:a,data:o,method:s,cancelToken:l},t.cancelToken=l.token,Vn.addRequest(r),sessionStorage.getItem("anov-go-token")&&"null"!=sessionStorage.getItem("anov-go-token")&&(t.headers["X-ANOV-ACCESS-TOKEN"]=sessionStorage.getItem("anov-go-token")),sessionStorage.getItem("unify-access-token")&&"null"!=sessionStorage.getItem("unify-access-token")&&(t.headers["X-UNIFY-ACCESS-TOKEN"]=sessionStorage.getItem("unify-access-token")),sessionStorage.getItem("dgcc_authorization")&&"null"!=sessionStorage.getItem("dgcc_authorization")&&(t.headers.dgcc_authorization=sessionStorage.getItem("dgcc_authorization")),"post"===t.method?(t.headers["Content-Type"]="application/json;",t):"get"===t.method?t:"put"===t.method?(t.headers["Content-Type"]="application/json; charset=UTF-8",t):"delete"===t.method?t:void 0}),(function(t){return Promise.reject(t)})),i.interceptors.response.use((function(t){return 200===t.status||t.data.code,e&&e(t),Vn.removeRequest(r),t.data}),(function(t){return e&&(Vn.removeRequest(r),e(null==t?void 0:t.response)),Promise.reject(t.response)})),i};function Fn(t,e=!1){return e?jn(t)?t:JSON.stringify(t):jn(t)?JSON.parse(t):t}const jn=t=>{if("string"==typeof t)try{const e=JSON.parse(t);return"object"==typeof e&&null!==e}catch(t){return!1}return!1},Ln=(t,e)=>{try{const n=JSON.stringify(e);sessionStorage.setItem(t,n)}catch(e){console.error(`Error setting session data for key ${t}:`,e)}},Yn=t=>{const e=sessionStorage.getItem(t);if(e)try{return JSON.parse(e)}catch(e){console.error(`Error parsing session data for key ${t}:`,e)}return null},zn=t=>{for(const e of t)e.code&&(e.code=e.code.replace(/>/g,">").replace(/</g,"<"))},Hn=(t,e)=>{t instanceof Map?t.forEach((t=>{e([t])})):Array.isArray(t)&&t.forEach((t=>{e(t.children)}))},Un=(t,e)=>{const n=t=>{var r,i,a;if(t)for(const o of t){const t=null===(a=null===(i=null===(r=null==o?void 0:o.tmpData)||void 0===r?void 0:r.source)||void 0===i?void 0:i.converse)||void 0===a?void 0:a.data;(null==t?void 0:t.length)&&zn(t),e(o),o.children?n(o.children):o.dynamicChildren?Hn(o.dynamicChildren,n):o.stateChildren&&n(o.stateChildren)}};n(t)},qn=(t,e,n,r)=>{const i=t.match(/({{[\w]*}})|((@)[\w]*)/gm);if(i){const t=i.map((t=>t.replace(/{{|}}|@/gm,"")));for(const i of t)if(i&&e&&!(e.findIndex((t=>t.mapField===i))<0))return n&&r&&Gn(r,i,n.cid),!0}return!1},Gn=(t,e,n)=>{if(!t)throw new Error("Share variable tree is not defined");if("string"!=typeof e)throw new Error("Variable name should be a string");if(!n)throw new Error("ID is required");Array.isArray(t[e])||(t[e]=[]),t[e].includes(n)||t[e].push(n)},Wn=(t,e,n)=>{var r;let i=!1;const a=null==e?void 0:e.converse;if(a&&a.use&&a.data.length)for(const e of a.data)if((null==e?void 0:e.dependVars)&&e.dependVars.includes(t))return!0;const o=null==e?void 0:e[null==e?void 0:e.type];return((null==o?void 0:o.inputSql)||(null==o?void 0:o.url)||(null==o?void 0:o.headers)||(null==o?void 0:o.params))&&(i=qn(o.inputSql||o.url||(null===(r=o.headers)||void 0===r?void 0:r.value)||o.params,n)),i},$n=(e,n,r=!1)=>{let i=null;const a=e=>{for(const o of e){if(o.cid===n){i=o,r&&t.remove(e,(t=>t.cid===n));break}if(o.children&&a(o.children),o.dynamicChildren&&Array.isArray(o.dynamicChildren))for(const[,t]of Array.from(o.dynamicChildren))a(t);o.stateChildren&&a(o.stateChildren)}};return a(e),i};function Kn(e,n,r){let i=t.cloneDeep(n);const a={};r&&r.forEach((t=>{(null==t?void 0:t.name)&&(a[t.name]=t.value||t.originvalue)}));try{return new Function("data","vars",e)(i,a)}catch(e){return console.error(e),i}}const Zn=t=>{let e=window.goFetchList;e&&e[t]&&delete e[t]};function Xn(t){let e=Xt.enc.Utf8.parse("anov@2019:helloX"),n=Xt.enc.Utf8.parse("anov@2020:helloX");return Xt.AES.encrypt(t,e,{iv:n,mode:Xt.mode.CBC,padding:Xt.pad.Pkcs7}).toString()}function Jn(t,e){if(0===t.length)throw new Error("Array is empty.");if(!e)return t[Math.floor(Math.random()*t.length)];if(e.length!==t.length)throw new Error("Length of probabilities array must match length of array.");const n=e.reduce(((t,e)=>t+e),0),r=Math.random()*n;let i=0;for(let n=0;n<t.length;n++)if(i+=e[n],r<i)return t[n];return t[0]}const Qn=new Blob(["\nfunction proxyObj(originObj) {\n const exposeObj = new Proxy(originObj, {\n has: (target, key) => {\n if (['fetch', 'XMLHttpRequest', 'postMessage'].indexOf(key) >= 0) {\n throw new Error('Illegal operation for key'+key)\n } else {\n return target[key]\n }\n },\n })\n return exposeObj\n}\nfunction compileCode(src) {\n src = 'with (exposeObj) {'+src+'}'\n //console.log(src)\n return new Function('exposeObj', src)\n}\nfunction run(code) {\n let proxy = proxyObj({})\n let result = compileCode(code)(proxy)\n return result\n}\n\nonmessage = (e) => {\n try {\n let result = run(e.data.code)\n postMessage({\n code: 1,\n result,\n })\n } catch (err) {\n postMessage({\n code: -1,\n err,\n })\n }\n}\n"]),tr=URL.createObjectURL(Qn);function er(t,e,n={},r="worker"){return Nn(this,void 0,void 0,(function*(){try{if("window"==r){let[r,i]=[["data"],[e]];"object"==typeof n&&Object.keys(n).forEach((t=>{r.push(t),i.push(n[t])}));return{success:!0,data:new Function(...r,t)(...i)}}{let[r,i,a]=[e,n,""];"object"==typeof r&&(r=JSON.stringify(e)),"object"==typeof n&&(i=JSON.stringify(n)),Object.keys(n).forEach((t=>a+=`${t},`));let o=`let data=eval(${r}); \n let app=${JSON.stringify({})};`;o+=a?`let {${a}} = eval(${i}); `:"",o+=`${t}`;let s=yield function(t,e=5e3){return Nn(this,void 0,void 0,(function*(){let n=new Worker(tr);return new Promise(((r,i)=>{const a=()=>{clearTimeout(s),n.removeEventListener("message",o),n.terminate(),n=null},o=t=>{let{code:e,result:n,err:o}=t.data;a(),1===e?r(n):i(o)};n.postMessage({code:t}),n.addEventListener("message",o);let s=setTimeout((()=>{a(),i("timeout")}),e)}))}))}(o);return{success:!0,data:s}}}catch(t){return{success:!1,error:t,data:e}}}))}var nr,rr,ir,ar;!function(t){t.StaticFile="staticFile",t.DataSource="datasource"}(nr||(nr={})),function(t){t.json="application/json;charset=UTF-8",t.form="application/x-www-form-urlencoded; charset=UTF-8"}(rr||(rr={})),function(t){t.get="GET",t.post="POST",t.put="PUT",t.patch="PATCH",t.delete="DELETE"}(ir||(ir={}));class or{constructor(t){this.db=null,this.dbName=t.databaseName,this.tableName=t.tableName,this.keyPath=t.keyPath}static getInstance(t){return or.instance||(or.instance=new or(t)),or.instance}init(){return Nn(this,void 0,void 0,(function*(){return new Promise(((t,e)=>{const n=indexedDB.open(this.dbName,1);n.onerror=t=>{e(t.target.error)},n.onupgradeneeded=t=>{this.db=t.target.result,this.db.objectStoreNames.contains(this.tableName)||this.db.createObjectStore(this.tableName,{keyPath:this.keyPath})},n.onsuccess=e=>{this.db=e.target.result,t()}}))}))}addRecord(t){return Nn(this,void 0,void 0,(function*(){if(!this.db)throw new Error("数据库未初始化。");return new Promise(((e,n)=>{const r=this.db.transaction([this.tableName],"readwrite").objectStore(this.tableName).add(t);r.onsuccess=()=>{e()},r.onerror=t=>{n(t.target.error)}}))}))}deleteRecord(t){return Nn(this,void 0,void 0,(function*(){if(!this.db)throw new Error("数据库未初始化。");return new Promise(((e,n)=>{const r=this.db.transaction([this.tableName],"readwrite").objectStore(this.tableName).delete(t);r.onsuccess=()=>{e()},r.onerror=t=>{n(t.target.error)}}))}))}updateRecord(t){return Nn(this,void 0,void 0,(function*(){if(!this.db)throw new Error("数据库未初始化。");return new Promise(((e,n)=>{const r=this.db.transaction([this.tableName],"readwrite").objectStore(this.tableName).put(t);r.onsuccess=()=>{e()},r.onerror=t=>{n(t.target.error)}}))}))}getRecord(t){return Nn(this,void 0,void 0,(function*(){if(!this.db)throw new Error("数据库未初始化。");return new Promise(((e,n)=>{const r=this.db.transaction([this.tableName],"readonly").objectStore(this.tableName).get(t);r.onsuccess=()=>{e(r.result)},r.onerror=t=>{n(t.target.error)}}))}))}getAllRecords(){return Nn(this,void 0,void 0,(function*(){if(!this.db)throw new Error("数据库未初始化。");return new Promise(((t,e)=>{const n=this.db.transaction([this.tableName],"readonly").objectStore(this.tableName).getAll();n.onsuccess=()=>{t(n.result)},n.onerror=t=>{e(t.target.error)}}))}))}}or.instance=null,function(t){t[t.FATAL=0]="FATAL",t[t.ERROR=1]="ERROR",t[t.WARN=2]="WARN",t[t.INFO=3]="INFO",t[t.DEBUG=4]="DEBUG",t[t.TRACE=5]="TRACE"}(ar||(ar={}));const sr={databaseName:"GODB",tableName:"go-log",keyPath:"time"};class lr{constructor(){this.logLevel=ar.INFO,this.indexedDBInstance=or.getInstance(sr);try{this.indexedDBInstance.init(),console.log("IndexedDB 初始化成功。")}catch(t){console.error("初始化 IndexedDB 时出错:",t)}}static getInstance(){return lr.instance||(lr.instance=new lr),lr.instance}setLogLevel(t){this.logLevel=t}getColor(t){switch(t){case ar.FATAL:return"[31;1m";case ar.ERROR:return"[31m";case ar.WARN:return"[33m";case ar.INFO:return"[32m";case ar.DEBUG:return"[36m";case ar.TRACE:return"[34m";default:return"[0m"}}log(t,e){if(e<=this.logLevel){const n=(new Date).toISOString(),r=`[${n}] [${ar[e]}]`,i=this.getColor(e);if(null===window||void 0===window?void 0:window.goDev)console.log(`${i}${r} ${t}[0m`);else{let e=Yn("anov-go-userInfo"),a=Yn("anov-go-proid"),o=` [操作人:${null==e?void 0:e.userName} 项目ID:${a}] `;const s={time:n,value:`${t}`};try{this.indexedDBInstance.addRecord(s)}catch(t){console.error("添加记录时出错:",t)}console.log(`${i}${r} ${o} ${t}[0m`)}}}fatal(t){this.log(t,ar.FATAL)}error(t){this.log(t,ar.ERROR)}warn(t){this.log(t,ar.WARN)}info(t){this.log(t,ar.INFO)}debug(t){this.log(t,ar.DEBUG)}trace(t){this.log(t,ar.TRACE)}}const cr=lr.getInstance(),ur=In();let hr=In();function dr(e,n="get",r={},i={}){return Nn(this,void 0,void 0,(function*(){try{const a={method:ir[n],url:e,headers:i,timeout:Bn};return["post","put"].includes(n.toLowerCase())?a.data=t.cloneDeep(r):a.params=t.cloneDeep(r),/.json$/.test(e)?function(t){return Nn(this,void 0,void 0,(function*(){try{return(yield ur({method:"get",url:t})).data}catch(t){throw console.error("JSON 数据请求:",t),t}}))}(e):function(t){return Nn(this,void 0,void 0,(function*(){try{return{code:2e4,data:(yield ur(t)).data}}catch(t){throw console.error("请求数据发生错误-Error:",t),t}}))}(a)}catch(t){throw console.error("获取数据:Error:",t),t}}))}function fr(t,e,n,r){return Nn(this,void 0,void 0,(function*(){try{const i=(window.anUrl||"")+(window.agentPath||"/ds/v1/api-proxy/v1/query"),a=Fn(n,!0);return yield ur({url:i,method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:{body:"post"===t?a:void 0,headers:jn(r)?JSON.parse(r):r,method:t,url:e}})}catch(t){throw console.error("代理请求数据:Error:",t),t}}))}function pr(t,e,n,r,i){return Nn(this,void 0,void 0,(function*(){return i?fr(e,t,n,r):dr(t,e,n,r)}))}function mr(t,e="",n){var r,i,a,o;const s=`${null!==(i=null===(r=null===window||void 0===window?void 0:window.BaseUrl)||void 0===r?void 0:r.replace("/management",""))&&void 0!==i?i:""}/ds/data-engine/v1/${t}/zb-query?token=${(null===(a=kr("YZH_EXCHANGE_TOKEN"))||void 0===a?void 0:a.YZH_EXCHANGE_TOKEN)||(null===(o=null===window||void 0===window?void 0:window.yzhAuth)||void 0===o?void 0:o.getToken())}&passid=${null===window||void 0===window?void 0:window.gdPassid}${(null===window||void 0===window?void 0:window.BASE_RELEASE)?"&preview=1":""}`;let l={};try{l=e?JSON.parse(e):{}}catch(t){l=e||{}}return ur({method:"POST",url:s,data:{headers:n,param:l},timeout:Rn})}const gr=(t,e)=>Nn(void 0,void 0,void 0,(function*(){const n=window.BaseUrl,{dateType:r="",endPeriod:i="",metricsName:a=t,startPeriod:o=""}=e;return hr({method:"GET",url:`${n}ds/v1/metrics/v1/data-alarm?dateType=${r}&endPeriod=${i}&metricsName=${a}&startPeriod=${o}`,timeout:Rn})})),vr=(t,e,n)=>Nn(void 0,void 0,void 0,(function*(){var r;const i=(null===(r=window.BaseUrl)||void 0===r?void 0:r.replace("/management",""))||"";e.newEncryption=!0;const a={staticFile:{method:"get",params:e,url:`${i}/ds/v1/file/v1/${t}/query`},datasource:{method:"post",url:`${i}/ds/v1/database/v1/${t}/query`,data:Object.assign({},e)}}[n];if(!a)throw new Error("Invalid data type provided");return ur(Object.assign({timeout:Rn},a))})),yr=t=>new Promise(((e,n)=>{let r;r=t.originData&&Object.keys(t.originData).length?t.originData:t.data,void 0!==r?e({data:r}):n("Failed to retrieve cdata")})),br=(t,e,n)=>{try{switch(e){case"api":{let e=Ar(t,n);return{requestType:e.requestType,url:e.url,params:e.params,headers:e.headers,agency:e.agency}}case"static":return{data:t};case"datasource":{const e=Er(t.inputSql,n);return{dsName:t.dsName,dsType:"1",sql:Xn(e),filter:t.sqlFilter}}case"staticFile":return{dsName:t.dsName,dsType:t.dsType,sql:""};case"indicator":return{zbId:t.zbId,params:Er(t.params,n),headers:Er(t.headers,n)};case"indicatorCQ":return{zbName:t.zbName,params:Er(t.params,n)};case"packData":return{};default:throw new Error("Invalid type")}}catch(e){console.log("准备请求数据发生错误",e,t)}},_r=(t,e)=>Nn(void 0,void 0,void 0,(function*(){try{switch(e){case"api":return yield pr(t.url,t.requestType,t.params,t.headers,t.agency);case"static":return yield yr(t.data);case"datasource":return yield vr(t.dsName,{dsType:t.dsType,sql:t.sql,filter:t.filter},"datasource");case"staticFile":return yield vr(t.dsName,{dsType:t.dsType,sql:t.sql},"staticFile");case"indicator":return yield mr(t.zbId,t.params,t.headers);case"indicatorCQ":return yield gr(t.zbName,t.params);case"packData":return{};default:throw new Error("Invalid type")}}catch(t){return console.warn(t,"执行请求并获取数据发生错误"),yield new Promise(((t,e)=>{t({error:!0})}))}})),wr=(t,e,n,r=[],i=!1)=>Nn(void 0,void 0,void 0,(function*(){const a=e||t.tmpData.source.dataType,o=t.tmpData.source["indicatorCQ"==a?"indicator":a];if("globalData"===a){const t=r.find((t=>t.key===o.id||t.key===o.key)),e=Yn(o.id);if(e&&!i)return e.data;if(t){let e=yield Dr(t,n),r={key:o.id,data:e};return Ln(o.id,r),e}return}const s=br(o,a,n),l=yield _r(s,a);return(null==l?void 0:l.data)?l.data:l})),Dr=(t,e)=>Nn(void 0,void 0,void 0,(function*(){let n=Object.assign({},{tmpData:{source:t.value}});const r=n.tmpData.source.type,i=n.tmpData.source[r],a=br(i,r,e),o=yield _r(a,r);return yield Sr(o.data,n,!0,e)})),Sr=(e,n,r=!0,i)=>Nn(void 0,void 0,void 0,(function*(){try{const{converse:a,mapFields:o}=n.tmpData.source;return a&&a.use&&r?yield new Promise(((n,r)=>{const o=function(e,n,r,i,a){return Nn(this,void 0,void 0,(function*(){let r,a=e,{use:o,data:s}=t.cloneDeep(n);if(o)for(let e=0;e<s.length;e++)if(s[e].use){let n=s[e].dependVars,o={};i&&o&&n&&n.length&&n.map((e=>{let n=t.cloneDeep(i).filter((t=>{let n=t.mapField==e;return n&&(o[e]=t.value),n}));n&&0!=n.length||(o[e]="")})),r=yield er(s[e].code,a,o,s[e].mode?s[e].mode:"worker"),a=r.data}return a}))}(e,a,0,i);n(o)})):yield new Promise(((t,n)=>{t(e)}))}catch(t){return console.error("执行过滤器发生错误:"+t),yield new Promise(((t,n)=>{t(e)}))}})),xr=(t,e,n)=>{const{source:r}=t.tmpData,i=r.type;n?("static"===i&&r[i]&&(r[i].originData=n),"indicatorCQ"===i?r.indicator.data=e:r[i].data=e):"indicatorCQ"===i?r.indicator.data=e:r[i].data=e,t.source=e},Tr=(t,e,n=[],r,i,a)=>Nn(void 0,void 0,void 0,(function*(){try{let o=t.tmpData.source.type,s=yield wr(t,o,n,r,a||!1);if(null==s||!s)return i&&i({error:!0}),Promise.resolve({error:!0});let l=yield Sr(s,t,e,n);return xr(t,l),i&&i(l),(null==t?void 0:t.cid)&&Zn(t.cid),Promise.resolve(l)}catch(t){return i&&i(t),cr.error("Error in updateComData"),console.error("Error in updateComData:",t),Promise.reject(t)}})),kr=t=>{const e={};if(t&&t.includes("?")){const n=t.split("?")[1].split("&");for(let t of n){const[n,r]=t.split("=").map(decodeURIComponent);e[n]=r}}return e},Cr=t=>{try{return(null==t?void 0:t.value)&&"string"==typeof t.value?JSON.parse(t.value):"string"==typeof t?JSON.parse(t):t}catch(e){return t}},Er=(t,e)=>{if(!e)return Cr(t);if("string"==typeof t){if(""===t.trim())return"";try{if("string"!=typeof JSON.parse(t))return Er(JSON.parse(t),e);{let n=t.replace(/@(\w+)|{{(\w+)}}/g,((t,n,r)=>{const i=n||r,a=e.find((t=>t.mapField===i));return a?a.value||a.originalValue||"":t}));return Cr(n)}}catch(n){let r=t.replace(/@(\w+)|{{(\w+)}}/g,((t,n,r)=>{const i=n||r,a=e.find((t=>t.mapField===i));return a?a.value:t}));return Cr(r)}}else{if(Array.isArray(t))return t.map((t=>Er(t,e)));if("object"==typeof t&&null!==t){const n={};for(let r in t)n[r]=Er(t[r],e);return Cr(n)}}return Cr(t)},Ar=(t,e)=>{const n=t.agency,r=t,{url:i=null,headers:a,params:o,requestType:s}=r,l=i?Er(i,e):void 0,c=a&&a.use?Er(a.value,e):{};return{url:l,requestType:s,params:o?Er(o,e):{},headers:c,agency:n}},Or=(t,e,n,r,i)=>Nn(void 0,void 0,void 0,(function*(){if(t&&t.length)for(const a of t)Wn(e,a.value,n)&&(yield Tr({tmpData:{source:{type:"globalData",globalData:{id:a.key}}}},!0,n,t,(t=>{console.log("数据更新成功-变量改变全局数据跟新")}),!0),Un(r,(e=>{var r,o,s;"globalData"===(null===(o=null===(r=null==e?void 0:e.tmpData)||void 0===r?void 0:r.source)||void 0===o?void 0:o.type)&&(null===(s=null==e?void 0:e.tmpData)||void 0===s?void 0:s.source.globalData).id===a.key&&Tr(e,!0,n,t,(t=>{i(e,t)}),!1)})))})),Mr=(t,e,n,r,i)=>Nn(void 0,void 0,void 0,(function*(){t&&(yield Tr({tmpData:{source:{type:"globalData",globalData:{id:t.key}}}},!0,e,n,(t=>{console.log("数据更新成功-数据源编辑")}),!0),Un(r,(r=>{var a,o,s;"globalData"===(null===(o=null===(a=null==r?void 0:r.tmpData)||void 0===a?void 0:a.source)||void 0===o?void 0:o.type)&&(null===(s=null==r?void 0:r.tmpData)||void 0===s?void 0:s.source.globalData).id===t.key&&Tr(r,!0,e,n,(t=>{i(r,t)}),!1)})))}));class Nr{constructor(t,e){this.isUpdating=!1,this.des=t.des,this.field=t.field,this.id=t.id,this.key=t.key,this.mapping=t.mapping,this.mapField=t.mapField,this.type=t.type,this.originalValue=t.originalValue,this.model=(null==t?void 0:t.model)?null==t?void 0:t.model:1,this.converter=t.converter,this.converterCode=t.converterCode,this.fork=t.fork,this.delayUpdate=!!(null==t?void 0:t.delayUpdate),e&&(this.globalVariables=e),t.fork&&(this.model=5,this.forkValue=t.forkValue,this.originalValue=this.getForkedValue())}get value(){if(this.fork&&(this.originalValue=this.getForkedValue()),this.converter&&this.converterCode){let t=[];return Kn(this.converterCode,this.originalValue,t)}return this.originalValue}togglePropertyState(t){let e=Object.prototype.hasOwnProperty.call(this,t);this[t]=!e||!t}getForkedValue(){if(this.forkValue&&Array.isArray(this.forkValue))return this.forkValue.map((t=>{const e=this.globalVariables.get(t);return e?e.value:null}));if(this.forkValue){const t=this.globalVariables.get(this.forkValue);return t?t.value:null}return null}updateValue(t,n){var r;const i=Object.assign({},this,t);this.des=i.des,this.field=i.field,this.mapping=i.mapping,this.type=i.type,this.originalValue=i.originalValue,this.converter=i.converter,this.converterCode=i.converterCode,this.fork=i.fork,this.delayUpdate=null==i?void 0:i.delayUpdate,this.model=null==i?void 0:i.model,t.id&&(this.id?"string"==typeof this.id?t.id instanceof Array?this.id=e([this.id,...t.id]):this.id=[this.id,t.id]:this.id instanceof Array&&(t.id instanceof Array?this.id=e([...this.id,...t.id]):this.id=e([...this.id,t.id])):this.id=t.id),t.fork&&(this.model=5,this.forkValue=null!==(r=t.forkValue)&&void 0!==r?r:this.forkValue,this.originalValue=this.getForkedValue()),n&&n(this)}updateWidthOriginalValue(t,e){var n;this.originalValue=t,this.fork&&(this.forkValue=null!==(n=this.forkValue)&&void 0!==n?n:this.forkValue,this.originalValue=this.getForkedValue()),e&&e(this)}renew(t){t&&t(this)}static create(t,e){return new Nr(t,e)}}class Pr{constructor(){this.variables=new Map,this.globalObservers=[],this.url=window.location.search,this.list=[]}clearVars(){this.list=[],this.variables.clear()}togglePropertyState(t,e,n){try{let r=this.getVariable(t);if(!r)throw new Error("没有找到相应的变量!");r.togglePropertyState(e),this.addToObjectArray(this.list,r),n&&n()}catch(t){console.error(t)}}static getInstance(){return Pr.instance||(Pr.instance=new Pr),Pr.instance}getFullUrl(){this.url=window.location.search}getAllUrlParams(){const t=new URLSearchParams(window.location.search),e={};for(const[n,r]of t.entries())e[n]=r;return e}delVariable(t,e){this.variables.delete(t),this.list=this.list.filter((e=>e.mapField!=t)),e&&e()}addUrlParamsToGlobalVars(){this.getFullUrl();let t=this.getAllUrlParams(),e=Object.keys(t),n=[];for(const r of e)n.push({mapField:r,originalValue:t[r],model:4});if(n.length)for(const t of n)this.addVariable(t)}addVariables(t){Array.isArray(t)?t.map(((t,e)=>{this.addVariable(t)})):this.addVariable(t),this.addUrlParamsToGlobalVars()}addVariable(t,e){if(!t||!(null==t?void 0:t.mapField))return console.error(t+"参数不合法!"),!1;if(this.isVariableNameExist(t.mapField)){let n=this.getVariable(t.mapField);return this.sameValue(n,t)?n:(this.editVariable(t,e),!1)}const n=Nr.create(t,this.variables);return this.variables.set(n.mapField,n),this.addToObjectArray(this.list,n),e&&e(n),this.notifyGlobalObservers(n),n}toJSON(t){try{return!!t&&JSON.stringify(t)}catch(t){return!1}}sameValue(t,e){if(t.mapfield!==e.mapfield)return!1;for(const n in e)if(!(["mapfield","field","key","value","name","globalVariables"].includes(n)||n in t&&t[n]==e[n]))return!1;return!0}creatVarJson(t){const{des:e,field:n,id:r,key:i,mapping:a,mapField:o,type:s,value:l,originalValue:c,model:u,converter:h,converterCode:d,fork:f,forkValue:p,update:m,delayUpdate:g}=t,v={};return void 0!==e&&(v.des=e),void 0!==n&&(v.field=n),void 0!==r&&(v.id=r),void 0!==i&&(v.key=i),void 0!==a&&(v.mapping=a),void 0!==o&&(v.mapField=o),void 0!==s&&(v.type=s),void 0!==l&&(v.value=l),void 0!==c&&(v.originalValue=c),void 0!==u&&(v.model=u),void 0!==h&&(v.converter=h),void 0!==d&&(v.converterCode=d),void 0!==f&&(v.fork=f),void 0!==p&&(v.forkValue=p),void 0!==m&&(v.update=m),void 0!==g&&(v.delayUpdate=g),v}addToObjectArray(t,e){let n=!1;for(let r=0;r<t.length;r++)if(t[r].mapField==e.mapField){t[r]=this.creatVarJson(e),n=!0;break}n||t.push(e)}editVariable(t,e){const n=this.getVariable(t.mapField);if(n&&this.isVariableNameExist(t.mapField)&&this.sameValue(n,t))return;const r=t=>{t.isUpdating||(t.isUpdating=!0,this.notifyGlobalObservers(t),this.isMapFieldInForkValues(t.mapField).forEach((t=>{let e=this.getVariable(t.mapField);e&&e.renew((t=>{this.addToObjectArray(this.list,t),this.notifyGlobalObservers(t)}))})),this.addToObjectArray(this.list,t),e&&e(t),t.isUpdating=!1)};n?n.updateValue(t,r):this.addVariable(t,r)}getForkList(t){return this.isMapFieldInForkValues(t)||[]}editVariableForValue(t,e,n){const r=this.getVariable(t);r&&r.updateWidthOriginalValue(e,(t=>{t.isUpdating||(t.isUpdating=!0,this.notifyGlobalObservers(t),this.isMapFieldInForkValues(t.mapField).forEach((t=>{let e=this.getVariable(t.mapField);e&&e.renew((t=>{this.addToObjectArray(this.list,t),this.notifyGlobalObservers(t)}))})),this.addToObjectArray(this.list,t),n&&n(t),t.isUpdating=!1)}))}isMapFieldInForkValues(t){return this.getAllVariables().filter((t=>t.fork&&t.forkValue)).filter((e=>e.forkValue==t||Array.from(e.forkValue).includes(t)))}isVariableNameExist(t){return this.variables.has(t)}checkExist(t,e){if("string"==typeof t&&this.isVariableNameExist(t)){let n=this.getVariable(t);return e==n.id&&!n.id.includes(e)&&[{key:t}]}if(Array.isArray(t)){const n=t.filter((t=>{let n=this.getVariable(t);return this.isVariableNameExist(t)&&e!=n.id&&!(n.id&&n.id.includes(e))})).map((t=>({key:t})));return!!n.length&&n}return!1}getVariable(t){return this.variables.get(t)}getVariableForId(e){var n;let r=[];for(const[,t]of this.variables)(t.id===e||(null===(n=t.id)||void 0===n?void 0:n.includes(e)))&&r.push(t);return t.uniq(r)}getAllVariables(t=!1){return this.addUrlParamsToGlobalVars(),t?(this.list=Array.from(this.variables.values()),this.list):[...this.list]}restoreVariables(t){t.forEach((t=>{this.addVariable(t)}))}registerGlobalObserver(t){this.globalObservers.push(t)}notifyGlobalObservers(t){this.globalObservers.forEach((e=>{e.update(t)}))}}Pr.instance=null;const Vr=Pr.getInstance(),Rr=(t,e)=>Array.isArray(e)?e.some((e=>t&&(void 0!==t[e]||t.hasOwnProperty(e)))):"string"==typeof e&&t&&(void 0!==t[e]||t.hasOwnProperty(e)),Br=(t,e,n,r)=>{const i=((t,e,n,r)=>{var i;let a;if(Rr(t,null==e?void 0:e.field)||Rr(t,null==e?void 0:e.forkValue))a=t[null==e?void 0:e.field]||"";else if(Rr(t.data,null==e?void 0:e.field)||Rr(t.data,null==e?void 0:e.forkValue))a=t.data[null==e?void 0:e.field]||"";else{const t=$n(n,r),o=(null===(i=null==t?void 0:t.tmpData)||void 0===i?void 0:i.actions)||[];for(const t of o){const n=t.vars.find((t=>(null==t?void 0:t.mapField)===(null==e?void 0:e.mapField)));if(n){a=n.value;break}}}return a})(t,e,n,r);return void 0!==i?i:e.value},Ir=(t,e,n,r,i,a,o,s,l)=>{var c;switch(t.type){case"link":let u=Er(t.link,a);window.open(u,t.target);break;case"page":if(null===(c=null==t?void 0:t.params)||void 0===c?void 0:c.length)for(let e=0;e<t.params.length;e++){const n=t.params[e],r=a.find((t=>t.mapField==n.mapField));r&&(n.value=r.value)}l&&l(t);break;case"dynamic":((t,e,n,r,i)=>{const a=t.dynamic||[];for(const o of a){if(t.id!==e.cid)continue;const a=$n(n,o.pid);a&&(a.activeDynamic=o.name,a.isShow=o.visible||!r||t.index===e.index-1,i({cid:a.cid,flag:o.visible}))}})(t,e,n,r,i);break;case"toggle":((t,e,n,r,i)=>{const a=t.children||[];for(const n of a){const a=n.visible&&(!r||t.index===e.index-1);i({cid:n.cid,flag:a})}})(t,e,0,r,i);break;case"update":((t,e,n,r,i)=>{const a=t.children||[];for(const t of a){const a=$n(e,t.cid);a&&Tr(a,!0,n,r,(t=>{i({cid:a.cid,data:t})}))}})(t,n,a,o,s)}},Fr=(e,n,r,i,a,o,s,l,c,u)=>{const{cid:h,actions:d,index:f}=a,{eventName:p,mode:m}=d,g=2===m;((e,n,r,i,a,o)=>{let s=Vr.getVariableForId(n.cid);if(null==s?void 0:s.length)for(const l of s)if(l.type==e){let e=Br(n,l,r,i);Vr.editVariableForValue(l.mapField,e,(()=>{let e=a[l.mapField]||[],n=Vr.getForkList(l.mapField);if(n)for(const r of n){let n=a[r.mapField];e=t.concat(e,n)}o&&o(l,t.uniq(e))}))}})(p,a,i,h,r,((t,e)=>{if(Or(c,t.mapFile,Vr.getAllVariables(),i,((t,e)=>{s({cid:t.cid,data:e})})),null==e?void 0:e.length)for(const n of e){t.eventSourceId=n;const e=$n(i,n);!(null==t?void 0:t.delayUpdate)&&e&&Tr(e,!0,Vr.getAllVariables(),c,(t=>{s({cid:e.cid,data:t})}))}}));const v=((t,e,n,r,i)=>t.filter((t=>t.id===e&&t.eventType===n&&(!i||parseInt(t.index||"0")+1===parseInt(r||"0")))))(e,h,p,f,g);for(const t of v)Ir(t,a,i,g,o,Vr.getAllVariables(),c,s,l)},jr=(t,e={})=>{let n={},r={type:"static",converse:{use:!1,data:[]},static:{data:t},api:{requestType:"get",url:"",headers:{use:!1,value:""},params:"",agency:!1,cookie:!0,autoUpdate:{open:!1,time:10},data:""}};return Object.assign(n,r,e),n},Lr=(e,n,r)=>{let i=((e,n)=>{let{option:r,actions:i,data:a,optionDes:o,actionsDes:s,source:l,theme:c}=((e,n)=>{let{option:r,actions:i,data:a,optionDes:o,actionsDes:s,source:l,theme:c}=t.cloneDeep(n[e]);return{option:r,actions:i,data:a,optionDes:o,actionsDes:s,source:l,theme:c}})(e,n);return{iconClass:null,isAssembly:null,source:a,cid:(Math.random().toString().substr(3,10)+Date.now()).toString(),isLock:!1,isShow:!0,tmpData:{option:r,source:jr(a,l),actions:i},baseData:Yr(),dynamic:null,filePath:"",origin:"anov-ui",name:"",componentType:"",viewComName:e,optionComName:"AnOptionPanel",dataComName:"AnSourcePanel",eventComName:"AnActionsPanel",assemblyDeveloper:"",devEmail:"",version:"",devDept:""}})(e,n);return r?t.merge(i,r):i},Yr=t=>{let e={left:0,top:0,width:100,height:100,angle:0,penetrate:0,opacity:100,perspective:100,rotateX:0,rotateY:0,rotateZ:0,transformOriginX:"center",transformOriginY:"center",transformSwitch:!1};return t?Object.assign(e,t):e};const zr=new class{randomNum(t,e){return Math.floor(Math.random()*(e-t+1))+t}generateRandomIntArray(t,e,n,r){const i=[];for(let r=0;r<t;r++){const t=this.randomNum(e,n);i.push(t)}return r&&"asc"===r?i.sort(((t,e)=>t-e)):r&&"desc"===r?i.sort(((t,e)=>e-t)):i}randomString(t,e){const n=this.randomNum(t,e);let r="";for(let t=0;t<n;t++){const t=Math.floor(26*Math.random());r+="abcdefghijklmnopqrstuvwxyz".charAt(t)}return r}generateRandomNameArray(t,e,n){const r=[];for(let i=0;i<t;i++){const t=this.randomString(e,n);r.push(t)}return r}pick(t,e){const n=void 0!==e?t.filter((t=>t!==e)):t;return n[Math.floor(Math.random()*n.length)]}},Hr=()=>{const t=[],e=zr.pick([!0,!1]);let n=zr.randomNum(3,20);const r=zr.pick([null,null,null,{}]);let i=zr.pick(["asc","desc",void 0,void 0,void 0]);for(let a=0;a<zr.randomNum(1,9);a++)t.push({data:zr.generateRandomIntArray(n,0,300,i),type:"line",smooth:e,symbolSize:zr.randomNum(1,10),lineStyle:{width:zr.randomNum(1,4)},areaStyle:r});return{xAxis:{type:"category",show:!1,boundaryGap:!1,data:zr.generateRandomNameArray(n,3,6)},grid:{left:0,top:0,bottom:0,right:0},yAxis:{show:!1,type:"value"},series:t}},Ur=(t,e)=>{let n={type:t,show:!1};return"category"===t&&(n.data=zr.generateRandomNameArray(e,3,6)),n},qr=()=>{const t=[],e=zr.pick([!0,!1]);let n=zr.randomNum(3,20);const r=zr.pick([null,null,null,{}]);let i=zr.pick(["asc","desc",void 0,void 0,void 0]),a=zr.randomNum(1,9),o=zr.pick([!0,!1]);for(let s=0;s<a;s++){let a={data:zr.generateRandomIntArray(n,0,300,i),type:"bar",smooth:e,stack:o,areaStyle:r};t.push(a)}let s=zr.pick(["value","category"]),l=zr.pick(["value","category"],s);return{xAxis:Ur(s,n),grid:{left:0,top:0,bottom:0,right:0},yAxis:Ur(l,n),series:t}},Gr=()=>{const t=[];let e=zr.randomNum(3,20);zr.pick([null,null,null,{}]);let n=zr.pick(["asc","desc",void 0,void 0,void 0]),r=zr.pick([1,2]),i=[zr.pick(["10%","20%","30%","40%","50%","60%","70%","80%"]),zr.pick(["90%","100%"])];return t.push({data:zr.generateRandomIntArray(e,3,20,n),type:"pie",radius:1==r?"100%":i,roseType:1==r?zr.pick(["area",null,null]):null,padAngle:1==r?0:zr.randomNum(1,5),startAngle:1==r?zr.pick([0,180]):0,endAngle:360,label:{show:!1},itemStyle:{borderRadius:3}}),{grid:{left:0,top:0,bottom:0,right:0},series:t}},Wr=()=>{const t=[];zr.pick([!0,!1]),zr.randomNum(3,20),zr.pick([null,null,null,{}]),zr.pick(["asc","desc",void 0,void 0,void 0]);for(let e=0;e<zr.randomNum(1,20);e++){let e=zr.randomNum(3,zr.randomNum(3,20)),n=[];for(let t=0;t<e;t++){let t=[];for(let e=0;e<2;e++)t.push(zr.randomNum(1,30));n.push(t)}t.push({type:"scatter",symbolSize:zr.randomNum(3,30),data:n})}return{xAxis:{show:!1},grid:{left:0,top:0,bottom:0,right:0},yAxis:{show:!1,type:"value"},series:t}},$r=()=>{const t=[],e=zr.pick(["polygon","circle"]);let n=zr.randomNum(1e4,99999),r=zr.randomNum(3,10),i=[];for(let t=0;t<r;t++)i.push({name:zr.randomString(4,8),max:n});for(let e=0;e<zr.randomNum(2,10);e++)t.push({value:zr.generateRandomIntArray(r,1e4,n),name:zr.randomString(4,8)});return{radar:{shape:e,indicator:i,axisName:{show:!1},radius:"100%"},grid:{left:0,top:0,bottom:0,right:0},series:[{type:"radar",symbol:"none",lineStyle:{width:1},data:t}]}},Kr=()=>{const t=[];for(let e=0;e<zr.randomNum(4,15);e++)t.push({value:zr.randomNum(1,100),name:zr.randomString(4,8)});return{grid:{left:0,top:0,bottom:0,right:0},series:[{type:"funnel",left:"0%",top:0,bottom:0,width:"100%",min:0,minSize:"0%",maxSize:"100%",label:{show:!1,position:"inside"},sort:zr.pick(["descending","ascending"]),gap:2,lineStyle:{width:1},data:t}]}};let Zr=zr.randomNum(5,20);const Xr={width:Zr};zr.pick([!0,!1])&&(Xr.color=[[.3,"#67e0e3"],[.7,"#37a2da"],[1,"#fd666d"]]);class Jr{constructor(){this.names=["line","bar","pie","scatter","radar","funnel","gauge"]}static getInstance(){return Jr.instance||(Jr.instance=new Jr),Jr.instance}createLine(){switch(zr.pick(this.names)){case"line":return{type:"line",typeNum:1,option:Hr()};case"bar":return{type:"bar",typeNum:2,option:qr()};case"pie":return{type:"pie",typeNum:3,option:Gr()};case"scatter":return{type:"scatter",typeNum:4,option:Wr()};case"radar":return{type:"radar",typeNum:5,option:$r()};case"funnel":return{type:"funnel",typeNum:6,option:Kr()};case"gauge":return{type:"gauge",typeNum:7,option:{grid:{left:0,top:0,bottom:0,right:0},series:[{type:"gauge",radius:"100%",detail:{formatter:"{value}"},progress:{show:zr.pick([!0,!1]),width:Zr},axisLine:{lineStyle:Xr},data:[{value:zr.randomNum(1,100),name:"SCORE"}]}]}}}}}Jr.instance=null;const Qr=Jr.getInstance(),ti=new class{constructor(){this.directions=["row","row"],this.direction="column",this.splitNumbers=24,this.margin=[0,0]}baseLayout(t){const e=(null==t?void 0:t.maRrows)?null==t?void 0:t.maRrows:this.splitNumbers,n=(null==t?void 0:t.colNum)?null==t?void 0:t.colNum:this.splitNumbers,r=t.wrapWidth/n,i=t.wrapHeight/e;let a=Jn(this.directions);a&&(this.direction=a);let o=[];if("row"===this.direction){let t=Jn([3,4]);o=this.simulateRandomSegments(24,4,12,t)}else{let t=Jn([2,3]);o=this.simulateRandomSegments(24,4,6,t)}let s=[],l=[];if("row"===this.direction){for(let t=0;t<o.length;t++)if(0==t)s.push({x:0,y:0,w:o[t],h:24,i:t,wStep:r,hStep:i});else{let e=s[t-1].x;s.push({x:o[t-1]+e,y:0,w:o[t],h:24,i:t,wStep:r,hStep:i})}let t=Jn([2,3]),e=this.simulateRandomSegments(24,6,12,t);for(let t=0;t<s.length;t++){const n=s[t];for(let a=0;a<e.length;a++){const o=e[a];l.push({x:n.x,y:o,w:n.w,h:o,i:10*t+a,wStep:r,hStep:i})}}}else{for(let t=0;t<o.length;t++)if(0==t)s.push({x:0,y:0,w:24,h:o[t],i:t,wStep:r,hStep:i});else{let e=s[t-1].y;s.push({x:0,y:o[t-1]+e,w:24,h:o[t],i:t,wStep:r,hStep:i})}for(let t=0;t<s.length;t++){const e=s[t];let n=Jn([1,2,3,4]),a=this.simulateRandomSegments(24,5,12,n),o=[];for(let n=0;n<a.length;n++){const s=a[n];if(0==n)o.push({x:0,y:e.y,w:s,h:e.h,i:10*t+n,wStep:r,hStep:i}),l.push({x:0,y:e.y,w:s,h:e.h,i:10*t+n,wStep:r,hStep:i});else{let c=o[n-1].x;o.push({x:a[n-1]+c,y:e.y,w:s,h:e.h,i:10*t+n,wStep:r,hStep:i}),l.push({x:a[n-1]+c,y:e.y,w:s,h:e.h,i:10*t+n,wStep:r,hStep:i})}}}}return{layouts:l.map((e=>{let{option:n,typeNum:r}=Qr.createLine(),i=e.x*e.wStep+e.w*e.wStep/2,a=e.y*e.hStep+e.h*e.hStep/2,o=e.w*e.wStep,s=e.h*e.hStep;if(3==r||5==r||7==r){let t=Math.min(o,s);o=t,s=t}let l=t.wrapWidth,c=t.wrapHeight;return e.chartsOption=n,e.typeNum=r,e.txt=r+" "+i/l+" "+a/c+" "+o/l+" "+s/c,console.log(e.txt),e})),option:{colNum:n,margin:(null==t?void 0:t.margin)?null==t?void 0:t.margin:this.margin,isDraggable:!!(null==t?void 0:t.isDraggable)&&(null==t?void 0:t.isDraggable),isResizable:!!(null==t?void 0:t.isResizable)&&(null==t?void 0:t.isResizable),verticalCompact:!(null==t?void 0:t.verticalCompact)||(null==t?void 0:t.verticalCompact),useCssTransforms:!(null==t?void 0:t.useCssTransforms)||(null==t?void 0:t.useCssTransforms),rowHeight:t.wrapHeight/e,maRrows:e}}}simulateRandomSegments(t,e,n,r){const i=[];let a=t,o=r;for(;o>0;)if(1===o)i.push(a),o--;else{const t=Math.min(n,a-e*(o-1)),r=Math.floor(Math.random()*(t-e+1))+e;i.push(r),a-=r,o--}return i}simulateRandomSegments2(t,e,n,r){const i=[];let a=t,o=r;for(;o>0;)if(1==o){const e=t-i.reduce(((t,e)=>t+e),0);i.push(e),o--}else{let t=Math.floor(Math.random()*n),r=Math.max(e,t),s=a-e*o;const l=Math.min(r,s);i.push(l),a-=l,o--}return i}};var ei=Object.freeze({__proto__:null,ConfigOptimizer:class{constructor(t,e,n){this.theme=null,this.plant=null,this.list=[],this.titleHeqadeHeight=70,this.clearance=3,this.checkComponentIntersection=(t,e,n=10)=>{const r=t.left,i=t.left+t.width,a=t.top,o=t.top+t.height,s=e.left,l=e.left+e.width,c=e.top,u=e.top+e.height,h=r<l&&i>s&&a<u&&o>c,d=Math.abs(t.left+t.width/2-(e.left+e.width/2)),f=Math.abs(t.top+t.height/2-(e.top+e.height/2));return h||d<n&&f<n},this.calculateCombinedComponent=t=>{if(0===t.length)return{left:0,top:0,width:0,height:0};let e=t[0].left,n=t[0].top,r=t[0].left+t[0].width,i=t[0].top+t[0].height;for(let a=1;a<t.length;a++){const o=t[a];e=Math.min(e,o.left),n=Math.min(n,o.top),r=Math.max(r,o.left+o.width),i=Math.max(i,o.top+o.height)}return{left:e,top:n,width:r-e,height:i-n}},this.getAnTextNormaltText=t=>{var e,n;try{return null===(n=null===(e=null==t?void 0:t.tmpData)||void 0===e?void 0:e.option)||void 0===n?void 0:n.text}catch(t){return console.error("配置优化(ConfigOptimizer):",t),""}},this.initProp(t),this.upgradePlant(),this.staticComponentData=e,this.upgradeHeaderComponent(),n&&Object.assign(this,n)}isStringOrObject(t){return"string"==typeof t?"string":"object"==typeof t&&null!==t&&"object"}initProp(t){try{let e,n=this.isStringOrObject(t);if(n&&"string"===n)e=JSON.parse(t);else{if(!n||"object"!==n)throw new Error(`initProp fn error :-- 传入参数${t}不合法!`);e=t}if(e){this.originData=e;const{theme:t,plant:n,list:r}=e;this.theme=t,this.plant=n,this.list=r,this.filterFileGroup()}}catch(t){console.error("配置优化(ConfigOptimizer):",t)}}upgradePlant(){this.plant&&(this.plant.option.bg={type:1,code:"70942ec525344c96aa32b81b2c9155f6",path:"/anov-prod/resources/page/png/bg22 科技星球背景.png",thumb:"/anov-prod/resources/page/thumbnail/1e48f8fb26ec4edfb1a0f499627e84fc.png"})}areComponentsIntersecting(t,e){let n=t.baseData,r=e.baseData;const i=Math.max(0,Math.min(n.left+n.width,r.left+r.width)-Math.max(n.left,r.left)),a=Math.max(0,Math.min(n.top+n.height,r.top+r.height)-Math.max(n.top,r.top));return i>0&&a>0}filterFileGroup(){this.list=t.cloneDeep(this.list).map((t=>{var e,n;if(1===(null===(e=null==t?void 0:t.children)||void 0===e?void 0:e.length)&&!(null===(n=null==t?void 0:t.children[0])||void 0===n?void 0:n.children)){const e=t.children[0],{left:n,top:r}=t.baseData;return e.baseData.left=n,e.baseData.top=r,e}return t}))}getText(t,e,n){const r=document.createElement("canvas").getContext("2d");if(!r)throw new Error("Failed to get 2D context from canvas.");return r.font=`${n}px ${e}`,r.measureText(t).width}calculateMaxWidths(t){const e=Math.min(...t.map((t=>t.width))),n=[];let r=[],i=t[0].width;for(const a of t){const t=a.width;Math.abs(t-i)<=e?r.push(t):(r.length>0&&n.push(r),r=[t]),i=t}r.length>0&&n.push(r);const a=[];for(const t of n){const e=Math.max(...t);a.push(e)}return a}findClosestValue(t,e){let n=e[0],r=Math.abs(t-n);for(const i of e){const e=Math.abs(t-i);e<r&&(r=e,n=i)}return n}adjustHeightAndTop(t,e){const n=e-t.height;return Object.assign(Object.assign({},t),{height:e,top:t.top-n/2})}findNearestComponent(e,n,r){let i=null,a=1/0;n.tmpData.option.textNormal.text;try{const o=t.cloneDeep(e).sort(((t,e)=>t.baseData.top-e.baseData.top)).sort(((t,e)=>t.baseData.left-e.baseData.left)).filter((t=>!(t.cid===n.cid||"AnTextNormal"===t.viewComName||r&&r.includes(t.cid)))),s=t.cloneDeep(n).baseData;s.top,s.height;for(const t of o){const e=t.baseData;if(e.top,e.height,s.left<e.left+e.width&&s.left+s.width>e.left){const n=e.top-s.top;n<a&&n<100&&(a=n,i=t)}}}catch(e){console.error("配置优化(ConfigOptimizer)- findNearestComponent :",e)}return i}findNearestComponentForPoint(t,e,n){let r=null,i=1/0;e.tmpData.option.textNormal.text;try{const a=t.sort(((t,e)=>t.baseData.top-e.baseData.top)).sort(((t,e)=>t.baseData.left-e.baseData.left)).filter((t=>!(t.cid===e.cid||"AnTextNormal"===t.viewComName||n&&n.includes(t.cid)))),o=e.baseData;o.top,o.height;for(const t of a){const e=t.baseData;let n=this.getDistance(o.left,o.top+o.height,e.left,e.top);n<i&&n<o.width&&(i=n,r=t)}}catch(t){console.error("配置优化(ConfigOptimizer)- findNearestComponent :",t)}return r}findNearestComponentForTitlePoint(t,e,n){let r=null,i=1/0;e.tmpData.option.textNormal.text;try{const a=t.sort(((t,e)=>t.baseData.top-e.baseData.top)).sort(((t,e)=>t.baseData.left-e.baseData.left)).filter((t=>!(t.cid===e.cid||"AnTextNormal"===t.viewComName||n&&n.includes(t.cid)))),o=e.baseData;o.top,o.height;for(const t of a){const e=t.baseData;let n=this.getDistance(o.left,o.top+o.height,e.left,e.top);n<i&&n<o.width&&e.top-o.top>100&&(i=n,r=t)}}catch(t){console.error("配置优化(ConfigOptimizer)- findNearestComponent :",t)}return r}findNearestTitleForPoint(t,e,n){let r=null,i=1/0;e.tmpData.option.textNormal.text;try{const a=t.sort(((t,e)=>t.baseData.top-e.baseData.top)).sort(((t,e)=>t.baseData.left-e.baseData.left)).filter((t=>!(t.cid===e.cid||"AnTextNormal"===t.viewComName||n&&n.includes(t.cid)))),o=e.baseData;o.top,o.height;for(const t of a){const e=t.baseData;let n=e.top-o.top;n<i&&n<o.width&&e.top-o.top>100&&(i=n,r=t)}}catch(t){console.error("配置优化(ConfigOptimizer)- findNearestComponent :",t)}return r}getDistance(t,e,n,r){return Math.sqrt(Math.pow(n-t,2)+Math.pow(r-e,2))}findNearestComponent2(e,n,r){let i=null,a=1/0,o=t.cloneDeep(e).sort(((t,e)=>t.baseData.top-e.baseData.top));try{const e=o.filter((t=>!(t.cid===n.cid||"AnTextNormal"===t.viewComName||r&&r.includes(t.cid)))),s=t.cloneDeep(n).baseData,l=s.top+s.height;for(const t of e){const e=t.baseData,n=e.top+e.height;if(s.left<e.left+e.width&&s.left+s.width>e.left){const e=n-l;e>=0&&e<a&&(a=e,i=t)}}}catch(e){console.error("配置优化(ConfigOptimizer)- findNearestComponent :",e)}return i}verticalDistance(t,e){t.left,t.width;const n=t.top+t.height,r=(e.left,e.width,e.top);return Math.abs(n-r)}extractAmount(t){const e=t.match(/(\d{1,3}(?:,\d{3})*)(\D+)/);if(e){const t=e[1].replace(/,/g,"");return[parseInt(t,10),e[2].trim()]}return[!1,!1]}getAnTextNormal(){return this.list.filter((t=>"AnTextNormal"==t.viewComName))}getAnDeckTitle3(){return this.list.filter((t=>"AnDeckTitle3"==t.viewComName)).sort(((t,e)=>t.baseData.left-e.baseData.left))}judgeAnOdometer(){let t=this.getAnTextNormal().sort(((t,e)=>t.baseData.left-e.baseData.left)),e=[],n=new Set;for(const r of t){if(n.has(r.cid))continue;let i=[];for(const e of t)n.has(e.cid)||r.cid==e.cid||this.checkComponentIntersection(r.baseData,e.baseData)&&(n.add(e.cid),n.add(r.cid),i.push(e));e.push([r,...i])}let r=[];for(const t of e)for(const e of t){let n=this.getAnTextNormaltText(e);this.extractAmount(n).every((t=>t))&&r.push(t)}return r}createAnOdometer(){var e,n;let r=this.judgeAnOdometer();for(const i of r){let r,a,o,s=this.calculateCombinedComponent(i.map((t=>t.baseData)));for(const e of i){let n=this.getAnTextNormaltText(e),i=this.extractAmount(n);i.every((t=>!t))&&(r=n),i.every((t=>t))&&(a=i[0],o=i[1]),t.remove(this.list,(t=>t.cid==e.cid))}let l=Lr("AnIndicatorNormal",this.staticComponentData,t.cloneDeep({baseData:s}));(null===(n=null===(e=null==l?void 0:l.tmpData)||void 0===e?void 0:e.source)||void 0===n?void 0:n.static)&&(l.tmpData.source.static.data={text:r,num:a,unit:o},l.tmpData.source.static.originData={text:r,num:a,unit:o}),this.list.push(l)}}upgradeHeaderComponent(){for(let t=0;t<this.list.length;t++){const e=this.list[t];"AnDeckHeader3"==e.viewComName&&(e.baseData.left=0,e.baseData.top=0)}}upgradeTitleComponent(){let t=this.getAnDeckTitle3().map((t=>t.baseData)),e=this.calculateMaxWidths(t);for(let t=0;t<this.list.length;t++){const n=this.list[t];if("AnDeckTitle3"==n.viewComName){let t=this.findClosestValue(n.baseData.width,e);n.baseData.width=t>300?t:300,n.baseData=this.adjustHeightAndTop(n.baseData,this.titleHeqadeHeight)}}this.removeErroneousComponents()}containsFractionStructure(t){return/\b\d+\/\d+\b/.test(t)}removeErroneousComponents(){let t=this.getAnDeckTitle3(),e=[];for(let n=0;n<t.length;n++){const r=t[n];let i=r.tmpData.option.textNormal.text;if(this.containsFractionStructure(i))for(let n=0;n<t.length;n++){const i=t[n];r.cid!=i.cid&&this.areComponentsIntersecting(r,i)&&e.push(r.cid)}}this.list=this.list.filter((t=>!e.includes(t.cid)))}upgradeGroupComponent(){try{let t=this.getAnDeckTitle3(),e=this.list.filter((t=>"AnDeckTitle3"!=t.viewComName&&"AnDeckHeader3"!=t.viewComName&&"AnTextNormal"!=t.viewComName)),n=[],r=[];for(let i=0;i<t.length;i++){const a=t[i];let o=this.findNearestComponentForPoint(e,a,n);if(o&&o.cid&&n.push(o.cid),o){a.baseData.left=o.baseData.left;let e=this.upgradeComponentHeight(a,t,r);e&&e>=30&&(o.baseData=Object.assign({},o.baseData,{top:a.baseData.top+a.baseData.height+this.clearance}))}}}catch(t){console.error("配置优化(ConfigOptimizer):",t)}}upgradeComponentHeight(e,n,r=[]){const i=e;let a=this.findNearestTitleForPoint(t.cloneDeep(n),i);return a?a.baseData.top-i.baseData.top-this.titleHeqadeHeight:1080-i.baseData.top-this.titleHeqadeHeight}getData(){return this.originData.list=this.list,this.originData.plant=this.plant,this.originData}},GlobalVariables:Pr,Http:(t,e)=>"string"!=typeof t?Promise.reject(new Error("URL should be a string")):In(t,e),Log:cr,agentData:fr,delFetchStatus:Zn,displayGenerator:ti,editItem:xr,emitEvent:Fr,fetchDataByGlobal:Dr,fetchDataByType:wr,filterData:Sr,findItemDeep:$n,findItemDeep2:(e,n,r)=>{let i=!1;const a=e=>{for(let o=0;o<e.length;o++){if(e[o].cid==n){i=e[o],r&&t.remove(e,(t=>t.cid==n));break}if(e[o].children)a(e[o].children);else if(e[o].dynamicChildren){if(e[o].dynamicChildren instanceof Map){let t=Array.from(e[o].dynamicChildren);for(let e=0;e<t.length;e++)if(t[e]instanceof Array){let n=t[e][1];a(n)}}else if(e[o].dynamicChildren instanceof Array){let t=e[o].dynamicChildren;for(let e=0;e<t.length;e++)if(t[e]instanceof Array){let n=t[e][1];a(n)}}}else e[o].stateChildren&&a(e[o].stateChildren)}};return a(e),i||!1},getData:dr,getDataForApi:pr,getDataForSource:vr,getDataForStatic:yr,getDataForZb:mr,getDataForZbCQ:gr,getSessionData:Yn,getStandardData:Fn,getStringVars:qn,getVarDefaultVal:Br,globalVars:Vr,hasVar:Wn,isJSON:jn,recursion:Un,replaceVariable:Er,safeEval:function(t,e,n){const r={};n&&n.forEach((t=>{(null==t?void 0:t.name)&&(r[t.name]=t.value||t.originvalue)}));try{return new Function("data","vars",t)(e,r)}catch(t){return console.error(t),e}},safeEvalForCode:Kn,setFetchStatus:t=>{let e=window.goFetchList;return e||(window.goFetchList={},e=window.goFetchList),e[t]?!e[t]&&void 0:(e[t]={id:t,time:(new Date).getTime()},!0)},setSessionData:Ln,updataGlobalDataSourceForVar:Or,updateComData:Tr,updateGlobalDataSource:Mr}),ni=function(e,n,r,i,a){var o;try{var s={},l=[],c=[],u=[],h=t.cloneDeep(e);return(null===(o=null===window||void 0===window?void 0:window.go)||void 0===o?void 0:o.dev)&&le(e,(function(t){var e,n,r;if(null===(n=null===(e=null==t?void 0:t.tmpData)||void 0===e?void 0:e.actions)||void 0===n?void 0:n.length)for(var i=0,a=null===(r=null==t?void 0:t.tmpData)||void 0===r?void 0:r.actions;i<a.length;i++){var o=a[i];if("toggle"==o.behave){var s=o.toggle;if(null==s?void 0:s.length)for(var l=0,c=s;l<c.length;l++){var u=c[l],h=u.value;(null==h?void 0:h.length)&&(u.value=u.value.map((function(t){return{cid:t.cid,viewComName:t.viewComName,name:t.name,visible:t.visible}})))}}}})),le(h,(function(t){var e,n;if(null===(n=null===(e=null==t?void 0:t.tmpData)||void 0===e?void 0:e.actions)||void 0===n?void 0:n.length){var r=t.tmpData.actions.map((function(t){return t.eventType}));ke({types:r,element:t,actions:l,events:c,eventsComs:u,filter:a})}})),Vr.addVariables(l),l=Vr.getAllVariables(),le(h,(function(t){var e,n=null===(e=null==t?void 0:t.tmpData)||void 0===e?void 0:e.source;ri(n,l,t,s)})),{shareVariableTree:s,globalVars:Vr.getAllVariables(),globalEvents:c.filter((function(t){return t})),eventsComs:u}}catch(t){return console.error("error",t),{}}},ri=function(t,e,n,r){var i,a,o;if(t){var s=t[null==t?void 0:t.type],l=null==t?void 0:t.converse;l&&l.use&&l.data.length&&l.data.map((function(t){var e;(null==t?void 0:t.dependVars)&&(null===(e=null==t?void 0:t.dependVars)||void 0===e?void 0:e.length)&&t.dependVars.map((function(t){ai(r,t,n.cid)}))})),(null==s?void 0:s.inputSql)&&ii(null==s?void 0:s.inputSql,e,n,r),(null==s?void 0:s.url)&&ii(s.url,e,n,r),(null==s?void 0:s.headers)&&(null===(i=null==s?void 0:s.headers)||void 0===i?void 0:i.use)&&(null===(a=null==s?void 0:s.headers)||void 0===a?void 0:a.value)&&ii(null===(o=null==s?void 0:s.headers)||void 0===o?void 0:o.value,e,n,r),(null==s?void 0:s.params)&&ii(null==s?void 0:s.params,e,n,r)}},ii=function(t,e,n,r){"string"!=typeof t&&(t=JSON.stringify(t));var i=t.match(/({{[\w]*}})|((@)[\w]*)/gm);if(i){var a=i.map((function(t){return t.replace(/{{|}}|@/gm,"")}));if(n)for(var o=function(t){var i=a[t];if(!i||!e||e.findIndex((function(t){return t.mapField===i}))<0)return"continue";n&&r&&ai(r,i,n.cid)},s=0;s<a.length;s++)o(s);else{var l=function(t){var i=a[t];return!i||!e||e.findIndex((function(t){return t.mapField===i}))<0?"continue":(n&&r&&ai(r,i,n.cid),{value:!0})};for(s=0;s<a.length;s++){var c=l(s);if("object"==typeof c)return c.value}}}return!1},ai=function(e,n,r){if(e[n]&&t.isArray(e[n])){e[n].push(r);var i=e[n];e[n]=t.uniq(i)}else e[n]=[],e[n].push(r)},oi=function(t){if("string"==typeof t)try{var e=JSON.parse(t);return!("object"!=typeof e||!e)}catch(t){return!1}return!1};var si={delListItem:function(e,n){var r=t.cloneDeep(e.list);"string"==typeof n?re(r,n,!0):n.forEach((function(t){re(r,t,!0)})),e.list=r,e.globalVars=ni(e.list,e.globalConstant,e.sysConst).globalVars},editCloneCache:function(e,n){var r=t.cloneDeep(e.cloneCache);r.length&&r.map((function(t){t.baseData=Object.assign({},t.baseData,n)})),e.cloneCache=r},cloneItem:function(e){if(e.selectd.length>0){e.cloneCache=[];for(var n=function(n){var r=re(e.list,e.selectd[n]);if("boolean"!=typeof r){var i=t.cloneDeep(r);if(i.pid="",(null==i?void 0:i.stateChildren)||(null==i?void 0:i.children))((null==i?void 0:i.stateChildren)?null==i?void 0:i.stateChildren:null==i?void 0:i.children).forEach((function(t){var e,n,r,a,o=t.cid;if(t.cid=Te(),t.pid=i.cid,(null==i?void 0:i.stateChildren)&&(null===(n=null===(e=null==i?void 0:i.tmpData)||void 0===e?void 0:e.option)||void 0===n?void 0:n.children)){var s=null===(a=null===(r=null==i?void 0:i.tmpData)||void 0===r?void 0:r.option)||void 0===a?void 0:a.children.find((function(t){return t.cid==o}));s&&(s.cid=t.cid)}}));e.cloneCache.push(i),window.localStorage.setItem("cloneCache",JSON.stringify(e.cloneCache))}},r=0;r<e.selectd.length;r++)n(r)}},shearItem:function(e,n){if(e.selectd.length>0){e.cloneCache=[];for(var r=0;r<e.selectd.length;r++){var i=re(e.list,e.selectd[r],!0);if("boolean"!=typeof i){var a=t.cloneDeep(i);e.cloneCache.push(a)}}e.selectd=[]}},pasteItem:function(e){var n,r;try{var i=(null===(r=t.cloneDeep(e.cloneCache))||void 0===r?void 0:r.length)?t.cloneDeep(e.cloneCache):JSON.parse(window.localStorage.getItem("cloneCache"));if(i.length>0){var a=[],o={};le(i,(function(t){var e=Te();if(o[t.cid]=e,t.cid=e,t&&t.children)for(var n=0,r=t.children;n<r.length;n++){r[n].pid=t.cid}else if(t.stateChildren)for(var i=0,s=t.stateChildren;i<s.length;i++){s[i].pid=t.cid}if("dynamicComponent"==t.componentType){var l=void 0;t.dynamicChildren instanceof Map?l=t.dynamicChildren.get(t.activeDynamic):t.dynamicChildren instanceof Array&&(l=t.dynamicChildren.find((function(e){return e[0]==t.activeDynamic}))),l.length>1&&(Array.isArray(l[1])?l[1].forEach((function(e){e.pid=t.cid})):l.forEach((function(e){e.pid=t.cid}))),1==l.length&&l.forEach((function(e){e.pid=t.cid}))}a.push(t.cid)})),e.selectd.length>0?we(e.selectd,e.list):De(i),i.forEach((function(t){var e,n,r,i;if(t.baseData.top=t.baseData.top+20,t.baseData.left=t.baseData.left+20,t&&t.hasOwnProperty("stateChildren")&&(null===(n=null===(e=null==t?void 0:t.tmpData)||void 0===e?void 0:e.option)||void 0===n?void 0:n.children))for(var a=function(e){e.pid=t.cid;var n=null===(i=null===(r=null==t?void 0:t.tmpData)||void 0===r?void 0:r.option)||void 0===i?void 0:i.children.find((function(t){return t.disName==e.name}));n&&(n.cid=e.cid)},o=0,s=t.stateChildren;o<s.length;o++){a(s[o])}}));try{var s=Object.keys(o),l=JSON.stringify(i);(null==s?void 0:s.length)&&s.forEach((function(t){var e=o[t];-1!==l.indexOf(t)&&(l=l.replaceAll(null==t?void 0:t.toString(),null==e?void 0:e.toString()))})),i=JSON.parse(l)}catch(t){}(n=e.list).unshift.apply(n,t.cloneDeep(i)),e.selectd=a}}catch(t){console.warn(t)}},updataShow:function(t,e){var n=re(t.list,e);if("boolean"!=typeof n){var r=!n.isShow;he(n,"isShow",r,"")}},changeShow:function(t,e){var n=e.cid,r=e.flag,i=re(t.list,n);i&&he(i,"isShow",r,"")},comToggle:function(t,e){var n=re(t.list,e);n&&fe(n)},updataLock:function(t,e){var n=re(t.list,e);if("boolean"!=typeof n){var r=!n.isLock;he(n,"isLock",r,"")}},breakUp:function(t,e){var n,r;try{if(!e)throw"Please pass in the component CID correctly!";var i=ae(t.list,e),a=re(t.list,e),o=a.baseData;if(isNaN(o.left)||isNaN(o.top))throw new Error("top or left is NAN");var s=me(a,t.list);if(s.map((function(t){return t.pid=""})),i){var l=i.children.findIndex((function(t){return t.cid==e}));i.children.splice(l,1),(n=i.children).push.apply(n,s.reverse())}else{l=t.list.findIndex((function(t){return t.cid==e}));t.list.splice(l,1),(r=t.list).push.apply(r,s.reverse())}}catch(t){console.error(t)}},editGroup:function(t,e){var n,r=e.groupId;e.status;try{if(!r)throw"Please pass in the component CID correctly!";var i=t.list.findIndex((function(t){return t.cid===r})),a=t.list[i],o=me(a);o.map((function(t){return t.pid=""})),t.list.splice(i,1),(n=t.list).push.apply(n,o)}catch(t){console.error(t)}},combination:function(e){t.cloneDeep(e.list);var n,r,i=[],a=[],o=Te(),s=re(e.list,e.selectd[0]);s.pid?console.info("Sorry, only level 2 is supported group"):s.children&&1===e.selectd.length?console.info("Sorry, only level 2 is supported group"):(e.selectd.forEach((function(t){var n=e.list.findIndex((function(e){return e.cid===t}));if(n>-1){i.push(n);var r=e.list.splice(n,1)[0];r.pid=o,a.push(r)}})),n=i.sort((function(t,e){return t-e}))[0],r=1===a.length?t.cloneDeep(a[0].baseData):e.currentArea,Object.assign(r,{angle:0,opacity:100,rotate:0,rotateY:0}),pe(r,a),e.list.splice(n,0,{cid:o,pid:"",isShow:!0,isLock:!1,editer:!1,baseData:r,z:0,toggle:!0,name:"群组",type:"folder",origin:"anov-ui",tmpData:{actions:null,option:null,source:Oe},children:a}),ce(e.list),e.selectd=[o])},moveUp:function(t,e){try{var n=t.list.findIndex((function(t){return t.cid===e}));n>=1?te(t.list,n-1,n):ne(t.list,"up",e)}catch(t){console.error(t)}},moveDown:function(t,e){try{var n=t.list.findIndex((function(t){return t.cid===e}));n>-1&&n<=t.list.length-2?te(t.list,n+1,n):ne(t.list,"down",e)}catch(t){console.error(t)}},moveTop:function(t,e){try{var n=t.list.findIndex((function(t){return t.cid===e}));n>-1&&0!==n?te(t.list,0,n):ne(t.list,"top",e)}catch(t){console.error(t)}},moveBottom:function(t,e){try{var n=t.list.findIndex((function(t){return t.cid===e})),r=t.list.length-1;n>-1&&n!==r?te(t.list,r,n):ne(t.list,"bottom",e)}catch(t){console.error(t)}}};function li(e){var n=[],r=[];le(t.cloneDeep(e),(function(t){var e,i;if(null===(i=null===(e=null==t?void 0:t.tmpData)||void 0===e?void 0:e.actions)||void 0===i?void 0:i.length){var a=t.tmpData.actions.map((function(t){return t.eventType}));ke({types:a,element:t,actions:n,events:r})}}));var i=r.filter((function(t){return t}));return{actions:n,events:i}}var ci={addGlobalSource:function(t,e){var n=e.name,r=e.value,i=Te();t.globalSource.push({key:i,name:n,value:r}),Mr({key:i,name:n,value:r},t.globalVars,t.globalSource,t.list,(function(t){}))},editGlobalSource:function(t,e){var n=this,r=e.key,i=e.value,a=t.globalSource.find((function(t){return t.key==r}));a&&(a.name=e.name,a.value=i,Mr(a,t.globalVars,t.globalSource,t.list,(function(t,e){n.commit("GoCom/updataSourceForComponent",{cid:t.cid,data:e})})))},delGlobalSource:function(t,e){try{var n=t.globalSource.findIndex((function(t){return t.key===e}));-1!==n&&t.globalSource.splice(n,1)}catch(t){console.error("删除错误",t)}},setSyncFlag:function(t,e){t.syncFlag=e},goUpShareVar:function(t,e){t.shareVariable[e.key]=c({},e)},addGoRunVar:function(t,e){try{var n=ni(t.list,t.globalConstant,t.sysConst);t.globalVars=n.globalVars,t.eventsComs=n.eventsComs}catch(t){console.warn(t)}},copyGoVar:function(e,n){try{for(var r=n.mapField,i=(r.toString().trim(),e.globalConstant.filter((function(t){return t.mapField.includes(r)}))),a=1,o=0;o<i.length;o++)a++;var s="".concat(r," (").concat(a,")"),l=e.globalConstant.find((function(t){return t.mapField==r}));if(r&&l){var c=t.cloneDeep(l);c.mapField=s,e.globalConstant.push(c);var u=ni(e.list,e.globalConstant,e.sysConst);e.globalVars=u.globalVars,e.eventsComs=u.eventsComs}}catch(t){console.warn(t)}},goDelShareVar:function(t,e){delete t.shareVariable[e]},signal:function(t,e){},goSynchroDataAll:function(e,n){e.list=t.cloneDeep(n)},goSynchroDataForOption:function(t,e){if(t){var n=e.cid,r=e.value,i=re(t.list,n);"boolean"!=typeof i&&i&&de(i,r)}this.commit("GoCom/execute")},goSynchroData:function(e,n){if(e){var r=n.cid,i=n.attr,a=n.value,o=n.attrModel,s=re(e.list,r);if("boolean"!=typeof s){if(s&&he(s,i,a,o),"actions"===i.toLowerCase()){var l=e.list,c=t.uniqWith(t.concat(li(l).actions,li(e.caseList).actions),t.isEqual),u=t.uniqWith(t.concat(li(l).events,li(e.caseList).events),t.isEqual);Vr.addVariables(c),e.globalVars=Vr.getAllVariables(),e.globalEvents=u,e.pages[e.pageIndex]&&(e.pages[e.pageIndex].globalVars=c),e.pages[e.pageIndex]&&(e.pages[e.pageIndex].globalEvents=u)}if("source"===i){if(!s.tmpData.source)return!1;var h=s.tmpData.source,d=h.type;if("api"===d){var f=h[d].url.match(/{{[\w]*}}|(@)[\w]*/gm);if(f)for(var p=f.map((function(t){return t.replace(/{{|}}|@/gm,"")})),m=function(n){var r=p[n];if(!r||!e.globalVars||e.globalVars.findIndex((function(t){return t.mapField===r}))<0)return"continue";if(e.shareVariableTree||(e.shareVariableTree={}),e.shareVariableTree[r]&&t.isArray(e.shareVariableTree[r])){e.shareVariableTree[r].push(s.cid);var i=e.shareVariableTree[r];e.shareVariableTree[r]=t.uniq(i)}else e.shareVariableTree[r]=[],e.shareVariableTree[r].push(s.cid)},g=0;g<p.length;g++)m(g)}}}}this.commit("GoCom/execute")},goUpdataSysVars:function(t,e){var n={U_CITY:"cityCode",U_COUNTY:"countyCode",U_PROVINCE:"provinceCode",U_PHONE:"userPhone"},r=t.sysConst,i=Object.keys(n);r.map((function(t){if(t.originalValue=t.value,(null==t?void 0:t.name)&&(null==i?void 0:i.includes(t.name))){var r=n[t.name];t.value=e[r],t.originalValue=e[r]}return t})),Vr.addVariables(r)},resetGlobalData:function(t){t.globalVars=t.sysConst,t.globalConstant=[],t.globalSource=[]},updateGlobalRelatedVars:function(t,e){var n=e.run,r=e.gvData;return n.length&&n.forEach((function(t){var e=r.filter((function(e){return e.mapField==t.mapField||e.fork&&e.forkValue==t.mapField}));if(e.length)for(var n=0,i=e;n<i.length;n++){var a=i[n],o=t.value;a.mapField==t.mapField?a.value=o:a.fork&&t.mapField==a.forkValue?(a.converter&&a.converterCode,a.originalValue=o):r.push(t)}})),r}},ui={updataList:function(t,e){var n=e.cid,r=On(e.list,(function(t){var e=re(t,n),r=e.pid,i=ie(t,n),a=function(t){for(var e=0;e<t.length;e++){var n=t[e];Se(n,n.baseData,0,!0)}},o=function(t){return t.reduce((function(t,e){return{left:t.left+e.baseData.left,top:t.top+e.baseData.top}}),{left:0,top:0})},s=function(t,e){void 0===e&&(e=t);for(var n=0;n<t.length;n++){var r=t[n];if(r.children&&Array.isArray(r.children))return 0===r.children.length?(e.splice(n,1),!0):(s(r.children,r.children)&&0===r.children.length&&e.splice(n,1),!0)}};if(i.length>0)if(e.pid=i[0].cid,r){var l=d([re(t,r)],ie(t,r),!0),u=o(l),h=o(i);e.baseData=c(c({},e.baseData),ye(e.baseData,u)),e.baseData=c(c({},e.baseData),ye(e.baseData,h,1)),a(l),a(i)}else{h=o(i);e.baseData=c(c({},e.baseData),ye(e.baseData,h,1)),a(i)}r&&0==i.length&&(e.pid="",function(e,n){var r=ie(t,n),i=re(t,n);if(0===r.length)e.baseData=c(c({},e.baseData),ye(e.baseData,i.baseData));else{r=d([i],r,!0);var s=o(r);e.baseData=c(c({},e.baseData),ye(e.baseData,s))}a(d([i],r,!0))}(e,r)),s(t),ce(t)}));t.list=r},updataListForContrast:function(e,n){var r=n.cid,i=n.list,a=re(i,r);ae(i,r);var o=ae(e.list,r);if(!a.pid){a.pid=o.cid;var s=t.cloneDeep(a.baseData),l=ye(a.baseData,o.baseData,1);Object.assign(a.baseData,l),Se(o,s)}ce(e.list)},updateTree:function(e){for(var n=e.list,r=0;r<n.length;r++){var i=n[r];if(i.pid)(s=re(n,i.pid))&&Object.assign(i.baseData,ye(i.baseData,s.baseData));if(i.children)for(var a=0;a<i.children.length;a++){var o=i.children[a];if(o.pid!=i.cid){var s=re(n,o.pid);if(t.cloneDeep(o.baseData),s){Object.assign(o.baseData,ye(o.baseData,s.baseData));var l=ye(o.baseData,i.baseData,1);Object.assign(o.baseData,l),Se(i,i.baseData)}o.pid=i.cid}}}ce(n)}},hi=Sr,di=function(t,e,n,r,i,a,o){return void 0===n&&(n=!0),u(void 0,void 0,void 0,(function(){var a;return h(this,(function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,Tr(t,n,e,i,(function(t){r&&r(t)}),o)];case 1:return[2,s.sent()];case 2:return a=s.sent(),r&&r(a),console.log("error:11"+a),[3,3];case 3:return[2]}}))}))},fi=function(t,e,n,r,i,a){void 0===a&&(a=!0),t&&Tr(t,a,e,[],(function(e){n({cid:t.clientWidth,data:e})}))},pi=Object.freeze({__proto__:null,Http:function(t,e){return function(t,e){void 0===t&&(t="");var r=n.create({baseURL:t,timeout:3e4,headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"}});return r.interceptors.request.use((function(t){return sessionStorage.getItem("anov-go-token")&&"null"!=sessionStorage.getItem("anov-go-token")&&(t.headers["X-ANOV-ACCESS-TOKEN"]=sessionStorage.getItem("anov-go-token")),sessionStorage.getItem("unify-access-token")&&"null"!=sessionStorage.getItem("unify-access-token")&&(t.headers["X-UNIFY-ACCESS-TOKEN"]=sessionStorage.getItem("unify-access-token")),sessionStorage.getItem("dgcc_authorization")&&"null"!=sessionStorage.getItem("dgcc_authorization")&&(t.headers.dgcc_authorization=sessionStorage.getItem("dgcc_authorization")),"post"===t.method?(t.headers["Content-Type"]="application/json;",t):"get"===t.method?t:"put"===t.method?(t.headers["Content-Type"]="application/json; charset=UTF-8",t):"delete"===t.method?t:void 0}),(function(t){return Promise.reject(t)})),r.interceptors.response.use((function(t){return 200===t.status||t.data.code,e&&e(t),t.data}),(function(t){return e&&e(null==t?void 0:t.response),Promise.reject(t.response)})),r}(t,e)},autoUpdateComData:function(e,n,r){var i,a,o,s,l,c=null===(i=null==e?void 0:e.tmpData)||void 0===i?void 0:i.source,u=null===(o=null===(a=c[null==c?void 0:c.type])||void 0===a?void 0:a.autoUpdate)||void 0===o?void 0:o.open,h=null===(l=null===(s=c[null==c?void 0:c.type])||void 0===s?void 0:s.autoUpdate)||void 0===l?void 0:l.time;u&&t.isNumber(h)&&h>0&&setInterval((function(){di(e,n,!0,(function(t){r({cid:e.cid,data:t})}))}),1e3*h)},axios:n,filterData:hi,getDataForEvaluator:v,parseSource:function(t,e,n,r,i,a,o,s){void 0===r&&(r=!0);console.log(e,n,r,i,"callback"),Tr(e,r,n,[],(function(t){i(t),"AnContainer"===(null==e?void 0:e.viewComName)&&r&&Me(e)}),s)},refreshData:fi,updateComData:di}),mi=function(t){return u(this,void 0,void 0,(function(){var e,n,r,i,a;return h(this,(function(o){switch(o.label){case 0:return o.trys.push([0,3,,4]),e=t.fontUrl,n=t.fontName,r="__custom_font__",(i=document.getElementById(r))?[3,2]:((i=document.createElement("style")).id=r,[4,(document.head||document.getElementsByTagName("head")[0]).appendChild(i)]);case 1:o.sent(),o.label=2;case 2:return i.innerText+="@font-face{font-family:'".concat(n,"';src:url(").concat(e,");}"),[3,4];case 3:return a=o.sent(),console.warn(a),[3,4];case 4:return[2]}}))}))},gi=function(t,e,n){return void 0===e&&(e="jspaths"),u(void 0,void 0,void 0,(function(){var r,i;return h(this,(function(a){switch(a.label){case 0:return r="csspaths"===e?"link":"script",i=document.createElement(r),"jspaths"===e?i.defer=!0:i.rel="stylesheet",i.className=e,i.src=t,(n||document.head||document.getElementsByTagName("head")[0]).appendChild(i),[4,new Promise((function(t,e){i.addEventListener("load",t),i.addEventListener("error",t)}))];case 1:return a.sent(),[2]}}))}))},vi=function(t,e){return void 0===e&&(e="jspaths"),u(void 0,void 0,void 0,(function(){var n;return h(this,(function(r){switch(r.label){case 0:return n="fonts"===e?mi:gi,[4,Promise.all(t.map((function(t){return n(t)})))];case 1:return r.sent(),[2]}}))}))},yi=function(t){return u(void 0,void 0,void 0,(function(){return h(this,(function(e){switch(e.label){case 0:return t.fonts&&t.fonts.length?[4,vi(t.fonts,"fonts")]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))},bi=function(e){var n=e.jspaths,r=void 0===n?[]:n,i=e.csspaths,a=void 0===i?[]:i,o=e.fonts,s=void 0===o?[]:o;return u(void 0,void 0,void 0,(function(){var e;return h(this,(function(n){switch(n.label){case 0:return e=t.uniqBy(s,"fontName"),[4,Promise.all([vi(r,"jspaths"),vi(a,"csspaths"),vi(e,"fonts")])];case 1:return n.sent(),[2]}}))}))},_i=function(){var t;(null==(t=document.getElementById("__custom_font__"))?void 0:t.parentNode)&&t.parentNode.removeChild(t),Array.from(document.getElementsByTagName("script")).filter((function(t){return"jspaths"==t.className})).forEach((function(t){!function(t){for(var e,n=Array.from(document.getElementsByTagName("script")),r=0;r<n.length;r++)n[r]&&n[r].src&&-1!=n[r].src.indexOf(t)&&(null===(e=n[r])||void 0===e?void 0:e.parentNode)&&n[r].parentNode.removeChild(n[r])}(t.src)})),Array.from(document.getElementsByTagName("link")).filter((function(t){return"csspaths"==t.className})).forEach((function(t){!function(t){for(var e,n=Array.from(document.getElementsByTagName("link")),r=0;r<n.length;r++)n[r].href,n[r]&&n[r].href&&-1!=n[r].href.indexOf(t)&&(null===(e=n[r])||void 0===e?void 0:e.parentNode)&&n[r].parentNode.removeChild(n[r])}(t.href)}))};var wi={reset:function(t){t.selectd=[],t.list=[],t.plant=null,t.tw=null,t.watermark=null,t.endnotes=null,t.globalConstant=[]},setFonts:function(t,e){t.resource.fonts.push({fontName:e.name,fontUrl:e.src}),yi(t.resource)},setCaseInfo:function(t,e){t.caseInfo=e},setPageId:function(t,e){t.pageId=e},pagePush:function(t,e){try{var n=e.type,r=e.value,i=["name","path","id"];if(!i.includes(n))throw new Error("页面跳转错误!".concat(n," 不是一个正确的参数 请填以下参数 ").concat(i.join(",")));if(!r)throw new Error("页面跳转错误!".concat(n," 不是一个正确的参数 请填正确的页面路径或者页面名称"));t.toPage={type:n,value:r}}catch(t){console.warn(t)}},updatComs:function(t,e){var n=this,r=re(t.list,e);if("boolean"!=typeof r){(null==r?void 0:r.children)&&(null==r||r.children),di(r,t.globalVars,!0,(function(t){n.commit("GoCom/updataSourceForComponent",{cid:r.cid,data:t})}),t.globalSource)}},updatComsForVar:function(e,n){var r=e.globalVars.map((function(t){var e,r;if((null===(e=null==t?void 0:t.forkValue)||void 0===e?void 0:e.length)&&(null===(r=null==t?void 0:t.forkValue)||void 0===r?void 0:r.includes(n))||t.forkValue==n)return t.mapField})).filter((function(t){return t})),i=[n];(null==r?void 0:r.length)&&(i=t.uniq(d([n],r,!0)));for(var a=[],o=0,s=i;o<s.length;o++){var l=s[o];e.shareVariableTree[l]&&a.push.apply(a,e.shareVariableTree[l])}if(null==a?void 0:a.length)for(var c=0,u=a;c<u.length;c++){var h=u[c];this.commit("GoCom/updatComs",h)}},addConstant:function(e,n){var r=t.find(e.constant,{name:n.name});r?Object.assign(r,n):e.constant.push(n)},editConstant:function(e,n){var r=t.find(e.constant,{name:n.name});r&&Object.assign(r,n)},delConstant:function(e,n){t.remove(e.constant,(function(t){return t.name==n}))},setResource:function(t,e){var n=e.type,r=e.value;t.resource[n]=r,_i(),bi(t.resource)},updataResource:function(t){_i(),bi(t.resource)},resetResource:function(t){t.resource={jspaths:[],csspaths:[],otherpaths:[]}},setData:function(t,e){t.selectd=e.selectd},setList:function(t,e){t.list=e,ce(t.list)},saveDynamicChildren:function(t,e){var n=e.cid,r=e.data,i=e.name,a=t.pages[t.pageIndex].list,o=re(a,n);o&&(o.activeDynamic=i,o.dynamicChildren instanceof Array&&(o.dynamicChildren=new Map(o.dynamicChildren)),o.dynamicChildren.set(i,r))},setTheme:function(t,e){t.theme=e},setPlant:function(t,e){var n=e.attr,r=e.value;t.plant||(t.plant={name:"",theme:null,baseData:{width:1920,height:1080,left:0,top:0},option:null,optionDes:null}),t.plant[n]=r},setPlantHeight:function(t,e){t.plant&&(t.plant.baseData.height=t.plant.baseData.height+e)},reversal:function(e,n){e.undos=[],e.undoRedoPointer=-1;var r=t.cloneDeep(n.globalVars);delete n.globalVars,e=Object.assign(e,n),Vr.addVariables(r),e.globalVars=Vr.getAllVariables(),ce(e.list)},setComTmp:function(t,e){var n=t.list.find((function(t){return t.cid===e[0]}));n.com=e[1],n.tmp=e[2]},setLoading:function(t,e){var n=e.cid,r=e.flag,i=t.list.find((function(t){return t.cid===n}));i&&(i.loading=r)},setMultiple:function(t,e){t.multiple=e},setCaseList:function(t,e){t.caseList=e},updataComponentForList:function(t,e){var n=e.cid,r=e.data,i=t.list,a=re(i,n);"boolean"!=typeof a&&Object.assign(a,r)},updataComponentForCaseList:function(t,e){var n=e.cid,r=e.data,i=t.caseList,a=re(i,n);"boolean"!=typeof a&&Object.assign(a,r)},updataComponent:function(t,e){var n=e.cid,r=e.data,i=t.pages&&t.pages[0]&&t.pages[0].list&&t.pages[0].list.length?t.pages[0].list:t.list,a=re(i,n);"boolean"!=typeof a&&Object.assign(a,r)},updataArea:function(t,e){t.currentArea.left+=e.deltaX,t.currentArea.top+=e.deltaY},updataSource:function(t,e){var n=e.cid,r=e.data,i=re(t.list,n);"boolean"!=typeof i&&("indicatorCQ"===i.tmpData.source.type?i.tmpData.source.indicator.data=r:(console.log("更新数据:"+i.cid),i.tmpData.source[i.tmpData.source.type].data=r))},updataSourceForComponent:function(e,n){var r=n.cid,i=n.data;if(e.list.length){var a=re(e.list,r);"boolean"!=typeof a&&(a.source=t.cloneDeep(i))}},updataAnimationForComponent:function(t,e){var n=e.cid,r=e.data;if(t.list.length){var i=re(t.list,n);"boolean"!=typeof i&&(i.tw=r)}},updataWatermark:function(t,e){t.watermark=e},updataEndnotes:function(t,e){t.endnotes=e},updataAnimation:function(t,e){t.tw=e},setContext:function(t,e){var n=e.cid,r=e.data,i=re(t.list,n);"boolean"!=typeof i&&(i.example=r)},setContextList:function(t,e){var n=e.cid,r=e.data;t.contextList[n]=r},setPosition:function(t,e){ve(t.list.find((function(t){return t.cid===e[0]})),e[1])},setSelect:function(t,e){t.cache=[],t.selectd=e instanceof Array?e:[e],t.selectd.length>1&&t.selectd.forEach((function(e){t.cache.push(t.list.find((function(t){return t.cid===e&&"Other.Plant.Normal"!==t.type})))}))},setActive:function(e,n){var r=t.cloneDeep(n),i=r.id,a=r.multiple,o=r.origin,s=r.ctr,l=t.cloneDeep(e.selectd);if(a){var c=l.includes(i);if(l.length>=1){var u=l.every((function(t){return se(e.list,t,n.id)}));if(!u)return void console.info("sorry Only sibling elements can be selected!")}c?l.splice(l.findIndex((function(t){return t===i})),1):l.push(i),e.selectd=l}else e.selectd=[i];e.selectd.forEach((function(t){var n=re(e.list,t);if(n.pid){var r=re(e.list,n.pid);r&&(r.toggle=!0)}s||(n.toggle=!0)})),e.selectdChangeOrigin=o||""},setCache:function(t){t.cache=[],t.selectd.length>1&&t.selectd.forEach((function(e){t.cache.push(t.list.find((function(t){return t.cid===e})))}))},clearActive:function(t){t.selectd=[]},setMultipleActive:function(t,e){t.selectd=e},syncMenuInfo:function(t){xe(t.menuList,(function(e){var n=10*e.lv+e.index;t.list.filter((function(t){return t.cid===e.id}))[0].z=1e4-n}))},addComs:function(e,n){var r=n.com,i=n.isMobile;"MultiStateComponent"!=r.componentType||r.stateChildren||(r.stateChildren=[]),"dynamicComponent"!=r.componentType||r.dynamicChildren||(r.dynamicChildren=new Map,r.activeDynamic="状态1",r.dynamicChildren.set("状态1",[]),r.lines={h:[],v:[]},"AnGridLayout"==r.viewComName&&r.dynamicChildren.set("状态1",null==r?void 0:r.AnGridChildren)),i?e.list.push(r):e.list.unshift(r),e.menuList=t.cloneDeep(e.list),ce(e.list),this.commit("GoCom/execute")},addComsForParent:function(e,n){var r=n.com,i=n.isMobile,a=n.PID;if("MultiStateComponent"!=r.componentType||r.stateChildren||(r.stateChildren=[]),"dynamicComponent"!=r.componentType||r.dynamicChildren||(r.dynamicChildren=new Map,r.activeDynamic="状态1",r.dynamicChildren.set("状态1",[])),a){var o=re(e.list,a);i?(o.children=[],o.children.push(r)):o.children.unshift(r)}else i?e.list.splice(0,1,r):e.list.unshift(r);e.menuList=t.cloneDeep(e.list),ce(e.list),this.commit("GoCom/execute")},addMyComs:function(e,n){var r;try{var i=n.data,a=n.shareVariableTree,o=n.globalVars,s=n.globalEvents;e.globalVars=t.uniq(t.concat(t.cloneDeep(e.globalVars),o)),e.globalEvents=t.uniq(t.concat(t.cloneDeep(e.globalEvents),s));var l=Object.keys(a),c=Object.keys(e.shareVariableTree),u=t.difference(l,c);u.length?u.forEach((function(n){e.shareVariableTree[n]=t.concat(t.cloneDeep(e.shareVariableTree[n]),a[n])})):e.shareVariableTree=Object.assign(t.cloneDeep(e.shareVariableTree),a),i instanceof Array?(ue(i),(r=e.list).unshift.apply(r,i)):(ue([i]),e.list.unshift(i)),e.menuList=t.cloneDeep(e.list),ce(e.list),this.commit("GoCom/execute")}catch(t){}},addStateChildren:function(t,e){var n=re(t.list,e.pid);n&&n.stateChildren.push(e)},addDynamicChildren:function(t,e){var n=re(t.list,e.pid);n&&n.dynamicChildren.push(e)},arraySwap:function(e,n){var r;try{if(!n||2!=n.length)throw new Error("参数错误,方法接受两个组件的CID组成的数组!");var i=t.cloneDeep(e.list),a=re(i,n[0]),o=re(i,n[1]),s=re(i,a.pid),l={},c=0,u=0;if(o)if("selectContainer"==o.componentType){var h=re(i,n[1]);s?(c=t.findIndex(s.children,(function(t){return t.cid==n[0]})),l=s.children[c],s.children=s.children.filter((function(t){return t.cid!==l.cid}))):(l=re(i,n[0]),i=i.filter((function(t){return t.cid!==l.cid}))),l.cid=Te(),l.pid=h.cid,h.children.push(l)}else if(a.pid||o.pid)if(s)if(c=t.findIndex(s.children,(function(t){return t.cid==n[0]})),l=s.children[c],a.pid!==o.pid){h=re(i,o.pid);u=t.findIndex(h.children,(function(t){return t.cid==n[1]}));f=h.children[u];l.cid=Te(),l.pid=h.cid,f.cid=Te(),f.pid=s.cid,s.children.splice(c,1,f),h.children.splice(u,1,l)}else u=t.findIndex(s.children,(function(t){return t.cid==n[1]})),(r=s.children).splice.apply(r,d([u,1],s.children.splice(c,1,s.children[u]),!1));else{var h=re(i,o.pid);c=t.findIndex(i,(function(t){return t.cid==n[0]})),u=t.findIndex(h.children,(function(t){return t.cid==n[1]})),l=re(i,a.cid);var f=h.children[u];l.cid=Te(),l.pid=h.cid,f.cid=Te(),f.pid=null,i.splice(c,1,f),h.children.splice(u,1,l)}else ee(e.list,n[0],n[1]);else c=t.findIndex(s.children,(function(t){return t.cid==n[0]})),l=s.children[c],s.children.splice(c,1),l.cid=Te(),l.pid=null,i.push(l);e.list=i,ce(e.list)}catch(t){console.warn("组件位置交换发生错误",t)}},changeDynamicState:function(t,e){var n=re(t.list,e.cid);n&&"dynamicComponent"==n.componentType&&(n.dynamicChildren instanceof Array&&n.dynamicChildren.find((function(t){return t[0]==e.activeName}))||n.dynamicChildren instanceof Map&&n.dynamicChildren.has(e.activeName)?n.activeDynamic=e.activeName:console.error(e.activeName+"不是一个正确的状态"))},addAlternateData:function(t,e){t.alternateData[e.pid]||(t.alternateData[e.pid]=[]),t.alternateData[e.pid].push(e)},setOptionForCom:function(t,e){var n;try{var r=e.cid,i=e.key,a=e.value,o=re(t.list,r);if(!o)return;if("string"!=typeof i)return void console.error("key:[".concat(i,"]格式错误"));var s=null===(n=null==o?void 0:o.tmpData)||void 0===n?void 0:n.option,l=i.split(".");s&&(null==l?void 0:l.length)&&l.forEach((function(t,e){s.hasOwnProperty(t)&&(e===l.length-1?s[t]=a:s=s[t])}))}catch(t){console.warn("同步属性发生错误:"+t)}},mergeConfig:function(e,n){n.length>0&&n.forEach((function(t){e.list.unshift(t)})),e.menuList=t.cloneDeep(e.list),ce(e.list),this.commit("GoCom/execute")},updataName:function(t,e){var n=re(t.list,e.cid);n&&(n.name=e.name)},setDynamicActive:function(t,e){e.cid;var n=e.name,r=re(t.list,e.cid);r&&"dynamicComponent"==r.componentType&&(r.activeDynamic=n)},updataScroll:function(t,e){e.cid;var n=e.data,r=re(t.list,e.cid);r&&"dynamicComponent"==r.componentType&&(r.srcollInfo={use:!!(null==n?void 0:n.use)&&(null==n?void 0:n.use),data:(null==n?void 0:n.data)?null==n?void 0:n.data:null})},updataDySetting:function(t,e){e.cid;var n=e.data,r=re(t.list,e.cid);r&&"dynamicComponent"==r.componentType&&(r.dyOption=n)},setCurrentEdited:function(t,e){if(e){var n=re(t.list,e);if("boolean"!=typeof n){var r=me(n);n.children=r}t.currentEditerCid=e}else t.currentEditerCid=""},setDynamicLine:function(e,n){var r=t.cloneDeep(e.list),i=re(r,n.cid);r.length&&"boolean"!=typeof i&&(i.lines=Object.assign({},i.lines,n.lines)),e.list=r}},Di={layout:function(e,n){var r=function(e,n){try{var r=e.map((function(t){var e=re(n,t);if("object"==typeof e)return e;throw"Please check whether the input and output parameters are correct!"}));if(t.every(r,Object))return r;throw"Please check whether the input and output parameters are correct!"}catch(t){return console.error(t),[]}}(e.selectd,e.list);switch(n){case"alignLeft":!function(e,n){1===e.length&&(e[0].baseData.left=0);var r=t.sortBy(e,(function(t){return t.baseData.left})),i=r[0].baseData.left;e.map((function(t){return t.baseData.left=i}))}(r);break;case"alignRight":!function(e,n){if(1===e.length){var r=n.plant?n.plant.baseData:{width:1920,height:1080};e[0].baseData.left=r.width-e[0].baseData.width}var i=t.sortBy(e,(function(t){return t.baseData.left})),a=1*i[i.length-1].baseData.left+1*i[i.length-1].baseData.width;e.map((function(t){return t.baseData.left=a-1*t.baseData.width}))}(r,e);break;case"horizontally":!function(e,n){if(1===e.length){var r=n.plant?n.plant.baseData:{width:1920,height:1080};e[0].baseData.left=r.width/2-e[0].baseData.width/2}var i=t.sortBy(e,(function(t){return t.baseData.left})),a=t.sortBy(e,(function(t){return 1*t.baseData.left+1*t.baseData.width})),o=(1*i[0].baseData.left+(1*a[a.length-1].baseData.left+1*a[a.length-1].baseData.width))/2;e.map((function(t){return t.baseData.left=o-t.baseData.width/2}))}(r,e);break;case"alignTop":!function(e,n){1===e.length&&(e[0].baseData.top=0);var r=t.sortBy(e,(function(t){return t.baseData.top})),i=1*r[0].baseData.top;e.map((function(t){return t.baseData.top=i}))}(r);break;case"alignBottom":!function(e,n){if(1===e.length){var r=n.plant?n.plant.baseData:{width:1920,height:1080};e[0].baseData.top=r.height-e[0].baseData.height}var i=t.sortBy(e,(function(t){return 1*t.baseData.top})),a=1*i[i.length-1].baseData.top+1*i[i.length-1].baseData.height;e.map((function(t){return t.baseData.top=a-1*t.baseData.height}))}(r,e);break;case"verticalCenter":!function(e,n){if(1===e.length){var r=n.plant?n.plant.baseData:{width:1920,height:1080};e[0].baseData.top=r.height/2-e[0].baseData.height/2}var i=t.sortBy(e,(function(t){return t.baseData.top})),a=t.sortBy(e,(function(t){return 1*t.baseData.top+1*t.baseData.height})),o=(1*i[0].baseData.top+(1*a[a.length-1].baseData.top+1*a[a.length-1].baseData.height))/2;e.map((function(t){return t.baseData.top=o-t.baseData.height/2}))}(r,e);break;case"topDistribution":!function(e){if(e.length<3)return console.warn("A minimum of three elements are required for a distribution arrangement"),!1;var n=t.sortBy(e,(function(t){return t.baseData.top})),r=(n[n.length-1].baseData.top-n[0].baseData.top)/(n.length-1);n.map((function(t,e){e>0&&e<n.length-1&&(t.baseData.top=1*n[0].baseData.top+r*e)}))}(r);break;case"bottomDistribution":!function(e){if(e.length<3)return console.warn("A minimum of three elements are required for a distribution arrangement"),!1;var n=t.sortBy(e,(function(t){return t.baseData.top+t.baseData.height})),r=(n[n.length-1].baseData.top+n[n.length-1].baseData.height-(n[0].baseData.top+n[0].baseData.height))/(n.length-1);n.map((function(t,e){e>0&&e<n.length-1&&(t.baseData.top=1*n[0].baseData.top+1*n[0].baseData.height-1*t.baseData.height+r*e)}))}(r);break;case"xCenterDistribution":!function(e){if(e.length<3)return console.warn("A minimum of three elements are required for a distribution arrangement"),!1;var n=t.sortBy(e,(function(t){return t.baseData.left+t.baseData.width/2})),r=1*n[n.length-1].baseData.left+n[n.length-1].baseData.width/2,i=1*n[0].baseData.left+n[0].baseData.width/2,a=(r-i)/(n.length-1);n.map((function(t,e){e>0&&e<n.length-1&&(t.baseData.left=i-t.baseData.width/2+a*e)}))}(r);break;case"leftDistribution":!function(e){if(e.length<3)return console.warn("A minimum of three elements are required for a distribution arrangement"),!1;var n=t.sortBy(e,(function(t){return t.baseData.left})),r=(n[n.length-1].baseData.left-n[0].baseData.left)/(n.length-1);n.map((function(t,e){e>0&&e<n.length-1&&(t.baseData.left=n[0].baseData.left+r*e)}))}(r);break;case"rightDistribution":!function(e){if(e.length<3)return console.warn("A minimum of three elements are required for a distribution arrangement"),!1;var n=t.sortBy(e,(function(t){return t.baseData.left+t.baseData.width})),r=(n[n.length-1].baseData.left+n[n.length-1].baseData.width-(n[0].baseData.left+n[0].baseData.width))/(n.length-1);n.map((function(t,e){e>0&&e<n.length-1&&(t.baseData.left=n[0].baseData.left+n[0].baseData.width-t.baseData.width+r*e)}))}(r);break;case"yCenterDistribution":!function(e){if(e.length<3)return console.warn("A minimum of three elements are required for a distribution arrangement"),!1;var n=t.sortBy(e,(function(t){return t.baseData.top+t.baseData.height/2})),r=1*n[n.length-1].baseData.top+n[n.length-1].baseData.height/2,i=1*n[0].baseData.top+n[0].baseData.height/2,a=(r-i)/(n.length-1);n.map((function(t,e){e>0&&e<n.length-1&&(t.baseData.top=i-t.baseData.height/2+a*e)}))}(r)}}},Si={setPageData:function(t,e){t.pages[0]=e},parasePages:function(t,e){e instanceof Array&&(t.pages=e.map((function(t,e){return t.name||(t.name="页面"+(e+1)),t.path||(t.path="page"+(e+1)),t})))},addPage:function(t,e){var n=t.pages.length+1;e.name="页面"+n,e.path="page"+n,t.pages.push(e),t.pageIndex=t.pages.length-1,t.resource={jspaths:[],csspaths:[],otherpaths:[]},t.globalVars=t.sysConst},setCurrentPageIndex:function(t,e){var n=t.globalEvents,r=t.globalVars,i=t.list,a=t.name,o=t.theme,s=t.plant,l=t.shareVariableTree,c=t.resource;t.pages[t.pageIndex]={globalEvents:n,globalVars:r,list:i,name:a,theme:o,plant:s,shareVariableTree:l,resource:c},t.pageIndex=e},setPageDataForIndex:function(t,e){var n=e.index,r=e.data;t.pages[n]=r},setPageName:function(t,e){t.name=e,t.pages[t.pageIndex].name=e},saveCurrentPageData:function(t){var e=t.globalEvents,n=t.globalVars,r=void 0===n?[]:n,i=t.list,a=t.name,o=t.theme,s=t.plant,l=t.shareVariableTree,c=t.resource;t.pages[t.pageIndex]={globalEvents:e,globalVars:r,list:i,name:a,theme:o,plant:s,shareVariableTree:l,resource:c}},getCurrentPageData:function(t){var e=t.globalEvents,n=t.globalVars,r=t.list,i=t.name,a=t.theme,o=t.plant,s=t.shareVariableTree,l=t.resource;t.pages[t.pageIndex]={globalEvents:e,globalVars:n,list:r,name:i,theme:a,plant:o,shareVariableTree:s,resource:l}}},xi={segmentationContainer:function(e,n){var r=t.cloneDeep(e.list),i=n.containerData,a=n.direction,o=[];if("del"==a)if(i.pid){var s=function(t){if(t.length)for(var e=0;e<t.length;e++)t[e].hasOwnProperty("children")&&t[e].children.length&&t[e].children.map((function(n){t[e].cid=n.pid})),i.pid===t[e].cid?t[e].children.length&&(t[e].children.map((function(t){t.cid!==i.cid&&t.hasOwnProperty("children")&&t.children.length&&(o=t.children)})),t[e].children=[],o.length&&(t[e].children=o)):t[e].hasOwnProperty("children")&&s(t[e].children)};r.length&&s(r)}else r.length&&(r=r.filter((function(t){return t.cid!==i.cid})));else if(i.pid){var l=function(t){for(var e=0;e<t.length;e++)if(i.cid===t[e].cid){t[e].direction=a,1===t[e].children.length&&((o=t[e].children)[0].pid=null,t[e].children=[]);for(var n=0;n<2;n++)t[e].children.push({isLock:!1,isShow:!0,baseData:{width:"col"==a?"100%":"50%",height:"col"==a?"50%":"100%",angle:0,penetrate:0,opacity:100},componentType:"selectContainer",iconClass:"__vue_devtool_undefined__",isAssembly:"__vue_devtool_undefined__",source:[],comData:{actions:[],option:{grid:[{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"}],bgColor:{alpha:1,blue:0,green:0,red:0,flag:1,style:"transparent"},borderRadius:[{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"}],margins:[{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"}]}},tmpData:{},dynamic:0,filePath:"/anov-prod/mgt/go/assembly/162-bgImage.png",origin:"anov-go",name:"容器组件",path:"/index.js",viewComName:"selectContainer",optionComName:"",dataComName:"",eventComName:"",direction:"col",assemblyDeveloper:"",devEmail:"",version:null,devDept:"",toggle:!0,cid:Te(),pid:t[e].cid,nestIndex:0,children:[],isTop:!1,isCol:"col"==a,isRow:"col"!=a,isDragged:!1,grandParentId:i.pid});o.length&&(o[0].cid=Te(),o[0].pid=t[e].children[0].cid,t[e].children[0].children=o)}else t[e].hasOwnProperty("children")&&l(t[e].children)};r.length&&l(r)}else{var c=re(r,i.cid);if(c){c.direction=a,1===c.children.length&&(o=c.children,c.children=[]);for(var u=0;u<2;u++)c.children.push({isLock:!1,isShow:!0,baseData:{width:"col"==a?"100%":"50%",height:"col"==a?"50%":"100%",angle:0,penetrate:0,opacity:100},componentType:"selectContainer",iconClass:"__vue_devtool_undefined__",isAssembly:"__vue_devtool_undefined__",source:[],comData:{actions:[],option:{grid:[{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"}],bgColor:{alpha:1,blue:0,green:0,red:0,flag:1,style:"transparent"},imgOpt:"",bgScaleOpt:3,borderRadius:[{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"}],margins:[{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"}]}},tmpData:{},dynamic:0,filePath:"/anov-prod/mgt/go/assembly/162-bgImage.png",origin:"anov-go",name:"容器组件",path:"/index.js",viewComName:"selectContainer",optionComName:"",dataComName:"",eventComName:"",assemblyDeveloper:"",devEmail:"",version:null,devDept:"",toggle:!0,cid:Te(),pid:c.cid,nestIndex:0,children:[],isTop:!1,isCol:"col"==a,isRow:"col"!=a,isDragged:!1,grandParentId:i.pid});o.length&&(o[0].cid=Te(),o[0].pid=c.children[0].cid,c.children[0].children=o)}}e.list=r}},Ti={goEditShareCom:function(t,e){var n=e.name,r=e.mapping;t.shareComs||(t.shareComs=new Map),t.shareComs.set(n,r)},delShareCom:function(t,e){var n=e.key;t.shareComs&&t.shareComs.has(n)&&t.shareComs.delete(n)}},ki={mutation:{addGoVar:function(t,e){try{Vr.addVariable(e,(function(){t.globalVars=Vr.getAllVariables()}))}catch(t){console.warn(t)}},delGoVar:function(t,e){try{var n=e.mapField;console.log(n,"mapFieldmapField"),Vr.delVariable(n,(function(){t.globalVars=Vr.getAllVariables()}))}catch(t){console.warn(t)}},editGoVar:function(t,e){var n=this;try{Vr.editVariable(e,(function(r){t.globalVars=Vr.getAllVariables(),Or(t.globalSource,e.mapField,t.globalVars,t.list,(function(t){n.commit("GoCom/updatComs",t.cid)})),(null==e?void 0:e.delayUpdate)||n.commit("GoCom/updatComsForVar",e.mapField)}))}catch(t){console.warn(t)}},goEditVar:function(t,e){var n=e.key,r=e.value,i=t.globalVars.find((function(t){return t.mapField==n}));i&&(i.originalValue=r,i.update=!0,this.commit("GoCom/editGoVar",i))},goUpdataSysVars:function(t,e){var n={U_CITY:"cityCode",U_COUNTY:"countyCode",U_PROVINCE:"provinceCode",U_PHONE:"userPhone"},r=t.sysConst,i=Object.keys(n);r.map((function(t){if(t.originalValue=t.value,(null==t?void 0:t.name)&&(null==i?void 0:i.includes(t.name))){var r=n[t.name];t.value=e[r],t.originalValue=e[r]}return t})),Vr.addVariables(r)},updateGlobalVars:function(t,e){t.globalVars=e},updataVariables:function(t){t.globalVars=Vr.getAllVariables()}},actions:{updateGlobalVarsAction:function(t){(0,t.commit)("updateGlobalVars",Vr.getAllVariables())},goEditVar:function(t,e){(0,t.commit)("editGoVar",{mapField:e.key,originalValue:e.value})}}},Ci=c(c(c(c(c(c(c(c(c(c(c({},f),Mn),si),ci),ui),wi),Di),Si),xi),Ti),ki.mutation),Ei=c({updataList:function(t,e){var n=t.commit;e&&n("updataList",e),n("updateTree")},updataBaseData:function(t,e){var n=t.commit;e&&n("updataBaseData",e)},setActive:function(t,e){var n=t.commit;e&&n("setActive",e)},setSyncFlag:function(t,e){var n=t.commit;e&&n("setSyncFlag",e)},execute:function(t,e){var n=t.commit;e&&n("execute",e)},updataAnimationForComponent:function(t,e){var n=t.commit;e&&n("updataAnimationForComponent",e)},updataAnimation:function(t,e){(0,t.commit)("updataAnimation",e)},setOptionForCom:function(t,e){(0,t.commit)("setOptionForCom",e)},updatComs:function(t,e){var n=t.commit;setTimeout((function(){n("updatComs",e)}))},updatComsForVar:function(e,n){var r=e.dispatch,i=e.state,a=i.globalVars.map((function(t){var e,r;if((null===(e=null==t?void 0:t.forkValue)||void 0===e?void 0:e.length)&&(null===(r=null==t?void 0:t.forkValue)||void 0===r?void 0:r.includes(n))||t.forkValue==n)return t.mapField})).filter((function(t){return t})),o=[n];(null==a?void 0:a.length)&&(o=t.uniq(d([n],a,!0)));for(var s=[],l=0,c=o;l<c.length;l++){var u=c[l];i.shareVariableTree[u]&&s.push.apply(s,i.shareVariableTree[u])}if(null==s?void 0:s.length)for(var h=0,f=s;h<f.length;h++){r("updatComs",f[h])}},goEditShareCom:function(t,e){var n=t.commit;t.state,n("goEditShareCom",e)},delShareCom:function(t,e){var n=t.commit;t.state,n("delShareCom",e)},updataSource:function(t,e){var n=t.commit;t.state,n("updataSource",e)}},ki.actions),Ai={getCurrentPage:function(t){return t.pages.length?t.pages[t.pageIndex]:[]},globalSourceTree:function(e){if(e.list.length&&e.globalSource.length){var n=[];return le(t.cloneDeep(e.list),(function(t){var e,r,i;if("globalData"==(null===(r=null===(e=null==t?void 0:t.tmpData)||void 0===e?void 0:e.source)||void 0===r?void 0:r.type)){var a=null===(i=null==t?void 0:t.tmpData)||void 0===i?void 0:i.source.globalData;n.push({name:t.name,cid:t.cid,sourceId:a.id,viewComName:t.viewComName})}})),n}return[]}},Oi={namespaced:!0,state:s,mutations:Ci,actions:Ei,getters:Ai},Mi=function(){function t(){}return t.setAppStore=function(e){t.store=e},t.prototype.getState=function(){return t.store.state[t.storeModule]},t.prototype.mapState=function(e){return Ni(t.storeModule,e)},t.prototype.mapGetters=function(e){return Vi(t.storeModule,e)},t.prototype.mapMutations=function(e){return Pi(t.storeModule,e)},t.prototype.callState=function(e){return t.store.state[t.storeModule][e]},t.prototype.callGetter=function(e,n){return t.store.getters[t.storeModule+"/"+e]},t.prototype.callMutation=function(e,n,r){r?t.store.commit(t.storeModule+"/"+e,n,!0):t.store.commit(t.storeModule+"/"+e,n)},t.prototype.callAction=function(e,n){t.store.dispatch(t.storeModule+"/"+e,n)},t.storeModule="GoCom",t}(),Ni=Bi((function(t,e){var n;return Ri(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var r=Ii(this.$store,"mapState",t);if(!r)return;e=r.context.state,n=r.context.getters}return"function"==typeof i?i.call(this,e,n):e[i]},n[r].VuexServer=!0})),n})),Pi=Bi((function(t,e){var n;return Ri(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=this.$store.commit;if(t){var a=Ii(this.$store,"mapMutations",t);if(!a)return;r=a.context.commit}return"function"==typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}})),n})),Vi=Bi((function(t,e){var n={};return Ri(e).forEach((function(e){var r=e.key,i=e.val;i=t+i,n[r]=function(){if(!t||Ii(this.$store,"mapGetters",t)){if("production"===process.env.NODE_ENV||i in this.$store.getters)return this.$store.getters[i];console.error("[VuexServer] unknown getter: ".concat(i))}},n[r].VuexServer=!0})),n}));function Ri(t){return Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}}))}function Bi(t){return function(e,n){return"string"!=typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function Ii(t,e,n){var r=t._modulesNamespaceMap[n];return"production"===process.env.NODE_ENV||r||console.error("[VuexServer] module namespace not found in ".concat(e,"(): ").concat(n)),r}var Fi=function(){function t(t){var e=this;if(this.isLock=!1,this.isShow=!0,this.baseData={left:0,top:0,width:300,height:200,angle:0,opacity:100,rotate:0,rotateY:0},this.componentType="BaseComponent",this.cid=Te(),t){Object.keys(t).forEach((function(n){e[n]=t[n]}));["AnEchartsMap","AnMaptalks","AnEchartsMap1","AnArcgisMapBase","AnAMap1","AnCesium","AnThreeMap3DChina","AnThreeMapForCesium","AnThreeMap","AnGisMap","AnMineMap","MineMapMarkerLayer","MineMapClusterLayer","AnChina3D","AncsAnovGis"].includes(t.viewComName)&&(this.componentType="MultiStateComponent"),"AnDynamic"!==t.viewComName&&"AmDynamic"!==t.viewComName&&"AnContainer"!==t.viewComName&&"AnGridLayout"!==t.viewComName||(this.componentType="dynamicComponent")}}return t.prototype.setIndex=function(t){this.z=t},t}(),ji=function(){function e(t){this.vueServer=t,this.loadScript=gi}return e.setStore=function(t){this.store=t},e.prototype.loadComponents=function(e){var n=e&&e.list?e.list:[];le(n,(function(t){t.viewComName&&(t&&t.path&&t.path,t.origin,t.viewComName?t.viewComName:t.rawData.viewComName)})),e&&this.vueServer.callMutation("reversal",t.cloneDeep(e))},e.prototype.addStore=function(t){this.vueServer.callMutation("setActive",{id:t}),this.vueServer.callMutation("addComs",this)},e.prototype._addPlantStore=function(){this.vueServer.callMutation("setPlant",this)},e.prototype._loadComTmp=function(t,e){return u(this,void 0,void 0,(function(){var n,r,i=this;return h(this,(function(a){switch(a.label){case 0:if(window[e])return[3,5];n=function(e){var n;return h(this,(function(r){switch(r.label){case 0:return n=t[e],[4,new Promise((function(t){t(i._load(n))}))];case 1:return r.sent(),[2]}}))},r=0,a.label=1;case 1:return r<t.length?[5,n(r)]:[3,4];case 2:a.sent(),a.label=3;case 3:return r++,[3,1];case 4:window[e]=e,a.label=5;case 5:return[2]}}))}))},e.prototype._load=function(t){return u(this,void 0,void 0,(function(){var e=this;return h(this,(function(n){return[2,new Promise((function(n){n(e.loadScript(t))}))]}))}))},e}(),Li=function(){function t(t){var e=t.dbName,n=t.tables,r=t.version,i=void 0===r?1:r,a=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["dbName","tables","version"]);this.dbName=e,this.tables=n,this.version=i,this.openDB(c({dbName:e,tables:n,version:i},a))}return t.deleteDB=function(t){var e;null===(e=window.indexedDB)||void 0===e||e.deleteDatabase(t)},t.prototype.deleteItem=function(t,e,n){var r=this.storage.transaction(t,"readwrite").objectStore(t).delete(e);return r.onsuccess=function(t){"function"==typeof n&&n(t)},r},t.prototype.getItem=function(t,e,n){var r=this.storage.transaction(t,"readwrite").objectStore(t),i=null;return(i=e?r.get(e):r.getAll()).onsuccess=function(t){var e;"function"==typeof n&&n(null===(e=null==t?void 0:t.target)||void 0===e?void 0:e.result)},i.onerror=function(t){console.error(t),n(t)},i},t.prototype.setItem=function(t,e,n,r){var i=this.storage.transaction(t,"readwrite").objectStore(t).put(n,e);return i.onsuccess=function(t){"function"==typeof r&&r(t)},i.onerror=function(t){"function"==typeof r&&r(t)},i},t.prototype.get=function(t,e){return this.getItem(this.tables[0],t,e)},t.prototype.set=function(t,e,n){return this.setItem(this.tables[0],t,e,n)},t.prototype.delete=function(t,e){return this.deleteItem(this.tables[0],t,e)},t.prototype.clear=function(t,e){var n=this.storage.transaction(this.dbName,"readwrite").objectStore(t).clear();return n.onsuccess=function(t){"function"==typeof e&&e(t)},n},t.prototype.getDB=function(){return this.storage},t.prototype.closeDB=function(){this.storage.close()},t.prototype.openDB=function(t){var e=this,n=t.dbName,r=t.tables,i=t.version,a=t.callback,o=window.indexedDB;if(o)if((null==r?void 0:r.length)<1)console.error("表名不能为空");else{var s=o.open(n,i);s.onerror=function(t){var e,n;console.error("打开数据库失败: ".concat(null===(n=null===(e=t.currentTarget)||void 0===e?void 0:e.error)||void 0===n?void 0:n.message)),"function"==typeof a&&a(t)},s.onsuccess=function(t){var n;e.storage=null===(n=t.target)||void 0===n?void 0:n.result,"function"==typeof a&&a(t)},s.onupgradeneeded=function(t){var n;e.storage=null===(n=t.target)||void 0===n?void 0:n.result,r.forEach((function(n){e.storage.objectStoreNames.contains(n)||(e.storage.createObjectStore(n),"function"==typeof a&&a(t))}))}}else console.error("你的浏览器不支持indexedDB")},t}(),Yi=function(){function t(){this.VueServer=new Mi}return t.getInstance=function(){return this.instance||(this.db=new Li({dbName:"AnovGo",tables:["logs"]}),this.instance=new t),this.instance},t.prototype.getAppStore=function(){return t.store},t.setAppStore=function(e){t.store=e,Mi.setAppStore(e),ji.setStore(e)},t.prototype.add=function(t,e,n){e.MultiState?this.VueServer.callMutation("addStateChildren",e):(this.VueServer.callMutation("addComs",{com:e,isMobile:n}),this.VueServer.callMutation("setActive",{id:t}))},t.prototype.addForParent=function(t,e,n,r){this.VueServer.callMutation("addComsForParent",{com:e,PID:n,isMobile:r}),this.VueServer.callMutation("setActive",{id:t})},t.prototype.render=function(t,e){var n=new Fi(t);e?this.add(n.cid,n,!0):this.add(n.cid,n)},t.prototype.renderForParent=function(t,e,n){var r=new Fi(t);void 0!==n?this.addForParent(r.cid,r,e,n):this.addForParent(r.cid,r,e)},t.prototype.reversal=function(t){new ji(new Mi).loadComponents(t)},t.prototype.emitEvent=function(t,e){var n=this,r=this.VueServer.callState("globalEvents"),i=(this.VueServer.callState("globalVars"),this.VueServer.callState("shareVariableTree")),a=this.VueServer.callState("globalSource");this.VueServer.callState("globalConstant");var o=this.VueServer.callState("list");Fr(r,0,i,o,t,(function(t){n.VueServer.callMutation("changeShow",t)}),(function(t){n.VueServer.callMutation("updataSourceForComponent",t)}),e,a)},t}(),zi=Object.defineProperty,Hi=Object.getOwnPropertySymbols,Ui=Object.prototype.hasOwnProperty,qi=Object.prototype.propertyIsEnumerable,Gi=(t,e,n)=>e in t?zi(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Wi=(t,e)=>{for(var n in e||(e={}))Ui.call(e,n)&&Gi(t,n,e[n]);if(Hi)for(var n of Hi(e))qi.call(e,n)&&Gi(t,n,e[n]);return t},$i=(t,e,n)=>(Gi(t,"symbol"!=typeof e?e+"":e,n),n),Ki=(t,e,n)=>new Promise(((r,i)=>{var a=t=>{try{s(n.next(t))}catch(t){i(t)}},o=t=>{try{s(n.throw(t))}catch(t){i(t)}},s=t=>t.done?r(t.value):Promise.resolve(t.value).then(a,o);s((n=n.apply(t,e)).next())})),Zi={gapX:100,gapY:100,offsetLeft:0,offsetTop:0,width:120,height:64,opacity:.15,rotate:-22,fontSize:16,fontStyle:"normal",fontVariant:"normal",fontWeight:"300",fontColor:"#000",fontFamily:"sans-serif",textAlign:"center",textBaseline:"alphabetic",monitor:!0,zIndex:9999,mode:"interval",pack:!0,blindFontSize:16,blindOpacity:.005},Xi="data-watermark-tag",Ji={childList:!0,subtree:!0,attributeFilter:["style","class",Xi]};var Qi=t=>{let e="";return Object.keys(t).forEach((n=>{const r=n.replace(/([A-Z])/g,"-$1").toLowerCase();e+=`${r}:${t[n]};`})),e},ta=(t="")=>{return`${e=t,window.btoa(decodeURI(encodeURIComponent(e)))}-${(new Date).getTime()}-${Math.floor(Math.random()*Math.pow(10,8))}`;var e};var ea=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,na=a((function(t,e){!function(){function e(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}function n(t,e,n){var r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){l(r.response,e,n)},r.onerror=function(){console.error("could not download file")},r.send()}function i(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function a(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(n){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var o="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof r&&r.global===r?r:void 0,s=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=o.saveAs||("object"!=typeof window||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(t,e,r){var s=o.URL||o.webkitURL,l=document.createElement("a");e=e||t.name||"download",l.download=e,l.rel="noopener","string"==typeof t?(l.href=t,l.origin===location.origin?a(l):i(l.href)?n(t,e,r):a(l,l.target="_blank")):(l.href=s.createObjectURL(t),setTimeout((function(){s.revokeObjectURL(l.href)}),4e4),setTimeout((function(){a(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,r,o){if(r=r||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(e(t,o),r);else if(i(t))n(t,r,o);else{var s=document.createElement("a");s.href=t,s.target="_blank",setTimeout((function(){a(s)}))}}:function(t,e,r,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof t)return n(t,e,r);var a="application/octet-stream"===t.type,l=/constructor/i.test(o.HTMLElement)||o.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||a&&l||s)&&"undefined"!=typeof FileReader){var u=new FileReader;u.onloadend=function(){var t=u.result;t=c?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=t:location=t,i=null},u.readAsDataURL(t)}else{var h=o.URL||o.webkitURL,d=h.createObjectURL(t);i?i.location=d:location.href=d,i=null,setTimeout((function(){h.revokeObjectURL(d)}),4e4)}});o.saveAs=l.saveAs=l,t.exports=l}()})),ra=function(e){if(0===e.length)return[];var n=function(e){for(var r,i,a,o,s=0;s<e.length;s++)e[s].tmpData&&(e[s]=Object.assign({},(i=e[s],a=void 0,o=void 0,a=t.cloneDeep(i),o=t.omit(a,["comData","source"]),c({},o)))),e[s]&&e[s].children&&(null===(r=e[s])||void 0===r?void 0:r.children.length)?n(e[s].children):e[s]&&e[s].dynamicChildren&&Array.from(e[s].dynamicChildren).forEach((function(t,e){n(t[1])}))};return n(e),e},ia=function(e){var n=t.cloneDeep(e)?t.cloneDeep(e):{};"string"==typeof e&&(n=JSON.parse(e));var r=[];if(n instanceof Array)n.forEach((function(t,e){var n=JSON.parse(t.caseDetailData)?JSON.parse(t.caseDetailData):{},i=t.caseDetailPath,a=t.caseDetailName,o=n.theme,s=void 0===o?null:o,l=n.globalVars,c=void 0===l?null:l,u=n.shareVariableTree,h=void 0===u?null:u,d=n.plant,f=void 0===d?null:d,p=n.list,m=void 0===p?[]:p,g=n.path,v=void 0===g?"":g;n.name;var y=n.resource,b=void 0===y?{jspaths:[],csspaths:[],otherpaths:[]}:y,_=n.watermark,w=void 0===_?null:_,D=n.tw,S=void 0===D?null:D,x=n.globalSource,T=void 0===x?[]:x,k=n.globalEvents,C=void 0===k?[]:k,E=n.globalConstant,A=void 0===E?[]:E;r.push({path:v||i,theme:s,name:a,resource:b,tw:S,watermark:w,globalSource:T,globalVars:c,globalEvents:C,globalConstant:A,shareVariableTree:h,plant:f,list:ra(m)})}));else{var i=n.theme,a=void 0===i?null:i,o=n.globalVars,s=void 0===o?null:o,l=n.shareVariableTree,c=void 0===l?null:l,u=n.plant,h=void 0===u?null:u,d=n.list,f=void 0===d?[]:d,p=n.resource,m=void 0===p?{jspaths:[],csspaths:[],otherpaths:[]}:p,g=n.watermark,v=void 0===g?null:g,y=n.tw,b=void 0===y?null:y,_=n.globalSource,w=void 0===_?[]:_,D=n.globalEvents,S=void 0===D?[]:D,x=n.globalConstant,T=void 0===x?[]:x;r.push({resource:m,tw:b,watermark:v,globalSource:w,theme:a,globalVars:s,globalEvents:S,shareVariableTree:c,globalConstant:T,plant:h,list:ra(f)})}return r};function aa(t,e){throw new Error("".concat(t,":Expected HTMLElement, got ").concat(e))}var oa=function(){function t(t){this.option=t,this.option.isResize&&window.addEventListener("resize",this.resize.bind(this))}return Object.defineProperty(t,"defaultOption",{get:function(){return t._defaultOption},set:function(e){t._defaultOption=e},enumerable:!1,configurable:!0}),t.getInstance=function(e){return t.instance||(t.instance=new t(e)),t.instance},t.prototype.removeResize=function(){window.removeEventListener("resize",this.resize.bind(this))},t.prototype.resize=function(){var t=this.option,e=t.isEqualScale,n=t.wrapSelector,r=t.viewSelector,i=t.designWidth,a=t.designHeight,o=t.horizontal,s=t.vertical,l=document.querySelector(n);l||aa("wrap",l);var c=l.clientWidth,u=l.clientHeight,h=document.querySelector(r);h||aa("view",h),h.style.position="absolute",h.style.width=i+"px",h.style.height=a+"px";var d,f,p,m,g=Math.min(c/i,u/a);if(e){switch(h.style.transform="scale(".concat(g,")"),o){case"center":d=(c-i)/2+"px";break;case"left":d=(g-1)/2*i+"px";break;case"right":p=(g-1)/2*i+"px"}switch(s){case"center":f=(u-a)/2+"px";break;case"top":f=(g-1)/2*a+"px";break;case"bottom":m=(g-1)/2*a+"px"}}else h.style.transform="scale('".concat(c/i,", ").concat(u/a,"')"),d=(c-i)/2+"px",f=(u-a)/2+"px";f?h.style.top=f:m&&(h.style.bottom=m),d?h.style.left=d:p&&(h.style.right=p)},t._defaultOption={isEqualScale:!0,designWidth:1920,designHeight:1080,wrapSelector:"body",viewSelector:"#app",horizontal:"center",vertical:"center",isResize:!0},t}(),sa=function(){function e(t){this.wrap=null,this.target=null,this.type=0,this.minRatio=1,this.outSize={w:0,h:0},this.inSize={w:0,h:0};var e=t.wrap,n=t.target,r=t.type,i=t.size,a=t.callback;this.size=i,this.type=r,this.initOptions(e,n,i),this.initSize(i),this.layout(),this.scale(a),window.addEventListener("resize",this.reset.bind(this,a))}return e.prototype.reset=function(t){this.initSize(this.size),this.layout(),t?this.scale(t):this.scale()},e.getInstance=function(t){return e.instance||(e.instance=new e(t)),e.instance},e.prototype.removeResize=function(){window.removeEventListener("resize",this.reset.bind(this,void 0))},e.prototype.getDom=function(e){if(t.isElement(e))return e;var n=document.querySelector(e);return t.isElement(n)?n:null},e.prototype.initOptions=function(t,e,n){this.wrap=this.getDom(t),this.target=this.getDom(e),this.target.style.width=n.w+"px",this.target.style.height=n.h+"px",this.verificationDom()},e.prototype.initSize=function(t){this.outSize.w=this.wrap.clientWidth,this.outSize.h=this.wrap.clientHeight,this.inSize=t},e.prototype.verificationDom=function(){null!=this.wrap&&null!=this.target&&this.isChildOf(this.wrap,this.target)||console.warn("Please pass in the DOM element correctly!")},e.prototype.layout=function(){if(0==this.type||3==this.type){var t=(this.outSize.w-this.inSize.w)/2,e=(this.outSize.h-this.inSize.h)/2;this.target.style.top=e+"px",this.target.style.left=t+"px"}else this.wrap.style.display="flex",this.wrap.style["align-items"]="center",this.wrap.style["justify-content"]="center",this.target.style.position="static",1==this.type?(this.wrap.style["overflow-y"]="auto",this.wrap.style["overflow-x"]="hidden"):2==this.type&&(this.wrap.style["overflow-y"]="hidden",this.wrap.style["overflow-x"]="auto")},e.prototype.isChildOf=function(t,e){var n;if(t&&e)for(n=t.parentNode;n;){if(e===n)return!0;n=n.parentNode}return!1},e.prototype.scale=function(t){var e=1,n=1;switch(this.type){case 0:e=Math.min(this.outSize.w/this.inSize.w,this.outSize.h/this.inSize.h),n=Math.min(this.outSize.w/this.inSize.w,this.outSize.h/this.inSize.h);break;case 1:n=e=this.outSize.w/this.inSize.w;break;case 2:e=n=this.outSize.h/this.inSize.h;break;case 3:e=this.outSize.w/this.inSize.w,n=this.outSize.h/this.inSize.h}t&&t([e,n]),this.target.style.transform="scale(".concat(e,",").concat(n,")")},e.prototype.resize=function(){},e}(),la=a((function(t){!function(e){var n=function(){return{escape:function(t){return t.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1")},parseExtension:t,mimeType:function(e){var n=t(e).toLowerCase();return(r="application/font-woff",i="image/jpeg",{woff:r,woff2:r,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:i,jpeg:i,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"})[n]||"";var r,i},dataAsUrl:function(t,e){return"data:"+e+";base64,"+t},isDataUrl:function(t){return-1!==t.search(/^(data:)/)},canvasToBlob:function(t){return t.toBlob?new Promise((function(e){t.toBlob(e)})):function(t){return new Promise((function(e){for(var n=window.atob(t.toDataURL().split(",")[1]),r=n.length,i=new Uint8Array(r),a=0;a<r;a++)i[a]=n.charCodeAt(a);e(new Blob([i],{type:"image/png"}))}))}(t)},resolveUrl:function(t,e){var n=document.implementation.createHTMLDocument(),r=n.createElement("base");n.head.appendChild(r);var i=n.createElement("a");return n.body.appendChild(i),r.href=e,i.href=t,i.href},getAndEncode:function(t){var e=3e4;s.impl.options.cacheBust&&(t+=(/\?/.test(t)?"&":"?")+(new Date).getTime());return new Promise((function(n){var r,i=new XMLHttpRequest;if(i.onreadystatechange=o,i.ontimeout=l,i.responseType="blob",i.timeout=e,i.open("GET",t,!0),i.send(),s.impl.options.imagePlaceholder){var a=s.impl.options.imagePlaceholder.split(/,/);a&&a[1]&&(r=a[1])}function o(){if(4===i.readyState)if(200===i.status){var e=new FileReader;e.onloadend=function(){var t=e.result.split(/,/)[1];n(t)},e.readAsDataURL(i.response)}else r?n(r):c("cannot fetch resource: "+t+", status: "+i.status)}function l(){r?n(r):c("timeout of "+e+"ms occured while fetching resource: "+t)}function c(t){console.error(t),n("")}}))},uid:function(){var t=0;return function(){return"u"+e()+t++;function e(){return("0000"+(Math.random()*Math.pow(36,4)|0).toString(36)).slice(-4)}}}(),delay:function(t){return function(e){return new Promise((function(n){setTimeout((function(){n(e)}),t)}))}},asArray:function(t){for(var e=[],n=t.length,r=0;r<n;r++)e.push(t[r]);return e},escapeXhtml:function(t){return t.replace(/#/g,"%23").replace(/\n/g,"%0A")},makeImage:function(t){return new Promise((function(e,n){var r=new Image;r.onload=function(){e(r)},r.onerror=n,r.src=t}))},width:function(t){var n=e(t,"border-left-width"),r=e(t,"border-right-width");return t.scrollWidth+n+r},height:function(t){var n=e(t,"border-top-width"),r=e(t,"border-bottom-width");return t.scrollHeight+n+r}};function t(t){var e=/\.([^\.\/]*?)$/g.exec(t);return e?e[1]:""}function e(t,e){var n=window.getComputedStyle(t).getPropertyValue(e);return parseFloat(n.replace("px",""))}}(),r=function(){var t=/url\(['"]?([^'"]+?)['"]?\)/g;return{inlineAll:function(t,n,a){return o()?Promise.resolve(t):Promise.resolve(t).then(r).then((function(e){var r=Promise.resolve(t);return e.forEach((function(t){r=r.then((function(e){return i(e,t,n,a)}))})),r}));function o(){return!e(t)}},shouldProcess:e,impl:{readUrls:r,inline:i}};function e(e){return-1!==e.search(t)}function r(e){for(var r,i=[];null!==(r=t.exec(e));)i.push(r[1]);return i.filter((function(t){return!n.isDataUrl(t)}))}function i(t,e,r,i){return Promise.resolve(e).then((function(t){return r?n.resolveUrl(t,r):t})).then(i||n.getAndEncode).then((function(t){return n.dataAsUrl(t,n.mimeType(e))})).then((function(r){return t.replace(function(t){return new RegExp("(url\\(['\"]?)("+n.escape(t)+")(['\"]?\\))","g")}(e),"$1"+r+"$3")}))}}(),i=function(){return{resolveAll:function(){return t().then((function(t){return Promise.all(t.map((function(t){return t.resolve()})))})).then((function(t){return t.join("\n")}))},impl:{readAll:t}};function t(){return Promise.resolve(n.asArray(document.styleSheets)).then((function(t){var e=[];return t.forEach((function(t){try{n.asArray(t.cssRules||[]).forEach(e.push.bind(e))}catch(e){console.log("Error while reading CSS rules from "+t.href,e.toString())}})),e})).then((function(t){return t.filter((function(t){return t.type===CSSRule.FONT_FACE_RULE})).filter((function(t){return r.shouldProcess(t.style.getPropertyValue("src"))}))})).then((function(e){return e.map(t)}));function t(t){return{resolve:function(){var e=(t.parentStyleSheet||{}).href;return r.inlineAll(t.cssText,e)},src:function(){return t.style.getPropertyValue("src")}}}}}(),a=function(){return{inlineAll:function e(i){return i instanceof Element?a(i).then((function(){return i instanceof HTMLImageElement?t(i).inline():Promise.all(n.asArray(i.childNodes).map((function(t){return e(t)})))})):Promise.resolve(i);function a(t){var e=t.style.getPropertyValue("background");return e?r.inlineAll(e).then((function(e){t.style.setProperty("background",e,t.style.getPropertyPriority("background"))})).then((function(){return t})):Promise.resolve(t)}},impl:{newImage:t}};function t(t){return{inline:function(e){return n.isDataUrl(t.src)?Promise.resolve():Promise.resolve(t.src).then(e||n.getAndEncode).then((function(e){return n.dataAsUrl(e,n.mimeType(t.src))})).then((function(e){return new Promise((function(n,r){t.onload=n,t.onerror=r,t.src=e}))}))}}}}(),o={imagePlaceholder:void 0,cacheBust:!1},s={toSvg:l,toPng:function(t,e){return c(t,e||{}).then((function(t){return t.toDataURL()}))},toJpeg:function(t,e){return c(t,e=e||{}).then((function(t){return t.toDataURL("image/jpeg",e.quality||1)}))},toBlob:function(t,e){return c(t,e||{}).then(n.canvasToBlob)},toPixelData:function(t,e){return c(t,e||{}).then((function(e){return e.getContext("2d").getImageData(0,0,n.width(t),n.height(t)).data}))},impl:{fontFaces:i,images:a,util:n,inliner:r,options:{}}};function l(t,e){return function(t){void 0===t.imagePlaceholder?s.impl.options.imagePlaceholder=o.imagePlaceholder:s.impl.options.imagePlaceholder=t.imagePlaceholder;void 0===t.cacheBust?s.impl.options.cacheBust=o.cacheBust:s.impl.options.cacheBust=t.cacheBust}(e=e||{}),Promise.resolve(t).then((function(t){return u(t,e.filter,!0)})).then(h).then((function(t){e.bgcolor&&(t.style.backgroundColor=e.bgcolor);e.width&&(t.style.width=e.width+"px");e.height&&(t.style.height=e.height+"px");e.style&&Object.keys(e.style).forEach((function(n){t.style[n]=e.style[n]}));return t})).then((function(r){return function(t,e,r){return Promise.resolve(t).then((function(t){return t.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),(new XMLSerializer).serializeToString(t)})).then(n.escapeXhtml).then((function(t){return'<foreignObject x="0" y="0" width="100%" height="100%">'+t+"</foreignObject>"})).then((function(t){return'<svg xmlns="http://www.w3.org/2000/svg" width="'+e+'" height="'+r+'">'+t+"</svg>"})).then((function(t){return"data:image/svg+xml;charset=utf-8,"+t}))}(r,e.width||n.width(t),e.height||n.height(t))}))}function c(t,e){return l(t,e).then(n.makeImage).then(n.delay(100)).then((function(r){var i=function(t){var r=document.createElement("canvas");if(r.width=e.width||n.width(t),r.height=e.height||n.height(t),e.bgcolor){var i=r.getContext("2d");i.fillStyle=e.bgcolor,i.fillRect(0,0,r.width,r.height)}return r}(t);return i.getContext("2d").drawImage(r,0,0),i}))}function u(t,e,r){return r||!e||e(t)?Promise.resolve(t).then((function(t){return t instanceof HTMLCanvasElement?n.makeImage(t.toDataURL()):t.cloneNode(!1)})).then((function(r){return function(t,e,r){var i=t.childNodes;return 0===i.length?Promise.resolve(e):a(e,n.asArray(i),r).then((function(){return e}));function a(t,e,n){var r=Promise.resolve();return e.forEach((function(e){r=r.then((function(){return u(e,n)})).then((function(e){e&&t.appendChild(e)}))})),r}}(t,r,e)})).then((function(e){return function(t,e){var r=e;return r instanceof Element?Promise.resolve().then(i).then(a).then(o).then(s).then(l).then((function(){return r})):r;function i(){if(r instanceof HTMLVideoElement){var e=window.getComputedStyle(t),n=document.createElement("canvas");n.width=parseInt(e.width,10),n.height=parseInt(e.height,10);var i=Math.max(t.videoWidth/n.width,t.videoHeight/n.height),a=t.videoWidth/i,o=t.videoHeight/i,s=n.width/2-a/2,l=n.height/2-o/2;n.getContext("2d").drawImage(t,s,l,a,o);var c=r=document.createElement("img");try{c.src=n.toDataURL()}catch(t){c.src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="}}}function a(){function e(t,e){function r(t,e){n.asArray(t).forEach((function(n){e.setProperty(n,t.getPropertyValue(n),t.getPropertyPriority(n))}))}t.cssText?e.cssText=t.cssText:r(t,e)}e(window.getComputedStyle(t),r.style)}function o(){function e(e){var i=window.getComputedStyle(t,e),a=i.getPropertyValue("content");if(""!==a&&"none"!==a){var o=n.uid();r.className=r.className+" "+o;var s=document.createElement("style");s.appendChild(l(o,e,i)),r.appendChild(s)}function l(t,e,r){var i="."+t+":"+e,a=r.cssText?o(r):s(r);return document.createTextNode(i+"{"+a+"}");function o(t){var e=t.getPropertyValue("content");return t.cssText+" content: "+e+";"}function s(t){return n.asArray(t).map(e).join("; ")+";";function e(e){return e+": "+t.getPropertyValue(e)+(t.getPropertyPriority(e)?" !important":"")}}}}[":before",":after"].forEach((function(t){e(t)}))}function s(){t instanceof HTMLTextAreaElement&&(r.innerHTML=t.value),t instanceof HTMLInputElement&&r.setAttribute("value",t.value)}function l(){r instanceof SVGElement&&(r.setAttribute("xmlns","http://www.w3.org/2000/svg"),r instanceof SVGRectElement&&["width","height"].forEach((function(t){var e=r.getAttribute(t);e&&r.style.setProperty(t,e)})))}}(t,e)})):Promise.resolve()}function h(t){return a.inlineAll(t).then((function(){return t}))}t.exports=s}()})),ca=function(t){if(!t)return!1;return 1==new RegExp(/http(s)?:\/\/([\w-]+\.)+[\w-]+(\/[\w- .\/?%&=]*)?/).test(t)},ua=function(t){for(var e="",n=new Uint8Array(t),r=n.byteLength,i=0;i<r;i++)e+=String.fromCharCode(n[i]);return"data:image/jpeg;base64,".concat(window.btoa(e))},ha=function(t,e){void 0===e&&(e="screenshot.jpeg");try{for(var n=t.split(","),r=n[0].match(/:(.*?);/)[1],i=atob(n[1]),a=i.length,o=new Uint8Array(a);a--;)o[a]=i.charCodeAt(a);return new File([o],e,{type:r})}catch(t){console.error("dataURLtoFile:数据转换错误 : "+t)}},da=function(t,e){return u(void 0,void 0,void 0,(function(){var n;return h(this,(function(r){switch(r.label){case 0:return r.trys.push([0,11,,12]),"File"!=e||"string"!=typeof t?[3,2]:[4,ha(t)];case 1:case 3:case 5:case 7:return[2,r.sent()];case 2:return"File"!=e||"[object ArrayBuffer]"!=t.toString()?[3,4]:[4,new File([t],"screenshot.jpeg")];case 4:return"Base64"!=e||"string"!=typeof t?[3,6]:[4,t];case 6:return"Base64"!=e||"[object ArrayBuffer]"!=t.toString()?[3,8]:[4,ua(t)];case 8:return[4,new Error("transformData: 转换发生错误")];case 9:throw r.sent();case 10:return[3,12];case 11:return n=r.sent(),console.log(n),[3,12];case 12:return[2]}}))}))},fa=function(t,e,r,i){return u(void 0,void 0,void 0,(function(){return h(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,n({url:t,method:"GET",responseType:"arraybuffer",params:{url:e,dom:r,quality:i}})];case 1:return[2,a.sent()];case 2:return a.sent(),console.warn("请求截图服务器发生错误,请检查地址及参数是否正确!",{url:t,path:e,dom:r,quality:i}),[2,null];case 3:return[2]}}))}))},pa=function(t,e){return u(void 0,void 0,void 0,(function(){var n,r;return h(this,(function(i){switch(i.label){case 0:if(i.trys.push([0,2,,3]),!(n=document.querySelector(t)))throw new Error("domToImg:"+t+" dom未被找到!");return[4,la.toJpeg(n,{style:{transform:"scale(1)",position:"static"},quality:e})];case 1:return[2,i.sent()];case 2:return r=i.sent(),console.warn(r),[3,3];case 3:return[2]}}))}))},ma=function(t){return"".concat(t>15?"":0).concat(t.toString(16))},ga=function(t){var e=t.r,n=t.g,r=t.b,i=t.a,a=void 0===i?1:i;return"#".concat(ma(e)).concat(ma(n)).concat(ma(r)).concat(1===a?"":ma(Math.floor(255*a)))},va=function(t){var e=t.r,n=t.g,r=t.b;return"rgb(".concat(e,",").concat(n,",").concat(r,")")},ya=function(t,e){void 0===e&&(e=1e4);var n=t.r,r=t.g,i=t.b,a=t.a,o=void 0===a?1:a;return"rgba(".concat(n,",").concat(r,",").concat(i,",").concat(Math.floor(o*e)/e,")")},ba=function(t){var e=t.slice(1),n=1;3===e.length&&(e="".concat(e[0]).concat(e[0]).concat(e[1]).concat(e[1]).concat(e[2]).concat(e[2])),8===e.length&&(n=parseInt(e.slice(6),16)/255,e=e.slice(0,6));var r=parseInt(e,16);return{r:r>>16&255,g:r>>8&255,b:255&r,a:n}},_a=function(t){var e=t.match(/(\d(\.\d+)?)+/g)||[],n=e.map((function(t){return parseInt(t,10)}));return{r:n[0],g:n[1],b:n[2],a:parseFloat(e[3])}},wa=function(t){if(t.startsWith("#"))return ba(t);if(t.startsWith("rgb"))return _a(t);if("transparent"===t)return ba("#00000000");throw new Error("color string error: ".concat(t))},Da=new Map([["E1001","系统未知错误"],["E1002","vue逻辑错误"],["E1003","JavaScript错误"],["E1004","静态资源加载错误"],["E1005","请求错误"],["E1006","Promise错误"]]),Sa=function(t,e,n,r){void 0===r&&(r="null"),xa({code:t,type:Da.get("".concat(t)),msg:e,router:n.currentRoute.value.fullPath,file:r,createTime:(new Date).toLocaleString()})},xa=function(t){var e=localStorage.getItem("ERROR");if(e){var n=JSON.parse(e);Ta(n),n.length>50?(n[0]=t,Ta(n)):n.push(t),localStorage.setItem("ERROR",JSON.stringify(n))}else localStorage.setItem("ERROR",JSON.stringify([t]))},Ta=function(t){t.sort((function(t,e){return t.createTime>e.createTime?1:-1}))},ka=Object.freeze({__proto__:null,RecursiveList:xe,Scale:sa,SizeAdaption:oa,UpdataForContainer:Me,Watermark:class{constructor(t={}){$i(this,"options"),$i(this,"container"),$i(this,"watermarkContent"),$i(this,"watermarkDom"),$i(this,"style"),$i(this,"watermarkTag"),$i(this,"shadowRoot"),$i(this,"mutationObserver"),$i(this,"_isAgainRender",(t=>{if("attributes"===t.type){if(t.attributeName===Xi)return!0;if(this.watermarkTag===this._getNodeRandomId(t.target))return!0}return!(!t.removedNodes.length||this.watermarkTag!==this._getNodeRandomId(t.removedNodes[0]))})),$i(this,"_getNodeRandomId",(t=>{var e,n;return null==(e=null==t?void 0:t.dataset)?void 0:e[(n=Xi,n.split("-").slice(1).reduce(((t,e,n)=>0===n?e:`${t}${e[0].toUpperCase()+e.slice(1)}`)))]})),$i(this,"_destroyMutationObserver",(()=>{this.mutationObserver&&(this.mutationObserver.takeRecords(),this.mutationObserver.disconnect(),this.mutationObserver=null)})),$i(this,"_getWatermarkDom",(t=>Ki(this,null,(function*(){this.watermarkDom||(this.watermarkDom=document.createElement("div")),"number"==typeof t&&t&&(this.style.height=`${t}px`);const e=yield function(t){const{text:e,gapX:n,gapY:r,offsetTop:i,offsetLeft:a,width:o,height:s,rotate:l,opacity:c,fontSize:u,fontStyle:h,fontVariant:d,fontWeight:f,fontFamily:p,fontColor:m,textAlign:g,textBaseline:v,image:y,blindText:b,blindFontSize:_,blindOpacity:w}=t;return new Promise(((t,D)=>{const S=document.createElement("canvas"),x=S.getContext("2d"),T=1*(Number(n)+Number(o)),k=1*(Number(r)+Number(s)),C=Number(a)||Number(n)/2,E=Number(i)||Number(r)/2;if(S.setAttribute("width",`${T}px`),S.setAttribute("height",`${k}px`),x){const n=1*o,r=1*s;if(x.translate(1*C,1*E),x.rotate(Math.PI/180*Number(l)),b&&(x.globalAlpha=w,x.font=`${_}px normal`,x.fillText(b,0,0)),x.globalAlpha=c,y){const e=new Image;return e.crossOrigin="anonymous",e.referrerPolicy="no-referrer",e.src=y,void(e.onload=()=>{x.drawImage(e,0,0,n,r),t({url:x.canvas.toDataURL(),width:T,height:k})})}const i=Array.isArray(e)?e:[e],a=i.map((t=>x.measureText(t).width)),h=Math.max(...a),d=1*Number(u);x.textAlign=g,x.textBaseline=v,x.fillStyle=m,x.font=A(`${d}px`),h>o&&(x.font=A(d/2+"px"));const f=d+5;let p=(r-(u*i.length+5*(i.length-1)))/2;p=p<0?0:p;for(let t=0;t<i.length;t++)x.fillText(i[t]||"",n/2,p+f*t);t({url:x.canvas.toDataURL(),width:T,height:k})}function A(t){return`${h} ${d} ${f} ${t} ${p}`}return D()}))}(this.options);if(null==e?void 0:e.url){const t=e.url;"repeat"===this.options.mode?this.style.backgroundImage=`url(${t})`:(this.style.backgroundImage=`url(${t}), url(${t})`,this.style.backgroundRepeat="repeat, repeat",this.style.backgroundPosition=`${e.width/2}px ${e.height/2}px, 0 0`),this.options.container||(this.style.position="fixed",this.style.height=void 0),this.watermarkDom.setAttribute("style",Qi(this.style))}return this.watermarkDom.setAttribute(Xi,this.watermarkTag),this.watermarkDom})))),$i(this,"_getWatermarkHeight",(()=>{if(!this.container)return 0;let t=0;const{scrollHeight:e=0,clientHeight:n=0}=this.options.container?this.container.parentNode:this.container;return e>n&&(t=Math.max(e,n)),t})),this.options=Object.assign({},Zi,t),this.style={position:"absolute",left:0,top:0,right:0,bottom:0,pointerEvents:"none",overflow:"hidden",backgroundColor:"transparent",backgroundRepeat:"repeat"},this.style.zIndex=this.options.zIndex,this.watermarkTag=ta("watermark"),this.mutationObserver=null,this._render()}update(t={}){this.options=Wi(Wi({},this.options),t),this.style.zIndex=this.options.zIndex,this._render()}show(){this.watermarkDom&&(this.style.display="block",this.watermarkDom.setAttribute("style",Qi(this.style)))}hide(){this.watermarkDom&&(this.style.display="none",this.watermarkDom.setAttribute("style",Qi(this.style)))}destroy(){this.shadowRoot=void 0,this.watermarkContent&&(this.watermarkContent.remove(),this.watermarkContent=void 0),this.watermarkDom&&(this.watermarkDom.remove(),this.watermarkDom=void 0),this._destroyMutationObserver()}_render(){return Ki(this,null,(function*(){this._destroyMutationObserver(),this.container=((t,e,n={},r)=>{let i;if("string"==typeof t){if(i=document.getElementById(t),!i)throw new Error(`水印挂载节点未找到,请检查#${t}是否存在`)}else i=null!=t?t:document.body;i.setAttribute(Xi,e);const a=Wi({position:"relative"},n);return r||delete a.position,i.setAttribute("style",Qi(a)),i})(this.options.container,this.watermarkTag,this.options.containerStyle,this.options.pack),this.watermarkContent||(this.watermarkContent=(t=>{const e=document.createElement("div");return e.setAttribute("style",Qi({pointerEvents:"none"})),e.setAttribute(Xi,t),e})(this.watermarkTag),this.container.append(this.watermarkContent));const t=this._getWatermarkHeight();if(this.watermarkDom=yield this._getWatermarkDom(t),this.watermarkContent){const t=this.watermarkContent.childNodes||[];for(let e=0;e<t.length;e++)this.watermarkContent.removeChild(t[e])}"function"==typeof this.watermarkContent.attachShadow?this.shadowRoot||(this.shadowRoot=this.watermarkContent.attachShadow({mode:"open"})):this.shadowRoot=this.watermarkContent,this.shadowRoot.append(this.watermarkDom),ea&&this.options.monitor&&(this.mutationObserver=new ea((t=>{t.forEach((t=>{if(this._isAgainRender(t))return this.destroy(),void this._render()}))})),this.mutationObserver.observe(this.container,Ji),this.shadowRoot&&this.mutationObserver.observe(this.shadowRoot,Ji))}))}},arraySwap:te,arraySwapDeep:ne,arraySwapForId:ee,breakUp:me,checkBaseData:Qt,checkVar:function(t,e){var n,r,i,a=!1,o=t.type,s=t.converse,l=t[o];if((null==s?void 0:s.use)&&(null===(n=null==s?void 0:s.data)||void 0===n?void 0:n.length))for(var c=0,u=s.data;c<u.length;c++){if((null==(v=u[c])?void 0:v.use)&&v.dependVars.includes(e)){a=!0;break}}if(a)return a;var h="",d="",f="";"api"==o&&(h=l.url,(null===(r=l.headers)||void 0===r?void 0:r.use)&&(d=l.headers.value),f=l.params),"datasource"==o&&(h=l.inputSql),"indicator"==o&&((null===(i=l.headers)||void 0===i?void 0:i.use)&&(d=l.headers.value),f=l.params);for(var p=/({{[\w]*}})|((@)[\w]*)/gm,m=0,g=[h,d,f];m<g.length;m++){var v,y=(v=g[m]).match(p);if((null==y?void 0:y.length)&&y.find((function(t){return t=="{{".concat(e,"}}")||t=="@".concat(e)}))){a=!0;break}}return a},comToggle:fe,decrypAES:function(t){var e=Xt.enc.Utf8.parse(Ce),n=Xt.enc.Utf8.parse(Ee);return Xt.AES.encrypt(t,e,{iv:n,mode:Xt.mode.CBC,padding:Xt.pad.Pkcs7}).toString()},decrypt:function(t){var e=new $t;return e.setPrivateKey("MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQClaeLu4thVXyLI\nM9NHpmxqP7YEcKfjFPMV5UcAPNN20GIUf2Lh8p4MrQh9s9X/1MZ5Fg1+XSpJ90u1\nT7VkjOamoemlp26SaTn41sEbheb+UBmBW3d1QitLJqbFWPCfKY3s8t3FpI5L+aBT\npIMYyE1MzvoBcplldYwrXZQJe8qSH5OQa59xfMt7su2u8c8s6BycQQPYKRYBO4T2\nDwr2PhN44zGElwcFSZcuBToKG59ricF53bz30TuPElrXj4nUgNrZqGsMUtk3sf/9\nmy/CderFVvGbSTmPJap8KmDXdXvMPcPE1aWjcwiHZ8+0gRQNWG6Co93SM+aqq6p0\nE1Oe7YgZAgMBAAECggEABN8LadGQYWM92Pt9u1xxUOezaooOx6c0SW7JGn6wE42r\ndcMSnGjSsrjdySXkpXYUqjg2CYSg3DDGL/667s0fdcTK5q/5l6I1rNhWM4NL/C1L\nsv2IlRFvyPTIcINgAq/smA/G7C0ea6pcSFpN6grsC9kEj8paLhy6FgTZeTYGDyuG\nwI3D7XWZNzWfyQlAsoWEYAmDx72rOuEaeK4W4SMf3BB2g1hJ6fZoKT3ehHozAGcJ\nB7R8k3tGALVYdOqQgXhj8t3vNu1OATG0Q6d4z28e4TwsVunxReTyRcofrgOVwpry\nEmb4C5RYaN/rWxRrL8aW+nB3wAD/PFDacVBz/8RvaQKBgQDX90jqlLtLRVAsqbiS\nSHmX67CqQzNNDWgysQLmF2YmmkGyth4QR+cNEenIEeSSt+vc0VMAbxYY5SVzVCRl\nSZHoKHNlLGmepd3aJw5ZcFnpU86J7aG8fhvgZGEmCR+1JOZU7pUbpTvka0WQC3AK\n2+O7nUYIU65xeOaJVZvUu6My+wKBgQDEE6DrFVMNgI3dDZM0buHMYDJ2mL9F1DZb\n2URxYAlmvjkpaQb9Vq1VXV0ApZ3ItXgIX6cVrJB+MILmrsoxAamFOl/9AYiKnpnb\nYMxxqFYPuME7fzEli041915j6CpMmOwrAq6SrLiZ//hNlobJf76dAY9qyX91BTC8\nBfEWVhnk+wKBgQDT5kb+G+bVSPIMkI6PwVrE7DWQKZV5YdE+A55TgtvwvmP95GEF\nGneixFO8wYmjR6C+LgihoV1uGc+wI/v+AbyOrLnkqDoNtrNB7BZRPUKLBHbfsHCE\nELxrZDJJ7qPUyZrR9LIKyQpF6db8KazKiswc9oiTfP/pSHXyhDP8/Ap55wKBgQC6\njDI9dzxdTEGsXo3/BL+vQpbAXvMb7JsLJ9sGQuiu56xayaHsxdqDrSAezXMg0gYx\ncU/2Pwf6Bw2DjCiyF3LBXpiUjjDqMZsQLThVqmK28oBlqs2HetIeZgtX4jrcRWHs\nSdDtm4bGfdIvf1cdvnwLxMA+SRcKrrV/LegB6EkaoQKBgEwE4rllfRxOSGaF47ew\nRxTLGphZmxhLDsx0fMOHflx/BnGnxruBLEhdv3mlp12YMmb2s6kwFJvngLq4fZll\nTmC7BW3Z9h8XsL9j2xtID+5gsxYHHOCcdbzGuQV5KWb51cBym7EP9qk/3NP8w3/+\nH0iKrgAII5Ym0yh41dGL5HCo"),e.decrypt(t)},encrypt:function(t){var e=new $t;return e.setPublicKey("MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApWni7uLYVV8iyDPTR6Zs\naj+2BHCn4xTzFeVHADzTdtBiFH9i4fKeDK0IfbPV/9TGeRYNfl0qSfdLtU+1ZIzm\npqHppadukmk5+NbBG4Xm/lAZgVt3dUIrSyamxVjwnymN7PLdxaSOS/mgU6SDGMhN\nTM76AXKZZXWMK12UCXvKkh+TkGufcXzLe7LtrvHPLOgcnEED2CkWATuE9g8K9j4T\neOMxhJcHBUmXLgU6Chufa4nBed2899E7jxJa14+J1IDa2ahrDFLZN7H//ZsvwnXq\nxVbxm0k5jyWqfCpg13V7zD3DxNWlo3MIh2fPtIEUDVhugqPd0jPmqquqdBNTnu2I\nGQIDAQAB"),e.encrypt(t)},errorHandler:Sa,executeFilter:function(t){return t.hasOwnProperty("originalValue")||(t.originalValue=t.value),t.converter&&t.converterCode?t.value=Ae(t.converterCode,t.originalValue):t.value=t.originalValue,t},exportJson:function(t){var e=t.caseName,n=void 0===e?"case-name":e,r=t.caseImg,i=void 0===r?"":r,a=t.caseRemark,s=void 0===a?"":a,l=t.details,c=t.caseClientType,u=void 0===c?"":c,h=t.id,d={caseClientType:u,caseName:n,caseImg:i,caseRemark:s,caseId:void 0===h?"":h,createTime:o().format("YYYY-MM-DD , h:mm:ss"),caseData:ia(l)},f=new Blob([JSON.stringify(d)],{type:"json"});na.saveAs(f,n+".json")},findItem:oe,findItemDeep:re,findItemIndexDeep:function(t,e){for(var n,r=0,i=0;i<t.length;i++){var a=t[i];if(r+=1,a.cid==e)break;if(null===(n=null==a?void 0:a.children)||void 0===n?void 0:n.length)for(var o=0;o<(null==a?void 0:a.children.length);o++){if(r+=1,(null==a?void 0:a.children[o]).cid==e)return r}}return r},findParentDeep:ae,genCopyName:function(t,e,n){var r,i;void 0===n&&(n=" copy");var a=new RegExp("".concat(n,"( \\d+)?$")).exec(t);a?(r=a[1]?parseInt(a[1]):0,i=t.slice(0,a.index)):(r=0,i=t);var o=new RegExp("^".concat(i).concat(n,"( [1-9][0-9]*)?$")),s=[];e.forEach((function(t){if(a=o.exec(t)){var e=a[1]?parseInt(a[1]):1;s.push(e)}})),s.sort((function(t,e){return t-e})),r++;for(var l=0,c=s.length;l<c;l++)if(s[l]===r)r++;else if(s[l]>r)break;return i+n+" "+r},genID:Te,generateCaseDataJson:ia,generateComponentList:ra,generateJson:function(t){var e=t.caseName,n=void 0===e?"":e,r=t.caseData;return t.plangInfoForPsd,{caseName:n,createTime:o().format("YYYY-MM-DD , h:mm:ss"),caseData:ia(r)}},generatePageData:function(t){var e={},n=e.theme,r=void 0===n?null:n,i=e.globalVars,a=void 0===i?null:i,o=e.shareVariableTree,s=void 0===o?null:o,l=e.plant,c=void 0===l?null:l,u=e.list,h=void 0===u?[]:u,d=e.undos,f=void 0===d?[]:d,p=e.undoRedoPointer,m=void 0===p?-1:p,g=e.globalEvents,v=void 0===g?[]:g;return t&&(r=t.theme,c=t.plant),{theme:r,globalVars:a,globalEvents:v,shareVariableTree:s,plant:c,undos:f,undoRedoPointer:m,list:ra(h)}},getAncestorsNodes:ie,getColorInfo:function(t){var e=wa(t);return{hex:ga(e),rgba:ya(e),rgb:va(e),rgbaObj:e}},getDataForEvaluator:v,getInteractive:ni,getInteractive2:function(e,n,r,i,a){var o;try{var s={},l=[],c=[],u=[],h=t.cloneDeep(e);return(null===(o=null===window||void 0===window?void 0:window.go)||void 0===o?void 0:o.dev)&&le(e,(function(t){var e,n,r;if(null===(n=null===(e=null==t?void 0:t.tmpData)||void 0===e?void 0:e.actions)||void 0===n?void 0:n.length)for(var i=0,a=null===(r=null==t?void 0:t.tmpData)||void 0===r?void 0:r.actions;i<a.length;i++){var o=a[i];if("toggle"==o.behave){var s=o.toggle;if(null==s?void 0:s.length)for(var l=0,c=s;l<c.length;l++){var u=c[l],h=u.value;(null==h?void 0:h.length)&&(u.value=u.value.map((function(t){return{cid:t.cid,viewComName:t.viewComName,name:t.name,visible:t.visible}})))}}}})),le(h,(function(t){var e,n;if(null===(n=null===(e=null==t?void 0:t.tmpData)||void 0===e?void 0:e.actions)||void 0===n?void 0:n.length){var r=t.tmpData.actions.map((function(t){return t.eventType}));ke({types:r,element:t,actions:l,events:c,eventsComs:u})}})),n&&n.length&&(l=d(d([],l,!0),n,!0)),r&&r.length&&(l=d(d([],l,!0),r,!0)),i&&i.length&&(l=d(d([],l,!0),i,!0)),le(h,(function(t){var e,n=null===(e=null==t?void 0:t.tmpData)||void 0===e?void 0:e.source;ri(n,l,t,s)})),l.filter((function(t){if(t.fork){var e=l.find((function(e){return e.mapField==t.forkValue||Array.isArray(t.forkValue)&&t.forkValue.includes(e.mapField)}));(a?a==t.forkValue||Array.isArray(t.forkValue)&&t.forkValue.includes(a):!!e)&&(Array.isArray(t.forkValue)?t.originalValue=t.forkValue.map((function(t){var e=l.find((function(e){return e.mapField==t}));if(e)return e.value})):t.originalValue=e.value)}})),{shareVariableTree:s,globalVars:l.filter((function(t){return a?(a==t.forkValue||Array.isArray(t.forkValue)&&t.forkValue.includes(a))&&(t.hasOwnProperty("originalValue")||(t.originalValue=t.value),t.converter&&t.converterCode?t.value=Ae(t.converterCode,t.originalValue):t.value=t.originalValue):(t.hasOwnProperty("originalValue")||(t.originalValue=t.value),t.converter&&t.converterCode?t.value=Ae(t.converterCode,t.originalValue):t.value=t.originalValue),t})),globalEvents:c.filter((function(t){return t})),eventsComs:u}}catch(t){return console.error("error",t),{}}},getLength:function(t){var e=0,n=function(t){for(var r=function(r){if(t[r].isShow&&t[r].children)n(t[r].children);else if(t[r].isShow&&t[r].dynamicChildren){if(t[r].dynamicChildren instanceof Map){for(var i=Array.from(t[r].dynamicChildren),a=0;a<i.length;a++)if(i[a]instanceof Array){var o=i[a][1];n(o)}}else if(t[r].isShow&&t[r].dynamicChildren instanceof Array){var s=t[r].dynamicChildren.find((function(e){return e[0]=t[r].activeDynamic}));s&&s.length&&n(s[1])}}else t[r].isShow&&t[r].stateChildren?n(t[r].stateChildren):t[r].isShow&&e++},i=0;i<t.length;i++)r(i)};return n(t),e||!1},getPosition:De,getSessionData:function(t){var e=sessionStorage.getItem(t);return e?JSON.parse(e):null},getShareTree:function(t,e){try{var n={},r=[],i=[];return le(t,(function(t){var a,o,s,l=null===(a=null==t?void 0:t.tmpData)||void 0===a?void 0:a.source;if(ri(l,e,t,n),null===(s=null===(o=null==t?void 0:t.tmpData)||void 0===o?void 0:o.actions)||void 0===s?void 0:s.length){var c=t.tmpData.actions.map((function(t){return t.eventType}));ke({types:c,element:t,actions:r,events:i})}})),n}catch(t){return console.error(t),{}}},getStandardData:function(t,e){return void 0===e&&(e=!1),e?oi(t)?t:JSON.stringify(t):oi(t)?JSON.parse(t):t},getUrlParams:function(t,e){try{var n=e||window.location.href;if(-1!=n.indexOf("?")){var r={};return n.slice(n.indexOf("?")+1).split("&").forEach((function(t){var e=t.split("=");r[e[0]]=e[1]})),t?r[t]?r[t]:null:r}return console.log("没有参数"),null}catch(t){console.error(t)}},globalSourceTemp:Oe,hasVar:function(t,e,n){var r,i,a,o,s=e[null==e?void 0:e.type],l=null==e?void 0:e.converse,c=!1;if(l&&l.use&&l.data.length)for(var u=0,h=l.data;u<h.length;u++){var d=h[u];if((null==d?void 0:d.dependVars)&&(null===(r=null==d?void 0:d.dependVars)||void 0===r?void 0:r.length)&&(null==d?void 0:d.dependVars.includes(t)))return c=!0}return(null==s?void 0:s.inputSql)&&(c=ii(null==s?void 0:s.inputSql,n)),(null==s?void 0:s.url)&&(c=ii(s.url,n)),(null==s?void 0:s.headers)&&(null===(i=null==s?void 0:s.headers)||void 0===i?void 0:i.use)&&(null===(a=null==s?void 0:s.headers)||void 0===a?void 0:a.value)&&(c=ii(null===(o=null==s?void 0:s.headers)||void 0===o?void 0:o.value,n)),(null==s?void 0:s.params)&&(c=ii(null==s?void 0:s.params,n)),c},hexToRgba:function(t){var e=wa(t);return ya(e)},isJSON:oi,isPeer:se,loadFont:yi,loadFontResource:mi,loadScript:gi,loadTag:bi,parseColorString:wa,parseHexColor:ba,parseRgbaColor:_a,recursion:le,removeTag:_i,resetID:ue,resetPositionForGroup:function(t,e){var n=e.map((function(t){return t.cid}));e.forEach((function(e){e.pid&&ve(e,t)}));var r=we(n,e);return pe(r,e),{left:r.left,top:r.top,width:r.width,height:r.height}},resizeListPosition:function(t,e){var n=function(t,r){for(var i,a=0;a<t.length;a++){var o=t[a];if(o.pid!=r){var s=be(e,o.cid),l=be(e,o.pid);o.baseData.left=s.left-l.left,o.baseData.top=s.top-l.top}(null===(i=null==o?void 0:o.children)||void 0===i?void 0:i.length)&&n(o.children,o.cid)}};n(t,e)},resizePosition:be,resziePositionForGroup:function(e,n,r,i){var a=e.baseData.left,o=e.baseData.top,s=n.left,l=n.top,c=t.cloneDeep(e.children),u=r||"";if(s-a<0)for(var h=0;h<c.length;h++){(d=c[h]).cid!==u&&(d.baseData.left=d.baseData.left+(a-s))}if(l-o<0)for(h=0;h<c.length;h++){var d;(d=c[h]).cid!==u&&(d.baseData.top=d.baseData.top+(o-l))}e.children=c},rgbaToHex:function(t){var e=wa(t);return ga(e)},safeEval:Ae,screenshot:function(t){return u(void 0,void 0,void 0,(function(){var e,n,r,i,a,o,s,l;return h(this,(function(c){switch(c.label){case 0:return c.trys.push([0,11,,12]),e=t.dom,n=t.servePath,r=t.targetPath,i=t.quality,a=t.type,o=void 0,ca(n)&&ca(r)?[4,fa(n,r,e,i||.5)]:[3,5];case 1:return(s=c.sent())&&200==s.status&&s.data?(o=s.data,[3,4]):[3,2];case 2:return console.warn("截取错误,请检查网络或服务地址配置是否正确,已转换为dom-to-img."),[4,pa(e,i||.5)];case 3:o=c.sent(),c.label=4;case 4:return[3,7];case 5:return console.warn("地址错误,请检查传入的地址是否争取,已转换为dom-to-img."),[4,pa(e,i||.5)];case 6:o=c.sent(),c.label=7;case 7:return o?[4,da(o,a)]:[3,9];case 8:return[2,c.sent()];case 9:return[2,null];case 10:return[3,12];case 11:return l=c.sent(),console.error("截图发生错误:"+l),[2,null];case 12:return[2]}}))}))},selectdArea:we,setActions:ke,setAttr:function(t,e,n){for(var r,i=0;i<t.length;i++)(r=t[i]).cid!==e&&r.id!==e||(r[n]=!r[n])},setIndex:ce,setPorp:function(t,e,n){var r=e.find((function(e){return e.cid===t}));"folder"===r.type?r.children.length&&r.children.forEach((function(t){t[n]=!t[n]})):r[n]=!r[n]},setPositionForGroup:pe,setPositionForWorld:ve,setSessionData:function(t,e){var n=JSON.stringify(e);sessionStorage.setItem(t,n)},toHex:ma,toHexString:ga,toRgbString:va,toRgbaString:ya,transformPosition:ye,upDataGroup:Se,upDataGroupChildren:function(e,n,r){var i=e.children,a=t.cloneDeep(n),o=t.cloneDeep(De(i)),s=a.left,l=a.top;a.width,a.height;var c=o.left,u=o.top,h=o.width,d=o.height,f={left:s+c,top:l+u,width:h,height:d,angle:n.angle?n.angle:0};return i.forEach((function(e){var n=t.cloneDeep(e.baseData);e.baseData.left<0?n.left=0:n.left=n.left-c,e.baseData.top<0?n.top=0:n.top=n.top-u,e.baseData=n})),e.children=i,f},updataAttribute:he,updataAttributeForOption:de,updataSizeDeep:Jt,watchError:function(t,e){t.config.errorHandler=function(t){console.error("监测到E1002错误"),console.error(t.filename),Sa("E1002",t.name+":"+t.message,e)},window.addEventListener("error",(function(t){t.message?(console.error("监测到E1003错误"),Sa("E1003",t.message,t.filename,e)):(console.error("监测到E1004错误"),Sa("E1004",t.target.currentSrc,t.filename,e))}),!0)}});function Ca(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ea(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
|
|
32
|
+
(n=Zt).mode.CTRGladman=function(){var t=n.lib.BlockCipherMode.extend();function e(t){if(255==(t>>24&255)){var e=t>>16&255,n=t>>8&255,r=255&t;255===e?(e=0,255===n?(n=0,255===r?r=0:++r):++n):++e,t=0,t+=e<<16,t+=n<<8,t+=r}else t+=1<<24;return t}function r(t){return 0===(t[0]=e(t[0]))&&(t[1]=e(t[1])),t}var i=t.Encryptor=t.extend({processBlock:function(t,e){var n=this._cipher,i=n.blockSize,a=this._iv,o=this._counter;a&&(o=this._counter=a.slice(0),this._iv=void 0),r(o);var s=o.slice(0);n.encryptBlock(s,0);for(var l=0;l<i;l++)t[e+l]^=s[l]}});return t.Decryptor=i,t}(),n.mode.CTRGladman)})),a((function(t,e){var n,r,i;t.exports=((i=Zt).mode.OFB=(n=i.lib.BlockCipherMode.extend(),r=n.Encryptor=n.extend({processBlock:function(t,e){var n=this._cipher,r=n.blockSize,i=this._iv,a=this._keystream;i&&(a=this._keystream=i.slice(0),this._iv=void 0),n.encryptBlock(a,0);for(var o=0;o<r;o++)t[e+o]^=a[o]}}),n.Decryptor=r,n),i.mode.OFB)})),a((function(t,e){var n,r;t.exports=((r=Zt).mode.ECB=((n=r.lib.BlockCipherMode.extend()).Encryptor=n.extend({processBlock:function(t,e){this._cipher.encryptBlock(t,e)}}),n.Decryptor=n.extend({processBlock:function(t,e){this._cipher.decryptBlock(t,e)}}),n),r.mode.ECB)})),a((function(t,e){var n;t.exports=((n=Zt).pad.AnsiX923={pad:function(t,e){var n=t.sigBytes,r=4*e,i=r-n%r,a=n+i-1;t.clamp(),t.words[a>>>2]|=i<<24-a%4*8,t.sigBytes+=i},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},n.pad.Ansix923)})),a((function(t,e){var n;t.exports=((n=Zt).pad.Iso10126={pad:function(t,e){var r=4*e,i=r-t.sigBytes%r;t.concat(n.lib.WordArray.random(i-1)).concat(n.lib.WordArray.create([i<<24],1))},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},n.pad.Iso10126)})),a((function(t,e){var n;t.exports=((n=Zt).pad.Iso97971={pad:function(t,e){t.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(t,e)},unpad:function(t){n.pad.ZeroPadding.unpad(t),t.sigBytes--}},n.pad.Iso97971)})),a((function(t,e){var n;t.exports=((n=Zt).pad.ZeroPadding={pad:function(t,e){var n=4*e;t.clamp(),t.sigBytes+=n-(t.sigBytes%n||n)},unpad:function(t){var e=t.words,n=t.sigBytes-1;for(n=t.sigBytes-1;n>=0;n--)if(e[n>>>2]>>>24-n%4*8&255){t.sigBytes=n+1;break}}},n.pad.ZeroPadding)})),a((function(t,e){var n;t.exports=((n=Zt).pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding)})),a((function(t,e){var n;t.exports=(n=Zt,function(t){var e=n,r=e.lib.CipherParams,i=e.enc.Hex;e.format.Hex={stringify:function(t){return t.ciphertext.toString(i)},parse:function(t){var e=i.parse(t);return r.create({ciphertext:e})}}}(),n.format.Hex)})),a((function(t,e){var n;t.exports=(n=Zt,function(){var t=n,e=t.lib.BlockCipher,r=t.algo,i=[],a=[],o=[],s=[],l=[],c=[],u=[],h=[],d=[],f=[];!function(){for(var t=[],e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;var n=0,r=0;for(e=0;e<256;e++){var p=r^r<<1^r<<2^r<<3^r<<4;p=p>>>8^255&p^99,i[n]=p,a[p]=n;var m=t[n],g=t[m],v=t[g],y=257*t[p]^16843008*p;o[n]=y<<24|y>>>8,s[n]=y<<16|y>>>16,l[n]=y<<8|y>>>24,c[n]=y,y=16843009*v^65537*g^257*m^16843008*n,u[p]=y<<24|y>>>8,h[p]=y<<16|y>>>16,d[p]=y<<8|y>>>24,f[p]=y,n?(n=m^t[t[t[v^m]]],r^=t[t[r]]):n=r=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],m=r.AES=e.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,e=t.words,n=t.sigBytes/4,r=4*((this._nRounds=n+6)+1),a=this._keySchedule=[],o=0;o<r;o++)o<n?a[o]=e[o]:(c=a[o-1],o%n?n>6&&o%n==4&&(c=i[c>>>24]<<24|i[c>>>16&255]<<16|i[c>>>8&255]<<8|i[255&c]):(c=i[(c=c<<8|c>>>24)>>>24]<<24|i[c>>>16&255]<<16|i[c>>>8&255]<<8|i[255&c],c^=p[o/n|0]<<24),a[o]=a[o-n]^c);for(var s=this._invKeySchedule=[],l=0;l<r;l++){if(o=r-l,l%4)var c=a[o];else c=a[o-4];s[l]=l<4||o<=4?c:u[i[c>>>24]]^h[i[c>>>16&255]]^d[i[c>>>8&255]]^f[i[255&c]]}}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,o,s,l,c,i)},decryptBlock:function(t,e){var n=t[e+1];t[e+1]=t[e+3],t[e+3]=n,this._doCryptBlock(t,e,this._invKeySchedule,u,h,d,f,a),n=t[e+1],t[e+1]=t[e+3],t[e+3]=n},_doCryptBlock:function(t,e,n,r,i,a,o,s){for(var l=this._nRounds,c=t[e]^n[0],u=t[e+1]^n[1],h=t[e+2]^n[2],d=t[e+3]^n[3],f=4,p=1;p<l;p++){var m=r[c>>>24]^i[u>>>16&255]^a[h>>>8&255]^o[255&d]^n[f++],g=r[u>>>24]^i[h>>>16&255]^a[d>>>8&255]^o[255&c]^n[f++],v=r[h>>>24]^i[d>>>16&255]^a[c>>>8&255]^o[255&u]^n[f++],y=r[d>>>24]^i[c>>>16&255]^a[u>>>8&255]^o[255&h]^n[f++];c=m,u=g,h=v,d=y}m=(s[c>>>24]<<24|s[u>>>16&255]<<16|s[h>>>8&255]<<8|s[255&d])^n[f++],g=(s[u>>>24]<<24|s[h>>>16&255]<<16|s[d>>>8&255]<<8|s[255&c])^n[f++],v=(s[h>>>24]<<24|s[d>>>16&255]<<16|s[c>>>8&255]<<8|s[255&u])^n[f++],y=(s[d>>>24]<<24|s[c>>>16&255]<<16|s[u>>>8&255]<<8|s[255&h])^n[f++],t[e]=m,t[e+1]=g,t[e+2]=v,t[e+3]=y},keySize:8});t.AES=e._createHelper(m)}(),n.AES)})),a((function(t,e){var n;t.exports=(n=Zt,function(){var t=n,e=t.lib,r=e.WordArray,i=e.BlockCipher,a=t.algo,o=[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],s=[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],l=[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}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=a.DES=i.extend({_doReset:function(){for(var t=this._key.words,e=[],n=0;n<56;n++){var r=o[n]-1;e[n]=t[r>>>5]>>>31-r%32&1}for(var i=this._subKeys=[],a=0;a<16;a++){var c=i[a]=[],u=l[a];for(n=0;n<24;n++)c[n/6|0]|=e[(s[n]-1+u)%28]<<31-n%6,c[4+(n/6|0)]|=e[28+(s[n+24]-1+u)%28]<<31-n%6;for(c[0]=c[0]<<1|c[0]>>>31,n=1;n<7;n++)c[n]=c[n]>>>4*(n-1)+3;c[7]=c[7]<<5|c[7]>>>27}var h=this._invSubKeys=[];for(n=0;n<16;n++)h[n]=i[15-n]},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._subKeys)},decryptBlock:function(t,e){this._doCryptBlock(t,e,this._invSubKeys)},_doCryptBlock:function(t,e,n){this._lBlock=t[e],this._rBlock=t[e+1],d.call(this,4,252645135),d.call(this,16,65535),f.call(this,2,858993459),f.call(this,8,16711935),d.call(this,1,1431655765);for(var r=0;r<16;r++){for(var i=n[r],a=this._lBlock,o=this._rBlock,s=0,l=0;l<8;l++)s|=c[l][((o^i[l])&u[l])>>>0];this._lBlock=o,this._rBlock=a^s}var h=this._lBlock;this._lBlock=this._rBlock,this._rBlock=h,d.call(this,1,1431655765),f.call(this,8,16711935),f.call(this,2,858993459),d.call(this,16,65535),d.call(this,4,252645135),t[e]=this._lBlock,t[e+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function d(t,e){var n=(this._lBlock>>>t^this._rBlock)&e;this._rBlock^=n,this._lBlock^=n<<t}function f(t,e){var n=(this._rBlock>>>t^this._lBlock)&e;this._lBlock^=n,this._rBlock^=n<<t}t.DES=i._createHelper(h);var p=a.TripleDES=i.extend({_doReset:function(){var t=this._key.words;if(2!==t.length&&4!==t.length&&t.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var e=t.slice(0,2),n=t.length<4?t.slice(0,2):t.slice(2,4),i=t.length<6?t.slice(0,2):t.slice(4,6);this._des1=h.createEncryptor(r.create(e)),this._des2=h.createEncryptor(r.create(n)),this._des3=h.createEncryptor(r.create(i))},encryptBlock:function(t,e){this._des1.encryptBlock(t,e),this._des2.decryptBlock(t,e),this._des3.encryptBlock(t,e)},decryptBlock:function(t,e){this._des3.decryptBlock(t,e),this._des2.encryptBlock(t,e),this._des1.decryptBlock(t,e)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=i._createHelper(p)}(),n.TripleDES)})),a((function(t,e){var n;t.exports=(n=Zt,function(){var t=n,e=t.lib.StreamCipher,r=t.algo,i=r.RC4=e.extend({_doReset:function(){for(var t=this._key,e=t.words,n=t.sigBytes,r=this._S=[],i=0;i<256;i++)r[i]=i;i=0;for(var a=0;i<256;i++){var o=i%n,s=e[o>>>2]>>>24-o%4*8&255;a=(a+r[i]+s)%256;var l=r[i];r[i]=r[a],r[a]=l}this._i=this._j=0},_doProcessBlock:function(t,e){t[e]^=a.call(this)},keySize:8,ivSize:0});function a(){for(var t=this._S,e=this._i,n=this._j,r=0,i=0;i<4;i++){n=(n+t[e=(e+1)%256])%256;var a=t[e];t[e]=t[n],t[n]=a,r|=t[(t[e]+t[n])%256]<<24-8*i}return this._i=e,this._j=n,r}t.RC4=e._createHelper(i);var o=r.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)a.call(this)}});t.RC4Drop=e._createHelper(o)}(),n.RC4)})),a((function(t,e){var n;t.exports=(n=Zt,function(){var t=n,e=t.lib.StreamCipher,r=t.algo,i=[],a=[],o=[],s=r.Rabbit=e.extend({_doReset:function(){for(var t=this._key.words,e=this.cfg.iv,n=0;n<4;n++)t[n]=16711935&(t[n]<<8|t[n]>>>24)|4278255360&(t[n]<<24|t[n]>>>8);var r=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],i=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];for(this._b=0,n=0;n<4;n++)l.call(this);for(n=0;n<8;n++)i[n]^=r[n+4&7];if(e){var a=e.words,o=a[0],s=a[1],c=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=c>>>16|4294901760&u,d=u<<16|65535&c;for(i[0]^=c,i[1]^=h,i[2]^=u,i[3]^=d,i[4]^=c,i[5]^=h,i[6]^=u,i[7]^=d,n=0;n<4;n++)l.call(this)}},_doProcessBlock:function(t,e){var n=this._X;l.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)i[r]=16711935&(i[r]<<8|i[r]>>>24)|4278255360&(i[r]<<24|i[r]>>>8),t[e+r]^=i[r]},blockSize:4,ivSize:2});function l(){for(var t=this._X,e=this._C,n=0;n<8;n++)a[n]=e[n];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<a[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<a[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<a[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<a[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<a[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<a[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<a[6]>>>0?1:0)|0,this._b=e[7]>>>0<a[7]>>>0?1:0,n=0;n<8;n++){var r=t[n]+e[n],i=65535&r,s=r>>>16,l=((i*i>>>17)+i*s>>>15)+s*s,c=((4294901760&r)*r|0)+((65535&r)*r|0);o[n]=l^c}t[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,t[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,t[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,t[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,t[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,t[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,t[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,t[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}t.Rabbit=e._createHelper(s)}(),n.Rabbit)})),a((function(t,e){var n;t.exports=(n=Zt,function(){var t=n,e=t.lib.StreamCipher,r=t.algo,i=[],a=[],o=[],s=r.RabbitLegacy=e.extend({_doReset:function(){var t=this._key.words,e=this.cfg.iv,n=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],r=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var i=0;i<4;i++)l.call(this);for(i=0;i<8;i++)r[i]^=n[i+4&7];if(e){var a=e.words,o=a[0],s=a[1],c=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=c>>>16|4294901760&u,d=u<<16|65535&c;for(r[0]^=c,r[1]^=h,r[2]^=u,r[3]^=d,r[4]^=c,r[5]^=h,r[6]^=u,r[7]^=d,i=0;i<4;i++)l.call(this)}},_doProcessBlock:function(t,e){var n=this._X;l.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)i[r]=16711935&(i[r]<<8|i[r]>>>24)|4278255360&(i[r]<<24|i[r]>>>8),t[e+r]^=i[r]},blockSize:4,ivSize:2});function l(){for(var t=this._X,e=this._C,n=0;n<8;n++)a[n]=e[n];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<a[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<a[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<a[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<a[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<a[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<a[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<a[6]>>>0?1:0)|0,this._b=e[7]>>>0<a[7]>>>0?1:0,n=0;n<8;n++){var r=t[n]+e[n],i=65535&r,s=r>>>16,l=((i*i>>>17)+i*s>>>15)+s*s,c=((4294901760&r)*r|0)+((65535&r)*r|0);o[n]=l^c}t[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,t[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,t[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,t[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,t[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,t[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,t[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,t[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}t.RabbitLegacy=e._createHelper(s)}(),n.RabbitLegacy)})),a((function(t,e){var n;t.exports=(n=Zt,function(){var t=n,e=t.lib.BlockCipher,r=t.algo;const i=16,a=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],o=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var s={pbox:[],sbox:[]};function l(t,e){let n=e>>24&255,r=e>>16&255,i=e>>8&255,a=255&e,o=t.sbox[0][n]+t.sbox[1][r];return o^=t.sbox[2][i],o+=t.sbox[3][a],o}function c(t,e,n){let r,a=e,o=n;for(let e=0;e<i;++e)a^=t.pbox[e],o=l(t,a)^o,r=a,a=o,o=r;return r=a,a=o,o=r,o^=t.pbox[i],a^=t.pbox[i+1],{left:a,right:o}}function u(t,e,n){let r,a=e,o=n;for(let e=i+1;e>1;--e)a^=t.pbox[e],o=l(t,a)^o,r=a,a=o,o=r;return r=a,a=o,o=r,o^=t.pbox[1],a^=t.pbox[0],{left:a,right:o}}function h(t,e,n){for(let e=0;e<4;e++){t.sbox[e]=[];for(let n=0;n<256;n++)t.sbox[e][n]=o[e][n]}let r=0;for(let o=0;o<i+2;o++)t.pbox[o]=a[o]^e[r],r++,r>=n&&(r=0);let s=0,l=0,u=0;for(let e=0;e<i+2;e+=2)u=c(t,s,l),s=u.left,l=u.right,t.pbox[e]=s,t.pbox[e+1]=l;for(let e=0;e<4;e++)for(let n=0;n<256;n+=2)u=c(t,s,l),s=u.left,l=u.right,t.sbox[e][n]=s,t.sbox[e][n+1]=l;return!0}var d=r.Blowfish=e.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var t=this._keyPriorReset=this._key,e=t.words,n=t.sigBytes/4;h(s,e,n)}},encryptBlock:function(t,e){var n=c(s,t[e],t[e+1]);t[e]=n.left,t[e+1]=n.right},decryptBlock:function(t,e){var n=u(s,t[e],t[e+1]);t[e]=n.left,t[e+1]=n.right},blockSize:2,keySize:4,ivSize:2});t.Blowfish=e._createHelper(d)}(),n.Blowfish)})),a((function(t,e){t.exports=Zt})));var Jt=function(t,e){try{var n=e.xRatio,r=e.yRatio;return isNaN(n)||isNaN(r)?(console.error("发生错误:on updataSizeDeep in go-code "),t):(t.forEach((function(t){var i;t.baseData.left=t.baseData.left*n,t.baseData.width=t.baseData.width*n,t.baseData.top=t.baseData.top*r,t.baseData.height=t.baseData.height*r,t.baseData.angle=t.baseData.angle,(null===(i=null==t?void 0:t.children)||void 0===i?void 0:i.length)&&Jt(null==t?void 0:t.children,e)})),t)}catch(e){return t}},Qt=function(t,e){var n=!0;try{for(var r=0,i=["width","height","left","top","opacity","angel","skewY","skewX","rotateX","rotateY"];r<i.length;r++){var a=i[r];if(Object.hasOwn(t,a)&&isNaN(t[a])){if(!("string"==typeof t[a]&&t[a].includes("%")||"NaN"==t[a])){console.warn(a+"--参数校验不合法:"+e),n=!1;break}n=!0}}return n}catch(t){return console.warn("参数校验不合法:"+e),!1}},te=function(t,e,n){var r=t[n];return t.splice(n,1),t.splice(e,0,r),t},ee=function(e,n,r){var i=t.findIndex(e,(function(t){return t.cid==r})),a=t.findIndex(e,(function(t){return t.cid==n}));return te(e,a,i)},ne=function(t,e,n){for(var r=-1,i=0;i<t.length;i++){var a=t[i];if(a.children&&a.children.length)for(var o=0;o<a.children.length;o++){if(r=o,a.children[o].cid===n){switch(e){case"up":r>=1&&te(a.children,r-1,r);break;case"down":r<a.children.length-2&&te(a.children,r+1,r);break;case"top":0!==r&&te(a.children,0,r);break;case"bottom":var s=a.children.length-1;r!==s&&te(a.children,s,r)}break}}}return t},re=function(e,n,r){var i=!1,a=function(e){for(var o=0;o<e.length;o++){if(e[o].cid==n){i=e[o],r&&t.remove(e,(function(t){return t.cid==n}));break}if(e[o].children)a(e[o].children);else if(e[o].dynamicChildren){if(e[o].dynamicChildren instanceof Map){for(var s=Array.from(e[o].dynamicChildren),l=0;l<s.length;l++)if(s[l]instanceof Array){var c=s[l][1];a(c)}}else if(e[o].dynamicChildren instanceof Array)for(s=e[o].dynamicChildren,l=0;l<s.length;l++)if(s[l]instanceof Array){c=s[l][1];a(c)}}else e[o].stateChildren&&a(e[o].stateChildren)}};return a(e),i||!1},ie=function(t,e){var n=[],r=function(t){for(var i=0;i<t.length;i++){if(t[i].cid===e)return!0;if(Array.isArray(t[i].children)){if(r(t[i].children))return n.push(t[i]),!0;r(t[i].children)}}};return r(t),n},ae=function(t,e){var n=null,r=function(t,i){for(var a=0,o=t;a<o.length;a++){var s=o[a];if(s.cid==e){n=i;break}if(s.children)r(s.children,s);else if(s.dynamicChildren)if(s.dynamicChildren instanceof Map){for(var l=Array.from(s.dynamicChildren),c=0;c<l.length;c++)if(l[c]instanceof Array){var u=l[c][1];r(u,s)}}else s.dynamicChildren;else s.stateChildren&&r(s.stateChildren,s)}};return r(t,null),n||!1},oe=function(t,e,n){for(var r,i=function(i){var a=t[i];if(a.cid===e)return r=a,n&&t.splice(i,1),{value:r};if(a.children&&a.children.length){for(var o=0;o<a.children.length;o++)if(a.children[o].cid===e)return r=a.children[o],n&&a.children.splice(o,1),{value:r}}else if(a.stateChildren&&a.stateChildren.length){for(o=0;o<a.stateChildren.length;o++)if(a.stateChildren[o].cid===e)return r=a.stateChildren[o],n&&a.stateChildren.splice(o,1),{value:r}}else if(a.dynamicChildren){var s=void 0;if(a.dynamicChildren instanceof Map?s=a.dynamicChildren.get(a.activeDynamic):a.dynamicChildren instanceof Array&&(s=a.dynamicChildren.find((function(t){return t[0]==a.activeDynamic}))[1]),s)for(o=0;o<s.length;o++)if(s[o].cid===e)return r=s[o],n&&s.splice(o,1),{value:r}}},a=0;a<t.length;a++){var o=i(a);if("object"==typeof o)return o.value}return!!r},se=function(t,e,n){var r=oe(t,e),i=oe(t,n);return r.pid&&i.pid||!r.pid&&!i.pid},le=function(t,e){var n=function(t){for(var r,i,a,o=0,s=t;o<s.length;o++){var l=s[o],c=null===(a=null===(i=null===(r=null==l?void 0:l.tmpData)||void 0===r?void 0:r.source)||void 0===i?void 0:i.converse)||void 0===a?void 0:a.data;if(null==c?void 0:c.length)for(var u=0,h=c;u<h.length;u++){var d=h[u];d.code=d.code.replace(/>/g,">").replace(/</g,"<")}e(l),l&&l.children?n(l.children):l&&l.dynamicChildren?(l.dynamicChildren&&l.dynamicChildren instanceof Map&&l.dynamicChildren.forEach((function(t){n(t)})),l.dynamicChildren&&l.dynamicChildren instanceof Array&&l.dynamicChildren.forEach((function(t){n(t[1])}))):(null==l?void 0:l.stateChildren)&&n(l.stateChildren)}};n(t)},ce=function(t){var e=t.length,n=function(t,e){for(var r=function(r){var i=t[r];if(i&&i.children&&i.children.length){var a=i.children.length;n(i.children,a)}else if(i&&i.dynamicChildren){var o=i.dynamicChildren.length;Array.from(i.dynamicChildren).forEach((function(t,e){n(t[1],o)}))}i.z=10*e-r},i=0;i<t.length;i++)r(i)};n(t,e)},ue=function(t){var e=function(t,n){for(var r=function(r){var i=t[r],a=Te();n?i.pid=n:i.drag||(i.baseData.left=0,i.baseData.top=0),i.cid=a,i&&i.children&&i.children.length?e(i.children,a):i&&i.dynamicChildren&&Array.from(i.dynamicChildren).forEach((function(t,n){e(t[1],a)}))},i=0;i<t.length;i++)r(i)};e(t)},he=function(e,n,r,i){try{if(!e||!e.hasOwnProperty(n)&&!e.hasOwnProperty(i))throw"The property you want to modify is not found. Please check whether the attribute ".concat(n," is entered correctly!");if(i){t.cloneDeep(e[i][n]);e[i][n]=r}else e[n]=r}catch(t){console.error(t)}},de=function(e,n){var r;try{var i="tmpData";if(!e||!(null===(r=e[i])||void 0===r?void 0:r.hasOwnProperty("option")))throw new Error("The property you want to modify is not found. Please check whether the attribute 'option' is entered correctly!");var a=t.cloneDeep(e[i].option),o={};Object.assign(o,a,n),console.log(o,a,"newOP"),e[i].option=o}catch(t){console.error(new Error("An error occurred: ".concat(t)))}},fe=function(t){try{if(!t)throw" 没有找到组件";t.isShow||"false"==t.isShow?t.isShow=!1:t.isShow=!0}catch(t){console.error(t)}},pe=function(t,e){e.forEach((function(e){e.baseData.left=e.baseData.left-t.left,e.baseData.top=e.baseData.top-t.top}))},me=function(e,n){var r=t.cloneDeep(e),i=[];return r.children&&r.children.length&&r.children.forEach((function(t){var e=n&&(null==r?void 0:r.pid)?re(n,r.pid):null;ge(t,r,e),i.push(t)})),i},ge=function(t,e,n){var r=function(t,e,n){var r=t.baseData.left,i=t.baseData.top,a=e;if(r+=a.baseData.left,i+=a.baseData.top,n){if(n.baseData.angle){var o=n.baseData.angle*Math.PI/180,s=Math.cos(o),l=Math.sin(o),c=r*l+i*s;r=r*s-i*l,i=c}n.baseData.scale&&(r*=n.baseData.scale.x,i*=n.baseData.scale.y)}return{left:r,top:i}}(t,e,n),i=r.left,a=r.top;t.baseData.left=i,t.baseData.top=a},ve=function(t,e){t.baseData.left=t.baseData.left+e.left,t.baseData.top=t.baseData.top+e.top},ye=function(t,e,n){var r={left:0,top:0};return t.left=t.left||0,t.top=t.top||0,e.left=e.left||0,e.top=e.top||0,n&&0!==n?(r.left=t.left-e.left,r.top=t.top-e.top):(r.left=t.left+e.left,r.top=t.top+e.top),r},be=function(e,n){var r=t.cloneDeep(e),i=[],a=function(t,e){var n=re(t,e);i.push(n.baseData),n.pid&&a(t,n.pid)};a(r,n);var o={left:0,top:0};return i.map((function(t){t&&(o.left+=t.left,o.top+=t.top)})),o},_e=function(e,n,r){var i=e.slice();return r||(i=t.cloneDeep(e)),i.length>1&&i.sort((function(t,e){return t.baseData[n]-e.baseData[n]})),i},we=function(t,e){var n=[];return t.map((function(t){var r=e.find((function(e){return e.cid===t}));r&&n.push(r)})),De(n)},De=function(t,e){if(t.length>0){var n={left:0,top:0,width:0,height:0},r=_e(t,"left",e),i=_e(t,"top",e),a=r[0].baseData,o=r[r.length-1].baseData,s=i[0].baseData,l=i[i.length-1].baseData,c=Math.max.apply(Math,i.map((function(t){return 1*t.baseData.top+1*t.baseData.height}))),u=Math.max.apply(Math,i.map((function(t){return 1*t.baseData.left+1*t.baseData.width})));return n.left=a.left,n.width=Math.max(1*o.left+1*o.width,u)-1*a.left,n.top=s.top,n.height=Math.max(1*l.top+1*l.height,c)-1*s.top,n}return{left:0,top:0,width:0,height:0}},Se=function(e,n,r,i){var a=e.children,o=t.cloneDeep(n),s=t.cloneDeep(De(a,i)),l=o.left,c=o.top;o.width,o.height;var u=s.left,h=s.top,d=s.width,f=s.height,p={left:l+u,top:c+h,width:d,height:f,angle:n.angle?n.angle:0};return a.forEach((function(e){var n=t.cloneDeep(e.baseData);e.baseData.left<0?n.left=0:n.left=n.left-u,e.baseData.top<0?n.top=0:n.top=n.top-h,e.baseData=n})),e.baseData=p,e.children=a,p},xe=function(t,e){for(var n=0;n<t.length;n++){var r=t[n];t[n].index=n,r.children&&r.children.length?xe(r.children):e&&e(r)}},Te=function(){return(Math.random().toString().substr(3,10)+Date.now()).toString()};function ke(t,e){var n=t.types,r=t.element,i=t.actions,a=t.events,o=t.eventsComs;t.filter,Mi.state.globalVars;for(var s=function(t){var e=n[t],s=r.tmpData.actions[t];if(s&&s.use){o&&o.push(r.cid);var l=s[s.behave];if(!l)return"continue";"vars"===s.behave?l.map((function(t){t.type=e,t.id=r.cid,t.model=0,t.originalValue||(t.originalValue=t.value),t.mapField&&i.push(t)})):l.length>0&&l.forEach((function(t,n){"toggle"===s.behave&&""!==t.value&&t.value.length&&a.push({id:r.cid,type:s.behave,children:t.value.map((function(t){return{cid:t.cid,visible:t.visible}})),eventType:e,index:n}),"update"===s.behave&&""!==t.value&&t.value.length?a.push({id:r.cid,type:s.behave,children:t.value.map((function(t){return{cid:t.cid,visible:t.visible}})),eventType:e,index:n}):"link"===s.behave&&""!==t.value?a.push({id:r.cid,type:s.behave,link:t.value,eventType:e,target:t.target,index:n}):"page"===s.behave&&""!==t.value?a.push({id:r.cid,type:s.behave,page:t.value,params:t.params,eventType:e,index:n}):"dynamic"===s.behave&&""!==t.value&&t.value.length>0?a.push({id:r.cid,type:s.behave,dynamic:t.value,eventType:e,index:n}):a.push(void 0)}))}},l=0;l<n.length;l++)s(l)}var Ce="anov@2019:helloX",Ee="anov@2020:helloX";function Ae(t,e){var n=Mi.state.globalVars,r={};n.forEach((function(t){(null==t?void 0:t.name)&&(r[t.name]=t.value||t.originvalue)}));try{return/^(?:[^\r\n]*[\r\n]){0,2}(?:[^\r\n]*(?=\{))?\s*(?:function\s*[^\r\n]*|\(.*?\))?\s*[\w\s\$\._\[\]]*\s*(?:[=:]\s*)?(?:new\s+)?[A-Z]\w*\s*(?:\[.*?\]|\([^\r\n]*\))*\s*\{.*?\}/i.test(t),new Function("data","vars",t)(e,r)}catch(t){return console.error(t),e}}var Oe={type:"static",converse:{use:!1,data:[]},static:{data:{},originData:""},api:{requestType:"get",url:"",headers:{use:!1,value:""},params:"",agency:!1,cookie:!0,autoUpdate:{open:!1,time:10},data:""},datasource:{data:"",inputSql:"",dsName:"",dsType:300,autoUpdate:{open:!1,time:10}},indicator:{zbId:"",zbName:"",params:"",data:"",autoUpdate:{open:!1,time:10}},staticFile:{data:"",dsName:"",dsType:201}},Me=function(t){var e;try{var n=[];if((null==t?void 0:t.dynamicChildren)instanceof Map)for(var r=Array.from(null==t?void 0:t.dynamicChildren),i=0;i<r.length;i++)r[i]instanceof Array&&n.push.apply(n,r[i][1]);else if((null==t?void 0:t.dynamicChildren)instanceof Array)for(r=null==t?void 0:t.dynamicChildren,i=0;i<r.length;i++)r[i]instanceof Array&&n.push.apply(n,r[i][1]);if(null==n?void 0:n.length)for(var a=0,o=n;a<o.length;a++){var s=o[a];if(s){var l=null===(e=null==s?void 0:s.tmpData)||void 0===e?void 0:e.source,c=l.type;l&&"packData"==c&&(s.tmpData.source.packData.data=t.source[0])}}}catch(t){console.log(t)}},Ne=Object.defineProperty,Pe=Object.getOwnPropertySymbols,Ve=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,Be=(t,e,n)=>e in t?Ne(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ie=(t,e)=>{for(var n in e||(e={}))Ve.call(e,n)&&Be(t,n,e[n]);if(Pe)for(var n of Pe(e))Re.call(e,n)&&Be(t,n,e[n]);return t},Fe=Symbol.for("immer-nothing"),je=Symbol.for("immer-draftable"),Le=Symbol.for("immer-state"),Ye="production"!==H.env.NODE_ENV?[function(t){return`The plugin for '${t}' has not been loaded into Immer. To enable the plugin, import and call \`enable${t}()\` when initializing your application.`},function(t){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${t}'`},"This object has been frozen and should not be mutated",function(t){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+t},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(t){return`'current' expects a draft, got: ${t}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(t){return`'original' expects a draft, got: ${t}`}]:[];function ze(t,...e){if("production"!==H.env.NODE_ENV){const n=Ye[t],r="function"==typeof n?n.apply(null,e):n;throw new Error(`[Immer] ${r}`)}throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var He=Object.getPrototypeOf;function Ue(t){return!!t&&!!t[Le]}function qe(t){var e;return!!t&&(We(t)||Array.isArray(t)||!!t[je]||!!(null==(e=t.constructor)?void 0:e[je])||Je(t)||Qe(t))}var Ge=Object.prototype.constructor.toString();function We(t){if(!t||"object"!=typeof t)return!1;const e=He(t);if(null===e)return!0;const n=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===Ge}function $e(t,e){0===Ke(t)?Object.entries(t).forEach((([n,r])=>{e(n,r,t)})):t.forEach(((n,r)=>e(r,n,t)))}function Ke(t){const e=t[Le];return e?e.type_:Array.isArray(t)?1:Je(t)?2:Qe(t)?3:0}function Ze(t,e){return 2===Ke(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Xe(t,e,n){const r=Ke(t);2===r?t.set(e,n):3===r?t.add(n):t[e]=n}function Je(t){return t instanceof Map}function Qe(t){return t instanceof Set}function tn(t){return t.copy_||t.base_}function en(t,e){if(Je(t))return new Map(t);if(Qe(t))return new Set(t);if(Array.isArray(t))return Array.prototype.slice.call(t);if(!e&&We(t)){if(!He(t)){const e=Object.create(null);return Object.assign(e,t)}return Ie({},t)}const n=Object.getOwnPropertyDescriptors(t);delete n[Le];let r=Reflect.ownKeys(n);for(let e=0;e<r.length;e++){const i=r[e],a=n[i];!1===a.writable&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(n[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[i]})}return Object.create(He(t),n)}function nn(t,e=!1){return an(t)||Ue(t)||!qe(t)||(Ke(t)>1&&(t.set=t.add=t.clear=t.delete=rn),Object.freeze(t),e&&$e(t,((t,e)=>nn(e,!0)))),t}function rn(){ze(2)}function an(t){return Object.isFrozen(t)}var on,sn={};function ln(t){const e=sn[t];return e||ze(0,t),e}function cn(){return on}function un(t,e){e&&(ln("Patches"),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function hn(t){dn(t),t.drafts_.forEach(pn),t.drafts_=null}function dn(t){t===on&&(on=t.parent_)}function fn(t){return on={drafts_:[],parent_:on,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function pn(t){const e=t[Le];0===e.type_||1===e.type_?e.revoke_():e.revoked_=!0}function mn(t,e){e.unfinalizedDrafts_=e.drafts_.length;const n=e.drafts_[0];return void 0!==t&&t!==n?(n[Le].modified_&&(hn(e),ze(4)),qe(t)&&(t=gn(e,t),e.parent_||yn(e,t)),e.patches_&&ln("Patches").generateReplacementPatches_(n[Le].base_,t,e.patches_,e.inversePatches_)):t=gn(e,n,[]),hn(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==Fe?t:void 0}function gn(t,e,n){if(an(e))return e;const r=e[Le];if(!r)return $e(e,((i,a)=>vn(t,r,e,i,a,n))),e;if(r.scope_!==t)return e;if(!r.modified_)return yn(t,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const e=r.copy_;let i=e,a=!1;3===r.type_&&(i=new Set(e),e.clear(),a=!0),$e(i,((i,o)=>vn(t,r,e,i,o,n,a))),yn(t,e,!1),n&&t.patches_&&ln("Patches").generatePatches_(r,n,t.patches_,t.inversePatches_)}return r.copy_}function vn(t,e,n,r,i,a,o){if("production"!==H.env.NODE_ENV&&i===n&&ze(5),Ue(i)){const o=gn(t,i,a&&e&&3!==e.type_&&!Ze(e.assigned_,r)?a.concat(r):void 0);if(Xe(n,r,o),!Ue(o))return;t.canAutoFreeze_=!1}else o&&n.add(i);if(qe(i)&&!an(i)){if(!t.immer_.autoFreeze_&&t.unfinalizedDrafts_<1)return;gn(t,i),e&&e.scope_.parent_||yn(t,i)}}function yn(t,e,n=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&nn(e,n)}var bn={get(t,e){if(e===Le)return t;const n=tn(t);if(!Ze(n,e))return function(t,e,n){var r;const i=Dn(e,n);return i?"value"in i?i.value:null==(r=i.get)?void 0:r.call(t.draft_):void 0}(t,n,e);const r=n[e];return t.finalized_||!qe(r)?r:r===wn(t.base_,e)?(xn(t),t.copy_[e]=Tn(r,t)):r},has:(t,e)=>e in tn(t),ownKeys:t=>Reflect.ownKeys(tn(t)),set(t,e,n){const r=Dn(tn(t),e);if(null==r?void 0:r.set)return r.set.call(t.draft_,n),!0;if(!t.modified_){const r=wn(tn(t),e),i=null==r?void 0:r[Le];if(i&&i.base_===n)return t.copy_[e]=n,t.assigned_[e]=!1,!0;if(function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}(n,r)&&(void 0!==n||Ze(t.base_,e)))return!0;xn(t),Sn(t)}return t.copy_[e]===n&&(void 0!==n||e in t.copy_)||Number.isNaN(n)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=n,t.assigned_[e]=!0),!0},deleteProperty:(t,e)=>(void 0!==wn(t.base_,e)||e in t.base_?(t.assigned_[e]=!1,xn(t),Sn(t)):delete t.assigned_[e],t.copy_&&delete t.copy_[e],!0),getOwnPropertyDescriptor(t,e){const n=tn(t),r=Reflect.getOwnPropertyDescriptor(n,e);return r?{writable:!0,configurable:1!==t.type_||"length"!==e,enumerable:r.enumerable,value:n[e]}:r},defineProperty(){ze(11)},getPrototypeOf:t=>He(t.base_),setPrototypeOf(){ze(12)}},_n={};function wn(t,e){const n=t[Le];return(n?tn(n):t)[e]}function Dn(t,e){if(!(e in t))return;let n=He(t);for(;n;){const t=Object.getOwnPropertyDescriptor(n,e);if(t)return t;n=He(n)}}function Sn(t){t.modified_||(t.modified_=!0,t.parent_&&Sn(t.parent_))}function xn(t){t.copy_||(t.copy_=en(t.base_,t.scope_.immer_.useStrictShallowCopy_))}$e(bn,((t,e)=>{_n[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),_n.deleteProperty=function(t,e){return"production"!==H.env.NODE_ENV&&isNaN(parseInt(e))&&ze(13),_n.set.call(this,t,e,void 0)},_n.set=function(t,e,n){return"production"!==H.env.NODE_ENV&&"length"!==e&&isNaN(parseInt(e))&&ze(14),bn.set.call(this,t[0],e,n,t[0])};function Tn(t,e){const n=Je(t)?ln("MapSet").proxyMap_(t,e):Qe(t)?ln("MapSet").proxySet_(t,e):function(t,e){const n=Array.isArray(t),r={type_:n?1:0,scope_:e?e.scope_:cn(),modified_:!1,finalized_:!1,assigned_:{},parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,a=bn;n&&(i=[r],a=_n);const{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,s}(t,e);return(e?e.scope_:cn()).drafts_.push(n),n}function kn(t){if(!qe(t)||an(t))return t;const e=t[Le];let n;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,n=en(t,e.scope_.immer_.useStrictShallowCopy_)}else n=en(t,!0);return $e(n,((t,e)=>{Xe(n,t,kn(e))})),e&&(e.finalized_=!1),n}var Cn=new class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,e,n)=>{if("function"==typeof t&&"function"!=typeof e){const n=e;e=t;const r=this;return function(t=n,...i){return r.produce(t,(t=>e.call(this,t,...i)))}}let r;if("function"!=typeof e&&ze(6),void 0!==n&&"function"!=typeof n&&ze(7),qe(t)){const i=fn(this),a=Tn(t,void 0);let o=!0;try{r=e(a),o=!1}finally{o?hn(i):dn(i)}return un(i,n),mn(r,i)}if(!t||"object"!=typeof t){if(r=e(t),void 0===r&&(r=t),r===Fe&&(r=void 0),this.autoFreeze_&&nn(r,!0),n){const e=[],i=[];ln("Patches").generateReplacementPatches_(t,r,e,i),n(e,i)}return r}ze(1,t)},this.produceWithPatches=(t,e)=>{if("function"==typeof t)return(e,...n)=>this.produceWithPatches(e,(e=>t(e,...n)));let n,r;const i=this.produce(t,e,((t,e)=>{n=t,r=e}));return[i,n,r]},"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),"boolean"==typeof(null==t?void 0:t.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy)}createDraft(t){qe(t)||ze(8),Ue(t)&&(t=function(t){Ue(t)||ze(10,t);return kn(t)}(t));const e=fn(this),n=Tn(t,void 0);return n[Le].isManual_=!0,dn(e),n}finishDraft(t,e){const n=t&&t[Le];n&&n.isManual_||ze(9);const{scope_:r}=n;return un(r,e),mn(void 0,r)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}applyPatches(t,e){let n;for(n=e.length-1;n>=0;n--){const r=e[n];if(0===r.path.length&&"replace"===r.op){t=r.value;break}}n>-1&&(e=e.slice(n+1));const r=ln("Patches").applyPatches_;return Ue(t)?r(t,e):this.produce(t,(t=>r(t,e)))}},En=Cn.produce;Cn.produceWithPatches.bind(Cn);var An=Cn.setAutoFreeze.bind(Cn);function On(t,e){return An(!1),En(t,e)}Cn.setUseStrictShallowCopy.bind(Cn),Cn.applyPatches.bind(Cn),Cn.createDraft.bind(Cn),Cn.finishDraft.bind(Cn);var Mn={updataArea:function(t,e){t.currentArea=e},selectdArea:function(t,e){var n=we(e,t.list);t.currentArea=n},updataAngle:function(t,e){var n=e.id,r=e.angle,i=re(t.list,n);"boolean"!=typeof i&&(i.baseData.angle=r)},updataBaseData:function(t,e){var n,r=e.data;if(null==(null===(n=null==r?void 0:r.baseData)||void 0===n?void 0:n.opacity)&&(r.baseData.opacity=100),Qt(e.data.baseData,"updataBaseData")){var i=e.ratio,a=re(t.list,r.cid),o=e.oldData;if("object"!=typeof a||a.pid){if("object"==typeof a&&a.pid){var s=re(t.list,a.pid);"object"==typeof s?(a.baseData.left<0&&(a.baseData.left=0),a.baseData.top<0&&(a.baseData.top=0),Object.assign(a.baseData,r.baseData),Se(s,s.baseData),t.groupFlag=!t.groupFlag):s||(a.baseData.left<0&&(a.baseData.left=0),a.baseData.top<0&&(a.baseData.top=0),Object.assign(a.baseData,r.baseData))}}else if(Object.assign(a.baseData,r.baseData),i&&a.children&&a.children.length>0){var l=a.baseData.width/o.width,c=a.baseData.height/o.height;Jt(a.children,{xRatio:l,yRatio:c})}}},multipleUpdataBaseData:function(e,n){if(n.ratio)for(var r=n.newData,i=n.oldData,a=r.width/i.width,o=r.height/i.height,s=e.cache.length;s--;)e.cache[s].baseData.left=e.cache[s].baseData.left*a,e.cache[s].baseData.width=e.cache[s].baseData.width*a,e.cache[s].baseData.top=e.cache[s].baseData.top*o,e.cache[s].baseData.height=e.cache[s].baseData.height*o;else for(s=e.cache.length;s--;){var l=t.cloneDeep(e.cache[s].baseData);l.left=l.left+n.deltaX,l.top=l.top+n.deltaY,e.cache[s].comPanel?e.cache[s].comPanel.setAttrData(Object.assign(l,n.baseData)):e.cache[s].baseData=l}},multipleUpdata:function(t,e){var n=e.ids,r=e.data,i=re(t.list,n);i&&Object.assign(i.baseData,r)},multipleMove:function(t,e){},move:function(t,e){var n=t.selectd,r=e.type,i=e.speed?e.speed:1;if(0!==n.length){var a=t.list.filter((function(t){return n.includes(t.cid)}));0==a.length&&(a=[re(t.list,n[0])]);for(var o=0;o<a.length;o++){var s=a[o];if(s.pid&&t.selectd.length>1)return void console.warn("Only one component can be moved within a group");if("up"===r?s.baseData.top=s.baseData.top-i:"down"===r?s.baseData.top+=i:"left"===r?s.baseData.left-=i:"right"===r&&(s.baseData.left+=i),"object"==typeof s&&s.pid){var l=re(t.list,s.pid);"object"==typeof l&&(Se(l,l.baseData),t.groupFlag=!t.groupFlag)}}}else console.warn("Warning! please select the component to move.")},updataGroupBaseData:function(e,n){var r=re(e.list,n.pid),i=t.cloneDeep(r);re(r.children,n.cid),Se(r,i.baseData)},editGroupBaseData:function(t,e){var n=re(t.list,e);n.children.forEach((function(t){ve(t,n.baseData)}))},syncBaseData:function(e,n){var r=n.cid,i=n.data,a=n.isContainer;console.time("syncBaseData");var o=function(t){for(var e=0;e<t.length;e++)r===t[e].cid?t[e].baseData=Object.assign({},t[e].baseData,i):t[e].hasOwnProperty("children")&&o(t[e].children)},s=On(e.list,(function(t){void 0!==a&&t.length&&o(t)}));if(a)e.list=s;else{var l=re(s,r);if(l){var c=t.cloneDeep(l.baseData),u=Object.assign({},l.baseData,i);this.commit("GoCom/updataBaseData",{data:{cid:r,baseData:u},oldData:c,ratio:!0})}}console.timeEnd("syncBaseData")},updataItemData:function(t,e){var n=e.cid,r=e.propsName,i=e.propsValue,a=re(t.list,n);a&&(a[r]=i)},updataOpacity:function(t,e){var n=e.cid,r=e.propsValue,i=re(t.list,n);"boolean"!=typeof i&&i&&(i.baseData.opacity=r)}};function Nn(t,e,n,r){return new(n||(n=Promise))((function(i,a){function o(t){try{l(r.next(t))}catch(t){a(t)}}function s(t){try{l(r.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}l((r=r.apply(t,e||[])).next())}))}"function"==typeof SuppressedError&&SuppressedError;class Pn{constructor(){this.requests=[],console.log("RequestTracker")}static getInstance(){return Pn.instance||(Pn.instance=new Pn),Pn.instance}addRequest(t){if(this.isDuplicateRequest(t)){let e=this.findRequest(t);this.cancelRequest(e)}this.requests.push(t)}findRequest(t){let e;for(const n of this.requests)if(this.areRequestsEqual(n,t)){e=n;break}return e}removeRequest(t){const e=this.requests.indexOf(t);-1!==e&&this.requests.splice(e,1)}cancelRequest(t){t.cancelToken.cancel("Request canceled"),this.removeRequest(t)}isDuplicateRequest(t){return this.requests.some((e=>this.areRequestsEqual(e,t)))}areRequestsEqual(t,e){return t.url===e.url&&JSON.stringify(t.data)===JSON.stringify(e.data)&&JSON.stringify(t.params)===JSON.stringify(e.params)&&t.method===e.method}}const Vn=Pn.getInstance(),Rn=3e3,Bn=3e3,In=(t="",e)=>{let r,i=n.create({baseURL:t,timeout:Rn,headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"}});return i.interceptors.request.use((function(t){let{url:e,params:i,headers:a,data:o,method:s}=t;const l=n.CancelToken.source();return r={url:e,params:i,headers:a,data:o,method:s,cancelToken:l},t.cancelToken=l.token,Vn.addRequest(r),sessionStorage.getItem("anov-go-token")&&"null"!=sessionStorage.getItem("anov-go-token")&&(t.headers["X-ANOV-ACCESS-TOKEN"]=sessionStorage.getItem("anov-go-token")),sessionStorage.getItem("unify-access-token")&&"null"!=sessionStorage.getItem("unify-access-token")&&(t.headers["X-UNIFY-ACCESS-TOKEN"]=sessionStorage.getItem("unify-access-token")),sessionStorage.getItem("dgcc_authorization")&&"null"!=sessionStorage.getItem("dgcc_authorization")&&(t.headers.dgcc_authorization=sessionStorage.getItem("dgcc_authorization")),"post"===t.method?(t.headers["Content-Type"]="application/json;",t):"get"===t.method?t:"put"===t.method?(t.headers["Content-Type"]="application/json; charset=UTF-8",t):"delete"===t.method?t:void 0}),(function(t){return Promise.reject(t)})),i.interceptors.response.use((function(t){return 200===t.status||t.data.code,e&&e(t),Vn.removeRequest(r),t.data}),(function(t){return e&&(Vn.removeRequest(r),e(null==t?void 0:t.response)),Promise.reject(t.response)})),i},Fn=(t,e)=>{try{let n=e||window.location.href;if(-1!=n.indexOf("?")){let e={};return n.slice(n.indexOf("?")+1).split("&").forEach((t=>{let n=t.split("=");e[n[0]]=n[1]})),t?e[t]?e[t]:null:e}return console.log("没有参数"),null}catch(t){console.error(t)}};function jn(t,e=!1){try{return e?Ln(t)?t:JSON.stringify(t):Ln(t)?JSON.parse(t):t}catch(e){return console.log("转化JSON 发生错我!",t),t}}const Ln=t=>{if("string"==typeof t)try{const e=JSON.parse(t);return"object"==typeof e&&null!==e}catch(t){return!1}return!1},Yn=(t,e)=>{try{const n=JSON.stringify(e);sessionStorage.setItem(t,n)}catch(e){console.error(`Error setting session data for key ${t}:`,e)}},zn=t=>{const e=sessionStorage.getItem(t);if(e)try{return JSON.parse(e)}catch(e){console.error(`Error parsing session data for key ${t}:`,e)}return null},Hn=t=>{for(const e of t)e.code&&(e.code=e.code.replace(/>/g,">").replace(/</g,"<"))},Un=(t,e)=>{t instanceof Map?t.forEach((t=>{e([t])})):Array.isArray(t)&&t.forEach((t=>{e(t.children)}))},qn=(t,e)=>{const n=t=>{var r,i,a;if(t)for(const o of t){const t=null===(a=null===(i=null===(r=null==o?void 0:o.tmpData)||void 0===r?void 0:r.source)||void 0===i?void 0:i.converse)||void 0===a?void 0:a.data;(null==t?void 0:t.length)&&Hn(t),e(o),o.children?n(o.children):o.dynamicChildren?Un(o.dynamicChildren,n):o.stateChildren&&n(o.stateChildren)}};n(t)},Gn=(t,e,n,r)=>{const i=t.match(/({{[\w]*}})|((@)[\w]*)/gm);if(i){const t=i.map((t=>t.replace(/{{|}}|@/gm,"")));for(const i of t)if(i&&e&&!(e.findIndex((t=>t.mapField===i))<0))return n&&r&&Wn(r,i,n.cid),!0}return!1},Wn=(t,e,n)=>{if(!t)throw new Error("Share variable tree is not defined");if("string"!=typeof e)throw new Error("Variable name should be a string");if(!n)throw new Error("ID is required");Array.isArray(t[e])||(t[e]=[]),t[e].includes(n)||t[e].push(n)},$n=(t,e,n)=>{var r;let i=!1;const a=null==e?void 0:e.converse;if(a&&a.use&&a.data.length)for(const e of a.data)if((null==e?void 0:e.dependVars)&&e.dependVars.includes(t))return!0;const o=null==e?void 0:e[null==e?void 0:e.type];return((null==o?void 0:o.inputSql)||(null==o?void 0:o.url)||(null==o?void 0:o.headers)||(null==o?void 0:o.params))&&(i=Gn(o.inputSql||o.url||(null===(r=o.headers)||void 0===r?void 0:r.value)||o.params,n)),i},Kn=(e,n,r=!1)=>{let i=null;const a=e=>{for(const o of e){if(o.cid===n){i=o,r&&t.remove(e,(t=>t.cid===n));break}if(o.children&&a(o.children),o.dynamicChildren&&Array.isArray(o.dynamicChildren))for(const[,t]of Array.from(o.dynamicChildren))a(t);o.stateChildren&&a(o.stateChildren)}};return a(e),i};function Zn(e,n,r){let i=t.cloneDeep(n);const a={};r&&r.forEach((t=>{(null==t?void 0:t.name)&&(a[t.name]=t.value||t.originvalue)}));try{return new Function("data","vars",e)(i,a)}catch(e){return console.error(e),i}}const Xn=t=>{let e=window.goFetchList;e&&e[t]&&delete e[t]};function Jn(t){let e=Xt.enc.Utf8.parse("anov@2019:helloX"),n=Xt.enc.Utf8.parse("anov@2020:helloX");return Xt.AES.encrypt(t,e,{iv:n,mode:Xt.mode.CBC,padding:Xt.pad.Pkcs7}).toString()}function Qn(t,e){if(0===t.length)throw new Error("Array is empty.");if(!e)return t[Math.floor(Math.random()*t.length)];if(e.length!==t.length)throw new Error("Length of probabilities array must match length of array.");const n=e.reduce(((t,e)=>t+e),0),r=Math.random()*n;let i=0;for(let n=0;n<t.length;n++)if(i+=e[n],r<i)return t[n];return t[0]}const tr=new Blob(["\nfunction proxyObj(originObj) {\n const exposeObj = new Proxy(originObj, {\n has: (target, key) => {\n if (['fetch', 'XMLHttpRequest', 'postMessage'].indexOf(key) >= 0) {\n throw new Error('Illegal operation for key'+key)\n } else {\n return target[key]\n }\n },\n })\n return exposeObj\n}\nfunction compileCode(src) {\n src = 'with (exposeObj) {'+src+'}'\n //console.log(src)\n return new Function('exposeObj', src)\n}\nfunction run(code) {\n let proxy = proxyObj({})\n let result = compileCode(code)(proxy)\n return result\n}\n\nonmessage = (e) => {\n try {\n let result = run(e.data.code)\n postMessage({\n code: 1,\n result,\n })\n } catch (err) {\n postMessage({\n code: -1,\n err,\n })\n }\n}\n"]),er=URL.createObjectURL(tr);function nr(t,e,n={},r="worker"){return Nn(this,void 0,void 0,(function*(){try{if("window"==r){let[r,i]=[["data"],[e]];"object"==typeof n&&Object.keys(n).forEach((t=>{r.push(t),i.push(n[t])}));return{success:!0,data:new Function(...r,t)(...i)}}{let[r,i,a]=[e,n,""];"object"==typeof r&&(r=JSON.stringify(e)),"object"==typeof n&&(i=JSON.stringify(n)),Object.keys(n).forEach((t=>a+=`${t},`));let o=`let data=eval(${r}); \n let app=${JSON.stringify({})};`;o+=a?`let {${a}} = eval(${i}); `:"",o+=`${t}`;let s=yield function(t,e=5e3){return Nn(this,void 0,void 0,(function*(){let n=new Worker(er);return new Promise(((r,i)=>{const a=()=>{clearTimeout(s),n.removeEventListener("message",o),n.terminate(),n=null},o=t=>{let{code:e,result:n,err:o}=t.data;a(),1===e?r(n):i(o)};n.postMessage({code:t}),n.addEventListener("message",o);let s=setTimeout((()=>{a(),i("timeout")}),e)}))}))}(o);return{success:!0,data:s}}}catch(t){return{success:!1,error:t,data:e}}}))}var rr,ir,ar,or;!function(t){t.StaticFile="staticFile",t.DataSource="datasource"}(rr||(rr={})),function(t){t.json="application/json;charset=UTF-8",t.form="application/x-www-form-urlencoded; charset=UTF-8"}(ir||(ir={})),function(t){t.get="GET",t.post="POST",t.put="PUT",t.patch="PATCH",t.delete="DELETE"}(ar||(ar={}));class sr{constructor(t){this.db=null,this.dbName=t.databaseName,this.tableName=t.tableName,this.keyPath=t.keyPath}static getInstance(t){return sr.instance||(sr.instance=new sr(t)),sr.instance}init(){return Nn(this,void 0,void 0,(function*(){return new Promise(((t,e)=>{const n=indexedDB.open(this.dbName,1);n.onerror=t=>{e(t.target.error)},n.onupgradeneeded=t=>{this.db=t.target.result,this.db.objectStoreNames.contains(this.tableName)||this.db.createObjectStore(this.tableName,{keyPath:this.keyPath})},n.onsuccess=e=>{this.db=e.target.result,t()}}))}))}addRecord(t){return Nn(this,void 0,void 0,(function*(){if(!this.db)throw new Error("数据库未初始化。");return new Promise(((e,n)=>{const r=this.db.transaction([this.tableName],"readwrite").objectStore(this.tableName).add(t);r.onsuccess=()=>{e()},r.onerror=t=>{n(t.target.error)}}))}))}deleteRecord(t){return Nn(this,void 0,void 0,(function*(){if(!this.db)throw new Error("数据库未初始化。");return new Promise(((e,n)=>{const r=this.db.transaction([this.tableName],"readwrite").objectStore(this.tableName).delete(t);r.onsuccess=()=>{e()},r.onerror=t=>{n(t.target.error)}}))}))}updateRecord(t){return Nn(this,void 0,void 0,(function*(){if(!this.db)throw new Error("数据库未初始化。");return new Promise(((e,n)=>{const r=this.db.transaction([this.tableName],"readwrite").objectStore(this.tableName).put(t);r.onsuccess=()=>{e()},r.onerror=t=>{n(t.target.error)}}))}))}getRecord(t){return Nn(this,void 0,void 0,(function*(){if(!this.db)throw new Error("数据库未初始化。");return new Promise(((e,n)=>{const r=this.db.transaction([this.tableName],"readonly").objectStore(this.tableName).get(t);r.onsuccess=()=>{e(r.result)},r.onerror=t=>{n(t.target.error)}}))}))}getAllRecords(){return Nn(this,void 0,void 0,(function*(){if(!this.db)throw new Error("数据库未初始化。");return new Promise(((t,e)=>{const n=this.db.transaction([this.tableName],"readonly").objectStore(this.tableName).getAll();n.onsuccess=()=>{t(n.result)},n.onerror=t=>{e(t.target.error)}}))}))}}sr.instance=null,function(t){t[t.FATAL=0]="FATAL",t[t.ERROR=1]="ERROR",t[t.WARN=2]="WARN",t[t.INFO=3]="INFO",t[t.DEBUG=4]="DEBUG",t[t.TRACE=5]="TRACE"}(or||(or={}));const lr={databaseName:"GODB",tableName:"go-log",keyPath:"time"};class cr{constructor(){this.logLevel=or.INFO,this.indexedDBInstance=sr.getInstance(lr);try{this.indexedDBInstance.init(),console.log("IndexedDB 初始化成功。")}catch(t){console.error("初始化 IndexedDB 时出错:",t)}}static getInstance(){return cr.instance||(cr.instance=new cr),cr.instance}setLogLevel(t){this.logLevel=t}getColor(t){switch(t){case or.FATAL:return"[31;1m";case or.ERROR:return"[31m";case or.WARN:return"[33m";case or.INFO:return"[32m";case or.DEBUG:return"[36m";case or.TRACE:return"[34m";default:return"[0m"}}log(t,e){if(e<=this.logLevel){const n=(new Date).toISOString(),r=`[${n}] [${or[e]}]`,i=this.getColor(e);if(null===window||void 0===window?void 0:window.goDev)console.log(`${i}${r} ${t}[0m`);else{let e=zn("anov-go-userInfo"),a=zn("anov-go-proid"),o=` [操作人:${null==e?void 0:e.userName} 项目ID:${a}] `;const s={time:n,value:`${t}`};try{this.indexedDBInstance.addRecord(s)}catch(t){console.error("添加记录时出错:",t)}console.log(`${i}${r} ${o} ${t}[0m`)}}}fatal(t){this.log(t,or.FATAL)}error(t){this.log(t,or.ERROR)}warn(t){this.log(t,or.WARN)}info(t){this.log(t,or.INFO)}debug(t){this.log(t,or.DEBUG)}trace(t){this.log(t,or.TRACE)}}const ur=cr.getInstance(),hr=In();let dr=In();function fr(e,n="get",r={},i={}){return Nn(this,void 0,void 0,(function*(){try{const a={method:ar[n],url:e,headers:i,timeout:Bn};return["post","put"].includes(n.toLowerCase())?a.data=t.cloneDeep(r):a.params=t.cloneDeep(r),/.json$/.test(e)?function(t){return Nn(this,void 0,void 0,(function*(){try{return(yield hr({method:"get",url:t})).data}catch(t){throw console.error("JSON 数据请求:",t),t}}))}(e):function(t){return Nn(this,void 0,void 0,(function*(){try{return{code:2e4,data:(yield hr(t)).data}}catch(t){throw console.error("请求数据发生错误-Error:",t),t}}))}(a)}catch(t){throw console.error("获取数据:Error:",t),t}}))}function pr(t,e,n,r){return Nn(this,void 0,void 0,(function*(){try{const i=(window.anUrl||"")+(window.agentPath||"/ds/v1/api-proxy/v1/query"),a=jn(n,!0);return yield hr({url:i,method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:{body:"post"===t?a:void 0,headers:Ln(r)?jn(r,!0):r,method:t,url:e}})}catch(t){throw console.error("代理请求数据:Error:",t),t}}))}function mr(t,e,n,r,i){return Nn(this,void 0,void 0,(function*(){return i?pr(e,t,n,r):fr(t,e,n,r)}))}function gr(t,e="",n){var r,i,a,o;const s=`${null!==(i=null===(r=null===window||void 0===window?void 0:window.BaseUrl)||void 0===r?void 0:r.replace("/management",""))&&void 0!==i?i:""}/ds/data-engine/v1/${t}/zb-query?token=${(null===(a=Cr("YZH_EXCHANGE_TOKEN"))||void 0===a?void 0:a.YZH_EXCHANGE_TOKEN)||(null===(o=null===window||void 0===window?void 0:window.yzhAuth)||void 0===o?void 0:o.getToken())}&passid=${null===window||void 0===window?void 0:window.gdPassid}${(null===window||void 0===window?void 0:window.BASE_RELEASE)?"&preview=1":""}`;let l={};try{l=e?JSON.parse(e):{}}catch(t){l=e||{}}return hr({method:"POST",url:s,data:{headers:n,param:l},timeout:Rn})}const vr=(t,e)=>Nn(void 0,void 0,void 0,(function*(){const n=window.BaseUrl,{dateType:r="",endPeriod:i="",metricsName:a=t,startPeriod:o=""}=e;return dr({method:"GET",url:`${n}ds/v1/metrics/v1/data-alarm?dateType=${r}&endPeriod=${i}&metricsName=${a}&startPeriod=${o}`,timeout:Rn})})),yr=(t,e,n)=>Nn(void 0,void 0,void 0,(function*(){var r;const i=(null===(r=window.BaseUrl)||void 0===r?void 0:r.replace("/management",""))||"";e.newEncryption=!0;const a={staticFile:{method:"get",params:e,url:`${i}/ds/v1/file/v1/${t}/query`},datasource:{method:"post",url:`${i}/ds/v1/database/v1/${t}/query`,data:Object.assign({},e)}}[n];if(!a)throw new Error("Invalid data type provided");return hr(Object.assign({timeout:Rn},a))})),br=t=>new Promise(((e,n)=>{let r;r=t.originData&&Object.keys(t.originData).length?t.originData:t.data,void 0!==r?e({data:r}):n("Failed to retrieve cdata")})),_r=(t,e,n)=>{try{switch(e){case"api":{let e=Or(t,n);return{requestType:e.requestType,url:e.url,params:e.params,headers:e.headers,agency:e.agency}}case"static":return{data:t};case"datasource":{const e=Ar(t.inputSql,n);return{dsName:t.dsName,dsType:"1",sql:Jn(e),filter:t.sqlFilter}}case"staticFile":return{dsName:t.dsName,dsType:t.dsType,sql:""};case"indicator":return{zbId:t.zbId,params:Ar(t.params,n),headers:Ar(t.headers,n)};case"indicatorCQ":return{zbName:t.zbName,params:Ar(t.params,n)};case"packData":return{};default:throw new Error("Invalid type")}}catch(e){console.log("准备请求数据发生错误",e,t)}},wr=(t,e)=>Nn(void 0,void 0,void 0,(function*(){try{switch(e){case"api":return yield mr(t.url,t.requestType,t.params,t.headers,t.agency);case"static":return yield br(t.data);case"datasource":return yield yr(t.dsName,{dsType:t.dsType,sql:t.sql,filter:t.filter},"datasource");case"staticFile":return yield yr(t.dsName,{dsType:t.dsType,sql:t.sql},"staticFile");case"indicator":return yield gr(t.zbId,t.params,t.headers);case"indicatorCQ":return yield vr(t.zbName,t.params);case"packData":return{};default:throw new Error("Invalid type")}}catch(t){return console.warn(t,"执行请求并获取数据发生错误"),yield new Promise(((t,e)=>{t({error:!0})}))}})),Dr=(t,e,n,r=[],i=!1)=>Nn(void 0,void 0,void 0,(function*(){const a=e||t.tmpData.source.dataType,o=t.tmpData.source["indicatorCQ"==a?"indicator":a];if("globalData"===a){const t=r.find((t=>t.key===o.id||t.key===o.key)),e=zn(o.id);if(e&&!i)return e.data;if(t){let e=yield Sr(t,n),r={key:o.id,data:e};return Yn(o.id,r),e}return}const s=_r(o,a,n),l=yield wr(s,a);return(null==l?void 0:l.data)?l.data:l})),Sr=(t,e)=>Nn(void 0,void 0,void 0,(function*(){let n=Object.assign({},{tmpData:{source:t.value}});const r=n.tmpData.source.type,i=n.tmpData.source[r],a=_r(i,r,e),o=yield wr(a,r);return yield xr(o.data,n,!0,e)})),xr=(e,n,r=!0,i)=>Nn(void 0,void 0,void 0,(function*(){try{const{converse:a,mapFields:o}=n.tmpData.source;return a&&a.use&&r?yield new Promise(((n,r)=>{const o=function(e,n,r,i,a){return Nn(this,void 0,void 0,(function*(){let r,a=e,{use:o,data:s}=t.cloneDeep(n);if(o)for(let e=0;e<s.length;e++)if(s[e].use){let n=s[e].dependVars,o={};i&&o&&n&&n.length&&n.map((e=>{let n=t.cloneDeep(i).filter((t=>{let n=t.mapField==e;return n&&(o[e]=t.value),n}));n&&0!=n.length||(o[e]="")})),r=yield nr(s[e].code,a,o,s[e].mode?s[e].mode:"worker"),a=r.data}return a}))}(e,a,0,i);n(o)})):yield new Promise(((t,n)=>{t(e)}))}catch(t){return console.error("执行过滤器发生错误:"+t),yield new Promise(((t,n)=>{t(e)}))}})),Tr=(t,e,n)=>{const{source:r}=t.tmpData,i=r.type;n?("static"===i&&r[i]&&(r[i].originData=n),"indicatorCQ"===i?r.indicator.data=e:r[i].data=e):"indicatorCQ"===i?r.indicator.data=e:r[i].data=e,t.source=e},kr=(t,e,n=[],r,i,a)=>Nn(void 0,void 0,void 0,(function*(){try{let o=t.tmpData.source.type,s=yield Dr(t,o,n,r,a||!1);if(null==s||!s)return i&&i({error:!0}),Promise.resolve({error:!0});let l=yield xr(s,t,e,n);return Tr(t,l),i&&i(l),(null==t?void 0:t.cid)&&Xn(t.cid),Promise.resolve(l)}catch(t){return i&&i(t),ur.error("Error in updateComData"),console.error("Error in updateComData:",t),Promise.reject(t)}})),Cr=t=>{const e={};if(t&&t.includes("?")){const n=t.split("?")[1].split("&");for(let t of n){const[n,r]=t.split("=").map(decodeURIComponent);e[n]=r}}return e},Er=t=>{try{return(null==t?void 0:t.value)&&"string"==typeof t.value?JSON.parse(t.value):"string"==typeof t?JSON.parse(t):t}catch(e){return t}},Ar=(t,e)=>{if(!e)return Er(t);if("string"==typeof t){if(""===t.trim())return"";try{if("string"!=typeof JSON.parse(t))return Ar(JSON.parse(t),e);{let n=t.replace(/@(\w+)|{{(\w+)}}/g,((t,n,r)=>{const i=n||r,a=e.find((t=>t.mapField===i));return a?a.value||a.originalValue||"":t}));return Er(n)}}catch(n){let r=t.replace(/@(\w+)|{{(\w+)}}/g,((t,n,r)=>{const i=n||r,a=e.find((t=>t.mapField===i));return a?a.value:t}));return Er(r)}}else{if(Array.isArray(t))return t.map((t=>Ar(t,e)));if("object"==typeof t&&null!==t){const n={};for(let r in t)n[r]=Ar(t[r],e);return Er(n)}}return Er(t)},Or=(t,e)=>{const n=t.agency,r=t,{url:i=null,headers:a,params:o,requestType:s}=r,l=i?Ar(i,e):void 0,c=a&&a.use?Ar(a.value,e):{};return{url:l,requestType:s,params:o?Ar(o,e):{},headers:c,agency:n}},Mr=(t,e,n,r,i)=>Nn(void 0,void 0,void 0,(function*(){if(t&&t.length)for(const a of t)$n(e,a.value,n)&&(yield kr({tmpData:{source:{type:"globalData",globalData:{id:a.key}}}},!0,n,t,(t=>{console.log("数据更新成功-变量改变全局数据跟新")}),!0),qn(r,(e=>{var r,o,s;"globalData"===(null===(o=null===(r=null==e?void 0:e.tmpData)||void 0===r?void 0:r.source)||void 0===o?void 0:o.type)&&(null===(s=null==e?void 0:e.tmpData)||void 0===s?void 0:s.source.globalData).id===a.key&&kr(e,!0,n,t,(t=>{i(e,t)}),!1)})))})),Nr=(t,e,n,r,i)=>Nn(void 0,void 0,void 0,(function*(){t&&(yield kr({tmpData:{source:{type:"globalData",globalData:{id:t.key}}}},!0,e,n,(t=>{console.log("数据更新成功-数据源编辑")}),!0),qn(r,(r=>{var a,o,s;"globalData"===(null===(o=null===(a=null==r?void 0:r.tmpData)||void 0===a?void 0:a.source)||void 0===o?void 0:o.type)&&(null===(s=null==r?void 0:r.tmpData)||void 0===s?void 0:s.source.globalData).id===t.key&&kr(r,!0,e,n,(t=>{i(r,t)}),!1)})))}));class Pr{constructor(t,e){this.isUpdating=!1,this.des=t.des,this.field=t.field,this.id=t.id,this.key=t.key,this.mapping=t.mapping,this.mapField=t.mapField,this.type=t.type,this.originalValue=t.originalValue,this.model=(null==t?void 0:t.model)?null==t?void 0:t.model:1,this.converter=t.converter,this.converterCode=t.converterCode,this.fork=t.fork,this.delayUpdate=!!(null==t?void 0:t.delayUpdate),e&&(this.globalVariables=e),t.fork&&(this.model=5,this.forkValue=t.forkValue,this.originalValue=this.getForkedValue())}get value(){if(this.fork&&(this.originalValue=this.getForkedValue()),this.converter&&this.converterCode){let t=[];return Zn(this.converterCode,this.originalValue,t)}return this.originalValue}togglePropertyState(t){let e=Object.prototype.hasOwnProperty.call(this,t);this[t]=!e||!t}getForkedValue(){if(this.forkValue&&Array.isArray(this.forkValue))return this.forkValue.map((t=>{const e=this.globalVariables.get(t);return e?e.value:null}));if(this.forkValue){const t=this.globalVariables.get(this.forkValue);return t?t.value:null}return null}updateValue(t,n){var r;const i=Object.assign({},this,t);this.des=i.des,this.field=i.field,this.mapping=i.mapping,this.type=i.type,this.originalValue=i.originalValue,this.converter=i.converter,this.converterCode=i.converterCode,this.fork=i.fork,this.delayUpdate=null==i?void 0:i.delayUpdate,this.model=null==i?void 0:i.model,t.id&&(this.id?"string"==typeof this.id?t.id instanceof Array?this.id=e([this.id,...t.id]):this.id=[this.id,t.id]:this.id instanceof Array&&(t.id instanceof Array?this.id=e([...this.id,...t.id]):this.id=e([...this.id,t.id])):this.id=t.id),t.fork&&(this.model=5,this.forkValue=null!==(r=t.forkValue)&&void 0!==r?r:this.forkValue,this.originalValue=this.getForkedValue()),n&&n(this)}updateWidthOriginalValue(t,e){var n;this.originalValue=t,this.fork&&(this.forkValue=null!==(n=this.forkValue)&&void 0!==n?n:this.forkValue,this.originalValue=this.getForkedValue()),e&&e(this)}renew(t){t&&t(this)}static create(t,e){return new Pr(t,e)}}class Vr{constructor(){this.variables=new Map,this.globalObservers=[],this.url=window.location.search,this.list=[]}clearVars(){this.list=[],this.variables.clear()}togglePropertyState(t,e,n){try{let r=this.getVariable(t);if(!r)throw new Error("没有找到相应的变量!");r.togglePropertyState(e),this.addToObjectArray(this.list,r),n&&n()}catch(t){console.error(t)}}static getInstance(){return Vr.instance||(Vr.instance=new Vr),Vr.instance}getFullUrl(){this.url=window.location.search}getAllUrlParams(){const t=new URLSearchParams(window.location.search),e={};for(const[n,r]of t.entries())e[n]=r;return e}delVariable(t,e){this.variables.delete(t),this.list=this.list.filter((e=>e.mapField!=t)),e&&e()}addUrlParamsToGlobalVars(){this.getFullUrl();let t=this.getAllUrlParams(),e=Object.keys(t),n=[];for(const r of e)n.push({mapField:r,originalValue:t[r],model:4});if(n.length)for(const t of n)this.addVariable(t)}addVariables(t){Array.isArray(t)?t.map(((t,e)=>{this.addVariable(t)})):this.addVariable(t),this.addUrlParamsToGlobalVars()}addVariable(t,e){if(!t||!(null==t?void 0:t.mapField))return console.error(t+"参数不合法!"),!1;if(this.isVariableNameExist(t.mapField)){let n=this.getVariable(t.mapField);return this.sameValue(n,t)?n:(this.editVariable(t,e),!1)}const n=Pr.create(t,this.variables);return this.variables.set(n.mapField,n),this.addToObjectArray(this.list,n),e&&e(n),this.notifyGlobalObservers(n),n}toJSON(t){try{return!!t&&JSON.stringify(t)}catch(t){return!1}}sameValue(t,e){if(t.mapfield!==e.mapfield)return!1;for(const n in e)if(!(["mapfield","field","key","value","name","globalVariables"].includes(n)||n in t&&t[n]==e[n]))return!1;return!0}creatVarJson(t){const{des:e,field:n,id:r,key:i,mapping:a,mapField:o,type:s,value:l,originalValue:c,model:u,converter:h,converterCode:d,fork:f,forkValue:p,update:m,delayUpdate:g}=t,v={};return void 0!==e&&(v.des=e),void 0!==n&&(v.field=n),void 0!==r&&(v.id=r),void 0!==i&&(v.key=i),void 0!==a&&(v.mapping=a),void 0!==o&&(v.mapField=o),void 0!==s&&(v.type=s),void 0!==l&&(v.value=l),void 0!==c&&(v.originalValue=c),void 0!==u&&(v.model=u),void 0!==h&&(v.converter=h),void 0!==d&&(v.converterCode=d),void 0!==f&&(v.fork=f),void 0!==p&&(v.forkValue=p),void 0!==m&&(v.update=m),void 0!==g&&(v.delayUpdate=g),v}addToObjectArray(t,e){let n=!1;for(let r=0;r<t.length;r++)if(t[r].mapField==e.mapField){t[r]=this.creatVarJson(e),n=!0;break}n||t.push(e)}editVariable(t,e){const n=this.getVariable(t.mapField);if(n&&this.isVariableNameExist(t.mapField)&&this.sameValue(n,t))return;const r=t=>{t.isUpdating||(t.isUpdating=!0,this.notifyGlobalObservers(t),this.isMapFieldInForkValues(t.mapField).forEach((t=>{let e=this.getVariable(t.mapField);e&&e.renew((t=>{this.addToObjectArray(this.list,t),this.notifyGlobalObservers(t)}))})),this.addToObjectArray(this.list,t),e&&e(t),t.isUpdating=!1)};n?n.updateValue(t,r):this.addVariable(t,r)}getForkList(t){return this.isMapFieldInForkValues(t)||[]}editVariableForValue(t,e,n){const r=this.getVariable(t);r&&r.updateWidthOriginalValue(e,(t=>{t.isUpdating||(t.isUpdating=!0,this.notifyGlobalObservers(t),this.isMapFieldInForkValues(t.mapField).forEach((t=>{let e=this.getVariable(t.mapField);e&&e.renew((t=>{this.addToObjectArray(this.list,t),this.notifyGlobalObservers(t)}))})),this.addToObjectArray(this.list,t),n&&n(t),t.isUpdating=!1)}))}isMapFieldInForkValues(t){return this.getAllVariables().filter((t=>t.fork&&t.forkValue)).filter((e=>e.forkValue==t||Array.from(e.forkValue).includes(t)))}isVariableNameExist(t){return this.variables.has(t)}checkExist(t,e){if("string"==typeof t&&this.isVariableNameExist(t)){let n=this.getVariable(t);return e==n.id&&!n.id.includes(e)&&[{key:t}]}if(Array.isArray(t)){const n=t.filter((t=>{let n=this.getVariable(t);return this.isVariableNameExist(t)&&e!=n.id&&!(n.id&&n.id.includes(e))})).map((t=>({key:t})));return!!n.length&&n}return!1}getVariable(t){return this.variables.get(t)}getVariableForId(e){var n;let r=[];for(const[,t]of this.variables)(t.id===e||(null===(n=t.id)||void 0===n?void 0:n.includes(e)))&&r.push(t);return t.uniq(r)}getAllVariables(t=!1){return this.addUrlParamsToGlobalVars(),t?(this.list=Array.from(this.variables.values()),this.list):[...this.list]}restoreVariables(t){t.forEach((t=>{this.addVariable(t)}))}registerGlobalObserver(t){this.globalObservers.push(t)}notifyGlobalObservers(t){this.globalObservers.forEach((e=>{e.update(t)}))}}Vr.instance=null;const Rr=Vr.getInstance(),Br=(t,e)=>Array.isArray(e)?e.some((e=>t&&(void 0!==t[e]||t.hasOwnProperty(e)))):"string"==typeof e&&t&&(void 0!==t[e]||t.hasOwnProperty(e)),Ir=(t,e,n,r)=>{const i=((t,e,n,r)=>{var i;let a;if(Br(t,null==e?void 0:e.field)||Br(t,null==e?void 0:e.forkValue))a=t[null==e?void 0:e.field]||"";else if(Br(t.data,null==e?void 0:e.field)||Br(t.data,null==e?void 0:e.forkValue))a=t.data[null==e?void 0:e.field]||"";else{const t=Kn(n,r),o=(null===(i=null==t?void 0:t.tmpData)||void 0===i?void 0:i.actions)||[];for(const t of o){const n=t.vars.find((t=>(null==t?void 0:t.mapField)===(null==e?void 0:e.mapField)));if(n){a=n.value;break}}}return a})(t,e,n,r);return void 0!==i?i:e.value},Fr=(t,e,n,r,i,a,o,s,l)=>{var c;switch(t.type){case"link":let u=Ar(t.link,a);window.open(u,t.target);break;case"page":if(null===(c=null==t?void 0:t.params)||void 0===c?void 0:c.length)for(let e=0;e<t.params.length;e++){const n=t.params[e],r=a.find((t=>t.mapField==n.mapField));r&&(n.value=r.value)}l&&l(t);break;case"dynamic":((t,e,n,r,i)=>{const a=t.dynamic||[];for(const o of a){if(t.id!==e.cid)continue;const a=Kn(n,o.pid);a&&(a.activeDynamic=o.name,a.isShow=o.visible||!r||t.index===e.index-1,i({cid:a.cid,flag:o.visible}))}})(t,e,n,r,i);break;case"toggle":((t,e,n,r,i)=>{const a=t.children||[];for(const n of a){const a=n.visible&&(!r||t.index===e.index-1);i({cid:n.cid,flag:a})}})(t,e,0,r,i);break;case"update":((t,e,n,r,i)=>{const a=t.children||[];for(const t of a){const a=Kn(e,t.cid);a&&kr(a,!0,n,r,(t=>{i({cid:a.cid,data:t})}))}})(t,n,a,o,s)}},jr=(e,n,r,i,a,o,s,l,c,u)=>{const{cid:h,actions:d,index:f}=a,{eventName:p,mode:m}=d,g=2===m;((e,n,r,i,a,o)=>{let s=Rr.getVariableForId(n.cid);if(null==s?void 0:s.length)for(const l of s)if(l.type==e){let e=Ir(n,l,r,i);Rr.editVariableForValue(l.mapField,e,(()=>{let e=a[l.mapField]||[],n=Rr.getForkList(l.mapField);if(n)for(const r of n){let n=a[r.mapField];e=t.concat(e,n)}o&&o(l,t.uniq(e))}))}})(p,a,i,h,r,((t,e)=>{if(Mr(c,t.mapFile,Rr.getAllVariables(),i,((t,e)=>{s({cid:t.cid,data:e})})),null==e?void 0:e.length)for(const n of e){t.eventSourceId=n;const e=Kn(i,n);!(null==t?void 0:t.delayUpdate)&&e&&kr(e,!0,Rr.getAllVariables(),c,(t=>{s({cid:e.cid,data:t})}))}}));const v=((t,e,n,r,i)=>t.filter((t=>t.id===e&&t.eventType===n&&(!i||parseInt(t.index||"0")+1===parseInt(r||"0")))))(e,h,p,f,g);for(const t of v)Fr(t,a,i,g,o,Rr.getAllVariables(),c,s,l)},Lr=(t,e={})=>{let n={},r={type:"static",converse:{use:!1,data:[]},static:{data:t},api:{requestType:"get",url:"",headers:{use:!1,value:""},params:"",agency:!1,cookie:!0,autoUpdate:{open:!1,time:10},data:""}};return Object.assign(n,r,e),n},Yr=(e,n,r)=>{let i=((e,n)=>{let{option:r,actions:i,data:a,optionDes:o,actionsDes:s,source:l,theme:c}=((e,n)=>{let{option:r,actions:i,data:a,optionDes:o,actionsDes:s,source:l,theme:c}=t.cloneDeep(n[e]);return{option:r,actions:i,data:a,optionDes:o,actionsDes:s,source:l,theme:c}})(e,n);return{iconClass:null,isAssembly:null,source:a,cid:(Math.random().toString().substr(3,10)+Date.now()).toString(),isLock:!1,isShow:!0,tmpData:{option:r,source:Lr(a,l),actions:i},baseData:zr(),dynamic:null,filePath:"",origin:"anov-ui",name:"",componentType:"",viewComName:e,optionComName:"AnOptionPanel",dataComName:"AnSourcePanel",eventComName:"AnActionsPanel",assemblyDeveloper:"",devEmail:"",version:"",devDept:""}})(e,n);return r?t.merge(i,r):i},zr=t=>{let e={left:0,top:0,width:100,height:100,angle:0,penetrate:0,opacity:100,perspective:100,rotateX:0,rotateY:0,rotateZ:0,transformOriginX:"center",transformOriginY:"center",transformSwitch:!1};return t?Object.assign(e,t):e};const Hr=new class{randomNum(t,e){return Math.floor(Math.random()*(e-t+1))+t}generateRandomIntArray(t,e,n,r){const i=[];for(let r=0;r<t;r++){const t=this.randomNum(e,n);i.push(t)}return r&&"asc"===r?i.sort(((t,e)=>t-e)):r&&"desc"===r?i.sort(((t,e)=>e-t)):i}randomString(t,e){const n=this.randomNum(t,e);let r="";for(let t=0;t<n;t++){const t=Math.floor(26*Math.random());r+="abcdefghijklmnopqrstuvwxyz".charAt(t)}return r}generateRandomNameArray(t,e,n){const r=[];for(let i=0;i<t;i++){const t=this.randomString(e,n);r.push(t)}return r}pick(t,e){const n=void 0!==e?t.filter((t=>t!==e)):t;return n[Math.floor(Math.random()*n.length)]}},Ur=()=>{const t=[],e=Hr.pick([!0,!1]);let n=Hr.randomNum(3,20);const r=Hr.pick([null,null,null,{}]);let i=Hr.pick(["asc","desc",void 0,void 0,void 0]);for(let a=0;a<Hr.randomNum(1,9);a++)t.push({data:Hr.generateRandomIntArray(n,0,300,i),type:"line",smooth:e,symbolSize:Hr.randomNum(1,10),lineStyle:{width:Hr.randomNum(1,4)},areaStyle:r});return{xAxis:{type:"category",show:!1,boundaryGap:!1,data:Hr.generateRandomNameArray(n,3,6)},grid:{left:0,top:0,bottom:0,right:0},yAxis:{show:!1,type:"value"},series:t}},qr=(t,e)=>{let n={type:t,show:!1};return"category"===t&&(n.data=Hr.generateRandomNameArray(e,3,6)),n},Gr=()=>{const t=[],e=Hr.pick([!0,!1]);let n=Hr.randomNum(3,20);const r=Hr.pick([null,null,null,{}]);let i=Hr.pick(["asc","desc",void 0,void 0,void 0]),a=Hr.randomNum(1,9),o=Hr.pick([!0,!1]);for(let s=0;s<a;s++){let a={data:Hr.generateRandomIntArray(n,0,300,i),type:"bar",smooth:e,stack:o,areaStyle:r};t.push(a)}let s=Hr.pick(["value","category"]),l=Hr.pick(["value","category"],s);return{xAxis:qr(s,n),grid:{left:0,top:0,bottom:0,right:0},yAxis:qr(l,n),series:t}},Wr=()=>{const t=[];let e=Hr.randomNum(3,20);Hr.pick([null,null,null,{}]);let n=Hr.pick(["asc","desc",void 0,void 0,void 0]),r=Hr.pick([1,2]),i=[Hr.pick(["10%","20%","30%","40%","50%","60%","70%","80%"]),Hr.pick(["90%","100%"])];return t.push({data:Hr.generateRandomIntArray(e,3,20,n),type:"pie",radius:1==r?"100%":i,roseType:1==r?Hr.pick(["area",null,null]):null,padAngle:1==r?0:Hr.randomNum(1,5),startAngle:1==r?Hr.pick([0,180]):0,endAngle:360,label:{show:!1},itemStyle:{borderRadius:3}}),{grid:{left:0,top:0,bottom:0,right:0},series:t}},$r=()=>{const t=[];Hr.pick([!0,!1]),Hr.randomNum(3,20),Hr.pick([null,null,null,{}]),Hr.pick(["asc","desc",void 0,void 0,void 0]);for(let e=0;e<Hr.randomNum(1,20);e++){let e=Hr.randomNum(3,Hr.randomNum(3,20)),n=[];for(let t=0;t<e;t++){let t=[];for(let e=0;e<2;e++)t.push(Hr.randomNum(1,30));n.push(t)}t.push({type:"scatter",symbolSize:Hr.randomNum(3,30),data:n})}return{xAxis:{show:!1},grid:{left:0,top:0,bottom:0,right:0},yAxis:{show:!1,type:"value"},series:t}},Kr=()=>{const t=[],e=Hr.pick(["polygon","circle"]);let n=Hr.randomNum(1e4,99999),r=Hr.randomNum(3,10),i=[];for(let t=0;t<r;t++)i.push({name:Hr.randomString(4,8),max:n});for(let e=0;e<Hr.randomNum(2,10);e++)t.push({value:Hr.generateRandomIntArray(r,1e4,n),name:Hr.randomString(4,8)});return{radar:{shape:e,indicator:i,axisName:{show:!1},radius:"100%"},grid:{left:0,top:0,bottom:0,right:0},series:[{type:"radar",symbol:"none",lineStyle:{width:1},data:t}]}},Zr=()=>{const t=[];for(let e=0;e<Hr.randomNum(4,15);e++)t.push({value:Hr.randomNum(1,100),name:Hr.randomString(4,8)});return{grid:{left:0,top:0,bottom:0,right:0},series:[{type:"funnel",left:"0%",top:0,bottom:0,width:"100%",min:0,minSize:"0%",maxSize:"100%",label:{show:!1,position:"inside"},sort:Hr.pick(["descending","ascending"]),gap:2,lineStyle:{width:1},data:t}]}};let Xr=Hr.randomNum(5,20);const Jr={width:Xr};Hr.pick([!0,!1])&&(Jr.color=[[.3,"#67e0e3"],[.7,"#37a2da"],[1,"#fd666d"]]);class Qr{constructor(){this.names=["line","bar","pie","scatter","radar","funnel","gauge"]}static getInstance(){return Qr.instance||(Qr.instance=new Qr),Qr.instance}createLine(){switch(Hr.pick(this.names)){case"line":return{type:"line",typeNum:1,option:Ur()};case"bar":return{type:"bar",typeNum:2,option:Gr()};case"pie":return{type:"pie",typeNum:3,option:Wr()};case"scatter":return{type:"scatter",typeNum:4,option:$r()};case"radar":return{type:"radar",typeNum:5,option:Kr()};case"funnel":return{type:"funnel",typeNum:6,option:Zr()};case"gauge":return{type:"gauge",typeNum:7,option:{grid:{left:0,top:0,bottom:0,right:0},series:[{type:"gauge",radius:"100%",detail:{formatter:"{value}"},progress:{show:Hr.pick([!0,!1]),width:Xr},axisLine:{lineStyle:Jr},data:[{value:Hr.randomNum(1,100),name:"SCORE"}]}]}}}}}Qr.instance=null;const ti=Qr.getInstance(),ei=new class{constructor(){this.directions=["row","row"],this.direction="column",this.splitNumbers=24,this.margin=[0,0]}baseLayout(t){const e=(null==t?void 0:t.maRrows)?null==t?void 0:t.maRrows:this.splitNumbers,n=(null==t?void 0:t.colNum)?null==t?void 0:t.colNum:this.splitNumbers,r=t.wrapWidth/n,i=t.wrapHeight/e;let a=Qn(this.directions);a&&(this.direction=a);let o=[];if("row"===this.direction){let t=Qn([3,4]);o=this.simulateRandomSegments(24,4,12,t)}else{let t=Qn([2,3]);o=this.simulateRandomSegments(24,4,6,t)}let s=[],l=[];if("row"===this.direction){for(let t=0;t<o.length;t++)if(0==t)s.push({x:0,y:0,w:o[t],h:24,i:t,wStep:r,hStep:i});else{let e=s[t-1].x;s.push({x:o[t-1]+e,y:0,w:o[t],h:24,i:t,wStep:r,hStep:i})}let t=Qn([2,3]),e=this.simulateRandomSegments(24,6,12,t);for(let t=0;t<s.length;t++){const n=s[t];for(let a=0;a<e.length;a++){const o=e[a];l.push({x:n.x,y:o,w:n.w,h:o,i:10*t+a,wStep:r,hStep:i})}}}else{for(let t=0;t<o.length;t++)if(0==t)s.push({x:0,y:0,w:24,h:o[t],i:t,wStep:r,hStep:i});else{let e=s[t-1].y;s.push({x:0,y:o[t-1]+e,w:24,h:o[t],i:t,wStep:r,hStep:i})}for(let t=0;t<s.length;t++){const e=s[t];let n=Qn([1,2,3,4]),a=this.simulateRandomSegments(24,5,12,n),o=[];for(let n=0;n<a.length;n++){const s=a[n];if(0==n)o.push({x:0,y:e.y,w:s,h:e.h,i:10*t+n,wStep:r,hStep:i}),l.push({x:0,y:e.y,w:s,h:e.h,i:10*t+n,wStep:r,hStep:i});else{let c=o[n-1].x;o.push({x:a[n-1]+c,y:e.y,w:s,h:e.h,i:10*t+n,wStep:r,hStep:i}),l.push({x:a[n-1]+c,y:e.y,w:s,h:e.h,i:10*t+n,wStep:r,hStep:i})}}}}return{layouts:l.map((e=>{let{option:n,typeNum:r}=ti.createLine(),i=e.x*e.wStep+e.w*e.wStep/2,a=e.y*e.hStep+e.h*e.hStep/2,o=e.w*e.wStep,s=e.h*e.hStep;if(3==r||5==r||7==r){let t=Math.min(o,s);o=t,s=t}let l=t.wrapWidth,c=t.wrapHeight;return e.chartsOption=n,e.typeNum=r,e.txt=r+" "+i/l+" "+a/c+" "+o/l+" "+s/c,console.log(e.txt),e})),option:{colNum:n,margin:(null==t?void 0:t.margin)?null==t?void 0:t.margin:this.margin,isDraggable:!!(null==t?void 0:t.isDraggable)&&(null==t?void 0:t.isDraggable),isResizable:!!(null==t?void 0:t.isResizable)&&(null==t?void 0:t.isResizable),verticalCompact:!(null==t?void 0:t.verticalCompact)||(null==t?void 0:t.verticalCompact),useCssTransforms:!(null==t?void 0:t.useCssTransforms)||(null==t?void 0:t.useCssTransforms),rowHeight:t.wrapHeight/e,maRrows:e}}}simulateRandomSegments(t,e,n,r){const i=[];let a=t,o=r;for(;o>0;)if(1===o)i.push(a),o--;else{const t=Math.min(n,a-e*(o-1)),r=Math.floor(Math.random()*(t-e+1))+e;i.push(r),a-=r,o--}return i}simulateRandomSegments2(t,e,n,r){const i=[];let a=t,o=r;for(;o>0;)if(1==o){const e=t-i.reduce(((t,e)=>t+e),0);i.push(e),o--}else{let t=Math.floor(Math.random()*n),r=Math.max(e,t),s=a-e*o;const l=Math.min(r,s);i.push(l),a-=l,o--}return i}};var ni=Object.freeze({__proto__:null,ConfigOptimizer:class{constructor(t,e,n){this.theme=null,this.plant=null,this.list=[],this.titleHeqadeHeight=70,this.clearance=3,this.checkComponentIntersection=(t,e,n=10)=>{const r=t.left,i=t.left+t.width,a=t.top,o=t.top+t.height,s=e.left,l=e.left+e.width,c=e.top,u=e.top+e.height,h=r<l&&i>s&&a<u&&o>c,d=Math.abs(t.left+t.width/2-(e.left+e.width/2)),f=Math.abs(t.top+t.height/2-(e.top+e.height/2));return h||d<n&&f<n},this.calculateCombinedComponent=t=>{if(0===t.length)return{left:0,top:0,width:0,height:0};let e=t[0].left,n=t[0].top,r=t[0].left+t[0].width,i=t[0].top+t[0].height;for(let a=1;a<t.length;a++){const o=t[a];e=Math.min(e,o.left),n=Math.min(n,o.top),r=Math.max(r,o.left+o.width),i=Math.max(i,o.top+o.height)}return{left:e,top:n,width:r-e,height:i-n}},this.getAnTextNormaltText=t=>{var e,n;try{return null===(n=null===(e=null==t?void 0:t.tmpData)||void 0===e?void 0:e.option)||void 0===n?void 0:n.text}catch(t){return console.error("配置优化(ConfigOptimizer):",t),""}},this.initProp(t),this.upgradePlant(),this.staticComponentData=e,this.upgradeHeaderComponent(),n&&Object.assign(this,n)}isStringOrObject(t){return"string"==typeof t?"string":"object"==typeof t&&null!==t&&"object"}initProp(t){try{let e,n=this.isStringOrObject(t);if(n&&"string"===n)e=JSON.parse(t);else{if(!n||"object"!==n)throw new Error(`initProp fn error :-- 传入参数${t}不合法!`);e=t}if(e){this.originData=e;const{theme:t,plant:n,list:r}=e;this.theme=t,this.plant=n,this.list=r,this.filterFileGroup()}}catch(t){console.error("配置优化(ConfigOptimizer):",t)}}upgradePlant(){this.plant&&(this.plant.option.bg={type:1,code:"70942ec525344c96aa32b81b2c9155f6",path:"/anov-prod/resources/page/png/bg22 科技星球背景.png",thumb:"/anov-prod/resources/page/thumbnail/1e48f8fb26ec4edfb1a0f499627e84fc.png"})}areComponentsIntersecting(t,e){let n=t.baseData,r=e.baseData;const i=Math.max(0,Math.min(n.left+n.width,r.left+r.width)-Math.max(n.left,r.left)),a=Math.max(0,Math.min(n.top+n.height,r.top+r.height)-Math.max(n.top,r.top));return i>0&&a>0}filterFileGroup(){this.list=t.cloneDeep(this.list).map((t=>{var e,n;if(1===(null===(e=null==t?void 0:t.children)||void 0===e?void 0:e.length)&&!(null===(n=null==t?void 0:t.children[0])||void 0===n?void 0:n.children)){const e=t.children[0],{left:n,top:r}=t.baseData;return e.baseData.left=n,e.baseData.top=r,e}return t}))}getText(t,e,n){const r=document.createElement("canvas").getContext("2d");if(!r)throw new Error("Failed to get 2D context from canvas.");return r.font=`${n}px ${e}`,r.measureText(t).width}calculateMaxWidths(t){const e=Math.min(...t.map((t=>t.width))),n=[];let r=[],i=t[0].width;for(const a of t){const t=a.width;Math.abs(t-i)<=e?r.push(t):(r.length>0&&n.push(r),r=[t]),i=t}r.length>0&&n.push(r);const a=[];for(const t of n){const e=Math.max(...t);a.push(e)}return a}findClosestValue(t,e){let n=e[0],r=Math.abs(t-n);for(const i of e){const e=Math.abs(t-i);e<r&&(r=e,n=i)}return n}adjustHeightAndTop(t,e){const n=e-t.height;return Object.assign(Object.assign({},t),{height:e,top:t.top-n/2})}findNearestComponent(e,n,r){let i=null,a=1/0;n.tmpData.option.textNormal.text;try{const o=t.cloneDeep(e).sort(((t,e)=>t.baseData.top-e.baseData.top)).sort(((t,e)=>t.baseData.left-e.baseData.left)).filter((t=>!(t.cid===n.cid||"AnTextNormal"===t.viewComName||r&&r.includes(t.cid)))),s=t.cloneDeep(n).baseData;s.top,s.height;for(const t of o){const e=t.baseData;if(e.top,e.height,s.left<e.left+e.width&&s.left+s.width>e.left){const n=e.top-s.top;n<a&&n<100&&(a=n,i=t)}}}catch(e){console.error("配置优化(ConfigOptimizer)- findNearestComponent :",e)}return i}findNearestComponentForPoint(t,e,n){let r=null,i=1/0;e.tmpData.option.textNormal.text;try{const a=t.sort(((t,e)=>t.baseData.top-e.baseData.top)).sort(((t,e)=>t.baseData.left-e.baseData.left)).filter((t=>!(t.cid===e.cid||"AnTextNormal"===t.viewComName||n&&n.includes(t.cid)))),o=e.baseData;o.top,o.height;for(const t of a){const e=t.baseData;let n=this.getDistance(o.left,o.top+o.height,e.left,e.top);n<i&&n<o.width&&(i=n,r=t)}}catch(t){console.error("配置优化(ConfigOptimizer)- findNearestComponent :",t)}return r}findNearestComponentForTitlePoint(t,e,n){let r=null,i=1/0;e.tmpData.option.textNormal.text;try{const a=t.sort(((t,e)=>t.baseData.top-e.baseData.top)).sort(((t,e)=>t.baseData.left-e.baseData.left)).filter((t=>!(t.cid===e.cid||"AnTextNormal"===t.viewComName||n&&n.includes(t.cid)))),o=e.baseData;o.top,o.height;for(const t of a){const e=t.baseData;let n=this.getDistance(o.left,o.top+o.height,e.left,e.top);n<i&&n<o.width&&e.top-o.top>100&&(i=n,r=t)}}catch(t){console.error("配置优化(ConfigOptimizer)- findNearestComponent :",t)}return r}findNearestTitleForPoint(t,e,n){let r=null,i=1/0;e.tmpData.option.textNormal.text;try{const a=t.sort(((t,e)=>t.baseData.top-e.baseData.top)).sort(((t,e)=>t.baseData.left-e.baseData.left)).filter((t=>!(t.cid===e.cid||"AnTextNormal"===t.viewComName||n&&n.includes(t.cid)))),o=e.baseData;o.top,o.height;for(const t of a){const e=t.baseData;let n=e.top-o.top;n<i&&n<o.width&&e.top-o.top>100&&(i=n,r=t)}}catch(t){console.error("配置优化(ConfigOptimizer)- findNearestComponent :",t)}return r}getDistance(t,e,n,r){return Math.sqrt(Math.pow(n-t,2)+Math.pow(r-e,2))}findNearestComponent2(e,n,r){let i=null,a=1/0,o=t.cloneDeep(e).sort(((t,e)=>t.baseData.top-e.baseData.top));try{const e=o.filter((t=>!(t.cid===n.cid||"AnTextNormal"===t.viewComName||r&&r.includes(t.cid)))),s=t.cloneDeep(n).baseData,l=s.top+s.height;for(const t of e){const e=t.baseData,n=e.top+e.height;if(s.left<e.left+e.width&&s.left+s.width>e.left){const e=n-l;e>=0&&e<a&&(a=e,i=t)}}}catch(e){console.error("配置优化(ConfigOptimizer)- findNearestComponent :",e)}return i}verticalDistance(t,e){t.left,t.width;const n=t.top+t.height,r=(e.left,e.width,e.top);return Math.abs(n-r)}extractAmount(t){const e=t.match(/(\d{1,3}(?:,\d{3})*)(\D+)/);if(e){const t=e[1].replace(/,/g,"");return[parseInt(t,10),e[2].trim()]}return[!1,!1]}getAnTextNormal(){return this.list.filter((t=>"AnTextNormal"==t.viewComName))}getAnDeckTitle3(){return this.list.filter((t=>"AnDeckTitle3"==t.viewComName)).sort(((t,e)=>t.baseData.left-e.baseData.left))}judgeAnOdometer(){let t=this.getAnTextNormal().sort(((t,e)=>t.baseData.left-e.baseData.left)),e=[],n=new Set;for(const r of t){if(n.has(r.cid))continue;let i=[];for(const e of t)n.has(e.cid)||r.cid==e.cid||this.checkComponentIntersection(r.baseData,e.baseData)&&(n.add(e.cid),n.add(r.cid),i.push(e));e.push([r,...i])}let r=[];for(const t of e)for(const e of t){let n=this.getAnTextNormaltText(e);this.extractAmount(n).every((t=>t))&&r.push(t)}return r}createAnOdometer(){var e,n;let r=this.judgeAnOdometer();for(const i of r){let r,a,o,s=this.calculateCombinedComponent(i.map((t=>t.baseData)));for(const e of i){let n=this.getAnTextNormaltText(e),i=this.extractAmount(n);i.every((t=>!t))&&(r=n),i.every((t=>t))&&(a=i[0],o=i[1]),t.remove(this.list,(t=>t.cid==e.cid))}let l=Yr("AnIndicatorNormal",this.staticComponentData,t.cloneDeep({baseData:s}));(null===(n=null===(e=null==l?void 0:l.tmpData)||void 0===e?void 0:e.source)||void 0===n?void 0:n.static)&&(l.tmpData.source.static.data={text:r,num:a,unit:o},l.tmpData.source.static.originData={text:r,num:a,unit:o}),this.list.push(l)}}upgradeHeaderComponent(){for(let t=0;t<this.list.length;t++){const e=this.list[t];"AnDeckHeader3"==e.viewComName&&(e.baseData.left=0,e.baseData.top=0)}}upgradeTitleComponent(){let t=this.getAnDeckTitle3().map((t=>t.baseData)),e=this.calculateMaxWidths(t);for(let t=0;t<this.list.length;t++){const n=this.list[t];if("AnDeckTitle3"==n.viewComName){let t=this.findClosestValue(n.baseData.width,e);n.baseData.width=t>300?t:300,n.baseData=this.adjustHeightAndTop(n.baseData,this.titleHeqadeHeight)}}this.removeErroneousComponents()}containsFractionStructure(t){return/\b\d+\/\d+\b/.test(t)}removeErroneousComponents(){let t=this.getAnDeckTitle3(),e=[];for(let n=0;n<t.length;n++){const r=t[n];let i=r.tmpData.option.textNormal.text;if(this.containsFractionStructure(i))for(let n=0;n<t.length;n++){const i=t[n];r.cid!=i.cid&&this.areComponentsIntersecting(r,i)&&e.push(r.cid)}}this.list=this.list.filter((t=>!e.includes(t.cid)))}upgradeGroupComponent(){try{let t=this.getAnDeckTitle3(),e=this.list.filter((t=>"AnDeckTitle3"!=t.viewComName&&"AnDeckHeader3"!=t.viewComName&&"AnTextNormal"!=t.viewComName)),n=[],r=[];for(let i=0;i<t.length;i++){const a=t[i];let o=this.findNearestComponentForPoint(e,a,n);if(o&&o.cid&&n.push(o.cid),o){a.baseData.left=o.baseData.left;let e=this.upgradeComponentHeight(a,t,r);e&&e>=30&&(o.baseData=Object.assign({},o.baseData,{top:a.baseData.top+a.baseData.height+this.clearance}))}}}catch(t){console.error("配置优化(ConfigOptimizer):",t)}}upgradeComponentHeight(e,n,r=[]){const i=e;let a=this.findNearestTitleForPoint(t.cloneDeep(n),i);return a?a.baseData.top-i.baseData.top-this.titleHeqadeHeight:1080-i.baseData.top-this.titleHeqadeHeight}getData(){return this.originData.list=this.list,this.originData.plant=this.plant,this.originData}},GlobalVariables:Vr,Http:(t,e)=>"string"!=typeof t?Promise.reject(new Error("URL should be a string")):In(t,e),Log:ur,PageLoader:class{constructor(t,e,n,r){this.caseId=t,this.mode=e,this.environment=n,this.xhr=r}checkHardware(){return Nn(this,void 0,void 0,(function*(){return yield new Promise(((t,e)=>{t("Hardware is not available")}))}))}initBefore(){return new Promise(((t,e)=>{let n=Fn("secretFree");n?sessionStorage.setItem("secret-free",n):sessionStorage.setItem("secret-free",null),console.log("运行免登录设置完成!"),t(!0)}))}fetchCaseId(t,e){return Nn(this,void 0,void 0,(function*(){try{const n=yield this.getKey(t,e);return 2e4===(null==n?void 0:n.code)&&(null==n?void 0:n.data)?n.data:t}catch(e){return console.error("Error fetching caseId:",e),t}}))}getDataForPublish(){return new Promise(((t,e)=>{t("data")}))}detectEnvironment(){return"localhost"===window.location.hostname?"preview":"publish"}authenticate(){return Nn(this,void 0,void 0,(function*(){this.environment}))}getShareForRelease(t){return this.xhr.get(`/go/v1/go-share/v1/${t}/config`)}findById(t,e="",n=0,r=""){return"publish"===this.environment?this.xhr.get(`/go/v1/go-share/v1/${t}?pwd=${e}&mode=${n}`):this.xhr.get(`/go/v1/go-cases/v1/${t}?mode=${n}`)}getKey(t,e=0){return this.xhr.get(`/go/v1/go-cases/v1/key/${t}?caseMode=${e}`)}fetchProjectForId(t,e="",n=0,r=""){return Nn(this,void 0,void 0,(function*(){return yield this.findById(t,e,n,r)}))}setTheme(){console.log("设置主题")}setBackground(){console.log("设置背景信息")}updateVariables(){console.log("更新变量信息")}beforeRender(t){}renderComponents(){return Nn(this,void 0,void 0,(function*(){}))}listenForRenderCompletion(){}showAnimation(){console.log("所有组件渲染完成,显示动画。")}init(){return Nn(this,void 0,void 0,(function*(){try{let t=yield this.fetchCaseId(this.caseId,this.mode);console.log(t);const e=yield this.fetchProjectForId(t);console.log(e,"currentData"),this.updateVariables()}catch(t){console.error("加载页面时出错:",t)}}))}},agentData:pr,delFetchStatus:Xn,displayGenerator:ei,editItem:Tr,emitEvent:jr,fetchDataByGlobal:Sr,fetchDataByType:Dr,filterData:xr,findItemDeep:Kn,findItemDeep2:(e,n,r)=>{let i=!1;const a=e=>{for(let o=0;o<e.length;o++){if(e[o].cid==n){i=e[o],r&&t.remove(e,(t=>t.cid==n));break}if(e[o].children)a(e[o].children);else if(e[o].dynamicChildren){if(e[o].dynamicChildren instanceof Map){let t=Array.from(e[o].dynamicChildren);for(let e=0;e<t.length;e++)if(t[e]instanceof Array){let n=t[e][1];a(n)}}else if(e[o].dynamicChildren instanceof Array){let t=e[o].dynamicChildren;for(let e=0;e<t.length;e++)if(t[e]instanceof Array){let n=t[e][1];a(n)}}}else e[o].stateChildren&&a(e[o].stateChildren)}};return a(e),i||!1},getData:fr,getDataForApi:mr,getDataForSource:yr,getDataForStatic:br,getDataForZb:gr,getDataForZbCQ:vr,getSessionData:zn,getStandardData:jn,getStringVars:Gn,getUrlParams:Fn,getVarDefaultVal:Ir,globalVars:Rr,hasVar:$n,isJSON:Ln,recursion:qn,replaceVariable:Ar,safeEval:function(t,e,n){const r={};n&&n.forEach((t=>{(null==t?void 0:t.name)&&(r[t.name]=t.value||t.originvalue)}));try{return new Function("data","vars",t)(e,r)}catch(t){return console.error(t),e}},safeEvalForCode:Zn,setFetchStatus:t=>{let e=window.goFetchList;return e||(window.goFetchList={},e=window.goFetchList),e[t]?!e[t]&&void 0:(e[t]={id:t,time:(new Date).getTime()},!0)},setSessionData:Yn,updataGlobalDataSourceForVar:Mr,updateComData:kr,updateGlobalDataSource:Nr}),ri=function(e,n,r,i,a){var o;try{var s={},l=[],c=[],u=[],h=t.cloneDeep(e);return(null===(o=null===window||void 0===window?void 0:window.go)||void 0===o?void 0:o.dev)&&le(e,(function(t){var e,n,r;if(null===(n=null===(e=null==t?void 0:t.tmpData)||void 0===e?void 0:e.actions)||void 0===n?void 0:n.length)for(var i=0,a=null===(r=null==t?void 0:t.tmpData)||void 0===r?void 0:r.actions;i<a.length;i++){var o=a[i];if("toggle"==o.behave){var s=o.toggle;if(null==s?void 0:s.length)for(var l=0,c=s;l<c.length;l++){var u=c[l],h=u.value;(null==h?void 0:h.length)&&(u.value=u.value.map((function(t){return{cid:t.cid,viewComName:t.viewComName,name:t.name,visible:t.visible}})))}}}})),le(h,(function(t){var e,n;if(null===(n=null===(e=null==t?void 0:t.tmpData)||void 0===e?void 0:e.actions)||void 0===n?void 0:n.length){var r=t.tmpData.actions.map((function(t){return t.eventType}));ke({types:r,element:t,actions:l,events:c,eventsComs:u,filter:a})}})),Rr.addVariables(l),l=Rr.getAllVariables(),le(h,(function(t){var e,n=null===(e=null==t?void 0:t.tmpData)||void 0===e?void 0:e.source;ii(n,l,t,s)})),{shareVariableTree:s,globalVars:Rr.getAllVariables(),globalEvents:c.filter((function(t){return t})),eventsComs:u}}catch(t){return console.error("error",t),{}}},ii=function(t,e,n,r){var i,a,o;if(t){var s=t[null==t?void 0:t.type],l=null==t?void 0:t.converse;l&&l.use&&l.data.length&&l.data.map((function(t){var e;(null==t?void 0:t.dependVars)&&(null===(e=null==t?void 0:t.dependVars)||void 0===e?void 0:e.length)&&t.dependVars.map((function(t){oi(r,t,n.cid)}))})),(null==s?void 0:s.inputSql)&&ai(null==s?void 0:s.inputSql,e,n,r),(null==s?void 0:s.url)&&ai(s.url,e,n,r),(null==s?void 0:s.headers)&&(null===(i=null==s?void 0:s.headers)||void 0===i?void 0:i.use)&&(null===(a=null==s?void 0:s.headers)||void 0===a?void 0:a.value)&&ai(null===(o=null==s?void 0:s.headers)||void 0===o?void 0:o.value,e,n,r),(null==s?void 0:s.params)&&ai(null==s?void 0:s.params,e,n,r)}},ai=function(t,e,n,r){"string"!=typeof t&&(t=JSON.stringify(t));var i=t.match(/({{[\w]*}})|((@)[\w]*)/gm);if(i){var a=i.map((function(t){return t.replace(/{{|}}|@/gm,"")}));if(n)for(var o=function(t){var i=a[t];if(!i||!e||e.findIndex((function(t){return t.mapField===i}))<0)return"continue";n&&r&&oi(r,i,n.cid)},s=0;s<a.length;s++)o(s);else{var l=function(t){var i=a[t];return!i||!e||e.findIndex((function(t){return t.mapField===i}))<0?"continue":(n&&r&&oi(r,i,n.cid),{value:!0})};for(s=0;s<a.length;s++){var c=l(s);if("object"==typeof c)return c.value}}}return!1},oi=function(e,n,r){if(e[n]&&t.isArray(e[n])){e[n].push(r);var i=e[n];e[n]=t.uniq(i)}else e[n]=[],e[n].push(r)},si=function(t){if("string"==typeof t)try{var e=JSON.parse(t);return!("object"!=typeof e||!e)}catch(t){return!1}return!1};var li={delListItem:function(e,n){var r=t.cloneDeep(e.list);"string"==typeof n?re(r,n,!0):n.forEach((function(t){re(r,t,!0)})),e.list=r,e.globalVars=ri(e.list,e.globalConstant,e.sysConst).globalVars},editCloneCache:function(e,n){var r=t.cloneDeep(e.cloneCache);r.length&&r.map((function(t){t.baseData=Object.assign({},t.baseData,n)})),e.cloneCache=r},cloneItem:function(e){if(e.selectd.length>0){e.cloneCache=[];for(var n=function(n){var r=re(e.list,e.selectd[n]);if("boolean"!=typeof r){var i=t.cloneDeep(r);if(i.pid="",(null==i?void 0:i.stateChildren)||(null==i?void 0:i.children))((null==i?void 0:i.stateChildren)?null==i?void 0:i.stateChildren:null==i?void 0:i.children).forEach((function(t){var e,n,r,a,o=t.cid;if(t.cid=Te(),t.pid=i.cid,(null==i?void 0:i.stateChildren)&&(null===(n=null===(e=null==i?void 0:i.tmpData)||void 0===e?void 0:e.option)||void 0===n?void 0:n.children)){var s=null===(a=null===(r=null==i?void 0:i.tmpData)||void 0===r?void 0:r.option)||void 0===a?void 0:a.children.find((function(t){return t.cid==o}));s&&(s.cid=t.cid)}}));e.cloneCache.push(i),window.localStorage.setItem("cloneCache",JSON.stringify(e.cloneCache))}},r=0;r<e.selectd.length;r++)n(r)}},shearItem:function(e,n){if(e.selectd.length>0){e.cloneCache=[];for(var r=0;r<e.selectd.length;r++){var i=re(e.list,e.selectd[r],!0);if("boolean"!=typeof i){var a=t.cloneDeep(i);e.cloneCache.push(a)}}e.selectd=[]}},pasteItem:function(e){var n,r;try{var i=(null===(r=t.cloneDeep(e.cloneCache))||void 0===r?void 0:r.length)?t.cloneDeep(e.cloneCache):JSON.parse(window.localStorage.getItem("cloneCache"));if(i.length>0){var a=[],o={};le(i,(function(t){var e=Te();if(o[t.cid]=e,t.cid=e,t&&t.children)for(var n=0,r=t.children;n<r.length;n++){r[n].pid=t.cid}else if(t.stateChildren)for(var i=0,s=t.stateChildren;i<s.length;i++){s[i].pid=t.cid}if("dynamicComponent"==t.componentType){var l=void 0;t.dynamicChildren instanceof Map?l=t.dynamicChildren.get(t.activeDynamic):t.dynamicChildren instanceof Array&&(l=t.dynamicChildren.find((function(e){return e[0]==t.activeDynamic}))),l.length>1&&(Array.isArray(l[1])?l[1].forEach((function(e){e.pid=t.cid})):l.forEach((function(e){e.pid=t.cid}))),1==l.length&&l.forEach((function(e){e.pid=t.cid}))}a.push(t.cid)})),e.selectd.length>0?we(e.selectd,e.list):De(i),i.forEach((function(t){var e,n,r,i;if(t.baseData.top=t.baseData.top+20,t.baseData.left=t.baseData.left+20,t&&t.hasOwnProperty("stateChildren")&&(null===(n=null===(e=null==t?void 0:t.tmpData)||void 0===e?void 0:e.option)||void 0===n?void 0:n.children))for(var a=function(e){e.pid=t.cid;var n=null===(i=null===(r=null==t?void 0:t.tmpData)||void 0===r?void 0:r.option)||void 0===i?void 0:i.children.find((function(t){return t.disName==e.name}));n&&(n.cid=e.cid)},o=0,s=t.stateChildren;o<s.length;o++){a(s[o])}}));try{var s=Object.keys(o),l=JSON.stringify(i);(null==s?void 0:s.length)&&s.forEach((function(t){var e=o[t];-1!==l.indexOf(t)&&(l=l.replaceAll(null==t?void 0:t.toString(),null==e?void 0:e.toString()))})),i=JSON.parse(l)}catch(t){}(n=e.list).unshift.apply(n,t.cloneDeep(i)),e.selectd=a}}catch(t){console.warn(t)}},updataShow:function(t,e){var n=re(t.list,e);if("boolean"!=typeof n){var r=!n.isShow;he(n,"isShow",r,"")}},changeShow:function(t,e){var n=e.cid,r=e.flag,i=re(t.list,n);i&&he(i,"isShow",r,"")},comToggle:function(t,e){var n=re(t.list,e);n&&fe(n)},updataLock:function(t,e){var n=re(t.list,e);if("boolean"!=typeof n){var r=!n.isLock;he(n,"isLock",r,"")}},breakUp:function(t,e){var n,r;try{if(!e)throw"Please pass in the component CID correctly!";var i=ae(t.list,e),a=re(t.list,e),o=a.baseData;if(isNaN(o.left)||isNaN(o.top))throw new Error("top or left is NAN");var s=me(a,t.list);if(s.map((function(t){return t.pid=""})),i){var l=i.children.findIndex((function(t){return t.cid==e}));i.children.splice(l,1),(n=i.children).push.apply(n,s.reverse())}else{l=t.list.findIndex((function(t){return t.cid==e}));t.list.splice(l,1),(r=t.list).push.apply(r,s.reverse())}}catch(t){console.error(t)}},editGroup:function(t,e){var n,r=e.groupId;e.status;try{if(!r)throw"Please pass in the component CID correctly!";var i=t.list.findIndex((function(t){return t.cid===r})),a=t.list[i],o=me(a);o.map((function(t){return t.pid=""})),t.list.splice(i,1),(n=t.list).push.apply(n,o)}catch(t){console.error(t)}},combination:function(e){t.cloneDeep(e.list);var n,r,i=[],a=[],o=Te(),s=re(e.list,e.selectd[0]);s.pid?console.info("Sorry, only level 2 is supported group"):s.children&&1===e.selectd.length?console.info("Sorry, only level 2 is supported group"):(e.selectd.forEach((function(t){var n=e.list.findIndex((function(e){return e.cid===t}));if(n>-1){i.push(n);var r=e.list.splice(n,1)[0];r.pid=o,a.push(r)}})),n=i.sort((function(t,e){return t-e}))[0],r=1===a.length?t.cloneDeep(a[0].baseData):e.currentArea,Object.assign(r,{angle:0,opacity:100,rotate:0,rotateY:0}),pe(r,a),e.list.splice(n,0,{cid:o,pid:"",isShow:!0,isLock:!1,editer:!1,baseData:r,z:0,toggle:!0,name:"群组",type:"folder",origin:"anov-ui",tmpData:{actions:null,option:null,source:Oe},children:a}),ce(e.list),e.selectd=[o])},moveUp:function(t,e){try{var n=t.list.findIndex((function(t){return t.cid===e}));n>=1?te(t.list,n-1,n):ne(t.list,"up",e)}catch(t){console.error(t)}},moveDown:function(t,e){try{var n=t.list.findIndex((function(t){return t.cid===e}));n>-1&&n<=t.list.length-2?te(t.list,n+1,n):ne(t.list,"down",e)}catch(t){console.error(t)}},moveTop:function(t,e){try{var n=t.list.findIndex((function(t){return t.cid===e}));n>-1&&0!==n?te(t.list,0,n):ne(t.list,"top",e)}catch(t){console.error(t)}},moveBottom:function(t,e){try{var n=t.list.findIndex((function(t){return t.cid===e})),r=t.list.length-1;n>-1&&n!==r?te(t.list,r,n):ne(t.list,"bottom",e)}catch(t){console.error(t)}}};function ci(e){var n=[],r=[];le(t.cloneDeep(e),(function(t){var e,i;if(null===(i=null===(e=null==t?void 0:t.tmpData)||void 0===e?void 0:e.actions)||void 0===i?void 0:i.length){var a=t.tmpData.actions.map((function(t){return t.eventType}));ke({types:a,element:t,actions:n,events:r})}}));var i=r.filter((function(t){return t}));return{actions:n,events:i}}var ui={addGlobalSource:function(t,e){var n=e.name,r=e.value,i=Te();t.globalSource.push({key:i,name:n,value:r}),Nr({key:i,name:n,value:r},t.globalVars,t.globalSource,t.list,(function(t){}))},editGlobalSource:function(t,e){var n=this,r=e.key,i=e.value,a=t.globalSource.find((function(t){return t.key==r}));a&&(a.name=e.name,a.value=i,Nr(a,t.globalVars,t.globalSource,t.list,(function(t,e){n.commit("GoCom/updataSourceForComponent",{cid:t.cid,data:e})})))},delGlobalSource:function(t,e){try{var n=t.globalSource.findIndex((function(t){return t.key===e}));-1!==n&&t.globalSource.splice(n,1)}catch(t){console.error("删除错误",t)}},setSyncFlag:function(t,e){t.syncFlag=e},goUpShareVar:function(t,e){t.shareVariable[e.key]=c({},e)},addGoRunVar:function(t,e){try{var n=ri(t.list,t.globalConstant,t.sysConst);t.globalVars=n.globalVars,t.eventsComs=n.eventsComs}catch(t){console.warn(t)}},copyGoVar:function(e,n){try{for(var r=n.mapField,i=(r.toString().trim(),e.globalConstant.filter((function(t){return t.mapField.includes(r)}))),a=1,o=0;o<i.length;o++)a++;var s="".concat(r," (").concat(a,")"),l=e.globalConstant.find((function(t){return t.mapField==r}));if(r&&l){var c=t.cloneDeep(l);c.mapField=s,e.globalConstant.push(c);var u=ri(e.list,e.globalConstant,e.sysConst);e.globalVars=u.globalVars,e.eventsComs=u.eventsComs}}catch(t){console.warn(t)}},goDelShareVar:function(t,e){delete t.shareVariable[e]},signal:function(t,e){},goSynchroDataAll:function(e,n){e.list=t.cloneDeep(n)},goSynchroDataForOption:function(t,e){if(t){var n=e.cid,r=e.value,i=re(t.list,n);"boolean"!=typeof i&&i&&de(i,r)}this.commit("GoCom/execute")},goSynchroData:function(e,n){if(e){var r=n.cid,i=n.attr,a=n.value,o=n.attrModel,s=re(e.list,r);if("boolean"!=typeof s){if(s&&he(s,i,a,o),"actions"===i.toLowerCase()){var l=e.list,c=t.uniqWith(t.concat(ci(l).actions,ci(e.caseList).actions),t.isEqual),u=t.uniqWith(t.concat(ci(l).events,ci(e.caseList).events),t.isEqual);Rr.addVariables(c),e.globalVars=Rr.getAllVariables(),e.globalEvents=u,e.pages[e.pageIndex]&&(e.pages[e.pageIndex].globalVars=c),e.pages[e.pageIndex]&&(e.pages[e.pageIndex].globalEvents=u)}if("source"===i){if(!s.tmpData.source)return!1;var h=s.tmpData.source,d=h.type;if("api"===d){var f=h[d].url.match(/{{[\w]*}}|(@)[\w]*/gm);if(f)for(var p=f.map((function(t){return t.replace(/{{|}}|@/gm,"")})),m=function(n){var r=p[n];if(!r||!e.globalVars||e.globalVars.findIndex((function(t){return t.mapField===r}))<0)return"continue";if(e.shareVariableTree||(e.shareVariableTree={}),e.shareVariableTree[r]&&t.isArray(e.shareVariableTree[r])){e.shareVariableTree[r].push(s.cid);var i=e.shareVariableTree[r];e.shareVariableTree[r]=t.uniq(i)}else e.shareVariableTree[r]=[],e.shareVariableTree[r].push(s.cid)},g=0;g<p.length;g++)m(g)}}}}this.commit("GoCom/execute")},goUpdataSysVars:function(t,e){var n={U_CITY:"cityCode",U_COUNTY:"countyCode",U_PROVINCE:"provinceCode",U_PHONE:"userPhone"},r=t.sysConst,i=Object.keys(n);r.map((function(t){if(t.originalValue=t.value,(null==t?void 0:t.name)&&(null==i?void 0:i.includes(t.name))){var r=n[t.name];t.value=e[r],t.originalValue=e[r]}return t})),Rr.addVariables(r)},resetGlobalData:function(t){t.globalVars=t.sysConst,t.globalConstant=[],t.globalSource=[]},updateGlobalRelatedVars:function(t,e){var n=e.run,r=e.gvData;return n.length&&n.forEach((function(t){var e=r.filter((function(e){return e.mapField==t.mapField||e.fork&&e.forkValue==t.mapField}));if(e.length)for(var n=0,i=e;n<i.length;n++){var a=i[n],o=t.value;a.mapField==t.mapField?a.value=o:a.fork&&t.mapField==a.forkValue?(a.converter&&a.converterCode,a.originalValue=o):r.push(t)}})),r}},hi={updataList:function(t,e){var n=e.cid,r=On(e.list,(function(t){var e=re(t,n),r=e.pid,i=ie(t,n),a=function(t){for(var e=0;e<t.length;e++){var n=t[e];Se(n,n.baseData,0,!0)}},o=function(t){return t.reduce((function(t,e){return{left:t.left+e.baseData.left,top:t.top+e.baseData.top}}),{left:0,top:0})},s=function(t,e){void 0===e&&(e=t);for(var n=0;n<t.length;n++){var r=t[n];if(r.children&&Array.isArray(r.children))return 0===r.children.length?(e.splice(n,1),!0):(s(r.children,r.children)&&0===r.children.length&&e.splice(n,1),!0)}};if(i.length>0)if(e.pid=i[0].cid,r){var l=d([re(t,r)],ie(t,r),!0),u=o(l),h=o(i);e.baseData=c(c({},e.baseData),ye(e.baseData,u)),e.baseData=c(c({},e.baseData),ye(e.baseData,h,1)),a(l),a(i)}else{h=o(i);e.baseData=c(c({},e.baseData),ye(e.baseData,h,1)),a(i)}r&&0==i.length&&(e.pid="",function(e,n){var r=ie(t,n),i=re(t,n);if(0===r.length)e.baseData=c(c({},e.baseData),ye(e.baseData,i.baseData));else{r=d([i],r,!0);var s=o(r);e.baseData=c(c({},e.baseData),ye(e.baseData,s))}a(d([i],r,!0))}(e,r)),s(t),ce(t)}));t.list=r},updataListForContrast:function(e,n){var r=n.cid,i=n.list,a=re(i,r);ae(i,r);var o=ae(e.list,r);if(!a.pid){a.pid=o.cid;var s=t.cloneDeep(a.baseData),l=ye(a.baseData,o.baseData,1);Object.assign(a.baseData,l),Se(o,s)}ce(e.list)},updateTree:function(e){for(var n=e.list,r=0;r<n.length;r++){var i=n[r];if(i.pid)(s=re(n,i.pid))&&Object.assign(i.baseData,ye(i.baseData,s.baseData));if(i.children)for(var a=0;a<i.children.length;a++){var o=i.children[a];if(o.pid!=i.cid){var s=re(n,o.pid);if(t.cloneDeep(o.baseData),s){Object.assign(o.baseData,ye(o.baseData,s.baseData));var l=ye(o.baseData,i.baseData,1);Object.assign(o.baseData,l),Se(i,i.baseData)}o.pid=i.cid}}}ce(n)}},di=xr,fi=function(t,e,n,r,i,a,o){return void 0===n&&(n=!0),u(void 0,void 0,void 0,(function(){var a;return h(this,(function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,kr(t,n,e,i,(function(t){r&&r(t)}),o)];case 1:return[2,s.sent()];case 2:return a=s.sent(),r&&r(a),console.log("error:11"+a),[3,3];case 3:return[2]}}))}))},pi=function(t,e,n,r,i,a){void 0===a&&(a=!0),t&&kr(t,a,e,[],(function(e){n({cid:t.clientWidth,data:e})}))},mi=Object.freeze({__proto__:null,Http:function(t,e){return function(t,e){void 0===t&&(t="");var r=n.create({baseURL:t,timeout:3e4,headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"}});return r.interceptors.request.use((function(t){return sessionStorage.getItem("anov-go-token")&&"null"!=sessionStorage.getItem("anov-go-token")&&(t.headers["X-ANOV-ACCESS-TOKEN"]=sessionStorage.getItem("anov-go-token")),sessionStorage.getItem("unify-access-token")&&"null"!=sessionStorage.getItem("unify-access-token")&&(t.headers["X-UNIFY-ACCESS-TOKEN"]=sessionStorage.getItem("unify-access-token")),sessionStorage.getItem("dgcc_authorization")&&"null"!=sessionStorage.getItem("dgcc_authorization")&&(t.headers.dgcc_authorization=sessionStorage.getItem("dgcc_authorization")),"post"===t.method?(t.headers["Content-Type"]="application/json;",t):"get"===t.method?t:"put"===t.method?(t.headers["Content-Type"]="application/json; charset=UTF-8",t):"delete"===t.method?t:void 0}),(function(t){return Promise.reject(t)})),r.interceptors.response.use((function(t){return 200===t.status||t.data.code,e&&e(t),t.data}),(function(t){return e&&e(null==t?void 0:t.response),Promise.reject(t.response)})),r}(t,e)},autoUpdateComData:function(e,n,r){var i,a,o,s,l,c=null===(i=null==e?void 0:e.tmpData)||void 0===i?void 0:i.source,u=null===(o=null===(a=c[null==c?void 0:c.type])||void 0===a?void 0:a.autoUpdate)||void 0===o?void 0:o.open,h=null===(l=null===(s=c[null==c?void 0:c.type])||void 0===s?void 0:s.autoUpdate)||void 0===l?void 0:l.time;u&&t.isNumber(h)&&h>0&&setInterval((function(){fi(e,n,!0,(function(t){r({cid:e.cid,data:t})}))}),1e3*h)},axios:n,filterData:di,getDataForEvaluator:v,parseSource:function(t,e,n,r,i,a,o,s){void 0===r&&(r=!0);console.log(e,n,r,i,"callback"),kr(e,r,n,[],(function(t){i(t),"AnContainer"===(null==e?void 0:e.viewComName)&&r&&Me(e)}),s)},refreshData:pi,updateComData:fi}),gi=function(t){return u(this,void 0,void 0,(function(){var e,n,r,i,a;return h(this,(function(o){switch(o.label){case 0:return o.trys.push([0,3,,4]),e=t.fontUrl,n=t.fontName,r="__custom_font__",(i=document.getElementById(r))?[3,2]:((i=document.createElement("style")).id=r,[4,(document.head||document.getElementsByTagName("head")[0]).appendChild(i)]);case 1:o.sent(),o.label=2;case 2:return i.innerText+="@font-face{font-family:'".concat(n,"';src:url(").concat(e,");}"),[3,4];case 3:return a=o.sent(),console.warn(a),[3,4];case 4:return[2]}}))}))},vi=function(t,e,n){return void 0===e&&(e="jspaths"),u(void 0,void 0,void 0,(function(){var r,i;return h(this,(function(a){switch(a.label){case 0:return r="csspaths"===e?"link":"script",i=document.createElement(r),"jspaths"===e?i.defer=!0:i.rel="stylesheet",i.className=e,i.src=t,(n||document.head||document.getElementsByTagName("head")[0]).appendChild(i),[4,new Promise((function(t,e){i.addEventListener("load",t),i.addEventListener("error",t)}))];case 1:return a.sent(),[2]}}))}))},yi=function(t,e){return void 0===e&&(e="jspaths"),u(void 0,void 0,void 0,(function(){var n;return h(this,(function(r){switch(r.label){case 0:return n="fonts"===e?gi:vi,[4,Promise.all(t.map((function(t){return n(t)})))];case 1:return r.sent(),[2]}}))}))},bi=function(t){return u(void 0,void 0,void 0,(function(){return h(this,(function(e){switch(e.label){case 0:return t.fonts&&t.fonts.length?[4,yi(t.fonts,"fonts")]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))},_i=function(e){var n=e.jspaths,r=void 0===n?[]:n,i=e.csspaths,a=void 0===i?[]:i,o=e.fonts,s=void 0===o?[]:o;return u(void 0,void 0,void 0,(function(){var e;return h(this,(function(n){switch(n.label){case 0:return e=t.uniqBy(s,"fontName"),[4,Promise.all([yi(r,"jspaths"),yi(a,"csspaths"),yi(e,"fonts")])];case 1:return n.sent(),[2]}}))}))},wi=function(){var t;(null==(t=document.getElementById("__custom_font__"))?void 0:t.parentNode)&&t.parentNode.removeChild(t),Array.from(document.getElementsByTagName("script")).filter((function(t){return"jspaths"==t.className})).forEach((function(t){!function(t){for(var e,n=Array.from(document.getElementsByTagName("script")),r=0;r<n.length;r++)n[r]&&n[r].src&&-1!=n[r].src.indexOf(t)&&(null===(e=n[r])||void 0===e?void 0:e.parentNode)&&n[r].parentNode.removeChild(n[r])}(t.src)})),Array.from(document.getElementsByTagName("link")).filter((function(t){return"csspaths"==t.className})).forEach((function(t){!function(t){for(var e,n=Array.from(document.getElementsByTagName("link")),r=0;r<n.length;r++)n[r].href,n[r]&&n[r].href&&-1!=n[r].href.indexOf(t)&&(null===(e=n[r])||void 0===e?void 0:e.parentNode)&&n[r].parentNode.removeChild(n[r])}(t.href)}))};var Di={reset:function(t){t.selectd=[],t.list=[],t.plant=null,t.tw=null,t.watermark=null,t.endnotes=null,t.globalConstant=[]},setFonts:function(t,e){t.resource.fonts.push({fontName:e.name,fontUrl:e.src}),bi(t.resource)},setCaseInfo:function(t,e){t.caseInfo=e},setPageId:function(t,e){t.pageId=e},pagePush:function(t,e){try{var n=e.type,r=e.value,i=e.option,a=["name","path","id"];if(!a.includes(n))throw new Error("页面跳转错误!".concat(n," 不是一个正确的参数 请填以下参数 ").concat(a.join(",")));if(!r)throw new Error("页面跳转错误!".concat(n," 不是一个正确的参数 请填正确的页面路径或者页面名称"));t.toPage=i?{type:n,value:r,option:i}:{type:n,value:r}}catch(t){console.warn(t)}},updatComs:function(t,e){var n=this,r=re(t.list,e);if("boolean"!=typeof r){(null==r?void 0:r.children)&&(null==r||r.children),fi(r,t.globalVars,!0,(function(t){n.commit("GoCom/updataSourceForComponent",{cid:r.cid,data:t})}),t.globalSource)}},updatComsForVar:function(e,n){var r=e.globalVars.map((function(t){var e,r;if((null===(e=null==t?void 0:t.forkValue)||void 0===e?void 0:e.length)&&(null===(r=null==t?void 0:t.forkValue)||void 0===r?void 0:r.includes(n))||t.forkValue==n)return t.mapField})).filter((function(t){return t})),i=[n];(null==r?void 0:r.length)&&(i=t.uniq(d([n],r,!0)));for(var a=[],o=0,s=i;o<s.length;o++){var l=s[o];e.shareVariableTree[l]&&a.push.apply(a,e.shareVariableTree[l])}if(null==a?void 0:a.length)for(var c=0,u=a;c<u.length;c++){var h=u[c];this.commit("GoCom/updatComs",h)}},addConstant:function(e,n){var r=t.find(e.constant,{name:n.name});r?Object.assign(r,n):e.constant.push(n)},editConstant:function(e,n){var r=t.find(e.constant,{name:n.name});r&&Object.assign(r,n)},delConstant:function(e,n){t.remove(e.constant,(function(t){return t.name==n}))},setResource:function(t,e){var n=e.type,r=e.value;t.resource[n]=r,wi(),_i(t.resource)},updataResource:function(t){wi(),_i(t.resource)},resetResource:function(t){t.resource={jspaths:[],csspaths:[],otherpaths:[]}},setData:function(t,e){t.selectd=e.selectd},setList:function(t,e){t.list=e,ce(t.list)},saveDynamicChildren:function(t,e){var n=e.cid,r=e.data,i=e.name,a=t.pages[t.pageIndex].list,o=re(a,n);o&&(o.activeDynamic=i,o.dynamicChildren instanceof Array&&(o.dynamicChildren=new Map(o.dynamicChildren)),o.dynamicChildren.set(i,r))},setTheme:function(t,e){t.theme=e},setPlant:function(t,e){var n=e.attr,r=e.value;t.plant||(t.plant={name:"",theme:null,baseData:{width:1920,height:1080,left:0,top:0},option:null,optionDes:null}),t.plant[n]=r},setPlantHeight:function(t,e){t.plant&&(t.plant.baseData.height=t.plant.baseData.height+e)},reversal:function(e,n){e.undos=[],e.undoRedoPointer=-1;var r=t.cloneDeep(n.globalVars);delete n.globalVars,e=Object.assign(e,n),Rr.addVariables(r),e.globalVars=Rr.getAllVariables(),ce(e.list)},setComTmp:function(t,e){var n=t.list.find((function(t){return t.cid===e[0]}));n.com=e[1],n.tmp=e[2]},setLoading:function(t,e){var n=e.cid,r=e.flag,i=t.list.find((function(t){return t.cid===n}));i&&(i.loading=r)},setMultiple:function(t,e){t.multiple=e},setCaseList:function(t,e){t.caseList=e},updataComponentForList:function(t,e){var n=e.cid,r=e.data,i=t.list,a=re(i,n);"boolean"!=typeof a&&Object.assign(a,r)},updataComponentForCaseList:function(t,e){var n=e.cid,r=e.data,i=t.caseList,a=re(i,n);"boolean"!=typeof a&&Object.assign(a,r)},updataComponent:function(t,e){var n=e.cid,r=e.data,i=t.pages&&t.pages[0]&&t.pages[0].list&&t.pages[0].list.length?t.pages[0].list:t.list,a=re(i,n);"boolean"!=typeof a&&Object.assign(a,r)},updataArea:function(t,e){t.currentArea.left+=e.deltaX,t.currentArea.top+=e.deltaY},updataSource:function(t,e){var n=e.cid,r=e.data,i=re(t.list,n);"boolean"!=typeof i&&("indicatorCQ"===i.tmpData.source.type?i.tmpData.source.indicator.data=r:(console.log("更新数据:"+i.cid),i.tmpData.source[i.tmpData.source.type].data=r))},updataSourceForComponent:function(e,n){var r=n.cid,i=n.data;if(e.list.length){var a=re(e.list,r);"boolean"!=typeof a&&(a.source=t.cloneDeep(i))}},updataAnimationForComponent:function(t,e){var n=e.cid,r=e.data;if(t.list.length){var i=re(t.list,n);"boolean"!=typeof i&&(i.tw=r)}},updataWatermark:function(t,e){t.watermark=e},updataEndnotes:function(t,e){t.endnotes=e},updataAnimation:function(t,e){t.tw=e},setContext:function(t,e){var n=e.cid,r=e.data,i=re(t.list,n);"boolean"!=typeof i&&(i.example=r)},setContextList:function(t,e){var n=e.cid,r=e.data;t.contextList[n]=r},setPosition:function(t,e){ve(t.list.find((function(t){return t.cid===e[0]})),e[1])},setSelect:function(t,e){t.cache=[],t.selectd=e instanceof Array?e:[e],t.selectd.length>1&&t.selectd.forEach((function(e){t.cache.push(t.list.find((function(t){return t.cid===e&&"Other.Plant.Normal"!==t.type})))}))},setActive:function(e,n){var r=t.cloneDeep(n),i=r.id,a=r.multiple,o=r.origin,s=r.ctr,l=t.cloneDeep(e.selectd);if(a){var c=l.includes(i);if(l.length>=1){var u=l.every((function(t){return se(e.list,t,n.id)}));if(!u)return void console.info("sorry Only sibling elements can be selected!")}c?l.splice(l.findIndex((function(t){return t===i})),1):l.push(i),e.selectd=l}else e.selectd=[i];e.selectd.forEach((function(t){var n=re(e.list,t);if(n.pid){var r=re(e.list,n.pid);r&&(r.toggle=!0)}s||(n.toggle=!0)})),e.selectdChangeOrigin=o||""},setCache:function(t){t.cache=[],t.selectd.length>1&&t.selectd.forEach((function(e){t.cache.push(t.list.find((function(t){return t.cid===e})))}))},clearActive:function(t){t.selectd=[]},setMultipleActive:function(t,e){t.selectd=e},syncMenuInfo:function(t){xe(t.menuList,(function(e){var n=10*e.lv+e.index;t.list.filter((function(t){return t.cid===e.id}))[0].z=1e4-n}))},addComs:function(e,n){var r=n.com,i=n.isMobile;"MultiStateComponent"!=r.componentType||r.stateChildren||(r.stateChildren=[]),"dynamicComponent"!=r.componentType||r.dynamicChildren||(r.dynamicChildren=new Map,r.activeDynamic="状态1",r.dynamicChildren.set("状态1",[]),r.lines={h:[],v:[]},"AnGridLayout"==r.viewComName&&r.dynamicChildren.set("状态1",null==r?void 0:r.AnGridChildren)),i?e.list.push(r):e.list.unshift(r),e.menuList=t.cloneDeep(e.list),ce(e.list),this.commit("GoCom/execute")},addComsForParent:function(e,n){var r=n.com,i=n.isMobile,a=n.PID;if("MultiStateComponent"!=r.componentType||r.stateChildren||(r.stateChildren=[]),"dynamicComponent"!=r.componentType||r.dynamicChildren||(r.dynamicChildren=new Map,r.activeDynamic="状态1",r.dynamicChildren.set("状态1",[])),a){var o=re(e.list,a);i?(o.children=[],o.children.push(r)):o.children.unshift(r)}else i?e.list.splice(0,1,r):e.list.unshift(r);e.menuList=t.cloneDeep(e.list),ce(e.list),this.commit("GoCom/execute")},addMyComs:function(e,n){var r;try{var i=n.data,a=n.shareVariableTree,o=n.globalVars,s=n.globalEvents;e.globalVars=t.uniq(t.concat(t.cloneDeep(e.globalVars),o)),e.globalEvents=t.uniq(t.concat(t.cloneDeep(e.globalEvents),s));var l=Object.keys(a),c=Object.keys(e.shareVariableTree),u=t.difference(l,c);u.length?u.forEach((function(n){e.shareVariableTree[n]=t.concat(t.cloneDeep(e.shareVariableTree[n]),a[n])})):e.shareVariableTree=Object.assign(t.cloneDeep(e.shareVariableTree),a),i instanceof Array?(ue(i),(r=e.list).unshift.apply(r,i)):(ue([i]),e.list.unshift(i)),e.menuList=t.cloneDeep(e.list),ce(e.list),this.commit("GoCom/execute")}catch(t){}},addStateChildren:function(t,e){var n=re(t.list,e.pid);n&&n.stateChildren.push(e)},addDynamicChildren:function(t,e){var n=re(t.list,e.pid);n&&n.dynamicChildren.push(e)},arraySwap:function(e,n){var r;try{if(!n||2!=n.length)throw new Error("参数错误,方法接受两个组件的CID组成的数组!");var i=t.cloneDeep(e.list),a=re(i,n[0]),o=re(i,n[1]),s=re(i,a.pid),l={},c=0,u=0;if(o)if("selectContainer"==o.componentType){var h=re(i,n[1]);s?(c=t.findIndex(s.children,(function(t){return t.cid==n[0]})),l=s.children[c],s.children=s.children.filter((function(t){return t.cid!==l.cid}))):(l=re(i,n[0]),i=i.filter((function(t){return t.cid!==l.cid}))),l.cid=Te(),l.pid=h.cid,h.children.push(l)}else if(a.pid||o.pid)if(s)if(c=t.findIndex(s.children,(function(t){return t.cid==n[0]})),l=s.children[c],a.pid!==o.pid){h=re(i,o.pid);u=t.findIndex(h.children,(function(t){return t.cid==n[1]}));f=h.children[u];l.cid=Te(),l.pid=h.cid,f.cid=Te(),f.pid=s.cid,s.children.splice(c,1,f),h.children.splice(u,1,l)}else u=t.findIndex(s.children,(function(t){return t.cid==n[1]})),(r=s.children).splice.apply(r,d([u,1],s.children.splice(c,1,s.children[u]),!1));else{var h=re(i,o.pid);c=t.findIndex(i,(function(t){return t.cid==n[0]})),u=t.findIndex(h.children,(function(t){return t.cid==n[1]})),l=re(i,a.cid);var f=h.children[u];l.cid=Te(),l.pid=h.cid,f.cid=Te(),f.pid=null,i.splice(c,1,f),h.children.splice(u,1,l)}else ee(e.list,n[0],n[1]);else c=t.findIndex(s.children,(function(t){return t.cid==n[0]})),l=s.children[c],s.children.splice(c,1),l.cid=Te(),l.pid=null,i.push(l);e.list=i,ce(e.list)}catch(t){console.warn("组件位置交换发生错误",t)}},changeDynamicState:function(t,e){var n=re(t.list,e.cid);n&&"dynamicComponent"==n.componentType&&(n.dynamicChildren instanceof Array&&n.dynamicChildren.find((function(t){return t[0]==e.activeName}))||n.dynamicChildren instanceof Map&&n.dynamicChildren.has(e.activeName)?n.activeDynamic=e.activeName:console.error(e.activeName+"不是一个正确的状态"))},addAlternateData:function(t,e){t.alternateData[e.pid]||(t.alternateData[e.pid]=[]),t.alternateData[e.pid].push(e)},setOptionForCom:function(t,e){var n;try{var r=e.cid,i=e.key,a=e.value,o=re(t.list,r);if(!o)return;if("string"!=typeof i)return void console.error("key:[".concat(i,"]格式错误"));var s=null===(n=null==o?void 0:o.tmpData)||void 0===n?void 0:n.option,l=i.split(".");s&&(null==l?void 0:l.length)&&l.forEach((function(t,e){s.hasOwnProperty(t)&&(e===l.length-1?s[t]=a:s=s[t])}))}catch(t){console.warn("同步属性发生错误:"+t)}},mergeConfig:function(e,n){n.length>0&&n.forEach((function(t){e.list.unshift(t)})),e.menuList=t.cloneDeep(e.list),ce(e.list),this.commit("GoCom/execute")},updataName:function(t,e){var n=re(t.list,e.cid);n&&(n.name=e.name)},setDynamicActive:function(t,e){e.cid;var n=e.name,r=re(t.list,e.cid);r&&"dynamicComponent"==r.componentType&&(r.activeDynamic=n)},updataScroll:function(t,e){e.cid;var n=e.data,r=re(t.list,e.cid);r&&"dynamicComponent"==r.componentType&&(r.srcollInfo={use:!!(null==n?void 0:n.use)&&(null==n?void 0:n.use),data:(null==n?void 0:n.data)?null==n?void 0:n.data:null})},updataDySetting:function(t,e){e.cid;var n=e.data,r=re(t.list,e.cid);r&&"dynamicComponent"==r.componentType&&(r.dyOption=n)},setCurrentEdited:function(t,e){if(e){var n=re(t.list,e);if("boolean"!=typeof n){var r=me(n);n.children=r}t.currentEditerCid=e}else t.currentEditerCid=""},setDynamicLine:function(e,n){var r=t.cloneDeep(e.list),i=re(r,n.cid);r.length&&"boolean"!=typeof i&&(i.lines=Object.assign({},i.lines,n.lines)),e.list=r}},Si={layout:function(e,n){var r=function(e,n){try{var r=e.map((function(t){var e=re(n,t);if("object"==typeof e)return e;throw"Please check whether the input and output parameters are correct!"}));if(t.every(r,Object))return r;throw"Please check whether the input and output parameters are correct!"}catch(t){return console.error(t),[]}}(e.selectd,e.list);switch(n){case"alignLeft":!function(e,n){1===e.length&&(e[0].baseData.left=0);var r=t.sortBy(e,(function(t){return t.baseData.left})),i=r[0].baseData.left;e.map((function(t){return t.baseData.left=i}))}(r);break;case"alignRight":!function(e,n){if(1===e.length){var r=n.plant?n.plant.baseData:{width:1920,height:1080};e[0].baseData.left=r.width-e[0].baseData.width}var i=t.sortBy(e,(function(t){return t.baseData.left})),a=1*i[i.length-1].baseData.left+1*i[i.length-1].baseData.width;e.map((function(t){return t.baseData.left=a-1*t.baseData.width}))}(r,e);break;case"horizontally":!function(e,n){if(1===e.length){var r=n.plant?n.plant.baseData:{width:1920,height:1080};e[0].baseData.left=r.width/2-e[0].baseData.width/2}var i=t.sortBy(e,(function(t){return t.baseData.left})),a=t.sortBy(e,(function(t){return 1*t.baseData.left+1*t.baseData.width})),o=(1*i[0].baseData.left+(1*a[a.length-1].baseData.left+1*a[a.length-1].baseData.width))/2;e.map((function(t){return t.baseData.left=o-t.baseData.width/2}))}(r,e);break;case"alignTop":!function(e,n){1===e.length&&(e[0].baseData.top=0);var r=t.sortBy(e,(function(t){return t.baseData.top})),i=1*r[0].baseData.top;e.map((function(t){return t.baseData.top=i}))}(r);break;case"alignBottom":!function(e,n){if(1===e.length){var r=n.plant?n.plant.baseData:{width:1920,height:1080};e[0].baseData.top=r.height-e[0].baseData.height}var i=t.sortBy(e,(function(t){return 1*t.baseData.top})),a=1*i[i.length-1].baseData.top+1*i[i.length-1].baseData.height;e.map((function(t){return t.baseData.top=a-1*t.baseData.height}))}(r,e);break;case"verticalCenter":!function(e,n){if(1===e.length){var r=n.plant?n.plant.baseData:{width:1920,height:1080};e[0].baseData.top=r.height/2-e[0].baseData.height/2}var i=t.sortBy(e,(function(t){return t.baseData.top})),a=t.sortBy(e,(function(t){return 1*t.baseData.top+1*t.baseData.height})),o=(1*i[0].baseData.top+(1*a[a.length-1].baseData.top+1*a[a.length-1].baseData.height))/2;e.map((function(t){return t.baseData.top=o-t.baseData.height/2}))}(r,e);break;case"topDistribution":!function(e){if(e.length<3)return console.warn("A minimum of three elements are required for a distribution arrangement"),!1;var n=t.sortBy(e,(function(t){return t.baseData.top})),r=(n[n.length-1].baseData.top-n[0].baseData.top)/(n.length-1);n.map((function(t,e){e>0&&e<n.length-1&&(t.baseData.top=1*n[0].baseData.top+r*e)}))}(r);break;case"bottomDistribution":!function(e){if(e.length<3)return console.warn("A minimum of three elements are required for a distribution arrangement"),!1;var n=t.sortBy(e,(function(t){return t.baseData.top+t.baseData.height})),r=(n[n.length-1].baseData.top+n[n.length-1].baseData.height-(n[0].baseData.top+n[0].baseData.height))/(n.length-1);n.map((function(t,e){e>0&&e<n.length-1&&(t.baseData.top=1*n[0].baseData.top+1*n[0].baseData.height-1*t.baseData.height+r*e)}))}(r);break;case"xCenterDistribution":!function(e){if(e.length<3)return console.warn("A minimum of three elements are required for a distribution arrangement"),!1;var n=t.sortBy(e,(function(t){return t.baseData.left+t.baseData.width/2})),r=1*n[n.length-1].baseData.left+n[n.length-1].baseData.width/2,i=1*n[0].baseData.left+n[0].baseData.width/2,a=(r-i)/(n.length-1);n.map((function(t,e){e>0&&e<n.length-1&&(t.baseData.left=i-t.baseData.width/2+a*e)}))}(r);break;case"leftDistribution":!function(e){if(e.length<3)return console.warn("A minimum of three elements are required for a distribution arrangement"),!1;var n=t.sortBy(e,(function(t){return t.baseData.left})),r=(n[n.length-1].baseData.left-n[0].baseData.left)/(n.length-1);n.map((function(t,e){e>0&&e<n.length-1&&(t.baseData.left=n[0].baseData.left+r*e)}))}(r);break;case"rightDistribution":!function(e){if(e.length<3)return console.warn("A minimum of three elements are required for a distribution arrangement"),!1;var n=t.sortBy(e,(function(t){return t.baseData.left+t.baseData.width})),r=(n[n.length-1].baseData.left+n[n.length-1].baseData.width-(n[0].baseData.left+n[0].baseData.width))/(n.length-1);n.map((function(t,e){e>0&&e<n.length-1&&(t.baseData.left=n[0].baseData.left+n[0].baseData.width-t.baseData.width+r*e)}))}(r);break;case"yCenterDistribution":!function(e){if(e.length<3)return console.warn("A minimum of three elements are required for a distribution arrangement"),!1;var n=t.sortBy(e,(function(t){return t.baseData.top+t.baseData.height/2})),r=1*n[n.length-1].baseData.top+n[n.length-1].baseData.height/2,i=1*n[0].baseData.top+n[0].baseData.height/2,a=(r-i)/(n.length-1);n.map((function(t,e){e>0&&e<n.length-1&&(t.baseData.top=i-t.baseData.height/2+a*e)}))}(r)}}},xi={setPageData:function(t,e){t.pages[0]=e},parasePages:function(t,e){e instanceof Array&&(t.pages=e.map((function(t,e){return t.name||(t.name="页面"+(e+1)),t.path||(t.path="page"+(e+1)),t})))},addPage:function(t,e){var n=t.pages.length+1;e.name="页面"+n,e.path="page"+n,t.pages.push(e),t.pageIndex=t.pages.length-1,t.resource={jspaths:[],csspaths:[],otherpaths:[]},t.globalVars=t.sysConst},setCurrentPageIndex:function(t,e){var n=t.globalEvents,r=t.globalVars,i=t.list,a=t.name,o=t.theme,s=t.plant,l=t.shareVariableTree,c=t.resource;t.pages[t.pageIndex]={globalEvents:n,globalVars:r,list:i,name:a,theme:o,plant:s,shareVariableTree:l,resource:c},t.pageIndex=e},setPageDataForIndex:function(t,e){var n=e.index,r=e.data;t.pages[n]=r},setPageName:function(t,e){t.name=e,t.pages[t.pageIndex].name=e},saveCurrentPageData:function(t){var e=t.globalEvents,n=t.globalVars,r=void 0===n?[]:n,i=t.list,a=t.name,o=t.theme,s=t.plant,l=t.shareVariableTree,c=t.resource;t.pages[t.pageIndex]={globalEvents:e,globalVars:r,list:i,name:a,theme:o,plant:s,shareVariableTree:l,resource:c}},getCurrentPageData:function(t){var e=t.globalEvents,n=t.globalVars,r=t.list,i=t.name,a=t.theme,o=t.plant,s=t.shareVariableTree,l=t.resource;t.pages[t.pageIndex]={globalEvents:e,globalVars:n,list:r,name:i,theme:a,plant:o,shareVariableTree:s,resource:l}}},Ti={segmentationContainer:function(e,n){var r=t.cloneDeep(e.list),i=n.containerData,a=n.direction,o=[];if("del"==a)if(i.pid){var s=function(t){if(t.length)for(var e=0;e<t.length;e++)t[e].hasOwnProperty("children")&&t[e].children.length&&t[e].children.map((function(n){t[e].cid=n.pid})),i.pid===t[e].cid?t[e].children.length&&(t[e].children.map((function(t){t.cid!==i.cid&&t.hasOwnProperty("children")&&t.children.length&&(o=t.children)})),t[e].children=[],o.length&&(t[e].children=o)):t[e].hasOwnProperty("children")&&s(t[e].children)};r.length&&s(r)}else r.length&&(r=r.filter((function(t){return t.cid!==i.cid})));else if(i.pid){var l=function(t){for(var e=0;e<t.length;e++)if(i.cid===t[e].cid){t[e].direction=a,1===t[e].children.length&&((o=t[e].children)[0].pid=null,t[e].children=[]);for(var n=0;n<2;n++)t[e].children.push({isLock:!1,isShow:!0,baseData:{width:"col"==a?"100%":"50%",height:"col"==a?"50%":"100%",angle:0,penetrate:0,opacity:100},componentType:"selectContainer",iconClass:"__vue_devtool_undefined__",isAssembly:"__vue_devtool_undefined__",source:[],comData:{actions:[],option:{grid:[{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"}],bgColor:{alpha:1,blue:0,green:0,red:0,flag:1,style:"transparent"},borderRadius:[{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"}],margins:[{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"}]}},tmpData:{},dynamic:0,filePath:"/anov-prod/mgt/go/assembly/162-bgImage.png",origin:"anov-go",name:"容器组件",path:"/index.js",viewComName:"selectContainer",optionComName:"",dataComName:"",eventComName:"",direction:"col",assemblyDeveloper:"",devEmail:"",version:null,devDept:"",toggle:!0,cid:Te(),pid:t[e].cid,nestIndex:0,children:[],isTop:!1,isCol:"col"==a,isRow:"col"!=a,isDragged:!1,grandParentId:i.pid});o.length&&(o[0].cid=Te(),o[0].pid=t[e].children[0].cid,t[e].children[0].children=o)}else t[e].hasOwnProperty("children")&&l(t[e].children)};r.length&&l(r)}else{var c=re(r,i.cid);if(c){c.direction=a,1===c.children.length&&(o=c.children,c.children=[]);for(var u=0;u<2;u++)c.children.push({isLock:!1,isShow:!0,baseData:{width:"col"==a?"100%":"50%",height:"col"==a?"50%":"100%",angle:0,penetrate:0,opacity:100},componentType:"selectContainer",iconClass:"__vue_devtool_undefined__",isAssembly:"__vue_devtool_undefined__",source:[],comData:{actions:[],option:{grid:[{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"}],bgColor:{alpha:1,blue:0,green:0,red:0,flag:1,style:"transparent"},imgOpt:"",bgScaleOpt:3,borderRadius:[{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"}],margins:[{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"}]}},tmpData:{},dynamic:0,filePath:"/anov-prod/mgt/go/assembly/162-bgImage.png",origin:"anov-go",name:"容器组件",path:"/index.js",viewComName:"selectContainer",optionComName:"",dataComName:"",eventComName:"",assemblyDeveloper:"",devEmail:"",version:null,devDept:"",toggle:!0,cid:Te(),pid:c.cid,nestIndex:0,children:[],isTop:!1,isCol:"col"==a,isRow:"col"!=a,isDragged:!1,grandParentId:i.pid});o.length&&(o[0].cid=Te(),o[0].pid=c.children[0].cid,c.children[0].children=o)}}e.list=r}},ki={goEditShareCom:function(t,e){var n=e.name,r=e.mapping;t.shareComs||(t.shareComs=new Map),t.shareComs.set(n,r)},delShareCom:function(t,e){var n=e.key;t.shareComs&&t.shareComs.has(n)&&t.shareComs.delete(n)}},Ci={mutation:{addGoVar:function(t,e){try{Rr.addVariable(e,(function(){t.globalVars=Rr.getAllVariables()}))}catch(t){console.warn(t)}},delGoVar:function(t,e){try{var n=e.mapField;console.log(n,"mapFieldmapField"),Rr.delVariable(n,(function(){t.globalVars=Rr.getAllVariables()}))}catch(t){console.warn(t)}},editGoVar:function(t,e){var n=this;try{Rr.editVariable(e,(function(r){t.globalVars=Rr.getAllVariables(),Mr(t.globalSource,e.mapField,t.globalVars,t.list,(function(t){n.commit("GoCom/updatComs",t.cid)})),(null==e?void 0:e.delayUpdate)||n.commit("GoCom/updatComsForVar",e.mapField)}))}catch(t){console.warn(t)}},goEditVar:function(t,e){var n=e.key,r=e.value,i=t.globalVars.find((function(t){return t.mapField==n}));i&&(i.originalValue=r,i.update=!0,this.commit("GoCom/editGoVar",i))},goUpdataSysVars:function(t,e){var n={U_CITY:"cityCode",U_COUNTY:"countyCode",U_PROVINCE:"provinceCode",U_PHONE:"userPhone"},r=t.sysConst,i=Object.keys(n);r.map((function(t){if(t.originalValue=t.value,(null==t?void 0:t.name)&&(null==i?void 0:i.includes(t.name))){var r=n[t.name];t.value=e[r],t.originalValue=e[r]}return t})),Rr.addVariables(r)},updateGlobalVars:function(t,e){t.globalVars=e},updataVariables:function(t){t.globalVars=Rr.getAllVariables()}},actions:{updateGlobalVarsAction:function(t){(0,t.commit)("updateGlobalVars",Rr.getAllVariables())},goEditVar:function(t,e){(0,t.commit)("editGoVar",{mapField:e.key,originalValue:e.value})}}},Ei=c(c(c(c(c(c(c(c(c(c(c({},f),Mn),li),ui),hi),Di),Si),xi),Ti),ki),Ci.mutation),Ai=c({updataList:function(t,e){var n=t.commit;e&&n("updataList",e),n("updateTree")},updataBaseData:function(t,e){var n=t.commit;e&&n("updataBaseData",e)},setActive:function(t,e){var n=t.commit;e&&n("setActive",e)},setSyncFlag:function(t,e){var n=t.commit;e&&n("setSyncFlag",e)},execute:function(t,e){var n=t.commit;e&&n("execute",e)},updataAnimationForComponent:function(t,e){var n=t.commit;e&&n("updataAnimationForComponent",e)},updataAnimation:function(t,e){(0,t.commit)("updataAnimation",e)},setOptionForCom:function(t,e){(0,t.commit)("setOptionForCom",e)},updatComs:function(t,e){var n=t.commit;setTimeout((function(){n("updatComs",e)}))},updatComsForVar:function(e,n){var r=e.dispatch,i=e.state,a=i.globalVars.map((function(t){var e,r;if((null===(e=null==t?void 0:t.forkValue)||void 0===e?void 0:e.length)&&(null===(r=null==t?void 0:t.forkValue)||void 0===r?void 0:r.includes(n))||t.forkValue==n)return t.mapField})).filter((function(t){return t})),o=[n];(null==a?void 0:a.length)&&(o=t.uniq(d([n],a,!0)));for(var s=[],l=0,c=o;l<c.length;l++){var u=c[l];i.shareVariableTree[u]&&s.push.apply(s,i.shareVariableTree[u])}if(null==s?void 0:s.length)for(var h=0,f=s;h<f.length;h++){r("updatComs",f[h])}},goEditShareCom:function(t,e){var n=t.commit;t.state,n("goEditShareCom",e)},delShareCom:function(t,e){var n=t.commit;t.state,n("delShareCom",e)},updataSource:function(t,e){var n=t.commit;t.state,n("updataSource",e)}},Ci.actions),Oi={getCurrentPage:function(t){return t.pages.length?t.pages[t.pageIndex]:[]},globalSourceTree:function(e){if(e.list.length&&e.globalSource.length){var n=[];return le(t.cloneDeep(e.list),(function(t){var e,r,i;if("globalData"==(null===(r=null===(e=null==t?void 0:t.tmpData)||void 0===e?void 0:e.source)||void 0===r?void 0:r.type)){var a=null===(i=null==t?void 0:t.tmpData)||void 0===i?void 0:i.source.globalData;n.push({name:t.name,cid:t.cid,sourceId:a.id,viewComName:t.viewComName})}})),n}return[]}},Mi={namespaced:!0,state:s,mutations:Ei,actions:Ai,getters:Oi},Ni=function(){function t(){}return t.setAppStore=function(e){t.store=e},t.prototype.getState=function(){return t.store.state[t.storeModule]},t.prototype.mapState=function(e){return Pi(t.storeModule,e)},t.prototype.mapGetters=function(e){return Ri(t.storeModule,e)},t.prototype.mapMutations=function(e){return Vi(t.storeModule,e)},t.prototype.callState=function(e){return t.store.state[t.storeModule][e]},t.prototype.callGetter=function(e,n){return t.store.getters[t.storeModule+"/"+e]},t.prototype.callMutation=function(e,n,r){r?t.store.commit(t.storeModule+"/"+e,n,!0):t.store.commit(t.storeModule+"/"+e,n)},t.prototype.callAction=function(e,n){t.store.dispatch(t.storeModule+"/"+e,n)},t.storeModule="GoCom",t}(),Pi=Ii((function(t,e){var n;return Bi(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var r=Fi(this.$store,"mapState",t);if(!r)return;e=r.context.state,n=r.context.getters}return"function"==typeof i?i.call(this,e,n):e[i]},n[r].VuexServer=!0})),n})),Vi=Ii((function(t,e){var n;return Bi(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=this.$store.commit;if(t){var a=Fi(this.$store,"mapMutations",t);if(!a)return;r=a.context.commit}return"function"==typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}})),n})),Ri=Ii((function(t,e){var n={};return Bi(e).forEach((function(e){var r=e.key,i=e.val;i=t+i,n[r]=function(){if(!t||Fi(this.$store,"mapGetters",t)){if("production"===process.env.NODE_ENV||i in this.$store.getters)return this.$store.getters[i];console.error("[VuexServer] unknown getter: ".concat(i))}},n[r].VuexServer=!0})),n}));function Bi(t){return Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}}))}function Ii(t){return function(e,n){return"string"!=typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function Fi(t,e,n){var r=t._modulesNamespaceMap[n];return"production"===process.env.NODE_ENV||r||console.error("[VuexServer] module namespace not found in ".concat(e,"(): ").concat(n)),r}var ji=function(){function t(t){var e=this;if(this.isLock=!1,this.isShow=!0,this.baseData={left:0,top:0,width:300,height:200,angle:0,opacity:100,rotate:0,rotateY:0},this.componentType="BaseComponent",this.cid=Te(),t){Object.keys(t).forEach((function(n){e[n]=t[n]}));["AnEchartsMap","AnMaptalks","AnEchartsMap1","AnArcgisMapBase","AnAMap1","AnCesium","AnThreeMap3DChina","AnThreeMapForCesium","AnThreeMap","AnGisMap","AnMineMap","MineMapMarkerLayer","MineMapClusterLayer","AnChina3D","AncsAnovGis"].includes(t.viewComName)&&(this.componentType="MultiStateComponent"),"AnDynamic"!==t.viewComName&&"AmDynamic"!==t.viewComName&&"AnContainer"!==t.viewComName&&"AnGridLayout"!==t.viewComName||(this.componentType="dynamicComponent")}}return t.prototype.setIndex=function(t){this.z=t},t}(),Li=function(){function e(t){this.vueServer=t,this.loadScript=vi}return e.setStore=function(t){this.store=t},e.prototype.loadComponents=function(e){var n=e&&e.list?e.list:[];le(n,(function(t){t.viewComName&&(t&&t.path&&t.path,t.origin,t.viewComName?t.viewComName:t.rawData.viewComName)})),e&&this.vueServer.callMutation("reversal",t.cloneDeep(e))},e.prototype.addStore=function(t){this.vueServer.callMutation("setActive",{id:t}),this.vueServer.callMutation("addComs",this)},e.prototype._addPlantStore=function(){this.vueServer.callMutation("setPlant",this)},e.prototype._loadComTmp=function(t,e){return u(this,void 0,void 0,(function(){var n,r,i=this;return h(this,(function(a){switch(a.label){case 0:if(window[e])return[3,5];n=function(e){var n;return h(this,(function(r){switch(r.label){case 0:return n=t[e],[4,new Promise((function(t){t(i._load(n))}))];case 1:return r.sent(),[2]}}))},r=0,a.label=1;case 1:return r<t.length?[5,n(r)]:[3,4];case 2:a.sent(),a.label=3;case 3:return r++,[3,1];case 4:window[e]=e,a.label=5;case 5:return[2]}}))}))},e.prototype._load=function(t){return u(this,void 0,void 0,(function(){var e=this;return h(this,(function(n){return[2,new Promise((function(n){n(e.loadScript(t))}))]}))}))},e}(),Yi=function(){function t(t){var e=t.dbName,n=t.tables,r=t.version,i=void 0===r?1:r,a=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["dbName","tables","version"]);this.dbName=e,this.tables=n,this.version=i,this.openDB(c({dbName:e,tables:n,version:i},a))}return t.deleteDB=function(t){var e;null===(e=window.indexedDB)||void 0===e||e.deleteDatabase(t)},t.prototype.deleteItem=function(t,e,n){var r=this.storage.transaction(t,"readwrite").objectStore(t).delete(e);return r.onsuccess=function(t){"function"==typeof n&&n(t)},r},t.prototype.getItem=function(t,e,n){var r=this.storage.transaction(t,"readwrite").objectStore(t),i=null;return(i=e?r.get(e):r.getAll()).onsuccess=function(t){var e;"function"==typeof n&&n(null===(e=null==t?void 0:t.target)||void 0===e?void 0:e.result)},i.onerror=function(t){console.error(t),n(t)},i},t.prototype.setItem=function(t,e,n,r){var i=this.storage.transaction(t,"readwrite").objectStore(t).put(n,e);return i.onsuccess=function(t){"function"==typeof r&&r(t)},i.onerror=function(t){"function"==typeof r&&r(t)},i},t.prototype.get=function(t,e){return this.getItem(this.tables[0],t,e)},t.prototype.set=function(t,e,n){return this.setItem(this.tables[0],t,e,n)},t.prototype.delete=function(t,e){return this.deleteItem(this.tables[0],t,e)},t.prototype.clear=function(t,e){var n=this.storage.transaction(this.dbName,"readwrite").objectStore(t).clear();return n.onsuccess=function(t){"function"==typeof e&&e(t)},n},t.prototype.getDB=function(){return this.storage},t.prototype.closeDB=function(){this.storage.close()},t.prototype.openDB=function(t){var e=this,n=t.dbName,r=t.tables,i=t.version,a=t.callback,o=window.indexedDB;if(o)if((null==r?void 0:r.length)<1)console.error("表名不能为空");else{var s=o.open(n,i);s.onerror=function(t){var e,n;console.error("打开数据库失败: ".concat(null===(n=null===(e=t.currentTarget)||void 0===e?void 0:e.error)||void 0===n?void 0:n.message)),"function"==typeof a&&a(t)},s.onsuccess=function(t){var n;e.storage=null===(n=t.target)||void 0===n?void 0:n.result,"function"==typeof a&&a(t)},s.onupgradeneeded=function(t){var n;e.storage=null===(n=t.target)||void 0===n?void 0:n.result,r.forEach((function(n){e.storage.objectStoreNames.contains(n)||(e.storage.createObjectStore(n),"function"==typeof a&&a(t))}))}}else console.error("你的浏览器不支持indexedDB")},t}(),zi=function(){function t(){this.VueServer=new Ni}return t.getInstance=function(){return this.instance||(this.db=new Yi({dbName:"AnovGo",tables:["logs"]}),this.instance=new t),this.instance},t.prototype.getAppStore=function(){return t.store},t.setAppStore=function(e){t.store=e,Ni.setAppStore(e),Li.setStore(e)},t.prototype.add=function(t,e,n){e.MultiState?this.VueServer.callMutation("addStateChildren",e):(this.VueServer.callMutation("addComs",{com:e,isMobile:n}),this.VueServer.callMutation("setActive",{id:t}))},t.prototype.addForParent=function(t,e,n,r){this.VueServer.callMutation("addComsForParent",{com:e,PID:n,isMobile:r}),this.VueServer.callMutation("setActive",{id:t})},t.prototype.render=function(t,e){var n=new ji(t);e?this.add(n.cid,n,!0):this.add(n.cid,n)},t.prototype.renderForParent=function(t,e,n){var r=new ji(t);void 0!==n?this.addForParent(r.cid,r,e,n):this.addForParent(r.cid,r,e)},t.prototype.reversal=function(t){new Li(new Ni).loadComponents(t)},t.prototype.emitEvent=function(t,e){var n=this,r=this.VueServer.callState("globalEvents"),i=(this.VueServer.callState("globalVars"),this.VueServer.callState("shareVariableTree")),a=this.VueServer.callState("globalSource");this.VueServer.callState("globalConstant");var o=this.VueServer.callState("list");jr(r,0,i,o,t,(function(t){n.VueServer.callMutation("changeShow",t)}),(function(t){n.VueServer.callMutation("updataSourceForComponent",t)}),e,a)},t}(),Hi=Object.defineProperty,Ui=Object.getOwnPropertySymbols,qi=Object.prototype.hasOwnProperty,Gi=Object.prototype.propertyIsEnumerable,Wi=(t,e,n)=>e in t?Hi(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,$i=(t,e)=>{for(var n in e||(e={}))qi.call(e,n)&&Wi(t,n,e[n]);if(Ui)for(var n of Ui(e))Gi.call(e,n)&&Wi(t,n,e[n]);return t},Ki=(t,e,n)=>(Wi(t,"symbol"!=typeof e?e+"":e,n),n),Zi=(t,e,n)=>new Promise(((r,i)=>{var a=t=>{try{s(n.next(t))}catch(t){i(t)}},o=t=>{try{s(n.throw(t))}catch(t){i(t)}},s=t=>t.done?r(t.value):Promise.resolve(t.value).then(a,o);s((n=n.apply(t,e)).next())})),Xi={gapX:100,gapY:100,offsetLeft:0,offsetTop:0,width:120,height:64,opacity:.15,rotate:-22,fontSize:16,fontStyle:"normal",fontVariant:"normal",fontWeight:"300",fontColor:"#000",fontFamily:"sans-serif",textAlign:"center",textBaseline:"alphabetic",monitor:!0,zIndex:9999,mode:"interval",pack:!0,blindFontSize:16,blindOpacity:.005},Ji="data-watermark-tag",Qi={childList:!0,subtree:!0,attributeFilter:["style","class",Ji]};var ta=t=>{let e="";return Object.keys(t).forEach((n=>{const r=n.replace(/([A-Z])/g,"-$1").toLowerCase();e+=`${r}:${t[n]};`})),e},ea=(t="")=>{return`${e=t,window.btoa(decodeURI(encodeURIComponent(e)))}-${(new Date).getTime()}-${Math.floor(Math.random()*Math.pow(10,8))}`;var e};var na=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,ra=a((function(t,e){!function(){function e(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}function n(t,e,n){var r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){l(r.response,e,n)},r.onerror=function(){console.error("could not download file")},r.send()}function i(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function a(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(n){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var o="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof r&&r.global===r?r:void 0,s=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=o.saveAs||("object"!=typeof window||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(t,e,r){var s=o.URL||o.webkitURL,l=document.createElement("a");e=e||t.name||"download",l.download=e,l.rel="noopener","string"==typeof t?(l.href=t,l.origin===location.origin?a(l):i(l.href)?n(t,e,r):a(l,l.target="_blank")):(l.href=s.createObjectURL(t),setTimeout((function(){s.revokeObjectURL(l.href)}),4e4),setTimeout((function(){a(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,r,o){if(r=r||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(e(t,o),r);else if(i(t))n(t,r,o);else{var s=document.createElement("a");s.href=t,s.target="_blank",setTimeout((function(){a(s)}))}}:function(t,e,r,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof t)return n(t,e,r);var a="application/octet-stream"===t.type,l=/constructor/i.test(o.HTMLElement)||o.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||a&&l||s)&&"undefined"!=typeof FileReader){var u=new FileReader;u.onloadend=function(){var t=u.result;t=c?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=t:location=t,i=null},u.readAsDataURL(t)}else{var h=o.URL||o.webkitURL,d=h.createObjectURL(t);i?i.location=d:location.href=d,i=null,setTimeout((function(){h.revokeObjectURL(d)}),4e4)}});o.saveAs=l.saveAs=l,t.exports=l}()})),ia=function(e){if(0===e.length)return[];var n=function(e){for(var r,i,a,o,s=0;s<e.length;s++)e[s].tmpData&&(e[s]=Object.assign({},(i=e[s],a=void 0,o=void 0,a=t.cloneDeep(i),o=t.omit(a,["comData","source"]),c({},o)))),e[s]&&e[s].children&&(null===(r=e[s])||void 0===r?void 0:r.children.length)?n(e[s].children):e[s]&&e[s].dynamicChildren&&Array.from(e[s].dynamicChildren).forEach((function(t,e){n(t[1])}))};return n(e),e},aa=function(e){var n=t.cloneDeep(e)?t.cloneDeep(e):{};"string"==typeof e&&(n=JSON.parse(e));var r=[];if(n instanceof Array)n.forEach((function(t,e){var n=JSON.parse(t.caseDetailData)?JSON.parse(t.caseDetailData):{},i=t.caseDetailPath,a=t.caseDetailName,o=n.theme,s=void 0===o?null:o,l=n.globalVars,c=void 0===l?null:l,u=n.shareVariableTree,h=void 0===u?null:u,d=n.plant,f=void 0===d?null:d,p=n.list,m=void 0===p?[]:p,g=n.path,v=void 0===g?"":g;n.name;var y=n.resource,b=void 0===y?{jspaths:[],csspaths:[],otherpaths:[]}:y,_=n.watermark,w=void 0===_?null:_,D=n.tw,S=void 0===D?null:D,x=n.globalSource,T=void 0===x?[]:x,k=n.globalEvents,C=void 0===k?[]:k,E=n.globalConstant,A=void 0===E?[]:E;r.push({path:v||i,theme:s,name:a,resource:b,tw:S,watermark:w,globalSource:T,globalVars:c,globalEvents:C,globalConstant:A,shareVariableTree:h,plant:f,list:ia(m)})}));else{var i=n.theme,a=void 0===i?null:i,o=n.globalVars,s=void 0===o?null:o,l=n.shareVariableTree,c=void 0===l?null:l,u=n.plant,h=void 0===u?null:u,d=n.list,f=void 0===d?[]:d,p=n.resource,m=void 0===p?{jspaths:[],csspaths:[],otherpaths:[]}:p,g=n.watermark,v=void 0===g?null:g,y=n.tw,b=void 0===y?null:y,_=n.globalSource,w=void 0===_?[]:_,D=n.globalEvents,S=void 0===D?[]:D,x=n.globalConstant,T=void 0===x?[]:x;r.push({resource:m,tw:b,watermark:v,globalSource:w,theme:a,globalVars:s,globalEvents:S,shareVariableTree:c,globalConstant:T,plant:h,list:ia(f)})}return r};function oa(t,e){throw new Error("".concat(t,":Expected HTMLElement, got ").concat(e))}var sa=function(){function t(t){this.option=t,this.option.isResize&&window.addEventListener("resize",this.resize.bind(this))}return Object.defineProperty(t,"defaultOption",{get:function(){return t._defaultOption},set:function(e){t._defaultOption=e},enumerable:!1,configurable:!0}),t.getInstance=function(e){return t.instance||(t.instance=new t(e)),t.instance},t.prototype.removeResize=function(){window.removeEventListener("resize",this.resize.bind(this))},t.prototype.resize=function(){var t=this.option,e=t.isEqualScale,n=t.wrapSelector,r=t.viewSelector,i=t.designWidth,a=t.designHeight,o=t.horizontal,s=t.vertical,l=document.querySelector(n);l||oa("wrap",l);var c=l.clientWidth,u=l.clientHeight,h=document.querySelector(r);h||oa("view",h),h.style.position="absolute",h.style.width=i+"px",h.style.height=a+"px";var d,f,p,m,g=Math.min(c/i,u/a);if(e){switch(h.style.transform="scale(".concat(g,")"),o){case"center":d=(c-i)/2+"px";break;case"left":d=(g-1)/2*i+"px";break;case"right":p=(g-1)/2*i+"px"}switch(s){case"center":f=(u-a)/2+"px";break;case"top":f=(g-1)/2*a+"px";break;case"bottom":m=(g-1)/2*a+"px"}}else h.style.transform="scale('".concat(c/i,", ").concat(u/a,"')"),d=(c-i)/2+"px",f=(u-a)/2+"px";f?h.style.top=f:m&&(h.style.bottom=m),d?h.style.left=d:p&&(h.style.right=p)},t._defaultOption={isEqualScale:!0,designWidth:1920,designHeight:1080,wrapSelector:"body",viewSelector:"#app",horizontal:"center",vertical:"center",isResize:!0},t}(),la=function(){function e(t){this.wrap=null,this.target=null,this.type=0,this.minRatio=1,this.outSize={w:0,h:0},this.inSize={w:0,h:0};var e=t.wrap,n=t.target,r=t.type,i=t.size,a=t.callback;this.size=i,this.type=r,this.initOptions(e,n,i),this.initSize(i),this.layout(),this.scale(a),window.addEventListener("resize",this.reset.bind(this,a))}return e.prototype.reset=function(t){this.initSize(this.size),this.layout(),t?this.scale(t):this.scale()},e.getInstance=function(t){return e.instance||(e.instance=new e(t)),e.instance},e.prototype.removeResize=function(){window.removeEventListener("resize",this.reset.bind(this,void 0))},e.prototype.getDom=function(e){if(t.isElement(e))return e;var n=document.querySelector(e);return t.isElement(n)?n:null},e.prototype.initOptions=function(t,e,n){this.wrap=this.getDom(t),this.target=this.getDom(e),this.target.style.width=n.w+"px",this.target.style.height=n.h+"px",this.verificationDom()},e.prototype.initSize=function(t){this.outSize.w=this.wrap.clientWidth,this.outSize.h=this.wrap.clientHeight,this.inSize=t},e.prototype.verificationDom=function(){null!=this.wrap&&null!=this.target&&this.isChildOf(this.wrap,this.target)||console.warn("Please pass in the DOM element correctly!")},e.prototype.layout=function(){if(0==this.type||3==this.type){var t=(this.outSize.w-this.inSize.w)/2,e=(this.outSize.h-this.inSize.h)/2;this.target.style.top=e+"px",this.target.style.left=t+"px"}else this.wrap.style.display="flex",this.wrap.style["align-items"]="center",this.wrap.style["justify-content"]="center",this.target.style.position="static",1==this.type?(this.wrap.style["overflow-y"]="auto",this.wrap.style["overflow-x"]="hidden"):2==this.type&&(this.wrap.style["overflow-y"]="hidden",this.wrap.style["overflow-x"]="auto")},e.prototype.isChildOf=function(t,e){var n;if(t&&e)for(n=t.parentNode;n;){if(e===n)return!0;n=n.parentNode}return!1},e.prototype.scale=function(t){var e=1,n=1;switch(this.type){case 0:e=Math.min(this.outSize.w/this.inSize.w,this.outSize.h/this.inSize.h),n=Math.min(this.outSize.w/this.inSize.w,this.outSize.h/this.inSize.h);break;case 1:n=e=this.outSize.w/this.inSize.w;break;case 2:e=n=this.outSize.h/this.inSize.h;break;case 3:e=this.outSize.w/this.inSize.w,n=this.outSize.h/this.inSize.h}t&&t([e,n]),this.target.style.transform="scale(".concat(e,",").concat(n,")")},e.prototype.resize=function(){},e}(),ca=a((function(t){!function(e){var n=function(){return{escape:function(t){return t.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1")},parseExtension:t,mimeType:function(e){var n=t(e).toLowerCase();return(r="application/font-woff",i="image/jpeg",{woff:r,woff2:r,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:i,jpeg:i,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"})[n]||"";var r,i},dataAsUrl:function(t,e){return"data:"+e+";base64,"+t},isDataUrl:function(t){return-1!==t.search(/^(data:)/)},canvasToBlob:function(t){return t.toBlob?new Promise((function(e){t.toBlob(e)})):function(t){return new Promise((function(e){for(var n=window.atob(t.toDataURL().split(",")[1]),r=n.length,i=new Uint8Array(r),a=0;a<r;a++)i[a]=n.charCodeAt(a);e(new Blob([i],{type:"image/png"}))}))}(t)},resolveUrl:function(t,e){var n=document.implementation.createHTMLDocument(),r=n.createElement("base");n.head.appendChild(r);var i=n.createElement("a");return n.body.appendChild(i),r.href=e,i.href=t,i.href},getAndEncode:function(t){var e=3e4;s.impl.options.cacheBust&&(t+=(/\?/.test(t)?"&":"?")+(new Date).getTime());return new Promise((function(n){var r,i=new XMLHttpRequest;if(i.onreadystatechange=o,i.ontimeout=l,i.responseType="blob",i.timeout=e,i.open("GET",t,!0),i.send(),s.impl.options.imagePlaceholder){var a=s.impl.options.imagePlaceholder.split(/,/);a&&a[1]&&(r=a[1])}function o(){if(4===i.readyState)if(200===i.status){var e=new FileReader;e.onloadend=function(){var t=e.result.split(/,/)[1];n(t)},e.readAsDataURL(i.response)}else r?n(r):c("cannot fetch resource: "+t+", status: "+i.status)}function l(){r?n(r):c("timeout of "+e+"ms occured while fetching resource: "+t)}function c(t){console.error(t),n("")}}))},uid:function(){var t=0;return function(){return"u"+e()+t++;function e(){return("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4)}}}(),delay:function(t){return function(e){return new Promise((function(n){setTimeout((function(){n(e)}),t)}))}},asArray:function(t){for(var e=[],n=t.length,r=0;r<n;r++)e.push(t[r]);return e},escapeXhtml:function(t){return t.replace(/#/g,"%23").replace(/\n/g,"%0A")},makeImage:function(t){return new Promise((function(e,n){var r=new Image;r.onload=function(){e(r)},r.onerror=n,r.src=t}))},width:function(t){var n=e(t,"border-left-width"),r=e(t,"border-right-width");return t.scrollWidth+n+r},height:function(t){var n=e(t,"border-top-width"),r=e(t,"border-bottom-width");return t.scrollHeight+n+r}};function t(t){var e=/\.([^\.\/]*?)$/g.exec(t);return e?e[1]:""}function e(t,e){var n=window.getComputedStyle(t).getPropertyValue(e);return parseFloat(n.replace("px",""))}}(),r=function(){var t=/url\(['"]?([^'"]+?)['"]?\)/g;return{inlineAll:function(t,n,a){return o()?Promise.resolve(t):Promise.resolve(t).then(r).then((function(e){var r=Promise.resolve(t);return e.forEach((function(t){r=r.then((function(e){return i(e,t,n,a)}))})),r}));function o(){return!e(t)}},shouldProcess:e,impl:{readUrls:r,inline:i}};function e(e){return-1!==e.search(t)}function r(e){for(var r,i=[];null!==(r=t.exec(e));)i.push(r[1]);return i.filter((function(t){return!n.isDataUrl(t)}))}function i(t,e,r,i){return Promise.resolve(e).then((function(t){return r?n.resolveUrl(t,r):t})).then(i||n.getAndEncode).then((function(t){return n.dataAsUrl(t,n.mimeType(e))})).then((function(r){return t.replace(function(t){return new RegExp("(url\\(['\"]?)("+n.escape(t)+")(['\"]?\\))","g")}(e),"$1"+r+"$3")}))}}(),i=function(){return{resolveAll:function(){return t().then((function(t){return Promise.all(t.map((function(t){return t.resolve()})))})).then((function(t){return t.join("\n")}))},impl:{readAll:t}};function t(){return Promise.resolve(n.asArray(document.styleSheets)).then((function(t){var e=[];return t.forEach((function(t){try{n.asArray(t.cssRules||[]).forEach(e.push.bind(e))}catch(e){console.log("Error while reading CSS rules from "+t.href,e.toString())}})),e})).then((function(t){return t.filter((function(t){return t.type===CSSRule.FONT_FACE_RULE})).filter((function(t){return r.shouldProcess(t.style.getPropertyValue("src"))}))})).then((function(e){return e.map(t)}));function t(t){return{resolve:function(){var e=(t.parentStyleSheet||{}).href;return r.inlineAll(t.cssText,e)},src:function(){return t.style.getPropertyValue("src")}}}}}(),a=function(){return{inlineAll:function e(i){return i instanceof Element?a(i).then((function(){return i instanceof HTMLImageElement?t(i).inline():Promise.all(n.asArray(i.childNodes).map((function(t){return e(t)})))})):Promise.resolve(i);function a(t){var e=t.style.getPropertyValue("background");return e?r.inlineAll(e).then((function(e){t.style.setProperty("background",e,t.style.getPropertyPriority("background"))})).then((function(){return t})):Promise.resolve(t)}},impl:{newImage:t}};function t(t){return{inline:function(e){return n.isDataUrl(t.src)?Promise.resolve():Promise.resolve(t.src).then(e||n.getAndEncode).then((function(e){return n.dataAsUrl(e,n.mimeType(t.src))})).then((function(e){return new Promise((function(n,r){t.onload=n,t.onerror=r,t.src=e}))}))}}}}(),o={imagePlaceholder:void 0,cacheBust:!1},s={toSvg:l,toPng:function(t,e){return c(t,e||{}).then((function(t){return t.toDataURL()}))},toJpeg:function(t,e){return c(t,e=e||{}).then((function(t){return t.toDataURL("image/jpeg",e.quality||1)}))},toBlob:function(t,e){return c(t,e||{}).then(n.canvasToBlob)},toPixelData:function(t,e){return c(t,e||{}).then((function(e){return e.getContext("2d").getImageData(0,0,n.width(t),n.height(t)).data}))},impl:{fontFaces:i,images:a,util:n,inliner:r,options:{}}};function l(t,e){return function(t){void 0===t.imagePlaceholder?s.impl.options.imagePlaceholder=o.imagePlaceholder:s.impl.options.imagePlaceholder=t.imagePlaceholder;void 0===t.cacheBust?s.impl.options.cacheBust=o.cacheBust:s.impl.options.cacheBust=t.cacheBust}(e=e||{}),Promise.resolve(t).then((function(t){return u(t,e.filter,!0)})).then(h).then((function(t){e.bgcolor&&(t.style.backgroundColor=e.bgcolor);e.width&&(t.style.width=e.width+"px");e.height&&(t.style.height=e.height+"px");e.style&&Object.keys(e.style).forEach((function(n){t.style[n]=e.style[n]}));return t})).then((function(r){return function(t,e,r){return Promise.resolve(t).then((function(t){return t.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),(new XMLSerializer).serializeToString(t)})).then(n.escapeXhtml).then((function(t){return'<foreignObject x="0" y="0" width="100%" height="100%">'+t+"</foreignObject>"})).then((function(t){return'<svg xmlns="http://www.w3.org/2000/svg" width="'+e+'" height="'+r+'">'+t+"</svg>"})).then((function(t){return"data:image/svg+xml;charset=utf-8,"+t}))}(r,e.width||n.width(t),e.height||n.height(t))}))}function c(t,e){return l(t,e).then(n.makeImage).then(n.delay(100)).then((function(r){var i=function(t){var r=document.createElement("canvas");if(r.width=e.width||n.width(t),r.height=e.height||n.height(t),e.bgcolor){var i=r.getContext("2d");i.fillStyle=e.bgcolor,i.fillRect(0,0,r.width,r.height)}return r}(t);return i.getContext("2d").drawImage(r,0,0),i}))}function u(t,e,r){return r||!e||e(t)?Promise.resolve(t).then((function(t){return t instanceof HTMLCanvasElement?n.makeImage(t.toDataURL()):t.cloneNode(!1)})).then((function(r){return function(t,e,r){var i=t.childNodes;return 0===i.length?Promise.resolve(e):a(e,n.asArray(i),r).then((function(){return e}));function a(t,e,n){var r=Promise.resolve();return e.forEach((function(e){r=r.then((function(){return u(e,n)})).then((function(e){e&&t.appendChild(e)}))})),r}}(t,r,e)})).then((function(e){return function(t,e){var r=e;return r instanceof Element?Promise.resolve().then(i).then(a).then(o).then(s).then(l).then((function(){return r})):r;function i(){if(r instanceof HTMLVideoElement){var e=window.getComputedStyle(t),n=document.createElement("canvas");n.width=parseInt(e.width,10),n.height=parseInt(e.height,10);var i=Math.max(t.videoWidth/n.width,t.videoHeight/n.height),a=t.videoWidth/i,o=t.videoHeight/i,s=n.width/2-a/2,l=n.height/2-o/2;n.getContext("2d").drawImage(t,s,l,a,o);var c=r=document.createElement("img");try{c.src=n.toDataURL()}catch(t){c.src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="}}}function a(){function e(t,e){function r(t,e){n.asArray(t).forEach((function(n){e.setProperty(n,t.getPropertyValue(n),t.getPropertyPriority(n))}))}t.cssText?e.cssText=t.cssText:r(t,e)}e(window.getComputedStyle(t),r.style)}function o(){function e(e){var i=window.getComputedStyle(t,e),a=i.getPropertyValue("content");if(""!==a&&"none"!==a){var o=n.uid();r.className=r.className+" "+o;var s=document.createElement("style");s.appendChild(l(o,e,i)),r.appendChild(s)}function l(t,e,r){var i="."+t+":"+e,a=r.cssText?o(r):s(r);return document.createTextNode(i+"{"+a+"}");function o(t){var e=t.getPropertyValue("content");return t.cssText+" content: "+e+";"}function s(t){return n.asArray(t).map(e).join("; ")+";";function e(e){return e+": "+t.getPropertyValue(e)+(t.getPropertyPriority(e)?" !important":"")}}}}[":before",":after"].forEach((function(t){e(t)}))}function s(){t instanceof HTMLTextAreaElement&&(r.innerHTML=t.value),t instanceof HTMLInputElement&&r.setAttribute("value",t.value)}function l(){r instanceof SVGElement&&(r.setAttribute("xmlns","http://www.w3.org/2000/svg"),r instanceof SVGRectElement&&["width","height"].forEach((function(t){var e=r.getAttribute(t);e&&r.style.setProperty(t,e)})))}}(t,e)})):Promise.resolve()}function h(t){return a.inlineAll(t).then((function(){return t}))}t.exports=s}()})),ua=function(t){if(!t)return!1;return 1==new RegExp(/http(s)?:\/\/([\w-]+\.)+[\w-]+(\/[\w- .\/?%&=]*)?/).test(t)},ha=function(t){for(var e="",n=new Uint8Array(t),r=n.byteLength,i=0;i<r;i++)e+=String.fromCharCode(n[i]);return"data:image/jpeg;base64,".concat(window.btoa(e))},da=function(t,e){void 0===e&&(e="screenshot.jpeg");try{for(var n=t.split(","),r=n[0].match(/:(.*?);/)[1],i=atob(n[1]),a=i.length,o=new Uint8Array(a);a--;)o[a]=i.charCodeAt(a);return new File([o],e,{type:r})}catch(t){console.error("dataURLtoFile:数据转换错误 : "+t)}},fa=function(t,e){return u(void 0,void 0,void 0,(function(){var n;return h(this,(function(r){switch(r.label){case 0:return r.trys.push([0,11,,12]),"File"!=e||"string"!=typeof t?[3,2]:[4,da(t)];case 1:case 3:case 5:case 7:return[2,r.sent()];case 2:return"File"!=e||"[object ArrayBuffer]"!=t.toString()?[3,4]:[4,new File([t],"screenshot.jpeg")];case 4:return"Base64"!=e||"string"!=typeof t?[3,6]:[4,t];case 6:return"Base64"!=e||"[object ArrayBuffer]"!=t.toString()?[3,8]:[4,ha(t)];case 8:return[4,new Error("transformData: 转换发生错误")];case 9:throw r.sent();case 10:return[3,12];case 11:return n=r.sent(),console.log(n),[3,12];case 12:return[2]}}))}))},pa=function(t,e,r,i){return u(void 0,void 0,void 0,(function(){return h(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,n({url:t,method:"GET",responseType:"arraybuffer",params:{url:e,dom:r,quality:i}})];case 1:return[2,a.sent()];case 2:return a.sent(),console.warn("请求截图服务器发生错误,请检查地址及参数是否正确!",{url:t,path:e,dom:r,quality:i}),[2,null];case 3:return[2]}}))}))},ma=function(t,e){return u(void 0,void 0,void 0,(function(){var n,r;return h(this,(function(i){switch(i.label){case 0:if(i.trys.push([0,2,,3]),!(n=document.querySelector(t)))throw new Error("domToImg:"+t+" dom未被找到!");return[4,ca.toJpeg(n,{style:{transform:"scale(1)",position:"static"},quality:e})];case 1:return[2,i.sent()];case 2:return r=i.sent(),console.warn(r),[3,3];case 3:return[2]}}))}))},ga=function(t){return"".concat(t>15?"":0).concat(t.toString(16))},va=function(t){var e=t.r,n=t.g,r=t.b,i=t.a,a=void 0===i?1:i;return"#".concat(ga(e)).concat(ga(n)).concat(ga(r)).concat(1===a?"":ga(Math.floor(255*a)))},ya=function(t){var e=t.r,n=t.g,r=t.b;return"rgb(".concat(e,",").concat(n,",").concat(r,")")},ba=function(t,e){void 0===e&&(e=1e4);var n=t.r,r=t.g,i=t.b,a=t.a,o=void 0===a?1:a;return"rgba(".concat(n,",").concat(r,",").concat(i,",").concat(Math.floor(o*e)/e,")")},_a=function(t){var e=t.slice(1),n=1;3===e.length&&(e="".concat(e[0]).concat(e[0]).concat(e[1]).concat(e[1]).concat(e[2]).concat(e[2])),8===e.length&&(n=parseInt(e.slice(6),16)/255,e=e.slice(0,6));var r=parseInt(e,16);return{r:r>>16&255,g:r>>8&255,b:255&r,a:n}},wa=function(t){var e=t.match(/(\d(\.\d+)?)+/g)||[],n=e.map((function(t){return parseInt(t,10)}));return{r:n[0],g:n[1],b:n[2],a:parseFloat(e[3])}},Da=function(t){if(t.startsWith("#"))return _a(t);if(t.startsWith("rgb"))return wa(t);if("transparent"===t)return _a("#00000000");throw new Error("color string error: ".concat(t))},Sa=new Map([["E1001","系统未知错误"],["E1002","vue逻辑错误"],["E1003","JavaScript错误"],["E1004","静态资源加载错误"],["E1005","请求错误"],["E1006","Promise错误"]]),xa=function(t,e,n,r){void 0===r&&(r="null"),Ta({code:t,type:Sa.get("".concat(t)),msg:e,router:n.currentRoute.value.fullPath,file:r,createTime:(new Date).toLocaleString()})},Ta=function(t){var e=localStorage.getItem("ERROR");if(e){var n=JSON.parse(e);ka(n),n.length>50?(n[0]=t,ka(n)):n.push(t),localStorage.setItem("ERROR",JSON.stringify(n))}else localStorage.setItem("ERROR",JSON.stringify([t]))},ka=function(t){t.sort((function(t,e){return t.createTime>e.createTime?1:-1}))},Ca=Object.freeze({__proto__:null,RecursiveList:xe,Scale:la,SizeAdaption:sa,UpdataForContainer:Me,Watermark:class{constructor(t={}){Ki(this,"options"),Ki(this,"container"),Ki(this,"watermarkContent"),Ki(this,"watermarkDom"),Ki(this,"style"),Ki(this,"watermarkTag"),Ki(this,"shadowRoot"),Ki(this,"mutationObserver"),Ki(this,"_isAgainRender",(t=>{if("attributes"===t.type){if(t.attributeName===Ji)return!0;if(this.watermarkTag===this._getNodeRandomId(t.target))return!0}return!(!t.removedNodes.length||this.watermarkTag!==this._getNodeRandomId(t.removedNodes[0]))})),Ki(this,"_getNodeRandomId",(t=>{var e,n;return null==(e=null==t?void 0:t.dataset)?void 0:e[(n=Ji,n.split("-").slice(1).reduce(((t,e,n)=>0===n?e:`${t}${e[0].toUpperCase()+e.slice(1)}`)))]})),Ki(this,"_destroyMutationObserver",(()=>{this.mutationObserver&&(this.mutationObserver.takeRecords(),this.mutationObserver.disconnect(),this.mutationObserver=null)})),Ki(this,"_getWatermarkDom",(t=>Zi(this,null,(function*(){this.watermarkDom||(this.watermarkDom=document.createElement("div")),"number"==typeof t&&t&&(this.style.height=`${t}px`);const e=yield function(t){const{text:e,gapX:n,gapY:r,offsetTop:i,offsetLeft:a,width:o,height:s,rotate:l,opacity:c,fontSize:u,fontStyle:h,fontVariant:d,fontWeight:f,fontFamily:p,fontColor:m,textAlign:g,textBaseline:v,image:y,blindText:b,blindFontSize:_,blindOpacity:w}=t;return new Promise(((t,D)=>{const S=document.createElement("canvas"),x=S.getContext("2d"),T=1*(Number(n)+Number(o)),k=1*(Number(r)+Number(s)),C=Number(a)||Number(n)/2,E=Number(i)||Number(r)/2;if(S.setAttribute("width",`${T}px`),S.setAttribute("height",`${k}px`),x){const n=1*o,r=1*s;if(x.translate(1*C,1*E),x.rotate(Math.PI/180*Number(l)),b&&(x.globalAlpha=w,x.font=`${_}px normal`,x.fillText(b,0,0)),x.globalAlpha=c,y){const e=new Image;return e.crossOrigin="anonymous",e.referrerPolicy="no-referrer",e.src=y,void(e.onload=()=>{x.drawImage(e,0,0,n,r),t({url:x.canvas.toDataURL(),width:T,height:k})})}const i=Array.isArray(e)?e:[e],a=i.map((t=>x.measureText(t).width)),h=Math.max(...a),d=1*Number(u);x.textAlign=g,x.textBaseline=v,x.fillStyle=m,x.font=A(`${d}px`),h>o&&(x.font=A(d/2+"px"));const f=d+5;let p=(r-(u*i.length+5*(i.length-1)))/2;p=p<0?0:p;for(let t=0;t<i.length;t++)x.fillText(i[t]||"",n/2,p+f*t);t({url:x.canvas.toDataURL(),width:T,height:k})}function A(t){return`${h} ${d} ${f} ${t} ${p}`}return D()}))}(this.options);if(null==e?void 0:e.url){const t=e.url;"repeat"===this.options.mode?this.style.backgroundImage=`url(${t})`:(this.style.backgroundImage=`url(${t}), url(${t})`,this.style.backgroundRepeat="repeat, repeat",this.style.backgroundPosition=`${e.width/2}px ${e.height/2}px, 0 0`),this.options.container||(this.style.position="fixed",this.style.height=void 0),this.watermarkDom.setAttribute("style",ta(this.style))}return this.watermarkDom.setAttribute(Ji,this.watermarkTag),this.watermarkDom})))),Ki(this,"_getWatermarkHeight",(()=>{if(!this.container)return 0;let t=0;const{scrollHeight:e=0,clientHeight:n=0}=this.options.container?this.container.parentNode:this.container;return e>n&&(t=Math.max(e,n)),t})),this.options=Object.assign({},Xi,t),this.style={position:"absolute",left:0,top:0,right:0,bottom:0,pointerEvents:"none",overflow:"hidden",backgroundColor:"transparent",backgroundRepeat:"repeat"},this.style.zIndex=this.options.zIndex,this.watermarkTag=ea("watermark"),this.mutationObserver=null,this._render()}update(t={}){this.options=$i($i({},this.options),t),this.style.zIndex=this.options.zIndex,this._render()}show(){this.watermarkDom&&(this.style.display="block",this.watermarkDom.setAttribute("style",ta(this.style)))}hide(){this.watermarkDom&&(this.style.display="none",this.watermarkDom.setAttribute("style",ta(this.style)))}destroy(){this.shadowRoot=void 0,this.watermarkContent&&(this.watermarkContent.remove(),this.watermarkContent=void 0),this.watermarkDom&&(this.watermarkDom.remove(),this.watermarkDom=void 0),this._destroyMutationObserver()}_render(){return Zi(this,null,(function*(){this._destroyMutationObserver(),this.container=((t,e,n={},r)=>{let i;if("string"==typeof t){if(i=document.getElementById(t),!i)throw new Error(`水印挂载节点未找到,请检查#${t}是否存在`)}else i=null!=t?t:document.body;i.setAttribute(Ji,e);const a=$i({position:"relative"},n);return r||delete a.position,i.setAttribute("style",ta(a)),i})(this.options.container,this.watermarkTag,this.options.containerStyle,this.options.pack),this.watermarkContent||(this.watermarkContent=(t=>{const e=document.createElement("div");return e.setAttribute("style",ta({pointerEvents:"none"})),e.setAttribute(Ji,t),e})(this.watermarkTag),this.container.append(this.watermarkContent));const t=this._getWatermarkHeight();if(this.watermarkDom=yield this._getWatermarkDom(t),this.watermarkContent){const t=this.watermarkContent.childNodes||[];for(let e=0;e<t.length;e++)this.watermarkContent.removeChild(t[e])}"function"==typeof this.watermarkContent.attachShadow?this.shadowRoot||(this.shadowRoot=this.watermarkContent.attachShadow({mode:"open"})):this.shadowRoot=this.watermarkContent,this.shadowRoot.append(this.watermarkDom),na&&this.options.monitor&&(this.mutationObserver=new na((t=>{t.forEach((t=>{if(this._isAgainRender(t))return this.destroy(),void this._render()}))})),this.mutationObserver.observe(this.container,Qi),this.shadowRoot&&this.mutationObserver.observe(this.shadowRoot,Qi))}))}},arraySwap:te,arraySwapDeep:ne,arraySwapForId:ee,breakUp:me,checkBaseData:Qt,checkVar:function(t,e){var n,r,i,a=!1,o=t.type,s=t.converse,l=t[o];if((null==s?void 0:s.use)&&(null===(n=null==s?void 0:s.data)||void 0===n?void 0:n.length))for(var c=0,u=s.data;c<u.length;c++){if((null==(v=u[c])?void 0:v.use)&&v.dependVars.includes(e)){a=!0;break}}if(a)return a;var h="",d="",f="";"api"==o&&(h=l.url,(null===(r=l.headers)||void 0===r?void 0:r.use)&&(d=l.headers.value),f=l.params),"datasource"==o&&(h=l.inputSql),"indicator"==o&&((null===(i=l.headers)||void 0===i?void 0:i.use)&&(d=l.headers.value),f=l.params);for(var p=/({{[\w]*}})|((@)[\w]*)/gm,m=0,g=[h,d,f];m<g.length;m++){var v,y=(v=g[m]).match(p);if((null==y?void 0:y.length)&&y.find((function(t){return t=="{{".concat(e,"}}")||t=="@".concat(e)}))){a=!0;break}}return a},comToggle:fe,decrypAES:function(t){var e=Xt.enc.Utf8.parse(Ce),n=Xt.enc.Utf8.parse(Ee);return Xt.AES.encrypt(t,e,{iv:n,mode:Xt.mode.CBC,padding:Xt.pad.Pkcs7}).toString()},decrypt:function(t){var e=new $t;return e.setPrivateKey("MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQClaeLu4thVXyLI\nM9NHpmxqP7YEcKfjFPMV5UcAPNN20GIUf2Lh8p4MrQh9s9X/1MZ5Fg1+XSpJ90u1\nT7VkjOamoemlp26SaTn41sEbheb+UBmBW3d1QitLJqbFWPCfKY3s8t3FpI5L+aBT\npIMYyE1MzvoBcplldYwrXZQJe8qSH5OQa59xfMt7su2u8c8s6BycQQPYKRYBO4T2\nDwr2PhN44zGElwcFSZcuBToKG59ricF53bz30TuPElrXj4nUgNrZqGsMUtk3sf/9\nmy/CderFVvGbSTmPJap8KmDXdXvMPcPE1aWjcwiHZ8+0gRQNWG6Co93SM+aqq6p0\nE1Oe7YgZAgMBAAECggEABN8LadGQYWM92Pt9u1xxUOezaooOx6c0SW7JGn6wE42r\ndcMSnGjSsrjdySXkpXYUqjg2CYSg3DDGL/667s0fdcTK5q/5l6I1rNhWM4NL/C1L\nsv2IlRFvyPTIcINgAq/smA/G7C0ea6pcSFpN6grsC9kEj8paLhy6FgTZeTYGDyuG\nwI3D7XWZNzWfyQlAsoWEYAmDx72rOuEaeK4W4SMf3BB2g1hJ6fZoKT3ehHozAGcJ\nB7R8k3tGALVYdOqQgXhj8t3vNu1OATG0Q6d4z28e4TwsVunxReTyRcofrgOVwpry\nEmb4C5RYaN/rWxRrL8aW+nB3wAD/PFDacVBz/8RvaQKBgQDX90jqlLtLRVAsqbiS\nSHmX67CqQzNNDWgysQLmF2YmmkGyth4QR+cNEenIEeSSt+vc0VMAbxYY5SVzVCRl\nSZHoKHNlLGmepd3aJw5ZcFnpU86J7aG8fhvgZGEmCR+1JOZU7pUbpTvka0WQC3AK\n2+O7nUYIU65xeOaJVZvUu6My+wKBgQDEE6DrFVMNgI3dDZM0buHMYDJ2mL9F1DZb\n2URxYAlmvjkpaQb9Vq1VXV0ApZ3ItXgIX6cVrJB+MILmrsoxAamFOl/9AYiKnpnb\nYMxxqFYPuME7fzEli041915j6CpMmOwrAq6SrLiZ//hNlobJf76dAY9qyX91BTC8\nBfEWVhnk+wKBgQDT5kb+G+bVSPIMkI6PwVrE7DWQKZV5YdE+A55TgtvwvmP95GEF\nGneixFO8wYmjR6C+LgihoV1uGc+wI/v+AbyOrLnkqDoNtrNB7BZRPUKLBHbfsHCE\nELxrZDJJ7qPUyZrR9LIKyQpF6db8KazKiswc9oiTfP/pSHXyhDP8/Ap55wKBgQC6\njDI9dzxdTEGsXo3/BL+vQpbAXvMb7JsLJ9sGQuiu56xayaHsxdqDrSAezXMg0gYx\ncU/2Pwf6Bw2DjCiyF3LBXpiUjjDqMZsQLThVqmK28oBlqs2HetIeZgtX4jrcRWHs\nSdDtm4bGfdIvf1cdvnwLxMA+SRcKrrV/LegB6EkaoQKBgEwE4rllfRxOSGaF47ew\nRxTLGphZmxhLDsx0fMOHflx/BnGnxruBLEhdv3mlp12YMmb2s6kwFJvngLq4fZll\nTmC7BW3Z9h8XsL9j2xtID+5gsxYHHOCcdbzGuQV5KWb51cBym7EP9qk/3NP8w3/+\nH0iKrgAII5Ym0yh41dGL5HCo"),e.decrypt(t)},encrypt:function(t){var e=new $t;return e.setPublicKey("MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApWni7uLYVV8iyDPTR6Zs\naj+2BHCn4xTzFeVHADzTdtBiFH9i4fKeDK0IfbPV/9TGeRYNfl0qSfdLtU+1ZIzm\npqHppadukmk5+NbBG4Xm/lAZgVt3dUIrSyamxVjwnymN7PLdxaSOS/mgU6SDGMhN\nTM76AXKZZXWMK12UCXvKkh+TkGufcXzLe7LtrvHPLOgcnEED2CkWATuE9g8K9j4T\neOMxhJcHBUmXLgU6Chufa4nBed2899E7jxJa14+J1IDa2ahrDFLZN7H//ZsvwnXq\nxVbxm0k5jyWqfCpg13V7zD3DxNWlo3MIh2fPtIEUDVhugqPd0jPmqquqdBNTnu2I\nGQIDAQAB"),e.encrypt(t)},errorHandler:xa,executeFilter:function(t){return t.hasOwnProperty("originalValue")||(t.originalValue=t.value),t.converter&&t.converterCode?t.value=Ae(t.converterCode,t.originalValue):t.value=t.originalValue,t},exportJson:function(t){var e=t.caseName,n=void 0===e?"case-name":e,r=t.caseImg,i=void 0===r?"":r,a=t.caseRemark,s=void 0===a?"":a,l=t.details,c=t.caseClientType,u=void 0===c?"":c,h=t.id,d={caseClientType:u,caseName:n,caseImg:i,caseRemark:s,caseId:void 0===h?"":h,createTime:o().format("YYYY-MM-DD , h:mm:ss"),caseData:aa(l)},f=new Blob([JSON.stringify(d)],{type:"json"});ra.saveAs(f,n+".json")},findItem:oe,findItemDeep:re,findItemIndexDeep:function(t,e){for(var n,r=0,i=0;i<t.length;i++){var a=t[i];if(r+=1,a.cid==e)break;if(null===(n=null==a?void 0:a.children)||void 0===n?void 0:n.length)for(var o=0;o<(null==a?void 0:a.children.length);o++){if(r+=1,(null==a?void 0:a.children[o]).cid==e)return r}}return r},findParentDeep:ae,genCopyName:function(t,e,n){var r,i;void 0===n&&(n=" copy");var a=new RegExp("".concat(n,"( \\d+)?$")).exec(t);a?(r=a[1]?parseInt(a[1]):0,i=t.slice(0,a.index)):(r=0,i=t);var o=new RegExp("^".concat(i).concat(n,"( [1-9][0-9]*)?$")),s=[];e.forEach((function(t){if(a=o.exec(t)){var e=a[1]?parseInt(a[1]):1;s.push(e)}})),s.sort((function(t,e){return t-e})),r++;for(var l=0,c=s.length;l<c;l++)if(s[l]===r)r++;else if(s[l]>r)break;return i+n+" "+r},genID:Te,generateCaseDataJson:aa,generateComponentList:ia,generateJson:function(t){var e=t.caseName,n=void 0===e?"":e,r=t.caseData;return t.plangInfoForPsd,{caseName:n,createTime:o().format("YYYY-MM-DD , h:mm:ss"),caseData:aa(r)}},generatePageData:function(t){var e={},n=e.theme,r=void 0===n?null:n,i=e.globalVars,a=void 0===i?null:i,o=e.shareVariableTree,s=void 0===o?null:o,l=e.plant,c=void 0===l?null:l,u=e.list,h=void 0===u?[]:u,d=e.undos,f=void 0===d?[]:d,p=e.undoRedoPointer,m=void 0===p?-1:p,g=e.globalEvents,v=void 0===g?[]:g;return t&&(r=t.theme,c=t.plant),{theme:r,globalVars:a,globalEvents:v,shareVariableTree:s,plant:c,undos:f,undoRedoPointer:m,list:ia(h)}},getAncestorsNodes:ie,getColorInfo:function(t){var e=Da(t);return{hex:va(e),rgba:ba(e),rgb:ya(e),rgbaObj:e}},getDataForEvaluator:v,getInteractive:ri,getInteractive2:function(e,n,r,i,a){var o;try{var s={},l=[],c=[],u=[],h=t.cloneDeep(e);return(null===(o=null===window||void 0===window?void 0:window.go)||void 0===o?void 0:o.dev)&&le(e,(function(t){var e,n,r;if(null===(n=null===(e=null==t?void 0:t.tmpData)||void 0===e?void 0:e.actions)||void 0===n?void 0:n.length)for(var i=0,a=null===(r=null==t?void 0:t.tmpData)||void 0===r?void 0:r.actions;i<a.length;i++){var o=a[i];if("toggle"==o.behave){var s=o.toggle;if(null==s?void 0:s.length)for(var l=0,c=s;l<c.length;l++){var u=c[l],h=u.value;(null==h?void 0:h.length)&&(u.value=u.value.map((function(t){return{cid:t.cid,viewComName:t.viewComName,name:t.name,visible:t.visible}})))}}}})),le(h,(function(t){var e,n;if(null===(n=null===(e=null==t?void 0:t.tmpData)||void 0===e?void 0:e.actions)||void 0===n?void 0:n.length){var r=t.tmpData.actions.map((function(t){return t.eventType}));ke({types:r,element:t,actions:l,events:c,eventsComs:u})}})),n&&n.length&&(l=d(d([],l,!0),n,!0)),r&&r.length&&(l=d(d([],l,!0),r,!0)),i&&i.length&&(l=d(d([],l,!0),i,!0)),le(h,(function(t){var e,n=null===(e=null==t?void 0:t.tmpData)||void 0===e?void 0:e.source;ii(n,l,t,s)})),l.filter((function(t){if(t.fork){var e=l.find((function(e){return e.mapField==t.forkValue||Array.isArray(t.forkValue)&&t.forkValue.includes(e.mapField)}));(a?a==t.forkValue||Array.isArray(t.forkValue)&&t.forkValue.includes(a):!!e)&&(Array.isArray(t.forkValue)?t.originalValue=t.forkValue.map((function(t){var e=l.find((function(e){return e.mapField==t}));if(e)return e.value})):t.originalValue=e.value)}})),{shareVariableTree:s,globalVars:l.filter((function(t){return a?(a==t.forkValue||Array.isArray(t.forkValue)&&t.forkValue.includes(a))&&(t.hasOwnProperty("originalValue")||(t.originalValue=t.value),t.converter&&t.converterCode?t.value=Ae(t.converterCode,t.originalValue):t.value=t.originalValue):(t.hasOwnProperty("originalValue")||(t.originalValue=t.value),t.converter&&t.converterCode?t.value=Ae(t.converterCode,t.originalValue):t.value=t.originalValue),t})),globalEvents:c.filter((function(t){return t})),eventsComs:u}}catch(t){return console.error("error",t),{}}},getLength:function(t){var e=0,n=function(t){for(var r=function(r){if(t[r].isShow&&t[r].children)n(t[r].children);else if(t[r].isShow&&t[r].dynamicChildren){if(t[r].dynamicChildren instanceof Map){for(var i=Array.from(t[r].dynamicChildren),a=0;a<i.length;a++)if(i[a]instanceof Array){var o=i[a][1];n(o)}}else if(t[r].isShow&&t[r].dynamicChildren instanceof Array){var s=t[r].dynamicChildren.find((function(e){return e[0]=t[r].activeDynamic}));s&&s.length&&n(s[1])}}else t[r].isShow&&t[r].stateChildren?n(t[r].stateChildren):t[r].isShow&&e++},i=0;i<t.length;i++)r(i)};return n(t),e||!1},getPosition:De,getSessionData:function(t){var e=sessionStorage.getItem(t);return e?JSON.parse(e):null},getShareTree:function(t,e){try{var n={},r=[],i=[];return le(t,(function(t){var a,o,s,l=null===(a=null==t?void 0:t.tmpData)||void 0===a?void 0:a.source;if(ii(l,e,t,n),null===(s=null===(o=null==t?void 0:t.tmpData)||void 0===o?void 0:o.actions)||void 0===s?void 0:s.length){var c=t.tmpData.actions.map((function(t){return t.eventType}));ke({types:c,element:t,actions:r,events:i})}})),n}catch(t){return console.error(t),{}}},getStandardData:function(t,e){return void 0===e&&(e=!1),e?si(t)?t:JSON.stringify(t):si(t)?JSON.parse(t):t},getUrlParams:function(t,e){try{var n=e||window.location.href;if(-1!=n.indexOf("?")){var r={};return n.slice(n.indexOf("?")+1).split("&").forEach((function(t){var e=t.split("=");r[e[0]]=e[1]})),t?r[t]?r[t]:null:r}return console.log("没有参数"),null}catch(t){console.error(t)}},globalSourceTemp:Oe,hasVar:function(t,e,n){var r,i,a,o,s=e[null==e?void 0:e.type],l=null==e?void 0:e.converse,c=!1;if(l&&l.use&&l.data.length)for(var u=0,h=l.data;u<h.length;u++){var d=h[u];if((null==d?void 0:d.dependVars)&&(null===(r=null==d?void 0:d.dependVars)||void 0===r?void 0:r.length)&&(null==d?void 0:d.dependVars.includes(t)))return c=!0}return(null==s?void 0:s.inputSql)&&(c=ai(null==s?void 0:s.inputSql,n)),(null==s?void 0:s.url)&&(c=ai(s.url,n)),(null==s?void 0:s.headers)&&(null===(i=null==s?void 0:s.headers)||void 0===i?void 0:i.use)&&(null===(a=null==s?void 0:s.headers)||void 0===a?void 0:a.value)&&(c=ai(null===(o=null==s?void 0:s.headers)||void 0===o?void 0:o.value,n)),(null==s?void 0:s.params)&&(c=ai(null==s?void 0:s.params,n)),c},hexToRgba:function(t){var e=Da(t);return ba(e)},isJSON:si,isPeer:se,loadFont:bi,loadFontResource:gi,loadScript:vi,loadTag:_i,parseColorString:Da,parseHexColor:_a,parseRgbaColor:wa,recursion:le,removeTag:wi,resetID:ue,resetPositionForGroup:function(t,e){var n=e.map((function(t){return t.cid}));e.forEach((function(e){e.pid&&ve(e,t)}));var r=we(n,e);return pe(r,e),{left:r.left,top:r.top,width:r.width,height:r.height}},resizeListPosition:function(t,e){var n=function(t,r){for(var i,a=0;a<t.length;a++){var o=t[a];if(o.pid!=r){var s=be(e,o.cid),l=be(e,o.pid);o.baseData.left=s.left-l.left,o.baseData.top=s.top-l.top}(null===(i=null==o?void 0:o.children)||void 0===i?void 0:i.length)&&n(o.children,o.cid)}};n(t,e)},resizePosition:be,resziePositionForGroup:function(e,n,r,i){var a=e.baseData.left,o=e.baseData.top,s=n.left,l=n.top,c=t.cloneDeep(e.children),u=r||"";if(s-a<0)for(var h=0;h<c.length;h++){(d=c[h]).cid!==u&&(d.baseData.left=d.baseData.left+(a-s))}if(l-o<0)for(h=0;h<c.length;h++){var d;(d=c[h]).cid!==u&&(d.baseData.top=d.baseData.top+(o-l))}e.children=c},rgbaToHex:function(t){var e=Da(t);return va(e)},safeEval:Ae,screenshot:function(t){return u(void 0,void 0,void 0,(function(){var e,n,r,i,a,o,s,l;return h(this,(function(c){switch(c.label){case 0:return c.trys.push([0,11,,12]),e=t.dom,n=t.servePath,r=t.targetPath,i=t.quality,a=t.type,o=void 0,ua(n)&&ua(r)?[4,pa(n,r,e,i||.5)]:[3,5];case 1:return(s=c.sent())&&200==s.status&&s.data?(o=s.data,[3,4]):[3,2];case 2:return console.warn("截取错误,请检查网络或服务地址配置是否正确,已转换为dom-to-img."),[4,ma(e,i||.5)];case 3:o=c.sent(),c.label=4;case 4:return[3,7];case 5:return console.warn("地址错误,请检查传入的地址是否争取,已转换为dom-to-img."),[4,ma(e,i||.5)];case 6:o=c.sent(),c.label=7;case 7:return o?[4,fa(o,a)]:[3,9];case 8:return[2,c.sent()];case 9:return[2,null];case 10:return[3,12];case 11:return l=c.sent(),console.error("截图发生错误:"+l),[2,null];case 12:return[2]}}))}))},selectdArea:we,setActions:ke,setAttr:function(t,e,n){for(var r,i=0;i<t.length;i++)(r=t[i]).cid!==e&&r.id!==e||(r[n]=!r[n])},setIndex:ce,setPorp:function(t,e,n){var r=e.find((function(e){return e.cid===t}));"folder"===r.type?r.children.length&&r.children.forEach((function(t){t[n]=!t[n]})):r[n]=!r[n]},setPositionForGroup:pe,setPositionForWorld:ve,setSessionData:function(t,e){var n=JSON.stringify(e);sessionStorage.setItem(t,n)},toHex:ga,toHexString:va,toRgbString:ya,toRgbaString:ba,transformPosition:ye,upDataGroup:Se,upDataGroupChildren:function(e,n,r){var i=e.children,a=t.cloneDeep(n),o=t.cloneDeep(De(i)),s=a.left,l=a.top;a.width,a.height;var c=o.left,u=o.top,h=o.width,d=o.height,f={left:s+c,top:l+u,width:h,height:d,angle:n.angle?n.angle:0};return i.forEach((function(e){var n=t.cloneDeep(e.baseData);e.baseData.left<0?n.left=0:n.left=n.left-c,e.baseData.top<0?n.top=0:n.top=n.top-u,e.baseData=n})),e.children=i,f},updataAttribute:he,updataAttributeForOption:de,updataSizeDeep:Jt,watchError:function(t,e){t.config.errorHandler=function(t){console.error("监测到E1002错误"),console.error(t.filename),xa("E1002",t.name+":"+t.message,e)},window.addEventListener("error",(function(t){t.message?(console.error("监测到E1003错误"),xa("E1003",t.message,t.filename,e)):(console.error("监测到E1004错误"),xa("E1004",t.target.currentSrc,t.filename,e))}),!0)}});function Ea(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Aa(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
|
|
33
33
|
/*!
|
|
34
|
-
* GSAP 3.12.
|
|
34
|
+
* GSAP 3.12.4
|
|
35
35
|
* https://gsap.com
|
|
36
36
|
*
|
|
37
|
-
* @license Copyright 2008-
|
|
37
|
+
* @license Copyright 2008-2023, GreenSock. All rights reserved.
|
|
38
38
|
* Subject to the terms at https://gsap.com/standard-license or for
|
|
39
39
|
* Club GSAP members, the agreement issued with that membership.
|
|
40
40
|
* @author: Jack Doyle, jack@greensock.com
|
|
41
|
-
*/var Aa,Oa,Ma,Na,Pa,Va,Ra,Ba,Ia,Fa,ja,La={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Ya={duration:.5,overwrite:!1,delay:0},za=1e8,Ha=1e-8,Ua=2*Math.PI,qa=Ua/4,Ga=0,Wa=Math.sqrt,$a=Math.cos,Ka=Math.sin,Za=function(t){return"string"==typeof t},Xa=function(t){return"function"==typeof t},Ja=function(t){return"number"==typeof t},Qa=function(t){return void 0===t},to=function(t){return"object"==typeof t},eo=function(t){return!1!==t},no=function(){return"undefined"!=typeof window},ro=function(t){return Xa(t)||Za(t)},io="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},ao=Array.isArray,oo=/(?:-?\.?\d|\.)+/gi,so=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,lo=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,co=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,uo=/[+-]=-?[.\d]+/,ho=/[^,'"\[\]\s]+/gi,fo=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,po={},mo={},go=function(t){return(mo=qo(t,po))&&Gl},vo=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},yo=function(t,e){return!e&&console.warn(t)},bo=function(t,e){return t&&(po[t]=e)&&mo&&(mo[t]=e)||po},_o=function(){return 0},wo={suppressEvents:!0,isStart:!0,kill:!1},Do={suppressEvents:!0,kill:!1},So={suppressEvents:!0},xo={},To=[],ko={},Co={},Eo={},Ao=30,Oo=[],Mo="",No=function(t){var e,n,r=t[0];if(to(r)||Xa(r)||(t=[t]),!(e=(r._gsap||{}).harness)){for(n=Oo.length;n--&&!Oo[n].targetTest(r););e=Oo[n]}for(n=t.length;n--;)t[n]&&(t[n]._gsap||(t[n]._gsap=new ol(t[n],e)))||t.splice(n,1);return t},Po=function(t){return t._gsap||No(Ss(t))[0]._gsap},Vo=function(t,e,n){return(n=t[e])&&Xa(n)?t[e]():Qa(n)&&t.getAttribute&&t.getAttribute(e)||n},Ro=function(t,e){return(t=t.split(",")).forEach(e)||t},Bo=function(t){return Math.round(1e5*t)/1e5||0},Io=function(t){return Math.round(1e7*t)/1e7||0},Fo=function(t,e){var n=e.charAt(0),r=parseFloat(e.substr(2));return t=parseFloat(t),"+"===n?t+r:"-"===n?t-r:"*"===n?t*r:t/r},jo=function(t,e){for(var n=e.length,r=0;t.indexOf(e[r])<0&&++r<n;);return r<n},Lo=function(){var t,e,n=To.length,r=To.slice(0);for(ko={},To.length=0,t=0;t<n;t++)(e=r[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)},Yo=function(t,e,n,r){To.length&&!Oa&&Lo(),t.render(e,n,r||Oa&&e<0&&(t._initted||t._startAt)),To.length&&!Oa&&Lo()},zo=function(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(ho).length<2?e:Za(t)?t.trim():t},Ho=function(t){return t},Uo=function(t,e){for(var n in e)n in t||(t[n]=e[n]);return t},qo=function(t,e){for(var n in e)t[n]=e[n];return t},Go=function t(e,n){for(var r in n)"__proto__"!==r&&"constructor"!==r&&"prototype"!==r&&(e[r]=to(n[r])?t(e[r]||(e[r]={}),n[r]):n[r]);return e},Wo=function(t,e){var n,r={};for(n in t)n in e||(r[n]=t[n]);return r},$o=function(t){var e,n=t.parent||Na,r=t.keyframes?(e=ao(t.keyframes),function(t,n){for(var r in n)r in t||"duration"===r&&e||"ease"===r||(t[r]=n[r])}):Uo;if(eo(t.inherit))for(;n;)r(t,n.vars.defaults),n=n.parent||n._dp;return t},Ko=function(t,e,n,r,i){void 0===n&&(n="_first"),void 0===r&&(r="_last");var a,o=t[r];if(i)for(a=e[i];o&&o[i]>a;)o=o._prev;return o?(e._next=o._next,o._next=e):(e._next=t[n],t[n]=e),e._next?e._next._prev=e:t[r]=e,e._prev=o,e.parent=e._dp=t,e},Zo=function(t,e,n,r){void 0===n&&(n="_first"),void 0===r&&(r="_last");var i=e._prev,a=e._next;i?i._next=a:t[n]===e&&(t[n]=a),a?a._prev=i:t[r]===e&&(t[r]=i),e._next=e._prev=e.parent=null},Xo=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},Jo=function(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var n=t;n;)n._dirty=1,n=n.parent;return t},Qo=function(t,e,n,r){return t._startAt&&(Oa?t._startAt.revert(Do):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,r))},ts=function t(e){return!e||e._ts&&t(e.parent)},es=function(t){return t._repeat?ns(t._tTime,t=t.duration()+t._rDelay)*t:0},ns=function(t,e){var n=Math.floor(t/=e);return t&&n===t?n-1:n},rs=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},is=function(t){return t._end=Io(t._start+(t._tDur/Math.abs(t._ts||t._rts||Ha)||0))},as=function(t,e){var n=t._dp;return n&&n.smoothChildTiming&&t._ts&&(t._start=Io(n._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),is(t),n._dirty||Jo(n,t)),t},os=function(t,e){var n;if((e._time||!e._dur&&e._initted||e._start<t._time&&(e._dur||!e.add))&&(n=rs(t.rawTime(),e),(!e._dur||ys(0,e.totalDuration(),n)-e._tTime>Ha)&&e.render(n,!0)),Jo(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(n=t;n._dp;)n.rawTime()>=0&&n.totalTime(n._tTime),n=n._dp;t._zTime=-1e-8}},ss=function(t,e,n,r){return e.parent&&Xo(e),e._start=Io((Ja(n)?n:n||t!==Na?ms(t,n,e):t._time)+e._delay),e._end=Io(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),Ko(t,e,"_first","_last",t._sort?"_start":0),hs(e)||(t._recent=e),r||os(t,e),t._ts<0&&as(t,t._tTime),t},ls=function(t,e){return(po.ScrollTrigger||vo("scrollTrigger",e))&&po.ScrollTrigger.create(e,t)},cs=function(t,e,n,r,i){return pl(t,e,i),t._initted?!n&&t._pt&&!Oa&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&Ia!==Ws.frame?(To.push(t),t._lazy=[i,r],1):void 0:1},us=function t(e){var n=e.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||t(n))},hs=function(t){var e=t.data;return"isFromStart"===e||"isStart"===e},ds=function(t,e,n,r){var i=t._repeat,a=Io(e)||0,o=t._tTime/t._tDur;return o&&!r&&(t._time*=a/t._dur),t._dur=a,t._tDur=i?i<0?1e10:Io(a*(i+1)+t._rDelay*i):a,o>0&&!r&&as(t,t._tTime=t._tDur*o),t.parent&&is(t),n||Jo(t.parent,t),t},fs=function(t){return t instanceof ll?Jo(t):ds(t,t._dur)},ps={_start:0,endTime:_o,totalDuration:_o},ms=function t(e,n,r){var i,a,o,s=e.labels,l=e._recent||ps,c=e.duration()>=za?l.endTime(!1):e._dur;return Za(n)&&(isNaN(n)||n in s)?(a=n.charAt(0),o="%"===n.substr(-1),i=n.indexOf("="),"<"===a||">"===a?(i>=0&&(n=n.replace(/=/,"")),("<"===a?l._start:l.endTime(l._repeat>=0))+(parseFloat(n.substr(1))||0)*(o?(i<0?l:r).totalDuration()/100:1)):i<0?(n in s||(s[n]=c),s[n]):(a=parseFloat(n.charAt(i-1)+n.substr(i+1)),o&&r&&(a=a/100*(ao(r)?r[0]:r).totalDuration()),i>1?t(e,n.substr(0,i-1),r)+a:c+a)):null==n?c:+n},gs=function(t,e,n){var r,i,a=Ja(e[1]),o=(a?2:1)+(t<2?0:1),s=e[o];if(a&&(s.duration=e[1]),s.parent=n,t){for(r=s,i=n;i&&!("immediateRender"in r);)r=i.vars.defaults||{},i=eo(i.vars.inherit)&&i.parent;s.immediateRender=eo(r.immediateRender),t<2?s.runBackwards=1:s.startAt=e[o-1]}return new bl(e[0],s,e[o+1])},vs=function(t,e){return t||0===t?e(t):e},ys=function(t,e,n){return n<t?t:n>e?e:n},bs=function(t,e){return Za(t)&&(e=fo.exec(t))?e[1]:""},_s=[].slice,ws=function(t,e){return t&&to(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&to(t[0]))&&!t.nodeType&&t!==Pa},Ds=function(t,e,n){return void 0===n&&(n=[]),t.forEach((function(t){var r;return Za(t)&&!e||ws(t,1)?(r=n).push.apply(r,Ss(t)):n.push(t)}))||n},Ss=function(t,e,n){return Ma&&!e&&Ma.selector?Ma.selector(t):!Za(t)||n||!Va&&$s()?ao(t)?Ds(t,n):ws(t)?_s.call(t,0):t?[t]:[]:_s.call((e||Ra).querySelectorAll(t),0)},xs=function(t){return t=Ss(t)[0]||yo("Invalid scope")||{},function(e){var n=t.current||t.nativeElement||t;return Ss(e,n.querySelectorAll?n:n===t?yo("Invalid scope")||Ra.createElement("div"):t)}},Ts=function(t){return t.sort((function(){return.5-Math.random()}))},ks=function(t){if(Xa(t))return t;var e=to(t)?t:{each:t},n=el(e.ease),r=e.from||0,i=parseFloat(e.base)||0,a={},o=r>0&&r<1,s=isNaN(r)||o,l=e.axis,c=r,u=r;return Za(r)?c=u={center:.5,edges:.5,end:1}[r]||0:!o&&s&&(c=r[0],u=r[1]),function(t,o,h){var d,f,p,m,g,v,y,b,_,w=(h||e).length,D=a[w];if(!D){if(!(_="auto"===e.grid?0:(e.grid||[1,za])[1])){for(y=-1e8;y<(y=h[_++].getBoundingClientRect().left)&&_<w;);_<w&&_--}for(D=a[w]=[],d=s?Math.min(_,w)*c-.5:r%_,f=_===za?0:s?w*u/_-.5:r/_|0,y=0,b=za,v=0;v<w;v++)p=v%_-d,m=f-(v/_|0),D[v]=g=l?Math.abs("y"===l?m:p):Wa(p*p+m*m),g>y&&(y=g),g<b&&(b=g);"random"===r&&Ts(D),D.max=y-b,D.min=b,D.v=w=(parseFloat(e.amount)||parseFloat(e.each)*(_>w?w-1:l?"y"===l?w/_:_:Math.max(_,w/_))||0)*("edges"===r?-1:1),D.b=w<0?i-w:i,D.u=bs(e.amount||e.each)||0,n=n&&w<0?Qs(n):n}return w=(D[t]-D.min)/D.max||0,Io(D.b+(n?n(w):w)*D.v)+D.u}},Cs=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(n){var r=Io(Math.round(parseFloat(n)/t)*t*e);return(r-r%1)/e+(Ja(n)?0:bs(n))}},Es=function(t,e){var n,r,i=ao(t);return!i&&to(t)&&(n=i=t.radius||za,t.values?(t=Ss(t.values),(r=!Ja(t[0]))&&(n*=n)):t=Cs(t.increment)),vs(e,i?Xa(t)?function(e){return r=t(e),Math.abs(r-e)<=n?r:e}:function(e){for(var i,a,o=parseFloat(r?e.x:e),s=parseFloat(r?e.y:0),l=za,c=0,u=t.length;u--;)(i=r?(i=t[u].x-o)*i+(a=t[u].y-s)*a:Math.abs(t[u]-o))<l&&(l=i,c=u);return c=!n||l<=n?t[c]:e,r||c===e||Ja(e)?c:c+bs(e)}:Cs(t))},As=function(t,e,n,r){return vs(ao(t)?!e:!0===n?!!(n=0):!r,(function(){return ao(t)?t[~~(Math.random()*t.length)]:(n=n||1e-5)&&(r=n<1?Math.pow(10,(n+"").length-2):1)&&Math.floor(Math.round((t-n/2+Math.random()*(e-t+.99*n))/n)*n*r)/r}))},Os=function(t,e,n){return vs(n,(function(n){return t[~~e(n)]}))},Ms=function(t){for(var e,n,r,i,a=0,o="";~(e=t.indexOf("random(",a));)r=t.indexOf(")",e),i="["===t.charAt(e+7),n=t.substr(e+7,r-e-7).match(i?ho:oo),o+=t.substr(a,e-a)+As(i?n:+n[0],i?0:+n[1],+n[2]||1e-5),a=r+1;return o+t.substr(a,t.length-a)},Ns=function(t,e,n,r,i){var a=e-t,o=r-n;return vs(i,(function(e){return n+((e-t)/a*o||0)}))},Ps=function(t,e,n){var r,i,a,o=t.labels,s=za;for(r in o)(i=o[r]-e)<0==!!n&&i&&s>(i=Math.abs(i))&&(a=r,s=i);return a},Vs=function(t,e,n){var r,i,a,o=t.vars,s=o[e],l=Ma,c=t._ctx;if(s)return r=o[e+"Params"],i=o.callbackScope||t,n&&To.length&&Lo(),c&&(Ma=c),a=r?s.apply(i,r):s.call(i),Ma=l,a},Rs=function(t){return Xo(t),t.scrollTrigger&&t.scrollTrigger.kill(!!Oa),t.progress()<1&&Vs(t,"onInterrupt"),t},Bs=[],Is=function(t){if(t)if(t=!t.name&&t.default||t,no()||t.headless){var e=t.name,n=Xa(t),r=e&&!n&&t.init?function(){this._props=[]}:t,i={init:_o,render:El,add:dl,kill:Ol,modifier:Al,rawVars:0},a={targetTest:0,get:0,getSetter:xl,aliases:{},register:0};if($s(),t!==r){if(Co[e])return;Uo(r,Uo(Wo(t,i),a)),qo(r.prototype,qo(i,Wo(t,a))),Co[r.prop=e]=r,t.targetTest&&(Oo.push(r),xo[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}bo(e,r),t.register&&t.register(Gl,r,Pl)}else Bs.push(t)},Fs=255,js={aqua:[0,Fs,Fs],lime:[0,Fs,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Fs],navy:[0,0,128],white:[Fs,Fs,Fs],olive:[128,128,0],yellow:[Fs,Fs,0],orange:[Fs,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Fs,0,0],pink:[Fs,192,203],cyan:[0,Fs,Fs],transparent:[Fs,Fs,Fs,0]},Ls=function(t,e,n){return(6*(t+=t<0?1:t>1?-1:0)<1?e+(n-e)*t*6:t<.5?n:3*t<2?e+(n-e)*(2/3-t)*6:e)*Fs+.5|0},Ys=function(t,e,n){var r,i,a,o,s,l,c,u,h,d,f=t?Ja(t)?[t>>16,t>>8&Fs,t&Fs]:0:js.black;if(!f){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),js[t])f=js[t];else if("#"===t.charAt(0)){if(t.length<6&&(r=t.charAt(1),i=t.charAt(2),a=t.charAt(3),t="#"+r+r+i+i+a+a+(5===t.length?t.charAt(4)+t.charAt(4):"")),9===t.length)return[(f=parseInt(t.substr(1,6),16))>>16,f>>8&Fs,f&Fs,parseInt(t.substr(7),16)/255];f=[(t=parseInt(t.substr(1),16))>>16,t>>8&Fs,t&Fs]}else if("hsl"===t.substr(0,3))if(f=d=t.match(oo),e){if(~t.indexOf("="))return f=t.match(so),n&&f.length<4&&(f[3]=1),f}else o=+f[0]%360/360,s=+f[1]/100,r=2*(l=+f[2]/100)-(i=l<=.5?l*(s+1):l+s-l*s),f.length>3&&(f[3]*=1),f[0]=Ls(o+1/3,r,i),f[1]=Ls(o,r,i),f[2]=Ls(o-1/3,r,i);else f=t.match(oo)||js.transparent;f=f.map(Number)}return e&&!d&&(r=f[0]/Fs,i=f[1]/Fs,a=f[2]/Fs,l=((c=Math.max(r,i,a))+(u=Math.min(r,i,a)))/2,c===u?o=s=0:(h=c-u,s=l>.5?h/(2-c-u):h/(c+u),o=c===r?(i-a)/h+(i<a?6:0):c===i?(a-r)/h+2:(r-i)/h+4,o*=60),f[0]=~~(o+.5),f[1]=~~(100*s+.5),f[2]=~~(100*l+.5)),n&&f.length<4&&(f[3]=1),f},zs=function(t){var e=[],n=[],r=-1;return t.split(Us).forEach((function(t){var i=t.match(lo)||[];e.push.apply(e,i),n.push(r+=i.length+1)})),e.c=n,e},Hs=function(t,e,n){var r,i,a,o,s="",l=(t+s).match(Us),c=e?"hsla(":"rgba(",u=0;if(!l)return t;if(l=l.map((function(t){return(t=Ys(t,e,1))&&c+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"})),n&&(a=zs(t),(r=n.c).join(s)!==a.c.join(s)))for(o=(i=t.replace(Us,"1").split(lo)).length-1;u<o;u++)s+=i[u]+(~r.indexOf(u)?l.shift()||c+"0,0,0,0)":(a.length?a:l.length?l:n).shift());if(!i)for(o=(i=t.split(Us)).length-1;u<o;u++)s+=i[u]+l[u];return s+i[o]},Us=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(t in js)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),qs=/hsl[a]?\(/,Gs=function(t){var e,n=t.join(" ");if(Us.lastIndex=0,Us.test(n))return e=qs.test(n),t[1]=Hs(t[1],e),t[0]=Hs(t[0],e,zs(t[1])),!0},Ws=function(){var t,e,n,r,i,a,o=Date.now,s=500,l=33,c=o(),u=c,h=1e3/240,d=h,f=[],p=function n(p){var m,g,v,y,b=o()-u,_=!0===p;if((b>s||b<0)&&(c+=b-l),((m=(v=(u+=b)-c)-d)>0||_)&&(y=++r.frame,i=v-1e3*r.time,r.time=v/=1e3,d+=m+(m>=h?4:h-m),g=1),_||(t=e(n)),g)for(a=0;a<f.length;a++)f[a](v,i,y,p)};return r={time:0,frame:0,tick:function(){p(!0)},deltaRatio:function(t){return i/(1e3/(t||60))},wake:function(){Ba&&(!Va&&no()&&(Pa=Va=window,Ra=Pa.document||{},po.gsap=Gl,(Pa.gsapVersions||(Pa.gsapVersions=[])).push(Gl.version),go(mo||Pa.GreenSockGlobals||!Pa.gsap&&Pa||{}),Bs.forEach(Is)),n="undefined"!=typeof requestAnimationFrame&&requestAnimationFrame,t&&r.sleep(),e=n||function(t){return setTimeout(t,d-1e3*r.time+1|0)},ja=1,p(2))},sleep:function(){(n?cancelAnimationFrame:clearTimeout)(t),ja=0,e=_o},lagSmoothing:function(t,e){s=t||1/0,l=Math.min(e||33,s)},fps:function(t){h=1e3/(t||240),d=1e3*r.time+h},add:function(t,e,n){var i=e?function(e,n,a,o){t(e,n,a,o),r.remove(i)}:t;return r.remove(t),f[n?"unshift":"push"](i),$s(),i},remove:function(t,e){~(e=f.indexOf(t))&&f.splice(e,1)&&a>=e&&a--},_listeners:f},r}(),$s=function(){return!ja&&Ws.wake()},Ks={},Zs=/^[\d.\-M][\d.\-,\s]/,Xs=/["']/g,Js=function(t){for(var e,n,r,i={},a=t.substr(1,t.length-3).split(":"),o=a[0],s=1,l=a.length;s<l;s++)n=a[s],e=s!==l-1?n.lastIndexOf(","):n.length,r=n.substr(0,e),i[o]=isNaN(r)?r.replace(Xs,"").trim():+r,o=n.substr(e+1).trim();return i},Qs=function(t){return function(e){return 1-t(1-e)}},tl=function t(e,n){for(var r,i=e._first;i;)i instanceof ll?t(i,n):!i.vars.yoyoEase||i._yoyo&&i._repeat||i._yoyo===n||(i.timeline?t(i.timeline,n):(r=i._ease,i._ease=i._yEase,i._yEase=r,i._yoyo=n)),i=i._next},el=function(t,e){return t&&(Xa(t)?t:Ks[t]||function(t){var e=(t+"").split("("),n=Ks[e[0]];return n&&e.length>1&&n.config?n.config.apply(null,~t.indexOf("{")?[Js(e[1])]:function(t){var e=t.indexOf("(")+1,n=t.indexOf(")"),r=t.indexOf("(",e);return t.substring(e,~r&&r<n?t.indexOf(")",n+1):n)}(t).split(",").map(zo)):Ks._CE&&Zs.test(t)?Ks._CE("",t):n}(t))||e},nl=function(t,e,n,r){void 0===n&&(n=function(t){return 1-e(1-t)}),void 0===r&&(r=function(t){return t<.5?e(2*t)/2:1-e(2*(1-t))/2});var i,a={easeIn:e,easeOut:n,easeInOut:r};return Ro(t,(function(t){for(var e in Ks[t]=po[t]=a,Ks[i=t.toLowerCase()]=n,a)Ks[i+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=Ks[t+"."+e]=a[e]})),a},rl=function(t){return function(e){return e<.5?(1-t(1-2*e))/2:.5+t(2*(e-.5))/2}},il=function t(e,n,r){var i=n>=1?n:1,a=(r||(e?.3:.45))/(n<1?n:1),o=a/Ua*(Math.asin(1/i)||0),s=function(t){return 1===t?1:i*Math.pow(2,-10*t)*Ka((t-o)*a)+1},l="out"===e?s:"in"===e?function(t){return 1-s(1-t)}:rl(s);return a=Ua/a,l.config=function(n,r){return t(e,n,r)},l},al=function t(e,n){void 0===n&&(n=1.70158);var r=function(t){return t?--t*t*((n+1)*t+n)+1:0},i="out"===e?r:"in"===e?function(t){return 1-r(1-t)}:rl(r);return i.config=function(n){return t(e,n)},i};Ro("Linear,Quad,Cubic,Quart,Quint,Strong",(function(t,e){var n=e<5?e+1:e;nl(t+",Power"+(n-1),e?function(t){return Math.pow(t,n)}:function(t){return t},(function(t){return 1-Math.pow(1-t,n)}),(function(t){return t<.5?Math.pow(2*t,n)/2:1-Math.pow(2*(1-t),n)/2}))})),Ks.Linear.easeNone=Ks.none=Ks.Linear.easeIn,nl("Elastic",il("in"),il("out"),il()),function(t,e){var n=1/e,r=2*n,i=2.5*n,a=function(a){return a<n?t*a*a:a<r?t*Math.pow(a-1.5/e,2)+.75:a<i?t*(a-=2.25/e)*a+.9375:t*Math.pow(a-2.625/e,2)+.984375};nl("Bounce",(function(t){return 1-a(1-t)}),a)}(7.5625,2.75),nl("Expo",(function(t){return t?Math.pow(2,10*(t-1)):0})),nl("Circ",(function(t){return-(Wa(1-t*t)-1)})),nl("Sine",(function(t){return 1===t?1:1-$a(t*qa)})),nl("Back",al("in"),al("out"),al()),Ks.SteppedEase=Ks.steps=po.SteppedEase={config:function(t,e){void 0===t&&(t=1);var n=1/t,r=t+(e?0:1),i=e?1:0;return function(t){return((r*ys(0,.99999999,t)|0)+i)*n}}},Ya.ease=Ks["quad.out"],Ro("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",(function(t){return Mo+=t+","+t+"Params,"}));var ol=function(t,e){this.id=Ga++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:Vo,this.set=e?e.getSetter:xl},sl=function(){function t(t){this.vars=t,this._delay=+t.delay||0,(this._repeat=t.repeat===1/0?-2:t.repeat||0)&&(this._rDelay=t.repeatDelay||0,this._yoyo=!!t.yoyo||!!t.yoyoEase),this._ts=1,ds(this,+t.duration,1,1),this.data=t.data,Ma&&(this._ctx=Ma,Ma.data.push(this)),ja||Ws.wake()}var e=t.prototype;return e.delay=function(t){return t||0===t?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+t-this._delay),this._delay=t,this):this._delay},e.duration=function(t){return arguments.length?this.totalDuration(this._repeat>0?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},e.totalDuration=function(t){return arguments.length?(this._dirty=0,ds(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if($s(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(as(this,t),!n._dp||n.parent||os(n,this);n&&n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&t<this._tDur||this._ts<0&&t>0||!this._tDur&&!t)&&ss(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===Ha||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),Yo(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+es(this))%(this._dur+this._rDelay)||(t?this._dur:0),e):this._time},e.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>0?1:0},e.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?t:1-t)+es(this),e):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(t,e){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*n,e):this._repeat?ns(this._tTime,n)+1:1},e.timeScale=function(t,e){if(!arguments.length)return-1e-8===this._rts?0:this._rts;if(this._rts===t)return this;var n=this.parent&&this._ts?rs(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||-1e-8===t?0:this._rts,this.totalTime(ys(-Math.abs(this._delay),this._tDur,n),!1!==e),is(this),function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t}(this)},e.paused=function(t){return arguments.length?(this._ps!==t&&(this._ps=t,t?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):($s(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==Ha&&(this._tTime-=Ha)))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=t;var e=this.parent||this._dp;return e&&(e._sort||!this.parent)&&ss(e,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(eo(t)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(t){var e=this.parent||this._dp;return e?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?rs(e.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){void 0===t&&(t=So);var e=Oa;return Oa=t,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),"nested"!==this.data&&!1!==t.kill&&this.kill(),Oa=e,this},e.globalTime=function(t){for(var e=this,n=arguments.length?t:e.rawTime();e;)n=e._start+n/(Math.abs(e._ts)||1),e=e._dp;return!this.parent&&this._sat?this._sat.globalTime(t):n},e.repeat=function(t){return arguments.length?(this._repeat=t===1/0?-2:t,fs(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var e=this._time;return this._rDelay=t,fs(this),e?this.time(e):this}return this._rDelay},e.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},e.seek=function(t,e){return this.totalTime(ms(this,t),eo(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,eo(e))},e.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},e.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},e.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-1e-8:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-1e-8,this},e.isActive=function(){var t,e=this.parent||this._dp,n=this._start;return!(e&&!(this._ts&&this._initted&&e.isActive()&&(t=e.rawTime(!0))>=n&&t<this.endTime(!0)-Ha))},e.eventCallback=function(t,e,n){var r=this.vars;return arguments.length>1?(e?(r[t]=e,n&&(r[t+"Params"]=n),"onUpdate"===t&&(this._onUpdate=e)):delete r[t],this):r[t]},e.then=function(t){var e=this;return new Promise((function(n){var r=Xa(t)?t:Ho,i=function(){var t=e.then;e.then=null,Xa(r)&&(r=r(e))&&(r.then||r===e)&&(e.then=t),n(r),e.then=t};e._initted&&1===e.totalProgress()&&e._ts>=0||!e._tTime&&e._ts<0?i():e._prom=i}))},e.kill=function(){Rs(this)},t}();Uo(sl.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-1e-8,_prom:0,_ps:!1,_rts:1});var ll=function(t){function e(e,n){var r;return void 0===e&&(e={}),(r=t.call(this,e)||this).labels={},r.smoothChildTiming=!!e.smoothChildTiming,r.autoRemoveChildren=!!e.autoRemoveChildren,r._sort=eo(e.sortChildren),Na&&ss(e.parent||Na,Ca(r),n),e.reversed&&r.reverse(),e.paused&&r.paused(!0),e.scrollTrigger&&ls(Ca(r),e.scrollTrigger),r}Ea(e,t);var n=e.prototype;return n.to=function(t,e,n){return gs(0,arguments,this),this},n.from=function(t,e,n){return gs(1,arguments,this),this},n.fromTo=function(t,e,n,r){return gs(2,arguments,this),this},n.set=function(t,e,n){return e.duration=0,e.parent=this,$o(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new bl(t,e,ms(this,n),1),this},n.call=function(t,e,n){return ss(this,bl.delayedCall(0,t,e),n)},n.staggerTo=function(t,e,n,r,i,a,o){return n.duration=e,n.stagger=n.stagger||r,n.onComplete=a,n.onCompleteParams=o,n.parent=this,new bl(t,n,ms(this,i)),this},n.staggerFrom=function(t,e,n,r,i,a,o){return n.runBackwards=1,$o(n).immediateRender=eo(n.immediateRender),this.staggerTo(t,e,n,r,i,a,o)},n.staggerFromTo=function(t,e,n,r,i,a,o,s){return r.startAt=n,$o(r).immediateRender=eo(r.immediateRender),this.staggerTo(t,e,r,i,a,o,s)},n.render=function(t,e,n){var r,i,a,o,s,l,c,u,h,d,f,p,m=this._time,g=this._dirty?this.totalDuration():this._tDur,v=this._dur,y=t<=0?0:Io(t),b=this._zTime<0!=t<0&&(this._initted||!v);if(this!==Na&&y>g&&t>=0&&(y=g),y!==this._tTime||n||b){if(m!==this._time&&v&&(y+=this._time-m,t+=this._time-m),r=y,h=this._start,l=!(u=this._ts),b&&(v||(m=this._zTime),(t||!e)&&(this._zTime=t)),this._repeat){if(f=this._yoyo,s=v+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*s+t,e,n);if(r=Io(y%s),y===g?(o=this._repeat,r=v):((o=~~(y/s))&&o===y/s&&(r=v,o--),r>v&&(r=v)),d=ns(this._tTime,s),!m&&this._tTime&&d!==o&&this._tTime-d*s-this._dur<=0&&(d=o),f&&1&o&&(r=v-r,p=1),o!==d&&!this._lock){var _=f&&1&d,w=_===(f&&1&o);if(o<d&&(_=!_),m=_?0:y%v?v:y,this._lock=1,this.render(m||(p?0:Io(o*s)),e,!v)._lock=0,this._tTime=y,!e&&this.parent&&Vs(this,"onRepeat"),this.vars.repeatRefresh&&!p&&(this.invalidate()._lock=1),m&&m!==this._time||l!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(v=this._dur,g=this._tDur,w&&(this._lock=2,m=_?v:-1e-4,this.render(m,!0),this.vars.repeatRefresh&&!p&&this.invalidate()),this._lock=0,!this._ts&&!l)return this;tl(this,p)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(c=function(t,e,n){var r;if(n>e)for(r=t._first;r&&r._start<=n;){if("isPause"===r.data&&r._start>e)return r;r=r._next}else for(r=t._last;r&&r._start>=n;){if("isPause"===r.data&&r._start<e)return r;r=r._prev}}(this,Io(m),Io(r)),c&&(y-=r-(r=c._start))),this._tTime=y,this._time=r,this._act=!u,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t,m=0),!m&&r&&!e&&!o&&(Vs(this,"onStart"),this._tTime!==y))return this;if(r>=m&&t>=0)for(i=this._first;i;){if(a=i._next,(i._act||r>=i._start)&&i._ts&&c!==i){if(i.parent!==this)return this.render(t,e,n);if(i.render(i._ts>0?(r-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(r-i._start)*i._ts,e,n),r!==this._time||!this._ts&&!l){c=0,a&&(y+=this._zTime=-1e-8);break}}i=a}else{i=this._last;for(var D=t<0?t:r;i;){if(a=i._prev,(i._act||D<=i._end)&&i._ts&&c!==i){if(i.parent!==this)return this.render(t,e,n);if(i.render(i._ts>0?(D-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(D-i._start)*i._ts,e,n||Oa&&(i._initted||i._startAt)),r!==this._time||!this._ts&&!l){c=0,a&&(y+=this._zTime=D?-1e-8:Ha);break}}i=a}}if(c&&!e&&(this.pause(),c.render(r>=m?0:-1e-8)._zTime=r>=m?1:-1,this._ts))return this._start=h,is(this),this.render(t,e,n);this._onUpdate&&!e&&Vs(this,"onUpdate",!0),(y===g&&this._tTime>=this.totalDuration()||!y&&m)&&(h!==this._start&&Math.abs(u)===Math.abs(this._ts)||this._lock||((t||!v)&&(y===g&&this._ts>0||!y&&this._ts<0)&&Xo(this,1),e||t<0&&!m||!y&&!m&&g||(Vs(this,y===g&&t>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(y<g&&this.timeScale()>0)&&this._prom())))}return this},n.add=function(t,e){var n=this;if(Ja(e)||(e=ms(this,e,t)),!(t instanceof sl)){if(ao(t))return t.forEach((function(t){return n.add(t,e)})),this;if(Za(t))return this.addLabel(t,e);if(!Xa(t))return this;t=bl.delayedCall(0,t)}return this!==t?ss(this,t,e):this},n.getChildren=function(t,e,n,r){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===n&&(n=!0),void 0===r&&(r=-1e8);for(var i=[],a=this._first;a;)a._start>=r&&(a instanceof bl?e&&i.push(a):(n&&i.push(a),t&&i.push.apply(i,a.getChildren(!0,e,n)))),a=a._next;return i},n.getById=function(t){for(var e=this.getChildren(1,1,1),n=e.length;n--;)if(e[n].vars.id===t)return e[n]},n.remove=function(t){return Za(t)?this.removeLabel(t):Xa(t)?this.killTweensOf(t):(Zo(this,t),t===this._recent&&(this._recent=this._last),Jo(this))},n.totalTime=function(e,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Io(Ws.time-(this._ts>0?e/this._ts:(this.totalDuration()-e)/-this._ts))),t.prototype.totalTime.call(this,e,n),this._forcing=0,this):this._tTime},n.addLabel=function(t,e){return this.labels[t]=ms(this,e),this},n.removeLabel=function(t){return delete this.labels[t],this},n.addPause=function(t,e,n){var r=bl.delayedCall(0,e||_o,n);return r.data="isPause",this._hasPause=1,ss(this,r,ms(this,t))},n.removePause=function(t){var e=this._first;for(t=ms(this,t);e;)e._start===t&&"isPause"===e.data&&Xo(e),e=e._next},n.killTweensOf=function(t,e,n){for(var r=this.getTweensOf(t,n),i=r.length;i--;)cl!==r[i]&&r[i].kill(t,e);return this},n.getTweensOf=function(t,e){for(var n,r=[],i=Ss(t),a=this._first,o=Ja(e);a;)a instanceof bl?jo(a._targets,i)&&(o?(!cl||a._initted&&a._ts)&&a.globalTime(0)<=e&&a.globalTime(a.totalDuration())>e:!e||a.isActive())&&r.push(a):(n=a.getTweensOf(i,e)).length&&r.push.apply(r,n),a=a._next;return r},n.tweenTo=function(t,e){e=e||{};var n,r=this,i=ms(r,t),a=e,o=a.startAt,s=a.onStart,l=a.onStartParams,c=a.immediateRender,u=bl.to(r,Uo({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:i,overwrite:"auto",duration:e.duration||Math.abs((i-(o&&"time"in o?o.time:r._time))/r.timeScale())||Ha,onStart:function(){if(r.pause(),!n){var t=e.duration||Math.abs((i-(o&&"time"in o?o.time:r._time))/r.timeScale());u._dur!==t&&ds(u,t,0,1).render(u._time,!0,!0),n=1}s&&s.apply(u,l||[])}},e));return c?u.render(0):u},n.tweenFromTo=function(t,e,n){return this.tweenTo(e,Uo({startAt:{time:ms(this,t)}},n))},n.recent=function(){return this._recent},n.nextLabel=function(t){return void 0===t&&(t=this._time),Ps(this,ms(this,t))},n.previousLabel=function(t){return void 0===t&&(t=this._time),Ps(this,ms(this,t),1)},n.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+Ha)},n.shiftChildren=function(t,e,n){void 0===n&&(n=0);for(var r,i=this._first,a=this.labels;i;)i._start>=n&&(i._start+=t,i._end+=t),i=i._next;if(e)for(r in a)a[r]>=n&&(a[r]+=t);return Jo(this)},n.invalidate=function(e){var n=this._first;for(this._lock=0;n;)n.invalidate(e),n=n._next;return t.prototype.invalidate.call(this,e)},n.clear=function(t){void 0===t&&(t=!0);for(var e,n=this._first;n;)e=n._next,this.remove(n),n=e;return this._dp&&(this._time=this._tTime=this._pTime=0),t&&(this.labels={}),Jo(this)},n.totalDuration=function(t){var e,n,r,i=0,a=this,o=a._last,s=za;if(arguments.length)return a.timeScale((a._repeat<0?a.duration():a.totalDuration())/(a.reversed()?-t:t));if(a._dirty){for(r=a.parent;o;)e=o._prev,o._dirty&&o.totalDuration(),(n=o._start)>s&&a._sort&&o._ts&&!a._lock?(a._lock=1,ss(a,o,n-o._delay,1)._lock=0):s=n,n<0&&o._ts&&(i-=n,(!r&&!a._dp||r&&r.smoothChildTiming)&&(a._start+=n/a._ts,a._time-=n,a._tTime-=n),a.shiftChildren(-n,!1,-Infinity),s=0),o._end>i&&o._ts&&(i=o._end),o=e;ds(a,a===Na&&a._time>i?a._time:i,1,1),a._dirty=0}return a._tDur},e.updateRoot=function(t){if(Na._ts&&(Yo(Na,rs(t,Na)),Ia=Ws.frame),Ws.frame>=Ao){Ao+=La.autoSleep||120;var e=Na._first;if((!e||!e._ts)&&La.autoSleep&&Ws._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||Ws.sleep()}}},e}(sl);Uo(ll.prototype,{_lock:0,_hasPause:0,_forcing:0});var cl,ul,hl=function(t,e,n,r,i,a,o){var s,l,c,u,h,d,f,p,m=new Pl(this._pt,t,e,0,1,Cl,null,i),g=0,v=0;for(m.b=n,m.e=r,n+="",(f=~(r+="").indexOf("random("))&&(r=Ms(r)),a&&(a(p=[n,r],t,e),n=p[0],r=p[1]),l=n.match(co)||[];s=co.exec(r);)u=s[0],h=r.substring(g,s.index),c?c=(c+1)%5:"rgba("===h.substr(-5)&&(c=1),u!==l[v++]&&(d=parseFloat(l[v-1])||0,m._pt={_next:m._pt,p:h||1===v?h:",",s:d,c:"="===u.charAt(1)?Fo(d,u)-d:parseFloat(u)-d,m:c&&c<4?Math.round:0},g=co.lastIndex);return m.c=g<r.length?r.substring(g,r.length):"",m.fp=o,(uo.test(r)||f)&&(m.e=0),this._pt=m,m},dl=function(t,e,n,r,i,a,o,s,l,c){Xa(r)&&(r=r(i||0,t,a));var u,h=t[e],d="get"!==n?n:Xa(h)?l?t[e.indexOf("set")||!Xa(t["get"+e.substr(3)])?e:"get"+e.substr(3)](l):t[e]():h,f=Xa(h)?l?Dl:wl:_l;if(Za(r)&&(~r.indexOf("random(")&&(r=Ms(r)),"="===r.charAt(1)&&((u=Fo(d,r)+(bs(d)||0))||0===u)&&(r=u)),!c||d!==r||ul)return isNaN(d*r)||""===r?(!h&&!(e in t)&&vo(e,r),hl.call(this,t,e,d,r,f,s||La.stringFilter,l)):(u=new Pl(this._pt,t,e,+d||0,r-(d||0),"boolean"==typeof h?kl:Tl,0,f),l&&(u.fp=l),o&&u.modifier(o,this,t),this._pt=u)},fl=function(t,e,n,r,i,a){var o,s,l,c;if(Co[t]&&!1!==(o=new Co[t]).init(i,o.rawVars?e[t]:function(t,e,n,r,i){if(Xa(t)&&(t=gl(t,i,e,n,r)),!to(t)||t.style&&t.nodeType||ao(t)||io(t))return Za(t)?gl(t,i,e,n,r):t;var a,o={};for(a in t)o[a]=gl(t[a],i,e,n,r);return o}(e[t],r,i,a,n),n,r,a)&&(n._pt=s=new Pl(n._pt,i,t,0,1,o.render,o,0,o.priority),n!==Fa))for(l=n._ptLookup[n._targets.indexOf(i)],c=o._props.length;c--;)l[o._props[c]]=s;return o},pl=function t(e,n,r){var i,a,o,s,l,c,u,h,d,f,p,m,g,v=e.vars,y=v.ease,b=v.startAt,_=v.immediateRender,w=v.lazy,D=v.onUpdate,S=v.runBackwards,x=v.yoyoEase,T=v.keyframes,k=v.autoRevert,C=e._dur,E=e._startAt,A=e._targets,O=e.parent,M=O&&"nested"===O.data?O.vars.targets:A,N="auto"===e._overwrite&&!Aa,P=e.timeline;if(P&&(!T||!y)&&(y="none"),e._ease=el(y,Ya.ease),e._yEase=x?Qs(el(!0===x?y:x,Ya.ease)):0,x&&e._yoyo&&!e._repeat&&(x=e._yEase,e._yEase=e._ease,e._ease=x),e._from=!P&&!!v.runBackwards,!P||T&&!v.stagger){if(m=(h=A[0]?Po(A[0]).harness:0)&&v[h.prop],i=Wo(v,xo),E&&(E._zTime<0&&E.progress(1),n<0&&S&&_&&!k?E.render(-1,!0):E.revert(S&&C?Do:wo),E._lazy=0),b){if(Xo(e._startAt=bl.set(A,Uo({data:"isStart",overwrite:!1,parent:O,immediateRender:!0,lazy:!E&&eo(w),startAt:null,delay:0,onUpdate:D&&function(){return Vs(e,"onUpdate")},stagger:0},b))),e._startAt._dp=0,e._startAt._sat=e,n<0&&(Oa||!_&&!k)&&e._startAt.revert(Do),_&&C&&n<=0&&r<=0)return void(n&&(e._zTime=n))}else if(S&&C&&!E)if(n&&(_=!1),o=Uo({overwrite:!1,data:"isFromStart",lazy:_&&!E&&eo(w),immediateRender:_,stagger:0,parent:O},i),m&&(o[h.prop]=m),Xo(e._startAt=bl.set(A,o)),e._startAt._dp=0,e._startAt._sat=e,n<0&&(Oa?e._startAt.revert(Do):e._startAt.render(-1,!0)),e._zTime=n,_){if(!n)return}else t(e._startAt,Ha,Ha);for(e._pt=e._ptCache=0,w=C&&eo(w)||w&&!C,a=0;a<A.length;a++){if(u=(l=A[a])._gsap||No(A)[a]._gsap,e._ptLookup[a]=f={},ko[u.id]&&To.length&&Lo(),p=M===A?a:M.indexOf(l),h&&!1!==(d=new h).init(l,m||i,e,p,M)&&(e._pt=s=new Pl(e._pt,l,d.name,0,1,d.render,d,0,d.priority),d._props.forEach((function(t){f[t]=s})),d.priority&&(c=1)),!h||m)for(o in i)Co[o]&&(d=fl(o,i,e,p,l,M))?d.priority&&(c=1):f[o]=s=dl.call(e,l,o,"get",i[o],p,M,0,v.stringFilter);e._op&&e._op[a]&&e.kill(l,e._op[a]),N&&e._pt&&(cl=e,Na.killTweensOf(l,f,e.globalTime(n)),g=!e.parent,cl=0),e._pt&&w&&(ko[u.id]=1)}c&&Nl(e),e._onInit&&e._onInit(e)}e._onUpdate=D,e._initted=(!e._op||e._pt)&&!g,T&&n<=0&&P.render(za,!0,!0)},ml=function(t,e,n,r){var i,a,o=e.ease||r||"power1.inOut";if(ao(e))a=n[t]||(n[t]=[]),e.forEach((function(t,n){return a.push({t:n/(e.length-1)*100,v:t,e:o})}));else for(i in e)a=n[i]||(n[i]=[]),"ease"===i||a.push({t:parseFloat(t),v:e[i],e:o})},gl=function(t,e,n,r,i){return Xa(t)?t.call(e,n,r,i):Za(t)&&~t.indexOf("random(")?Ms(t):t},vl=Mo+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",yl={};Ro(vl+",id,stagger,delay,duration,paused,scrollTrigger",(function(t){return yl[t]=1}));var bl=function(t){function e(e,n,r,i){var a;"number"==typeof n&&(r.duration=n,n=r,r=null);var o,s,l,c,u,h,d,f,p=(a=t.call(this,i?n:$o(n))||this).vars,m=p.duration,g=p.delay,v=p.immediateRender,y=p.stagger,b=p.overwrite,_=p.keyframes,w=p.defaults,D=p.scrollTrigger,S=p.yoyoEase,x=n.parent||Na,T=(ao(e)||io(e)?Ja(e[0]):"length"in n)?[e]:Ss(e);if(a._targets=T.length?No(T):yo("GSAP target "+e+" not found. https://gsap.com",!La.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=b,_||y||ro(m)||ro(g)){if(n=a.vars,(o=a.timeline=new ll({data:"nested",defaults:w||{},targets:x&&"nested"===x.data?x.vars.targets:T})).kill(),o.parent=o._dp=Ca(a),o._start=0,y||ro(m)||ro(g)){if(c=T.length,d=y&&ks(y),to(y))for(u in y)~vl.indexOf(u)&&(f||(f={}),f[u]=y[u]);for(s=0;s<c;s++)(l=Wo(n,yl)).stagger=0,S&&(l.yoyoEase=S),f&&qo(l,f),h=T[s],l.duration=+gl(m,Ca(a),s,h,T),l.delay=(+gl(g,Ca(a),s,h,T)||0)-a._delay,!y&&1===c&&l.delay&&(a._delay=g=l.delay,a._start+=g,l.delay=0),o.to(h,l,d?d(s,h,T):0),o._ease=Ks.none;o.duration()?m=g=0:a.timeline=0}else if(_){$o(Uo(o.vars.defaults,{ease:"none"})),o._ease=el(_.ease||n.ease||"none");var k,C,E,A=0;if(ao(_))_.forEach((function(t){return o.to(T,t,">")})),o.duration();else{for(u in l={},_)"ease"===u||"easeEach"===u||ml(u,_[u],l,_.easeEach);for(u in l)for(k=l[u].sort((function(t,e){return t.t-e.t})),A=0,s=0;s<k.length;s++)(E={ease:(C=k[s]).e,duration:(C.t-(s?k[s-1].t:0))/100*m})[u]=C.v,o.to(T,E,A),A+=E.duration;o.duration()<m&&o.to({},{duration:m-o.duration()})}}m||a.duration(m=o.duration())}else a.timeline=0;return!0!==b||Aa||(cl=Ca(a),Na.killTweensOf(T),cl=0),ss(x,Ca(a),r),n.reversed&&a.reverse(),n.paused&&a.paused(!0),(v||!m&&!_&&a._start===Io(x._time)&&eo(v)&&ts(Ca(a))&&"nested"!==x.data)&&(a._tTime=-1e-8,a.render(Math.max(0,-g)||0)),D&&ls(Ca(a),D),a}Ea(e,t);var n=e.prototype;return n.render=function(t,e,n){var r,i,a,o,s,l,c,u,h,d=this._time,f=this._tDur,p=this._dur,m=t<0,g=t>f-Ha&&!m?f:t<Ha?0:t;if(p){if(g!==this._tTime||!t||n||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==m){if(r=g,u=this.timeline,this._repeat){if(o=p+this._rDelay,this._repeat<-1&&m)return this.totalTime(100*o+t,e,n);if(r=Io(g%o),g===f?(a=this._repeat,r=p):((a=~~(g/o))&&a===Io(g/o)&&(r=p,a--),r>p&&(r=p)),(l=this._yoyo&&1&a)&&(h=this._yEase,r=p-r),s=ns(this._tTime,o),r===d&&!n&&this._initted&&a===s)return this._tTime=g,this;a!==s&&(u&&this._yEase&&tl(u,l),this.vars.repeatRefresh&&!l&&!this._lock&&this._time!==o&&this._initted&&(this._lock=n=1,this.render(Io(o*a),!0).invalidate()._lock=0))}if(!this._initted){if(cs(this,m?t:r,n,e,g))return this._tTime=0,this;if(!(d===this._time||n&&this.vars.repeatRefresh&&a!==s))return this;if(p!==this._dur)return this.render(t,e,n)}if(this._tTime=g,this._time=r,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=c=(h||this._ease)(r/p),this._from&&(this.ratio=c=1-c),r&&!d&&!e&&!a&&(Vs(this,"onStart"),this._tTime!==g))return this;for(i=this._pt;i;)i.r(c,i.d),i=i._next;u&&u.render(t<0?t:u._dur*u._ease(r/this._dur),e,n)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(m&&Qo(this,t,0,n),Vs(this,"onUpdate")),this._repeat&&a!==s&&this.vars.onRepeat&&!e&&this.parent&&Vs(this,"onRepeat"),g!==this._tDur&&g||this._tTime!==g||(m&&!this._onUpdate&&Qo(this,t,0,!0),(t||!p)&&(g===this._tDur&&this._ts>0||!g&&this._ts<0)&&Xo(this,1),e||m&&!d||!(g||d||l)||(Vs(this,g===f?"onComplete":"onReverseComplete",!0),this._prom&&!(g<f&&this.timeScale()>0)&&this._prom()))}}else!function(t,e,n,r){var i,a,o,s=t.ratio,l=e<0||!e&&(!t._start&&us(t)&&(t._initted||!hs(t))||(t._ts<0||t._dp._ts<0)&&!hs(t))?0:1,c=t._rDelay,u=0;if(c&&t._repeat&&(u=ys(0,t._tDur,e),a=ns(u,c),t._yoyo&&1&a&&(l=1-l),a!==ns(t._tTime,c)&&(s=1-l,t.vars.repeatRefresh&&t._initted&&t.invalidate())),l!==s||Oa||r||t._zTime===Ha||!e&&t._zTime){if(!t._initted&&cs(t,e,r,n,u))return;for(o=t._zTime,t._zTime=e||(n?Ha:0),n||(n=e&&!o),t.ratio=l,t._from&&(l=1-l),t._time=0,t._tTime=u,i=t._pt;i;)i.r(l,i.d),i=i._next;e<0&&Qo(t,e,0,!0),t._onUpdate&&!n&&Vs(t,"onUpdate"),u&&t._repeat&&!n&&t.parent&&Vs(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===l&&(l&&Xo(t,1),n||Oa||(Vs(t,l?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,n);return this},n.targets=function(){return this._targets},n.invalidate=function(e){return(!e||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(e),t.prototype.invalidate.call(this,e)},n.resetTo=function(t,e,n,r,i){ja||Ws.wake(),this._ts||this.play();var a=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||pl(this,a),function(t,e,n,r,i,a,o,s){var l,c,u,h,d=(t._pt&&t._ptCache||(t._ptCache={}))[e];if(!d)for(d=t._ptCache[e]=[],u=t._ptLookup,h=t._targets.length;h--;){if((l=u[h][e])&&l.d&&l.d._pt)for(l=l.d._pt;l&&l.p!==e&&l.fp!==e;)l=l._next;if(!l)return ul=1,t.vars[e]="+=0",pl(t,o),ul=0,s?yo(e+" not eligible for reset"):1;d.push(l)}for(h=d.length;h--;)(l=(c=d[h])._pt||c).s=!r&&0!==r||i?l.s+(r||0)+a*l.c:r,l.c=n-l.s,c.e&&(c.e=Bo(n)+bs(c.e)),c.b&&(c.b=l.s+bs(c.b))}(this,t,e,n,r,this._ease(a/this._dur),a,i)?this.resetTo(t,e,n,r,1):(as(this,0),this.parent||Ko(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},n.kill=function(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e))return this._lazy=this._pt=0,this.parent?Rs(this):this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,cl&&!0!==cl.vars.overwrite)._first||Rs(this),this.parent&&n!==this.timeline.totalDuration()&&ds(this,this._dur*this.timeline._tDur/n,0,1),this}var r,i,a,o,s,l,c,u=this._targets,h=t?Ss(t):u,d=this._ptLookup,f=this._pt;if((!e||"all"===e)&&function(t,e){for(var n=t.length,r=n===e.length;r&&n--&&t[n]===e[n];);return n<0}(u,h))return"all"===e&&(this._pt=0),Rs(this);for(r=this._op=this._op||[],"all"!==e&&(Za(e)&&(s={},Ro(e,(function(t){return s[t]=1})),e=s),e=function(t,e){var n,r,i,a,o=t[0]?Po(t[0]).harness:0,s=o&&o.aliases;if(!s)return e;for(r in n=qo({},e),s)if(r in n)for(i=(a=s[r].split(",")).length;i--;)n[a[i]]=n[r];return n}(u,e)),c=u.length;c--;)if(~h.indexOf(u[c]))for(s in i=d[c],"all"===e?(r[c]=e,o=i,a={}):(a=r[c]=r[c]||{},o=e),o)(l=i&&i[s])&&("kill"in l.d&&!0!==l.d.kill(s)||Zo(this,l,"_pt"),delete i[s]),"all"!==a&&(a[s]=1);return this._initted&&!this._pt&&f&&Rs(this),this},e.to=function(t,n){return new e(t,n,arguments[2])},e.from=function(t,e){return gs(1,arguments)},e.delayedCall=function(t,n,r,i){return new e(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:n,onReverseComplete:n,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:i})},e.fromTo=function(t,e,n){return gs(2,arguments)},e.set=function(t,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new e(t,n)},e.killTweensOf=function(t,e,n){return Na.killTweensOf(t,e,n)},e}(sl);Uo(bl.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),Ro("staggerTo,staggerFrom,staggerFromTo",(function(t){bl[t]=function(){var e=new ll,n=_s.call(arguments,0);return n.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,n)}}));var _l=function(t,e,n){return t[e]=n},wl=function(t,e,n){return t[e](n)},Dl=function(t,e,n,r){return t[e](r.fp,n)},Sl=function(t,e,n){return t.setAttribute(e,n)},xl=function(t,e){return Xa(t[e])?wl:Qa(t[e])&&t.setAttribute?Sl:_l},Tl=function(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},kl=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},Cl=function(t,e){var n=e._pt,r="";if(!t&&e.b)r=e.b;else if(1===t&&e.e)r=e.e;else{for(;n;)r=n.p+(n.m?n.m(n.s+n.c*t):Math.round(1e4*(n.s+n.c*t))/1e4)+r,n=n._next;r+=e.c}e.set(e.t,e.p,r,e)},El=function(t,e){for(var n=e._pt;n;)n.r(t,n.d),n=n._next},Al=function(t,e,n,r){for(var i,a=this._pt;a;)i=a._next,a.p===r&&a.modifier(t,e,n),a=i},Ol=function(t){for(var e,n,r=this._pt;r;)n=r._next,r.p===t&&!r.op||r.op===t?Zo(this,r,"_pt"):r.dep||(e=1),r=n;return!e},Ml=function(t,e,n,r){r.mSet(t,e,r.m.call(r.tween,n,r.mt),r)},Nl=function(t){for(var e,n,r,i,a=t._pt;a;){for(e=a._next,n=r;n&&n.pr>a.pr;)n=n._next;(a._prev=n?n._prev:i)?a._prev._next=a:r=a,(a._next=n)?n._prev=a:i=a,a=e}t._pt=r},Pl=function(){function t(t,e,n,r,i,a,o,s,l){this.t=e,this.s=r,this.c=i,this.p=n,this.r=a||Tl,this.d=o||this,this.set=s||_l,this.pr=l||0,this._next=t,t&&(t._prev=this)}return t.prototype.modifier=function(t,e,n){this.mSet=this.mSet||this.set,this.set=Ml,this.m=t,this.mt=n,this.tween=e},t}();Ro(Mo+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",(function(t){return xo[t]=1})),po.TweenMax=po.TweenLite=bl,po.TimelineLite=po.TimelineMax=ll,Na=new ll({sortChildren:!1,defaults:Ya,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),La.stringFilter=Gs;var Vl=[],Rl={},Bl=[],Il=0,Fl=0,jl=function(t){return(Rl[t]||Bl).map((function(t){return t()}))},Ll=function(){var t=Date.now(),e=[];t-Il>2&&(jl("matchMediaInit"),Vl.forEach((function(t){var n,r,i,a,o=t.queries,s=t.conditions;for(r in o)(n=Pa.matchMedia(o[r]).matches)&&(i=1),n!==s[r]&&(s[r]=n,a=1);a&&(t.revert(),i&&e.push(t))})),jl("matchMediaRevert"),e.forEach((function(t){return t.onMatch(t,(function(e){return t.add(null,e)}))})),Il=t,jl("matchMedia"))},Yl=function(){function t(t,e){this.selector=e&&xs(e),this.data=[],this._r=[],this.isReverted=!1,this.id=Fl++,t&&this.add(t)}var e=t.prototype;return e.add=function(t,e,n){Xa(t)&&(n=e,e=t,t=Xa);var r=this,i=function(){var t,i=Ma,a=r.selector;return i&&i!==r&&i.data.push(r),n&&(r.selector=xs(n)),Ma=r,t=e.apply(r,arguments),Xa(t)&&r._r.push(t),Ma=i,r.selector=a,r.isReverted=!1,t};return r.last=i,t===Xa?i(r,(function(t){return r.add(null,t)})):t?r[t]=i:i},e.ignore=function(t){var e=Ma;Ma=null,t(this),Ma=e},e.getTweens=function(){var e=[];return this.data.forEach((function(n){return n instanceof t?e.push.apply(e,n.getTweens()):n instanceof bl&&!(n.parent&&"nested"===n.parent.data)&&e.push(n)})),e},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(t,e){var n=this;if(t?function(){for(var e,r=n.getTweens(),i=n.data.length;i--;)"isFlip"===(e=n.data[i]).data&&(e.revert(),e.getChildren(!0,!0,!1).forEach((function(t){return r.splice(r.indexOf(t),1)})));for(r.map((function(t){return{g:t._dur||t._delay||t._sat&&!t._sat.vars.immediateRender?t.globalTime(0):-1/0,t:t}})).sort((function(t,e){return e.g-t.g||-1/0})).forEach((function(e){return e.t.revert(t)})),i=n.data.length;i--;)(e=n.data[i])instanceof ll?"nested"!==e.data&&(e.scrollTrigger&&e.scrollTrigger.revert(),e.kill()):!(e instanceof bl)&&e.revert&&e.revert(t);n._r.forEach((function(e){return e(t,n)})),n.isReverted=!0}():this.data.forEach((function(t){return t.kill&&t.kill()})),this.clear(),e)for(var r=Vl.length;r--;)Vl[r].id===this.id&&Vl.splice(r,1)},e.revert=function(t){this.kill(t||{})},t}(),zl=function(){function t(t){this.contexts=[],this.scope=t,Ma&&Ma.data.push(this)}var e=t.prototype;return e.add=function(t,e,n){to(t)||(t={matches:t});var r,i,a,o=new Yl(0,n||this.scope),s=o.conditions={};for(i in Ma&&!o.selector&&(o.selector=Ma.selector),this.contexts.push(o),e=o.add("onMatch",e),o.queries=t,t)"all"===i?a=1:(r=Pa.matchMedia(t[i]))&&(Vl.indexOf(o)<0&&Vl.push(o),(s[i]=r.matches)&&(a=1),r.addListener?r.addListener(Ll):r.addEventListener("change",Ll));return a&&e(o,(function(t){return o.add(null,t)})),this},e.revert=function(t){this.kill(t||{})},e.kill=function(t){this.contexts.forEach((function(e){return e.kill(t,!0)}))},t}(),Hl={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e.forEach((function(t){return Is(t)}))},timeline:function(t){return new ll(t)},getTweensOf:function(t,e){return Na.getTweensOf(t,e)},getProperty:function(t,e,n,r){Za(t)&&(t=Ss(t)[0]);var i=Po(t||{}).get,a=n?Ho:zo;return"native"===n&&(n=""),t?e?a((Co[e]&&Co[e].get||i)(t,e,n,r)):function(e,n,r){return a((Co[e]&&Co[e].get||i)(t,e,n,r))}:t},quickSetter:function(t,e,n){if((t=Ss(t)).length>1){var r=t.map((function(t){return Gl.quickSetter(t,e,n)})),i=r.length;return function(t){for(var e=i;e--;)r[e](t)}}t=t[0]||{};var a=Co[e],o=Po(t),s=o.harness&&(o.harness.aliases||{})[e]||e,l=a?function(e){var r=new a;Fa._pt=0,r.init(t,n?e+n:e,Fa,0,[t]),r.render(1,r),Fa._pt&&El(1,Fa)}:o.set(t,s);return a?l:function(e){return l(t,s,n?e+n:e,o,1)}},quickTo:function(t,e,n){var r,i=Gl.to(t,qo(((r={})[e]="+=0.1",r.paused=!0,r),n||{})),a=function(t,n,r){return i.resetTo(e,t,n,r)};return a.tween=i,a},isTweening:function(t){return Na.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=el(t.ease,Ya.ease)),Go(Ya,t||{})},config:function(t){return Go(La,t||{})},registerEffect:function(t){var e=t.name,n=t.effect,r=t.plugins,i=t.defaults,a=t.extendTimeline;(r||"").split(",").forEach((function(t){return t&&!Co[t]&&!po[t]&&yo(e+" effect requires "+t+" plugin.")})),Eo[e]=function(t,e,r){return n(Ss(t),Uo(e||{},i),r)},a&&(ll.prototype[e]=function(t,n,r){return this.add(Eo[e](t,to(n)?n:(r=n)&&{},this),r)})},registerEase:function(t,e){Ks[t]=el(e)},parseEase:function(t,e){return arguments.length?el(t,e):Ks},getById:function(t){return Na.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var n,r,i=new ll(t);for(i.smoothChildTiming=eo(t.smoothChildTiming),Na.remove(i),i._dp=0,i._time=i._tTime=Na._time,n=Na._first;n;)r=n._next,!e&&!n._dur&&n instanceof bl&&n.vars.onComplete===n._targets[0]||ss(i,n,n._start-n._delay),n=r;return ss(Na,i,0),i},context:function(t,e){return t?new Yl(t,e):Ma},matchMedia:function(t){return new zl(t)},matchMediaRefresh:function(){return Vl.forEach((function(t){var e,n,r=t.conditions;for(n in r)r[n]&&(r[n]=!1,e=1);e&&t.revert()}))||Ll()},addEventListener:function(t,e){var n=Rl[t]||(Rl[t]=[]);~n.indexOf(e)||n.push(e)},removeEventListener:function(t,e){var n=Rl[t],r=n&&n.indexOf(e);r>=0&&n.splice(r,1)},utils:{wrap:function t(e,n,r){var i=n-e;return ao(e)?Os(e,t(0,e.length),n):vs(r,(function(t){return(i+(t-e)%i)%i+e}))},wrapYoyo:function t(e,n,r){var i=n-e,a=2*i;return ao(e)?Os(e,t(0,e.length-1),n):vs(r,(function(t){return e+((t=(a+(t-e)%a)%a||0)>i?a-t:t)}))},distribute:ks,random:As,snap:Es,normalize:function(t,e,n){return Ns(t,e,0,1,n)},getUnit:bs,clamp:function(t,e,n){return vs(n,(function(n){return ys(t,e,n)}))},splitColor:Ys,toArray:Ss,selector:xs,mapRange:Ns,pipe:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return e.reduce((function(t,e){return e(t)}),t)}},unitize:function(t,e){return function(n){return t(parseFloat(n))+(e||bs(n))}},interpolate:function t(e,n,r,i){var a=isNaN(e+n)?0:function(t){return(1-t)*e+t*n};if(!a){var o,s,l,c,u,h=Za(e),d={};if(!0===r&&(i=1)&&(r=null),h)e={p:e},n={p:n};else if(ao(e)&&!ao(n)){for(l=[],c=e.length,u=c-2,s=1;s<c;s++)l.push(t(e[s-1],e[s]));c--,a=function(t){t*=c;var e=Math.min(u,~~t);return l[e](t-e)},r=n}else i||(e=qo(ao(e)?[]:{},e));if(!l){for(o in n)dl.call(d,e,o,"get",n[o]);a=function(t){return El(t,d)||(h?e.p:e)}}}return vs(r,a)},shuffle:Ts},install:go,effects:Eo,ticker:Ws,updateRoot:ll.updateRoot,plugins:Co,globalTimeline:Na,core:{PropTween:Pl,globals:bo,Tween:bl,Timeline:ll,Animation:sl,getCache:Po,_removeLinkedListItem:Zo,reverting:function(){return Oa},context:function(t){return t&&Ma&&(Ma.data.push(t),t._ctx=Ma),Ma},suppressOverwrites:function(t){return Aa=t}}};Ro("to,from,fromTo,delayedCall,set,killTweensOf",(function(t){return Hl[t]=bl[t]})),Ws.add(ll.updateRoot),Fa=Hl.to({},{duration:0});var Ul=function(t,e){for(var n=t._pt;n&&n.p!==e&&n.op!==e&&n.fp!==e;)n=n._next;return n},ql=function(t,e){return{name:t,rawVars:1,init:function(t,n,r){r._onInit=function(t){var r,i;if(Za(n)&&(r={},Ro(n,(function(t){return r[t]=1})),n=r),e){for(i in r={},n)r[i]=e(n[i]);n=r}!function(t,e){var n,r,i,a=t._targets;for(n in e)for(r=a.length;r--;)(i=t._ptLookup[r][n])&&(i=i.d)&&(i._pt&&(i=Ul(i,n)),i&&i.modifier&&i.modifier(e[n],t,a[r],n))}(t,n)}}}},Gl=Hl.registerPlugin({name:"attr",init:function(t,e,n,r,i){var a,o,s;for(a in this.tween=n,e)s=t.getAttribute(a)||"",(o=this.add(t,"setAttribute",(s||0)+"",e[a],r,i,0,0,a)).op=a,o.b=s,this._props.push(a)},render:function(t,e){for(var n=e._pt;n;)Oa?n.set(n.t,n.p,n.b,n):n.r(t,n.d),n=n._next}},{name:"endArray",init:function(t,e){for(var n=e.length;n--;)this.add(t,n,t[n]||0,e[n],0,0,0,0,0,1)}},ql("roundProps",Cs),ql("modifiers"),ql("snap",Es))||Hl;bl.version=ll.version=Gl.version="3.12.5",Ba=1,no()&&$s(),Ks.Power0,Ks.Power1,Ks.Power2,Ks.Power3,Ks.Power4,Ks.Linear,Ks.Quad,Ks.Cubic,Ks.Quart,Ks.Quint,Ks.Strong,Ks.Elastic,Ks.Back,Ks.SteppedEase,Ks.Bounce,Ks.Sine,Ks.Expo,Ks.Circ;
|
|
41
|
+
*/var Oa,Ma,Na,Pa,Va,Ra,Ba,Ia,Fa,ja,La,Ya={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},za={duration:.5,overwrite:!1,delay:0},Ha=1e8,Ua=1e-8,qa=2*Math.PI,Ga=qa/4,Wa=0,$a=Math.sqrt,Ka=Math.cos,Za=Math.sin,Xa=function(t){return"string"==typeof t},Ja=function(t){return"function"==typeof t},Qa=function(t){return"number"==typeof t},to=function(t){return void 0===t},eo=function(t){return"object"==typeof t},no=function(t){return!1!==t},ro=function(){return"undefined"!=typeof window},io=function(t){return Ja(t)||Xa(t)},ao="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},oo=Array.isArray,so=/(?:-?\.?\d|\.)+/gi,lo=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,co=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,uo=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,ho=/[+-]=-?[.\d]+/,fo=/[^,'"\[\]\s]+/gi,po=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,mo={},go={},vo=function(t){return(go=Go(t,mo))&&Wl},yo=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},bo=function(t,e){return!e&&console.warn(t)},_o=function(t,e){return t&&(mo[t]=e)&&go&&(go[t]=e)||mo},wo=function(){return 0},Do={suppressEvents:!0,isStart:!0,kill:!1},So={suppressEvents:!0,kill:!1},xo={suppressEvents:!0},To={},ko=[],Co={},Eo={},Ao={},Oo=30,Mo=[],No="",Po=function(t){var e,n,r=t[0];if(eo(r)||Ja(r)||(t=[t]),!(e=(r._gsap||{}).harness)){for(n=Mo.length;n--&&!Mo[n].targetTest(r););e=Mo[n]}for(n=t.length;n--;)t[n]&&(t[n]._gsap||(t[n]._gsap=new sl(t[n],e)))||t.splice(n,1);return t},Vo=function(t){return t._gsap||Po(xs(t))[0]._gsap},Ro=function(t,e,n){return(n=t[e])&&Ja(n)?t[e]():to(n)&&t.getAttribute&&t.getAttribute(e)||n},Bo=function(t,e){return(t=t.split(",")).forEach(e)||t},Io=function(t){return Math.round(1e5*t)/1e5||0},Fo=function(t){return Math.round(1e7*t)/1e7||0},jo=function(t,e){var n=e.charAt(0),r=parseFloat(e.substr(2));return t=parseFloat(t),"+"===n?t+r:"-"===n?t-r:"*"===n?t*r:t/r},Lo=function(t,e){for(var n=e.length,r=0;t.indexOf(e[r])<0&&++r<n;);return r<n},Yo=function(){var t,e,n=ko.length,r=ko.slice(0);for(Co={},ko.length=0,t=0;t<n;t++)(e=r[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)},zo=function(t,e,n,r){ko.length&&!Ma&&Yo(),t.render(e,n,r||Ma&&e<0&&(t._initted||t._startAt)),ko.length&&!Ma&&Yo()},Ho=function(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(fo).length<2?e:Xa(t)?t.trim():t},Uo=function(t){return t},qo=function(t,e){for(var n in e)n in t||(t[n]=e[n]);return t},Go=function(t,e){for(var n in e)t[n]=e[n];return t},Wo=function t(e,n){for(var r in n)"__proto__"!==r&&"constructor"!==r&&"prototype"!==r&&(e[r]=eo(n[r])?t(e[r]||(e[r]={}),n[r]):n[r]);return e},$o=function(t,e){var n,r={};for(n in t)n in e||(r[n]=t[n]);return r},Ko=function(t){var e,n=t.parent||Pa,r=t.keyframes?(e=oo(t.keyframes),function(t,n){for(var r in n)r in t||"duration"===r&&e||"ease"===r||(t[r]=n[r])}):qo;if(no(t.inherit))for(;n;)r(t,n.vars.defaults),n=n.parent||n._dp;return t},Zo=function(t,e,n,r,i){void 0===n&&(n="_first"),void 0===r&&(r="_last");var a,o=t[r];if(i)for(a=e[i];o&&o[i]>a;)o=o._prev;return o?(e._next=o._next,o._next=e):(e._next=t[n],t[n]=e),e._next?e._next._prev=e:t[r]=e,e._prev=o,e.parent=e._dp=t,e},Xo=function(t,e,n,r){void 0===n&&(n="_first"),void 0===r&&(r="_last");var i=e._prev,a=e._next;i?i._next=a:t[n]===e&&(t[n]=a),a?a._prev=i:t[r]===e&&(t[r]=i),e._next=e._prev=e.parent=null},Jo=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},Qo=function(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var n=t;n;)n._dirty=1,n=n.parent;return t},ts=function(t,e,n,r){return t._startAt&&(Ma?t._startAt.revert(So):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,r))},es=function t(e){return!e||e._ts&&t(e.parent)},ns=function(t){return t._repeat?rs(t._tTime,t=t.duration()+t._rDelay)*t:0},rs=function(t,e){var n=Math.floor(t/=e);return t&&n===t?n-1:n},is=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},as=function(t){return t._end=Fo(t._start+(t._tDur/Math.abs(t._ts||t._rts||Ua)||0))},os=function(t,e){var n=t._dp;return n&&n.smoothChildTiming&&t._ts&&(t._start=Fo(n._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),as(t),n._dirty||Qo(n,t)),t},ss=function(t,e){var n;if((e._time||!e._dur&&e._initted||e._start<t._time&&(e._dur||!e.add))&&(n=is(t.rawTime(),e),(!e._dur||bs(0,e.totalDuration(),n)-e._tTime>Ua)&&e.render(n,!0)),Qo(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(n=t;n._dp;)n.rawTime()>=0&&n.totalTime(n._tTime),n=n._dp;t._zTime=-1e-8}},ls=function(t,e,n,r){return e.parent&&Jo(e),e._start=Fo((Qa(n)?n:n||t!==Pa?gs(t,n,e):t._time)+e._delay),e._end=Fo(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),Zo(t,e,"_first","_last",t._sort?"_start":0),ds(e)||(t._recent=e),r||ss(t,e),t._ts<0&&os(t,t._tTime),t},cs=function(t,e){return(mo.ScrollTrigger||yo("scrollTrigger",e))&&mo.ScrollTrigger.create(e,t)},us=function(t,e,n,r,i){return ml(t,e,i),t._initted?!n&&t._pt&&!Ma&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&Fa!==$s.frame?(ko.push(t),t._lazy=[i,r],1):void 0:1},hs=function t(e){var n=e.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||t(n))},ds=function(t){var e=t.data;return"isFromStart"===e||"isStart"===e},fs=function(t,e,n,r){var i=t._repeat,a=Fo(e)||0,o=t._tTime/t._tDur;return o&&!r&&(t._time*=a/t._dur),t._dur=a,t._tDur=i?i<0?1e10:Fo(a*(i+1)+t._rDelay*i):a,o>0&&!r&&os(t,t._tTime=t._tDur*o),t.parent&&as(t),n||Qo(t.parent,t),t},ps=function(t){return t instanceof cl?Qo(t):fs(t,t._dur)},ms={_start:0,endTime:wo,totalDuration:wo},gs=function t(e,n,r){var i,a,o,s=e.labels,l=e._recent||ms,c=e.duration()>=Ha?l.endTime(!1):e._dur;return Xa(n)&&(isNaN(n)||n in s)?(a=n.charAt(0),o="%"===n.substr(-1),i=n.indexOf("="),"<"===a||">"===a?(i>=0&&(n=n.replace(/=/,"")),("<"===a?l._start:l.endTime(l._repeat>=0))+(parseFloat(n.substr(1))||0)*(o?(i<0?l:r).totalDuration()/100:1)):i<0?(n in s||(s[n]=c),s[n]):(a=parseFloat(n.charAt(i-1)+n.substr(i+1)),o&&r&&(a=a/100*(oo(r)?r[0]:r).totalDuration()),i>1?t(e,n.substr(0,i-1),r)+a:c+a)):null==n?c:+n},vs=function(t,e,n){var r,i,a=Qa(e[1]),o=(a?2:1)+(t<2?0:1),s=e[o];if(a&&(s.duration=e[1]),s.parent=n,t){for(r=s,i=n;i&&!("immediateRender"in r);)r=i.vars.defaults||{},i=no(i.vars.inherit)&&i.parent;s.immediateRender=no(r.immediateRender),t<2?s.runBackwards=1:s.startAt=e[o-1]}return new _l(e[0],s,e[o+1])},ys=function(t,e){return t||0===t?e(t):e},bs=function(t,e,n){return n<t?t:n>e?e:n},_s=function(t,e){return Xa(t)&&(e=po.exec(t))?e[1]:""},ws=[].slice,Ds=function(t,e){return t&&eo(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&eo(t[0]))&&!t.nodeType&&t!==Va},Ss=function(t,e,n){return void 0===n&&(n=[]),t.forEach((function(t){var r;return Xa(t)&&!e||Ds(t,1)?(r=n).push.apply(r,xs(t)):n.push(t)}))||n},xs=function(t,e,n){return Na&&!e&&Na.selector?Na.selector(t):!Xa(t)||n||!Ra&&Ks()?oo(t)?Ss(t,n):Ds(t)?ws.call(t,0):t?[t]:[]:ws.call((e||Ba).querySelectorAll(t),0)},Ts=function(t){return t=xs(t)[0]||bo("Invalid scope")||{},function(e){var n=t.current||t.nativeElement||t;return xs(e,n.querySelectorAll?n:n===t?bo("Invalid scope")||Ba.createElement("div"):t)}},ks=function(t){return t.sort((function(){return.5-Math.random()}))},Cs=function(t){if(Ja(t))return t;var e=eo(t)?t:{each:t},n=nl(e.ease),r=e.from||0,i=parseFloat(e.base)||0,a={},o=r>0&&r<1,s=isNaN(r)||o,l=e.axis,c=r,u=r;return Xa(r)?c=u={center:.5,edges:.5,end:1}[r]||0:!o&&s&&(c=r[0],u=r[1]),function(t,o,h){var d,f,p,m,g,v,y,b,_,w=(h||e).length,D=a[w];if(!D){if(!(_="auto"===e.grid?0:(e.grid||[1,Ha])[1])){for(y=-1e8;y<(y=h[_++].getBoundingClientRect().left)&&_<w;);_<w&&_--}for(D=a[w]=[],d=s?Math.min(_,w)*c-.5:r%_,f=_===Ha?0:s?w*u/_-.5:r/_|0,y=0,b=Ha,v=0;v<w;v++)p=v%_-d,m=f-(v/_|0),D[v]=g=l?Math.abs("y"===l?m:p):$a(p*p+m*m),g>y&&(y=g),g<b&&(b=g);"random"===r&&ks(D),D.max=y-b,D.min=b,D.v=w=(parseFloat(e.amount)||parseFloat(e.each)*(_>w?w-1:l?"y"===l?w/_:_:Math.max(_,w/_))||0)*("edges"===r?-1:1),D.b=w<0?i-w:i,D.u=_s(e.amount||e.each)||0,n=n&&w<0?tl(n):n}return w=(D[t]-D.min)/D.max||0,Fo(D.b+(n?n(w):w)*D.v)+D.u}},Es=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(n){var r=Fo(Math.round(parseFloat(n)/t)*t*e);return(r-r%1)/e+(Qa(n)?0:_s(n))}},As=function(t,e){var n,r,i=oo(t);return!i&&eo(t)&&(n=i=t.radius||Ha,t.values?(t=xs(t.values),(r=!Qa(t[0]))&&(n*=n)):t=Es(t.increment)),ys(e,i?Ja(t)?function(e){return r=t(e),Math.abs(r-e)<=n?r:e}:function(e){for(var i,a,o=parseFloat(r?e.x:e),s=parseFloat(r?e.y:0),l=Ha,c=0,u=t.length;u--;)(i=r?(i=t[u].x-o)*i+(a=t[u].y-s)*a:Math.abs(t[u]-o))<l&&(l=i,c=u);return c=!n||l<=n?t[c]:e,r||c===e||Qa(e)?c:c+_s(e)}:Es(t))},Os=function(t,e,n,r){return ys(oo(t)?!e:!0===n?!!(n=0):!r,(function(){return oo(t)?t[~~(Math.random()*t.length)]:(n=n||1e-5)&&(r=n<1?Math.pow(10,(n+"").length-2):1)&&Math.floor(Math.round((t-n/2+Math.random()*(e-t+.99*n))/n)*n*r)/r}))},Ms=function(t,e,n){return ys(n,(function(n){return t[~~e(n)]}))},Ns=function(t){for(var e,n,r,i,a=0,o="";~(e=t.indexOf("random(",a));)r=t.indexOf(")",e),i="["===t.charAt(e+7),n=t.substr(e+7,r-e-7).match(i?fo:so),o+=t.substr(a,e-a)+Os(i?n:+n[0],i?0:+n[1],+n[2]||1e-5),a=r+1;return o+t.substr(a,t.length-a)},Ps=function(t,e,n,r,i){var a=e-t,o=r-n;return ys(i,(function(e){return n+((e-t)/a*o||0)}))},Vs=function(t,e,n){var r,i,a,o=t.labels,s=Ha;for(r in o)(i=o[r]-e)<0==!!n&&i&&s>(i=Math.abs(i))&&(a=r,s=i);return a},Rs=function(t,e,n){var r,i,a,o=t.vars,s=o[e],l=Na,c=t._ctx;if(s)return r=o[e+"Params"],i=o.callbackScope||t,n&&ko.length&&Yo(),c&&(Na=c),a=r?s.apply(i,r):s.call(i),Na=l,a},Bs=function(t){return Jo(t),t.scrollTrigger&&t.scrollTrigger.kill(!!Ma),t.progress()<1&&Rs(t,"onInterrupt"),t},Is=[],Fs=function(t){if(ro()&&t){var e=(t=!t.name&&t.default||t).name,n=Ja(t),r=e&&!n&&t.init?function(){this._props=[]}:t,i={init:wo,render:Al,add:fl,kill:Ml,modifier:Ol,rawVars:0},a={targetTest:0,get:0,getSetter:Tl,aliases:{},register:0};if(Ks(),t!==r){if(Eo[e])return;qo(r,qo($o(t,i),a)),Go(r.prototype,Go(i,$o(t,a))),Eo[r.prop=e]=r,t.targetTest&&(Mo.push(r),To[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}_o(e,r),t.register&&t.register(Wl,r,Vl)}else t&&Is.push(t)},js=255,Ls={aqua:[0,js,js],lime:[0,js,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,js],navy:[0,0,128],white:[js,js,js],olive:[128,128,0],yellow:[js,js,0],orange:[js,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[js,0,0],pink:[js,192,203],cyan:[0,js,js],transparent:[js,js,js,0]},Ys=function(t,e,n){return(6*(t+=t<0?1:t>1?-1:0)<1?e+(n-e)*t*6:t<.5?n:3*t<2?e+(n-e)*(2/3-t)*6:e)*js+.5|0},zs=function(t,e,n){var r,i,a,o,s,l,c,u,h,d,f=t?Qa(t)?[t>>16,t>>8&js,t&js]:0:Ls.black;if(!f){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),Ls[t])f=Ls[t];else if("#"===t.charAt(0)){if(t.length<6&&(r=t.charAt(1),i=t.charAt(2),a=t.charAt(3),t="#"+r+r+i+i+a+a+(5===t.length?t.charAt(4)+t.charAt(4):"")),9===t.length)return[(f=parseInt(t.substr(1,6),16))>>16,f>>8&js,f&js,parseInt(t.substr(7),16)/255];f=[(t=parseInt(t.substr(1),16))>>16,t>>8&js,t&js]}else if("hsl"===t.substr(0,3))if(f=d=t.match(so),e){if(~t.indexOf("="))return f=t.match(lo),n&&f.length<4&&(f[3]=1),f}else o=+f[0]%360/360,s=+f[1]/100,r=2*(l=+f[2]/100)-(i=l<=.5?l*(s+1):l+s-l*s),f.length>3&&(f[3]*=1),f[0]=Ys(o+1/3,r,i),f[1]=Ys(o,r,i),f[2]=Ys(o-1/3,r,i);else f=t.match(so)||Ls.transparent;f=f.map(Number)}return e&&!d&&(r=f[0]/js,i=f[1]/js,a=f[2]/js,l=((c=Math.max(r,i,a))+(u=Math.min(r,i,a)))/2,c===u?o=s=0:(h=c-u,s=l>.5?h/(2-c-u):h/(c+u),o=c===r?(i-a)/h+(i<a?6:0):c===i?(a-r)/h+2:(r-i)/h+4,o*=60),f[0]=~~(o+.5),f[1]=~~(100*s+.5),f[2]=~~(100*l+.5)),n&&f.length<4&&(f[3]=1),f},Hs=function(t){var e=[],n=[],r=-1;return t.split(qs).forEach((function(t){var i=t.match(co)||[];e.push.apply(e,i),n.push(r+=i.length+1)})),e.c=n,e},Us=function(t,e,n){var r,i,a,o,s="",l=(t+s).match(qs),c=e?"hsla(":"rgba(",u=0;if(!l)return t;if(l=l.map((function(t){return(t=zs(t,e,1))&&c+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"})),n&&(a=Hs(t),(r=n.c).join(s)!==a.c.join(s)))for(o=(i=t.replace(qs,"1").split(co)).length-1;u<o;u++)s+=i[u]+(~r.indexOf(u)?l.shift()||c+"0,0,0,0)":(a.length?a:l.length?l:n).shift());if(!i)for(o=(i=t.split(qs)).length-1;u<o;u++)s+=i[u]+l[u];return s+i[o]},qs=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(t in Ls)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),Gs=/hsl[a]?\(/,Ws=function(t){var e,n=t.join(" ");if(qs.lastIndex=0,qs.test(n))return e=Gs.test(n),t[1]=Us(t[1],e),t[0]=Us(t[0],e,Hs(t[1])),!0},$s=function(){var t,e,n,r,i,a,o=Date.now,s=500,l=33,c=o(),u=c,h=1e3/240,d=h,f=[],p=function n(p){var m,g,v,y,b=o()-u,_=!0===p;if(b>s&&(c+=b-l),((m=(v=(u+=b)-c)-d)>0||_)&&(y=++r.frame,i=v-1e3*r.time,r.time=v/=1e3,d+=m+(m>=h?4:h-m),g=1),_||(t=e(n)),g)for(a=0;a<f.length;a++)f[a](v,i,y,p)};return r={time:0,frame:0,tick:function(){p(!0)},deltaRatio:function(t){return i/(1e3/(t||60))},wake:function(){Ia&&(!Ra&&ro()&&(Va=Ra=window,Ba=Va.document||{},mo.gsap=Wl,(Va.gsapVersions||(Va.gsapVersions=[])).push(Wl.version),vo(go||Va.GreenSockGlobals||!Va.gsap&&Va||{}),n=Va.requestAnimationFrame,Is.forEach(Fs)),t&&r.sleep(),e=n||function(t){return setTimeout(t,d-1e3*r.time+1|0)},La=1,p(2))},sleep:function(){(n?Va.cancelAnimationFrame:clearTimeout)(t),La=0,e=wo},lagSmoothing:function(t,e){s=t||1/0,l=Math.min(e||33,s)},fps:function(t){h=1e3/(t||240),d=1e3*r.time+h},add:function(t,e,n){var i=e?function(e,n,a,o){t(e,n,a,o),r.remove(i)}:t;return r.remove(t),f[n?"unshift":"push"](i),Ks(),i},remove:function(t,e){~(e=f.indexOf(t))&&f.splice(e,1)&&a>=e&&a--},_listeners:f},r}(),Ks=function(){return!La&&$s.wake()},Zs={},Xs=/^[\d.\-M][\d.\-,\s]/,Js=/["']/g,Qs=function(t){for(var e,n,r,i={},a=t.substr(1,t.length-3).split(":"),o=a[0],s=1,l=a.length;s<l;s++)n=a[s],e=s!==l-1?n.lastIndexOf(","):n.length,r=n.substr(0,e),i[o]=isNaN(r)?r.replace(Js,"").trim():+r,o=n.substr(e+1).trim();return i},tl=function(t){return function(e){return 1-t(1-e)}},el=function t(e,n){for(var r,i=e._first;i;)i instanceof cl?t(i,n):!i.vars.yoyoEase||i._yoyo&&i._repeat||i._yoyo===n||(i.timeline?t(i.timeline,n):(r=i._ease,i._ease=i._yEase,i._yEase=r,i._yoyo=n)),i=i._next},nl=function(t,e){return t&&(Ja(t)?t:Zs[t]||function(t){var e=(t+"").split("("),n=Zs[e[0]];return n&&e.length>1&&n.config?n.config.apply(null,~t.indexOf("{")?[Qs(e[1])]:function(t){var e=t.indexOf("(")+1,n=t.indexOf(")"),r=t.indexOf("(",e);return t.substring(e,~r&&r<n?t.indexOf(")",n+1):n)}(t).split(",").map(Ho)):Zs._CE&&Xs.test(t)?Zs._CE("",t):n}(t))||e},rl=function(t,e,n,r){void 0===n&&(n=function(t){return 1-e(1-t)}),void 0===r&&(r=function(t){return t<.5?e(2*t)/2:1-e(2*(1-t))/2});var i,a={easeIn:e,easeOut:n,easeInOut:r};return Bo(t,(function(t){for(var e in Zs[t]=mo[t]=a,Zs[i=t.toLowerCase()]=n,a)Zs[i+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=Zs[t+"."+e]=a[e]})),a},il=function(t){return function(e){return e<.5?(1-t(1-2*e))/2:.5+t(2*(e-.5))/2}},al=function t(e,n,r){var i=n>=1?n:1,a=(r||(e?.3:.45))/(n<1?n:1),o=a/qa*(Math.asin(1/i)||0),s=function(t){return 1===t?1:i*Math.pow(2,-10*t)*Za((t-o)*a)+1},l="out"===e?s:"in"===e?function(t){return 1-s(1-t)}:il(s);return a=qa/a,l.config=function(n,r){return t(e,n,r)},l},ol=function t(e,n){void 0===n&&(n=1.70158);var r=function(t){return t?--t*t*((n+1)*t+n)+1:0},i="out"===e?r:"in"===e?function(t){return 1-r(1-t)}:il(r);return i.config=function(n){return t(e,n)},i};Bo("Linear,Quad,Cubic,Quart,Quint,Strong",(function(t,e){var n=e<5?e+1:e;rl(t+",Power"+(n-1),e?function(t){return Math.pow(t,n)}:function(t){return t},(function(t){return 1-Math.pow(1-t,n)}),(function(t){return t<.5?Math.pow(2*t,n)/2:1-Math.pow(2*(1-t),n)/2}))})),Zs.Linear.easeNone=Zs.none=Zs.Linear.easeIn,rl("Elastic",al("in"),al("out"),al()),function(t,e){var n=1/e,r=function(r){return r<n?t*r*r:r<.7272727272727273?t*Math.pow(r-1.5/e,2)+.75:r<.9090909090909092?t*(r-=2.25/e)*r+.9375:t*Math.pow(r-2.625/e,2)+.984375};rl("Bounce",(function(t){return 1-r(1-t)}),r)}(7.5625,2.75),rl("Expo",(function(t){return t?Math.pow(2,10*(t-1)):0})),rl("Circ",(function(t){return-($a(1-t*t)-1)})),rl("Sine",(function(t){return 1===t?1:1-Ka(t*Ga)})),rl("Back",ol("in"),ol("out"),ol()),Zs.SteppedEase=Zs.steps=mo.SteppedEase={config:function(t,e){void 0===t&&(t=1);var n=1/t,r=t+(e?0:1),i=e?1:0;return function(t){return((r*bs(0,.99999999,t)|0)+i)*n}}},za.ease=Zs["quad.out"],Bo("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",(function(t){return No+=t+","+t+"Params,"}));var sl=function(t,e){this.id=Wa++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:Ro,this.set=e?e.getSetter:Tl},ll=function(){function t(t){this.vars=t,this._delay=+t.delay||0,(this._repeat=t.repeat===1/0?-2:t.repeat||0)&&(this._rDelay=t.repeatDelay||0,this._yoyo=!!t.yoyo||!!t.yoyoEase),this._ts=1,fs(this,+t.duration,1,1),this.data=t.data,Na&&(this._ctx=Na,Na.data.push(this)),La||$s.wake()}var e=t.prototype;return e.delay=function(t){return t||0===t?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+t-this._delay),this._delay=t,this):this._delay},e.duration=function(t){return arguments.length?this.totalDuration(this._repeat>0?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},e.totalDuration=function(t){return arguments.length?(this._dirty=0,fs(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(Ks(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(os(this,t),!n._dp||n.parent||ss(n,this);n&&n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&t<this._tDur||this._ts<0&&t>0||!this._tDur&&!t)&&ls(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===Ua||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),zo(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+ns(this))%(this._dur+this._rDelay)||(t?this._dur:0),e):this._time},e.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>0?1:0},e.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?t:1-t)+ns(this),e):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(t,e){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*n,e):this._repeat?rs(this._tTime,n)+1:1},e.timeScale=function(t,e){if(!arguments.length)return-1e-8===this._rts?0:this._rts;if(this._rts===t)return this;var n=this.parent&&this._ts?is(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||-1e-8===t?0:this._rts,this.totalTime(bs(-Math.abs(this._delay),this._tDur,n),!1!==e),as(this),function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t}(this)},e.paused=function(t){return arguments.length?(this._ps!==t&&(this._ps=t,t?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Ks(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==Ua&&(this._tTime-=Ua)))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=t;var e=this.parent||this._dp;return e&&(e._sort||!this.parent)&&ls(e,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(no(t)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(t){var e=this.parent||this._dp;return e?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?is(e.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){void 0===t&&(t=xo);var e=Ma;return Ma=t,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),"nested"!==this.data&&!1!==t.kill&&this.kill(),Ma=e,this},e.globalTime=function(t){for(var e=this,n=arguments.length?t:e.rawTime();e;)n=e._start+n/(Math.abs(e._ts)||1),e=e._dp;return!this.parent&&this._sat?this._sat.globalTime(t):n},e.repeat=function(t){return arguments.length?(this._repeat=t===1/0?-2:t,ps(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var e=this._time;return this._rDelay=t,ps(this),e?this.time(e):this}return this._rDelay},e.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},e.seek=function(t,e){return this.totalTime(gs(this,t),no(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,no(e))},e.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},e.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},e.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-1e-8:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-1e-8,this},e.isActive=function(){var t,e=this.parent||this._dp,n=this._start;return!(e&&!(this._ts&&this._initted&&e.isActive()&&(t=e.rawTime(!0))>=n&&t<this.endTime(!0)-Ua))},e.eventCallback=function(t,e,n){var r=this.vars;return arguments.length>1?(e?(r[t]=e,n&&(r[t+"Params"]=n),"onUpdate"===t&&(this._onUpdate=e)):delete r[t],this):r[t]},e.then=function(t){var e=this;return new Promise((function(n){var r=Ja(t)?t:Uo,i=function(){var t=e.then;e.then=null,Ja(r)&&(r=r(e))&&(r.then||r===e)&&(e.then=t),n(r),e.then=t};e._initted&&1===e.totalProgress()&&e._ts>=0||!e._tTime&&e._ts<0?i():e._prom=i}))},e.kill=function(){Bs(this)},t}();qo(ll.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-1e-8,_prom:0,_ps:!1,_rts:1});var cl=function(t){function e(e,n){var r;return void 0===e&&(e={}),(r=t.call(this,e)||this).labels={},r.smoothChildTiming=!!e.smoothChildTiming,r.autoRemoveChildren=!!e.autoRemoveChildren,r._sort=no(e.sortChildren),Pa&&ls(e.parent||Pa,Ea(r),n),e.reversed&&r.reverse(),e.paused&&r.paused(!0),e.scrollTrigger&&cs(Ea(r),e.scrollTrigger),r}Aa(e,t);var n=e.prototype;return n.to=function(t,e,n){return vs(0,arguments,this),this},n.from=function(t,e,n){return vs(1,arguments,this),this},n.fromTo=function(t,e,n,r){return vs(2,arguments,this),this},n.set=function(t,e,n){return e.duration=0,e.parent=this,Ko(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new _l(t,e,gs(this,n),1),this},n.call=function(t,e,n){return ls(this,_l.delayedCall(0,t,e),n)},n.staggerTo=function(t,e,n,r,i,a,o){return n.duration=e,n.stagger=n.stagger||r,n.onComplete=a,n.onCompleteParams=o,n.parent=this,new _l(t,n,gs(this,i)),this},n.staggerFrom=function(t,e,n,r,i,a,o){return n.runBackwards=1,Ko(n).immediateRender=no(n.immediateRender),this.staggerTo(t,e,n,r,i,a,o)},n.staggerFromTo=function(t,e,n,r,i,a,o,s){return r.startAt=n,Ko(r).immediateRender=no(r.immediateRender),this.staggerTo(t,e,r,i,a,o,s)},n.render=function(t,e,n){var r,i,a,o,s,l,c,u,h,d,f,p,m=this._time,g=this._dirty?this.totalDuration():this._tDur,v=this._dur,y=t<=0?0:Fo(t),b=this._zTime<0!=t<0&&(this._initted||!v);if(this!==Pa&&y>g&&t>=0&&(y=g),y!==this._tTime||n||b){if(m!==this._time&&v&&(y+=this._time-m,t+=this._time-m),r=y,h=this._start,l=!(u=this._ts),b&&(v||(m=this._zTime),(t||!e)&&(this._zTime=t)),this._repeat){if(f=this._yoyo,s=v+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*s+t,e,n);if(r=Fo(y%s),y===g?(o=this._repeat,r=v):((o=~~(y/s))&&o===y/s&&(r=v,o--),r>v&&(r=v)),d=rs(this._tTime,s),!m&&this._tTime&&d!==o&&this._tTime-d*s-this._dur<=0&&(d=o),f&&1&o&&(r=v-r,p=1),o!==d&&!this._lock){var _=f&&1&d,w=_===(f&&1&o);if(o<d&&(_=!_),m=_?0:y%v?v:y,this._lock=1,this.render(m||(p?0:Fo(o*s)),e,!v)._lock=0,this._tTime=y,!e&&this.parent&&Rs(this,"onRepeat"),this.vars.repeatRefresh&&!p&&(this.invalidate()._lock=1),m&&m!==this._time||l!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(v=this._dur,g=this._tDur,w&&(this._lock=2,m=_?v:-1e-4,this.render(m,!0),this.vars.repeatRefresh&&!p&&this.invalidate()),this._lock=0,!this._ts&&!l)return this;el(this,p)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(c=function(t,e,n){var r;if(n>e)for(r=t._first;r&&r._start<=n;){if("isPause"===r.data&&r._start>e)return r;r=r._next}else for(r=t._last;r&&r._start>=n;){if("isPause"===r.data&&r._start<e)return r;r=r._prev}}(this,Fo(m),Fo(r)),c&&(y-=r-(r=c._start))),this._tTime=y,this._time=r,this._act=!u,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t,m=0),!m&&r&&!e&&!o&&(Rs(this,"onStart"),this._tTime!==y))return this;if(r>=m&&t>=0)for(i=this._first;i;){if(a=i._next,(i._act||r>=i._start)&&i._ts&&c!==i){if(i.parent!==this)return this.render(t,e,n);if(i.render(i._ts>0?(r-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(r-i._start)*i._ts,e,n),r!==this._time||!this._ts&&!l){c=0,a&&(y+=this._zTime=-1e-8);break}}i=a}else{i=this._last;for(var D=t<0?t:r;i;){if(a=i._prev,(i._act||D<=i._end)&&i._ts&&c!==i){if(i.parent!==this)return this.render(t,e,n);if(i.render(i._ts>0?(D-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(D-i._start)*i._ts,e,n||Ma&&(i._initted||i._startAt)),r!==this._time||!this._ts&&!l){c=0,a&&(y+=this._zTime=D?-1e-8:Ua);break}}i=a}}if(c&&!e&&(this.pause(),c.render(r>=m?0:-1e-8)._zTime=r>=m?1:-1,this._ts))return this._start=h,as(this),this.render(t,e,n);this._onUpdate&&!e&&Rs(this,"onUpdate",!0),(y===g&&this._tTime>=this.totalDuration()||!y&&m)&&(h!==this._start&&Math.abs(u)===Math.abs(this._ts)||this._lock||((t||!v)&&(y===g&&this._ts>0||!y&&this._ts<0)&&Jo(this,1),e||t<0&&!m||!y&&!m&&g||(Rs(this,y===g&&t>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(y<g&&this.timeScale()>0)&&this._prom())))}return this},n.add=function(t,e){var n=this;if(Qa(e)||(e=gs(this,e,t)),!(t instanceof ll)){if(oo(t))return t.forEach((function(t){return n.add(t,e)})),this;if(Xa(t))return this.addLabel(t,e);if(!Ja(t))return this;t=_l.delayedCall(0,t)}return this!==t?ls(this,t,e):this},n.getChildren=function(t,e,n,r){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===n&&(n=!0),void 0===r&&(r=-1e8);for(var i=[],a=this._first;a;)a._start>=r&&(a instanceof _l?e&&i.push(a):(n&&i.push(a),t&&i.push.apply(i,a.getChildren(!0,e,n)))),a=a._next;return i},n.getById=function(t){for(var e=this.getChildren(1,1,1),n=e.length;n--;)if(e[n].vars.id===t)return e[n]},n.remove=function(t){return Xa(t)?this.removeLabel(t):Ja(t)?this.killTweensOf(t):(Xo(this,t),t===this._recent&&(this._recent=this._last),Qo(this))},n.totalTime=function(e,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Fo($s.time-(this._ts>0?e/this._ts:(this.totalDuration()-e)/-this._ts))),t.prototype.totalTime.call(this,e,n),this._forcing=0,this):this._tTime},n.addLabel=function(t,e){return this.labels[t]=gs(this,e),this},n.removeLabel=function(t){return delete this.labels[t],this},n.addPause=function(t,e,n){var r=_l.delayedCall(0,e||wo,n);return r.data="isPause",this._hasPause=1,ls(this,r,gs(this,t))},n.removePause=function(t){var e=this._first;for(t=gs(this,t);e;)e._start===t&&"isPause"===e.data&&Jo(e),e=e._next},n.killTweensOf=function(t,e,n){for(var r=this.getTweensOf(t,n),i=r.length;i--;)ul!==r[i]&&r[i].kill(t,e);return this},n.getTweensOf=function(t,e){for(var n,r=[],i=xs(t),a=this._first,o=Qa(e);a;)a instanceof _l?Lo(a._targets,i)&&(o?(!ul||a._initted&&a._ts)&&a.globalTime(0)<=e&&a.globalTime(a.totalDuration())>e:!e||a.isActive())&&r.push(a):(n=a.getTweensOf(i,e)).length&&r.push.apply(r,n),a=a._next;return r},n.tweenTo=function(t,e){e=e||{};var n,r=this,i=gs(r,t),a=e,o=a.startAt,s=a.onStart,l=a.onStartParams,c=a.immediateRender,u=_l.to(r,qo({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:i,overwrite:"auto",duration:e.duration||Math.abs((i-(o&&"time"in o?o.time:r._time))/r.timeScale())||Ua,onStart:function(){if(r.pause(),!n){var t=e.duration||Math.abs((i-(o&&"time"in o?o.time:r._time))/r.timeScale());u._dur!==t&&fs(u,t,0,1).render(u._time,!0,!0),n=1}s&&s.apply(u,l||[])}},e));return c?u.render(0):u},n.tweenFromTo=function(t,e,n){return this.tweenTo(e,qo({startAt:{time:gs(this,t)}},n))},n.recent=function(){return this._recent},n.nextLabel=function(t){return void 0===t&&(t=this._time),Vs(this,gs(this,t))},n.previousLabel=function(t){return void 0===t&&(t=this._time),Vs(this,gs(this,t),1)},n.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+Ua)},n.shiftChildren=function(t,e,n){void 0===n&&(n=0);for(var r,i=this._first,a=this.labels;i;)i._start>=n&&(i._start+=t,i._end+=t),i=i._next;if(e)for(r in a)a[r]>=n&&(a[r]+=t);return Qo(this)},n.invalidate=function(e){var n=this._first;for(this._lock=0;n;)n.invalidate(e),n=n._next;return t.prototype.invalidate.call(this,e)},n.clear=function(t){void 0===t&&(t=!0);for(var e,n=this._first;n;)e=n._next,this.remove(n),n=e;return this._dp&&(this._time=this._tTime=this._pTime=0),t&&(this.labels={}),Qo(this)},n.totalDuration=function(t){var e,n,r,i=0,a=this,o=a._last,s=Ha;if(arguments.length)return a.timeScale((a._repeat<0?a.duration():a.totalDuration())/(a.reversed()?-t:t));if(a._dirty){for(r=a.parent;o;)e=o._prev,o._dirty&&o.totalDuration(),(n=o._start)>s&&a._sort&&o._ts&&!a._lock?(a._lock=1,ls(a,o,n-o._delay,1)._lock=0):s=n,n<0&&o._ts&&(i-=n,(!r&&!a._dp||r&&r.smoothChildTiming)&&(a._start+=n/a._ts,a._time-=n,a._tTime-=n),a.shiftChildren(-n,!1,-Infinity),s=0),o._end>i&&o._ts&&(i=o._end),o=e;fs(a,a===Pa&&a._time>i?a._time:i,1,1),a._dirty=0}return a._tDur},e.updateRoot=function(t){if(Pa._ts&&(zo(Pa,is(t,Pa)),Fa=$s.frame),$s.frame>=Oo){Oo+=Ya.autoSleep||120;var e=Pa._first;if((!e||!e._ts)&&Ya.autoSleep&&$s._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||$s.sleep()}}},e}(ll);qo(cl.prototype,{_lock:0,_hasPause:0,_forcing:0});var ul,hl,dl=function(t,e,n,r,i,a,o){var s,l,c,u,h,d,f,p,m=new Vl(this._pt,t,e,0,1,El,null,i),g=0,v=0;for(m.b=n,m.e=r,n+="",(f=~(r+="").indexOf("random("))&&(r=Ns(r)),a&&(a(p=[n,r],t,e),n=p[0],r=p[1]),l=n.match(uo)||[];s=uo.exec(r);)u=s[0],h=r.substring(g,s.index),c?c=(c+1)%5:"rgba("===h.substr(-5)&&(c=1),u!==l[v++]&&(d=parseFloat(l[v-1])||0,m._pt={_next:m._pt,p:h||1===v?h:",",s:d,c:"="===u.charAt(1)?jo(d,u)-d:parseFloat(u)-d,m:c&&c<4?Math.round:0},g=uo.lastIndex);return m.c=g<r.length?r.substring(g,r.length):"",m.fp=o,(ho.test(r)||f)&&(m.e=0),this._pt=m,m},fl=function(t,e,n,r,i,a,o,s,l,c){Ja(r)&&(r=r(i||0,t,a));var u,h=t[e],d="get"!==n?n:Ja(h)?l?t[e.indexOf("set")||!Ja(t["get"+e.substr(3)])?e:"get"+e.substr(3)](l):t[e]():h,f=Ja(h)?l?Sl:Dl:wl;if(Xa(r)&&(~r.indexOf("random(")&&(r=Ns(r)),"="===r.charAt(1)&&((u=jo(d,r)+(_s(d)||0))||0===u)&&(r=u)),!c||d!==r||hl)return isNaN(d*r)||""===r?(!h&&!(e in t)&&yo(e,r),dl.call(this,t,e,d,r,f,s||Ya.stringFilter,l)):(u=new Vl(this._pt,t,e,+d||0,r-(d||0),"boolean"==typeof h?Cl:kl,0,f),l&&(u.fp=l),o&&u.modifier(o,this,t),this._pt=u)},pl=function(t,e,n,r,i,a){var o,s,l,c;if(Eo[t]&&!1!==(o=new Eo[t]).init(i,o.rawVars?e[t]:function(t,e,n,r,i){if(Ja(t)&&(t=vl(t,i,e,n,r)),!eo(t)||t.style&&t.nodeType||oo(t)||ao(t))return Xa(t)?vl(t,i,e,n,r):t;var a,o={};for(a in t)o[a]=vl(t[a],i,e,n,r);return o}(e[t],r,i,a,n),n,r,a)&&(n._pt=s=new Vl(n._pt,i,t,0,1,o.render,o,0,o.priority),n!==ja))for(l=n._ptLookup[n._targets.indexOf(i)],c=o._props.length;c--;)l[o._props[c]]=s;return o},ml=function t(e,n,r){var i,a,o,s,l,c,u,h,d,f,p,m,g,v=e.vars,y=v.ease,b=v.startAt,_=v.immediateRender,w=v.lazy,D=v.onUpdate,S=v.runBackwards,x=v.yoyoEase,T=v.keyframes,k=v.autoRevert,C=e._dur,E=e._startAt,A=e._targets,O=e.parent,M=O&&"nested"===O.data?O.vars.targets:A,N="auto"===e._overwrite&&!Oa,P=e.timeline;if(P&&(!T||!y)&&(y="none"),e._ease=nl(y,za.ease),e._yEase=x?tl(nl(!0===x?y:x,za.ease)):0,x&&e._yoyo&&!e._repeat&&(x=e._yEase,e._yEase=e._ease,e._ease=x),e._from=!P&&!!v.runBackwards,!P||T&&!v.stagger){if(m=(h=A[0]?Vo(A[0]).harness:0)&&v[h.prop],i=$o(v,To),E&&(E._zTime<0&&E.progress(1),n<0&&S&&_&&!k?E.render(-1,!0):E.revert(S&&C?So:Do),E._lazy=0),b){if(Jo(e._startAt=_l.set(A,qo({data:"isStart",overwrite:!1,parent:O,immediateRender:!0,lazy:!E&&no(w),startAt:null,delay:0,onUpdate:D&&function(){return Rs(e,"onUpdate")},stagger:0},b))),e._startAt._dp=0,e._startAt._sat=e,n<0&&(Ma||!_&&!k)&&e._startAt.revert(So),_&&C&&n<=0&&r<=0)return void(n&&(e._zTime=n))}else if(S&&C&&!E)if(n&&(_=!1),o=qo({overwrite:!1,data:"isFromStart",lazy:_&&!E&&no(w),immediateRender:_,stagger:0,parent:O},i),m&&(o[h.prop]=m),Jo(e._startAt=_l.set(A,o)),e._startAt._dp=0,e._startAt._sat=e,n<0&&(Ma?e._startAt.revert(So):e._startAt.render(-1,!0)),e._zTime=n,_){if(!n)return}else t(e._startAt,Ua,Ua);for(e._pt=e._ptCache=0,w=C&&no(w)||w&&!C,a=0;a<A.length;a++){if(u=(l=A[a])._gsap||Po(A)[a]._gsap,e._ptLookup[a]=f={},Co[u.id]&&ko.length&&Yo(),p=M===A?a:M.indexOf(l),h&&!1!==(d=new h).init(l,m||i,e,p,M)&&(e._pt=s=new Vl(e._pt,l,d.name,0,1,d.render,d,0,d.priority),d._props.forEach((function(t){f[t]=s})),d.priority&&(c=1)),!h||m)for(o in i)Eo[o]&&(d=pl(o,i,e,p,l,M))?d.priority&&(c=1):f[o]=s=fl.call(e,l,o,"get",i[o],p,M,0,v.stringFilter);e._op&&e._op[a]&&e.kill(l,e._op[a]),N&&e._pt&&(ul=e,Pa.killTweensOf(l,f,e.globalTime(n)),g=!e.parent,ul=0),e._pt&&w&&(Co[u.id]=1)}c&&Pl(e),e._onInit&&e._onInit(e)}e._onUpdate=D,e._initted=(!e._op||e._pt)&&!g,T&&n<=0&&P.render(Ha,!0,!0)},gl=function(t,e,n,r){var i,a,o=e.ease||r||"power1.inOut";if(oo(e))a=n[t]||(n[t]=[]),e.forEach((function(t,n){return a.push({t:n/(e.length-1)*100,v:t,e:o})}));else for(i in e)a=n[i]||(n[i]=[]),"ease"===i||a.push({t:parseFloat(t),v:e[i],e:o})},vl=function(t,e,n,r,i){return Ja(t)?t.call(e,n,r,i):Xa(t)&&~t.indexOf("random(")?Ns(t):t},yl=No+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",bl={};Bo(yl+",id,stagger,delay,duration,paused,scrollTrigger",(function(t){return bl[t]=1}));var _l=function(t){function e(e,n,r,i){var a;"number"==typeof n&&(r.duration=n,n=r,r=null);var o,s,l,c,u,h,d,f,p=(a=t.call(this,i?n:Ko(n))||this).vars,m=p.duration,g=p.delay,v=p.immediateRender,y=p.stagger,b=p.overwrite,_=p.keyframes,w=p.defaults,D=p.scrollTrigger,S=p.yoyoEase,x=n.parent||Pa,T=(oo(e)||ao(e)?Qa(e[0]):"length"in n)?[e]:xs(e);if(a._targets=T.length?Po(T):bo("GSAP target "+e+" not found. https://gsap.com",!Ya.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=b,_||y||io(m)||io(g)){if(n=a.vars,(o=a.timeline=new cl({data:"nested",defaults:w||{},targets:x&&"nested"===x.data?x.vars.targets:T})).kill(),o.parent=o._dp=Ea(a),o._start=0,y||io(m)||io(g)){if(c=T.length,d=y&&Cs(y),eo(y))for(u in y)~yl.indexOf(u)&&(f||(f={}),f[u]=y[u]);for(s=0;s<c;s++)(l=$o(n,bl)).stagger=0,S&&(l.yoyoEase=S),f&&Go(l,f),h=T[s],l.duration=+vl(m,Ea(a),s,h,T),l.delay=(+vl(g,Ea(a),s,h,T)||0)-a._delay,!y&&1===c&&l.delay&&(a._delay=g=l.delay,a._start+=g,l.delay=0),o.to(h,l,d?d(s,h,T):0),o._ease=Zs.none;o.duration()?m=g=0:a.timeline=0}else if(_){Ko(qo(o.vars.defaults,{ease:"none"})),o._ease=nl(_.ease||n.ease||"none");var k,C,E,A=0;if(oo(_))_.forEach((function(t){return o.to(T,t,">")})),o.duration();else{for(u in l={},_)"ease"===u||"easeEach"===u||gl(u,_[u],l,_.easeEach);for(u in l)for(k=l[u].sort((function(t,e){return t.t-e.t})),A=0,s=0;s<k.length;s++)(E={ease:(C=k[s]).e,duration:(C.t-(s?k[s-1].t:0))/100*m})[u]=C.v,o.to(T,E,A),A+=E.duration;o.duration()<m&&o.to({},{duration:m-o.duration()})}}m||a.duration(m=o.duration())}else a.timeline=0;return!0!==b||Oa||(ul=Ea(a),Pa.killTweensOf(T),ul=0),ls(x,Ea(a),r),n.reversed&&a.reverse(),n.paused&&a.paused(!0),(v||!m&&!_&&a._start===Fo(x._time)&&no(v)&&es(Ea(a))&&"nested"!==x.data)&&(a._tTime=-1e-8,a.render(Math.max(0,-g)||0)),D&&cs(Ea(a),D),a}Aa(e,t);var n=e.prototype;return n.render=function(t,e,n){var r,i,a,o,s,l,c,u,h,d=this._time,f=this._tDur,p=this._dur,m=t<0,g=t>f-Ua&&!m?f:t<Ua?0:t;if(p){if(g!==this._tTime||!t||n||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==m){if(r=g,u=this.timeline,this._repeat){if(o=p+this._rDelay,this._repeat<-1&&m)return this.totalTime(100*o+t,e,n);if(r=Fo(g%o),g===f?(a=this._repeat,r=p):((a=~~(g/o))&&a===Fo(g/o)&&(r=p,a--),r>p&&(r=p)),(l=this._yoyo&&1&a)&&(h=this._yEase,r=p-r),s=rs(this._tTime,o),r===d&&!n&&this._initted&&a===s)return this._tTime=g,this;a!==s&&(u&&this._yEase&&el(u,l),this.vars.repeatRefresh&&!l&&!this._lock&&this._time!==p&&this._initted&&(this._lock=n=1,this.render(Fo(o*a),!0).invalidate()._lock=0))}if(!this._initted){if(us(this,m?t:r,n,e,g))return this._tTime=0,this;if(!(d===this._time||n&&this.vars.repeatRefresh&&a!==s))return this;if(p!==this._dur)return this.render(t,e,n)}if(this._tTime=g,this._time=r,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=c=(h||this._ease)(r/p),this._from&&(this.ratio=c=1-c),r&&!d&&!e&&!a&&(Rs(this,"onStart"),this._tTime!==g))return this;for(i=this._pt;i;)i.r(c,i.d),i=i._next;u&&u.render(t<0?t:!r&&l?-1e-8:u._dur*u._ease(r/this._dur),e,n)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(m&&ts(this,t,0,n),Rs(this,"onUpdate")),this._repeat&&a!==s&&this.vars.onRepeat&&!e&&this.parent&&Rs(this,"onRepeat"),g!==this._tDur&&g||this._tTime!==g||(m&&!this._onUpdate&&ts(this,t,0,!0),(t||!p)&&(g===this._tDur&&this._ts>0||!g&&this._ts<0)&&Jo(this,1),e||m&&!d||!(g||d||l)||(Rs(this,g===f?"onComplete":"onReverseComplete",!0),this._prom&&!(g<f&&this.timeScale()>0)&&this._prom()))}}else!function(t,e,n,r){var i,a,o,s=t.ratio,l=e<0||!e&&(!t._start&&hs(t)&&(t._initted||!ds(t))||(t._ts<0||t._dp._ts<0)&&!ds(t))?0:1,c=t._rDelay,u=0;if(c&&t._repeat&&(u=bs(0,t._tDur,e),a=rs(u,c),t._yoyo&&1&a&&(l=1-l),a!==rs(t._tTime,c)&&(s=1-l,t.vars.repeatRefresh&&t._initted&&t.invalidate())),l!==s||Ma||r||t._zTime===Ua||!e&&t._zTime){if(!t._initted&&us(t,e,r,n,u))return;for(o=t._zTime,t._zTime=e||(n?Ua:0),n||(n=e&&!o),t.ratio=l,t._from&&(l=1-l),t._time=0,t._tTime=u,i=t._pt;i;)i.r(l,i.d),i=i._next;e<0&&ts(t,e,0,!0),t._onUpdate&&!n&&Rs(t,"onUpdate"),u&&t._repeat&&!n&&t.parent&&Rs(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===l&&(l&&Jo(t,1),n||Ma||(Rs(t,l?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,n);return this},n.targets=function(){return this._targets},n.invalidate=function(e){return(!e||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(e),t.prototype.invalidate.call(this,e)},n.resetTo=function(t,e,n,r,i){La||$s.wake(),this._ts||this.play();var a=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||ml(this,a),function(t,e,n,r,i,a,o,s){var l,c,u,h,d=(t._pt&&t._ptCache||(t._ptCache={}))[e];if(!d)for(d=t._ptCache[e]=[],u=t._ptLookup,h=t._targets.length;h--;){if((l=u[h][e])&&l.d&&l.d._pt)for(l=l.d._pt;l&&l.p!==e&&l.fp!==e;)l=l._next;if(!l)return hl=1,t.vars[e]="+=0",ml(t,o),hl=0,s?bo(e+" not eligible for reset"):1;d.push(l)}for(h=d.length;h--;)(l=(c=d[h])._pt||c).s=!r&&0!==r||i?l.s+(r||0)+a*l.c:r,l.c=n-l.s,c.e&&(c.e=Io(n)+_s(c.e)),c.b&&(c.b=l.s+_s(c.b))}(this,t,e,n,r,this._ease(a/this._dur),a,i)?this.resetTo(t,e,n,r,1):(os(this,0),this.parent||Zo(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},n.kill=function(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e))return this._lazy=this._pt=0,this.parent?Bs(this):this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,ul&&!0!==ul.vars.overwrite)._first||Bs(this),this.parent&&n!==this.timeline.totalDuration()&&fs(this,this._dur*this.timeline._tDur/n,0,1),this}var r,i,a,o,s,l,c,u=this._targets,h=t?xs(t):u,d=this._ptLookup,f=this._pt;if((!e||"all"===e)&&function(t,e){for(var n=t.length,r=n===e.length;r&&n--&&t[n]===e[n];);return n<0}(u,h))return"all"===e&&(this._pt=0),Bs(this);for(r=this._op=this._op||[],"all"!==e&&(Xa(e)&&(s={},Bo(e,(function(t){return s[t]=1})),e=s),e=function(t,e){var n,r,i,a,o=t[0]?Vo(t[0]).harness:0,s=o&&o.aliases;if(!s)return e;for(r in n=Go({},e),s)if(r in n)for(i=(a=s[r].split(",")).length;i--;)n[a[i]]=n[r];return n}(u,e)),c=u.length;c--;)if(~h.indexOf(u[c]))for(s in i=d[c],"all"===e?(r[c]=e,o=i,a={}):(a=r[c]=r[c]||{},o=e),o)(l=i&&i[s])&&("kill"in l.d&&!0!==l.d.kill(s)||Xo(this,l,"_pt"),delete i[s]),"all"!==a&&(a[s]=1);return this._initted&&!this._pt&&f&&Bs(this),this},e.to=function(t,n){return new e(t,n,arguments[2])},e.from=function(t,e){return vs(1,arguments)},e.delayedCall=function(t,n,r,i){return new e(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:n,onReverseComplete:n,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:i})},e.fromTo=function(t,e,n){return vs(2,arguments)},e.set=function(t,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new e(t,n)},e.killTweensOf=function(t,e,n){return Pa.killTweensOf(t,e,n)},e}(ll);qo(_l.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),Bo("staggerTo,staggerFrom,staggerFromTo",(function(t){_l[t]=function(){var e=new cl,n=ws.call(arguments,0);return n.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,n)}}));var wl=function(t,e,n){return t[e]=n},Dl=function(t,e,n){return t[e](n)},Sl=function(t,e,n,r){return t[e](r.fp,n)},xl=function(t,e,n){return t.setAttribute(e,n)},Tl=function(t,e){return Ja(t[e])?Dl:to(t[e])&&t.setAttribute?xl:wl},kl=function(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},Cl=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},El=function(t,e){var n=e._pt,r="";if(!t&&e.b)r=e.b;else if(1===t&&e.e)r=e.e;else{for(;n;)r=n.p+(n.m?n.m(n.s+n.c*t):Math.round(1e4*(n.s+n.c*t))/1e4)+r,n=n._next;r+=e.c}e.set(e.t,e.p,r,e)},Al=function(t,e){for(var n=e._pt;n;)n.r(t,n.d),n=n._next},Ol=function(t,e,n,r){for(var i,a=this._pt;a;)i=a._next,a.p===r&&a.modifier(t,e,n),a=i},Ml=function(t){for(var e,n,r=this._pt;r;)n=r._next,r.p===t&&!r.op||r.op===t?Xo(this,r,"_pt"):r.dep||(e=1),r=n;return!e},Nl=function(t,e,n,r){r.mSet(t,e,r.m.call(r.tween,n,r.mt),r)},Pl=function(t){for(var e,n,r,i,a=t._pt;a;){for(e=a._next,n=r;n&&n.pr>a.pr;)n=n._next;(a._prev=n?n._prev:i)?a._prev._next=a:r=a,(a._next=n)?n._prev=a:i=a,a=e}t._pt=r},Vl=function(){function t(t,e,n,r,i,a,o,s,l){this.t=e,this.s=r,this.c=i,this.p=n,this.r=a||kl,this.d=o||this,this.set=s||wl,this.pr=l||0,this._next=t,t&&(t._prev=this)}return t.prototype.modifier=function(t,e,n){this.mSet=this.mSet||this.set,this.set=Nl,this.m=t,this.mt=n,this.tween=e},t}();Bo(No+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",(function(t){return To[t]=1})),mo.TweenMax=mo.TweenLite=_l,mo.TimelineLite=mo.TimelineMax=cl,Pa=new cl({sortChildren:!1,defaults:za,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),Ya.stringFilter=Ws;var Rl=[],Bl={},Il=[],Fl=0,jl=0,Ll=function(t){return(Bl[t]||Il).map((function(t){return t()}))},Yl=function(){var t=Date.now(),e=[];t-Fl>2&&(Ll("matchMediaInit"),Rl.forEach((function(t){var n,r,i,a,o=t.queries,s=t.conditions;for(r in o)(n=Va.matchMedia(o[r]).matches)&&(i=1),n!==s[r]&&(s[r]=n,a=1);a&&(t.revert(),i&&e.push(t))})),Ll("matchMediaRevert"),e.forEach((function(t){return t.onMatch(t,(function(e){return t.add(null,e)}))})),Fl=t,Ll("matchMedia"))},zl=function(){function t(t,e){this.selector=e&&Ts(e),this.data=[],this._r=[],this.isReverted=!1,this.id=jl++,t&&this.add(t)}var e=t.prototype;return e.add=function(t,e,n){Ja(t)&&(n=e,e=t,t=Ja);var r=this,i=function(){var t,i=Na,a=r.selector;return i&&i!==r&&i.data.push(r),n&&(r.selector=Ts(n)),Na=r,t=e.apply(r,arguments),Ja(t)&&r._r.push(t),Na=i,r.selector=a,r.isReverted=!1,t};return r.last=i,t===Ja?i(r,(function(t){return r.add(null,t)})):t?r[t]=i:i},e.ignore=function(t){var e=Na;Na=null,t(this),Na=e},e.getTweens=function(){var e=[];return this.data.forEach((function(n){return n instanceof t?e.push.apply(e,n.getTweens()):n instanceof _l&&!(n.parent&&"nested"===n.parent.data)&&e.push(n)})),e},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(t,e){var n=this;if(t?function(){for(var e,r=n.getTweens(),i=n.data.length;i--;)"isFlip"===(e=n.data[i]).data&&(e.revert(),e.getChildren(!0,!0,!1).forEach((function(t){return r.splice(r.indexOf(t),1)})));for(r.map((function(t){return{g:t._dur||t._delay||t._sat&&!t._sat.vars.immediateRender?t.globalTime(0):-1/0,t:t}})).sort((function(t,e){return e.g-t.g||-1/0})).forEach((function(e){return e.t.revert(t)})),i=n.data.length;i--;)(e=n.data[i])instanceof cl?"nested"!==e.data&&(e.scrollTrigger&&e.scrollTrigger.revert(),e.kill()):!(e instanceof _l)&&e.revert&&e.revert(t);n._r.forEach((function(e){return e(t,n)})),n.isReverted=!0}():this.data.forEach((function(t){return t.kill&&t.kill()})),this.clear(),e)for(var r=Rl.length;r--;)Rl[r].id===this.id&&Rl.splice(r,1)},e.revert=function(t){this.kill(t||{})},t}(),Hl=function(){function t(t){this.contexts=[],this.scope=t}var e=t.prototype;return e.add=function(t,e,n){eo(t)||(t={matches:t});var r,i,a,o=new zl(0,n||this.scope),s=o.conditions={};for(i in Na&&!o.selector&&(o.selector=Na.selector),this.contexts.push(o),e=o.add("onMatch",e),o.queries=t,t)"all"===i?a=1:(r=Va.matchMedia(t[i]))&&(Rl.indexOf(o)<0&&Rl.push(o),(s[i]=r.matches)&&(a=1),r.addListener?r.addListener(Yl):r.addEventListener("change",Yl));return a&&e(o,(function(t){return o.add(null,t)})),this},e.revert=function(t){this.kill(t||{})},e.kill=function(t){this.contexts.forEach((function(e){return e.kill(t,!0)}))},t}(),Ul={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e.forEach((function(t){return Fs(t)}))},timeline:function(t){return new cl(t)},getTweensOf:function(t,e){return Pa.getTweensOf(t,e)},getProperty:function(t,e,n,r){Xa(t)&&(t=xs(t)[0]);var i=Vo(t||{}).get,a=n?Uo:Ho;return"native"===n&&(n=""),t?e?a((Eo[e]&&Eo[e].get||i)(t,e,n,r)):function(e,n,r){return a((Eo[e]&&Eo[e].get||i)(t,e,n,r))}:t},quickSetter:function(t,e,n){if((t=xs(t)).length>1){var r=t.map((function(t){return Wl.quickSetter(t,e,n)})),i=r.length;return function(t){for(var e=i;e--;)r[e](t)}}t=t[0]||{};var a=Eo[e],o=Vo(t),s=o.harness&&(o.harness.aliases||{})[e]||e,l=a?function(e){var r=new a;ja._pt=0,r.init(t,n?e+n:e,ja,0,[t]),r.render(1,r),ja._pt&&Al(1,ja)}:o.set(t,s);return a?l:function(e){return l(t,s,n?e+n:e,o,1)}},quickTo:function(t,e,n){var r,i=Wl.to(t,Go(((r={})[e]="+=0.1",r.paused=!0,r),n||{})),a=function(t,n,r){return i.resetTo(e,t,n,r)};return a.tween=i,a},isTweening:function(t){return Pa.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=nl(t.ease,za.ease)),Wo(za,t||{})},config:function(t){return Wo(Ya,t||{})},registerEffect:function(t){var e=t.name,n=t.effect,r=t.plugins,i=t.defaults,a=t.extendTimeline;(r||"").split(",").forEach((function(t){return t&&!Eo[t]&&!mo[t]&&bo(e+" effect requires "+t+" plugin.")})),Ao[e]=function(t,e,r){return n(xs(t),qo(e||{},i),r)},a&&(cl.prototype[e]=function(t,n,r){return this.add(Ao[e](t,eo(n)?n:(r=n)&&{},this),r)})},registerEase:function(t,e){Zs[t]=nl(e)},parseEase:function(t,e){return arguments.length?nl(t,e):Zs},getById:function(t){return Pa.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var n,r,i=new cl(t);for(i.smoothChildTiming=no(t.smoothChildTiming),Pa.remove(i),i._dp=0,i._time=i._tTime=Pa._time,n=Pa._first;n;)r=n._next,!e&&!n._dur&&n instanceof _l&&n.vars.onComplete===n._targets[0]||ls(i,n,n._start-n._delay),n=r;return ls(Pa,i,0),i},context:function(t,e){return t?new zl(t,e):Na},matchMedia:function(t){return new Hl(t)},matchMediaRefresh:function(){return Rl.forEach((function(t){var e,n,r=t.conditions;for(n in r)r[n]&&(r[n]=!1,e=1);e&&t.revert()}))||Yl()},addEventListener:function(t,e){var n=Bl[t]||(Bl[t]=[]);~n.indexOf(e)||n.push(e)},removeEventListener:function(t,e){var n=Bl[t],r=n&&n.indexOf(e);r>=0&&n.splice(r,1)},utils:{wrap:function t(e,n,r){var i=n-e;return oo(e)?Ms(e,t(0,e.length),n):ys(r,(function(t){return(i+(t-e)%i)%i+e}))},wrapYoyo:function t(e,n,r){var i=n-e,a=2*i;return oo(e)?Ms(e,t(0,e.length-1),n):ys(r,(function(t){return e+((t=(a+(t-e)%a)%a||0)>i?a-t:t)}))},distribute:Cs,random:Os,snap:As,normalize:function(t,e,n){return Ps(t,e,0,1,n)},getUnit:_s,clamp:function(t,e,n){return ys(n,(function(n){return bs(t,e,n)}))},splitColor:zs,toArray:xs,selector:Ts,mapRange:Ps,pipe:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return e.reduce((function(t,e){return e(t)}),t)}},unitize:function(t,e){return function(n){return t(parseFloat(n))+(e||_s(n))}},interpolate:function t(e,n,r,i){var a=isNaN(e+n)?0:function(t){return(1-t)*e+t*n};if(!a){var o,s,l,c,u,h=Xa(e),d={};if(!0===r&&(i=1)&&(r=null),h)e={p:e},n={p:n};else if(oo(e)&&!oo(n)){for(l=[],c=e.length,u=c-2,s=1;s<c;s++)l.push(t(e[s-1],e[s]));c--,a=function(t){t*=c;var e=Math.min(u,~~t);return l[e](t-e)},r=n}else i||(e=Go(oo(e)?[]:{},e));if(!l){for(o in n)fl.call(d,e,o,"get",n[o]);a=function(t){return Al(t,d)||(h?e.p:e)}}}return ys(r,a)},shuffle:ks},install:vo,effects:Ao,ticker:$s,updateRoot:cl.updateRoot,plugins:Eo,globalTimeline:Pa,core:{PropTween:Vl,globals:_o,Tween:_l,Timeline:cl,Animation:ll,getCache:Vo,_removeLinkedListItem:Xo,reverting:function(){return Ma},context:function(t){return t&&Na&&(Na.data.push(t),t._ctx=Na),Na},suppressOverwrites:function(t){return Oa=t}}};Bo("to,from,fromTo,delayedCall,set,killTweensOf",(function(t){return Ul[t]=_l[t]})),$s.add(cl.updateRoot),ja=Ul.to({},{duration:0});var ql=function(t,e){for(var n=t._pt;n&&n.p!==e&&n.op!==e&&n.fp!==e;)n=n._next;return n},Gl=function(t,e){return{name:t,rawVars:1,init:function(t,n,r){r._onInit=function(t){var r,i;if(Xa(n)&&(r={},Bo(n,(function(t){return r[t]=1})),n=r),e){for(i in r={},n)r[i]=e(n[i]);n=r}!function(t,e){var n,r,i,a=t._targets;for(n in e)for(r=a.length;r--;)(i=t._ptLookup[r][n])&&(i=i.d)&&(i._pt&&(i=ql(i,n)),i&&i.modifier&&i.modifier(e[n],t,a[r],n))}(t,n)}}}},Wl=Ul.registerPlugin({name:"attr",init:function(t,e,n,r,i){var a,o,s;for(a in this.tween=n,e)s=t.getAttribute(a)||"",(o=this.add(t,"setAttribute",(s||0)+"",e[a],r,i,0,0,a)).op=a,o.b=s,this._props.push(a)},render:function(t,e){for(var n=e._pt;n;)Ma?n.set(n.t,n.p,n.b,n):n.r(t,n.d),n=n._next}},{name:"endArray",init:function(t,e){for(var n=e.length;n--;)this.add(t,n,t[n]||0,e[n],0,0,0,0,0,1)}},Gl("roundProps",Es),Gl("modifiers"),Gl("snap",As))||Ul;_l.version=cl.version=Wl.version="3.12.4",Ia=1,ro()&&Ks(),Zs.Power0,Zs.Power1,Zs.Power2,Zs.Power3,Zs.Power4,Zs.Linear,Zs.Quad,Zs.Cubic,Zs.Quart,Zs.Quint,Zs.Strong,Zs.Elastic,Zs.Back,Zs.SteppedEase,Zs.Bounce,Zs.Sine,Zs.Expo,Zs.Circ;
|
|
42
42
|
/*!
|
|
43
|
-
* CSSPlugin 3.12.
|
|
43
|
+
* CSSPlugin 3.12.4
|
|
44
44
|
* https://gsap.com
|
|
45
45
|
*
|
|
46
|
-
* Copyright 2008-
|
|
46
|
+
* Copyright 2008-2023, GreenSock. All rights reserved.
|
|
47
47
|
* Subject to the terms at https://gsap.com/standard-license or for
|
|
48
48
|
* Club GSAP members, the agreement issued with that membership.
|
|
49
49
|
* @author: Jack Doyle, jack@greensock.com
|
|
50
50
|
*/
|
|
51
|
-
var Wl,$l,Kl,Zl,Xl,Jl,Ql,tc,ec={},nc=180/Math.PI,rc=Math.PI/180,ic=Math.atan2,ac=/([A-Z])/g,oc=/(left|right|width|margin|padding|x)/i,sc=/[\s,\(]\S/,lc={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},cc=function(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},uc=function(t,e){return e.set(e.t,e.p,1===t?e.e:Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},hc=function(t,e){return e.set(e.t,e.p,t?Math.round(1e4*(e.s+e.c*t))/1e4+e.u:e.b,e)},dc=function(t,e){var n=e.s+e.c*t;e.set(e.t,e.p,~~(n+(n<0?-.5:.5))+e.u,e)},fc=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},pc=function(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)},mc=function(t,e,n){return t.style[e]=n},gc=function(t,e,n){return t.style.setProperty(e,n)},vc=function(t,e,n){return t._gsap[e]=n},yc=function(t,e,n){return t._gsap.scaleX=t._gsap.scaleY=n},bc=function(t,e,n,r,i){var a=t._gsap;a.scaleX=a.scaleY=n,a.renderTransform(i,a)},_c=function(t,e,n,r,i){var a=t._gsap;a[e]=n,a.renderTransform(i,a)},wc="transform",Dc=wc+"Origin",Sc=function t(e,n){var r=this,i=this.target,a=i.style,o=i._gsap;if(e in ec&&a){if(this.tfm=this.tfm||{},"transform"===e)return lc.transform.split(",").forEach((function(e){return t.call(r,e,n)}));if(~(e=lc[e]||e).indexOf(",")?e.split(",").forEach((function(t){return r.tfm[t]=Yc(i,t)})):this.tfm[e]=o.x?o[e]:Yc(i,e),e===Dc&&(this.tfm.zOrigin=o.zOrigin),this.props.indexOf(wc)>=0)return;o.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(Dc,n,"")),e=wc}(a||n)&&this.props.push(e,n,a[e])},xc=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},Tc=function(){var t,e,n=this.props,r=this.target,i=r.style,a=r._gsap;for(t=0;t<n.length;t+=3)n[t+1]?r[n[t]]=n[t+2]:n[t+2]?i[n[t]]=n[t+2]:i.removeProperty("--"===n[t].substr(0,2)?n[t]:n[t].replace(ac,"-$1").toLowerCase());if(this.tfm){for(e in this.tfm)a[e]=this.tfm[e];a.svg&&(a.renderTransform(),r.setAttribute("data-svg-origin",this.svgo||"")),(t=Ql())&&t.isStart||i[wc]||(xc(i),a.zOrigin&&i[Dc]&&(i[Dc]+=" "+a.zOrigin+"px",a.zOrigin=0,a.renderTransform()),a.uncache=1)}},kc=function(t,e){var n={target:t,props:[],revert:Tc,save:Sc};return t._gsap||Gl.core.getCache(t),e&&e.split(",").forEach((function(t){return n.save(t)})),n},Cc=function(t,e){var n=$l.createElementNS?$l.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):$l.createElement(t);return n&&n.style?n:$l.createElement(t)},Ec=function t(e,n,r){var i=getComputedStyle(e);return i[n]||i.getPropertyValue(n.replace(ac,"-$1").toLowerCase())||i.getPropertyValue(n)||!r&&t(e,Oc(n)||n,1)||""},Ac="O,Moz,ms,Ms,Webkit".split(","),Oc=function(t,e,n){var r=(e||Xl).style,i=5;if(t in r&&!n)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);i--&&!(Ac[i]+t in r););return i<0?null:(3===i?"ms":i>=0?Ac[i]:"")+t},Mc=function(){"undefined"!=typeof window&&window.document&&(Wl=window,$l=Wl.document,Kl=$l.documentElement,Xl=Cc("div")||{style:{}},Cc("div"),wc=Oc(wc),Dc=wc+"Origin",Xl.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",tc=!!Oc("perspective"),Ql=Gl.core.reverting,Zl=1)},Nc=function t(e){var n,r=Cc("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=this.parentNode,a=this.nextSibling,o=this.style.cssText;if(Kl.appendChild(r),r.appendChild(this),this.style.display="block",e)try{n=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=t}catch(t){}else this._gsapBBox&&(n=this._gsapBBox());return i&&(a?i.insertBefore(this,a):i.appendChild(this)),Kl.removeChild(r),this.style.cssText=o,n},Pc=function(t,e){for(var n=e.length;n--;)if(t.hasAttribute(e[n]))return t.getAttribute(e[n])},Vc=function(t){var e;try{e=t.getBBox()}catch(n){e=Nc.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===Nc||(e=Nc.call(t,!0)),!e||e.width||e.x||e.y?e:{x:+Pc(t,["x","cx","x1"])||0,y:+Pc(t,["y","cy","y1"])||0,width:0,height:0}},Rc=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!Vc(t))},Bc=function(t,e){if(e){var n,r=t.style;e in ec&&e!==Dc&&(e=wc),r.removeProperty?("ms"!==(n=e.substr(0,2))&&"webkit"!==e.substr(0,6)||(e="-"+e),r.removeProperty("--"===n?e:e.replace(ac,"-$1").toLowerCase())):r.removeAttribute(e)}},Ic=function(t,e,n,r,i,a){var o=new Pl(t._pt,e,n,0,1,a?pc:fc);return t._pt=o,o.b=r,o.e=i,t._props.push(n),o},Fc={deg:1,rad:1,turn:1},jc={grid:1,flex:1},Lc=function t(e,n,r,i){var a,o,s,l,c=parseFloat(r)||0,u=(r+"").trim().substr((c+"").length)||"px",h=Xl.style,d=oc.test(n),f="svg"===e.tagName.toLowerCase(),p=(f?"client":"offset")+(d?"Width":"Height"),m=100,g="px"===i,v="%"===i;if(i===u||!c||Fc[i]||Fc[u])return c;if("px"!==u&&!g&&(c=t(e,n,r,"px")),l=e.getCTM&&Rc(e),(v||"%"===u)&&(ec[n]||~n.indexOf("adius")))return a=l?e.getBBox()[d?"width":"height"]:e[p],Bo(v?c/a*m:c/100*a);if(h[d?"width":"height"]=m+(g?u:i),o=~n.indexOf("adius")||"em"===i&&e.appendChild&&!f?e:e.parentNode,l&&(o=(e.ownerSVGElement||{}).parentNode),o&&o!==$l&&o.appendChild||(o=$l.body),(s=o._gsap)&&v&&s.width&&d&&s.time===Ws.time&&!s.uncache)return Bo(c/s.width*m);if(!v||"height"!==n&&"width"!==n)(v||"%"===u)&&!jc[Ec(o,"display")]&&(h.position=Ec(e,"position")),o===e&&(h.position="static"),o.appendChild(Xl),a=Xl[p],o.removeChild(Xl),h.position="absolute";else{var y=e.style[n];e.style[n]=m+i,a=e[p],y?e.style[n]=y:Bc(e,n)}return d&&v&&((s=Po(o)).time=Ws.time,s.width=o[p]),Bo(g?a*c/m:a&&c?m/a*c:0)},Yc=function(t,e,n,r){var i;return Zl||Mc(),e in lc&&"transform"!==e&&~(e=lc[e]).indexOf(",")&&(e=e.split(",")[0]),ec[e]&&"transform"!==e?(i=Qc(t,r),i="transformOrigin"!==e?i[e]:i.svg?i.origin:tu(Ec(t,Dc))+" "+i.zOrigin+"px"):(!(i=t.style[e])||"auto"===i||r||~(i+"").indexOf("calc("))&&(i=Gc[e]&&Gc[e](t,e,n)||Ec(t,e)||Vo(t,e)||("opacity"===e?1:0)),n&&!~(i+"").trim().indexOf(" ")?Lc(t,e,i,n)+n:i},zc=function(t,e,n,r){if(!n||"none"===n){var i=Oc(e,t,1),a=i&&Ec(t,i,1);a&&a!==n?(e=i,n=a):"borderColor"===e&&(n=Ec(t,"borderTopColor"))}var o,s,l,c,u,h,d,f,p,m,g,v=new Pl(this._pt,t.style,e,0,1,Cl),y=0,b=0;if(v.b=n,v.e=r,n+="","auto"===(r+="")&&(h=t.style[e],t.style[e]=r,r=Ec(t,e)||r,h?t.style[e]=h:Bc(t,e)),Gs(o=[n,r]),r=o[1],l=(n=o[0]).match(lo)||[],(r.match(lo)||[]).length){for(;s=lo.exec(r);)d=s[0],p=r.substring(y,s.index),u?u=(u+1)%5:"rgba("!==p.substr(-5)&&"hsla("!==p.substr(-5)||(u=1),d!==(h=l[b++]||"")&&(c=parseFloat(h)||0,g=h.substr((c+"").length),"="===d.charAt(1)&&(d=Fo(c,d)+g),f=parseFloat(d),m=d.substr((f+"").length),y=lo.lastIndex-m.length,m||(m=m||La.units[e]||g,y===r.length&&(r+=m,v.e+=m)),g!==m&&(c=Lc(t,e,h,m)||0),v._pt={_next:v._pt,p:p||1===b?p:",",s:c,c:f-c,m:u&&u<4||"zIndex"===e?Math.round:0});v.c=y<r.length?r.substring(y,r.length):""}else v.r="display"===e&&"none"===r?pc:fc;return uo.test(r)&&(v.e=0),this._pt=v,v},Hc={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Uc=function(t){var e=t.split(" "),n=e[0],r=e[1]||"50%";return"top"!==n&&"bottom"!==n&&"left"!==r&&"right"!==r||(t=n,n=r,r=t),e[0]=Hc[n]||n,e[1]=Hc[r]||r,e.join(" ")},qc=function(t,e){if(e.tween&&e.tween._time===e.tween._dur){var n,r,i,a=e.t,o=a.style,s=e.u,l=a._gsap;if("all"===s||!0===s)o.cssText="",r=1;else for(i=(s=s.split(",")).length;--i>-1;)n=s[i],ec[n]&&(r=1,n="transformOrigin"===n?Dc:wc),Bc(a,n);r&&(Bc(a,wc),l&&(l.svg&&a.removeAttribute("transform"),Qc(a,1),l.uncache=1,xc(o)))}},Gc={clearProps:function(t,e,n,r,i){if("isFromStart"!==i.data){var a=t._pt=new Pl(t._pt,e,n,0,0,qc);return a.u=r,a.pr=-10,a.tween=i,t._props.push(n),1}}},Wc=[1,0,0,1,0,0],$c={},Kc=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},Zc=function(t){var e=Ec(t,wc);return Kc(e)?Wc:e.substr(7).match(so).map(Bo)},Xc=function(t,e){var n,r,i,a,o=t._gsap||Po(t),s=t.style,l=Zc(t);return o.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(l=[(i=t.transform.baseVal.consolidate().matrix).a,i.b,i.c,i.d,i.e,i.f]).join(",")?Wc:l:(l!==Wc||t.offsetParent||t===Kl||o.svg||(i=s.display,s.display="block",(n=t.parentNode)&&t.offsetParent||(a=1,r=t.nextElementSibling,Kl.appendChild(t)),l=Zc(t),i?s.display=i:Bc(t,"display"),a&&(r?n.insertBefore(t,r):n?n.appendChild(t):Kl.removeChild(t))),e&&l.length>6?[l[0],l[1],l[4],l[5],l[12],l[13]]:l)},Jc=function(t,e,n,r,i,a){var o,s,l,c=t._gsap,u=i||Xc(t,!0),h=c.xOrigin||0,d=c.yOrigin||0,f=c.xOffset||0,p=c.yOffset||0,m=u[0],g=u[1],v=u[2],y=u[3],b=u[4],_=u[5],w=e.split(" "),D=parseFloat(w[0])||0,S=parseFloat(w[1])||0;n?u!==Wc&&(s=m*y-g*v)&&(l=D*(-g/s)+S*(m/s)-(m*_-g*b)/s,D=D*(y/s)+S*(-v/s)+(v*_-y*b)/s,S=l):(D=(o=Vc(t)).x+(~w[0].indexOf("%")?D/100*o.width:D),S=o.y+(~(w[1]||w[0]).indexOf("%")?S/100*o.height:S)),r||!1!==r&&c.smooth?(b=D-h,_=S-d,c.xOffset=f+(b*m+_*v)-b,c.yOffset=p+(b*g+_*y)-_):c.xOffset=c.yOffset=0,c.xOrigin=D,c.yOrigin=S,c.smooth=!!r,c.origin=e,c.originIsAbsolute=!!n,t.style[Dc]="0px 0px",a&&(Ic(a,c,"xOrigin",h,D),Ic(a,c,"yOrigin",d,S),Ic(a,c,"xOffset",f,c.xOffset),Ic(a,c,"yOffset",p,c.yOffset)),t.setAttribute("data-svg-origin",D+" "+S)},Qc=function(t,e){var n=t._gsap||new ol(t);if("x"in n&&!e&&!n.uncache)return n;var r,i,a,o,s,l,c,u,h,d,f,p,m,g,v,y,b,_,w,D,S,x,T,k,C,E,A,O,M,N,P,V,R=t.style,B=n.scaleX<0,I="px",F="deg",j=getComputedStyle(t),L=Ec(t,Dc)||"0";return r=i=a=l=c=u=h=d=f=0,o=s=1,n.svg=!(!t.getCTM||!Rc(t)),j.translate&&("none"===j.translate&&"none"===j.scale&&"none"===j.rotate||(R[wc]=("none"!==j.translate?"translate3d("+(j.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==j.rotate?"rotate("+j.rotate+") ":"")+("none"!==j.scale?"scale("+j.scale.split(" ").join(",")+") ":"")+("none"!==j[wc]?j[wc]:"")),R.scale=R.rotate=R.translate="none"),g=Xc(t,n.svg),n.svg&&(n.uncache?(C=t.getBBox(),L=n.xOrigin-C.x+"px "+(n.yOrigin-C.y)+"px",k=""):k=!e&&t.getAttribute("data-svg-origin"),Jc(t,k||L,!!k||n.originIsAbsolute,!1!==n.smooth,g)),p=n.xOrigin||0,m=n.yOrigin||0,g!==Wc&&(_=g[0],w=g[1],D=g[2],S=g[3],r=x=g[4],i=T=g[5],6===g.length?(o=Math.sqrt(_*_+w*w),s=Math.sqrt(S*S+D*D),l=_||w?ic(w,_)*nc:0,(h=D||S?ic(D,S)*nc+l:0)&&(s*=Math.abs(Math.cos(h*rc))),n.svg&&(r-=p-(p*_+m*D),i-=m-(p*w+m*S))):(V=g[6],N=g[7],A=g[8],O=g[9],M=g[10],P=g[11],r=g[12],i=g[13],a=g[14],c=(v=ic(V,M))*nc,v&&(k=x*(y=Math.cos(-v))+A*(b=Math.sin(-v)),C=T*y+O*b,E=V*y+M*b,A=x*-b+A*y,O=T*-b+O*y,M=V*-b+M*y,P=N*-b+P*y,x=k,T=C,V=E),u=(v=ic(-D,M))*nc,v&&(y=Math.cos(-v),P=S*(b=Math.sin(-v))+P*y,_=k=_*y-A*b,w=C=w*y-O*b,D=E=D*y-M*b),l=(v=ic(w,_))*nc,v&&(k=_*(y=Math.cos(v))+w*(b=Math.sin(v)),C=x*y+T*b,w=w*y-_*b,T=T*y-x*b,_=k,x=C),c&&Math.abs(c)+Math.abs(l)>359.9&&(c=l=0,u=180-u),o=Bo(Math.sqrt(_*_+w*w+D*D)),s=Bo(Math.sqrt(T*T+V*V)),v=ic(x,T),h=Math.abs(v)>2e-4?v*nc:0,f=P?1/(P<0?-P:P):0),n.svg&&(k=t.getAttribute("transform"),n.forceCSS=t.setAttribute("transform","")||!Kc(Ec(t,wc)),k&&t.setAttribute("transform",k))),Math.abs(h)>90&&Math.abs(h)<270&&(B?(o*=-1,h+=l<=0?180:-180,l+=l<=0?180:-180):(s*=-1,h+=h<=0?180:-180)),e=e||n.uncache,n.x=r-((n.xPercent=r&&(!e&&n.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-r)?-50:0)))?t.offsetWidth*n.xPercent/100:0)+I,n.y=i-((n.yPercent=i&&(!e&&n.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-i)?-50:0)))?t.offsetHeight*n.yPercent/100:0)+I,n.z=a+I,n.scaleX=Bo(o),n.scaleY=Bo(s),n.rotation=Bo(l)+F,n.rotationX=Bo(c)+F,n.rotationY=Bo(u)+F,n.skewX=h+F,n.skewY=d+F,n.transformPerspective=f+I,(n.zOrigin=parseFloat(L.split(" ")[2])||!e&&n.zOrigin||0)&&(R[Dc]=tu(L)),n.xOffset=n.yOffset=0,n.force3D=La.force3D,n.renderTransform=n.svg?su:tc?ou:nu,n.uncache=0,n},tu=function(t){return(t=t.split(" "))[0]+" "+t[1]},eu=function(t,e,n){var r=bs(e);return Bo(parseFloat(e)+parseFloat(Lc(t,"x",n+"px",r)))+r},nu=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,ou(t,e)},ru="0deg",iu="0px",au=") ",ou=function(t,e){var n=e||this,r=n.xPercent,i=n.yPercent,a=n.x,o=n.y,s=n.z,l=n.rotation,c=n.rotationY,u=n.rotationX,h=n.skewX,d=n.skewY,f=n.scaleX,p=n.scaleY,m=n.transformPerspective,g=n.force3D,v=n.target,y=n.zOrigin,b="",_="auto"===g&&t&&1!==t||!0===g;if(y&&(u!==ru||c!==ru)){var w,D=parseFloat(c)*rc,S=Math.sin(D),x=Math.cos(D);D=parseFloat(u)*rc,w=Math.cos(D),a=eu(v,a,S*w*-y),o=eu(v,o,-Math.sin(D)*-y),s=eu(v,s,x*w*-y+y)}m!==iu&&(b+="perspective("+m+au),(r||i)&&(b+="translate("+r+"%, "+i+"%) "),(_||a!==iu||o!==iu||s!==iu)&&(b+=s!==iu||_?"translate3d("+a+", "+o+", "+s+") ":"translate("+a+", "+o+au),l!==ru&&(b+="rotate("+l+au),c!==ru&&(b+="rotateY("+c+au),u!==ru&&(b+="rotateX("+u+au),h===ru&&d===ru||(b+="skew("+h+", "+d+au),1===f&&1===p||(b+="scale("+f+", "+p+au),v.style[wc]=b||"translate(0, 0)"},su=function(t,e){var n,r,i,a,o,s=e||this,l=s.xPercent,c=s.yPercent,u=s.x,h=s.y,d=s.rotation,f=s.skewX,p=s.skewY,m=s.scaleX,g=s.scaleY,v=s.target,y=s.xOrigin,b=s.yOrigin,_=s.xOffset,w=s.yOffset,D=s.forceCSS,S=parseFloat(u),x=parseFloat(h);d=parseFloat(d),f=parseFloat(f),(p=parseFloat(p))&&(f+=p=parseFloat(p),d+=p),d||f?(d*=rc,f*=rc,n=Math.cos(d)*m,r=Math.sin(d)*m,i=Math.sin(d-f)*-g,a=Math.cos(d-f)*g,f&&(p*=rc,o=Math.tan(f-p),i*=o=Math.sqrt(1+o*o),a*=o,p&&(o=Math.tan(p),n*=o=Math.sqrt(1+o*o),r*=o)),n=Bo(n),r=Bo(r),i=Bo(i),a=Bo(a)):(n=m,a=g,r=i=0),(S&&!~(u+"").indexOf("px")||x&&!~(h+"").indexOf("px"))&&(S=Lc(v,"x",u,"px"),x=Lc(v,"y",h,"px")),(y||b||_||w)&&(S=Bo(S+y-(y*n+b*i)+_),x=Bo(x+b-(y*r+b*a)+w)),(l||c)&&(o=v.getBBox(),S=Bo(S+l/100*o.width),x=Bo(x+c/100*o.height)),o="matrix("+n+","+r+","+i+","+a+","+S+","+x+")",v.setAttribute("transform",o),D&&(v.style[wc]=o)},lu=function(t,e,n,r,i){var a,o,s=360,l=Za(i),c=parseFloat(i)*(l&&~i.indexOf("rad")?nc:1)-r,u=r+c+"deg";return l&&("short"===(a=i.split("_")[1])&&(c%=s)!==c%180&&(c+=c<0?s:-360),"cw"===a&&c<0?c=(c+36e9)%s-~~(c/s)*s:"ccw"===a&&c>0&&(c=(c-36e9)%s-~~(c/s)*s)),t._pt=o=new Pl(t._pt,e,n,r,c,uc),o.e=u,o.u="deg",t._props.push(n),o},cu=function(t,e){for(var n in e)t[n]=e[n];return t},uu=function(t,e,n){var r,i,a,o,s,l,c,u=cu({},n._gsap),h=n.style;for(i in u.svg?(a=n.getAttribute("transform"),n.setAttribute("transform",""),h[wc]=e,r=Qc(n,1),Bc(n,wc),n.setAttribute("transform",a)):(a=getComputedStyle(n)[wc],h[wc]=e,r=Qc(n,1),h[wc]=a),ec)(a=u[i])!==(o=r[i])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(i)<0&&(s=bs(a)!==(c=bs(o))?Lc(n,i,a,c):parseFloat(a),l=parseFloat(o),t._pt=new Pl(t._pt,r,i,s,l-s,cc),t._pt.u=c||0,t._props.push(i));cu(r,u)};Ro("padding,margin,Width,Radius",(function(t,e){var n="Top",r="Right",i="Bottom",a="Left",o=(e<3?[n,r,i,a]:[n+a,n+r,i+r,i+a]).map((function(n){return e<2?t+n:"border"+n+t}));Gc[e>1?"border"+t:t]=function(t,e,n,r,i){var a,s;if(arguments.length<4)return a=o.map((function(e){return Yc(t,e,n)})),5===(s=a.join(" ")).split(a[0]).length?a[0]:s;a=(r+"").split(" "),s={},o.forEach((function(t,e){return s[t]=a[e]=a[e]||a[(e-1)/2|0]})),t.init(e,s,i)}}));var hu,du,fu,pu={name:"css",register:Mc,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,n,r,i){var a,o,s,l,c,u,h,d,f,p,m,g,v,y,b,_,w=this._props,D=t.style,S=n.vars.startAt;for(h in Zl||Mc(),this.styles=this.styles||kc(t),_=this.styles.props,this.tween=n,e)if("autoRound"!==h&&(o=e[h],!Co[h]||!fl(h,e,n,r,t,i)))if(c=typeof o,u=Gc[h],"function"===c&&(c=typeof(o=o.call(n,r,t,i))),"string"===c&&~o.indexOf("random(")&&(o=Ms(o)),u)u(this,t,h,o,n)&&(b=1);else if("--"===h.substr(0,2))a=(getComputedStyle(t).getPropertyValue(h)+"").trim(),o+="",Us.lastIndex=0,Us.test(a)||(d=bs(a),f=bs(o)),f?d!==f&&(a=Lc(t,h,a,f)+f):d&&(o+=d),this.add(D,"setProperty",a,o,r,i,0,0,h),w.push(h),_.push(h,0,D[h]);else if("undefined"!==c){if(S&&h in S?(a="function"==typeof S[h]?S[h].call(n,r,t,i):S[h],Za(a)&&~a.indexOf("random(")&&(a=Ms(a)),bs(a+"")||"auto"===a||(a+=La.units[h]||bs(Yc(t,h))||""),"="===(a+"").charAt(1)&&(a=Yc(t,h))):a=Yc(t,h),l=parseFloat(a),(p="string"===c&&"="===o.charAt(1)&&o.substr(0,2))&&(o=o.substr(2)),s=parseFloat(o),h in lc&&("autoAlpha"===h&&(1===l&&"hidden"===Yc(t,"visibility")&&s&&(l=0),_.push("visibility",0,D.visibility),Ic(this,D,"visibility",l?"inherit":"hidden",s?"inherit":"hidden",!s)),"scale"!==h&&"transform"!==h&&~(h=lc[h]).indexOf(",")&&(h=h.split(",")[0])),m=h in ec)if(this.styles.save(h),g||((v=t._gsap).renderTransform&&!e.parseTransform||Qc(t,e.parseTransform),y=!1!==e.smoothOrigin&&v.smooth,(g=this._pt=new Pl(this._pt,D,wc,0,1,v.renderTransform,v,0,-1)).dep=1),"scale"===h)this._pt=new Pl(this._pt,v,"scaleY",v.scaleY,(p?Fo(v.scaleY,p+s):s)-v.scaleY||0,cc),this._pt.u=0,w.push("scaleY",h),h+="X";else{if("transformOrigin"===h){_.push(Dc,0,D[Dc]),o=Uc(o),v.svg?Jc(t,o,0,y,0,this):((f=parseFloat(o.split(" ")[2])||0)!==v.zOrigin&&Ic(this,v,"zOrigin",v.zOrigin,f),Ic(this,D,h,tu(a),tu(o)));continue}if("svgOrigin"===h){Jc(t,o,1,y,0,this);continue}if(h in $c){lu(this,v,h,l,p?Fo(l,p+o):o);continue}if("smoothOrigin"===h){Ic(this,v,"smooth",v.smooth,o);continue}if("force3D"===h){v[h]=o;continue}if("transform"===h){uu(this,o,t);continue}}else h in D||(h=Oc(h)||h);if(m||(s||0===s)&&(l||0===l)&&!sc.test(o)&&h in D)s||(s=0),(d=(a+"").substr((l+"").length))!==(f=bs(o)||(h in La.units?La.units[h]:d))&&(l=Lc(t,h,a,f)),this._pt=new Pl(this._pt,m?v:D,h,l,(p?Fo(l,p+s):s)-l,m||"px"!==f&&"zIndex"!==h||!1===e.autoRound?cc:dc),this._pt.u=f||0,d!==f&&"%"!==f&&(this._pt.b=a,this._pt.r=hc);else if(h in D)zc.call(this,t,h,a,p?p+o:o);else if(h in t)this.add(t,h,a||t[h],p?p+o:o,r,i);else if("parseTransform"!==h){vo(h,o);continue}m||(h in D?_.push(h,0,D[h]):_.push(h,1,a||t[h])),w.push(h)}b&&Nl(this)},render:function(t,e){if(e.tween._time||!Ql())for(var n=e._pt;n;)n.r(t,n.d),n=n._next;else e.styles.revert()},get:Yc,aliases:lc,getSetter:function(t,e,n){var r=lc[e];return r&&r.indexOf(",")<0&&(e=r),e in ec&&e!==Dc&&(t._gsap.x||Yc(t,"x"))?n&&Jl===n?"scale"===e?yc:vc:(Jl=n||{})&&("scale"===e?bc:_c):t.style&&!Qa(t.style[e])?mc:~e.indexOf("-")?gc:xl(t,e)},core:{_removeProperty:Bc,_getMatrix:Xc}};Gl.utils.checkPrefix=Oc,Gl.core.getStyleSaver=kc,fu=Ro((hu="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(du="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",(function(t){ec[t]=1})),Ro(du,(function(t){La.units[t]="deg",$c[t]=1})),lc[fu[13]]=hu+","+du,Ro("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",(function(t){var e=t.split(":");lc[e[1]]=fu[e[0]]})),Ro("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",(function(t){La.units[t]="px"})),Gl.registerPlugin(pu);var mu=Gl.registerPlugin(pu)||Gl;mu.core.Tween;var gu=function(){function e(){this.startPoisiton={x:0,y:0},this.endPoisiton={x:1920,y:0},this.curtain={width:1920,height:1080},this.totalTime=5,this.timeLine=mu.timeline()}return e.getInstance=function(){return this.instance||(this.instance=new e),this.instance},e.prototype.init=function(t,e){var n;null===(n=this.timeLine)||void 0===n||n.clear();var r=e.curtain,i=e.totalTime,a=e.admissionMode;i&&(this.totalTime=i),this.setEndPoisiton(r);var o=this.filterData(t,a);this.goAnimationParams=e;for(var s=0;s<o.length;s++){var l=o[s];if(l instanceof Array)for(var c=0;c<l.length;c++){var u=this.totalTime/l.length,h=l[c],d=this._creatTl("#wrap"+h.cid);this._add(d,c*u)}else{u=this.totalTime/o.length,d=this._creatTl("#wrap"+l.cid);this._add(d,s*u)}}return this.timeLine},e.prototype.filterData=function(e,n){var r;if("left"==n)r=t.orderBy(e,["baseData.left"],["asc"]);else if("top"==n)r=t.orderBy(e,["baseData.top"],["asc"]);else if("topLeft"==n){var i=this.setSpacing(e,"left");r=t.orderBy(i,["spacing"],["asc"])}else if("topRight"==n){var a=this.setSpacing(e,"right");r=t.orderBy(a,["spacing"],["asc"])}else if("center"==n){var o=this.splitArrayForCenter(e,"left");r=[t.orderBy(o.true,["center.x"],["asc"]),t.orderBy(o.false,["center.x"],["desc"])]}else if("spaceBetween"==n){o=this.splitArrayForCenter(e,"left");r=[t.orderBy(o.true,["center.x"],["desc"]),t.orderBy(o.false,["center.x"],["asc"])]}else r=t.orderBy(e,["baseData.left"],["asc"]);return r},e.prototype.getSpacing=function(t,e){var n=t.x,r=t.y,i=e.x,a=e.y,o=Math.abs(n-i),s=Math.abs(r-a);return Math.sqrt(o*o+s*s)},e.prototype.creatPosition=function(t,e){var n=0,r=0;return t?("left"===e?(n=t.left,r=t.top):"right"===e&&(n=t.left+t.width,r=t.top),{x:n,y:r}):{x:n,y:r}},e.prototype.setEndPoisiton=function(t){if(t){var e=t.width,n=t.height;this.curtain=t,this.endPoisiton.x=e,this.endPoisiton.y=n}},e.prototype.setSpacing=function(t,e){var n,r=this;return"left"===e?n=this.startPoisiton:"right"===e&&(n=this.endPoisiton),t.forEach((function(t){var i=t.baseData;if(i){var a=r.creatPosition(i,e),o=r.getSpacing(a,n);t.spacing=o}})),t},e.prototype.setCenter=function(t){return t.forEach((function(t){if(t.baseData){var e=t.baseData.left+t.baseData.width/2,n=t.baseData.top+t.baseData.height/2;t.center={x:e,y:n}}})),t},e.prototype.splitArrayForCenter=function(e,n){var r,i=this,a=this.setCenter(e);return"left"!=n&&"right"!=n||(r=t.groupBy(a,(function(t){return t.center.x>=i.curtain.width/2}))),"top"!=n&&"bottom"!=n||(r=t.groupBy(a,(function(t){return t.center.y>=i.curtain.height/2}))),r},e.prototype._add=function(t,e){this.timeLine.add(t,e)},e.prototype._creatTl=function(t){var e=mu.timeline();return e.add(this._creatTw(t)),e},e.prototype._creatTw=function(t){var e=this.goAnimationParams.params,n=e.delay,r=e.duration,i=e.repeat,a=e.type,o=e.value;return o&&o.length&&o.forEach((function(t){t.delay=n||0,t.repeat=i||0})),mu[a](t,r,o[0],o[1])},e.prototype.in=function(){},e.prototype.out=function(){},e}(),vu=gu.getInstance();var yu=function(){function e(t){this.root=null,this.vuex=Yi.getInstance().VueServer,this.eventType=new Map,(null==t?void 0:t.root)&&(this.root=t.root);var e={setGlobalVar:this.setGlobalVar.bind(this),showComponent:this._showComponent.bind(this),hideComponent:this._hideComponent.bind(this),pageChange:this.pageChange.bind(this),changeDynamicState:this.changeDynamicState.bind(this)};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.eventType.set(n,[e[n]])}return e.prototype.findComponentDownward=function(t,e){var n=t.$children;if(n.length)for(var r=0,i=n;r<i.length;r++){var a=i[r];a.$options&&a.$options.propsData&&a.$options.propsData.cid&&(e[a.$options.propsData.cid]=a),a.$children&&a.$children.length&&this.findComponentDownward(a,e)}return e},e.prototype.getAllComponents=function(){var t={};return this.findComponentDownward(this.root,t),t},e.prototype.getComponentByCid=function(t){try{var e=this.getAllComponents()[t];if(!e)throw new Error("The instance was not found");return e}catch(t){console.warn(t)}},e.prototype.getElementByCid=function(t){try{if(!t)throw new Error("Please input the parameters correctly");var e=this.getComponentByCid(t);if(!e)throw new Error("The element was not found");return e.$el}catch(t){console.warn(t)}},e.prototype.setGlobalVar=function(t){try{var e=t.key,n=t.value;if(!(t&&e&&n))throw new Error("An error occurred. Please check whether the incoming parameters are correct! The correct format of data is an object containing key and value");this.setVars(t)}catch(t){console.warn(t)}},e.prototype._showComponent=function(t){try{if(!t)throw new Error("Please input the parameters correctly");this.changeVis({cid:t,flag:!0})}catch(t){console.warn(t)}},e.prototype._hideComponent=function(t){try{if(!t)throw new Error("Please input the parameters correctly");this.changeVis({cid:t,flag:!1})}catch(t){console.warn(t)}},e.prototype.getList=function(t){return t&&"id"===t?this.vuex.callState("list").map((function(t){return t.cid})):this.vuex.callState("list")},e.prototype.getTheme=function(t){var e=this.vuex.callState("theme");return t&&t(e),e},e.prototype.getElement=function(e){var n=function(e,n,r){var i=!1,a=function(e){for(var o=0;o<e.length;o++){if(e[o].cid==n){i=e[o],r&&t.remove(e,(function(t){return t.cid==n}));break}if(e[o].children)a(e[o].children);else if(e[o].dynamicChildren){if(e[o].dynamicChildren instanceof Map){for(var s=Array.from(e[o].dynamicChildren),l=0;l<s.length;l++)if(s[l]instanceof Array){var c=s[l][1];a(c)}}else if(e[o].dynamicChildren instanceof Array)for(s=e[o].dynamicChildren,l=0;l<s.length;l++)s[l]instanceof Array&&(c=s[l][1],a(c))}else e[o].stateChildren&&a(e[o].stateChildren)}};return a(e),i||!1}(this.vuex.callState("list"),e);return n},e.prototype.changeVis=function(t){return this.vuex.callMutation("changeShow",t)},e.prototype.comToggle=function(t){return this.vuex.callMutation("comToggle",t)},e.prototype.getPageInfo=function(t){var e=this.vuex.callState("caseInfo");return t&&t(e),(null==e?void 0:e.details)?e.details.map((function(t){return{name:t.caseDetailName,path:t.caseDetailPath,id:t.id}})):e},e.prototype.updateComp=function(t){return this.vuex.callMutation("updatComs",t)},e.prototype.changeDynamicState=function(t){return this.vuex.callMutation("changeDynamicState",t)},e.prototype.pageChange=function(t){return this.vuex.callMutation("setPageId",t)},e.prototype.pagePush=function(t,e,n){return void 0===n&&(n={}),this.vuex.callMutation("pagePush",{type:t,value:e,option:n})},e.prototype.activeState=function(t,e){return this.vuex.callMutation("setDynamicActive",{cid:t,name:e})},e.prototype.getVars=function(t){var e=Vr.getAllVariables();return t&&t(e),e},e.prototype.setVars=function(t){var e=Vr.getVariable(t.key);if(2!=(null==e?void 0:e.model))return this.vuex.callAction("goEditVar",t);console.warn("系统变量禁止修改!")},e}(),bu=function(t){function e(e){var n,r,i=t.call(this,e)||this,a=(n=(n=i.eventType)||new Map,c(c({},r),{EventType:n,on:function(t,e){var r=n.get(t);r?r.push(e):n.set(t,[e])},off:function(t,e){var r=n.get(t);r&&(e?r.splice(r.indexOf(e)>>>0,1):n.set(t,[]))},emit:function(t,e){var r=n.get(t);if(r){var i=r.slice().map((function(t){return t(e)}));if(i&&1==i.length)return i[0]}(r=n.get("*"))&&r.slice().map((function(n){n(t,e)}))}}));return i.$emit=a.emit,i.$on=a.on,i.$off=a.off,i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}l(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(e,t),Object.defineProperty(e.prototype,"Theme",{get:function(){return this.getTheme()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Components",{get:function(){return this.getAllComponents()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"GlobalVars",{get:function(){return this.getVars()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Pages",{get:function(){return this.getPageInfo()},enumerable:!1,configurable:!0}),e.prototype.getElementById=function(t){this.getElementByCid(t)},e.prototype.getComponentById=function(t){this.getComponentByCid(t)},e.prototype.getPage=function(){},e}(yu),_u=function(){function t(t){this.$action=new wu(t),this.instance=new bu(t)}return t.prototype.getGlobalvars=function(){for(var t=Vr.getAllVariables(),e=t.map((function(t){return t.mapField})),n={},r=function(e){var r=t.find((function(t){return t.mapField==e}));r&&(n[e]=r.value)},i=0,a=e;i<a.length;i++){r(a[i])}var o=this.instance;return new Proxy(n,{has:function(t,e){return!e&&e in t},get:function(t,e){if(e in t)return t[e];throw new ReferenceError('Prop name "'+e+'" does not exist.')},set:function(t,e,n){if(!t[e])return console.log("变量不存在/不能被修改"),!1;if(t[e]=n,!e||"string"!=typeof e)throw new Error("Invalid key");o.setGlobalVar({key:e,value:n})}})},Object.defineProperty(t.prototype,"globalvars",{get:function(){return this.getGlobalvars()},enumerable:!1,configurable:!0}),t}(),wu=function(t){var e=this;this.setGlobalVars=function(t,n){if(!t||"string"!=typeof t)throw new Error("Invalid key");e.instance.setGlobalVar({key:t,value:n})},this.skipTo=function(t){if(!t||0===Object.keys(t).length)throw new Error("事件跳转发生错误:参数:".concat(t," 不正确,请正确填写!doc: https://anov.cucloud.cn/anov-go-doc/"));if(t.name)e.instance.pagePush("name",t.name);else if(t.path)e.instance.pagePush("path",t.path);else{if(!t.url)throw new Error("事件跳转发生错误:参数:".concat(t," 不正确,请正确填写!doc: https://anov.cucloud.cn/anov-go-doc/"));window.open(t.url)}},this.toggle=function(t){if(t)if("string"!=typeof t&&"number"!=typeof t)if(Array.isArray(t))for(var n=0,r=t;n<r.length;n++){var i=r[n];"string"==typeof i||"number"==typeof i?e.instance.comToggle(i):console.warn("请传入正确的参数!")}else console.warn("请传入正确的参数!");else e.instance.comToggle(t);else console.warn("请传入正确的参数!")},this.show=function(t){if(t)if("string"!=typeof t&&"number"!=typeof t){if(Array.isArray(t))for(var n=0,r=t;n<r.length;n++){var i=r[n];"string"==typeof i||"number"==typeof i?e.instance._showComponent(i.toString()):console.warn("请传入正确的参数!")}}else e.instance._showComponent(t.toString());else console.warn("请传入正确的参数!")},this.hide=function(t){if(t)if("string"!=typeof t&&"number"!=typeof t){if(Array.isArray(t))for(var n=0,r=t;n<r.length;n++){var i=r[n];"string"==typeof i||"number"==typeof i?e.instance._hideComponent(i):console.warn("请传入正确的参数!")}}else e.instance._hideComponent(t);else console.warn("请传入正确的参数!")},this.activeState=function(t,n){e.instance.activeState(t,n)},this.updateComp=function(t){if(t)if("string"!=typeof t&&"number"!=typeof t){if(Array.isArray(t))for(var n=0,r=t;n<r.length;n++){var i=r[n];"string"==typeof i||"number"==typeof i?e.instance.updateComp(i):console.warn("请传入正确的参数!")}}else e.instance.updateComp(t);else console.warn("请传入正确的参数!")},this.instance=new bu(t)},Du=function(t){return new _u(t)};console.log(3334444);var Su=function(t,e){console.log("弃用")},xu=function(t,e){return e&&t?Yi.getInstance().render(t,e):t?Yi.getInstance().render(t):void 0},Tu=function(t,e,n){return void 0!==n&&t?Yi.getInstance().renderForParent(t,e,n):t?Yi.getInstance().renderForParent(t,e):void 0},ku=function(t,e){return Yi.getInstance().emitEvent(t,e||function(){})},Cu=function(){};export{Yi as Go,vu as GoAnimation,ka as Tool,xu as createComponent,Tu as createComponentForParent,ku as emitEvent,pi as fxhr,Su as getDataForRelease,ei as goUtils,Cu as log,fi as refreshData,Du as run,Oi as store};
|
|
51
|
+
var $l,Kl,Zl,Xl,Jl,Ql,tc,ec,nc={},rc=180/Math.PI,ic=Math.PI/180,ac=Math.atan2,oc=/([A-Z])/g,sc=/(left|right|width|margin|padding|x)/i,lc=/[\s,\(]\S/,cc={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},uc=function(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},hc=function(t,e){return e.set(e.t,e.p,1===t?e.e:Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},dc=function(t,e){return e.set(e.t,e.p,t?Math.round(1e4*(e.s+e.c*t))/1e4+e.u:e.b,e)},fc=function(t,e){var n=e.s+e.c*t;e.set(e.t,e.p,~~(n+(n<0?-.5:.5))+e.u,e)},pc=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},mc=function(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)},gc=function(t,e,n){return t.style[e]=n},vc=function(t,e,n){return t.style.setProperty(e,n)},yc=function(t,e,n){return t._gsap[e]=n},bc=function(t,e,n){return t._gsap.scaleX=t._gsap.scaleY=n},_c=function(t,e,n,r,i){var a=t._gsap;a.scaleX=a.scaleY=n,a.renderTransform(i,a)},wc=function(t,e,n,r,i){var a=t._gsap;a[e]=n,a.renderTransform(i,a)},Dc="transform",Sc=Dc+"Origin",xc=function t(e,n){var r=this,i=this.target,a=i.style,o=i._gsap;if(e in nc&&a){if(this.tfm=this.tfm||{},"transform"===e)return cc.transform.split(",").forEach((function(e){return t.call(r,e,n)}));if(~(e=cc[e]||e).indexOf(",")?e.split(",").forEach((function(t){return r.tfm[t]=zc(i,t)})):this.tfm[e]=o.x?o[e]:zc(i,e),e===Sc&&(this.tfm.zOrigin=o.zOrigin),this.props.indexOf(Dc)>=0)return;o.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(Sc,n,"")),e=Dc}(a||n)&&this.props.push(e,n,a[e])},Tc=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},kc=function(){var t,e,n=this.props,r=this.target,i=r.style,a=r._gsap;for(t=0;t<n.length;t+=3)n[t+1]?r[n[t]]=n[t+2]:n[t+2]?i[n[t]]=n[t+2]:i.removeProperty("--"===n[t].substr(0,2)?n[t]:n[t].replace(oc,"-$1").toLowerCase());if(this.tfm){for(e in this.tfm)a[e]=this.tfm[e];a.svg&&(a.renderTransform(),r.setAttribute("data-svg-origin",this.svgo||"")),(t=tc())&&t.isStart||i[Dc]||(Tc(i),a.zOrigin&&i[Sc]&&(i[Sc]+=" "+a.zOrigin+"px",a.zOrigin=0,a.renderTransform()),a.uncache=1)}},Cc=function(t,e){var n={target:t,props:[],revert:kc,save:xc};return t._gsap||Wl.core.getCache(t),e&&e.split(",").forEach((function(t){return n.save(t)})),n},Ec=function(t,e){var n=Kl.createElementNS?Kl.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):Kl.createElement(t);return n&&n.style?n:Kl.createElement(t)},Ac=function t(e,n,r){var i=getComputedStyle(e);return i[n]||i.getPropertyValue(n.replace(oc,"-$1").toLowerCase())||i.getPropertyValue(n)||!r&&t(e,Mc(n)||n,1)||""},Oc="O,Moz,ms,Ms,Webkit".split(","),Mc=function(t,e,n){var r=(e||Jl).style,i=5;if(t in r&&!n)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);i--&&!(Oc[i]+t in r););return i<0?null:(3===i?"ms":i>=0?Oc[i]:"")+t},Nc=function(){"undefined"!=typeof window&&window.document&&($l=window,Kl=$l.document,Zl=Kl.documentElement,Jl=Ec("div")||{style:{}},Ec("div"),Dc=Mc(Dc),Sc=Dc+"Origin",Jl.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",ec=!!Mc("perspective"),tc=Wl.core.reverting,Xl=1)},Pc=function t(e){var n,r=Ec("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=this.parentNode,a=this.nextSibling,o=this.style.cssText;if(Zl.appendChild(r),r.appendChild(this),this.style.display="block",e)try{n=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=t}catch(t){}else this._gsapBBox&&(n=this._gsapBBox());return i&&(a?i.insertBefore(this,a):i.appendChild(this)),Zl.removeChild(r),this.style.cssText=o,n},Vc=function(t,e){for(var n=e.length;n--;)if(t.hasAttribute(e[n]))return t.getAttribute(e[n])},Rc=function(t){var e;try{e=t.getBBox()}catch(n){e=Pc.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===Pc||(e=Pc.call(t,!0)),!e||e.width||e.x||e.y?e:{x:+Vc(t,["x","cx","x1"])||0,y:+Vc(t,["y","cy","y1"])||0,width:0,height:0}},Bc=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!Rc(t))},Ic=function(t,e){if(e){var n,r=t.style;e in nc&&e!==Sc&&(e=Dc),r.removeProperty?("ms"!==(n=e.substr(0,2))&&"webkit"!==e.substr(0,6)||(e="-"+e),r.removeProperty("--"===n?e:e.replace(oc,"-$1").toLowerCase())):r.removeAttribute(e)}},Fc=function(t,e,n,r,i,a){var o=new Vl(t._pt,e,n,0,1,a?mc:pc);return t._pt=o,o.b=r,o.e=i,t._props.push(n),o},jc={deg:1,rad:1,turn:1},Lc={grid:1,flex:1},Yc=function t(e,n,r,i){var a,o,s,l,c=parseFloat(r)||0,u=(r+"").trim().substr((c+"").length)||"px",h=Jl.style,d=sc.test(n),f="svg"===e.tagName.toLowerCase(),p=(f?"client":"offset")+(d?"Width":"Height"),m=100,g="px"===i,v="%"===i;if(i===u||!c||jc[i]||jc[u])return c;if("px"!==u&&!g&&(c=t(e,n,r,"px")),l=e.getCTM&&Bc(e),(v||"%"===u)&&(nc[n]||~n.indexOf("adius")))return a=l?e.getBBox()[d?"width":"height"]:e[p],Io(v?c/a*m:c/100*a);if(h[d?"width":"height"]=m+(g?u:i),o=~n.indexOf("adius")||"em"===i&&e.appendChild&&!f?e:e.parentNode,l&&(o=(e.ownerSVGElement||{}).parentNode),o&&o!==Kl&&o.appendChild||(o=Kl.body),(s=o._gsap)&&v&&s.width&&d&&s.time===$s.time&&!s.uncache)return Io(c/s.width*m);if(!v||"height"!==n&&"width"!==n)(v||"%"===u)&&!Lc[Ac(o,"display")]&&(h.position=Ac(e,"position")),o===e&&(h.position="static"),o.appendChild(Jl),a=Jl[p],o.removeChild(Jl),h.position="absolute";else{var y=e.style[n];e.style[n]=m+i,a=e[p],y?e.style[n]=y:Ic(e,n)}return d&&v&&((s=Vo(o)).time=$s.time,s.width=o[p]),Io(g?a*c/m:a&&c?m/a*c:0)},zc=function(t,e,n,r){var i;return Xl||Nc(),e in cc&&"transform"!==e&&~(e=cc[e]).indexOf(",")&&(e=e.split(",")[0]),nc[e]&&"transform"!==e?(i=tu(t,r),i="transformOrigin"!==e?i[e]:i.svg?i.origin:eu(Ac(t,Sc))+" "+i.zOrigin+"px"):(!(i=t.style[e])||"auto"===i||r||~(i+"").indexOf("calc("))&&(i=Wc[e]&&Wc[e](t,e,n)||Ac(t,e)||Ro(t,e)||("opacity"===e?1:0)),n&&!~(i+"").trim().indexOf(" ")?Yc(t,e,i,n)+n:i},Hc=function(t,e,n,r){if(!n||"none"===n){var i=Mc(e,t,1),a=i&&Ac(t,i,1);a&&a!==n?(e=i,n=a):"borderColor"===e&&(n=Ac(t,"borderTopColor"))}var o,s,l,c,u,h,d,f,p,m,g,v=new Vl(this._pt,t.style,e,0,1,El),y=0,b=0;if(v.b=n,v.e=r,n+="","auto"===(r+="")&&(h=t.style[e],t.style[e]=r,r=Ac(t,e)||r,h?t.style[e]=h:Ic(t,e)),Ws(o=[n,r]),r=o[1],l=(n=o[0]).match(co)||[],(r.match(co)||[]).length){for(;s=co.exec(r);)d=s[0],p=r.substring(y,s.index),u?u=(u+1)%5:"rgba("!==p.substr(-5)&&"hsla("!==p.substr(-5)||(u=1),d!==(h=l[b++]||"")&&(c=parseFloat(h)||0,g=h.substr((c+"").length),"="===d.charAt(1)&&(d=jo(c,d)+g),f=parseFloat(d),m=d.substr((f+"").length),y=co.lastIndex-m.length,m||(m=m||Ya.units[e]||g,y===r.length&&(r+=m,v.e+=m)),g!==m&&(c=Yc(t,e,h,m)||0),v._pt={_next:v._pt,p:p||1===b?p:",",s:c,c:f-c,m:u&&u<4||"zIndex"===e?Math.round:0});v.c=y<r.length?r.substring(y,r.length):""}else v.r="display"===e&&"none"===r?mc:pc;return ho.test(r)&&(v.e=0),this._pt=v,v},Uc={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},qc=function(t){var e=t.split(" "),n=e[0],r=e[1]||"50%";return"top"!==n&&"bottom"!==n&&"left"!==r&&"right"!==r||(t=n,n=r,r=t),e[0]=Uc[n]||n,e[1]=Uc[r]||r,e.join(" ")},Gc=function(t,e){if(e.tween&&e.tween._time===e.tween._dur){var n,r,i,a=e.t,o=a.style,s=e.u,l=a._gsap;if("all"===s||!0===s)o.cssText="",r=1;else for(i=(s=s.split(",")).length;--i>-1;)n=s[i],nc[n]&&(r=1,n="transformOrigin"===n?Sc:Dc),Ic(a,n);r&&(Ic(a,Dc),l&&(l.svg&&a.removeAttribute("transform"),tu(a,1),l.uncache=1,Tc(o)))}},Wc={clearProps:function(t,e,n,r,i){if("isFromStart"!==i.data){var a=t._pt=new Vl(t._pt,e,n,0,0,Gc);return a.u=r,a.pr=-10,a.tween=i,t._props.push(n),1}}},$c=[1,0,0,1,0,0],Kc={},Zc=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},Xc=function(t){var e=Ac(t,Dc);return Zc(e)?$c:e.substr(7).match(lo).map(Io)},Jc=function(t,e){var n,r,i,a,o=t._gsap||Vo(t),s=t.style,l=Xc(t);return o.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(l=[(i=t.transform.baseVal.consolidate().matrix).a,i.b,i.c,i.d,i.e,i.f]).join(",")?$c:l:(l!==$c||t.offsetParent||t===Zl||o.svg||(i=s.display,s.display="block",(n=t.parentNode)&&t.offsetParent||(a=1,r=t.nextElementSibling,Zl.appendChild(t)),l=Xc(t),i?s.display=i:Ic(t,"display"),a&&(r?n.insertBefore(t,r):n?n.appendChild(t):Zl.removeChild(t))),e&&l.length>6?[l[0],l[1],l[4],l[5],l[12],l[13]]:l)},Qc=function(t,e,n,r,i,a){var o,s,l,c=t._gsap,u=i||Jc(t,!0),h=c.xOrigin||0,d=c.yOrigin||0,f=c.xOffset||0,p=c.yOffset||0,m=u[0],g=u[1],v=u[2],y=u[3],b=u[4],_=u[5],w=e.split(" "),D=parseFloat(w[0])||0,S=parseFloat(w[1])||0;n?u!==$c&&(s=m*y-g*v)&&(l=D*(-g/s)+S*(m/s)-(m*_-g*b)/s,D=D*(y/s)+S*(-v/s)+(v*_-y*b)/s,S=l):(D=(o=Rc(t)).x+(~w[0].indexOf("%")?D/100*o.width:D),S=o.y+(~(w[1]||w[0]).indexOf("%")?S/100*o.height:S)),r||!1!==r&&c.smooth?(b=D-h,_=S-d,c.xOffset=f+(b*m+_*v)-b,c.yOffset=p+(b*g+_*y)-_):c.xOffset=c.yOffset=0,c.xOrigin=D,c.yOrigin=S,c.smooth=!!r,c.origin=e,c.originIsAbsolute=!!n,t.style[Sc]="0px 0px",a&&(Fc(a,c,"xOrigin",h,D),Fc(a,c,"yOrigin",d,S),Fc(a,c,"xOffset",f,c.xOffset),Fc(a,c,"yOffset",p,c.yOffset)),t.setAttribute("data-svg-origin",D+" "+S)},tu=function(t,e){var n=t._gsap||new sl(t);if("x"in n&&!e&&!n.uncache)return n;var r,i,a,o,s,l,c,u,h,d,f,p,m,g,v,y,b,_,w,D,S,x,T,k,C,E,A,O,M,N,P,V,R=t.style,B=n.scaleX<0,I="px",F="deg",j=getComputedStyle(t),L=Ac(t,Sc)||"0";return r=i=a=l=c=u=h=d=f=0,o=s=1,n.svg=!(!t.getCTM||!Bc(t)),j.translate&&("none"===j.translate&&"none"===j.scale&&"none"===j.rotate||(R[Dc]=("none"!==j.translate?"translate3d("+(j.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==j.rotate?"rotate("+j.rotate+") ":"")+("none"!==j.scale?"scale("+j.scale.split(" ").join(",")+") ":"")+("none"!==j[Dc]?j[Dc]:"")),R.scale=R.rotate=R.translate="none"),g=Jc(t,n.svg),n.svg&&(n.uncache?(C=t.getBBox(),L=n.xOrigin-C.x+"px "+(n.yOrigin-C.y)+"px",k=""):k=!e&&t.getAttribute("data-svg-origin"),Qc(t,k||L,!!k||n.originIsAbsolute,!1!==n.smooth,g)),p=n.xOrigin||0,m=n.yOrigin||0,g!==$c&&(_=g[0],w=g[1],D=g[2],S=g[3],r=x=g[4],i=T=g[5],6===g.length?(o=Math.sqrt(_*_+w*w),s=Math.sqrt(S*S+D*D),l=_||w?ac(w,_)*rc:0,(h=D||S?ac(D,S)*rc+l:0)&&(s*=Math.abs(Math.cos(h*ic))),n.svg&&(r-=p-(p*_+m*D),i-=m-(p*w+m*S))):(V=g[6],N=g[7],A=g[8],O=g[9],M=g[10],P=g[11],r=g[12],i=g[13],a=g[14],c=(v=ac(V,M))*rc,v&&(k=x*(y=Math.cos(-v))+A*(b=Math.sin(-v)),C=T*y+O*b,E=V*y+M*b,A=x*-b+A*y,O=T*-b+O*y,M=V*-b+M*y,P=N*-b+P*y,x=k,T=C,V=E),u=(v=ac(-D,M))*rc,v&&(y=Math.cos(-v),P=S*(b=Math.sin(-v))+P*y,_=k=_*y-A*b,w=C=w*y-O*b,D=E=D*y-M*b),l=(v=ac(w,_))*rc,v&&(k=_*(y=Math.cos(v))+w*(b=Math.sin(v)),C=x*y+T*b,w=w*y-_*b,T=T*y-x*b,_=k,x=C),c&&Math.abs(c)+Math.abs(l)>359.9&&(c=l=0,u=180-u),o=Io(Math.sqrt(_*_+w*w+D*D)),s=Io(Math.sqrt(T*T+V*V)),v=ac(x,T),h=Math.abs(v)>2e-4?v*rc:0,f=P?1/(P<0?-P:P):0),n.svg&&(k=t.getAttribute("transform"),n.forceCSS=t.setAttribute("transform","")||!Zc(Ac(t,Dc)),k&&t.setAttribute("transform",k))),Math.abs(h)>90&&Math.abs(h)<270&&(B?(o*=-1,h+=l<=0?180:-180,l+=l<=0?180:-180):(s*=-1,h+=h<=0?180:-180)),e=e||n.uncache,n.x=r-((n.xPercent=r&&(!e&&n.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-r)?-50:0)))?t.offsetWidth*n.xPercent/100:0)+I,n.y=i-((n.yPercent=i&&(!e&&n.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-i)?-50:0)))?t.offsetHeight*n.yPercent/100:0)+I,n.z=a+I,n.scaleX=Io(o),n.scaleY=Io(s),n.rotation=Io(l)+F,n.rotationX=Io(c)+F,n.rotationY=Io(u)+F,n.skewX=h+F,n.skewY=d+F,n.transformPerspective=f+I,(n.zOrigin=parseFloat(L.split(" ")[2])||!e&&n.zOrigin||0)&&(R[Sc]=eu(L)),n.xOffset=n.yOffset=0,n.force3D=Ya.force3D,n.renderTransform=n.svg?lu:ec?su:ru,n.uncache=0,n},eu=function(t){return(t=t.split(" "))[0]+" "+t[1]},nu=function(t,e,n){var r=_s(e);return Io(parseFloat(e)+parseFloat(Yc(t,"x",n+"px",r)))+r},ru=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,su(t,e)},iu="0deg",au="0px",ou=") ",su=function(t,e){var n=e||this,r=n.xPercent,i=n.yPercent,a=n.x,o=n.y,s=n.z,l=n.rotation,c=n.rotationY,u=n.rotationX,h=n.skewX,d=n.skewY,f=n.scaleX,p=n.scaleY,m=n.transformPerspective,g=n.force3D,v=n.target,y=n.zOrigin,b="",_="auto"===g&&t&&1!==t||!0===g;if(y&&(u!==iu||c!==iu)){var w,D=parseFloat(c)*ic,S=Math.sin(D),x=Math.cos(D);D=parseFloat(u)*ic,w=Math.cos(D),a=nu(v,a,S*w*-y),o=nu(v,o,-Math.sin(D)*-y),s=nu(v,s,x*w*-y+y)}m!==au&&(b+="perspective("+m+ou),(r||i)&&(b+="translate("+r+"%, "+i+"%) "),(_||a!==au||o!==au||s!==au)&&(b+=s!==au||_?"translate3d("+a+", "+o+", "+s+") ":"translate("+a+", "+o+ou),l!==iu&&(b+="rotate("+l+ou),c!==iu&&(b+="rotateY("+c+ou),u!==iu&&(b+="rotateX("+u+ou),h===iu&&d===iu||(b+="skew("+h+", "+d+ou),1===f&&1===p||(b+="scale("+f+", "+p+ou),v.style[Dc]=b||"translate(0, 0)"},lu=function(t,e){var n,r,i,a,o,s=e||this,l=s.xPercent,c=s.yPercent,u=s.x,h=s.y,d=s.rotation,f=s.skewX,p=s.skewY,m=s.scaleX,g=s.scaleY,v=s.target,y=s.xOrigin,b=s.yOrigin,_=s.xOffset,w=s.yOffset,D=s.forceCSS,S=parseFloat(u),x=parseFloat(h);d=parseFloat(d),f=parseFloat(f),(p=parseFloat(p))&&(f+=p=parseFloat(p),d+=p),d||f?(d*=ic,f*=ic,n=Math.cos(d)*m,r=Math.sin(d)*m,i=Math.sin(d-f)*-g,a=Math.cos(d-f)*g,f&&(p*=ic,o=Math.tan(f-p),i*=o=Math.sqrt(1+o*o),a*=o,p&&(o=Math.tan(p),n*=o=Math.sqrt(1+o*o),r*=o)),n=Io(n),r=Io(r),i=Io(i),a=Io(a)):(n=m,a=g,r=i=0),(S&&!~(u+"").indexOf("px")||x&&!~(h+"").indexOf("px"))&&(S=Yc(v,"x",u,"px"),x=Yc(v,"y",h,"px")),(y||b||_||w)&&(S=Io(S+y-(y*n+b*i)+_),x=Io(x+b-(y*r+b*a)+w)),(l||c)&&(o=v.getBBox(),S=Io(S+l/100*o.width),x=Io(x+c/100*o.height)),o="matrix("+n+","+r+","+i+","+a+","+S+","+x+")",v.setAttribute("transform",o),D&&(v.style[Dc]=o)},cu=function(t,e,n,r,i){var a,o,s=360,l=Xa(i),c=parseFloat(i)*(l&&~i.indexOf("rad")?rc:1)-r,u=r+c+"deg";return l&&("short"===(a=i.split("_")[1])&&(c%=s)!==c%180&&(c+=c<0?s:-360),"cw"===a&&c<0?c=(c+36e9)%s-~~(c/s)*s:"ccw"===a&&c>0&&(c=(c-36e9)%s-~~(c/s)*s)),t._pt=o=new Vl(t._pt,e,n,r,c,hc),o.e=u,o.u="deg",t._props.push(n),o},uu=function(t,e){for(var n in e)t[n]=e[n];return t},hu=function(t,e,n){var r,i,a,o,s,l,c,u=uu({},n._gsap),h=n.style;for(i in u.svg?(a=n.getAttribute("transform"),n.setAttribute("transform",""),h[Dc]=e,r=tu(n,1),Ic(n,Dc),n.setAttribute("transform",a)):(a=getComputedStyle(n)[Dc],h[Dc]=e,r=tu(n,1),h[Dc]=a),nc)(a=u[i])!==(o=r[i])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(i)<0&&(s=_s(a)!==(c=_s(o))?Yc(n,i,a,c):parseFloat(a),l=parseFloat(o),t._pt=new Vl(t._pt,r,i,s,l-s,uc),t._pt.u=c||0,t._props.push(i));uu(r,u)};Bo("padding,margin,Width,Radius",(function(t,e){var n="Top",r="Right",i="Bottom",a="Left",o=(e<3?[n,r,i,a]:[n+a,n+r,i+r,i+a]).map((function(n){return e<2?t+n:"border"+n+t}));Wc[e>1?"border"+t:t]=function(t,e,n,r,i){var a,s;if(arguments.length<4)return a=o.map((function(e){return zc(t,e,n)})),5===(s=a.join(" ")).split(a[0]).length?a[0]:s;a=(r+"").split(" "),s={},o.forEach((function(t,e){return s[t]=a[e]=a[e]||a[(e-1)/2|0]})),t.init(e,s,i)}}));var du,fu,pu,mu={name:"css",register:Nc,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,n,r,i){var a,o,s,l,c,u,h,d,f,p,m,g,v,y,b,_,w=this._props,D=t.style,S=n.vars.startAt;for(h in Xl||Nc(),this.styles=this.styles||Cc(t),_=this.styles.props,this.tween=n,e)if("autoRound"!==h&&(o=e[h],!Eo[h]||!pl(h,e,n,r,t,i)))if(c=typeof o,u=Wc[h],"function"===c&&(c=typeof(o=o.call(n,r,t,i))),"string"===c&&~o.indexOf("random(")&&(o=Ns(o)),u)u(this,t,h,o,n)&&(b=1);else if("--"===h.substr(0,2))a=(getComputedStyle(t).getPropertyValue(h)+"").trim(),o+="",qs.lastIndex=0,qs.test(a)||(d=_s(a),f=_s(o)),f?d!==f&&(a=Yc(t,h,a,f)+f):d&&(o+=d),this.add(D,"setProperty",a,o,r,i,0,0,h),w.push(h),_.push(h,0,D[h]);else if("undefined"!==c){if(S&&h in S?(a="function"==typeof S[h]?S[h].call(n,r,t,i):S[h],Xa(a)&&~a.indexOf("random(")&&(a=Ns(a)),_s(a+"")||"auto"===a||(a+=Ya.units[h]||_s(zc(t,h))||""),"="===(a+"").charAt(1)&&(a=zc(t,h))):a=zc(t,h),l=parseFloat(a),(p="string"===c&&"="===o.charAt(1)&&o.substr(0,2))&&(o=o.substr(2)),s=parseFloat(o),h in cc&&("autoAlpha"===h&&(1===l&&"hidden"===zc(t,"visibility")&&s&&(l=0),_.push("visibility",0,D.visibility),Fc(this,D,"visibility",l?"inherit":"hidden",s?"inherit":"hidden",!s)),"scale"!==h&&"transform"!==h&&~(h=cc[h]).indexOf(",")&&(h=h.split(",")[0])),m=h in nc)if(this.styles.save(h),g||((v=t._gsap).renderTransform&&!e.parseTransform||tu(t,e.parseTransform),y=!1!==e.smoothOrigin&&v.smooth,(g=this._pt=new Vl(this._pt,D,Dc,0,1,v.renderTransform,v,0,-1)).dep=1),"scale"===h)this._pt=new Vl(this._pt,v,"scaleY",v.scaleY,(p?jo(v.scaleY,p+s):s)-v.scaleY||0,uc),this._pt.u=0,w.push("scaleY",h),h+="X";else{if("transformOrigin"===h){_.push(Sc,0,D[Sc]),o=qc(o),v.svg?Qc(t,o,0,y,0,this):((f=parseFloat(o.split(" ")[2])||0)!==v.zOrigin&&Fc(this,v,"zOrigin",v.zOrigin,f),Fc(this,D,h,eu(a),eu(o)));continue}if("svgOrigin"===h){Qc(t,o,1,y,0,this);continue}if(h in Kc){cu(this,v,h,l,p?jo(l,p+o):o);continue}if("smoothOrigin"===h){Fc(this,v,"smooth",v.smooth,o);continue}if("force3D"===h){v[h]=o;continue}if("transform"===h){hu(this,o,t);continue}}else h in D||(h=Mc(h)||h);if(m||(s||0===s)&&(l||0===l)&&!lc.test(o)&&h in D)s||(s=0),(d=(a+"").substr((l+"").length))!==(f=_s(o)||(h in Ya.units?Ya.units[h]:d))&&(l=Yc(t,h,a,f)),this._pt=new Vl(this._pt,m?v:D,h,l,(p?jo(l,p+s):s)-l,m||"px"!==f&&"zIndex"!==h||!1===e.autoRound?uc:fc),this._pt.u=f||0,d!==f&&"%"!==f&&(this._pt.b=a,this._pt.r=dc);else if(h in D)Hc.call(this,t,h,a,p?p+o:o);else if(h in t)this.add(t,h,a||t[h],p?p+o:o,r,i);else if("parseTransform"!==h){yo(h,o);continue}m||(h in D?_.push(h,0,D[h]):_.push(h,1,a||t[h])),w.push(h)}b&&Pl(this)},render:function(t,e){if(e.tween._time||!tc())for(var n=e._pt;n;)n.r(t,n.d),n=n._next;else e.styles.revert()},get:zc,aliases:cc,getSetter:function(t,e,n){var r=cc[e];return r&&r.indexOf(",")<0&&(e=r),e in nc&&e!==Sc&&(t._gsap.x||zc(t,"x"))?n&&Ql===n?"scale"===e?bc:yc:(Ql=n||{})&&("scale"===e?_c:wc):t.style&&!to(t.style[e])?gc:~e.indexOf("-")?vc:Tl(t,e)},core:{_removeProperty:Ic,_getMatrix:Jc}};Wl.utils.checkPrefix=Mc,Wl.core.getStyleSaver=Cc,pu=Bo((du="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(fu="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",(function(t){nc[t]=1})),Bo(fu,(function(t){Ya.units[t]="deg",Kc[t]=1})),cc[pu[13]]=du+","+fu,Bo("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",(function(t){var e=t.split(":");cc[e[1]]=pu[e[0]]})),Bo("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",(function(t){Ya.units[t]="px"})),Wl.registerPlugin(mu);var gu=Wl.registerPlugin(mu)||Wl;gu.core.Tween;var vu=function(){function e(){this.startPoisiton={x:0,y:0},this.endPoisiton={x:1920,y:0},this.curtain={width:1920,height:1080},this.totalTime=5,this.timeLine=gu.timeline()}return e.getInstance=function(){return this.instance||(this.instance=new e),this.instance},e.prototype.init=function(t,e){var n;null===(n=this.timeLine)||void 0===n||n.clear();var r=e.curtain,i=e.totalTime,a=e.admissionMode;i&&(this.totalTime=i),this.setEndPoisiton(r);var o=this.filterData(t,a);this.goAnimationParams=e;for(var s=0;s<o.length;s++){var l=o[s];if(l instanceof Array)for(var c=0;c<l.length;c++){var u=this.totalTime/l.length,h=l[c],d=this._creatTl("#wrap"+h.cid);this._add(d,c*u)}else{u=this.totalTime/o.length,d=this._creatTl("#wrap"+l.cid);this._add(d,s*u)}}return this.timeLine},e.prototype.filterData=function(e,n){var r;if("left"==n)r=t.orderBy(e,["baseData.left"],["asc"]);else if("top"==n)r=t.orderBy(e,["baseData.top"],["asc"]);else if("topLeft"==n){var i=this.setSpacing(e,"left");r=t.orderBy(i,["spacing"],["asc"])}else if("topRight"==n){var a=this.setSpacing(e,"right");r=t.orderBy(a,["spacing"],["asc"])}else if("center"==n){var o=this.splitArrayForCenter(e,"left");r=[t.orderBy(o.true,["center.x"],["asc"]),t.orderBy(o.false,["center.x"],["desc"])]}else if("spaceBetween"==n){o=this.splitArrayForCenter(e,"left");r=[t.orderBy(o.true,["center.x"],["desc"]),t.orderBy(o.false,["center.x"],["asc"])]}else r=t.orderBy(e,["baseData.left"],["asc"]);return r},e.prototype.getSpacing=function(t,e){var n=t.x,r=t.y,i=e.x,a=e.y,o=Math.abs(n-i),s=Math.abs(r-a);return Math.sqrt(o*o+s*s)},e.prototype.creatPosition=function(t,e){var n=0,r=0;return t?("left"===e?(n=t.left,r=t.top):"right"===e&&(n=t.left+t.width,r=t.top),{x:n,y:r}):{x:n,y:r}},e.prototype.setEndPoisiton=function(t){if(t){var e=t.width,n=t.height;this.curtain=t,this.endPoisiton.x=e,this.endPoisiton.y=n}},e.prototype.setSpacing=function(t,e){var n,r=this;return"left"===e?n=this.startPoisiton:"right"===e&&(n=this.endPoisiton),t.forEach((function(t){var i=t.baseData;if(i){var a=r.creatPosition(i,e),o=r.getSpacing(a,n);t.spacing=o}})),t},e.prototype.setCenter=function(t){return t.forEach((function(t){if(t.baseData){var e=t.baseData.left+t.baseData.width/2,n=t.baseData.top+t.baseData.height/2;t.center={x:e,y:n}}})),t},e.prototype.splitArrayForCenter=function(e,n){var r,i=this,a=this.setCenter(e);return"left"!=n&&"right"!=n||(r=t.groupBy(a,(function(t){return t.center.x>=i.curtain.width/2}))),"top"!=n&&"bottom"!=n||(r=t.groupBy(a,(function(t){return t.center.y>=i.curtain.height/2}))),r},e.prototype._add=function(t,e){this.timeLine.add(t,e)},e.prototype._creatTl=function(t){var e=gu.timeline();return e.add(this._creatTw(t)),e},e.prototype._creatTw=function(t){var e=this.goAnimationParams.params,n=e.delay,r=e.duration,i=e.repeat,a=e.type,o=e.value;return o&&o.length&&o.forEach((function(t){t.delay=n||0,t.repeat=i||0})),gu[a](t,r,o[0],o[1])},e.prototype.in=function(){},e.prototype.out=function(){},e}(),yu=vu.getInstance();var bu=function(){function e(t){this.root=null,this.vuex=zi.getInstance().VueServer,this.eventType=new Map,(null==t?void 0:t.root)&&(this.root=t.root);var e={setGlobalVar:this.setGlobalVar.bind(this),showComponent:this._showComponent.bind(this),hideComponent:this._hideComponent.bind(this),pageChange:this.pageChange.bind(this),changeDynamicState:this.changeDynamicState.bind(this)};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.eventType.set(n,[e[n]])}return e.prototype.findComponentDownward=function(t,e){var n=t.$children;if(n.length)for(var r=0,i=n;r<i.length;r++){var a=i[r];a.$options&&a.$options.propsData&&a.$options.propsData.cid&&(e[a.$options.propsData.cid]=a),a.$children&&a.$children.length&&this.findComponentDownward(a,e)}return e},e.prototype.getAllComponents=function(){var t={};return this.findComponentDownward(this.root,t),t},e.prototype.getComponentByCid=function(t){try{var e=this.getAllComponents()[t];if(!e)throw new Error("The instance was not found");return e}catch(t){console.warn(t)}},e.prototype.getElementByCid=function(t){try{if(!t)throw new Error("Please input the parameters correctly");var e=this.getComponentByCid(t);if(!e)throw new Error("The element was not found");return e.$el}catch(t){console.warn(t)}},e.prototype.setGlobalVar=function(t){try{var e=t.key,n=t.value;if(!(t&&e&&n))throw new Error("An error occurred. Please check whether the incoming parameters are correct! The correct format of data is an object containing key and value");this.setVars(t)}catch(t){console.warn(t)}},e.prototype._showComponent=function(t){try{if(!t)throw new Error("Please input the parameters correctly");this.changeVis({cid:t,flag:!0})}catch(t){console.warn(t)}},e.prototype._hideComponent=function(t){try{if(!t)throw new Error("Please input the parameters correctly");this.changeVis({cid:t,flag:!1})}catch(t){console.warn(t)}},e.prototype.getList=function(t){return t&&"id"===t?this.vuex.callState("list").map((function(t){return t.cid})):this.vuex.callState("list")},e.prototype.getTheme=function(t){var e=this.vuex.callState("theme");return t&&t(e),e},e.prototype.getElement=function(e){var n=function(e,n,r){var i=!1,a=function(e){for(var o=0;o<e.length;o++){if(e[o].cid==n){i=e[o],r&&t.remove(e,(function(t){return t.cid==n}));break}if(e[o].children)a(e[o].children);else if(e[o].dynamicChildren){if(e[o].dynamicChildren instanceof Map){for(var s=Array.from(e[o].dynamicChildren),l=0;l<s.length;l++)if(s[l]instanceof Array){var c=s[l][1];a(c)}}else if(e[o].dynamicChildren instanceof Array)for(s=e[o].dynamicChildren,l=0;l<s.length;l++)s[l]instanceof Array&&(c=s[l][1],a(c))}else e[o].stateChildren&&a(e[o].stateChildren)}};return a(e),i||!1}(this.vuex.callState("list"),e);return n},e.prototype.changeVis=function(t){return this.vuex.callMutation("changeShow",t)},e.prototype.comToggle=function(t){return this.vuex.callMutation("comToggle",t)},e.prototype.getPageInfo=function(t){var e=this.vuex.callState("caseInfo");return t&&t(e),(null==e?void 0:e.details)?e.details.map((function(t){return{name:t.caseDetailName,path:t.caseDetailPath,id:t.id}})):e},e.prototype.updateComp=function(t){return this.vuex.callMutation("updatComs",t)},e.prototype.changeDynamicState=function(t){return this.vuex.callMutation("changeDynamicState",t)},e.prototype.pageChange=function(t){return this.vuex.callMutation("setPageId",t)},e.prototype.pagePush=function(t,e,n){return void 0===n&&(n={}),this.vuex.callMutation("pagePush",{type:t,value:e,option:n})},e.prototype.activeState=function(t,e){return this.vuex.callMutation("setDynamicActive",{cid:t,name:e})},e.prototype.getVars=function(t){var e=Rr.getAllVariables();return t&&t(e),e},e.prototype.setVars=function(t){var e=Rr.getVariable(t.key);if(2!=(null==e?void 0:e.model))return this.vuex.callAction("goEditVar",t);console.warn("系统变量禁止修改!")},e}(),_u=function(t){function e(e){var n,r,i=t.call(this,e)||this,a=(n=(n=i.eventType)||new Map,c(c({},r),{EventType:n,on:function(t,e){var r=n.get(t);r?r.push(e):n.set(t,[e])},off:function(t,e){var r=n.get(t);r&&(e?r.splice(r.indexOf(e)>>>0,1):n.set(t,[]))},emit:function(t,e){var r=n.get(t);if(r){var i=r.slice().map((function(t){return t(e)}));if(i&&1==i.length)return i[0]}(r=n.get("*"))&&r.slice().map((function(n){n(t,e)}))}}));return i.$emit=a.emit,i.$on=a.on,i.$off=a.off,i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}l(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(e,t),Object.defineProperty(e.prototype,"Theme",{get:function(){return this.getTheme()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Components",{get:function(){return this.getAllComponents()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"GlobalVars",{get:function(){return this.getVars()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Pages",{get:function(){return this.getPageInfo()},enumerable:!1,configurable:!0}),e.prototype.getElementById=function(t){this.getElementByCid(t)},e.prototype.getComponentById=function(t){this.getComponentByCid(t)},e.prototype.getPage=function(){},e}(bu),wu=function(){function t(t){this.$action=new Du(t),this.instance=new _u(t)}return t.prototype.getGlobalvars=function(){for(var t=Rr.getAllVariables(),e=t.map((function(t){return t.mapField})),n={},r=function(e){var r=t.find((function(t){return t.mapField==e}));r&&(n[e]=r.value)},i=0,a=e;i<a.length;i++){r(a[i])}var o=this.instance;return new Proxy(n,{has:function(t,e){return!e&&e in t},get:function(t,e){if(e in t)return t[e];throw new ReferenceError('Prop name "'+e+'" does not exist.')},set:function(t,e,n){if(!t[e])return console.log("变量不存在/不能被修改"),!1;if(t[e]=n,!e||"string"!=typeof e)throw new Error("Invalid key");o.setGlobalVar({key:e,value:n})}})},Object.defineProperty(t.prototype,"globalvars",{get:function(){return this.getGlobalvars()},enumerable:!1,configurable:!0}),t}(),Du=function(t){var e=this;this.setGlobalVars=function(t,n){if(!t||"string"!=typeof t)throw new Error("Invalid key");e.instance.setGlobalVar({key:t,value:n})},this.skipTo=function(t){var n=null==t?void 0:t.params;if(!t||0===Object.keys(t).length)throw new Error("事件跳转发生错误:参数:".concat(t," 不正确,请正确填写!doc: https://anov.cucloud.cn/anov-go-doc/"));if(t.name)e.instance.pagePush("name",t.name,n);else if(t.path)e.instance.pagePush("path",t.path,n);else{if(!t.url)throw new Error("事件跳转发生错误:参数:".concat(t," 不正确,请正确填写!doc: https://anov.cucloud.cn/anov-go-doc/"));window.open(t.url)}},this.toggle=function(t){if(t)if("string"!=typeof t&&"number"!=typeof t)if(Array.isArray(t))for(var n=0,r=t;n<r.length;n++){var i=r[n];"string"==typeof i||"number"==typeof i?e.instance.comToggle(i):console.warn("请传入正确的参数!")}else console.warn("请传入正确的参数!");else e.instance.comToggle(t);else console.warn("请传入正确的参数!")},this.show=function(t){if(t)if("string"!=typeof t&&"number"!=typeof t){if(Array.isArray(t))for(var n=0,r=t;n<r.length;n++){var i=r[n];"string"==typeof i||"number"==typeof i?e.instance._showComponent(i.toString()):console.warn("请传入正确的参数!")}}else e.instance._showComponent(t.toString());else console.warn("请传入正确的参数!")},this.hide=function(t){if(t)if("string"!=typeof t&&"number"!=typeof t){if(Array.isArray(t))for(var n=0,r=t;n<r.length;n++){var i=r[n];"string"==typeof i||"number"==typeof i?e.instance._hideComponent(i):console.warn("请传入正确的参数!")}}else e.instance._hideComponent(t);else console.warn("请传入正确的参数!")},this.activeState=function(t,n){e.instance.activeState(t,n)},this.updateComp=function(t){if(t)if("string"!=typeof t&&"number"!=typeof t){if(Array.isArray(t))for(var n=0,r=t;n<r.length;n++){var i=r[n];"string"==typeof i||"number"==typeof i?e.instance.updateComp(i):console.warn("请传入正确的参数!")}}else e.instance.updateComp(t);else console.warn("请传入正确的参数!")},this.instance=new _u(t)},Su=function(t){return new wu(t)},xu=function(t,e){console.log("弃用")},Tu=function(t,e){return e&&t?zi.getInstance().render(t,e):t?zi.getInstance().render(t):void 0},ku=function(t,e,n){return void 0!==n&&t?zi.getInstance().renderForParent(t,e,n):t?zi.getInstance().renderForParent(t,e):void 0},Cu=function(t,e){return zi.getInstance().emitEvent(t,e||function(){})},Eu=function(){};export{zi as Go,yu as GoAnimation,Ca as Tool,Tu as createComponent,ku as createComponentForParent,Cu as emitEvent,mi as fxhr,xu as getDataForRelease,ni as goUtils,Eu as log,pi as refreshData,Su as run,Mi as store};
|
|
52
52
|
//# sourceMappingURL=code.es5.js.map
|