go-core 0.5.8 → 0.6.0
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 +8 -8
- package/package.json +2 -2
package/dist/code.es5.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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 o(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function a(t,e){return t(e={exports:{}},e.exports),e.exports}var s=a((function(t,e){t.exports=function(){var e,n;function r(){return e.apply(null,arguments)}function o(t){e=t}function a(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 w=r.momentProperties=[],_=!1;function D(t,e){var n,r,i,o=w.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),o>0)for(n=0;n<o;n++)u(i=e[r=w[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===_&&(_=!0,r.updateOffset(this),_=!1)}function x(t){return t instanceof S||null!=t&&null!=t._isAMomentObject}function k(t){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function T(t,e){var n=!0;return p((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,t),n){var i,o,a,s=[],c=arguments.length;for(o=0;o<c;o++){if(i="","object"==typeof arguments[o]){for(a in i+="\n["+o+"] ",arguments[0])l(arguments[0],a)&&(i+=a+": "+arguments[0][a]+", ");i=i.slice(0,-2)}else i=arguments[o];s.push(i)}k(t+"\nArguments: "+Array.prototype.slice.call(s).join("")+"\n"+(new Error).stack),n=!1}return e.apply(this,arguments)}),e)}var C,E={};function O(t,e){null!=r.deprecationHandler&&r.deprecationHandler(t,e),E[t]||(k(e),E[t]=!0)}function A(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)&&(A(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 I={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function V(t,e,n){var r=this._calendar[t]||this._calendar.sameElse;return A(r)?r.call(e,n):r}function R(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 B=/(\[[^\[]*\])|(\\)?([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 H(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 R(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 Y(t){var e,n,r=t.match(B);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,o="";for(i=0;i<n;i++)o+=A(r[i])?r[i].call(e,t):r[i];return o}}function U(t,e){return t.isValid()?(e=q(e,t.localeData()),j[e]=j[e]||Y(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(B).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 X="%d",Z=/\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 A(i)?i(t,e,n,r):i.replace(/%d/i,t)}function et(t,e){var n=this._relativeTime[t>0?"future":"past"];return A(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 ot={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 at(t){var e,n=[];for(e in t)l(t,e)&&n.push({unit:e,priority:ot[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+/,wt=/[+-]?\d+/,_t=/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,kt=/^[1-9]\d?/,Tt=/^([1-9]\d|\d)/;function Ct(t,e,n){st[t]=A(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(Ot(t))}function Ot(t){return At(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,n,r,i){return e||n||r||i})))}function At(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 It(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 Vt(t,e){It(t,(function(t,n,r,i){r._w=r._w||{},e(t,r._w,r,i)}))}function Rt(t,e,n){null!=e&&l(Pt,t)&&Pt[t](e,n._a,n,t)}function Bt(t){return t%4==0&&t%100!=0||t%400==0}var Ft=0,jt=1,Lt=2,Ht=3,zt=4,Yt=5,Ut=6,qt=7,Gt=8;function Wt(t){return Bt(t)?366:365}H("Y",0,0,(function(){var t=this.year();return t<=9999?R(t,4):"+"+t})),H(0,["YY",2],0,(function(){return this.year()%100})),H(0,["YYYY",4],0,"year"),H(0,["YYYYY",5],0,"year"),H(0,["YYYYYY",6,!0],0,"year"),Ct("Y",wt),Ct("YY",ft,ct),Ct("YYYY",vt,ht),Ct("YYYYY",yt,dt),Ct("YYYYYY",yt,dt),It(["YYYYY","YYYYYY"],Ft),It("YYYY",(function(t,e){e[Ft]=2===t.length?r.parseTwoDigitYear(t):Nt(t)})),It("YY",(function(t,e){e[Ft]=r.parseTwoDigitYear(t)})),It("Y",(function(t,e){e[Ft]=parseInt(t,10)})),r.parseTwoDigitYear=function(t){return Nt(t)+(Nt(t)>68?1900:2e3)};var $t,Kt=Zt("FullYear",!0);function Xt(){return Bt(this.year())}function Zt(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,o,a,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}o=n,a=t.month(),s=29!==(s=t.date())||1!==a||Bt(o)?s:28,i?r.setUTCFullYear(o,a,s):r.setFullYear(o,a,s)}}function te(t){return A(this[t=rt(t)])?this[t]():this}function ee(t,e){if("object"==typeof t){var n,r=at(t=it(t)),i=r.length;for(n=0;n<i;n++)this[r[n].unit](t[r[n].unit])}else if(A(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?Bt(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},H("M",["MM",2],"Mo",(function(){return this.month()+1})),H("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),H("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),Ct("M",ft,kt),Ct("MM",ft,ct),Ct("MMM",(function(t,e){return e.monthsShortRegex(t)})),Ct("MMMM",(function(t,e){return e.monthsRegex(t)})),It(["M","MM"],(function(t,e){e[jt]=Nt(t)-1})),It(["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("_"),oe="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ae=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,se=xt,le=xt;function ce(t,e){return t?a(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||ae).test(e)?"format":"standalone"][t.month()]:a(this._months)?this._months:this._months.standalone}function ue(t,e){return t?a(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[ae.test(e)?"format":"standalone"][t.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function he(t,e,n){var r,i,o,a=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=m([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(i=$t.call(this._shortMonthsParse,a))?i:null:-1!==(i=$t.call(this._longMonthsParse,a))?i:null:"MMM"===e?-1!==(i=$t.call(this._shortMonthsParse,a))||-1!==(i=$t.call(this._longMonthsParse,a))?i:null:-1!==(i=$t.call(this._longMonthsParse,a))||-1!==(i=$t.call(this._shortMonthsParse,a))?i:null}function de(t,e,n){var r,i,o;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]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.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,o=[],a=[],s=[];for(e=0;e<12;e++)n=m([2e3,e]),r=At(this.monthsShort(n,"")),i=At(this.months(n,"")),o.push(r),a.push(i),s.push(i),s.push(r);o.sort(t),a.sort(t),s.sort(t),this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+o.join("|")+")","i")}function be(t,e,n,r,i,o,a){var s;return t<100&&t>=0?(s=new Date(t+400,e,n,r,i,o,a),isFinite(s.getFullYear())&&s.setFullYear(t)):s=new Date(t,e,n,r,i,o,a),s}function we(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 _e(t,e,n){var r=7+e-n;return-(7+we(t,0,r).getUTCDay()-e)%7+r-1}function De(t,e,n,r,i){var o,a,s=1+7*(e-1)+(7+n-r)%7+_e(t,r,i);return s<=0?a=Wt(o=t-1)+s:s>Wt(t)?(o=t+1,a=s-Wt(t)):(o=t,a=s),{year:o,dayOfYear:a}}function Se(t,e,n){var r,i,o=_e(t.year(),e,n),a=Math.floor((t.dayOfYear()-o-1)/7)+1;return a<1?r=a+xe(i=t.year()-1,e,n):a>xe(t.year(),e,n)?(r=a-xe(t.year(),e,n),i=t.year()+1):(i=t.year(),r=a),{week:r,year:i}}function xe(t,e,n){var r=_e(t,e,n),i=_e(t+1,e,n);return(Wt(t)-r+i)/7}function ke(t){return Se(t,this._week.dow,this._week.doy).week}H("w",["ww",2],"wo","week"),H("W",["WW",2],"Wo","isoWeek"),Ct("w",ft,kt),Ct("ww",ft,ct),Ct("W",ft,kt),Ct("WW",ft,ct),Vt(["w","ww","W","WW"],(function(t,e,n,r){e[r.substr(0,1)]=Nt(t)}));var Te={dow:0,doy:6};function Ce(){return this._week.dow}function Ee(){return this._week.doy}function Oe(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function Ae(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))}H("d",0,"do","day"),H("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),H("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),H("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),H("e",0,0,"weekday"),H("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)})),Vt(["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})),Vt(["d","e","E"],(function(t,e,n,r){e[r]=Nt(t)}));var Ie="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ve="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Re="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Be=xt,Fe=xt,je=xt;function Le(t,e){var n=a(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 He(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 Ye(t,e,n){var r,i,o,a=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=m([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(i=$t.call(this._weekdaysParse,a))?i:null:"ddd"===e?-1!==(i=$t.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=$t.call(this._minWeekdaysParse,a))?i:null:"dddd"===e?-1!==(i=$t.call(this._weekdaysParse,a))||-1!==(i=$t.call(this._shortWeekdaysParse,a))||-1!==(i=$t.call(this._minWeekdaysParse,a))?i:null:"ddd"===e?-1!==(i=$t.call(this._shortWeekdaysParse,a))||-1!==(i=$t.call(this._weekdaysParse,a))||-1!==(i=$t.call(this._minWeekdaysParse,a))?i:null:-1!==(i=$t.call(this._minWeekdaysParse,a))||-1!==(i=$t.call(this._weekdaysParse,a))||-1!==(i=$t.call(this._shortWeekdaysParse,a))?i:null}function Ue(t,e,n){var r,i,o;if(this._weekdaysParseExact)return Ye.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]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.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")||Ze.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=Be),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ke(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Ze.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Fe),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Xe(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Ze.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=je),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ze(){function t(t,e){return e.length-t.length}var e,n,r,i,o,a=[],s=[],l=[],c=[];for(e=0;e<7;e++)n=m([2e3,1]).day(e),r=At(this.weekdaysMin(n,"")),i=At(this.weekdaysShort(n,"")),o=At(this.weekdays(n,"")),a.push(r),s.push(i),l.push(o),c.push(r),c.push(i),c.push(o);a.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("^("+a.join("|")+")","i")}function Je(){return this.hours()%12||12}function Qe(){return this.hours()||24}function tn(t,e){H(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)}H("H",["HH",2],0,"hour"),H("h",["hh",2],0,Je),H("k",["kk",2],0,Qe),H("hmm",0,0,(function(){return""+Je.apply(this)+R(this.minutes(),2)})),H("hmmss",0,0,(function(){return""+Je.apply(this)+R(this.minutes(),2)+R(this.seconds(),2)})),H("Hmm",0,0,(function(){return""+this.hours()+R(this.minutes(),2)})),H("Hmmss",0,0,(function(){return""+this.hours()+R(this.minutes(),2)+R(this.seconds(),2)})),tn("a",!0),tn("A",!1),Ct("a",en),Ct("A",en),Ct("H",ft,Tt),Ct("h",ft,kt),Ct("k",ft,kt),Ct("HH",ft,ct),Ct("hh",ft,ct),Ct("kk",ft,ct),Ct("hmm",pt),Ct("hmmss",mt),Ct("Hmm",pt),Ct("Hmmss",mt),It(["H","HH"],Ht),It(["k","kk"],(function(t,e,n){var r=Nt(t);e[Ht]=24===r?0:r})),It(["a","A"],(function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t})),It(["h","hh"],(function(t,e,n){e[Ht]=Nt(t),v(n).bigHour=!0})),It("hmm",(function(t,e,n){var r=t.length-2;e[Ht]=Nt(t.substr(0,r)),e[zt]=Nt(t.substr(r)),v(n).bigHour=!0})),It("hmmss",(function(t,e,n){var r=t.length-4,i=t.length-2;e[Ht]=Nt(t.substr(0,r)),e[zt]=Nt(t.substr(r,2)),e[Yt]=Nt(t.substr(i)),v(n).bigHour=!0})),It("Hmm",(function(t,e,n){var r=t.length-2;e[Ht]=Nt(t.substr(0,r)),e[zt]=Nt(t.substr(r))})),It("Hmmss",(function(t,e,n){var r=t.length-4,i=t.length-2;e[Ht]=Nt(t.substr(0,r)),e[zt]=Nt(t.substr(r,2)),e[Yt]=Nt(t.substr(i))}));var rn=/[ap]\.?m?\.?/i,on=Zt("Hours",!0);function an(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}var sn,ln={calendar:I,longDateFormat:G,invalidDate:$,ordinal:X,dayOfMonthOrdinalParse:Z,relativeTime:Q,months:ie,monthsShort:oe,week:Te,weekdays:Ie,weekdaysMin:Re,weekdaysShort:Ve,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,o=0;o<t.length;){for(e=(i=dn(t[o]).split("-")).length,n=(n=dn(t[o+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--}o++}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])O("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(!a(t)){if(e=mn(t))return e;t=[t]}return fn(t)}function wn(){return C(cn)}function _n(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[Ht]<0||n[Ht]>24||24===n[Ht]&&(0!==n[zt]||0!==n[Yt]||0!==n[Ut])?Ht:n[zt]<0||n[zt]>59?zt:n[Yt]<0||n[Yt]>59?Yt: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)?/,kn=[["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]],Tn=[["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}))$/,On={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function An(t){var e,n,r,i,o,a,s=t._i,l=Dn.exec(s)||Sn.exec(s),c=kn.length,u=Tn.length;if(l){for(v(t).iso=!0,e=0,n=c;e<n;e++)if(kn[e][1].exec(l[1])){i=kn[e][0],r=!1!==kn[e][2];break}if(null==i)return void(t._isValid=!1);if(l[3]){for(e=0,n=u;e<n;e++)if(Tn[e][1].exec(l[3])){o=(l[2]||" ")+Tn[e][0];break}if(null==o)return void(t._isValid=!1)}if(!r&&null!=o)return void(t._isValid=!1);if(l[4]){if(!xn.exec(l[4]))return void(t._isValid=!1);a="Z"}t._f=i+(o||"")+(a||""),zn(t)}else t._isValid=!1}function Mn(t,e,n,r,i,o){var a=[Nn(t),oe.indexOf(e),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return o&&a.push(parseInt(o,10)),a}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 In(t,e,n){return!t||Ve.indexOf(t)===new Date(e[0],e[1],e[2]).getDay()||(v(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Vn(t,e,n){if(t)return On[t];if(e)return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}function Rn(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]),!In(n[1],e,t))return;t._a=e,t._tzm=Vn(n[8],n[9],n[10]),t._d=we.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),v(t).rfc2822=!0}else t._isValid=!1}function Bn(t){var e=Cn.exec(t._i);null===e?(An(t),!1===t._isValid&&(delete t._isValid,Rn(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,o,a=[];if(!t._d){for(r=jn(t),t._w&&null==t._a[Lt]&&null==t._a[jt]&&Hn(t),null!=t._dayOfYear&&(o=Fn(t._a[Ft],r[Ft]),(t._dayOfYear>Wt(o)||0===t._dayOfYear)&&(v(t)._overflowDayOfYear=!0),n=we(o,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]=a[e]=r[e];for(;e<7;e++)t._a[e]=a[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[Ht]&&0===t._a[zt]&&0===t._a[Yt]&&0===t._a[Ut]&&(t._nextDay=!0,t._a[Ht]=0),t._d=(t._useUTC?we:be).apply(null,a),i=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[Ht]=24),t._w&&void 0!==t._w.d&&t._w.d!==i&&(v(t).weekdayMismatch=!0)}}function Hn(t){var e,n,r,i,o,a,s,l,c;null!=(e=t._w).GG||null!=e.W||null!=e.E?(o=1,a=4,n=Fn(e.GG,t._a[Ft],Se(Xn(),1,4).year),r=Fn(e.W,1),((i=Fn(e.E,1))<1||i>7)&&(l=!0)):(o=t._locale._week.dow,a=t._locale._week.doy,c=Se(Xn(),o,a),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+o,(e.e<0||e.e>6)&&(l=!0)):i=o),r<1||r>xe(n,o,a)?v(t)._overflowWeeks=!0:null!=l?v(t)._overflowWeekday=!0:(s=De(n,r,i,o,a),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,o,a,s,l,c=""+t._i,u=c.length,h=0;for(l=(i=q(t._f,t._locale).match(B)||[]).length,e=0;e<l;e++)o=i[e],(n=(c.match(Et(o,t))||[])[0])&&((a=c.substr(0,c.indexOf(n))).length>0&&v(t).unusedInput.push(a),c=c.slice(c.indexOf(n)+n.length),h+=n.length),L[o]?(n?v(t).empty=!1:v(t).unusedTokens.push(o),Rt(o,n,t)):t._strict&&!n&&v(t).unusedTokens.push(o);v(t).charsLeftOver=u-h,c.length>0&&v(t).unusedInput.push(c),t._a[Ht]<=12&&!0===v(t).bigHour&&t._a[Ht]>0&&(v(t).bigHour=void 0),v(t).parsedDateParts=t._a.slice(0),v(t).meridiem=t._meridiem,t._a[Ht]=Yn(t._locale,t._a[Ht],t._meridiem),null!==(s=v(t).era)&&(t._a[Ft]=t._locale.erasConvertYear(s,t._a[Ft])),Ln(t),_n(t)}else Rn(t);else An(t)}function Yn(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,o,a,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++)o=0,a=!1,e=D({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[i],zn(e),y(e)&&(a=!0),o+=v(e).charsLeftOver,o+=10*v(e).unusedTokens.length,v(e).score=o,s?o<r&&(r=o,n=e):(null==r||o<r||a)&&(r=o,n=e,a&&(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(_n(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(_n(e)):(d(e)?t._d=e:a(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?Bn(t):a(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 o={};return!0!==e&&!1!==e||(r=e,e=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(s(t)&&c(t)||a(t)&&0===t.length)&&(t=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=i,o._l=n,o._i=t,o._f=e,o._strict=r,Gn(o)}function Xn(t,e,n,r){return Kn(t,e,n,r,!1)}r.createFromInputFallback=T("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 Zn=T("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Xn.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:b()})),Jn=T("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Xn.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:b()}));function Qn(t,e){var n,r;if(1===e.length&&a(e[0])&&(e=e[0]),!e.length)return Xn();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 or(){return this._isValid}function ar(){return Or(NaN)}function sr(t){var e=it(t),n=e.year||0,r=e.quarter||0,i=e.month||0,o=e.week||e.isoWeek||0,a=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=+a+7*o,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),o=Math.abs(t.length-e.length),a=0;for(r=0;r<i;r++)(n&&t[r]!==e[r]||!n&&Nt(t[r])!==Nt(e[r]))&&a++;return a+o}function hr(t,e){H(t,0,0,(function(){var t=this.utcOffset(),n="+";return t<0&&(t=-t,n="-"),n+R(~~(t/60),2)+e+R(~~t%60,2)}))}hr("Z",":"),hr("ZZ",""),Ct("Z",Dt),Ct("ZZ",Dt),It(["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():Xn(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),r.updateOffset(n,!1),n):Xn(t).local()}function mr(t){return-Math.round(t._d.getTimezoneOffset())}function gr(t,e,n){var i,o=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"),o!==t&&(!e||this._changeInProgress?Ir(this,Or(t-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o: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 wr(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=fr(_t,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this}function _r(t){return!!this.isValid()&&(t=t?Xn(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):Xn(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 kr(){return!!this.isValid()&&this._isUTC}function Tr(){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 Or(t,e){var n,r,i,o=t,a=null;return lr(t)?o={ms:t._milliseconds,d:t._days,M:t._months}:h(t)||!isNaN(+t)?(o={},e?o[e]=+t:o.milliseconds=+t):(a=Cr.exec(t))?(n="-"===a[1]?-1:1,o={y:0,d:Nt(a[Lt])*n,h:Nt(a[Ht])*n,m:Nt(a[zt])*n,s:Nt(a[Yt])*n,ms:Nt(cr(1e3*a[Ut]))*n}):(a=Er.exec(t))?(n="-"===a[1]?-1:1,o={y:Ar(a[2],n),M:Ar(a[3],n),w:Ar(a[4],n),d:Ar(a[5],n),h:Ar(a[6],n),m:Ar(a[7],n),s:Ar(a[8],n)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(i=Nr(Xn(o.from),Xn(o.to)),(o={}).ms=i.milliseconds,o.M=i.months),r=new sr(o),lr(t)&&l(t,"_locale")&&(r._locale=t._locale),lr(t)&&l(t,"_isValid")&&(r._isValid=t._isValid),r}function Ar(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)||(O(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),Ir(this,Or(n,r),t),this}}function Ir(t,e,n,i){var o=e._milliseconds,a=cr(e._days),s=cr(e._months);t.isValid()&&(i=null==i||i,s&&fe(t,Jt(t,"Month")+s*n),a&&Qt(t,"Date",Jt(t,"Date")+a*n),o&&t._d.setTime(t._d.valueOf()+o*n),i&&r.updateOffset(t,a||s))}Or.fn=sr.prototype,Or.invalid=ar;var Vr=Pr(1,"add"),Rr=Pr(-1,"subtract");function Br(t){return"string"==typeof t||t instanceof String}function Fr(t){return x(t)||d(t)||Br(t)||h(t)||Lr(t)||jr(t)||null==t}function jr(t){var e,n,r=s(t)&&!c(t),i=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a=o.length;for(e=0;e<a;e+=1)n=o[e],i=i||l(t,n);return r&&i}function Lr(t){var e=a(t),n=!1;return e&&(n=0===t.filter((function(e){return!h(e)&&Br(t)})).length),e&&n}function Hr(t){var e,n,r=s(t)&&!c(t),i=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(e=0;e<o.length;e+=1)n=o[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 Yr(t,e){1===arguments.length&&(arguments[0]?Fr(arguments[0])?(t=arguments[0],e=void 0):Hr(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var n=t||Xn(),i=pr(n,this).startOf("day"),o=r.calendarFormat(this,i)||"sameElse",a=e&&(A(e[o])?e[o].call(this,n):e[o]);return this.format(a||this.localeData().calendar(o,this,Xn(n)))}function Ur(){return new S(this)}function qr(t,e){var n=x(t)?t:Xn(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:Xn(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:Xn(t),o=x(e)?e:Xn(e);return!!(this.isValid()&&i.isValid()&&o.isValid())&&("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(o,n):!this.isAfter(o,n))}function $r(t,e){var n,r=x(t)?t:Xn(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 Xr(t,e){return this.isSame(t,e)||this.isBefore(t,e)}function Zr(t,e,n){var r,i,o;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":o=Jr(this,r)/12;break;case"month":o=Jr(this,r);break;case"quarter":o=Jr(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:Mt(o)}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"):A(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",o="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),t="["+i+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=o+'[")]',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()||Xn(t).isValid())?Or({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function ii(t){return this.from(Xn(),t)}function oi(t,e){return this.isValid()&&(x(t)&&t.isValid()||Xn(t).isValid())?Or({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function ai(t){return this.to(Xn(),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=T("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 wi(){return Math.floor(this.valueOf()/1e3)}function _i(){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 ki(){return y(this)}function Ti(){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 Oi(t,e){var n,i,o,a=this._eras||bn("en")._eras;for(n=0,i=a.length;n<i;++n)switch("string"==typeof a[n].since&&(o=r(a[n].since).startOf("day"),a[n].since=o.valueOf()),typeof a[n].until){case"undefined":a[n].until=1/0;break;case"string":o=r(a[n].until).startOf("day").valueOf(),a[n].until=o.valueOf()}return a}function Ai(t,e,n){var r,i,o,a,s,l=this.eras();for(t=t.toUpperCase(),r=0,i=l.length;r<i;++r)if(o=l[r].name.toUpperCase(),a=l[r].abbr.toUpperCase(),s=l[r].narrow.toUpperCase(),n)switch(e){case"N":case"NN":case"NNN":if(a===t)return l[r];break;case"NNNN":if(o===t)return l[r];break;case"NNNNN":if(s===t)return l[r]}else if([o,a,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 Ii(){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 Vi(){var t,e,n,i,o=this.localeData().eras();for(t=0,e=o.length;t<e;++t)if(n=o[t].since<=o[t].until?1:-1,i=this.clone().startOf("day").valueOf(),o[t].since<=i&&i<=o[t].until||o[t].until<=i&&i<=o[t].since)return(this.year()-r(o[t].since).year())*n+o[t].offset;return this.year()}function Ri(t){return l(this,"_erasNameRegex")||Yi.call(this),t?this._erasNameRegex:this._erasRegex}function Bi(t){return l(this,"_erasAbbrRegex")||Yi.call(this),t?this._erasAbbrRegex:this._erasRegex}function Fi(t){return l(this,"_erasNarrowRegex")||Yi.call(this),t?this._erasNarrowRegex:this._erasRegex}function ji(t,e){return e.erasAbbrRegex(t)}function Li(t,e){return e.erasNameRegex(t)}function Hi(t,e){return e.erasNarrowRegex(t)}function zi(t,e){return e._eraYearOrdinalRegex||bt}function Yi(){var t,e,n,r,i,o=[],a=[],s=[],l=[],c=this.eras();for(t=0,e=c.length;t<e;++t)n=At(c[t].name),r=At(c[t].abbr),i=At(c[t].narrow),a.push(n),o.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("^("+a.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i")}function Ui(t,e){H(0,[t,t.length],0,e)}function qi(t){return Zi.call(this,t,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Gi(t){return Zi.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 Xi(){var t=this.localeData()._week;return xe(this.weekYear(),t.dow,t.doy)}function Zi(t,e,n,r,i){var o;return null==t?Se(this,r,i).year:(e>(o=xe(t,r,i))&&(e=o),Ji.call(this,t,e,n,r,i))}function Ji(t,e,n,r,i){var o=De(t,e,n,r,i),a=we(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Qi(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}H("N",0,0,"eraAbbr"),H("NN",0,0,"eraAbbr"),H("NNN",0,0,"eraAbbr"),H("NNNN",0,0,"eraName"),H("NNNNN",0,0,"eraNarrow"),H("y",["y",1],"yo","eraYear"),H("y",["yy",2],0,"eraYear"),H("y",["yyy",3],0,"eraYear"),H("y",["yyyy",4],0,"eraYear"),Ct("N",ji),Ct("NN",ji),Ct("NNN",ji),Ct("NNNN",Li),Ct("NNNNN",Hi),It(["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),It(["y","yy","yyy","yyyy"],Ft),It(["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)})),H(0,["gg",2],0,(function(){return this.weekYear()%100})),H(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Ui("gggg","weekYear"),Ui("ggggg","weekYear"),Ui("GGGG","isoWeekYear"),Ui("GGGGG","isoWeekYear"),Ct("G",wt),Ct("g",wt),Ct("GG",ft,ct),Ct("gg",ft,ct),Ct("GGGG",vt,ht),Ct("gggg",vt,ht),Ct("GGGGG",yt,dt),Ct("ggggg",yt,dt),Vt(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,n,r){e[r.substr(0,2)]=Nt(t)})),Vt(["gg","GG"],(function(t,e,n,i){e[i]=r.parseTwoDigitYear(t)})),H("Q",0,"Qo","quarter"),Ct("Q",lt),It("Q",(function(t,e){e[jt]=3*(Nt(t)-1)})),H("D",["DD",2],"Do","date"),Ct("D",ft,kt),Ct("DD",ft,ct),Ct("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),It(["D","DD"],Lt),It("Do",(function(t,e){e[Lt]=Nt(t.match(ft)[0])}));var to=Zt("Date",!0);function eo(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")}H("DDD",["DDDD",3],"DDDo","dayOfYear"),Ct("DDD",gt),Ct("DDDD",ut),It(["DDD","DDDD"],(function(t,e,n){n._dayOfYear=Nt(t)})),H("m",["mm",2],0,"minute"),Ct("m",ft,Tt),Ct("mm",ft,ct),It(["m","mm"],zt);var no=Zt("Minutes",!1);H("s",["ss",2],0,"second"),Ct("s",ft,Tt),Ct("ss",ft,ct),It(["s","ss"],Yt);var ro,io,oo=Zt("Seconds",!1);for(H("S",0,0,(function(){return~~(this.millisecond()/100)})),H(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),H(0,["SSS",3],0,"millisecond"),H(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),H(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),H(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),H(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),H(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),H(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),Ct("S",gt,lt),Ct("SS",gt,ct),Ct("SSS",gt,ut),ro="SSSS";ro.length<=9;ro+="S")Ct(ro,bt);function ao(t,e){e[Ut]=Nt(1e3*("0."+t))}for(ro="S";ro.length<=9;ro+="S")It(ro,ao);function so(){return this._isUTC?"UTC":""}function lo(){return this._isUTC?"Coordinated Universal Time":""}io=Zt("Milliseconds",!1),H("z",0,0,"zoneAbbr"),H("zz",0,0,"zoneName");var co=S.prototype;function uo(t){return Xn(1e3*t)}function ho(){return Xn.apply(null,arguments).parseZone()}function fo(t){return t}co.add=Vr,co.calendar=Yr,co.clone=Ur,co.diff=Zr,co.endOf=yi,co.format=ni,co.from=ri,co.fromNow=ii,co.to=oi,co.toNow=ai,co.get=te,co.invalidAt=Ci,co.isAfter=qr,co.isBefore=Gr,co.isBetween=Wr,co.isSame=$r,co.isSameOrAfter=Kr,co.isSameOrBefore=Xr,co.isValid=ki,co.lang=li,co.locale=si,co.localeData=ci,co.max=Jn,co.min=Zn,co.parsingFlags=Ti,co.set=ee,co.startOf=vi,co.subtract=Rr,co.toArray=Di,co.toObject=Si,co.toDate=_i,co.toISOString=ti,co.inspect=ei,"undefined"!=typeof Symbol&&null!=Symbol.for&&(co[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),co.toJSON=xi,co.toString=Qr,co.unix=wi,co.valueOf=bi,co.creationData=Ei,co.eraName=Ni,co.eraNarrow=Pi,co.eraAbbr=Ii,co.eraYear=Vi,co.year=Kt,co.isLeapYear=Xt,co.weekYear=qi,co.isoWeekYear=Gi,co.quarter=co.quarters=Qi,co.month=pe,co.daysInMonth=me,co.week=co.weeks=Oe,co.isoWeek=co.isoWeeks=Ae,co.weeksInYear=Ki,co.weeksInWeekYear=Xi,co.isoWeeksInYear=Wi,co.isoWeeksInISOWeekYear=$i,co.date=to,co.day=co.days=qe,co.weekday=Ge,co.isoWeekday=We,co.dayOfYear=eo,co.hour=co.hours=on,co.minute=co.minutes=no,co.second=co.seconds=oo,co.millisecond=co.milliseconds=io,co.utcOffset=gr,co.utc=yr,co.local=br,co.parseZone=wr,co.hasAlignedHourOffset=_r,co.isDST=Dr,co.isLocal=xr,co.isUtcOffset=kr,co.isUtc=Tr,co.isUTC=Tr,co.zoneAbbr=so,co.zoneName=lo,co.dates=T("dates accessor is deprecated. Use date instead.",to),co.months=T("months accessor is deprecated. Use month instead",pe),co.years=T("years accessor is deprecated. Use year instead",Kt),co.zone=T("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",vr),co.isDSTShifted=T("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Sr);var po=P.prototype;function mo(t,e,n,r){var i=bn(),o=m().set(r,e);return i[n](o,t)}function go(t,e,n){if(h(t)&&(e=t,t=void 0),t=t||"",null!=e)return mo(t,e,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=mo(t,r,n,"month");return i}function vo(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,o=bn(),a=t?o._week.dow:0,s=[];if(null!=n)return mo(e,(n+a)%7,r,"day");for(i=0;i<7;i++)s[i]=mo(e,(i+a)%7,r,"day");return s}function yo(t,e){return go(t,e,"months")}function bo(t,e){return go(t,e,"monthsShort")}function wo(t,e,n){return vo(t,e,n,"weekdays")}function _o(t,e,n){return vo(t,e,n,"weekdaysShort")}function Do(t,e,n){return vo(t,e,n,"weekdaysMin")}po.calendar=V,po.longDateFormat=W,po.invalidDate=K,po.ordinal=J,po.preparse=fo,po.postformat=fo,po.relativeTime=tt,po.pastFuture=et,po.set=M,po.eras=Oi,po.erasParse=Ai,po.erasConvertYear=Mi,po.erasAbbrRegex=Bi,po.erasNameRegex=Ri,po.erasNarrowRegex=Fi,po.months=ce,po.monthsShort=ue,po.monthsParse=de,po.monthsRegex=ve,po.monthsShortRegex=ge,po.week=ke,po.firstDayOfYear=Ee,po.firstDayOfWeek=Ce,po.weekdays=Le,po.weekdaysMin=ze,po.weekdaysShort=He,po.weekdaysParse=Ue,po.weekdaysRegex=$e,po.weekdaysShortRegex=Ke,po.weekdaysMinRegex=Xe,po.isPM=nn,po.meridiem=an,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=T("moment.lang is deprecated. Use moment.locale instead.",gn),r.langData=T("moment.langData is deprecated. Use moment.localeData instead.",bn);var So=Math.abs;function xo(){var t=this._data;return this._milliseconds=So(this._milliseconds),this._days=So(this._days),this._months=So(this._months),t.milliseconds=So(t.milliseconds),t.seconds=So(t.seconds),t.minutes=So(t.minutes),t.hours=So(t.hours),t.months=So(t.months),t.years=So(t.years),this}function ko(t,e,n,r){var i=Or(e,n);return t._milliseconds+=r*i._milliseconds,t._days+=r*i._days,t._months+=r*i._months,t._bubble()}function To(t,e){return ko(this,t,e,1)}function Co(t,e){return ko(this,t,e,-1)}function Eo(t){return t<0?Math.floor(t):Math.ceil(t)}function Oo(){var t,e,n,r,i,o=this._milliseconds,a=this._days,s=this._months,l=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*Eo(Mo(s)+a),a=0,s=0),l.milliseconds=o%1e3,t=Mt(o/1e3),l.seconds=t%60,e=Mt(t/60),l.minutes=e%60,n=Mt(e/60),l.hours=n%24,a+=Mt(n/24),s+=i=Mt(Ao(a)),a-=Eo(Mo(i)),r=Mt(s/12),s%=12,l.days=a,l.months=s,l.years=r,this}function Ao(t){return 4800*t/146097}function Mo(t){return 146097*t/4800}function No(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+Ao(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(Mo(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 Po(t){return function(){return this.as(t)}}var Io=Po("ms"),Vo=Po("s"),Ro=Po("m"),Bo=Po("h"),Fo=Po("d"),jo=Po("w"),Lo=Po("M"),Ho=Po("Q"),zo=Po("y"),Yo=Io;function Uo(){return Or(this)}function qo(t){return t=rt(t),this.isValid()?this[t+"s"]():NaN}function Go(t){return function(){return this.isValid()?this._data[t]:NaN}}var Wo=Go("milliseconds"),$o=Go("seconds"),Ko=Go("minutes"),Xo=Go("hours"),Zo=Go("days"),Jo=Go("months"),Qo=Go("years");function ta(){return Mt(this.days()/7)}var ea=Math.round,na={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ra(t,e,n,r,i){return i.relativeTime(e||1,!!n,t,r)}function ia(t,e,n,r){var i=Or(t).abs(),o=ea(i.as("s")),a=ea(i.as("m")),s=ea(i.as("h")),l=ea(i.as("d")),c=ea(i.as("M")),u=ea(i.as("w")),h=ea(i.as("y")),d=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||a<=1&&["m"]||a<n.m&&["mm",a]||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,ra.apply(null,d)}function oa(t){return void 0===t?ea:"function"==typeof t&&(ea=t,!0)}function aa(t,e){return void 0!==na[t]&&(void 0===e?na[t]:(na[t]=e,"s"===t&&(na.ss=e-1),!0))}function sa(t,e){if(!this.isValid())return this.localeData().invalidDate();var n,r,i=!1,o=na;return"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(i=t),"object"==typeof e&&(o=Object.assign({},na,e),null!=e.s&&null==e.ss&&(o.ss=e.s-1)),r=ia(this,!i,o,n=this.localeData()),i&&(r=n.pastFuture(+this,r)),n.postformat(r)}var la=Math.abs;function ca(t){return(t>0)-(t<0)||+t}function ua(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n,r,i,o,a,s,l=la(this._milliseconds)/1e3,c=la(this._days),u=la(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?"-":"",o=ca(this._months)!==ca(h)?"-":"",a=ca(this._days)!==ca(h)?"-":"",s=ca(this._milliseconds)!==ca(h)?"-":"",i+"P"+(n?o+n+"Y":"")+(u?o+u+"M":"")+(c?a+c+"D":"")+(e||t||l?"T":"")+(e?s+e+"H":"")+(t?s+t+"M":"")+(l?s+r+"S":"")):"P0D"}var ha=sr.prototype;return ha.isValid=or,ha.abs=xo,ha.add=To,ha.subtract=Co,ha.as=No,ha.asMilliseconds=Io,ha.asSeconds=Vo,ha.asMinutes=Ro,ha.asHours=Bo,ha.asDays=Fo,ha.asWeeks=jo,ha.asMonths=Lo,ha.asQuarters=Ho,ha.asYears=zo,ha.valueOf=Yo,ha._bubble=Oo,ha.clone=Uo,ha.get=qo,ha.milliseconds=Wo,ha.seconds=$o,ha.minutes=Ko,ha.hours=Xo,ha.days=Zo,ha.weeks=ta,ha.months=Jo,ha.years=Qo,ha.humanize=sa,ha.toISOString=ua,ha.toString=ua,ha.toJSON=ua,ha.locale=si,ha.localeData=ci,ha.toIsoString=T("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ua),ha.lang=li,H("X",0,0,"unix"),H("x",0,0,"valueOf"),Ct("x",wt),Ct("X",St),It("X",(function(t,e,n){n._d=new Date(1e3*parseFloat(t))})),It("x",(function(t,e,n){n._d=new Date(Nt(t))})),
|
|
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 o(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function a(t,e){return t(e={exports:{}},e.exports),e.exports}var s=a(function(t,e){t.exports=function(){var e,n;function r(){return e.apply(null,arguments)}function o(t){e=t}function a(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 w=r.momentProperties=[],_=!1;function D(t,e){var n,r,i,o=w.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),o>0)for(n=0;n<o;n++)u(i=e[r=w[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===_&&(_=!0,r.updateOffset(this),_=!1)}function x(t){return t instanceof S||null!=t&&null!=t._isAMomentObject}function k(t){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function T(t,e){var n=!0;return p(function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,t),n){var i,o,a,s=[],c=arguments.length;for(o=0;o<c;o++){if(i="","object"==typeof arguments[o]){for(a in i+="\n["+o+"] ",arguments[0])l(arguments[0],a)&&(i+=a+": "+arguments[0][a]+", ");i=i.slice(0,-2)}else i=arguments[o];s.push(i)}k(t+"\nArguments: "+Array.prototype.slice.call(s).join("")+"\n"+(new Error).stack),n=!1}return e.apply(this,arguments)},e)}var C,E={};function O(t,e){null!=r.deprecationHandler&&r.deprecationHandler(t,e),E[t]||(k(e),E[t]=!0)}function A(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)&&(A(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 I={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function V(t,e,n){var r=this._calendar[t]||this._calendar.sameElse;return A(r)?r.call(e,n):r}function R(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 B=/(\[[^\[]*\])|(\\)?([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 H(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 R(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 Y(t){var e,n,r=t.match(B);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,o="";for(i=0;i<n;i++)o+=A(r[i])?r[i].call(e,t):r[i];return o}}function U(t,e){return t.isValid()?(e=q(e,t.localeData()),j[e]=j[e]||Y(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(B).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 X="%d",Z=/\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 A(i)?i(t,e,n,r):i.replace(/%d/i,t)}function et(t,e){var n=this._relativeTime[t>0?"future":"past"];return A(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 ot={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 at(t){var e,n=[];for(e in t)l(t,e)&&n.push({unit:e,priority:ot[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+/,wt=/[+-]?\d+/,_t=/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,kt=/^[1-9]\d?/,Tt=/^([1-9]\d|\d)/;function Ct(t,e,n){st[t]=A(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(Ot(t))}function Ot(t){return At(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,r,i){return e||n||r||i}))}function At(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 It(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 Vt(t,e){It(t,function(t,n,r,i){r._w=r._w||{},e(t,r._w,r,i)})}function Rt(t,e,n){null!=e&&l(Pt,t)&&Pt[t](e,n._a,n,t)}function Bt(t){return t%4==0&&t%100!=0||t%400==0}var Ft=0,jt=1,Lt=2,Ht=3,zt=4,Yt=5,Ut=6,qt=7,Gt=8;function Wt(t){return Bt(t)?366:365}H("Y",0,0,function(){var t=this.year();return t<=9999?R(t,4):"+"+t}),H(0,["YY",2],0,function(){return this.year()%100}),H(0,["YYYY",4],0,"year"),H(0,["YYYYY",5],0,"year"),H(0,["YYYYYY",6,!0],0,"year"),Ct("Y",wt),Ct("YY",ft,ct),Ct("YYYY",vt,ht),Ct("YYYYY",yt,dt),Ct("YYYYYY",yt,dt),It(["YYYYY","YYYYYY"],Ft),It("YYYY",function(t,e){e[Ft]=2===t.length?r.parseTwoDigitYear(t):Nt(t)}),It("YY",function(t,e){e[Ft]=r.parseTwoDigitYear(t)}),It("Y",function(t,e){e[Ft]=parseInt(t,10)}),r.parseTwoDigitYear=function(t){return Nt(t)+(Nt(t)>68?1900:2e3)};var $t,Kt=Zt("FullYear",!0);function Xt(){return Bt(this.year())}function Zt(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,o,a,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}o=n,a=t.month(),s=29!==(s=t.date())||1!==a||Bt(o)?s:28,i?r.setUTCFullYear(o,a,s):r.setFullYear(o,a,s)}}function te(t){return A(this[t=rt(t)])?this[t]():this}function ee(t,e){if("object"==typeof t){var n,r=at(t=it(t)),i=r.length;for(n=0;n<i;n++)this[r[n].unit](t[r[n].unit])}else if(A(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?Bt(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},H("M",["MM",2],"Mo",function(){return this.month()+1}),H("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),H("MMMM",0,0,function(t){return this.localeData().months(this,t)}),Ct("M",ft,kt),Ct("MM",ft,ct),Ct("MMM",function(t,e){return e.monthsShortRegex(t)}),Ct("MMMM",function(t,e){return e.monthsRegex(t)}),It(["M","MM"],function(t,e){e[jt]=Nt(t)-1}),It(["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("_"),oe="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ae=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,se=xt,le=xt;function ce(t,e){return t?a(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||ae).test(e)?"format":"standalone"][t.month()]:a(this._months)?this._months:this._months.standalone}function ue(t,e){return t?a(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[ae.test(e)?"format":"standalone"][t.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function he(t,e,n){var r,i,o,a=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=m([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(i=$t.call(this._shortMonthsParse,a))?i:null:-1!==(i=$t.call(this._longMonthsParse,a))?i:null:"MMM"===e?-1!==(i=$t.call(this._shortMonthsParse,a))||-1!==(i=$t.call(this._longMonthsParse,a))?i:null:-1!==(i=$t.call(this._longMonthsParse,a))||-1!==(i=$t.call(this._shortMonthsParse,a))?i:null}function de(t,e,n){var r,i,o;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]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.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,o=[],a=[],s=[];for(e=0;e<12;e++)n=m([2e3,e]),r=At(this.monthsShort(n,"")),i=At(this.months(n,"")),o.push(r),a.push(i),s.push(i),s.push(r);o.sort(t),a.sort(t),s.sort(t),this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+o.join("|")+")","i")}function be(t,e,n,r,i,o,a){var s;return t<100&&t>=0?(s=new Date(t+400,e,n,r,i,o,a),isFinite(s.getFullYear())&&s.setFullYear(t)):s=new Date(t,e,n,r,i,o,a),s}function we(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 _e(t,e,n){var r=7+e-n;return-(7+we(t,0,r).getUTCDay()-e)%7+r-1}function De(t,e,n,r,i){var o,a,s=1+7*(e-1)+(7+n-r)%7+_e(t,r,i);return s<=0?a=Wt(o=t-1)+s:s>Wt(t)?(o=t+1,a=s-Wt(t)):(o=t,a=s),{year:o,dayOfYear:a}}function Se(t,e,n){var r,i,o=_e(t.year(),e,n),a=Math.floor((t.dayOfYear()-o-1)/7)+1;return a<1?r=a+xe(i=t.year()-1,e,n):a>xe(t.year(),e,n)?(r=a-xe(t.year(),e,n),i=t.year()+1):(i=t.year(),r=a),{week:r,year:i}}function xe(t,e,n){var r=_e(t,e,n),i=_e(t+1,e,n);return(Wt(t)-r+i)/7}function ke(t){return Se(t,this._week.dow,this._week.doy).week}H("w",["ww",2],"wo","week"),H("W",["WW",2],"Wo","isoWeek"),Ct("w",ft,kt),Ct("ww",ft,ct),Ct("W",ft,kt),Ct("WW",ft,ct),Vt(["w","ww","W","WW"],function(t,e,n,r){e[r.substr(0,1)]=Nt(t)});var Te={dow:0,doy:6};function Ce(){return this._week.dow}function Ee(){return this._week.doy}function Oe(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function Ae(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))}H("d",0,"do","day"),H("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),H("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),H("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),H("e",0,0,"weekday"),H("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)}),Vt(["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}),Vt(["d","e","E"],function(t,e,n,r){e[r]=Nt(t)});var Ie="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ve="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Re="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Be=xt,Fe=xt,je=xt;function Le(t,e){var n=a(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 He(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 Ye(t,e,n){var r,i,o,a=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=m([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(i=$t.call(this._weekdaysParse,a))?i:null:"ddd"===e?-1!==(i=$t.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=$t.call(this._minWeekdaysParse,a))?i:null:"dddd"===e?-1!==(i=$t.call(this._weekdaysParse,a))||-1!==(i=$t.call(this._shortWeekdaysParse,a))||-1!==(i=$t.call(this._minWeekdaysParse,a))?i:null:"ddd"===e?-1!==(i=$t.call(this._shortWeekdaysParse,a))||-1!==(i=$t.call(this._weekdaysParse,a))||-1!==(i=$t.call(this._minWeekdaysParse,a))?i:null:-1!==(i=$t.call(this._minWeekdaysParse,a))||-1!==(i=$t.call(this._weekdaysParse,a))||-1!==(i=$t.call(this._shortWeekdaysParse,a))?i:null}function Ue(t,e,n){var r,i,o;if(this._weekdaysParseExact)return Ye.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]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.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")||Ze.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=Be),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ke(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Ze.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Fe),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Xe(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Ze.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=je),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ze(){function t(t,e){return e.length-t.length}var e,n,r,i,o,a=[],s=[],l=[],c=[];for(e=0;e<7;e++)n=m([2e3,1]).day(e),r=At(this.weekdaysMin(n,"")),i=At(this.weekdaysShort(n,"")),o=At(this.weekdays(n,"")),a.push(r),s.push(i),l.push(o),c.push(r),c.push(i),c.push(o);a.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("^("+a.join("|")+")","i")}function Je(){return this.hours()%12||12}function Qe(){return this.hours()||24}function tn(t,e){H(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)}H("H",["HH",2],0,"hour"),H("h",["hh",2],0,Je),H("k",["kk",2],0,Qe),H("hmm",0,0,function(){return""+Je.apply(this)+R(this.minutes(),2)}),H("hmmss",0,0,function(){return""+Je.apply(this)+R(this.minutes(),2)+R(this.seconds(),2)}),H("Hmm",0,0,function(){return""+this.hours()+R(this.minutes(),2)}),H("Hmmss",0,0,function(){return""+this.hours()+R(this.minutes(),2)+R(this.seconds(),2)}),tn("a",!0),tn("A",!1),Ct("a",en),Ct("A",en),Ct("H",ft,Tt),Ct("h",ft,kt),Ct("k",ft,kt),Ct("HH",ft,ct),Ct("hh",ft,ct),Ct("kk",ft,ct),Ct("hmm",pt),Ct("hmmss",mt),Ct("Hmm",pt),Ct("Hmmss",mt),It(["H","HH"],Ht),It(["k","kk"],function(t,e,n){var r=Nt(t);e[Ht]=24===r?0:r}),It(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),It(["h","hh"],function(t,e,n){e[Ht]=Nt(t),v(n).bigHour=!0}),It("hmm",function(t,e,n){var r=t.length-2;e[Ht]=Nt(t.substr(0,r)),e[zt]=Nt(t.substr(r)),v(n).bigHour=!0}),It("hmmss",function(t,e,n){var r=t.length-4,i=t.length-2;e[Ht]=Nt(t.substr(0,r)),e[zt]=Nt(t.substr(r,2)),e[Yt]=Nt(t.substr(i)),v(n).bigHour=!0}),It("Hmm",function(t,e,n){var r=t.length-2;e[Ht]=Nt(t.substr(0,r)),e[zt]=Nt(t.substr(r))}),It("Hmmss",function(t,e,n){var r=t.length-4,i=t.length-2;e[Ht]=Nt(t.substr(0,r)),e[zt]=Nt(t.substr(r,2)),e[Yt]=Nt(t.substr(i))});var rn=/[ap]\.?m?\.?/i,on=Zt("Hours",!0);function an(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}var sn,ln={calendar:I,longDateFormat:G,invalidDate:$,ordinal:X,dayOfMonthOrdinalParse:Z,relativeTime:Q,months:ie,monthsShort:oe,week:Te,weekdays:Ie,weekdaysMin:Re,weekdaysShort:Ve,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,o=0;o<t.length;){for(e=(i=dn(t[o]).split("-")).length,n=(n=dn(t[o+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--}o++}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])O("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(!a(t)){if(e=mn(t))return e;t=[t]}return fn(t)}function wn(){return C(cn)}function _n(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[Ht]<0||n[Ht]>24||24===n[Ht]&&(0!==n[zt]||0!==n[Yt]||0!==n[Ut])?Ht:n[zt]<0||n[zt]>59?zt:n[Yt]<0||n[Yt]>59?Yt: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)?/,kn=[["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]],Tn=[["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}))$/,On={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function An(t){var e,n,r,i,o,a,s=t._i,l=Dn.exec(s)||Sn.exec(s),c=kn.length,u=Tn.length;if(l){for(v(t).iso=!0,e=0,n=c;e<n;e++)if(kn[e][1].exec(l[1])){i=kn[e][0],r=!1!==kn[e][2];break}if(null==i)return void(t._isValid=!1);if(l[3]){for(e=0,n=u;e<n;e++)if(Tn[e][1].exec(l[3])){o=(l[2]||" ")+Tn[e][0];break}if(null==o)return void(t._isValid=!1)}if(!r&&null!=o)return void(t._isValid=!1);if(l[4]){if(!xn.exec(l[4]))return void(t._isValid=!1);a="Z"}t._f=i+(o||"")+(a||""),zn(t)}else t._isValid=!1}function Mn(t,e,n,r,i,o){var a=[Nn(t),oe.indexOf(e),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return o&&a.push(parseInt(o,10)),a}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 In(t,e,n){return!t||Ve.indexOf(t)===new Date(e[0],e[1],e[2]).getDay()||(v(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Vn(t,e,n){if(t)return On[t];if(e)return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}function Rn(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]),!In(n[1],e,t))return;t._a=e,t._tzm=Vn(n[8],n[9],n[10]),t._d=we.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),v(t).rfc2822=!0}else t._isValid=!1}function Bn(t){var e=Cn.exec(t._i);null===e?(An(t),!1===t._isValid&&(delete t._isValid,Rn(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,o,a=[];if(!t._d){for(r=jn(t),t._w&&null==t._a[Lt]&&null==t._a[jt]&&Hn(t),null!=t._dayOfYear&&(o=Fn(t._a[Ft],r[Ft]),(t._dayOfYear>Wt(o)||0===t._dayOfYear)&&(v(t)._overflowDayOfYear=!0),n=we(o,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]=a[e]=r[e];for(;e<7;e++)t._a[e]=a[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[Ht]&&0===t._a[zt]&&0===t._a[Yt]&&0===t._a[Ut]&&(t._nextDay=!0,t._a[Ht]=0),t._d=(t._useUTC?we:be).apply(null,a),i=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[Ht]=24),t._w&&void 0!==t._w.d&&t._w.d!==i&&(v(t).weekdayMismatch=!0)}}function Hn(t){var e,n,r,i,o,a,s,l,c;null!=(e=t._w).GG||null!=e.W||null!=e.E?(o=1,a=4,n=Fn(e.GG,t._a[Ft],Se(Xn(),1,4).year),r=Fn(e.W,1),((i=Fn(e.E,1))<1||i>7)&&(l=!0)):(o=t._locale._week.dow,a=t._locale._week.doy,c=Se(Xn(),o,a),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+o,(e.e<0||e.e>6)&&(l=!0)):i=o),r<1||r>xe(n,o,a)?v(t)._overflowWeeks=!0:null!=l?v(t)._overflowWeekday=!0:(s=De(n,r,i,o,a),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,o,a,s,l,c=""+t._i,u=c.length,h=0;for(l=(i=q(t._f,t._locale).match(B)||[]).length,e=0;e<l;e++)o=i[e],(n=(c.match(Et(o,t))||[])[0])&&((a=c.substr(0,c.indexOf(n))).length>0&&v(t).unusedInput.push(a),c=c.slice(c.indexOf(n)+n.length),h+=n.length),L[o]?(n?v(t).empty=!1:v(t).unusedTokens.push(o),Rt(o,n,t)):t._strict&&!n&&v(t).unusedTokens.push(o);v(t).charsLeftOver=u-h,c.length>0&&v(t).unusedInput.push(c),t._a[Ht]<=12&&!0===v(t).bigHour&&t._a[Ht]>0&&(v(t).bigHour=void 0),v(t).parsedDateParts=t._a.slice(0),v(t).meridiem=t._meridiem,t._a[Ht]=Yn(t._locale,t._a[Ht],t._meridiem),null!==(s=v(t).era)&&(t._a[Ft]=t._locale.erasConvertYear(s,t._a[Ft])),Ln(t),_n(t)}else Rn(t);else An(t)}function Yn(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,o,a,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++)o=0,a=!1,e=D({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[i],zn(e),y(e)&&(a=!0),o+=v(e).charsLeftOver,o+=10*v(e).unusedTokens.length,v(e).score=o,s?o<r&&(r=o,n=e):(null==r||o<r||a)&&(r=o,n=e,a&&(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(_n(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(_n(e)):(d(e)?t._d=e:a(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?Bn(t):a(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 o={};return!0!==e&&!1!==e||(r=e,e=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(s(t)&&c(t)||a(t)&&0===t.length)&&(t=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=i,o._l=n,o._i=t,o._f=e,o._strict=r,Gn(o)}function Xn(t,e,n,r){return Kn(t,e,n,r,!1)}r.createFromInputFallback=T("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 Zn=T("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Xn.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:b()}),Jn=T("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Xn.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:b()});function Qn(t,e){var n,r;if(1===e.length&&a(e[0])&&(e=e[0]),!e.length)return Xn();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 or(){return this._isValid}function ar(){return Or(NaN)}function sr(t){var e=it(t),n=e.year||0,r=e.quarter||0,i=e.month||0,o=e.week||e.isoWeek||0,a=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=+a+7*o,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),o=Math.abs(t.length-e.length),a=0;for(r=0;r<i;r++)(n&&t[r]!==e[r]||!n&&Nt(t[r])!==Nt(e[r]))&&a++;return a+o}function hr(t,e){H(t,0,0,function(){var t=this.utcOffset(),n="+";return t<0&&(t=-t,n="-"),n+R(~~(t/60),2)+e+R(~~t%60,2)})}hr("Z",":"),hr("ZZ",""),Ct("Z",Dt),Ct("ZZ",Dt),It(["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():Xn(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),r.updateOffset(n,!1),n):Xn(t).local()}function mr(t){return-Math.round(t._d.getTimezoneOffset())}function gr(t,e,n){var i,o=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"),o!==t&&(!e||this._changeInProgress?Ir(this,Or(t-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o: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 wr(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=fr(_t,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this}function _r(t){return!!this.isValid()&&(t=t?Xn(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):Xn(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 kr(){return!!this.isValid()&&this._isUTC}function Tr(){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 Or(t,e){var n,r,i,o=t,a=null;return lr(t)?o={ms:t._milliseconds,d:t._days,M:t._months}:h(t)||!isNaN(+t)?(o={},e?o[e]=+t:o.milliseconds=+t):(a=Cr.exec(t))?(n="-"===a[1]?-1:1,o={y:0,d:Nt(a[Lt])*n,h:Nt(a[Ht])*n,m:Nt(a[zt])*n,s:Nt(a[Yt])*n,ms:Nt(cr(1e3*a[Ut]))*n}):(a=Er.exec(t))?(n="-"===a[1]?-1:1,o={y:Ar(a[2],n),M:Ar(a[3],n),w:Ar(a[4],n),d:Ar(a[5],n),h:Ar(a[6],n),m:Ar(a[7],n),s:Ar(a[8],n)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(i=Nr(Xn(o.from),Xn(o.to)),(o={}).ms=i.milliseconds,o.M=i.months),r=new sr(o),lr(t)&&l(t,"_locale")&&(r._locale=t._locale),lr(t)&&l(t,"_isValid")&&(r._isValid=t._isValid),r}function Ar(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)||(O(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),Ir(this,Or(n,r),t),this}}function Ir(t,e,n,i){var o=e._milliseconds,a=cr(e._days),s=cr(e._months);t.isValid()&&(i=null==i||i,s&&fe(t,Jt(t,"Month")+s*n),a&&Qt(t,"Date",Jt(t,"Date")+a*n),o&&t._d.setTime(t._d.valueOf()+o*n),i&&r.updateOffset(t,a||s))}Or.fn=sr.prototype,Or.invalid=ar;var Vr=Pr(1,"add"),Rr=Pr(-1,"subtract");function Br(t){return"string"==typeof t||t instanceof String}function Fr(t){return x(t)||d(t)||Br(t)||h(t)||Lr(t)||jr(t)||null==t}function jr(t){var e,n,r=s(t)&&!c(t),i=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a=o.length;for(e=0;e<a;e+=1)n=o[e],i=i||l(t,n);return r&&i}function Lr(t){var e=a(t),n=!1;return e&&(n=0===t.filter(function(e){return!h(e)&&Br(t)}).length),e&&n}function Hr(t){var e,n,r=s(t)&&!c(t),i=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(e=0;e<o.length;e+=1)n=o[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 Yr(t,e){1===arguments.length&&(arguments[0]?Fr(arguments[0])?(t=arguments[0],e=void 0):Hr(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var n=t||Xn(),i=pr(n,this).startOf("day"),o=r.calendarFormat(this,i)||"sameElse",a=e&&(A(e[o])?e[o].call(this,n):e[o]);return this.format(a||this.localeData().calendar(o,this,Xn(n)))}function Ur(){return new S(this)}function qr(t,e){var n=x(t)?t:Xn(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:Xn(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:Xn(t),o=x(e)?e:Xn(e);return!!(this.isValid()&&i.isValid()&&o.isValid())&&("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(o,n):!this.isAfter(o,n))}function $r(t,e){var n,r=x(t)?t:Xn(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 Xr(t,e){return this.isSame(t,e)||this.isBefore(t,e)}function Zr(t,e,n){var r,i,o;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":o=Jr(this,r)/12;break;case"month":o=Jr(this,r);break;case"quarter":o=Jr(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:Mt(o)}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"):A(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",o="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),t="["+i+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=o+'[")]',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()||Xn(t).isValid())?Or({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function ii(t){return this.from(Xn(),t)}function oi(t,e){return this.isValid()&&(x(t)&&t.isValid()||Xn(t).isValid())?Or({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function ai(t){return this.to(Xn(),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=T("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 wi(){return Math.floor(this.valueOf()/1e3)}function _i(){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 ki(){return y(this)}function Ti(){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 Oi(t,e){var n,i,o,a=this._eras||bn("en")._eras;for(n=0,i=a.length;n<i;++n)switch("string"==typeof a[n].since&&(o=r(a[n].since).startOf("day"),a[n].since=o.valueOf()),typeof a[n].until){case"undefined":a[n].until=1/0;break;case"string":o=r(a[n].until).startOf("day").valueOf(),a[n].until=o.valueOf()}return a}function Ai(t,e,n){var r,i,o,a,s,l=this.eras();for(t=t.toUpperCase(),r=0,i=l.length;r<i;++r)if(o=l[r].name.toUpperCase(),a=l[r].abbr.toUpperCase(),s=l[r].narrow.toUpperCase(),n)switch(e){case"N":case"NN":case"NNN":if(a===t)return l[r];break;case"NNNN":if(o===t)return l[r];break;case"NNNNN":if(s===t)return l[r]}else if([o,a,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 Ii(){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 Vi(){var t,e,n,i,o=this.localeData().eras();for(t=0,e=o.length;t<e;++t)if(n=o[t].since<=o[t].until?1:-1,i=this.clone().startOf("day").valueOf(),o[t].since<=i&&i<=o[t].until||o[t].until<=i&&i<=o[t].since)return(this.year()-r(o[t].since).year())*n+o[t].offset;return this.year()}function Ri(t){return l(this,"_erasNameRegex")||Yi.call(this),t?this._erasNameRegex:this._erasRegex}function Bi(t){return l(this,"_erasAbbrRegex")||Yi.call(this),t?this._erasAbbrRegex:this._erasRegex}function Fi(t){return l(this,"_erasNarrowRegex")||Yi.call(this),t?this._erasNarrowRegex:this._erasRegex}function ji(t,e){return e.erasAbbrRegex(t)}function Li(t,e){return e.erasNameRegex(t)}function Hi(t,e){return e.erasNarrowRegex(t)}function zi(t,e){return e._eraYearOrdinalRegex||bt}function Yi(){var t,e,n,r,i,o=[],a=[],s=[],l=[],c=this.eras();for(t=0,e=c.length;t<e;++t)n=At(c[t].name),r=At(c[t].abbr),i=At(c[t].narrow),a.push(n),o.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("^("+a.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i")}function Ui(t,e){H(0,[t,t.length],0,e)}function qi(t){return Zi.call(this,t,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Gi(t){return Zi.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 Xi(){var t=this.localeData()._week;return xe(this.weekYear(),t.dow,t.doy)}function Zi(t,e,n,r,i){var o;return null==t?Se(this,r,i).year:(e>(o=xe(t,r,i))&&(e=o),Ji.call(this,t,e,n,r,i))}function Ji(t,e,n,r,i){var o=De(t,e,n,r,i),a=we(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Qi(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}H("N",0,0,"eraAbbr"),H("NN",0,0,"eraAbbr"),H("NNN",0,0,"eraAbbr"),H("NNNN",0,0,"eraName"),H("NNNNN",0,0,"eraNarrow"),H("y",["y",1],"yo","eraYear"),H("y",["yy",2],0,"eraYear"),H("y",["yyy",3],0,"eraYear"),H("y",["yyyy",4],0,"eraYear"),Ct("N",ji),Ct("NN",ji),Ct("NNN",ji),Ct("NNNN",Li),Ct("NNNNN",Hi),It(["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),It(["y","yy","yyy","yyyy"],Ft),It(["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)}),H(0,["gg",2],0,function(){return this.weekYear()%100}),H(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Ui("gggg","weekYear"),Ui("ggggg","weekYear"),Ui("GGGG","isoWeekYear"),Ui("GGGGG","isoWeekYear"),Ct("G",wt),Ct("g",wt),Ct("GG",ft,ct),Ct("gg",ft,ct),Ct("GGGG",vt,ht),Ct("gggg",vt,ht),Ct("GGGGG",yt,dt),Ct("ggggg",yt,dt),Vt(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,r){e[r.substr(0,2)]=Nt(t)}),Vt(["gg","GG"],function(t,e,n,i){e[i]=r.parseTwoDigitYear(t)}),H("Q",0,"Qo","quarter"),Ct("Q",lt),It("Q",function(t,e){e[jt]=3*(Nt(t)-1)}),H("D",["DD",2],"Do","date"),Ct("D",ft,kt),Ct("DD",ft,ct),Ct("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),It(["D","DD"],Lt),It("Do",function(t,e){e[Lt]=Nt(t.match(ft)[0])});var to=Zt("Date",!0);function eo(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")}H("DDD",["DDDD",3],"DDDo","dayOfYear"),Ct("DDD",gt),Ct("DDDD",ut),It(["DDD","DDDD"],function(t,e,n){n._dayOfYear=Nt(t)}),H("m",["mm",2],0,"minute"),Ct("m",ft,Tt),Ct("mm",ft,ct),It(["m","mm"],zt);var no=Zt("Minutes",!1);H("s",["ss",2],0,"second"),Ct("s",ft,Tt),Ct("ss",ft,ct),It(["s","ss"],Yt);var ro,io,oo=Zt("Seconds",!1);for(H("S",0,0,function(){return~~(this.millisecond()/100)}),H(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),H(0,["SSS",3],0,"millisecond"),H(0,["SSSS",4],0,function(){return 10*this.millisecond()}),H(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),H(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),H(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),H(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),H(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),Ct("S",gt,lt),Ct("SS",gt,ct),Ct("SSS",gt,ut),ro="SSSS";ro.length<=9;ro+="S")Ct(ro,bt);function ao(t,e){e[Ut]=Nt(1e3*("0."+t))}for(ro="S";ro.length<=9;ro+="S")It(ro,ao);function so(){return this._isUTC?"UTC":""}function lo(){return this._isUTC?"Coordinated Universal Time":""}io=Zt("Milliseconds",!1),H("z",0,0,"zoneAbbr"),H("zz",0,0,"zoneName");var co=S.prototype;function uo(t){return Xn(1e3*t)}function ho(){return Xn.apply(null,arguments).parseZone()}function fo(t){return t}co.add=Vr,co.calendar=Yr,co.clone=Ur,co.diff=Zr,co.endOf=yi,co.format=ni,co.from=ri,co.fromNow=ii,co.to=oi,co.toNow=ai,co.get=te,co.invalidAt=Ci,co.isAfter=qr,co.isBefore=Gr,co.isBetween=Wr,co.isSame=$r,co.isSameOrAfter=Kr,co.isSameOrBefore=Xr,co.isValid=ki,co.lang=li,co.locale=si,co.localeData=ci,co.max=Jn,co.min=Zn,co.parsingFlags=Ti,co.set=ee,co.startOf=vi,co.subtract=Rr,co.toArray=Di,co.toObject=Si,co.toDate=_i,co.toISOString=ti,co.inspect=ei,"undefined"!=typeof Symbol&&null!=Symbol.for&&(co[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),co.toJSON=xi,co.toString=Qr,co.unix=wi,co.valueOf=bi,co.creationData=Ei,co.eraName=Ni,co.eraNarrow=Pi,co.eraAbbr=Ii,co.eraYear=Vi,co.year=Kt,co.isLeapYear=Xt,co.weekYear=qi,co.isoWeekYear=Gi,co.quarter=co.quarters=Qi,co.month=pe,co.daysInMonth=me,co.week=co.weeks=Oe,co.isoWeek=co.isoWeeks=Ae,co.weeksInYear=Ki,co.weeksInWeekYear=Xi,co.isoWeeksInYear=Wi,co.isoWeeksInISOWeekYear=$i,co.date=to,co.day=co.days=qe,co.weekday=Ge,co.isoWeekday=We,co.dayOfYear=eo,co.hour=co.hours=on,co.minute=co.minutes=no,co.second=co.seconds=oo,co.millisecond=co.milliseconds=io,co.utcOffset=gr,co.utc=yr,co.local=br,co.parseZone=wr,co.hasAlignedHourOffset=_r,co.isDST=Dr,co.isLocal=xr,co.isUtcOffset=kr,co.isUtc=Tr,co.isUTC=Tr,co.zoneAbbr=so,co.zoneName=lo,co.dates=T("dates accessor is deprecated. Use date instead.",to),co.months=T("months accessor is deprecated. Use month instead",pe),co.years=T("years accessor is deprecated. Use year instead",Kt),co.zone=T("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",vr),co.isDSTShifted=T("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Sr);var po=P.prototype;function mo(t,e,n,r){var i=bn(),o=m().set(r,e);return i[n](o,t)}function go(t,e,n){if(h(t)&&(e=t,t=void 0),t=t||"",null!=e)return mo(t,e,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=mo(t,r,n,"month");return i}function vo(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,o=bn(),a=t?o._week.dow:0,s=[];if(null!=n)return mo(e,(n+a)%7,r,"day");for(i=0;i<7;i++)s[i]=mo(e,(i+a)%7,r,"day");return s}function yo(t,e){return go(t,e,"months")}function bo(t,e){return go(t,e,"monthsShort")}function wo(t,e,n){return vo(t,e,n,"weekdays")}function _o(t,e,n){return vo(t,e,n,"weekdaysShort")}function Do(t,e,n){return vo(t,e,n,"weekdaysMin")}po.calendar=V,po.longDateFormat=W,po.invalidDate=K,po.ordinal=J,po.preparse=fo,po.postformat=fo,po.relativeTime=tt,po.pastFuture=et,po.set=M,po.eras=Oi,po.erasParse=Ai,po.erasConvertYear=Mi,po.erasAbbrRegex=Bi,po.erasNameRegex=Ri,po.erasNarrowRegex=Fi,po.months=ce,po.monthsShort=ue,po.monthsParse=de,po.monthsRegex=ve,po.monthsShortRegex=ge,po.week=ke,po.firstDayOfYear=Ee,po.firstDayOfWeek=Ce,po.weekdays=Le,po.weekdaysMin=ze,po.weekdaysShort=He,po.weekdaysParse=Ue,po.weekdaysRegex=$e,po.weekdaysShortRegex=Ke,po.weekdaysMinRegex=Xe,po.isPM=nn,po.meridiem=an,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=T("moment.lang is deprecated. Use moment.locale instead.",gn),r.langData=T("moment.langData is deprecated. Use moment.localeData instead.",bn);var So=Math.abs;function xo(){var t=this._data;return this._milliseconds=So(this._milliseconds),this._days=So(this._days),this._months=So(this._months),t.milliseconds=So(t.milliseconds),t.seconds=So(t.seconds),t.minutes=So(t.minutes),t.hours=So(t.hours),t.months=So(t.months),t.years=So(t.years),this}function ko(t,e,n,r){var i=Or(e,n);return t._milliseconds+=r*i._milliseconds,t._days+=r*i._days,t._months+=r*i._months,t._bubble()}function To(t,e){return ko(this,t,e,1)}function Co(t,e){return ko(this,t,e,-1)}function Eo(t){return t<0?Math.floor(t):Math.ceil(t)}function Oo(){var t,e,n,r,i,o=this._milliseconds,a=this._days,s=this._months,l=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*Eo(Mo(s)+a),a=0,s=0),l.milliseconds=o%1e3,t=Mt(o/1e3),l.seconds=t%60,e=Mt(t/60),l.minutes=e%60,n=Mt(e/60),l.hours=n%24,a+=Mt(n/24),s+=i=Mt(Ao(a)),a-=Eo(Mo(i)),r=Mt(s/12),s%=12,l.days=a,l.months=s,l.years=r,this}function Ao(t){return 4800*t/146097}function Mo(t){return 146097*t/4800}function No(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+Ao(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(Mo(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 Po(t){return function(){return this.as(t)}}var Io=Po("ms"),Vo=Po("s"),Ro=Po("m"),Bo=Po("h"),Fo=Po("d"),jo=Po("w"),Lo=Po("M"),Ho=Po("Q"),zo=Po("y"),Yo=Io;function Uo(){return Or(this)}function qo(t){return t=rt(t),this.isValid()?this[t+"s"]():NaN}function Go(t){return function(){return this.isValid()?this._data[t]:NaN}}var Wo=Go("milliseconds"),$o=Go("seconds"),Ko=Go("minutes"),Xo=Go("hours"),Zo=Go("days"),Jo=Go("months"),Qo=Go("years");function ta(){return Mt(this.days()/7)}var ea=Math.round,na={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ra(t,e,n,r,i){return i.relativeTime(e||1,!!n,t,r)}function ia(t,e,n,r){var i=Or(t).abs(),o=ea(i.as("s")),a=ea(i.as("m")),s=ea(i.as("h")),l=ea(i.as("d")),c=ea(i.as("M")),u=ea(i.as("w")),h=ea(i.as("y")),d=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||a<=1&&["m"]||a<n.m&&["mm",a]||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,ra.apply(null,d)}function oa(t){return void 0===t?ea:"function"==typeof t&&(ea=t,!0)}function aa(t,e){return void 0!==na[t]&&(void 0===e?na[t]:(na[t]=e,"s"===t&&(na.ss=e-1),!0))}function sa(t,e){if(!this.isValid())return this.localeData().invalidDate();var n,r,i=!1,o=na;return"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(i=t),"object"==typeof e&&(o=Object.assign({},na,e),null!=e.s&&null==e.ss&&(o.ss=e.s-1)),r=ia(this,!i,o,n=this.localeData()),i&&(r=n.pastFuture(+this,r)),n.postformat(r)}var la=Math.abs;function ca(t){return(t>0)-(t<0)||+t}function ua(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n,r,i,o,a,s,l=la(this._milliseconds)/1e3,c=la(this._days),u=la(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?"-":"",o=ca(this._months)!==ca(h)?"-":"",a=ca(this._days)!==ca(h)?"-":"",s=ca(this._milliseconds)!==ca(h)?"-":"",i+"P"+(n?o+n+"Y":"")+(u?o+u+"M":"")+(c?a+c+"D":"")+(e||t||l?"T":"")+(e?s+e+"H":"")+(t?s+t+"M":"")+(l?s+r+"S":"")):"P0D"}var ha=sr.prototype;return ha.isValid=or,ha.abs=xo,ha.add=To,ha.subtract=Co,ha.as=No,ha.asMilliseconds=Io,ha.asSeconds=Vo,ha.asMinutes=Ro,ha.asHours=Bo,ha.asDays=Fo,ha.asWeeks=jo,ha.asMonths=Lo,ha.asQuarters=Ho,ha.asYears=zo,ha.valueOf=Yo,ha._bubble=Oo,ha.clone=Uo,ha.get=qo,ha.milliseconds=Wo,ha.seconds=$o,ha.minutes=Ko,ha.hours=Xo,ha.days=Zo,ha.weeks=ta,ha.months=Jo,ha.years=Qo,ha.humanize=sa,ha.toISOString=ua,ha.toString=ua,ha.toJSON=ua,ha.locale=si,ha.localeData=ci,ha.toIsoString=T("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ua),ha.lang=li,H("X",0,0,"unix"),H("x",0,0,"valueOf"),Ct("x",wt),Ct("X",St),It("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t))}),It("x",function(t,e,n){n._d=new Date(Nt(t))}),
|
|
2
2
|
//! moment.js
|
|
3
|
-
r.version="2.30.1",o(Xn),r.fn=co,r.min=tr,r.max=er,r.now=nr,r.utc=m,r.unix=uo,r.months=yo,r.isDate=d,r.locale=gn,r.invalid=b,r.duration=Or,r.isMoment=x,r.weekdays=wo,r.parseZone=ho,r.localeData=bn,r.isDuration=lr,r.monthsShort=bo,r.weekdaysMin=Do,r.defineLocale=vn,r.updateLocale=yn,r.locales=wn,r.weekdaysShort=_o,r.normalizeUnits=rt,r.relativeTimeRounding=oa,r.relativeTimeThreshold=aa,r.calendarFormat=zr,r.prototype=co,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}()})),l={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:s().get("year")},{des:"月份",key:1005,mapField:"MONTH",mapping:"-",model:"2",name:"MONTH",value:s().get("month")},{des:"日期",key:1004,mapField:"DATE",mapping:"-",model:"2",name:"DATE",value:s().get("date")},{des:"星期",key:1003,mapField:"WEEK",mapping:"-",model:"2",name:"WEEK",value:s().format("dddd")},{des:"版本",key:1002,mapField:"VERSION",mapping:"-",model:"2",name:"VERSION",value:"1.0.0"},{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,shareChangeFlag:!1,delIds:"",currentSelectShareComId:""},c=function(t,e){return c=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])},c(t,e)};var u=function(){return u=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},u.apply(this,arguments)};function h(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{l(r.next(t))}catch(t){o(t)}}function s(t){try{l(r.throw(t))}catch(t){o(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(a,s)}l((r=r.apply(t,e||[])).next())}))}function d(t,e){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.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 f(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;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 p={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)},reszieHistory:function(t){t.undos=[],t.undoRedoPointer=-1}},m=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"]),g=URL.createObjectURL(m);function v(t,e){return void 0===e&&(e=5e3),h(this,void 0,void 0,(function(){var n;return d(this,(function(r){return n=new Worker(g),[2,new Promise((function(r,i){var o=function(){clearTimeout(s),n.removeEventListener("message",a),n.terminate(),n=null},a=function(t){var e=t.data,n=e.code,a=e.result,s=e.err;o(),1===n?r(a):i(s)};n.postMessage({code:t}),n.addEventListener("message",a);var s=setTimeout((function(){o(),i("timeout")}),e)}))]}))}))}function y(e,n,r,i,o){return h(this,void 0,void 0,(function(){var r,o,a,s,l,c,u;return d(this,(function(h){switch(h.label){case 0:if(r=e,o=t.cloneDeep(n),a=o.use,s=o.data,!a)return[3,4];c=function(e){var n,o;return d(this,(function(a){switch(a.label){case 0:return s[e].use?(n=s[e].dependVars,o={},i&&o&&n&&n.length&&n.map((function(e){var n=t.cloneDeep(i).filter((function(t){var n=t.mapField==e;return n&&(o[e]=t.value),n}));n&&0!=n.length||(o[e]="")})),[4,b(s[e].code,r,o,s[e].mode?s[e].mode:"worker")]):[3,2];case 1:l=a.sent(),r=l.data,a.label=2;case 2:return[2]}}))},u=0,h.label=1;case 1:return u<s.length?[5,c(u)]:[3,4];case 2:h.sent(),h.label=3;case 3:return u++,[3,1];case 4:return[2,r]}}))}))}function b(t,e,n,r){return void 0===n&&(n={}),void 0===r&&(r="worker"),h(this,void 0,void 0,(function(){var i,o,a,s,l,c,u,h,p;return d(this,(function(d){switch(d.label){case 0:return d.trys.push([0,4,,5]),"window"!=r?[3,1]:(o=(i=[["data"],[e]])[0],a=i[1],"object"==typeof n&&Object.keys(n).forEach((function(t){o.push(t),a.push(n[t])})),s=new(Function.bind.apply(Function,f(f([void 0],o,!1),[t],!1))),[2,{success:!0,data:s.apply(void 0,a)}]);case 1:return u=(l=[e,n,""])[1],h=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 h+="".concat(t,",")})),p="let data=eval(".concat(c,"); \n let app=").concat(JSON.stringify({}),";"),p+=h?"let {".concat(h,"} = eval(").concat(u,"); "):"",[4,v(p+="".concat(t))];case 2:return[2,{success:!0,data:d.sent()}];case 3:return[3,5];case 4:return[2,{success:!1,error:d.sent(),data:e}];case 5:return[2]}}))}))}function w(t,e){var n;return n=t,["7UPegPt","helloX","101103gTMnwz","anov@2019:","149enyQdW","45665RoGNCN","anov@2020:","8508599uBIQaP","426790LJjXRf","188usEQPq","8726DMTNEL","1936DnLjOl","3080442wFrdqQ","8649UPqoeO"][n-=261]}var _={key:w(262)+w(274),vi:w(265)+w(274)},D="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function S(){throw new Error("setTimeout has not been defined")}function x(){throw new Error("clearTimeout has not been defined")}var k=S,T=x;function C(t){if(k===setTimeout)return setTimeout(t,0);if((k===S||!k)&&setTimeout)return k=setTimeout,setTimeout(t,0);try{return k(t,0)}catch(e){try{return k.call(null,t,0)}catch(e){return k.call(this,t,0)}}}"function"==typeof D.setTimeout&&(k=setTimeout),"function"==typeof D.clearTimeout&&(T=clearTimeout);var E,O=[],A=!1,M=-1;function N(){A&&E&&(A=!1,E.length?O=E.concat(O):M=-1,O.length&&P())}function P(){if(!A){var t=C(N);A=!0;for(var e=O.length;e;){for(E=O,O=[];++M<e;)E&&E[M].run();M=-1,e=O.length}E=null,A=!1,function(t){if(T===clearTimeout)return clearTimeout(t);if((T===x||!T)&&clearTimeout)return T=clearTimeout,clearTimeout(t);try{return T(t)}catch(e){try{return T.call(null,t)}catch(e){return T.call(this,t)}}}(t)}}function I(t,e){this.fun=t,this.array=e}I.prototype.run=function(){this.fun.apply(null,this.array)};function V(){}var R=V,B=V,F=V,j=V,L=V,H=V,z=V;var Y=D.performance||{},U=Y.now||Y.mozNow||Y.msNow||Y.oNow||Y.webkitNow||function(){return(new Date).getTime()};var q=new Date;var G={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];O.push(new I(t,e)),1!==O.length||A||C(P)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:R,addListener:B,once:F,off:j,removeListener:L,removeAllListeners:H,emit:z,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*U.call(Y),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-q)/1e3}};function W(t){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(t)}function $(t,e){return t&e}function K(t,e){return t|e}function X(t,e){return t^e}function Z(t,e){return t&~e}function J(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 Q(t){for(var e=0;0!=t;)t&=t-1,++e;return e}var tt,et="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function nt(t){var e,n,r="";for(e=0;e+3<=t.length;e+=3)n=parseInt(t.substring(e,e+3),16),r+=et.charAt(n>>6)+et.charAt(63&n);for(e+1==t.length?(n=parseInt(t.substring(e,e+1),16),r+=et.charAt(n<<2)):e+2==t.length&&(n=parseInt(t.substring(e,e+2),16),r+=et.charAt(n>>2)+et.charAt((3&n)<<4));(3&r.length)>0;)r+="=";return r}function rt(t){var e,n="",r=0,i=0;for(e=0;e<t.length&&"="!=t.charAt(e);++e){var o=et.indexOf(t.charAt(e));o<0||(0==r?(n+=W(o>>2),i=3&o,r=1):1==r?(n+=W(i<<2|o>>4),i=15&o,r=2):2==r?(n+=W(i),n+=W(o>>2),i=3&o,r=3):(n+=W(i<<2|o>>4),n+=W(15&o),r=0))}return 1==r&&(n+=W(i<<2)),n}var it,ot=function(t){var e;if(void 0===tt){var n="0123456789ABCDEF",r=" \f\n\r\t \u2028\u2029";for(tt={},e=0;e<16;++e)tt[n.charAt(e)]=e;for(n=n.toLowerCase(),e=10;e<16;++e)tt[n.charAt(e)]=e;for(e=0;e<8;++e)tt[r.charAt(e)]=-1}var i=[],o=0,a=0;for(e=0;e<t.length;++e){var s=t.charAt(e);if("="==s)break;if(-1!=(s=tt[s])){if(void 0===s)throw new Error("Illegal character at offset "+e);o|=s,++a>=2?(i[i.length]=o,o=0,a=0):o<<=4}}if(a)throw new Error("Hex encoding incomplete: 4 bits missing");return i},at={decode:function(t){var e;if(void 0===it){var n="= \f\n\r\t \u2028\u2029";for(it=Object.create(null),e=0;e<64;++e)it["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)]=e;for(it["-"]=62,it._=63,e=0;e<9;++e)it[n.charAt(e)]=-1}var r=[],i=0,o=0;for(e=0;e<t.length;++e){var a=t.charAt(e);if("="==a)break;if(-1!=(a=it[a])){if(void 0===a)throw new Error("Illegal character at offset "+e);i|=a,++o>=4?(r[r.length]=i>>16,r[r.length]=i>>8&255,r[r.length]=255&i,i=0,o=0):i<<=6}}switch(o){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=at.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 at.decode(t)}},st=1e13,lt=function(){function t(t){this.buf=[+t||0]}return t.prototype.mulAdd=function(t,e){var n,r,i=this.buf,o=i.length;for(n=0;n<o;++n)(r=i[n]*t+e)<st?e=0:r-=(e=0|r/st)*st,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+=st,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+=(st+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*st+t[n];return e},t.prototype.simplify=function(){var t=this.buf;return 1==t.length?t[0]:this},t}(),ct=/^(\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)?)?$/,ut=/^(\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 ht(t,e){return t.length>e&&(t=t.substring(0,e)+"…"),t}var dt,ft=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="",o=t;o<e;)n=this.get(o++),r=this.get(o++),i+=String.fromCharCode(n<<8|r);return i},t.prototype.parseTime=function(t,e,n){var r=this.parseStringISO(t,e),i=(n?ct:ut).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,o=i?255:0,a="";r==o&&++t<e;)r=this.get(t);if(0===(n=e-t))return i?-1:0;if(n>4){for(a=r,n<<=3;!(128&(+a^o));)a=+a<<1,--n;a="("+n+" bit)\n"}i&&(r-=256);for(var s=new lt(r),l=t+1;l<e;++l)s.mulAdd(256,this.get(l));return a+s.toString()},t.prototype.parseBitString=function(t,e,n){for(var r=this.get(t),i="("+((e-t-1<<3)-r)+" bit)\n",o="",a=t+1;a<e;++a){for(var s=this.get(a),l=a==e-1?r:0,c=7;c>=l;--c)o+=s>>c&1?"1":"0";if(o.length>n)return i+ht(o,n)}return i+o},t.prototype.parseOctetString=function(t,e,n){if(this.isASCII(t,e))return ht(this.parseStringISO(t,e),n);var r=e-t,i="("+r+" byte)\n";r>(n/=2)&&(e=t+n);for(var o=t;o<e;++o)i+=this.hexByte(this.get(o));return r>n&&(i+="…"),i},t.prototype.parseOID=function(t,e,n){for(var r="",i=new lt,o=0,a=t;a<e;++a){var s=this.get(a);if(i.mulAdd(128,127&s),o+=7,!(128&s)){if(""===r)if((i=i.simplify())instanceof lt)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 ht(r,n);i=new lt,o=0}}return o>0&&(r+=".incomplete"),r},t}(),pt=function(){function t(t,e,n,r,i){if(!(r instanceof mt))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 ht(this.stream.parseStringUTF(e,e+n),t);case 18:case 19:case 20:case 21:case 22:case 26:return ht(this.stream.parseStringISO(e,e+n),t);case 30:return ht(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 ft?e:new ft(e,0);var r=new ft(n),i=new mt(n),o=t.decodeLength(n),a=n.pos,s=a-r.pos,l=null,c=function(){var e=[];if(null!==o){for(var r=a+o;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 "+a)}else try{for(;;){var i=t.decode(n);if(i.tag.isEOC())break;e[e.length]=i}o=a-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===o)throw new Error("We can't skip over an invalid tag with undefined length at offset "+a);n.pos=a+Math.abs(o)}return new t(r,s,o,i,l)},t}(),mt=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 lt;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}(),gt=[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],vt=(1<<26)/gt[gt.length-1],yt=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,o="",a=this.t,s=this.DB-a*this.DB%e;if(a-- >0)for(s<this.DB&&(n=this[a]>>s)>0&&(i=!0,o=W(n));a>=0;)s<e?(n=(this[a]&(1<<s)-1)<<e-s,n|=this[--a]>>(s+=this.DB-e)):(n=this[a]>>(s-=e)&r,s<=0&&(s+=this.DB,--a)),n>0&&(i=!0),i&&(o+=W(n));return i?o:"0"},t.prototype.negate=function(){var e=St();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)+Mt(this[this.t-1]^this.s&this.DM)},t.prototype.mod=function(e){var n=St();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 wt(e):new _t(e),this.exp(t,n)},t.prototype.clone=function(){var t=St();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=St();return this.bitwiseTo(t,$,e),e},t.prototype.or=function(t){var e=St();return this.bitwiseTo(t,K,e),e},t.prototype.xor=function(t){var e=St();return this.bitwiseTo(t,X,e),e},t.prototype.andNot=function(t){var e=St();return this.bitwiseTo(t,Z,e),e},t.prototype.not=function(){for(var t=St(),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=St();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},t.prototype.shiftRight=function(t){var e=St();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+J(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+=Q(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,K)},t.prototype.clearBit=function(t){return this.changeBit(t,Z)},t.prototype.flipBit=function(t){return this.changeBit(t,X)},t.prototype.add=function(t){var e=St();return this.addTo(t,e),e},t.prototype.subtract=function(t){var e=St();return this.subTo(t,e),e},t.prototype.multiply=function(t){var e=St();return this.multiplyTo(t,e),e},t.prototype.divide=function(t){var e=St();return this.divRemTo(t,e,null),e},t.prototype.remainder=function(t){var e=St();return this.divRemTo(t,null,e),e},t.prototype.divideAndRemainder=function(t){var e=St(),n=St();return this.divRemTo(t,e,n),[e,n]},t.prototype.modPow=function(t,e){var n,r,i=t.bitLength(),o=At(1);if(i<=0)return o;n=i<18?1:i<48?3:i<144?4:i<768?5:6,r=i<8?new wt(e):e.isEven()?new Dt(e):new _t(e);var a=[],s=3,l=n-1,c=(1<<n)-1;if(a[1]=r.convert(this),n>1){var u=St();for(r.sqrTo(a[1],u);s<=c;)a[s]=St(),r.mulTo(u,a[s-2],a[s]),s+=2}var h,d,f=t.t-1,p=!0,m=St();for(i=Mt(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)a[h].copyTo(o),p=!1;else{for(;s>1;)r.sqrTo(o,m),r.sqrTo(m,o),s-=2;s>0?r.sqrTo(o,m):(d=o,o=m,m=d),r.mulTo(m,a[h],o)}for(;f>=0&&!(t[f]&1<<i);)r.sqrTo(o,m),d=o,o=m,m=d,--i<0&&(i=this.DB-1,--f)}return r.revert(o)},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(),o=At(1),a=At(0),s=At(0),l=At(1);0!=r.signum();){for(;r.isEven();)r.rShiftTo(1,r),n?(o.isEven()&&a.isEven()||(o.addTo(this,o),a.subTo(e,a)),o.rShiftTo(1,o)):a.isEven()||a.subTo(e,a),a.rShiftTo(1,a);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&&o.subTo(s,o),a.subTo(l,a)):(i.subTo(r,i),n&&s.subTo(o,s),l.subTo(a,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 bt)},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(),o=n.getLowestSetBit();if(o<0)return e;for(i<o&&(o=i),o>0&&(e.rShiftTo(o,e),n.rShiftTo(o,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 o>0&&n.lShiftTo(o,n),n},t.prototype.isProbablePrime=function(t){var e,n=this.abs();if(1==n.t&&n[0]<=gt[gt.length-1]){for(e=0;e<gt.length;++e)if(n[0]==gt[e])return!0;return!1}if(n.isEven())return!1;for(e=1;e<gt.length;){for(var r=gt[e],i=e+1;i<gt.length&&r<vt;)r*=gt[i++];for(r=n.modInt(r);e<i;)if(r%gt[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,o=!1,a=0;--i>=0;){var s=8==r?255&+e[i]:Ot(e,i);s<0?"-"==e.charAt(i)&&(o=!0):(o=!1,0==a?this[this.t++]=s:a+r>this.DB?(this[this.t-1]|=(s&(1<<this.DB-a)-1)<<a,this[this.t++]=s>>this.DB-a):this[this.t-1]|=s<<a,(a+=r)>=this.DB&&(a-=this.DB))}8==r&&128&+e[0]&&(this.s=-1,a>0&&(this[this.t-1]|=(1<<this.DB-a)-1<<a)),this.clamp(),o&&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,o=Math.floor(t/this.DB),a=this.s<<n&this.DM,s=this.t-1;s>=0;--s)e[s+o+1]=this[s]>>r|a,a=(this[s]&i)<<n;for(s=o-1;s>=0;--s)e[s]=0;e[o]=a,e.t=this.t+o+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,o=(1<<r)-1;e[0]=this[n]>>r;for(var a=n+1;a<this.t;++a)e[a-n-1]|=(this[a]&o)<<i,e[a-n]=this[a]>>r;r>0&&(e[this.t-n-1]|=(this.s&o)<<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(),o=r.t;for(n.t=o+i.t;--o>=0;)n[o]=0;for(o=0;o<i.t;++o)n[o+r.t]=r.am(0,i[o],n,o,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 o=this.abs();if(o.t<i.t)return null!=n&&n.fromInt(0),void(null!=r&&this.copyTo(r));null==r&&(r=St());var a=St(),s=this.s,l=e.s,c=this.DB-Mt(i[i.t-1]);c>0?(i.lShiftTo(c,a),o.lShiftTo(c,r)):(i.copyTo(a),o.copyTo(r));var u=a.t,h=a[u-1];if(0!=h){var d=h*(1<<this.F1)+(u>1?a[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?St():n;for(a.dlShiftTo(v,y),r.compareTo(y)>=0&&(r[r.t++]=1,r.subTo(y,r)),t.ONE.dlShiftTo(u,y),y.subTo(a,a);a.t<u;)a[a.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]+=a.am(0,b,r,v,0,u))<b)for(a.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=St(),i=St(),o=n.convert(this),a=Mt(e)-1;for(o.copyTo(r);--a>=0;)if(n.sqrTo(r,i),(e&1<<a)>0)n.mulTo(i,o,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=At(n),i=St(),o=St(),a="";for(this.divRemTo(r,i,o);i.signum()>0;)a=(n+o.intValue()).toString(t).substr(1)+a,i.divRemTo(r,i,o);return o.intValue().toString(t)+a},t.prototype.fromRadix=function(e,n){this.fromInt(0),null==n&&(n=10);for(var r=this.chunkSize(n),i=Math.pow(n,r),o=!1,a=0,s=0,l=0;l<e.length;++l){var c=Ot(e,l);c<0?"-"==e.charAt(l)&&0==this.signum()&&(o=!0):(s=n*s+c,++a>=r&&(this.dMultiply(i),this.dAddOffset(s,0),a=0,s=0))}a>0&&(this.dMultiply(Math.pow(n,a)),this.dAddOffset(s,0)),o&&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),K,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=[],o=7&e;i.length=1+(e>>3),n.nextBytes(i),o>0?i[0]&=(1<<o)-1:i[0]=0,this.fromString(i,256)}},t.prototype.bitwiseTo=function(t,e,n){var r,i,o=Math.min(t.t,this.t);for(r=0;r<o;++r)n[r]=e(this[r],t[r]);if(t.t<this.t){for(i=t.s&this.DM,r=o;r<this.t;++r)n[r]=e(this[r],i);n.t=this.t}else{for(i=this.s&this.DM,r=o;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)>gt.length&&(e=gt.length);for(var o=St(),a=0;a<e;++a){o.fromInt(gt[Math.floor(Math.random()*gt.length)]);var s=o.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=St();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 o=n.getLowestSetBit(),a=r.getLowestSetBit();if(a<0)e(n);else{o<a&&(a=o),a>0&&(n.rShiftTo(a,n),r.rShiftTo(a,r));var s=function(){(o=n.getLowestSetBit())>0&&n.rShiftTo(o,n),(o=r.getLowestSetBit())>0&&r.rShiftTo(o,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):(a>0&&r.lShiftTo(a,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),K,this),this.isEven()&&this.dAddOffset(1,0);var o=this,a=function(){o.dAddOffset(2,0),o.bitLength()>e&&o.subTo(t.ONE.shiftLeft(e-1),o),o.isProbablePrime(n)?setTimeout((function(){i()}),0):setTimeout(a,0)};setTimeout(a,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}(),bt=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}(),wt=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}(),_t=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=St();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(yt.ZERO)>0&&this.m.subTo(e,e),e},t.prototype.revert=function(t){var e=St();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}(),Dt=function(){function t(t){this.m=t,this.r2=St(),this.q3=St(),yt.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=St();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 St(){return new yt(null)}function xt(t,e){return new yt(t,e)}var kt="undefined"!=typeof navigator;kt&&"Microsoft Internet Explorer"==navigator.appName?(yt.prototype.am=function(t,e,n,r,i,o){for(var a=32767&e,s=e>>15;--o>=0;){var l=32767&this[t],c=this[t++]>>15,u=s*l+c*a;i=((l=a*l+((32767&u)<<15)+n[r]+(1073741823&i))>>>30)+(u>>>15)+s*c+(i>>>30),n[r++]=1073741823&l}return i},dt=30):kt&&"Netscape"!=navigator.appName?(yt.prototype.am=function(t,e,n,r,i,o){for(;--o>=0;){var a=e*this[t++]+n[r]+i;i=Math.floor(a/67108864),n[r++]=67108863&a}return i},dt=26):(yt.prototype.am=function(t,e,n,r,i,o){for(var a=16383&e,s=e>>14;--o>=0;){var l=16383&this[t],c=this[t++]>>14,u=s*l+c*a;i=((l=a*l+((16383&u)<<14)+n[r]+i)>>28)+(u>>14)+s*c,n[r++]=268435455&l}return i},dt=28),yt.prototype.DB=dt,yt.prototype.DM=(1<<dt)-1,yt.prototype.DV=1<<dt;yt.prototype.FV=Math.pow(2,52),yt.prototype.F1=52-dt,yt.prototype.F2=2*dt-52;var Tt,Ct,Et=[];for(Tt="0".charCodeAt(0),Ct=0;Ct<=9;++Ct)Et[Tt++]=Ct;for(Tt="a".charCodeAt(0),Ct=10;Ct<36;++Ct)Et[Tt++]=Ct;for(Tt="A".charCodeAt(0),Ct=10;Ct<36;++Ct)Et[Tt++]=Ct;function Ot(t,e){var n=Et[t.charCodeAt(e)];return null==n?-1:n}function At(t){var e=St();return e.fromInt(t),e}function Mt(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}yt.ZERO=At(0),yt.ONE=At(1);var Nt=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 Pt,It,Vt=null;if(null==Vt){Vt=[],It=0;var Rt=void 0;if("undefined"!=typeof window&&window.crypto&&window.crypto.getRandomValues){var Bt=new Uint32Array(256);for(window.crypto.getRandomValues(Bt),Rt=0;Rt<Bt.length;++Rt)Vt[It++]=255&Bt[Rt]}var Ft=0,jt=function(t){if((Ft=Ft||0)>=256||It>=256)window.removeEventListener?window.removeEventListener("mousemove",jt,!1):window.detachEvent&&window.detachEvent("onmousemove",jt);else try{var e=t.x+t.y;Vt[It++]=255&e,Ft+=1}catch(t){}};"undefined"!=typeof window&&(window.addEventListener?window.addEventListener("mousemove",jt,!1):window.attachEvent&&window.attachEvent("onmousemove",jt))}function Lt(){if(null==Pt){for(Pt=new Nt;It<256;){var t=Math.floor(65536*Math.random());Vt[It++]=255&t}for(Pt.init(Vt),It=0;It<Vt.length;++It)Vt[It]=0;It=0}return Pt.next()}var Ht=function(){function t(){}return t.prototype.nextBytes=function(t){for(var e=0;e<t.length;++e)t[e]=Lt()},t}();var zt=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=xt(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 o=new Ht,a=[];e>2;){for(a[0]=0;0==a[0];)o.nextBytes(a);n[--e]=a[0]}return n[--e]=2,n[--e]=0,new yt(n)}(t,e);if(null==n)return null;var r=this.doPublic(n);if(null==r)return null;for(var i=r.toString(16),o=i.length,a=0;a<2*e-o;a++)i="0"+i;return i},t.prototype.setPrivate=function(t,e,n){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=xt(t,16),this.e=parseInt(e,16),this.d=xt(n,16)):console.error("Invalid RSA private key")},t.prototype.setPrivateEx=function(t,e,n,r,i,o,a,s){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=xt(t,16),this.e=parseInt(e,16),this.d=xt(n,16),this.p=xt(r,16),this.q=xt(i,16),this.dmp1=xt(o,16),this.dmq1=xt(a,16),this.coeff=xt(s,16)):console.error("Invalid RSA private key")},t.prototype.generate=function(t,e){var n=new Ht,r=t>>1;this.e=parseInt(e,16);for(var i=new yt(e,16);;){for(;this.p=new yt(t-r,1,n),0!=this.p.subtract(yt.ONE).gcd(i).compareTo(yt.ONE)||!this.p.isProbablePrime(10););for(;this.q=new yt(r,1,n),0!=this.q.subtract(yt.ONE).gcd(i).compareTo(yt.ONE)||!this.q.isProbablePrime(10););if(this.p.compareTo(this.q)<=0){var o=this.p;this.p=this.q,this.q=o}var a=this.p.subtract(yt.ONE),s=this.q.subtract(yt.ONE),l=a.multiply(s);if(0==l.gcd(i).compareTo(yt.ONE)){this.n=this.p.multiply(this.q),this.d=i.modInverse(l),this.dmp1=this.d.mod(a),this.dmq1=this.d.mod(s),this.coeff=this.q.modInverse(this.p);break}}},t.prototype.decrypt=function(t){var e=xt(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 o=255&n[r];o<128?i+=String.fromCharCode(o):o>191&&o<224?(i+=String.fromCharCode((31&o)<<6|63&n[r+1]),++r):(i+=String.fromCharCode((15&o)<<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 Ht,i=t>>1;this.e=parseInt(e,16);var o=new yt(e,16),a=this,s=function(){var e=function(){if(a.p.compareTo(a.q)<=0){var t=a.p;a.p=a.q,a.q=t}var e=a.p.subtract(yt.ONE),r=a.q.subtract(yt.ONE),i=e.multiply(r);0==i.gcd(o).compareTo(yt.ONE)?(a.n=a.p.multiply(a.q),a.d=o.modInverse(i),a.dmp1=a.d.mod(e),a.dmq1=a.d.mod(r),a.coeff=a.q.modInverse(a.p),setTimeout((function(){n()}),0)):setTimeout(s,0)},l=function(){a.q=St(),a.q.fromNumberAsync(i,1,r,(function(){a.q.subtract(yt.ONE).gcda(o,(function(t){0==t.compareTo(yt.ONE)&&a.q.isProbablePrime(10)?setTimeout(e,0):setTimeout(l,0)}))}))},c=function(){a.p=St(),a.p.fromNumberAsync(t-i,1,r,(function(){a.p.subtract(yt.ONE).gcda(o,(function(t){0==t.compareTo(yt.ONE)&&a.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 xt("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 o=i.toString(16);return 1&o.length?"0"+o:o},t.prototype.verify=function(t,e,n){var r=xt(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",o(Xn),r.fn=co,r.min=tr,r.max=er,r.now=nr,r.utc=m,r.unix=uo,r.months=yo,r.isDate=d,r.locale=gn,r.invalid=b,r.duration=Or,r.isMoment=x,r.weekdays=wo,r.parseZone=ho,r.localeData=bn,r.isDuration=lr,r.monthsShort=bo,r.weekdaysMin=Do,r.defineLocale=vn,r.updateLocale=yn,r.locales=wn,r.weekdaysShort=_o,r.normalizeUnits=rt,r.relativeTimeRounding=oa,r.relativeTimeThreshold=aa,r.calendarFormat=zr,r.prototype=co,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}()}),l={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:s().get("year")},{des:"月份",key:1005,mapField:"MONTH",mapping:"-",model:"2",name:"MONTH",value:s().get("month")},{des:"日期",key:1004,mapField:"DATE",mapping:"-",model:"2",name:"DATE",value:s().get("date")},{des:"星期",key:1003,mapField:"WEEK",mapping:"-",model:"2",name:"WEEK",value:s().format("dddd")},{des:"版本",key:1002,mapField:"VERSION",mapping:"-",model:"2",name:"VERSION",value:"1.0.0"},{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,shareChangeFlag:!1,delIds:"",currentSelectShareComId:""},c=function(t,e){return c=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])},c(t,e)};var u=function(){return u=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},u.apply(this,arguments)};function h(t,e,n,r){return new(n||(n=Promise))(function(i,o){function a(t){try{l(r.next(t))}catch(t){o(t)}}function s(t){try{l(r.throw(t))}catch(t){o(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(a,s)}l((r=r.apply(t,e||[])).next())})}function d(t,e){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.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 f(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;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 p={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)},reszieHistory:function(t){t.undos=[],t.undoRedoPointer=-1}},m=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"]),g=URL.createObjectURL(m);function v(t,e){return void 0===e&&(e=5e3),h(this,void 0,void 0,function(){var n;return d(this,function(r){return n=new Worker(g),[2,new Promise(function(r,i){var o=function(){clearTimeout(s),n.removeEventListener("message",a),n.terminate(),n=null},a=function(t){var e=t.data,n=e.code,a=e.result,s=e.err;o(),1===n?r(a):i(s)};n.postMessage({code:t}),n.addEventListener("message",a);var s=setTimeout(function(){o(),i("timeout")},e)})]})})}function y(e,n,r,i,o){return h(this,void 0,void 0,function(){var r,o,a,s,l,c,u;return d(this,function(h){switch(h.label){case 0:if(r=e,o=t.cloneDeep(n),a=o.use,s=o.data,!a)return[3,4];c=function(e){var n,o;return d(this,function(a){switch(a.label){case 0:return s[e].use?(n=s[e].dependVars,o={},i&&o&&n&&n.length&&n.map(function(e){var n=t.cloneDeep(i).filter(function(t){var n=t.mapField==e;return n&&(o[e]=t.value),n});n&&0!=n.length||(o[e]="")}),[4,b(s[e].code,r,o,s[e].mode?s[e].mode:"worker")]):[3,2];case 1:l=a.sent(),r=l.data,a.label=2;case 2:return[2]}})},u=0,h.label=1;case 1:return u<s.length?[5,c(u)]:[3,4];case 2:h.sent(),h.label=3;case 3:return u++,[3,1];case 4:return[2,r]}})})}function b(t,e,n,r){return void 0===n&&(n={}),void 0===r&&(r="worker"),h(this,void 0,void 0,function(){var i,o,a,s,l,c,u,h,p;return d(this,function(d){switch(d.label){case 0:return d.trys.push([0,4,,5]),"window"!=r?[3,1]:(o=(i=[["data"],[e]])[0],a=i[1],"object"==typeof n&&Object.keys(n).forEach(function(t){o.push(t),a.push(n[t])}),s=new(Function.bind.apply(Function,f(f([void 0],o,!1),[t],!1))),[2,{success:!0,data:s.apply(void 0,a)}]);case 1:return u=(l=[e,n,""])[1],h=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 h+="".concat(t,",")}),p="let data=eval(".concat(c,"); \n let app=").concat(JSON.stringify({}),";"),p+=h?"let {".concat(h,"} = eval(").concat(u,"); "):"",[4,v(p+="".concat(t))];case 2:return[2,{success:!0,data:d.sent()}];case 3:return[3,5];case 4:return[2,{success:!1,error:d.sent(),data:e}];case 5:return[2]}})})}function w(t,e){var n;return n=t,["7UPegPt","helloX","101103gTMnwz","anov@2019:","149enyQdW","45665RoGNCN","anov@2020:","8508599uBIQaP","426790LJjXRf","188usEQPq","8726DMTNEL","1936DnLjOl","3080442wFrdqQ","8649UPqoeO"][n-=261]}var _={key:w(262)+w(274),vi:w(265)+w(274)},D="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function S(){throw new Error("setTimeout has not been defined")}function x(){throw new Error("clearTimeout has not been defined")}var k=S,T=x;function C(t){if(k===setTimeout)return setTimeout(t,0);if((k===S||!k)&&setTimeout)return k=setTimeout,setTimeout(t,0);try{return k(t,0)}catch(e){try{return k.call(null,t,0)}catch(e){return k.call(this,t,0)}}}"function"==typeof D.setTimeout&&(k=setTimeout),"function"==typeof D.clearTimeout&&(T=clearTimeout);var E,O=[],A=!1,M=-1;function N(){A&&E&&(A=!1,E.length?O=E.concat(O):M=-1,O.length&&P())}function P(){if(!A){var t=C(N);A=!0;for(var e=O.length;e;){for(E=O,O=[];++M<e;)E&&E[M].run();M=-1,e=O.length}E=null,A=!1,function(t){if(T===clearTimeout)return clearTimeout(t);if((T===x||!T)&&clearTimeout)return T=clearTimeout,clearTimeout(t);try{return T(t)}catch(e){try{return T.call(null,t)}catch(e){return T.call(this,t)}}}(t)}}function I(t,e){this.fun=t,this.array=e}I.prototype.run=function(){this.fun.apply(null,this.array)};function V(){}var R=V,B=V,F=V,j=V,L=V,H=V,z=V;var Y=D.performance||{},U=Y.now||Y.mozNow||Y.msNow||Y.oNow||Y.webkitNow||function(){return(new Date).getTime()};var q=new Date;var G={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];O.push(new I(t,e)),1!==O.length||A||C(P)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:R,addListener:B,once:F,off:j,removeListener:L,removeAllListeners:H,emit:z,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*U.call(Y),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-q)/1e3}};function W(t){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(t)}function $(t,e){return t&e}function K(t,e){return t|e}function X(t,e){return t^e}function Z(t,e){return t&~e}function J(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 Q(t){for(var e=0;0!=t;)t&=t-1,++e;return e}var tt,et="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function nt(t){var e,n,r="";for(e=0;e+3<=t.length;e+=3)n=parseInt(t.substring(e,e+3),16),r+=et.charAt(n>>6)+et.charAt(63&n);for(e+1==t.length?(n=parseInt(t.substring(e,e+1),16),r+=et.charAt(n<<2)):e+2==t.length&&(n=parseInt(t.substring(e,e+2),16),r+=et.charAt(n>>2)+et.charAt((3&n)<<4));(3&r.length)>0;)r+="=";return r}function rt(t){var e,n="",r=0,i=0;for(e=0;e<t.length&&"="!=t.charAt(e);++e){var o=et.indexOf(t.charAt(e));o<0||(0==r?(n+=W(o>>2),i=3&o,r=1):1==r?(n+=W(i<<2|o>>4),i=15&o,r=2):2==r?(n+=W(i),n+=W(o>>2),i=3&o,r=3):(n+=W(i<<2|o>>4),n+=W(15&o),r=0))}return 1==r&&(n+=W(i<<2)),n}var it,ot=function(t){var e;if(void 0===tt){var n="0123456789ABCDEF",r=" \f\n\r\t \u2028\u2029";for(tt={},e=0;e<16;++e)tt[n.charAt(e)]=e;for(n=n.toLowerCase(),e=10;e<16;++e)tt[n.charAt(e)]=e;for(e=0;e<8;++e)tt[r.charAt(e)]=-1}var i=[],o=0,a=0;for(e=0;e<t.length;++e){var s=t.charAt(e);if("="==s)break;if(-1!=(s=tt[s])){if(void 0===s)throw new Error("Illegal character at offset "+e);o|=s,++a>=2?(i[i.length]=o,o=0,a=0):o<<=4}}if(a)throw new Error("Hex encoding incomplete: 4 bits missing");return i},at={decode:function(t){var e;if(void 0===it){var n="= \f\n\r\t \u2028\u2029";for(it=Object.create(null),e=0;e<64;++e)it["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)]=e;for(it["-"]=62,it._=63,e=0;e<9;++e)it[n.charAt(e)]=-1}var r=[],i=0,o=0;for(e=0;e<t.length;++e){var a=t.charAt(e);if("="==a)break;if(-1!=(a=it[a])){if(void 0===a)throw new Error("Illegal character at offset "+e);i|=a,++o>=4?(r[r.length]=i>>16,r[r.length]=i>>8&255,r[r.length]=255&i,i=0,o=0):i<<=6}}switch(o){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=at.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 at.decode(t)}},st=1e13,lt=function(){function t(t){this.buf=[+t||0]}return t.prototype.mulAdd=function(t,e){var n,r,i=this.buf,o=i.length;for(n=0;n<o;++n)(r=i[n]*t+e)<st?e=0:r-=(e=0|r/st)*st,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+=st,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+=(st+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*st+t[n];return e},t.prototype.simplify=function(){var t=this.buf;return 1==t.length?t[0]:this},t}(),ct=/^(\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)?)?$/,ut=/^(\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 ht(t,e){return t.length>e&&(t=t.substring(0,e)+"…"),t}var dt,ft=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="",o=t;o<e;)n=this.get(o++),r=this.get(o++),i+=String.fromCharCode(n<<8|r);return i},t.prototype.parseTime=function(t,e,n){var r=this.parseStringISO(t,e),i=(n?ct:ut).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,o=i?255:0,a="";r==o&&++t<e;)r=this.get(t);if(0===(n=e-t))return i?-1:0;if(n>4){for(a=r,n<<=3;!(128&(+a^o));)a=+a<<1,--n;a="("+n+" bit)\n"}i&&(r-=256);for(var s=new lt(r),l=t+1;l<e;++l)s.mulAdd(256,this.get(l));return a+s.toString()},t.prototype.parseBitString=function(t,e,n){for(var r=this.get(t),i="("+((e-t-1<<3)-r)+" bit)\n",o="",a=t+1;a<e;++a){for(var s=this.get(a),l=a==e-1?r:0,c=7;c>=l;--c)o+=s>>c&1?"1":"0";if(o.length>n)return i+ht(o,n)}return i+o},t.prototype.parseOctetString=function(t,e,n){if(this.isASCII(t,e))return ht(this.parseStringISO(t,e),n);var r=e-t,i="("+r+" byte)\n";r>(n/=2)&&(e=t+n);for(var o=t;o<e;++o)i+=this.hexByte(this.get(o));return r>n&&(i+="…"),i},t.prototype.parseOID=function(t,e,n){for(var r="",i=new lt,o=0,a=t;a<e;++a){var s=this.get(a);if(i.mulAdd(128,127&s),o+=7,!(128&s)){if(""===r)if((i=i.simplify())instanceof lt)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 ht(r,n);i=new lt,o=0}}return o>0&&(r+=".incomplete"),r},t}(),pt=function(){function t(t,e,n,r,i){if(!(r instanceof mt))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 ht(this.stream.parseStringUTF(e,e+n),t);case 18:case 19:case 20:case 21:case 22:case 26:return ht(this.stream.parseStringISO(e,e+n),t);case 30:return ht(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 ft?e:new ft(e,0);var r=new ft(n),i=new mt(n),o=t.decodeLength(n),a=n.pos,s=a-r.pos,l=null,c=function(){var e=[];if(null!==o){for(var r=a+o;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 "+a)}else try{for(;;){var i=t.decode(n);if(i.tag.isEOC())break;e[e.length]=i}o=a-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===o)throw new Error("We can't skip over an invalid tag with undefined length at offset "+a);n.pos=a+Math.abs(o)}return new t(r,s,o,i,l)},t}(),mt=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 lt;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}(),gt=[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],vt=(1<<26)/gt[gt.length-1],yt=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,o="",a=this.t,s=this.DB-a*this.DB%e;if(a-- >0)for(s<this.DB&&(n=this[a]>>s)>0&&(i=!0,o=W(n));a>=0;)s<e?(n=(this[a]&(1<<s)-1)<<e-s,n|=this[--a]>>(s+=this.DB-e)):(n=this[a]>>(s-=e)&r,s<=0&&(s+=this.DB,--a)),n>0&&(i=!0),i&&(o+=W(n));return i?o:"0"},t.prototype.negate=function(){var e=St();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)+Mt(this[this.t-1]^this.s&this.DM)},t.prototype.mod=function(e){var n=St();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 wt(e):new _t(e),this.exp(t,n)},t.prototype.clone=function(){var t=St();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=St();return this.bitwiseTo(t,$,e),e},t.prototype.or=function(t){var e=St();return this.bitwiseTo(t,K,e),e},t.prototype.xor=function(t){var e=St();return this.bitwiseTo(t,X,e),e},t.prototype.andNot=function(t){var e=St();return this.bitwiseTo(t,Z,e),e},t.prototype.not=function(){for(var t=St(),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=St();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},t.prototype.shiftRight=function(t){var e=St();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+J(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+=Q(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,K)},t.prototype.clearBit=function(t){return this.changeBit(t,Z)},t.prototype.flipBit=function(t){return this.changeBit(t,X)},t.prototype.add=function(t){var e=St();return this.addTo(t,e),e},t.prototype.subtract=function(t){var e=St();return this.subTo(t,e),e},t.prototype.multiply=function(t){var e=St();return this.multiplyTo(t,e),e},t.prototype.divide=function(t){var e=St();return this.divRemTo(t,e,null),e},t.prototype.remainder=function(t){var e=St();return this.divRemTo(t,null,e),e},t.prototype.divideAndRemainder=function(t){var e=St(),n=St();return this.divRemTo(t,e,n),[e,n]},t.prototype.modPow=function(t,e){var n,r,i=t.bitLength(),o=At(1);if(i<=0)return o;n=i<18?1:i<48?3:i<144?4:i<768?5:6,r=i<8?new wt(e):e.isEven()?new Dt(e):new _t(e);var a=[],s=3,l=n-1,c=(1<<n)-1;if(a[1]=r.convert(this),n>1){var u=St();for(r.sqrTo(a[1],u);s<=c;)a[s]=St(),r.mulTo(u,a[s-2],a[s]),s+=2}var h,d,f=t.t-1,p=!0,m=St();for(i=Mt(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)a[h].copyTo(o),p=!1;else{for(;s>1;)r.sqrTo(o,m),r.sqrTo(m,o),s-=2;s>0?r.sqrTo(o,m):(d=o,o=m,m=d),r.mulTo(m,a[h],o)}for(;f>=0&&!(t[f]&1<<i);)r.sqrTo(o,m),d=o,o=m,m=d,--i<0&&(i=this.DB-1,--f)}return r.revert(o)},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(),o=At(1),a=At(0),s=At(0),l=At(1);0!=r.signum();){for(;r.isEven();)r.rShiftTo(1,r),n?(o.isEven()&&a.isEven()||(o.addTo(this,o),a.subTo(e,a)),o.rShiftTo(1,o)):a.isEven()||a.subTo(e,a),a.rShiftTo(1,a);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&&o.subTo(s,o),a.subTo(l,a)):(i.subTo(r,i),n&&s.subTo(o,s),l.subTo(a,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 bt)},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(),o=n.getLowestSetBit();if(o<0)return e;for(i<o&&(o=i),o>0&&(e.rShiftTo(o,e),n.rShiftTo(o,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 o>0&&n.lShiftTo(o,n),n},t.prototype.isProbablePrime=function(t){var e,n=this.abs();if(1==n.t&&n[0]<=gt[gt.length-1]){for(e=0;e<gt.length;++e)if(n[0]==gt[e])return!0;return!1}if(n.isEven())return!1;for(e=1;e<gt.length;){for(var r=gt[e],i=e+1;i<gt.length&&r<vt;)r*=gt[i++];for(r=n.modInt(r);e<i;)if(r%gt[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,o=!1,a=0;--i>=0;){var s=8==r?255&+e[i]:Ot(e,i);s<0?"-"==e.charAt(i)&&(o=!0):(o=!1,0==a?this[this.t++]=s:a+r>this.DB?(this[this.t-1]|=(s&(1<<this.DB-a)-1)<<a,this[this.t++]=s>>this.DB-a):this[this.t-1]|=s<<a,(a+=r)>=this.DB&&(a-=this.DB))}8==r&&128&+e[0]&&(this.s=-1,a>0&&(this[this.t-1]|=(1<<this.DB-a)-1<<a)),this.clamp(),o&&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,o=Math.floor(t/this.DB),a=this.s<<n&this.DM,s=this.t-1;s>=0;--s)e[s+o+1]=this[s]>>r|a,a=(this[s]&i)<<n;for(s=o-1;s>=0;--s)e[s]=0;e[o]=a,e.t=this.t+o+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,o=(1<<r)-1;e[0]=this[n]>>r;for(var a=n+1;a<this.t;++a)e[a-n-1]|=(this[a]&o)<<i,e[a-n]=this[a]>>r;r>0&&(e[this.t-n-1]|=(this.s&o)<<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(),o=r.t;for(n.t=o+i.t;--o>=0;)n[o]=0;for(o=0;o<i.t;++o)n[o+r.t]=r.am(0,i[o],n,o,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 o=this.abs();if(o.t<i.t)return null!=n&&n.fromInt(0),void(null!=r&&this.copyTo(r));null==r&&(r=St());var a=St(),s=this.s,l=e.s,c=this.DB-Mt(i[i.t-1]);c>0?(i.lShiftTo(c,a),o.lShiftTo(c,r)):(i.copyTo(a),o.copyTo(r));var u=a.t,h=a[u-1];if(0!=h){var d=h*(1<<this.F1)+(u>1?a[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?St():n;for(a.dlShiftTo(v,y),r.compareTo(y)>=0&&(r[r.t++]=1,r.subTo(y,r)),t.ONE.dlShiftTo(u,y),y.subTo(a,a);a.t<u;)a[a.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]+=a.am(0,b,r,v,0,u))<b)for(a.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=St(),i=St(),o=n.convert(this),a=Mt(e)-1;for(o.copyTo(r);--a>=0;)if(n.sqrTo(r,i),(e&1<<a)>0)n.mulTo(i,o,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=At(n),i=St(),o=St(),a="";for(this.divRemTo(r,i,o);i.signum()>0;)a=(n+o.intValue()).toString(t).substr(1)+a,i.divRemTo(r,i,o);return o.intValue().toString(t)+a},t.prototype.fromRadix=function(e,n){this.fromInt(0),null==n&&(n=10);for(var r=this.chunkSize(n),i=Math.pow(n,r),o=!1,a=0,s=0,l=0;l<e.length;++l){var c=Ot(e,l);c<0?"-"==e.charAt(l)&&0==this.signum()&&(o=!0):(s=n*s+c,++a>=r&&(this.dMultiply(i),this.dAddOffset(s,0),a=0,s=0))}a>0&&(this.dMultiply(Math.pow(n,a)),this.dAddOffset(s,0)),o&&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),K,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=[],o=7&e;i.length=1+(e>>3),n.nextBytes(i),o>0?i[0]&=(1<<o)-1:i[0]=0,this.fromString(i,256)}},t.prototype.bitwiseTo=function(t,e,n){var r,i,o=Math.min(t.t,this.t);for(r=0;r<o;++r)n[r]=e(this[r],t[r]);if(t.t<this.t){for(i=t.s&this.DM,r=o;r<this.t;++r)n[r]=e(this[r],i);n.t=this.t}else{for(i=this.s&this.DM,r=o;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)>gt.length&&(e=gt.length);for(var o=St(),a=0;a<e;++a){o.fromInt(gt[Math.floor(Math.random()*gt.length)]);var s=o.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=St();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 o=n.getLowestSetBit(),a=r.getLowestSetBit();if(a<0)e(n);else{o<a&&(a=o),a>0&&(n.rShiftTo(a,n),r.rShiftTo(a,r));var s=function(){(o=n.getLowestSetBit())>0&&n.rShiftTo(o,n),(o=r.getLowestSetBit())>0&&r.rShiftTo(o,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):(a>0&&r.lShiftTo(a,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),K,this),this.isEven()&&this.dAddOffset(1,0);var o=this,a=function(){o.dAddOffset(2,0),o.bitLength()>e&&o.subTo(t.ONE.shiftLeft(e-1),o),o.isProbablePrime(n)?setTimeout(function(){i()},0):setTimeout(a,0)};setTimeout(a,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}(),bt=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}(),wt=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}(),_t=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=St();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(yt.ZERO)>0&&this.m.subTo(e,e),e},t.prototype.revert=function(t){var e=St();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}(),Dt=function(){function t(t){this.m=t,this.r2=St(),this.q3=St(),yt.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=St();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 St(){return new yt(null)}function xt(t,e){return new yt(t,e)}var kt="undefined"!=typeof navigator;kt&&"Microsoft Internet Explorer"==navigator.appName?(yt.prototype.am=function(t,e,n,r,i,o){for(var a=32767&e,s=e>>15;--o>=0;){var l=32767&this[t],c=this[t++]>>15,u=s*l+c*a;i=((l=a*l+((32767&u)<<15)+n[r]+(1073741823&i))>>>30)+(u>>>15)+s*c+(i>>>30),n[r++]=1073741823&l}return i},dt=30):kt&&"Netscape"!=navigator.appName?(yt.prototype.am=function(t,e,n,r,i,o){for(;--o>=0;){var a=e*this[t++]+n[r]+i;i=Math.floor(a/67108864),n[r++]=67108863&a}return i},dt=26):(yt.prototype.am=function(t,e,n,r,i,o){for(var a=16383&e,s=e>>14;--o>=0;){var l=16383&this[t],c=this[t++]>>14,u=s*l+c*a;i=((l=a*l+((16383&u)<<14)+n[r]+i)>>28)+(u>>14)+s*c,n[r++]=268435455&l}return i},dt=28),yt.prototype.DB=dt,yt.prototype.DM=(1<<dt)-1,yt.prototype.DV=1<<dt;yt.prototype.FV=Math.pow(2,52),yt.prototype.F1=52-dt,yt.prototype.F2=2*dt-52;var Tt,Ct,Et=[];for(Tt="0".charCodeAt(0),Ct=0;Ct<=9;++Ct)Et[Tt++]=Ct;for(Tt="a".charCodeAt(0),Ct=10;Ct<36;++Ct)Et[Tt++]=Ct;for(Tt="A".charCodeAt(0),Ct=10;Ct<36;++Ct)Et[Tt++]=Ct;function Ot(t,e){var n=Et[t.charCodeAt(e)];return null==n?-1:n}function At(t){var e=St();return e.fromInt(t),e}function Mt(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}yt.ZERO=At(0),yt.ONE=At(1);var Nt=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 Pt,It,Vt=null;if(null==Vt){Vt=[],It=0;var Rt=void 0;if("undefined"!=typeof window&&window.crypto&&window.crypto.getRandomValues){var Bt=new Uint32Array(256);for(window.crypto.getRandomValues(Bt),Rt=0;Rt<Bt.length;++Rt)Vt[It++]=255&Bt[Rt]}var Ft=0,jt=function(t){if((Ft=Ft||0)>=256||It>=256)window.removeEventListener?window.removeEventListener("mousemove",jt,!1):window.detachEvent&&window.detachEvent("onmousemove",jt);else try{var e=t.x+t.y;Vt[It++]=255&e,Ft+=1}catch(t){}};"undefined"!=typeof window&&(window.addEventListener?window.addEventListener("mousemove",jt,!1):window.attachEvent&&window.attachEvent("onmousemove",jt))}function Lt(){if(null==Pt){for(Pt=new Nt;It<256;){var t=Math.floor(65536*Math.random());Vt[It++]=255&t}for(Pt.init(Vt),It=0;It<Vt.length;++It)Vt[It]=0;It=0}return Pt.next()}var Ht=function(){function t(){}return t.prototype.nextBytes=function(t){for(var e=0;e<t.length;++e)t[e]=Lt()},t}();var zt=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=xt(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 o=new Ht,a=[];e>2;){for(a[0]=0;0==a[0];)o.nextBytes(a);n[--e]=a[0]}return n[--e]=2,n[--e]=0,new yt(n)}(t,e);if(null==n)return null;var r=this.doPublic(n);if(null==r)return null;for(var i=r.toString(16),o=i.length,a=0;a<2*e-o;a++)i="0"+i;return i},t.prototype.setPrivate=function(t,e,n){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=xt(t,16),this.e=parseInt(e,16),this.d=xt(n,16)):console.error("Invalid RSA private key")},t.prototype.setPrivateEx=function(t,e,n,r,i,o,a,s){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=xt(t,16),this.e=parseInt(e,16),this.d=xt(n,16),this.p=xt(r,16),this.q=xt(i,16),this.dmp1=xt(o,16),this.dmq1=xt(a,16),this.coeff=xt(s,16)):console.error("Invalid RSA private key")},t.prototype.generate=function(t,e){var n=new Ht,r=t>>1;this.e=parseInt(e,16);for(var i=new yt(e,16);;){for(;this.p=new yt(t-r,1,n),0!=this.p.subtract(yt.ONE).gcd(i).compareTo(yt.ONE)||!this.p.isProbablePrime(10););for(;this.q=new yt(r,1,n),0!=this.q.subtract(yt.ONE).gcd(i).compareTo(yt.ONE)||!this.q.isProbablePrime(10););if(this.p.compareTo(this.q)<=0){var o=this.p;this.p=this.q,this.q=o}var a=this.p.subtract(yt.ONE),s=this.q.subtract(yt.ONE),l=a.multiply(s);if(0==l.gcd(i).compareTo(yt.ONE)){this.n=this.p.multiply(this.q),this.d=i.modInverse(l),this.dmp1=this.d.mod(a),this.dmq1=this.d.mod(s),this.coeff=this.q.modInverse(this.p);break}}},t.prototype.decrypt=function(t){var e=xt(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 o=255&n[r];o<128?i+=String.fromCharCode(o):o>191&&o<224?(i+=String.fromCharCode((31&o)<<6|63&n[r+1]),++r):(i+=String.fromCharCode((15&o)<<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 Ht,i=t>>1;this.e=parseInt(e,16);var o=new yt(e,16),a=this,s=function(){var e=function(){if(a.p.compareTo(a.q)<=0){var t=a.p;a.p=a.q,a.q=t}var e=a.p.subtract(yt.ONE),r=a.q.subtract(yt.ONE),i=e.multiply(r);0==i.gcd(o).compareTo(yt.ONE)?(a.n=a.p.multiply(a.q),a.d=o.modInverse(i),a.dmp1=a.d.mod(e),a.dmq1=a.d.mod(r),a.coeff=a.q.modInverse(a.p),setTimeout(function(){n()},0)):setTimeout(s,0)},l=function(){a.q=St(),a.q.fromNumberAsync(i,1,r,function(){a.q.subtract(yt.ONE).gcda(o,function(t){0==t.compareTo(yt.ONE)&&a.q.isProbablePrime(10)?setTimeout(e,0):setTimeout(l,0)})})},c=function(){a.p=St(),a.p.fromNumberAsync(t-i,1,r,function(){a.p.subtract(yt.ONE).gcda(o,function(t){0==t.compareTo(yt.ONE)&&a.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 xt("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 o=i.toString(16);return 1&o.length?"0"+o:o},t.prototype.verify=function(t,e,n){var r=xt(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:
|
|
@@ -15,7 +15,7 @@ version: 2.9.0
|
|
|
15
15
|
* @since jsrsasign 2.1
|
|
16
16
|
* @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
|
|
17
17
|
*/
|
|
18
|
-
var qt={};void 0!==qt.asn1&&qt.asn1||(qt.asn1={}),qt.asn1.ASN1Util=new function(){this.integerToByteHex=function(t){var e=t.toString(16);return e.length%2==1&&(e="0"+e),e},this.bigIntToMinTwosComplementsHex=function(t){var e=t.toString(16);if("-"!=e.substr(0,1))e.length%2==1?e="0"+e:e.match(/^[0-7]/)||(e="00"+e);else{var n=e.substr(1).length;n%2==1?n+=1:e.match(/^[0-7]/)||(n+=2);for(var r="",i=0;i<n;i++)r+="f";e=new yt(r,16).xor(t).add(yt.ONE).toString(16).replace(/^-/,"")}return e},this.getPEMStringFromHex=function(t,e){return hextopem(t,e)},this.newObject=function(t){var e=qt.asn1,n=e.DERBoolean,r=e.DERInteger,i=e.DERBitString,o=e.DEROctetString,a=e.DERNull,s=e.DERObjectIdentifier,l=e.DEREnumerated,c=e.DERUTF8String,u=e.DERNumericString,h=e.DERPrintableString,d=e.DERTeletexString,f=e.DERIA5String,p=e.DERUTCTime,m=e.DERGeneralizedTime,g=e.DERSequence,v=e.DERSet,y=e.DERTaggedObject,b=e.ASN1Util.newObject,w=Object.keys(t);if(1!=w.length)throw"key of param shall be only one.";var _=w[0];if(-1==":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+_+":"))throw"undefined key: "+_;if("bool"==_)return new n(t[_]);if("int"==_)return new r(t[_]);if("bitstr"==_)return new i(t[_]);if("octstr"==_)return new o(t[_]);if("null"==_)return new a(t[_]);if("oid"==_)return new s(t[_]);if("enum"==_)return new l(t[_]);if("utf8str"==_)return new c(t[_]);if("numstr"==_)return new u(t[_]);if("prnstr"==_)return new h(t[_]);if("telstr"==_)return new d(t[_]);if("ia5str"==_)return new f(t[_]);if("utctime"==_)return new p(t[_]);if("gentime"==_)return new m(t[_]);if("seq"==_){for(var D=t[_],S=[],x=0;x<D.length;x++){var k=b(D[x]);S.push(k)}return new g({array:S})}if("set"==_){for(D=t[_],S=[],x=0;x<D.length;x++){k=b(D[x]);S.push(k)}return new v({array:S})}if("tag"==_){var T=t[_];if("[object Array]"===Object.prototype.toString.call(T)&&3==T.length){var C=b(T[2]);return new y({tag:T[0],explicit:T[1],obj:C})}var E={};if(void 0!==T.explicit&&(E.explicit=T.explicit),void 0!==T.tag&&(E.tag=T.tag),void 0===T.obj)throw"obj shall be specified for 'tag'.";return E.obj=b(T.obj),new y(E)}},this.jsonToASN1HEX=function(t){return this.newObject(t).getEncodedHex()}},qt.asn1.ASN1Util.oidHexToInt=function(t){for(var e="",n=parseInt(t.substr(0,2),16),r=(e=Math.floor(n/40)+"."+n%40,""),i=2;i<t.length;i+=2){var o=("00000000"+parseInt(t.substr(i,2),16).toString(2)).slice(-8);if(r+=o.substr(1,7),"0"==o.substr(0,1))e=e+"."+new yt(r,2).toString(10),r=""}return e},qt.asn1.ASN1Util.oidIntToHex=function(t){var e=function(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e},n=function(t){var n="",r=new yt(t,10).toString(2),i=7-r.length%7;7==i&&(i=0);for(var o="",a=0;a<i;a++)o+="0";r=o+r;for(a=0;a<r.length-1;a+=7){var s=r.substr(a,7);a!=r.length-7&&(s="1"+s),n+=e(parseInt(s,2))}return n};if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var r="",i=t.split("."),o=40*parseInt(i[0])+parseInt(i[1]);r+=e(o),i.splice(0,2);for(var a=0;a<i.length;a++)r+=n(i[a]);return r},qt.asn1.ASN1Object=function(){this.getLengthHexFromValue=function(){if(void 0===this.hV||null==this.hV)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n=0,v="+this.hV;var t=this.hV.length/2,e=t.toString(16);if(e.length%2==1&&(e="0"+e),t<128)return e;var n=e.length/2;if(n>15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);return(128+n).toString(16)+e},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},qt.asn1.DERAbstractString=function(t){qt.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(this.s)},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?this.setString(t):void 0!==t.str?this.setString(t.str):void 0!==t.hex&&this.setStringHex(t.hex))},Ut.lang.extend(qt.asn1.DERAbstractString,qt.asn1.ASN1Object),qt.asn1.DERAbstractTime=function(t){qt.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){return utc=t.getTime()+6e4*t.getTimezoneOffset(),new Date(utc)},this.formatDate=function(t,e,n){var r=this.zeroPadding,i=this.localDateToUTC(t),o=String(i.getFullYear());"utc"==e&&(o=o.substr(2,2));var a=o+r(String(i.getMonth()+1),2)+r(String(i.getDate()),2)+r(String(i.getHours()),2)+r(String(i.getMinutes()),2)+r(String(i.getSeconds()),2);if(!0===n){var s=i.getMilliseconds();if(0!=s){var l=r(String(s),3);a=a+"."+(l=l.replace(/[0]+$/,""))}}return a+"Z"},this.zeroPadding=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(t)},this.setByDateValue=function(t,e,n,r,i,o){var a=new Date(Date.UTC(t,e-1,n,r,i,o,0));this.setByDate(a)},this.getFreshValueHex=function(){return this.hV}},Ut.lang.extend(qt.asn1.DERAbstractTime,qt.asn1.ASN1Object),qt.asn1.DERAbstractStructured=function(t){qt.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,void 0!==t&&void 0!==t.array&&(this.asn1Array=t.array)},Ut.lang.extend(qt.asn1.DERAbstractStructured,qt.asn1.ASN1Object),qt.asn1.DERBoolean=function(){qt.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},Ut.lang.extend(qt.asn1.DERBoolean,qt.asn1.ASN1Object),qt.asn1.DERInteger=function(t){qt.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=qt.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new yt(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.bigint?this.setByBigInteger(t.bigint):void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},Ut.lang.extend(qt.asn1.DERInteger,qt.asn1.ASN1Object),qt.asn1.DERBitString=function(t){if(void 0!==t&&void 0!==t.obj){var e=qt.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}qt.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null,this.isModified=!0,this.hV=t},this.setUnusedBitsAndHexValue=function(t,e){if(t<0||7<t)throw"unused bits shall be from 0 to 7: u = "+t;var n="0"+t;this.hTLV=null,this.isModified=!0,this.hV=n+e},this.setByBinaryString=function(t){var e=8-(t=t.replace(/0+$/,"")).length%8;8==e&&(e=0);for(var n=0;n<=e;n++)t+="0";var r="";for(n=0;n<t.length-1;n+=8){var i=t.substr(n,8),o=parseInt(i,2).toString(16);1==o.length&&(o="0"+o),r+=o}this.hTLV=null,this.isModified=!0,this.hV="0"+e+r},this.setByBooleanArray=function(t){for(var e="",n=0;n<t.length;n++)1==t[n]?e+="1":e+="0";this.setByBinaryString(e)},this.newFalseArray=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=!1;return e},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t&&t.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(t):void 0!==t.hex?this.setHexValueIncludingUnusedBits(t.hex):void 0!==t.bin?this.setByBinaryString(t.bin):void 0!==t.array&&this.setByBooleanArray(t.array))},Ut.lang.extend(qt.asn1.DERBitString,qt.asn1.ASN1Object),qt.asn1.DEROctetString=function(t){if(void 0!==t&&void 0!==t.obj){var e=qt.asn1.ASN1Util.newObject(t.obj);t.hex=e.getEncodedHex()}qt.asn1.DEROctetString.superclass.constructor.call(this,t),this.hT="04"},Ut.lang.extend(qt.asn1.DEROctetString,qt.asn1.DERAbstractString),qt.asn1.DERNull=function(){qt.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},Ut.lang.extend(qt.asn1.DERNull,qt.asn1.ASN1Object),qt.asn1.DERObjectIdentifier=function(t){var e=function(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e},n=function(t){var n="",r=new yt(t,10).toString(2),i=7-r.length%7;7==i&&(i=0);for(var o="",a=0;a<i;a++)o+="0";r=o+r;for(a=0;a<r.length-1;a+=7){var s=r.substr(a,7);a!=r.length-7&&(s="1"+s),n+=e(parseInt(s,2))}return n};qt.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.setValueOidString=function(t){if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var r="",i=t.split("."),o=40*parseInt(i[0])+parseInt(i[1]);r+=e(o),i.splice(0,2);for(var a=0;a<i.length;a++)r+=n(i[a]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},this.setValueName=function(t){var e=qt.asn1.x509.OID.name2oid(t);if(""===e)throw"DERObjectIdentifier oidName undefined: "+t;this.setValueOidString(e)},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?t.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(t):this.setValueName(t):void 0!==t.oid?this.setValueOidString(t.oid):void 0!==t.hex?this.setValueHex(t.hex):void 0!==t.name&&this.setValueName(t.name))},Ut.lang.extend(qt.asn1.DERObjectIdentifier,qt.asn1.ASN1Object),qt.asn1.DEREnumerated=function(t){qt.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=qt.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new yt(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},Ut.lang.extend(qt.asn1.DEREnumerated,qt.asn1.ASN1Object),qt.asn1.DERUTF8String=function(t){qt.asn1.DERUTF8String.superclass.constructor.call(this,t),this.hT="0c"},Ut.lang.extend(qt.asn1.DERUTF8String,qt.asn1.DERAbstractString),qt.asn1.DERNumericString=function(t){qt.asn1.DERNumericString.superclass.constructor.call(this,t),this.hT="12"},Ut.lang.extend(qt.asn1.DERNumericString,qt.asn1.DERAbstractString),qt.asn1.DERPrintableString=function(t){qt.asn1.DERPrintableString.superclass.constructor.call(this,t),this.hT="13"},Ut.lang.extend(qt.asn1.DERPrintableString,qt.asn1.DERAbstractString),qt.asn1.DERTeletexString=function(t){qt.asn1.DERTeletexString.superclass.constructor.call(this,t),this.hT="14"},Ut.lang.extend(qt.asn1.DERTeletexString,qt.asn1.DERAbstractString),qt.asn1.DERIA5String=function(t){qt.asn1.DERIA5String.superclass.constructor.call(this,t),this.hT="16"},Ut.lang.extend(qt.asn1.DERIA5String,qt.asn1.DERAbstractString),qt.asn1.DERUTCTime=function(t){qt.asn1.DERUTCTime.superclass.constructor.call(this,t),this.hT="17",this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{12}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date))},Ut.lang.extend(qt.asn1.DERUTCTime,qt.asn1.DERAbstractTime),qt.asn1.DERGeneralizedTime=function(t){qt.asn1.DERGeneralizedTime.superclass.constructor.call(this,t),this.hT="18",this.withMillis=!1,this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{14}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date),!0===t.millis&&(this.withMillis=!0))},Ut.lang.extend(qt.asn1.DERGeneralizedTime,qt.asn1.DERAbstractTime),qt.asn1.DERSequence=function(t){qt.asn1.DERSequence.superclass.constructor.call(this,t),this.hT="30",this.getFreshValueHex=function(){for(var t="",e=0;e<this.asn1Array.length;e++){t+=this.asn1Array[e].getEncodedHex()}return this.hV=t,this.hV}},Ut.lang.extend(qt.asn1.DERSequence,qt.asn1.DERAbstractStructured),qt.asn1.DERSet=function(t){qt.asn1.DERSet.superclass.constructor.call(this,t),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var t=new Array,e=0;e<this.asn1Array.length;e++){var n=this.asn1Array[e];t.push(n.getEncodedHex())}return 1==this.sortFlag&&t.sort(),this.hV=t.join(""),this.hV},void 0!==t&&void 0!==t.sortflag&&0==t.sortflag&&(this.sortFlag=!1)},Ut.lang.extend(qt.asn1.DERSet,qt.asn1.DERAbstractStructured),qt.asn1.DERTaggedObject=function(t){qt.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(t,e,n){this.hT=e,this.isExplicit=t,this.asn1Object=n,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=n.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,e),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.tag&&(this.hT=t.tag),void 0!==t.explicit&&(this.isExplicit=t.explicit),void 0!==t.obj&&(this.asn1Object=t.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},Ut.lang.extend(qt.asn1.DERTaggedObject,qt.asn1.ASN1Object);var Gt,Wt=window&&window.__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$t=function(t){function e(n){var r=t.call(this)||this;return n&&("string"==typeof n?r.parseKey(n):(e.hasPrivateKeyProperty(n)||e.hasPublicKeyProperty(n))&&r.parsePropertiesFrom(n)),r}return Wt(e,t),e.prototype.parseKey=function(t){try{var e=0,n=0,r=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/.test(t)?ot(t):at.unarmor(t),i=pt.decode(r);if(3===i.sub.length&&(i=i.sub[2].sub[0]),9===i.sub.length){e=i.sub[1].getHexStringValue(),this.n=xt(e,16),n=i.sub[2].getHexStringValue(),this.e=parseInt(n,16);var o=i.sub[3].getHexStringValue();this.d=xt(o,16);var a=i.sub[4].getHexStringValue();this.p=xt(a,16);var s=i.sub[5].getHexStringValue();this.q=xt(s,16);var l=i.sub[6].getHexStringValue();this.dmp1=xt(l,16);var c=i.sub[7].getHexStringValue();this.dmq1=xt(c,16);var u=i.sub[8].getHexStringValue();this.coeff=xt(u,16)}else{if(2!==i.sub.length)return!1;if(i.sub[0].sub){var h=i.sub[1].sub[0];e=h.sub[0].getHexStringValue(),this.n=xt(e,16),n=h.sub[1].getHexStringValue(),this.e=parseInt(n,16)}else e=i.sub[0].getHexStringValue(),this.n=xt(e,16),n=i.sub[1].getHexStringValue(),this.e=parseInt(n,16)}return!0}catch(t){return!1}},e.prototype.getPrivateBaseKey=function(){var t={array:[new qt.asn1.DERInteger({int:0}),new qt.asn1.DERInteger({bigint:this.n}),new qt.asn1.DERInteger({int:this.e}),new qt.asn1.DERInteger({bigint:this.d}),new qt.asn1.DERInteger({bigint:this.p}),new qt.asn1.DERInteger({bigint:this.q}),new qt.asn1.DERInteger({bigint:this.dmp1}),new qt.asn1.DERInteger({bigint:this.dmq1}),new qt.asn1.DERInteger({bigint:this.coeff})]};return new qt.asn1.DERSequence(t).getEncodedHex()},e.prototype.getPrivateBaseKeyB64=function(){return nt(this.getPrivateBaseKey())},e.prototype.getPublicBaseKey=function(){var t=new qt.asn1.DERSequence({array:[new qt.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new qt.asn1.DERNull]}),e=new qt.asn1.DERSequence({array:[new qt.asn1.DERInteger({bigint:this.n}),new qt.asn1.DERInteger({int:this.e})]}),n=new qt.asn1.DERBitString({hex:"00"+e.getEncodedHex()});return new qt.asn1.DERSequence({array:[t,n]}).getEncodedHex()},e.prototype.getPublicBaseKeyB64=function(){return nt(this.getPublicBaseKey())},e.wordwrap=function(t,e){if(!t)return t;var n="(.{1,"+(e=e||64)+"})( +|$\n?)|(.{1,"+e+"})";return t.match(RegExp(n,"g")).join("\n")},e.prototype.getPrivateKey=function(){var t="-----BEGIN RSA PRIVATE KEY-----\n";return t+=e.wordwrap(this.getPrivateBaseKeyB64())+"\n",t+="-----END RSA PRIVATE KEY-----"},e.prototype.getPublicKey=function(){var t="-----BEGIN PUBLIC KEY-----\n";return t+=e.wordwrap(this.getPublicBaseKeyB64())+"\n",t+="-----END PUBLIC KEY-----"},e.hasPublicKeyProperty=function(t){return(t=t||{}).hasOwnProperty("n")&&t.hasOwnProperty("e")},e.hasPrivateKeyProperty=function(t){return(t=t||{}).hasOwnProperty("n")&&t.hasOwnProperty("e")&&t.hasOwnProperty("d")&&t.hasOwnProperty("p")&&t.hasOwnProperty("q")&&t.hasOwnProperty("dmp1")&&t.hasOwnProperty("dmq1")&&t.hasOwnProperty("coeff")},e.prototype.parsePropertiesFrom=function(t){this.n=t.n,this.e=t.e,t.hasOwnProperty("d")&&(this.d=t.d,this.p=t.p,this.q=t.q,this.dmp1=t.dmp1,this.dmq1=t.dmq1,this.coeff=t.coeff)},e}(zt),Kt=null===(Gt=G.env)||void 0===Gt?void 0:Gt.npm_package_version,Xt=function(){function t(t){void 0===t&&(t={}),t=t||{},this.default_key_size=t.default_key_size?parseInt(t.default_key_size,10):1024,this.default_public_exponent=t.default_public_exponent||"010001",this.log=t.log||!1,this.key=null}return t.prototype.setKey=function(t){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new $t(t)},t.prototype.setPrivateKey=function(t){this.setKey(t)},t.prototype.setPublicKey=function(t){this.setKey(t)},t.prototype.decrypt=function(t){try{return this.getKey().decrypt(rt(t))}catch(t){return!1}},t.prototype.encrypt=function(t){try{return nt(this.getKey().encrypt(t))}catch(t){return!1}},t.prototype.sign=function(t,e,n){try{return nt(this.getKey().sign(t,e,n))}catch(t){return!1}},t.prototype.verify=function(t,e,n){try{return this.getKey().verify(t,rt(e),n)}catch(t){return!1}},t.prototype.getKey=function(t){if(!this.key){if(this.key=new $t,t&&"[object Function]"==={}.toString.call(t))return void this.key.generateAsync(this.default_key_size,this.default_public_exponent,t);this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},t.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},t.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},t.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},t.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},t.version=Kt,t}(),Zt={},Jt=a((function(t,e){var n;t.exports=(n=n||function(t,e){var n;if("undefined"!=typeof window&&window.crypto&&(n=window.crypto),"undefined"!=typeof self&&self.crypto&&(n=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(n=globalThis.crypto),!n&&"undefined"!=typeof window&&window.msCrypto&&(n=window.msCrypto),!n&&void 0!==r&&r.crypto&&(n=r.crypto),!n)try{n=Zt}catch(t){}var i=function(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch(t){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function t(){}return function(e){var n;return t.prototype=e,n=new t,t.prototype=null,n}}(),a={},s=a.lib={},l=s.Base={extend:function(t){var e=o(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},c=s.WordArray=l.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=n!=e?n:4*t.length},toString:function(t){return(t||h).stringify(this)},concat:function(t){var e=this.words,n=t.words,r=this.sigBytes,i=t.sigBytes;if(this.clamp(),r%4)for(var o=0;o<i;o++){var a=n[o>>>2]>>>24-o%4*8&255;e[r+o>>>2]|=a<<24-(r+o)%4*8}else for(var s=0;s<i;s+=4)e[r+s>>>2]=n[s>>>2];return this.sigBytes+=i,this},clamp:function(){var e=this.words,n=this.sigBytes;e[n>>>2]&=4294967295<<32-n%4*8,e.length=t.ceil(n/4)},clone:function(){var t=l.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],n=0;n<t;n+=4)e.push(i());return new c.init(e,t)}}),u=a.enc={},h=u.Hex={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i<n;i++){var o=e[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r+=2)n[r>>>3]|=parseInt(t.substr(r,2),16)<<24-r%8*4;return new c.init(n,e/2)}},d=u.Latin1={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i<n;i++){var o=e[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r++)n[r>>>2]|=(255&t.charCodeAt(r))<<24-r%4*8;return new c.init(n,e)}},f=u.Utf8={stringify:function(t){try{return decodeURIComponent(escape(d.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return d.parse(unescape(encodeURIComponent(t)))}},p=s.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=f.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var n,r=this._data,i=r.words,o=r.sigBytes,a=this.blockSize,s=o/(4*a),l=(s=e?t.ceil(s):t.max((0|s)-this._minBufferSize,0))*a,u=t.min(4*l,o);if(l){for(var h=0;h<l;h+=a)this._doProcessBlock(i,h);n=i.splice(0,l),r.sigBytes-=u}return new c.init(n,u)},clone:function(){var t=l.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0});s.Hasher=p.extend({cfg:l.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,n){return new t.init(n).finalize(e)}},_createHmacHelper:function(t){return function(e,n){return new m.HMAC.init(t,n).finalize(e)}}});var m=a.algo={};return a}(Math),n)})),Qt=(a((function(t,e){var n;t.exports=(n=Jt,function(t){var e=n,r=e.lib,i=r.Base,o=r.WordArray,a=e.x64={};a.Word=i.extend({init:function(t,e){this.high=t,this.low=e}}),a.WordArray=i.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:8*e.length},toX32:function(){for(var t=this.words,e=t.length,n=[],r=0;r<e;r++){var i=t[r];n.push(i.high),n.push(i.low)}return o.create(n,this.sigBytes)},clone:function(){for(var t=i.clone.call(this),e=t.words=this.words.slice(0),n=e.length,r=0;r<n;r++)e[r]=e[r].clone();return t}})}(),n)})),a((function(t,e){var n;t.exports=(n=Jt,function(){if("function"==typeof ArrayBuffer){var t=n.lib.WordArray,e=t.init,r=t.init=function(t){if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),(t instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)),t instanceof Uint8Array){for(var n=t.byteLength,r=[],i=0;i<n;i++)r[i>>>2]|=t[i]<<24-i%4*8;e.call(this,r,n)}else e.apply(this,arguments)};r.prototype=t}}(),n.lib.WordArray)})),a((function(t,e){var n;t.exports=(n=Jt,function(){var t=n,e=t.lib.WordArray,r=t.enc;function i(t){return t<<8&4278255360|t>>>8&16711935}r.Utf16=r.Utf16BE={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i<n;i+=2){var o=e[i>>>2]>>>16-i%4*8&65535;r.push(String.fromCharCode(o))}return r.join("")},parse:function(t){for(var n=t.length,r=[],i=0;i<n;i++)r[i>>>1]|=t.charCodeAt(i)<<16-i%2*16;return e.create(r,2*n)}},r.Utf16LE={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],o=0;o<n;o+=2){var a=i(e[o>>>2]>>>16-o%4*8&65535);r.push(String.fromCharCode(a))}return r.join("")},parse:function(t){for(var n=t.length,r=[],o=0;o<n;o++)r[o>>>1]|=i(t.charCodeAt(o)<<16-o%2*16);return e.create(r,2*n)}}}(),n.enc.Utf16)})),a((function(t,e){var n;t.exports=(n=Jt,function(){var t=n,e=t.lib.WordArray;function r(t,n,r){for(var i=[],o=0,a=0;a<n;a++)if(a%4){var s=r[t.charCodeAt(a-1)]<<a%4*2|r[t.charCodeAt(a)]>>>6-a%4*2;i[o>>>2]|=s<<24-o%4*8,o++}return e.create(i,o)}t.enc.Base64={stringify:function(t){var e=t.words,n=t.sigBytes,r=this._map;t.clamp();for(var i=[],o=0;o<n;o+=3)for(var a=(e[o>>>2]>>>24-o%4*8&255)<<16|(e[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|e[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s<n;s++)i.push(r.charAt(a>>>6*(3-s)&63));var l=r.charAt(64);if(l)for(;i.length%4;)i.push(l);return i.join("")},parse:function(t){var e=t.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o<n.length;o++)i[n.charCodeAt(o)]=o}var a=n.charAt(64);if(a){var s=t.indexOf(a);-1!==s&&(e=s)}return r(t,e,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),n.enc.Base64)})),a((function(t,e){var n;t.exports=(n=Jt,function(){var t=n,e=t.lib.WordArray;function r(t,n,r){for(var i=[],o=0,a=0;a<n;a++)if(a%4){var s=r[t.charCodeAt(a-1)]<<a%4*2|r[t.charCodeAt(a)]>>>6-a%4*2;i[o>>>2]|=s<<24-o%4*8,o++}return e.create(i,o)}t.enc.Base64url={stringify:function(t,e){void 0===e&&(e=!0);var n=t.words,r=t.sigBytes,i=e?this._safe_map:this._map;t.clamp();for(var o=[],a=0;a<r;a+=3)for(var s=(n[a>>>2]>>>24-a%4*8&255)<<16|(n[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|n[a+2>>>2]>>>24-(a+2)%4*8&255,l=0;l<4&&a+.75*l<r;l++)o.push(i.charAt(s>>>6*(3-l)&63));var c=i.charAt(64);if(c)for(;o.length%4;)o.push(c);return o.join("")},parse:function(t,e){void 0===e&&(e=!0);var n=t.length,i=e?this._safe_map:this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var a=0;a<i.length;a++)o[i.charCodeAt(a)]=a}var s=i.charAt(64);if(s){var l=t.indexOf(s);-1!==l&&(n=l)}return r(t,n,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"}}(),n.enc.Base64url)})),a((function(t,e){var n;t.exports=(n=Jt,function(t){var e=n,r=e.lib,i=r.WordArray,o=r.Hasher,a=e.algo,s=[];!function(){for(var e=0;e<64;e++)s[e]=4294967296*t.abs(t.sin(e+1))|0}();var l=a.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,e){for(var n=0;n<16;n++){var r=e+n,i=t[r];t[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=t[e+0],l=t[e+1],f=t[e+2],p=t[e+3],m=t[e+4],g=t[e+5],v=t[e+6],y=t[e+7],b=t[e+8],w=t[e+9],_=t[e+10],D=t[e+11],S=t[e+12],x=t[e+13],k=t[e+14],T=t[e+15],C=o[0],E=o[1],O=o[2],A=o[3];C=c(C,E,O,A,a,7,s[0]),A=c(A,C,E,O,l,12,s[1]),O=c(O,A,C,E,f,17,s[2]),E=c(E,O,A,C,p,22,s[3]),C=c(C,E,O,A,m,7,s[4]),A=c(A,C,E,O,g,12,s[5]),O=c(O,A,C,E,v,17,s[6]),E=c(E,O,A,C,y,22,s[7]),C=c(C,E,O,A,b,7,s[8]),A=c(A,C,E,O,w,12,s[9]),O=c(O,A,C,E,_,17,s[10]),E=c(E,O,A,C,D,22,s[11]),C=c(C,E,O,A,S,7,s[12]),A=c(A,C,E,O,x,12,s[13]),O=c(O,A,C,E,k,17,s[14]),C=u(C,E=c(E,O,A,C,T,22,s[15]),O,A,l,5,s[16]),A=u(A,C,E,O,v,9,s[17]),O=u(O,A,C,E,D,14,s[18]),E=u(E,O,A,C,a,20,s[19]),C=u(C,E,O,A,g,5,s[20]),A=u(A,C,E,O,_,9,s[21]),O=u(O,A,C,E,T,14,s[22]),E=u(E,O,A,C,m,20,s[23]),C=u(C,E,O,A,w,5,s[24]),A=u(A,C,E,O,k,9,s[25]),O=u(O,A,C,E,p,14,s[26]),E=u(E,O,A,C,b,20,s[27]),C=u(C,E,O,A,x,5,s[28]),A=u(A,C,E,O,f,9,s[29]),O=u(O,A,C,E,y,14,s[30]),C=h(C,E=u(E,O,A,C,S,20,s[31]),O,A,g,4,s[32]),A=h(A,C,E,O,b,11,s[33]),O=h(O,A,C,E,D,16,s[34]),E=h(E,O,A,C,k,23,s[35]),C=h(C,E,O,A,l,4,s[36]),A=h(A,C,E,O,m,11,s[37]),O=h(O,A,C,E,y,16,s[38]),E=h(E,O,A,C,_,23,s[39]),C=h(C,E,O,A,x,4,s[40]),A=h(A,C,E,O,a,11,s[41]),O=h(O,A,C,E,p,16,s[42]),E=h(E,O,A,C,v,23,s[43]),C=h(C,E,O,A,w,4,s[44]),A=h(A,C,E,O,S,11,s[45]),O=h(O,A,C,E,T,16,s[46]),C=d(C,E=h(E,O,A,C,f,23,s[47]),O,A,a,6,s[48]),A=d(A,C,E,O,y,10,s[49]),O=d(O,A,C,E,k,15,s[50]),E=d(E,O,A,C,g,21,s[51]),C=d(C,E,O,A,S,6,s[52]),A=d(A,C,E,O,p,10,s[53]),O=d(O,A,C,E,_,15,s[54]),E=d(E,O,A,C,l,21,s[55]),C=d(C,E,O,A,b,6,s[56]),A=d(A,C,E,O,T,10,s[57]),O=d(O,A,C,E,v,15,s[58]),E=d(E,O,A,C,x,21,s[59]),C=d(C,E,O,A,m,6,s[60]),A=d(A,C,E,O,D,10,s[61]),O=d(O,A,C,E,f,15,s[62]),E=d(E,O,A,C,w,21,s[63]),o[0]=o[0]+C|0,o[1]=o[1]+E|0,o[2]=o[2]+O|0,o[3]=o[3]+A|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;n[i>>>5]|=128<<24-i%32;var o=t.floor(r/4294967296),a=r;n[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),e.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,l=s.words,c=0;c<4;c++){var u=l[c];l[c]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});function c(t,e,n,r,i,o,a){var s=t+(e&n|~e&r)+i+a;return(s<<o|s>>>32-o)+e}function u(t,e,n,r,i,o,a){var s=t+(e&r|n&~r)+i+a;return(s<<o|s>>>32-o)+e}function h(t,e,n,r,i,o,a){var s=t+(e^n^r)+i+a;return(s<<o|s>>>32-o)+e}function d(t,e,n,r,i,o,a){var s=t+(n^(e|~r))+i+a;return(s<<o|s>>>32-o)+e}e.MD5=o._createHelper(l),e.HmacMD5=o._createHmacHelper(l)}(Math),n.MD5)})),a((function(t,e){var n;t.exports=(n=Jt,function(){var t=n,e=t.lib,r=e.WordArray,i=e.Hasher,o=t.algo,a=[],s=o.SHA1=i.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],s=n[3],l=n[4],c=0;c<80;c++){if(c<16)a[c]=0|t[e+c];else{var u=a[c-3]^a[c-8]^a[c-14]^a[c-16];a[c]=u<<1|u>>>31}var h=(r<<5|r>>>27)+l+a[c];h+=c<20?1518500249+(i&o|~i&s):c<40?1859775393+(i^o^s):c<60?(i&o|i&s|o&s)-1894007588:(i^o^s)-899497514,l=s,s=o,o=i<<30|i>>>2,i=r,r=h}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+s|0,n[4]=n[4]+l|0},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;return e[r>>>5]|=128<<24-r%32,e[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),e[15+(r+64>>>9<<4)]=n,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t}});t.SHA1=i._createHelper(s),t.HmacSHA1=i._createHmacHelper(s)}(),n.SHA1)})),a((function(t,e){var n;t.exports=(n=Jt,function(t){var e=n,r=e.lib,i=r.WordArray,o=r.Hasher,a=e.algo,s=[],l=[];!function(){function e(e){for(var n=t.sqrt(e),r=2;r<=n;r++)if(!(e%r))return!1;return!0}function n(t){return 4294967296*(t-(0|t))|0}for(var r=2,i=0;i<64;)e(r)&&(i<8&&(s[i]=n(t.pow(r,.5))),l[i]=n(t.pow(r,1/3)),i++),r++}();var c=[],u=a.SHA256=o.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(t,e){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],u=n[5],h=n[6],d=n[7],f=0;f<64;f++){if(f<16)c[f]=0|t[e+f];else{var p=c[f-15],m=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,g=c[f-2],v=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;c[f]=m+c[f-7]+v+c[f-16]}var y=r&i^r&o^i&o,b=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),w=d+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&u^~s&h)+l[f]+c[f];d=h,h=u,u=s,s=a+w|0,a=o,o=i,i=r,r=w+(b+y)|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+u|0,n[6]=n[6]+h|0,n[7]=n[7]+d|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=t.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});e.SHA256=o._createHelper(u),e.HmacSHA256=o._createHmacHelper(u)}(Math),n.SHA256)})),a((function(t,e){var n;t.exports=(n=Jt,function(){var t=n,e=t.lib.WordArray,r=t.algo,i=r.SHA256,o=r.SHA224=i.extend({_doReset:function(){this._hash=new e.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var t=i._doFinalize.call(this);return t.sigBytes-=4,t}});t.SHA224=i._createHelper(o),t.HmacSHA224=i._createHmacHelper(o)}(),n.SHA224)})),a((function(t,e){var n;t.exports=(n=Jt,function(){var t=n,e=t.lib.Hasher,r=t.x64,i=r.Word,o=r.WordArray,a=t.algo;function s(){return i.create.apply(i,arguments)}var l=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],c=[];!function(){for(var t=0;t<80;t++)c[t]=s()}();var u=a.SHA512=e.extend({_doReset:function(){this._hash=new o.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(t,e){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],u=n[5],h=n[6],d=n[7],f=r.high,p=r.low,m=i.high,g=i.low,v=o.high,y=o.low,b=a.high,w=a.low,_=s.high,D=s.low,S=u.high,x=u.low,k=h.high,T=h.low,C=d.high,E=d.low,O=f,A=p,M=m,N=g,P=v,I=y,V=b,R=w,B=_,F=D,j=S,L=x,H=k,z=T,Y=C,U=E,q=0;q<80;q++){var G,W,$=c[q];if(q<16)W=$.high=0|t[e+2*q],G=$.low=0|t[e+2*q+1];else{var K=c[q-15],X=K.high,Z=K.low,J=(X>>>1|Z<<31)^(X>>>8|Z<<24)^X>>>7,Q=(Z>>>1|X<<31)^(Z>>>8|X<<24)^(Z>>>7|X<<25),tt=c[q-2],et=tt.high,nt=tt.low,rt=(et>>>19|nt<<13)^(et<<3|nt>>>29)^et>>>6,it=(nt>>>19|et<<13)^(nt<<3|et>>>29)^(nt>>>6|et<<26),ot=c[q-7],at=ot.high,st=ot.low,lt=c[q-16],ct=lt.high,ut=lt.low;W=(W=(W=J+at+((G=Q+st)>>>0<Q>>>0?1:0))+rt+((G+=it)>>>0<it>>>0?1:0))+ct+((G+=ut)>>>0<ut>>>0?1:0),$.high=W,$.low=G}var ht,dt=B&j^~B&H,ft=F&L^~F&z,pt=O&M^O&P^M&P,mt=A&N^A&I^N&I,gt=(O>>>28|A<<4)^(O<<30|A>>>2)^(O<<25|A>>>7),vt=(A>>>28|O<<4)^(A<<30|O>>>2)^(A<<25|O>>>7),yt=(B>>>14|F<<18)^(B>>>18|F<<14)^(B<<23|F>>>9),bt=(F>>>14|B<<18)^(F>>>18|B<<14)^(F<<23|B>>>9),wt=l[q],_t=wt.high,Dt=wt.low,St=Y+yt+((ht=U+bt)>>>0<U>>>0?1:0),xt=vt+mt;Y=H,U=z,H=j,z=L,j=B,L=F,B=V+(St=(St=(St=St+dt+((ht+=ft)>>>0<ft>>>0?1:0))+_t+((ht+=Dt)>>>0<Dt>>>0?1:0))+W+((ht+=G)>>>0<G>>>0?1:0))+((F=R+ht|0)>>>0<R>>>0?1:0)|0,V=P,R=I,P=M,I=N,M=O,N=A,O=St+(gt+pt+(xt>>>0<vt>>>0?1:0))+((A=ht+xt|0)>>>0<ht>>>0?1:0)|0}p=r.low=p+A,r.high=f+O+(p>>>0<A>>>0?1:0),g=i.low=g+N,i.high=m+M+(g>>>0<N>>>0?1:0),y=o.low=y+I,o.high=v+P+(y>>>0<I>>>0?1:0),w=a.low=w+R,a.high=b+V+(w>>>0<R>>>0?1:0),D=s.low=D+F,s.high=_+B+(D>>>0<F>>>0?1:0),x=u.low=x+L,u.high=S+j+(x>>>0<L>>>0?1:0),T=h.low=T+z,h.high=k+H+(T>>>0<z>>>0?1:0),E=d.low=E+U,d.high=C+Y+(E>>>0<U>>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;return e[r>>>5]|=128<<24-r%32,e[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),e[31+(r+128>>>10<<5)]=n,t.sigBytes=4*e.length,this._process(),this._hash.toX32()},clone:function(){var t=e.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32});t.SHA512=e._createHelper(u),t.HmacSHA512=e._createHmacHelper(u)}(),n.SHA512)})),a((function(t,e){var n;t.exports=(n=Jt,function(){var t=n,e=t.x64,r=e.Word,i=e.WordArray,o=t.algo,a=o.SHA512,s=o.SHA384=a.extend({_doReset:function(){this._hash=new i.init([new r.init(3418070365,3238371032),new r.init(1654270250,914150663),new r.init(2438529370,812702999),new r.init(355462360,4144912697),new r.init(1731405415,4290775857),new r.init(2394180231,1750603025),new r.init(3675008525,1694076839),new r.init(1203062813,3204075428)])},_doFinalize:function(){var t=a._doFinalize.call(this);return t.sigBytes-=16,t}});t.SHA384=a._createHelper(s),t.HmacSHA384=a._createHmacHelper(s)}(),n.SHA384)})),a((function(t,e){var n;t.exports=(n=Jt,function(t){var e=n,r=e.lib,i=r.WordArray,o=r.Hasher,a=e.x64.Word,s=e.algo,l=[],c=[],u=[];!function(){for(var t=1,e=0,n=0;n<24;n++){l[t+5*e]=(n+1)*(n+2)/2%64;var r=(2*t+3*e)%5;t=e%5,e=r}for(t=0;t<5;t++)for(e=0;e<5;e++)c[t+5*e]=e+(2*t+3*e)%5*5;for(var i=1,o=0;o<24;o++){for(var s=0,h=0,d=0;d<7;d++){if(1&i){var f=(1<<d)-1;f<32?h^=1<<f:s^=1<<f-32}128&i?i=i<<1^113:i<<=1}u[o]=a.create(s,h)}}();var h=[];!function(){for(var t=0;t<25;t++)h[t]=a.create()}();var d=s.SHA3=o.extend({cfg:o.cfg.extend({outputLength:512}),_doReset:function(){for(var t=this._state=[],e=0;e<25;e++)t[e]=new a.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(t,e){for(var n=this._state,r=this.blockSize/2,i=0;i<r;i++){var o=t[e+2*i],a=t[e+2*i+1];o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),(E=n[i]).high^=a,E.low^=o}for(var s=0;s<24;s++){for(var d=0;d<5;d++){for(var f=0,p=0,m=0;m<5;m++)f^=(E=n[d+5*m]).high,p^=E.low;var g=h[d];g.high=f,g.low=p}for(d=0;d<5;d++){var v=h[(d+4)%5],y=h[(d+1)%5],b=y.high,w=y.low;for(f=v.high^(b<<1|w>>>31),p=v.low^(w<<1|b>>>31),m=0;m<5;m++)(E=n[d+5*m]).high^=f,E.low^=p}for(var _=1;_<25;_++){var D=(E=n[_]).high,S=E.low,x=l[_];x<32?(f=D<<x|S>>>32-x,p=S<<x|D>>>32-x):(f=S<<x-32|D>>>64-x,p=D<<x-32|S>>>64-x);var k=h[c[_]];k.high=f,k.low=p}var T=h[0],C=n[0];for(T.high=C.high,T.low=C.low,d=0;d<5;d++)for(m=0;m<5;m++){var E=n[_=d+5*m],O=h[_],A=h[(d+1)%5+5*m],M=h[(d+2)%5+5*m];E.high=O.high^~A.high&M.high,E.low=O.low^~A.low&M.low}E=n[0];var N=u[s];E.high^=N.high,E.low^=N.low}},_doFinalize:function(){var e=this._data,n=e.words;this._nDataBytes;var r=8*e.sigBytes,o=32*this.blockSize;n[r>>>5]|=1<<24-r%32,n[(t.ceil((r+1)/o)*o>>>5)-1]|=128,e.sigBytes=4*n.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,l=s/8,c=[],u=0;u<l;u++){var h=a[u],d=h.high,f=h.low;d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),f=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8),c.push(f),c.push(d)}return new i.init(c,s)},clone:function(){for(var t=o.clone.call(this),e=t._state=this._state.slice(0),n=0;n<25;n++)e[n]=e[n].clone();return t}});e.SHA3=o._createHelper(d),e.HmacSHA3=o._createHmacHelper(d)}(Math),n.SHA3)})),a((function(t,e){var n;t.exports=(n=Jt,
|
|
18
|
+
var qt={};void 0!==qt.asn1&&qt.asn1||(qt.asn1={}),qt.asn1.ASN1Util=new function(){this.integerToByteHex=function(t){var e=t.toString(16);return e.length%2==1&&(e="0"+e),e},this.bigIntToMinTwosComplementsHex=function(t){var e=t.toString(16);if("-"!=e.substr(0,1))e.length%2==1?e="0"+e:e.match(/^[0-7]/)||(e="00"+e);else{var n=e.substr(1).length;n%2==1?n+=1:e.match(/^[0-7]/)||(n+=2);for(var r="",i=0;i<n;i++)r+="f";e=new yt(r,16).xor(t).add(yt.ONE).toString(16).replace(/^-/,"")}return e},this.getPEMStringFromHex=function(t,e){return hextopem(t,e)},this.newObject=function(t){var e=qt.asn1,n=e.DERBoolean,r=e.DERInteger,i=e.DERBitString,o=e.DEROctetString,a=e.DERNull,s=e.DERObjectIdentifier,l=e.DEREnumerated,c=e.DERUTF8String,u=e.DERNumericString,h=e.DERPrintableString,d=e.DERTeletexString,f=e.DERIA5String,p=e.DERUTCTime,m=e.DERGeneralizedTime,g=e.DERSequence,v=e.DERSet,y=e.DERTaggedObject,b=e.ASN1Util.newObject,w=Object.keys(t);if(1!=w.length)throw"key of param shall be only one.";var _=w[0];if(-1==":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+_+":"))throw"undefined key: "+_;if("bool"==_)return new n(t[_]);if("int"==_)return new r(t[_]);if("bitstr"==_)return new i(t[_]);if("octstr"==_)return new o(t[_]);if("null"==_)return new a(t[_]);if("oid"==_)return new s(t[_]);if("enum"==_)return new l(t[_]);if("utf8str"==_)return new c(t[_]);if("numstr"==_)return new u(t[_]);if("prnstr"==_)return new h(t[_]);if("telstr"==_)return new d(t[_]);if("ia5str"==_)return new f(t[_]);if("utctime"==_)return new p(t[_]);if("gentime"==_)return new m(t[_]);if("seq"==_){for(var D=t[_],S=[],x=0;x<D.length;x++){var k=b(D[x]);S.push(k)}return new g({array:S})}if("set"==_){for(D=t[_],S=[],x=0;x<D.length;x++){k=b(D[x]);S.push(k)}return new v({array:S})}if("tag"==_){var T=t[_];if("[object Array]"===Object.prototype.toString.call(T)&&3==T.length){var C=b(T[2]);return new y({tag:T[0],explicit:T[1],obj:C})}var E={};if(void 0!==T.explicit&&(E.explicit=T.explicit),void 0!==T.tag&&(E.tag=T.tag),void 0===T.obj)throw"obj shall be specified for 'tag'.";return E.obj=b(T.obj),new y(E)}},this.jsonToASN1HEX=function(t){return this.newObject(t).getEncodedHex()}},qt.asn1.ASN1Util.oidHexToInt=function(t){for(var e="",n=parseInt(t.substr(0,2),16),r=(e=Math.floor(n/40)+"."+n%40,""),i=2;i<t.length;i+=2){var o=("00000000"+parseInt(t.substr(i,2),16).toString(2)).slice(-8);if(r+=o.substr(1,7),"0"==o.substr(0,1))e=e+"."+new yt(r,2).toString(10),r=""}return e},qt.asn1.ASN1Util.oidIntToHex=function(t){var e=function(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e},n=function(t){var n="",r=new yt(t,10).toString(2),i=7-r.length%7;7==i&&(i=0);for(var o="",a=0;a<i;a++)o+="0";r=o+r;for(a=0;a<r.length-1;a+=7){var s=r.substr(a,7);a!=r.length-7&&(s="1"+s),n+=e(parseInt(s,2))}return n};if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var r="",i=t.split("."),o=40*parseInt(i[0])+parseInt(i[1]);r+=e(o),i.splice(0,2);for(var a=0;a<i.length;a++)r+=n(i[a]);return r},qt.asn1.ASN1Object=function(){this.getLengthHexFromValue=function(){if(void 0===this.hV||null==this.hV)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n=0,v="+this.hV;var t=this.hV.length/2,e=t.toString(16);if(e.length%2==1&&(e="0"+e),t<128)return e;var n=e.length/2;if(n>15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);return(128+n).toString(16)+e},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},qt.asn1.DERAbstractString=function(t){qt.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(this.s)},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?this.setString(t):void 0!==t.str?this.setString(t.str):void 0!==t.hex&&this.setStringHex(t.hex))},Ut.lang.extend(qt.asn1.DERAbstractString,qt.asn1.ASN1Object),qt.asn1.DERAbstractTime=function(t){qt.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){return utc=t.getTime()+6e4*t.getTimezoneOffset(),new Date(utc)},this.formatDate=function(t,e,n){var r=this.zeroPadding,i=this.localDateToUTC(t),o=String(i.getFullYear());"utc"==e&&(o=o.substr(2,2));var a=o+r(String(i.getMonth()+1),2)+r(String(i.getDate()),2)+r(String(i.getHours()),2)+r(String(i.getMinutes()),2)+r(String(i.getSeconds()),2);if(!0===n){var s=i.getMilliseconds();if(0!=s){var l=r(String(s),3);a=a+"."+(l=l.replace(/[0]+$/,""))}}return a+"Z"},this.zeroPadding=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(t)},this.setByDateValue=function(t,e,n,r,i,o){var a=new Date(Date.UTC(t,e-1,n,r,i,o,0));this.setByDate(a)},this.getFreshValueHex=function(){return this.hV}},Ut.lang.extend(qt.asn1.DERAbstractTime,qt.asn1.ASN1Object),qt.asn1.DERAbstractStructured=function(t){qt.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,void 0!==t&&void 0!==t.array&&(this.asn1Array=t.array)},Ut.lang.extend(qt.asn1.DERAbstractStructured,qt.asn1.ASN1Object),qt.asn1.DERBoolean=function(){qt.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},Ut.lang.extend(qt.asn1.DERBoolean,qt.asn1.ASN1Object),qt.asn1.DERInteger=function(t){qt.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=qt.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new yt(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.bigint?this.setByBigInteger(t.bigint):void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},Ut.lang.extend(qt.asn1.DERInteger,qt.asn1.ASN1Object),qt.asn1.DERBitString=function(t){if(void 0!==t&&void 0!==t.obj){var e=qt.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}qt.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null,this.isModified=!0,this.hV=t},this.setUnusedBitsAndHexValue=function(t,e){if(t<0||7<t)throw"unused bits shall be from 0 to 7: u = "+t;var n="0"+t;this.hTLV=null,this.isModified=!0,this.hV=n+e},this.setByBinaryString=function(t){var e=8-(t=t.replace(/0+$/,"")).length%8;8==e&&(e=0);for(var n=0;n<=e;n++)t+="0";var r="";for(n=0;n<t.length-1;n+=8){var i=t.substr(n,8),o=parseInt(i,2).toString(16);1==o.length&&(o="0"+o),r+=o}this.hTLV=null,this.isModified=!0,this.hV="0"+e+r},this.setByBooleanArray=function(t){for(var e="",n=0;n<t.length;n++)1==t[n]?e+="1":e+="0";this.setByBinaryString(e)},this.newFalseArray=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=!1;return e},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t&&t.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(t):void 0!==t.hex?this.setHexValueIncludingUnusedBits(t.hex):void 0!==t.bin?this.setByBinaryString(t.bin):void 0!==t.array&&this.setByBooleanArray(t.array))},Ut.lang.extend(qt.asn1.DERBitString,qt.asn1.ASN1Object),qt.asn1.DEROctetString=function(t){if(void 0!==t&&void 0!==t.obj){var e=qt.asn1.ASN1Util.newObject(t.obj);t.hex=e.getEncodedHex()}qt.asn1.DEROctetString.superclass.constructor.call(this,t),this.hT="04"},Ut.lang.extend(qt.asn1.DEROctetString,qt.asn1.DERAbstractString),qt.asn1.DERNull=function(){qt.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},Ut.lang.extend(qt.asn1.DERNull,qt.asn1.ASN1Object),qt.asn1.DERObjectIdentifier=function(t){var e=function(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e},n=function(t){var n="",r=new yt(t,10).toString(2),i=7-r.length%7;7==i&&(i=0);for(var o="",a=0;a<i;a++)o+="0";r=o+r;for(a=0;a<r.length-1;a+=7){var s=r.substr(a,7);a!=r.length-7&&(s="1"+s),n+=e(parseInt(s,2))}return n};qt.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.setValueOidString=function(t){if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var r="",i=t.split("."),o=40*parseInt(i[0])+parseInt(i[1]);r+=e(o),i.splice(0,2);for(var a=0;a<i.length;a++)r+=n(i[a]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},this.setValueName=function(t){var e=qt.asn1.x509.OID.name2oid(t);if(""===e)throw"DERObjectIdentifier oidName undefined: "+t;this.setValueOidString(e)},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?t.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(t):this.setValueName(t):void 0!==t.oid?this.setValueOidString(t.oid):void 0!==t.hex?this.setValueHex(t.hex):void 0!==t.name&&this.setValueName(t.name))},Ut.lang.extend(qt.asn1.DERObjectIdentifier,qt.asn1.ASN1Object),qt.asn1.DEREnumerated=function(t){qt.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=qt.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new yt(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},Ut.lang.extend(qt.asn1.DEREnumerated,qt.asn1.ASN1Object),qt.asn1.DERUTF8String=function(t){qt.asn1.DERUTF8String.superclass.constructor.call(this,t),this.hT="0c"},Ut.lang.extend(qt.asn1.DERUTF8String,qt.asn1.DERAbstractString),qt.asn1.DERNumericString=function(t){qt.asn1.DERNumericString.superclass.constructor.call(this,t),this.hT="12"},Ut.lang.extend(qt.asn1.DERNumericString,qt.asn1.DERAbstractString),qt.asn1.DERPrintableString=function(t){qt.asn1.DERPrintableString.superclass.constructor.call(this,t),this.hT="13"},Ut.lang.extend(qt.asn1.DERPrintableString,qt.asn1.DERAbstractString),qt.asn1.DERTeletexString=function(t){qt.asn1.DERTeletexString.superclass.constructor.call(this,t),this.hT="14"},Ut.lang.extend(qt.asn1.DERTeletexString,qt.asn1.DERAbstractString),qt.asn1.DERIA5String=function(t){qt.asn1.DERIA5String.superclass.constructor.call(this,t),this.hT="16"},Ut.lang.extend(qt.asn1.DERIA5String,qt.asn1.DERAbstractString),qt.asn1.DERUTCTime=function(t){qt.asn1.DERUTCTime.superclass.constructor.call(this,t),this.hT="17",this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{12}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date))},Ut.lang.extend(qt.asn1.DERUTCTime,qt.asn1.DERAbstractTime),qt.asn1.DERGeneralizedTime=function(t){qt.asn1.DERGeneralizedTime.superclass.constructor.call(this,t),this.hT="18",this.withMillis=!1,this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{14}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date),!0===t.millis&&(this.withMillis=!0))},Ut.lang.extend(qt.asn1.DERGeneralizedTime,qt.asn1.DERAbstractTime),qt.asn1.DERSequence=function(t){qt.asn1.DERSequence.superclass.constructor.call(this,t),this.hT="30",this.getFreshValueHex=function(){for(var t="",e=0;e<this.asn1Array.length;e++){t+=this.asn1Array[e].getEncodedHex()}return this.hV=t,this.hV}},Ut.lang.extend(qt.asn1.DERSequence,qt.asn1.DERAbstractStructured),qt.asn1.DERSet=function(t){qt.asn1.DERSet.superclass.constructor.call(this,t),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var t=new Array,e=0;e<this.asn1Array.length;e++){var n=this.asn1Array[e];t.push(n.getEncodedHex())}return 1==this.sortFlag&&t.sort(),this.hV=t.join(""),this.hV},void 0!==t&&void 0!==t.sortflag&&0==t.sortflag&&(this.sortFlag=!1)},Ut.lang.extend(qt.asn1.DERSet,qt.asn1.DERAbstractStructured),qt.asn1.DERTaggedObject=function(t){qt.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(t,e,n){this.hT=e,this.isExplicit=t,this.asn1Object=n,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=n.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,e),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.tag&&(this.hT=t.tag),void 0!==t.explicit&&(this.isExplicit=t.explicit),void 0!==t.obj&&(this.asn1Object=t.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},Ut.lang.extend(qt.asn1.DERTaggedObject,qt.asn1.ASN1Object);var Gt,Wt=window&&window.__extends||function(){var t=function(e,n){return t=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])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$t=function(t){function e(n){var r=t.call(this)||this;return n&&("string"==typeof n?r.parseKey(n):(e.hasPrivateKeyProperty(n)||e.hasPublicKeyProperty(n))&&r.parsePropertiesFrom(n)),r}return Wt(e,t),e.prototype.parseKey=function(t){try{var e=0,n=0,r=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/.test(t)?ot(t):at.unarmor(t),i=pt.decode(r);if(3===i.sub.length&&(i=i.sub[2].sub[0]),9===i.sub.length){e=i.sub[1].getHexStringValue(),this.n=xt(e,16),n=i.sub[2].getHexStringValue(),this.e=parseInt(n,16);var o=i.sub[3].getHexStringValue();this.d=xt(o,16);var a=i.sub[4].getHexStringValue();this.p=xt(a,16);var s=i.sub[5].getHexStringValue();this.q=xt(s,16);var l=i.sub[6].getHexStringValue();this.dmp1=xt(l,16);var c=i.sub[7].getHexStringValue();this.dmq1=xt(c,16);var u=i.sub[8].getHexStringValue();this.coeff=xt(u,16)}else{if(2!==i.sub.length)return!1;if(i.sub[0].sub){var h=i.sub[1].sub[0];e=h.sub[0].getHexStringValue(),this.n=xt(e,16),n=h.sub[1].getHexStringValue(),this.e=parseInt(n,16)}else e=i.sub[0].getHexStringValue(),this.n=xt(e,16),n=i.sub[1].getHexStringValue(),this.e=parseInt(n,16)}return!0}catch(t){return!1}},e.prototype.getPrivateBaseKey=function(){var t={array:[new qt.asn1.DERInteger({int:0}),new qt.asn1.DERInteger({bigint:this.n}),new qt.asn1.DERInteger({int:this.e}),new qt.asn1.DERInteger({bigint:this.d}),new qt.asn1.DERInteger({bigint:this.p}),new qt.asn1.DERInteger({bigint:this.q}),new qt.asn1.DERInteger({bigint:this.dmp1}),new qt.asn1.DERInteger({bigint:this.dmq1}),new qt.asn1.DERInteger({bigint:this.coeff})]};return new qt.asn1.DERSequence(t).getEncodedHex()},e.prototype.getPrivateBaseKeyB64=function(){return nt(this.getPrivateBaseKey())},e.prototype.getPublicBaseKey=function(){var t=new qt.asn1.DERSequence({array:[new qt.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new qt.asn1.DERNull]}),e=new qt.asn1.DERSequence({array:[new qt.asn1.DERInteger({bigint:this.n}),new qt.asn1.DERInteger({int:this.e})]}),n=new qt.asn1.DERBitString({hex:"00"+e.getEncodedHex()});return new qt.asn1.DERSequence({array:[t,n]}).getEncodedHex()},e.prototype.getPublicBaseKeyB64=function(){return nt(this.getPublicBaseKey())},e.wordwrap=function(t,e){if(!t)return t;var n="(.{1,"+(e=e||64)+"})( +|$\n?)|(.{1,"+e+"})";return t.match(RegExp(n,"g")).join("\n")},e.prototype.getPrivateKey=function(){var t="-----BEGIN RSA PRIVATE KEY-----\n";return t+=e.wordwrap(this.getPrivateBaseKeyB64())+"\n",t+="-----END RSA PRIVATE KEY-----"},e.prototype.getPublicKey=function(){var t="-----BEGIN PUBLIC KEY-----\n";return t+=e.wordwrap(this.getPublicBaseKeyB64())+"\n",t+="-----END PUBLIC KEY-----"},e.hasPublicKeyProperty=function(t){return(t=t||{}).hasOwnProperty("n")&&t.hasOwnProperty("e")},e.hasPrivateKeyProperty=function(t){return(t=t||{}).hasOwnProperty("n")&&t.hasOwnProperty("e")&&t.hasOwnProperty("d")&&t.hasOwnProperty("p")&&t.hasOwnProperty("q")&&t.hasOwnProperty("dmp1")&&t.hasOwnProperty("dmq1")&&t.hasOwnProperty("coeff")},e.prototype.parsePropertiesFrom=function(t){this.n=t.n,this.e=t.e,t.hasOwnProperty("d")&&(this.d=t.d,this.p=t.p,this.q=t.q,this.dmp1=t.dmp1,this.dmq1=t.dmq1,this.coeff=t.coeff)},e}(zt),Kt=null===(Gt=G.env)||void 0===Gt?void 0:Gt.npm_package_version,Xt=function(){function t(t){void 0===t&&(t={}),t=t||{},this.default_key_size=t.default_key_size?parseInt(t.default_key_size,10):1024,this.default_public_exponent=t.default_public_exponent||"010001",this.log=t.log||!1,this.key=null}return t.prototype.setKey=function(t){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new $t(t)},t.prototype.setPrivateKey=function(t){this.setKey(t)},t.prototype.setPublicKey=function(t){this.setKey(t)},t.prototype.decrypt=function(t){try{return this.getKey().decrypt(rt(t))}catch(t){return!1}},t.prototype.encrypt=function(t){try{return nt(this.getKey().encrypt(t))}catch(t){return!1}},t.prototype.sign=function(t,e,n){try{return nt(this.getKey().sign(t,e,n))}catch(t){return!1}},t.prototype.verify=function(t,e,n){try{return this.getKey().verify(t,rt(e),n)}catch(t){return!1}},t.prototype.getKey=function(t){if(!this.key){if(this.key=new $t,t&&"[object Function]"==={}.toString.call(t))return void this.key.generateAsync(this.default_key_size,this.default_public_exponent,t);this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},t.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},t.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},t.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},t.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},t.version=Kt,t}(),Zt={},Jt=a(function(t,e){var n;t.exports=(n=n||function(t,e){var n;if("undefined"!=typeof window&&window.crypto&&(n=window.crypto),"undefined"!=typeof self&&self.crypto&&(n=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(n=globalThis.crypto),!n&&"undefined"!=typeof window&&window.msCrypto&&(n=window.msCrypto),!n&&void 0!==r&&r.crypto&&(n=r.crypto),!n)try{n=Zt}catch(t){}var i=function(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch(t){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function t(){}return function(e){var n;return t.prototype=e,n=new t,t.prototype=null,n}}(),a={},s=a.lib={},l=s.Base={extend:function(t){var e=o(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},c=s.WordArray=l.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=n!=e?n:4*t.length},toString:function(t){return(t||h).stringify(this)},concat:function(t){var e=this.words,n=t.words,r=this.sigBytes,i=t.sigBytes;if(this.clamp(),r%4)for(var o=0;o<i;o++){var a=n[o>>>2]>>>24-o%4*8&255;e[r+o>>>2]|=a<<24-(r+o)%4*8}else for(var s=0;s<i;s+=4)e[r+s>>>2]=n[s>>>2];return this.sigBytes+=i,this},clamp:function(){var e=this.words,n=this.sigBytes;e[n>>>2]&=4294967295<<32-n%4*8,e.length=t.ceil(n/4)},clone:function(){var t=l.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],n=0;n<t;n+=4)e.push(i());return new c.init(e,t)}}),u=a.enc={},h=u.Hex={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i<n;i++){var o=e[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r+=2)n[r>>>3]|=parseInt(t.substr(r,2),16)<<24-r%8*4;return new c.init(n,e/2)}},d=u.Latin1={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i<n;i++){var o=e[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r++)n[r>>>2]|=(255&t.charCodeAt(r))<<24-r%4*8;return new c.init(n,e)}},f=u.Utf8={stringify:function(t){try{return decodeURIComponent(escape(d.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return d.parse(unescape(encodeURIComponent(t)))}},p=s.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=f.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var n,r=this._data,i=r.words,o=r.sigBytes,a=this.blockSize,s=o/(4*a),l=(s=e?t.ceil(s):t.max((0|s)-this._minBufferSize,0))*a,u=t.min(4*l,o);if(l){for(var h=0;h<l;h+=a)this._doProcessBlock(i,h);n=i.splice(0,l),r.sigBytes-=u}return new c.init(n,u)},clone:function(){var t=l.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0});s.Hasher=p.extend({cfg:l.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,n){return new t.init(n).finalize(e)}},_createHmacHelper:function(t){return function(e,n){return new m.HMAC.init(t,n).finalize(e)}}});var m=a.algo={};return a}(Math),n)}),Qt=(a(function(t,e){var n;t.exports=(n=Jt,function(t){var e=n,r=e.lib,i=r.Base,o=r.WordArray,a=e.x64={};a.Word=i.extend({init:function(t,e){this.high=t,this.low=e}}),a.WordArray=i.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:8*e.length},toX32:function(){for(var t=this.words,e=t.length,n=[],r=0;r<e;r++){var i=t[r];n.push(i.high),n.push(i.low)}return o.create(n,this.sigBytes)},clone:function(){for(var t=i.clone.call(this),e=t.words=this.words.slice(0),n=e.length,r=0;r<n;r++)e[r]=e[r].clone();return t}})}(),n)}),a(function(t,e){var n;t.exports=(n=Jt,function(){if("function"==typeof ArrayBuffer){var t=n.lib.WordArray,e=t.init,r=t.init=function(t){if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),(t instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)),t instanceof Uint8Array){for(var n=t.byteLength,r=[],i=0;i<n;i++)r[i>>>2]|=t[i]<<24-i%4*8;e.call(this,r,n)}else e.apply(this,arguments)};r.prototype=t}}(),n.lib.WordArray)}),a(function(t,e){var n;t.exports=(n=Jt,function(){var t=n,e=t.lib.WordArray,r=t.enc;function i(t){return t<<8&4278255360|t>>>8&16711935}r.Utf16=r.Utf16BE={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i<n;i+=2){var o=e[i>>>2]>>>16-i%4*8&65535;r.push(String.fromCharCode(o))}return r.join("")},parse:function(t){for(var n=t.length,r=[],i=0;i<n;i++)r[i>>>1]|=t.charCodeAt(i)<<16-i%2*16;return e.create(r,2*n)}},r.Utf16LE={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],o=0;o<n;o+=2){var a=i(e[o>>>2]>>>16-o%4*8&65535);r.push(String.fromCharCode(a))}return r.join("")},parse:function(t){for(var n=t.length,r=[],o=0;o<n;o++)r[o>>>1]|=i(t.charCodeAt(o)<<16-o%2*16);return e.create(r,2*n)}}}(),n.enc.Utf16)}),a(function(t,e){var n;t.exports=(n=Jt,function(){var t=n,e=t.lib.WordArray;function r(t,n,r){for(var i=[],o=0,a=0;a<n;a++)if(a%4){var s=r[t.charCodeAt(a-1)]<<a%4*2|r[t.charCodeAt(a)]>>>6-a%4*2;i[o>>>2]|=s<<24-o%4*8,o++}return e.create(i,o)}t.enc.Base64={stringify:function(t){var e=t.words,n=t.sigBytes,r=this._map;t.clamp();for(var i=[],o=0;o<n;o+=3)for(var a=(e[o>>>2]>>>24-o%4*8&255)<<16|(e[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|e[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s<n;s++)i.push(r.charAt(a>>>6*(3-s)&63));var l=r.charAt(64);if(l)for(;i.length%4;)i.push(l);return i.join("")},parse:function(t){var e=t.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o<n.length;o++)i[n.charCodeAt(o)]=o}var a=n.charAt(64);if(a){var s=t.indexOf(a);-1!==s&&(e=s)}return r(t,e,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),n.enc.Base64)}),a(function(t,e){var n;t.exports=(n=Jt,function(){var t=n,e=t.lib.WordArray;function r(t,n,r){for(var i=[],o=0,a=0;a<n;a++)if(a%4){var s=r[t.charCodeAt(a-1)]<<a%4*2|r[t.charCodeAt(a)]>>>6-a%4*2;i[o>>>2]|=s<<24-o%4*8,o++}return e.create(i,o)}t.enc.Base64url={stringify:function(t,e){void 0===e&&(e=!0);var n=t.words,r=t.sigBytes,i=e?this._safe_map:this._map;t.clamp();for(var o=[],a=0;a<r;a+=3)for(var s=(n[a>>>2]>>>24-a%4*8&255)<<16|(n[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|n[a+2>>>2]>>>24-(a+2)%4*8&255,l=0;l<4&&a+.75*l<r;l++)o.push(i.charAt(s>>>6*(3-l)&63));var c=i.charAt(64);if(c)for(;o.length%4;)o.push(c);return o.join("")},parse:function(t,e){void 0===e&&(e=!0);var n=t.length,i=e?this._safe_map:this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var a=0;a<i.length;a++)o[i.charCodeAt(a)]=a}var s=i.charAt(64);if(s){var l=t.indexOf(s);-1!==l&&(n=l)}return r(t,n,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"}}(),n.enc.Base64url)}),a(function(t,e){var n;t.exports=(n=Jt,function(t){var e=n,r=e.lib,i=r.WordArray,o=r.Hasher,a=e.algo,s=[];!function(){for(var e=0;e<64;e++)s[e]=4294967296*t.abs(t.sin(e+1))|0}();var l=a.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,e){for(var n=0;n<16;n++){var r=e+n,i=t[r];t[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=t[e+0],l=t[e+1],f=t[e+2],p=t[e+3],m=t[e+4],g=t[e+5],v=t[e+6],y=t[e+7],b=t[e+8],w=t[e+9],_=t[e+10],D=t[e+11],S=t[e+12],x=t[e+13],k=t[e+14],T=t[e+15],C=o[0],E=o[1],O=o[2],A=o[3];C=c(C,E,O,A,a,7,s[0]),A=c(A,C,E,O,l,12,s[1]),O=c(O,A,C,E,f,17,s[2]),E=c(E,O,A,C,p,22,s[3]),C=c(C,E,O,A,m,7,s[4]),A=c(A,C,E,O,g,12,s[5]),O=c(O,A,C,E,v,17,s[6]),E=c(E,O,A,C,y,22,s[7]),C=c(C,E,O,A,b,7,s[8]),A=c(A,C,E,O,w,12,s[9]),O=c(O,A,C,E,_,17,s[10]),E=c(E,O,A,C,D,22,s[11]),C=c(C,E,O,A,S,7,s[12]),A=c(A,C,E,O,x,12,s[13]),O=c(O,A,C,E,k,17,s[14]),C=u(C,E=c(E,O,A,C,T,22,s[15]),O,A,l,5,s[16]),A=u(A,C,E,O,v,9,s[17]),O=u(O,A,C,E,D,14,s[18]),E=u(E,O,A,C,a,20,s[19]),C=u(C,E,O,A,g,5,s[20]),A=u(A,C,E,O,_,9,s[21]),O=u(O,A,C,E,T,14,s[22]),E=u(E,O,A,C,m,20,s[23]),C=u(C,E,O,A,w,5,s[24]),A=u(A,C,E,O,k,9,s[25]),O=u(O,A,C,E,p,14,s[26]),E=u(E,O,A,C,b,20,s[27]),C=u(C,E,O,A,x,5,s[28]),A=u(A,C,E,O,f,9,s[29]),O=u(O,A,C,E,y,14,s[30]),C=h(C,E=u(E,O,A,C,S,20,s[31]),O,A,g,4,s[32]),A=h(A,C,E,O,b,11,s[33]),O=h(O,A,C,E,D,16,s[34]),E=h(E,O,A,C,k,23,s[35]),C=h(C,E,O,A,l,4,s[36]),A=h(A,C,E,O,m,11,s[37]),O=h(O,A,C,E,y,16,s[38]),E=h(E,O,A,C,_,23,s[39]),C=h(C,E,O,A,x,4,s[40]),A=h(A,C,E,O,a,11,s[41]),O=h(O,A,C,E,p,16,s[42]),E=h(E,O,A,C,v,23,s[43]),C=h(C,E,O,A,w,4,s[44]),A=h(A,C,E,O,S,11,s[45]),O=h(O,A,C,E,T,16,s[46]),C=d(C,E=h(E,O,A,C,f,23,s[47]),O,A,a,6,s[48]),A=d(A,C,E,O,y,10,s[49]),O=d(O,A,C,E,k,15,s[50]),E=d(E,O,A,C,g,21,s[51]),C=d(C,E,O,A,S,6,s[52]),A=d(A,C,E,O,p,10,s[53]),O=d(O,A,C,E,_,15,s[54]),E=d(E,O,A,C,l,21,s[55]),C=d(C,E,O,A,b,6,s[56]),A=d(A,C,E,O,T,10,s[57]),O=d(O,A,C,E,v,15,s[58]),E=d(E,O,A,C,x,21,s[59]),C=d(C,E,O,A,m,6,s[60]),A=d(A,C,E,O,D,10,s[61]),O=d(O,A,C,E,f,15,s[62]),E=d(E,O,A,C,w,21,s[63]),o[0]=o[0]+C|0,o[1]=o[1]+E|0,o[2]=o[2]+O|0,o[3]=o[3]+A|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;n[i>>>5]|=128<<24-i%32;var o=t.floor(r/4294967296),a=r;n[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),e.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,l=s.words,c=0;c<4;c++){var u=l[c];l[c]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});function c(t,e,n,r,i,o,a){var s=t+(e&n|~e&r)+i+a;return(s<<o|s>>>32-o)+e}function u(t,e,n,r,i,o,a){var s=t+(e&r|n&~r)+i+a;return(s<<o|s>>>32-o)+e}function h(t,e,n,r,i,o,a){var s=t+(e^n^r)+i+a;return(s<<o|s>>>32-o)+e}function d(t,e,n,r,i,o,a){var s=t+(n^(e|~r))+i+a;return(s<<o|s>>>32-o)+e}e.MD5=o._createHelper(l),e.HmacMD5=o._createHmacHelper(l)}(Math),n.MD5)}),a(function(t,e){var n;t.exports=(n=Jt,function(){var t=n,e=t.lib,r=e.WordArray,i=e.Hasher,o=t.algo,a=[],s=o.SHA1=i.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],s=n[3],l=n[4],c=0;c<80;c++){if(c<16)a[c]=0|t[e+c];else{var u=a[c-3]^a[c-8]^a[c-14]^a[c-16];a[c]=u<<1|u>>>31}var h=(r<<5|r>>>27)+l+a[c];h+=c<20?1518500249+(i&o|~i&s):c<40?1859775393+(i^o^s):c<60?(i&o|i&s|o&s)-1894007588:(i^o^s)-899497514,l=s,s=o,o=i<<30|i>>>2,i=r,r=h}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+s|0,n[4]=n[4]+l|0},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;return e[r>>>5]|=128<<24-r%32,e[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),e[15+(r+64>>>9<<4)]=n,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t}});t.SHA1=i._createHelper(s),t.HmacSHA1=i._createHmacHelper(s)}(),n.SHA1)}),a(function(t,e){var n;t.exports=(n=Jt,function(t){var e=n,r=e.lib,i=r.WordArray,o=r.Hasher,a=e.algo,s=[],l=[];!function(){function e(e){for(var n=t.sqrt(e),r=2;r<=n;r++)if(!(e%r))return!1;return!0}function n(t){return 4294967296*(t-(0|t))|0}for(var r=2,i=0;i<64;)e(r)&&(i<8&&(s[i]=n(t.pow(r,.5))),l[i]=n(t.pow(r,1/3)),i++),r++}();var c=[],u=a.SHA256=o.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(t,e){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],u=n[5],h=n[6],d=n[7],f=0;f<64;f++){if(f<16)c[f]=0|t[e+f];else{var p=c[f-15],m=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,g=c[f-2],v=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;c[f]=m+c[f-7]+v+c[f-16]}var y=r&i^r&o^i&o,b=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),w=d+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&u^~s&h)+l[f]+c[f];d=h,h=u,u=s,s=a+w|0,a=o,o=i,i=r,r=w+(b+y)|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+u|0,n[6]=n[6]+h|0,n[7]=n[7]+d|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=t.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});e.SHA256=o._createHelper(u),e.HmacSHA256=o._createHmacHelper(u)}(Math),n.SHA256)}),a(function(t,e){var n;t.exports=(n=Jt,function(){var t=n,e=t.lib.WordArray,r=t.algo,i=r.SHA256,o=r.SHA224=i.extend({_doReset:function(){this._hash=new e.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var t=i._doFinalize.call(this);return t.sigBytes-=4,t}});t.SHA224=i._createHelper(o),t.HmacSHA224=i._createHmacHelper(o)}(),n.SHA224)}),a(function(t,e){var n;t.exports=(n=Jt,function(){var t=n,e=t.lib.Hasher,r=t.x64,i=r.Word,o=r.WordArray,a=t.algo;function s(){return i.create.apply(i,arguments)}var l=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],c=[];!function(){for(var t=0;t<80;t++)c[t]=s()}();var u=a.SHA512=e.extend({_doReset:function(){this._hash=new o.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(t,e){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],u=n[5],h=n[6],d=n[7],f=r.high,p=r.low,m=i.high,g=i.low,v=o.high,y=o.low,b=a.high,w=a.low,_=s.high,D=s.low,S=u.high,x=u.low,k=h.high,T=h.low,C=d.high,E=d.low,O=f,A=p,M=m,N=g,P=v,I=y,V=b,R=w,B=_,F=D,j=S,L=x,H=k,z=T,Y=C,U=E,q=0;q<80;q++){var G,W,$=c[q];if(q<16)W=$.high=0|t[e+2*q],G=$.low=0|t[e+2*q+1];else{var K=c[q-15],X=K.high,Z=K.low,J=(X>>>1|Z<<31)^(X>>>8|Z<<24)^X>>>7,Q=(Z>>>1|X<<31)^(Z>>>8|X<<24)^(Z>>>7|X<<25),tt=c[q-2],et=tt.high,nt=tt.low,rt=(et>>>19|nt<<13)^(et<<3|nt>>>29)^et>>>6,it=(nt>>>19|et<<13)^(nt<<3|et>>>29)^(nt>>>6|et<<26),ot=c[q-7],at=ot.high,st=ot.low,lt=c[q-16],ct=lt.high,ut=lt.low;W=(W=(W=J+at+((G=Q+st)>>>0<Q>>>0?1:0))+rt+((G+=it)>>>0<it>>>0?1:0))+ct+((G+=ut)>>>0<ut>>>0?1:0),$.high=W,$.low=G}var ht,dt=B&j^~B&H,ft=F&L^~F&z,pt=O&M^O&P^M&P,mt=A&N^A&I^N&I,gt=(O>>>28|A<<4)^(O<<30|A>>>2)^(O<<25|A>>>7),vt=(A>>>28|O<<4)^(A<<30|O>>>2)^(A<<25|O>>>7),yt=(B>>>14|F<<18)^(B>>>18|F<<14)^(B<<23|F>>>9),bt=(F>>>14|B<<18)^(F>>>18|B<<14)^(F<<23|B>>>9),wt=l[q],_t=wt.high,Dt=wt.low,St=Y+yt+((ht=U+bt)>>>0<U>>>0?1:0),xt=vt+mt;Y=H,U=z,H=j,z=L,j=B,L=F,B=V+(St=(St=(St=St+dt+((ht+=ft)>>>0<ft>>>0?1:0))+_t+((ht+=Dt)>>>0<Dt>>>0?1:0))+W+((ht+=G)>>>0<G>>>0?1:0))+((F=R+ht|0)>>>0<R>>>0?1:0)|0,V=P,R=I,P=M,I=N,M=O,N=A,O=St+(gt+pt+(xt>>>0<vt>>>0?1:0))+((A=ht+xt|0)>>>0<ht>>>0?1:0)|0}p=r.low=p+A,r.high=f+O+(p>>>0<A>>>0?1:0),g=i.low=g+N,i.high=m+M+(g>>>0<N>>>0?1:0),y=o.low=y+I,o.high=v+P+(y>>>0<I>>>0?1:0),w=a.low=w+R,a.high=b+V+(w>>>0<R>>>0?1:0),D=s.low=D+F,s.high=_+B+(D>>>0<F>>>0?1:0),x=u.low=x+L,u.high=S+j+(x>>>0<L>>>0?1:0),T=h.low=T+z,h.high=k+H+(T>>>0<z>>>0?1:0),E=d.low=E+U,d.high=C+Y+(E>>>0<U>>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;return e[r>>>5]|=128<<24-r%32,e[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),e[31+(r+128>>>10<<5)]=n,t.sigBytes=4*e.length,this._process(),this._hash.toX32()},clone:function(){var t=e.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32});t.SHA512=e._createHelper(u),t.HmacSHA512=e._createHmacHelper(u)}(),n.SHA512)}),a(function(t,e){var n;t.exports=(n=Jt,function(){var t=n,e=t.x64,r=e.Word,i=e.WordArray,o=t.algo,a=o.SHA512,s=o.SHA384=a.extend({_doReset:function(){this._hash=new i.init([new r.init(3418070365,3238371032),new r.init(1654270250,914150663),new r.init(2438529370,812702999),new r.init(355462360,4144912697),new r.init(1731405415,4290775857),new r.init(2394180231,1750603025),new r.init(3675008525,1694076839),new r.init(1203062813,3204075428)])},_doFinalize:function(){var t=a._doFinalize.call(this);return t.sigBytes-=16,t}});t.SHA384=a._createHelper(s),t.HmacSHA384=a._createHmacHelper(s)}(),n.SHA384)}),a(function(t,e){var n;t.exports=(n=Jt,function(t){var e=n,r=e.lib,i=r.WordArray,o=r.Hasher,a=e.x64.Word,s=e.algo,l=[],c=[],u=[];!function(){for(var t=1,e=0,n=0;n<24;n++){l[t+5*e]=(n+1)*(n+2)/2%64;var r=(2*t+3*e)%5;t=e%5,e=r}for(t=0;t<5;t++)for(e=0;e<5;e++)c[t+5*e]=e+(2*t+3*e)%5*5;for(var i=1,o=0;o<24;o++){for(var s=0,h=0,d=0;d<7;d++){if(1&i){var f=(1<<d)-1;f<32?h^=1<<f:s^=1<<f-32}128&i?i=i<<1^113:i<<=1}u[o]=a.create(s,h)}}();var h=[];!function(){for(var t=0;t<25;t++)h[t]=a.create()}();var d=s.SHA3=o.extend({cfg:o.cfg.extend({outputLength:512}),_doReset:function(){for(var t=this._state=[],e=0;e<25;e++)t[e]=new a.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(t,e){for(var n=this._state,r=this.blockSize/2,i=0;i<r;i++){var o=t[e+2*i],a=t[e+2*i+1];o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),(E=n[i]).high^=a,E.low^=o}for(var s=0;s<24;s++){for(var d=0;d<5;d++){for(var f=0,p=0,m=0;m<5;m++)f^=(E=n[d+5*m]).high,p^=E.low;var g=h[d];g.high=f,g.low=p}for(d=0;d<5;d++){var v=h[(d+4)%5],y=h[(d+1)%5],b=y.high,w=y.low;for(f=v.high^(b<<1|w>>>31),p=v.low^(w<<1|b>>>31),m=0;m<5;m++)(E=n[d+5*m]).high^=f,E.low^=p}for(var _=1;_<25;_++){var D=(E=n[_]).high,S=E.low,x=l[_];x<32?(f=D<<x|S>>>32-x,p=S<<x|D>>>32-x):(f=S<<x-32|D>>>64-x,p=D<<x-32|S>>>64-x);var k=h[c[_]];k.high=f,k.low=p}var T=h[0],C=n[0];for(T.high=C.high,T.low=C.low,d=0;d<5;d++)for(m=0;m<5;m++){var E=n[_=d+5*m],O=h[_],A=h[(d+1)%5+5*m],M=h[(d+2)%5+5*m];E.high=O.high^~A.high&M.high,E.low=O.low^~A.low&M.low}E=n[0];var N=u[s];E.high^=N.high,E.low^=N.low}},_doFinalize:function(){var e=this._data,n=e.words;this._nDataBytes;var r=8*e.sigBytes,o=32*this.blockSize;n[r>>>5]|=1<<24-r%32,n[(t.ceil((r+1)/o)*o>>>5)-1]|=128,e.sigBytes=4*n.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,l=s/8,c=[],u=0;u<l;u++){var h=a[u],d=h.high,f=h.low;d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),f=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8),c.push(f),c.push(d)}return new i.init(c,s)},clone:function(){for(var t=o.clone.call(this),e=t._state=this._state.slice(0),n=0;n<25;n++)e[n]=e[n].clone();return t}});e.SHA3=o._createHelper(d),e.HmacSHA3=o._createHmacHelper(d)}(Math),n.SHA3)}),a(function(t,e){var n;t.exports=(n=Jt,
|
|
19
19
|
/** @preserve
|
|
20
20
|
(c) 2012 by Cédric Mesnil. All rights reserved.
|
|
21
21
|
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
@@ -23,15 +23,15 @@ var qt={};void 0!==qt.asn1&&qt.asn1||(qt.asn1={}),qt.asn1.ASN1Util=new function(
|
|
|
23
23
|
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
24
24
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
25
25
|
*/
|
|
26
|
-
function(){var t=n,e=t.lib,r=e.WordArray,i=e.Hasher,o=t.algo,a=r.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),s=r.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),l=r.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),c=r.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),u=r.create([0,1518500249,1859775393,2400959708,2840853838]),h=r.create([1352829926,1548603684,1836072691,2053994217,0]),d=o.RIPEMD160=i.extend({_doReset:function(){this._hash=r.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=0;n<16;n++){var r=e+n,i=t[r];t[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,d,b,w,_,D,S,x,k,T,C,E=this._hash.words,O=u.words,A=h.words,M=a.words,N=s.words,P=l.words,I=c.words;for(D=o=E[0],S=d=E[1],x=b=E[2],k=w=E[3],T=_=E[4],n=0;n<80;n+=1)C=o+t[e+M[n]]|0,C+=n<16?f(d,b,w)+O[0]:n<32?p(d,b,w)+O[1]:n<48?m(d,b,w)+O[2]:n<64?g(d,b,w)+O[3]:v(d,b,w)+O[4],C=(C=y(C|=0,P[n]))+_|0,o=_,_=w,w=y(b,10),b=d,d=C,C=D+t[e+N[n]]|0,C+=n<16?v(S,x,k)+A[0]:n<32?g(S,x,k)+A[1]:n<48?m(S,x,k)+A[2]:n<64?p(S,x,k)+A[3]:f(S,x,k)+A[4],C=(C=y(C|=0,I[n]))+T|0,D=T,T=k,k=y(x,10),x=S,S=C;C=E[1]+b+k|0,E[1]=E[2]+w+T|0,E[2]=E[3]+_+D|0,E[3]=E[4]+o+S|0,E[4]=E[0]+d+x|0,E[0]=C},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;e[r>>>5]|=128<<24-r%32,e[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),t.sigBytes=4*(e.length+1),this._process();for(var i=this._hash,o=i.words,a=0;a<5;a++){var s=o[a];o[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return i},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t}});function f(t,e,n){return t^e^n}function p(t,e,n){return t&e|~t&n}function m(t,e,n){return(t|~e)^n}function g(t,e,n){return t&n|e&~n}function v(t,e,n){return t^(e|~n)}function y(t,e){return t<<e|t>>>32-e}t.RIPEMD160=i._createHelper(d),t.HmacRIPEMD160=i._createHmacHelper(d)}(),n.RIPEMD160)})
|
|
26
|
+
function(){var t=n,e=t.lib,r=e.WordArray,i=e.Hasher,o=t.algo,a=r.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),s=r.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),l=r.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),c=r.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),u=r.create([0,1518500249,1859775393,2400959708,2840853838]),h=r.create([1352829926,1548603684,1836072691,2053994217,0]),d=o.RIPEMD160=i.extend({_doReset:function(){this._hash=r.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=0;n<16;n++){var r=e+n,i=t[r];t[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,d,b,w,_,D,S,x,k,T,C,E=this._hash.words,O=u.words,A=h.words,M=a.words,N=s.words,P=l.words,I=c.words;for(D=o=E[0],S=d=E[1],x=b=E[2],k=w=E[3],T=_=E[4],n=0;n<80;n+=1)C=o+t[e+M[n]]|0,C+=n<16?f(d,b,w)+O[0]:n<32?p(d,b,w)+O[1]:n<48?m(d,b,w)+O[2]:n<64?g(d,b,w)+O[3]:v(d,b,w)+O[4],C=(C=y(C|=0,P[n]))+_|0,o=_,_=w,w=y(b,10),b=d,d=C,C=D+t[e+N[n]]|0,C+=n<16?v(S,x,k)+A[0]:n<32?g(S,x,k)+A[1]:n<48?m(S,x,k)+A[2]:n<64?p(S,x,k)+A[3]:f(S,x,k)+A[4],C=(C=y(C|=0,I[n]))+T|0,D=T,T=k,k=y(x,10),x=S,S=C;C=E[1]+b+k|0,E[1]=E[2]+w+T|0,E[2]=E[3]+_+D|0,E[3]=E[4]+o+S|0,E[4]=E[0]+d+x|0,E[0]=C},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;e[r>>>5]|=128<<24-r%32,e[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),t.sigBytes=4*(e.length+1),this._process();for(var i=this._hash,o=i.words,a=0;a<5;a++){var s=o[a];o[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return i},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t}});function f(t,e,n){return t^e^n}function p(t,e,n){return t&e|~t&n}function m(t,e,n){return(t|~e)^n}function g(t,e,n){return t&n|e&~n}function v(t,e,n){return t^(e|~n)}function y(t,e){return t<<e|t>>>32-e}t.RIPEMD160=i._createHelper(d),t.HmacRIPEMD160=i._createHmacHelper(d)}(),n.RIPEMD160)}),a(function(t,e){var n;t.exports=(n=Jt,void function(){var t=n,e=t.lib.Base,r=t.enc.Utf8;t.algo.HMAC=e.extend({init:function(t,e){t=this._hasher=new t.init,"string"==typeof e&&(e=r.parse(e));var n=t.blockSize,i=4*n;e.sigBytes>i&&(e=t.finalize(e)),e.clamp();for(var o=this._oKey=e.clone(),a=this._iKey=e.clone(),s=o.words,l=a.words,c=0;c<n;c++)s[c]^=1549556828,l[c]^=909522486;o.sigBytes=a.sigBytes=i,this.reset()},reset:function(){var t=this._hasher;t.reset(),t.update(this._iKey)},update:function(t){return this._hasher.update(t),this},finalize:function(t){var e=this._hasher,n=e.finalize(t);return e.reset(),e.finalize(this._oKey.clone().concat(n))}})}())}),a(function(t,e){var n;t.exports=(n=Jt,function(){var t=n,e=t.lib,r=e.Base,i=e.WordArray,o=t.algo,a=o.SHA256,s=o.HMAC,l=o.PBKDF2=r.extend({cfg:r.extend({keySize:4,hasher:a,iterations:25e4}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var n=this.cfg,r=s.create(n.hasher,t),o=i.create(),a=i.create([1]),l=o.words,c=a.words,u=n.keySize,h=n.iterations;l.length<u;){var d=r.update(e).finalize(a);r.reset();for(var f=d.words,p=f.length,m=d,g=1;g<h;g++){m=r.finalize(m),r.reset();for(var v=m.words,y=0;y<p;y++)f[y]^=v[y]}o.concat(d),c[0]++}return o.sigBytes=4*u,o}});t.PBKDF2=function(t,e,n){return l.create(n).compute(t,e)}}(),n.PBKDF2)}),a(function(t,e){var n;t.exports=(n=Jt,function(){var t=n,e=t.lib,r=e.Base,i=e.WordArray,o=t.algo,a=o.MD5,s=o.EvpKDF=r.extend({cfg:r.extend({keySize:4,hasher:a,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var n,r=this.cfg,o=r.hasher.create(),a=i.create(),s=a.words,l=r.keySize,c=r.iterations;s.length<l;){n&&o.update(n),n=o.update(t).finalize(e),o.reset();for(var u=1;u<c;u++)n=o.finalize(n),o.reset();a.concat(n)}return a.sigBytes=4*l,a}});t.EvpKDF=function(t,e,n){return s.create(n).compute(t,e)}}(),n.EvpKDF)}),a(function(t,e){var n;t.exports=void((n=Jt).lib.Cipher||function(t){var e=n,r=e.lib,i=r.Base,o=r.WordArray,a=r.BufferedBlockAlgorithm,s=e.enc;s.Utf8;var l=s.Base64,c=e.algo.EvpKDF,u=r.Cipher=a.extend({cfg:i.extend(),createEncryptor:function(t,e){return this.create(this._ENC_XFORM_MODE,t,e)},createDecryptor:function(t,e){return this.create(this._DEC_XFORM_MODE,t,e)},init:function(t,e,n){this.cfg=this.cfg.extend(n),this._xformMode=t,this._key=e,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(t){return this._append(t),this._process()},finalize:function(t){return t&&this._append(t),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function t(t){return"string"==typeof t?b:v}return function(e){return{encrypt:function(n,r,i){return t(r).encrypt(e,n,r,i)},decrypt:function(n,r,i){return t(r).decrypt(e,n,r,i)}}}}()});r.StreamCipher=u.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var h=e.mode={},d=r.BlockCipherMode=i.extend({createEncryptor:function(t,e){return this.Encryptor.create(t,e)},createDecryptor:function(t,e){return this.Decryptor.create(t,e)},init:function(t,e){this._cipher=t,this._iv=e}}),f=h.CBC=function(){var e=d.extend();function n(e,n,r){var i,o=this._iv;o?(i=o,this._iv=t):i=this._prevBlock;for(var a=0;a<r;a++)e[n+a]^=i[a]}return e.Encryptor=e.extend({processBlock:function(t,e){var r=this._cipher,i=r.blockSize;n.call(this,t,e,i),r.encryptBlock(t,e),this._prevBlock=t.slice(e,e+i)}}),e.Decryptor=e.extend({processBlock:function(t,e){var r=this._cipher,i=r.blockSize,o=t.slice(e,e+i);r.decryptBlock(t,e),n.call(this,t,e,i),this._prevBlock=o}}),e}(),p=(e.pad={}).Pkcs7={pad:function(t,e){for(var n=4*e,r=n-t.sigBytes%n,i=r<<24|r<<16|r<<8|r,a=[],s=0;s<r;s+=4)a.push(i);var l=o.create(a,r);t.concat(l)},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}};r.BlockCipher=u.extend({cfg:u.cfg.extend({mode:f,padding:p}),reset:function(){var t;u.reset.call(this);var e=this.cfg,n=e.iv,r=e.mode;this._xformMode==this._ENC_XFORM_MODE?t=r.createEncryptor:(t=r.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==t?this._mode.init(this,n&&n.words):(this._mode=t.call(r,this,n&&n.words),this._mode.__creator=t)},_doProcessBlock:function(t,e){this._mode.processBlock(t,e)},_doFinalize:function(){var t,e=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(e.pad(this._data,this.blockSize),t=this._process(!0)):(t=this._process(!0),e.unpad(t)),t},blockSize:4});var m=r.CipherParams=i.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}}),g=(e.format={}).OpenSSL={stringify:function(t){var e=t.ciphertext,n=t.salt;return(n?o.create([1398893684,1701076831]).concat(n).concat(e):e).toString(l)},parse:function(t){var e,n=l.parse(t),r=n.words;return 1398893684==r[0]&&1701076831==r[1]&&(e=o.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),m.create({ciphertext:n,salt:e})}},v=r.SerializableCipher=i.extend({cfg:i.extend({format:g}),encrypt:function(t,e,n,r){r=this.cfg.extend(r);var i=t.createEncryptor(n,r),o=i.finalize(e),a=i.cfg;return m.create({ciphertext:o,key:n,iv:a.iv,algorithm:t,mode:a.mode,padding:a.padding,blockSize:t.blockSize,formatter:r.format})},decrypt:function(t,e,n,r){return r=this.cfg.extend(r),e=this._parse(e,r.format),t.createDecryptor(n,r).finalize(e.ciphertext)},_parse:function(t,e){return"string"==typeof t?e.parse(t,this):t}}),y=(e.kdf={}).OpenSSL={execute:function(t,e,n,r,i){if(r||(r=o.random(8)),i)a=c.create({keySize:e+n,hasher:i}).compute(t,r);else var a=c.create({keySize:e+n}).compute(t,r);var s=o.create(a.words.slice(e),4*n);return a.sigBytes=4*e,m.create({key:a,iv:s,salt:r})}},b=r.PasswordBasedCipher=v.extend({cfg:v.cfg.extend({kdf:y}),encrypt:function(t,e,n,r){var i=(r=this.cfg.extend(r)).kdf.execute(n,t.keySize,t.ivSize,r.salt,r.hasher);r.iv=i.iv;var o=v.encrypt.call(this,t,e,i.key,r);return o.mixIn(i),o},decrypt:function(t,e,n,r){r=this.cfg.extend(r),e=this._parse(e,r.format);var i=r.kdf.execute(n,t.keySize,t.ivSize,e.salt,r.hasher);return r.iv=i.iv,v.decrypt.call(this,t,e,i.key,r)}})}())}),a(function(t,e){var n;t.exports=((n=Jt).mode.CFB=function(){var t=n.lib.BlockCipherMode.extend();function e(t,e,n,r){var i,o=this._iv;o?(i=o.slice(0),this._iv=void 0):i=this._prevBlock,r.encryptBlock(i,0);for(var a=0;a<n;a++)t[e+a]^=i[a]}return t.Encryptor=t.extend({processBlock:function(t,n){var r=this._cipher,i=r.blockSize;e.call(this,t,n,i,r),this._prevBlock=t.slice(n,n+i)}}),t.Decryptor=t.extend({processBlock:function(t,n){var r=this._cipher,i=r.blockSize,o=t.slice(n,n+i);e.call(this,t,n,i,r),this._prevBlock=o}}),t}(),n.mode.CFB)}),a(function(t,e){var n,r,i;t.exports=((i=Jt).mode.CTR=(n=i.lib.BlockCipherMode.extend(),r=n.Encryptor=n.extend({processBlock:function(t,e){var n=this._cipher,r=n.blockSize,i=this._iv,o=this._counter;i&&(o=this._counter=i.slice(0),this._iv=void 0);var a=o.slice(0);n.encryptBlock(a,0),o[r-1]=o[r-1]+1|0;for(var s=0;s<r;s++)t[e+s]^=a[s]}}),n.Decryptor=r,n),i.mode.CTR)}),a(function(t,e){var n;t.exports=(
|
|
27
27
|
/** @preserve
|
|
28
28
|
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
|
29
29
|
* derived from CryptoJS.mode.CTR
|
|
30
30
|
* Jan Hruby jhruby.web@gmail.com
|
|
31
31
|
*/
|
|
32
|
-
(n=Jt).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,o=this._iv,a=this._counter;o&&(a=this._counter=o.slice(0),this._iv=void 0),r(a);var s=a.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=Jt).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,o=this._keystream;i&&(o=this._keystream=i.slice(0),this._iv=void 0),n.encryptBlock(o,0);for(var a=0;a<r;a++)t[e+a]^=o[a]}}),n.Decryptor=r,n),i.mode.OFB)})),a((function(t,e){var n,r;t.exports=((r=Jt).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=Jt).pad.AnsiX923={pad:function(t,e){var n=t.sigBytes,r=4*e,i=r-n%r,o=n+i-1;t.clamp(),t.words[o>>>2]|=i<<24-o%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=Jt).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=Jt).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=Jt).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=Jt).pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding)})),a((function(t,e){var n;t.exports=(n=Jt,function(){var t=n,e=t.lib.CipherParams,r=t.enc.Hex;t.format.Hex={stringify:function(t){return t.ciphertext.toString(r)},parse:function(t){var n=r.parse(t);return e.create({ciphertext:n})}}}(),n.format.Hex)})),a((function(t,e){var n;t.exports=(n=Jt,function(){var t=n,e=t.lib.BlockCipher,r=t.algo,i=[],o=[],a=[],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,o[p]=n;var m=t[n],g=t[m],v=t[g],y=257*t[p]^16843008*p;a[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),o=this._keySchedule=[],a=0;a<r;a++)a<n?o[a]=e[a]:(c=o[a-1],a%n?n>6&&a%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[a/n|0]<<24),o[a]=o[a-n]^c);for(var s=this._invKeySchedule=[],l=0;l<r;l++){if(a=r-l,l%4)var c=o[a];else c=o[a-4];s[l]=l<4||a<=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,a,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,o),n=t[e+1],t[e+1]=t[e+3],t[e+3]=n},_doCryptBlock:function(t,e,n,r,i,o,a,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]^o[h>>>8&255]^a[255&d]^n[f++],g=r[u>>>24]^i[h>>>16&255]^o[d>>>8&255]^a[255&c]^n[f++],v=r[h>>>24]^i[d>>>16&255]^o[c>>>8&255]^a[255&u]^n[f++],y=r[d>>>24]^i[c>>>16&255]^o[u>>>8&255]^a[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=Jt,function(){var t=n,e=t.lib,r=e.WordArray,i=e.BlockCipher,o=t.algo,a=[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=o.DES=i.extend({_doReset:function(){for(var t=this._key.words,e=[],n=0;n<56;n++){var r=a[n]-1;e[n]=t[r>>>5]>>>31-r%32&1}for(var i=this._subKeys=[],o=0;o<16;o++){var c=i[o]=[],u=l[o];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],o=this._lBlock,a=this._rBlock,s=0,l=0;l<8;l++)s|=c[l][((a^i[l])&u[l])>>>0];this._lBlock=a,this._rBlock=o^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=o.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=Jt,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 o=0;i<256;i++){var a=i%n,s=e[a>>>2]>>>24-a%4*8&255;o=(o+r[i]+s)%256;var l=r[i];r[i]=r[o],r[o]=l}this._i=this._j=0},_doProcessBlock:function(t,e){t[e]^=o.call(this)},keySize:8,ivSize:0});function o(){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 o=t[e];t[e]=t[n],t[n]=o,r|=t[(t[e]+t[n])%256]<<24-8*i}return this._i=e,this._j=n,r}t.RC4=e._createHelper(i);var a=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--)o.call(this)}});t.RC4Drop=e._createHelper(a)}(),n.RC4)})),a((function(t,e){var n;t.exports=(n=Jt,function(){var t=n,e=t.lib.StreamCipher,r=t.algo,i=[],o=[],a=[],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 o=e.words,a=o[0],s=o[1],c=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>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++)o[n]=e[n];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<o[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<o[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<o[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<o[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<o[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<o[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<o[6]>>>0?1:0)|0,this._b=e[7]>>>0<o[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);a[n]=l^c}t[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,t[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,t[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,t[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,t[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,t[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,t[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,t[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.Rabbit=e._createHelper(s)}(),n.Rabbit)})),a((function(t,e){var n;t.exports=(n=Jt,function(){var t=n,e=t.lib.StreamCipher,r=t.algo,i=[],o=[],a=[],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 o=e.words,a=o[0],s=o[1],c=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>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++)o[n]=e[n];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<o[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<o[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<o[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<o[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<o[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<o[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<o[6]>>>0?1:0)|0,this._b=e[7]>>>0<o[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);a[n]=l^c}t[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,t[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,t[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,t[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,t[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,t[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,t[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,t[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.RabbitLegacy=e._createHelper(s)}(),n.RabbitLegacy)})),a((function(t,e){var n;t.exports=(n=Jt,function(){var t=n,e=t.lib.BlockCipher,r=t.algo;const i=16,o=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],a=[[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,o=255&e,a=t.sbox[0][n]+t.sbox[1][r];return a^=t.sbox[2][i],a+=t.sbox[3][o],a}function c(t,e,n){let r,o=e,a=n;for(let e=0;e<i;++e)o^=t.pbox[e],a=l(t,o)^a,r=o,o=a,a=r;return r=o,o=a,a=r,a^=t.pbox[i],o^=t.pbox[i+1],{left:o,right:a}}function u(t,e,n){let r,o=e,a=n;for(let e=i+1;e>1;--e)o^=t.pbox[e],a=l(t,o)^a,r=o,o=a,a=r;return r=o,o=a,a=r,a^=t.pbox[1],o^=t.pbox[0],{left:o,right:a}}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]=a[e][n]}let r=0;for(let a=0;a<i+2;a++)t.pbox[a]=o[a]^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=Jt})));var te=function(t,e){var n=e.xRatio,r=e.yRatio;if(isNaN(n)||isNaN(r))return console.error("发生错误:on updataSizeDeep in go-code"),t;for(var i=function(t){if(t.baseData.left*=n,t.baseData.width*=n,t.baseData.top*=r,t.baseData.height*=r,t.children&&t.children.length)for(var e=0;e<t.children.length;e++)i(t.children[e])},o=0;o<t.length;o++)i(t[o]);return t},ee=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 o=i[r];if(Object.hasOwn(t,o)&&isNaN(t[o])){if(!("string"==typeof t[o]&&t[o].includes("%")||"NaN"==t[o])){console.warn(o+"--参数校验不合法:"+e),n=!1;break}n=!0}}return n}catch(t){return console.warn("参数校验不合法:"+e),!1}},ne=function(t,e,n){var r=t[n];return t.splice(n,1),t.splice(e,0,r),t},re=function(e,n,r){var i=t.findIndex(e,(function(t){return t.cid==r})),o=t.findIndex(e,(function(t){return t.cid==n}));return ne(e,o,i)},ie=function(t,e,n){for(var r=-1,i=0;i<t.length;i++){var o=t[i];if(o.children&&o.children.length)for(var a=0;a<o.children.length;a++){if(r=a,o.children[a].cid===n){switch(e){case"up":r>=1&&ne(o.children,r-1,r);break;case"down":r<o.children.length-2&&ne(o.children,r+1,r);break;case"top":0!==r&&ne(o.children,0,r);break;case"bottom":var s=o.children.length-1;r!==s&&ne(o.children,s,r)}break}}}return t},oe=function(e,n,r){var i=!1,o=function(e){for(var a=0;a<e.length;a++){if(e[a].cid==n){i=e[a],r&&t.remove(e,(function(t){return t.cid==n}));break}if(e[a].children)o(e[a].children);else if(e[a].dynamicChildren){if(e[a].dynamicChildren instanceof Map){for(var s=Array.from(e[a].dynamicChildren),l=0;l<s.length;l++)if(s[l]instanceof Array){var c=s[l][1];o(c)}}else if(e[a].dynamicChildren instanceof Array)for(s=e[a].dynamicChildren,l=0;l<s.length;l++)if(s[l]instanceof Array){c=s[l][1];o(c)}}else e[a].stateChildren&&o(e[a].stateChildren)}};return o(e),i||!1},ae=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},se=function(t,e){var n=null,r=function(t,i){for(var o=0,a=t;o<a.length;o++){var s=a[o];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},le=function(t,e,n){var r=oe(t,e),i=oe(t,n);return r.pid&&i.pid&&r.pid==i.pid||!r.pid&&!i.pid},ce=function(t,e){var n=function(t){for(var r,i,o,a=0,s=t;a<s.length;a++){var l=s[a],c=null===(o=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===o?void 0:o.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)},ue=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 o=i.children.length;n(i.children,o)}else if(i&&i.dynamicChildren){var a=i.dynamicChildren.length;Array.from(i.dynamicChildren).forEach((function(t,e){n(t[1],a)}))}i.z=10*e-r},i=0;i<t.length;i++)r(i)};n(t,e)},he=function(t){var e=function(t,n){for(var r=function(r){var i=t[r],o=Ee();n?i.pid=n:i.drag||(i.baseData.left=0,i.baseData.top=0),i.cid=o,i&&i.children&&i.children.length?e(i.children,o):i&&i.dynamicChildren&&Array.from(i.dynamicChildren).forEach((function(t,n){e(t[1],o)}))},i=0;i<t.length;i++)r(i)};e(t)},de=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)}},fe=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 o=t.cloneDeep(e[i].option),a={};Object.assign(a,o,n),console.log(a,o,"newOP"),e[i].option=a}catch(t){console.error(new Error("An error occurred: ".concat(t)))}},pe=function(t){try{if(!t)throw" 没有找到组件";t.isShow||"false"==t.isShow?t.isShow=!1:t.isShow=!0}catch(t){console.error(t)}},me=function(t,e){e.forEach((function(e){e.baseData.left=e.baseData.left-t.left,e.baseData.top=e.baseData.top-t.top}))},ge=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)?oe(n,r.pid):null;ve(t,r,e),i.push(t)})),i},ve=function(t,e,n){var r=function(t,e,n){var r=t.baseData.left,i=t.baseData.top,o=e;if(r+=o.baseData.left,i+=o.baseData.top,n){if(n.baseData.angle){var a=n.baseData.angle*Math.PI/180,s=Math.cos(a),l=Math.sin(a),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,o=r.top;t.baseData.left=i,t.baseData.top=o},ye=function(t,e){t.baseData.left=t.baseData.left+e.left,t.baseData.top=t.baseData.top+e.top},be=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},we=function(e,n){var r=t.cloneDeep(e),i=[],o=function(t,e){var n=oe(t,e);i.push(n.baseData),n.pid&&o(t,n.pid)};o(r,n);var a={left:0,top:0};return i.map((function(t){t&&(a.left+=t.left,a.top+=t.top)})),a},_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},De=function(t,e){var n=[];return t.map((function(t){var r=e.find((function(e){return e.cid===t}));r&&n.push(r)})),Se(n)},Se=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),o=r[0].baseData,a=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=o.left,n.width=Math.max(1*a.left+1*a.width,u)-1*o.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}};function xe(t){try{if(null==t||""===t)return 0;var e=t.toString().match(/^-?\d+\.?\d*/);return e?Number(e[0]):0}catch(t){return console.error("Error converting to number: ".concat(t)),0}}function ke(t){var e={};for(var n in t)if(t.hasOwnProperty(n))try{e[n]=xe(t[n])}catch(t){console.error("Error processing key ".concat(n,": ").concat(t)),e[n]=0}return e}var Te=function(e,n,r,i){var o=e.children,a=t.cloneDeep(n),s=t.cloneDeep(Se(o,i)),l=ke(a),c=l.left,u=l.top;l.width,l.height;var h=ke(s),d=h.left,f=h.top,p=h.width,m=h.height,g={left:c+d,top:u+f,width:p,height:m,angle:n.angle?n.angle:0};return o.forEach((function(e){var n=t.cloneDeep(e.baseData);e.baseData.left<0?n.left=0:n.left=n.left-d,e.baseData.top<0?n.top=0:n.top=n.top-f,e.baseData=n})),e.baseData=g,e.children=o,g},Ce=function(t,e){for(var n=0;n<t.length;n++){var r=t[n];t[n].index=n,r.children&&r.children.length?Ce(r.children):e&&e(r)}},Ee=function(){return(Math.random().toString().substr(3,10)+Date.now()).toString()};function Oe(t,e){var n=t.types,r=t.element,i=t.actions,o=t.events,a=t.eventsComs;t.filter,Do.state;for(var s=function(t){var e=n[t],s=r.tmpData.actions[t];if(s&&s.use){a&&a.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&&o.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?o.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?o.push({id:r.cid,type:s.behave,link:t.value,eventType:e,target:t.target,index:n}):"page"===s.behave&&""!==t.value?o.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?o.push({id:r.cid,type:s.behave,dynamic:t.value,eventType:e,index:n}):o.push(void 0)}))}},l=0;l<n.length;l++)s(l)}var Ae={key:_.key,iv:_.vi};function Me(t,e){var n=Do.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 Ne={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}},Pe=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 o=0,a=n;o<a.length;o++){var s=a[o];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)}},Ie=Object.defineProperty,Ve=Object.getOwnPropertySymbols,Re=Object.prototype.hasOwnProperty,Be=Object.prototype.propertyIsEnumerable,Fe=(t,e,n)=>e in t?Ie(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,je=Symbol.for("immer-nothing"),Le=Symbol.for("immer-draftable"),He=Symbol.for("immer-state"),ze="production"!==G.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 Ye(t,...e){if("production"!==G.env.NODE_ENV){const n=ze[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 Ue=Object.getPrototypeOf;function qe(t){return!!t&&!!t[He]}function Ge(t){var e;return!!t&&($e(t)||Array.isArray(t)||!!t[Le]||!!(null==(e=t.constructor)?void 0:e[Le])||Qe(t)||tn(t))}var We=Object.prototype.constructor.toString();function $e(t){if(!t||"object"!=typeof t)return!1;const e=Ue(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)===We}function Ke(t,e){0===Xe(t)?Reflect.ownKeys(t).forEach((n=>{e(n,t[n],t)})):t.forEach(((n,r)=>e(r,n,t)))}function Xe(t){const e=t[He];return e?e.type_:Array.isArray(t)?1:Qe(t)?2:tn(t)?3:0}function Ze(t,e){return 2===Xe(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Je(t,e,n){const r=Xe(t);2===r?t.set(e,n):3===r?t.add(n):t[e]=n}function Qe(t){return t instanceof Map}function tn(t){return t instanceof Set}function en(t){return t.copy_||t.base_}function nn(t,e){if(Qe(t))return new Map(t);if(tn(t))return new Set(t);if(Array.isArray(t))return Array.prototype.slice.call(t);const n=$e(t);if(!0===e||"class_only"===e&&!n){const e=Object.getOwnPropertyDescriptors(t);delete e[He];let n=Reflect.ownKeys(e);for(let r=0;r<n.length;r++){const i=n[r],o=e[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(e[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:t[i]})}return Object.create(Ue(t),e)}{const e=Ue(t);if(null!==e&&n)return((t,e)=>{for(var n in e||(e={}))Re.call(e,n)&&Fe(t,n,e[n]);if(Ve)for(var n of Ve(e))Be.call(e,n)&&Fe(t,n,e[n]);return t})({},t);const r=Object.create(e);return Object.assign(r,t)}}function rn(t,e=!1){return an(t)||qe(t)||!Ge(t)||(Xe(t)>1&&(t.set=t.add=t.clear=t.delete=on),Object.freeze(t),e&&Object.entries(t).forEach((([t,e])=>rn(e,!0)))),t}function on(){Ye(2)}function an(t){return Object.isFrozen(t)}var sn,ln={};function cn(t){const e=ln[t];return e||Ye(0,t),e}function un(){return sn}function hn(t,e){e&&(cn("Patches"),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function dn(t){fn(t),t.drafts_.forEach(mn),t.drafts_=null}function fn(t){t===sn&&(sn=t.parent_)}function pn(t){return sn={drafts_:[],parent_:sn,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function mn(t){const e=t[He];0===e.type_||1===e.type_?e.revoke_():e.revoked_=!0}function gn(t,e){e.unfinalizedDrafts_=e.drafts_.length;const n=e.drafts_[0];return void 0!==t&&t!==n?(n[He].modified_&&(dn(e),Ye(4)),Ge(t)&&(t=vn(e,t),e.parent_||bn(e,t)),e.patches_&&cn("Patches").generateReplacementPatches_(n[He].base_,t,e.patches_,e.inversePatches_)):t=vn(e,n,[]),dn(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==je?t:void 0}function vn(t,e,n){if(an(e))return e;const r=e[He];if(!r)return Ke(e,((i,o)=>yn(t,r,e,i,o,n))),e;if(r.scope_!==t)return e;if(!r.modified_)return bn(t,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const e=r.copy_;let i=e,o=!1;3===r.type_&&(i=new Set(e),e.clear(),o=!0),Ke(i,((i,a)=>yn(t,r,e,i,a,n,o))),bn(t,e,!1),n&&t.patches_&&cn("Patches").generatePatches_(r,n,t.patches_,t.inversePatches_)}return r.copy_}function yn(t,e,n,r,i,o,a){if("production"!==G.env.NODE_ENV&&i===n&&Ye(5),qe(i)){const a=vn(t,i,o&&e&&3!==e.type_&&!Ze(e.assigned_,r)?o.concat(r):void 0);if(Je(n,r,a),!qe(a))return;t.canAutoFreeze_=!1}else a&&n.add(i);if(Ge(i)&&!an(i)){if(!t.immer_.autoFreeze_&&t.unfinalizedDrafts_<1)return;vn(t,i),e&&e.scope_.parent_||"symbol"==typeof r||!Object.prototype.propertyIsEnumerable.call(n,r)||bn(t,i)}}function bn(t,e,n=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&rn(e,n)}var wn={get(t,e){if(e===He)return t;const n=en(t);if(!Ze(n,e))return function(t,e,n){var r;const i=Sn(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_||!Ge(r)?r:r===Dn(t.base_,e)?(kn(t),t.copy_[e]=Tn(r,t)):r},has:(t,e)=>e in en(t),ownKeys:t=>Reflect.ownKeys(en(t)),set(t,e,n){const r=Sn(en(t),e);if(null==r?void 0:r.set)return r.set.call(t.draft_,n),!0;if(!t.modified_){const r=Dn(en(t),e),i=null==r?void 0:r[He];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;kn(t),xn(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!==Dn(t.base_,e)||e in t.base_?(t.assigned_[e]=!1,kn(t),xn(t)):delete t.assigned_[e],t.copy_&&delete t.copy_[e],!0),getOwnPropertyDescriptor(t,e){const n=en(t),r=Reflect.getOwnPropertyDescriptor(n,e);return r?{writable:!0,configurable:1!==t.type_||"length"!==e,enumerable:r.enumerable,value:n[e]}:r},defineProperty(){Ye(11)},getPrototypeOf:t=>Ue(t.base_),setPrototypeOf(){Ye(12)}},_n={};function Dn(t,e){const n=t[He];return(n?en(n):t)[e]}function Sn(t,e){if(!(e in t))return;let n=Ue(t);for(;n;){const t=Object.getOwnPropertyDescriptor(n,e);if(t)return t;n=Ue(n)}}function xn(t){t.modified_||(t.modified_=!0,t.parent_&&xn(t.parent_))}function kn(t){t.copy_||(t.copy_=nn(t.base_,t.scope_.immer_.useStrictShallowCopy_))}Ke(wn,((t,e)=>{_n[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),_n.deleteProperty=function(t,e){return"production"!==G.env.NODE_ENV&&isNaN(parseInt(e))&&Ye(13),_n.set.call(this,t,e,void 0)},_n.set=function(t,e,n){return"production"!==G.env.NODE_ENV&&"length"!==e&&isNaN(parseInt(e))&&Ye(14),wn.set.call(this,t[0],e,n,t[0])};function Tn(t,e){const n=Qe(t)?cn("MapSet").proxyMap_(t,e):tn(t)?cn("MapSet").proxySet_(t,e):function(t,e){const n=Array.isArray(t),r={type_:n?1:0,scope_:e?e.scope_:un(),modified_:!1,finalized_:!1,assigned_:{},parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=wn;n&&(i=[r],o=_n);const{revoke:a,proxy:s}=Proxy.revocable(i,o);return r.draft_=s,r.revoke_=a,s}(t,e);return(e?e.scope_:un()).drafts_.push(n),n}function Cn(t){if(!Ge(t)||an(t))return t;const e=t[He];let n;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,n=nn(t,e.scope_.immer_.useStrictShallowCopy_)}else n=nn(t,!0);return Ke(n,((t,e)=>{Je(n,t,Cn(e))})),e&&(e.finalized_=!1),n}var En=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&&Ye(6),void 0!==n&&"function"!=typeof n&&Ye(7),Ge(t)){const i=pn(this),o=Tn(t,void 0);let a=!0;try{r=e(o),a=!1}finally{a?dn(i):fn(i)}return hn(i,n),gn(r,i)}if(!t||"object"!=typeof t){if(r=e(t),void 0===r&&(r=t),r===je&&(r=void 0),this.autoFreeze_&&rn(r,!0),n){const e=[],i=[];cn("Patches").generateReplacementPatches_(t,r,e,i),n(e,i)}return r}Ye(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){Ge(t)||Ye(8),qe(t)&&(t=function(t){qe(t)||Ye(10,t);return Cn(t)}(t));const e=pn(this),n=Tn(t,void 0);return n[He].isManual_=!0,fn(e),n}finishDraft(t,e){const n=t&&t[He];n&&n.isManual_||Ye(9);const{scope_:r}=n;return hn(r,e),gn(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=cn("Patches").applyPatches_;return qe(t)?r(t,e):this.produce(t,(t=>r(t,e)))}},On=En.produce;En.produceWithPatches.bind(En);var An=En.setAutoFreeze.bind(En);function Mn(t,e){return An(!1),On(t,e)}En.setUseStrictShallowCopy.bind(En),En.applyPatches.bind(En),En.createDraft.bind(En),En.finishDraft.bind(En);var Nn={updataArea:function(t,e){t.currentArea=e},selectdArea:function(t,e){var n=De(e,t.list);t.currentArea=n},updataAngle:function(t,e){var n=e.id,r=e.angle,i=oe(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),ee(e.data.baseData,"updataBaseData")){var i=e.ratio,o=oe(t.list,r.cid),a=e.oldData;if("object"!=typeof o||o.pid){if("object"==typeof o&&o.pid){var s=oe(t.list,o.pid);"object"==typeof s?(o.baseData.left<0&&(o.baseData.left=0),o.baseData.top<0&&(o.baseData.top=0),Object.assign(o.baseData,r.baseData),Te(s,s.baseData),t.groupFlag=!t.groupFlag):s||(o.baseData.left<0&&(o.baseData.left=0),o.baseData.top<0&&(o.baseData.top=0),Object.assign(o.baseData,r.baseData))}}else if(Object.assign(o.baseData,r.baseData),i&&o.children&&o.children.length>0){var l=o.baseData.width/a.width,c=o.baseData.height/a.height;te(o.children,{xRatio:l,yRatio:c})}}},updataBaseData2:function(t,e){var n,r=e.data;if(void 0===(null===(n=null==r?void 0:r.baseData)||void 0===n?void 0:n.opacity)&&(r.baseData.opacity=100),ee(r.baseData,"updataBaseData")){var i=oe(t.list,r.cid);if("object"==typeof i){var o=e.oldData||{};if(r.baseData.left!==o.left||r.baseData.top!==o.top||!(void 0===r.baseData.width&&void 0===r.baseData.height||r.baseData.width===o.width&&r.baseData.height===o.height))if(i.pid){var a=oe(t.list,i.pid);i.baseData.left=Math.max(0,i.baseData.left),i.baseData.top=Math.max(0,i.baseData.top),Object.assign(i.baseData,r.baseData),"object"==typeof a&&(Te(a,a.baseData),t.groupFlag=!t.groupFlag)}else if(Object.assign(i.baseData,r.baseData),e.ratio&&i.children&&i.children.length>0){var s=i.baseData.width/o.width,l=i.baseData.height/o.height;if(!(null==o?void 0:o.width)||!(null==o?void 0:o.height))return;te(i.children,{xRatio:s,yRatio:l})}}}},multipleUpdataBaseData:function(e,n){if(n.ratio)for(var r=n.newData,i=n.oldData,o=r.width/i.width,a=r.height/i.height,s=e.cache.length;s--;)e.cache[s].baseData.left=e.cache[s].baseData.left*o,e.cache[s].baseData.width=e.cache[s].baseData.width*o,e.cache[s].baseData.top=e.cache[s].baseData.top*a,e.cache[s].baseData.height=e.cache[s].baseData.height*a;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=oe(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 o=t.list.filter((function(t){return n.includes(t.cid)}));0==o.length&&(o=[oe(t.list,n[0])]);for(var a=0;a<o.length;a++){var s=o[a];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=oe(t.list,s.pid);"object"==typeof l&&(Te(l,l.baseData),t.groupFlag=!t.groupFlag)}}}else console.warn("Warning! please select the component to move.")},updataGroupBaseData:function(e,n){var r=oe(e.list,n.pid),i=t.cloneDeep(r);oe(r.children,n.cid),Te(r,i.baseData)},editGroupBaseData:function(t,e){var n=oe(t.list,e);n.children.forEach((function(t){ye(t,n.baseData)}))},syncComponentPositionData:function(t,e){var n=e.cid,r=e.baseData,i=oe(t.list,n);i&&Object.assign(i.baseData,r)},syncBaseData:function(e,n){var r=n.cid,i=n.data,o=n.isContainer,a=function(t){for(var e=0;e<t.length;e++)r===t[e].cid?(t[e].baseData=Object.assign({},t[e].baseData,i),console.log(u({},t[e].baseData))):t[e].hasOwnProperty("children")&&a(t[e].children)},s=Mn(e.list,(function(t){void 0!==o&&t.length&&a(t)}));if(o)e.list=s;else{var l=oe(s,r);if(l){var c=t.cloneDeep(l.baseData),h=Object.assign({},l.baseData,i);this.commit("GoCom/updataBaseData",{data:{cid:r,baseData:h},oldData:c,ratio:!0})}}},updataItemData:function(t,e){var n=e.cid,r=e.propsName,i=e.propsValue,o=oe(t.list,n);o&&(o[r]=i)},updataOpacity:function(t,e){var n=e.cid,r=e.propsValue,i=oe(t.list,n);"boolean"!=typeof i&&i&&(i.baseData.opacity=r)}},Pn={restDelIds:function(t){t.delIds=""},delListItem:function(e,n){var r=t.cloneDeep(e.list);"string"==typeof n?oe(r,n,!0):n.forEach((function(t){oe(r,t,!0)})),e.delIds=n,e.list=r},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=oe(e.list,e.selectd[n]),i=se(e.list,e.selectd[n]);if("boolean"!=typeof r){var o=t.cloneDeep(r);if(o.pid="",(null==o?void 0:o.stateChildren)||(null==o?void 0:o.children))((null==o?void 0:o.stateChildren)?null==o?void 0:o.stateChildren:null==o?void 0:o.children).forEach((function(t){var e,n,r,i,a=t.cid;if(t.cid=Ee(),t.pid=o.cid,(null==o?void 0:o.stateChildren)&&(null===(n=null===(e=null==o?void 0:o.tmpData)||void 0===e?void 0:e.option)||void 0===n?void 0:n.children)){var s=null===(i=null===(r=null==o?void 0:o.tmpData)||void 0===r?void 0:r.option)||void 0===i?void 0:i.children.find((function(t){return t.cid==a}));s&&(s.cid=t.cid)}}));if(i){var a=i.children.findIndex((function(t){return t.cid==e.selectd[n]}));o=Object.assign({},o,{pid:i.cid,index:a})}else{a=e.list.findIndex((function(t){return t.cid==e.selectd[n]}));o=Object.assign({},o,{pid:null,index:a})}e.cloneCache.push(o),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=oe(e.list,e.selectd[r],!0);if("boolean"!=typeof i){var o=t.cloneDeep(i);e.cloneCache.push(o)}}e.selectd=[]}},pasteItem:function(e){var n;try{var r=(null===(n=t.cloneDeep(e.cloneCache))||void 0===n?void 0:n.length)?t.cloneDeep(e.cloneCache):JSON.parse(window.localStorage.getItem("cloneCache"));if(r.length>0){var i=[],o={};ce(r,(function(t){var e=Ee();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 a=0,s=t.stateChildren;a<s.length;a++){s[a].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}))}t.pid||i.push(t.cid)})),e.selectd.length>0?De(e.selectd,e.list):Se(r),r.forEach((function(t){var n,r,i,o;if(t.baseData.top=t.baseData.top,t.baseData.left=t.baseData.left,t&&t.hasOwnProperty("stateChildren")&&(null===(r=null===(n=null==t?void 0:t.tmpData)||void 0===n?void 0:n.option)||void 0===r?void 0:r.children))for(var a=function(e){e.pid=t.cid;var n=null===(o=null===(i=null==t?void 0:t.tmpData)||void 0===i?void 0:i.option)||void 0===o?void 0:o.children.find((function(t){return t.disName==e.name}));n&&(n.cid=e.cid)},s=0,l=t.stateChildren;s<l.length;s++){a(l[s])}if(t.pid){var c=oe(e.list,t.pid);null==c||c.children.splice(t.index,0,t)}else e.list.splice(t.index,0,t)}));try{var a=Object.keys(o),s=JSON.stringify(r);(null==a?void 0:a.length)&&a.forEach((function(t){var e=o[t];-1!==s.indexOf(t)&&(s=s.replaceAll(null==t?void 0:t.toString(),null==e?void 0:e.toString()))})),r=JSON.parse(s)}catch(t){}e.selectd=i}}catch(t){console.warn(t)}},updataShow:function(t,e){var n=oe(t.list,e);if("boolean"!=typeof n){var r=!n.isShow;de(n,"isShow",r,"")}},changeShow:function(t,e){var n=e.cid,r=e.flag,i=oe(t.list,n);i&&de(i,"isShow",r,"")},comToggle:function(t,e){var n=oe(t.list,e);n&&pe(n)},updataLock:function(t,e){var n=oe(t.list,e);if("boolean"!=typeof n){var r=!n.isLock;de(n,"isLock",r,"")}},breakUp:function(t,e){var n,r;try{if(!e)throw"Please pass in the component CID correctly!";var i=se(t.list,e),o=oe(t.list,e),a=o.baseData;if(isNaN(a.left)||isNaN(a.top))throw new Error("top or left is NAN");var s=ge(o,t.list);if(s.map((function(t){return t.pid=i?i.cid:""})),i){var l=i.children.findIndex((function(t){return t.cid==e}));i.children.splice(l,1),(n=i.children).splice.apply(n,f([l,0],s,!1))}else{l=t.list.findIndex((function(t){return t.cid==e}));t.list.splice(l,1),(r=t.list).splice.apply(r,f([l,0],s,!1))}t.selectd=s.map((function(t){return t.cid}))}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})),o=t.list[i],a=ge(o);a.map((function(t){return t.pid=""})),t.list.splice(i,1),(n=t.list).push.apply(n,a)}catch(t){console.error(t)}},combinationForShare:function(e,n){try{var r=Ee(),i=oe(e.list,e.selectd[0]);if(i&&i.children)return n(!1),console.info("组件已经是组合状态!"),!1;var o=e.list.findIndex((function(t){return t.cid===e.selectd[0]})),a=void 0,s=void 0;if(o>-1&&(a=e.list.splice(o,1)[0]),a){var l=t.cloneDeep(a.baseData);a.pid=r,a.baseData.left=0,a.baseData.top=0,s={cid:r,isShow:!0,isLock:!1,editer:!1,baseData:l,z:0,toggle:!0,name:"母版-"+a.name,type:"folder",tmpData:{actions:null,option:null,source:Ne},children:[a]}}e.list.splice(o,0,s),ue(e.list),e.selectd=[a.cid],n&&n(s)}catch(t){n(!1),console.info("创建母版群组失败!",t)}},combination:function(e){var n=function(r){var i,o=[],a=[],s=Ee(),l="";e.currentArea=De(e.selectd,r);var c,u=oe(r,e.selectd[0]);(u.pid&&(l=u.pid,oe(r,u.pid)&&oe(r,u.pid).children.length&&n(oe(r,u.pid).children)),u.children&&1===e.selectd.length)?console.info("Sorry, only level 2 is supported group"):(function(t){var n=e.selectd.filter((function(t){if(!e.shareComs.has(t))return t})).map((function(e){return{cid:e,index:t.findIndex((function(t){return t.cid===e}))}})).sort((function(t,e){return t.index-e.index}));return e.selectd=n.map((function(t){return t.cid})),e.selectd}(r).forEach((function(t){var e=r.findIndex((function(e){return e.cid===t}));if(e>-1){o.push(e);var n=r.splice(e,1)[0];n.pid=s,a.push(n)}})),i=o.sort((function(t,e){return t-e}))[0],c=1===a.length?t.cloneDeep(a[0].baseData):e.currentArea,Object.assign(c,{angle:0,opacity:100,rotate:0,rotateY:0}),me(c,a),a.length&&r.splice(i,0,{cid:s,pid:l,isShow:!0,isLock:!1,editer:!1,baseData:c,z:0,toggle:!1,name:"群组",type:"folder",origin:"anov-ui",tmpData:{actions:null,option:null,source:Ne},children:a}),ue(r),e.selectd=[s])};n(e.list)},moveUp:function(t,e){try{var n=t.list.findIndex((function(t){return t.cid===e}));n>=1?ne(t.list,n-1,n):ie(t.list,"up",e),ue(t.list)}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?ne(t.list,n+1,n):ie(t.list,"down",e),ue(t.list)}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?ne(t.list,0,n):ie(t.list,"top",e),ue(t.list)}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?ne(t.list,r,n):ie(t.list,"bottom",e),ue(t.list)}catch(t){console.error(t)}}},In=a((function(t){t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports}));o(In);var Vn={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Rn=a((function(t){var e=Array.prototype.concat,n=Array.prototype.slice,r=t.exports=function(t){for(var r,i=[],o=0,a=t.length;o<a;o++){var s=t[o];(r=s)&&"string"!=typeof r&&(r instanceof Array||Array.isArray(r)||r.length>=0&&(r.splice instanceof Function||Object.getOwnPropertyDescriptor(r,r.length-1)&&"String"!==r.constructor.name))?i=e.call(i,n.call(s)):i.push(s)}return i};r.wrap=function(t){return function(){return t(r(arguments))}}})),Bn=a((function(t){var e=Object.hasOwnProperty,n=Object.create(null);for(var r in Vn)e.call(Vn,r)&&(n[Vn[r]]=r);var i=t.exports={to:{},get:{}};function o(t,e,n){return Math.min(Math.max(e,t),n)}function a(t){var e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}i.get=function(t){var e,n;switch(t.substring(0,3).toLowerCase()){case"hsl":e=i.get.hsl(t),n="hsl";break;case"hwb":e=i.get.hwb(t),n="hwb";break;default:e=i.get.rgb(t),n="rgb"}return e?{model:n,value:e}:null},i.get.rgb=function(t){if(!t)return null;var n,r,i,a=[0,0,0,1];if(n=t.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(i=n[2],n=n[1],r=0;r<3;r++){var s=2*r;a[r]=parseInt(n.slice(s,s+2),16)}i&&(a[3]=parseInt(i,16)/255)}else if(n=t.match(/^#([a-f0-9]{3,4})$/i)){for(i=(n=n[1])[3],r=0;r<3;r++)a[r]=parseInt(n[r]+n[r],16);i&&(a[3]=parseInt(i+i,16)/255)}else if(n=t.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(r=0;r<3;r++)a[r]=parseInt(n[r+1],0);n[4]&&(n[5]?a[3]=.01*parseFloat(n[4]):a[3]=parseFloat(n[4]))}else{if(!(n=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(n=t.match(/^(\w+)$/))?"transparent"===n[1]?[0,0,0,0]:e.call(Vn,n[1])?((a=Vn[n[1]])[3]=1,a):null:null;for(r=0;r<3;r++)a[r]=Math.round(2.55*parseFloat(n[r+1]));n[4]&&(n[5]?a[3]=.01*parseFloat(n[4]):a[3]=parseFloat(n[4]))}for(r=0;r<3;r++)a[r]=o(a[r],0,255);return a[3]=o(a[3],0,1),a},i.get.hsl=function(t){if(!t)return null;var e=t.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(e){var n=parseFloat(e[4]);return[(parseFloat(e[1])%360+360)%360,o(parseFloat(e[2]),0,100),o(parseFloat(e[3]),0,100),o(isNaN(n)?1:n,0,1)]}return null},i.get.hwb=function(t){if(!t)return null;var e=t.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(e){var n=parseFloat(e[4]);return[(parseFloat(e[1])%360+360)%360,o(parseFloat(e[2]),0,100),o(parseFloat(e[3]),0,100),o(isNaN(n)?1:n,0,1)]}return null},i.to.hex=function(){var t=Rn(arguments);return"#"+a(t[0])+a(t[1])+a(t[2])+(t[3]<1?a(Math.round(255*t[3])):"")},i.to.rgb=function(){var t=Rn(arguments);return t.length<4||1===t[3]?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"},i.to.rgb.percent=function(){var t=Rn(arguments),e=Math.round(t[0]/255*100),n=Math.round(t[1]/255*100),r=Math.round(t[2]/255*100);return t.length<4||1===t[3]?"rgb("+e+"%, "+n+"%, "+r+"%)":"rgba("+e+"%, "+n+"%, "+r+"%, "+t[3]+")"},i.to.hsl=function(){var t=Rn(arguments);return t.length<4||1===t[3]?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"},i.to.hwb=function(){var t=Rn(arguments),e="";return t.length>=4&&1!==t[3]&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"},i.to.keyword=function(t){return n[t.slice(0,3)]}}));Bn.to,Bn.get;const Fn={};for(const t of Object.keys(Vn))Fn[Vn[t]]=t;const jn={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var Ln=jn;for(const t of Object.keys(jn)){if(!("channels"in jn[t]))throw new Error("missing channels property: "+t);if(!("labels"in jn[t]))throw new Error("missing channel labels property: "+t);if(jn[t].labels.length!==jn[t].channels)throw new Error("channel and label counts mismatch: "+t);const{channels:e,labels:n}=jn[t];delete jn[t].channels,delete jn[t].labels,Object.defineProperty(jn[t],"channels",{value:e}),Object.defineProperty(jn[t],"labels",{value:n})}function Hn(t,e){return(t[0]-e[0])**2+(t[1]-e[1])**2+(t[2]-e[2])**2}function zn(t){const e=function(){const t={},e=Object.keys(Ln);for(let n=e.length,r=0;r<n;r++)t[e[r]]={distance:-1,parent:null};return t}(),n=[t];for(e[t].distance=0;n.length;){const t=n.pop(),r=Object.keys(Ln[t]);for(let i=r.length,o=0;o<i;o++){const i=r[o],a=e[i];-1===a.distance&&(a.distance=e[t].distance+1,a.parent=t,n.unshift(i))}}return e}function Yn(t,e){return function(n){return e(t(n))}}function Un(t,e){const n=[e[t].parent,t];let r=Ln[e[t].parent][t],i=e[t].parent;for(;e[i].parent;)n.unshift(e[i].parent),r=Yn(Ln[e[i].parent][i],r),i=e[i].parent;return r.conversion=n,r}jn.rgb.hsl=function(t){const e=t[0]/255,n=t[1]/255,r=t[2]/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=o-i;let s,l;o===i?s=0:e===o?s=(n-r)/a:n===o?s=2+(r-e)/a:r===o&&(s=4+(e-n)/a),s=Math.min(60*s,360),s<0&&(s+=360);const c=(i+o)/2;return l=o===i?0:c<=.5?a/(o+i):a/(2-o-i),[s,100*l,100*c]},jn.rgb.hsv=function(t){let e,n,r,i,o;const a=t[0]/255,s=t[1]/255,l=t[2]/255,c=Math.max(a,s,l),u=c-Math.min(a,s,l),h=function(t){return(c-t)/6/u+.5};return 0===u?(i=0,o=0):(o=u/c,e=h(a),n=h(s),r=h(l),a===c?i=r-n:s===c?i=1/3+e-r:l===c&&(i=2/3+n-e),i<0?i+=1:i>1&&(i-=1)),[360*i,100*o,100*c]},jn.rgb.hwb=function(t){const e=t[0],n=t[1];let r=t[2];const i=jn.rgb.hsl(t)[0],o=1/255*Math.min(e,Math.min(n,r));return r=1-1/255*Math.max(e,Math.max(n,r)),[i,100*o,100*r]},jn.rgb.cmyk=function(t){const e=t[0]/255,n=t[1]/255,r=t[2]/255,i=Math.min(1-e,1-n,1-r);return[100*((1-e-i)/(1-i)||0),100*((1-n-i)/(1-i)||0),100*((1-r-i)/(1-i)||0),100*i]},jn.rgb.keyword=function(t){const e=Fn[t];if(e)return e;let n,r=1/0;for(const e of Object.keys(Vn)){const i=Hn(t,Vn[e]);i<r&&(r=i,n=e)}return n},jn.keyword.rgb=function(t){return Vn[t]},jn.rgb.xyz=function(t){let e=t[0]/255,n=t[1]/255,r=t[2]/255;e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;return[100*(.4124*e+.3576*n+.1805*r),100*(.2126*e+.7152*n+.0722*r),100*(.0193*e+.1192*n+.9505*r)]},jn.rgb.lab=function(t){const e=jn.rgb.xyz(t);let n=e[0],r=e[1],i=e[2];n/=95.047,r/=100,i/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;return[116*r-16,500*(n-r),200*(r-i)]},jn.hsl.rgb=function(t){const e=t[0]/360,n=t[1]/100,r=t[2]/100;let i,o,a;if(0===n)return a=255*r,[a,a,a];i=r<.5?r*(1+n):r+n-r*n;const s=2*r-i,l=[0,0,0];for(let t=0;t<3;t++)o=e+1/3*-(t-1),o<0&&o++,o>1&&o--,a=6*o<1?s+6*(i-s)*o:2*o<1?i:3*o<2?s+(i-s)*(2/3-o)*6:s,l[t]=255*a;return l},jn.hsl.hsv=function(t){const e=t[0];let n=t[1]/100,r=t[2]/100,i=n;const o=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,i*=o<=1?o:2-o;return[e,100*(0===r?2*i/(o+i):2*n/(r+n)),100*((r+n)/2)]},jn.hsv.rgb=function(t){const e=t[0]/60,n=t[1]/100;let r=t[2]/100;const i=Math.floor(e)%6,o=e-Math.floor(e),a=255*r*(1-n),s=255*r*(1-n*o),l=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,l,a];case 1:return[s,r,a];case 2:return[a,r,l];case 3:return[a,s,r];case 4:return[l,a,r];case 5:return[r,a,s]}},jn.hsv.hsl=function(t){const e=t[0],n=t[1]/100,r=t[2]/100,i=Math.max(r,.01);let o,a;a=(2-n)*r;const s=(2-n)*i;return o=n*i,o/=s<=1?s:2-s,o=o||0,a/=2,[e,100*o,100*a]},jn.hwb.rgb=function(t){const e=t[0]/360;let n=t[1]/100,r=t[2]/100;const i=n+r;let o;i>1&&(n/=i,r/=i);const a=Math.floor(6*e),s=1-r;o=6*e-a,1&a&&(o=1-o);const l=n+o*(s-n);let c,u,h;switch(a){default:case 6:case 0:c=s,u=l,h=n;break;case 1:c=l,u=s,h=n;break;case 2:c=n,u=s,h=l;break;case 3:c=n,u=l,h=s;break;case 4:c=l,u=n,h=s;break;case 5:c=s,u=n,h=l}return[255*c,255*u,255*h]},jn.cmyk.rgb=function(t){const e=t[0]/100,n=t[1]/100,r=t[2]/100,i=t[3]/100;return[255*(1-Math.min(1,e*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i))]},jn.xyz.rgb=function(t){const e=t[0]/100,n=t[1]/100,r=t[2]/100;let i,o,a;return i=3.2406*e+-1.5372*n+-.4986*r,o=-.9689*e+1.8758*n+.0415*r,a=.0557*e+-.204*n+1.057*r,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,a=a>.0031308?1.055*a**(1/2.4)-.055:12.92*a,i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),[255*i,255*o,255*a]},jn.xyz.lab=function(t){let e=t[0],n=t[1],r=t[2];e/=95.047,n/=100,r/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;return[116*n-16,500*(e-n),200*(n-r)]},jn.lab.xyz=function(t){let e,n,r;n=(t[0]+16)/116,e=t[1]/500+n,r=n-t[2]/200;const i=n**3,o=e**3,a=r**3;return n=i>.008856?i:(n-16/116)/7.787,e=o>.008856?o:(e-16/116)/7.787,r=a>.008856?a:(r-16/116)/7.787,e*=95.047,n*=100,r*=108.883,[e,n,r]},jn.lab.lch=function(t){const e=t[0],n=t[1],r=t[2];let i;i=360*Math.atan2(r,n)/2/Math.PI,i<0&&(i+=360);return[e,Math.sqrt(n*n+r*r),i]},jn.lch.lab=function(t){const e=t[0],n=t[1],r=t[2]/360*2*Math.PI;return[e,n*Math.cos(r),n*Math.sin(r)]},jn.rgb.ansi16=function(t,e=null){const[n,r,i]=t;let o=null===e?jn.rgb.hsv(t)[2]:e;if(o=Math.round(o/50),0===o)return 30;let a=30+(Math.round(i/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return 2===o&&(a+=60),a},jn.hsv.ansi16=function(t){return jn.rgb.ansi16(jn.hsv.rgb(t),t[2])},jn.rgb.ansi256=function(t){const e=t[0],n=t[1],r=t[2];if(e===n&&n===r)return e<8?16:e>248?231:Math.round((e-8)/247*24)+232;return 16+36*Math.round(e/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},jn.ansi16.rgb=function(t){let e=t%10;if(0===e||7===e)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];const n=.5*(1+~~(t>50));return[(1&e)*n*255,(e>>1&1)*n*255,(e>>2&1)*n*255]},jn.ansi256.rgb=function(t){if(t>=232){const e=10*(t-232)+8;return[e,e,e]}let e;t-=16;return[Math.floor(t/36)/5*255,Math.floor((e=t%36)/6)/5*255,e%6/5*255]},jn.rgb.hex=function(t){const e=(((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2]))).toString(16).toUpperCase();return"000000".substring(e.length)+e},jn.hex.rgb=function(t){const e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let n=e[0];3===e[0].length&&(n=n.split("").map((t=>t+t)).join(""));const r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},jn.rgb.hcg=function(t){const e=t[0]/255,n=t[1]/255,r=t[2]/255,i=Math.max(Math.max(e,n),r),o=Math.min(Math.min(e,n),r),a=i-o;let s,l;return s=a<1?o/(1-a):0,l=a<=0?0:i===e?(n-r)/a%6:i===n?2+(r-e)/a:4+(e-n)/a,l/=6,l%=1,[360*l,100*a,100*s]},jn.hsl.hcg=function(t){const e=t[1]/100,n=t[2]/100,r=n<.5?2*e*n:2*e*(1-n);let i=0;return r<1&&(i=(n-.5*r)/(1-r)),[t[0],100*r,100*i]},jn.hsv.hcg=function(t){const e=t[1]/100,n=t[2]/100,r=e*n;let i=0;return r<1&&(i=(n-r)/(1-r)),[t[0],100*r,100*i]},jn.hcg.rgb=function(t){const e=t[0]/360,n=t[1]/100,r=t[2]/100;if(0===n)return[255*r,255*r,255*r];const i=[0,0,0],o=e%1*6,a=o%1,s=1-a;let l=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=a,i[2]=0;break;case 1:i[0]=s,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=a;break;case 3:i[0]=0,i[1]=s,i[2]=1;break;case 4:i[0]=a,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=s}return l=(1-n)*r,[255*(n*i[0]+l),255*(n*i[1]+l),255*(n*i[2]+l)]},jn.hcg.hsv=function(t){const e=t[1]/100,n=e+t[2]/100*(1-e);let r=0;return n>0&&(r=e/n),[t[0],100*r,100*n]},jn.hcg.hsl=function(t){const e=t[1]/100,n=t[2]/100*(1-e)+.5*e;let r=0;return n>0&&n<.5?r=e/(2*n):n>=.5&&n<1&&(r=e/(2*(1-n))),[t[0],100*r,100*n]},jn.hcg.hwb=function(t){const e=t[1]/100,n=e+t[2]/100*(1-e);return[t[0],100*(n-e),100*(1-n)]},jn.hwb.hcg=function(t){const e=t[1]/100,n=1-t[2]/100,r=n-e;let i=0;return r<1&&(i=(n-r)/(1-r)),[t[0],100*r,100*i]},jn.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},jn.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},jn.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},jn.gray.hsl=function(t){return[0,0,t[0]]},jn.gray.hsv=jn.gray.hsl,jn.gray.hwb=function(t){return[0,100,t[0]]},jn.gray.cmyk=function(t){return[0,0,0,t[0]]},jn.gray.lab=function(t){return[t[0],0,0]},jn.gray.hex=function(t){const e=255&Math.round(t[0]/100*255),n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(n.length)+n},jn.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]};const qn={};Object.keys(Ln).forEach((t=>{qn[t]={},Object.defineProperty(qn[t],"channels",{value:Ln[t].channels}),Object.defineProperty(qn[t],"labels",{value:Ln[t].labels});const e=function(t){const e=zn(t),n={},r=Object.keys(e);for(let t=r.length,i=0;i<t;i++){const t=r[i];null!==e[t].parent&&(n[t]=Un(t,e))}return n}(t);Object.keys(e).forEach((n=>{const r=e[n];qn[t][n]=function(t){const e=function(...e){const n=e[0];if(null==n)return n;n.length>1&&(e=n);const r=t(e);if("object"==typeof r)for(let t=r.length,e=0;e<t;e++)r[e]=Math.round(r[e]);return r};return"conversion"in t&&(e.conversion=t.conversion),e}(r),qn[t][n].raw=function(t){const e=function(...e){const n=e[0];return null==n?n:(n.length>1&&(e=n),t(e))};return"conversion"in t&&(e.conversion=t.conversion),e}(r)}))}));var Gn=qn;const Wn=["keyword","gray","hex"],$n={};for(const t of Object.keys(Gn))$n[[...Gn[t].labels].sort().join("")]=t;const Kn={};function Xn(t,e){if(!(this instanceof Xn))return new Xn(t,e);if(e&&e in Wn&&(e=null),e&&!(e in Gn))throw new Error("Unknown model: "+e);let n,r;if(null==t)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(t instanceof Xn)this.model=t.model,this.color=[...t.color],this.valpha=t.valpha;else if("string"==typeof t){const e=Bn.get(t);if(null===e)throw new Error("Unable to parse color from string: "+t);this.model=e.model,r=Gn[this.model].channels,this.color=e.value.slice(0,r),this.valpha="number"==typeof e.value[r]?e.value[r]:1}else if(t.length>0){this.model=e||"rgb",r=Gn[this.model].channels;const n=Array.prototype.slice.call(t,0,r);this.color=tr(n,r),this.valpha="number"==typeof t[r]?t[r]:1}else if("number"==typeof t)this.model="rgb",this.color=[t>>16&255,t>>8&255,255&t],this.valpha=1;else{this.valpha=1;const e=Object.keys(t);"alpha"in t&&(e.splice(e.indexOf("alpha"),1),this.valpha="number"==typeof t.alpha?t.alpha:0);const r=e.sort().join("");if(!(r in $n))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=$n[r];const{labels:i}=Gn[this.model],o=[];for(n=0;n<i.length;n++)o.push(t[i[n]]);this.color=tr(o)}if(Kn[this.model])for(r=Gn[this.model].channels,n=0;n<r;n++){const t=Kn[this.model][n];t&&(this.color[n]=t(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}Xn.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(t){let e=this.model in Bn.to?this:this.rgb();e=e.round("number"==typeof t?t:1);const n=1===e.valpha?e.color:[...e.color,this.valpha];return Bn.to[e.model](n)},percentString(t){const e=this.rgb().round("number"==typeof t?t:1),n=1===e.valpha?e.color:[...e.color,this.valpha];return Bn.to.rgb.percent(n)},array(){return 1===this.valpha?[...this.color]:[...this.color,this.valpha]},object(){const t={},{channels:e}=Gn[this.model],{labels:n}=Gn[this.model];for(let r=0;r<e;r++)t[n[r]]=this.color[r];return 1!==this.valpha&&(t.alpha=this.valpha),t},unitArray(){const t=this.rgb().color;return t[0]/=255,t[1]/=255,t[2]/=255,1!==this.valpha&&t.push(this.valpha),t},unitObject(){const t=this.rgb().object();return t.r/=255,t.g/=255,t.b/=255,1!==this.valpha&&(t.alpha=this.valpha),t},round(t){return t=Math.max(t||0,0),new Xn([...this.color.map(Zn(t)),this.valpha],this.model)},alpha(t){return void 0!==t?new Xn([...this.color,Math.max(0,Math.min(1,t))],this.model):this.valpha},red:Jn("rgb",0,Qn(255)),green:Jn("rgb",1,Qn(255)),blue:Jn("rgb",2,Qn(255)),hue:Jn(["hsl","hsv","hsl","hwb","hcg"],0,(t=>(t%360+360)%360)),saturationl:Jn("hsl",1,Qn(100)),lightness:Jn("hsl",2,Qn(100)),saturationv:Jn("hsv",1,Qn(100)),value:Jn("hsv",2,Qn(100)),chroma:Jn("hcg",1,Qn(100)),gray:Jn("hcg",2,Qn(100)),white:Jn("hwb",1,Qn(100)),wblack:Jn("hwb",2,Qn(100)),cyan:Jn("cmyk",0,Qn(100)),magenta:Jn("cmyk",1,Qn(100)),yellow:Jn("cmyk",2,Qn(100)),black:Jn("cmyk",3,Qn(100)),x:Jn("xyz",0,Qn(95.047)),y:Jn("xyz",1,Qn(100)),z:Jn("xyz",2,Qn(108.833)),l:Jn("lab",0,Qn(100)),a:Jn("lab",1),b:Jn("lab",2),keyword(t){return void 0!==t?new Xn(t):Gn[this.model].keyword(this.color)},hex(t){return void 0!==t?new Xn(t):Bn.to.hex(this.rgb().round().color)},hexa(t){if(void 0!==t)return new Xn(t);const e=this.rgb().round().color;let n=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===n.length&&(n="0"+n),Bn.to.hex(e)+n},rgbNumber(){const t=this.rgb().color;return(255&t[0])<<16|(255&t[1])<<8|255&t[2]},luminosity(){const t=this.rgb().color,e=[];for(const[n,r]of t.entries()){const t=r/255;e[n]=t<=.04045?t/12.92:((t+.055)/1.055)**2.4}return.2126*e[0]+.7152*e[1]+.0722*e[2]},contrast(t){const e=this.luminosity(),n=t.luminosity();return e>n?(e+.05)/(n+.05):(n+.05)/(e+.05)},level(t){const e=this.contrast(t);return e>=7?"AAA":e>=4.5?"AA":""},isDark(){const t=this.rgb().color;return(2126*t[0]+7152*t[1]+722*t[2])/1e4<128},isLight(){return!this.isDark()},negate(){const t=this.rgb();for(let e=0;e<3;e++)t.color[e]=255-t.color[e];return t},lighten(t){const e=this.hsl();return e.color[2]+=e.color[2]*t,e},darken(t){const e=this.hsl();return e.color[2]-=e.color[2]*t,e},saturate(t){const e=this.hsl();return e.color[1]+=e.color[1]*t,e},desaturate(t){const e=this.hsl();return e.color[1]-=e.color[1]*t,e},whiten(t){const e=this.hwb();return e.color[1]+=e.color[1]*t,e},blacken(t){const e=this.hwb();return e.color[2]+=e.color[2]*t,e},grayscale(){const t=this.rgb().color,e=.3*t[0]+.59*t[1]+.11*t[2];return Xn.rgb(e,e,e)},fade(t){return this.alpha(this.valpha-this.valpha*t)},opaquer(t){return this.alpha(this.valpha+this.valpha*t)},rotate(t){const e=this.hsl();let n=e.color[0];return n=(n+t)%360,n=n<0?360+n:n,e.color[0]=n,e},mix(t,e){if(!t||!t.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t);const n=t.rgb(),r=this.rgb(),i=void 0===e?.5:e,o=2*i-1,a=n.alpha()-r.alpha(),s=((o*a==-1?o:(o+a)/(1+o*a))+1)/2,l=1-s;return Xn.rgb(s*n.red()+l*r.red(),s*n.green()+l*r.green(),s*n.blue()+l*r.blue(),n.alpha()*i+r.alpha()*(1-i))}};for(const t of Object.keys(Gn)){if(Wn.includes(t))continue;const{channels:e}=Gn[t];Xn.prototype[t]=function(...e){return this.model===t?new Xn(this):e.length>0?new Xn(e,t):new Xn([...(n=Gn[this.model][t].raw(this.color),Array.isArray(n)?n:[n]),this.valpha],t);var n},Xn[t]=function(...n){let r=n[0];return"number"==typeof r&&(r=tr(n,e)),new Xn(r,t)}}function Zn(t){return function(e){return function(t,e){return Number(t.toFixed(e))}(e,t)}}function Jn(t,e,n){t=Array.isArray(t)?t:[t];for(const r of t)(Kn[r]||(Kn[r]=[]))[e]=n;return t=t[0],function(r){let i;return void 0!==r?(n&&(r=n(r)),i=this[t](),i.color[e]=r,i):(i=this[t]().color[e],n&&(i=n(i)),i)}}function Qn(t){return function(e){return Math.max(0,Math.min(t,e))}}function tr(t,e){for(let n=0;n<e;n++)"number"!=typeof t[n]&&(t[n]=0);return t}var er=Xn,nr=a((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.array2obj=function(t,e){for(var n={},r=0;r<t.length;r++)n[t[r][e]]=t[r];return n},e.assignIn=function t(e,n){if(!n)return e;for(let r in n)r in e&&e[r]&&"object"==typeof e[r]&&!Array.isArray(e[r])?t(e[r],n[r]):e[r]=n[r];return e},e.capitalize=function(t){return`${t[0].toUpperCase()}${t.slice(1)}`},e.deepClone=function(t){return t&&JSON.parse(JSON.stringify(t))},e.determineResourcePath=function(t,e){if(t.startsWith("http"))return t;let n="";n=t.startsWith("/anov-prod")||t.startsWith("./anov-prod")?t:`${e}${t}`;return n},e.getMax=function(t,e){for(var n=0,r=t.length,i=0;i<r;i++){var o=t[i][e];n<o&&(n=o)}return n},e.getValueByPath=r,e.guid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)}))},e.queryString=void 0,e.randomStr=function(t=16){let e="";e="string"==typeof t?t:new Array(t).fill("%");let r=new Array(e.length).fill(null);for(let t=0;t<e.length;t++){let i=e[t];if("%"===i){let t=Math.random()*n.length|0;i=n[t]}r[t]=i}return r.join("")},e.round=function(t,e=0){return+t.toFixed(e)},e.scaleLinear=function(t,e,n,r){if(t===e)throw Error("min 和 max 值不能相等");const i=(r-n)/(e-t);return t=>n+i*t},e.setValueByPath=function(t,e,n){if(e.startsWith(".")||e.endsWith("."))throw new Error("path 路径不符合规范,不能以'.'开头或结尾");let i=e;const o=e.lastIndexOf(".");if(o>0){t=r(t,e.slice(0,o)),i=e.slice(o+1)}null!=t&&(t[i]=n)},e.trimEndWhiteLine=e.trimColon=e.stringFormatter=void 0;e.stringFormatter=(t,e)=>t.replace(/\{([^{^}]*)\}/g,((t,n)=>{const i=r(e,n);return void 0===i?"":i}));e.queryString=t=>{for(var e=window.location.search.substring(1).split("&"),n=0;n<e.length;n++){var r=e[n].split("=");if(r[0]==t)return r[1]}return!1};const n=[...new Array(26).fill(0).map(((t,e)=>String.fromCharCode("a".charCodeAt(0)+e))),...new Array(26).fill(0).map(((t,e)=>String.fromCharCode("A".charCodeAt(0)+e))),...new Array(10).fill(0).map(((t,e)=>String.fromCharCode("0".charCodeAt(0)+e)))];e.trimEndWhiteLine=t=>t.replace(/[::\n\s]+$/gm,"");function r(t,e){if(e.startsWith(".")||e.endsWith("."))throw new Error("path 路径不符合规范,不能以'.'开头或结尾");const n=e.split(".");let r=t;for(let t=0;t<n.length;t++){if(r=r[n[t]],null==r)break}return r}e.trimColon=t=>t.replace(/^\s*[::]\s*$/gm,"")}));o(nr),nr.array2obj,nr.assignIn,nr.capitalize,nr.deepClone,nr.determineResourcePath,nr.getMax,nr.getValueByPath,nr.guid,nr.queryString,nr.randomStr,nr.round,nr.scaleLinear,nr.setValueByPath,nr.trimEndWhiteLine,nr.trimColon,nr.stringFormatter;var rr=a((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.setColorByTheme=function(t){r(t,!0)},e.setDefaultColorByTheme=function(t){r(t,!1)},e.setOptionColorByTheme=function(t,e,r){if(console.log(t,e,r),!r||!t||!e)return;let i=Reflect.ownKeys(r);for(let l of i){const i=r[l];let c,u=null,h=1,d=0;if("string"==typeof i)u=i;else if(Reflect.has(i,"key")){var o,a;u=i.key,h=null!==(o=i.opacity)&&void 0!==o?o:1,d=null!==(a=i.opacityStep)&&void 0!==a?a:0}if(u&&(c=(0,nr.getValueByPath)(e,u)),c){s(t,l,(0,n.default)(c),h,d)}}};var n=In(er);function r(t,e=!0){let{theme:n,option:s,optionDes:l}=t;s&&l&&n&&Object.keys(l).forEach((c=>{"conditionSeries"===l[c].type||"tabs"===l[c].type?function(t,e,n,i,o,a){let s=e.form,l=t;if(Array.isArray(s))for(let t=0;t<s.length;t++){let e,n=s[t];var c;if(a)e=null==l||null===(c=l[t])||void 0===c?void 0:c.form;else e=null==l?void 0:l[t];e&&r({option:e,optionDes:n,theme:i},o)}else{let t=l.length;for(let e=0;e<t;e++){let t;t=a?l[e].form:l[e],r({option:t,optionDes:s,theme:i},o)}}}(s[c],l[c],0,n,e,"conditionSeries"===l[c].type):l[c].theme?s.hasOwnProperty(c)&&function({theme:t,option:e,optionDes:n},r,s){let l;if("color"!=n[r].type||!s&&e[r]){if("bgcolor"==n[r].type&&(s||!e[r]||!e[r].style)){e[r]||(e[r]={});let{key:s,points:c,degree:u,type:h,opacity:d}=n[r].theme;if(c){u||(u=90),h||(h="linear");let n=`${h}-gradient(${u}deg`,s=100/(c.length-1),f=[];c.forEach(((e,r)=>{l=i(t,e),n+=`,${o(l,e.opacity)} ${s*r}%`;let{red:c,green:u,blue:h,alpha:p}=a(l,d);f.push({red:c,green:u,blue:h,alpha:p,left:s*r})})),n+=")",e[r].style=n,e[r].degree=u,e[r].flag=c.length?3:2,e[r].points=f,e[r].type=h}else s&&(l=i(t,n[r].theme),e[r]={...a(l,d),style:o(l,d)})}}else{let{opacity:a}=n[r].theme;l=i(t,n[r].theme),e[r]=o(l,a)}}(t,c,e):l[c].hasOwnProperty("type")&&"slot"!=l[c].type&&"textStyle"!=l[c].type&&"sheet"!=l[c].type||l[c].constructor!=Object||r({option:s[c],optionDes:l[c],theme:n},e)}))}function i(t,e){if(t[e.key])return t[e.key]||t.color;if(e.key.indexOf(".")>-1){return[t,...e.key.split(".")].reduce(((e,n)=>"object"==typeof e&&n in e?e[n]:(l(`属性${n}不存在,获取主题颜色错误,将使用默认主题色`),t.color)))}return l(`属性${e.key}不存在,获取主题颜色错误,将使用默认主题色`),t.color}function o(t,e){let{red:n,green:r,blue:i,alpha:o}=a(t,e);return`rgba(${n},${r},${i},${o})`}function a(t,e){return-1!=t.indexOf("#")&&(t=t.substr(1)),null==e&&(e=1),{red:parseInt("0x"+t.slice(0,2)),green:parseInt("0x"+t.slice(2,4)),blue:parseInt("0x"+t.slice(4,6)),alpha:e}}function s(t,e,r,i=1,o=0){const a=e.indexOf("@i");if(a>=0){const n=a>0?e.slice(0,a-1):"",l=n?(0,nr.getValueByPath)(t,n):t,c=e.indexOf(".",a),u=c>=0?e.slice(c):"";if(Array.isArray(l))for(let t=0;t<l.length;t++){s(l,`${t}${u}`,r,+(i+(o||0)*t).toFixed(2),o)}}else{let o=(0,nr.getValueByPath)(t,e);if(o){i=(0,n.default)(o).alpha()}const a=`rgba(${r.red()}, ${r.green()}, ${r.blue()}, ${null===i?1:Math.min(1,Math.max(0,i))})`;(0,nr.setValueByPath)(t,e,a)}}function l(t){console.warn(t)}}));o(rr),rr.setColorByTheme,rr.setDefaultColorByTheme;var ir=rr.setOptionColorByTheme;function or(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{l(r.next(t))}catch(t){o(t)}}function s(t){try{l(r.throw(t))}catch(t){o(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(a,s)}l((r=r.apply(t,e||[])).next())}))}"function"==typeof SuppressedError&&SuppressedError;const ar=3e4,sr=(t="",e)=>{let r=n.create({baseURL:t,timeout:ar,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},lr=function(t){return or(this,void 0,void 0,(function*(){try{let{fontUrl:e,fontName:n}=t;const r="__custom_font__";let i=document.getElementById(r);if(!i){i=document.createElement("style"),i.id=r;const t=document.head||document.getElementsByTagName("head")[0];yield t.appendChild(i)}i.innerText+=`@font-face{font-family:'${n}';src:url(${e});}`}catch(t){console.warn(t)}}))},cr=(t,e="jspaths",n)=>or(void 0,void 0,void 0,(function*(){const 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),yield new Promise(((t,e)=>{i.addEventListener("load",t),i.addEventListener("error",t)}))})),ur=(t,e="jspaths")=>or(void 0,void 0,void 0,(function*(){const n="fonts"===e?lr:cr;yield Promise.all(t.map((t=>n(t))))})),hr=(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 dr(t,e=!1){try{return e?fr(t)?t:JSON.stringify(t):fr(t)?JSON.parse(t):t}catch(e){return console.log("转化JSON 发生错我!",t),t}}const fr=t=>{if("string"==typeof t)try{const e=JSON.parse(t);return"object"==typeof e&&null!==e}catch(t){return!1}return!1},pr=(t,e)=>{try{const n=JSON.stringify(e);sessionStorage.setItem(t,n)}catch(e){console.error(`Error setting session data for key ${t}:`,e)}},mr=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},gr=t=>{for(const e of t)e.code&&(e.code=e.code.replace(/>/g,">").replace(/</g,"<"))},vr=(t,e)=>{t instanceof Map?t.forEach((t=>{e([t])})):Array.isArray(t)&&t.forEach((t=>{e(t.children)}))},yr=(t,e)=>{const n=t=>{var r,i,o;if(t)for(const a of t){const t=null===(o=null===(i=null===(r=null==a?void 0:a.tmpData)||void 0===r?void 0:r.source)||void 0===i?void 0:i.converse)||void 0===o?void 0:o.data;(null==t?void 0:t.length)&&gr(t),e(a),a.children?n(a.children):a.dynamicChildren?vr(a.dynamicChildren,n):a.stateChildren&&n(a.stateChildren)}};n(t)},br=(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&&_r(r,i,n.cid),!0}return!1},wr=(t,e)=>{const n=t.match(/{{\w+}}|@\w+/g);return!!n&&n.map((t=>t.replace(/{{|}}|@/g,""))).includes(e)},_r=(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)},Dr=(t,e,n)=>{var r,i;let o=!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 console.log(332211),!0;const s=null==e?void 0:e[null==e?void 0:e.type];return((null==s?void 0:s.inputSql)||(null==s?void 0:s.url)||(null==s?void 0:s.headers)||(null==s?void 0:s.params))&&(o=wr(s.inputSql||s.url||(null===(r=s.headers)||void 0===r?void 0:r.value)||s.params,t),br(s.inputSql||s.url||(null===(i=s.headers)||void 0===i?void 0:i.value)||s.params,n)),o},Sr=(e,n,r=!1)=>{let i=null;const o=e=>{for(const a of e){if(a.cid===n){i=a,r&&t.remove(e,(t=>t.cid===n));break}if(a.children&&o(a.children),a.dynamicChildren&&Array.isArray(a.dynamicChildren))for(const[,t]of Array.from(a.dynamicChildren))o(t);a.stateChildren&&o(a.stateChildren)}};return o(e),i};function xr(e,n,r){let i=t.cloneDeep(n);const o={};r&&r.forEach((t=>{(null==t?void 0:t.name)&&(o[t.name]=t.value||t.originvalue)}));try{return new Function("data","vars",e)(i,o)}catch(e){return console.error(e),i}}const kr=t=>{let e=window.goFetchList;e&&e[t]&&delete e[t]};function Tr(t){const e=t.match(/\.([^\/\\]+)$/);return e?e[1].toLowerCase():void 0}function Cr(t,e){const n=Or();return(Cr=function(t,e){return n[t-=261]})(t,e)}const Er=Cr;function Or(){const t=["7UPegPt","helloX","101103gTMnwz","anov@2019:","149enyQdW","45665RoGNCN","anov@2020:","8508599uBIQaP","426790LJjXRf","188usEQPq","8726DMTNEL","1936DnLjOl","3080442wFrdqQ","8649UPqoeO"];return(Or=function(){return t})()}!function(){const t=Cr,e=Or();for(;;)try{if(348208==-parseInt(t(263))/1*(parseInt(t(269))/2)+parseInt(t(261))/3+parseInt(t(268))/4*(parseInt(t(264))/5)+-parseInt(t(271))/6*(parseInt(t(273))/7)+-parseInt(t(270))/8*(-parseInt(t(272))/9)+parseInt(t(267))/10+parseInt(t(266))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();var Ar={key:Er(262)+Er(274),vi:Er(265)+Er(274)};const Mr={key:Ar.key,iv:Ar.vi};function Nr(t){let e=Qt.enc.Utf8.parse(Mr.key),n=Qt.enc.Utf8.parse(Mr.iv);return Qt.AES.encrypt(t,e,{iv:n,mode:Qt.mode.CBC,padding:Qt.pad.Pkcs7}).toString()}function Pr(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 Ir=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"]),Vr=URL.createObjectURL(Ir);function Rr(t,e,n={},r="worker"){return or(this,void 0,void 0,(function*(){try{if("window"==r){if("string"==typeof e)try{e=JSON.parse(e)}catch(t){console.log("转换失败!")}let[r,i]=[["data"],[e]];"object"==typeof n&&Object.keys(n).forEach((t=>{r.push(t),i.push(n[t])}));const o=new Function(...r,t)(...i);return console.log(o,"result"),{success:!0,data:o}}{let[r,i,o]=[e,n,""];"object"==typeof r&&(r=JSON.stringify(e)),"object"==typeof n&&(i=JSON.stringify(n)),Object.keys(n).forEach((t=>o+=`${t},`));let a=`let data=eval(${r}); \n let app=${JSON.stringify({})};`;a+=o?`let {${o}} = eval(${i}); `:"",a+=`${t}`;let s=yield function(t,e=5e3){return or(this,void 0,void 0,(function*(){let n=new Worker(Vr);return new Promise(((r,i)=>{const o=()=>{clearTimeout(s),n.removeEventListener("message",a),n.terminate(),n=null},a=t=>{let{code:e,result:n,err:a}=t.data;o(),1===e?r(n):i(a)};n.postMessage({code:t}),n.addEventListener("message",a);let s=setTimeout((()=>{o(),i("timeout")}),e)}))}))}(a);return{success:!0,data:s}}}catch(t){return{success:!1,error:t,data:e}}}))}var Br,Fr,jr,Lr,Hr;(Hr=Br||(Br={})).StaticFile="staticFile",Hr.DataSource="datasource",function(t){t.json="application/json;charset=UTF-8",t.form="application/x-www-form-urlencoded; charset=UTF-8"}(Fr||(Fr={})),function(t){t.get="GET",t.post="POST",t.put="PUT",t.patch="PATCH",t.delete="DELETE"}(jr||(jr={}));class zr{constructor(t){this.db=null,this.dbName=t.databaseName,this.tableName=t.tableName,this.keyPath=t.keyPath}static getInstance(t){return zr.instance||(zr.instance=new zr(t)),zr.instance}init(){return or(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 or(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 or(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 or(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 or(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 or(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)}}))}))}}zr.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"}(Lr||(Lr={}));const Yr={databaseName:"GODB",tableName:"go-log",keyPath:"time"};class Ur{constructor(){this.logLevel=Lr.INFO,this.indexedDBInstance=zr.getInstance(Yr);try{this.indexedDBInstance.init(),console.log("IndexedDB 初始化成功。")}catch(t){console.error("初始化 IndexedDB 时出错:",t)}}static getInstance(){return Ur.instance||(Ur.instance=new Ur),Ur.instance}setLogLevel(t){this.logLevel=t}getColor(t){switch(t){case Lr.FATAL:return"[31;1m";case Lr.ERROR:return"[31m";case Lr.WARN:return"[33m";case Lr.INFO:return"[32m";case Lr.DEBUG:return"[36m";case Lr.TRACE:return"[34m";default:return"[0m"}}log(t,e){if(e<=this.logLevel){const n=(new Date).toISOString(),r=`[${n}] [${Lr[e]}]`,i=this.getColor(e);if(null===window||void 0===window?void 0:window.goDev)console.log(`${i}${r} ${t}[0m`);else{let e=mr("anov-go-userInfo"),o=mr("anov-go-proid"),a=` [操作人:${null==e?void 0:e.userName} 项目ID:${o}] `;const s={time:n,value:`${t}`};try{this.indexedDBInstance.addRecord(s)}catch(t){console.error("添加记录时出错:",t)}console.log(`${i}${r} ${a} ${t}[0m`)}}}fatal(t){this.log(t,Lr.FATAL)}error(t){this.log(t,Lr.ERROR)}warn(t){this.log(t,Lr.WARN)}info(t){this.log(t,Lr.INFO)}debug(t){this.log(t,Lr.DEBUG)}trace(t){this.log(t,Lr.TRACE)}}const qr=Ur.getInstance(),Gr=sr();let Wr=sr();function $r(e,n="get",r={},i={},o,a){return or(this,void 0,void 0,(function*(){try{const s={method:jr[n],url:e,headers:i,timeout:3e4};let l;return["post","put"].includes(n.toLowerCase())?s.data=t.cloneDeep(r):s.params=t.cloneDeep(l),o&&(s.headers.sponsor=o),/.json$/.test(e)?function(t){return or(this,void 0,void 0,(function*(){try{return yield Gr({method:"get",url:t})}catch(t){throw console.error("JSON 数据请求:",t),t}}))}(e):function(t,e){return or(this,void 0,void 0,(function*(){try{const n=yield Gr(t);return e?n:{code:2e4,data:(null==n?void 0:n.data)?n.data:n}}catch(t){throw console.error("请求数据发生错误-Error:",t),t}}))}(s,a)}catch(t){throw console.error("获取数据:Error:",t),t}}))}function Kr(t,e,n,r,i){return or(this,void 0,void 0,(function*(){try{const o=(window.anUrl||"")+(window.agentPath||"/ds/v1/api-proxy/v1/query"),a=dr(n,!0);return yield Gr({url:o,method:"post",headers:{"Content-Type":"application/json;charset=UTF-8",sponsor:i||""},data:{body:"post"===t?a:void 0,headers:fr(r)?dr(r,!0):r,method:t,url:e}})}catch(t){throw console.error("代理请求数据:Error12:",t),t}}))}function Xr(t,e,n,r,i,o,a){return or(this,void 0,void 0,(function*(){return i?Kr(e,t,n,r,o):$r(t,e,n,r,o,a)}))}function Zr(t,e="",n){var r,i,o,a;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===(o=ci("YZH_EXCHANGE_TOKEN"))||void 0===o?void 0:o.YZH_EXCHANGE_TOKEN)||(null===(a=null===window||void 0===window?void 0:window.yzhAuth)||void 0===a?void 0:a.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 Gr({method:"POST",url:s,data:{headers:n,param:l},timeout:ar})}function Jr(t="",e,n){const r=`${null===window||void 0===window?void 0:window.BaseUrl}/ds/v1/data-views/query/v1/${n}`;let i={};try{i=t?JSON.parse(t):{}}catch(e){i=t||{}}return Gr({method:"POST",url:r,data:{headers:e,param:i},timeout:ar})}const Qr=(t,e)=>or(void 0,void 0,void 0,(function*(){const n=window.BaseUrl,{dateType:r="",endPeriod:i="",metricsName:o=t,startPeriod:a=""}=e;return Wr({method:"GET",url:`${n}ds/v1/metrics/v1/data-alarm?dateType=${r}&endPeriod=${i}&metricsName=${o}&startPeriod=${a}`,timeout:ar})})),ti=(t,e,n)=>or(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 o={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(!o)throw new Error("Invalid data type provided");return Gr(Object.assign({timeout:ar},o))})),ei=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")})),ni=(t,e,n)=>{try{let r;switch(e){case"api":{let e=di(t,n);return{requestType:e.requestType,url:e.url,params:e.params,headers:e.headers,agency:e.agency,isRawData:!!(null==e?void 0:e.isRawData)&&e.isRawData}}case"static":return{data:t};case"datasource":{const e=hi(t.inputSql,n);return{dsName:t.dsName,dsType:"1",sql:Nr(e),filter:t.sqlFilter}}case"staticFile":return{dsName:t.dsName,dsType:t.dsType,sql:""};case"indicator":return r=fi(t,n),{zbId:t.zbId,params:hi(r.params,n),headers:hi(r.headers,n)};case"dataSet":return{params:hi(t.params,n),headers:hi(t.headers,n),value:t.value};case"indicatorCQ":return{zbName:t.zbName,params:hi(t.params,n)};case"packData":return{};default:throw new Error("Invalid type")}}catch(e){console.log("准备请求数据发生错误",e,t)}},ri=(t,e,n)=>or(void 0,void 0,void 0,(function*(){try{switch(e){case"api":return yield Xr(t.url,t.requestType,t.params,t.headers,t.agency,n,t.isRawData);case"static":return yield ei(t.data);case"datasource":return yield ti(t.dsName,{dsType:t.dsType,sql:t.sql,filter:t.filter},"datasource");case"staticFile":return yield ti(t.dsName,{dsType:t.dsType,sql:t.sql},"staticFile");case"indicator":return yield Zr(t.zbId,t.params,t.headers);case"dataSet":return yield Jr(t.params,t.headers,t.value);case"indicatorCQ":return yield Qr(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})}))}})),ii=(t,e,n,r=[],i=!1)=>or(void 0,void 0,void 0,(function*(){const o=e||t.tmpData.source.dataType;if(!o)return console.warn(`fetdata error on fetchDataByType', dataType is ${o}`),new Promise(((t,e)=>{t({error:!0,data:null,msg:`dataType is ${o}`})}));const a=t.tmpData.source["indicatorCQ"==o?"indicator":o];if("globalData"===o){const t=r.find((t=>t.key===a.id||t.key===a.key)),e=mr(a.id);if(e&&!i)return e.data;if(t){let e=yield oi(t,n),r={key:a.id,data:e};return pr(a.id,r),e}return}const s=ni(a,o,n),l=yield ri(s,o,t.cid?t.cid:"");return(null==s?void 0:s.isRawData)?l:(null==l?void 0:l.data)?l.data:l})),oi=(t,e)=>or(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],o=ni(i,r,e),a=yield ri(o,r);return yield ai(a.data,n,!0,e)})),ai=(e,n,r=!0,i)=>or(void 0,void 0,void 0,(function*(){try{const{converse:o,mapFields:a}=n.tmpData.source;if(o&&o.use&&r){const n=yield function(e,n,r,i){return or(this,void 0,void 0,(function*(){let r,o=e,{use:a,data:s}=t.cloneDeep(n);if(a)for(let e=0;e<s.length;e++)if(s[e].use){let n=s[e].dependVars,a={};i&&a&&n&&n.length&&n.map((e=>{let n=t.cloneDeep(i).filter((t=>{let n=t.mapField==e;return n&&(a[e]=t.value),n}));n&&0!=n.length||(a[e]="")})),r=yield Rr(s[e].code,o,a,s[e].mode?s[e].mode:"worker"),o=r.data}return o}))}(t.cloneDeep(e),o,0,i);return n}return e}catch(t){return console.error("执行过滤器发生错误:",t),e}})),si=(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},li=(t,e,n=[],r,i,o)=>or(void 0,void 0,void 0,(function*(){try{let a=t.tmpData.source.type,s=yield ii(t,a,n,r,o||!1);if(null==s||!s)return i&&i({error:!0}),Promise.resolve({error:!0});let l=yield ai(s,t,e,n);return yield si(t,l),i&&i(l),(null==t?void 0:t.cid)&&kr(t.cid),Promise.resolve(l)}catch(e){return i&&i(e),qr.error("Error in updateComData"),console.error("Error in updateComData:",e,t),Promise.reject(e)}})),ci=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},ui=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}},hi=(t,e)=>{if(!e)return ui(t);if("string"==typeof t){if(/{{\w+}}/.test(t)){const n=t.replace(/{{(\w+)}}/g,((t,n)=>{const r=e.find((t=>t.mapField===n));return r?String(r.value||r.originalValue||""):t}));return ui(n)}return t}if(Array.isArray(t))return t.map((t=>hi(t,e)));if("object"==typeof t&&null!==t){const n={};for(const r in t)n[r]=hi(t[r],e);return n}return t},di=(t,e)=>{const n=t.agency,r=t,{url:i=null,headers:o,params:a,requestType:s,isRawData:l}=r,c=i?hi(i,e):void 0,u=o&&o.use?hi(o.value,e):{};return{url:c,requestType:s,params:a?hi(a,e):{},headers:u,isRawData:l||!1,agency:n}},fi=(t,e)=>{const{headers:n,params:r}=t,i=n&&n.use?hi(n.value,e):{};return{params:r?hi(r,e):{},headers:i}},pi=(t,e,n,r,i)=>or(void 0,void 0,void 0,(function*(){if(t&&t.length)for(const o of t)Dr(e,o.value,n)&&(yield li({tmpData:{source:{type:"globalData",globalData:{id:o.key}}}},!0,n,t,(t=>{console.log("数据更新成功-变量改变全局数据跟新")}),!0),yr(r,(e=>{var r,a,s;"globalData"===(null===(a=null===(r=null==e?void 0:e.tmpData)||void 0===r?void 0:r.source)||void 0===a?void 0:a.type)&&(null===(s=null==e?void 0:e.tmpData)||void 0===s?void 0:s.source.globalData).id===o.key&&li(e,!0,n,t,(t=>{i(e,t)}),!1)})))})),mi=(t,e,n,r,i)=>or(void 0,void 0,void 0,(function*(){t&&(yield li({tmpData:{source:{type:"globalData",globalData:{id:t.key}}}},!0,e,n,(t=>{console.log("数据更新成功")}),!0),yr(r,(r=>{var o,a,s;"globalData"===(null===(a=null===(o=null==r?void 0:r.tmpData)||void 0===o?void 0:o.source)||void 0===a?void 0:a.type)&&(null===(s=null==r?void 0:r.tmpData)||void 0===s?void 0:s.source.globalData).id===t.key&&li(r,!0,e,n,(t=>{i(r,t)}),!1)})))}));class gi{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)||0==(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 xr(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,i.field&&(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 gi(t,e)}}class vi{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 vi.instance||(vi.instance=new vi),vi.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,e){if(Array.isArray(t)?t.map(((t,e)=>{this.addVariable(t)})):this.addVariable(t),e&&"coms"==e)for(let e of this.variables.values())0==e.model&&(t.some((t=>t.mapField==e.mapField))||this.delVariable(e.mapField));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=gi.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:o,mapField:a,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!==o&&(v.mapping=o),void 0!==a&&(v.mapField=a),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 t?(this.addUrlParamsToGlobalVars(),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)}))}}vi.instance=null;const yi=vi.getInstance(),bi=(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)),wi=(t,e,n,r)=>{const i=((t,e,n,r)=>{var i;let o;if(bi(t,null==e?void 0:e.field)||bi(t,null==e?void 0:e.forkValue))o=t[null==e?void 0:e.field]||0==t[null==e?void 0:e.field]?t[null==e?void 0:e.field]:"";else if(bi(t.data,null==e?void 0:e.field)||bi(t.data,null==e?void 0:e.forkValue))o=t.data[null==e?void 0:e.field]||0==t.data[null==e?void 0:e.field]?t.data[null==e?void 0:e.field]:"";else{const t=Sr(n,r),a=(null===(i=null==t?void 0:t.tmpData)||void 0===i?void 0:i.actions)||[];for(const t of a){const n=t.vars.find((t=>(null==t?void 0:t.mapField)===(null==e?void 0:e.mapField)));if(n){o=n.value;break}}}return o})(t,e,n,r);return void 0!==i?i:e.value},_i=(t,e,n,r,i,o,a,s,l)=>{var c;switch(t.type){case"link":let u=hi(t.link,o);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=o.find((t=>t.mapField==n.mapField));r&&(n.value=r.value)}l&&l(t);break;case"dynamic":((t,e,n,r,i)=>{const o=t.dynamic||[];for(const a of o){if(t.id!==e.cid)continue;const o=Sr(n,a.pid);o&&(o.activeDynamic=a.name,o.isShow=a.visible||!r||t.index===e.index-1,i({cid:o.cid,flag:a.visible}))}})(t,e,n,r,i);break;case"toggle":((t,e,n,r,i)=>{const o=t.children||[];for(const n of o){const o=n.visible&&(!r||t.index===e.index-1);i({cid:n.cid,flag:o})}})(t,e,0,r,i);break;case"update":((t,e,n,r,i)=>{const o=t.children||[];for(const t of o){const o=Sr(e,t.cid);o&&li(o,!0,n,r,(t=>{i({cid:o.cid,data:t})}))}})(t,n,o,a,s)}},Di=(e,n,r,i,o,a,s,l,c,u)=>{const{cid:h,actions:d,index:f}=o,{eventName:p,mode:m}=d,g=2===m;((e,n,r,i,o,a)=>{let s=yi.getVariableForId(n.cid);if(null==s?void 0:s.length)for(const l of s)if(l.type==e){let e=wi(n,l,r,i);yi.editVariableForValue(l.mapField,e,(()=>{let e=o[l.mapField]||[],n=yi.getForkList(l.mapField);if(n)for(const r of n){let n=o[r.mapField];e=t.concat(e,n)}a&&a(l,t.uniq(e))}))}})(p,o,i,h,r,((t,e)=>{if(pi(c,t.mapField,yi.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=Sr(i,n);!(null==t?void 0:t.delayUpdate)&&e&&li(e,!0,yi.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)_i(t,o,i,g,a,yi.getAllVariables(),c,s,l)};const Si=(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},xi=(e,n,r)=>{let i=((e,n)=>{let{option:r,actions:i,data:o,optionDes:a,actionsDes:s,source:l,theme:c}=((e,n)=>{let{option:r,actions:i,data:o,optionDes:a,actionsDes:s,source:l,theme:c}=t.cloneDeep(n[e]);return{option:r,actions:i,data:o,optionDes:a,actionsDes:s,source:l,theme:c}})(e,n);return{iconClass:null,isAssembly:null,source:o,cid:(Math.random().toString().substr(3,10)+Date.now()).toString(),isLock:!1,isShow:!0,tmpData:{option:r,source:Si(o,l),actions:i},baseData:ki(),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},ki=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 Ti=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)]}},Ci=()=>{const t=[],e=Ti.pick([!0,!1]);let n=Ti.randomNum(3,20);const r=Ti.pick([null,null,null,{}]);let i=Ti.pick(["asc","desc",void 0,void 0,void 0]);for(let o=0;o<Ti.randomNum(1,9);o++)t.push({data:Ti.generateRandomIntArray(n,0,300,i),type:"line",smooth:e,symbolSize:Ti.randomNum(1,10),lineStyle:{width:Ti.randomNum(1,4)},areaStyle:r});return{xAxis:{type:"category",show:!1,boundaryGap:!1,data:Ti.generateRandomNameArray(n,3,6)},grid:{left:0,top:0,bottom:0,right:0},yAxis:{show:!1,type:"value"},series:t}},Ei=(t,e)=>{let n={type:t,show:!1};return"category"===t&&(n.data=Ti.generateRandomNameArray(e,3,6)),n},Oi=()=>{const t=[],e=Ti.pick([!0,!1]);let n=Ti.randomNum(3,20);const r=Ti.pick([null,null,null,{}]);let i=Ti.pick(["asc","desc",void 0,void 0,void 0]),o=Ti.randomNum(1,9),a=Ti.pick([!0,!1]);for(let s=0;s<o;s++){let o={data:Ti.generateRandomIntArray(n,0,300,i),type:"bar",smooth:e,stack:a,areaStyle:r};t.push(o)}let s=Ti.pick(["value","category"]),l=Ti.pick(["value","category"],s);return{xAxis:Ei(s,n),grid:{left:0,top:0,bottom:0,right:0},yAxis:Ei(l,n),series:t}},Ai=()=>{const t=[];let e=Ti.randomNum(3,20);Ti.pick([null,null,null,{}]);let n=Ti.pick(["asc","desc",void 0,void 0,void 0]),r=Ti.pick([1,2]),i=[Ti.pick(["10%","20%","30%","40%","50%","60%","70%","80%"]),Ti.pick(["90%","100%"])];return t.push({data:Ti.generateRandomIntArray(e,3,20,n),type:"pie",radius:1==r?"100%":i,roseType:1==r?Ti.pick(["area",null,null]):null,padAngle:1==r?0:Ti.randomNum(1,5),startAngle:1==r?Ti.pick([0,180]):0,endAngle:360,label:{show:!1},itemStyle:{borderRadius:3}}),{grid:{left:0,top:0,bottom:0,right:0},series:t}},Mi=()=>{const t=[];Ti.pick([!0,!1]),Ti.randomNum(3,20),Ti.pick([null,null,null,{}]),Ti.pick(["asc","desc",void 0,void 0,void 0]);for(let e=0;e<Ti.randomNum(1,20);e++){let e=Ti.randomNum(3,Ti.randomNum(3,20)),n=[];for(let t=0;t<e;t++){let t=[];for(let e=0;e<2;e++)t.push(Ti.randomNum(1,30));n.push(t)}t.push({type:"scatter",symbolSize:Ti.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}},Ni=()=>{const t=[],e=Ti.pick(["polygon","circle"]);let n=Ti.randomNum(1e4,99999),r=Ti.randomNum(3,10),i=[];for(let t=0;t<r;t++)i.push({name:Ti.randomString(4,8),max:n});for(let e=0;e<Ti.randomNum(2,10);e++)t.push({value:Ti.generateRandomIntArray(r,1e4,n),name:Ti.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}]}},Pi=()=>{const t=[];for(let e=0;e<Ti.randomNum(4,15);e++)t.push({value:Ti.randomNum(1,100),name:Ti.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:Ti.pick(["descending","ascending"]),gap:2,lineStyle:{width:1},data:t}]}};let Ii=Ti.randomNum(5,20);const Vi={width:Ii};Ti.pick([!0,!1])&&(Vi.color=[[.3,"#67e0e3"],[.7,"#37a2da"],[1,"#fd666d"]]);class Ri{constructor(){this.names=["line","bar","pie","scatter","radar","funnel","gauge"]}static getInstance(){return Ri.instance||(Ri.instance=new Ri),Ri.instance}createLine(){switch(Ti.pick(this.names)){case"line":return{type:"line",typeNum:1,option:Ci()};case"bar":return{type:"bar",typeNum:2,option:Oi()};case"pie":return{type:"pie",typeNum:3,option:Ai()};case"scatter":return{type:"scatter",typeNum:4,option:Mi()};case"radar":return{type:"radar",typeNum:5,option:Ni()};case"funnel":return{type:"funnel",typeNum:6,option:Pi()};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:Ti.pick([!0,!1]),width:Ii},axisLine:{lineStyle:Vi},data:[{value:Ti.randomNum(1,100),name:"SCORE"}]}]}}}}}Ri.instance=null;const Bi=Ri.getInstance(),Fi=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 o=Pr(this.directions);o&&(this.direction=o);let a=[];if("row"===this.direction){let t=Pr([3,4]);a=this.simulateRandomSegments(24,4,12,t)}else{let t=Pr([2,3]);a=this.simulateRandomSegments(24,4,6,t)}let s=[],l=[];if("row"===this.direction){for(let t=0;t<a.length;t++)if(0==t)s.push({x:0,y:0,w:a[t],h:24,i:t,wStep:r,hStep:i});else{let e=s[t-1].x;s.push({x:a[t-1]+e,y:0,w:a[t],h:24,i:t,wStep:r,hStep:i})}let t=Pr([2,3]),e=this.simulateRandomSegments(24,6,12,t);for(let t=0;t<s.length;t++){const n=s[t];for(let o=0;o<e.length;o++){const a=e[o];l.push({x:n.x,y:a,w:n.w,h:a,i:10*t+o,wStep:r,hStep:i})}}}else{for(let t=0;t<a.length;t++)if(0==t)s.push({x:0,y:0,w:24,h:a[t],i:t,wStep:r,hStep:i});else{let e=s[t-1].y;s.push({x:0,y:a[t-1]+e,w:24,h:a[t],i:t,wStep:r,hStep:i})}for(let t=0;t<s.length;t++){const e=s[t];let n=Pr([1,2,3,4]),o=this.simulateRandomSegments(24,5,12,n),a=[];for(let n=0;n<o.length;n++){const s=o[n];if(0==n)a.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=a[n-1].x;a.push({x:o[n-1]+c,y:e.y,w:s,h:e.h,i:10*t+n,wStep:r,hStep:i}),l.push({x:o[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}=Bi.createLine(),i=e.x*e.wStep+e.w*e.wStep/2,o=e.y*e.hStep+e.h*e.hStep/2,a=e.w*e.wStep,s=e.h*e.hStep;if(3==r||5==r||7==r){let t=Math.min(a,s);a=t,s=t}let l=t.wrapWidth,c=t.wrapHeight;return e.chartsOption=n,e.typeNum=r,e.txt=r+" "+i/l+" "+o/c+" "+a/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 o=t,a=r;for(;a>0;)if(1===a)i.push(o),a--;else{const t=Math.min(n,o-e*(a-1)),r=Math.floor(Math.random()*(t-e+1))+e;i.push(r),o-=r,a--}return i}simulateRandomSegments2(t,e,n,r){const i=[];let o=t,a=r;for(;a>0;)if(1==a){const e=t-i.reduce(((t,e)=>t+e),0);i.push(e),a--}else{let t=Math.floor(Math.random()*n),r=Math.max(e,t),s=o-e*a;const l=Math.min(r,s);i.push(l),o-=l,a--}return i}},ji=t=>{try{return JSON.parse(t)}catch(e){return t}},Li=new class{constructor(){this.requested=new Set,this.dbName="go-db",this.storeName="store",this.init()}init(){return or(this,void 0,void 0,(function*(){const t=indexedDB.open(this.dbName,10);t.onupgradeneeded=t=>{const e=t.target.result;e.objectStoreNames.contains(this.storeName)||e.createObjectStore(this.storeName,{keyPath:"key"})},t.onsuccess=()=>{},t.onerror=t=>{var e;console.error("数据库错误: "+(null===(e=t.target.error)||void 0===e?void 0:e.message))}}))}pushCaseIdToRequested(t){this.requested.add(t)}add(t,e){return or(this,void 0,void 0,(function*(){if(!(yield this.isExist(t))){e.caseDetailData&&(e.caseDetailData="string"==typeof e.caseDetailData?ji(e.caseDetailData):e.caseDetailData),this.pushCaseIdToRequested(t);const n=(yield this.getDB()).transaction(this.storeName,"readwrite");n.objectStore(this.storeName).add({key:t,value:e}),n.onerror=t=>{var e;console.error("事务错误: "+(null===(e=t.target.error)||void 0===e?void 0:e.message))}}}))}bulkPut(t){return or(this,void 0,void 0,(function*(){const e=(yield this.getDB()).transaction(this.storeName,"readwrite"),n=e.objectStore(this.storeName);for(const e of t){const{caseId:t,id:r}=e,i=`${t}_${r}`;(yield this.isExist(i))||(e.caseDetailData&&(e.caseDetailData=ji(e.caseDetailData)),this.pushCaseIdToRequested(i),n.put({key:i,value:e}))}e.onerror=t=>{var e;console.error("事务错误: "+(null===(e=t.target.error)||void 0===e?void 0:e.message))}}))}get(t){return or(this,void 0,void 0,(function*(){if(!(yield this.isExist(t)))return null;const e=(yield this.getDB()).transaction(this.storeName,"readonly").objectStore(this.storeName);return new Promise(((n,r)=>{const i=e.get(t);i.onsuccess=t=>{n(t.target.result?t.target.result.value:null)},i.onerror=t=>{var e;r("请求错误: "+(null===(e=t.target.error)||void 0===e?void 0:e.message))}}))}))}getAllData(){return or(this,void 0,void 0,(function*(){const t=(yield this.getDB()).transaction(this.storeName,"readonly").objectStore(this.storeName);return new Promise(((e,n)=>{const r=t.getAll();r.onsuccess=t=>{e(t.target.result)},r.onerror=t=>{var e;n("请求错误: "+(null===(e=t.target.error)||void 0===e?void 0:e.message))}}))}))}update(t,e){return or(this,void 0,void 0,(function*(){if(yield this.isExist(t)){const n=yield this.get(t),r=ji(e),i=(yield this.getDB()).transaction(this.storeName,"readwrite");i.objectStore(this.storeName).put({key:t,value:Object.assign(Object.assign({},n),{caseDetailData:r})}),i.onerror=t=>{var e;console.error("事务错误: "+(null===(e=t.target.error)||void 0===e?void 0:e.message))}}else console.error("更新 IndexedDB 错误")}))}delete(t){this.requested.delete(t),indexedDB.open(this.dbName).onsuccess=e=>{const n=e.target.result.transaction(this.storeName,"readwrite");n.objectStore(this.storeName).delete(t),n.onerror=t=>{var e;console.error("事务错误: "+(null===(e=t.target.error)||void 0===e?void 0:e.message))}}}isExist(t){return or(this,void 0,void 0,(function*(){const e=(yield this.getDB()).transaction(this.storeName,"readonly").objectStore(this.storeName);return new Promise(((n,r)=>{const i=e.count(t);i.onsuccess=t=>{n(t.target.result>0)},i.onerror=t=>{var e;r("请求错误: "+(null===(e=t.target.error)||void 0===e?void 0:e.message))}}))}))}reset(){this.requested.clear(),indexedDB.open(this.dbName).onsuccess=t=>{const e=t.target.result.transaction(this.storeName,"readwrite");e.objectStore(this.storeName).clear(),e.onerror=t=>{var e;console.error("事务错误: "+(null===(e=t.target.error)||void 0===e?void 0:e.message))}}}clear(){return or(this,void 0,void 0,(function*(){const t=(yield this.getDB()).transaction(this.storeName,"readwrite");t.objectStore(this.storeName).clear(),t.onerror=t=>{var e;console.error("事务错误: "+(null===(e=t.target.error)||void 0===e?void 0:e.message))}}))}isExistStore(){return or(this,void 0,void 0,(function*(){const t=indexedDB.open(this.dbName);return new Promise((e=>{t.onsuccess=()=>{e(!0)},t.onerror=()=>{e(!1)}}))}))}getDB(){return or(this,void 0,void 0,(function*(){return new Promise(((t,e)=>{const n=indexedDB.open(this.dbName);n.onsuccess=e=>{t(e.target.result)},n.onerror=t=>{var n;e("数据库错误: "+(null===(n=t.target.error)||void 0===n?void 0:n.message))}}))}))}};function Hi(t){!function(t){t.depends?ir(t):zi(t,!1)}(t)}function zi(t,e=!0){let{theme:n,option:r,optionDes:i}=t;r&&i&&n&&Object.keys(i).forEach((o=>{"conditionSeries"!==i[o].type&&"tabs"!==i[o].type||!r[o]?i[o].theme?r.hasOwnProperty(o)&&function({theme:t,option:e,optionDes:n},r,i){let o;if("color"!=n[r].type||!i&&e[r]){if("bgcolor"==n[r].type&&(i||!e[r]||!e[r].style)){e[r]||(e[r]={});let{key:i,points:a,degree:s,type:l,opacity:c}=n[r].theme;if(a){s||(s=90),l||(l="linear");let n=`${l}-gradient(${s}deg`,i=100/(a.length-1),u=[];a.forEach(((e,r)=>{o=Yi(t,e),n+=`,${Ui(o,e.opacity)} ${i*r}%`;let{red:a,green:s,blue:l,alpha:h}=qi(o,c);u.push({red:a,green:s,blue:l,alpha:h,left:i*r})})),n+=")",e[r].style=n,e[r].degree=s,e[r].flag=a.length?3:2,e[r].points=u,e[r].type=l}else i&&(o=Yi(t,n[r].theme),e[r]=Object.assign(Object.assign({},qi(o,c)),{style:Ui(o,c)}))}}else{let{opacity:i}=n[r].theme;o=Yi(t,n[r].theme),e[r]=Ui(o,i)}}(t,o,e):i[o].hasOwnProperty("type")&&"slot"!=i[o].type&&"textStyle"!=i[o].type&&"sheet"!=i[o].type||i[o].constructor!=Object||zi({option:r[o],optionDes:i[o],theme:n},e):function(t,e,n,r,i,o){let a=e.form,s=t;if(Array.isArray(a))for(let t=0;t<a.length;t++){let e,n=a[t];e=o?s[t].form:s[t],zi({option:e,optionDes:n,theme:r},i)}else{let t=s.length;for(let e=0;e<t;e++){let t;t=o?s[e].form:s[e],zi({option:t,optionDes:a,theme:r},i)}}}(r[o],i[o],0,n,e,"conditionSeries"===i[o].type)}))}function Yi(t,e){return t[e.key]?t[e.key]||t.color:e.key.indexOf(".")>-1?[t,...e.key.split(".")].reduce(((e,n)=>"object"==typeof e&&n in e?e[n]:(Gi(`属性${n}不存在,获取主题颜色错误,将使用默认主题色`),t.color))):(Gi(`属性${e.key}不存在,获取主题颜色错误,将使用默认主题色`),t.color)}function Ui(t,e){let{red:n,green:r,blue:i,alpha:o}=qi(t,e);return`rgba(${n},${r},${i},${o})`}function qi(t,e){return-1!=t.indexOf("#")&&(t=t.substr(1)),null==e&&(e=1),{red:parseInt("0x"+t.slice(0,2)),green:parseInt("0x"+t.slice(2,4)),blue:parseInt("0x"+t.slice(4,6)),alpha:e}}function Gi(t){console.warn(t)}var Wi=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,o=t.top,a=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&&o<u&&a>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 o=1;o<t.length;o++){const a=t[o];e=Math.min(e,a.left),n=Math.min(n,a.top),r=Math.max(r,a.left+a.width),i=Math.max(i,a.top+a.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)),o=Math.max(0,Math.min(n.top+n.height,r.top+r.height)-Math.max(n.top,r.top));return i>0&&o>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 o of t){const t=o.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 o=[];for(const t of n){const e=Math.max(...t);o.push(e)}return o}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,o=1/0;n.tmpData.option.textNormal.text;try{const a=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 a){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<o&&n<100&&(o=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 o=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)))),a=e.baseData;a.top,a.height;for(const t of o){const e=t.baseData;let n=this.getDistance(a.left,a.top+a.height,e.left,e.top);n<i&&n<a.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 o=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)))),a=e.baseData;a.top,a.height;for(const t of o){const e=t.baseData;let n=this.getDistance(a.left,a.top+a.height,e.left,e.top);n<i&&n<a.width&&e.top-a.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 o=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)))),a=e.baseData;a.top,a.height;for(const t of o){const e=t.baseData;let n=e.top-a.top;n<i&&n<a.width&&e.top-a.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,o=1/0,a=t.cloneDeep(e).sort(((t,e)=>t.baseData.top-e.baseData.top));try{const e=a.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<o&&(o=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,o,a,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))&&(o=i[0],a=i[1]),t.remove(this.list,(t=>t.cid==e.cid))}let l=xi("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:o,unit:a},l.tmpData.source.static.originData={text:r,num:o,unit:a}),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 o=t[i];let a=this.findNearestComponentForPoint(e,o,n);if(a&&a.cid&&n.push(a.cid),a){o.baseData.left=a.baseData.left;let e=this.upgradeComponentHeight(o,t,r);e&&e>=30&&(a.baseData=Object.assign({},a.baseData,{top:o.baseData.top+o.baseData.height+this.clearance}))}}}catch(t){console.error("配置优化(ConfigOptimizer):",t)}}upgradeComponentHeight(e,n,r=[]){const i=e;let o=this.findNearestTitleForPoint(t.cloneDeep(n),i);return o?o.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:vi,Http:(t,e)=>"string"!=typeof t?Promise.reject(new Error("URL should be a string")):sr(t,e),Log:qr,PageLoader:class{constructor(t){this.processedIds=new Set,this.validateAccessResolve=null,t?(t.caseId&&(this.caseId=t.caseId),t.pageId&&(this.pageId=t.pageId),t.mode&&(this.mode=t.mode),t.environment&&(this.environment=t.environment),t.xhr&&(this.xhr=t.xhr),t.staticComponentData&&(this.staticComponentData=t.staticComponentData),t.theme&&(this.theme=t.theme),t.fetchMode&&(this.fetchMode=t.fetchMode)):console.log("初始化错误!"),this.defaultTheme={name:"科技蓝",color:"#006aee",background:"#00000033",pageBackground:"#051836",text:"#F0F0F0",groups:["#006aee","#00eae9","#00a9ec","#00ec80","#edc700","#9913ee"]}}checkHardware(){return or(this,void 0,void 0,(function*(){return yield new Promise(((t,e)=>{t("Hardware is not available")}))}))}checkSecurity(t){return or(this,void 0,void 0,(function*(){return yield new Promise(((e,n)=>{"preview"==this.environment?e(0):this.getShareForRelease(t).then((t=>{53107==t.code&&e(1),2e4==t.code&&t.data?(t.data,t.data.loginLimitSwitch?e(1):t.data.hasAuth?e(2):e(3)):e(4)}))}))}))}validateAccess(t,e){return or(this,void 0,void 0,(function*(){return new Promise(((n,r)=>{this.validateAccessResolve=n,e&&e(t)}))}))}initBefore(){return new Promise(((t,e)=>{let n=hr("secretFree");n?sessionStorage.setItem("secret-free",n):sessionStorage.setItem("secret-free",null),console.log("运行免登录设置完成!"),t(!0)}))}fetchCaseId(t,e){return or(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}}))}getDataForrelease(){return new Promise(((t,e)=>{t("data")}))}onProjectLoaded(t){}authenticate(){return or(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"release"===this.environment?this.xhr.get(`/go/v1/go-share/v1/${t}?pwd=${e}&mode=${n}&token=${r}`):this.xhr.get(`/go/v1/go-cases/v1/${t}?mode=${n}&token=${r}`)}getKey(t,e=0){return this.xhr.get(`/go/v1/go-cases/v1/key/${t}?caseMode=${e}`)}getPageData(t,e){return or(this,void 0,void 0,(function*(){if("local"==this.fetchMode){const n=yield Li.get(t+"_"+e);if(n)return{data:n}}return"release"===this.environment?this.xhr.get(`/go/v1/go-share/v1/${t}/pages/${e}`):this.xhr.get(`/go/v1/go-cases/v1/${t}/pages/${e}`)}))}getPageId(t,e){if(null==e?void 0:e.length){if(e.find((e=>e.id==t)))return t;let n=e.find((e=>e.caseDetailPath==t||e.caseDetailName==t));return n?n.id:t}return t}fetchProjectForId(t,e="",n=0,r=""){return or(this,void 0,void 0,(function*(){return yield this.findById(t,e,n,r)}))}updataPageData(t,e){var n;return or(this,void 0,void 0,(function*(){const r=this.getPageId(e,this.projectInfo.details);let i=yield this.getPageDataForID(t,r);if(null==i?void 0:i.data){let t=yield this.pageInit(i.data);return null===(n=null==this?void 0:this.lifecycleHooks)||void 0===n||n.onPageDataReady(t),t}return this.lifecycleHooks.validateError("请求页面数据失败"),console.error("请求数据发生错误!",i.msg),{type:"error",error:i.msg}}))}getPageDataForID(t,e,n){return or(this,void 0,void 0,(function*(){const r=this.getPageId(e,this.projectInfo.details);if(this.processedIds.has(r)&&"local"==this.fetchMode){console.log(`ID ${r} has already been processed.`);const e=yield Li.get(t+"_"+r);if(e||null==e)return{data:e}}const i=this.getPageData(t,r);this.processedIds.add(r),n&&n.length&&n.map((e=>or(this,void 0,void 0,(function*(){try{if(this.processedIds.has(e))return void console.log(`ID ${r} has already been processed.`);const n=yield this.getPageData(t,e);Li.add(t+"_"+e,n.data),this.processedIds.add(e)}catch(t){console.error(`Error processing ID ${e}: ${t}`)}}))));const o=yield i;return Li.add(t+"_"+r,o.data),o}))}fetchPageDataForId(t,e="",n=0,r=""){return or(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 or(this,void 0,void 0,(function*(){}))}setGlobalThemeVars(t){document.body.style.cssText=`\n --theme-background: ${t.background};\n --theme-color: ${t.color};\n --theme-pageBackground: ${t.pageBackground};\n --theme-text: ${t.text};\n ${t.groups.map(((t,e)=>`--theme-groups-${e}: ${t};`)).join("\n")}\n `}listenForRenderCompletion(){}showAnimation(){console.log("所有组件渲染完成,显示动画。")}setComTheme(t,e){var n,r;let i=null===(n=this.staticComponentData[e.viewComName])||void 0===n?void 0:n.optionDes,o=null===(r=this.staticComponentData[e.viewComName])||void 0===r?void 0:r.theme;return Hi({theme:t,option:e.tmpData.option,optionDes:i,depends:o}),e}getComData(t,e,n,r){return or(this,void 0,void 0,(function*(){return new Promise(((r,i)=>{if(t.tmpData&&t.tmpData.source)try{li(t,!0,e,n,(e=>{t.source=e,r(1)}))}catch(t){r(t)}else r("")}))}))}processingData(t){return or(this,void 0,void 0,(function*(){try{let e=this.defaultTheme;return(null==t?void 0:t.theme)&&(e=t.theme),t}catch(e){return console.warn("页面初始化发生错误:",e),t}}))}pageInit(t){return or(this,void 0,void 0,(function*(){try{let e=null==t?void 0:t.caseDetailData,n=this.defaultTheme;return(null==e?void 0:e.theme)&&(n=e.theme),this.setGlobalThemeVars(n),yi.clearVars(),yi.addVariables(e.globalVars),yi.getAllVariables(),e}catch(e){return console.warn("页面初始化发生错误:",e),(null==t?void 0:t.data)?t.data:t}}))}validate(t,e,n){return or(this,void 0,void 0,(function*(){return new Promise(((r,i)=>{((t,n)=>{or(this,void 0,void 0,(function*(){let i=yield this.validateAccess(t,n),o=(null==i?void 0:i.pwd)?i.pwd:"",a=(null==i?void 0:i.mode)?i.mode:this.mode,s=(null==i?void 0:i.token)?i.token:"",l=yield this.fetchProjectForId(e,o,a,s);2e4==(null==l?void 0:l.code)&&(null==l?void 0:l.data)?(this.projectInfo=l.data,console.log("验证成功!"),this.lifecycleHooks.message("验证成功!"),r(!0)):(this.lifecycleHooks.validateError(l),this.lifecycleHooks.message(l.msg,"warning"))}))})(t,n)}))}))}init(t){var e;return or(this,void 0,void 0,(function*(){try{this.lifecycleHooks=t,yield this.checkHardware();let n=yield this.fetchCaseId(this.caseId,this.mode),r=yield this.checkSecurity(n),i=t.onValidateAccess||(()=>{}),o=yield this.validate(r,n,i);(o||0==o)&&t.onCaseReady(this.projectInfo);let a=(null===(e=this.projectInfo)||void 0===e?void 0:e.details).map((t=>t.id)),s=this.getPageId(this.pageId,this.projectInfo.details),l=yield this.getPageDataForID(n,s||a[0],a);if(53105===l.code){const e="访问权限不足";return t.onPageDataReady(e),{currentData:this.projectInfo,currentPageData:e}}let c=(null==l?void 0:l.data)?l.data:null;const u=yield this.pageInit(c);return t.onPageDataReady(u),{currentData:this.projectInfo,currentPageData:u}}catch(t){console.error("加载页面时出错:",t)}}))}},addPreloadLink:(t,e,n)=>{const r=document.createElement("link");switch(r.rel="preload",r.href=t,r.crossorigin="anonymous",e){case"video":r.as="video";break;case"script":r.as="script";break;case"image":r.as="image"}r.onload=()=>{console.log(`success to preload ${t}`),n&&n()},r.onerror=()=>{console.error(`Failed to preload ${t}`)},document.head.appendChild(r)},agentData:Kr,applyDiff:function t(e,n){const r=Object.assign({},e);for(const e in n)n.hasOwnProperty(e)&&("object"!=typeof n[e]||null===n[e]||Array.isArray(n[e])?r[e]=n[e]:r[e]=t(r[e],n[e]));return r},asyncRecursion:(t,e)=>or(void 0,void 0,void 0,(function*(){const n=t=>or(void 0,void 0,void 0,(function*(){var r,i,o,a;for(const s of t){(null===(a=null===(o=null===(i=null===(r=null==s?void 0:s.tmpData)||void 0===r?void 0:r.source)||void 0===i?void 0:i.converse)||void 0===o?void 0:o.data)||void 0===a?void 0:a.length)&&(yield gr(s.tmpData.source.converse.data)),yield e(s);const t=[s.children,s.dynamicChildren?yield vr(s.dynamicChildren,n):null,s.stateChildren].filter(Boolean);for(const e of t)yield n(e)}}));yield n(t)})),delFetchStatus:kr,diffObjects:function t(e,n){const r={};for(const i in e)if(e.hasOwnProperty(i))if("object"!=typeof e[i]||null===e[i]||Array.isArray(e[i]))Array.isArray(e[i])?JSON.stringify(e[i])!==JSON.stringify(n[i])&&(r[i]=n[i]):e[i]!==n[i]&&(r[i]=n[i]);else{const o=t(e[i],n[i]);null!==o&&Object.keys(o).length>0&&(r[i]=o)}return Object.keys(r).length>0?r:null},displayGenerator:Fi,editItem:si,emitEvent:Di,fetchDataByGlobal:oi,fetchDataByType:ii,filterData:ai,findItemDeep:Sr,findItemDeep2:(e,n,r)=>{let i=!1;const o=e=>{for(let a=0;a<e.length;a++){if(e[a].cid==n){i=e[a],r&&t.remove(e,(t=>t.cid==n));break}if(e[a].children)o(e[a].children);else if(e[a].dynamicChildren){if(e[a].dynamicChildren instanceof Map){let t=Array.from(e[a].dynamicChildren);for(let e=0;e<t.length;e++)if(t[e]instanceof Array){let n=t[e][1];o(n)}}else if(e[a].dynamicChildren instanceof Array){let t=e[a].dynamicChildren;for(let e=0;e<t.length;e++)if(t[e]instanceof Array){let n=t[e][1];o(n)}}}else e[a].stateChildren&&o(e[a].stateChildren)}};return o(e),i||!1},getData:$r,getDataForApi:Xr,getDataForDataSet:Jr,getDataForSource:ti,getDataForStatic:ei,getDataForZb:Zr,getDataForZbCQ:Qr,getResourceForComponent:t=>{const e=[];let n=function(t){return t.endsWith("/")?t.slice(0,-1):t}(window.baseUrl);return yr(t,(t=>{var r,i,o,a,s,l,c,u,h;if("AnDeckHeader3"==t.viewComName&&(null===(o=null===(i=null===(r=null==t?void 0:t.tmpData)||void 0===r?void 0:r.option)||void 0===i?void 0:i.bgImage)||void 0===o?void 0:o.path)){let r=Tr(t.tmpData.option.bgImage.path);e.push({type:r,url:n+t.tmpData.option.bgImage.path})}if("AnVideoNormal"==t.viewComName&&(null===(s=null===(a=null==t?void 0:t.tmpData)||void 0===a?void 0:a.option)||void 0===s?void 0:s.dynamicUrl)){let r=Tr(null===(c=null===(l=null==t?void 0:t.tmpData)||void 0===l?void 0:l.option)||void 0===c?void 0:c.dynamicUrl);e.push({type:r,url:n+(null===(h=null===(u=null==t?void 0:t.tmpData)||void 0===u?void 0:u.option)||void 0===h?void 0:h.dynamicUrl)})}})),e},getSessionData:mr,getStandardData:dr,getStringVars:br,getStringVars2:wr,getUrlParams:hr,getVarDefaultVal:wi,globalVars:yi,hasVar:Dr,isJSON:fr,loadFont:t=>or(void 0,void 0,void 0,(function*(){t.fonts&&t.fonts.length&&(yield ur(t.fonts,"fonts"))})),loadFontResource:lr,loadScript:cr,loadTag:({jspaths:e=[],csspaths:n=[],fonts:r=[]})=>or(void 0,void 0,void 0,(function*(){const i=t.uniqBy(r,"fontName");yield Promise.all([ur(e,"jspaths"),ur(n,"csspaths"),ur(i,"fonts")])})),recursion:yr,removeTag:()=>{var t;(null==(t=document.getElementById("__custom_font__"))?void 0:t.parentNode)&&t.parentNode.removeChild(t),Array.from(document.getElementsByTagName("script")).filter((t=>"jspaths"==t.className)).forEach((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((t=>"csspaths"==t.className)).forEach((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)}))},replaceVariable:hi,replaceVariable2:(t,e)=>{if(!e)return ui(t);if("string"==typeof t){if(""===t.trim())return"";try{if("string"!=typeof JSON.parse(t))return"number"==typeof JSON.parse(t)?t:hi(JSON.parse(t),e);{let n=t.replace(/@(\w+)|{{(\w+)}}/g,((t,n,r)=>{const i=n||r,o=e.find((t=>t.mapField===i));if(o){const t=o.value||o.originalValue;return console.log(t,"123123131"),"number"==typeof t?t:String(t)}return t}));return ui(n)}}catch(n){let r=t.replace(/@(\w+)|{{(\w+)}}/g,((t,n,r)=>{const i=n||r,o=e.find((t=>t.mapField===i));if(o){const t=o.value;return console.log(t,"value"),"number"==typeof t?t:String(t)}return t}));return ui(r)}}else{if(Array.isArray(t))return t.map((t=>hi(t,e)));if("object"==typeof t&&null!==t){const n={};for(let r in t)n[r]=hi(t[r],e);return ui(n)}}return ui(t)},replaceVariable3:(t,e)=>{if(!e)return ui(t);if("string"==typeof t){if(""===t.trim())return"";console.log(t,"value");const n=t.replace(/{{(\w+)}}/g,((t,n)=>{const r=e.find((t=>t.mapField===n));if(r){const t=r.value||r.originalValue||"";return"number"==typeof t||"boolean"==typeof t?t:`${String(t)}`}return t}));return console.log(n,"replacedValue"),ui(n)}if(Array.isArray(t))return t.map((t=>hi(t,e)));if("object"==typeof t&&null!==t){const n={};for(const r in t)n[r]=hi(t[r],e);return ui(n)}return ui(t)},replaceVariable4:(t,e)=>{if(!e)return ui(t);if("string"==typeof t){if(""===t.trim())return"";const n=t.replace(/{{(\w+)}}/g,((t,n)=>{const r=e.find((t=>t.mapField===n));if(r){const t=r.value||r.originalValue||"";if("string"==typeof t)return/^[0-9]+$/.test(t)?t:`"${t}"`;if("number"==typeof t||"boolean"==typeof t)return t}return t}));return ui(n)}if(Array.isArray(t))return t.map((t=>hi(t,e)));if("object"==typeof t&&null!==t){const n={};for(const r in t)n[r]=hi(t[r],e);return ui(n)}return ui(t)},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:xr,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:pr,updataGlobalDataSourceForVar:pi,updateComData:li,updateGlobalDataSource:mi}),$i=function(e,n,r,i,o){var a;try{var s={},l=[],c=[],u=[],h=t.cloneDeep(e);return(null===(a=null===window||void 0===window?void 0:window.go)||void 0===a?void 0:a.dev)&&ce(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,o=null===(r=null==t?void 0:t.tmpData)||void 0===r?void 0:r.actions;i<o.length;i++){var a=o[i];if("toggle"==a.behave){var s=a.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}})))}}}})),ce(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}));Oe({types:r,element:t,actions:l,events:c,eventsComs:u,filter:o})}})),yi.addVariables(l),l=yi.getAllVariables(),ce(h,(function(t){var e,n=null===(e=null==t?void 0:t.tmpData)||void 0===e?void 0:e.source;Ki(n,l,t,s)})),{shareVariableTree:s,globalVars:yi.getAllVariables(),globalEvents:c.filter((function(t){return t})),eventsComs:u}}catch(t){return console.error("error",t),{}}},Ki=function(t,e,n,r){var i,o,a;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){Zi(r,t,n.cid)}))})),(null==s?void 0:s.inputSql)&&Xi(null==s?void 0:s.inputSql,e,n,r),(null==s?void 0:s.url)&&Xi(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===(o=null==s?void 0:s.headers)||void 0===o?void 0:o.value)&&Xi(null===(a=null==s?void 0:s.headers)||void 0===a?void 0:a.value,e,n,r),(null==s?void 0:s.params)&&Xi(null==s?void 0:s.params,e,n,r)}},Xi=function(t,e,n,r){"string"!=typeof t&&(t=JSON.stringify(t));var i=t.match(/({{[\w]*}})|((@)[\w]*)/gm);if(i){var o=i.map((function(t){return t.replace(/{{|}}|@/gm,"")}));if(n)for(var a=function(t){var i=o[t];if(!i||!e||e.findIndex((function(t){return t.mapField===i}))<0)return"continue";n&&r&&Zi(r,i,n.cid)},s=0;s<o.length;s++)a(s);else{var l=function(t){var i=o[t];return!i||!e||e.findIndex((function(t){return t.mapField===i}))<0?"continue":(n&&r&&Zi(r,i,n.cid),{value:!0})};for(s=0;s<o.length;s++){var c=l(s);if("object"==typeof c)return c.value}}}return!1},Zi=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)},Ji=function(t){if("string"==typeof t)try{var e=JSON.parse(t);return!("object"!=typeof e||!e)}catch(t){return!1}return!1};function Qi(e){var n=[],r=[];ce(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 o=t.tmpData.actions.map((function(t){return t.eventType}));Oe({types:o,element:t,actions:n,events:r})}}));var i=r.filter((function(t){return t}));return{actions:n,events:i}}var to={addGlobalSource:function(t,e){var n=e.name,r=e.value,i=Ee();t.globalSource.push({key:i,name:n,value:r}),mi({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,o=t.globalSource.find((function(t){return t.key==r}));o&&(o.name=e.name,o.value=i,mi(o,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]=u({},e)},addVarForCom:function(e,n){try{var r=t.uniqWith(Qi([n]).actions);yi.addVariables(r,"cams")}catch(t){console.warn("添加变量发生错误:",t)}},addGoRunVar:function(t,e){try{var n=$i(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)}))),o=1,a=0;a<i.length;a++)o++;var s="".concat(r," (").concat(o,")"),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=$i(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=oe(t.list,n);"boolean"!=typeof i&&i&&fe(i,r)}this.commit("GoCom/execute")},goSynchroData:function(e,n){if(e){var r=n.cid,i=n.attr,o=n.value,a=n.attrModel,s=oe(e.list,r);if("boolean"!=typeof s){if(s&&de(s,i,o,a),"actions"===i.toLowerCase()){var l=e.list,c=t.uniqWith(t.concat(Qi(l).actions,Qi(e.caseList).actions),t.isEqual),u=t.uniqWith(t.concat(Qi(l).events,Qi(e.caseList).events),t.isEqual);yi.addVariables(c,"cams"),e.globalVars=yi.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"},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})),yi.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 o=i[n],a=t.value;o.mapField==t.mapField?o.value=a:o.fork&&t.mapField==o.forkValue?(o.converter&&o.converterCode,o.originalValue=a):r.push(t)}})),r}},eo={updataList:function(t,e){var n=e.cid,r=Mn(e.list,(function(t){var e=oe(t,n),r=e.pid,i=ae(t,n),o=function(t){for(var e=0;e<t.length;e++){var n=t[e];Te(n,n.baseData,0,!0)}},a=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=f([oe(t,r)],ae(t,r),!0),c=a(l),h=a(i);e.baseData=u(u({},e.baseData),be(e.baseData,c)),e.baseData=u(u({},e.baseData),be(e.baseData,h,1)),o(l),o(i)}else{h=a(i);e.baseData=u(u({},e.baseData),be(e.baseData,h,1)),o(i)}r&&0==i.length&&(e.pid="",function(e,n){var r=ae(t,n),i=oe(t,n);if(0===r.length)e.baseData=u(u({},e.baseData),be(e.baseData,i.baseData));else{r=f([i],r,!0);var s=a(r);e.baseData=u(u({},e.baseData),be(e.baseData,s))}o(f([i],r,!0))}(e,r)),s(t),ue(t)}));t.list=r},updataListForContrast:function(e,n){var r=n.cid,i=n.list,o=oe(i,r);se(i,r);var a=se(e.list,r);if(!o.pid){o.pid=a.cid;var s=t.cloneDeep(o.baseData),l=be(o.baseData,a.baseData,1);Object.assign(o.baseData,l),Te(a,s)}ue(e.list)},updateTree:function(e){for(var n=e.list,r=0;r<n.length;r++){var i=n[r];if(i.pid)(s=oe(n,i.pid))&&Object.assign(i.baseData,be(i.baseData,s.baseData));if(i.children)for(var o=0;o<i.children.length;o++){var a=i.children[o];if(a.pid!=i.cid){var s=oe(n,a.pid);if(t.cloneDeep(a.baseData),s){Object.assign(a.baseData,be(a.baseData,s.baseData));var l=be(a.baseData,i.baseData,1);Object.assign(a.baseData,l),Te(i,i.baseData)}a.pid=i.cid}}}ue(n)}},no=ai,ro=function(t,e,n,r,i,o,a){return void 0===n&&(n=!0),h(void 0,void 0,void 0,(function(){var o;return d(this,(function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,li(t,n,e,i,(function(t){r&&r(t)}),a)];case 1:return[2,s.sent()];case 2:return o=s.sent(),r&&r(o),console.log("error:11"+o),[3,3];case 3:return[2]}}))}))},io=function(t,e,n,r,i,o){void 0===o&&(o=!0),t&&li(t,o,e,[],(function(e){n({cid:t.clientWidth,data:e})}))},oo=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,o,a,s,l,c=null===(i=null==e?void 0:e.tmpData)||void 0===i?void 0:i.source,u=null===(a=null===(o=c[null==c?void 0:c.type])||void 0===o?void 0:o.autoUpdate)||void 0===a?void 0:a.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(){ro(e,n,!0,(function(t){r({cid:e.cid,data:t})}))}),1e3*h)},autoUpdateGlobalSource:function(e,n,r,i){var o,a,s,l,c,u=null===(o=null==e?void 0:e.value)||void 0===o?void 0:o.type,h=null===(s=null===(a=e.value[u])||void 0===a?void 0:a.autoUpdate)||void 0===s?void 0:s.open,d=null===(c=null===(l=e.value[u])||void 0===l?void 0:l.autoUpdate)||void 0===c?void 0:c.time;h&&t.isNumber(d)&&d>0&&setInterval((function(){mi(e,n,[e],r,i)}),1e3*d)},axios:n,filterData:no,getDataForEvaluator:y,parseSource:function(t,e,n,r,i,o,a,s){void 0===r&&(r=!0);li(e,r,n,[],(function(t){i(t),("AnContainer"===(null==e?void 0:e.viewComName)&&r||"AnGridLayout"===(null==e?void 0:e.viewComName)&&r)&&Pe(e)}),s)},refreshData:io,updateComData:ro}),ao=function(t){return h(this,void 0,void 0,(function(){var e,n,r,i,o;return d(this,(function(a){switch(a.label){case 0:return a.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:a.sent(),a.label=2;case 2:return i.innerText+="@font-face{font-family:'".concat(n,"';src:url(").concat(e,");}"),[3,4];case 3:return o=a.sent(),console.warn(o),[3,4];case 4:return[2]}}))}))},so=function(t,e,n){return void 0===e&&(e="jspaths"),h(void 0,void 0,void 0,(function(){var r,i;return d(this,(function(o){switch(o.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 o.sent(),[2]}}))}))},lo=function(t,e){return void 0===e&&(e="jspaths"),h(void 0,void 0,void 0,(function(){var n;return d(this,(function(r){switch(r.label){case 0:return n="fonts"===e?ao:so,[4,Promise.all(t.map((function(t){return n(t)})))];case 1:return r.sent(),[2]}}))}))},co=function(t){return h(void 0,void 0,void 0,(function(){return d(this,(function(e){switch(e.label){case 0:return t.fonts&&t.fonts.length?[4,lo(t.fonts,"fonts")]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))},uo=function(e){var n=e.jspaths,r=void 0===n?[]:n,i=e.csspaths,o=void 0===i?[]:i,a=e.fonts,s=void 0===a?[]:a;return h(void 0,void 0,void 0,(function(){var e;return d(this,(function(n){switch(n.label){case 0:return e=t.uniqBy(s,"fontName"),[4,Promise.all([lo(r,"jspaths"),lo(o,"csspaths"),lo(e,"fonts")])];case 1:return n.sent(),[2]}}))}))},ho=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 fo={reset:function(t){t.selectd=[],t.list=[],t.plant=null,t.tw=null,t.watermark=null,t.endnotes=null,t.globalConstant=[],t.currentSelectShareComId=""},setFonts:function(t,e){t.resource.fonts.push({fontName:e.name,fontUrl:e.src}),co(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,o=["name","path","id"];if(!o.includes(n))throw new Error("页面跳转错误!".concat(n," 不是一个正确的参数 请填以下参数 ").concat(o.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=oe(t.list,e);if("boolean"!=typeof r){(null==r?void 0:r.children)&&(null==r||r.children),ro(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(f([n],r,!0)));for(var o=[],a=0,s=i;a<s.length;a++){var l=s[a];e.shareVariableTree[l]&&o.push.apply(o,e.shareVariableTree[l])}if(null==o?void 0:o.length)for(var c=0,u=o;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,ho(),uo(t.resource)},updataResource:function(t){ho(),uo(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,ue(t.list)},saveDynamicChildren:function(t,e){var n=e.cid,r=e.data,i=e.name,o=t.pages[t.pageIndex].list,a=oe(o,n);a&&(a.activeDynamic=i,a.dynamicChildren instanceof Array&&(a.dynamicChildren=new Map(a.dynamicChildren)),a.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),yi.addVariables(r),e.globalVars=yi.getAllVariables(),ue(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,o=oe(i,n);"boolean"!=typeof o&&Object.assign(o,r)},updataComponentForCaseList:function(t,e){var n=e.cid,r=e.data,i=t.caseList,o=oe(i,n);"boolean"!=typeof o&&Object.assign(o,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,o=oe(i,n);"boolean"!=typeof o&&Object.assign(o,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=oe(t.list,n);"boolean"!=typeof i&&("indicatorCQ"===i.tmpData.source.type?i.tmpData.source.indicator.data=r: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 o=oe(e.list,r);"boolean"!=typeof o&&(o.source=t.cloneDeep(i))}},updataAnimationForComponent:function(t,e){var n=e.cid,r=e.data;if(t.list.length){var i=oe(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=oe(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){ye(t.list.find((function(t){return t.cid===e[0]})),e[1])},setSelect:function(t,e){t.currentSelectShareComId&&(t.currentSelectShareComId=""),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,i=t.cloneDeep(n),o=i.id,a=i.multiple,s=i.origin,l=i.ctr,c=i.interval,u=t.cloneDeep(e.selectd);if(e.currentSelectShareComId&&(e.currentSelectShareComId=""),a){var h=u.includes(o);if(u.length>=1){var d=u.every((function(t){return le(e.list,t,n.id)}));if(!d)return void console.info("sorry Only sibling elements can be selected!")}if(h?u.splice(u.findIndex((function(t){return t===o})),1):u.push(o),c&&2==u.length){var f=[],p=e.list;u.forEach((function(t){var n=oe(e.list,t);if(n.pid){var r=oe(e.list,n.pid);p=r.children;var i=r.children.findIndex((function(e){return e.cid==t}));f.push(i)}else{i=e.list.findIndex((function(e){return e.cid==t}));f.push(i)}}));var m=f[0],g=f[1];console.log(m,"startIndex",g),m>g&&(m=(r=[g,m])[0],g=r[1]),u=p.slice(m,g+1).map((function(t){return t.cid}))}e.selectd=u}else e.selectd=[o];e.selectd.forEach((function(t){var n=oe(e.list,t);if(n.pid){var r=oe(e.list,n.pid);r&&(r.toggle=!0)}l||(n.toggle=!0)})),e.selectdChangeOrigin=s||""},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){Ce(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||"AnMasking"==r.viewComName?e.list.push(r):e.list.unshift(r),e.menuList=t.cloneDeep(e.list),ue(e.list),this.commit("GoCom/execute")},addComsForParent:function(e,n){var r=n.com,i=n.isMobile,o=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",[])),o){var a=oe(e.list,o);i?(a.children=[],a.children.push(r)):a.children.unshift(r)}else i?e.list.splice(0,1,r):e.list.unshift(r);e.menuList=t.cloneDeep(e.list),ue(e.list),this.commit("GoCom/execute")},addMyComs:function(e,n){var r;try{var i=n.data,o=n.shareVariableTree,a=n.globalVars,s=n.globalEvents;e.globalVars=t.uniq(t.concat(t.cloneDeep(e.globalVars),a)),e.globalEvents=t.uniq(t.concat(t.cloneDeep(e.globalEvents),s));var l=Object.keys(o),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]),o[n])})):e.shareVariableTree=Object.assign(t.cloneDeep(e.shareVariableTree),o),i instanceof Array?(he(i),(r=e.list).unshift.apply(r,i)):(he([i]),e.list.unshift(i)),e.menuList=t.cloneDeep(e.list),ue(e.list),this.commit("GoCom/execute")}catch(t){}},addStateChildren:function(t,e){var n=oe(t.list,e.pid);n&&n.stateChildren.push(e)},addDynamicChildren:function(t,e){var n=oe(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),o=oe(i,n[0]),a=oe(i,n[1]),s=oe(i,o.pid),l={},c=0,u=0;if(a)if("selectContainer"==a.componentType){var h=oe(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=oe(i,n[0]),i=i.filter((function(t){return t.cid!==l.cid}))),l.cid=Ee(),l.pid=h.cid,h.children.push(l)}else if(o.pid||a.pid)if(s)if(c=t.findIndex(s.children,(function(t){return t.cid==n[0]})),l=s.children[c],o.pid!==a.pid){h=oe(i,a.pid);u=t.findIndex(h.children,(function(t){return t.cid==n[1]}));d=h.children[u];l.cid=Ee(),l.pid=h.cid,d.cid=Ee(),d.pid=s.cid,s.children.splice(c,1,d),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,f([u,1],s.children.splice(c,1,s.children[u]),!1));else{var h=oe(i,a.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=oe(i,o.cid);var d=h.children[u];l.cid=Ee(),l.pid=h.cid,d.cid=Ee(),d.pid=null,i.splice(c,1,d),h.children.splice(u,1,l)}else re(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=Ee(),l.pid=null,i.push(l);e.list=i,ue(e.list)}catch(t){console.warn("组件位置交换发生错误",t)}},changeDynamicState:function(t,e){var n=oe(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,o=e.value,a=oe(t.list,r);if(!a)return;if("string"!=typeof i)return void console.error("key:[".concat(i,"]格式错误"));var s=null===(n=null==a?void 0:a.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]=o: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),ue(e.list),this.commit("GoCom/execute")},updataName:function(t,e){var n=oe(t.list,e.cid);n&&(n.name=e.name)},setDynamicActive:function(t,e){e.cid;var n=e.name,r=oe(t.list,e.cid);r&&"dynamicComponent"==r.componentType&&(r.activeDynamic=n)},updataScroll:function(t,e){e.cid;var n=e.data,r=oe(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=oe(t.list,e.cid);r&&"dynamicComponent"==r.componentType&&(r.dyOption=n)},setCurrentEdited:function(t,e){if(e){var n=oe(t.list,e);if("boolean"!=typeof n){var r=ge(n);n.children=r}t.currentEditerCid=e}else t.currentEditerCid=""},setDynamicLine:function(e,n){var r=t.cloneDeep(e.list),i=oe(r,n.cid);r.length&&"boolean"!=typeof i&&(i.lines=Object.assign({},i.lines,n.lines)),e.list=r}},po={layout:function(e,n){var r=function(e,n){try{var r=e.map((function(t){var e=oe(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){1===e.length&&(e[0].baseData.left=0);var n=t.sortBy(e,(function(t){return t.baseData.left})),r=n[0].baseData.left;e.map((function(t){return t.baseData.left=r}))}(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})),o=1*i[i.length-1].baseData.left+1*i[i.length-1].baseData.width;e.map((function(t){return t.baseData.left=o-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})),o=t.sortBy(e,(function(t){return 1*t.baseData.left+1*t.baseData.width})),a=(1*i[0].baseData.left+(1*o[o.length-1].baseData.left+1*o[o.length-1].baseData.width))/2;e.map((function(t){return t.baseData.left=a-t.baseData.width/2}))}(r,e);break;case"alignTop":!function(e){1===e.length&&(e[0].baseData.top=0);var n=t.sortBy(e,(function(t){return t.baseData.top})),r=1*n[0].baseData.top;e.map((function(t){return t.baseData.top=r}))}(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})),o=1*i[i.length-1].baseData.top+1*i[i.length-1].baseData.height;e.map((function(t){return t.baseData.top=o-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})),o=t.sortBy(e,(function(t){return 1*t.baseData.top+1*t.baseData.height})),a=(1*i[0].baseData.top+(1*o[o.length-1].baseData.top+1*o[o.length-1].baseData.height))/2;e.map((function(t){return t.baseData.top=a-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,o=(r-i)/(n.length-1);n.map((function(t,e){e>0&&e<n.length-1&&(t.baseData.left=i-t.baseData.width/2+o*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,o=(r-i)/(n.length-1);n.map((function(t,e){e>0&&e<n.length-1&&(t.baseData.top=i-t.baseData.height/2+o*e)}))}(r)}}},mo={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,o=t.name,a=t.theme,s=t.plant,l=t.shareVariableTree,c=t.resource;t.pages[t.pageIndex]={globalEvents:n,globalVars:r,list:i,name:o,theme:a,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,o=t.name,a=t.theme,s=t.plant,l=t.shareVariableTree,c=t.resource;t.pages[t.pageIndex]={globalEvents:e,globalVars:r,list:i,name:o,theme:a,plant:s,shareVariableTree:l,resource:c}},getCurrentPageData:function(t){var e=t.globalEvents,n=t.globalVars,r=t.list,i=t.name,o=t.theme,a=t.plant,s=t.shareVariableTree,l=t.resource;t.pages[t.pageIndex]={globalEvents:e,globalVars:n,list:r,name:i,theme:o,plant:a,shareVariableTree:s,resource:l}}},go={segmentationContainer:function(e,n){var r=t.cloneDeep(e.list),i=n.containerData,o=n.direction,a=[];if("del"==o)if(i.pid){var s=oe(r,i.pid),l=s.children.length;if(s)if(l<=2)(a=s.children.filter((function(t){return t.cid!==i.cid&&t.children.length}))).length?(s.direction=a[0].direction,s.children=a[0].children.map((function(t){return t.pid=s.pid||s.cid,t}))):s.children=[];else{var c=s.children.find((function(t){return t.cid===i.cid})),u=s.children.findIndex((function(t){return t.cid===i.cid}));s.children=s.children.filter((function(t){return t.cid!==i.cid}));var h=s.children[u>=s.children.length-1?s.children.length-1:u],d="col"==s.direction?"height":"width";h.baseData[d]=(parseFloat(h.baseData[d])+parseFloat(c.baseData[d])).toFixed(2)+"%"}}else r.length&&(r=r.filter((function(t){return t.cid!==i.cid})));else{var f=oe(r,i.cid);if(f){f.direction=o,1===f.children.length&&(a=f.children,f.children=[]);for(var p=(l=f.children.length)>=2?1:2,m=(d=l>=2?(100/(l+1)).toFixed(2)+"%":"50%",0);m<p;m++)f.children.push({isLock:!1,isShow:!0,baseData:{width:"col"==o?"100%":d,height:"col"==o?d:"100%",angle:0,penetrate:0,opacity:100},direction:o,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:Ee(),pid:f.cid,nestIndex:0,children:[],isTop:!1,isCol:"col"==o,isRow:"col"!=o,isDragged:!1,grandParentId:i.pid});a.length&&(a[0].cid=Ee(),a[0].pid=f.children[0].cid,f.children[0].children=a)}}e.list=r,0==r.length&&(e.selectd=[])}},vo={goEditShareCom:function(t,e){var n,r;try{e.name;var i=e.mapping,o=e.componentId,a=e.componentJson,s=e.cid;t.shareComs||(t.shareComs=new Map),console.log(a.children),t.shareComs.set(s,{mapping:i,componentId:o,componentJson:a,cid:s}),(null===(n=null==a?void 0:a.children[0])||void 0===n?void 0:n.cid)&&(t.currentSelectShareComId=[null===(r=null==a?void 0:a.children[0])||void 0===r?void 0:r.cid])}catch(t){console.log(t,"创建母版信息错误!")}},shareChange:function(t,e){t.shareChangeFlag=e},clearShareCom:function(t){t.shareComs&&t.shareComs.clear()},delShareCom:function(t,e){var n=e.key;t.shareComs&&t.shareComs.has(n)&&t.shareComs.delete(n)}},yo={mutation:{addGoVar:function(t,e){try{yi.addVariable(e,(function(){t.globalVars=yi.getAllVariables()}))}catch(t){console.warn(t)}},delGoVar:function(t,e){try{var n=e.mapField;console.log(n,"mapFieldmapField"),yi.delVariable(n,(function(){t.globalVars=yi.getAllVariables()}))}catch(t){console.warn(t)}},editGoVar:function(t,e){var n=this;try{yi.editVariable(e,(function(r){t.globalVars=yi.getAllVariables(),pi(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"},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})),yi.addVariables(r)},updateGlobalVars:function(t,e){t.globalVars=e},updataVariables:function(t){t.globalVars=yi.getAllVariables()}},actions:{updateGlobalVarsAction:function(t){(0,t.commit)("updateGlobalVars",yi.getAllVariables())},goEditVar:function(t,e){(0,t.commit)("editGoVar",{mapField:e.key,originalValue:e.value})}}},bo=u(u(u(u(u(u(u(u(u(u(u({},p),Nn),Pn),to),eo),fo),po),mo),go),vo),yo.mutation),wo=u({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)},updataBaseDataForDragInfo:function(t,e){var n=t.commit;e&&n("updataBaseDataForDragInfo",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,o=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})),a=[n];(null==o?void 0:o.length)&&(a=t.uniq(f([n],o,!0)));for(var s=[],l=0,c=a;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,d=s;h<d.length;h++){r("updatComs",d[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)}},yo.actions),_o={getCurrentPage:function(t){return t.pages.length?t.pages[t.pageIndex]:[]},globalSourceTree:function(e){if(e.list.length&&e.globalSource.length){var n=[];return ce(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 o=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:o.id,viewComName:t.viewComName})}})),n}return[]}},Do={namespaced:!0,state:l,mutations:bo,actions:wo,getters:_o},So=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 xo(t.storeModule,e)},t.prototype.mapGetters=function(e){return To(t.storeModule,e)},t.prototype.mapMutations=function(e){return ko(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}(),xo=Eo((function(t,e){var n;return Co(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=Oo(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})),ko=Eo((function(t,e){var n;return Co(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 o=Oo(this.$store,"mapMutations",t);if(!o)return;r=o.context.commit}return"function"==typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}})),n})),To=Eo((function(t,e){var n={};return Co(e).forEach((function(e){var r=e.key,i=e.val;i=t+i,n[r]=function(){if(!t||Oo(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 Co(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 Eo(t){return function(e,n){return"string"!=typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function Oo(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 Ao=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=Ee(),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}(),Mo=function(){function e(t){this.vueServer=t,this.loadScript=so}return e.setStore=function(t){this.store=t},e.prototype.loadComponents=function(e){var n=e&&e.list?e.list:[];ce(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 h(this,void 0,void 0,(function(){var n,r,i=this;return d(this,(function(o){switch(o.label){case 0:if(window[e])return[3,5];n=function(e){var n;return d(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,o.label=1;case 1:return r<t.length?[5,n(r)]:[3,4];case 2:o.sent(),o.label=3;case 3:return r++,[3,1];case 4:window[e]=e,o.label=5;case 5:return[2]}}))}))},e.prototype._load=function(t){return h(this,void 0,void 0,(function(){var e=this;return d(this,(function(n){return[2,new Promise((function(n){n(e.loadScript(t))}))]}))}))},e}(),No=function(){function t(t){var e=t.dbName,n=t.tables,r=t.version,i=void 0===r?1:r,o=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(u({dbName:e,tables:n,version:i},o))}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,o=t.callback,a=window.indexedDB;if(a)if((null==r?void 0:r.length)<1)console.error("表名不能为空");else{var s=a.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 o&&o(t)},s.onsuccess=function(t){var n;e.storage=null===(n=t.target)||void 0===n?void 0:n.result,"function"==typeof o&&o(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 o&&o(t))}))}}else console.error("你的浏览器不支持indexedDB")},t}(),Po=function(){function t(){this.VueServer=new So}return t.getInstance=function(){return this.instance||(this.db=new No({dbName:"AnovGo",tables:["logs"]}),this.instance=new t),this.instance},t.prototype.getAppStore=function(){return t.store},t.setAppStore=function(e){t.store=e,So.setAppStore(e),Mo.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 Ao(t);e?this.add(n.cid,n,!0):this.add(n.cid,n)},t.prototype.renderForParent=function(t,e,n){var r=new Ao(t);void 0!==n?this.addForParent(r.cid,r,e,n):this.addForParent(r.cid,r,e)},t.prototype.reversal=function(t){new Mo(new So).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")),o=this.VueServer.callState("globalSource");this.VueServer.callState("globalConstant");var a=this.VueServer.callState("list");Di(r,0,i,a,t,(function(t){n.VueServer.callMutation("changeShow",t)}),(function(t){n.VueServer.callMutation("updataSourceForComponent",t)}),e,o)},t}(),Io=Object.defineProperty,Vo=Object.getOwnPropertySymbols,Ro=Object.prototype.hasOwnProperty,Bo=Object.prototype.propertyIsEnumerable,Fo=(t,e,n)=>e in t?Io(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,jo=(t,e)=>{for(var n in e||(e={}))Ro.call(e,n)&&Fo(t,n,e[n]);if(Vo)for(var n of Vo(e))Bo.call(e,n)&&Fo(t,n,e[n]);return t},Lo=(t,e,n)=>(Fo(t,"symbol"!=typeof e?e+"":e,n),n),Ho=(t,e,n)=>new Promise(((r,i)=>{var o=t=>{try{s(n.next(t))}catch(t){i(t)}},a=t=>{try{s(n.throw(t))}catch(t){i(t)}},s=t=>t.done?r(t.value):Promise.resolve(t.value).then(o,a);s((n=n.apply(t,e)).next())})),zo={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},Yo="data-watermark-tag",Uo={childList:!0,subtree:!0,attributeFilter:["style","class",Yo]};var qo=t=>{let e="";return Object.keys(t).forEach((n=>{const r=n.replace(/([A-Z])/g,"-$1").toLowerCase();e+=`${r}:${t[n]};`})),e},Go=(t="")=>{return`${e=t,window.btoa(decodeURI(encodeURIComponent(e)))}-${(new Date).getTime()}-${Math.floor(Math.random()*Math.pow(10,8))}`;var e};var Wo=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,$o=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 o(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 a="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof r&&r.global===r?r:void 0,s=a.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=a.saveAs||("object"!=typeof window||window!==a?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(t,e,r){var s=a.URL||a.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?o(l):i(l.href)?n(t,e,r):o(l,l.target="_blank")):(l.href=s.createObjectURL(t),setTimeout((function(){s.revokeObjectURL(l.href)}),4e4),setTimeout((function(){o(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,r,a){if(r=r||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(e(t,a),r);else if(i(t))n(t,r,a);else{var s=document.createElement("a");s.href=t,s.target="_blank",setTimeout((function(){o(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 o="application/octet-stream"===t.type,l=/constructor/i.test(a.HTMLElement)||a.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||o&&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=a.URL||a.webkitURL,d=h.createObjectURL(t);i?i.location=d:location.href=d,i=null,setTimeout((function(){h.revokeObjectURL(d)}),4e4)}});a.saveAs=l.saveAs=l,t.exports=l}()})),Ko=function(e){if(0===e.length)return[];var n=function(e){for(var r,i,o,a,s=0;s<e.length;s++)e[s].tmpData&&(e[s]=Object.assign({},(i=e[s],o=void 0,a=void 0,o=t.cloneDeep(i),a=t.omit(o,["comData","source"]),u({},a)))),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},Xo=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,o=t.caseDetailName,a=n.theme,s=void 0===a?null:a,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,w=n.watermark,_=void 0===w?null:w,D=n.tw,S=void 0===D?null:D,x=n.globalSource,k=void 0===x?[]:x,T=n.globalEvents,C=void 0===T?[]:T,E=n.globalConstant,O=void 0===E?[]:E;r.push({path:v||i,theme:s,name:o,resource:b,tw:S,watermark:_,globalSource:k,globalVars:c,globalEvents:C,globalConstant:O,shareVariableTree:h,plant:f,list:Ko(m)})}));else{var i=n.theme,o=void 0===i?null:i,a=n.globalVars,s=void 0===a?null:a,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,w=n.globalSource,_=void 0===w?[]:w,D=n.globalEvents,S=void 0===D?[]:D,x=n.globalConstant,k=void 0===x?[]:x;r.push({resource:m,tw:b,watermark:v,globalSource:_,theme:o,globalVars:s,globalEvents:S,shareVariableTree:c,globalConstant:k,plant:h,list:Ko(f)})}return r};function Zo(t,e){throw new Error("".concat(t,":Expected HTMLElement, got ").concat(e))}var Jo=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,o=t.designHeight,a=t.horizontal,s=t.vertical,l=document.querySelector(n);l||Zo("wrap",l);var c=l.clientWidth,u=l.clientHeight,h=document.querySelector(r);h||Zo("view",h),h.style.position="absolute",h.style.width=i+"px",h.style.height=o+"px",console.log(h,l,"-----");var d,f,p,m,g=Math.min(c/i,u/o);if(e){switch(h.style.transform="scale(".concat(g,")"),a){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-o)/2+"px";break;case"top":f=(g-1)/2*o+"px";break;case"bottom":m=(g-1)/2*o+"px"}}else h.style.transform="scale('".concat(c/i,", ").concat(u/o,"')"),d=(c-i)/2+"px",f=(u-o)/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}(),Qo=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,o=t.callback;this.size=i,this.type=r,this.initOptions(e,n,i),this.initSize(i),this.layout(),this.scale(o),window.addEventListener("resize",this.reset.bind(this,o))}return e.prototype.reset=function(t){this.initSize(this.size),this.layout(),t?this.scale(t):this.scale()},e.getInstance=function(t){e.instance=new e(t)},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!1")},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.target.style.position="static",1==this.type?(this.wrap.style["overflow-y"]="auto",this.wrap.style["overflow-x"]="hidden",this.target.style["transform-origin"]="0 0"):2==this.type&&(this.target.style["transform-origin"]="0 0",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}(),ta=a((function(t,e){
|
|
32
|
+
(n=Jt).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,o=this._iv,a=this._counter;o&&(a=this._counter=o.slice(0),this._iv=void 0),r(a);var s=a.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=Jt).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,o=this._keystream;i&&(o=this._keystream=i.slice(0),this._iv=void 0),n.encryptBlock(o,0);for(var a=0;a<r;a++)t[e+a]^=o[a]}}),n.Decryptor=r,n),i.mode.OFB)}),a(function(t,e){var n,r;t.exports=((r=Jt).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=Jt).pad.AnsiX923={pad:function(t,e){var n=t.sigBytes,r=4*e,i=r-n%r,o=n+i-1;t.clamp(),t.words[o>>>2]|=i<<24-o%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=Jt).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=Jt).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=Jt).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=Jt).pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding)}),a(function(t,e){var n;t.exports=(n=Jt,function(){var t=n,e=t.lib.CipherParams,r=t.enc.Hex;t.format.Hex={stringify:function(t){return t.ciphertext.toString(r)},parse:function(t){var n=r.parse(t);return e.create({ciphertext:n})}}}(),n.format.Hex)}),a(function(t,e){var n;t.exports=(n=Jt,function(){var t=n,e=t.lib.BlockCipher,r=t.algo,i=[],o=[],a=[],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,o[p]=n;var m=t[n],g=t[m],v=t[g],y=257*t[p]^16843008*p;a[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),o=this._keySchedule=[],a=0;a<r;a++)a<n?o[a]=e[a]:(c=o[a-1],a%n?n>6&&a%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[a/n|0]<<24),o[a]=o[a-n]^c);for(var s=this._invKeySchedule=[],l=0;l<r;l++){if(a=r-l,l%4)var c=o[a];else c=o[a-4];s[l]=l<4||a<=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,a,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,o),n=t[e+1],t[e+1]=t[e+3],t[e+3]=n},_doCryptBlock:function(t,e,n,r,i,o,a,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]^o[h>>>8&255]^a[255&d]^n[f++],g=r[u>>>24]^i[h>>>16&255]^o[d>>>8&255]^a[255&c]^n[f++],v=r[h>>>24]^i[d>>>16&255]^o[c>>>8&255]^a[255&u]^n[f++],y=r[d>>>24]^i[c>>>16&255]^o[u>>>8&255]^a[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=Jt,function(){var t=n,e=t.lib,r=e.WordArray,i=e.BlockCipher,o=t.algo,a=[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=o.DES=i.extend({_doReset:function(){for(var t=this._key.words,e=[],n=0;n<56;n++){var r=a[n]-1;e[n]=t[r>>>5]>>>31-r%32&1}for(var i=this._subKeys=[],o=0;o<16;o++){var c=i[o]=[],u=l[o];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],o=this._lBlock,a=this._rBlock,s=0,l=0;l<8;l++)s|=c[l][((a^i[l])&u[l])>>>0];this._lBlock=a,this._rBlock=o^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=o.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=Jt,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 o=0;i<256;i++){var a=i%n,s=e[a>>>2]>>>24-a%4*8&255;o=(o+r[i]+s)%256;var l=r[i];r[i]=r[o],r[o]=l}this._i=this._j=0},_doProcessBlock:function(t,e){t[e]^=o.call(this)},keySize:8,ivSize:0});function o(){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 o=t[e];t[e]=t[n],t[n]=o,r|=t[(t[e]+t[n])%256]<<24-8*i}return this._i=e,this._j=n,r}t.RC4=e._createHelper(i);var a=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--)o.call(this)}});t.RC4Drop=e._createHelper(a)}(),n.RC4)}),a(function(t,e){var n;t.exports=(n=Jt,function(){var t=n,e=t.lib.StreamCipher,r=t.algo,i=[],o=[],a=[],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 o=e.words,a=o[0],s=o[1],c=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>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++)o[n]=e[n];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<o[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<o[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<o[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<o[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<o[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<o[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<o[6]>>>0?1:0)|0,this._b=e[7]>>>0<o[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);a[n]=l^c}t[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,t[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,t[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,t[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,t[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,t[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,t[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,t[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.Rabbit=e._createHelper(s)}(),n.Rabbit)}),a(function(t,e){var n;t.exports=(n=Jt,function(){var t=n,e=t.lib.StreamCipher,r=t.algo,i=[],o=[],a=[],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 o=e.words,a=o[0],s=o[1],c=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>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++)o[n]=e[n];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<o[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<o[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<o[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<o[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<o[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<o[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<o[6]>>>0?1:0)|0,this._b=e[7]>>>0<o[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);a[n]=l^c}t[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,t[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,t[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,t[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,t[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,t[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,t[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,t[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.RabbitLegacy=e._createHelper(s)}(),n.RabbitLegacy)}),a(function(t,e){var n;t.exports=(n=Jt,function(){var t=n,e=t.lib.BlockCipher,r=t.algo;const i=16,o=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],a=[[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,o=255&e,a=t.sbox[0][n]+t.sbox[1][r];return a^=t.sbox[2][i],a+=t.sbox[3][o],a}function c(t,e,n){let r,o=e,a=n;for(let e=0;e<i;++e)o^=t.pbox[e],a=l(t,o)^a,r=o,o=a,a=r;return r=o,o=a,a=r,a^=t.pbox[i],o^=t.pbox[i+1],{left:o,right:a}}function u(t,e,n){let r,o=e,a=n;for(let e=i+1;e>1;--e)o^=t.pbox[e],a=l(t,o)^a,r=o,o=a,a=r;return r=o,o=a,a=r,a^=t.pbox[1],o^=t.pbox[0],{left:o,right:a}}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]=a[e][n]}let r=0;for(let a=0;a<i+2;a++)t.pbox[a]=o[a]^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=Jt}));var te=function(t,e){var n=e.xRatio,r=e.yRatio;if(isNaN(n)||isNaN(r))return console.error("发生错误:on updataSizeDeep in go-code"),t;for(var i=function(t){if(t.baseData.left*=n,t.baseData.width*=n,t.baseData.top*=r,t.baseData.height*=r,t.children&&t.children.length)for(var e=0;e<t.children.length;e++)i(t.children[e])},o=0;o<t.length;o++)i(t[o]);return t},ee=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 o=i[r];if(Object.hasOwn(t,o)&&isNaN(t[o])){if(!("string"==typeof t[o]&&t[o].includes("%")||"NaN"==t[o])){console.warn(o+"--参数校验不合法:"+e),n=!1;break}n=!0}}return n}catch(t){return console.warn("参数校验不合法:"+e),!1}},ne=function(t,e,n){var r=t[n];return t.splice(n,1),t.splice(e,0,r),t},re=function(e,n,r){var i=t.findIndex(e,function(t){return t.cid==r}),o=t.findIndex(e,function(t){return t.cid==n});return ne(e,o,i)},ie=function(t,e,n){for(var r=-1,i=0;i<t.length;i++){var o=t[i];if(o.children&&o.children.length)for(var a=0;a<o.children.length;a++){if(r=a,o.children[a].cid===n){switch(e){case"up":r>=1&&ne(o.children,r-1,r);break;case"down":r<o.children.length-2&&ne(o.children,r+1,r);break;case"top":0!==r&&ne(o.children,0,r);break;case"bottom":var s=o.children.length-1;r!==s&&ne(o.children,s,r)}break}}}return t},oe=function(e,n,r){var i=!1,o=function(e){for(var a=0;a<e.length;a++){if(e[a].cid==n){i=e[a],r&&t.remove(e,function(t){return t.cid==n});break}if(e[a].children)o(e[a].children);else if(e[a].dynamicChildren){if(e[a].dynamicChildren instanceof Map){for(var s=Array.from(e[a].dynamicChildren),l=0;l<s.length;l++)if(s[l]instanceof Array){var c=s[l][1];o(c)}}else if(e[a].dynamicChildren instanceof Array)for(s=e[a].dynamicChildren,l=0;l<s.length;l++)if(s[l]instanceof Array){c=s[l][1];o(c)}}else e[a].stateChildren&&o(e[a].stateChildren)}};return o(e),i||!1},ae=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},se=function(t,e){var n=null,r=function(t,i){for(var o=0,a=t;o<a.length;o++){var s=a[o];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},le=function(t,e,n){var r=oe(t,e),i=oe(t,n);return r.pid&&i.pid&&r.pid==i.pid||!r.pid&&!i.pid},ce=function(t,e){var n=function(t){for(var r,i,o,a=0,s=t;a<s.length;a++){var l=s[a],c=null===(o=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===o?void 0:o.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)},ue=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 o=i.children.length;n(i.children,o)}else if(i&&i.dynamicChildren){var a=i.dynamicChildren.length;Array.from(i.dynamicChildren).forEach(function(t,e){n(t[1],a)})}i.z=10*e-r},i=0;i<t.length;i++)r(i)};n(t,e)},he=function(t){var e=function(t,n){for(var r=function(r){var i=t[r],o=Ee();n?i.pid=n:i.drag||(i.baseData.left=0,i.baseData.top=0),i.cid=o,i&&i.children&&i.children.length?e(i.children,o):i&&i.dynamicChildren&&Array.from(i.dynamicChildren).forEach(function(t,n){e(t[1],o)})},i=0;i<t.length;i++)r(i)};e(t)},de=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)}},fe=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 o=t.cloneDeep(e[i].option),a={};Object.assign(a,o,n),console.log(a,o,"newOP"),e[i].option=a}catch(t){console.error(new Error("An error occurred: ".concat(t)))}},pe=function(t){try{if(!t)throw" 没有找到组件";t.isShow||"false"==t.isShow?t.isShow=!1:t.isShow=!0}catch(t){console.error(t)}},me=function(t,e){e.forEach(function(e){e.baseData.left=e.baseData.left-t.left,e.baseData.top=e.baseData.top-t.top})},ge=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)?oe(n,r.pid):null;ve(t,r,e),i.push(t)}),i},ve=function(t,e,n){var r=function(t,e,n){var r=t.baseData.left,i=t.baseData.top,o=e;if(r+=o.baseData.left,i+=o.baseData.top,n){if(n.baseData.angle){var a=n.baseData.angle*Math.PI/180,s=Math.cos(a),l=Math.sin(a),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,o=r.top;t.baseData.left=i,t.baseData.top=o},ye=function(t,e){t.baseData.left=t.baseData.left+e.left,t.baseData.top=t.baseData.top+e.top},be=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},we=function(e,n){var r=t.cloneDeep(e),i=[],o=function(t,e){var n=oe(t,e);i.push(n.baseData),n.pid&&o(t,n.pid)};o(r,n);var a={left:0,top:0};return i.map(function(t){t&&(a.left+=t.left,a.top+=t.top)}),a},_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},De=function(t,e){var n=[];return t.map(function(t){var r=e.find(function(e){return e.cid===t});r&&n.push(r)}),Se(n)},Se=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),o=r[0].baseData,a=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=o.left,n.width=Math.max(1*a.left+1*a.width,u)-1*o.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}};function xe(t){try{if(null==t||""===t)return 0;var e=t.toString().match(/^-?\d+\.?\d*/);return e?Number(e[0]):0}catch(t){return console.error("Error converting to number: ".concat(t)),0}}function ke(t){var e={};for(var n in t)if(t.hasOwnProperty(n))try{e[n]=xe(t[n])}catch(t){console.error("Error processing key ".concat(n,": ").concat(t)),e[n]=0}return e}var Te=function(e,n,r,i){var o=e.children,a=t.cloneDeep(n),s=t.cloneDeep(Se(o,i)),l=ke(a),c=l.left,u=l.top;l.width,l.height;var h=ke(s),d=h.left,f=h.top,p=h.width,m=h.height,g={left:c+d,top:u+f,width:p,height:m,angle:n.angle?n.angle:0};return o.forEach(function(e){var n=t.cloneDeep(e.baseData);e.baseData.left<0?n.left=0:n.left=n.left-d,e.baseData.top<0?n.top=0:n.top=n.top-f,e.baseData=n}),e.baseData=g,e.children=o,g},Ce=function(t,e){for(var n=0;n<t.length;n++){var r=t[n];t[n].index=n,r.children&&r.children.length?Ce(r.children):e&&e(r)}},Ee=function(){return(Math.random().toString().substr(3,10)+Date.now()).toString()};function Oe(t,e){var n=t.types,r=t.element,i=t.actions,o=t.events,a=t.eventsComs;t.filter,So.state;for(var s=function(t){var e=n[t],s=r.tmpData.actions[t];if(s&&s.use){a&&a.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&&o.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?o.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?o.push({id:r.cid,type:s.behave,link:t.value,eventType:e,target:t.target,index:n}):"page"===s.behave&&""!==t.value?o.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?o.push({id:r.cid,type:s.behave,dynamic:t.value,eventType:e,index:n}):o.push(void 0)})}},l=0;l<n.length;l++)s(l)}var Ae={key:_.key,iv:_.vi};function Me(t,e){var n=So.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 Ne={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}},Pe=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 o=0,a=n;o<a.length;o++){var s=a[o];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)}},Ie=Object.defineProperty,Ve=Object.getOwnPropertySymbols,Re=Object.prototype.hasOwnProperty,Be=Object.prototype.propertyIsEnumerable,Fe=(t,e,n)=>e in t?Ie(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,je=Symbol.for("immer-nothing"),Le=Symbol.for("immer-draftable"),He=Symbol.for("immer-state"),ze="production"!==G.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 Ye(t,...e){if("production"!==G.env.NODE_ENV){const n=ze[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 Ue=Object.getPrototypeOf;function qe(t){return!!t&&!!t[He]}function Ge(t){var e;return!!t&&($e(t)||Array.isArray(t)||!!t[Le]||!!(null==(e=t.constructor)?void 0:e[Le])||Qe(t)||tn(t))}var We=Object.prototype.constructor.toString();function $e(t){if(!t||"object"!=typeof t)return!1;const e=Ue(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)===We}function Ke(t,e){0===Xe(t)?Reflect.ownKeys(t).forEach(n=>{e(n,t[n],t)}):t.forEach((n,r)=>e(r,n,t))}function Xe(t){const e=t[He];return e?e.type_:Array.isArray(t)?1:Qe(t)?2:tn(t)?3:0}function Ze(t,e){return 2===Xe(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Je(t,e,n){const r=Xe(t);2===r?t.set(e,n):3===r?t.add(n):t[e]=n}function Qe(t){return t instanceof Map}function tn(t){return t instanceof Set}function en(t){return t.copy_||t.base_}function nn(t,e){if(Qe(t))return new Map(t);if(tn(t))return new Set(t);if(Array.isArray(t))return Array.prototype.slice.call(t);const n=$e(t);if(!0===e||"class_only"===e&&!n){const e=Object.getOwnPropertyDescriptors(t);delete e[He];let n=Reflect.ownKeys(e);for(let r=0;r<n.length;r++){const i=n[r],o=e[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(e[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:t[i]})}return Object.create(Ue(t),e)}{const e=Ue(t);if(null!==e&&n)return((t,e)=>{for(var n in e||(e={}))Re.call(e,n)&&Fe(t,n,e[n]);if(Ve)for(var n of Ve(e))Be.call(e,n)&&Fe(t,n,e[n]);return t})({},t);const r=Object.create(e);return Object.assign(r,t)}}function rn(t,e=!1){return an(t)||qe(t)||!Ge(t)||(Xe(t)>1&&(t.set=t.add=t.clear=t.delete=on),Object.freeze(t),e&&Object.entries(t).forEach(([t,e])=>rn(e,!0))),t}function on(){Ye(2)}function an(t){return Object.isFrozen(t)}var sn,ln={};function cn(t){const e=ln[t];return e||Ye(0,t),e}function un(){return sn}function hn(t,e){e&&(cn("Patches"),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function dn(t){fn(t),t.drafts_.forEach(mn),t.drafts_=null}function fn(t){t===sn&&(sn=t.parent_)}function pn(t){return sn={drafts_:[],parent_:sn,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function mn(t){const e=t[He];0===e.type_||1===e.type_?e.revoke_():e.revoked_=!0}function gn(t,e){e.unfinalizedDrafts_=e.drafts_.length;const n=e.drafts_[0];return void 0!==t&&t!==n?(n[He].modified_&&(dn(e),Ye(4)),Ge(t)&&(t=vn(e,t),e.parent_||bn(e,t)),e.patches_&&cn("Patches").generateReplacementPatches_(n[He].base_,t,e.patches_,e.inversePatches_)):t=vn(e,n,[]),dn(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==je?t:void 0}function vn(t,e,n){if(an(e))return e;const r=e[He];if(!r)return Ke(e,(i,o)=>yn(t,r,e,i,o,n)),e;if(r.scope_!==t)return e;if(!r.modified_)return bn(t,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const e=r.copy_;let i=e,o=!1;3===r.type_&&(i=new Set(e),e.clear(),o=!0),Ke(i,(i,a)=>yn(t,r,e,i,a,n,o)),bn(t,e,!1),n&&t.patches_&&cn("Patches").generatePatches_(r,n,t.patches_,t.inversePatches_)}return r.copy_}function yn(t,e,n,r,i,o,a){if("production"!==G.env.NODE_ENV&&i===n&&Ye(5),qe(i)){const a=vn(t,i,o&&e&&3!==e.type_&&!Ze(e.assigned_,r)?o.concat(r):void 0);if(Je(n,r,a),!qe(a))return;t.canAutoFreeze_=!1}else a&&n.add(i);if(Ge(i)&&!an(i)){if(!t.immer_.autoFreeze_&&t.unfinalizedDrafts_<1)return;vn(t,i),e&&e.scope_.parent_||"symbol"==typeof r||!Object.prototype.propertyIsEnumerable.call(n,r)||bn(t,i)}}function bn(t,e,n=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&rn(e,n)}var wn={get(t,e){if(e===He)return t;const n=en(t);if(!Ze(n,e))return function(t,e,n){var r;const i=Sn(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_||!Ge(r)?r:r===Dn(t.base_,e)?(kn(t),t.copy_[e]=Tn(r,t)):r},has:(t,e)=>e in en(t),ownKeys:t=>Reflect.ownKeys(en(t)),set(t,e,n){const r=Sn(en(t),e);if(null==r?void 0:r.set)return r.set.call(t.draft_,n),!0;if(!t.modified_){const r=Dn(en(t),e),i=null==r?void 0:r[He];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;kn(t),xn(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!==Dn(t.base_,e)||e in t.base_?(t.assigned_[e]=!1,kn(t),xn(t)):delete t.assigned_[e],t.copy_&&delete t.copy_[e],!0),getOwnPropertyDescriptor(t,e){const n=en(t),r=Reflect.getOwnPropertyDescriptor(n,e);return r?{writable:!0,configurable:1!==t.type_||"length"!==e,enumerable:r.enumerable,value:n[e]}:r},defineProperty(){Ye(11)},getPrototypeOf:t=>Ue(t.base_),setPrototypeOf(){Ye(12)}},_n={};function Dn(t,e){const n=t[He];return(n?en(n):t)[e]}function Sn(t,e){if(!(e in t))return;let n=Ue(t);for(;n;){const t=Object.getOwnPropertyDescriptor(n,e);if(t)return t;n=Ue(n)}}function xn(t){t.modified_||(t.modified_=!0,t.parent_&&xn(t.parent_))}function kn(t){t.copy_||(t.copy_=nn(t.base_,t.scope_.immer_.useStrictShallowCopy_))}Ke(wn,(t,e)=>{_n[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),_n.deleteProperty=function(t,e){return"production"!==G.env.NODE_ENV&&isNaN(parseInt(e))&&Ye(13),_n.set.call(this,t,e,void 0)},_n.set=function(t,e,n){return"production"!==G.env.NODE_ENV&&"length"!==e&&isNaN(parseInt(e))&&Ye(14),wn.set.call(this,t[0],e,n,t[0])};function Tn(t,e){const n=Qe(t)?cn("MapSet").proxyMap_(t,e):tn(t)?cn("MapSet").proxySet_(t,e):function(t,e){const n=Array.isArray(t),r={type_:n?1:0,scope_:e?e.scope_:un(),modified_:!1,finalized_:!1,assigned_:{},parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=wn;n&&(i=[r],o=_n);const{revoke:a,proxy:s}=Proxy.revocable(i,o);return r.draft_=s,r.revoke_=a,s}(t,e);return(e?e.scope_:un()).drafts_.push(n),n}function Cn(t){if(!Ge(t)||an(t))return t;const e=t[He];let n;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,n=nn(t,e.scope_.immer_.useStrictShallowCopy_)}else n=nn(t,!0);return Ke(n,(t,e)=>{Je(n,t,Cn(e))}),e&&(e.finalized_=!1),n}var En=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&&Ye(6),void 0!==n&&"function"!=typeof n&&Ye(7),Ge(t)){const i=pn(this),o=Tn(t,void 0);let a=!0;try{r=e(o),a=!1}finally{a?dn(i):fn(i)}return hn(i,n),gn(r,i)}if(!t||"object"!=typeof t){if(r=e(t),void 0===r&&(r=t),r===je&&(r=void 0),this.autoFreeze_&&rn(r,!0),n){const e=[],i=[];cn("Patches").generateReplacementPatches_(t,r,e,i),n(e,i)}return r}Ye(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){Ge(t)||Ye(8),qe(t)&&(t=function(t){qe(t)||Ye(10,t);return Cn(t)}(t));const e=pn(this),n=Tn(t,void 0);return n[He].isManual_=!0,fn(e),n}finishDraft(t,e){const n=t&&t[He];n&&n.isManual_||Ye(9);const{scope_:r}=n;return hn(r,e),gn(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=cn("Patches").applyPatches_;return qe(t)?r(t,e):this.produce(t,t=>r(t,e))}},On=En.produce;En.produceWithPatches.bind(En);var An=En.setAutoFreeze.bind(En);function Mn(t,e){return An(!1),On(t,e)}En.setUseStrictShallowCopy.bind(En),En.applyPatches.bind(En),En.createDraft.bind(En),En.finishDraft.bind(En);var Nn={updataArea:function(t,e){t.currentArea=e},selectdArea:function(t,e){var n=De(e,t.list);t.currentArea=n},updataAngle:function(t,e){var n=e.id,r=e.angle,i=oe(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),ee(e.data.baseData,"updataBaseData")){var i=e.ratio,o=oe(t.list,r.cid),a=e.oldData;if("object"!=typeof o||o.pid){if("object"==typeof o&&o.pid){var s=oe(t.list,o.pid);"object"==typeof s?(o.baseData.left<0&&(o.baseData.left=0),o.baseData.top<0&&(o.baseData.top=0),Object.assign(o.baseData,r.baseData),Te(s,s.baseData),t.groupFlag=!t.groupFlag):s||(o.baseData.left<0&&(o.baseData.left=0),o.baseData.top<0&&(o.baseData.top=0),Object.assign(o.baseData,r.baseData))}}else if(Object.assign(o.baseData,r.baseData),i&&o.children&&o.children.length>0){var l=o.baseData.width/a.width,c=o.baseData.height/a.height;te(o.children,{xRatio:l,yRatio:c})}}},updataBaseData2:function(t,e){var n,r=e.data;if(void 0===(null===(n=null==r?void 0:r.baseData)||void 0===n?void 0:n.opacity)&&(r.baseData.opacity=100),ee(r.baseData,"updataBaseData")){var i=oe(t.list,r.cid);if("object"==typeof i){var o=e.oldData||{};if(r.baseData.left!==o.left||r.baseData.top!==o.top||!(void 0===r.baseData.width&&void 0===r.baseData.height||r.baseData.width===o.width&&r.baseData.height===o.height))if(i.pid){var a=oe(t.list,i.pid);i.baseData.left=Math.max(0,i.baseData.left),i.baseData.top=Math.max(0,i.baseData.top),Object.assign(i.baseData,r.baseData),"object"==typeof a&&(Te(a,a.baseData),t.groupFlag=!t.groupFlag)}else if(Object.assign(i.baseData,r.baseData),e.ratio&&i.children&&i.children.length>0){var s=i.baseData.width/o.width,l=i.baseData.height/o.height;if(!(null==o?void 0:o.width)||!(null==o?void 0:o.height))return;te(i.children,{xRatio:s,yRatio:l})}}}},multipleUpdataBaseData:function(e,n){if(n.ratio)for(var r=n.newData,i=n.oldData,o=r.width/i.width,a=r.height/i.height,s=e.cache.length;s--;)e.cache[s].baseData.left=e.cache[s].baseData.left*o,e.cache[s].baseData.width=e.cache[s].baseData.width*o,e.cache[s].baseData.top=e.cache[s].baseData.top*a,e.cache[s].baseData.height=e.cache[s].baseData.height*a;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=oe(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 o=t.list.filter(function(t){return n.includes(t.cid)});0==o.length&&(o=[oe(t.list,n[0])]);for(var a=0;a<o.length;a++){var s=o[a];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=oe(t.list,s.pid);"object"==typeof l&&(Te(l,l.baseData),t.groupFlag=!t.groupFlag)}}}else console.warn("Warning! please select the component to move.")},updataGroupBaseData:function(e,n){var r=oe(e.list,n.pid),i=t.cloneDeep(r);oe(r.children,n.cid),Te(r,i.baseData)},editGroupBaseData:function(t,e){var n=oe(t.list,e);n.children.forEach(function(t){ye(t,n.baseData)})},syncComponentPositionData:function(t,e){var n=e.cid,r=e.baseData,i=oe(t.list,n);i&&Object.assign(i.baseData,r)},syncBaseData:function(e,n){var r=n.cid,i=n.data,o=n.isContainer,a=function(t){for(var e=0;e<t.length;e++)r===t[e].cid?(t[e].baseData=Object.assign({},t[e].baseData,i),console.log(u({},t[e].baseData))):t[e].hasOwnProperty("children")&&a(t[e].children)},s=Mn(e.list,function(t){void 0!==o&&t.length&&a(t)});if(o)e.list=s;else{var l=oe(s,r);if(l){var c=t.cloneDeep(l.baseData),h=Object.assign({},l.baseData,i);this.commit("GoCom/updataBaseData",{data:{cid:r,baseData:h},oldData:c,ratio:!0})}}},updataItemData:function(t,e){var n=e.cid,r=e.propsName,i=e.propsValue,o=oe(t.list,n);o&&(o[r]=i)},updataOpacity:function(t,e){var n=e.cid,r=e.propsValue,i=oe(t.list,n);"boolean"!=typeof i&&i&&(i.baseData.opacity=r)}},Pn={restDelIds:function(t){t.delIds=""},delListItem:function(e,n){var r=t.cloneDeep(e.list);"string"==typeof n?oe(r,n,!0):n.forEach(function(t){oe(r,t,!0)}),e.delIds=n,e.list=r},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=oe(e.list,e.selectd[n]),i=se(e.list,e.selectd[n]);if("boolean"!=typeof r){var o=t.cloneDeep(r);if(o.pid="",(null==o?void 0:o.stateChildren)||(null==o?void 0:o.children))((null==o?void 0:o.stateChildren)?null==o?void 0:o.stateChildren:null==o?void 0:o.children).forEach(function(t){var e,n,r,i,a=t.cid;if(t.cid=Ee(),t.pid=o.cid,(null==o?void 0:o.stateChildren)&&(null===(n=null===(e=null==o?void 0:o.tmpData)||void 0===e?void 0:e.option)||void 0===n?void 0:n.children)){var s=null===(i=null===(r=null==o?void 0:o.tmpData)||void 0===r?void 0:r.option)||void 0===i?void 0:i.children.find(function(t){return t.cid==a});s&&(s.cid=t.cid)}});if(i){var a=i.children.findIndex(function(t){return t.cid==e.selectd[n]});o=Object.assign({},o,{pid:i.cid,index:a})}else{a=e.list.findIndex(function(t){return t.cid==e.selectd[n]});o=Object.assign({},o,{pid:null,index:a})}e.cloneCache.push(o),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=oe(e.list,e.selectd[r],!0);if("boolean"!=typeof i){var o=t.cloneDeep(i);e.cloneCache.push(o)}}e.selectd=[]}},pasteItem:function(e){var n;try{var r=(null===(n=t.cloneDeep(e.cloneCache))||void 0===n?void 0:n.length)?t.cloneDeep(e.cloneCache):JSON.parse(window.localStorage.getItem("cloneCache"));if(r.length>0){var i=[],o={};ce(r,function(t){var e=Ee();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 a=0,s=t.stateChildren;a<s.length;a++){s[a].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})}t.pid||i.push(t.cid)}),e.selectd.length>0?De(e.selectd,e.list):Se(r),r.forEach(function(t){var n,r,i,o;if(t.baseData.top=t.baseData.top,t.baseData.left=t.baseData.left,t&&t.hasOwnProperty("stateChildren")&&(null===(r=null===(n=null==t?void 0:t.tmpData)||void 0===n?void 0:n.option)||void 0===r?void 0:r.children))for(var a=function(e){e.pid=t.cid;var n=null===(o=null===(i=null==t?void 0:t.tmpData)||void 0===i?void 0:i.option)||void 0===o?void 0:o.children.find(function(t){return t.disName==e.name});n&&(n.cid=e.cid)},s=0,l=t.stateChildren;s<l.length;s++){a(l[s])}if(t.pid){var c=oe(e.list,t.pid);null==c||c.children.splice(t.index,0,t)}else e.list.splice(t.index,0,t)});try{var a=Object.keys(o),s=JSON.stringify(r);(null==a?void 0:a.length)&&a.forEach(function(t){var e=o[t];-1!==s.indexOf(t)&&(s=s.replaceAll(null==t?void 0:t.toString(),null==e?void 0:e.toString()))}),r=JSON.parse(s)}catch(t){}e.selectd=i}}catch(t){console.warn(t)}},updataShow:function(t,e){var n=oe(t.list,e);if("boolean"!=typeof n){var r=!n.isShow;de(n,"isShow",r,"")}},changeShow:function(t,e){var n=e.cid,r=e.flag,i=oe(t.list,n);i&&de(i,"isShow",r,"")},comToggle:function(t,e){var n=oe(t.list,e);n&&pe(n)},updataLock:function(t,e){var n=oe(t.list,e);if("boolean"!=typeof n){var r=!n.isLock;de(n,"isLock",r,"")}},breakUp:function(t,e){var n,r;try{if(!e)throw"Please pass in the component CID correctly!";var i=se(t.list,e),o=oe(t.list,e),a=o.baseData;if(isNaN(a.left)||isNaN(a.top))throw new Error("top or left is NAN");var s=ge(o,t.list);if(s.map(function(t){return t.pid=i?i.cid:""}),i){var l=i.children.findIndex(function(t){return t.cid==e});i.children.splice(l,1),(n=i.children).splice.apply(n,f([l,0],s,!1))}else{l=t.list.findIndex(function(t){return t.cid==e});t.list.splice(l,1),(r=t.list).splice.apply(r,f([l,0],s,!1))}t.selectd=s.map(function(t){return t.cid})}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}),o=t.list[i],a=ge(o);a.map(function(t){return t.pid=""}),t.list.splice(i,1),(n=t.list).push.apply(n,a)}catch(t){console.error(t)}},combinationForShare:function(e,n){try{var r=Ee(),i=oe(e.list,e.selectd[0]);if(i&&i.children)return n(!1),console.info("组件已经是组合状态!"),!1;var o=e.list.findIndex(function(t){return t.cid===e.selectd[0]}),a=void 0,s=void 0;if(o>-1&&(a=e.list.splice(o,1)[0]),a){var l=t.cloneDeep(a.baseData);a.pid=r,a.baseData.left=0,a.baseData.top=0,s={cid:r,isShow:!0,isLock:!1,editer:!1,baseData:l,z:0,toggle:!0,name:"母版-"+a.name,type:"folder",tmpData:{actions:null,option:null,source:Ne},children:[a]}}e.list.splice(o,0,s),ue(e.list),e.selectd=[a.cid],n&&n(s)}catch(t){n(!1),console.info("创建母版群组失败!",t)}},combination:function(e){var n=function(r){var i,o=[],a=[],s=Ee(),l="";e.currentArea=De(e.selectd,r);var c,u=oe(r,e.selectd[0]);(u.pid&&(l=u.pid,oe(r,u.pid)&&oe(r,u.pid).children.length&&n(oe(r,u.pid).children)),u.children&&1===e.selectd.length)?console.info("Sorry, only level 2 is supported group"):(function(t){var n=e.selectd.filter(function(t){if(!e.shareComs.has(t))return t}).map(function(e){return{cid:e,index:t.findIndex(function(t){return t.cid===e})}}).sort(function(t,e){return t.index-e.index});return e.selectd=n.map(function(t){return t.cid}),e.selectd}(r).forEach(function(t){var e=r.findIndex(function(e){return e.cid===t});if(e>-1){o.push(e);var n=r.splice(e,1)[0];n.pid=s,a.push(n)}}),i=o.sort(function(t,e){return t-e})[0],c=1===a.length?t.cloneDeep(a[0].baseData):e.currentArea,Object.assign(c,{angle:0,opacity:100,rotate:0,rotateY:0}),me(c,a),a.length&&r.splice(i,0,{cid:s,pid:l,isShow:!0,isLock:!1,editer:!1,baseData:c,z:0,toggle:!1,name:"群组",type:"folder",origin:"anov-ui",tmpData:{actions:null,option:null,source:Ne},children:a}),ue(r),e.selectd=[s])};n(e.list)},moveUp:function(t,e){try{var n=t.list.findIndex(function(t){return t.cid===e});n>=1?ne(t.list,n-1,n):ie(t.list,"up",e),ue(t.list)}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?ne(t.list,n+1,n):ie(t.list,"down",e),ue(t.list)}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?ne(t.list,0,n):ie(t.list,"top",e),ue(t.list)}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?ne(t.list,r,n):ie(t.list,"bottom",e),ue(t.list)}catch(t){console.error(t)}}},In=a(function(t){t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports});o(In);var Vn={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Rn=function(t){return!(!t||"string"==typeof t)&&(t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&"String"!==t.constructor.name))},Bn=a(function(t){var e=Array.prototype.concat,n=Array.prototype.slice,r=t.exports=function(t){for(var r=[],i=0,o=t.length;i<o;i++){var a=t[i];Rn(a)?r=e.call(r,n.call(a)):r.push(a)}return r};r.wrap=function(t){return function(){return t(r(arguments))}}}),Fn=a(function(t){var e=Object.hasOwnProperty,n=Object.create(null);for(var r in Vn)e.call(Vn,r)&&(n[Vn[r]]=r);var i=t.exports={to:{},get:{}};function o(t,e,n){return Math.min(Math.max(e,t),n)}function a(t){var e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}i.get=function(t){var e,n;switch(t.substring(0,3).toLowerCase()){case"hsl":e=i.get.hsl(t),n="hsl";break;case"hwb":e=i.get.hwb(t),n="hwb";break;default:e=i.get.rgb(t),n="rgb"}return e?{model:n,value:e}:null},i.get.rgb=function(t){if(!t)return null;var n,r,i,a=[0,0,0,1];if(n=t.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(i=n[2],n=n[1],r=0;r<3;r++){var s=2*r;a[r]=parseInt(n.slice(s,s+2),16)}i&&(a[3]=parseInt(i,16)/255)}else if(n=t.match(/^#([a-f0-9]{3,4})$/i)){for(i=(n=n[1])[3],r=0;r<3;r++)a[r]=parseInt(n[r]+n[r],16);i&&(a[3]=parseInt(i+i,16)/255)}else if(n=t.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(r=0;r<3;r++)a[r]=parseInt(n[r+1],0);n[4]&&(n[5]?a[3]=.01*parseFloat(n[4]):a[3]=parseFloat(n[4]))}else{if(!(n=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(n=t.match(/^(\w+)$/))?"transparent"===n[1]?[0,0,0,0]:e.call(Vn,n[1])?((a=Vn[n[1]])[3]=1,a):null:null;for(r=0;r<3;r++)a[r]=Math.round(2.55*parseFloat(n[r+1]));n[4]&&(n[5]?a[3]=.01*parseFloat(n[4]):a[3]=parseFloat(n[4]))}for(r=0;r<3;r++)a[r]=o(a[r],0,255);return a[3]=o(a[3],0,1),a},i.get.hsl=function(t){if(!t)return null;var e=t.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(e){var n=parseFloat(e[4]);return[(parseFloat(e[1])%360+360)%360,o(parseFloat(e[2]),0,100),o(parseFloat(e[3]),0,100),o(isNaN(n)?1:n,0,1)]}return null},i.get.hwb=function(t){if(!t)return null;var e=t.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(e){var n=parseFloat(e[4]);return[(parseFloat(e[1])%360+360)%360,o(parseFloat(e[2]),0,100),o(parseFloat(e[3]),0,100),o(isNaN(n)?1:n,0,1)]}return null},i.to.hex=function(){var t=Bn(arguments);return"#"+a(t[0])+a(t[1])+a(t[2])+(t[3]<1?a(Math.round(255*t[3])):"")},i.to.rgb=function(){var t=Bn(arguments);return t.length<4||1===t[3]?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"},i.to.rgb.percent=function(){var t=Bn(arguments),e=Math.round(t[0]/255*100),n=Math.round(t[1]/255*100),r=Math.round(t[2]/255*100);return t.length<4||1===t[3]?"rgb("+e+"%, "+n+"%, "+r+"%)":"rgba("+e+"%, "+n+"%, "+r+"%, "+t[3]+")"},i.to.hsl=function(){var t=Bn(arguments);return t.length<4||1===t[3]?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"},i.to.hwb=function(){var t=Bn(arguments),e="";return t.length>=4&&1!==t[3]&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"},i.to.keyword=function(t){return n[t.slice(0,3)]}});Fn.to,Fn.get;const jn={};for(const t of Object.keys(Vn))jn[Vn[t]]=t;const Ln={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var Hn=Ln;for(const t of Object.keys(Ln)){if(!("channels"in Ln[t]))throw new Error("missing channels property: "+t);if(!("labels"in Ln[t]))throw new Error("missing channel labels property: "+t);if(Ln[t].labels.length!==Ln[t].channels)throw new Error("channel and label counts mismatch: "+t);const{channels:e,labels:n}=Ln[t];delete Ln[t].channels,delete Ln[t].labels,Object.defineProperty(Ln[t],"channels",{value:e}),Object.defineProperty(Ln[t],"labels",{value:n})}function zn(t,e){return(t[0]-e[0])**2+(t[1]-e[1])**2+(t[2]-e[2])**2}function Yn(t){const e=function(){const t={},e=Object.keys(Hn);for(let n=e.length,r=0;r<n;r++)t[e[r]]={distance:-1,parent:null};return t}(),n=[t];for(e[t].distance=0;n.length;){const t=n.pop(),r=Object.keys(Hn[t]);for(let i=r.length,o=0;o<i;o++){const i=r[o],a=e[i];-1===a.distance&&(a.distance=e[t].distance+1,a.parent=t,n.unshift(i))}}return e}function Un(t,e){return function(n){return e(t(n))}}function qn(t,e){const n=[e[t].parent,t];let r=Hn[e[t].parent][t],i=e[t].parent;for(;e[i].parent;)n.unshift(e[i].parent),r=Un(Hn[e[i].parent][i],r),i=e[i].parent;return r.conversion=n,r}Ln.rgb.hsl=function(t){const e=t[0]/255,n=t[1]/255,r=t[2]/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=o-i;let s,l;o===i?s=0:e===o?s=(n-r)/a:n===o?s=2+(r-e)/a:r===o&&(s=4+(e-n)/a),s=Math.min(60*s,360),s<0&&(s+=360);const c=(i+o)/2;return l=o===i?0:c<=.5?a/(o+i):a/(2-o-i),[s,100*l,100*c]},Ln.rgb.hsv=function(t){let e,n,r,i,o;const a=t[0]/255,s=t[1]/255,l=t[2]/255,c=Math.max(a,s,l),u=c-Math.min(a,s,l),h=function(t){return(c-t)/6/u+.5};return 0===u?(i=0,o=0):(o=u/c,e=h(a),n=h(s),r=h(l),a===c?i=r-n:s===c?i=1/3+e-r:l===c&&(i=2/3+n-e),i<0?i+=1:i>1&&(i-=1)),[360*i,100*o,100*c]},Ln.rgb.hwb=function(t){const e=t[0],n=t[1];let r=t[2];const i=Ln.rgb.hsl(t)[0],o=1/255*Math.min(e,Math.min(n,r));return r=1-1/255*Math.max(e,Math.max(n,r)),[i,100*o,100*r]},Ln.rgb.cmyk=function(t){const e=t[0]/255,n=t[1]/255,r=t[2]/255,i=Math.min(1-e,1-n,1-r);return[100*((1-e-i)/(1-i)||0),100*((1-n-i)/(1-i)||0),100*((1-r-i)/(1-i)||0),100*i]},Ln.rgb.keyword=function(t){const e=jn[t];if(e)return e;let n,r=1/0;for(const e of Object.keys(Vn)){const i=zn(t,Vn[e]);i<r&&(r=i,n=e)}return n},Ln.keyword.rgb=function(t){return Vn[t]},Ln.rgb.xyz=function(t){let e=t[0]/255,n=t[1]/255,r=t[2]/255;e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;return[100*(.4124*e+.3576*n+.1805*r),100*(.2126*e+.7152*n+.0722*r),100*(.0193*e+.1192*n+.9505*r)]},Ln.rgb.lab=function(t){const e=Ln.rgb.xyz(t);let n=e[0],r=e[1],i=e[2];n/=95.047,r/=100,i/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;return[116*r-16,500*(n-r),200*(r-i)]},Ln.hsl.rgb=function(t){const e=t[0]/360,n=t[1]/100,r=t[2]/100;let i,o,a;if(0===n)return a=255*r,[a,a,a];i=r<.5?r*(1+n):r+n-r*n;const s=2*r-i,l=[0,0,0];for(let t=0;t<3;t++)o=e+1/3*-(t-1),o<0&&o++,o>1&&o--,a=6*o<1?s+6*(i-s)*o:2*o<1?i:3*o<2?s+(i-s)*(2/3-o)*6:s,l[t]=255*a;return l},Ln.hsl.hsv=function(t){const e=t[0];let n=t[1]/100,r=t[2]/100,i=n;const o=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,i*=o<=1?o:2-o;return[e,100*(0===r?2*i/(o+i):2*n/(r+n)),100*((r+n)/2)]},Ln.hsv.rgb=function(t){const e=t[0]/60,n=t[1]/100;let r=t[2]/100;const i=Math.floor(e)%6,o=e-Math.floor(e),a=255*r*(1-n),s=255*r*(1-n*o),l=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,l,a];case 1:return[s,r,a];case 2:return[a,r,l];case 3:return[a,s,r];case 4:return[l,a,r];case 5:return[r,a,s]}},Ln.hsv.hsl=function(t){const e=t[0],n=t[1]/100,r=t[2]/100,i=Math.max(r,.01);let o,a;a=(2-n)*r;const s=(2-n)*i;return o=n*i,o/=s<=1?s:2-s,o=o||0,a/=2,[e,100*o,100*a]},Ln.hwb.rgb=function(t){const e=t[0]/360;let n=t[1]/100,r=t[2]/100;const i=n+r;let o;i>1&&(n/=i,r/=i);const a=Math.floor(6*e),s=1-r;o=6*e-a,1&a&&(o=1-o);const l=n+o*(s-n);let c,u,h;switch(a){default:case 6:case 0:c=s,u=l,h=n;break;case 1:c=l,u=s,h=n;break;case 2:c=n,u=s,h=l;break;case 3:c=n,u=l,h=s;break;case 4:c=l,u=n,h=s;break;case 5:c=s,u=n,h=l}return[255*c,255*u,255*h]},Ln.cmyk.rgb=function(t){const e=t[0]/100,n=t[1]/100,r=t[2]/100,i=t[3]/100;return[255*(1-Math.min(1,e*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i))]},Ln.xyz.rgb=function(t){const e=t[0]/100,n=t[1]/100,r=t[2]/100;let i,o,a;return i=3.2406*e+-1.5372*n+-.4986*r,o=-.9689*e+1.8758*n+.0415*r,a=.0557*e+-.204*n+1.057*r,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,a=a>.0031308?1.055*a**(1/2.4)-.055:12.92*a,i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),[255*i,255*o,255*a]},Ln.xyz.lab=function(t){let e=t[0],n=t[1],r=t[2];e/=95.047,n/=100,r/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;return[116*n-16,500*(e-n),200*(n-r)]},Ln.lab.xyz=function(t){let e,n,r;n=(t[0]+16)/116,e=t[1]/500+n,r=n-t[2]/200;const i=n**3,o=e**3,a=r**3;return n=i>.008856?i:(n-16/116)/7.787,e=o>.008856?o:(e-16/116)/7.787,r=a>.008856?a:(r-16/116)/7.787,e*=95.047,n*=100,r*=108.883,[e,n,r]},Ln.lab.lch=function(t){const e=t[0],n=t[1],r=t[2];let i;i=360*Math.atan2(r,n)/2/Math.PI,i<0&&(i+=360);return[e,Math.sqrt(n*n+r*r),i]},Ln.lch.lab=function(t){const e=t[0],n=t[1],r=t[2]/360*2*Math.PI;return[e,n*Math.cos(r),n*Math.sin(r)]},Ln.rgb.ansi16=function(t,e=null){const[n,r,i]=t;let o=null===e?Ln.rgb.hsv(t)[2]:e;if(o=Math.round(o/50),0===o)return 30;let a=30+(Math.round(i/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return 2===o&&(a+=60),a},Ln.hsv.ansi16=function(t){return Ln.rgb.ansi16(Ln.hsv.rgb(t),t[2])},Ln.rgb.ansi256=function(t){const e=t[0],n=t[1],r=t[2];if(e===n&&n===r)return e<8?16:e>248?231:Math.round((e-8)/247*24)+232;return 16+36*Math.round(e/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},Ln.ansi16.rgb=function(t){let e=t%10;if(0===e||7===e)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];const n=.5*(1+~~(t>50));return[(1&e)*n*255,(e>>1&1)*n*255,(e>>2&1)*n*255]},Ln.ansi256.rgb=function(t){if(t>=232){const e=10*(t-232)+8;return[e,e,e]}let e;t-=16;return[Math.floor(t/36)/5*255,Math.floor((e=t%36)/6)/5*255,e%6/5*255]},Ln.rgb.hex=function(t){const e=(((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2]))).toString(16).toUpperCase();return"000000".substring(e.length)+e},Ln.hex.rgb=function(t){const e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let n=e[0];3===e[0].length&&(n=n.split("").map(t=>t+t).join(""));const r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},Ln.rgb.hcg=function(t){const e=t[0]/255,n=t[1]/255,r=t[2]/255,i=Math.max(Math.max(e,n),r),o=Math.min(Math.min(e,n),r),a=i-o;let s,l;return s=a<1?o/(1-a):0,l=a<=0?0:i===e?(n-r)/a%6:i===n?2+(r-e)/a:4+(e-n)/a,l/=6,l%=1,[360*l,100*a,100*s]},Ln.hsl.hcg=function(t){const e=t[1]/100,n=t[2]/100,r=n<.5?2*e*n:2*e*(1-n);let i=0;return r<1&&(i=(n-.5*r)/(1-r)),[t[0],100*r,100*i]},Ln.hsv.hcg=function(t){const e=t[1]/100,n=t[2]/100,r=e*n;let i=0;return r<1&&(i=(n-r)/(1-r)),[t[0],100*r,100*i]},Ln.hcg.rgb=function(t){const e=t[0]/360,n=t[1]/100,r=t[2]/100;if(0===n)return[255*r,255*r,255*r];const i=[0,0,0],o=e%1*6,a=o%1,s=1-a;let l=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=a,i[2]=0;break;case 1:i[0]=s,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=a;break;case 3:i[0]=0,i[1]=s,i[2]=1;break;case 4:i[0]=a,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=s}return l=(1-n)*r,[255*(n*i[0]+l),255*(n*i[1]+l),255*(n*i[2]+l)]},Ln.hcg.hsv=function(t){const e=t[1]/100,n=e+t[2]/100*(1-e);let r=0;return n>0&&(r=e/n),[t[0],100*r,100*n]},Ln.hcg.hsl=function(t){const e=t[1]/100,n=t[2]/100*(1-e)+.5*e;let r=0;return n>0&&n<.5?r=e/(2*n):n>=.5&&n<1&&(r=e/(2*(1-n))),[t[0],100*r,100*n]},Ln.hcg.hwb=function(t){const e=t[1]/100,n=e+t[2]/100*(1-e);return[t[0],100*(n-e),100*(1-n)]},Ln.hwb.hcg=function(t){const e=t[1]/100,n=1-t[2]/100,r=n-e;let i=0;return r<1&&(i=(n-r)/(1-r)),[t[0],100*r,100*i]},Ln.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},Ln.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},Ln.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},Ln.gray.hsl=function(t){return[0,0,t[0]]},Ln.gray.hsv=Ln.gray.hsl,Ln.gray.hwb=function(t){return[0,100,t[0]]},Ln.gray.cmyk=function(t){return[0,0,0,t[0]]},Ln.gray.lab=function(t){return[t[0],0,0]},Ln.gray.hex=function(t){const e=255&Math.round(t[0]/100*255),n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(n.length)+n},Ln.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]};const Gn={};Object.keys(Hn).forEach(t=>{Gn[t]={},Object.defineProperty(Gn[t],"channels",{value:Hn[t].channels}),Object.defineProperty(Gn[t],"labels",{value:Hn[t].labels});const e=function(t){const e=Yn(t),n={},r=Object.keys(e);for(let t=r.length,i=0;i<t;i++){const t=r[i];null!==e[t].parent&&(n[t]=qn(t,e))}return n}(t);Object.keys(e).forEach(n=>{const r=e[n];Gn[t][n]=function(t){const e=function(...e){const n=e[0];if(null==n)return n;n.length>1&&(e=n);const r=t(e);if("object"==typeof r)for(let t=r.length,e=0;e<t;e++)r[e]=Math.round(r[e]);return r};return"conversion"in t&&(e.conversion=t.conversion),e}(r),Gn[t][n].raw=function(t){const e=function(...e){const n=e[0];return null==n?n:(n.length>1&&(e=n),t(e))};return"conversion"in t&&(e.conversion=t.conversion),e}(r)})});var Wn=Gn;const $n=["keyword","gray","hex"],Kn={};for(const t of Object.keys(Wn))Kn[[...Wn[t].labels].sort().join("")]=t;const Xn={};function Zn(t,e){if(!(this instanceof Zn))return new Zn(t,e);if(e&&e in $n&&(e=null),e&&!(e in Wn))throw new Error("Unknown model: "+e);let n,r;if(null==t)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(t instanceof Zn)this.model=t.model,this.color=[...t.color],this.valpha=t.valpha;else if("string"==typeof t){const e=Fn.get(t);if(null===e)throw new Error("Unable to parse color from string: "+t);this.model=e.model,r=Wn[this.model].channels,this.color=e.value.slice(0,r),this.valpha="number"==typeof e.value[r]?e.value[r]:1}else if(t.length>0){this.model=e||"rgb",r=Wn[this.model].channels;const n=Array.prototype.slice.call(t,0,r);this.color=er(n,r),this.valpha="number"==typeof t[r]?t[r]:1}else if("number"==typeof t)this.model="rgb",this.color=[t>>16&255,t>>8&255,255&t],this.valpha=1;else{this.valpha=1;const e=Object.keys(t);"alpha"in t&&(e.splice(e.indexOf("alpha"),1),this.valpha="number"==typeof t.alpha?t.alpha:0);const r=e.sort().join("");if(!(r in Kn))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=Kn[r];const{labels:i}=Wn[this.model],o=[];for(n=0;n<i.length;n++)o.push(t[i[n]]);this.color=er(o)}if(Xn[this.model])for(r=Wn[this.model].channels,n=0;n<r;n++){const t=Xn[this.model][n];t&&(this.color[n]=t(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}Zn.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(t){let e=this.model in Fn.to?this:this.rgb();e=e.round("number"==typeof t?t:1);const n=1===e.valpha?e.color:[...e.color,this.valpha];return Fn.to[e.model](n)},percentString(t){const e=this.rgb().round("number"==typeof t?t:1),n=1===e.valpha?e.color:[...e.color,this.valpha];return Fn.to.rgb.percent(n)},array(){return 1===this.valpha?[...this.color]:[...this.color,this.valpha]},object(){const t={},{channels:e}=Wn[this.model],{labels:n}=Wn[this.model];for(let r=0;r<e;r++)t[n[r]]=this.color[r];return 1!==this.valpha&&(t.alpha=this.valpha),t},unitArray(){const t=this.rgb().color;return t[0]/=255,t[1]/=255,t[2]/=255,1!==this.valpha&&t.push(this.valpha),t},unitObject(){const t=this.rgb().object();return t.r/=255,t.g/=255,t.b/=255,1!==this.valpha&&(t.alpha=this.valpha),t},round(t){return t=Math.max(t||0,0),new Zn([...this.color.map(Jn(t)),this.valpha],this.model)},alpha(t){return void 0!==t?new Zn([...this.color,Math.max(0,Math.min(1,t))],this.model):this.valpha},red:Qn("rgb",0,tr(255)),green:Qn("rgb",1,tr(255)),blue:Qn("rgb",2,tr(255)),hue:Qn(["hsl","hsv","hsl","hwb","hcg"],0,t=>(t%360+360)%360),saturationl:Qn("hsl",1,tr(100)),lightness:Qn("hsl",2,tr(100)),saturationv:Qn("hsv",1,tr(100)),value:Qn("hsv",2,tr(100)),chroma:Qn("hcg",1,tr(100)),gray:Qn("hcg",2,tr(100)),white:Qn("hwb",1,tr(100)),wblack:Qn("hwb",2,tr(100)),cyan:Qn("cmyk",0,tr(100)),magenta:Qn("cmyk",1,tr(100)),yellow:Qn("cmyk",2,tr(100)),black:Qn("cmyk",3,tr(100)),x:Qn("xyz",0,tr(95.047)),y:Qn("xyz",1,tr(100)),z:Qn("xyz",2,tr(108.833)),l:Qn("lab",0,tr(100)),a:Qn("lab",1),b:Qn("lab",2),keyword(t){return void 0!==t?new Zn(t):Wn[this.model].keyword(this.color)},hex(t){return void 0!==t?new Zn(t):Fn.to.hex(this.rgb().round().color)},hexa(t){if(void 0!==t)return new Zn(t);const e=this.rgb().round().color;let n=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===n.length&&(n="0"+n),Fn.to.hex(e)+n},rgbNumber(){const t=this.rgb().color;return(255&t[0])<<16|(255&t[1])<<8|255&t[2]},luminosity(){const t=this.rgb().color,e=[];for(const[n,r]of t.entries()){const t=r/255;e[n]=t<=.04045?t/12.92:((t+.055)/1.055)**2.4}return.2126*e[0]+.7152*e[1]+.0722*e[2]},contrast(t){const e=this.luminosity(),n=t.luminosity();return e>n?(e+.05)/(n+.05):(n+.05)/(e+.05)},level(t){const e=this.contrast(t);return e>=7?"AAA":e>=4.5?"AA":""},isDark(){const t=this.rgb().color;return(2126*t[0]+7152*t[1]+722*t[2])/1e4<128},isLight(){return!this.isDark()},negate(){const t=this.rgb();for(let e=0;e<3;e++)t.color[e]=255-t.color[e];return t},lighten(t){const e=this.hsl();return e.color[2]+=e.color[2]*t,e},darken(t){const e=this.hsl();return e.color[2]-=e.color[2]*t,e},saturate(t){const e=this.hsl();return e.color[1]+=e.color[1]*t,e},desaturate(t){const e=this.hsl();return e.color[1]-=e.color[1]*t,e},whiten(t){const e=this.hwb();return e.color[1]+=e.color[1]*t,e},blacken(t){const e=this.hwb();return e.color[2]+=e.color[2]*t,e},grayscale(){const t=this.rgb().color,e=.3*t[0]+.59*t[1]+.11*t[2];return Zn.rgb(e,e,e)},fade(t){return this.alpha(this.valpha-this.valpha*t)},opaquer(t){return this.alpha(this.valpha+this.valpha*t)},rotate(t){const e=this.hsl();let n=e.color[0];return n=(n+t)%360,n=n<0?360+n:n,e.color[0]=n,e},mix(t,e){if(!t||!t.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t);const n=t.rgb(),r=this.rgb(),i=void 0===e?.5:e,o=2*i-1,a=n.alpha()-r.alpha(),s=((o*a===-1?o:(o+a)/(1+o*a))+1)/2,l=1-s;return Zn.rgb(s*n.red()+l*r.red(),s*n.green()+l*r.green(),s*n.blue()+l*r.blue(),n.alpha()*i+r.alpha()*(1-i))}};for(const t of Object.keys(Wn)){if($n.includes(t))continue;const{channels:e}=Wn[t];Zn.prototype[t]=function(...e){return this.model===t?new Zn(this):e.length>0?new Zn(e,t):new Zn([...(n=Wn[this.model][t].raw(this.color),Array.isArray(n)?n:[n]),this.valpha],t);var n},Zn[t]=function(...n){let r=n[0];return"number"==typeof r&&(r=er(n,e)),new Zn(r,t)}}function Jn(t){return function(e){return function(t,e){return Number(t.toFixed(e))}(e,t)}}function Qn(t,e,n){t=Array.isArray(t)?t:[t];for(const r of t)(Xn[r]||(Xn[r]=[]))[e]=n;return t=t[0],function(r){let i;return void 0!==r?(n&&(r=n(r)),i=this[t](),i.color[e]=r,i):(i=this[t]().color[e],n&&(i=n(i)),i)}}function tr(t){return function(e){return Math.max(0,Math.min(t,e))}}function er(t,e){for(let n=0;n<e;n++)"number"!=typeof t[n]&&(t[n]=0);return t}var nr=Zn,rr=a(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.array2obj=function(t,e){for(var n={},r=0;r<t.length;r++)n[t[r][e]]=t[r];return n},e.assignIn=function t(e,n){if(!n)return e;for(let r in n)r in e&&e[r]&&"object"==typeof e[r]&&!Array.isArray(e[r])?t(e[r],n[r]):e[r]=n[r];return e},e.capitalize=function(t){return`${t[0].toUpperCase()}${t.slice(1)}`},e.deepClone=function(t){return t&&JSON.parse(JSON.stringify(t))},e.determineResourcePath=function(t,e){if(t.startsWith("http"))return t;let n="";n=t.startsWith("/anov-prod")||t.startsWith("./anov-prod")?t:`${e}${t}`;return n},e.getMax=function(t,e){for(var n=0,r=t.length,i=0;i<r;i++){var o=t[i][e];n<o&&(n=o)}return n},e.getValueByPath=r,e.guid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)})},e.queryString=void 0,e.randomStr=function(t=16){let e="";e="string"==typeof t?t:new Array(t).fill("%");let r=new Array(e.length).fill(null);for(let t=0;t<e.length;t++){let i=e[t];if("%"===i){let t=Math.random()*n.length|0;i=n[t]}r[t]=i}return r.join("")},e.round=function(t,e=0){return+t.toFixed(e)},e.scaleLinear=function(t,e,n,r){if(t===e)throw Error("min 和 max 值不能相等");const i=(r-n)/(e-t);return t=>n+i*t},e.setValueByPath=function(t,e,n){if(e.startsWith(".")||e.endsWith("."))throw new Error("path 路径不符合规范,不能以'.'开头或结尾");let i=e;const o=e.lastIndexOf(".");if(o>0){t=r(t,e.slice(0,o)),i=e.slice(o+1)}null!=t&&(t[i]=n)},e.trimEndWhiteLine=e.trimColon=e.stringFormatter=void 0;e.stringFormatter=(t,e)=>t.replace(/\{([^{^}]*)\}/g,(t,n)=>{const i=r(e,n);return void 0===i?"":i});e.queryString=t=>{for(var e=window.location.search.substring(1).split("&"),n=0;n<e.length;n++){var r=e[n].split("=");if(r[0]==t)return r[1]}return!1};const n=[...new Array(26).fill(0).map((t,e)=>String.fromCharCode("a".charCodeAt(0)+e)),...new Array(26).fill(0).map((t,e)=>String.fromCharCode("A".charCodeAt(0)+e)),...new Array(10).fill(0).map((t,e)=>String.fromCharCode("0".charCodeAt(0)+e))];e.trimEndWhiteLine=t=>t.replace(/[::\n\s]+$/gm,"");function r(t,e){if(e.startsWith(".")||e.endsWith("."))throw new Error("path 路径不符合规范,不能以'.'开头或结尾");const n=e.split(".");let r=t;for(let t=0;t<n.length;t++){if(r=r[n[t]],null==r)break}return r}e.trimColon=t=>t.replace(/^\s*[::]\s*$/gm,"")});o(rr),rr.array2obj,rr.assignIn,rr.capitalize,rr.deepClone,rr.determineResourcePath,rr.getMax,rr.getValueByPath,rr.guid,rr.queryString,rr.randomStr,rr.round,rr.scaleLinear,rr.setValueByPath,rr.trimEndWhiteLine,rr.trimColon,rr.stringFormatter;var ir=a(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.setColorByTheme=function(t){r(t,!0)},e.setDefaultColorByTheme=function(t){r(t,!1)},e.setOptionColorByTheme=function(t,e,r){if(console.log(t,e,r),!r||!t||!e)return;let i=Reflect.ownKeys(r);for(let l of i){const i=r[l];let c,u=null,h=1,d=0;if("string"==typeof i)u=i;else if(Reflect.has(i,"key")){var o,a;u=i.key,h=null!==(o=i.opacity)&&void 0!==o?o:1,d=null!==(a=i.opacityStep)&&void 0!==a?a:0}if(u&&(c=(0,rr.getValueByPath)(e,u)),c){s(t,l,(0,n.default)(c),h,d)}}};var n=In(nr);function r(t,e=!0){let{theme:n,option:s,optionDes:l}=t;s&&l&&n&&Object.keys(l).forEach(c=>{"conditionSeries"===l[c].type||"tabs"===l[c].type?function(t,e,n,i,o,a){let s=e.form,l=t;if(Array.isArray(s))for(let t=0;t<s.length;t++){let e,n=s[t];var c;if(a)e=null==l||null===(c=l[t])||void 0===c?void 0:c.form;else e=null==l?void 0:l[t];e&&r({option:e,optionDes:n,theme:i},o)}else{let t=l.length;for(let e=0;e<t;e++){let t;t=a?l[e].form:l[e],r({option:t,optionDes:s,theme:i},o)}}}(s[c],l[c],0,n,e,"conditionSeries"===l[c].type):l[c].theme?s.hasOwnProperty(c)&&function({theme:t,option:e,optionDes:n},r,s){let l;if("color"!=n[r].type||!s&&e[r]){if("bgcolor"==n[r].type&&(s||!e[r]||!e[r].style)){e[r]||(e[r]={});let{key:s,points:c,degree:u,type:h,opacity:d}=n[r].theme;if(c){u||(u=90),h||(h="linear");let n=`${h}-gradient(${u}deg`,s=100/(c.length-1),f=[];c.forEach((e,r)=>{l=i(t,e),n+=`,${o(l,e.opacity)} ${s*r}%`;let{red:c,green:u,blue:h,alpha:p}=a(l,d);f.push({red:c,green:u,blue:h,alpha:p,left:s*r})}),n+=")",e[r].style=n,e[r].degree=u,e[r].flag=c.length?3:2,e[r].points=f,e[r].type=h}else s&&(l=i(t,n[r].theme),e[r]={...a(l,d),style:o(l,d)})}}else{let{opacity:a}=n[r].theme;l=i(t,n[r].theme),e[r]=o(l,a)}}(t,c,e):l[c].hasOwnProperty("type")&&"slot"!=l[c].type&&"textStyle"!=l[c].type&&"sheet"!=l[c].type||l[c].constructor!=Object||r({option:s[c],optionDes:l[c],theme:n},e)})}function i(t,e){if(t[e.key])return t[e.key]||t.color;if(e.key.indexOf(".")>-1){return[t,...e.key.split(".")].reduce((e,n)=>"object"==typeof e&&n in e?e[n]:(l(`属性${n}不存在,获取主题颜色错误,将使用默认主题色`),t.color))}return l(`属性${e.key}不存在,获取主题颜色错误,将使用默认主题色`),t.color}function o(t,e){let{red:n,green:r,blue:i,alpha:o}=a(t,e);return`rgba(${n},${r},${i},${o})`}function a(t,e){return-1!=t.indexOf("#")&&(t=t.substr(1)),null==e&&(e=1),{red:parseInt("0x"+t.slice(0,2)),green:parseInt("0x"+t.slice(2,4)),blue:parseInt("0x"+t.slice(4,6)),alpha:e}}function s(t,e,r,i=1,o=0){const a=e.indexOf("@i");if(a>=0){const n=a>0?e.slice(0,a-1):"",l=n?(0,rr.getValueByPath)(t,n):t,c=e.indexOf(".",a),u=c>=0?e.slice(c):"";if(Array.isArray(l))for(let t=0;t<l.length;t++){s(l,`${t}${u}`,r,+(i+(o||0)*t).toFixed(2),o)}}else{let o=(0,rr.getValueByPath)(t,e);if(o){i=(0,n.default)(o).alpha()}const a=`rgba(${r.red()}, ${r.green()}, ${r.blue()}, ${null===i?1:Math.min(1,Math.max(0,i))})`;(0,rr.setValueByPath)(t,e,a)}}function l(t){console.warn(t)}});o(ir),ir.setColorByTheme,ir.setDefaultColorByTheme;var or=ir.setOptionColorByTheme;function ar(t,e,n,r){return new(n||(n=Promise))(function(i,o){function a(t){try{l(r.next(t))}catch(t){o(t)}}function s(t){try{l(r.throw(t))}catch(t){o(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(a,s)}l((r=r.apply(t,e||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;const sr=3e4,lr=(t="",e)=>{let r=n.create({baseURL:t,timeout:sr,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},cr=function(t){return ar(this,void 0,void 0,function*(){try{let{fontUrl:e,fontName:n}=t;const r="__custom_font__";let i=document.getElementById(r);if(!i){i=document.createElement("style"),i.id=r;const t=document.head||document.getElementsByTagName("head")[0];yield t.appendChild(i)}i.innerText+=`@font-face{font-family:'${n}';src:url(${e});}`}catch(t){console.warn(t)}})},ur=(t,e="jspaths",n)=>ar(void 0,void 0,void 0,function*(){const 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),yield new Promise((t,e)=>{i.addEventListener("load",t),i.addEventListener("error",t)})}),hr=(t,e="jspaths")=>ar(void 0,void 0,void 0,function*(){const n="fonts"===e?cr:ur;yield Promise.all(t.map(t=>n(t)))}),dr=(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 fr(t,e=!1){try{return e?pr(t)?t:JSON.stringify(t):pr(t)?JSON.parse(t):t}catch(e){return console.log("转化JSON 发生错我!",t),t}}const pr=t=>{if("string"==typeof t)try{const e=JSON.parse(t);return"object"==typeof e&&null!==e}catch(t){return!1}return!1},mr=(t,e)=>{try{const n=JSON.stringify(e);sessionStorage.setItem(t,n)}catch(e){console.error(`Error setting session data for key ${t}:`,e)}},gr=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},vr=t=>{for(const e of t)e.code&&(e.code=e.code.replace(/>/g,">").replace(/</g,"<"))},yr=(t,e)=>{t instanceof Map?t.forEach(t=>{e([t])}):Array.isArray(t)&&t.forEach(t=>{e(t.children)})},br=(t,e)=>{const n=t=>{var r,i,o;if(t)for(const a of t){const t=null===(o=null===(i=null===(r=null==a?void 0:a.tmpData)||void 0===r?void 0:r.source)||void 0===i?void 0:i.converse)||void 0===o?void 0:o.data;(null==t?void 0:t.length)&&vr(t),e(a),a.children?n(a.children):a.dynamicChildren?yr(a.dynamicChildren,n):a.stateChildren&&n(a.stateChildren)}};n(t)},wr=(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&&Dr(r,i,n.cid),!0}return!1},_r=(t,e)=>{const n=t.match(/{{\w+}}|@\w+/g);return!!n&&n.map(t=>t.replace(/{{|}}|@/g,"")).includes(e)},Dr=(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)},Sr=(t,e,n)=>{var r,i;let o=!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 console.log(332211),!0;const s=null==e?void 0:e[null==e?void 0:e.type];return((null==s?void 0:s.inputSql)||(null==s?void 0:s.url)||(null==s?void 0:s.headers)||(null==s?void 0:s.params))&&(o=_r(s.inputSql||s.url||(null===(r=s.headers)||void 0===r?void 0:r.value)||s.params,t),wr(s.inputSql||s.url||(null===(i=s.headers)||void 0===i?void 0:i.value)||s.params,n)),o},xr=(e,n,r=!1)=>{let i=null;const o=e=>{for(const a of e){if(a.cid===n){i=a,r&&t.remove(e,t=>t.cid===n);break}if(a.children&&o(a.children),a.dynamicChildren&&Array.isArray(a.dynamicChildren))for(const[,t]of Array.from(a.dynamicChildren))o(t);a.stateChildren&&o(a.stateChildren)}};return o(e),i};function kr(e,n,r){let i=t.cloneDeep(n);const o={};r&&r.forEach(t=>{(null==t?void 0:t.name)&&(o[t.name]=t.value||t.originvalue)});try{return new Function("data","vars",e)(i,o)}catch(e){return console.error(e),i}}const Tr=t=>{let e=window.goFetchList;e&&e[t]&&delete e[t]};function Cr(t){const e=t.match(/\.([^\/\\]+)$/);return e?e[1].toLowerCase():void 0}function Er(t,e){const n=Ar();return(Er=function(t,e){return n[t-=261]})(t,e)}const Or=Er;function Ar(){const t=["7UPegPt","helloX","101103gTMnwz","anov@2019:","149enyQdW","45665RoGNCN","anov@2020:","8508599uBIQaP","426790LJjXRf","188usEQPq","8726DMTNEL","1936DnLjOl","3080442wFrdqQ","8649UPqoeO"];return(Ar=function(){return t})()}!function(){const t=Er,e=Ar();for(;;)try{if(348208==-parseInt(t(263))/1*(parseInt(t(269))/2)+parseInt(t(261))/3+parseInt(t(268))/4*(parseInt(t(264))/5)+-parseInt(t(271))/6*(parseInt(t(273))/7)+-parseInt(t(270))/8*(-parseInt(t(272))/9)+parseInt(t(267))/10+parseInt(t(266))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();var Mr={key:Or(262)+Or(274),vi:Or(265)+Or(274)};const Nr={key:Mr.key,iv:Mr.vi};function Pr(t){let e=Qt.enc.Utf8.parse(Nr.key),n=Qt.enc.Utf8.parse(Nr.iv);return Qt.AES.encrypt(t,e,{iv:n,mode:Qt.mode.CBC,padding:Qt.pad.Pkcs7}).toString()}function Ir(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 Vr=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"]),Rr=URL.createObjectURL(Vr);function Br(t,e,n={},r="worker"){return ar(this,void 0,void 0,function*(){try{if("window"==r){if("string"==typeof e)try{e=JSON.parse(e)}catch(t){console.log("转换失败!")}let[r,i]=[["data"],[e]];"object"==typeof n&&Object.keys(n).forEach(t=>{r.push(t),i.push(n[t])});const o=new Function(...r,t)(...i);return console.log(o,"result"),{success:!0,data:o}}{let[r,i,o]=[e,n,""];"object"==typeof r&&(r=JSON.stringify(e)),"object"==typeof n&&(i=JSON.stringify(n)),Object.keys(n).forEach(t=>o+=`${t},`);let a=`let data=eval(${r}); \n let app=${JSON.stringify({})};`;a+=o?`let {${o}} = eval(${i}); `:"",a+=`${t}`;let s=yield function(t,e=5e3){return ar(this,void 0,void 0,function*(){let n=new Worker(Rr);return new Promise((r,i)=>{const o=()=>{clearTimeout(s),n.removeEventListener("message",a),n.terminate(),n=null},a=t=>{let{code:e,result:n,err:a}=t.data;o(),1===e?r(n):i(a)};n.postMessage({code:t}),n.addEventListener("message",a);let s=setTimeout(()=>{o(),i("timeout")},e)})})}(a);return{success:!0,data:s}}}catch(t){return{success:!1,error:t,data:e}}})}var Fr,jr,Lr,Hr,zr;(zr=Fr||(Fr={})).StaticFile="staticFile",zr.DataSource="datasource",function(t){t.json="application/json;charset=UTF-8",t.form="application/x-www-form-urlencoded; charset=UTF-8"}(jr||(jr={})),function(t){t.get="GET",t.post="POST",t.put="PUT",t.patch="PATCH",t.delete="DELETE"}(Lr||(Lr={}));class Yr{constructor(t){this.db=null,this.dbName=t.databaseName,this.tableName=t.tableName,this.keyPath=t.keyPath}static getInstance(t){return Yr.instance||(Yr.instance=new Yr(t)),Yr.instance}init(){return ar(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 ar(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 ar(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 ar(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 ar(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 ar(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)}})})}}Yr.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"}(Hr||(Hr={}));const Ur={databaseName:"GODB",tableName:"go-log",keyPath:"time"};class qr{constructor(){this.logLevel=Hr.INFO,this.indexedDBInstance=Yr.getInstance(Ur);try{this.indexedDBInstance.init(),console.log("IndexedDB 初始化成功。")}catch(t){console.error("初始化 IndexedDB 时出错:",t)}}static getInstance(){return qr.instance||(qr.instance=new qr),qr.instance}setLogLevel(t){this.logLevel=t}getColor(t){switch(t){case Hr.FATAL:return"[31;1m";case Hr.ERROR:return"[31m";case Hr.WARN:return"[33m";case Hr.INFO:return"[32m";case Hr.DEBUG:return"[36m";case Hr.TRACE:return"[34m";default:return"[0m"}}log(t,e){if(e<=this.logLevel){const n=(new Date).toISOString(),r=`[${n}] [${Hr[e]}]`,i=this.getColor(e);if(null===window||void 0===window?void 0:window.goDev)console.log(`${i}${r} ${t}[0m`);else{let e=gr("anov-go-userInfo"),o=gr("anov-go-proid"),a=` [操作人:${null==e?void 0:e.userName} 项目ID:${o}] `;const s={time:n,value:`${t}`};try{this.indexedDBInstance.addRecord(s)}catch(t){console.error("添加记录时出错:",t)}console.log(`${i}${r} ${a} ${t}[0m`)}}}fatal(t){this.log(t,Hr.FATAL)}error(t){this.log(t,Hr.ERROR)}warn(t){this.log(t,Hr.WARN)}info(t){this.log(t,Hr.INFO)}debug(t){this.log(t,Hr.DEBUG)}trace(t){this.log(t,Hr.TRACE)}}const Gr=qr.getInstance(),Wr=lr();let $r=lr();function Kr(e,n="get",r={},i={},o,a){return ar(this,void 0,void 0,function*(){try{const s={method:Lr[n],url:e,headers:i,timeout:3e4};let l;return["post","put"].includes(n.toLowerCase())?s.data=t.cloneDeep(r):s.params=t.cloneDeep(l),o&&(s.headers.sponsor=o),/.json$/.test(e)?function(t){return ar(this,void 0,void 0,function*(){try{return yield Wr({method:"get",url:t})}catch(t){throw console.error("JSON 数据请求:",t),t}})}(e):function(t,e){return ar(this,void 0,void 0,function*(){try{const n=yield Wr(t);return e?n:{code:2e4,data:(null==n?void 0:n.data)?n.data:n}}catch(t){throw console.error("请求数据发生错误-Error:",t),t}})}(s,a)}catch(t){throw console.error("获取数据:Error:",t),t}})}function Xr(t,e,n,r,i){return ar(this,void 0,void 0,function*(){try{const o=(window.anUrl||"")+(window.agentPath||"/ds/v1/api-proxy/v1/query"),a=fr(n,!0);return yield Wr({url:o,method:"post",headers:{"Content-Type":"application/json;charset=UTF-8",sponsor:i||""},data:{body:"post"===t?a:void 0,headers:pr(r)?fr(r,!0):r,method:t,url:e}})}catch(t){throw console.error("代理请求数据:Error12:",t),t}})}function Zr(t,e,n,r,i,o,a){return ar(this,void 0,void 0,function*(){return i?Xr(e,t,n,r,o):Kr(t,e,n,r,o,a)})}function Jr(t,e="",n){var r,i,o,a;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===(o=ui("YZH_EXCHANGE_TOKEN"))||void 0===o?void 0:o.YZH_EXCHANGE_TOKEN)||(null===(a=null===window||void 0===window?void 0:window.yzhAuth)||void 0===a?void 0:a.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 Wr({method:"POST",url:s,data:{headers:n,param:l},timeout:sr})}function Qr(t="",e,n){const r=`${null===window||void 0===window?void 0:window.BaseUrl}/ds/v1/data-views/query/v1/${n}`;let i={};try{i=t?JSON.parse(t):{}}catch(e){i=t||{}}return Wr({method:"POST",url:r,data:{headers:e,param:i},timeout:sr})}const ti=(t,e)=>ar(void 0,void 0,void 0,function*(){const n=window.BaseUrl,{dateType:r="",endPeriod:i="",metricsName:o=t,startPeriod:a=""}=e;return $r({method:"GET",url:`${n}ds/v1/metrics/v1/data-alarm?dateType=${r}&endPeriod=${i}&metricsName=${o}&startPeriod=${a}`,timeout:sr})}),ei=(t,e,n)=>ar(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 o={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(!o)throw new Error("Invalid data type provided");return Wr(Object.assign({timeout:sr},o))}),ni=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")}),ri=(t,e,n)=>{try{let r;switch(e){case"api":{let e=fi(t,n);return{requestType:e.requestType,url:e.url,params:e.params,headers:e.headers,agency:e.agency,isRawData:!!(null==e?void 0:e.isRawData)&&e.isRawData}}case"static":return{data:t};case"datasource":{const e=di(t.inputSql,n);return{dsName:t.dsName,dsType:"1",sql:Pr(e),filter:t.sqlFilter}}case"staticFile":return{dsName:t.dsName,dsType:t.dsType,sql:""};case"indicator":return r=pi(t,n),{zbId:t.zbId,params:di(r.params,n),headers:di(r.headers,n)};case"dataSet":return{params:di(t.params,n),headers:di(t.headers,n),value:t.value};case"indicatorCQ":return{zbName:t.zbName,params:di(t.params,n)};case"packData":return{};default:throw new Error("Invalid type")}}catch(e){console.log("准备请求数据发生错误",e,t)}},ii=(t,e,n)=>ar(void 0,void 0,void 0,function*(){try{switch(e){case"api":return yield Zr(t.url,t.requestType,t.params,t.headers,t.agency,n,t.isRawData);case"static":return yield ni(t.data);case"datasource":return yield ei(t.dsName,{dsType:t.dsType,sql:t.sql,filter:t.filter},"datasource");case"staticFile":return yield ei(t.dsName,{dsType:t.dsType,sql:t.sql},"staticFile");case"indicator":return yield Jr(t.zbId,t.params,t.headers);case"dataSet":return yield Qr(t.params,t.headers,t.value);case"indicatorCQ":return yield ti(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})})}}),oi=(t,e,n,r=[],i=!1)=>ar(void 0,void 0,void 0,function*(){const o=e||t.tmpData.source.dataType;if(!o)return console.warn(`fetdata error on fetchDataByType', dataType is ${o}`),new Promise((t,e)=>{t({error:!0,data:null,msg:`dataType is ${o}`})});const a=t.tmpData.source["indicatorCQ"==o?"indicator":o];if("globalData"===o){const t=r.find(t=>t.key===a.id||t.key===a.key),e=gr(a.id);if(e&&!i)return e.data;if(t){let e=yield ai(t,n),r={key:a.id,data:e};return mr(a.id,r),e}return}const s=ri(a,o,n),l=yield ii(s,o,t.cid?t.cid:"");return(null==s?void 0:s.isRawData)?l:(null==l?void 0:l.data)?l.data:l}),ai=(t,e)=>ar(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],o=ri(i,r,e),a=yield ii(o,r);return yield si(a.data,n,!0,e)}),si=(e,n,r=!0,i)=>ar(void 0,void 0,void 0,function*(){try{const{converse:o,mapFields:a}=n.tmpData.source;if(o&&o.use&&r){const n=yield function(e,n,r,i){return ar(this,void 0,void 0,function*(){let r,o=e,{use:a,data:s}=t.cloneDeep(n);if(a)for(let e=0;e<s.length;e++)if(s[e].use){let n=s[e].dependVars,a={};i&&a&&n&&n.length&&n.map(e=>{let n=t.cloneDeep(i).filter(t=>{let n=t.mapField==e;return n&&(a[e]=t.value),n});n&&0!=n.length||(a[e]="")}),r=yield Br(s[e].code,o,a,s[e].mode?s[e].mode:"worker"),o=r.data}return o})}(t.cloneDeep(e),o,0,i);return n}return e}catch(t){return console.error("执行过滤器发生错误:",t),e}}),li=(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},ci=(t,e,n=[],r,i,o)=>ar(void 0,void 0,void 0,function*(){try{let a=t.tmpData.source.type,s=yield oi(t,a,n,r,o||!1);if(null==s||!s)return i&&i({error:!0}),Promise.resolve({error:!0});let l=yield si(s,t,e,n);return yield li(t,l),i&&i(l),(null==t?void 0:t.cid)&&Tr(t.cid),Promise.resolve(l)}catch(e){return i&&i(e),Gr.error("Error in updateComData"),console.error("Error in updateComData:",e,t),Promise.reject(e)}}),ui=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},hi=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}},di=(t,e)=>{if(!e)return hi(t);if("string"==typeof t){if(/{{\w+}}/.test(t)){const n=t.replace(/{{(\w+)}}/g,(t,n)=>{const r=e.find(t=>t.mapField===n);return r?String(r.value||r.originalValue||""):t});return hi(n)}return t}if(Array.isArray(t))return t.map(t=>di(t,e));if("object"==typeof t&&null!==t){const n={};for(const r in t)n[r]=di(t[r],e);return n}return t},fi=(t,e)=>{const n=t.agency,r=t,{url:i=null,headers:o,params:a,requestType:s,isRawData:l}=r,c=i?di(i,e):void 0,u=o&&o.use?di(o.value,e):{};return{url:c,requestType:s,params:a?di(a,e):{},headers:u,isRawData:l||!1,agency:n}},pi=(t,e)=>{const{headers:n,params:r}=t,i=n&&n.use?di(n.value,e):{};return{params:r?di(r,e):{},headers:i}},mi=(t,e,n,r,i)=>ar(void 0,void 0,void 0,function*(){if(t&&t.length)for(const o of t)Sr(e,o.value,n)&&(yield ci({tmpData:{source:{type:"globalData",globalData:{id:o.key}}}},!0,n,t,t=>{console.log("数据更新成功-变量改变全局数据跟新")},!0),br(r,e=>{var r,a,s;"globalData"===(null===(a=null===(r=null==e?void 0:e.tmpData)||void 0===r?void 0:r.source)||void 0===a?void 0:a.type)&&(null===(s=null==e?void 0:e.tmpData)||void 0===s?void 0:s.source.globalData).id===o.key&&ci(e,!0,n,t,t=>{i(e,t)},!1)}))}),gi=(t,e,n,r,i)=>ar(void 0,void 0,void 0,function*(){t&&(yield ci({tmpData:{source:{type:"globalData",globalData:{id:t.key}}}},!0,e,n,t=>{console.log("数据更新成功")},!0),br(r,r=>{var o,a,s;"globalData"===(null===(a=null===(o=null==r?void 0:r.tmpData)||void 0===o?void 0:o.source)||void 0===a?void 0:a.type)&&(null===(s=null==r?void 0:r.tmpData)||void 0===s?void 0:s.source.globalData).id===t.key&&ci(r,!0,e,n,t=>{i(r,t)},!1)}))});class vi{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)||0==(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 kr(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,i.field&&(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 vi(t,e)}}class yi{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 yi.instance||(yi.instance=new yi),yi.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,e){if(Array.isArray(t)?t.map((t,e)=>{this.addVariable(t)}):this.addVariable(t),e&&"coms"==e)for(let e of this.variables.values())0==e.model&&(t.some(t=>t.mapField==e.mapField)||this.delVariable(e.mapField));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=vi.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:o,mapField:a,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!==o&&(v.mapping=o),void 0!==a&&(v.mapField=a),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 t?(this.addUrlParamsToGlobalVars(),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)})}}yi.instance=null;const bi=yi.getInstance(),wi=(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)),_i=(t,e,n,r)=>{const i=((t,e,n,r)=>{var i;let o;if(wi(t,null==e?void 0:e.field)||wi(t,null==e?void 0:e.forkValue))o=t[null==e?void 0:e.field]||0==t[null==e?void 0:e.field]?t[null==e?void 0:e.field]:"";else if(wi(t.data,null==e?void 0:e.field)||wi(t.data,null==e?void 0:e.forkValue))o=t.data[null==e?void 0:e.field]||0==t.data[null==e?void 0:e.field]?t.data[null==e?void 0:e.field]:"";else{const t=xr(n,r),a=(null===(i=null==t?void 0:t.tmpData)||void 0===i?void 0:i.actions)||[];for(const t of a){const n=t.vars.find(t=>(null==t?void 0:t.mapField)===(null==e?void 0:e.mapField));if(n){o=n.value;break}}}return o})(t,e,n,r);return void 0!==i?i:e.value},Di=(t,e,n,r,i,o,a,s,l)=>{var c;switch(t.type){case"link":let u=di(t.link,o);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=o.find(t=>t.mapField==n.mapField);r&&(n.value=r.value)}l&&l(t);break;case"dynamic":((t,e,n,r,i)=>{const o=t.dynamic||[];for(const a of o){if(t.id!==e.cid)continue;const o=xr(n,a.pid);o&&(o.activeDynamic=a.name,o.isShow=a.visible||!r||t.index===e.index-1,i({cid:o.cid,flag:a.visible}))}})(t,e,n,r,i);break;case"toggle":((t,e,n,r,i)=>{const o=t.children||[];for(const n of o){const o=n.visible&&(!r||t.index===e.index-1);i({cid:n.cid,flag:o})}})(t,e,0,r,i);break;case"update":((t,e,n,r,i)=>{const o=t.children||[];for(const t of o){const o=xr(e,t.cid);o&&ci(o,!0,n,r,t=>{i({cid:o.cid,data:t})})}})(t,n,o,a,s)}},Si=(e,n,r,i,o,a,s,l,c,u)=>{const{cid:h,actions:d,index:f}=o,{eventName:p,mode:m}=d,g=2===m;((e,n,r,i,o,a)=>{let s=bi.getVariableForId(n.cid);if(null==s?void 0:s.length)for(const l of s)if(l.type==e){let e=_i(n,l,r,i);bi.editVariableForValue(l.mapField,e,()=>{let e=o[l.mapField]||[],n=bi.getForkList(l.mapField);if(n)for(const r of n){let n=o[r.mapField];e=t.concat(e,n)}a&&a(l,t.uniq(e))})}})(p,o,i,h,r,(t,e)=>{if(mi(c,t.mapField,bi.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=xr(i,n);!(null==t?void 0:t.delayUpdate)&&e&&ci(e,!0,bi.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)Di(t,o,i,g,a,bi.getAllVariables(),c,s,l)};const xi=(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},ki=(e,n,r)=>{let i=((e,n)=>{let{option:r,actions:i,data:o,optionDes:a,actionsDes:s,source:l,theme:c}=((e,n)=>{let{option:r,actions:i,data:o,optionDes:a,actionsDes:s,source:l,theme:c}=t.cloneDeep(n[e]);return{option:r,actions:i,data:o,optionDes:a,actionsDes:s,source:l,theme:c}})(e,n);return{iconClass:null,isAssembly:null,source:o,cid:(Math.random().toString().substr(3,10)+Date.now()).toString(),isLock:!1,isShow:!0,tmpData:{option:r,source:xi(o,l),actions:i},baseData:Ti(),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},Ti=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 Ci=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)]}},Ei=()=>{const t=[],e=Ci.pick([!0,!1]);let n=Ci.randomNum(3,20);const r=Ci.pick([null,null,null,{}]);let i=Ci.pick(["asc","desc",void 0,void 0,void 0]);for(let o=0;o<Ci.randomNum(1,9);o++)t.push({data:Ci.generateRandomIntArray(n,0,300,i),type:"line",smooth:e,symbolSize:Ci.randomNum(1,10),lineStyle:{width:Ci.randomNum(1,4)},areaStyle:r});return{xAxis:{type:"category",show:!1,boundaryGap:!1,data:Ci.generateRandomNameArray(n,3,6)},grid:{left:0,top:0,bottom:0,right:0},yAxis:{show:!1,type:"value"},series:t}},Oi=(t,e)=>{let n={type:t,show:!1};return"category"===t&&(n.data=Ci.generateRandomNameArray(e,3,6)),n},Ai=()=>{const t=[],e=Ci.pick([!0,!1]);let n=Ci.randomNum(3,20);const r=Ci.pick([null,null,null,{}]);let i=Ci.pick(["asc","desc",void 0,void 0,void 0]),o=Ci.randomNum(1,9),a=Ci.pick([!0,!1]);for(let s=0;s<o;s++){let o={data:Ci.generateRandomIntArray(n,0,300,i),type:"bar",smooth:e,stack:a,areaStyle:r};t.push(o)}let s=Ci.pick(["value","category"]),l=Ci.pick(["value","category"],s);return{xAxis:Oi(s,n),grid:{left:0,top:0,bottom:0,right:0},yAxis:Oi(l,n),series:t}},Mi=()=>{const t=[];let e=Ci.randomNum(3,20);Ci.pick([null,null,null,{}]);let n=Ci.pick(["asc","desc",void 0,void 0,void 0]),r=Ci.pick([1,2]),i=[Ci.pick(["10%","20%","30%","40%","50%","60%","70%","80%"]),Ci.pick(["90%","100%"])];return t.push({data:Ci.generateRandomIntArray(e,3,20,n),type:"pie",radius:1==r?"100%":i,roseType:1==r?Ci.pick(["area",null,null]):null,padAngle:1==r?0:Ci.randomNum(1,5),startAngle:1==r?Ci.pick([0,180]):0,endAngle:360,label:{show:!1},itemStyle:{borderRadius:3}}),{grid:{left:0,top:0,bottom:0,right:0},series:t}},Ni=()=>{const t=[];Ci.pick([!0,!1]),Ci.randomNum(3,20),Ci.pick([null,null,null,{}]),Ci.pick(["asc","desc",void 0,void 0,void 0]);for(let e=0;e<Ci.randomNum(1,20);e++){let e=Ci.randomNum(3,Ci.randomNum(3,20)),n=[];for(let t=0;t<e;t++){let t=[];for(let e=0;e<2;e++)t.push(Ci.randomNum(1,30));n.push(t)}t.push({type:"scatter",symbolSize:Ci.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}},Pi=()=>{const t=[],e=Ci.pick(["polygon","circle"]);let n=Ci.randomNum(1e4,99999),r=Ci.randomNum(3,10),i=[];for(let t=0;t<r;t++)i.push({name:Ci.randomString(4,8),max:n});for(let e=0;e<Ci.randomNum(2,10);e++)t.push({value:Ci.generateRandomIntArray(r,1e4,n),name:Ci.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}]}},Ii=()=>{const t=[];for(let e=0;e<Ci.randomNum(4,15);e++)t.push({value:Ci.randomNum(1,100),name:Ci.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:Ci.pick(["descending","ascending"]),gap:2,lineStyle:{width:1},data:t}]}};let Vi=Ci.randomNum(5,20);const Ri={width:Vi};Ci.pick([!0,!1])&&(Ri.color=[[.3,"#67e0e3"],[.7,"#37a2da"],[1,"#fd666d"]]);class Bi{constructor(){this.names=["line","bar","pie","scatter","radar","funnel","gauge"]}static getInstance(){return Bi.instance||(Bi.instance=new Bi),Bi.instance}createLine(){switch(Ci.pick(this.names)){case"line":return{type:"line",typeNum:1,option:Ei()};case"bar":return{type:"bar",typeNum:2,option:Ai()};case"pie":return{type:"pie",typeNum:3,option:Mi()};case"scatter":return{type:"scatter",typeNum:4,option:Ni()};case"radar":return{type:"radar",typeNum:5,option:Pi()};case"funnel":return{type:"funnel",typeNum:6,option:Ii()};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:Ci.pick([!0,!1]),width:Vi},axisLine:{lineStyle:Ri},data:[{value:Ci.randomNum(1,100),name:"SCORE"}]}]}}}}}Bi.instance=null;const Fi=Bi.getInstance(),ji=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 o=Ir(this.directions);o&&(this.direction=o);let a=[];if("row"===this.direction){let t=Ir([3,4]);a=this.simulateRandomSegments(24,4,12,t)}else{let t=Ir([2,3]);a=this.simulateRandomSegments(24,4,6,t)}let s=[],l=[];if("row"===this.direction){for(let t=0;t<a.length;t++)if(0==t)s.push({x:0,y:0,w:a[t],h:24,i:t,wStep:r,hStep:i});else{let e=s[t-1].x;s.push({x:a[t-1]+e,y:0,w:a[t],h:24,i:t,wStep:r,hStep:i})}let t=Ir([2,3]),e=this.simulateRandomSegments(24,6,12,t);for(let t=0;t<s.length;t++){const n=s[t];for(let o=0;o<e.length;o++){const a=e[o];l.push({x:n.x,y:a,w:n.w,h:a,i:10*t+o,wStep:r,hStep:i})}}}else{for(let t=0;t<a.length;t++)if(0==t)s.push({x:0,y:0,w:24,h:a[t],i:t,wStep:r,hStep:i});else{let e=s[t-1].y;s.push({x:0,y:a[t-1]+e,w:24,h:a[t],i:t,wStep:r,hStep:i})}for(let t=0;t<s.length;t++){const e=s[t];let n=Ir([1,2,3,4]),o=this.simulateRandomSegments(24,5,12,n),a=[];for(let n=0;n<o.length;n++){const s=o[n];if(0==n)a.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=a[n-1].x;a.push({x:o[n-1]+c,y:e.y,w:s,h:e.h,i:10*t+n,wStep:r,hStep:i}),l.push({x:o[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}=Fi.createLine(),i=e.x*e.wStep+e.w*e.wStep/2,o=e.y*e.hStep+e.h*e.hStep/2,a=e.w*e.wStep,s=e.h*e.hStep;if(3==r||5==r||7==r){let t=Math.min(a,s);a=t,s=t}let l=t.wrapWidth,c=t.wrapHeight;return e.chartsOption=n,e.typeNum=r,e.txt=r+" "+i/l+" "+o/c+" "+a/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 o=t,a=r;for(;a>0;)if(1===a)i.push(o),a--;else{const t=Math.min(n,o-e*(a-1)),r=Math.floor(Math.random()*(t-e+1))+e;i.push(r),o-=r,a--}return i}simulateRandomSegments2(t,e,n,r){const i=[];let o=t,a=r;for(;a>0;)if(1==a){const e=t-i.reduce((t,e)=>t+e,0);i.push(e),a--}else{let t=Math.floor(Math.random()*n),r=Math.max(e,t),s=o-e*a;const l=Math.min(r,s);i.push(l),o-=l,a--}return i}},Li=t=>{try{return JSON.parse(t)}catch(e){return t}},Hi=new class{constructor(){this.requested=new Set,this.dbName="go-db",this.storeName="store",this.init()}init(){return ar(this,void 0,void 0,function*(){const t=indexedDB.open(this.dbName,10);t.onupgradeneeded=t=>{const e=t.target.result;e.objectStoreNames.contains(this.storeName)||e.createObjectStore(this.storeName,{keyPath:"key"})},t.onsuccess=()=>{},t.onerror=t=>{var e;console.error("数据库错误: "+(null===(e=t.target.error)||void 0===e?void 0:e.message))}})}pushCaseIdToRequested(t){this.requested.add(t)}add(t,e){return ar(this,void 0,void 0,function*(){if(!(yield this.isExist(t))){e.caseDetailData&&(e.caseDetailData="string"==typeof e.caseDetailData?Li(e.caseDetailData):e.caseDetailData),this.pushCaseIdToRequested(t);const n=(yield this.getDB()).transaction(this.storeName,"readwrite");n.objectStore(this.storeName).add({key:t,value:e}),n.onerror=t=>{var e;console.error("事务错误: "+(null===(e=t.target.error)||void 0===e?void 0:e.message))}}})}bulkPut(t){return ar(this,void 0,void 0,function*(){const e=(yield this.getDB()).transaction(this.storeName,"readwrite"),n=e.objectStore(this.storeName);for(const e of t){const{caseId:t,id:r}=e,i=`${t}_${r}`;(yield this.isExist(i))||(e.caseDetailData&&(e.caseDetailData=Li(e.caseDetailData)),this.pushCaseIdToRequested(i),n.put({key:i,value:e}))}e.onerror=t=>{var e;console.error("事务错误: "+(null===(e=t.target.error)||void 0===e?void 0:e.message))}})}get(t){return ar(this,void 0,void 0,function*(){if(!(yield this.isExist(t)))return null;const e=(yield this.getDB()).transaction(this.storeName,"readonly").objectStore(this.storeName);return new Promise((n,r)=>{const i=e.get(t);i.onsuccess=t=>{n(t.target.result?t.target.result.value:null)},i.onerror=t=>{var e;r("请求错误: "+(null===(e=t.target.error)||void 0===e?void 0:e.message))}})})}getAllData(){return ar(this,void 0,void 0,function*(){const t=(yield this.getDB()).transaction(this.storeName,"readonly").objectStore(this.storeName);return new Promise((e,n)=>{const r=t.getAll();r.onsuccess=t=>{e(t.target.result)},r.onerror=t=>{var e;n("请求错误: "+(null===(e=t.target.error)||void 0===e?void 0:e.message))}})})}update(t,e){return ar(this,void 0,void 0,function*(){if(yield this.isExist(t)){const n=yield this.get(t),r=Li(e),i=(yield this.getDB()).transaction(this.storeName,"readwrite");i.objectStore(this.storeName).put({key:t,value:Object.assign(Object.assign({},n),{caseDetailData:r})}),i.onerror=t=>{var e;console.error("事务错误: "+(null===(e=t.target.error)||void 0===e?void 0:e.message))}}else console.error("更新 IndexedDB 错误")})}delete(t){this.requested.delete(t),indexedDB.open(this.dbName).onsuccess=e=>{const n=e.target.result.transaction(this.storeName,"readwrite");n.objectStore(this.storeName).delete(t),n.onerror=t=>{var e;console.error("事务错误: "+(null===(e=t.target.error)||void 0===e?void 0:e.message))}}}isExist(t){return ar(this,void 0,void 0,function*(){const e=(yield this.getDB()).transaction(this.storeName,"readonly").objectStore(this.storeName);return new Promise((n,r)=>{const i=e.count(t);i.onsuccess=t=>{n(t.target.result>0)},i.onerror=t=>{var e;r("请求错误: "+(null===(e=t.target.error)||void 0===e?void 0:e.message))}})})}reset(){this.requested.clear(),indexedDB.open(this.dbName).onsuccess=t=>{const e=t.target.result.transaction(this.storeName,"readwrite");e.objectStore(this.storeName).clear(),e.onerror=t=>{var e;console.error("事务错误: "+(null===(e=t.target.error)||void 0===e?void 0:e.message))}}}clear(){return ar(this,void 0,void 0,function*(){const t=(yield this.getDB()).transaction(this.storeName,"readwrite");t.objectStore(this.storeName).clear(),t.onerror=t=>{var e;console.error("事务错误: "+(null===(e=t.target.error)||void 0===e?void 0:e.message))}})}isExistStore(){return ar(this,void 0,void 0,function*(){const t=indexedDB.open(this.dbName);return new Promise(e=>{t.onsuccess=()=>{e(!0)},t.onerror=()=>{e(!1)}})})}getDB(){return ar(this,void 0,void 0,function*(){return new Promise((t,e)=>{const n=indexedDB.open(this.dbName);n.onsuccess=e=>{t(e.target.result)},n.onerror=t=>{var n;e("数据库错误: "+(null===(n=t.target.error)||void 0===n?void 0:n.message))}})})}};function zi(t){!function(t){t.depends?or(t):Yi(t,!1)}(t)}function Yi(t,e=!0){let{theme:n,option:r,optionDes:i}=t;r&&i&&n&&Object.keys(i).forEach(o=>{"conditionSeries"!==i[o].type&&"tabs"!==i[o].type||!r[o]?i[o].theme?r.hasOwnProperty(o)&&function({theme:t,option:e,optionDes:n},r,i){let o;if("color"!=n[r].type||!i&&e[r]){if("bgcolor"==n[r].type&&(i||!e[r]||!e[r].style)){e[r]||(e[r]={});let{key:i,points:a,degree:s,type:l,opacity:c}=n[r].theme;if(a){s||(s=90),l||(l="linear");let n=`${l}-gradient(${s}deg`,i=100/(a.length-1),u=[];a.forEach((e,r)=>{o=Ui(t,e),n+=`,${qi(o,e.opacity)} ${i*r}%`;let{red:a,green:s,blue:l,alpha:h}=Gi(o,c);u.push({red:a,green:s,blue:l,alpha:h,left:i*r})}),n+=")",e[r].style=n,e[r].degree=s,e[r].flag=a.length?3:2,e[r].points=u,e[r].type=l}else i&&(o=Ui(t,n[r].theme),e[r]=Object.assign(Object.assign({},Gi(o,c)),{style:qi(o,c)}))}}else{let{opacity:i}=n[r].theme;o=Ui(t,n[r].theme),e[r]=qi(o,i)}}(t,o,e):i[o].hasOwnProperty("type")&&"slot"!=i[o].type&&"textStyle"!=i[o].type&&"sheet"!=i[o].type||i[o].constructor!=Object||Yi({option:r[o],optionDes:i[o],theme:n},e):function(t,e,n,r,i,o){let a=e.form,s=t;if(Array.isArray(a))for(let t=0;t<a.length;t++){let e,n=a[t];e=o?s[t].form:s[t],Yi({option:e,optionDes:n,theme:r},i)}else{let t=s.length;for(let e=0;e<t;e++){let t;t=o?s[e].form:s[e],Yi({option:t,optionDes:a,theme:r},i)}}}(r[o],i[o],0,n,e,"conditionSeries"===i[o].type)})}function Ui(t,e){return t[e.key]?t[e.key]||t.color:e.key.indexOf(".")>-1?[t,...e.key.split(".")].reduce((e,n)=>"object"==typeof e&&n in e?e[n]:(Wi(`属性${n}不存在,获取主题颜色错误,将使用默认主题色`),t.color)):(Wi(`属性${e.key}不存在,获取主题颜色错误,将使用默认主题色`),t.color)}function qi(t,e){let{red:n,green:r,blue:i,alpha:o}=Gi(t,e);return`rgba(${n},${r},${i},${o})`}function Gi(t,e){return-1!=t.indexOf("#")&&(t=t.substr(1)),null==e&&(e=1),{red:parseInt("0x"+t.slice(0,2)),green:parseInt("0x"+t.slice(2,4)),blue:parseInt("0x"+t.slice(4,6)),alpha:e}}function Wi(t){console.warn(t)}var $i=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,o=t.top,a=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&&o<u&&a>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 o=1;o<t.length;o++){const a=t[o];e=Math.min(e,a.left),n=Math.min(n,a.top),r=Math.max(r,a.left+a.width),i=Math.max(i,a.top+a.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)),o=Math.max(0,Math.min(n.top+n.height,r.top+r.height)-Math.max(n.top,r.top));return i>0&&o>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 o of t){const t=o.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 o=[];for(const t of n){const e=Math.max(...t);o.push(e)}return o}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,o=1/0;n.tmpData.option.textNormal.text;try{const a=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 a){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<o&&n<100&&(o=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 o=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))),a=e.baseData;a.top,a.height;for(const t of o){const e=t.baseData;let n=this.getDistance(a.left,a.top+a.height,e.left,e.top);n<i&&n<a.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 o=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))),a=e.baseData;a.top,a.height;for(const t of o){const e=t.baseData;let n=this.getDistance(a.left,a.top+a.height,e.left,e.top);n<i&&n<a.width&&e.top-a.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 o=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))),a=e.baseData;a.top,a.height;for(const t of o){const e=t.baseData;let n=e.top-a.top;n<i&&n<a.width&&e.top-a.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,o=1/0,a=t.cloneDeep(e).sort((t,e)=>t.baseData.top-e.baseData.top);try{const e=a.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<o&&(o=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,o,a,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)&&(o=i[0],a=i[1]),t.remove(this.list,t=>t.cid==e.cid)}let l=ki("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:o,unit:a},l.tmpData.source.static.originData={text:r,num:o,unit:a}),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 o=t[i];let a=this.findNearestComponentForPoint(e,o,n);if(a&&a.cid&&n.push(a.cid),a){o.baseData.left=a.baseData.left;let e=this.upgradeComponentHeight(o,t,r);e&&e>=30&&(a.baseData=Object.assign({},a.baseData,{top:o.baseData.top+o.baseData.height+this.clearance}))}}}catch(t){console.error("配置优化(ConfigOptimizer):",t)}}upgradeComponentHeight(e,n,r=[]){const i=e;let o=this.findNearestTitleForPoint(t.cloneDeep(n),i);return o?o.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:yi,Http:(t,e)=>"string"!=typeof t?Promise.reject(new Error("URL should be a string")):lr(t,e),Log:Gr,PageLoader:class{constructor(t){this.processedIds=new Set,this.validateAccessResolve=null,t?(t.caseId&&(this.caseId=t.caseId),t.pageId&&(this.pageId=t.pageId),t.mode&&(this.mode=t.mode),t.environment&&(this.environment=t.environment),t.xhr&&(this.xhr=t.xhr),t.staticComponentData&&(this.staticComponentData=t.staticComponentData),t.theme&&(this.theme=t.theme),t.fetchMode&&(this.fetchMode=t.fetchMode)):console.log("初始化错误!"),this.defaultTheme={name:"科技蓝",color:"#006aee",background:"#00000033",pageBackground:"#051836",text:"#F0F0F0",groups:["#006aee","#00eae9","#00a9ec","#00ec80","#edc700","#9913ee"]}}checkHardware(){return ar(this,void 0,void 0,function*(){return yield new Promise((t,e)=>{t("Hardware is not available")})})}checkSecurity(t){return ar(this,void 0,void 0,function*(){return yield new Promise((e,n)=>{"preview"==this.environment?e(0):this.getShareForRelease(t).then(t=>{53107==t.code&&e(1),2e4==t.code&&t.data?(t.data,t.data.loginLimitSwitch?e(1):t.data.hasAuth?e(2):e(3)):e(4)})})})}validateAccess(t,e){return ar(this,void 0,void 0,function*(){return new Promise((n,r)=>{this.validateAccessResolve=n,e&&e(t)})})}initBefore(){return new Promise((t,e)=>{let n=dr("secretFree");n?sessionStorage.setItem("secret-free",n):sessionStorage.setItem("secret-free",null),console.log("运行免登录设置完成!"),t(!0)})}fetchCaseId(t,e){return ar(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}})}getDataForrelease(){return new Promise((t,e)=>{t("data")})}onProjectLoaded(t){}authenticate(){return ar(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"release"===this.environment?this.xhr.get(`/go/v1/go-share/v1/${t}?pwd=${e}&mode=${n}&token=${r}`):this.xhr.get(`/go/v1/go-cases/v1/${t}?mode=${n}&token=${r}`)}getKey(t,e=0){return this.xhr.get(`/go/v1/go-cases/v1/key/${t}?caseMode=${e}`)}getPageData(t,e){return ar(this,void 0,void 0,function*(){if("local"==this.fetchMode){const n=yield Hi.get(t+"_"+e);if(n)return{data:n}}return"release"===this.environment?this.xhr.get(`/go/v1/go-share/v1/${t}/pages/${e}`):this.xhr.get(`/go/v1/go-cases/v1/${t}/pages/${e}`)})}getPageId(t,e){if(null==e?void 0:e.length){if(e.find(e=>e.id==t))return t;let n=e.find(e=>e.caseDetailPath==t||e.caseDetailName==t);return n?n.id:t}return t}fetchProjectForId(t,e="",n=0,r=""){return ar(this,void 0,void 0,function*(){return yield this.findById(t,e,n,r)})}updataPageData(t,e){var n;return ar(this,void 0,void 0,function*(){const r=this.getPageId(e,this.projectInfo.details);let i=yield this.getPageDataForID(t,r);if(null==i?void 0:i.data){let t=yield this.pageInit(i.data);return null===(n=null==this?void 0:this.lifecycleHooks)||void 0===n||n.onPageDataReady(t),t}return this.lifecycleHooks.validateError("请求页面数据失败"),console.error("请求数据发生错误!",i.msg),{type:"error",error:i.msg}})}getPageDataForID(t,e,n){return ar(this,void 0,void 0,function*(){const r=this.getPageId(e,this.projectInfo.details);if(this.processedIds.has(r)&&"local"==this.fetchMode){console.log(`ID ${r} has already been processed.`);const e=yield Hi.get(t+"_"+r);if(e||null==e)return{data:e}}const i=this.getPageData(t,r);this.processedIds.add(r),n&&n.length&&n.map(e=>ar(this,void 0,void 0,function*(){try{if(this.processedIds.has(e))return void console.log(`ID ${r} has already been processed.`);const n=yield this.getPageData(t,e);Hi.add(t+"_"+e,n.data),this.processedIds.add(e)}catch(t){console.error(`Error processing ID ${e}: ${t}`)}}));const o=yield i;return Hi.add(t+"_"+r,o.data),o})}fetchPageDataForId(t,e="",n=0,r=""){return ar(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 ar(this,void 0,void 0,function*(){})}setGlobalThemeVars(t){document.body.style.cssText=`\n --theme-background: ${t.background};\n --theme-color: ${t.color};\n --theme-pageBackground: ${t.pageBackground};\n --theme-text: ${t.text};\n ${t.groups.map((t,e)=>`--theme-groups-${e}: ${t};`).join("\n")}\n `}listenForRenderCompletion(){}showAnimation(){console.log("所有组件渲染完成,显示动画。")}setComTheme(t,e){var n,r;let i=null===(n=this.staticComponentData[e.viewComName])||void 0===n?void 0:n.optionDes,o=null===(r=this.staticComponentData[e.viewComName])||void 0===r?void 0:r.theme;return zi({theme:t,option:e.tmpData.option,optionDes:i,depends:o}),e}getComData(t,e,n,r){return ar(this,void 0,void 0,function*(){return new Promise((r,i)=>{if(t.tmpData&&t.tmpData.source)try{ci(t,!0,e,n,e=>{t.source=e,r(1)})}catch(t){r(t)}else r("")})})}processingData(t){return ar(this,void 0,void 0,function*(){try{let e=this.defaultTheme;return(null==t?void 0:t.theme)&&(e=t.theme),t}catch(e){return console.warn("页面初始化发生错误:",e),t}})}pageInit(t){return ar(this,void 0,void 0,function*(){try{let e=null==t?void 0:t.caseDetailData,n=this.defaultTheme;return(null==e?void 0:e.theme)&&(n=e.theme),this.setGlobalThemeVars(n),bi.clearVars(),bi.addVariables(e.globalVars),bi.getAllVariables(),e}catch(e){return console.warn("页面初始化发生错误:",e),(null==t?void 0:t.data)?t.data:t}})}validate(t,e,n){return ar(this,void 0,void 0,function*(){return new Promise((r,i)=>{((t,n)=>{ar(this,void 0,void 0,function*(){let i=yield this.validateAccess(t,n),o=(null==i?void 0:i.pwd)?i.pwd:"",a=(null==i?void 0:i.mode)?i.mode:this.mode,s=(null==i?void 0:i.token)?i.token:"",l=yield this.fetchProjectForId(e,o,a,s);2e4==(null==l?void 0:l.code)&&(null==l?void 0:l.data)?(this.projectInfo=l.data,console.log("验证成功!"),this.lifecycleHooks.message("验证成功!"),r(!0)):(this.lifecycleHooks.validateError(l),this.lifecycleHooks.message(l.msg,"warning"))})})(t,n)})})}init(t){var e;return ar(this,void 0,void 0,function*(){try{this.lifecycleHooks=t,yield this.checkHardware();let n=yield this.fetchCaseId(this.caseId,this.mode),r=yield this.checkSecurity(n),i=t.onValidateAccess||(()=>{}),o=yield this.validate(r,n,i);(o||0==o)&&t.onCaseReady(this.projectInfo);let a=(null===(e=this.projectInfo)||void 0===e?void 0:e.details).map(t=>t.id),s=this.getPageId(this.pageId,this.projectInfo.details),l=yield this.getPageDataForID(n,s||a[0],a);if(53105===l.code){const e="访问权限不足";return t.onPageDataReady(e),{currentData:this.projectInfo,currentPageData:e}}let c=(null==l?void 0:l.data)?l.data:null;const u=yield this.pageInit(c);return t.onPageDataReady(u),{currentData:this.projectInfo,currentPageData:u}}catch(t){console.error("加载页面时出错:",t)}})}},addPreloadLink:(t,e,n)=>{const r=document.createElement("link");switch(r.rel="preload",r.href=t,r.crossorigin="anonymous",e){case"video":r.as="video";break;case"script":r.as="script";break;case"image":r.as="image"}r.onload=()=>{console.log(`success to preload ${t}`),n&&n()},r.onerror=()=>{console.error(`Failed to preload ${t}`)},document.head.appendChild(r)},agentData:Xr,applyDiff:function t(e,n){const r=Object.assign({},e);for(const e in n)n.hasOwnProperty(e)&&("object"!=typeof n[e]||null===n[e]||Array.isArray(n[e])?r[e]=n[e]:r[e]=t(r[e],n[e]));return r},asyncRecursion:(t,e)=>ar(void 0,void 0,void 0,function*(){const n=t=>ar(void 0,void 0,void 0,function*(){var r,i,o,a;for(const s of t){(null===(a=null===(o=null===(i=null===(r=null==s?void 0:s.tmpData)||void 0===r?void 0:r.source)||void 0===i?void 0:i.converse)||void 0===o?void 0:o.data)||void 0===a?void 0:a.length)&&(yield vr(s.tmpData.source.converse.data)),yield e(s);const t=[s.children,s.dynamicChildren?yield yr(s.dynamicChildren,n):null,s.stateChildren].filter(Boolean);for(const e of t)yield n(e)}});yield n(t)}),delFetchStatus:Tr,diffObjects:function t(e,n){const r={};for(const i in e)if(e.hasOwnProperty(i))if("object"!=typeof e[i]||null===e[i]||Array.isArray(e[i]))Array.isArray(e[i])?JSON.stringify(e[i])!==JSON.stringify(n[i])&&(r[i]=n[i]):e[i]!==n[i]&&(r[i]=n[i]);else{const o=t(e[i],n[i]);null!==o&&Object.keys(o).length>0&&(r[i]=o)}return Object.keys(r).length>0?r:null},displayGenerator:ji,editItem:li,emitEvent:Si,fetchDataByGlobal:ai,fetchDataByType:oi,filterData:si,findItemDeep:xr,findItemDeep2:(e,n,r)=>{let i=!1;const o=e=>{for(let a=0;a<e.length;a++){if(e[a].cid==n){i=e[a],r&&t.remove(e,t=>t.cid==n);break}if(e[a].children)o(e[a].children);else if(e[a].dynamicChildren){if(e[a].dynamicChildren instanceof Map){let t=Array.from(e[a].dynamicChildren);for(let e=0;e<t.length;e++)if(t[e]instanceof Array){let n=t[e][1];o(n)}}else if(e[a].dynamicChildren instanceof Array){let t=e[a].dynamicChildren;for(let e=0;e<t.length;e++)if(t[e]instanceof Array){let n=t[e][1];o(n)}}}else e[a].stateChildren&&o(e[a].stateChildren)}};return o(e),i||!1},getData:Kr,getDataForApi:Zr,getDataForDataSet:Qr,getDataForSource:ei,getDataForStatic:ni,getDataForZb:Jr,getDataForZbCQ:ti,getResourceForComponent:t=>{const e=[];let n=function(t){return t.endsWith("/")?t.slice(0,-1):t}(window.baseUrl);return br(t,t=>{var r,i,o,a,s,l,c,u,h;if("AnDeckHeader3"==t.viewComName&&(null===(o=null===(i=null===(r=null==t?void 0:t.tmpData)||void 0===r?void 0:r.option)||void 0===i?void 0:i.bgImage)||void 0===o?void 0:o.path)){let r=Cr(t.tmpData.option.bgImage.path);e.push({type:r,url:n+t.tmpData.option.bgImage.path})}if("AnVideoNormal"==t.viewComName&&(null===(s=null===(a=null==t?void 0:t.tmpData)||void 0===a?void 0:a.option)||void 0===s?void 0:s.dynamicUrl)){let r=Cr(null===(c=null===(l=null==t?void 0:t.tmpData)||void 0===l?void 0:l.option)||void 0===c?void 0:c.dynamicUrl);e.push({type:r,url:n+(null===(h=null===(u=null==t?void 0:t.tmpData)||void 0===u?void 0:u.option)||void 0===h?void 0:h.dynamicUrl)})}}),e},getSessionData:gr,getStandardData:fr,getStringVars:wr,getStringVars2:_r,getUrlParams:dr,getVarDefaultVal:_i,globalVars:bi,hasVar:Sr,isJSON:pr,loadFont:t=>ar(void 0,void 0,void 0,function*(){t.fonts&&t.fonts.length&&(yield hr(t.fonts,"fonts"))}),loadFontResource:cr,loadScript:ur,loadTag:({jspaths:e=[],csspaths:n=[],fonts:r=[]})=>ar(void 0,void 0,void 0,function*(){const i=t.uniqBy(r,"fontName");yield Promise.all([hr(e,"jspaths"),hr(n,"csspaths"),hr(i,"fonts")])}),recursion:br,removeTag:()=>{var t;(null==(t=document.getElementById("__custom_font__"))?void 0:t.parentNode)&&t.parentNode.removeChild(t),Array.from(document.getElementsByTagName("script")).filter(t=>"jspaths"==t.className).forEach(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(t=>"csspaths"==t.className).forEach(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)})},replaceVariable:di,replaceVariable2:(t,e)=>{if(!e)return hi(t);if("string"==typeof t){if(""===t.trim())return"";try{if("string"!=typeof JSON.parse(t))return"number"==typeof JSON.parse(t)?t:di(JSON.parse(t),e);{let n=t.replace(/@(\w+)|{{(\w+)}}/g,(t,n,r)=>{const i=n||r,o=e.find(t=>t.mapField===i);if(o){const t=o.value||o.originalValue;return console.log(t,"123123131"),"number"==typeof t?t:String(t)}return t});return hi(n)}}catch(n){let r=t.replace(/@(\w+)|{{(\w+)}}/g,(t,n,r)=>{const i=n||r,o=e.find(t=>t.mapField===i);if(o){const t=o.value;return console.log(t,"value"),"number"==typeof t?t:String(t)}return t});return hi(r)}}else{if(Array.isArray(t))return t.map(t=>di(t,e));if("object"==typeof t&&null!==t){const n={};for(let r in t)n[r]=di(t[r],e);return hi(n)}}return hi(t)},replaceVariable3:(t,e)=>{if(!e)return hi(t);if("string"==typeof t){if(""===t.trim())return"";console.log(t,"value");const n=t.replace(/{{(\w+)}}/g,(t,n)=>{const r=e.find(t=>t.mapField===n);if(r){const t=r.value||r.originalValue||"";return"number"==typeof t||"boolean"==typeof t?t:`${String(t)}`}return t});return console.log(n,"replacedValue"),hi(n)}if(Array.isArray(t))return t.map(t=>di(t,e));if("object"==typeof t&&null!==t){const n={};for(const r in t)n[r]=di(t[r],e);return hi(n)}return hi(t)},replaceVariable4:(t,e)=>{if(!e)return hi(t);if("string"==typeof t){if(""===t.trim())return"";const n=t.replace(/{{(\w+)}}/g,(t,n)=>{const r=e.find(t=>t.mapField===n);if(r){const t=r.value||r.originalValue||"";if("string"==typeof t)return/^[0-9]+$/.test(t)?t:`"${t}"`;if("number"==typeof t||"boolean"==typeof t)return t}return t});return hi(n)}if(Array.isArray(t))return t.map(t=>di(t,e));if("object"==typeof t&&null!==t){const n={};for(const r in t)n[r]=di(t[r],e);return hi(n)}return hi(t)},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:kr,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:mr,updataGlobalDataSourceForVar:mi,updateComData:ci,updateGlobalDataSource:gi}),Ki=function(e,n,r,i,o){var a;try{var s={},l=[],c=[],u=[],h=t.cloneDeep(e);return(null===(a=null===window||void 0===window?void 0:window.go)||void 0===a?void 0:a.dev)&&ce(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,o=null===(r=null==t?void 0:t.tmpData)||void 0===r?void 0:r.actions;i<o.length;i++){var a=o[i];if("toggle"==a.behave){var s=a.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}}))}}}}),ce(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});Oe({types:r,element:t,actions:l,events:c,eventsComs:u,filter:o})}}),bi.addVariables(l),l=bi.getAllVariables(),ce(h,function(t){var e,n=null===(e=null==t?void 0:t.tmpData)||void 0===e?void 0:e.source;Xi(n,l,t,s)}),{shareVariableTree:s,globalVars:bi.getAllVariables(),globalEvents:c.filter(function(t){return t}),eventsComs:u}}catch(t){return console.error("error",t),{}}},Xi=function(t,e,n,r){var i,o,a;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){Ji(r,t,n.cid)})}),(null==s?void 0:s.inputSql)&&Zi(null==s?void 0:s.inputSql,e,n,r),(null==s?void 0:s.url)&&Zi(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===(o=null==s?void 0:s.headers)||void 0===o?void 0:o.value)&&Zi(null===(a=null==s?void 0:s.headers)||void 0===a?void 0:a.value,e,n,r),(null==s?void 0:s.params)&&Zi(null==s?void 0:s.params,e,n,r)}},Zi=function(t,e,n,r){"string"!=typeof t&&(t=JSON.stringify(t));var i=t.match(/({{[\w]*}})|((@)[\w]*)/gm);if(i){var o=i.map(function(t){return t.replace(/{{|}}|@/gm,"")});if(n)for(var a=function(t){var i=o[t];if(!i||!e||e.findIndex(function(t){return t.mapField===i})<0)return"continue";n&&r&&Ji(r,i,n.cid)},s=0;s<o.length;s++)a(s);else{var l=function(t){var i=o[t];return!i||!e||e.findIndex(function(t){return t.mapField===i})<0?"continue":(n&&r&&Ji(r,i,n.cid),{value:!0})};for(s=0;s<o.length;s++){var c=l(s);if("object"==typeof c)return c.value}}}return!1},Ji=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)},Qi=function(t){if("string"==typeof t)try{var e=JSON.parse(t);return!("object"!=typeof e||!e)}catch(t){return!1}return!1};function to(e){var n=[],r=[];ce(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 o=t.tmpData.actions.map(function(t){return t.eventType});Oe({types:o,element:t,actions:n,events:r})}});var i=r.filter(function(t){return t});return{actions:n,events:i}}var eo={addGlobalSource:function(t,e){var n=e.name,r=e.value,i=Ee();t.globalSource.push({key:i,name:n,value:r}),gi({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,o=t.globalSource.find(function(t){return t.key==r});o&&(o.name=e.name,o.value=i,gi(o,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]=u({},e)},addVarForCom:function(e,n){try{var r=t.uniqWith(to([n]).actions);bi.addVariables(r,"cams")}catch(t){console.warn("添加变量发生错误:",t)}},addGoRunVar:function(t,e){try{var n=Ki(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)})),o=1,a=0;a<i.length;a++)o++;var s="".concat(r," (").concat(o,")"),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=Ki(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=oe(t.list,n);"boolean"!=typeof i&&i&&fe(i,r)}this.commit("GoCom/execute")},goSynchroData:function(e,n){if(e){var r=n.cid,i=n.attr,o=n.value,a=n.attrModel,s=oe(e.list,r);if("boolean"!=typeof s){if(s&&de(s,i,o,a),"actions"===i.toLowerCase()){var l=e.list,c=t.uniqWith(t.concat(to(l).actions,to(e.caseList).actions),t.isEqual),u=t.uniqWith(t.concat(to(l).events,to(e.caseList).events),t.isEqual);bi.addVariables(c,"cams"),e.globalVars=bi.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"},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}),bi.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 o=i[n],a=t.value;o.mapField==t.mapField?o.value=a:o.fork&&t.mapField==o.forkValue?(o.converter&&o.converterCode,o.originalValue=a):r.push(t)}}),r}},no={updataList:function(t,e){var n=e.cid,r=Mn(e.list,function(t){var e=oe(t,n),r=e.pid,i=ae(t,n),o=function(t){for(var e=0;e<t.length;e++){var n=t[e];Te(n,n.baseData,0,!0)}},a=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=f([oe(t,r)],ae(t,r),!0),c=a(l),h=a(i);e.baseData=u(u({},e.baseData),be(e.baseData,c)),e.baseData=u(u({},e.baseData),be(e.baseData,h,1)),o(l),o(i)}else{h=a(i);e.baseData=u(u({},e.baseData),be(e.baseData,h,1)),o(i)}r&&0==i.length&&(e.pid="",function(e,n){var r=ae(t,n),i=oe(t,n);if(0===r.length)e.baseData=u(u({},e.baseData),be(e.baseData,i.baseData));else{r=f([i],r,!0);var s=a(r);e.baseData=u(u({},e.baseData),be(e.baseData,s))}o(f([i],r,!0))}(e,r)),s(t),ue(t)});t.list=r},updataListForContrast:function(e,n){var r=n.cid,i=n.list,o=oe(i,r);se(i,r);var a=se(e.list,r);if(!o.pid){o.pid=a.cid;var s=t.cloneDeep(o.baseData),l=be(o.baseData,a.baseData,1);Object.assign(o.baseData,l),Te(a,s)}ue(e.list)},updateTree:function(e){for(var n=e.list,r=0;r<n.length;r++){var i=n[r];if(i.pid)(s=oe(n,i.pid))&&Object.assign(i.baseData,be(i.baseData,s.baseData));if(i.children)for(var o=0;o<i.children.length;o++){var a=i.children[o];if(a.pid!=i.cid){var s=oe(n,a.pid);if(t.cloneDeep(a.baseData),s){Object.assign(a.baseData,be(a.baseData,s.baseData));var l=be(a.baseData,i.baseData,1);Object.assign(a.baseData,l),Te(i,i.baseData)}a.pid=i.cid}}}ue(n)}},ro=si,io=function(t,e,n,r,i,o,a){return void 0===n&&(n=!0),h(void 0,void 0,void 0,function(){var o;return d(this,function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,ci(t,n,e,i,function(t){r&&r(t)},a)];case 1:return[2,s.sent()];case 2:return o=s.sent(),r&&r(o),console.log("error:11"+o),[3,3];case 3:return[2]}})})},oo=function(t,e,n,r,i,o){void 0===o&&(o=!0),t&&ci(t,o,e,[],function(e){n({cid:t.clientWidth,data:e})})},ao=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,o,a,s,l,c=null===(i=null==e?void 0:e.tmpData)||void 0===i?void 0:i.source,u=null===(a=null===(o=c[null==c?void 0:c.type])||void 0===o?void 0:o.autoUpdate)||void 0===a?void 0:a.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(){io(e,n,!0,function(t){r({cid:e.cid,data:t})})},1e3*h)},autoUpdateGlobalSource:function(e,n,r,i){var o,a,s,l,c,u=null===(o=null==e?void 0:e.value)||void 0===o?void 0:o.type,h=null===(s=null===(a=e.value[u])||void 0===a?void 0:a.autoUpdate)||void 0===s?void 0:s.open,d=null===(c=null===(l=e.value[u])||void 0===l?void 0:l.autoUpdate)||void 0===c?void 0:c.time;h&&t.isNumber(d)&&d>0&&setInterval(function(){gi(e,n,[e],r,i)},1e3*d)},axios:n,filterData:ro,getDataForEvaluator:y,parseSource:function(t,e,n,r,i,o,a,s){void 0===r&&(r=!0);ci(e,r,n,[],function(t){i(t),("AnContainer"===(null==e?void 0:e.viewComName)&&r||"AnGridLayout"===(null==e?void 0:e.viewComName)&&r)&&Pe(e)},s)},refreshData:oo,updateComData:io}),so=function(t){return h(this,void 0,void 0,function(){var e,n,r,i,o;return d(this,function(a){switch(a.label){case 0:return a.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:a.sent(),a.label=2;case 2:return i.innerText+="@font-face{font-family:'".concat(n,"';src:url(").concat(e,");font-display: block;}"),[3,4];case 3:return o=a.sent(),console.warn(o),[3,4];case 4:return[2]}})})},lo=function(t,e,n){return void 0===e&&(e="jspaths"),h(void 0,void 0,void 0,function(){var r,i;return d(this,function(o){switch(o.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 o.sent(),[2]}})})},co=function(t,e){return void 0===e&&(e="jspaths"),h(void 0,void 0,void 0,function(){var n;return d(this,function(r){switch(r.label){case 0:return n="fonts"===e?so:lo,[4,Promise.all(t.map(function(t){return n(t)}))];case 1:return r.sent(),[2]}})})},uo=function(t){return h(void 0,void 0,void 0,function(){return d(this,function(e){switch(e.label){case 0:return t.fonts&&t.fonts.length?[4,co(t.fonts,"fonts")]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}})})},ho=function(e){var n=e.jspaths,r=void 0===n?[]:n,i=e.csspaths,o=void 0===i?[]:i,a=e.fonts,s=void 0===a?[]:a;return h(void 0,void 0,void 0,function(){var e;return d(this,function(n){switch(n.label){case 0:return e=t.uniqBy(s,"fontName"),[4,Promise.all([co(r,"jspaths"),co(o,"csspaths"),co(e,"fonts")])];case 1:return n.sent(),[2]}})})},fo=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 po={reset:function(t){t.selectd=[],t.list=[],t.plant=null,t.tw=null,t.watermark=null,t.endnotes=null,t.globalConstant=[],t.currentSelectShareComId=""},setFonts:function(t,e){t.resource.fonts.push({fontName:e.name,fontUrl:e.src}),uo(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,o=["name","path","id"];if(!o.includes(n))throw new Error("页面跳转错误!".concat(n," 不是一个正确的参数 请填以下参数 ").concat(o.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=oe(t.list,e);if("boolean"!=typeof r){(null==r?void 0:r.children)&&(null==r||r.children),io(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(f([n],r,!0)));for(var o=[],a=0,s=i;a<s.length;a++){var l=s[a];e.shareVariableTree[l]&&o.push.apply(o,e.shareVariableTree[l])}if(null==o?void 0:o.length)for(var c=0,u=o;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,fo(),ho(t.resource)},updataResource:function(t){fo(),ho(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,ue(t.list)},saveDynamicChildren:function(t,e){var n=e.cid,r=e.data,i=e.name,o=t.pages[t.pageIndex].list,a=oe(o,n);a&&(a.activeDynamic=i,a.dynamicChildren instanceof Array&&(a.dynamicChildren=new Map(a.dynamicChildren)),a.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),bi.addVariables(r),e.globalVars=bi.getAllVariables(),ue(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,o=oe(i,n);"boolean"!=typeof o&&Object.assign(o,r)},updataComponentForCaseList:function(t,e){var n=e.cid,r=e.data,i=t.caseList,o=oe(i,n);"boolean"!=typeof o&&Object.assign(o,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,o=oe(i,n);"boolean"!=typeof o&&Object.assign(o,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=oe(t.list,n);"boolean"!=typeof i&&("indicatorCQ"===i.tmpData.source.type?i.tmpData.source.indicator.data=r: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 o=oe(e.list,r);"boolean"!=typeof o&&(o.source=t.cloneDeep(i))}},updataAnimationForComponent:function(t,e){var n=e.cid,r=e.data;if(t.list.length){var i=oe(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=oe(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){ye(t.list.find(function(t){return t.cid===e[0]}),e[1])},setSelect:function(t,e){t.currentSelectShareComId&&(t.currentSelectShareComId=""),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,i=t.cloneDeep(n),o=i.id,a=i.multiple,s=i.origin,l=i.ctr,c=i.interval,u=t.cloneDeep(e.selectd);if(e.currentSelectShareComId&&(e.currentSelectShareComId=""),a){var h=u.includes(o);if(u.length>=1){var d=u.every(function(t){return le(e.list,t,n.id)});if(!d)return void console.info("sorry Only sibling elements can be selected!")}if(h?u.splice(u.findIndex(function(t){return t===o}),1):u.push(o),c&&2==u.length){var f=[],p=e.list;u.forEach(function(t){var n=oe(e.list,t);if(n.pid){var r=oe(e.list,n.pid);p=r.children;var i=r.children.findIndex(function(e){return e.cid==t});f.push(i)}else{i=e.list.findIndex(function(e){return e.cid==t});f.push(i)}});var m=f[0],g=f[1];console.log(m,"startIndex",g),m>g&&(m=(r=[g,m])[0],g=r[1]),u=p.slice(m,g+1).map(function(t){return t.cid})}e.selectd=u}else e.selectd=[o];e.selectd.forEach(function(t){var n=oe(e.list,t);if(n.pid){var r=oe(e.list,n.pid);r&&(r.toggle=!0)}l||(n.toggle=!0)}),e.selectdChangeOrigin=s||""},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){Ce(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||"AnMasking"==r.viewComName?e.list.push(r):e.list.unshift(r),e.menuList=t.cloneDeep(e.list),ue(e.list),this.commit("GoCom/execute")},addComsForParent:function(e,n){var r=n.com,i=n.isMobile,o=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",[])),o){var a=oe(e.list,o);i?(a.children=[],a.children.push(r)):a.children.unshift(r)}else i?e.list.splice(0,1,r):e.list.unshift(r);e.menuList=t.cloneDeep(e.list),ue(e.list),this.commit("GoCom/execute")},addMyComs:function(e,n){var r;try{var i=n.data,o=n.shareVariableTree,a=n.globalVars,s=n.globalEvents;e.globalVars=t.uniq(t.concat(t.cloneDeep(e.globalVars),a)),e.globalEvents=t.uniq(t.concat(t.cloneDeep(e.globalEvents),s));var l=Object.keys(o),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]),o[n])}):e.shareVariableTree=Object.assign(t.cloneDeep(e.shareVariableTree),o),i instanceof Array?(he(i),(r=e.list).unshift.apply(r,i)):(he([i]),e.list.unshift(i)),e.menuList=t.cloneDeep(e.list),ue(e.list),this.commit("GoCom/execute")}catch(t){}},addStateChildren:function(t,e){var n=oe(t.list,e.pid);n&&n.stateChildren.push(e)},addDynamicChildren:function(t,e){var n=oe(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),o=oe(i,n[0]),a=oe(i,n[1]),s=oe(i,o.pid),l={},c=0,u=0;if(a)if("selectContainer"==a.componentType){var h=oe(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=oe(i,n[0]),i=i.filter(function(t){return t.cid!==l.cid})),l.cid=Ee(),l.pid=h.cid,h.children.push(l)}else if(o.pid||a.pid)if(s)if(c=t.findIndex(s.children,function(t){return t.cid==n[0]}),l=s.children[c],o.pid!==a.pid){h=oe(i,a.pid);u=t.findIndex(h.children,function(t){return t.cid==n[1]});d=h.children[u];l.cid=Ee(),l.pid=h.cid,d.cid=Ee(),d.pid=s.cid,s.children.splice(c,1,d),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,f([u,1],s.children.splice(c,1,s.children[u]),!1));else{var h=oe(i,a.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=oe(i,o.cid);var d=h.children[u];l.cid=Ee(),l.pid=h.cid,d.cid=Ee(),d.pid=null,i.splice(c,1,d),h.children.splice(u,1,l)}else re(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=Ee(),l.pid=null,i.push(l);e.list=i,ue(e.list)}catch(t){console.warn("组件位置交换发生错误",t)}},changeDynamicState:function(t,e){var n=oe(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,o=e.value,a=oe(t.list,r);if(!a)return;if("string"!=typeof i)return void console.error("key:[".concat(i,"]格式错误"));var s=null===(n=null==a?void 0:a.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]=o: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),ue(e.list),this.commit("GoCom/execute")},updataName:function(t,e){var n=oe(t.list,e.cid);n&&(n.name=e.name)},setDynamicActive:function(t,e){e.cid;var n=e.name,r=oe(t.list,e.cid);r&&"dynamicComponent"==r.componentType&&(r.activeDynamic=n)},updataScroll:function(t,e){e.cid;var n=e.data,r=oe(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=oe(t.list,e.cid);r&&"dynamicComponent"==r.componentType&&(r.dyOption=n)},setCurrentEdited:function(t,e){if(e){var n=oe(t.list,e);if("boolean"!=typeof n){var r=ge(n);n.children=r}t.currentEditerCid=e}else t.currentEditerCid=""},setDynamicLine:function(e,n){var r=t.cloneDeep(e.list),i=oe(r,n.cid);r.length&&"boolean"!=typeof i&&(i.lines=Object.assign({},i.lines,n.lines)),e.list=r}},mo={layout:function(e,n){var r=function(e,n){try{var r=e.map(function(t){var e=oe(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){1===e.length&&(e[0].baseData.left=0);var n=t.sortBy(e,function(t){return t.baseData.left}),r=n[0].baseData.left;e.map(function(t){return t.baseData.left=r})}(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}),o=1*i[i.length-1].baseData.left+1*i[i.length-1].baseData.width;e.map(function(t){return t.baseData.left=o-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}),o=t.sortBy(e,function(t){return 1*t.baseData.left+1*t.baseData.width}),a=(1*i[0].baseData.left+(1*o[o.length-1].baseData.left+1*o[o.length-1].baseData.width))/2;e.map(function(t){return t.baseData.left=a-t.baseData.width/2})}(r,e);break;case"alignTop":!function(e){1===e.length&&(e[0].baseData.top=0);var n=t.sortBy(e,function(t){return t.baseData.top}),r=1*n[0].baseData.top;e.map(function(t){return t.baseData.top=r})}(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}),o=1*i[i.length-1].baseData.top+1*i[i.length-1].baseData.height;e.map(function(t){return t.baseData.top=o-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}),o=t.sortBy(e,function(t){return 1*t.baseData.top+1*t.baseData.height}),a=(1*i[0].baseData.top+(1*o[o.length-1].baseData.top+1*o[o.length-1].baseData.height))/2;e.map(function(t){return t.baseData.top=a-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,o=(r-i)/(n.length-1);n.map(function(t,e){e>0&&e<n.length-1&&(t.baseData.left=i-t.baseData.width/2+o*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,o=(r-i)/(n.length-1);n.map(function(t,e){e>0&&e<n.length-1&&(t.baseData.top=i-t.baseData.height/2+o*e)})}(r)}}},go={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,o=t.name,a=t.theme,s=t.plant,l=t.shareVariableTree,c=t.resource;t.pages[t.pageIndex]={globalEvents:n,globalVars:r,list:i,name:o,theme:a,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,o=t.name,a=t.theme,s=t.plant,l=t.shareVariableTree,c=t.resource;t.pages[t.pageIndex]={globalEvents:e,globalVars:r,list:i,name:o,theme:a,plant:s,shareVariableTree:l,resource:c}},getCurrentPageData:function(t){var e=t.globalEvents,n=t.globalVars,r=t.list,i=t.name,o=t.theme,a=t.plant,s=t.shareVariableTree,l=t.resource;t.pages[t.pageIndex]={globalEvents:e,globalVars:n,list:r,name:i,theme:o,plant:a,shareVariableTree:s,resource:l}}},vo={segmentationContainer:function(e,n){var r=t.cloneDeep(e.list),i=n.containerData,o=n.direction,a=[];if("del"==o)if(i.pid){var s=oe(r,i.pid),l=s.children.length;if(s)if(l<=2)(a=s.children.filter(function(t){return t.cid!==i.cid&&t.children.length})).length?(s.direction=a[0].direction,s.children=a[0].children.map(function(t){return t.pid=s.pid||s.cid,t})):s.children=[];else{var c=s.children.find(function(t){return t.cid===i.cid}),u=s.children.findIndex(function(t){return t.cid===i.cid});s.children=s.children.filter(function(t){return t.cid!==i.cid});var h=s.children[u>=s.children.length-1?s.children.length-1:u],d="col"==s.direction?"height":"width";h.baseData[d]=(parseFloat(h.baseData[d])+parseFloat(c.baseData[d])).toFixed(2)+"%"}}else r.length&&(r=r.filter(function(t){return t.cid!==i.cid}));else{var f=oe(r,i.cid);if(f){f.direction=o,1===f.children.length&&(a=f.children,f.children=[]);for(var p=(l=f.children.length)>=2?1:2,m=(d=l>=2?(100/(l+1)).toFixed(2)+"%":"50%",0);m<p;m++)f.children.push({isLock:!1,isShow:!0,baseData:{width:"col"==o?"100%":d,height:"col"==o?d:"100%",angle:0,penetrate:0,opacity:100},direction:o,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:Ee(),pid:f.cid,nestIndex:0,children:[],isTop:!1,isCol:"col"==o,isRow:"col"!=o,isDragged:!1,grandParentId:i.pid});a.length&&(a[0].cid=Ee(),a[0].pid=f.children[0].cid,f.children[0].children=a)}}e.list=r,0==r.length&&(e.selectd=[])}},yo={goEditShareCom:function(t,e){var n,r;try{e.name;var i=e.mapping,o=e.componentId,a=e.componentJson,s=e.cid;t.shareComs||(t.shareComs=new Map),console.log(a.children),t.shareComs.set(s,{mapping:i,componentId:o,componentJson:a,cid:s}),(null===(n=null==a?void 0:a.children[0])||void 0===n?void 0:n.cid)&&(t.currentSelectShareComId=[null===(r=null==a?void 0:a.children[0])||void 0===r?void 0:r.cid])}catch(t){console.log(t,"创建母版信息错误!")}},shareChange:function(t,e){t.shareChangeFlag=e},clearShareCom:function(t){t.shareComs&&t.shareComs.clear()},delShareCom:function(t,e){var n=e.key;t.shareComs&&t.shareComs.has(n)&&t.shareComs.delete(n)}},bo={mutation:{addGoVar:function(t,e){try{bi.addVariable(e,function(){t.globalVars=bi.getAllVariables()})}catch(t){console.warn(t)}},delGoVar:function(t,e){try{var n=e.mapField;console.log(n,"mapFieldmapField"),bi.delVariable(n,function(){t.globalVars=bi.getAllVariables()})}catch(t){console.warn(t)}},editGoVar:function(t,e){var n=this;try{bi.editVariable(e,function(r){t.globalVars=bi.getAllVariables(),mi(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"},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}),bi.addVariables(r)},updateGlobalVars:function(t,e){t.globalVars=e},updataVariables:function(t){t.globalVars=bi.getAllVariables()}},actions:{updateGlobalVarsAction:function(t){(0,t.commit)("updateGlobalVars",bi.getAllVariables())},goEditVar:function(t,e){(0,t.commit)("editGoVar",{mapField:e.key,originalValue:e.value})}}},wo=u(u(u(u(u(u(u(u(u(u(u({},p),Nn),Pn),eo),no),po),mo),go),vo),yo),bo.mutation),_o=u({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)},updataBaseDataForDragInfo:function(t,e){var n=t.commit;e&&n("updataBaseDataForDragInfo",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,o=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}),a=[n];(null==o?void 0:o.length)&&(a=t.uniq(f([n],o,!0)));for(var s=[],l=0,c=a;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,d=s;h<d.length;h++){r("updatComs",d[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)}},bo.actions),Do={getCurrentPage:function(t){return t.pages.length?t.pages[t.pageIndex]:[]},globalSourceTree:function(e){if(e.list.length&&e.globalSource.length){var n=[];return ce(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 o=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:o.id,viewComName:t.viewComName})}}),n}return[]}},So={namespaced:!0,state:l,mutations:wo,actions:_o,getters:Do},xo=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 ko(t.storeModule,e)},t.prototype.mapGetters=function(e){return Co(t.storeModule,e)},t.prototype.mapMutations=function(e){return To(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}(),ko=Oo(function(t,e){var n;return Eo(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=Ao(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}),To=Oo(function(t,e){var n;return Eo(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 o=Ao(this.$store,"mapMutations",t);if(!o)return;r=o.context.commit}return"function"==typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}}),n}),Co=Oo(function(t,e){var n={};return Eo(e).forEach(function(e){var r=e.key,i=e.val;i=t+i,n[r]=function(){if(!t||Ao(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 Eo(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 Oo(t){return function(e,n){return"string"!=typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function Ao(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 Mo=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=Ee(),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}(),No=function(){function e(t){this.vueServer=t,this.loadScript=lo}return e.setStore=function(t){this.store=t},e.prototype.loadComponents=function(e){var n=e&&e.list?e.list:[];ce(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 h(this,void 0,void 0,function(){var n,r,i=this;return d(this,function(o){switch(o.label){case 0:if(window[e])return[3,5];n=function(e){var n;return d(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,o.label=1;case 1:return r<t.length?[5,n(r)]:[3,4];case 2:o.sent(),o.label=3;case 3:return r++,[3,1];case 4:window[e]=e,o.label=5;case 5:return[2]}})})},e.prototype._load=function(t){return h(this,void 0,void 0,function(){var e=this;return d(this,function(n){return[2,new Promise(function(n){n(e.loadScript(t))})]})})},e}(),Po=function(){function t(t){var e=t.dbName,n=t.tables,r=t.version,i=void 0===r?1:r,o=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(u({dbName:e,tables:n,version:i},o))}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,o=t.callback,a=window.indexedDB;if(a)if((null==r?void 0:r.length)<1)console.error("表名不能为空");else{var s=a.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 o&&o(t)},s.onsuccess=function(t){var n;e.storage=null===(n=t.target)||void 0===n?void 0:n.result,"function"==typeof o&&o(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 o&&o(t))})}}else console.error("你的浏览器不支持indexedDB")},t}(),Io=function(){function t(){this.VueServer=new xo}return t.getInstance=function(){return this.instance||(this.db=new Po({dbName:"AnovGo",tables:["logs"]}),this.instance=new t),this.instance},t.prototype.getAppStore=function(){return t.store},t.setAppStore=function(e){t.store=e,xo.setAppStore(e),No.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 Mo(t);e?this.add(n.cid,n,!0):this.add(n.cid,n)},t.prototype.renderForParent=function(t,e,n){var r=new Mo(t);void 0!==n?this.addForParent(r.cid,r,e,n):this.addForParent(r.cid,r,e)},t.prototype.reversal=function(t){new No(new xo).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")),o=this.VueServer.callState("globalSource");this.VueServer.callState("globalConstant");var a=this.VueServer.callState("list");Si(r,0,i,a,t,function(t){n.VueServer.callMutation("changeShow",t)},function(t){n.VueServer.callMutation("updataSourceForComponent",t)},e,o)},t}(),Vo=Object.defineProperty,Ro=Object.getOwnPropertySymbols,Bo=Object.prototype.hasOwnProperty,Fo=Object.prototype.propertyIsEnumerable,jo=(t,e,n)=>e in t?Vo(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Lo=(t,e)=>{for(var n in e||(e={}))Bo.call(e,n)&&jo(t,n,e[n]);if(Ro)for(var n of Ro(e))Fo.call(e,n)&&jo(t,n,e[n]);return t},Ho=(t,e,n)=>(jo(t,"symbol"!=typeof e?e+"":e,n),n),zo=(t,e,n)=>new Promise((r,i)=>{var o=t=>{try{s(n.next(t))}catch(t){i(t)}},a=t=>{try{s(n.throw(t))}catch(t){i(t)}},s=t=>t.done?r(t.value):Promise.resolve(t.value).then(o,a);s((n=n.apply(t,e)).next())}),Yo={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},Uo="data-watermark-tag",qo={childList:!0,subtree:!0,attributeFilter:["style","class",Uo]};var Go=t=>{let e="";return Object.keys(t).forEach(n=>{const r=n.replace(/([A-Z])/g,"-$1").toLowerCase();e+=`${r}:${t[n]};`}),e},Wo=(t="")=>{return`${e=t,window.btoa(decodeURI(encodeURIComponent(e)))}-${(new Date).getTime()}-${Math.floor(Math.random()*Math.pow(10,8))}`;var e};var $o=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,Ko=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 o(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 a="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof r&&r.global===r?r:void 0,s=a.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=a.saveAs||("object"!=typeof window||window!==a?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(t,e,r){var s=a.URL||a.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?o(l):i(l.href)?n(t,e,r):o(l,l.target="_blank")):(l.href=s.createObjectURL(t),setTimeout(function(){s.revokeObjectURL(l.href)},4e4),setTimeout(function(){o(l)},0))}:"msSaveOrOpenBlob"in navigator?function(t,r,a){if(r=r||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(e(t,a),r);else if(i(t))n(t,r,a);else{var s=document.createElement("a");s.href=t,s.target="_blank",setTimeout(function(){o(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 o="application/octet-stream"===t.type,l=/constructor/i.test(a.HTMLElement)||a.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||o&&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=a.URL||a.webkitURL,d=h.createObjectURL(t);i?i.location=d:location.href=d,i=null,setTimeout(function(){h.revokeObjectURL(d)},4e4)}});a.saveAs=l.saveAs=l,t.exports=l}()}),Xo=function(e){var n=t.cloneDeep(e),r=t.omit(n,["comData","source"]);return u({},r)},Zo=function(t){if(0===t.length)return[];var e=function(t){for(var n,r=0;r<t.length;r++)t[r].tmpData&&(t[r]=Object.assign({},Xo(t[r]))),t[r]&&t[r].children&&(null===(n=t[r])||void 0===n?void 0:n.children.length)?e(t[r].children):t[r]&&t[r].dynamicChildren&&Array.from(t[r].dynamicChildren).forEach(function(t,n){e(t[1])})};return e(t),t},Jo=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,o=t.caseDetailName,a=n.theme,s=void 0===a?null:a,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,w=n.watermark,_=void 0===w?null:w,D=n.tw,S=void 0===D?null:D,x=n.globalSource,k=void 0===x?[]:x,T=n.globalEvents,C=void 0===T?[]:T,E=n.globalConstant,O=void 0===E?[]:E;r.push({path:v||i,theme:s,name:o,resource:b,tw:S,watermark:_,globalSource:k,globalVars:c,globalEvents:C,globalConstant:O,shareVariableTree:h,plant:f,list:Zo(m)})});else{var i=n.theme,o=void 0===i?null:i,a=n.globalVars,s=void 0===a?null:a,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,w=n.globalSource,_=void 0===w?[]:w,D=n.globalEvents,S=void 0===D?[]:D,x=n.globalConstant,k=void 0===x?[]:x;r.push({resource:m,tw:b,watermark:v,globalSource:_,theme:o,globalVars:s,globalEvents:S,shareVariableTree:c,globalConstant:k,plant:h,list:Zo(f)})}return r};function Qo(t,e){throw new Error("".concat(t,":Expected HTMLElement, got ").concat(e))}var ta=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,o=t.designHeight,a=t.horizontal,s=t.vertical,l=document.querySelector(n);l||Qo("wrap",l);var c=l.clientWidth,u=l.clientHeight,h=document.querySelector(r);h||Qo("view",h),h.style.position="absolute",h.style.width=i+"px",h.style.height=o+"px",console.log(h,l,"-----");var d,f,p,m,g=Math.min(c/i,u/o);if(e){switch(h.style.transform="scale(".concat(g,")"),a){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-o)/2+"px";break;case"top":f=(g-1)/2*o+"px";break;case"bottom":m=(g-1)/2*o+"px"}}else h.style.transform="scale('".concat(c/i,", ").concat(u/o,"')"),d=(c-i)/2+"px",f=(u-o)/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}(),ea=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,o=t.callback;this.size=i,this.type=r,this.initOptions(e,n,i),this.initSize(i),this.layout(),this.scale(o),window.addEventListener("resize",this.reset.bind(this,o))}return e.prototype.reset=function(t){this.initSize(this.size),this.layout(),t?this.scale(t):this.scale()},e.getInstance=function(t){e.instance=new e(t)},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!1")},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.target.style.position="static",1==this.type?(this.wrap.style["overflow-y"]="auto",this.wrap.style["overflow-x"]="hidden",this.target.style["transform-origin"]="0 0"):2==this.type&&(this.target.style["transform-origin"]="0 0",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}(),na=a(function(t,e){
|
|
33
33
|
/*! dom-to-image-go 17-03-2025 */
|
|
34
|
-
(e=>{let n=(()=>{let t=0;return{escape:function(t){return t.replace(/([.*+?^${}()|[\]/\\])/g,"\\$1")},isDataUrl:function(t){return-1!==t.search(/^(data:)/)},canvasToBlob:function(t){return t.toBlob?new Promise((function(e){t.toBlob(e)})):(t=>new Promise((function(e){var n=d(t.toDataURL().split(",")[1]),r=n.length,i=new Uint8Array(r);for(let t=0;t<r;t++)i[t]=n.charCodeAt(t);e(new Blob([i],{type:"image/png"}))})))(t)},resolveUrl:function(t,e){var n=document.implementation.createHTMLDocument(),r=n.createElement("base"),i=(n.head.appendChild(r),n.createElement("a"));return n.body.appendChild(i),r.href=e,i.href=t,i.href},getAndEncode:function(t){let e=c.impl.urlCache.find((function(e){return e.url===t}));return e||(e={url:t,promise:null},c.impl.urlCache.push(e)),null===e.promise&&(c.impl.options.cacheBust&&(t+=(/\?/.test(t)?"&":"?")+(new Date).getTime()),e.promise=new Promise((function(e){let n,r=c.impl.options.httpTimeout,i=new XMLHttpRequest;if(i.onreadystatechange=function(){if(4===i.readyState)if(300<=i.status)n?e(n):a(`cannot fetch resource: ${t}, status: `+i.status);else{let t=new FileReader;t.onloadend=function(){e(t.result)},t.readAsDataURL(i.response)}},i.ontimeout=function(){n?e(n):a(`timeout of ${r}ms occured while fetching resource: `+t)},i.responseType="blob",i.timeout=r,0<c.impl.options.useCredentialsFilters.length&&(c.impl.options.useCredentials=0<c.impl.options.useCredentialsFilters.filter((e=>0<=t.search(e))).length),c.impl.options.useCredentials&&(i.withCredentials=!0),c.impl.options.corsImg&&0===t.indexOf("http")&&-1===t.indexOf(window.location.origin)){var o="POST"===(c.impl.options.corsImg.method||"GET").toUpperCase()?"POST":"GET";i.open(o,(c.impl.options.corsImg.url||"").replace("#{cors}",t),!0);let e=!1,n=c.impl.options.corsImg.headers||{},r=(Object.keys(n).forEach((function(t){-1!==n[t].indexOf("application/json")&&(e=!0),i.setRequestHeader(t,n[t])})),(t=>{try{return JSON.parse(JSON.stringify(t))}catch(t){a("corsImg.data is missing or invalid:"+t.toString())}})(c.impl.options.corsImg.data||""));Object.keys(r).forEach((function(e){"string"==typeof r[e]&&(r[e]=r[e].replace("#{cors}",t))})),i.send(e?JSON.stringify(r):r)}else i.open("GET",t,!0),i.send();function a(t){console.error(t),e("")}c.impl.options.imagePlaceholder&&(o=c.impl.options.imagePlaceholder.split(/,/))&&o[1]&&(n=o[1])}))),e.promise},uid:function(){return"u"+("0000"+(Math.random()*Math.pow(36,4)|0).toString(36)).slice(-4)+t++},delay:function(t){return function(e){return new Promise((function(n){setTimeout((function(){n(e)}),t)}))}},asArray:function(t){var e=[],n=t.length;for(let r=0;r<n;r++)e.push(t[r]);return e},escapeXhtml:function(t){return t.replace(/%/g,"%25").replace(/#/g,"%23").replace(/\n/g,"%0A")},makeImage:function(t){return"data:,"!==t?new Promise((function(e,n){let r=document.createElementNS("http://www.w3.org/2000/svg","svg"),i=new Image;c.impl.options.useCredentials&&(i.crossOrigin="use-credentials"),i.onload=function(){document.body.removeChild(r),window&&window.requestAnimationFrame?window.requestAnimationFrame((function(){e(i)})):e(i)},i.onerror=t=>{document.body.removeChild(r),n(t)},r.appendChild(i),i.src=t,document.body.appendChild(r)})):Promise.resolve()},width:function(t){var e=a(t,"width");if(!isNaN(e))return e;e=a(t,"border-left-width");var n=a(t,"border-right-width");return t.scrollWidth+e+n},height:function(t){var e=a(t,"height");if(!isNaN(e))return e;e=a(t,"border-top-width");var n=a(t,"border-bottom-width");return t.scrollHeight+e+n},getWindow:n,isElement:o,isElementHostForOpenShadowRoot:function(t){return o(t)&&null!==t.shadowRoot},isShadowRoot:r,isInShadowRoot:i,isHTMLElement:function(t){return t instanceof n(t).HTMLElement},isHTMLCanvasElement:function(t){return t instanceof n(t).HTMLCanvasElement},isHTMLInputElement:function(t){return t instanceof n(t).HTMLInputElement},isHTMLImageElement:function(t){return t instanceof n(t).HTMLImageElement},isHTMLLinkElement:function(t){return t instanceof n(t).HTMLLinkElement},isHTMLScriptElement:function(t){return t instanceof n(t).HTMLScriptElement},isHTMLStyleElement:function(t){return t instanceof n(t).HTMLStyleElement},isHTMLTextAreaElement:function(t){return t instanceof n(t).HTMLTextAreaElement},isShadowSlotElement:function(t){return i(t)&&t instanceof n(t).HTMLSlotElement},isSVGElement:function(t){return t instanceof n(t).SVGElement},isSVGRectElement:function(t){return t instanceof n(t).SVGRectElement},isDimensionMissing:function(t){return isNaN(t)||t<=0}};function n(t){return((t=t?t.ownerDocument:void 0)?t.defaultView:void 0)||window||e}function r(t){return t instanceof n(t).ShadowRoot}function i(t){return null!=t&&void 0!==t.getRootNode&&r(t.getRootNode())}function o(t){return t instanceof n(t).Element}function a(t,e){if(t.nodeType===u){let n=h(t).getPropertyValue(e);if("px"===n.slice(-2))return n=n.slice(0,-2),parseFloat(n)}return NaN}})(),r=(()=>{let t=/url\(['"]?([^'"]+?)['"]?\)/g;return{inlineAll:function(t,n,o){return e(t)?Promise.resolve(t).then(r).then((function(e){let r=Promise.resolve(t);return e.forEach((function(t){r=r.then((function(e){return i(e,t,n,o)}))})),r})):Promise.resolve(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(r){return t.replace((i=e,new RegExp(`(url\\(['"]?)(${n.escape(i)})(['"]?\\))`,"g")),`$1${r}$3`);var i}))}})(),i={resolveAll:function(){return o().then((function(t){return Promise.all(t.map((function(t){return t.resolve()})))})).then((function(t){return t.join("\n")}))},impl:{readAll:o}};function o(){return Promise.resolve(n.asArray(document.styleSheets)).then((function(t){let e=[];return t.forEach((function(t){var r=Object.getPrototypeOf(t);if(Object.prototype.hasOwnProperty.call(r,"cssRules"))try{n.asArray(t.cssRules||[]).forEach(e.push.bind(e))}catch(r){console.error("domtoimage: Error while reading CSS rules from "+t.href,r.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")}}}}let a={inlineAll:function t(e){return n.isElement(e)?function(t){let e=["background","background-image"].map((function(e){let n=t.style.getPropertyValue(e),i=t.style.getPropertyPriority(e);return n?r.inlineAll(n).then((function(n){t.style.setProperty(e,n,i)})):Promise.resolve()}));return Promise.all(e).then((function(){return t}))}(e).then((function(){return n.isHTMLImageElement(e)?s(e).inline():Promise.all(n.asArray(e.childNodes).map((function(e){return t(e)})))})):Promise.resolve(e)},impl:{newImage:s}};function s(t){return{inline:function(e){return n.isDataUrl(t.src)?Promise.resolve():Promise.resolve(t.src).then(e||n.getAndEncode).then((function(e){return new Promise((function(n){t.onload=n,t.onerror=n,t.src=e}))}))}}}let l={copyDefaultStyles:!0,imagePlaceholder:void 0,cacheBust:!1,useCredentials:!1,useCredentialsFilters:[],httpTimeout:3e4,styleCaching:"strict",corsImg:void 0,adjustClonedNode:void 0},c={toSvg:f,toPng:function(t,e){return p(t,e).then((function(t){return t.toDataURL()}))},toJpeg:function(t,e){return p(t,e).then((function(t){return t.toDataURL("image/jpeg",(e?e.quality:void 0)||1)}))},toBlob:function(t,e){return p(t,e).then(n.canvasToBlob)},toPixelData:function(t,e){return p(t,e).then((function(e){return e.getContext("2d").getImageData(0,0,n.width(t),n.height(t)).data}))},toCanvas:p,impl:{fontFaces:i,images:a,util:n,inliner:r,urlCache:[],options:{}}},u=(t.exports=c,("undefined"!=typeof Node?Node.ELEMENT_NODE:void 0)||1),h=(void 0!==e?e.getComputedStyle:void 0)||("undefined"!=typeof window?window.getComputedStyle:void 0)||globalThis.getComputedStyle,d=(void 0!==e?e.atob:void 0)||("undefined"!=typeof window?window.atob:void 0)||globalThis.atob;function f(t,e){c.impl.util.getWindow(t);var r=e=e||{};void 0===r.copyDefaultStyles?c.impl.options.copyDefaultStyles=l.copyDefaultStyles:c.impl.options.copyDefaultStyles=r.copyDefaultStyles,c.impl.options.imagePlaceholder=(void 0===r.imagePlaceholder?l:r).imagePlaceholder,c.impl.options.cacheBust=(void 0===r.cacheBust?l:r).cacheBust,c.impl.options.corsImg=(void 0===r.corsImg?l:r).corsImg,c.impl.options.useCredentials=(void 0===r.useCredentials?l:r).useCredentials,c.impl.options.useCredentialsFilters=(void 0===r.useCredentialsFilters?l:r).useCredentialsFilters,c.impl.options.httpTimeout=(void 0===r.httpTimeout?l:r).httpTimeout,c.impl.options.styleCaching=(void 0===r.styleCaching?l:r).styleCaching;let i=[];return Promise.resolve(t).then((function(t){if(t.nodeType===u)return t;var e=t,n=t.parentNode,r=document.createElement("span");return n.replaceChild(r,e),r.append(t),i.push({parent:n,child:e,wrapper:r}),r})).then((function(t){return function t(e,r,i,o){let a=r.filter;return e===m||n.isHTMLScriptElement(e)||n.isHTMLStyleElement(e)||n.isHTMLLinkElement(e)||null!==i&&a&&!a(e)?Promise.resolve():Promise.resolve(e).then((function(t){return n.isHTMLCanvasElement(t)?n.makeImage(t.toDataURL()):t.cloneNode(!1)})).then((function(t){return r.adjustClonedNode&&r.adjustClonedNode(e,t,!1),Promise.resolve(t)})).then((function(i){return function(e,i){let o=l(i),a=Promise.resolve();if(0!==o.length){let l=h(s(i));n.asArray(o).forEach((function(n){a=a.then((function(){return t(n,r,l).then((function(t){t&&e.appendChild(t)}))}))}))}return a.then((function(){return e}));function s(t){return n.isShadowRoot(t)?t.host:t}function l(t){if(n.isShadowSlotElement(t)){let e=t.assignedNodes();if(e&&0<e.length)return e}return t.childNodes}}(i,function(t){return n.isElementHostForOpenShadowRoot(t)?t.shadowRoot:t}(e))})).then((function(t){return r.adjustClonedNode&&r.adjustClonedNode(e,t,!0),Promise.resolve(t)})).then((function(t){return function(t,e){return!n.isElement(t)||n.isShadowSlotElement(e)?Promise.resolve(t):Promise.resolve().then(o).then(a).then(s).then(l).then(c).then((function(){return t}));function o(){if(t instanceof HTMLVideoElement){var n=window.getComputedStyle(e),r=document.createElement("canvas"),i=(n=(r.width=parseInt(n.width,10),r.height=parseInt(n.height,10),Math.max(e.videoWidth/r.width,e.videoHeight/r.height)),e.videoWidth/n),o=(n=e.videoHeight/n,r.width/2-i/2),a=r.height/2-n/2;r.getContext("2d").drawImage(e,o,a,i,n);let s=(t=document.createElement("img")).cloneNode(!0);try{s.src=r.toDataURL()}catch(n){s.src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="}}}function a(){function n(t,e){e.font=t.font,e.fontFamily=t.fontFamily,e.fontFeatureSettings=t.fontFeatureSettings,e.fontKerning=t.fontKerning,e.fontSize=t.fontSize,e.fontStretch=t.fontStretch,e.fontStyle=t.fontStyle,e.fontVariant=t.fontVariant,e.fontVariantCaps=t.fontVariantCaps,e.fontVariantEastAsian=t.fontVariantEastAsian,e.fontVariantLigatures=t.fontVariantLigatures,e.fontVariantNumeric=t.fontVariantNumeric,e.fontVariationSettings=t.fontVariationSettings,e.fontWeight=t.fontWeight}function o(t,e){let o=h(t);o.cssText?(e.style.cssText=o.cssText,n(o,e.style)):(y(r,t,o,i,e),null===i&&(["inset-block","inset-block-start","inset-block-end"].forEach((t=>e.style.removeProperty(t))),["left","right","top","bottom"].forEach((t=>{e.style.getPropertyValue(t)&&e.style.setProperty(t,"0px")}))))}o(e,t)}function s(){let r=n.uid();function i(i){let o=h(e,i),a=o.getPropertyValue("content");if(""!==a&&"none"!==a){let s=t.getAttribute("class")||"",l=(t.setAttribute("class",s+" "+r),document.createElement("style"));function c(){let t=`.${r}:`+i,e=(o.cssText?s:l)();return document.createTextNode(t+`{${e}}`);function s(){return`${o.cssText} content: ${a};`}function l(){return n.asArray(o).map(t).join("; ")+";";function t(t){return t+": "+o.getPropertyValue(t)+(o.getPropertyPriority(t)?" !important":"")}}}l.appendChild(c()),t.appendChild(l)}}[":before",":after"].forEach((function(t){i(t)}))}function l(){n.isHTMLTextAreaElement(e)&&(t.innerHTML=e.value),n.isHTMLInputElement(e)&&t.setAttribute("value",e.value)}function c(){n.isSVGElement(t)&&(t.setAttribute("xmlns","http://www.w3.org/2000/svg"),n.isSVGRectElement(t))&&["width","height"].forEach((function(e){let n=t.getAttribute(e);n&&t.style.setProperty(e,n)}))}}(t,e)}))}(t,e,null)})).then(e.disableEmbedFonts?Promise.resolve(t):g).then(v).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]}));let n=null;return"function"==typeof e.onclone&&(n=e.onclone(t)),Promise.resolve(n).then((function(){return t}))})).then((function(t){let r=e.width||n.width(t),i=e.height||n.height(t);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){var e=(n.isDimensionMissing(r)?' width="100%"':` width="${r}"`)+(n.isDimensionMissing(i)?' height="100%"':` height="${i}"`);return`<svg xmlns="http://www.w3.org/2000/svg"${(n.isDimensionMissing(r)?"":` width="${r}"`)+(n.isDimensionMissing(i)?"":` height="${i}"`)}><foreignObject${e}>${t}</foreignObject></svg>`})).then((function(t){return"data:image/svg+xml;charset=utf-8,"+t}))})).then((function(t){for(;0<i.length;){var e=i.pop();e.parent.replaceChild(e.child,e.wrapper)}return t})).then((function(t){return c.impl.urlCache=[],m&&(document.body.removeChild(m),m=null),b&&clearTimeout(b),b=setTimeout((()=>{b=null,w={}}),2e4),t}))}function p(t,e){return f(t,e=e||{}).then(n.makeImage).then((function(r){var i="number"!=typeof e.scale?1:e.scale,o=((t,r)=>{let i=e.width||n.width(t),o=e.height||n.height(t);return n.isDimensionMissing(i)&&(i=n.isDimensionMissing(o)?300:2*o),n.isDimensionMissing(o)&&(o=i/2),(t=document.createElement("canvas")).width=i*r,t.height=o*r,e.bgcolor&&((r=t.getContext("2d")).fillStyle=e.bgcolor,r.fillRect(0,0,t.width,t.height)),t})(t,i),a=o.getContext("2d");return a.msImageSmoothingEnabled=!1,a.imageSmoothingEnabled=!1,r&&(a.scale(i,i),a.drawImage(r,0,0)),o}))}let m=null;function g(t){return i.resolveAll().then((function(e){var n;return""!==e&&(n=document.createElement("style"),t.appendChild(n),n.appendChild(document.createTextNode(e))),t}))}function v(t){return a.inlineAll(t).then((function(){return t}))}function y(t,e,r,i,o){let a=c.impl.options.copyDefaultStyles?((t,e)=>{var r,i=(e=>("relaxed"!==t.styleCaching?e:e.filter(((t,e,n)=>0===e||e===n.length-1))).join(">"))(e=(t=>{var e=[];do{if(t.nodeType===u){var n=t.tagName;if(e.push(n),_.includes(n))break}}while(t=t.parentNode);return e})(e));if(w[i])return w[i];e=((t,e)=>{let n=t.body;do{var r=e.pop();r=t.createElement(r);n.appendChild(r),n=r}while(0<e.length);return n.textContent="",n})((r=(()=>{if(m)return m.contentWindow;e=document.characterSet||"UTF-8",t=(t=document.doctype)?(`<!DOCTYPE ${l(t.name)} ${l(t.publicId)} `+l(t.systemId)).trim()+">":"",(m=document.createElement("iframe")).id="domtoimage-sandbox-"+n.uid(),m.style.visibility="hidden",m.style.position="fixed",document.body.appendChild(m);var t,e,r=m,i="domtoimage-sandbox";try{return r.contentWindow.document.write(t+`<html><head><meta charset='${e}'><title>${i}</title></head><body></body></html>`),r.contentWindow}catch(t){}var o=document.createElement("meta");o.setAttribute("charset",e);try{var a=document.implementation.createHTMLDocument(i),s=(a.head.appendChild(o),t+a.documentElement.outerHTML);return r.setAttribute("srcdoc",s),r.contentWindow}catch(t){}return r.contentDocument.head.appendChild(o),r.contentDocument.title=i,r.contentWindow;function l(t){var e;return t?((e=document.createElement("div")).innerText=t,e.innerHTML):""}})()).document,e),r=((t,e)=>{let r={},i=t.getComputedStyle(e);return n.asArray(i).forEach((function(t){r[t]="width"===t||"height"===t?"auto":i.getPropertyValue(t)})),r})(r,e);var o=e;do{var a=o.parentElement;null!==a&&a.removeChild(o),o=a}while(o&&"BODY"!==o.tagName);return w[i]=r})(t,e):{},s=o.style;n.asArray(r).forEach((function(t){var e,n=r.getPropertyValue(t),o=a[t],l=i?i.getPropertyValue(t):void 0;s.getPropertyValue(t)||(n!==o||i&&n!==l)&&(o=r.getPropertyPriority(t),l=s,e=0<=["background-clip"].indexOf(t),o?(l.setProperty(t,n,o),e&&l.setProperty("-webkit-"+t,n,o)):(l.setProperty(t,n),e&&l.setProperty("-webkit-"+t,n)))}))}let b=null,w={},_=["ADDRESS","ARTICLE","ASIDE","BLOCKQUOTE","DETAILS","DIALOG","DD","DIV","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","H1","H2","H3","H4","H5","H6","HEADER","HGROUP","HR","LI","MAIN","NAV","OL","P","PRE","SECTION","SVG","TABLE","UL","math","svg","BODY","HEAD","HTML"]})(r)})),ea=function(t){if(!t)return!1;return 1==new RegExp(/http(s)?:\/\/([\w-]+\.)+[\w-]+(\/[\w- .\/?%&=]*)?/).test(t)},na=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))},ra=function(t,e){void 0===e&&(e="screenshot.jpeg");try{for(var n=t.split(","),r=n[0].match(/:(.*?);/)[1],i=atob(n[1]),o=i.length,a=new Uint8Array(o);o--;)a[o]=i.charCodeAt(o);return new File([a],e,{type:r})}catch(t){console.error("dataURLtoFile:数据转换错误 : "+t)}},ia=function(t,e){return h(void 0,void 0,void 0,(function(){var n;return d(this,(function(r){switch(r.label){case 0:return r.trys.push([0,11,,12]),"File"!=e||"string"!=typeof t?[3,2]:[4,ra(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,na(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]}}))}))},oa=function(t,e,r,i){return h(void 0,void 0,void 0,(function(){return d(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,n({url:t,method:"GET",responseType:"arraybuffer",params:{url:e,dom:r,quality:i}})];case 1:return[2,o.sent()];case 2:return o.sent(),console.warn("请求截图服务器发生错误,请检查地址及参数是否正确!",{url:t,path:e,dom:r,quality:i}),[2,null];case 3:return[2]}}))}))},aa=function(t,e){return h(void 0,void 0,void 0,(function(){var n,r,i,o,a,s;return d(this,(function(l){switch(l.label){case 0:if(l.trys.push([0,2,,3]),!(n=document.querySelector(t)))throw new Error("domToImg:"+t+" dom未被找到!");return r=e.quality,i=void 0===r?.5:r,o=e.disableEmbedFonts,a=void 0===o||o,[4,ta.toJpeg(n,{style:{transform:"scale(1)",position:"static"},quality:i,disableEmbedFonts:a})];case 1:return[2,l.sent()];case 2:return s=l.sent(),console.warn(s),[3,3];case 3:return[2]}}))}))},sa=function(t){return"".concat(t>15?"":0).concat(t.toString(16))},la=function(t){var e=t.r,n=t.g,r=t.b,i=t.a,o=void 0===i?1:i;return"#".concat(sa(e)).concat(sa(n)).concat(sa(r)).concat(1===o?"":sa(Math.floor(255*o)))},ca=function(t){var e=t.r,n=t.g,r=t.b;return"rgb(".concat(e,",").concat(n,",").concat(r,")")},ua=function(t,e){void 0===e&&(e=1e4);var n=t.r,r=t.g,i=t.b,o=t.a,a=void 0===o?1:o;return"rgba(".concat(n,",").concat(r,",").concat(i,",").concat(Math.floor(a*e)/e,")")},ha=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}},da=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])}},fa=function(t){if(t.startsWith("#"))return ha(t);if(t.startsWith("rgb"))return da(t);if("transparent"===t)return ha("#00000000");throw new Error("color string error: ".concat(t))},pa=new Map([["E1001","系统未知错误"],["E1002","vue逻辑错误"],["E1003","JavaScript错误"],["E1004","静态资源加载错误"],["E1005","请求错误"],["E1006","Promise错误"]]),ma=function(t,e,n,r){void 0===r&&(r="null"),ga({code:t,type:pa.get("".concat(t)),msg:e,router:n.currentRoute.value.fullPath,file:r,createTime:(new Date).toLocaleString()})},ga=function(t){var e=localStorage.getItem("ERROR");if(e){var n=JSON.parse(e);va(n),n.length>50?(n[0]=t,va(n)):n.push(t),localStorage.setItem("ERROR",JSON.stringify(n))}else localStorage.setItem("ERROR",JSON.stringify([t]))},va=function(t){t.sort((function(t,e){return t.createTime>e.createTime?1:-1}))},ya=Object.freeze({__proto__:null,RecursiveList:Ce,Scale:Qo,SizeAdaption:Jo,UpdataForContainer:Pe,Watermark:class{constructor(t={}){Lo(this,"options"),Lo(this,"container"),Lo(this,"watermarkContent"),Lo(this,"watermarkDom"),Lo(this,"style"),Lo(this,"watermarkTag"),Lo(this,"shadowRoot"),Lo(this,"mutationObserver"),Lo(this,"_isAgainRender",(t=>{if("attributes"===t.type){if(t.attributeName===Yo)return!0;if(this.watermarkTag===this._getNodeRandomId(t.target))return!0}return!(!t.removedNodes.length||this.watermarkTag!==this._getNodeRandomId(t.removedNodes[0]))})),Lo(this,"_getNodeRandomId",(t=>{var e,n;return null==(e=null==t?void 0:t.dataset)?void 0:e[(n=Yo,n.split("-").slice(1).reduce(((t,e,n)=>0===n?e:`${t}${e[0].toUpperCase()+e.slice(1)}`)))]})),Lo(this,"_destroyMutationObserver",(()=>{this.mutationObserver&&(this.mutationObserver.takeRecords(),this.mutationObserver.disconnect(),this.mutationObserver=null)})),Lo(this,"_getWatermarkDom",(t=>Ho(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:o,width:a,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:w,blindOpacity:_}=t;return new Promise(((t,D)=>{const S=document.createElement("canvas"),x=S.getContext("2d"),k=1*(Number(n)+Number(a)),T=1*(Number(r)+Number(s)),C=Number(o)||Number(n)/2,E=Number(i)||Number(r)/2;if(S.setAttribute("width",`${k}px`),S.setAttribute("height",`${T}px`),x){const n=1*a,r=1*s;if(x.translate(1*C,1*E),x.rotate(Math.PI/180*Number(l)),b&&(x.globalAlpha=_,x.font=`${w}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:k,height:T})})}const i=Array.isArray(e)?e:[e],o=i.map((t=>x.measureText(t).width)),h=Math.max(...o),d=1*Number(u);x.textAlign=g,x.textBaseline=v,x.fillStyle=m,x.font=O(`${d}px`),h>a&&(x.font=O(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:k,height:T})}function O(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",qo(this.style))}return this.watermarkDom.setAttribute(Yo,this.watermarkTag),this.watermarkDom})))),Lo(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({},zo,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=Go("watermark"),this.mutationObserver=null,this._render()}update(t={}){this.options=jo(jo({},this.options),t),this.style.zIndex=this.options.zIndex,this._render()}show(){this.watermarkDom&&(this.style.display="block",this.watermarkDom.setAttribute("style",qo(this.style)))}hide(){this.watermarkDom&&(this.style.display="none",this.watermarkDom.setAttribute("style",qo(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 Ho(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(Yo,e);const o=jo({position:"relative"},n);return r||delete o.position,i.setAttribute("style",qo(o)),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",qo({pointerEvents:"none"})),e.setAttribute(Yo,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),Wo&&this.options.monitor&&(this.mutationObserver=new Wo((t=>{t.forEach((t=>{if(this._isAgainRender(t))return this.destroy(),void this._render()}))})),this.mutationObserver.observe(this.container,Uo),this.shadowRoot&&this.mutationObserver.observe(this.shadowRoot,Uo))}))}},arraySwap:ne,arraySwapDeep:ie,arraySwapForId:re,breakUp:ge,checkBaseData:ee,checkVar:function(t,e){var n,r,i,o=!1,a=t.type,s=t.converse,l=t[a];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)){o=!0;break}}if(o)return o;var h="",d="",f="";"api"==a&&(h=l.url,(null===(r=l.headers)||void 0===r?void 0:r.use)&&(d=l.headers.value),f=l.params),"datasource"==a&&(h=l.inputSql),"indicator"==a&&((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)}))){o=!0;break}}return o},comToggle:pe,decrypAES:function(t){var e=Qt.enc.Utf8.parse(Ae.key),n=Qt.enc.Utf8.parse(Ae.iv);return Qt.AES.encrypt(t,e,{iv:n,mode:Qt.mode.CBC,padding:Qt.pad.Pkcs7}).toString()},decrypt:function(t){var e=new Xt;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 Xt;return e.setPublicKey("MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApWni7uLYVV8iyDPTR6Zs\naj+2BHCn4xTzFeVHADzTdtBiFH9i4fKeDK0IfbPV/9TGeRYNfl0qSfdLtU+1ZIzm\npqHppadukmk5+NbBG4Xm/lAZgVt3dUIrSyamxVjwnymN7PLdxaSOS/mgU6SDGMhN\nTM76AXKZZXWMK12UCXvKkh+TkGufcXzLe7LtrvHPLOgcnEED2CkWATuE9g8K9j4T\neOMxhJcHBUmXLgU6Chufa4nBed2899E7jxJa14+J1IDa2ahrDFLZN7H//ZsvwnXq\nxVbxm0k5jyWqfCpg13V7zD3DxNWlo3MIh2fPtIEUDVhugqPd0jPmqquqdBNTnu2I\nGQIDAQAB"),e.encrypt(t)},errorHandler:ma,executeFilter:function(t){return t.hasOwnProperty("originalValue")||(t.originalValue=t.value),t.converter&&t.converterCode?t.value=Me(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,o=t.caseRemark,a=void 0===o?"":o,l=t.details,c=t.caseClientType,u=void 0===c?"":c,h=t.id,d={caseClientType:u,caseName:n,caseImg:i,caseRemark:a,caseId:void 0===h?"":h,createTime:s().format("YYYY-MM-DD , h:mm:ss"),caseData:Xo(l)},f=new Blob([JSON.stringify(d)],{type:"json"});$o.saveAs(f,n+".json")},findItem:function(t,e,n){for(var r,i=function(i){var o=t[i];if(o.cid===e)return r=o,n&&t.splice(i,1),{value:r};if(o.children&&o.children.length){for(var a=0;a<o.children.length;a++)if(o.children[a].cid===e)return r=o.children[a],n&&o.children.splice(a,1),{value:r}}else if(o.stateChildren&&o.stateChildren.length){for(a=0;a<o.stateChildren.length;a++)if(o.stateChildren[a].cid===e)return r=o.stateChildren[a],n&&o.stateChildren.splice(a,1),{value:r}}else if(o.dynamicChildren){var s=void 0;if(o.dynamicChildren instanceof Map?s=o.dynamicChildren.get(o.activeDynamic):o.dynamicChildren instanceof Array&&(s=o.dynamicChildren.find((function(t){return t[0]==o.activeDynamic}))[1]),s)for(a=0;a<s.length;a++)if(s[a].cid===e)return r=s[a],n&&s.splice(a,1),{value:r}}},o=0;o<t.length;o++){var a=i(o);if("object"==typeof a)return a.value}return!!r},findItemDeep:oe,findItemIndexDeep:function(t,e){for(var n,r=0,i=0;i<t.length;i++){var o=t[i];if(r+=1,o.cid==e)break;if(null===(n=null==o?void 0:o.children)||void 0===n?void 0:n.length)for(var a=0;a<(null==o?void 0:o.children.length);a++){if(r+=1,(null==o?void 0:o.children[a]).cid==e)return r}}return r},findParentDeep:se,genCopyName:function(t,e,n){var r,i;void 0===n&&(n=" copy");var o=new RegExp("".concat(n,"( \\d+)?$")).exec(t);o?(r=o[1]?parseInt(o[1]):0,i=t.slice(0,o.index)):(r=0,i=t);var a=new RegExp("^".concat(i).concat(n,"( [1-9][0-9]*)?$")),s=[];e.forEach((function(t){if(o=a.exec(t)){var e=o[1]?parseInt(o[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:Ee,generateCaseDataJson:Xo,generateComponentList:Ko,generateJson:function(t){var e=t.caseName,n=void 0===e?"":e,r=t.caseData;return t.plangInfoForPsd,{caseName:n,createTime:s().format("YYYY-MM-DD , h:mm:ss"),caseData:Xo(r)}},generatePageData:function(t){var e={},n=e.theme,r=void 0===n?null:n,i=e.globalVars,o=void 0===i?null:i,a=e.shareVariableTree,s=void 0===a?null:a,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:o,globalEvents:v,shareVariableTree:s,plant:c,undos:f,undoRedoPointer:m,list:Ko(h)}},getAncestorsNodes:ae,getColorInfo:function(t){var e=fa(t);return{hex:la(e),rgba:ua(e),rgb:ca(e),rgbaObj:e}},getDataForEvaluator:y,getInteractive:$i,getInteractive2:function(e,n,r,i,o){var a;try{var s={},l=[],c=[],u=[],h=t.cloneDeep(e);return(null===(a=null===window||void 0===window?void 0:window.go)||void 0===a?void 0:a.dev)&&ce(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,o=null===(r=null==t?void 0:t.tmpData)||void 0===r?void 0:r.actions;i<o.length;i++){var a=o[i];if("toggle"==a.behave){var s=a.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}})))}}}})),ce(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}));Oe({types:r,element:t,actions:l,events:c,eventsComs:u})}})),n&&n.length&&(l=f(f([],l,!0),n,!0)),r&&r.length&&(l=f(f([],l,!0),r,!0)),i&&i.length&&(l=f(f([],l,!0),i,!0)),ce(h,(function(t){var e,n=null===(e=null==t?void 0:t.tmpData)||void 0===e?void 0:e.source;Ki(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)}));(o?o==t.forkValue||Array.isArray(t.forkValue)&&t.forkValue.includes(o):!!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 o?(o==t.forkValue||Array.isArray(t.forkValue)&&t.forkValue.includes(o))&&(t.hasOwnProperty("originalValue")||(t.originalValue=t.value),t.converter&&t.converterCode?t.value=Me(t.converterCode,t.originalValue):t.value=t.originalValue):(t.hasOwnProperty("originalValue")||(t.originalValue=t.value),t.converter&&t.converterCode?t.value=Me(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),o=0;o<i.length;o++)if(i[o]instanceof Array){var a=i[o][1];n(a)}}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},getLengthForAn:function(t){if(!Array.isArray(t))return console.error("Input must be an array"),0;var e=0,n=function(t){for(var r=0;r<t.length;r++){var i=t[r];i.isShow&&(i.children&&Array.isArray(i.children)?n(i.children):e++)}};try{n(t)}catch(t){return console.error("Error processing array:",t),0}return e},getLengthForMounted:function(t){var e=0,n=function(t){for(var r,i=0;i<t.length;i++)t[i].isShow&&t[i].children?n(t[i].children):t[i].isShow&&(null===(r=t[i])||void 0===r?void 0:r.mounted)&&e++};return n(t),e},getPosition:Se,getSessionData:function(t){var e=sessionStorage.getItem(t);return e?JSON.parse(e):null},getShareTree:function(t,e){try{var n={},r=[],i=[];return ce(t,(function(t){var o,a,s,l=null===(o=null==t?void 0:t.tmpData)||void 0===o?void 0:o.source;if(Ki(l,e,t,n),null===(s=null===(a=null==t?void 0:t.tmpData)||void 0===a?void 0:a.actions)||void 0===s?void 0:s.length){var c=t.tmpData.actions.map((function(t){return t.eventType}));Oe({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?Ji(t)?t:JSON.stringify(t):Ji(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:Ne,hasVar:function(t,e,n){var r,i,o,a,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=Xi(null==s?void 0:s.inputSql,n)),(null==s?void 0:s.url)&&(c=Xi(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===(o=null==s?void 0:s.headers)||void 0===o?void 0:o.value)&&(c=Xi(null===(a=null==s?void 0:s.headers)||void 0===a?void 0:a.value,n)),(null==s?void 0:s.params)&&(c=Xi(null==s?void 0:s.params,n)),c},hexToRgba:function(t){var e=fa(t);return ua(e)},isJSON:Ji,isPeer:le,loadFont:co,loadFontResource:ao,loadFontTag:function(e){var n=e.fonts,r=void 0===n?[]:n;return h(void 0,void 0,void 0,(function(){var e;return d(this,(function(n){switch(n.label){case 0:return e=t.uniqBy(r,"fontName"),[4,Promise.all([lo(e,"fonts")])];case 1:return n.sent(),[2]}}))}))},loadScript:so,loadTag:uo,parseColorString:fa,parseHexColor:ha,parseRgbaColor:da,recursion:ce,recursionForPid:function(t,e,n){var r=function(t,e,n){var i=oe(t,e);i&&(n(i),i.pid&&r(t,i.pid,n))};r(t,e,n)},removeTag:ho,resetID:he,resetID2:function(t,e){var n=function(t,e){for(var r=function(r){var i=t[r],o=Ee();e&&(i.pid=e),i.cid=o,i&&i.children&&i.children.length?n(i.children,o):i&&i.dynamicChildren&&Array.from(i.dynamicChildren).forEach((function(t,e){n(t[1],o)}))},i=0;i<t.length;i++)r(i)};n(t,e)},resetPositionForGroup:function(t,e){var n=e.map((function(t){return t.cid}));e.forEach((function(e){e.pid&&ye(e,t)}));var r=De(n,e);return me(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,o=0;o<t.length;o++){var a=t[o];if(a.pid!=r){var s=we(e,a.cid),l=we(e,a.pid);a.baseData.left=s.left-l.left,a.baseData.top=s.top-l.top}(null===(i=null==a?void 0:a.children)||void 0===i?void 0:i.length)&&n(a.children,a.cid)}};n(t,e)},resizePosition:we,resziePositionForGroup:function(e,n,r,i){var o=e.baseData.left,a=e.baseData.top,s=n.left,l=n.top,c=t.cloneDeep(e.children),u=r||"";if(s-o<0)for(var h=0;h<c.length;h++){(d=c[h]).cid!==u&&(d.baseData.left=d.baseData.left+(o-s))}if(l-a<0)for(h=0;h<c.length;h++){var d;(d=c[h]).cid!==u&&(d.baseData.top=d.baseData.top+(a-l))}e.children=c},rgbaToHex:function(t){var e=fa(t);return la(e)},safeConvertToNumber:xe,safeEval:Me,screenshot:function(t){return h(void 0,void 0,void 0,(function(){var e,n,r,i,o,a,s,l,c;return d(this,(function(u){switch(u.label){case 0:return u.trys.push([0,11,,12]),e=t.dom,n=t.servePath,r=t.targetPath,i=t.quality,o=void 0===i?.5:i,a=t.type,s=void 0,ea(n)&&ea(r)?[4,oa(n,r,e,o||.5)]:[3,5];case 1:return(l=u.sent())&&200==l.status&&l.data?(s=l.data,[3,4]):[3,2];case 2:return console.warn("截取错误,请检查网络或服务地址配置是否正确,已转换为dom-to-img."),[4,aa(e,t)];case 3:s=u.sent(),u.label=4;case 4:return[3,7];case 5:return console.warn("地址错误,请检查传入的地址是否争取,已转换为dom-to-img."),[4,aa(e,t)];case 6:s=u.sent(),u.label=7;case 7:return s?[4,ia(s,a)]:[3,9];case 8:return[2,u.sent()];case 9:return[2,null];case 10:return[3,12];case 11:return c=u.sent(),console.error("截图发生错误:"+c),[2,null];case 12:return[2]}}))}))},selectdArea:De,setActions:Oe,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:ue,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:me,setPositionForWorld:ye,setSessionData:function(t,e){var n=JSON.stringify(e);sessionStorage.setItem(t,n)},toHex:sa,toHexString:la,toRgbString:ca,toRgbaString:ua,transformPosition:be,upDataGroup:Te,upDataGroupChildren:function(e,n,r){var i=e.children,o=t.cloneDeep(n),a=t.cloneDeep(Se(i)),s=o.left,l=o.top;o.width,o.height;var c=a.left,u=a.top,h=a.width,d=a.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:de,updataAttributeForOption:fe,updataSizeDeep:te,validateAndFixObject:ke,watchError:function(t,e){t.config.errorHandler=function(t){console.error("监测到E1002错误"),console.error(t.filename),ma("E1002",t.name+":"+t.message,e)},window.addEventListener("error",(function(t){t.message?(console.error("监测到E1003错误"),ma("E1003",t.message,t.filename,e)):(console.error("监测到E1004错误"),ma("E1004",t.target.currentSrc,t.filename,e))}),!0)}});function ba(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function wa(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
|
|
34
|
+
(e=>{let n=(()=>{let t=0;return{escape:function(t){return t.replace(/([.*+?^${}()|[\]/\\])/g,"\\$1")},isDataUrl:function(t){return-1!==t.search(/^(data:)/)},canvasToBlob:function(t){return t.toBlob?new Promise(function(e){t.toBlob(e)}):(t=>new Promise(function(e){var n=d(t.toDataURL().split(",")[1]),r=n.length,i=new Uint8Array(r);for(let t=0;t<r;t++)i[t]=n.charCodeAt(t);e(new Blob([i],{type:"image/png"}))}))(t)},resolveUrl:function(t,e){var n=document.implementation.createHTMLDocument(),r=n.createElement("base"),i=(n.head.appendChild(r),n.createElement("a"));return n.body.appendChild(i),r.href=e,i.href=t,i.href},getAndEncode:function(t){let e=c.impl.urlCache.find(function(e){return e.url===t});return e||(e={url:t,promise:null},c.impl.urlCache.push(e)),null===e.promise&&(c.impl.options.cacheBust&&(t+=(/\?/.test(t)?"&":"?")+(new Date).getTime()),e.promise=new Promise(function(e){let n,r=c.impl.options.httpTimeout,i=new XMLHttpRequest;if(i.onreadystatechange=function(){if(4===i.readyState)if(300<=i.status)n?e(n):a(`cannot fetch resource: ${t}, status: `+i.status);else{let t=new FileReader;t.onloadend=function(){e(t.result)},t.readAsDataURL(i.response)}},i.ontimeout=function(){n?e(n):a(`timeout of ${r}ms occured while fetching resource: `+t)},i.responseType="blob",i.timeout=r,0<c.impl.options.useCredentialsFilters.length&&(c.impl.options.useCredentials=0<c.impl.options.useCredentialsFilters.filter(e=>0<=t.search(e)).length),c.impl.options.useCredentials&&(i.withCredentials=!0),c.impl.options.corsImg&&0===t.indexOf("http")&&-1===t.indexOf(window.location.origin)){var o="POST"===(c.impl.options.corsImg.method||"GET").toUpperCase()?"POST":"GET";i.open(o,(c.impl.options.corsImg.url||"").replace("#{cors}",t),!0);let e=!1,n=c.impl.options.corsImg.headers||{},r=(Object.keys(n).forEach(function(t){-1!==n[t].indexOf("application/json")&&(e=!0),i.setRequestHeader(t,n[t])}),(t=>{try{return JSON.parse(JSON.stringify(t))}catch(t){a("corsImg.data is missing or invalid:"+t.toString())}})(c.impl.options.corsImg.data||""));Object.keys(r).forEach(function(e){"string"==typeof r[e]&&(r[e]=r[e].replace("#{cors}",t))}),i.send(e?JSON.stringify(r):r)}else i.open("GET",t,!0),i.send();function a(t){console.error(t),e("")}c.impl.options.imagePlaceholder&&(o=c.impl.options.imagePlaceholder.split(/,/))&&o[1]&&(n=o[1])})),e.promise},uid:function(){return"u"+("0000"+(Math.random()*Math.pow(36,4)|0).toString(36)).slice(-4)+t++},delay:function(t){return function(e){return new Promise(function(n){setTimeout(function(){n(e)},t)})}},asArray:function(t){var e=[],n=t.length;for(let r=0;r<n;r++)e.push(t[r]);return e},escapeXhtml:function(t){return t.replace(/%/g,"%25").replace(/#/g,"%23").replace(/\n/g,"%0A")},makeImage:function(t){return"data:,"!==t?new Promise(function(e,n){let r=document.createElementNS("http://www.w3.org/2000/svg","svg"),i=new Image;c.impl.options.useCredentials&&(i.crossOrigin="use-credentials"),i.onload=function(){document.body.removeChild(r),window&&window.requestAnimationFrame?window.requestAnimationFrame(function(){e(i)}):e(i)},i.onerror=t=>{document.body.removeChild(r),n(t)},r.appendChild(i),i.src=t,document.body.appendChild(r)}):Promise.resolve()},width:function(t){var e=a(t,"width");if(!isNaN(e))return e;e=a(t,"border-left-width");var n=a(t,"border-right-width");return t.scrollWidth+e+n},height:function(t){var e=a(t,"height");if(!isNaN(e))return e;e=a(t,"border-top-width");var n=a(t,"border-bottom-width");return t.scrollHeight+e+n},getWindow:n,isElement:o,isElementHostForOpenShadowRoot:function(t){return o(t)&&null!==t.shadowRoot},isShadowRoot:r,isInShadowRoot:i,isHTMLElement:function(t){return t instanceof n(t).HTMLElement},isHTMLCanvasElement:function(t){return t instanceof n(t).HTMLCanvasElement},isHTMLInputElement:function(t){return t instanceof n(t).HTMLInputElement},isHTMLImageElement:function(t){return t instanceof n(t).HTMLImageElement},isHTMLLinkElement:function(t){return t instanceof n(t).HTMLLinkElement},isHTMLScriptElement:function(t){return t instanceof n(t).HTMLScriptElement},isHTMLStyleElement:function(t){return t instanceof n(t).HTMLStyleElement},isHTMLTextAreaElement:function(t){return t instanceof n(t).HTMLTextAreaElement},isShadowSlotElement:function(t){return i(t)&&t instanceof n(t).HTMLSlotElement},isSVGElement:function(t){return t instanceof n(t).SVGElement},isSVGRectElement:function(t){return t instanceof n(t).SVGRectElement},isDimensionMissing:function(t){return isNaN(t)||t<=0}};function n(t){return((t=t?t.ownerDocument:void 0)?t.defaultView:void 0)||window||e}function r(t){return t instanceof n(t).ShadowRoot}function i(t){return null!=t&&void 0!==t.getRootNode&&r(t.getRootNode())}function o(t){return t instanceof n(t).Element}function a(t,e){if(t.nodeType===u){let n=h(t).getPropertyValue(e);if("px"===n.slice(-2))return n=n.slice(0,-2),parseFloat(n)}return NaN}})(),r=(()=>{let t=/url\(['"]?([^'"]+?)['"]?\)/g;return{inlineAll:function(t,n,o){return e(t)?Promise.resolve(t).then(r).then(function(e){let r=Promise.resolve(t);return e.forEach(function(t){r=r.then(function(e){return i(e,t,n,o)})}),r}):Promise.resolve(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(r){return t.replace((i=e,new RegExp(`(url\\(['"]?)(${n.escape(i)})(['"]?\\))`,"g")),`$1${r}$3`);var i})}})(),i={resolveAll:function(){return o().then(function(t){return Promise.all(t.map(function(t){return t.resolve()}))}).then(function(t){return t.join("\n")})},impl:{readAll:o}};function o(){return Promise.resolve(n.asArray(document.styleSheets)).then(function(t){let e=[];return t.forEach(function(t){var r=Object.getPrototypeOf(t);if(Object.prototype.hasOwnProperty.call(r,"cssRules"))try{n.asArray(t.cssRules||[]).forEach(e.push.bind(e))}catch(r){console.error("domtoimage: Error while reading CSS rules from "+t.href,r.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")}}}}let a={inlineAll:function t(e){return n.isElement(e)?function(t){let e=["background","background-image"].map(function(e){let n=t.style.getPropertyValue(e),i=t.style.getPropertyPriority(e);return n?r.inlineAll(n).then(function(n){t.style.setProperty(e,n,i)}):Promise.resolve()});return Promise.all(e).then(function(){return t})}(e).then(function(){return n.isHTMLImageElement(e)?s(e).inline():Promise.all(n.asArray(e.childNodes).map(function(e){return t(e)}))}):Promise.resolve(e)},impl:{newImage:s}};function s(t){return{inline:function(e){return n.isDataUrl(t.src)?Promise.resolve():Promise.resolve(t.src).then(e||n.getAndEncode).then(function(e){return new Promise(function(n){t.onload=n,t.onerror=n,t.src=e})})}}}let l={copyDefaultStyles:!0,imagePlaceholder:void 0,cacheBust:!1,useCredentials:!1,useCredentialsFilters:[],httpTimeout:3e4,styleCaching:"strict",corsImg:void 0,adjustClonedNode:void 0},c={toSvg:f,toPng:function(t,e){return p(t,e).then(function(t){return t.toDataURL()})},toJpeg:function(t,e){return p(t,e).then(function(t){return t.toDataURL("image/jpeg",(e?e.quality:void 0)||1)})},toBlob:function(t,e){return p(t,e).then(n.canvasToBlob)},toPixelData:function(t,e){return p(t,e).then(function(e){return e.getContext("2d").getImageData(0,0,n.width(t),n.height(t)).data})},toCanvas:p,impl:{fontFaces:i,images:a,util:n,inliner:r,urlCache:[],options:{}}},u=(t.exports=c,("undefined"!=typeof Node?Node.ELEMENT_NODE:void 0)||1),h=(void 0!==e?e.getComputedStyle:void 0)||("undefined"!=typeof window?window.getComputedStyle:void 0)||globalThis.getComputedStyle,d=(void 0!==e?e.atob:void 0)||("undefined"!=typeof window?window.atob:void 0)||globalThis.atob;function f(t,e){c.impl.util.getWindow(t);var r=e=e||{};void 0===r.copyDefaultStyles?c.impl.options.copyDefaultStyles=l.copyDefaultStyles:c.impl.options.copyDefaultStyles=r.copyDefaultStyles,c.impl.options.imagePlaceholder=(void 0===r.imagePlaceholder?l:r).imagePlaceholder,c.impl.options.cacheBust=(void 0===r.cacheBust?l:r).cacheBust,c.impl.options.corsImg=(void 0===r.corsImg?l:r).corsImg,c.impl.options.useCredentials=(void 0===r.useCredentials?l:r).useCredentials,c.impl.options.useCredentialsFilters=(void 0===r.useCredentialsFilters?l:r).useCredentialsFilters,c.impl.options.httpTimeout=(void 0===r.httpTimeout?l:r).httpTimeout,c.impl.options.styleCaching=(void 0===r.styleCaching?l:r).styleCaching;let i=[];return Promise.resolve(t).then(function(t){if(t.nodeType===u)return t;var e=t,n=t.parentNode,r=document.createElement("span");return n.replaceChild(r,e),r.append(t),i.push({parent:n,child:e,wrapper:r}),r}).then(function(t){return function t(e,r,i,o){let a=r.filter;return e===m||n.isHTMLScriptElement(e)||n.isHTMLStyleElement(e)||n.isHTMLLinkElement(e)||null!==i&&a&&!a(e)?Promise.resolve():Promise.resolve(e).then(function(t){return n.isHTMLCanvasElement(t)?n.makeImage(t.toDataURL()):t.cloneNode(!1)}).then(function(t){return r.adjustClonedNode&&r.adjustClonedNode(e,t,!1),Promise.resolve(t)}).then(function(i){return function(e,i){let o=l(i),a=Promise.resolve();if(0!==o.length){let l=h(s(i));n.asArray(o).forEach(function(n){a=a.then(function(){return t(n,r,l).then(function(t){t&&e.appendChild(t)})})})}return a.then(function(){return e});function s(t){return n.isShadowRoot(t)?t.host:t}function l(t){if(n.isShadowSlotElement(t)){let e=t.assignedNodes();if(e&&0<e.length)return e}return t.childNodes}}(i,function(t){return n.isElementHostForOpenShadowRoot(t)?t.shadowRoot:t}(e))}).then(function(t){return r.adjustClonedNode&&r.adjustClonedNode(e,t,!0),Promise.resolve(t)}).then(function(t){return function(t,e){return!n.isElement(t)||n.isShadowSlotElement(e)?Promise.resolve(t):Promise.resolve().then(o).then(a).then(s).then(l).then(c).then(function(){return t});function o(){if(t instanceof HTMLVideoElement){var n=window.getComputedStyle(e),r=document.createElement("canvas"),i=(n=(r.width=parseInt(n.width,10),r.height=parseInt(n.height,10),Math.max(e.videoWidth/r.width,e.videoHeight/r.height)),e.videoWidth/n),o=(n=e.videoHeight/n,r.width/2-i/2),a=r.height/2-n/2;r.getContext("2d").drawImage(e,o,a,i,n);let s=(t=document.createElement("img")).cloneNode(!0);try{s.src=r.toDataURL()}catch(n){s.src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="}}}function a(){function n(t,e){e.font=t.font,e.fontFamily=t.fontFamily,e.fontFeatureSettings=t.fontFeatureSettings,e.fontKerning=t.fontKerning,e.fontSize=t.fontSize,e.fontStretch=t.fontStretch,e.fontStyle=t.fontStyle,e.fontVariant=t.fontVariant,e.fontVariantCaps=t.fontVariantCaps,e.fontVariantEastAsian=t.fontVariantEastAsian,e.fontVariantLigatures=t.fontVariantLigatures,e.fontVariantNumeric=t.fontVariantNumeric,e.fontVariationSettings=t.fontVariationSettings,e.fontWeight=t.fontWeight}function o(t,e){let o=h(t);o.cssText?(e.style.cssText=o.cssText,n(o,e.style)):(y(r,t,o,i,e),null===i&&(["inset-block","inset-block-start","inset-block-end"].forEach(t=>e.style.removeProperty(t)),["left","right","top","bottom"].forEach(t=>{e.style.getPropertyValue(t)&&e.style.setProperty(t,"0px")})))}o(e,t)}function s(){let r=n.uid();function i(i){let o=h(e,i),a=o.getPropertyValue("content");if(""!==a&&"none"!==a){let s=t.getAttribute("class")||"",l=(t.setAttribute("class",s+" "+r),document.createElement("style"));function c(){let t=`.${r}:`+i,e=(o.cssText?s:l)();return document.createTextNode(t+`{${e}}`);function s(){return`${o.cssText} content: ${a};`}function l(){return n.asArray(o).map(t).join("; ")+";";function t(t){return t+": "+o.getPropertyValue(t)+(o.getPropertyPriority(t)?" !important":"")}}}l.appendChild(c()),t.appendChild(l)}}[":before",":after"].forEach(function(t){i(t)})}function l(){n.isHTMLTextAreaElement(e)&&(t.innerHTML=e.value),n.isHTMLInputElement(e)&&t.setAttribute("value",e.value)}function c(){n.isSVGElement(t)&&(t.setAttribute("xmlns","http://www.w3.org/2000/svg"),n.isSVGRectElement(t))&&["width","height"].forEach(function(e){let n=t.getAttribute(e);n&&t.style.setProperty(e,n)})}}(t,e)})}(t,e,null)}).then(e.disableEmbedFonts?Promise.resolve(t):g).then(v).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]});let n=null;return"function"==typeof e.onclone&&(n=e.onclone(t)),Promise.resolve(n).then(function(){return t})}).then(function(t){let r=e.width||n.width(t),i=e.height||n.height(t);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){var e=(n.isDimensionMissing(r)?' width="100%"':` width="${r}"`)+(n.isDimensionMissing(i)?' height="100%"':` height="${i}"`);return`<svg xmlns="http://www.w3.org/2000/svg"${(n.isDimensionMissing(r)?"":` width="${r}"`)+(n.isDimensionMissing(i)?"":` height="${i}"`)}><foreignObject${e}>${t}</foreignObject></svg>`}).then(function(t){return"data:image/svg+xml;charset=utf-8,"+t})}).then(function(t){for(;0<i.length;){var e=i.pop();e.parent.replaceChild(e.child,e.wrapper)}return t}).then(function(t){return c.impl.urlCache=[],m&&(document.body.removeChild(m),m=null),b&&clearTimeout(b),b=setTimeout(()=>{b=null,w={}},2e4),t})}function p(t,e){return f(t,e=e||{}).then(n.makeImage).then(function(r){var i="number"!=typeof e.scale?1:e.scale,o=((t,r)=>{let i=e.width||n.width(t),o=e.height||n.height(t);return n.isDimensionMissing(i)&&(i=n.isDimensionMissing(o)?300:2*o),n.isDimensionMissing(o)&&(o=i/2),(t=document.createElement("canvas")).width=i*r,t.height=o*r,e.bgcolor&&((r=t.getContext("2d")).fillStyle=e.bgcolor,r.fillRect(0,0,t.width,t.height)),t})(t,i),a=o.getContext("2d");return a.msImageSmoothingEnabled=!1,a.imageSmoothingEnabled=!1,r&&(a.scale(i,i),a.drawImage(r,0,0)),o})}let m=null;function g(t){return i.resolveAll().then(function(e){var n;return""!==e&&(n=document.createElement("style"),t.appendChild(n),n.appendChild(document.createTextNode(e))),t})}function v(t){return a.inlineAll(t).then(function(){return t})}function y(t,e,r,i,o){let a=c.impl.options.copyDefaultStyles?((t,e)=>{var r,i=(e=>("relaxed"!==t.styleCaching?e:e.filter((t,e,n)=>0===e||e===n.length-1)).join(">"))(e=(t=>{var e=[];do{if(t.nodeType===u){var n=t.tagName;if(e.push(n),_.includes(n))break}}while(t=t.parentNode);return e})(e));if(w[i])return w[i];e=((t,e)=>{let n=t.body;do{var r=e.pop();r=t.createElement(r);n.appendChild(r),n=r}while(0<e.length);return n.textContent="",n})((r=(()=>{if(m)return m.contentWindow;e=document.characterSet||"UTF-8",t=(t=document.doctype)?(`<!DOCTYPE ${l(t.name)} ${l(t.publicId)} `+l(t.systemId)).trim()+">":"",(m=document.createElement("iframe")).id="domtoimage-sandbox-"+n.uid(),m.style.visibility="hidden",m.style.position="fixed",document.body.appendChild(m);var t,e,r=m,i="domtoimage-sandbox";try{return r.contentWindow.document.write(t+`<html><head><meta charset='${e}'><title>${i}</title></head><body></body></html>`),r.contentWindow}catch(t){}var o=document.createElement("meta");o.setAttribute("charset",e);try{var a=document.implementation.createHTMLDocument(i),s=(a.head.appendChild(o),t+a.documentElement.outerHTML);return r.setAttribute("srcdoc",s),r.contentWindow}catch(t){}return r.contentDocument.head.appendChild(o),r.contentDocument.title=i,r.contentWindow;function l(t){var e;return t?((e=document.createElement("div")).innerText=t,e.innerHTML):""}})()).document,e),r=((t,e)=>{let r={},i=t.getComputedStyle(e);return n.asArray(i).forEach(function(t){r[t]="width"===t||"height"===t?"auto":i.getPropertyValue(t)}),r})(r,e);var o=e;do{var a=o.parentElement;null!==a&&a.removeChild(o),o=a}while(o&&"BODY"!==o.tagName);return w[i]=r})(t,e):{},s=o.style;n.asArray(r).forEach(function(t){var e,n=r.getPropertyValue(t),o=a[t],l=i?i.getPropertyValue(t):void 0;s.getPropertyValue(t)||(n!==o||i&&n!==l)&&(o=r.getPropertyPriority(t),l=s,e=0<=["background-clip"].indexOf(t),o?(l.setProperty(t,n,o),e&&l.setProperty("-webkit-"+t,n,o)):(l.setProperty(t,n),e&&l.setProperty("-webkit-"+t,n)))})}let b=null,w={},_=["ADDRESS","ARTICLE","ASIDE","BLOCKQUOTE","DETAILS","DIALOG","DD","DIV","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","H1","H2","H3","H4","H5","H6","HEADER","HGROUP","HR","LI","MAIN","NAV","OL","P","PRE","SECTION","SVG","TABLE","UL","math","svg","BODY","HEAD","HTML"]})(r)}),ra=function(t){if(!t)return!1;return 1==new RegExp(/http(s)?:\/\/([\w-]+\.)+[\w-]+(\/[\w- .\/?%&=]*)?/).test(t)},ia=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))},oa=function(t,e){void 0===e&&(e="screenshot.jpeg");try{for(var n=t.split(","),r=n[0].match(/:(.*?);/)[1],i=atob(n[1]),o=i.length,a=new Uint8Array(o);o--;)a[o]=i.charCodeAt(o);return new File([a],e,{type:r})}catch(t){console.error("dataURLtoFile:数据转换错误 : "+t)}},aa=function(t,e){return h(void 0,void 0,void 0,function(){var n;return d(this,function(r){switch(r.label){case 0:return r.trys.push([0,11,,12]),"File"!=e||"string"!=typeof t?[3,2]:[4,oa(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,ia(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]}})})},sa=function(t,e,r,i){return h(void 0,void 0,void 0,function(){return d(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,n({url:t,method:"GET",responseType:"arraybuffer",params:{url:e,dom:r,quality:i}})];case 1:return[2,o.sent()];case 2:return o.sent(),console.warn("请求截图服务器发生错误,请检查地址及参数是否正确!",{url:t,path:e,dom:r,quality:i}),[2,null];case 3:return[2]}})})},la=function(t,e){return h(void 0,void 0,void 0,function(){var n,r,i,o,a,s;return d(this,function(l){switch(l.label){case 0:if(l.trys.push([0,2,,3]),!(n=document.querySelector(t)))throw new Error("domToImg:"+t+" dom未被找到!");return r=e.quality,i=void 0===r?.5:r,o=e.disableEmbedFonts,a=void 0===o||o,[4,na.toJpeg(n,{style:{transform:"scale(1)",position:"static"},quality:i,disableEmbedFonts:a})];case 1:return[2,l.sent()];case 2:return s=l.sent(),console.warn(s),[3,3];case 3:return[2]}})})},ca=function(t){return"".concat(t>15?"":0).concat(t.toString(16))},ua=function(t){var e=t.r,n=t.g,r=t.b,i=t.a,o=void 0===i?1:i;return"#".concat(ca(e)).concat(ca(n)).concat(ca(r)).concat(1===o?"":ca(Math.floor(255*o)))},ha=function(t){var e=t.r,n=t.g,r=t.b;return"rgb(".concat(e,",").concat(n,",").concat(r,")")},da=function(t,e){void 0===e&&(e=1e4);var n=t.r,r=t.g,i=t.b,o=t.a,a=void 0===o?1:o;return"rgba(".concat(n,",").concat(r,",").concat(i,",").concat(Math.floor(a*e)/e,")")},fa=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}},pa=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])}},ma=function(t){if(t.startsWith("#"))return fa(t);if(t.startsWith("rgb"))return pa(t);if("transparent"===t)return fa("#00000000");throw new Error("color string error: ".concat(t))},ga=new Map([["E1001","系统未知错误"],["E1002","vue逻辑错误"],["E1003","JavaScript错误"],["E1004","静态资源加载错误"],["E1005","请求错误"],["E1006","Promise错误"]]),va=function(t,e,n,r){void 0===r&&(r="null"),ya({code:t,type:ga.get("".concat(t)),msg:e,router:n.currentRoute.value.fullPath,file:r,createTime:(new Date).toLocaleString()})},ya=function(t){var e=localStorage.getItem("ERROR");if(e){var n=JSON.parse(e);ba(n),n.length>50?(n[0]=t,ba(n)):n.push(t),localStorage.setItem("ERROR",JSON.stringify(n))}else localStorage.setItem("ERROR",JSON.stringify([t]))},ba=function(t){t.sort(function(t,e){return t.createTime>e.createTime?1:-1})},wa=Object.freeze({__proto__:null,RecursiveList:Ce,Scale:ea,SizeAdaption:ta,UpdataForContainer:Pe,Watermark:class{constructor(t={}){Ho(this,"options"),Ho(this,"container"),Ho(this,"watermarkContent"),Ho(this,"watermarkDom"),Ho(this,"style"),Ho(this,"watermarkTag"),Ho(this,"shadowRoot"),Ho(this,"mutationObserver"),Ho(this,"_isAgainRender",t=>{if("attributes"===t.type){if(t.attributeName===Uo)return!0;if(this.watermarkTag===this._getNodeRandomId(t.target))return!0}return!(!t.removedNodes.length||this.watermarkTag!==this._getNodeRandomId(t.removedNodes[0]))}),Ho(this,"_getNodeRandomId",t=>{var e,n;return null==(e=null==t?void 0:t.dataset)?void 0:e[(n=Uo,n.split("-").slice(1).reduce((t,e,n)=>0===n?e:`${t}${e[0].toUpperCase()+e.slice(1)}`))]}),Ho(this,"_destroyMutationObserver",()=>{this.mutationObserver&&(this.mutationObserver.takeRecords(),this.mutationObserver.disconnect(),this.mutationObserver=null)}),Ho(this,"_getWatermarkDom",t=>zo(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:o,width:a,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:w,blindOpacity:_}=t;return new Promise((t,D)=>{const S=document.createElement("canvas"),x=S.getContext("2d"),k=1*(Number(n)+Number(a)),T=1*(Number(r)+Number(s)),C=Number(o)||Number(n)/2,E=Number(i)||Number(r)/2;if(S.setAttribute("width",`${k}px`),S.setAttribute("height",`${T}px`),x){const n=1*a,r=1*s;if(x.translate(1*C,1*E),x.rotate(Math.PI/180*Number(l)),b&&(x.globalAlpha=_,x.font=`${w}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:k,height:T})})}const i=Array.isArray(e)?e:[e],o=i.map(t=>x.measureText(t).width),h=Math.max(...o),d=1*Number(u);x.textAlign=g,x.textBaseline=v,x.fillStyle=m,x.font=O(`${d}px`),h>a&&(x.font=O(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:k,height:T})}function O(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",Go(this.style))}return this.watermarkDom.setAttribute(Uo,this.watermarkTag),this.watermarkDom})),Ho(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({},Yo,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=Wo("watermark"),this.mutationObserver=null,this._render()}update(t={}){this.options=Lo(Lo({},this.options),t),this.style.zIndex=this.options.zIndex,this._render()}show(){this.watermarkDom&&(this.style.display="block",this.watermarkDom.setAttribute("style",Go(this.style)))}hide(){this.watermarkDom&&(this.style.display="none",this.watermarkDom.setAttribute("style",Go(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 zo(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(Uo,e);const o=Lo({position:"relative"},n);return r||delete o.position,i.setAttribute("style",Go(o)),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",Go({pointerEvents:"none"})),e.setAttribute(Uo,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),$o&&this.options.monitor&&(this.mutationObserver=new $o(t=>{t.forEach(t=>{if(this._isAgainRender(t))return this.destroy(),void this._render()})}),this.mutationObserver.observe(this.container,qo),this.shadowRoot&&this.mutationObserver.observe(this.shadowRoot,qo))})}},arraySwap:ne,arraySwapDeep:ie,arraySwapForId:re,breakUp:ge,checkBaseData:ee,checkVar:function(t,e){var n,r,i,o=!1,a=t.type,s=t.converse,l=t[a];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)){o=!0;break}}if(o)return o;var h="",d="",f="";"api"==a&&(h=l.url,(null===(r=l.headers)||void 0===r?void 0:r.use)&&(d=l.headers.value),f=l.params),"datasource"==a&&(h=l.inputSql),"indicator"==a&&((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)})){o=!0;break}}return o},comToggle:pe,decrypAES:function(t){var e=Qt.enc.Utf8.parse(Ae.key),n=Qt.enc.Utf8.parse(Ae.iv);return Qt.AES.encrypt(t,e,{iv:n,mode:Qt.mode.CBC,padding:Qt.pad.Pkcs7}).toString()},decrypt:function(t){var e=new Xt;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 Xt;return e.setPublicKey("MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApWni7uLYVV8iyDPTR6Zs\naj+2BHCn4xTzFeVHADzTdtBiFH9i4fKeDK0IfbPV/9TGeRYNfl0qSfdLtU+1ZIzm\npqHppadukmk5+NbBG4Xm/lAZgVt3dUIrSyamxVjwnymN7PLdxaSOS/mgU6SDGMhN\nTM76AXKZZXWMK12UCXvKkh+TkGufcXzLe7LtrvHPLOgcnEED2CkWATuE9g8K9j4T\neOMxhJcHBUmXLgU6Chufa4nBed2899E7jxJa14+J1IDa2ahrDFLZN7H//ZsvwnXq\nxVbxm0k5jyWqfCpg13V7zD3DxNWlo3MIh2fPtIEUDVhugqPd0jPmqquqdBNTnu2I\nGQIDAQAB"),e.encrypt(t)},errorHandler:va,executeFilter:function(t){return t.hasOwnProperty("originalValue")||(t.originalValue=t.value),t.converter&&t.converterCode?t.value=Me(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,o=t.caseRemark,a=void 0===o?"":o,l=t.details,c=t.caseClientType,u=void 0===c?"":c,h=t.id,d={caseClientType:u,caseName:n,caseImg:i,caseRemark:a,caseId:void 0===h?"":h,createTime:s().format("YYYY-MM-DD , h:mm:ss"),caseData:Jo(l)},f=new Blob([JSON.stringify(d)],{type:"json"});Ko.saveAs(f,n+".json")},findItem:function(t,e,n){for(var r,i=function(i){var o=t[i];if(o.cid===e)return r=o,n&&t.splice(i,1),{value:r};if(o.children&&o.children.length){for(var a=0;a<o.children.length;a++)if(o.children[a].cid===e)return r=o.children[a],n&&o.children.splice(a,1),{value:r}}else if(o.stateChildren&&o.stateChildren.length){for(a=0;a<o.stateChildren.length;a++)if(o.stateChildren[a].cid===e)return r=o.stateChildren[a],n&&o.stateChildren.splice(a,1),{value:r}}else if(o.dynamicChildren){var s=void 0;if(o.dynamicChildren instanceof Map?s=o.dynamicChildren.get(o.activeDynamic):o.dynamicChildren instanceof Array&&(s=o.dynamicChildren.find(function(t){return t[0]==o.activeDynamic})[1]),s)for(a=0;a<s.length;a++)if(s[a].cid===e)return r=s[a],n&&s.splice(a,1),{value:r}}},o=0;o<t.length;o++){var a=i(o);if("object"==typeof a)return a.value}return!!r},findItemDeep:oe,findItemIndexDeep:function(t,e){for(var n,r=0,i=0;i<t.length;i++){var o=t[i];if(r+=1,o.cid==e)break;if(null===(n=null==o?void 0:o.children)||void 0===n?void 0:n.length)for(var a=0;a<(null==o?void 0:o.children.length);a++){if(r+=1,(null==o?void 0:o.children[a]).cid==e)return r}}return r},findParentDeep:se,genCopyName:function(t,e,n){var r,i;void 0===n&&(n=" copy");var o=new RegExp("".concat(n,"( \\d+)?$")).exec(t);o?(r=o[1]?parseInt(o[1]):0,i=t.slice(0,o.index)):(r=0,i=t);var a=new RegExp("^".concat(i).concat(n,"( [1-9][0-9]*)?$")),s=[];e.forEach(function(t){if(o=a.exec(t)){var e=o[1]?parseInt(o[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:Ee,generateCaseDataJson:Jo,generateComponentList:Zo,generateJson:function(t){var e=t.caseName,n=void 0===e?"":e,r=t.caseData;return t.plangInfoForPsd,{caseName:n,createTime:s().format("YYYY-MM-DD , h:mm:ss"),caseData:Jo(r)}},generatePageData:function(t){var e={},n=e.theme,r=void 0===n?null:n,i=e.globalVars,o=void 0===i?null:i,a=e.shareVariableTree,s=void 0===a?null:a,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:o,globalEvents:v,shareVariableTree:s,plant:c,undos:f,undoRedoPointer:m,list:Zo(h)}},getAncestorsNodes:ae,getColorInfo:function(t){var e=ma(t);return{hex:ua(e),rgba:da(e),rgb:ha(e),rgbaObj:e}},getDataForEvaluator:y,getInteractive:Ki,getInteractive2:function(e,n,r,i,o){var a;try{var s={},l=[],c=[],u=[],h=t.cloneDeep(e);return(null===(a=null===window||void 0===window?void 0:window.go)||void 0===a?void 0:a.dev)&&ce(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,o=null===(r=null==t?void 0:t.tmpData)||void 0===r?void 0:r.actions;i<o.length;i++){var a=o[i];if("toggle"==a.behave){var s=a.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}}))}}}}),ce(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});Oe({types:r,element:t,actions:l,events:c,eventsComs:u})}}),n&&n.length&&(l=f(f([],l,!0),n,!0)),r&&r.length&&(l=f(f([],l,!0),r,!0)),i&&i.length&&(l=f(f([],l,!0),i,!0)),ce(h,function(t){var e,n=null===(e=null==t?void 0:t.tmpData)||void 0===e?void 0:e.source;Xi(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)});(o?o==t.forkValue||Array.isArray(t.forkValue)&&t.forkValue.includes(o):!!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 o?(o==t.forkValue||Array.isArray(t.forkValue)&&t.forkValue.includes(o))&&(t.hasOwnProperty("originalValue")||(t.originalValue=t.value),t.converter&&t.converterCode?t.value=Me(t.converterCode,t.originalValue):t.value=t.originalValue):(t.hasOwnProperty("originalValue")||(t.originalValue=t.value),t.converter&&t.converterCode?t.value=Me(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),o=0;o<i.length;o++)if(i[o]instanceof Array){var a=i[o][1];n(a)}}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},getLengthForAn:function(t){if(!Array.isArray(t))return console.error("Input must be an array"),0;var e=0,n=function(t){for(var r=0;r<t.length;r++){var i=t[r];i.isShow&&(i.children&&Array.isArray(i.children)?n(i.children):e++)}};try{n(t)}catch(t){return console.error("Error processing array:",t),0}return e},getLengthForMounted:function(t){var e=0,n=function(t){for(var r,i=0;i<t.length;i++)t[i].isShow&&t[i].children?n(t[i].children):t[i].isShow&&(null===(r=t[i])||void 0===r?void 0:r.mounted)&&e++};return n(t),e},getPosition:Se,getSessionData:function(t){var e=sessionStorage.getItem(t);return e?JSON.parse(e):null},getShareTree:function(t,e){try{var n={},r=[],i=[];return ce(t,function(t){var o,a,s,l=null===(o=null==t?void 0:t.tmpData)||void 0===o?void 0:o.source;if(Xi(l,e,t,n),null===(s=null===(a=null==t?void 0:t.tmpData)||void 0===a?void 0:a.actions)||void 0===s?void 0:s.length){var c=t.tmpData.actions.map(function(t){return t.eventType});Oe({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?Qi(t)?t:JSON.stringify(t):Qi(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:Ne,hasVar:function(t,e,n){var r,i,o,a,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=Zi(null==s?void 0:s.inputSql,n)),(null==s?void 0:s.url)&&(c=Zi(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===(o=null==s?void 0:s.headers)||void 0===o?void 0:o.value)&&(c=Zi(null===(a=null==s?void 0:s.headers)||void 0===a?void 0:a.value,n)),(null==s?void 0:s.params)&&(c=Zi(null==s?void 0:s.params,n)),c},hexToRgba:function(t){var e=ma(t);return da(e)},isJSON:Qi,isPeer:le,loadFont:uo,loadFontResource:so,loadFontTag:function(e){var n=e.fonts,r=void 0===n?[]:n;return h(void 0,void 0,void 0,function(){var e;return d(this,function(n){switch(n.label){case 0:return e=t.uniqBy(r,"fontName"),[4,Promise.all([co(e,"fonts")])];case 1:return n.sent(),[2]}})})},loadScript:lo,loadTag:ho,parseColorString:ma,parseHexColor:fa,parseRgbaColor:pa,recursion:ce,recursionForPid:function(t,e,n){var r=function(t,e,n){var i=oe(t,e);i&&(n(i),i.pid&&r(t,i.pid,n))};r(t,e,n)},removeTag:fo,resetID:he,resetID2:function(t,e){var n=function(t,e){for(var r=function(r){var i=t[r],o=Ee();e&&(i.pid=e),i.cid=o,i&&i.children&&i.children.length?n(i.children,o):i&&i.dynamicChildren&&Array.from(i.dynamicChildren).forEach(function(t,e){n(t[1],o)})},i=0;i<t.length;i++)r(i)};n(t,e)},resetPositionForGroup:function(t,e){var n=e.map(function(t){return t.cid});e.forEach(function(e){e.pid&&ye(e,t)});var r=De(n,e);return me(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,o=0;o<t.length;o++){var a=t[o];if(a.pid!=r){var s=we(e,a.cid),l=we(e,a.pid);a.baseData.left=s.left-l.left,a.baseData.top=s.top-l.top}(null===(i=null==a?void 0:a.children)||void 0===i?void 0:i.length)&&n(a.children,a.cid)}};n(t,e)},resizePosition:we,resziePositionForGroup:function(e,n,r,i){var o=e.baseData.left,a=e.baseData.top,s=n.left,l=n.top,c=t.cloneDeep(e.children),u=r||"";if(s-o<0)for(var h=0;h<c.length;h++){(d=c[h]).cid!==u&&(d.baseData.left=d.baseData.left+(o-s))}if(l-a<0)for(h=0;h<c.length;h++){var d;(d=c[h]).cid!==u&&(d.baseData.top=d.baseData.top+(a-l))}e.children=c},rgbaToHex:function(t){var e=ma(t);return ua(e)},safeConvertToNumber:xe,safeEval:Me,screenshot:function(t){return h(void 0,void 0,void 0,function(){var e,n,r,i,o,a,s,l,c;return d(this,function(u){switch(u.label){case 0:return u.trys.push([0,11,,12]),e=t.dom,n=t.servePath,r=t.targetPath,i=t.quality,o=void 0===i?.5:i,a=t.type,s=void 0,ra(n)&&ra(r)?[4,sa(n,r,e,o||.5)]:[3,5];case 1:return(l=u.sent())&&200==l.status&&l.data?(s=l.data,[3,4]):[3,2];case 2:return console.warn("截取错误,请检查网络或服务地址配置是否正确,已转换为dom-to-img."),[4,la(e,t)];case 3:s=u.sent(),u.label=4;case 4:return[3,7];case 5:return console.warn("地址错误,请检查传入的地址是否争取,已转换为dom-to-img."),[4,la(e,t)];case 6:s=u.sent(),u.label=7;case 7:return s?[4,aa(s,a)]:[3,9];case 8:return[2,u.sent()];case 9:return[2,null];case 10:return[3,12];case 11:return c=u.sent(),console.error("截图发生错误:"+c),[2,null];case 12:return[2]}})})},selectdArea:De,setActions:Oe,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:ue,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:me,setPositionForWorld:ye,setSessionData:function(t,e){var n=JSON.stringify(e);sessionStorage.setItem(t,n)},toHex:ca,toHexString:ua,toRgbString:ha,toRgbaString:da,transformPosition:be,upDataGroup:Te,upDataGroupChildren:function(e,n,r){var i=e.children,o=t.cloneDeep(n),a=t.cloneDeep(Se(i)),s=o.left,l=o.top;o.width,o.height;var c=a.left,u=a.top,h=a.width,d=a.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:de,updataAttributeForOption:fe,updataSizeDeep:te,validateAndFixObject:ke,watchError:function(t,e){t.config.errorHandler=function(t){console.error("监测到E1002错误"),console.error(t.filename),va("E1002",t.name+":"+t.message,e)},window.addEventListener("error",function(t){t.message?(console.error("监测到E1003错误"),va("E1003",t.message,t.filename,e)):(console.error("监测到E1004错误"),va("E1004",t.target.currentSrc,t.filename,e))},!0)}});function _a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Da(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
|
|
35
35
|
/*!
|
|
36
36
|
* GSAP 3.12.5
|
|
37
37
|
* https://gsap.com
|
|
@@ -40,7 +40,7 @@ function(){var t=n,e=t.lib,r=e.WordArray,i=e.Hasher,o=t.algo,a=r.create([0,1,2,3
|
|
|
40
40
|
* Subject to the terms at https://gsap.com/standard-license or for
|
|
41
41
|
* Club GSAP members, the agreement issued with that membership.
|
|
42
42
|
* @author: Jack Doyle, jack@greensock.com
|
|
43
|
-
*/var _a,Da,Sa,xa,ka,Ta,Ca,Ea,Oa,Aa,Ma,Na={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Pa={duration:.5,overwrite:!1,delay:0},Ia=1e8,Va=1e-8,Ra=2*Math.PI,Ba=Ra/4,Fa=0,ja=Math.sqrt,La=Math.cos,Ha=Math.sin,za=function(t){return"string"==typeof t},Ya=function(t){return"function"==typeof t},Ua=function(t){return"number"==typeof t},qa=function(t){return void 0===t},Ga=function(t){return"object"==typeof t},Wa=function(t){return!1!==t},$a=function(){return"undefined"!=typeof window},Ka=function(t){return Ya(t)||za(t)},Xa="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},Za=Array.isArray,Ja=/(?:-?\.?\d|\.)+/gi,Qa=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,ts=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,es=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,ns=/[+-]=-?[.\d]+/,rs=/[^,'"\[\]\s]+/gi,is=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,os={},as={},ss=function(t){return(as=Rs(t,os))&&Bc},ls=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},cs=function(t,e){return!e&&console.warn(t)},us=function(t,e){return t&&(os[t]=e)&&as&&(as[t]=e)||os},hs=function(){return 0},ds={suppressEvents:!0,isStart:!0,kill:!1},fs={suppressEvents:!0,kill:!1},ps={suppressEvents:!0},ms={},gs=[],vs={},ys={},bs={},ws=30,_s=[],Ds="",Ss=function(t){var e,n,r=t[0];if(Ga(r)||Ya(r)||(t=[t]),!(e=(r._gsap||{}).harness)){for(n=_s.length;n--&&!_s[n].targetTest(r););e=_s[n]}for(n=t.length;n--;)t[n]&&(t[n]._gsap||(t[n]._gsap=new Zl(t[n],e)))||t.splice(n,1);return t},xs=function(t){return t._gsap||Ss(pl(t))[0]._gsap},ks=function(t,e,n){return(n=t[e])&&Ya(n)?t[e]():qa(n)&&t.getAttribute&&t.getAttribute(e)||n},Ts=function(t,e){return(t=t.split(",")).forEach(e)||t},Cs=function(t){return Math.round(1e5*t)/1e5||0},Es=function(t){return Math.round(1e7*t)/1e7||0},Os=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},As=function(t,e){for(var n=e.length,r=0;t.indexOf(e[r])<0&&++r<n;);return r<n},Ms=function(){var t,e,n=gs.length,r=gs.slice(0);for(vs={},gs.length=0,t=0;t<n;t++)(e=r[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)},Ns=function(t,e,n,r){gs.length&&!Da&&Ms(),t.render(e,n,r||Da&&e<0&&(t._initted||t._startAt)),gs.length&&!Da&&Ms()},Ps=function(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(rs).length<2?e:za(t)?t.trim():t},Is=function(t){return t},Vs=function(t,e){for(var n in e)n in t||(t[n]=e[n]);return t},Rs=function(t,e){for(var n in e)t[n]=e[n];return t},Bs=function t(e,n){for(var r in n)"__proto__"!==r&&"constructor"!==r&&"prototype"!==r&&(e[r]=Ga(n[r])?t(e[r]||(e[r]={}),n[r]):n[r]);return e},Fs=function(t,e){var n,r={};for(n in t)n in e||(r[n]=t[n]);return r},js=function(t){var e,n=t.parent||xa,r=t.keyframes?(e=Za(t.keyframes),function(t,n){for(var r in n)r in t||"duration"===r&&e||"ease"===r||(t[r]=n[r])}):Vs;if(Wa(t.inherit))for(;n;)r(t,n.vars.defaults),n=n.parent||n._dp;return t},Ls=function(t,e,n,r,i){void 0===n&&(n="_first"),void 0===r&&(r="_last");var o,a=t[r];if(i)for(o=e[i];a&&a[i]>o;)a=a._prev;return a?(e._next=a._next,a._next=e):(e._next=t[n],t[n]=e),e._next?e._next._prev=e:t[r]=e,e._prev=a,e.parent=e._dp=t,e},Hs=function(t,e,n,r){void 0===n&&(n="_first"),void 0===r&&(r="_last");var i=e._prev,o=e._next;i?i._next=o:t[n]===e&&(t[n]=o),o?o._prev=i:t[r]===e&&(t[r]=i),e._next=e._prev=e.parent=null},zs=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},Ys=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},Us=function(t,e,n,r){return t._startAt&&(Da?t._startAt.revert(fs):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,r))},qs=function t(e){return!e||e._ts&&t(e.parent)},Gs=function(t){return t._repeat?Ws(t._tTime,t=t.duration()+t._rDelay)*t:0},Ws=function(t,e){var n=Math.floor(t/=e);return t&&n===t?n-1:n},$s=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},Ks=function(t){return t._end=Es(t._start+(t._tDur/Math.abs(t._ts||t._rts||Va)||0))},Xs=function(t,e){var n=t._dp;return n&&n.smoothChildTiming&&t._ts&&(t._start=Es(n._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),Ks(t),n._dirty||Ys(n,t)),t},Zs=function(t,e){var n;if((e._time||!e._dur&&e._initted||e._start<t._time&&(e._dur||!e.add))&&(n=$s(t.rawTime(),e),(!e._dur||cl(0,e.totalDuration(),n)-e._tTime>Va)&&e.render(n,!0)),Ys(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}},Js=function(t,e,n,r){return e.parent&&zs(e),e._start=Es((Ua(n)?n:n||t!==xa?al(t,n,e):t._time)+e._delay),e._end=Es(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),Ls(t,e,"_first","_last",t._sort?"_start":0),nl(e)||(t._recent=e),r||Zs(t,e),t._ts<0&&Xs(t,t._tTime),t},Qs=function(t,e){return(os.ScrollTrigger||ls("scrollTrigger",e))&&os.ScrollTrigger.create(e,t)},tl=function(t,e,n,r,i){return oc(t,e,i),t._initted?!n&&t._pt&&!Da&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&Oa!==Fl.frame?(gs.push(t),t._lazy=[i,r],1):void 0:1},el=function t(e){var n=e.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||t(n))},nl=function(t){var e=t.data;return"isFromStart"===e||"isStart"===e},rl=function(t,e,n,r){var i=t._repeat,o=Es(e)||0,a=t._tTime/t._tDur;return a&&!r&&(t._time*=o/t._dur),t._dur=o,t._tDur=i?i<0?1e10:Es(o*(i+1)+t._rDelay*i):o,a>0&&!r&&Xs(t,t._tTime=t._tDur*a),t.parent&&Ks(t),n||Ys(t.parent,t),t},il=function(t){return t instanceof Ql?Ys(t):rl(t,t._dur)},ol={_start:0,endTime:hs,totalDuration:hs},al=function t(e,n,r){var i,o,a,s=e.labels,l=e._recent||ol,c=e.duration()>=Ia?l.endTime(!1):e._dur;return za(n)&&(isNaN(n)||n in s)?(o=n.charAt(0),a="%"===n.substr(-1),i=n.indexOf("="),"<"===o||">"===o?(i>=0&&(n=n.replace(/=/,"")),("<"===o?l._start:l.endTime(l._repeat>=0))+(parseFloat(n.substr(1))||0)*(a?(i<0?l:r).totalDuration()/100:1)):i<0?(n in s||(s[n]=c),s[n]):(o=parseFloat(n.charAt(i-1)+n.substr(i+1)),a&&r&&(o=o/100*(Za(r)?r[0]:r).totalDuration()),i>1?t(e,n.substr(0,i-1),r)+o:c+o)):null==n?c:+n},sl=function(t,e,n){var r,i,o=Ua(e[1]),a=(o?2:1)+(t<2?0:1),s=e[a];if(o&&(s.duration=e[1]),s.parent=n,t){for(r=s,i=n;i&&!("immediateRender"in r);)r=i.vars.defaults||{},i=Wa(i.vars.inherit)&&i.parent;s.immediateRender=Wa(r.immediateRender),t<2?s.runBackwards=1:s.startAt=e[a-1]}return new uc(e[0],s,e[a+1])},ll=function(t,e){return t||0===t?e(t):e},cl=function(t,e,n){return n<t?t:n>e?e:n},ul=function(t,e){return za(t)&&(e=is.exec(t))?e[1]:""},hl=[].slice,dl=function(t,e){return t&&Ga(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&Ga(t[0]))&&!t.nodeType&&t!==ka},fl=function(t,e,n){return void 0===n&&(n=[]),t.forEach((function(t){var r;return za(t)&&!e||dl(t,1)?(r=n).push.apply(r,pl(t)):n.push(t)}))||n},pl=function(t,e,n){return Sa&&!e&&Sa.selector?Sa.selector(t):!za(t)||n||!Ta&&jl()?Za(t)?fl(t,n):dl(t)?hl.call(t,0):t?[t]:[]:hl.call((e||Ca).querySelectorAll(t),0)},ml=function(t){return t=pl(t)[0]||cs("Invalid scope")||{},function(e){var n=t.current||t.nativeElement||t;return pl(e,n.querySelectorAll?n:n===t?cs("Invalid scope")||Ca.createElement("div"):t)}},gl=function(t){return t.sort((function(){return.5-Math.random()}))},vl=function(t){if(Ya(t))return t;var e=Ga(t)?t:{each:t},n=Gl(e.ease),r=e.from||0,i=parseFloat(e.base)||0,o={},a=r>0&&r<1,s=isNaN(r)||a,l=e.axis,c=r,u=r;return za(r)?c=u={center:.5,edges:.5,end:1}[r]||0:!a&&s&&(c=r[0],u=r[1]),function(t,a,h){var d,f,p,m,g,v,y,b,w,_=(h||e).length,D=o[_];if(!D){if(!(w="auto"===e.grid?0:(e.grid||[1,Ia])[1])){for(y=-1e8;y<(y=h[w++].getBoundingClientRect().left)&&w<_;);w<_&&w--}for(D=o[_]=[],d=s?Math.min(w,_)*c-.5:r%w,f=w===Ia?0:s?_*u/w-.5:r/w|0,y=0,b=Ia,v=0;v<_;v++)p=v%w-d,m=f-(v/w|0),D[v]=g=l?Math.abs("y"===l?m:p):ja(p*p+m*m),g>y&&(y=g),g<b&&(b=g);"random"===r&&gl(D),D.max=y-b,D.min=b,D.v=_=(parseFloat(e.amount)||parseFloat(e.each)*(w>_?_-1:l?"y"===l?_/w:w:Math.max(w,_/w))||0)*("edges"===r?-1:1),D.b=_<0?i-_:i,D.u=ul(e.amount||e.each)||0,n=n&&_<0?Ul(n):n}return _=(D[t]-D.min)/D.max||0,Es(D.b+(n?n(_):_)*D.v)+D.u}},yl=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(n){var r=Es(Math.round(parseFloat(n)/t)*t*e);return(r-r%1)/e+(Ua(n)?0:ul(n))}},bl=function(t,e){var n,r,i=Za(t);return!i&&Ga(t)&&(n=i=t.radius||Ia,t.values?(t=pl(t.values),(r=!Ua(t[0]))&&(n*=n)):t=yl(t.increment)),ll(e,i?Ya(t)?function(e){return r=t(e),Math.abs(r-e)<=n?r:e}:function(e){for(var i,o,a=parseFloat(r?e.x:e),s=parseFloat(r?e.y:0),l=Ia,c=0,u=t.length;u--;)(i=r?(i=t[u].x-a)*i+(o=t[u].y-s)*o:Math.abs(t[u]-a))<l&&(l=i,c=u);return c=!n||l<=n?t[c]:e,r||c===e||Ua(e)?c:c+ul(e)}:yl(t))},wl=function(t,e,n,r){return ll(Za(t)?!e:!0===n?!!(n=0):!r,(function(){return Za(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}))},_l=function(t,e,n){return ll(n,(function(n){return t[~~e(n)]}))},Dl=function(t){for(var e,n,r,i,o=0,a="";~(e=t.indexOf("random(",o));)r=t.indexOf(")",e),i="["===t.charAt(e+7),n=t.substr(e+7,r-e-7).match(i?rs:Ja),a+=t.substr(o,e-o)+wl(i?n:+n[0],i?0:+n[1],+n[2]||1e-5),o=r+1;return a+t.substr(o,t.length-o)},Sl=function(t,e,n,r,i){var o=e-t,a=r-n;return ll(i,(function(e){return n+((e-t)/o*a||0)}))},xl=function(t,e,n){var r,i,o,a=t.labels,s=Ia;for(r in a)(i=a[r]-e)<0==!!n&&i&&s>(i=Math.abs(i))&&(o=r,s=i);return o},kl=function(t,e,n){var r,i,o,a=t.vars,s=a[e],l=Sa,c=t._ctx;if(s)return r=a[e+"Params"],i=a.callbackScope||t,n&&gs.length&&Ms(),c&&(Sa=c),o=r?s.apply(i,r):s.call(i),Sa=l,o},Tl=function(t){return zs(t),t.scrollTrigger&&t.scrollTrigger.kill(!!Da),t.progress()<1&&kl(t,"onInterrupt"),t},Cl=[],El=function(t){if(t)if(t=!t.name&&t.default||t,$a()||t.headless){var e=t.name,n=Ya(t),r=e&&!n&&t.init?function(){this._props=[]}:t,i={init:hs,render:bc,add:rc,kill:_c,modifier:wc,rawVars:0},o={targetTest:0,get:0,getSetter:mc,aliases:{},register:0};if(jl(),t!==r){if(ys[e])return;Vs(r,Vs(Fs(t,i),o)),Rs(r.prototype,Rs(i,Fs(t,o))),ys[r.prop=e]=r,t.targetTest&&(_s.push(r),ms[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}us(e,r),t.register&&t.register(Bc,r,xc)}else Cl.push(t)},Ol=255,Al={aqua:[0,Ol,Ol],lime:[0,Ol,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Ol],navy:[0,0,128],white:[Ol,Ol,Ol],olive:[128,128,0],yellow:[Ol,Ol,0],orange:[Ol,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Ol,0,0],pink:[Ol,192,203],cyan:[0,Ol,Ol],transparent:[Ol,Ol,Ol,0]},Ml=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)*Ol+.5|0},Nl=function(t,e,n){var r,i,o,a,s,l,c,u,h,d,f=t?Ua(t)?[t>>16,t>>8&Ol,t&Ol]:0:Al.black;if(!f){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),Al[t])f=Al[t];else if("#"===t.charAt(0)){if(t.length<6&&(r=t.charAt(1),i=t.charAt(2),o=t.charAt(3),t="#"+r+r+i+i+o+o+(5===t.length?t.charAt(4)+t.charAt(4):"")),9===t.length)return[(f=parseInt(t.substr(1,6),16))>>16,f>>8&Ol,f&Ol,parseInt(t.substr(7),16)/255];f=[(t=parseInt(t.substr(1),16))>>16,t>>8&Ol,t&Ol]}else if("hsl"===t.substr(0,3))if(f=d=t.match(Ja),e){if(~t.indexOf("="))return f=t.match(Qa),n&&f.length<4&&(f[3]=1),f}else a=+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]=Ml(a+1/3,r,i),f[1]=Ml(a,r,i),f[2]=Ml(a-1/3,r,i);else f=t.match(Ja)||Al.transparent;f=f.map(Number)}return e&&!d&&(r=f[0]/Ol,i=f[1]/Ol,o=f[2]/Ol,l=((c=Math.max(r,i,o))+(u=Math.min(r,i,o)))/2,c===u?a=s=0:(h=c-u,s=l>.5?h/(2-c-u):h/(c+u),a=c===r?(i-o)/h+(i<o?6:0):c===i?(o-r)/h+2:(r-i)/h+4,a*=60),f[0]=~~(a+.5),f[1]=~~(100*s+.5),f[2]=~~(100*l+.5)),n&&f.length<4&&(f[3]=1),f},Pl=function(t){var e=[],n=[],r=-1;return t.split(Vl).forEach((function(t){var i=t.match(ts)||[];e.push.apply(e,i),n.push(r+=i.length+1)})),e.c=n,e},Il=function(t,e,n){var r,i,o,a,s="",l=(t+s).match(Vl),c=e?"hsla(":"rgba(",u=0;if(!l)return t;if(l=l.map((function(t){return(t=Nl(t,e,1))&&c+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"})),n&&(o=Pl(t),(r=n.c).join(s)!==o.c.join(s)))for(a=(i=t.replace(Vl,"1").split(ts)).length-1;u<a;u++)s+=i[u]+(~r.indexOf(u)?l.shift()||c+"0,0,0,0)":(o.length?o:l.length?l:n).shift());if(!i)for(a=(i=t.split(Vl)).length-1;u<a;u++)s+=i[u]+l[u];return s+i[a]},Vl=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(t in Al)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),Rl=/hsl[a]?\(/,Bl=function(t){var e,n=t.join(" ");if(Vl.lastIndex=0,Vl.test(n))return e=Rl.test(n),t[1]=Il(t[1],e),t[0]=Il(t[0],e,Pl(t[1])),!0},Fl=function(){var t,e,n,r,i,o,a=Date.now,s=500,l=33,c=a(),u=c,h=1e3/240,d=h,f=[],p=function n(p){var m,g,v,y,b=a()-u,w=!0===p;if((b>s||b<0)&&(c+=b-l),((m=(v=(u+=b)-c)-d)>0||w)&&(y=++r.frame,i=v-1e3*r.time,r.time=v/=1e3,d+=m+(m>=h?4:h-m),g=1),w||(t=e(n)),g)for(o=0;o<f.length;o++)f[o](v,i,y,p)};return r={time:0,frame:0,tick:function(){p(!0)},deltaRatio:function(t){return i/(1e3/(t||60))},wake:function(){Ea&&(!Ta&&$a()&&(ka=Ta=window,Ca=ka.document||{},os.gsap=Bc,(ka.gsapVersions||(ka.gsapVersions=[])).push(Bc.version),ss(as||ka.GreenSockGlobals||!ka.gsap&&ka||{}),Cl.forEach(El)),n="undefined"!=typeof requestAnimationFrame&&requestAnimationFrame,t&&r.sleep(),e=n||function(t){return setTimeout(t,d-1e3*r.time+1|0)},Ma=1,p(2))},sleep:function(){(n?cancelAnimationFrame:clearTimeout)(t),Ma=0,e=hs},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,o,a){t(e,n,o,a),r.remove(i)}:t;return r.remove(t),f[n?"unshift":"push"](i),jl(),i},remove:function(t,e){~(e=f.indexOf(t))&&f.splice(e,1)&&o>=e&&o--},_listeners:f},r}(),jl=function(){return!Ma&&Fl.wake()},Ll={},Hl=/^[\d.\-M][\d.\-,\s]/,zl=/["']/g,Yl=function(t){for(var e,n,r,i={},o=t.substr(1,t.length-3).split(":"),a=o[0],s=1,l=o.length;s<l;s++)n=o[s],e=s!==l-1?n.lastIndexOf(","):n.length,r=n.substr(0,e),i[a]=isNaN(r)?r.replace(zl,"").trim():+r,a=n.substr(e+1).trim();return i},Ul=function(t){return function(e){return 1-t(1-e)}},ql=function t(e,n){for(var r,i=e._first;i;)i instanceof Ql?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},Gl=function(t,e){return t&&(Ya(t)?t:Ll[t]||function(t){var e=(t+"").split("("),n=Ll[e[0]];return n&&e.length>1&&n.config?n.config.apply(null,~t.indexOf("{")?[Yl(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(Ps)):Ll._CE&&Hl.test(t)?Ll._CE("",t):n}(t))||e},Wl=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,o={easeIn:e,easeOut:n,easeInOut:r};return Ts(t,(function(t){for(var e in Ll[t]=os[t]=o,Ll[i=t.toLowerCase()]=n,o)Ll[i+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=Ll[t+"."+e]=o[e]})),o},$l=function(t){return function(e){return e<.5?(1-t(1-2*e))/2:.5+t(2*(e-.5))/2}},Kl=function t(e,n,r){var i=n>=1?n:1,o=(r||(e?.3:.45))/(n<1?n:1),a=o/Ra*(Math.asin(1/i)||0),s=function(t){return 1===t?1:i*Math.pow(2,-10*t)*Ha((t-a)*o)+1},l="out"===e?s:"in"===e?function(t){return 1-s(1-t)}:$l(s);return o=Ra/o,l.config=function(n,r){return t(e,n,r)},l},Xl=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)}:$l(r);return i.config=function(n){return t(e,n)},i};Ts("Linear,Quad,Cubic,Quart,Quint,Strong",(function(t,e){var n=e<5?e+1:e;Wl(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}))})),Ll.Linear.easeNone=Ll.none=Ll.Linear.easeIn,Wl("Elastic",Kl("in"),Kl("out"),Kl()),function(t,e){var n=1/e,r=2*n,i=2.5*n,o=function(o){return o<n?t*o*o:o<r?t*Math.pow(o-1.5/e,2)+.75:o<i?t*(o-=2.25/e)*o+.9375:t*Math.pow(o-2.625/e,2)+.984375};Wl("Bounce",(function(t){return 1-o(1-t)}),o)}(7.5625,2.75),Wl("Expo",(function(t){return t?Math.pow(2,10*(t-1)):0})),Wl("Circ",(function(t){return-(ja(1-t*t)-1)})),Wl("Sine",(function(t){return 1===t?1:1-La(t*Ba)})),Wl("Back",Xl("in"),Xl("out"),Xl()),Ll.SteppedEase=Ll.steps=os.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*cl(0,.99999999,t)|0)+i)*n}}},Pa.ease=Ll["quad.out"],Ts("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",(function(t){return Ds+=t+","+t+"Params,"}));var Zl=function(t,e){this.id=Fa++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:ks,this.set=e?e.getSetter:mc},Jl=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,rl(this,+t.duration,1,1),this.data=t.data,Sa&&(this._ctx=Sa,Sa.data.push(this)),Ma||Fl.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,rl(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(jl(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(Xs(this,t),!n._dp||n.parent||Zs(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)&&Js(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===Va||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),Ns(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+Gs(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)+Gs(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?Ws(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?$s(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||-1e-8===t?0:this._rts,this.totalTime(cl(-Math.abs(this._delay),this._tDur,n),!1!==e),Ks(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):(jl(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==Va&&(this._tTime-=Va)))),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)&&Js(e,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(Wa(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?$s(e.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){void 0===t&&(t=ps);var e=Da;return Da=t,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),"nested"!==this.data&&!1!==t.kill&&this.kill(),Da=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,il(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var e=this._time;return this._rDelay=t,il(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(al(this,t),Wa(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,Wa(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)-Va))},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=Ya(t)?t:Is,i=function(){var t=e.then;e.then=null,Ya(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(){Tl(this)},t}();Vs(Jl.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 Ql=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=Wa(e.sortChildren),xa&&Js(e.parent||xa,ba(r),n),e.reversed&&r.reverse(),e.paused&&r.paused(!0),e.scrollTrigger&&Qs(ba(r),e.scrollTrigger),r}wa(e,t);var n=e.prototype;return n.to=function(t,e,n){return sl(0,arguments,this),this},n.from=function(t,e,n){return sl(1,arguments,this),this},n.fromTo=function(t,e,n,r){return sl(2,arguments,this),this},n.set=function(t,e,n){return e.duration=0,e.parent=this,js(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new uc(t,e,al(this,n),1),this},n.call=function(t,e,n){return Js(this,uc.delayedCall(0,t,e),n)},n.staggerTo=function(t,e,n,r,i,o,a){return n.duration=e,n.stagger=n.stagger||r,n.onComplete=o,n.onCompleteParams=a,n.parent=this,new uc(t,n,al(this,i)),this},n.staggerFrom=function(t,e,n,r,i,o,a){return n.runBackwards=1,js(n).immediateRender=Wa(n.immediateRender),this.staggerTo(t,e,n,r,i,o,a)},n.staggerFromTo=function(t,e,n,r,i,o,a,s){return r.startAt=n,js(r).immediateRender=Wa(r.immediateRender),this.staggerTo(t,e,r,i,o,a,s)},n.render=function(t,e,n){var r,i,o,a,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:Es(t),b=this._zTime<0!=t<0&&(this._initted||!v);if(this!==xa&&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=Es(y%s),y===g?(a=this._repeat,r=v):((a=~~(y/s))&&a===y/s&&(r=v,a--),r>v&&(r=v)),d=Ws(this._tTime,s),!m&&this._tTime&&d!==a&&this._tTime-d*s-this._dur<=0&&(d=a),f&&1&a&&(r=v-r,p=1),a!==d&&!this._lock){var w=f&&1&d,_=w===(f&&1&a);if(a<d&&(w=!w),m=w?0:y%v?v:y,this._lock=1,this.render(m||(p?0:Es(a*s)),e,!v)._lock=0,this._tTime=y,!e&&this.parent&&kl(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,_&&(this._lock=2,m=w?v:-1e-4,this.render(m,!0),this.vars.repeatRefresh&&!p&&this.invalidate()),this._lock=0,!this._ts&&!l)return this;ql(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,Es(m),Es(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&&!a&&(kl(this,"onStart"),this._tTime!==y))return this;if(r>=m&&t>=0)for(i=this._first;i;){if(o=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,o&&(y+=this._zTime=-1e-8);break}}i=o}else{i=this._last;for(var D=t<0?t:r;i;){if(o=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||Da&&(i._initted||i._startAt)),r!==this._time||!this._ts&&!l){c=0,o&&(y+=this._zTime=D?-1e-8:Va);break}}i=o}}if(c&&!e&&(this.pause(),c.render(r>=m?0:-1e-8)._zTime=r>=m?1:-1,this._ts))return this._start=h,Ks(this),this.render(t,e,n);this._onUpdate&&!e&&kl(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)&&zs(this,1),e||t<0&&!m||!y&&!m&&g||(kl(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(Ua(e)||(e=al(this,e,t)),!(t instanceof Jl)){if(Za(t))return t.forEach((function(t){return n.add(t,e)})),this;if(za(t))return this.addLabel(t,e);if(!Ya(t))return this;t=uc.delayedCall(0,t)}return this!==t?Js(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=[],o=this._first;o;)o._start>=r&&(o instanceof uc?e&&i.push(o):(n&&i.push(o),t&&i.push.apply(i,o.getChildren(!0,e,n)))),o=o._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):Ya(t)?this.killTweensOf(t):(Hs(this,t),t===this._recent&&(this._recent=this._last),Ys(this))},n.totalTime=function(e,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Es(Fl.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]=al(this,e),this},n.removeLabel=function(t){return delete this.labels[t],this},n.addPause=function(t,e,n){var r=uc.delayedCall(0,e||hs,n);return r.data="isPause",this._hasPause=1,Js(this,r,al(this,t))},n.removePause=function(t){var e=this._first;for(t=al(this,t);e;)e._start===t&&"isPause"===e.data&&zs(e),e=e._next},n.killTweensOf=function(t,e,n){for(var r=this.getTweensOf(t,n),i=r.length;i--;)tc!==r[i]&&r[i].kill(t,e);return this},n.getTweensOf=function(t,e){for(var n,r=[],i=pl(t),o=this._first,a=Ua(e);o;)o instanceof uc?As(o._targets,i)&&(a?(!tc||o._initted&&o._ts)&&o.globalTime(0)<=e&&o.globalTime(o.totalDuration())>e:!e||o.isActive())&&r.push(o):(n=o.getTweensOf(i,e)).length&&r.push.apply(r,n),o=o._next;return r},n.tweenTo=function(t,e){e=e||{};var n,r=this,i=al(r,t),o=e,a=o.startAt,s=o.onStart,l=o.onStartParams,c=o.immediateRender,u=uc.to(r,Vs({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:i,overwrite:"auto",duration:e.duration||Math.abs((i-(a&&"time"in a?a.time:r._time))/r.timeScale())||Va,onStart:function(){if(r.pause(),!n){var t=e.duration||Math.abs((i-(a&&"time"in a?a.time:r._time))/r.timeScale());u._dur!==t&&rl(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,Vs({startAt:{time:al(this,t)}},n))},n.recent=function(){return this._recent},n.nextLabel=function(t){return void 0===t&&(t=this._time),xl(this,al(this,t))},n.previousLabel=function(t){return void 0===t&&(t=this._time),xl(this,al(this,t),1)},n.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+Va)},n.shiftChildren=function(t,e,n){void 0===n&&(n=0);for(var r,i=this._first,o=this.labels;i;)i._start>=n&&(i._start+=t,i._end+=t),i=i._next;if(e)for(r in o)o[r]>=n&&(o[r]+=t);return Ys(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={}),Ys(this)},n.totalDuration=function(t){var e,n,r,i=0,o=this,a=o._last,s=Ia;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-t:t));if(o._dirty){for(r=o.parent;a;)e=a._prev,a._dirty&&a.totalDuration(),(n=a._start)>s&&o._sort&&a._ts&&!o._lock?(o._lock=1,Js(o,a,n-a._delay,1)._lock=0):s=n,n<0&&a._ts&&(i-=n,(!r&&!o._dp||r&&r.smoothChildTiming)&&(o._start+=n/o._ts,o._time-=n,o._tTime-=n),o.shiftChildren(-n,!1,-Infinity),s=0),a._end>i&&a._ts&&(i=a._end),a=e;rl(o,o===xa&&o._time>i?o._time:i,1,1),o._dirty=0}return o._tDur},e.updateRoot=function(t){if(xa._ts&&(Ns(xa,$s(t,xa)),Oa=Fl.frame),Fl.frame>=ws){ws+=Na.autoSleep||120;var e=xa._first;if((!e||!e._ts)&&Na.autoSleep&&Fl._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||Fl.sleep()}}},e}(Jl);Vs(Ql.prototype,{_lock:0,_hasPause:0,_forcing:0});var tc,ec,nc=function(t,e,n,r,i,o,a){var s,l,c,u,h,d,f,p,m=new xc(this._pt,t,e,0,1,yc,null,i),g=0,v=0;for(m.b=n,m.e=r,n+="",(f=~(r+="").indexOf("random("))&&(r=Dl(r)),o&&(o(p=[n,r],t,e),n=p[0],r=p[1]),l=n.match(es)||[];s=es.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)?Os(d,u)-d:parseFloat(u)-d,m:c&&c<4?Math.round:0},g=es.lastIndex);return m.c=g<r.length?r.substring(g,r.length):"",m.fp=a,(ns.test(r)||f)&&(m.e=0),this._pt=m,m},rc=function(t,e,n,r,i,o,a,s,l,c){Ya(r)&&(r=r(i||0,t,o));var u,h=t[e],d="get"!==n?n:Ya(h)?l?t[e.indexOf("set")||!Ya(t["get"+e.substr(3)])?e:"get"+e.substr(3)](l):t[e]():h,f=Ya(h)?l?fc:dc:hc;if(za(r)&&(~r.indexOf("random(")&&(r=Dl(r)),"="===r.charAt(1)&&((u=Os(d,r)+(ul(d)||0))||0===u)&&(r=u)),!c||d!==r||ec)return isNaN(d*r)||""===r?(!h&&!(e in t)&&ls(e,r),nc.call(this,t,e,d,r,f,s||Na.stringFilter,l)):(u=new xc(this._pt,t,e,+d||0,r-(d||0),"boolean"==typeof h?vc:gc,0,f),l&&(u.fp=l),a&&u.modifier(a,this,t),this._pt=u)},ic=function(t,e,n,r,i,o){var a,s,l,c;if(ys[t]&&!1!==(a=new ys[t]).init(i,a.rawVars?e[t]:function(t,e,n,r,i){if(Ya(t)&&(t=sc(t,i,e,n,r)),!Ga(t)||t.style&&t.nodeType||Za(t)||Xa(t))return za(t)?sc(t,i,e,n,r):t;var o,a={};for(o in t)a[o]=sc(t[o],i,e,n,r);return a}(e[t],r,i,o,n),n,r,o)&&(n._pt=s=new xc(n._pt,i,t,0,1,a.render,a,0,a.priority),n!==Aa))for(l=n._ptLookup[n._targets.indexOf(i)],c=a._props.length;c--;)l[a._props[c]]=s;return a},oc=function t(e,n,r){var i,o,a,s,l,c,u,h,d,f,p,m,g,v=e.vars,y=v.ease,b=v.startAt,w=v.immediateRender,_=v.lazy,D=v.onUpdate,S=v.runBackwards,x=v.yoyoEase,k=v.keyframes,T=v.autoRevert,C=e._dur,E=e._startAt,O=e._targets,A=e.parent,M=A&&"nested"===A.data?A.vars.targets:O,N="auto"===e._overwrite&&!_a,P=e.timeline;if(P&&(!k||!y)&&(y="none"),e._ease=Gl(y,Pa.ease),e._yEase=x?Ul(Gl(!0===x?y:x,Pa.ease)):0,x&&e._yoyo&&!e._repeat&&(x=e._yEase,e._yEase=e._ease,e._ease=x),e._from=!P&&!!v.runBackwards,!P||k&&!v.stagger){if(m=(h=O[0]?xs(O[0]).harness:0)&&v[h.prop],i=Fs(v,ms),E&&(E._zTime<0&&E.progress(1),n<0&&S&&w&&!T?E.render(-1,!0):E.revert(S&&C?fs:ds),E._lazy=0),b){if(zs(e._startAt=uc.set(O,Vs({data:"isStart",overwrite:!1,parent:A,immediateRender:!0,lazy:!E&&Wa(_),startAt:null,delay:0,onUpdate:D&&function(){return kl(e,"onUpdate")},stagger:0},b))),e._startAt._dp=0,e._startAt._sat=e,n<0&&(Da||!w&&!T)&&e._startAt.revert(fs),w&&C&&n<=0&&r<=0)return void(n&&(e._zTime=n))}else if(S&&C&&!E)if(n&&(w=!1),a=Vs({overwrite:!1,data:"isFromStart",lazy:w&&!E&&Wa(_),immediateRender:w,stagger:0,parent:A},i),m&&(a[h.prop]=m),zs(e._startAt=uc.set(O,a)),e._startAt._dp=0,e._startAt._sat=e,n<0&&(Da?e._startAt.revert(fs):e._startAt.render(-1,!0)),e._zTime=n,w){if(!n)return}else t(e._startAt,Va,Va);for(e._pt=e._ptCache=0,_=C&&Wa(_)||_&&!C,o=0;o<O.length;o++){if(u=(l=O[o])._gsap||Ss(O)[o]._gsap,e._ptLookup[o]=f={},vs[u.id]&&gs.length&&Ms(),p=M===O?o:M.indexOf(l),h&&!1!==(d=new h).init(l,m||i,e,p,M)&&(e._pt=s=new xc(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(a in i)ys[a]&&(d=ic(a,i,e,p,l,M))?d.priority&&(c=1):f[a]=s=rc.call(e,l,a,"get",i[a],p,M,0,v.stringFilter);e._op&&e._op[o]&&e.kill(l,e._op[o]),N&&e._pt&&(tc=e,xa.killTweensOf(l,f,e.globalTime(n)),g=!e.parent,tc=0),e._pt&&_&&(vs[u.id]=1)}c&&Sc(e),e._onInit&&e._onInit(e)}e._onUpdate=D,e._initted=(!e._op||e._pt)&&!g,k&&n<=0&&P.render(Ia,!0,!0)},ac=function(t,e,n,r){var i,o,a=e.ease||r||"power1.inOut";if(Za(e))o=n[t]||(n[t]=[]),e.forEach((function(t,n){return o.push({t:n/(e.length-1)*100,v:t,e:a})}));else for(i in e)o=n[i]||(n[i]=[]),"ease"===i||o.push({t:parseFloat(t),v:e[i],e:a})},sc=function(t,e,n,r,i){return Ya(t)?t.call(e,n,r,i):za(t)&&~t.indexOf("random(")?Dl(t):t},lc=Ds+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",cc={};Ts(lc+",id,stagger,delay,duration,paused,scrollTrigger",(function(t){return cc[t]=1}));var uc=function(t){function e(e,n,r,i){var o;"number"==typeof n&&(r.duration=n,n=r,r=null);var a,s,l,c,u,h,d,f,p=(o=t.call(this,i?n:js(n))||this).vars,m=p.duration,g=p.delay,v=p.immediateRender,y=p.stagger,b=p.overwrite,w=p.keyframes,_=p.defaults,D=p.scrollTrigger,S=p.yoyoEase,x=n.parent||xa,k=(Za(e)||Xa(e)?Ua(e[0]):"length"in n)?[e]:pl(e);if(o._targets=k.length?Ss(k):cs("GSAP target "+e+" not found. https://gsap.com",!Na.nullTargetWarn)||[],o._ptLookup=[],o._overwrite=b,w||y||Ka(m)||Ka(g)){if(n=o.vars,(a=o.timeline=new Ql({data:"nested",defaults:_||{},targets:x&&"nested"===x.data?x.vars.targets:k})).kill(),a.parent=a._dp=ba(o),a._start=0,y||Ka(m)||Ka(g)){if(c=k.length,d=y&&vl(y),Ga(y))for(u in y)~lc.indexOf(u)&&(f||(f={}),f[u]=y[u]);for(s=0;s<c;s++)(l=Fs(n,cc)).stagger=0,S&&(l.yoyoEase=S),f&&Rs(l,f),h=k[s],l.duration=+sc(m,ba(o),s,h,k),l.delay=(+sc(g,ba(o),s,h,k)||0)-o._delay,!y&&1===c&&l.delay&&(o._delay=g=l.delay,o._start+=g,l.delay=0),a.to(h,l,d?d(s,h,k):0),a._ease=Ll.none;a.duration()?m=g=0:o.timeline=0}else if(w){js(Vs(a.vars.defaults,{ease:"none"})),a._ease=Gl(w.ease||n.ease||"none");var T,C,E,O=0;if(Za(w))w.forEach((function(t){return a.to(k,t,">")})),a.duration();else{for(u in l={},w)"ease"===u||"easeEach"===u||ac(u,w[u],l,w.easeEach);for(u in l)for(T=l[u].sort((function(t,e){return t.t-e.t})),O=0,s=0;s<T.length;s++)(E={ease:(C=T[s]).e,duration:(C.t-(s?T[s-1].t:0))/100*m})[u]=C.v,a.to(k,E,O),O+=E.duration;a.duration()<m&&a.to({},{duration:m-a.duration()})}}m||o.duration(m=a.duration())}else o.timeline=0;return!0!==b||_a||(tc=ba(o),xa.killTweensOf(k),tc=0),Js(x,ba(o),r),n.reversed&&o.reverse(),n.paused&&o.paused(!0),(v||!m&&!w&&o._start===Es(x._time)&&Wa(v)&&qs(ba(o))&&"nested"!==x.data)&&(o._tTime=-1e-8,o.render(Math.max(0,-g)||0)),D&&Qs(ba(o),D),o}wa(e,t);var n=e.prototype;return n.render=function(t,e,n){var r,i,o,a,s,l,c,u,h,d=this._time,f=this._tDur,p=this._dur,m=t<0,g=t>f-Va&&!m?f:t<Va?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(a=p+this._rDelay,this._repeat<-1&&m)return this.totalTime(100*a+t,e,n);if(r=Es(g%a),g===f?(o=this._repeat,r=p):((o=~~(g/a))&&o===Es(g/a)&&(r=p,o--),r>p&&(r=p)),(l=this._yoyo&&1&o)&&(h=this._yEase,r=p-r),s=Ws(this._tTime,a),r===d&&!n&&this._initted&&o===s)return this._tTime=g,this;o!==s&&(u&&this._yEase&&ql(u,l),this.vars.repeatRefresh&&!l&&!this._lock&&this._time!==a&&this._initted&&(this._lock=n=1,this.render(Es(a*o),!0).invalidate()._lock=0))}if(!this._initted){if(tl(this,m?t:r,n,e,g))return this._tTime=0,this;if(!(d===this._time||n&&this.vars.repeatRefresh&&o!==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&&!o&&(kl(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&&Us(this,t,0,n),kl(this,"onUpdate")),this._repeat&&o!==s&&this.vars.onRepeat&&!e&&this.parent&&kl(this,"onRepeat"),g!==this._tDur&&g||this._tTime!==g||(m&&!this._onUpdate&&Us(this,t,0,!0),(t||!p)&&(g===this._tDur&&this._ts>0||!g&&this._ts<0)&&zs(this,1),e||m&&!d||!(g||d||l)||(kl(this,g===f?"onComplete":"onReverseComplete",!0),this._prom&&!(g<f&&this.timeScale()>0)&&this._prom()))}}else!function(t,e,n,r){var i,o,a,s=t.ratio,l=e<0||!e&&(!t._start&&el(t)&&(t._initted||!nl(t))||(t._ts<0||t._dp._ts<0)&&!nl(t))?0:1,c=t._rDelay,u=0;if(c&&t._repeat&&(u=cl(0,t._tDur,e),o=Ws(u,c),t._yoyo&&1&o&&(l=1-l),o!==Ws(t._tTime,c)&&(s=1-l,t.vars.repeatRefresh&&t._initted&&t.invalidate())),l!==s||Da||r||t._zTime===Va||!e&&t._zTime){if(!t._initted&&tl(t,e,r,n,u))return;for(a=t._zTime,t._zTime=e||(n?Va:0),n||(n=e&&!a),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&&Us(t,e,0,!0),t._onUpdate&&!n&&kl(t,"onUpdate"),u&&t._repeat&&!n&&t.parent&&kl(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===l&&(l&&zs(t,1),n||Da||(kl(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){Ma||Fl.wake(),this._ts||this.play();var o=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||oc(this,o),function(t,e,n,r,i,o,a,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 ec=1,t.vars[e]="+=0",oc(t,a),ec=0,s?cs(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)+o*l.c:r,l.c=n-l.s,c.e&&(c.e=Cs(n)+ul(c.e)),c.b&&(c.b=l.s+ul(c.b))}(this,t,e,n,r,this._ease(o/this._dur),o,i)?this.resetTo(t,e,n,r,1):(Xs(this,0),this.parent||Ls(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?Tl(this):this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,tc&&!0!==tc.vars.overwrite)._first||Tl(this),this.parent&&n!==this.timeline.totalDuration()&&rl(this,this._dur*this.timeline._tDur/n,0,1),this}var r,i,o,a,s,l,c,u=this._targets,h=t?pl(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),Tl(this);for(r=this._op=this._op||[],"all"!==e&&(za(e)&&(s={},Ts(e,(function(t){return s[t]=1})),e=s),e=function(t,e){var n,r,i,o,a=t[0]?xs(t[0]).harness:0,s=a&&a.aliases;if(!s)return e;for(r in n=Rs({},e),s)if(r in n)for(i=(o=s[r].split(",")).length;i--;)n[o[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,a=i,o={}):(o=r[c]=r[c]||{},a=e),a)(l=i&&i[s])&&("kill"in l.d&&!0!==l.d.kill(s)||Hs(this,l,"_pt"),delete i[s]),"all"!==o&&(o[s]=1);return this._initted&&!this._pt&&f&&Tl(this),this},e.to=function(t,n){return new e(t,n,arguments[2])},e.from=function(t,e){return sl(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 sl(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 xa.killTweensOf(t,e,n)},e}(Jl);Vs(uc.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),Ts("staggerTo,staggerFrom,staggerFromTo",(function(t){uc[t]=function(){var e=new Ql,n=hl.call(arguments,0);return n.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,n)}}));var hc=function(t,e,n){return t[e]=n},dc=function(t,e,n){return t[e](n)},fc=function(t,e,n,r){return t[e](r.fp,n)},pc=function(t,e,n){return t.setAttribute(e,n)},mc=function(t,e){return Ya(t[e])?dc:qa(t[e])&&t.setAttribute?pc:hc},gc=function(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},vc=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},yc=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)},bc=function(t,e){for(var n=e._pt;n;)n.r(t,n.d),n=n._next},wc=function(t,e,n,r){for(var i,o=this._pt;o;)i=o._next,o.p===r&&o.modifier(t,e,n),o=i},_c=function(t){for(var e,n,r=this._pt;r;)n=r._next,r.p===t&&!r.op||r.op===t?Hs(this,r,"_pt"):r.dep||(e=1),r=n;return!e},Dc=function(t,e,n,r){r.mSet(t,e,r.m.call(r.tween,n,r.mt),r)},Sc=function(t){for(var e,n,r,i,o=t._pt;o;){for(e=o._next,n=r;n&&n.pr>o.pr;)n=n._next;(o._prev=n?n._prev:i)?o._prev._next=o:r=o,(o._next=n)?n._prev=o:i=o,o=e}t._pt=r},xc=function(){function t(t,e,n,r,i,o,a,s,l){this.t=e,this.s=r,this.c=i,this.p=n,this.r=o||gc,this.d=a||this,this.set=s||hc,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=Dc,this.m=t,this.mt=n,this.tween=e},t}();Ts(Ds+"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 ms[t]=1})),os.TweenMax=os.TweenLite=uc,os.TimelineLite=os.TimelineMax=Ql,xa=new Ql({sortChildren:!1,defaults:Pa,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),Na.stringFilter=Bl;var kc=[],Tc={},Cc=[],Ec=0,Oc=0,Ac=function(t){return(Tc[t]||Cc).map((function(t){return t()}))},Mc=function(){var t=Date.now(),e=[];t-Ec>2&&(Ac("matchMediaInit"),kc.forEach((function(t){var n,r,i,o,a=t.queries,s=t.conditions;for(r in a)(n=ka.matchMedia(a[r]).matches)&&(i=1),n!==s[r]&&(s[r]=n,o=1);o&&(t.revert(),i&&e.push(t))})),Ac("matchMediaRevert"),e.forEach((function(t){return t.onMatch(t,(function(e){return t.add(null,e)}))})),Ec=t,Ac("matchMedia"))},Nc=function(){function t(t,e){this.selector=e&&ml(e),this.data=[],this._r=[],this.isReverted=!1,this.id=Oc++,t&&this.add(t)}var e=t.prototype;return e.add=function(t,e,n){Ya(t)&&(n=e,e=t,t=Ya);var r=this,i=function(){var t,i=Sa,o=r.selector;return i&&i!==r&&i.data.push(r),n&&(r.selector=ml(n)),Sa=r,t=e.apply(r,arguments),Ya(t)&&r._r.push(t),Sa=i,r.selector=o,r.isReverted=!1,t};return r.last=i,t===Ya?i(r,(function(t){return r.add(null,t)})):t?r[t]=i:i},e.ignore=function(t){var e=Sa;Sa=null,t(this),Sa=e},e.getTweens=function(){var e=[];return this.data.forEach((function(n){return n instanceof t?e.push.apply(e,n.getTweens()):n instanceof uc&&!(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 Ql?"nested"!==e.data&&(e.scrollTrigger&&e.scrollTrigger.revert(),e.kill()):!(e instanceof uc)&&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=kc.length;r--;)kc[r].id===this.id&&kc.splice(r,1)},e.revert=function(t){this.kill(t||{})},t}(),Pc=function(){function t(t){this.contexts=[],this.scope=t,Sa&&Sa.data.push(this)}var e=t.prototype;return e.add=function(t,e,n){Ga(t)||(t={matches:t});var r,i,o,a=new Nc(0,n||this.scope),s=a.conditions={};for(i in Sa&&!a.selector&&(a.selector=Sa.selector),this.contexts.push(a),e=a.add("onMatch",e),a.queries=t,t)"all"===i?o=1:(r=ka.matchMedia(t[i]))&&(kc.indexOf(a)<0&&kc.push(a),(s[i]=r.matches)&&(o=1),r.addListener?r.addListener(Mc):r.addEventListener("change",Mc));return o&&e(a,(function(t){return a.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}(),Ic={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 El(t)}))},timeline:function(t){return new Ql(t)},getTweensOf:function(t,e){return xa.getTweensOf(t,e)},getProperty:function(t,e,n,r){za(t)&&(t=pl(t)[0]);var i=xs(t||{}).get,o=n?Is:Ps;return"native"===n&&(n=""),t?e?o((ys[e]&&ys[e].get||i)(t,e,n,r)):function(e,n,r){return o((ys[e]&&ys[e].get||i)(t,e,n,r))}:t},quickSetter:function(t,e,n){if((t=pl(t)).length>1){var r=t.map((function(t){return Bc.quickSetter(t,e,n)})),i=r.length;return function(t){for(var e=i;e--;)r[e](t)}}t=t[0]||{};var o=ys[e],a=xs(t),s=a.harness&&(a.harness.aliases||{})[e]||e,l=o?function(e){var r=new o;Aa._pt=0,r.init(t,n?e+n:e,Aa,0,[t]),r.render(1,r),Aa._pt&&bc(1,Aa)}:a.set(t,s);return o?l:function(e){return l(t,s,n?e+n:e,a,1)}},quickTo:function(t,e,n){var r,i=Bc.to(t,Rs(((r={})[e]="+=0.1",r.paused=!0,r),n||{})),o=function(t,n,r){return i.resetTo(e,t,n,r)};return o.tween=i,o},isTweening:function(t){return xa.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Gl(t.ease,Pa.ease)),Bs(Pa,t||{})},config:function(t){return Bs(Na,t||{})},registerEffect:function(t){var e=t.name,n=t.effect,r=t.plugins,i=t.defaults,o=t.extendTimeline;(r||"").split(",").forEach((function(t){return t&&!ys[t]&&!os[t]&&cs(e+" effect requires "+t+" plugin.")})),bs[e]=function(t,e,r){return n(pl(t),Vs(e||{},i),r)},o&&(Ql.prototype[e]=function(t,n,r){return this.add(bs[e](t,Ga(n)?n:(r=n)&&{},this),r)})},registerEase:function(t,e){Ll[t]=Gl(e)},parseEase:function(t,e){return arguments.length?Gl(t,e):Ll},getById:function(t){return xa.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var n,r,i=new Ql(t);for(i.smoothChildTiming=Wa(t.smoothChildTiming),xa.remove(i),i._dp=0,i._time=i._tTime=xa._time,n=xa._first;n;)r=n._next,!e&&!n._dur&&n instanceof uc&&n.vars.onComplete===n._targets[0]||Js(i,n,n._start-n._delay),n=r;return Js(xa,i,0),i},context:function(t,e){return t?new Nc(t,e):Sa},matchMedia:function(t){return new Pc(t)},matchMediaRefresh:function(){return kc.forEach((function(t){var e,n,r=t.conditions;for(n in r)r[n]&&(r[n]=!1,e=1);e&&t.revert()}))||Mc()},addEventListener:function(t,e){var n=Tc[t]||(Tc[t]=[]);~n.indexOf(e)||n.push(e)},removeEventListener:function(t,e){var n=Tc[t],r=n&&n.indexOf(e);r>=0&&n.splice(r,1)},utils:{wrap:function t(e,n,r){var i=n-e;return Za(e)?_l(e,t(0,e.length),n):ll(r,(function(t){return(i+(t-e)%i)%i+e}))},wrapYoyo:function t(e,n,r){var i=n-e,o=2*i;return Za(e)?_l(e,t(0,e.length-1),n):ll(r,(function(t){return e+((t=(o+(t-e)%o)%o||0)>i?o-t:t)}))},distribute:vl,random:wl,snap:bl,normalize:function(t,e,n){return Sl(t,e,0,1,n)},getUnit:ul,clamp:function(t,e,n){return ll(n,(function(n){return cl(t,e,n)}))},splitColor:Nl,toArray:pl,selector:ml,mapRange:Sl,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||ul(n))}},interpolate:function t(e,n,r,i){var o=isNaN(e+n)?0:function(t){return(1-t)*e+t*n};if(!o){var a,s,l,c,u,h=za(e),d={};if(!0===r&&(i=1)&&(r=null),h)e={p:e},n={p:n};else if(Za(e)&&!Za(n)){for(l=[],c=e.length,u=c-2,s=1;s<c;s++)l.push(t(e[s-1],e[s]));c--,o=function(t){t*=c;var e=Math.min(u,~~t);return l[e](t-e)},r=n}else i||(e=Rs(Za(e)?[]:{},e));if(!l){for(a in n)rc.call(d,e,a,"get",n[a]);o=function(t){return bc(t,d)||(h?e.p:e)}}}return ll(r,o)},shuffle:gl},install:ss,effects:bs,ticker:Fl,updateRoot:Ql.updateRoot,plugins:ys,globalTimeline:xa,core:{PropTween:xc,globals:us,Tween:uc,Timeline:Ql,Animation:Jl,getCache:xs,_removeLinkedListItem:Hs,reverting:function(){return Da},context:function(t){return t&&Sa&&(Sa.data.push(t),t._ctx=Sa),Sa},suppressOverwrites:function(t){return _a=t}}};Ts("to,from,fromTo,delayedCall,set,killTweensOf",(function(t){return Ic[t]=uc[t]})),Fl.add(Ql.updateRoot),Aa=Ic.to({},{duration:0});var Vc=function(t,e){for(var n=t._pt;n&&n.p!==e&&n.op!==e&&n.fp!==e;)n=n._next;return n},Rc=function(t,e){return{name:t,rawVars:1,init:function(t,n,r){r._onInit=function(t){var r,i;if(za(n)&&(r={},Ts(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,o=t._targets;for(n in e)for(r=o.length;r--;)(i=t._ptLookup[r][n])&&(i=i.d)&&(i._pt&&(i=Vc(i,n)),i&&i.modifier&&i.modifier(e[n],t,o[r],n))}(t,n)}}}},Bc=Ic.registerPlugin({name:"attr",init:function(t,e,n,r,i){var o,a,s;for(o in this.tween=n,e)s=t.getAttribute(o)||"",(a=this.add(t,"setAttribute",(s||0)+"",e[o],r,i,0,0,o)).op=o,a.b=s,this._props.push(o)},render:function(t,e){for(var n=e._pt;n;)Da?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)}},Rc("roundProps",yl),Rc("modifiers"),Rc("snap",bl))||Ic;uc.version=Ql.version=Bc.version="3.12.5",Ea=1,$a()&&jl(),Ll.Power0,Ll.Power1,Ll.Power2,Ll.Power3,Ll.Power4,Ll.Linear,Ll.Quad,Ll.Cubic,Ll.Quart,Ll.Quint,Ll.Strong,Ll.Elastic,Ll.Back,Ll.SteppedEase,Ll.Bounce,Ll.Sine,Ll.Expo,Ll.Circ;
|
|
43
|
+
*/var Sa,xa,ka,Ta,Ca,Ea,Oa,Aa,Ma,Na,Pa,Ia={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Va={duration:.5,overwrite:!1,delay:0},Ra=1e8,Ba=1e-8,Fa=2*Math.PI,ja=Fa/4,La=0,Ha=Math.sqrt,za=Math.cos,Ya=Math.sin,Ua=function(t){return"string"==typeof t},qa=function(t){return"function"==typeof t},Ga=function(t){return"number"==typeof t},Wa=function(t){return void 0===t},$a=function(t){return"object"==typeof t},Ka=function(t){return!1!==t},Xa=function(){return"undefined"!=typeof window},Za=function(t){return qa(t)||Ua(t)},Ja="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},Qa=Array.isArray,ts=/(?:-?\.?\d|\.)+/gi,es=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,ns=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,rs=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,is=/[+-]=-?[.\d]+/,os=/[^,'"\[\]\s]+/gi,as=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,ss={},ls={},cs=function(t){return(ls=Fs(t,ss))&&jc},us=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},hs=function(t,e){return!e&&console.warn(t)},ds=function(t,e){return t&&(ss[t]=e)&&ls&&(ls[t]=e)||ss},fs=function(){return 0},ps={suppressEvents:!0,isStart:!0,kill:!1},ms={suppressEvents:!0,kill:!1},gs={suppressEvents:!0},vs={},ys=[],bs={},ws={},_s={},Ds=30,Ss=[],xs="",ks=function(t){var e,n,r=t[0];if($a(r)||qa(r)||(t=[t]),!(e=(r._gsap||{}).harness)){for(n=Ss.length;n--&&!Ss[n].targetTest(r););e=Ss[n]}for(n=t.length;n--;)t[n]&&(t[n]._gsap||(t[n]._gsap=new Ql(t[n],e)))||t.splice(n,1);return t},Ts=function(t){return t._gsap||ks(gl(t))[0]._gsap},Cs=function(t,e,n){return(n=t[e])&&qa(n)?t[e]():Wa(n)&&t.getAttribute&&t.getAttribute(e)||n},Es=function(t,e){return(t=t.split(",")).forEach(e)||t},Os=function(t){return Math.round(1e5*t)/1e5||0},As=function(t){return Math.round(1e7*t)/1e7||0},Ms=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},Ns=function(t,e){for(var n=e.length,r=0;t.indexOf(e[r])<0&&++r<n;);return r<n},Ps=function(){var t,e,n=ys.length,r=ys.slice(0);for(bs={},ys.length=0,t=0;t<n;t++)(e=r[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)},Is=function(t,e,n,r){ys.length&&!xa&&Ps(),t.render(e,n,r||xa&&e<0&&(t._initted||t._startAt)),ys.length&&!xa&&Ps()},Vs=function(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(os).length<2?e:Ua(t)?t.trim():t},Rs=function(t){return t},Bs=function(t,e){for(var n in e)n in t||(t[n]=e[n]);return t},Fs=function(t,e){for(var n in e)t[n]=e[n];return t},js=function t(e,n){for(var r in n)"__proto__"!==r&&"constructor"!==r&&"prototype"!==r&&(e[r]=$a(n[r])?t(e[r]||(e[r]={}),n[r]):n[r]);return e},Ls=function(t,e){var n,r={};for(n in t)n in e||(r[n]=t[n]);return r},Hs=function(t){var e,n=t.parent||Ta,r=t.keyframes?(e=Qa(t.keyframes),function(t,n){for(var r in n)r in t||"duration"===r&&e||"ease"===r||(t[r]=n[r])}):Bs;if(Ka(t.inherit))for(;n;)r(t,n.vars.defaults),n=n.parent||n._dp;return t},zs=function(t,e,n,r,i){void 0===n&&(n="_first"),void 0===r&&(r="_last");var o,a=t[r];if(i)for(o=e[i];a&&a[i]>o;)a=a._prev;return a?(e._next=a._next,a._next=e):(e._next=t[n],t[n]=e),e._next?e._next._prev=e:t[r]=e,e._prev=a,e.parent=e._dp=t,e},Ys=function(t,e,n,r){void 0===n&&(n="_first"),void 0===r&&(r="_last");var i=e._prev,o=e._next;i?i._next=o:t[n]===e&&(t[n]=o),o?o._prev=i:t[r]===e&&(t[r]=i),e._next=e._prev=e.parent=null},Us=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},qs=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},Gs=function(t,e,n,r){return t._startAt&&(xa?t._startAt.revert(ms):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,r))},Ws=function t(e){return!e||e._ts&&t(e.parent)},$s=function(t){return t._repeat?Ks(t._tTime,t=t.duration()+t._rDelay)*t:0},Ks=function(t,e){var n=Math.floor(t/=e);return t&&n===t?n-1:n},Xs=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},Zs=function(t){return t._end=As(t._start+(t._tDur/Math.abs(t._ts||t._rts||Ba)||0))},Js=function(t,e){var n=t._dp;return n&&n.smoothChildTiming&&t._ts&&(t._start=As(n._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),Zs(t),n._dirty||qs(n,t)),t},Qs=function(t,e){var n;if((e._time||!e._dur&&e._initted||e._start<t._time&&(e._dur||!e.add))&&(n=Xs(t.rawTime(),e),(!e._dur||hl(0,e.totalDuration(),n)-e._tTime>Ba)&&e.render(n,!0)),qs(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}},tl=function(t,e,n,r){return e.parent&&Us(e),e._start=As((Ga(n)?n:n||t!==Ta?ll(t,n,e):t._time)+e._delay),e._end=As(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),zs(t,e,"_first","_last",t._sort?"_start":0),il(e)||(t._recent=e),r||Qs(t,e),t._ts<0&&Js(t,t._tTime),t},el=function(t,e){return(ss.ScrollTrigger||us("scrollTrigger",e))&&ss.ScrollTrigger.create(e,t)},nl=function(t,e,n,r,i){return sc(t,e,i),t._initted?!n&&t._pt&&!xa&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&Ma!==Ll.frame?(ys.push(t),t._lazy=[i,r],1):void 0:1},rl=function t(e){var n=e.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||t(n))},il=function(t){var e=t.data;return"isFromStart"===e||"isStart"===e},ol=function(t,e,n,r){var i=t._repeat,o=As(e)||0,a=t._tTime/t._tDur;return a&&!r&&(t._time*=o/t._dur),t._dur=o,t._tDur=i?i<0?1e10:As(o*(i+1)+t._rDelay*i):o,a>0&&!r&&Js(t,t._tTime=t._tDur*a),t.parent&&Zs(t),n||qs(t.parent,t),t},al=function(t){return t instanceof ec?qs(t):ol(t,t._dur)},sl={_start:0,endTime:fs,totalDuration:fs},ll=function t(e,n,r){var i,o,a,s=e.labels,l=e._recent||sl,c=e.duration()>=Ra?l.endTime(!1):e._dur;return Ua(n)&&(isNaN(n)||n in s)?(o=n.charAt(0),a="%"===n.substr(-1),i=n.indexOf("="),"<"===o||">"===o?(i>=0&&(n=n.replace(/=/,"")),("<"===o?l._start:l.endTime(l._repeat>=0))+(parseFloat(n.substr(1))||0)*(a?(i<0?l:r).totalDuration()/100:1)):i<0?(n in s||(s[n]=c),s[n]):(o=parseFloat(n.charAt(i-1)+n.substr(i+1)),a&&r&&(o=o/100*(Qa(r)?r[0]:r).totalDuration()),i>1?t(e,n.substr(0,i-1),r)+o:c+o)):null==n?c:+n},cl=function(t,e,n){var r,i,o=Ga(e[1]),a=(o?2:1)+(t<2?0:1),s=e[a];if(o&&(s.duration=e[1]),s.parent=n,t){for(r=s,i=n;i&&!("immediateRender"in r);)r=i.vars.defaults||{},i=Ka(i.vars.inherit)&&i.parent;s.immediateRender=Ka(r.immediateRender),t<2?s.runBackwards=1:s.startAt=e[a-1]}return new dc(e[0],s,e[a+1])},ul=function(t,e){return t||0===t?e(t):e},hl=function(t,e,n){return n<t?t:n>e?e:n},dl=function(t,e){return Ua(t)&&(e=as.exec(t))?e[1]:""},fl=[].slice,pl=function(t,e){return t&&$a(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&$a(t[0]))&&!t.nodeType&&t!==Ca},ml=function(t,e,n){return void 0===n&&(n=[]),t.forEach(function(t){var r;return Ua(t)&&!e||pl(t,1)?(r=n).push.apply(r,gl(t)):n.push(t)})||n},gl=function(t,e,n){return ka&&!e&&ka.selector?ka.selector(t):!Ua(t)||n||!Ea&&Hl()?Qa(t)?ml(t,n):pl(t)?fl.call(t,0):t?[t]:[]:fl.call((e||Oa).querySelectorAll(t),0)},vl=function(t){return t=gl(t)[0]||hs("Invalid scope")||{},function(e){var n=t.current||t.nativeElement||t;return gl(e,n.querySelectorAll?n:n===t?hs("Invalid scope")||Oa.createElement("div"):t)}},yl=function(t){return t.sort(function(){return.5-Math.random()})},bl=function(t){if(qa(t))return t;var e=$a(t)?t:{each:t},n=$l(e.ease),r=e.from||0,i=parseFloat(e.base)||0,o={},a=r>0&&r<1,s=isNaN(r)||a,l=e.axis,c=r,u=r;return Ua(r)?c=u={center:.5,edges:.5,end:1}[r]||0:!a&&s&&(c=r[0],u=r[1]),function(t,a,h){var d,f,p,m,g,v,y,b,w,_=(h||e).length,D=o[_];if(!D){if(!(w="auto"===e.grid?0:(e.grid||[1,Ra])[1])){for(y=-1e8;y<(y=h[w++].getBoundingClientRect().left)&&w<_;);w<_&&w--}for(D=o[_]=[],d=s?Math.min(w,_)*c-.5:r%w,f=w===Ra?0:s?_*u/w-.5:r/w|0,y=0,b=Ra,v=0;v<_;v++)p=v%w-d,m=f-(v/w|0),D[v]=g=l?Math.abs("y"===l?m:p):Ha(p*p+m*m),g>y&&(y=g),g<b&&(b=g);"random"===r&&yl(D),D.max=y-b,D.min=b,D.v=_=(parseFloat(e.amount)||parseFloat(e.each)*(w>_?_-1:l?"y"===l?_/w:w:Math.max(w,_/w))||0)*("edges"===r?-1:1),D.b=_<0?i-_:i,D.u=dl(e.amount||e.each)||0,n=n&&_<0?Gl(n):n}return _=(D[t]-D.min)/D.max||0,As(D.b+(n?n(_):_)*D.v)+D.u}},wl=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(n){var r=As(Math.round(parseFloat(n)/t)*t*e);return(r-r%1)/e+(Ga(n)?0:dl(n))}},_l=function(t,e){var n,r,i=Qa(t);return!i&&$a(t)&&(n=i=t.radius||Ra,t.values?(t=gl(t.values),(r=!Ga(t[0]))&&(n*=n)):t=wl(t.increment)),ul(e,i?qa(t)?function(e){return r=t(e),Math.abs(r-e)<=n?r:e}:function(e){for(var i,o,a=parseFloat(r?e.x:e),s=parseFloat(r?e.y:0),l=Ra,c=0,u=t.length;u--;)(i=r?(i=t[u].x-a)*i+(o=t[u].y-s)*o:Math.abs(t[u]-a))<l&&(l=i,c=u);return c=!n||l<=n?t[c]:e,r||c===e||Ga(e)?c:c+dl(e)}:wl(t))},Dl=function(t,e,n,r){return ul(Qa(t)?!e:!0===n?!!(n=0):!r,function(){return Qa(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})},Sl=function(t,e,n){return ul(n,function(n){return t[~~e(n)]})},xl=function(t){for(var e,n,r,i,o=0,a="";~(e=t.indexOf("random(",o));)r=t.indexOf(")",e),i="["===t.charAt(e+7),n=t.substr(e+7,r-e-7).match(i?os:ts),a+=t.substr(o,e-o)+Dl(i?n:+n[0],i?0:+n[1],+n[2]||1e-5),o=r+1;return a+t.substr(o,t.length-o)},kl=function(t,e,n,r,i){var o=e-t,a=r-n;return ul(i,function(e){return n+((e-t)/o*a||0)})},Tl=function(t,e,n){var r,i,o,a=t.labels,s=Ra;for(r in a)(i=a[r]-e)<0==!!n&&i&&s>(i=Math.abs(i))&&(o=r,s=i);return o},Cl=function(t,e,n){var r,i,o,a=t.vars,s=a[e],l=ka,c=t._ctx;if(s)return r=a[e+"Params"],i=a.callbackScope||t,n&&ys.length&&Ps(),c&&(ka=c),o=r?s.apply(i,r):s.call(i),ka=l,o},El=function(t){return Us(t),t.scrollTrigger&&t.scrollTrigger.kill(!!xa),t.progress()<1&&Cl(t,"onInterrupt"),t},Ol=[],Al=function(t){if(t)if(t=!t.name&&t.default||t,Xa()||t.headless){var e=t.name,n=qa(t),r=e&&!n&&t.init?function(){this._props=[]}:t,i={init:fs,render:_c,add:oc,kill:Sc,modifier:Dc,rawVars:0},o={targetTest:0,get:0,getSetter:vc,aliases:{},register:0};if(Hl(),t!==r){if(ws[e])return;Bs(r,Bs(Ls(t,i),o)),Fs(r.prototype,Fs(i,Ls(t,o))),ws[r.prop=e]=r,t.targetTest&&(Ss.push(r),vs[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}ds(e,r),t.register&&t.register(jc,r,Tc)}else Ol.push(t)},Ml=255,Nl={aqua:[0,Ml,Ml],lime:[0,Ml,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Ml],navy:[0,0,128],white:[Ml,Ml,Ml],olive:[128,128,0],yellow:[Ml,Ml,0],orange:[Ml,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Ml,0,0],pink:[Ml,192,203],cyan:[0,Ml,Ml],transparent:[Ml,Ml,Ml,0]},Pl=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)*Ml+.5|0},Il=function(t,e,n){var r,i,o,a,s,l,c,u,h,d,f=t?Ga(t)?[t>>16,t>>8&Ml,t&Ml]:0:Nl.black;if(!f){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),Nl[t])f=Nl[t];else if("#"===t.charAt(0)){if(t.length<6&&(r=t.charAt(1),i=t.charAt(2),o=t.charAt(3),t="#"+r+r+i+i+o+o+(5===t.length?t.charAt(4)+t.charAt(4):"")),9===t.length)return[(f=parseInt(t.substr(1,6),16))>>16,f>>8&Ml,f&Ml,parseInt(t.substr(7),16)/255];f=[(t=parseInt(t.substr(1),16))>>16,t>>8&Ml,t&Ml]}else if("hsl"===t.substr(0,3))if(f=d=t.match(ts),e){if(~t.indexOf("="))return f=t.match(es),n&&f.length<4&&(f[3]=1),f}else a=+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]=Pl(a+1/3,r,i),f[1]=Pl(a,r,i),f[2]=Pl(a-1/3,r,i);else f=t.match(ts)||Nl.transparent;f=f.map(Number)}return e&&!d&&(r=f[0]/Ml,i=f[1]/Ml,o=f[2]/Ml,l=((c=Math.max(r,i,o))+(u=Math.min(r,i,o)))/2,c===u?a=s=0:(h=c-u,s=l>.5?h/(2-c-u):h/(c+u),a=c===r?(i-o)/h+(i<o?6:0):c===i?(o-r)/h+2:(r-i)/h+4,a*=60),f[0]=~~(a+.5),f[1]=~~(100*s+.5),f[2]=~~(100*l+.5)),n&&f.length<4&&(f[3]=1),f},Vl=function(t){var e=[],n=[],r=-1;return t.split(Bl).forEach(function(t){var i=t.match(ns)||[];e.push.apply(e,i),n.push(r+=i.length+1)}),e.c=n,e},Rl=function(t,e,n){var r,i,o,a,s="",l=(t+s).match(Bl),c=e?"hsla(":"rgba(",u=0;if(!l)return t;if(l=l.map(function(t){return(t=Il(t,e,1))&&c+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"}),n&&(o=Vl(t),(r=n.c).join(s)!==o.c.join(s)))for(a=(i=t.replace(Bl,"1").split(ns)).length-1;u<a;u++)s+=i[u]+(~r.indexOf(u)?l.shift()||c+"0,0,0,0)":(o.length?o:l.length?l:n).shift());if(!i)for(a=(i=t.split(Bl)).length-1;u<a;u++)s+=i[u]+l[u];return s+i[a]},Bl=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(t in Nl)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),Fl=/hsl[a]?\(/,jl=function(t){var e,n=t.join(" ");if(Bl.lastIndex=0,Bl.test(n))return e=Fl.test(n),t[1]=Rl(t[1],e),t[0]=Rl(t[0],e,Vl(t[1])),!0},Ll=function(){var t,e,n,r,i,o,a=Date.now,s=500,l=33,c=a(),u=c,h=1e3/240,d=h,f=[],p=function n(p){var m,g,v,y,b=a()-u,w=!0===p;if((b>s||b<0)&&(c+=b-l),((m=(v=(u+=b)-c)-d)>0||w)&&(y=++r.frame,i=v-1e3*r.time,r.time=v/=1e3,d+=m+(m>=h?4:h-m),g=1),w||(t=e(n)),g)for(o=0;o<f.length;o++)f[o](v,i,y,p)};return r={time:0,frame:0,tick:function(){p(!0)},deltaRatio:function(t){return i/(1e3/(t||60))},wake:function(){Aa&&(!Ea&&Xa()&&(Ca=Ea=window,Oa=Ca.document||{},ss.gsap=jc,(Ca.gsapVersions||(Ca.gsapVersions=[])).push(jc.version),cs(ls||Ca.GreenSockGlobals||!Ca.gsap&&Ca||{}),Ol.forEach(Al)),n="undefined"!=typeof requestAnimationFrame&&requestAnimationFrame,t&&r.sleep(),e=n||function(t){return setTimeout(t,d-1e3*r.time+1|0)},Pa=1,p(2))},sleep:function(){(n?cancelAnimationFrame:clearTimeout)(t),Pa=0,e=fs},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,o,a){t(e,n,o,a),r.remove(i)}:t;return r.remove(t),f[n?"unshift":"push"](i),Hl(),i},remove:function(t,e){~(e=f.indexOf(t))&&f.splice(e,1)&&o>=e&&o--},_listeners:f},r}(),Hl=function(){return!Pa&&Ll.wake()},zl={},Yl=/^[\d.\-M][\d.\-,\s]/,Ul=/["']/g,ql=function(t){for(var e,n,r,i={},o=t.substr(1,t.length-3).split(":"),a=o[0],s=1,l=o.length;s<l;s++)n=o[s],e=s!==l-1?n.lastIndexOf(","):n.length,r=n.substr(0,e),i[a]=isNaN(r)?r.replace(Ul,"").trim():+r,a=n.substr(e+1).trim();return i},Gl=function(t){return function(e){return 1-t(1-e)}},Wl=function t(e,n){for(var r,i=e._first;i;)i instanceof ec?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},$l=function(t,e){return t&&(qa(t)?t:zl[t]||function(t){var e=(t+"").split("("),n=zl[e[0]];return n&&e.length>1&&n.config?n.config.apply(null,~t.indexOf("{")?[ql(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(Vs)):zl._CE&&Yl.test(t)?zl._CE("",t):n}(t))||e},Kl=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,o={easeIn:e,easeOut:n,easeInOut:r};return Es(t,function(t){for(var e in zl[t]=ss[t]=o,zl[i=t.toLowerCase()]=n,o)zl[i+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=zl[t+"."+e]=o[e]}),o},Xl=function(t){return function(e){return e<.5?(1-t(1-2*e))/2:.5+t(2*(e-.5))/2}},Zl=function t(e,n,r){var i=n>=1?n:1,o=(r||(e?.3:.45))/(n<1?n:1),a=o/Fa*(Math.asin(1/i)||0),s=function(t){return 1===t?1:i*Math.pow(2,-10*t)*Ya((t-a)*o)+1},l="out"===e?s:"in"===e?function(t){return 1-s(1-t)}:Xl(s);return o=Fa/o,l.config=function(n,r){return t(e,n,r)},l},Jl=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)}:Xl(r);return i.config=function(n){return t(e,n)},i};Es("Linear,Quad,Cubic,Quart,Quint,Strong",function(t,e){var n=e<5?e+1:e;Kl(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})}),zl.Linear.easeNone=zl.none=zl.Linear.easeIn,Kl("Elastic",Zl("in"),Zl("out"),Zl()),function(t,e){var n=1/e,r=2*n,i=2.5*n,o=function(o){return o<n?t*o*o:o<r?t*Math.pow(o-1.5/e,2)+.75:o<i?t*(o-=2.25/e)*o+.9375:t*Math.pow(o-2.625/e,2)+.984375};Kl("Bounce",function(t){return 1-o(1-t)},o)}(7.5625,2.75),Kl("Expo",function(t){return t?Math.pow(2,10*(t-1)):0}),Kl("Circ",function(t){return-(Ha(1-t*t)-1)}),Kl("Sine",function(t){return 1===t?1:1-za(t*ja)}),Kl("Back",Jl("in"),Jl("out"),Jl()),zl.SteppedEase=zl.steps=ss.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*hl(0,.99999999,t)|0)+i)*n}}},Va.ease=zl["quad.out"],Es("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(t){return xs+=t+","+t+"Params,"});var Ql=function(t,e){this.id=La++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:Cs,this.set=e?e.getSetter:vc},tc=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,ol(this,+t.duration,1,1),this.data=t.data,ka&&(this._ctx=ka,ka.data.push(this)),Pa||Ll.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,ol(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(Hl(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(Js(this,t),!n._dp||n.parent||Qs(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)&&tl(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===Ba||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),Is(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+$s(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)+$s(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?Ks(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?Xs(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||-1e-8===t?0:this._rts,this.totalTime(hl(-Math.abs(this._delay),this._tDur,n),!1!==e),Zs(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):(Hl(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==Ba&&(this._tTime-=Ba)))),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)&&tl(e,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(Ka(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?Xs(e.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){void 0===t&&(t=gs);var e=xa;return xa=t,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),"nested"!==this.data&&!1!==t.kill&&this.kill(),xa=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,al(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var e=this._time;return this._rDelay=t,al(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(ll(this,t),Ka(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,Ka(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)-Ba))},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=qa(t)?t:Rs,i=function(){var t=e.then;e.then=null,qa(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(){El(this)},t}();Bs(tc.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 ec=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=Ka(e.sortChildren),Ta&&tl(e.parent||Ta,_a(r),n),e.reversed&&r.reverse(),e.paused&&r.paused(!0),e.scrollTrigger&&el(_a(r),e.scrollTrigger),r}Da(e,t);var n=e.prototype;return n.to=function(t,e,n){return cl(0,arguments,this),this},n.from=function(t,e,n){return cl(1,arguments,this),this},n.fromTo=function(t,e,n,r){return cl(2,arguments,this),this},n.set=function(t,e,n){return e.duration=0,e.parent=this,Hs(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new dc(t,e,ll(this,n),1),this},n.call=function(t,e,n){return tl(this,dc.delayedCall(0,t,e),n)},n.staggerTo=function(t,e,n,r,i,o,a){return n.duration=e,n.stagger=n.stagger||r,n.onComplete=o,n.onCompleteParams=a,n.parent=this,new dc(t,n,ll(this,i)),this},n.staggerFrom=function(t,e,n,r,i,o,a){return n.runBackwards=1,Hs(n).immediateRender=Ka(n.immediateRender),this.staggerTo(t,e,n,r,i,o,a)},n.staggerFromTo=function(t,e,n,r,i,o,a,s){return r.startAt=n,Hs(r).immediateRender=Ka(r.immediateRender),this.staggerTo(t,e,r,i,o,a,s)},n.render=function(t,e,n){var r,i,o,a,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:As(t),b=this._zTime<0!=t<0&&(this._initted||!v);if(this!==Ta&&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=As(y%s),y===g?(a=this._repeat,r=v):((a=~~(y/s))&&a===y/s&&(r=v,a--),r>v&&(r=v)),d=Ks(this._tTime,s),!m&&this._tTime&&d!==a&&this._tTime-d*s-this._dur<=0&&(d=a),f&&1&a&&(r=v-r,p=1),a!==d&&!this._lock){var w=f&&1&d,_=w===(f&&1&a);if(a<d&&(w=!w),m=w?0:y%v?v:y,this._lock=1,this.render(m||(p?0:As(a*s)),e,!v)._lock=0,this._tTime=y,!e&&this.parent&&Cl(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,_&&(this._lock=2,m=w?v:-1e-4,this.render(m,!0),this.vars.repeatRefresh&&!p&&this.invalidate()),this._lock=0,!this._ts&&!l)return this;Wl(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,As(m),As(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&&!a&&(Cl(this,"onStart"),this._tTime!==y))return this;if(r>=m&&t>=0)for(i=this._first;i;){if(o=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,o&&(y+=this._zTime=-1e-8);break}}i=o}else{i=this._last;for(var D=t<0?t:r;i;){if(o=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||xa&&(i._initted||i._startAt)),r!==this._time||!this._ts&&!l){c=0,o&&(y+=this._zTime=D?-1e-8:Ba);break}}i=o}}if(c&&!e&&(this.pause(),c.render(r>=m?0:-1e-8)._zTime=r>=m?1:-1,this._ts))return this._start=h,Zs(this),this.render(t,e,n);this._onUpdate&&!e&&Cl(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)&&Us(this,1),e||t<0&&!m||!y&&!m&&g||(Cl(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(Ga(e)||(e=ll(this,e,t)),!(t instanceof tc)){if(Qa(t))return t.forEach(function(t){return n.add(t,e)}),this;if(Ua(t))return this.addLabel(t,e);if(!qa(t))return this;t=dc.delayedCall(0,t)}return this!==t?tl(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=[],o=this._first;o;)o._start>=r&&(o instanceof dc?e&&i.push(o):(n&&i.push(o),t&&i.push.apply(i,o.getChildren(!0,e,n)))),o=o._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 Ua(t)?this.removeLabel(t):qa(t)?this.killTweensOf(t):(Ys(this,t),t===this._recent&&(this._recent=this._last),qs(this))},n.totalTime=function(e,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=As(Ll.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]=ll(this,e),this},n.removeLabel=function(t){return delete this.labels[t],this},n.addPause=function(t,e,n){var r=dc.delayedCall(0,e||fs,n);return r.data="isPause",this._hasPause=1,tl(this,r,ll(this,t))},n.removePause=function(t){var e=this._first;for(t=ll(this,t);e;)e._start===t&&"isPause"===e.data&&Us(e),e=e._next},n.killTweensOf=function(t,e,n){for(var r=this.getTweensOf(t,n),i=r.length;i--;)nc!==r[i]&&r[i].kill(t,e);return this},n.getTweensOf=function(t,e){for(var n,r=[],i=gl(t),o=this._first,a=Ga(e);o;)o instanceof dc?Ns(o._targets,i)&&(a?(!nc||o._initted&&o._ts)&&o.globalTime(0)<=e&&o.globalTime(o.totalDuration())>e:!e||o.isActive())&&r.push(o):(n=o.getTweensOf(i,e)).length&&r.push.apply(r,n),o=o._next;return r},n.tweenTo=function(t,e){e=e||{};var n,r=this,i=ll(r,t),o=e,a=o.startAt,s=o.onStart,l=o.onStartParams,c=o.immediateRender,u=dc.to(r,Bs({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:i,overwrite:"auto",duration:e.duration||Math.abs((i-(a&&"time"in a?a.time:r._time))/r.timeScale())||Ba,onStart:function(){if(r.pause(),!n){var t=e.duration||Math.abs((i-(a&&"time"in a?a.time:r._time))/r.timeScale());u._dur!==t&&ol(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,Bs({startAt:{time:ll(this,t)}},n))},n.recent=function(){return this._recent},n.nextLabel=function(t){return void 0===t&&(t=this._time),Tl(this,ll(this,t))},n.previousLabel=function(t){return void 0===t&&(t=this._time),Tl(this,ll(this,t),1)},n.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+Ba)},n.shiftChildren=function(t,e,n){void 0===n&&(n=0);for(var r,i=this._first,o=this.labels;i;)i._start>=n&&(i._start+=t,i._end+=t),i=i._next;if(e)for(r in o)o[r]>=n&&(o[r]+=t);return qs(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={}),qs(this)},n.totalDuration=function(t){var e,n,r,i=0,o=this,a=o._last,s=Ra;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-t:t));if(o._dirty){for(r=o.parent;a;)e=a._prev,a._dirty&&a.totalDuration(),(n=a._start)>s&&o._sort&&a._ts&&!o._lock?(o._lock=1,tl(o,a,n-a._delay,1)._lock=0):s=n,n<0&&a._ts&&(i-=n,(!r&&!o._dp||r&&r.smoothChildTiming)&&(o._start+=n/o._ts,o._time-=n,o._tTime-=n),o.shiftChildren(-n,!1,-Infinity),s=0),a._end>i&&a._ts&&(i=a._end),a=e;ol(o,o===Ta&&o._time>i?o._time:i,1,1),o._dirty=0}return o._tDur},e.updateRoot=function(t){if(Ta._ts&&(Is(Ta,Xs(t,Ta)),Ma=Ll.frame),Ll.frame>=Ds){Ds+=Ia.autoSleep||120;var e=Ta._first;if((!e||!e._ts)&&Ia.autoSleep&&Ll._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||Ll.sleep()}}},e}(tc);Bs(ec.prototype,{_lock:0,_hasPause:0,_forcing:0});var nc,rc,ic=function(t,e,n,r,i,o,a){var s,l,c,u,h,d,f,p,m=new Tc(this._pt,t,e,0,1,wc,null,i),g=0,v=0;for(m.b=n,m.e=r,n+="",(f=~(r+="").indexOf("random("))&&(r=xl(r)),o&&(o(p=[n,r],t,e),n=p[0],r=p[1]),l=n.match(rs)||[];s=rs.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)?Ms(d,u)-d:parseFloat(u)-d,m:c&&c<4?Math.round:0},g=rs.lastIndex);return m.c=g<r.length?r.substring(g,r.length):"",m.fp=a,(is.test(r)||f)&&(m.e=0),this._pt=m,m},oc=function(t,e,n,r,i,o,a,s,l,c){qa(r)&&(r=r(i||0,t,o));var u,h=t[e],d="get"!==n?n:qa(h)?l?t[e.indexOf("set")||!qa(t["get"+e.substr(3)])?e:"get"+e.substr(3)](l):t[e]():h,f=qa(h)?l?mc:pc:fc;if(Ua(r)&&(~r.indexOf("random(")&&(r=xl(r)),"="===r.charAt(1)&&((u=Ms(d,r)+(dl(d)||0))||0===u)&&(r=u)),!c||d!==r||rc)return isNaN(d*r)||""===r?(!h&&!(e in t)&&us(e,r),ic.call(this,t,e,d,r,f,s||Ia.stringFilter,l)):(u=new Tc(this._pt,t,e,+d||0,r-(d||0),"boolean"==typeof h?bc:yc,0,f),l&&(u.fp=l),a&&u.modifier(a,this,t),this._pt=u)},ac=function(t,e,n,r,i,o){var a,s,l,c;if(ws[t]&&!1!==(a=new ws[t]).init(i,a.rawVars?e[t]:function(t,e,n,r,i){if(qa(t)&&(t=cc(t,i,e,n,r)),!$a(t)||t.style&&t.nodeType||Qa(t)||Ja(t))return Ua(t)?cc(t,i,e,n,r):t;var o,a={};for(o in t)a[o]=cc(t[o],i,e,n,r);return a}(e[t],r,i,o,n),n,r,o)&&(n._pt=s=new Tc(n._pt,i,t,0,1,a.render,a,0,a.priority),n!==Na))for(l=n._ptLookup[n._targets.indexOf(i)],c=a._props.length;c--;)l[a._props[c]]=s;return a},sc=function t(e,n,r){var i,o,a,s,l,c,u,h,d,f,p,m,g,v=e.vars,y=v.ease,b=v.startAt,w=v.immediateRender,_=v.lazy,D=v.onUpdate,S=v.runBackwards,x=v.yoyoEase,k=v.keyframes,T=v.autoRevert,C=e._dur,E=e._startAt,O=e._targets,A=e.parent,M=A&&"nested"===A.data?A.vars.targets:O,N="auto"===e._overwrite&&!Sa,P=e.timeline;if(P&&(!k||!y)&&(y="none"),e._ease=$l(y,Va.ease),e._yEase=x?Gl($l(!0===x?y:x,Va.ease)):0,x&&e._yoyo&&!e._repeat&&(x=e._yEase,e._yEase=e._ease,e._ease=x),e._from=!P&&!!v.runBackwards,!P||k&&!v.stagger){if(m=(h=O[0]?Ts(O[0]).harness:0)&&v[h.prop],i=Ls(v,vs),E&&(E._zTime<0&&E.progress(1),n<0&&S&&w&&!T?E.render(-1,!0):E.revert(S&&C?ms:ps),E._lazy=0),b){if(Us(e._startAt=dc.set(O,Bs({data:"isStart",overwrite:!1,parent:A,immediateRender:!0,lazy:!E&&Ka(_),startAt:null,delay:0,onUpdate:D&&function(){return Cl(e,"onUpdate")},stagger:0},b))),e._startAt._dp=0,e._startAt._sat=e,n<0&&(xa||!w&&!T)&&e._startAt.revert(ms),w&&C&&n<=0&&r<=0)return void(n&&(e._zTime=n))}else if(S&&C&&!E)if(n&&(w=!1),a=Bs({overwrite:!1,data:"isFromStart",lazy:w&&!E&&Ka(_),immediateRender:w,stagger:0,parent:A},i),m&&(a[h.prop]=m),Us(e._startAt=dc.set(O,a)),e._startAt._dp=0,e._startAt._sat=e,n<0&&(xa?e._startAt.revert(ms):e._startAt.render(-1,!0)),e._zTime=n,w){if(!n)return}else t(e._startAt,Ba,Ba);for(e._pt=e._ptCache=0,_=C&&Ka(_)||_&&!C,o=0;o<O.length;o++){if(u=(l=O[o])._gsap||ks(O)[o]._gsap,e._ptLookup[o]=f={},bs[u.id]&&ys.length&&Ps(),p=M===O?o:M.indexOf(l),h&&!1!==(d=new h).init(l,m||i,e,p,M)&&(e._pt=s=new Tc(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(a in i)ws[a]&&(d=ac(a,i,e,p,l,M))?d.priority&&(c=1):f[a]=s=oc.call(e,l,a,"get",i[a],p,M,0,v.stringFilter);e._op&&e._op[o]&&e.kill(l,e._op[o]),N&&e._pt&&(nc=e,Ta.killTweensOf(l,f,e.globalTime(n)),g=!e.parent,nc=0),e._pt&&_&&(bs[u.id]=1)}c&&kc(e),e._onInit&&e._onInit(e)}e._onUpdate=D,e._initted=(!e._op||e._pt)&&!g,k&&n<=0&&P.render(Ra,!0,!0)},lc=function(t,e,n,r){var i,o,a=e.ease||r||"power1.inOut";if(Qa(e))o=n[t]||(n[t]=[]),e.forEach(function(t,n){return o.push({t:n/(e.length-1)*100,v:t,e:a})});else for(i in e)o=n[i]||(n[i]=[]),"ease"===i||o.push({t:parseFloat(t),v:e[i],e:a})},cc=function(t,e,n,r,i){return qa(t)?t.call(e,n,r,i):Ua(t)&&~t.indexOf("random(")?xl(t):t},uc=xs+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",hc={};Es(uc+",id,stagger,delay,duration,paused,scrollTrigger",function(t){return hc[t]=1});var dc=function(t){function e(e,n,r,i){var o;"number"==typeof n&&(r.duration=n,n=r,r=null);var a,s,l,c,u,h,d,f,p=(o=t.call(this,i?n:Hs(n))||this).vars,m=p.duration,g=p.delay,v=p.immediateRender,y=p.stagger,b=p.overwrite,w=p.keyframes,_=p.defaults,D=p.scrollTrigger,S=p.yoyoEase,x=n.parent||Ta,k=(Qa(e)||Ja(e)?Ga(e[0]):"length"in n)?[e]:gl(e);if(o._targets=k.length?ks(k):hs("GSAP target "+e+" not found. https://gsap.com",!Ia.nullTargetWarn)||[],o._ptLookup=[],o._overwrite=b,w||y||Za(m)||Za(g)){if(n=o.vars,(a=o.timeline=new ec({data:"nested",defaults:_||{},targets:x&&"nested"===x.data?x.vars.targets:k})).kill(),a.parent=a._dp=_a(o),a._start=0,y||Za(m)||Za(g)){if(c=k.length,d=y&&bl(y),$a(y))for(u in y)~uc.indexOf(u)&&(f||(f={}),f[u]=y[u]);for(s=0;s<c;s++)(l=Ls(n,hc)).stagger=0,S&&(l.yoyoEase=S),f&&Fs(l,f),h=k[s],l.duration=+cc(m,_a(o),s,h,k),l.delay=(+cc(g,_a(o),s,h,k)||0)-o._delay,!y&&1===c&&l.delay&&(o._delay=g=l.delay,o._start+=g,l.delay=0),a.to(h,l,d?d(s,h,k):0),a._ease=zl.none;a.duration()?m=g=0:o.timeline=0}else if(w){Hs(Bs(a.vars.defaults,{ease:"none"})),a._ease=$l(w.ease||n.ease||"none");var T,C,E,O=0;if(Qa(w))w.forEach(function(t){return a.to(k,t,">")}),a.duration();else{for(u in l={},w)"ease"===u||"easeEach"===u||lc(u,w[u],l,w.easeEach);for(u in l)for(T=l[u].sort(function(t,e){return t.t-e.t}),O=0,s=0;s<T.length;s++)(E={ease:(C=T[s]).e,duration:(C.t-(s?T[s-1].t:0))/100*m})[u]=C.v,a.to(k,E,O),O+=E.duration;a.duration()<m&&a.to({},{duration:m-a.duration()})}}m||o.duration(m=a.duration())}else o.timeline=0;return!0!==b||Sa||(nc=_a(o),Ta.killTweensOf(k),nc=0),tl(x,_a(o),r),n.reversed&&o.reverse(),n.paused&&o.paused(!0),(v||!m&&!w&&o._start===As(x._time)&&Ka(v)&&Ws(_a(o))&&"nested"!==x.data)&&(o._tTime=-1e-8,o.render(Math.max(0,-g)||0)),D&&el(_a(o),D),o}Da(e,t);var n=e.prototype;return n.render=function(t,e,n){var r,i,o,a,s,l,c,u,h,d=this._time,f=this._tDur,p=this._dur,m=t<0,g=t>f-Ba&&!m?f:t<Ba?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(a=p+this._rDelay,this._repeat<-1&&m)return this.totalTime(100*a+t,e,n);if(r=As(g%a),g===f?(o=this._repeat,r=p):((o=~~(g/a))&&o===As(g/a)&&(r=p,o--),r>p&&(r=p)),(l=this._yoyo&&1&o)&&(h=this._yEase,r=p-r),s=Ks(this._tTime,a),r===d&&!n&&this._initted&&o===s)return this._tTime=g,this;o!==s&&(u&&this._yEase&&Wl(u,l),this.vars.repeatRefresh&&!l&&!this._lock&&this._time!==a&&this._initted&&(this._lock=n=1,this.render(As(a*o),!0).invalidate()._lock=0))}if(!this._initted){if(nl(this,m?t:r,n,e,g))return this._tTime=0,this;if(!(d===this._time||n&&this.vars.repeatRefresh&&o!==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&&!o&&(Cl(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&&Gs(this,t,0,n),Cl(this,"onUpdate")),this._repeat&&o!==s&&this.vars.onRepeat&&!e&&this.parent&&Cl(this,"onRepeat"),g!==this._tDur&&g||this._tTime!==g||(m&&!this._onUpdate&&Gs(this,t,0,!0),(t||!p)&&(g===this._tDur&&this._ts>0||!g&&this._ts<0)&&Us(this,1),e||m&&!d||!(g||d||l)||(Cl(this,g===f?"onComplete":"onReverseComplete",!0),this._prom&&!(g<f&&this.timeScale()>0)&&this._prom()))}}else!function(t,e,n,r){var i,o,a,s=t.ratio,l=e<0||!e&&(!t._start&&rl(t)&&(t._initted||!il(t))||(t._ts<0||t._dp._ts<0)&&!il(t))?0:1,c=t._rDelay,u=0;if(c&&t._repeat&&(u=hl(0,t._tDur,e),o=Ks(u,c),t._yoyo&&1&o&&(l=1-l),o!==Ks(t._tTime,c)&&(s=1-l,t.vars.repeatRefresh&&t._initted&&t.invalidate())),l!==s||xa||r||t._zTime===Ba||!e&&t._zTime){if(!t._initted&&nl(t,e,r,n,u))return;for(a=t._zTime,t._zTime=e||(n?Ba:0),n||(n=e&&!a),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&&Gs(t,e,0,!0),t._onUpdate&&!n&&Cl(t,"onUpdate"),u&&t._repeat&&!n&&t.parent&&Cl(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===l&&(l&&Us(t,1),n||xa||(Cl(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){Pa||Ll.wake(),this._ts||this.play();var o=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||sc(this,o),function(t,e,n,r,i,o,a,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 rc=1,t.vars[e]="+=0",sc(t,a),rc=0,s?hs(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)+o*l.c:r,l.c=n-l.s,c.e&&(c.e=Os(n)+dl(c.e)),c.b&&(c.b=l.s+dl(c.b))}(this,t,e,n,r,this._ease(o/this._dur),o,i)?this.resetTo(t,e,n,r,1):(Js(this,0),this.parent||zs(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?El(this):this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,nc&&!0!==nc.vars.overwrite)._first||El(this),this.parent&&n!==this.timeline.totalDuration()&&ol(this,this._dur*this.timeline._tDur/n,0,1),this}var r,i,o,a,s,l,c,u=this._targets,h=t?gl(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),El(this);for(r=this._op=this._op||[],"all"!==e&&(Ua(e)&&(s={},Es(e,function(t){return s[t]=1}),e=s),e=function(t,e){var n,r,i,o,a=t[0]?Ts(t[0]).harness:0,s=a&&a.aliases;if(!s)return e;for(r in n=Fs({},e),s)if(r in n)for(i=(o=s[r].split(",")).length;i--;)n[o[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,a=i,o={}):(o=r[c]=r[c]||{},a=e),a)(l=i&&i[s])&&("kill"in l.d&&!0!==l.d.kill(s)||Ys(this,l,"_pt"),delete i[s]),"all"!==o&&(o[s]=1);return this._initted&&!this._pt&&f&&El(this),this},e.to=function(t,n){return new e(t,n,arguments[2])},e.from=function(t,e){return cl(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 cl(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 Ta.killTweensOf(t,e,n)},e}(tc);Bs(dc.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),Es("staggerTo,staggerFrom,staggerFromTo",function(t){dc[t]=function(){var e=new ec,n=fl.call(arguments,0);return n.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,n)}});var fc=function(t,e,n){return t[e]=n},pc=function(t,e,n){return t[e](n)},mc=function(t,e,n,r){return t[e](r.fp,n)},gc=function(t,e,n){return t.setAttribute(e,n)},vc=function(t,e){return qa(t[e])?pc:Wa(t[e])&&t.setAttribute?gc:fc},yc=function(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},bc=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},wc=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)},_c=function(t,e){for(var n=e._pt;n;)n.r(t,n.d),n=n._next},Dc=function(t,e,n,r){for(var i,o=this._pt;o;)i=o._next,o.p===r&&o.modifier(t,e,n),o=i},Sc=function(t){for(var e,n,r=this._pt;r;)n=r._next,r.p===t&&!r.op||r.op===t?Ys(this,r,"_pt"):r.dep||(e=1),r=n;return!e},xc=function(t,e,n,r){r.mSet(t,e,r.m.call(r.tween,n,r.mt),r)},kc=function(t){for(var e,n,r,i,o=t._pt;o;){for(e=o._next,n=r;n&&n.pr>o.pr;)n=n._next;(o._prev=n?n._prev:i)?o._prev._next=o:r=o,(o._next=n)?n._prev=o:i=o,o=e}t._pt=r},Tc=function(){function t(t,e,n,r,i,o,a,s,l){this.t=e,this.s=r,this.c=i,this.p=n,this.r=o||yc,this.d=a||this,this.set=s||fc,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=xc,this.m=t,this.mt=n,this.tween=e},t}();Es(xs+"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 vs[t]=1}),ss.TweenMax=ss.TweenLite=dc,ss.TimelineLite=ss.TimelineMax=ec,Ta=new ec({sortChildren:!1,defaults:Va,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),Ia.stringFilter=jl;var Cc=[],Ec={},Oc=[],Ac=0,Mc=0,Nc=function(t){return(Ec[t]||Oc).map(function(t){return t()})},Pc=function(){var t=Date.now(),e=[];t-Ac>2&&(Nc("matchMediaInit"),Cc.forEach(function(t){var n,r,i,o,a=t.queries,s=t.conditions;for(r in a)(n=Ca.matchMedia(a[r]).matches)&&(i=1),n!==s[r]&&(s[r]=n,o=1);o&&(t.revert(),i&&e.push(t))}),Nc("matchMediaRevert"),e.forEach(function(t){return t.onMatch(t,function(e){return t.add(null,e)})}),Ac=t,Nc("matchMedia"))},Ic=function(){function t(t,e){this.selector=e&&vl(e),this.data=[],this._r=[],this.isReverted=!1,this.id=Mc++,t&&this.add(t)}var e=t.prototype;return e.add=function(t,e,n){qa(t)&&(n=e,e=t,t=qa);var r=this,i=function(){var t,i=ka,o=r.selector;return i&&i!==r&&i.data.push(r),n&&(r.selector=vl(n)),ka=r,t=e.apply(r,arguments),qa(t)&&r._r.push(t),ka=i,r.selector=o,r.isReverted=!1,t};return r.last=i,t===qa?i(r,function(t){return r.add(null,t)}):t?r[t]=i:i},e.ignore=function(t){var e=ka;ka=null,t(this),ka=e},e.getTweens=function(){var e=[];return this.data.forEach(function(n){return n instanceof t?e.push.apply(e,n.getTweens()):n instanceof dc&&!(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 ec?"nested"!==e.data&&(e.scrollTrigger&&e.scrollTrigger.revert(),e.kill()):!(e instanceof dc)&&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=Cc.length;r--;)Cc[r].id===this.id&&Cc.splice(r,1)},e.revert=function(t){this.kill(t||{})},t}(),Vc=function(){function t(t){this.contexts=[],this.scope=t,ka&&ka.data.push(this)}var e=t.prototype;return e.add=function(t,e,n){$a(t)||(t={matches:t});var r,i,o,a=new Ic(0,n||this.scope),s=a.conditions={};for(i in ka&&!a.selector&&(a.selector=ka.selector),this.contexts.push(a),e=a.add("onMatch",e),a.queries=t,t)"all"===i?o=1:(r=Ca.matchMedia(t[i]))&&(Cc.indexOf(a)<0&&Cc.push(a),(s[i]=r.matches)&&(o=1),r.addListener?r.addListener(Pc):r.addEventListener("change",Pc));return o&&e(a,function(t){return a.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}(),Rc={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 Al(t)})},timeline:function(t){return new ec(t)},getTweensOf:function(t,e){return Ta.getTweensOf(t,e)},getProperty:function(t,e,n,r){Ua(t)&&(t=gl(t)[0]);var i=Ts(t||{}).get,o=n?Rs:Vs;return"native"===n&&(n=""),t?e?o((ws[e]&&ws[e].get||i)(t,e,n,r)):function(e,n,r){return o((ws[e]&&ws[e].get||i)(t,e,n,r))}:t},quickSetter:function(t,e,n){if((t=gl(t)).length>1){var r=t.map(function(t){return jc.quickSetter(t,e,n)}),i=r.length;return function(t){for(var e=i;e--;)r[e](t)}}t=t[0]||{};var o=ws[e],a=Ts(t),s=a.harness&&(a.harness.aliases||{})[e]||e,l=o?function(e){var r=new o;Na._pt=0,r.init(t,n?e+n:e,Na,0,[t]),r.render(1,r),Na._pt&&_c(1,Na)}:a.set(t,s);return o?l:function(e){return l(t,s,n?e+n:e,a,1)}},quickTo:function(t,e,n){var r,i=jc.to(t,Fs(((r={})[e]="+=0.1",r.paused=!0,r),n||{})),o=function(t,n,r){return i.resetTo(e,t,n,r)};return o.tween=i,o},isTweening:function(t){return Ta.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=$l(t.ease,Va.ease)),js(Va,t||{})},config:function(t){return js(Ia,t||{})},registerEffect:function(t){var e=t.name,n=t.effect,r=t.plugins,i=t.defaults,o=t.extendTimeline;(r||"").split(",").forEach(function(t){return t&&!ws[t]&&!ss[t]&&hs(e+" effect requires "+t+" plugin.")}),_s[e]=function(t,e,r){return n(gl(t),Bs(e||{},i),r)},o&&(ec.prototype[e]=function(t,n,r){return this.add(_s[e](t,$a(n)?n:(r=n)&&{},this),r)})},registerEase:function(t,e){zl[t]=$l(e)},parseEase:function(t,e){return arguments.length?$l(t,e):zl},getById:function(t){return Ta.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var n,r,i=new ec(t);for(i.smoothChildTiming=Ka(t.smoothChildTiming),Ta.remove(i),i._dp=0,i._time=i._tTime=Ta._time,n=Ta._first;n;)r=n._next,!e&&!n._dur&&n instanceof dc&&n.vars.onComplete===n._targets[0]||tl(i,n,n._start-n._delay),n=r;return tl(Ta,i,0),i},context:function(t,e){return t?new Ic(t,e):ka},matchMedia:function(t){return new Vc(t)},matchMediaRefresh:function(){return Cc.forEach(function(t){var e,n,r=t.conditions;for(n in r)r[n]&&(r[n]=!1,e=1);e&&t.revert()})||Pc()},addEventListener:function(t,e){var n=Ec[t]||(Ec[t]=[]);~n.indexOf(e)||n.push(e)},removeEventListener:function(t,e){var n=Ec[t],r=n&&n.indexOf(e);r>=0&&n.splice(r,1)},utils:{wrap:function t(e,n,r){var i=n-e;return Qa(e)?Sl(e,t(0,e.length),n):ul(r,function(t){return(i+(t-e)%i)%i+e})},wrapYoyo:function t(e,n,r){var i=n-e,o=2*i;return Qa(e)?Sl(e,t(0,e.length-1),n):ul(r,function(t){return e+((t=(o+(t-e)%o)%o||0)>i?o-t:t)})},distribute:bl,random:Dl,snap:_l,normalize:function(t,e,n){return kl(t,e,0,1,n)},getUnit:dl,clamp:function(t,e,n){return ul(n,function(n){return hl(t,e,n)})},splitColor:Il,toArray:gl,selector:vl,mapRange:kl,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||dl(n))}},interpolate:function t(e,n,r,i){var o=isNaN(e+n)?0:function(t){return(1-t)*e+t*n};if(!o){var a,s,l,c,u,h=Ua(e),d={};if(!0===r&&(i=1)&&(r=null),h)e={p:e},n={p:n};else if(Qa(e)&&!Qa(n)){for(l=[],c=e.length,u=c-2,s=1;s<c;s++)l.push(t(e[s-1],e[s]));c--,o=function(t){t*=c;var e=Math.min(u,~~t);return l[e](t-e)},r=n}else i||(e=Fs(Qa(e)?[]:{},e));if(!l){for(a in n)oc.call(d,e,a,"get",n[a]);o=function(t){return _c(t,d)||(h?e.p:e)}}}return ul(r,o)},shuffle:yl},install:cs,effects:_s,ticker:Ll,updateRoot:ec.updateRoot,plugins:ws,globalTimeline:Ta,core:{PropTween:Tc,globals:ds,Tween:dc,Timeline:ec,Animation:tc,getCache:Ts,_removeLinkedListItem:Ys,reverting:function(){return xa},context:function(t){return t&&ka&&(ka.data.push(t),t._ctx=ka),ka},suppressOverwrites:function(t){return Sa=t}}};Es("to,from,fromTo,delayedCall,set,killTweensOf",function(t){return Rc[t]=dc[t]}),Ll.add(ec.updateRoot),Na=Rc.to({},{duration:0});var Bc=function(t,e){for(var n=t._pt;n&&n.p!==e&&n.op!==e&&n.fp!==e;)n=n._next;return n},Fc=function(t,e){return{name:t,rawVars:1,init:function(t,n,r){r._onInit=function(t){var r,i;if(Ua(n)&&(r={},Es(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,o=t._targets;for(n in e)for(r=o.length;r--;)(i=t._ptLookup[r][n])&&(i=i.d)&&(i._pt&&(i=Bc(i,n)),i&&i.modifier&&i.modifier(e[n],t,o[r],n))}(t,n)}}}},jc=Rc.registerPlugin({name:"attr",init:function(t,e,n,r,i){var o,a,s;for(o in this.tween=n,e)s=t.getAttribute(o)||"",(a=this.add(t,"setAttribute",(s||0)+"",e[o],r,i,0,0,o)).op=o,a.b=s,this._props.push(o)},render:function(t,e){for(var n=e._pt;n;)xa?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)}},Fc("roundProps",wl),Fc("modifiers"),Fc("snap",_l))||Rc;dc.version=ec.version=jc.version="3.12.5",Aa=1,Xa()&&Hl(),zl.Power0,zl.Power1,zl.Power2,zl.Power3,zl.Power4,zl.Linear,zl.Quad,zl.Cubic,zl.Quart,zl.Quint,zl.Strong,zl.Elastic,zl.Back,zl.SteppedEase,zl.Bounce,zl.Sine,zl.Expo,zl.Circ;
|
|
44
44
|
/*!
|
|
45
45
|
* CSSPlugin 3.12.5
|
|
46
46
|
* https://gsap.com
|
|
@@ -50,5 +50,5 @@ function(){var t=n,e=t.lib,r=e.WordArray,i=e.Hasher,o=t.algo,a=r.create([0,1,2,3
|
|
|
50
50
|
* Club GSAP members, the agreement issued with that membership.
|
|
51
51
|
* @author: Jack Doyle, jack@greensock.com
|
|
52
52
|
*/
|
|
53
|
-
var Fc,jc,Lc,Hc,zc,Yc,Uc,qc,Gc={},Wc=180/Math.PI,$c=Math.PI/180,Kc=Math.atan2,Xc=/([A-Z])/g,Zc=/(left|right|width|margin|padding|x)/i,Jc=/[\s,\(]\S/,Qc={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},tu=function(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},eu=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)},nu=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)},ru=function(t,e){var n=e.s+e.c*t;e.set(e.t,e.p,~~(n+(n<0?-.5:.5))+e.u,e)},iu=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},ou=function(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)},au=function(t,e,n){return t.style[e]=n},su=function(t,e,n){return t.style.setProperty(e,n)},lu=function(t,e,n){return t._gsap[e]=n},cu=function(t,e,n){return t._gsap.scaleX=t._gsap.scaleY=n},uu=function(t,e,n,r,i){var o=t._gsap;o.scaleX=o.scaleY=n,o.renderTransform(i,o)},hu=function(t,e,n,r,i){var o=t._gsap;o[e]=n,o.renderTransform(i,o)},du="transform",fu=du+"Origin",pu=function t(e,n){var r=this,i=this.target,o=i.style,a=i._gsap;if(e in Gc&&o){if(this.tfm=this.tfm||{},"transform"===e)return Qc.transform.split(",").forEach((function(e){return t.call(r,e,n)}));if(~(e=Qc[e]||e).indexOf(",")?e.split(",").forEach((function(t){return r.tfm[t]=Nu(i,t)})):this.tfm[e]=a.x?a[e]:Nu(i,e),e===fu&&(this.tfm.zOrigin=a.zOrigin),this.props.indexOf(du)>=0)return;a.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(fu,n,"")),e=du}(o||n)&&this.props.push(e,n,o[e])},mu=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},gu=function(){var t,e,n=this.props,r=this.target,i=r.style,o=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(Xc,"-$1").toLowerCase());if(this.tfm){for(e in this.tfm)o[e]=this.tfm[e];o.svg&&(o.renderTransform(),r.setAttribute("data-svg-origin",this.svgo||"")),(t=Uc())&&t.isStart||i[du]||(mu(i),o.zOrigin&&i[fu]&&(i[fu]+=" "+o.zOrigin+"px",o.zOrigin=0,o.renderTransform()),o.uncache=1)}},vu=function(t,e){var n={target:t,props:[],revert:gu,save:pu};return t._gsap||Bc.core.getCache(t),e&&e.split(",").forEach((function(t){return n.save(t)})),n},yu=function(t,e){var n=jc.createElementNS?jc.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):jc.createElement(t);return n&&n.style?n:jc.createElement(t)},bu=function t(e,n,r){var i=getComputedStyle(e);return i[n]||i.getPropertyValue(n.replace(Xc,"-$1").toLowerCase())||i.getPropertyValue(n)||!r&&t(e,_u(n)||n,1)||""},wu="O,Moz,ms,Ms,Webkit".split(","),_u=function(t,e,n){var r=(e||zc).style,i=5;if(t in r&&!n)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);i--&&!(wu[i]+t in r););return i<0?null:(3===i?"ms":i>=0?wu[i]:"")+t},Du=function(){"undefined"!=typeof window&&window.document&&(Fc=window,jc=Fc.document,Lc=jc.documentElement,zc=yu("div")||{style:{}},yu("div"),du=_u(du),fu=du+"Origin",zc.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",qc=!!_u("perspective"),Uc=Bc.core.reverting,Hc=1)},Su=function t(e){var n,r=yu("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=this.parentNode,o=this.nextSibling,a=this.style.cssText;if(Lc.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&&(o?i.insertBefore(this,o):i.appendChild(this)),Lc.removeChild(r),this.style.cssText=a,n},xu=function(t,e){for(var n=e.length;n--;)if(t.hasAttribute(e[n]))return t.getAttribute(e[n])},ku=function(t){var e;try{e=t.getBBox()}catch(n){e=Su.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===Su||(e=Su.call(t,!0)),!e||e.width||e.x||e.y?e:{x:+xu(t,["x","cx","x1"])||0,y:+xu(t,["y","cy","y1"])||0,width:0,height:0}},Tu=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!ku(t))},Cu=function(t,e){if(e){var n,r=t.style;e in Gc&&e!==fu&&(e=du),r.removeProperty?("ms"!==(n=e.substr(0,2))&&"webkit"!==e.substr(0,6)||(e="-"+e),r.removeProperty("--"===n?e:e.replace(Xc,"-$1").toLowerCase())):r.removeAttribute(e)}},Eu=function(t,e,n,r,i,o){var a=new xc(t._pt,e,n,0,1,o?ou:iu);return t._pt=a,a.b=r,a.e=i,t._props.push(n),a},Ou={deg:1,rad:1,turn:1},Au={grid:1,flex:1},Mu=function t(e,n,r,i){var o,a,s,l,c=parseFloat(r)||0,u=(r+"").trim().substr((c+"").length)||"px",h=zc.style,d=Zc.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||Ou[i]||Ou[u])return c;if("px"!==u&&!g&&(c=t(e,n,r,"px")),l=e.getCTM&&Tu(e),(v||"%"===u)&&(Gc[n]||~n.indexOf("adius")))return o=l?e.getBBox()[d?"width":"height"]:e[p],Cs(v?c/o*m:c/100*o);if(h[d?"width":"height"]=m+(g?u:i),a=~n.indexOf("adius")||"em"===i&&e.appendChild&&!f?e:e.parentNode,l&&(a=(e.ownerSVGElement||{}).parentNode),a&&a!==jc&&a.appendChild||(a=jc.body),(s=a._gsap)&&v&&s.width&&d&&s.time===Fl.time&&!s.uncache)return Cs(c/s.width*m);if(!v||"height"!==n&&"width"!==n)(v||"%"===u)&&!Au[bu(a,"display")]&&(h.position=bu(e,"position")),a===e&&(h.position="static"),a.appendChild(zc),o=zc[p],a.removeChild(zc),h.position="absolute";else{var y=e.style[n];e.style[n]=m+i,o=e[p],y?e.style[n]=y:Cu(e,n)}return d&&v&&((s=xs(a)).time=Fl.time,s.width=a[p]),Cs(g?o*c/m:o&&c?m/o*c:0)},Nu=function(t,e,n,r){var i;return Hc||Du(),e in Qc&&"transform"!==e&&~(e=Qc[e]).indexOf(",")&&(e=e.split(",")[0]),Gc[e]&&"transform"!==e?(i=Uu(t,r),i="transformOrigin"!==e?i[e]:i.svg?i.origin:qu(bu(t,fu))+" "+i.zOrigin+"px"):(!(i=t.style[e])||"auto"===i||r||~(i+"").indexOf("calc("))&&(i=Bu[e]&&Bu[e](t,e,n)||bu(t,e)||ks(t,e)||("opacity"===e?1:0)),n&&!~(i+"").trim().indexOf(" ")?Mu(t,e,i,n)+n:i},Pu=function(t,e,n,r){if(!n||"none"===n){var i=_u(e,t,1),o=i&&bu(t,i,1);o&&o!==n?(e=i,n=o):"borderColor"===e&&(n=bu(t,"borderTopColor"))}var a,s,l,c,u,h,d,f,p,m,g,v=new xc(this._pt,t.style,e,0,1,yc),y=0,b=0;if(v.b=n,v.e=r,n+="","auto"===(r+="")&&(h=t.style[e],t.style[e]=r,r=bu(t,e)||r,h?t.style[e]=h:Cu(t,e)),Bl(a=[n,r]),r=a[1],l=(n=a[0]).match(ts)||[],(r.match(ts)||[]).length){for(;s=ts.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=Os(c,d)+g),f=parseFloat(d),m=d.substr((f+"").length),y=ts.lastIndex-m.length,m||(m=m||Na.units[e]||g,y===r.length&&(r+=m,v.e+=m)),g!==m&&(c=Mu(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?ou:iu;return ns.test(r)&&(v.e=0),this._pt=v,v},Iu={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Vu=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]=Iu[n]||n,e[1]=Iu[r]||r,e.join(" ")},Ru=function(t,e){if(e.tween&&e.tween._time===e.tween._dur){var n,r,i,o=e.t,a=o.style,s=e.u,l=o._gsap;if("all"===s||!0===s)a.cssText="",r=1;else for(i=(s=s.split(",")).length;--i>-1;)n=s[i],Gc[n]&&(r=1,n="transformOrigin"===n?fu:du),Cu(o,n);r&&(Cu(o,du),l&&(l.svg&&o.removeAttribute("transform"),Uu(o,1),l.uncache=1,mu(a)))}},Bu={clearProps:function(t,e,n,r,i){if("isFromStart"!==i.data){var o=t._pt=new xc(t._pt,e,n,0,0,Ru);return o.u=r,o.pr=-10,o.tween=i,t._props.push(n),1}}},Fu=[1,0,0,1,0,0],ju={},Lu=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},Hu=function(t){var e=bu(t,du);return Lu(e)?Fu:e.substr(7).match(Qa).map(Cs)},zu=function(t,e){var n,r,i,o,a=t._gsap||xs(t),s=t.style,l=Hu(t);return a.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(",")?Fu:l:(l!==Fu||t.offsetParent||t===Lc||a.svg||(i=s.display,s.display="block",(n=t.parentNode)&&t.offsetParent||(o=1,r=t.nextElementSibling,Lc.appendChild(t)),l=Hu(t),i?s.display=i:Cu(t,"display"),o&&(r?n.insertBefore(t,r):n?n.appendChild(t):Lc.removeChild(t))),e&&l.length>6?[l[0],l[1],l[4],l[5],l[12],l[13]]:l)},Yu=function(t,e,n,r,i,o){var a,s,l,c=t._gsap,u=i||zu(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],w=u[5],_=e.split(" "),D=parseFloat(_[0])||0,S=parseFloat(_[1])||0;n?u!==Fu&&(s=m*y-g*v)&&(l=D*(-g/s)+S*(m/s)-(m*w-g*b)/s,D=D*(y/s)+S*(-v/s)+(v*w-y*b)/s,S=l):(D=(a=ku(t)).x+(~_[0].indexOf("%")?D/100*a.width:D),S=a.y+(~(_[1]||_[0]).indexOf("%")?S/100*a.height:S)),r||!1!==r&&c.smooth?(b=D-h,w=S-d,c.xOffset=f+(b*m+w*v)-b,c.yOffset=p+(b*g+w*y)-w):c.xOffset=c.yOffset=0,c.xOrigin=D,c.yOrigin=S,c.smooth=!!r,c.origin=e,c.originIsAbsolute=!!n,t.style[fu]="0px 0px",o&&(Eu(o,c,"xOrigin",h,D),Eu(o,c,"yOrigin",d,S),Eu(o,c,"xOffset",f,c.xOffset),Eu(o,c,"yOffset",p,c.yOffset)),t.setAttribute("data-svg-origin",D+" "+S)},Uu=function(t,e){var n=t._gsap||new Zl(t);if("x"in n&&!e&&!n.uncache)return n;var r,i,o,a,s,l,c,u,h,d,f,p,m,g,v,y,b,w,_,D,S,x,k,T,C,E,O,A,M,N,P,I,V=t.style,R=n.scaleX<0,B="px",F="deg",j=getComputedStyle(t),L=bu(t,fu)||"0";return r=i=o=l=c=u=h=d=f=0,a=s=1,n.svg=!(!t.getCTM||!Tu(t)),j.translate&&("none"===j.translate&&"none"===j.scale&&"none"===j.rotate||(V[du]=("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[du]?j[du]:"")),V.scale=V.rotate=V.translate="none"),g=zu(t,n.svg),n.svg&&(n.uncache?(C=t.getBBox(),L=n.xOrigin-C.x+"px "+(n.yOrigin-C.y)+"px",T=""):T=!e&&t.getAttribute("data-svg-origin"),Yu(t,T||L,!!T||n.originIsAbsolute,!1!==n.smooth,g)),p=n.xOrigin||0,m=n.yOrigin||0,g!==Fu&&(w=g[0],_=g[1],D=g[2],S=g[3],r=x=g[4],i=k=g[5],6===g.length?(a=Math.sqrt(w*w+_*_),s=Math.sqrt(S*S+D*D),l=w||_?Kc(_,w)*Wc:0,(h=D||S?Kc(D,S)*Wc+l:0)&&(s*=Math.abs(Math.cos(h*$c))),n.svg&&(r-=p-(p*w+m*D),i-=m-(p*_+m*S))):(I=g[6],N=g[7],O=g[8],A=g[9],M=g[10],P=g[11],r=g[12],i=g[13],o=g[14],c=(v=Kc(I,M))*Wc,v&&(T=x*(y=Math.cos(-v))+O*(b=Math.sin(-v)),C=k*y+A*b,E=I*y+M*b,O=x*-b+O*y,A=k*-b+A*y,M=I*-b+M*y,P=N*-b+P*y,x=T,k=C,I=E),u=(v=Kc(-D,M))*Wc,v&&(y=Math.cos(-v),P=S*(b=Math.sin(-v))+P*y,w=T=w*y-O*b,_=C=_*y-A*b,D=E=D*y-M*b),l=(v=Kc(_,w))*Wc,v&&(T=w*(y=Math.cos(v))+_*(b=Math.sin(v)),C=x*y+k*b,_=_*y-w*b,k=k*y-x*b,w=T,x=C),c&&Math.abs(c)+Math.abs(l)>359.9&&(c=l=0,u=180-u),a=Cs(Math.sqrt(w*w+_*_+D*D)),s=Cs(Math.sqrt(k*k+I*I)),v=Kc(x,k),h=Math.abs(v)>2e-4?v*Wc:0,f=P?1/(P<0?-P:P):0),n.svg&&(T=t.getAttribute("transform"),n.forceCSS=t.setAttribute("transform","")||!Lu(bu(t,du)),T&&t.setAttribute("transform",T))),Math.abs(h)>90&&Math.abs(h)<270&&(R?(a*=-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)+B,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)+B,n.z=o+B,n.scaleX=Cs(a),n.scaleY=Cs(s),n.rotation=Cs(l)+F,n.rotationX=Cs(c)+F,n.rotationY=Cs(u)+F,n.skewX=h+F,n.skewY=d+F,n.transformPerspective=f+B,(n.zOrigin=parseFloat(L.split(" ")[2])||!e&&n.zOrigin||0)&&(V[fu]=qu(L)),n.xOffset=n.yOffset=0,n.force3D=Na.force3D,n.renderTransform=n.svg?Ju:qc?Zu:Wu,n.uncache=0,n},qu=function(t){return(t=t.split(" "))[0]+" "+t[1]},Gu=function(t,e,n){var r=ul(e);return Cs(parseFloat(e)+parseFloat(Mu(t,"x",n+"px",r)))+r},Wu=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,Zu(t,e)},$u="0deg",Ku="0px",Xu=") ",Zu=function(t,e){var n=e||this,r=n.xPercent,i=n.yPercent,o=n.x,a=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="",w="auto"===g&&t&&1!==t||!0===g;if(y&&(u!==$u||c!==$u)){var _,D=parseFloat(c)*$c,S=Math.sin(D),x=Math.cos(D);D=parseFloat(u)*$c,_=Math.cos(D),o=Gu(v,o,S*_*-y),a=Gu(v,a,-Math.sin(D)*-y),s=Gu(v,s,x*_*-y+y)}m!==Ku&&(b+="perspective("+m+Xu),(r||i)&&(b+="translate("+r+"%, "+i+"%) "),(w||o!==Ku||a!==Ku||s!==Ku)&&(b+=s!==Ku||w?"translate3d("+o+", "+a+", "+s+") ":"translate("+o+", "+a+Xu),l!==$u&&(b+="rotate("+l+Xu),c!==$u&&(b+="rotateY("+c+Xu),u!==$u&&(b+="rotateX("+u+Xu),h===$u&&d===$u||(b+="skew("+h+", "+d+Xu),1===f&&1===p||(b+="scale("+f+", "+p+Xu),v.style[du]=b||"translate(0, 0)"},Ju=function(t,e){var n,r,i,o,a,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,w=s.xOffset,_=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*=$c,f*=$c,n=Math.cos(d)*m,r=Math.sin(d)*m,i=Math.sin(d-f)*-g,o=Math.cos(d-f)*g,f&&(p*=$c,a=Math.tan(f-p),i*=a=Math.sqrt(1+a*a),o*=a,p&&(a=Math.tan(p),n*=a=Math.sqrt(1+a*a),r*=a)),n=Cs(n),r=Cs(r),i=Cs(i),o=Cs(o)):(n=m,o=g,r=i=0),(S&&!~(u+"").indexOf("px")||x&&!~(h+"").indexOf("px"))&&(S=Mu(v,"x",u,"px"),x=Mu(v,"y",h,"px")),(y||b||w||_)&&(S=Cs(S+y-(y*n+b*i)+w),x=Cs(x+b-(y*r+b*o)+_)),(l||c)&&(a=v.getBBox(),S=Cs(S+l/100*a.width),x=Cs(x+c/100*a.height)),a="matrix("+n+","+r+","+i+","+o+","+S+","+x+")",v.setAttribute("transform",a),D&&(v.style[du]=a)},Qu=function(t,e,n,r,i){var o,a,s=360,l=za(i),c=parseFloat(i)*(l&&~i.indexOf("rad")?Wc:1)-r,u=r+c+"deg";return l&&("short"===(o=i.split("_")[1])&&(c%=s)!==c%180&&(c+=c<0?s:-360),"cw"===o&&c<0?c=(c+36e9)%s-~~(c/s)*s:"ccw"===o&&c>0&&(c=(c-36e9)%s-~~(c/s)*s)),t._pt=a=new xc(t._pt,e,n,r,c,eu),a.e=u,a.u="deg",t._props.push(n),a},th=function(t,e){for(var n in e)t[n]=e[n];return t},eh=function(t,e,n){var r,i,o,a,s,l,c,u=th({},n._gsap),h=n.style;for(i in u.svg?(o=n.getAttribute("transform"),n.setAttribute("transform",""),h[du]=e,r=Uu(n,1),Cu(n,du),n.setAttribute("transform",o)):(o=getComputedStyle(n)[du],h[du]=e,r=Uu(n,1),h[du]=o),Gc)(o=u[i])!==(a=r[i])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(i)<0&&(s=ul(o)!==(c=ul(a))?Mu(n,i,o,c):parseFloat(o),l=parseFloat(a),t._pt=new xc(t._pt,r,i,s,l-s,tu),t._pt.u=c||0,t._props.push(i));th(r,u)};Ts("padding,margin,Width,Radius",(function(t,e){var n="Top",r="Right",i="Bottom",o="Left",a=(e<3?[n,r,i,o]:[n+o,n+r,i+r,i+o]).map((function(n){return e<2?t+n:"border"+n+t}));Bu[e>1?"border"+t:t]=function(t,e,n,r,i){var o,s;if(arguments.length<4)return o=a.map((function(e){return Nu(t,e,n)})),5===(s=o.join(" ")).split(o[0]).length?o[0]:s;o=(r+"").split(" "),s={},a.forEach((function(t,e){return s[t]=o[e]=o[e]||o[(e-1)/2|0]})),t.init(e,s,i)}}));var nh,rh,ih,oh={name:"css",register:Du,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,n,r,i){var o,a,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 Hc||Du(),this.styles=this.styles||vu(t),w=this.styles.props,this.tween=n,e)if("autoRound"!==h&&(a=e[h],!ys[h]||!ic(h,e,n,r,t,i)))if(c=typeof a,u=Bu[h],"function"===c&&(c=typeof(a=a.call(n,r,t,i))),"string"===c&&~a.indexOf("random(")&&(a=Dl(a)),u)u(this,t,h,a,n)&&(b=1);else if("--"===h.substr(0,2))o=(getComputedStyle(t).getPropertyValue(h)+"").trim(),a+="",Vl.lastIndex=0,Vl.test(o)||(d=ul(o),f=ul(a)),f?d!==f&&(o=Mu(t,h,o,f)+f):d&&(a+=d),this.add(D,"setProperty",o,a,r,i,0,0,h),_.push(h),w.push(h,0,D[h]);else if("undefined"!==c){if(S&&h in S?(o="function"==typeof S[h]?S[h].call(n,r,t,i):S[h],za(o)&&~o.indexOf("random(")&&(o=Dl(o)),ul(o+"")||"auto"===o||(o+=Na.units[h]||ul(Nu(t,h))||""),"="===(o+"").charAt(1)&&(o=Nu(t,h))):o=Nu(t,h),l=parseFloat(o),(p="string"===c&&"="===a.charAt(1)&&a.substr(0,2))&&(a=a.substr(2)),s=parseFloat(a),h in Qc&&("autoAlpha"===h&&(1===l&&"hidden"===Nu(t,"visibility")&&s&&(l=0),w.push("visibility",0,D.visibility),Eu(this,D,"visibility",l?"inherit":"hidden",s?"inherit":"hidden",!s)),"scale"!==h&&"transform"!==h&&~(h=Qc[h]).indexOf(",")&&(h=h.split(",")[0])),m=h in Gc)if(this.styles.save(h),g||((v=t._gsap).renderTransform&&!e.parseTransform||Uu(t,e.parseTransform),y=!1!==e.smoothOrigin&&v.smooth,(g=this._pt=new xc(this._pt,D,du,0,1,v.renderTransform,v,0,-1)).dep=1),"scale"===h)this._pt=new xc(this._pt,v,"scaleY",v.scaleY,(p?Os(v.scaleY,p+s):s)-v.scaleY||0,tu),this._pt.u=0,_.push("scaleY",h),h+="X";else{if("transformOrigin"===h){w.push(fu,0,D[fu]),a=Vu(a),v.svg?Yu(t,a,0,y,0,this):((f=parseFloat(a.split(" ")[2])||0)!==v.zOrigin&&Eu(this,v,"zOrigin",v.zOrigin,f),Eu(this,D,h,qu(o),qu(a)));continue}if("svgOrigin"===h){Yu(t,a,1,y,0,this);continue}if(h in ju){Qu(this,v,h,l,p?Os(l,p+a):a);continue}if("smoothOrigin"===h){Eu(this,v,"smooth",v.smooth,a);continue}if("force3D"===h){v[h]=a;continue}if("transform"===h){eh(this,a,t);continue}}else h in D||(h=_u(h)||h);if(m||(s||0===s)&&(l||0===l)&&!Jc.test(a)&&h in D)s||(s=0),(d=(o+"").substr((l+"").length))!==(f=ul(a)||(h in Na.units?Na.units[h]:d))&&(l=Mu(t,h,o,f)),this._pt=new xc(this._pt,m?v:D,h,l,(p?Os(l,p+s):s)-l,m||"px"!==f&&"zIndex"!==h||!1===e.autoRound?tu:ru),this._pt.u=f||0,d!==f&&"%"!==f&&(this._pt.b=o,this._pt.r=nu);else if(h in D)Pu.call(this,t,h,o,p?p+a:a);else if(h in t)this.add(t,h,o||t[h],p?p+a:a,r,i);else if("parseTransform"!==h){ls(h,a);continue}m||(h in D?w.push(h,0,D[h]):w.push(h,1,o||t[h])),_.push(h)}b&&Sc(this)},render:function(t,e){if(e.tween._time||!Uc())for(var n=e._pt;n;)n.r(t,n.d),n=n._next;else e.styles.revert()},get:Nu,aliases:Qc,getSetter:function(t,e,n){var r=Qc[e];return r&&r.indexOf(",")<0&&(e=r),e in Gc&&e!==fu&&(t._gsap.x||Nu(t,"x"))?n&&Yc===n?"scale"===e?cu:lu:(Yc=n||{})&&("scale"===e?uu:hu):t.style&&!qa(t.style[e])?au:~e.indexOf("-")?su:mc(t,e)},core:{_removeProperty:Cu,_getMatrix:zu}};Bc.utils.checkPrefix=_u,Bc.core.getStyleSaver=vu,ih=Ts((nh="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(rh="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",(function(t){Gc[t]=1})),Ts(rh,(function(t){Na.units[t]="deg",ju[t]=1})),Qc[ih[13]]=nh+","+rh,Ts("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",(function(t){var e=t.split(":");Qc[e[1]]=ih[e[0]]})),Ts("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",(function(t){Na.units[t]="px"})),Bc.registerPlugin(oh);var ah=Bc.registerPlugin(oh)||Bc;ah.core.Tween;var sh=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=ah.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,o=e.admissionMode;i&&(this.totalTime=i),this.setEndPoisiton(r);var a=this.filterData(t,o);this.goAnimationParams=e;for(var s=0;s<a.length;s++){var l=a[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/a.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 o=this.setSpacing(e,"right");r=t.orderBy(o,["spacing"],["asc"])}else if("center"==n){var a=this.splitArrayForCenter(e,"left");r=[t.orderBy(a.true,["center.x"],["asc"]),t.orderBy(a.false,["center.x"],["desc"])]}else if("spaceBetween"==n){a=this.splitArrayForCenter(e,"left");r=[t.orderBy(a.true,["center.x"],["desc"]),t.orderBy(a.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,o=e.y,a=Math.abs(n-i),s=Math.abs(r-o);return Math.sqrt(a*a+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 o=r.creatPosition(i,e),a=r.getSpacing(o,n);t.spacing=a}})),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,o=this.setCenter(e);return"left"!=n&&"right"!=n||(r=t.groupBy(o,(function(t){return t.center.x>=i.curtain.width/2}))),"top"!=n&&"bottom"!=n||(r=t.groupBy(o,(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=ah.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,o=e.type,a=e.value;return a&&a.length&&a.forEach((function(t){t.delay=n||0,t.repeat=i||0})),ah[o](t,r,a[0],a[1])},e.prototype.in=function(){},e.prototype.out=function(){},e}(),lh=sh.getInstance();function ch(t,e){var n;return n=t,["7UPegPt","helloX","101103gTMnwz","anov@2019:","149enyQdW","45665RoGNCN","anov@2020:","8508599uBIQaP","426790LJjXRf","188usEQPq","8726DMTNEL","1936DnLjOl","3080442wFrdqQ","8649UPqoeO"][n-=261]}ch(262),ch(274),ch(265),ch(274);var uh=function(){function e(t){this.root=null,this.vuex=Po.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 o=i[r];o.$options&&o.$options.propsData&&o.$options.propsData.cid&&(e[o.$options.propsData.cid]=o),o.$children&&o.$children.length&&this.findComponentDownward(o,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;t.value;if(!t||!e)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,o=function(e){for(var a=0;a<e.length;a++){if(e[a].cid==n){i=e[a],r&&t.remove(e,(function(t){return t.cid==n}));break}if(e[a].children)o(e[a].children);else if(e[a].dynamicChildren){if(e[a].dynamicChildren instanceof Map){for(var s=Array.from(e[a].dynamicChildren),l=0;l<s.length;l++)if(s[l]instanceof Array){var c=s[l][1];o(c)}}else if(e[a].dynamicChildren instanceof Array)for(s=e[a].dynamicChildren,l=0;l<s.length;l++)s[l]instanceof Array&&(c=s[l][1],o(c))}else e[a].stateChildren&&o(e[a].stateChildren)}};return o(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=yi.getAllVariables();return t&&t(e),e},e.prototype.setVars=function(t){var e=yi.getVariable(t.key);if(2!=(null==e?void 0:e.model))return this.vuex.callAction("goEditVar",t);console.warn("系统变量禁止修改!")},e}(),hh=function(t){function e(e){var n,r,i=t.call(this,e)||this,o=(n=(n=i.eventType)||new Map,u(u({},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=o.emit,i.$on=o.on,i.$off=o.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}c(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}(uh),dh=function(){function t(t){this.$action=new fh(t),this.instance=new hh(t)}return t.prototype.getGlobalvars=function(){for(var t=yi.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,o=e;i<o.length;i++){r(o[i])}var a=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");a.setGlobalVar({key:e,value:n})}})},Object.defineProperty(t.prototype,"globalvars",{get:function(){return this.getGlobalvars()},enumerable:!1,configurable:!0}),t}(),fh=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 hh(t)},ph=function(t){return new dh(t)},mh=function(t,e){console.log("弃用")},gh=function(t,e){return e&&t?Po.getInstance().render(t,e):t?Po.getInstance().render(t):void 0},vh=function(t,e,n){return void 0!==n&&t?Po.getInstance().renderForParent(t,e,n):t?Po.getInstance().renderForParent(t,e):void 0},yh=function(t,e){return Po.getInstance().emitEvent(t,e||function(){})},bh=function(){};export{Po as Go,lh as GoAnimation,ya as Tool,gh as createComponent,vh as createComponentForParent,yh as emitEvent,oo as fxhr,mh as getDataForRelease,Wi as goUtils,bh as log,io as refreshData,ph as run,Do as store};
|
|
53
|
+
var Lc,Hc,zc,Yc,Uc,qc,Gc,Wc,$c={},Kc=180/Math.PI,Xc=Math.PI/180,Zc=Math.atan2,Jc=/([A-Z])/g,Qc=/(left|right|width|margin|padding|x)/i,tu=/[\s,\(]\S/,eu={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},nu=function(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},ru=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)},iu=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)},ou=function(t,e){var n=e.s+e.c*t;e.set(e.t,e.p,~~(n+(n<0?-.5:.5))+e.u,e)},au=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},su=function(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)},lu=function(t,e,n){return t.style[e]=n},cu=function(t,e,n){return t.style.setProperty(e,n)},uu=function(t,e,n){return t._gsap[e]=n},hu=function(t,e,n){return t._gsap.scaleX=t._gsap.scaleY=n},du=function(t,e,n,r,i){var o=t._gsap;o.scaleX=o.scaleY=n,o.renderTransform(i,o)},fu=function(t,e,n,r,i){var o=t._gsap;o[e]=n,o.renderTransform(i,o)},pu="transform",mu=pu+"Origin",gu=function t(e,n){var r=this,i=this.target,o=i.style,a=i._gsap;if(e in $c&&o){if(this.tfm=this.tfm||{},"transform"===e)return eu.transform.split(",").forEach(function(e){return t.call(r,e,n)});if(~(e=eu[e]||e).indexOf(",")?e.split(",").forEach(function(t){return r.tfm[t]=Iu(i,t)}):this.tfm[e]=a.x?a[e]:Iu(i,e),e===mu&&(this.tfm.zOrigin=a.zOrigin),this.props.indexOf(pu)>=0)return;a.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(mu,n,"")),e=pu}(o||n)&&this.props.push(e,n,o[e])},vu=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},yu=function(){var t,e,n=this.props,r=this.target,i=r.style,o=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(Jc,"-$1").toLowerCase());if(this.tfm){for(e in this.tfm)o[e]=this.tfm[e];o.svg&&(o.renderTransform(),r.setAttribute("data-svg-origin",this.svgo||"")),(t=Gc())&&t.isStart||i[pu]||(vu(i),o.zOrigin&&i[mu]&&(i[mu]+=" "+o.zOrigin+"px",o.zOrigin=0,o.renderTransform()),o.uncache=1)}},bu=function(t,e){var n={target:t,props:[],revert:yu,save:gu};return t._gsap||jc.core.getCache(t),e&&e.split(",").forEach(function(t){return n.save(t)}),n},wu=function(t,e){var n=Hc.createElementNS?Hc.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):Hc.createElement(t);return n&&n.style?n:Hc.createElement(t)},_u=function t(e,n,r){var i=getComputedStyle(e);return i[n]||i.getPropertyValue(n.replace(Jc,"-$1").toLowerCase())||i.getPropertyValue(n)||!r&&t(e,Su(n)||n,1)||""},Du="O,Moz,ms,Ms,Webkit".split(","),Su=function(t,e,n){var r=(e||Uc).style,i=5;if(t in r&&!n)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);i--&&!(Du[i]+t in r););return i<0?null:(3===i?"ms":i>=0?Du[i]:"")+t},xu=function(){"undefined"!=typeof window&&window.document&&(Lc=window,Hc=Lc.document,zc=Hc.documentElement,Uc=wu("div")||{style:{}},wu("div"),pu=Su(pu),mu=pu+"Origin",Uc.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Wc=!!Su("perspective"),Gc=jc.core.reverting,Yc=1)},ku=function t(e){var n,r=wu("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=this.parentNode,o=this.nextSibling,a=this.style.cssText;if(zc.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&&(o?i.insertBefore(this,o):i.appendChild(this)),zc.removeChild(r),this.style.cssText=a,n},Tu=function(t,e){for(var n=e.length;n--;)if(t.hasAttribute(e[n]))return t.getAttribute(e[n])},Cu=function(t){var e;try{e=t.getBBox()}catch(n){e=ku.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===ku||(e=ku.call(t,!0)),!e||e.width||e.x||e.y?e:{x:+Tu(t,["x","cx","x1"])||0,y:+Tu(t,["y","cy","y1"])||0,width:0,height:0}},Eu=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!Cu(t))},Ou=function(t,e){if(e){var n,r=t.style;e in $c&&e!==mu&&(e=pu),r.removeProperty?("ms"!==(n=e.substr(0,2))&&"webkit"!==e.substr(0,6)||(e="-"+e),r.removeProperty("--"===n?e:e.replace(Jc,"-$1").toLowerCase())):r.removeAttribute(e)}},Au=function(t,e,n,r,i,o){var a=new Tc(t._pt,e,n,0,1,o?su:au);return t._pt=a,a.b=r,a.e=i,t._props.push(n),a},Mu={deg:1,rad:1,turn:1},Nu={grid:1,flex:1},Pu=function t(e,n,r,i){var o,a,s,l,c=parseFloat(r)||0,u=(r+"").trim().substr((c+"").length)||"px",h=Uc.style,d=Qc.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||Mu[i]||Mu[u])return c;if("px"!==u&&!g&&(c=t(e,n,r,"px")),l=e.getCTM&&Eu(e),(v||"%"===u)&&($c[n]||~n.indexOf("adius")))return o=l?e.getBBox()[d?"width":"height"]:e[p],Os(v?c/o*m:c/100*o);if(h[d?"width":"height"]=m+(g?u:i),a=~n.indexOf("adius")||"em"===i&&e.appendChild&&!f?e:e.parentNode,l&&(a=(e.ownerSVGElement||{}).parentNode),a&&a!==Hc&&a.appendChild||(a=Hc.body),(s=a._gsap)&&v&&s.width&&d&&s.time===Ll.time&&!s.uncache)return Os(c/s.width*m);if(!v||"height"!==n&&"width"!==n)(v||"%"===u)&&!Nu[_u(a,"display")]&&(h.position=_u(e,"position")),a===e&&(h.position="static"),a.appendChild(Uc),o=Uc[p],a.removeChild(Uc),h.position="absolute";else{var y=e.style[n];e.style[n]=m+i,o=e[p],y?e.style[n]=y:Ou(e,n)}return d&&v&&((s=Ts(a)).time=Ll.time,s.width=a[p]),Os(g?o*c/m:o&&c?m/o*c:0)},Iu=function(t,e,n,r){var i;return Yc||xu(),e in eu&&"transform"!==e&&~(e=eu[e]).indexOf(",")&&(e=e.split(",")[0]),$c[e]&&"transform"!==e?(i=Gu(t,r),i="transformOrigin"!==e?i[e]:i.svg?i.origin:Wu(_u(t,mu))+" "+i.zOrigin+"px"):(!(i=t.style[e])||"auto"===i||r||~(i+"").indexOf("calc("))&&(i=ju[e]&&ju[e](t,e,n)||_u(t,e)||Cs(t,e)||("opacity"===e?1:0)),n&&!~(i+"").trim().indexOf(" ")?Pu(t,e,i,n)+n:i},Vu=function(t,e,n,r){if(!n||"none"===n){var i=Su(e,t,1),o=i&&_u(t,i,1);o&&o!==n?(e=i,n=o):"borderColor"===e&&(n=_u(t,"borderTopColor"))}var a,s,l,c,u,h,d,f,p,m,g,v=new Tc(this._pt,t.style,e,0,1,wc),y=0,b=0;if(v.b=n,v.e=r,n+="","auto"===(r+="")&&(h=t.style[e],t.style[e]=r,r=_u(t,e)||r,h?t.style[e]=h:Ou(t,e)),jl(a=[n,r]),r=a[1],l=(n=a[0]).match(ns)||[],(r.match(ns)||[]).length){for(;s=ns.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=Ms(c,d)+g),f=parseFloat(d),m=d.substr((f+"").length),y=ns.lastIndex-m.length,m||(m=m||Ia.units[e]||g,y===r.length&&(r+=m,v.e+=m)),g!==m&&(c=Pu(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?su:au;return is.test(r)&&(v.e=0),this._pt=v,v},Ru={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Bu=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]=Ru[n]||n,e[1]=Ru[r]||r,e.join(" ")},Fu=function(t,e){if(e.tween&&e.tween._time===e.tween._dur){var n,r,i,o=e.t,a=o.style,s=e.u,l=o._gsap;if("all"===s||!0===s)a.cssText="",r=1;else for(i=(s=s.split(",")).length;--i>-1;)n=s[i],$c[n]&&(r=1,n="transformOrigin"===n?mu:pu),Ou(o,n);r&&(Ou(o,pu),l&&(l.svg&&o.removeAttribute("transform"),Gu(o,1),l.uncache=1,vu(a)))}},ju={clearProps:function(t,e,n,r,i){if("isFromStart"!==i.data){var o=t._pt=new Tc(t._pt,e,n,0,0,Fu);return o.u=r,o.pr=-10,o.tween=i,t._props.push(n),1}}},Lu=[1,0,0,1,0,0],Hu={},zu=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},Yu=function(t){var e=_u(t,pu);return zu(e)?Lu:e.substr(7).match(es).map(Os)},Uu=function(t,e){var n,r,i,o,a=t._gsap||Ts(t),s=t.style,l=Yu(t);return a.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(",")?Lu:l:(l!==Lu||t.offsetParent||t===zc||a.svg||(i=s.display,s.display="block",(n=t.parentNode)&&t.offsetParent||(o=1,r=t.nextElementSibling,zc.appendChild(t)),l=Yu(t),i?s.display=i:Ou(t,"display"),o&&(r?n.insertBefore(t,r):n?n.appendChild(t):zc.removeChild(t))),e&&l.length>6?[l[0],l[1],l[4],l[5],l[12],l[13]]:l)},qu=function(t,e,n,r,i,o){var a,s,l,c=t._gsap,u=i||Uu(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],w=u[5],_=e.split(" "),D=parseFloat(_[0])||0,S=parseFloat(_[1])||0;n?u!==Lu&&(s=m*y-g*v)&&(l=D*(-g/s)+S*(m/s)-(m*w-g*b)/s,D=D*(y/s)+S*(-v/s)+(v*w-y*b)/s,S=l):(D=(a=Cu(t)).x+(~_[0].indexOf("%")?D/100*a.width:D),S=a.y+(~(_[1]||_[0]).indexOf("%")?S/100*a.height:S)),r||!1!==r&&c.smooth?(b=D-h,w=S-d,c.xOffset=f+(b*m+w*v)-b,c.yOffset=p+(b*g+w*y)-w):c.xOffset=c.yOffset=0,c.xOrigin=D,c.yOrigin=S,c.smooth=!!r,c.origin=e,c.originIsAbsolute=!!n,t.style[mu]="0px 0px",o&&(Au(o,c,"xOrigin",h,D),Au(o,c,"yOrigin",d,S),Au(o,c,"xOffset",f,c.xOffset),Au(o,c,"yOffset",p,c.yOffset)),t.setAttribute("data-svg-origin",D+" "+S)},Gu=function(t,e){var n=t._gsap||new Ql(t);if("x"in n&&!e&&!n.uncache)return n;var r,i,o,a,s,l,c,u,h,d,f,p,m,g,v,y,b,w,_,D,S,x,k,T,C,E,O,A,M,N,P,I,V=t.style,R=n.scaleX<0,B="px",F="deg",j=getComputedStyle(t),L=_u(t,mu)||"0";return r=i=o=l=c=u=h=d=f=0,a=s=1,n.svg=!(!t.getCTM||!Eu(t)),j.translate&&("none"===j.translate&&"none"===j.scale&&"none"===j.rotate||(V[pu]=("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[pu]?j[pu]:"")),V.scale=V.rotate=V.translate="none"),g=Uu(t,n.svg),n.svg&&(n.uncache?(C=t.getBBox(),L=n.xOrigin-C.x+"px "+(n.yOrigin-C.y)+"px",T=""):T=!e&&t.getAttribute("data-svg-origin"),qu(t,T||L,!!T||n.originIsAbsolute,!1!==n.smooth,g)),p=n.xOrigin||0,m=n.yOrigin||0,g!==Lu&&(w=g[0],_=g[1],D=g[2],S=g[3],r=x=g[4],i=k=g[5],6===g.length?(a=Math.sqrt(w*w+_*_),s=Math.sqrt(S*S+D*D),l=w||_?Zc(_,w)*Kc:0,(h=D||S?Zc(D,S)*Kc+l:0)&&(s*=Math.abs(Math.cos(h*Xc))),n.svg&&(r-=p-(p*w+m*D),i-=m-(p*_+m*S))):(I=g[6],N=g[7],O=g[8],A=g[9],M=g[10],P=g[11],r=g[12],i=g[13],o=g[14],c=(v=Zc(I,M))*Kc,v&&(T=x*(y=Math.cos(-v))+O*(b=Math.sin(-v)),C=k*y+A*b,E=I*y+M*b,O=x*-b+O*y,A=k*-b+A*y,M=I*-b+M*y,P=N*-b+P*y,x=T,k=C,I=E),u=(v=Zc(-D,M))*Kc,v&&(y=Math.cos(-v),P=S*(b=Math.sin(-v))+P*y,w=T=w*y-O*b,_=C=_*y-A*b,D=E=D*y-M*b),l=(v=Zc(_,w))*Kc,v&&(T=w*(y=Math.cos(v))+_*(b=Math.sin(v)),C=x*y+k*b,_=_*y-w*b,k=k*y-x*b,w=T,x=C),c&&Math.abs(c)+Math.abs(l)>359.9&&(c=l=0,u=180-u),a=Os(Math.sqrt(w*w+_*_+D*D)),s=Os(Math.sqrt(k*k+I*I)),v=Zc(x,k),h=Math.abs(v)>2e-4?v*Kc:0,f=P?1/(P<0?-P:P):0),n.svg&&(T=t.getAttribute("transform"),n.forceCSS=t.setAttribute("transform","")||!zu(_u(t,pu)),T&&t.setAttribute("transform",T))),Math.abs(h)>90&&Math.abs(h)<270&&(R?(a*=-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)+B,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)+B,n.z=o+B,n.scaleX=Os(a),n.scaleY=Os(s),n.rotation=Os(l)+F,n.rotationX=Os(c)+F,n.rotationY=Os(u)+F,n.skewX=h+F,n.skewY=d+F,n.transformPerspective=f+B,(n.zOrigin=parseFloat(L.split(" ")[2])||!e&&n.zOrigin||0)&&(V[mu]=Wu(L)),n.xOffset=n.yOffset=0,n.force3D=Ia.force3D,n.renderTransform=n.svg?th:Wc?Qu:Ku,n.uncache=0,n},Wu=function(t){return(t=t.split(" "))[0]+" "+t[1]},$u=function(t,e,n){var r=dl(e);return Os(parseFloat(e)+parseFloat(Pu(t,"x",n+"px",r)))+r},Ku=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,Qu(t,e)},Xu="0deg",Zu="0px",Ju=") ",Qu=function(t,e){var n=e||this,r=n.xPercent,i=n.yPercent,o=n.x,a=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="",w="auto"===g&&t&&1!==t||!0===g;if(y&&(u!==Xu||c!==Xu)){var _,D=parseFloat(c)*Xc,S=Math.sin(D),x=Math.cos(D);D=parseFloat(u)*Xc,_=Math.cos(D),o=$u(v,o,S*_*-y),a=$u(v,a,-Math.sin(D)*-y),s=$u(v,s,x*_*-y+y)}m!==Zu&&(b+="perspective("+m+Ju),(r||i)&&(b+="translate("+r+"%, "+i+"%) "),(w||o!==Zu||a!==Zu||s!==Zu)&&(b+=s!==Zu||w?"translate3d("+o+", "+a+", "+s+") ":"translate("+o+", "+a+Ju),l!==Xu&&(b+="rotate("+l+Ju),c!==Xu&&(b+="rotateY("+c+Ju),u!==Xu&&(b+="rotateX("+u+Ju),h===Xu&&d===Xu||(b+="skew("+h+", "+d+Ju),1===f&&1===p||(b+="scale("+f+", "+p+Ju),v.style[pu]=b||"translate(0, 0)"},th=function(t,e){var n,r,i,o,a,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,w=s.xOffset,_=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*=Xc,f*=Xc,n=Math.cos(d)*m,r=Math.sin(d)*m,i=Math.sin(d-f)*-g,o=Math.cos(d-f)*g,f&&(p*=Xc,a=Math.tan(f-p),i*=a=Math.sqrt(1+a*a),o*=a,p&&(a=Math.tan(p),n*=a=Math.sqrt(1+a*a),r*=a)),n=Os(n),r=Os(r),i=Os(i),o=Os(o)):(n=m,o=g,r=i=0),(S&&!~(u+"").indexOf("px")||x&&!~(h+"").indexOf("px"))&&(S=Pu(v,"x",u,"px"),x=Pu(v,"y",h,"px")),(y||b||w||_)&&(S=Os(S+y-(y*n+b*i)+w),x=Os(x+b-(y*r+b*o)+_)),(l||c)&&(a=v.getBBox(),S=Os(S+l/100*a.width),x=Os(x+c/100*a.height)),a="matrix("+n+","+r+","+i+","+o+","+S+","+x+")",v.setAttribute("transform",a),D&&(v.style[pu]=a)},eh=function(t,e,n,r,i){var o,a,s=360,l=Ua(i),c=parseFloat(i)*(l&&~i.indexOf("rad")?Kc:1)-r,u=r+c+"deg";return l&&("short"===(o=i.split("_")[1])&&(c%=s)!==c%180&&(c+=c<0?s:-360),"cw"===o&&c<0?c=(c+36e9)%s-~~(c/s)*s:"ccw"===o&&c>0&&(c=(c-36e9)%s-~~(c/s)*s)),t._pt=a=new Tc(t._pt,e,n,r,c,ru),a.e=u,a.u="deg",t._props.push(n),a},nh=function(t,e){for(var n in e)t[n]=e[n];return t},rh=function(t,e,n){var r,i,o,a,s,l,c,u=nh({},n._gsap),h=n.style;for(i in u.svg?(o=n.getAttribute("transform"),n.setAttribute("transform",""),h[pu]=e,r=Gu(n,1),Ou(n,pu),n.setAttribute("transform",o)):(o=getComputedStyle(n)[pu],h[pu]=e,r=Gu(n,1),h[pu]=o),$c)(o=u[i])!==(a=r[i])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(i)<0&&(s=dl(o)!==(c=dl(a))?Pu(n,i,o,c):parseFloat(o),l=parseFloat(a),t._pt=new Tc(t._pt,r,i,s,l-s,nu),t._pt.u=c||0,t._props.push(i));nh(r,u)};Es("padding,margin,Width,Radius",function(t,e){var n="Top",r="Right",i="Bottom",o="Left",a=(e<3?[n,r,i,o]:[n+o,n+r,i+r,i+o]).map(function(n){return e<2?t+n:"border"+n+t});ju[e>1?"border"+t:t]=function(t,e,n,r,i){var o,s;if(arguments.length<4)return o=a.map(function(e){return Iu(t,e,n)}),5===(s=o.join(" ")).split(o[0]).length?o[0]:s;o=(r+"").split(" "),s={},a.forEach(function(t,e){return s[t]=o[e]=o[e]||o[(e-1)/2|0]}),t.init(e,s,i)}});var ih,oh,ah,sh={name:"css",register:xu,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,n,r,i){var o,a,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 Yc||xu(),this.styles=this.styles||bu(t),w=this.styles.props,this.tween=n,e)if("autoRound"!==h&&(a=e[h],!ws[h]||!ac(h,e,n,r,t,i)))if(c=typeof a,u=ju[h],"function"===c&&(c=typeof(a=a.call(n,r,t,i))),"string"===c&&~a.indexOf("random(")&&(a=xl(a)),u)u(this,t,h,a,n)&&(b=1);else if("--"===h.substr(0,2))o=(getComputedStyle(t).getPropertyValue(h)+"").trim(),a+="",Bl.lastIndex=0,Bl.test(o)||(d=dl(o),f=dl(a)),f?d!==f&&(o=Pu(t,h,o,f)+f):d&&(a+=d),this.add(D,"setProperty",o,a,r,i,0,0,h),_.push(h),w.push(h,0,D[h]);else if("undefined"!==c){if(S&&h in S?(o="function"==typeof S[h]?S[h].call(n,r,t,i):S[h],Ua(o)&&~o.indexOf("random(")&&(o=xl(o)),dl(o+"")||"auto"===o||(o+=Ia.units[h]||dl(Iu(t,h))||""),"="===(o+"").charAt(1)&&(o=Iu(t,h))):o=Iu(t,h),l=parseFloat(o),(p="string"===c&&"="===a.charAt(1)&&a.substr(0,2))&&(a=a.substr(2)),s=parseFloat(a),h in eu&&("autoAlpha"===h&&(1===l&&"hidden"===Iu(t,"visibility")&&s&&(l=0),w.push("visibility",0,D.visibility),Au(this,D,"visibility",l?"inherit":"hidden",s?"inherit":"hidden",!s)),"scale"!==h&&"transform"!==h&&~(h=eu[h]).indexOf(",")&&(h=h.split(",")[0])),m=h in $c)if(this.styles.save(h),g||((v=t._gsap).renderTransform&&!e.parseTransform||Gu(t,e.parseTransform),y=!1!==e.smoothOrigin&&v.smooth,(g=this._pt=new Tc(this._pt,D,pu,0,1,v.renderTransform,v,0,-1)).dep=1),"scale"===h)this._pt=new Tc(this._pt,v,"scaleY",v.scaleY,(p?Ms(v.scaleY,p+s):s)-v.scaleY||0,nu),this._pt.u=0,_.push("scaleY",h),h+="X";else{if("transformOrigin"===h){w.push(mu,0,D[mu]),a=Bu(a),v.svg?qu(t,a,0,y,0,this):((f=parseFloat(a.split(" ")[2])||0)!==v.zOrigin&&Au(this,v,"zOrigin",v.zOrigin,f),Au(this,D,h,Wu(o),Wu(a)));continue}if("svgOrigin"===h){qu(t,a,1,y,0,this);continue}if(h in Hu){eh(this,v,h,l,p?Ms(l,p+a):a);continue}if("smoothOrigin"===h){Au(this,v,"smooth",v.smooth,a);continue}if("force3D"===h){v[h]=a;continue}if("transform"===h){rh(this,a,t);continue}}else h in D||(h=Su(h)||h);if(m||(s||0===s)&&(l||0===l)&&!tu.test(a)&&h in D)s||(s=0),(d=(o+"").substr((l+"").length))!==(f=dl(a)||(h in Ia.units?Ia.units[h]:d))&&(l=Pu(t,h,o,f)),this._pt=new Tc(this._pt,m?v:D,h,l,(p?Ms(l,p+s):s)-l,m||"px"!==f&&"zIndex"!==h||!1===e.autoRound?nu:ou),this._pt.u=f||0,d!==f&&"%"!==f&&(this._pt.b=o,this._pt.r=iu);else if(h in D)Vu.call(this,t,h,o,p?p+a:a);else if(h in t)this.add(t,h,o||t[h],p?p+a:a,r,i);else if("parseTransform"!==h){us(h,a);continue}m||(h in D?w.push(h,0,D[h]):w.push(h,1,o||t[h])),_.push(h)}b&&kc(this)},render:function(t,e){if(e.tween._time||!Gc())for(var n=e._pt;n;)n.r(t,n.d),n=n._next;else e.styles.revert()},get:Iu,aliases:eu,getSetter:function(t,e,n){var r=eu[e];return r&&r.indexOf(",")<0&&(e=r),e in $c&&e!==mu&&(t._gsap.x||Iu(t,"x"))?n&&qc===n?"scale"===e?hu:uu:(qc=n||{})&&("scale"===e?du:fu):t.style&&!Wa(t.style[e])?lu:~e.indexOf("-")?cu:vc(t,e)},core:{_removeProperty:Ou,_getMatrix:Uu}};jc.utils.checkPrefix=Su,jc.core.getStyleSaver=bu,ah=Es((ih="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(oh="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",function(t){$c[t]=1}),Es(oh,function(t){Ia.units[t]="deg",Hu[t]=1}),eu[ah[13]]=ih+","+oh,Es("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",function(t){var e=t.split(":");eu[e[1]]=ah[e[0]]}),Es("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){Ia.units[t]="px"}),jc.registerPlugin(sh);var lh=jc.registerPlugin(sh)||jc;lh.core.Tween;var ch=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=lh.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,o=e.admissionMode;i&&(this.totalTime=i),this.setEndPoisiton(r);var a=this.filterData(t,o);this.goAnimationParams=e;for(var s=0;s<a.length;s++){var l=a[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/a.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 o=this.setSpacing(e,"right");r=t.orderBy(o,["spacing"],["asc"])}else if("center"==n){var a=this.splitArrayForCenter(e,"left");r=[t.orderBy(a.true,["center.x"],["asc"]),t.orderBy(a.false,["center.x"],["desc"])]}else if("spaceBetween"==n){a=this.splitArrayForCenter(e,"left");r=[t.orderBy(a.true,["center.x"],["desc"]),t.orderBy(a.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,o=e.y,a=Math.abs(n-i),s=Math.abs(r-o);return Math.sqrt(a*a+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 o=r.creatPosition(i,e),a=r.getSpacing(o,n);t.spacing=a}}),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,o=this.setCenter(e);return"left"!=n&&"right"!=n||(r=t.groupBy(o,function(t){return t.center.x>=i.curtain.width/2})),"top"!=n&&"bottom"!=n||(r=t.groupBy(o,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=lh.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,o=e.type,a=e.value;return a&&a.length&&a.forEach(function(t){t.delay=n||0,t.repeat=i||0}),lh[o](t,r,a[0],a[1])},e.prototype.in=function(){},e.prototype.out=function(){},e}(),uh=ch.getInstance();function hh(t,e){var n;return n=t,["7UPegPt","helloX","101103gTMnwz","anov@2019:","149enyQdW","45665RoGNCN","anov@2020:","8508599uBIQaP","426790LJjXRf","188usEQPq","8726DMTNEL","1936DnLjOl","3080442wFrdqQ","8649UPqoeO"][n-=261]}hh(262),hh(274),hh(265),hh(274);var dh=function(){function e(t){this.root=null,this.vuex=Io.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 o=i[r];o.$options&&o.$options.propsData&&o.$options.propsData.cid&&(e[o.$options.propsData.cid]=o),o.$children&&o.$children.length&&this.findComponentDownward(o,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;t.value;if(!t||!e)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,o=function(e){for(var a=0;a<e.length;a++){if(e[a].cid==n){i=e[a],r&&t.remove(e,function(t){return t.cid==n});break}if(e[a].children)o(e[a].children);else if(e[a].dynamicChildren){if(e[a].dynamicChildren instanceof Map){for(var s=Array.from(e[a].dynamicChildren),l=0;l<s.length;l++)if(s[l]instanceof Array){var c=s[l][1];o(c)}}else if(e[a].dynamicChildren instanceof Array)for(s=e[a].dynamicChildren,l=0;l<s.length;l++)s[l]instanceof Array&&(c=s[l][1],o(c))}else e[a].stateChildren&&o(e[a].stateChildren)}};return o(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=bi.getAllVariables();return t&&t(e),e},e.prototype.setVars=function(t){var e=bi.getVariable(t.key);if(2!=(null==e?void 0:e.model))return this.vuex.callAction("goEditVar",t);console.warn("系统变量禁止修改!")},e}(),fh=function(t){function e(e){var n,r,i=t.call(this,e)||this,o=(n=(n=i.eventType)||new Map,u(u({},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=o.emit,i.$on=o.on,i.$off=o.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}c(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}(dh),ph=function(){function t(t){this.$action=new mh(t),this.instance=new fh(t)}return t.prototype.getGlobalvars=function(){for(var t=bi.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,o=e;i<o.length;i++){r(o[i])}var a=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");a.setGlobalVar({key:e,value:n})}})},Object.defineProperty(t.prototype,"globalvars",{get:function(){return this.getGlobalvars()},enumerable:!1,configurable:!0}),t}(),mh=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 fh(t)},gh=function(t){return new ph(t)},vh=function(t,e){console.log("弃用")},yh=function(t,e){return e&&t?Io.getInstance().render(t,e):t?Io.getInstance().render(t):void 0},bh=function(t,e,n){return void 0!==n&&t?Io.getInstance().renderForParent(t,e,n):t?Io.getInstance().renderForParent(t,e):void 0},wh=function(t,e){return Io.getInstance().emitEvent(t,e||function(){})},_h=function(){};export{Io as Go,uh as GoAnimation,wa as Tool,yh as createComponent,bh as createComponentForParent,wh as emitEvent,ao as fxhr,vh as getDataForRelease,$i as goUtils,_h as log,oo as refreshData,gh as run,So as store};
|
|
54
54
|
//# sourceMappingURL=code.es5.js.map
|