go-core 0.1.913 → 0.1.914
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/LICENSE +22 -22
- package/README.md +22 -22
- package/dist/code.es5.js +8 -8
- package/dist/code.umd.js +6 -6
- package/package.json +147 -163
package/dist/code.umd.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("lodash"),require("axios")):"function"==typeof define&&define.amd?define(["exports","lodash","axios"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).code={},t._,t.axios)}(this,(function(t,e,n){"use strict";function r(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var i=r(e),a=r(n),o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function s(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function l(t,e){return t(e={exports:{}},e.exports),e.exports}var u=l((function(t,e){t.exports=function(){var e,n;function r(){return e.apply(null,arguments)}function i(t){e=t}function a(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function o(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function l(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function u(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 c(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 v(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 m(t){return null==t._pf&&(t._pf=g()),t._pf}function y(t){if(null==t._isValid){var e=m(t),r=n.call(e.parsedDateParts,(function(t){return null!=t})),i=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&r);if(t._strict&&(i=i&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return i;t._isValid=i}return t._isValid}function b(t){var e=v(NaN);return null!=t?p(m(e),t):m(e).userInvalidated=!0,e}n=Array.prototype.some?Array.prototype.some:function(t){var e,n=Object(this),r=n.length>>>0;for(e=0;e<r;e++)if(e in n&&t.call(this,n[e],e,n))return!0;return!1};var _=r.momentProperties=[],w=!1;function D(t,e){var n,r,i,a=_.length;if(c(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),c(e._i)||(t._i=e._i),c(e._f)||(t._f=e._f),c(e._l)||(t._l=e._l),c(e._strict)||(t._strict=e._strict),c(e._tzm)||(t._tzm=e._tzm),c(e._isUTC)||(t._isUTC=e._isUTC),c(e._offset)||(t._offset=e._offset),c(e._pf)||(t._pf=m(e)),c(e._locale)||(t._locale=e._locale),a>0)for(n=0;n<a;n++)c(i=e[r=_[n]])||(t[r]=i);return t}function S(t){D(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===w&&(w=!0,r.updateOffset(this),w=!1)}function x(t){return t instanceof S||null!=t&&null!=t._isAMomentObject}function T(t){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function k(t,e){var n=!0;return p((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,t),n){var i,a,o,s=[],u=arguments.length;for(a=0;a<u;a++){if(i="","object"==typeof arguments[a]){for(o in i+="\n["+a+"] ",arguments[0])l(arguments[0],o)&&(i+=o+": "+arguments[0][o]+", ");i=i.slice(0,-2)}else i=arguments[a];s.push(i)}T(t+"\nArguments: "+Array.prototype.slice.call(s).join("")+"\n"+(new Error).stack),n=!1}return e.apply(this,arguments)}),e)}var C,E={};function O(t,e){null!=r.deprecationHandler&&r.deprecationHandler(t,e),E[t]||(T(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 P(t,e){var n,r=p({},t);for(n in e)l(e,n)&&(o(t[n])&&o(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)&&o(t[n])&&(r[n]=p({},r[n]));return r}function V(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 R={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function N(t,e,n){var r=this._calendar[t]||this._calendar.sameElse;return A(r)?r.call(e,n):r}function B(t,e,n){var r=""+Math.abs(t),i=e-r.length;return(t>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var I=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,F=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,j={},L={};function Y(t,e,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),t&&(L[t]=i),e&&(L[e[0]]=function(){return B(i.apply(this,arguments),e[1],e[2])}),n&&(L[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),t)})}function z(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function U(t){var e,n,r=t.match(I);for(e=0,n=r.length;e<n;e++)L[r[e]]?r[e]=L[r[e]]:r[e]=z(r[e]);return function(e){var i,a="";for(i=0;i<n;i++)a+=A(r[i])?r[i].call(e,t):r[i];return a}}function H(t,e){return t.isValid()?(e=G(e,t.localeData()),j[e]=j[e]||U(e),j[e](t)):t.localeData().invalidDate()}function G(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 W={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 q(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.match(I).map((function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t})).join(""),this._longDateFormat[t])}var $="Invalid date";function K(){return this._invalidDate}var Z="%d",X=/\d{1,2}/;function J(t){return this._ordinal.replace("%d",t)}var Q={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function tt(t,e,n,r){var i=this._relativeTime[n];return 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={};function rt(t,e){var n=t.toLowerCase();nt[n]=nt[n+"s"]=nt[e]=t}function it(t){return"string"==typeof t?nt[t]||nt[t.toLowerCase()]:void 0}function at(t){var e,n,r={};for(n in t)l(t,n)&&(e=it(n))&&(r[e]=t[n]);return r}var ot={};function st(t,e){ot[t]=e}function lt(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}function ut(t){return t%4==0&&t%100!=0||t%400==0}function ct(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function ht(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=ct(e)),n}function dt(t,e){return function(n){return null!=n?(pt(this,t,n),r.updateOffset(this,e),this):ft(this,t)}}function ft(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function pt(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&ut(t.year())&&1===t.month()&&29===t.date()?(n=ht(n),t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),te(n,t.month()))):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function vt(t){return A(this[t=it(t)])?this[t]():this}function gt(t,e){if("object"==typeof t){var n,r=lt(t=at(t)),i=r.length;for(n=0;n<i;n++)this[r[n].unit](t[r[n].unit])}else if(A(this[t=it(t)]))return this[t](e);return this}var mt,yt=/\d/,bt=/\d\d/,_t=/\d{3}/,wt=/\d{4}/,Dt=/[+-]?\d{6}/,St=/\d\d?/,xt=/\d\d\d\d?/,Tt=/\d\d\d\d\d\d?/,kt=/\d{1,3}/,Ct=/\d{1,4}/,Et=/[+-]?\d{1,6}/,Ot=/\d+/,At=/[+-]?\d+/,Mt=/Z|[+-]\d\d:?\d\d/gi,Pt=/Z|[+-]\d\d(?::?\d\d)?/gi,Vt=/[+-]?\d+(\.\d{1,3})?/,Rt=/[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;function Nt(t,e,n){mt[t]=A(e)?e:function(t,r){return t&&n?n:e}}function Bt(t,e){return l(mt,t)?mt[t](e._strict,e._locale):new RegExp(It(t))}function It(t){return Ft(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,n,r,i){return e||n||r||i})))}function Ft(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}mt={};var jt={};function Lt(t,e){var n,r,i=e;for("string"==typeof t&&(t=[t]),h(e)&&(i=function(t,n){n[e]=ht(t)}),r=t.length,n=0;n<r;n++)jt[t[n]]=i}function Yt(t,e){Lt(t,(function(t,n,r,i){r._w=r._w||{},e(t,r._w,r,i)}))}function zt(t,e,n){null!=e&&l(jt,t)&&jt[t](e,n._a,n,t)}var Ut,Ht=0,Gt=1,Wt=2,qt=3,$t=4,Kt=5,Zt=6,Xt=7,Jt=8;function Qt(t,e){return(t%e+e)%e}function te(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=Qt(e,12);return t+=(e-n)/12,1===n?ut(t)?29:28:31-n%7%2}Ut=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},Y("M",["MM",2],"Mo",(function(){return this.month()+1})),Y("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),Y("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),rt("month","M"),st("month",8),Nt("M",St),Nt("MM",St,bt),Nt("MMM",(function(t,e){return e.monthsShortRegex(t)})),Nt("MMMM",(function(t,e){return e.monthsRegex(t)})),Lt(["M","MM"],(function(t,e){e[Gt]=ht(t)-1})),Lt(["MMM","MMMM"],(function(t,e,n,r){var i=n._locale.monthsParse(t,r,n._strict);null!=i?e[Gt]=i:m(n).invalidMonth=t}));var ee="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ne="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),re=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ie=Rt,ae=Rt;function oe(t,e){return t?a(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||re).test(e)?"format":"standalone"][t.month()]:a(this._months)?this._months:this._months.standalone}function se(t,e){return t?a(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[re.test(e)?"format":"standalone"][t.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function le(t,e,n){var r,i,a,o=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=v([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(i=Ut.call(this._shortMonthsParse,o))?i:null:-1!==(i=Ut.call(this._longMonthsParse,o))?i:null:"MMM"===e?-1!==(i=Ut.call(this._shortMonthsParse,o))||-1!==(i=Ut.call(this._longMonthsParse,o))?i:null:-1!==(i=Ut.call(this._longMonthsParse,o))||-1!==(i=Ut.call(this._shortMonthsParse,o))?i:null}function ue(t,e,n){var r,i,a;if(this._monthsParseExact)return le.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=v([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(a="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[r].test(t))return r;if(n&&"MMM"===e&&this._shortMonthsParse[r].test(t))return r;if(!n&&this._monthsParse[r].test(t))return r}}function ce(t,e){var n;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=ht(e);else if(!h(e=t.localeData().monthsParse(e)))return t;return n=Math.min(t.date(),te(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function he(t){return null!=t?(ce(this,t),r.updateOffset(this,!0),this):ft(this,"Month")}function de(){return te(this.year(),this.month())}function fe(t){return this._monthsParseExact?(l(this,"_monthsRegex")||ve.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=ie),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}function pe(t){return this._monthsParseExact?(l(this,"_monthsRegex")||ve.call(this),t?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=ae),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function ve(){function t(t,e){return e.length-t.length}var e,n,r=[],i=[],a=[];for(e=0;e<12;e++)n=v([2e3,e]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),a.push(this.months(n,"")),a.push(this.monthsShort(n,""));for(r.sort(t),i.sort(t),a.sort(t),e=0;e<12;e++)r[e]=Ft(r[e]),i[e]=Ft(i[e]);for(e=0;e<24;e++)a[e]=Ft(a[e]);this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function ge(t){return ut(t)?366:365}Y("Y",0,0,(function(){var t=this.year();return t<=9999?B(t,4):"+"+t})),Y(0,["YY",2],0,(function(){return this.year()%100})),Y(0,["YYYY",4],0,"year"),Y(0,["YYYYY",5],0,"year"),Y(0,["YYYYYY",6,!0],0,"year"),rt("year","y"),st("year",1),Nt("Y",At),Nt("YY",St,bt),Nt("YYYY",Ct,wt),Nt("YYYYY",Et,Dt),Nt("YYYYYY",Et,Dt),Lt(["YYYYY","YYYYYY"],Ht),Lt("YYYY",(function(t,e){e[Ht]=2===t.length?r.parseTwoDigitYear(t):ht(t)})),Lt("YY",(function(t,e){e[Ht]=r.parseTwoDigitYear(t)})),Lt("Y",(function(t,e){e[Ht]=parseInt(t,10)})),r.parseTwoDigitYear=function(t){return ht(t)+(ht(t)>68?1900:2e3)};var me=dt("FullYear",!0);function ye(){return ut(this.year())}function be(t,e,n,r,i,a,o){var s;return t<100&&t>=0?(s=new Date(t+400,e,n,r,i,a,o),isFinite(s.getFullYear())&&s.setFullYear(t)):s=new Date(t,e,n,r,i,a,o),s}function _e(t){var e,n;return t<100&&t>=0?((n=Array.prototype.slice.call(arguments))[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function we(t,e,n){var r=7+e-n;return-(7+_e(t,0,r).getUTCDay()-e)%7+r-1}function De(t,e,n,r,i){var a,o,s=1+7*(e-1)+(7+n-r)%7+we(t,r,i);return s<=0?o=ge(a=t-1)+s:s>ge(t)?(a=t+1,o=s-ge(t)):(a=t,o=s),{year:a,dayOfYear:o}}function Se(t,e,n){var r,i,a=we(t.year(),e,n),o=Math.floor((t.dayOfYear()-a-1)/7)+1;return o<1?r=o+xe(i=t.year()-1,e,n):o>xe(t.year(),e,n)?(r=o-xe(t.year(),e,n),i=t.year()+1):(i=t.year(),r=o),{week:r,year:i}}function xe(t,e,n){var r=we(t,e,n),i=we(t+1,e,n);return(ge(t)-r+i)/7}function Te(t){return Se(t,this._week.dow,this._week.doy).week}Y("w",["ww",2],"wo","week"),Y("W",["WW",2],"Wo","isoWeek"),rt("week","w"),rt("isoWeek","W"),st("week",5),st("isoWeek",5),Nt("w",St),Nt("ww",St,bt),Nt("W",St),Nt("WW",St,bt),Yt(["w","ww","W","WW"],(function(t,e,n,r){e[r.substr(0,1)]=ht(t)}));var ke={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 Pe(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function Ve(t,e){return t.slice(e,7).concat(t.slice(0,e))}Y("d",0,"do","day"),Y("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),Y("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),Y("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),Y("e",0,0,"weekday"),Y("E",0,0,"isoWeekday"),rt("day","d"),rt("weekday","e"),rt("isoWeekday","E"),st("day",11),st("weekday",11),st("isoWeekday",11),Nt("d",St),Nt("e",St),Nt("E",St),Nt("dd",(function(t,e){return e.weekdaysMinRegex(t)})),Nt("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),Nt("dddd",(function(t,e){return e.weekdaysRegex(t)})),Yt(["dd","ddd","dddd"],(function(t,e,n,r){var i=n._locale.weekdaysParse(t,r,n._strict);null!=i?e.d=i:m(n).invalidWeekday=t})),Yt(["d","e","E"],(function(t,e,n,r){e[r]=ht(t)}));var Re="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ne="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Be="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ie=Rt,Fe=Rt,je=Rt;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?Ve(n,this._week.dow):t?n[t.day()]:n}function Ye(t){return!0===t?Ve(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function ze(t){return!0===t?Ve(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function Ue(t,e,n){var r,i,a,o=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=v([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(i=Ut.call(this._weekdaysParse,o))?i:null:"ddd"===e?-1!==(i=Ut.call(this._shortWeekdaysParse,o))?i:null:-1!==(i=Ut.call(this._minWeekdaysParse,o))?i:null:"dddd"===e?-1!==(i=Ut.call(this._weekdaysParse,o))||-1!==(i=Ut.call(this._shortWeekdaysParse,o))||-1!==(i=Ut.call(this._minWeekdaysParse,o))?i:null:"ddd"===e?-1!==(i=Ut.call(this._shortWeekdaysParse,o))||-1!==(i=Ut.call(this._weekdaysParse,o))||-1!==(i=Ut.call(this._minWeekdaysParse,o))?i:null:-1!==(i=Ut.call(this._minWeekdaysParse,o))||-1!==(i=Ut.call(this._weekdaysParse,o))||-1!==(i=Ut.call(this._shortWeekdaysParse,o))?i:null}function He(t,e,n){var r,i,a;if(this._weekdaysParseExact)return Ue.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=v([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[r].test(t))return r;if(n&&"ddd"===e&&this._shortWeekdaysParse[r].test(t))return r;if(n&&"dd"===e&&this._minWeekdaysParse[r].test(t))return r;if(!n&&this._weekdaysParse[r].test(t))return r}}function Ge(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=Me(t,this.localeData()),this.add(t-e,"d")):e}function We(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 qe(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=Pe(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7}function $e(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Xe.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=Ie),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ke(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Xe.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Fe),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Ze(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Xe.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=je),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Xe(){function t(t,e){return e.length-t.length}var e,n,r,i,a,o=[],s=[],l=[],u=[];for(e=0;e<7;e++)n=v([2e3,1]).day(e),r=Ft(this.weekdaysMin(n,"")),i=Ft(this.weekdaysShort(n,"")),a=Ft(this.weekdays(n,"")),o.push(r),s.push(i),l.push(a),u.push(r),u.push(i),u.push(a);o.sort(t),s.sort(t),l.sort(t),u.sort(t),this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Je(){return this.hours()%12||12}function Qe(){return this.hours()||24}function tn(t,e){Y(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function en(t,e){return e._meridiemParse}function nn(t){return"p"===(t+"").toLowerCase().charAt(0)}Y("H",["HH",2],0,"hour"),Y("h",["hh",2],0,Je),Y("k",["kk",2],0,Qe),Y("hmm",0,0,(function(){return""+Je.apply(this)+B(this.minutes(),2)})),Y("hmmss",0,0,(function(){return""+Je.apply(this)+B(this.minutes(),2)+B(this.seconds(),2)})),Y("Hmm",0,0,(function(){return""+this.hours()+B(this.minutes(),2)})),Y("Hmmss",0,0,(function(){return""+this.hours()+B(this.minutes(),2)+B(this.seconds(),2)})),tn("a",!0),tn("A",!1),rt("hour","h"),st("hour",13),Nt("a",en),Nt("A",en),Nt("H",St),Nt("h",St),Nt("k",St),Nt("HH",St,bt),Nt("hh",St,bt),Nt("kk",St,bt),Nt("hmm",xt),Nt("hmmss",Tt),Nt("Hmm",xt),Nt("Hmmss",Tt),Lt(["H","HH"],qt),Lt(["k","kk"],(function(t,e,n){var r=ht(t);e[qt]=24===r?0:r})),Lt(["a","A"],(function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t})),Lt(["h","hh"],(function(t,e,n){e[qt]=ht(t),m(n).bigHour=!0})),Lt("hmm",(function(t,e,n){var r=t.length-2;e[qt]=ht(t.substr(0,r)),e[$t]=ht(t.substr(r)),m(n).bigHour=!0})),Lt("hmmss",(function(t,e,n){var r=t.length-4,i=t.length-2;e[qt]=ht(t.substr(0,r)),e[$t]=ht(t.substr(r,2)),e[Kt]=ht(t.substr(i)),m(n).bigHour=!0})),Lt("Hmm",(function(t,e,n){var r=t.length-2;e[qt]=ht(t.substr(0,r)),e[$t]=ht(t.substr(r))})),Lt("Hmmss",(function(t,e,n){var r=t.length-4,i=t.length-2;e[qt]=ht(t.substr(0,r)),e[$t]=ht(t.substr(r,2)),e[Kt]=ht(t.substr(i))}));var rn=/[ap]\.?m?\.?/i,an=dt("Hours",!0);function on(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}var sn,ln={calendar:R,longDateFormat:W,invalidDate:$,ordinal:Z,dayOfMonthOrdinalParse:X,relativeTime:Q,months:ee,monthsShort:ne,week:ke,weekdays:Re,weekdaysMin:Be,weekdaysShort:Ne,meridiemParse:rn},un={},cn={};function hn(t,e){var n,r=Math.min(t.length,e.length);for(n=0;n<r;n+=1)if(t[n]!==e[n])return n;return r}function dn(t){return t?t.toLowerCase().replace("_","-"):t}function fn(t){for(var e,n,r,i,a=0;a<t.length;){for(e=(i=dn(t[a]).split("-")).length,n=(n=dn(t[a+1]))?n.split("-"):null;e>0;){if(r=vn(i.slice(0,e).join("-")))return r;if(n&&n.length>=e&&hn(i,n)>=e-1)break;e--}a++}return sn}function pn(t){return null!=t.match("^[^/\\\\]*$")}function vn(e){var n=null;if(void 0===un[e]&&t&&t.exports&&pn(e))try{n=sn._abbr,s(),gn(n)}catch(t){un[e]=null}return un[e]}function gn(t,e){var n;return t&&((n=c(e)?bn(t):mn(t,e))?sn=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),sn._abbr}function mn(t,e){if(null!==e){var n,r=ln;if(e.abbr=t,null!=un[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=un[t]._config;else if(null!=e.parentLocale)if(null!=un[e.parentLocale])r=un[e.parentLocale]._config;else{if(null==(n=vn(e.parentLocale)))return cn[e.parentLocale]||(cn[e.parentLocale]=[]),cn[e.parentLocale].push({name:t,config:e}),null;r=n._config}return un[t]=new V(P(r,e)),cn[t]&&cn[t].forEach((function(t){mn(t.name,t.config)})),gn(t),un[t]}return delete un[t],null}function yn(t,e){if(null!=e){var n,r,i=ln;null!=un[t]&&null!=un[t].parentLocale?un[t].set(P(un[t]._config,e)):(null!=(r=vn(t))&&(i=r._config),e=P(i,e),null==r&&(e.abbr=t),(n=new V(e)).parentLocale=un[t],un[t]=n),gn(t)}else null!=un[t]&&(null!=un[t].parentLocale?(un[t]=un[t].parentLocale,t===gn()&&gn(t)):null!=un[t]&&delete un[t]);return un[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=vn(t))return e;t=[t]}return fn(t)}function _n(){return C(un)}function wn(t){var e,n=t._a;return n&&-2===m(t).overflow&&(e=n[Gt]<0||n[Gt]>11?Gt:n[Wt]<1||n[Wt]>te(n[Ht],n[Gt])?Wt:n[qt]<0||n[qt]>24||24===n[qt]&&(0!==n[$t]||0!==n[Kt]||0!==n[Zt])?qt:n[$t]<0||n[$t]>59?$t:n[Kt]<0||n[Kt]>59?Kt:n[Zt]<0||n[Zt]>999?Zt:-1,m(t)._overflowDayOfYear&&(e<Ht||e>Wt)&&(e=Wt),m(t)._overflowWeeks&&-1===e&&(e=Xt),m(t)._overflowWeekday&&-1===e&&(e=Jt),m(t).overflow=e),t}var Dn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Sn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,xn=/Z|[+-]\d\d(?::?\d\d)?/,Tn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],kn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Cn=/^\/?Date\((-?\d+)/i,En=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,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,a,o,s=t._i,l=Dn.exec(s)||Sn.exec(s),u=Tn.length,c=kn.length;if(l){for(m(t).iso=!0,e=0,n=u;e<n;e++)if(Tn[e][1].exec(l[1])){i=Tn[e][0],r=!1!==Tn[e][2];break}if(null==i)return void(t._isValid=!1);if(l[3]){for(e=0,n=c;e<n;e++)if(kn[e][1].exec(l[3])){a=(l[2]||" ")+kn[e][0];break}if(null==a)return void(t._isValid=!1)}if(!r&&null!=a)return void(t._isValid=!1);if(l[4]){if(!xn.exec(l[4]))return void(t._isValid=!1);o="Z"}t._f=i+(a||"")+(o||""),zn(t)}else t._isValid=!1}function Mn(t,e,n,r,i,a){var o=[Pn(t),ne.indexOf(e),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return a&&o.push(parseInt(a,10)),o}function Pn(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function Vn(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Rn(t,e,n){return!t||Ne.indexOf(t)===new Date(e[0],e[1],e[2]).getDay()||(m(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Nn(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 Bn(t){var e,n=En.exec(Vn(t._i));if(n){if(e=Mn(n[4],n[3],n[2],n[5],n[6],n[7]),!Rn(n[1],e,t))return;t._a=e,t._tzm=Nn(n[8],n[9],n[10]),t._d=_e.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),m(t).rfc2822=!0}else t._isValid=!1}function In(t){var e=Cn.exec(t._i);null===e?(An(t),!1===t._isValid&&(delete t._isValid,Bn(t),!1===t._isValid&&(delete t._isValid,t._strict?t._isValid=!1:r.createFromInputFallback(t)))):t._d=new Date(+e[1])}function Fn(t,e,n){return null!=t?t:null!=e?e:n}function jn(t){var e=new Date(r.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function Ln(t){var e,n,r,i,a,o=[];if(!t._d){for(r=jn(t),t._w&&null==t._a[Wt]&&null==t._a[Gt]&&Yn(t),null!=t._dayOfYear&&(a=Fn(t._a[Ht],r[Ht]),(t._dayOfYear>ge(a)||0===t._dayOfYear)&&(m(t)._overflowDayOfYear=!0),n=_e(a,0,t._dayOfYear),t._a[Gt]=n.getUTCMonth(),t._a[Wt]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=o[e]=r[e];for(;e<7;e++)t._a[e]=o[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[qt]&&0===t._a[$t]&&0===t._a[Kt]&&0===t._a[Zt]&&(t._nextDay=!0,t._a[qt]=0),t._d=(t._useUTC?_e:be).apply(null,o),i=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[qt]=24),t._w&&void 0!==t._w.d&&t._w.d!==i&&(m(t).weekdayMismatch=!0)}}function Yn(t){var e,n,r,i,a,o,s,l,u;null!=(e=t._w).GG||null!=e.W||null!=e.E?(a=1,o=4,n=Fn(e.GG,t._a[Ht],Se(Zn(),1,4).year),r=Fn(e.W,1),((i=Fn(e.E,1))<1||i>7)&&(l=!0)):(a=t._locale._week.dow,o=t._locale._week.doy,u=Se(Zn(),a,o),n=Fn(e.gg,t._a[Ht],u.year),r=Fn(e.w,u.week),null!=e.d?((i=e.d)<0||i>6)&&(l=!0):null!=e.e?(i=e.e+a,(e.e<0||e.e>6)&&(l=!0)):i=a),r<1||r>xe(n,a,o)?m(t)._overflowWeeks=!0:null!=l?m(t)._overflowWeekday=!0:(s=De(n,r,i,a,o),t._a[Ht]=s.year,t._dayOfYear=s.dayOfYear)}function zn(t){if(t._f!==r.ISO_8601)if(t._f!==r.RFC_2822){t._a=[],m(t).empty=!0;var e,n,i,a,o,s,l,u=""+t._i,c=u.length,h=0;for(l=(i=G(t._f,t._locale).match(I)||[]).length,e=0;e<l;e++)a=i[e],(n=(u.match(Bt(a,t))||[])[0])&&((o=u.substr(0,u.indexOf(n))).length>0&&m(t).unusedInput.push(o),u=u.slice(u.indexOf(n)+n.length),h+=n.length),L[a]?(n?m(t).empty=!1:m(t).unusedTokens.push(a),zt(a,n,t)):t._strict&&!n&&m(t).unusedTokens.push(a);m(t).charsLeftOver=c-h,u.length>0&&m(t).unusedInput.push(u),t._a[qt]<=12&&!0===m(t).bigHour&&t._a[qt]>0&&(m(t).bigHour=void 0),m(t).parsedDateParts=t._a.slice(0),m(t).meridiem=t._meridiem,t._a[qt]=Un(t._locale,t._a[qt],t._meridiem),null!==(s=m(t).era)&&(t._a[Ht]=t._locale.erasConvertYear(s,t._a[Ht])),Ln(t),wn(t)}else Bn(t);else An(t)}function Un(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 Hn(t){var e,n,r,i,a,o,s=!1,l=t._f.length;if(0===l)return m(t).invalidFormat=!0,void(t._d=new Date(NaN));for(i=0;i<l;i++)a=0,o=!1,e=D({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[i],zn(e),y(e)&&(o=!0),a+=m(e).charsLeftOver,a+=10*m(e).unusedTokens.length,m(e).score=a,s?a<r&&(r=a,n=e):(null==r||a<r||o)&&(r=a,n=e,o&&(s=!0));p(t,n||e)}function Gn(t){if(!t._d){var e=at(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 Wn(t){var e=new S(wn(qn(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function qn(t){var e=t._i,n=t._f;return t._locale=t._locale||bn(t._l),null===e||void 0===n&&""===e?b({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),x(e)?new S(wn(e)):(d(e)?t._d=e:a(n)?Hn(t):n?zn(t):$n(t),y(t)||(t._d=null),t))}function $n(t){var e=t._i;c(e)?t._d=new Date(r.now()):d(e)?t._d=new Date(e.valueOf()):"string"==typeof e?In(t):a(e)?(t._a=f(e.slice(0),(function(t){return parseInt(t,10)})),Ln(t)):o(e)?Gn(t):h(e)?t._d=new Date(e):r.createFromInputFallback(t)}function Kn(t,e,n,r,i){var s={};return!0!==e&&!1!==e||(r=e,e=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(o(t)&&u(t)||a(t)&&0===t.length)&&(t=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=i,s._l=n,s._i=t,s._f=e,s._strict=r,Wn(s)}function Zn(t,e,n,r){return Kn(t,e,n,r,!1)}r.createFromInputFallback=k("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))})),r.ISO_8601=function(){},r.RFC_2822=function(){};var Xn=k("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Zn.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:b()})),Jn=k("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Zn.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:b()}));function Qn(t,e){var n,r;if(1===e.length&&a(e[0])&&(e=e[0]),!e.length)return Zn();for(n=e[0],r=1;r<e.length;++r)e[r].isValid()&&!e[r][t](n)||(n=e[r]);return n}function tr(){return Qn("isBefore",[].slice.call(arguments,0))}function er(){return Qn("isAfter",[].slice.call(arguments,0))}var nr=function(){return Date.now?Date.now():+new Date},rr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ir(t){var e,n,r=!1,i=rr.length;for(e in t)if(l(t,e)&&(-1===Ut.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]])!==ht(t[rr[n]])&&(r=!0)}return!0}function ar(){return this._isValid}function or(){return Or(NaN)}function sr(t){var e=at(t),n=e.year||0,r=e.quarter||0,i=e.month||0,a=e.week||e.isoWeek||0,o=e.day||0,s=e.hour||0,l=e.minute||0,u=e.second||0,c=e.millisecond||0;this._isValid=ir(e),this._milliseconds=+c+1e3*u+6e4*l+1e3*s*60*60,this._days=+o+7*a,this._months=+i+3*r+12*n,this._data={},this._locale=bn(),this._bubble()}function lr(t){return t instanceof sr}function ur(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function cr(t,e,n){var r,i=Math.min(t.length,e.length),a=Math.abs(t.length-e.length),o=0;for(r=0;r<i;r++)(n&&t[r]!==e[r]||!n&&ht(t[r])!==ht(e[r]))&&o++;return o+a}function hr(t,e){Y(t,0,0,(function(){var t=this.utcOffset(),n="+";return t<0&&(t=-t,n="-"),n+B(~~(t/60),2)+e+B(~~t%60,2)}))}hr("Z",":"),hr("ZZ",""),Nt("Z",Pt),Nt("ZZ",Pt),Lt(["Z","ZZ"],(function(t,e,n){n._useUTC=!0,n._tzm=fr(Pt,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]+ht(n[2]))?0:"+"===n[0]?r:-r}function pr(t,e){var n,i;return e._isUTC?(n=e.clone(),i=(x(t)||d(t)?t.valueOf():Zn(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),r.updateOffset(n,!1),n):Zn(t).local()}function vr(t){return-Math.round(t._d.getTimezoneOffset())}function gr(t,e,n){var i,a=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=fr(Pt,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(i=vr(this)),this._offset=t,this._isUTC=!0,null!=i&&this.add(i,"m"),a!==t&&(!e||this._changeInProgress?Rr(this,Or(t-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:vr(this)}function mr(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(vr(this),"m")),this}function _r(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=fr(Mt,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this}function wr(t){return!!this.isValid()&&(t=t?Zn(t).utcOffset():0,(this.utcOffset()-t)%60==0)}function Dr(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Sr(){if(!c(this._isDSTShifted))return this._isDSTShifted;var t,e={};return D(e,this),(e=qn(e))._a?(t=e._isUTC?v(e._a):Zn(e._a),this._isDSTShifted=this.isValid()&&cr(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function xr(){return!!this.isValid()&&!this._isUTC}function Tr(){return!!this.isValid()&&this._isUTC}function kr(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var Cr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Er=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Or(t,e){var n,r,i,a=t,o=null;return lr(t)?a={ms:t._milliseconds,d:t._days,M:t._months}:h(t)||!isNaN(+t)?(a={},e?a[e]=+t:a.milliseconds=+t):(o=Cr.exec(t))?(n="-"===o[1]?-1:1,a={y:0,d:ht(o[Wt])*n,h:ht(o[qt])*n,m:ht(o[$t])*n,s:ht(o[Kt])*n,ms:ht(ur(1e3*o[Zt]))*n}):(o=Er.exec(t))?(n="-"===o[1]?-1:1,a={y:Ar(o[2],n),M:Ar(o[3],n),w:Ar(o[4],n),d:Ar(o[5],n),h:Ar(o[6],n),m:Ar(o[7],n),s:Ar(o[8],n)}):null==a?a={}:"object"==typeof a&&("from"in a||"to"in a)&&(i=Pr(Zn(a.from),Zn(a.to)),(a={}).ms=i.milliseconds,a.M=i.months),r=new sr(a),lr(t)&&l(t,"_locale")&&(r._locale=t._locale),lr(t)&&l(t,"_isValid")&&(r._isValid=t._isValid),r}function 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 Pr(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 Vr(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),Rr(this,Or(n,r),t),this}}function Rr(t,e,n,i){var a=e._milliseconds,o=ur(e._days),s=ur(e._months);t.isValid()&&(i=null==i||i,s&&ce(t,ft(t,"Month")+s*n),o&&pt(t,"Date",ft(t,"Date")+o*n),a&&t._d.setTime(t._d.valueOf()+a*n),i&&r.updateOffset(t,o||s))}Or.fn=sr.prototype,Or.invalid=or;var Nr=Vr(1,"add"),Br=Vr(-1,"subtract");function Ir(t){return"string"==typeof t||t instanceof String}function Fr(t){return x(t)||d(t)||Ir(t)||h(t)||Lr(t)||jr(t)||null==t}function jr(t){var e,n,r=o(t)&&!u(t),i=!1,a=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s=a.length;for(e=0;e<s;e+=1)n=a[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)&&Ir(t)})).length),e&&n}function Yr(t){var e,n,r=o(t)&&!u(t),i=!1,a=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(e=0;e<a.length;e+=1)n=a[e],i=i||l(t,n);return r&&i}function zr(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Ur(t,e){1===arguments.length&&(arguments[0]?Fr(arguments[0])?(t=arguments[0],e=void 0):Yr(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var n=t||Zn(),i=pr(n,this).startOf("day"),a=r.calendarFormat(this,i)||"sameElse",o=e&&(A(e[a])?e[a].call(this,n):e[a]);return this.format(o||this.localeData().calendar(a,this,Zn(n)))}function Hr(){return new S(this)}function Gr(t,e){var n=x(t)?t:Zn(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=it(e)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf())}function Wr(t,e){var n=x(t)?t:Zn(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=it(e)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf())}function qr(t,e,n,r){var i=x(t)?t:Zn(t),a=x(e)?e:Zn(e);return!!(this.isValid()&&i.isValid()&&a.isValid())&&("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(a,n):!this.isAfter(a,n))}function $r(t,e){var n,r=x(t)?t:Zn(t);return!(!this.isValid()||!r.isValid())&&("millisecond"===(e=it(e)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf()))}function Kr(t,e){return this.isSame(t,e)||this.isAfter(t,e)}function Zr(t,e){return this.isSame(t,e)||this.isBefore(t,e)}function Xr(t,e,n){var r,i,a;if(!this.isValid())return NaN;if(!(r=pr(t,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),e=it(e)){case"year":a=Jr(this,r)/12;break;case"month":a=Jr(this,r);break;case"quarter":a=Jr(this,r)/3;break;case"second":a=(this-r)/1e3;break;case"minute":a=(this-r)/6e4;break;case"hour":a=(this-r)/36e5;break;case"day":a=(this-r-i)/864e5;break;case"week":a=(this-r-i)/6048e5;break;default:a=this-r}return n?a:ct(a)}function Jr(t,e){if(t.date()<e.date())return-Jr(e,t);var n=12*(e.year()-t.year())+(e.month()-t.month()),r=t.clone().add(n,"months");return-(n+(e-r<0?(e-r)/(r-t.clone().add(n-1,"months")):(e-r)/(t.clone().add(n+1,"months")-r)))||0}function Qr(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ti(t){if(!this.isValid())return null;var e=!0!==t,n=e?this.clone().utc():this;return n.year()<0||n.year()>9999?H(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",H(n,"Z")):H(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ei(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,e,n,r,i="moment",a="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",a="Z"),t="["+i+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=a+'[")]',this.format(t+e+n+r)}function ni(t){t||(t=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var e=H(this,t);return this.localeData().postformat(e)}function ri(t,e){return this.isValid()&&(x(t)&&t.isValid()||Zn(t).isValid())?Or({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function ii(t){return this.from(Zn(),t)}function ai(t,e){return this.isValid()&&(x(t)&&t.isValid()||Zn(t).isValid())?Or({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function oi(t){return this.to(Zn(),t)}function si(t){var e;return void 0===t?this._locale._abbr:(null!=(e=bn(t))&&(this._locale=e),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var li=k("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(t){return void 0===t?this.localeData():this.locale(t)}));function ui(){return this._locale}var ci=1e3,hi=60*ci,di=60*hi,fi=3506328*di;function pi(t,e){return(t%e+e)%e}function vi(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 mi(t){var e,n;if(void 0===(t=it(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?gi:vi,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,ci)}return this._d.setTime(e),r.updateOffset(this,!0),this}function yi(t){var e,n;if(void 0===(t=it(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?gi:vi,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+=ci-pi(e,ci)-1}return this._d.setTime(e),r.updateOffset(this,!0),this}function bi(){return this._d.valueOf()-6e4*(this._offset||0)}function _i(){return Math.floor(this.valueOf()/1e3)}function wi(){return new Date(this.valueOf())}function Di(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function Si(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function xi(){return this.isValid()?this.toISOString():null}function Ti(){return y(this)}function ki(){return p({},m(this))}function Ci(){return m(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,a,o=this._eras||bn("en")._eras;for(n=0,i=o.length;n<i;++n)switch("string"==typeof o[n].since&&(a=r(o[n].since).startOf("day"),o[n].since=a.valueOf()),typeof o[n].until){case"undefined":o[n].until=1/0;break;case"string":a=r(o[n].until).startOf("day").valueOf(),o[n].until=a.valueOf()}return o}function Ai(t,e,n){var r,i,a,o,s,l=this.eras();for(t=t.toUpperCase(),r=0,i=l.length;r<i;++r)if(a=l[r].name.toUpperCase(),o=l[r].abbr.toUpperCase(),s=l[r].narrow.toUpperCase(),n)switch(e){case"N":case"NN":case"NNN":if(o===t)return l[r];break;case"NNNN":if(a===t)return l[r];break;case"NNNNN":if(s===t)return l[r]}else if([a,o,s].indexOf(t)>=0)return l[r]}function Mi(t,e){var n=t.since<=t.until?1:-1;return void 0===e?r(t.since).year():r(t.since).year()+(e-t.offset)*n}function 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].name;if(r[t].until<=n&&n<=r[t].since)return r[t].name}return""}function Vi(){var t,e,n,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t){if(n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until)return r[t].narrow;if(r[t].until<=n&&n<=r[t].since)return r[t].narrow}return""}function Ri(){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 Ni(){var t,e,n,i,a=this.localeData().eras();for(t=0,e=a.length;t<e;++t)if(n=a[t].since<=a[t].until?1:-1,i=this.clone().startOf("day").valueOf(),a[t].since<=i&&i<=a[t].until||a[t].until<=i&&i<=a[t].since)return(this.year()-r(a[t].since).year())*n+a[t].offset;return this.year()}function Bi(t){return l(this,"_erasNameRegex")||Ui.call(this),t?this._erasNameRegex:this._erasRegex}function Ii(t){return l(this,"_erasAbbrRegex")||Ui.call(this),t?this._erasAbbrRegex:this._erasRegex}function Fi(t){return l(this,"_erasNarrowRegex")||Ui.call(this),t?this._erasNarrowRegex:this._erasRegex}function ji(t,e){return e.erasAbbrRegex(t)}function Li(t,e){return e.erasNameRegex(t)}function Yi(t,e){return e.erasNarrowRegex(t)}function zi(t,e){return e._eraYearOrdinalRegex||Ot}function Ui(){var t,e,n=[],r=[],i=[],a=[],o=this.eras();for(t=0,e=o.length;t<e;++t)r.push(Ft(o[t].name)),n.push(Ft(o[t].abbr)),i.push(Ft(o[t].narrow)),a.push(Ft(o[t].name)),a.push(Ft(o[t].abbr)),a.push(Ft(o[t].narrow));this._erasRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+i.join("|")+")","i")}function Hi(t,e){Y(0,[t,t.length],0,e)}function Gi(t){return Xi.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Wi(t){return Xi.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function qi(){return xe(this.year(),1,4)}function $i(){return xe(this.isoWeekYear(),1,4)}function Ki(){var t=this.localeData()._week;return xe(this.year(),t.dow,t.doy)}function Zi(){var t=this.localeData()._week;return xe(this.weekYear(),t.dow,t.doy)}function Xi(t,e,n,r,i){var a;return null==t?Se(this,r,i).year:(e>(a=xe(t,r,i))&&(e=a),Ji.call(this,t,e,n,r,i))}function Ji(t,e,n,r,i){var a=De(t,e,n,r,i),o=_e(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}function Qi(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}Y("N",0,0,"eraAbbr"),Y("NN",0,0,"eraAbbr"),Y("NNN",0,0,"eraAbbr"),Y("NNNN",0,0,"eraName"),Y("NNNNN",0,0,"eraNarrow"),Y("y",["y",1],"yo","eraYear"),Y("y",["yy",2],0,"eraYear"),Y("y",["yyy",3],0,"eraYear"),Y("y",["yyyy",4],0,"eraYear"),Nt("N",ji),Nt("NN",ji),Nt("NNN",ji),Nt("NNNN",Li),Nt("NNNNN",Yi),Lt(["N","NN","NNN","NNNN","NNNNN"],(function(t,e,n,r){var i=n._locale.erasParse(t,r,n._strict);i?m(n).era=i:m(n).invalidEra=t})),Nt("y",Ot),Nt("yy",Ot),Nt("yyy",Ot),Nt("yyyy",Ot),Nt("yo",zi),Lt(["y","yy","yyy","yyyy"],Ht),Lt(["yo"],(function(t,e,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=t.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?e[Ht]=n._locale.eraYearOrdinalParse(t,i):e[Ht]=parseInt(t,10)})),Y(0,["gg",2],0,(function(){return this.weekYear()%100})),Y(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Hi("gggg","weekYear"),Hi("ggggg","weekYear"),Hi("GGGG","isoWeekYear"),Hi("GGGGG","isoWeekYear"),rt("weekYear","gg"),rt("isoWeekYear","GG"),st("weekYear",1),st("isoWeekYear",1),Nt("G",At),Nt("g",At),Nt("GG",St,bt),Nt("gg",St,bt),Nt("GGGG",Ct,wt),Nt("gggg",Ct,wt),Nt("GGGGG",Et,Dt),Nt("ggggg",Et,Dt),Yt(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,n,r){e[r.substr(0,2)]=ht(t)})),Yt(["gg","GG"],(function(t,e,n,i){e[i]=r.parseTwoDigitYear(t)})),Y("Q",0,"Qo","quarter"),rt("quarter","Q"),st("quarter",7),Nt("Q",yt),Lt("Q",(function(t,e){e[Gt]=3*(ht(t)-1)})),Y("D",["DD",2],"Do","date"),rt("date","D"),st("date",9),Nt("D",St),Nt("DD",St,bt),Nt("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),Lt(["D","DD"],Wt),Lt("Do",(function(t,e){e[Wt]=ht(t.match(St)[0])}));var ta=dt("Date",!0);function ea(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")}Y("DDD",["DDDD",3],"DDDo","dayOfYear"),rt("dayOfYear","DDD"),st("dayOfYear",4),Nt("DDD",kt),Nt("DDDD",_t),Lt(["DDD","DDDD"],(function(t,e,n){n._dayOfYear=ht(t)})),Y("m",["mm",2],0,"minute"),rt("minute","m"),st("minute",14),Nt("m",St),Nt("mm",St,bt),Lt(["m","mm"],$t);var na=dt("Minutes",!1);Y("s",["ss",2],0,"second"),rt("second","s"),st("second",15),Nt("s",St),Nt("ss",St,bt),Lt(["s","ss"],Kt);var ra,ia,aa=dt("Seconds",!1);for(Y("S",0,0,(function(){return~~(this.millisecond()/100)})),Y(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),Y(0,["SSS",3],0,"millisecond"),Y(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),Y(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),Y(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),Y(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),Y(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),Y(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),rt("millisecond","ms"),st("millisecond",16),Nt("S",kt,yt),Nt("SS",kt,bt),Nt("SSS",kt,_t),ra="SSSS";ra.length<=9;ra+="S")Nt(ra,Ot);function oa(t,e){e[Zt]=ht(1e3*("0."+t))}for(ra="S";ra.length<=9;ra+="S")Lt(ra,oa);function sa(){return this._isUTC?"UTC":""}function la(){return this._isUTC?"Coordinated Universal Time":""}ia=dt("Milliseconds",!1),Y("z",0,0,"zoneAbbr"),Y("zz",0,0,"zoneName");var ua=S.prototype;function ca(t){return Zn(1e3*t)}function ha(){return Zn.apply(null,arguments).parseZone()}function da(t){return t}ua.add=Nr,ua.calendar=Ur,ua.clone=Hr,ua.diff=Xr,ua.endOf=yi,ua.format=ni,ua.from=ri,ua.fromNow=ii,ua.to=ai,ua.toNow=oi,ua.get=vt,ua.invalidAt=Ci,ua.isAfter=Gr,ua.isBefore=Wr,ua.isBetween=qr,ua.isSame=$r,ua.isSameOrAfter=Kr,ua.isSameOrBefore=Zr,ua.isValid=Ti,ua.lang=li,ua.locale=si,ua.localeData=ui,ua.max=Jn,ua.min=Xn,ua.parsingFlags=ki,ua.set=gt,ua.startOf=mi,ua.subtract=Br,ua.toArray=Di,ua.toObject=Si,ua.toDate=wi,ua.toISOString=ti,ua.inspect=ei,"undefined"!=typeof Symbol&&null!=Symbol.for&&(ua[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ua.toJSON=xi,ua.toString=Qr,ua.unix=_i,ua.valueOf=bi,ua.creationData=Ei,ua.eraName=Pi,ua.eraNarrow=Vi,ua.eraAbbr=Ri,ua.eraYear=Ni,ua.year=me,ua.isLeapYear=ye,ua.weekYear=Gi,ua.isoWeekYear=Wi,ua.quarter=ua.quarters=Qi,ua.month=he,ua.daysInMonth=de,ua.week=ua.weeks=Oe,ua.isoWeek=ua.isoWeeks=Ae,ua.weeksInYear=Ki,ua.weeksInWeekYear=Zi,ua.isoWeeksInYear=qi,ua.isoWeeksInISOWeekYear=$i,ua.date=ta,ua.day=ua.days=Ge,ua.weekday=We,ua.isoWeekday=qe,ua.dayOfYear=ea,ua.hour=ua.hours=an,ua.minute=ua.minutes=na,ua.second=ua.seconds=aa,ua.millisecond=ua.milliseconds=ia,ua.utcOffset=gr,ua.utc=yr,ua.local=br,ua.parseZone=_r,ua.hasAlignedHourOffset=wr,ua.isDST=Dr,ua.isLocal=xr,ua.isUtcOffset=Tr,ua.isUtc=kr,ua.isUTC=kr,ua.zoneAbbr=sa,ua.zoneName=la,ua.dates=k("dates accessor is deprecated. Use date instead.",ta),ua.months=k("months accessor is deprecated. Use month instead",he),ua.years=k("years accessor is deprecated. Use year instead",me),ua.zone=k("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",mr),ua.isDSTShifted=k("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Sr);var fa=V.prototype;function pa(t,e,n,r){var i=bn(),a=v().set(r,e);return i[n](a,t)}function va(t,e,n){if(h(t)&&(e=t,t=void 0),t=t||"",null!=e)return pa(t,e,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=pa(t,r,n,"month");return i}function ga(t,e,n,r){"boolean"==typeof t?(h(e)&&(n=e,e=void 0),e=e||""):(n=e=t,t=!1,h(e)&&(n=e,e=void 0),e=e||"");var i,a=bn(),o=t?a._week.dow:0,s=[];if(null!=n)return pa(e,(n+o)%7,r,"day");for(i=0;i<7;i++)s[i]=pa(e,(i+o)%7,r,"day");return s}function ma(t,e){return va(t,e,"months")}function ya(t,e){return va(t,e,"monthsShort")}function ba(t,e,n){return ga(t,e,n,"weekdays")}function _a(t,e,n){return ga(t,e,n,"weekdaysShort")}function wa(t,e,n){return ga(t,e,n,"weekdaysMin")}fa.calendar=N,fa.longDateFormat=q,fa.invalidDate=K,fa.ordinal=J,fa.preparse=da,fa.postformat=da,fa.relativeTime=tt,fa.pastFuture=et,fa.set=M,fa.eras=Oi,fa.erasParse=Ai,fa.erasConvertYear=Mi,fa.erasAbbrRegex=Ii,fa.erasNameRegex=Bi,fa.erasNarrowRegex=Fi,fa.months=oe,fa.monthsShort=se,fa.monthsParse=ue,fa.monthsRegex=pe,fa.monthsShortRegex=fe,fa.week=Te,fa.firstDayOfYear=Ee,fa.firstDayOfWeek=Ce,fa.weekdays=Le,fa.weekdaysMin=ze,fa.weekdaysShort=Ye,fa.weekdaysParse=He,fa.weekdaysRegex=$e,fa.weekdaysShortRegex=Ke,fa.weekdaysMinRegex=Ze,fa.isPM=nn,fa.meridiem=on,gn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===ht(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),r.lang=k("moment.lang is deprecated. Use moment.locale instead.",gn),r.langData=k("moment.langData is deprecated. Use moment.localeData instead.",bn);var Da=Math.abs;function Sa(){var t=this._data;return this._milliseconds=Da(this._milliseconds),this._days=Da(this._days),this._months=Da(this._months),t.milliseconds=Da(t.milliseconds),t.seconds=Da(t.seconds),t.minutes=Da(t.minutes),t.hours=Da(t.hours),t.months=Da(t.months),t.years=Da(t.years),this}function xa(t,e,n,r){var i=Or(e,n);return t._milliseconds+=r*i._milliseconds,t._days+=r*i._days,t._months+=r*i._months,t._bubble()}function Ta(t,e){return xa(this,t,e,1)}function ka(t,e){return xa(this,t,e,-1)}function Ca(t){return t<0?Math.floor(t):Math.ceil(t)}function Ea(){var t,e,n,r,i,a=this._milliseconds,o=this._days,s=this._months,l=this._data;return a>=0&&o>=0&&s>=0||a<=0&&o<=0&&s<=0||(a+=864e5*Ca(Aa(s)+o),o=0,s=0),l.milliseconds=a%1e3,t=ct(a/1e3),l.seconds=t%60,e=ct(t/60),l.minutes=e%60,n=ct(e/60),l.hours=n%24,o+=ct(n/24),s+=i=ct(Oa(o)),o-=Ca(Aa(i)),r=ct(s/12),s%=12,l.days=o,l.months=s,l.years=r,this}function Oa(t){return 4800*t/146097}function Aa(t){return 146097*t/4800}function Ma(t){if(!this.isValid())return NaN;var e,n,r=this._milliseconds;if("month"===(t=it(t))||"quarter"===t||"year"===t)switch(e=this._days+r/864e5,n=this._months+Oa(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(Aa(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 Pa(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*ht(this._months/12):NaN}function Va(t){return function(){return this.as(t)}}var Ra=Va("ms"),Na=Va("s"),Ba=Va("m"),Ia=Va("h"),Fa=Va("d"),ja=Va("w"),La=Va("M"),Ya=Va("Q"),za=Va("y");function Ua(){return Or(this)}function Ha(t){return t=it(t),this.isValid()?this[t+"s"]():NaN}function Ga(t){return function(){return this.isValid()?this._data[t]:NaN}}var Wa=Ga("milliseconds"),qa=Ga("seconds"),$a=Ga("minutes"),Ka=Ga("hours"),Za=Ga("days"),Xa=Ga("months"),Ja=Ga("years");function Qa(){return ct(this.days()/7)}var to=Math.round,eo={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function no(t,e,n,r,i){return i.relativeTime(e||1,!!n,t,r)}function ro(t,e,n,r){var i=Or(t).abs(),a=to(i.as("s")),o=to(i.as("m")),s=to(i.as("h")),l=to(i.as("d")),u=to(i.as("M")),c=to(i.as("w")),h=to(i.as("y")),d=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||o<=1&&["m"]||o<n.m&&["mm",o]||s<=1&&["h"]||s<n.h&&["hh",s]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(d=d||c<=1&&["w"]||c<n.w&&["ww",c]),(d=d||u<=1&&["M"]||u<n.M&&["MM",u]||h<=1&&["y"]||["yy",h])[2]=e,d[3]=+t>0,d[4]=r,no.apply(null,d)}function io(t){return void 0===t?to:"function"==typeof t&&(to=t,!0)}function ao(t,e){return void 0!==eo[t]&&(void 0===e?eo[t]:(eo[t]=e,"s"===t&&(eo.ss=e-1),!0))}function oo(t,e){if(!this.isValid())return this.localeData().invalidDate();var n,r,i=!1,a=eo;return"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(i=t),"object"==typeof e&&(a=Object.assign({},eo,e),null!=e.s&&null==e.ss&&(a.ss=e.s-1)),r=ro(this,!i,a,n=this.localeData()),i&&(r=n.pastFuture(+this,r)),n.postformat(r)}var so=Math.abs;function lo(t){return(t>0)-(t<0)||+t}function uo(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n,r,i,a,o,s,l=so(this._milliseconds)/1e3,u=so(this._days),c=so(this._months),h=this.asSeconds();return h?(t=ct(l/60),e=ct(t/60),l%=60,t%=60,n=ct(c/12),c%=12,r=l?l.toFixed(3).replace(/\.?0+$/,""):"",i=h<0?"-":"",a=lo(this._months)!==lo(h)?"-":"",o=lo(this._days)!==lo(h)?"-":"",s=lo(this._milliseconds)!==lo(h)?"-":"",i+"P"+(n?a+n+"Y":"")+(c?a+c+"M":"")+(u?o+u+"D":"")+(e||t||l?"T":"")+(e?s+e+"H":"")+(t?s+t+"M":"")+(l?s+r+"S":"")):"P0D"}var co=sr.prototype;return co.isValid=ar,co.abs=Sa,co.add=Ta,co.subtract=ka,co.as=Ma,co.asMilliseconds=Ra,co.asSeconds=Na,co.asMinutes=Ba,co.asHours=Ia,co.asDays=Fa,co.asWeeks=ja,co.asMonths=La,co.asQuarters=Ya,co.asYears=za,co.valueOf=Pa,co._bubble=Ea,co.clone=Ua,co.get=Ha,co.milliseconds=Wa,co.seconds=qa,co.minutes=$a,co.hours=Ka,co.days=Za,co.weeks=Qa,co.months=Xa,co.years=Ja,co.humanize=oo,co.toISOString=uo,co.toString=uo,co.toJSON=uo,co.locale=si,co.localeData=ui,co.toIsoString=k("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",uo),co.lang=li,Y("X",0,0,"unix"),Y("x",0,0,"valueOf"),Nt("x",At),Nt("X",Vt),Lt("X",(function(t,e,n){n._d=new Date(1e3*parseFloat(t))})),Lt("x",(function(t,e,n){n._d=new Date(ht(t))})),
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("lodash"),require("axios")):"function"==typeof define&&define.amd?define(["exports","lodash","axios"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).code={},t._,t.axios)}(this,(function(t,e,n){"use strict";function r(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var i=r(e),a=r(n),o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function s(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function l(t,e){return t(e={exports:{}},e.exports),e.exports}var u=l((function(t,e){t.exports=function(){var e,n;function r(){return e.apply(null,arguments)}function i(t){e=t}function a(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function o(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function l(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function u(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 c(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 v(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 m(t){return null==t._pf&&(t._pf=g()),t._pf}function y(t){if(null==t._isValid){var e=m(t),r=n.call(e.parsedDateParts,(function(t){return null!=t})),i=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&r);if(t._strict&&(i=i&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return i;t._isValid=i}return t._isValid}function b(t){var e=v(NaN);return null!=t?p(m(e),t):m(e).userInvalidated=!0,e}n=Array.prototype.some?Array.prototype.some:function(t){var e,n=Object(this),r=n.length>>>0;for(e=0;e<r;e++)if(e in n&&t.call(this,n[e],e,n))return!0;return!1};var _=r.momentProperties=[],w=!1;function D(t,e){var n,r,i,a=_.length;if(c(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),c(e._i)||(t._i=e._i),c(e._f)||(t._f=e._f),c(e._l)||(t._l=e._l),c(e._strict)||(t._strict=e._strict),c(e._tzm)||(t._tzm=e._tzm),c(e._isUTC)||(t._isUTC=e._isUTC),c(e._offset)||(t._offset=e._offset),c(e._pf)||(t._pf=m(e)),c(e._locale)||(t._locale=e._locale),a>0)for(n=0;n<a;n++)c(i=e[r=_[n]])||(t[r]=i);return t}function S(t){D(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===w&&(w=!0,r.updateOffset(this),w=!1)}function x(t){return t instanceof S||null!=t&&null!=t._isAMomentObject}function T(t){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function k(t,e){var n=!0;return p((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,t),n){var i,a,o,s=[],u=arguments.length;for(a=0;a<u;a++){if(i="","object"==typeof arguments[a]){for(o in i+="\n["+a+"] ",arguments[0])l(arguments[0],o)&&(i+=o+": "+arguments[0][o]+", ");i=i.slice(0,-2)}else i=arguments[a];s.push(i)}T(t+"\nArguments: "+Array.prototype.slice.call(s).join("")+"\n"+(new Error).stack),n=!1}return e.apply(this,arguments)}),e)}var C,E={};function O(t,e){null!=r.deprecationHandler&&r.deprecationHandler(t,e),E[t]||(T(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 P(t,e){var n,r=p({},t);for(n in e)l(e,n)&&(o(t[n])&&o(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)&&o(t[n])&&(r[n]=p({},r[n]));return r}function V(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 R={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function N(t,e,n){var r=this._calendar[t]||this._calendar.sameElse;return A(r)?r.call(e,n):r}function B(t,e,n){var r=""+Math.abs(t),i=e-r.length;return(t>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var I=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,F=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,j={},L={};function Y(t,e,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),t&&(L[t]=i),e&&(L[e[0]]=function(){return B(i.apply(this,arguments),e[1],e[2])}),n&&(L[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),t)})}function z(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function U(t){var e,n,r=t.match(I);for(e=0,n=r.length;e<n;e++)L[r[e]]?r[e]=L[r[e]]:r[e]=z(r[e]);return function(e){var i,a="";for(i=0;i<n;i++)a+=A(r[i])?r[i].call(e,t):r[i];return a}}function H(t,e){return t.isValid()?(e=G(e,t.localeData()),j[e]=j[e]||U(e),j[e](t)):t.localeData().invalidDate()}function G(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 q={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function W(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.match(I).map((function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t})).join(""),this._longDateFormat[t])}var $="Invalid date";function K(){return this._invalidDate}var Z="%d",X=/\d{1,2}/;function J(t){return this._ordinal.replace("%d",t)}var Q={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function tt(t,e,n,r){var i=this._relativeTime[n];return 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={};function rt(t,e){var n=t.toLowerCase();nt[n]=nt[n+"s"]=nt[e]=t}function it(t){return"string"==typeof t?nt[t]||nt[t.toLowerCase()]:void 0}function at(t){var e,n,r={};for(n in t)l(t,n)&&(e=it(n))&&(r[e]=t[n]);return r}var ot={};function st(t,e){ot[t]=e}function lt(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}function ut(t){return t%4==0&&t%100!=0||t%400==0}function ct(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function ht(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=ct(e)),n}function dt(t,e){return function(n){return null!=n?(pt(this,t,n),r.updateOffset(this,e),this):ft(this,t)}}function ft(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function pt(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&ut(t.year())&&1===t.month()&&29===t.date()?(n=ht(n),t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),te(n,t.month()))):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function vt(t){return A(this[t=it(t)])?this[t]():this}function gt(t,e){if("object"==typeof t){var n,r=lt(t=at(t)),i=r.length;for(n=0;n<i;n++)this[r[n].unit](t[r[n].unit])}else if(A(this[t=it(t)]))return this[t](e);return this}var mt,yt=/\d/,bt=/\d\d/,_t=/\d{3}/,wt=/\d{4}/,Dt=/[+-]?\d{6}/,St=/\d\d?/,xt=/\d\d\d\d?/,Tt=/\d\d\d\d\d\d?/,kt=/\d{1,3}/,Ct=/\d{1,4}/,Et=/[+-]?\d{1,6}/,Ot=/\d+/,At=/[+-]?\d+/,Mt=/Z|[+-]\d\d:?\d\d/gi,Pt=/Z|[+-]\d\d(?::?\d\d)?/gi,Vt=/[+-]?\d+(\.\d{1,3})?/,Rt=/[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;function Nt(t,e,n){mt[t]=A(e)?e:function(t,r){return t&&n?n:e}}function Bt(t,e){return l(mt,t)?mt[t](e._strict,e._locale):new RegExp(It(t))}function It(t){return Ft(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,n,r,i){return e||n||r||i})))}function Ft(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}mt={};var jt={};function Lt(t,e){var n,r,i=e;for("string"==typeof t&&(t=[t]),h(e)&&(i=function(t,n){n[e]=ht(t)}),r=t.length,n=0;n<r;n++)jt[t[n]]=i}function Yt(t,e){Lt(t,(function(t,n,r,i){r._w=r._w||{},e(t,r._w,r,i)}))}function zt(t,e,n){null!=e&&l(jt,t)&&jt[t](e,n._a,n,t)}var Ut,Ht=0,Gt=1,qt=2,Wt=3,$t=4,Kt=5,Zt=6,Xt=7,Jt=8;function Qt(t,e){return(t%e+e)%e}function te(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=Qt(e,12);return t+=(e-n)/12,1===n?ut(t)?29:28:31-n%7%2}Ut=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},Y("M",["MM",2],"Mo",(function(){return this.month()+1})),Y("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),Y("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),rt("month","M"),st("month",8),Nt("M",St),Nt("MM",St,bt),Nt("MMM",(function(t,e){return e.monthsShortRegex(t)})),Nt("MMMM",(function(t,e){return e.monthsRegex(t)})),Lt(["M","MM"],(function(t,e){e[Gt]=ht(t)-1})),Lt(["MMM","MMMM"],(function(t,e,n,r){var i=n._locale.monthsParse(t,r,n._strict);null!=i?e[Gt]=i:m(n).invalidMonth=t}));var ee="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ne="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),re=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ie=Rt,ae=Rt;function oe(t,e){return t?a(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||re).test(e)?"format":"standalone"][t.month()]:a(this._months)?this._months:this._months.standalone}function se(t,e){return t?a(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[re.test(e)?"format":"standalone"][t.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function le(t,e,n){var r,i,a,o=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=v([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(i=Ut.call(this._shortMonthsParse,o))?i:null:-1!==(i=Ut.call(this._longMonthsParse,o))?i:null:"MMM"===e?-1!==(i=Ut.call(this._shortMonthsParse,o))||-1!==(i=Ut.call(this._longMonthsParse,o))?i:null:-1!==(i=Ut.call(this._longMonthsParse,o))||-1!==(i=Ut.call(this._shortMonthsParse,o))?i:null}function ue(t,e,n){var r,i,a;if(this._monthsParseExact)return le.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=v([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(a="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[r].test(t))return r;if(n&&"MMM"===e&&this._shortMonthsParse[r].test(t))return r;if(!n&&this._monthsParse[r].test(t))return r}}function ce(t,e){var n;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=ht(e);else if(!h(e=t.localeData().monthsParse(e)))return t;return n=Math.min(t.date(),te(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function he(t){return null!=t?(ce(this,t),r.updateOffset(this,!0),this):ft(this,"Month")}function de(){return te(this.year(),this.month())}function fe(t){return this._monthsParseExact?(l(this,"_monthsRegex")||ve.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=ie),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}function pe(t){return this._monthsParseExact?(l(this,"_monthsRegex")||ve.call(this),t?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=ae),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function ve(){function t(t,e){return e.length-t.length}var e,n,r=[],i=[],a=[];for(e=0;e<12;e++)n=v([2e3,e]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),a.push(this.months(n,"")),a.push(this.monthsShort(n,""));for(r.sort(t),i.sort(t),a.sort(t),e=0;e<12;e++)r[e]=Ft(r[e]),i[e]=Ft(i[e]);for(e=0;e<24;e++)a[e]=Ft(a[e]);this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function ge(t){return ut(t)?366:365}Y("Y",0,0,(function(){var t=this.year();return t<=9999?B(t,4):"+"+t})),Y(0,["YY",2],0,(function(){return this.year()%100})),Y(0,["YYYY",4],0,"year"),Y(0,["YYYYY",5],0,"year"),Y(0,["YYYYYY",6,!0],0,"year"),rt("year","y"),st("year",1),Nt("Y",At),Nt("YY",St,bt),Nt("YYYY",Ct,wt),Nt("YYYYY",Et,Dt),Nt("YYYYYY",Et,Dt),Lt(["YYYYY","YYYYYY"],Ht),Lt("YYYY",(function(t,e){e[Ht]=2===t.length?r.parseTwoDigitYear(t):ht(t)})),Lt("YY",(function(t,e){e[Ht]=r.parseTwoDigitYear(t)})),Lt("Y",(function(t,e){e[Ht]=parseInt(t,10)})),r.parseTwoDigitYear=function(t){return ht(t)+(ht(t)>68?1900:2e3)};var me=dt("FullYear",!0);function ye(){return ut(this.year())}function be(t,e,n,r,i,a,o){var s;return t<100&&t>=0?(s=new Date(t+400,e,n,r,i,a,o),isFinite(s.getFullYear())&&s.setFullYear(t)):s=new Date(t,e,n,r,i,a,o),s}function _e(t){var e,n;return t<100&&t>=0?((n=Array.prototype.slice.call(arguments))[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function we(t,e,n){var r=7+e-n;return-(7+_e(t,0,r).getUTCDay()-e)%7+r-1}function De(t,e,n,r,i){var a,o,s=1+7*(e-1)+(7+n-r)%7+we(t,r,i);return s<=0?o=ge(a=t-1)+s:s>ge(t)?(a=t+1,o=s-ge(t)):(a=t,o=s),{year:a,dayOfYear:o}}function Se(t,e,n){var r,i,a=we(t.year(),e,n),o=Math.floor((t.dayOfYear()-a-1)/7)+1;return o<1?r=o+xe(i=t.year()-1,e,n):o>xe(t.year(),e,n)?(r=o-xe(t.year(),e,n),i=t.year()+1):(i=t.year(),r=o),{week:r,year:i}}function xe(t,e,n){var r=we(t,e,n),i=we(t+1,e,n);return(ge(t)-r+i)/7}function Te(t){return Se(t,this._week.dow,this._week.doy).week}Y("w",["ww",2],"wo","week"),Y("W",["WW",2],"Wo","isoWeek"),rt("week","w"),rt("isoWeek","W"),st("week",5),st("isoWeek",5),Nt("w",St),Nt("ww",St,bt),Nt("W",St),Nt("WW",St,bt),Yt(["w","ww","W","WW"],(function(t,e,n,r){e[r.substr(0,1)]=ht(t)}));var ke={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 Pe(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function Ve(t,e){return t.slice(e,7).concat(t.slice(0,e))}Y("d",0,"do","day"),Y("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),Y("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),Y("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),Y("e",0,0,"weekday"),Y("E",0,0,"isoWeekday"),rt("day","d"),rt("weekday","e"),rt("isoWeekday","E"),st("day",11),st("weekday",11),st("isoWeekday",11),Nt("d",St),Nt("e",St),Nt("E",St),Nt("dd",(function(t,e){return e.weekdaysMinRegex(t)})),Nt("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),Nt("dddd",(function(t,e){return e.weekdaysRegex(t)})),Yt(["dd","ddd","dddd"],(function(t,e,n,r){var i=n._locale.weekdaysParse(t,r,n._strict);null!=i?e.d=i:m(n).invalidWeekday=t})),Yt(["d","e","E"],(function(t,e,n,r){e[r]=ht(t)}));var Re="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ne="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Be="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ie=Rt,Fe=Rt,je=Rt;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?Ve(n,this._week.dow):t?n[t.day()]:n}function Ye(t){return!0===t?Ve(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function ze(t){return!0===t?Ve(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function Ue(t,e,n){var r,i,a,o=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=v([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(i=Ut.call(this._weekdaysParse,o))?i:null:"ddd"===e?-1!==(i=Ut.call(this._shortWeekdaysParse,o))?i:null:-1!==(i=Ut.call(this._minWeekdaysParse,o))?i:null:"dddd"===e?-1!==(i=Ut.call(this._weekdaysParse,o))||-1!==(i=Ut.call(this._shortWeekdaysParse,o))||-1!==(i=Ut.call(this._minWeekdaysParse,o))?i:null:"ddd"===e?-1!==(i=Ut.call(this._shortWeekdaysParse,o))||-1!==(i=Ut.call(this._weekdaysParse,o))||-1!==(i=Ut.call(this._minWeekdaysParse,o))?i:null:-1!==(i=Ut.call(this._minWeekdaysParse,o))||-1!==(i=Ut.call(this._weekdaysParse,o))||-1!==(i=Ut.call(this._shortWeekdaysParse,o))?i:null}function He(t,e,n){var r,i,a;if(this._weekdaysParseExact)return Ue.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=v([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[r].test(t))return r;if(n&&"ddd"===e&&this._shortWeekdaysParse[r].test(t))return r;if(n&&"dd"===e&&this._minWeekdaysParse[r].test(t))return r;if(!n&&this._weekdaysParse[r].test(t))return r}}function Ge(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=Me(t,this.localeData()),this.add(t-e,"d")):e}function qe(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=Pe(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7}function $e(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Xe.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=Ie),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ke(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Xe.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Fe),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Ze(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Xe.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=je),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Xe(){function t(t,e){return e.length-t.length}var e,n,r,i,a,o=[],s=[],l=[],u=[];for(e=0;e<7;e++)n=v([2e3,1]).day(e),r=Ft(this.weekdaysMin(n,"")),i=Ft(this.weekdaysShort(n,"")),a=Ft(this.weekdays(n,"")),o.push(r),s.push(i),l.push(a),u.push(r),u.push(i),u.push(a);o.sort(t),s.sort(t),l.sort(t),u.sort(t),this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Je(){return this.hours()%12||12}function Qe(){return this.hours()||24}function tn(t,e){Y(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function en(t,e){return e._meridiemParse}function nn(t){return"p"===(t+"").toLowerCase().charAt(0)}Y("H",["HH",2],0,"hour"),Y("h",["hh",2],0,Je),Y("k",["kk",2],0,Qe),Y("hmm",0,0,(function(){return""+Je.apply(this)+B(this.minutes(),2)})),Y("hmmss",0,0,(function(){return""+Je.apply(this)+B(this.minutes(),2)+B(this.seconds(),2)})),Y("Hmm",0,0,(function(){return""+this.hours()+B(this.minutes(),2)})),Y("Hmmss",0,0,(function(){return""+this.hours()+B(this.minutes(),2)+B(this.seconds(),2)})),tn("a",!0),tn("A",!1),rt("hour","h"),st("hour",13),Nt("a",en),Nt("A",en),Nt("H",St),Nt("h",St),Nt("k",St),Nt("HH",St,bt),Nt("hh",St,bt),Nt("kk",St,bt),Nt("hmm",xt),Nt("hmmss",Tt),Nt("Hmm",xt),Nt("Hmmss",Tt),Lt(["H","HH"],Wt),Lt(["k","kk"],(function(t,e,n){var r=ht(t);e[Wt]=24===r?0:r})),Lt(["a","A"],(function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t})),Lt(["h","hh"],(function(t,e,n){e[Wt]=ht(t),m(n).bigHour=!0})),Lt("hmm",(function(t,e,n){var r=t.length-2;e[Wt]=ht(t.substr(0,r)),e[$t]=ht(t.substr(r)),m(n).bigHour=!0})),Lt("hmmss",(function(t,e,n){var r=t.length-4,i=t.length-2;e[Wt]=ht(t.substr(0,r)),e[$t]=ht(t.substr(r,2)),e[Kt]=ht(t.substr(i)),m(n).bigHour=!0})),Lt("Hmm",(function(t,e,n){var r=t.length-2;e[Wt]=ht(t.substr(0,r)),e[$t]=ht(t.substr(r))})),Lt("Hmmss",(function(t,e,n){var r=t.length-4,i=t.length-2;e[Wt]=ht(t.substr(0,r)),e[$t]=ht(t.substr(r,2)),e[Kt]=ht(t.substr(i))}));var rn=/[ap]\.?m?\.?/i,an=dt("Hours",!0);function on(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}var sn,ln={calendar:R,longDateFormat:q,invalidDate:$,ordinal:Z,dayOfMonthOrdinalParse:X,relativeTime:Q,months:ee,monthsShort:ne,week:ke,weekdays:Re,weekdaysMin:Be,weekdaysShort:Ne,meridiemParse:rn},un={},cn={};function hn(t,e){var n,r=Math.min(t.length,e.length);for(n=0;n<r;n+=1)if(t[n]!==e[n])return n;return r}function dn(t){return t?t.toLowerCase().replace("_","-"):t}function fn(t){for(var e,n,r,i,a=0;a<t.length;){for(e=(i=dn(t[a]).split("-")).length,n=(n=dn(t[a+1]))?n.split("-"):null;e>0;){if(r=vn(i.slice(0,e).join("-")))return r;if(n&&n.length>=e&&hn(i,n)>=e-1)break;e--}a++}return sn}function pn(t){return null!=t.match("^[^/\\\\]*$")}function vn(e){var n=null;if(void 0===un[e]&&t&&t.exports&&pn(e))try{n=sn._abbr,s(),gn(n)}catch(t){un[e]=null}return un[e]}function gn(t,e){var n;return t&&((n=c(e)?bn(t):mn(t,e))?sn=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),sn._abbr}function mn(t,e){if(null!==e){var n,r=ln;if(e.abbr=t,null!=un[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=un[t]._config;else if(null!=e.parentLocale)if(null!=un[e.parentLocale])r=un[e.parentLocale]._config;else{if(null==(n=vn(e.parentLocale)))return cn[e.parentLocale]||(cn[e.parentLocale]=[]),cn[e.parentLocale].push({name:t,config:e}),null;r=n._config}return un[t]=new V(P(r,e)),cn[t]&&cn[t].forEach((function(t){mn(t.name,t.config)})),gn(t),un[t]}return delete un[t],null}function yn(t,e){if(null!=e){var n,r,i=ln;null!=un[t]&&null!=un[t].parentLocale?un[t].set(P(un[t]._config,e)):(null!=(r=vn(t))&&(i=r._config),e=P(i,e),null==r&&(e.abbr=t),(n=new V(e)).parentLocale=un[t],un[t]=n),gn(t)}else null!=un[t]&&(null!=un[t].parentLocale?(un[t]=un[t].parentLocale,t===gn()&&gn(t)):null!=un[t]&&delete un[t]);return un[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=vn(t))return e;t=[t]}return fn(t)}function _n(){return C(un)}function wn(t){var e,n=t._a;return n&&-2===m(t).overflow&&(e=n[Gt]<0||n[Gt]>11?Gt:n[qt]<1||n[qt]>te(n[Ht],n[Gt])?qt:n[Wt]<0||n[Wt]>24||24===n[Wt]&&(0!==n[$t]||0!==n[Kt]||0!==n[Zt])?Wt:n[$t]<0||n[$t]>59?$t:n[Kt]<0||n[Kt]>59?Kt:n[Zt]<0||n[Zt]>999?Zt:-1,m(t)._overflowDayOfYear&&(e<Ht||e>qt)&&(e=qt),m(t)._overflowWeeks&&-1===e&&(e=Xt),m(t)._overflowWeekday&&-1===e&&(e=Jt),m(t).overflow=e),t}var Dn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Sn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,xn=/Z|[+-]\d\d(?::?\d\d)?/,Tn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],kn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Cn=/^\/?Date\((-?\d+)/i,En=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,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,a,o,s=t._i,l=Dn.exec(s)||Sn.exec(s),u=Tn.length,c=kn.length;if(l){for(m(t).iso=!0,e=0,n=u;e<n;e++)if(Tn[e][1].exec(l[1])){i=Tn[e][0],r=!1!==Tn[e][2];break}if(null==i)return void(t._isValid=!1);if(l[3]){for(e=0,n=c;e<n;e++)if(kn[e][1].exec(l[3])){a=(l[2]||" ")+kn[e][0];break}if(null==a)return void(t._isValid=!1)}if(!r&&null!=a)return void(t._isValid=!1);if(l[4]){if(!xn.exec(l[4]))return void(t._isValid=!1);o="Z"}t._f=i+(a||"")+(o||""),zn(t)}else t._isValid=!1}function Mn(t,e,n,r,i,a){var o=[Pn(t),ne.indexOf(e),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return a&&o.push(parseInt(a,10)),o}function Pn(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function Vn(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Rn(t,e,n){return!t||Ne.indexOf(t)===new Date(e[0],e[1],e[2]).getDay()||(m(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Nn(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 Bn(t){var e,n=En.exec(Vn(t._i));if(n){if(e=Mn(n[4],n[3],n[2],n[5],n[6],n[7]),!Rn(n[1],e,t))return;t._a=e,t._tzm=Nn(n[8],n[9],n[10]),t._d=_e.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),m(t).rfc2822=!0}else t._isValid=!1}function In(t){var e=Cn.exec(t._i);null===e?(An(t),!1===t._isValid&&(delete t._isValid,Bn(t),!1===t._isValid&&(delete t._isValid,t._strict?t._isValid=!1:r.createFromInputFallback(t)))):t._d=new Date(+e[1])}function Fn(t,e,n){return null!=t?t:null!=e?e:n}function jn(t){var e=new Date(r.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function Ln(t){var e,n,r,i,a,o=[];if(!t._d){for(r=jn(t),t._w&&null==t._a[qt]&&null==t._a[Gt]&&Yn(t),null!=t._dayOfYear&&(a=Fn(t._a[Ht],r[Ht]),(t._dayOfYear>ge(a)||0===t._dayOfYear)&&(m(t)._overflowDayOfYear=!0),n=_e(a,0,t._dayOfYear),t._a[Gt]=n.getUTCMonth(),t._a[qt]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=o[e]=r[e];for(;e<7;e++)t._a[e]=o[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[Wt]&&0===t._a[$t]&&0===t._a[Kt]&&0===t._a[Zt]&&(t._nextDay=!0,t._a[Wt]=0),t._d=(t._useUTC?_e:be).apply(null,o),i=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[Wt]=24),t._w&&void 0!==t._w.d&&t._w.d!==i&&(m(t).weekdayMismatch=!0)}}function Yn(t){var e,n,r,i,a,o,s,l,u;null!=(e=t._w).GG||null!=e.W||null!=e.E?(a=1,o=4,n=Fn(e.GG,t._a[Ht],Se(Zn(),1,4).year),r=Fn(e.W,1),((i=Fn(e.E,1))<1||i>7)&&(l=!0)):(a=t._locale._week.dow,o=t._locale._week.doy,u=Se(Zn(),a,o),n=Fn(e.gg,t._a[Ht],u.year),r=Fn(e.w,u.week),null!=e.d?((i=e.d)<0||i>6)&&(l=!0):null!=e.e?(i=e.e+a,(e.e<0||e.e>6)&&(l=!0)):i=a),r<1||r>xe(n,a,o)?m(t)._overflowWeeks=!0:null!=l?m(t)._overflowWeekday=!0:(s=De(n,r,i,a,o),t._a[Ht]=s.year,t._dayOfYear=s.dayOfYear)}function zn(t){if(t._f!==r.ISO_8601)if(t._f!==r.RFC_2822){t._a=[],m(t).empty=!0;var e,n,i,a,o,s,l,u=""+t._i,c=u.length,h=0;for(l=(i=G(t._f,t._locale).match(I)||[]).length,e=0;e<l;e++)a=i[e],(n=(u.match(Bt(a,t))||[])[0])&&((o=u.substr(0,u.indexOf(n))).length>0&&m(t).unusedInput.push(o),u=u.slice(u.indexOf(n)+n.length),h+=n.length),L[a]?(n?m(t).empty=!1:m(t).unusedTokens.push(a),zt(a,n,t)):t._strict&&!n&&m(t).unusedTokens.push(a);m(t).charsLeftOver=c-h,u.length>0&&m(t).unusedInput.push(u),t._a[Wt]<=12&&!0===m(t).bigHour&&t._a[Wt]>0&&(m(t).bigHour=void 0),m(t).parsedDateParts=t._a.slice(0),m(t).meridiem=t._meridiem,t._a[Wt]=Un(t._locale,t._a[Wt],t._meridiem),null!==(s=m(t).era)&&(t._a[Ht]=t._locale.erasConvertYear(s,t._a[Ht])),Ln(t),wn(t)}else Bn(t);else An(t)}function Un(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 Hn(t){var e,n,r,i,a,o,s=!1,l=t._f.length;if(0===l)return m(t).invalidFormat=!0,void(t._d=new Date(NaN));for(i=0;i<l;i++)a=0,o=!1,e=D({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[i],zn(e),y(e)&&(o=!0),a+=m(e).charsLeftOver,a+=10*m(e).unusedTokens.length,m(e).score=a,s?a<r&&(r=a,n=e):(null==r||a<r||o)&&(r=a,n=e,o&&(s=!0));p(t,n||e)}function Gn(t){if(!t._d){var e=at(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 qn(t){var e=new S(wn(Wn(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function Wn(t){var e=t._i,n=t._f;return t._locale=t._locale||bn(t._l),null===e||void 0===n&&""===e?b({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),x(e)?new S(wn(e)):(d(e)?t._d=e:a(n)?Hn(t):n?zn(t):$n(t),y(t)||(t._d=null),t))}function $n(t){var e=t._i;c(e)?t._d=new Date(r.now()):d(e)?t._d=new Date(e.valueOf()):"string"==typeof e?In(t):a(e)?(t._a=f(e.slice(0),(function(t){return parseInt(t,10)})),Ln(t)):o(e)?Gn(t):h(e)?t._d=new Date(e):r.createFromInputFallback(t)}function Kn(t,e,n,r,i){var s={};return!0!==e&&!1!==e||(r=e,e=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(o(t)&&u(t)||a(t)&&0===t.length)&&(t=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=i,s._l=n,s._i=t,s._f=e,s._strict=r,qn(s)}function Zn(t,e,n,r){return Kn(t,e,n,r,!1)}r.createFromInputFallback=k("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))})),r.ISO_8601=function(){},r.RFC_2822=function(){};var Xn=k("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Zn.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:b()})),Jn=k("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Zn.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:b()}));function Qn(t,e){var n,r;if(1===e.length&&a(e[0])&&(e=e[0]),!e.length)return Zn();for(n=e[0],r=1;r<e.length;++r)e[r].isValid()&&!e[r][t](n)||(n=e[r]);return n}function tr(){return Qn("isBefore",[].slice.call(arguments,0))}function er(){return Qn("isAfter",[].slice.call(arguments,0))}var nr=function(){return Date.now?Date.now():+new Date},rr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ir(t){var e,n,r=!1,i=rr.length;for(e in t)if(l(t,e)&&(-1===Ut.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]])!==ht(t[rr[n]])&&(r=!0)}return!0}function ar(){return this._isValid}function or(){return Or(NaN)}function sr(t){var e=at(t),n=e.year||0,r=e.quarter||0,i=e.month||0,a=e.week||e.isoWeek||0,o=e.day||0,s=e.hour||0,l=e.minute||0,u=e.second||0,c=e.millisecond||0;this._isValid=ir(e),this._milliseconds=+c+1e3*u+6e4*l+1e3*s*60*60,this._days=+o+7*a,this._months=+i+3*r+12*n,this._data={},this._locale=bn(),this._bubble()}function lr(t){return t instanceof sr}function ur(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function cr(t,e,n){var r,i=Math.min(t.length,e.length),a=Math.abs(t.length-e.length),o=0;for(r=0;r<i;r++)(n&&t[r]!==e[r]||!n&&ht(t[r])!==ht(e[r]))&&o++;return o+a}function hr(t,e){Y(t,0,0,(function(){var t=this.utcOffset(),n="+";return t<0&&(t=-t,n="-"),n+B(~~(t/60),2)+e+B(~~t%60,2)}))}hr("Z",":"),hr("ZZ",""),Nt("Z",Pt),Nt("ZZ",Pt),Lt(["Z","ZZ"],(function(t,e,n){n._useUTC=!0,n._tzm=fr(Pt,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]+ht(n[2]))?0:"+"===n[0]?r:-r}function pr(t,e){var n,i;return e._isUTC?(n=e.clone(),i=(x(t)||d(t)?t.valueOf():Zn(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),r.updateOffset(n,!1),n):Zn(t).local()}function vr(t){return-Math.round(t._d.getTimezoneOffset())}function gr(t,e,n){var i,a=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=fr(Pt,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(i=vr(this)),this._offset=t,this._isUTC=!0,null!=i&&this.add(i,"m"),a!==t&&(!e||this._changeInProgress?Rr(this,Or(t-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:vr(this)}function mr(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(vr(this),"m")),this}function _r(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=fr(Mt,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this}function wr(t){return!!this.isValid()&&(t=t?Zn(t).utcOffset():0,(this.utcOffset()-t)%60==0)}function Dr(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Sr(){if(!c(this._isDSTShifted))return this._isDSTShifted;var t,e={};return D(e,this),(e=Wn(e))._a?(t=e._isUTC?v(e._a):Zn(e._a),this._isDSTShifted=this.isValid()&&cr(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function xr(){return!!this.isValid()&&!this._isUTC}function Tr(){return!!this.isValid()&&this._isUTC}function kr(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var Cr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Er=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Or(t,e){var n,r,i,a=t,o=null;return lr(t)?a={ms:t._milliseconds,d:t._days,M:t._months}:h(t)||!isNaN(+t)?(a={},e?a[e]=+t:a.milliseconds=+t):(o=Cr.exec(t))?(n="-"===o[1]?-1:1,a={y:0,d:ht(o[qt])*n,h:ht(o[Wt])*n,m:ht(o[$t])*n,s:ht(o[Kt])*n,ms:ht(ur(1e3*o[Zt]))*n}):(o=Er.exec(t))?(n="-"===o[1]?-1:1,a={y:Ar(o[2],n),M:Ar(o[3],n),w:Ar(o[4],n),d:Ar(o[5],n),h:Ar(o[6],n),m:Ar(o[7],n),s:Ar(o[8],n)}):null==a?a={}:"object"==typeof a&&("from"in a||"to"in a)&&(i=Pr(Zn(a.from),Zn(a.to)),(a={}).ms=i.milliseconds,a.M=i.months),r=new sr(a),lr(t)&&l(t,"_locale")&&(r._locale=t._locale),lr(t)&&l(t,"_isValid")&&(r._isValid=t._isValid),r}function 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 Pr(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 Vr(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),Rr(this,Or(n,r),t),this}}function Rr(t,e,n,i){var a=e._milliseconds,o=ur(e._days),s=ur(e._months);t.isValid()&&(i=null==i||i,s&&ce(t,ft(t,"Month")+s*n),o&&pt(t,"Date",ft(t,"Date")+o*n),a&&t._d.setTime(t._d.valueOf()+a*n),i&&r.updateOffset(t,o||s))}Or.fn=sr.prototype,Or.invalid=or;var Nr=Vr(1,"add"),Br=Vr(-1,"subtract");function Ir(t){return"string"==typeof t||t instanceof String}function Fr(t){return x(t)||d(t)||Ir(t)||h(t)||Lr(t)||jr(t)||null==t}function jr(t){var e,n,r=o(t)&&!u(t),i=!1,a=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s=a.length;for(e=0;e<s;e+=1)n=a[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)&&Ir(t)})).length),e&&n}function Yr(t){var e,n,r=o(t)&&!u(t),i=!1,a=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(e=0;e<a.length;e+=1)n=a[e],i=i||l(t,n);return r&&i}function zr(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Ur(t,e){1===arguments.length&&(arguments[0]?Fr(arguments[0])?(t=arguments[0],e=void 0):Yr(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var n=t||Zn(),i=pr(n,this).startOf("day"),a=r.calendarFormat(this,i)||"sameElse",o=e&&(A(e[a])?e[a].call(this,n):e[a]);return this.format(o||this.localeData().calendar(a,this,Zn(n)))}function Hr(){return new S(this)}function Gr(t,e){var n=x(t)?t:Zn(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=it(e)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf())}function qr(t,e){var n=x(t)?t:Zn(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=it(e)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf())}function Wr(t,e,n,r){var i=x(t)?t:Zn(t),a=x(e)?e:Zn(e);return!!(this.isValid()&&i.isValid()&&a.isValid())&&("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(a,n):!this.isAfter(a,n))}function $r(t,e){var n,r=x(t)?t:Zn(t);return!(!this.isValid()||!r.isValid())&&("millisecond"===(e=it(e)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf()))}function Kr(t,e){return this.isSame(t,e)||this.isAfter(t,e)}function Zr(t,e){return this.isSame(t,e)||this.isBefore(t,e)}function Xr(t,e,n){var r,i,a;if(!this.isValid())return NaN;if(!(r=pr(t,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),e=it(e)){case"year":a=Jr(this,r)/12;break;case"month":a=Jr(this,r);break;case"quarter":a=Jr(this,r)/3;break;case"second":a=(this-r)/1e3;break;case"minute":a=(this-r)/6e4;break;case"hour":a=(this-r)/36e5;break;case"day":a=(this-r-i)/864e5;break;case"week":a=(this-r-i)/6048e5;break;default:a=this-r}return n?a:ct(a)}function Jr(t,e){if(t.date()<e.date())return-Jr(e,t);var n=12*(e.year()-t.year())+(e.month()-t.month()),r=t.clone().add(n,"months");return-(n+(e-r<0?(e-r)/(r-t.clone().add(n-1,"months")):(e-r)/(t.clone().add(n+1,"months")-r)))||0}function Qr(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ti(t){if(!this.isValid())return null;var e=!0!==t,n=e?this.clone().utc():this;return n.year()<0||n.year()>9999?H(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",H(n,"Z")):H(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ei(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,e,n,r,i="moment",a="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",a="Z"),t="["+i+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=a+'[")]',this.format(t+e+n+r)}function ni(t){t||(t=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var e=H(this,t);return this.localeData().postformat(e)}function ri(t,e){return this.isValid()&&(x(t)&&t.isValid()||Zn(t).isValid())?Or({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function ii(t){return this.from(Zn(),t)}function ai(t,e){return this.isValid()&&(x(t)&&t.isValid()||Zn(t).isValid())?Or({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function oi(t){return this.to(Zn(),t)}function si(t){var e;return void 0===t?this._locale._abbr:(null!=(e=bn(t))&&(this._locale=e),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var li=k("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(t){return void 0===t?this.localeData():this.locale(t)}));function ui(){return this._locale}var ci=1e3,hi=60*ci,di=60*hi,fi=3506328*di;function pi(t,e){return(t%e+e)%e}function vi(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 mi(t){var e,n;if(void 0===(t=it(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?gi:vi,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,ci)}return this._d.setTime(e),r.updateOffset(this,!0),this}function yi(t){var e,n;if(void 0===(t=it(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?gi:vi,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+=ci-pi(e,ci)-1}return this._d.setTime(e),r.updateOffset(this,!0),this}function bi(){return this._d.valueOf()-6e4*(this._offset||0)}function _i(){return Math.floor(this.valueOf()/1e3)}function wi(){return new Date(this.valueOf())}function Di(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function Si(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function xi(){return this.isValid()?this.toISOString():null}function Ti(){return y(this)}function ki(){return p({},m(this))}function Ci(){return m(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,a,o=this._eras||bn("en")._eras;for(n=0,i=o.length;n<i;++n)switch("string"==typeof o[n].since&&(a=r(o[n].since).startOf("day"),o[n].since=a.valueOf()),typeof o[n].until){case"undefined":o[n].until=1/0;break;case"string":a=r(o[n].until).startOf("day").valueOf(),o[n].until=a.valueOf()}return o}function Ai(t,e,n){var r,i,a,o,s,l=this.eras();for(t=t.toUpperCase(),r=0,i=l.length;r<i;++r)if(a=l[r].name.toUpperCase(),o=l[r].abbr.toUpperCase(),s=l[r].narrow.toUpperCase(),n)switch(e){case"N":case"NN":case"NNN":if(o===t)return l[r];break;case"NNNN":if(a===t)return l[r];break;case"NNNNN":if(s===t)return l[r]}else if([a,o,s].indexOf(t)>=0)return l[r]}function Mi(t,e){var n=t.since<=t.until?1:-1;return void 0===e?r(t.since).year():r(t.since).year()+(e-t.offset)*n}function 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].name;if(r[t].until<=n&&n<=r[t].since)return r[t].name}return""}function Vi(){var t,e,n,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t){if(n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until)return r[t].narrow;if(r[t].until<=n&&n<=r[t].since)return r[t].narrow}return""}function Ri(){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 Ni(){var t,e,n,i,a=this.localeData().eras();for(t=0,e=a.length;t<e;++t)if(n=a[t].since<=a[t].until?1:-1,i=this.clone().startOf("day").valueOf(),a[t].since<=i&&i<=a[t].until||a[t].until<=i&&i<=a[t].since)return(this.year()-r(a[t].since).year())*n+a[t].offset;return this.year()}function Bi(t){return l(this,"_erasNameRegex")||Ui.call(this),t?this._erasNameRegex:this._erasRegex}function Ii(t){return l(this,"_erasAbbrRegex")||Ui.call(this),t?this._erasAbbrRegex:this._erasRegex}function Fi(t){return l(this,"_erasNarrowRegex")||Ui.call(this),t?this._erasNarrowRegex:this._erasRegex}function ji(t,e){return e.erasAbbrRegex(t)}function Li(t,e){return e.erasNameRegex(t)}function Yi(t,e){return e.erasNarrowRegex(t)}function zi(t,e){return e._eraYearOrdinalRegex||Ot}function Ui(){var t,e,n=[],r=[],i=[],a=[],o=this.eras();for(t=0,e=o.length;t<e;++t)r.push(Ft(o[t].name)),n.push(Ft(o[t].abbr)),i.push(Ft(o[t].narrow)),a.push(Ft(o[t].name)),a.push(Ft(o[t].abbr)),a.push(Ft(o[t].narrow));this._erasRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+i.join("|")+")","i")}function Hi(t,e){Y(0,[t,t.length],0,e)}function Gi(t){return Xi.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function qi(t){return Xi.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function Wi(){return xe(this.year(),1,4)}function $i(){return xe(this.isoWeekYear(),1,4)}function Ki(){var t=this.localeData()._week;return xe(this.year(),t.dow,t.doy)}function Zi(){var t=this.localeData()._week;return xe(this.weekYear(),t.dow,t.doy)}function Xi(t,e,n,r,i){var a;return null==t?Se(this,r,i).year:(e>(a=xe(t,r,i))&&(e=a),Ji.call(this,t,e,n,r,i))}function Ji(t,e,n,r,i){var a=De(t,e,n,r,i),o=_e(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}function Qi(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}Y("N",0,0,"eraAbbr"),Y("NN",0,0,"eraAbbr"),Y("NNN",0,0,"eraAbbr"),Y("NNNN",0,0,"eraName"),Y("NNNNN",0,0,"eraNarrow"),Y("y",["y",1],"yo","eraYear"),Y("y",["yy",2],0,"eraYear"),Y("y",["yyy",3],0,"eraYear"),Y("y",["yyyy",4],0,"eraYear"),Nt("N",ji),Nt("NN",ji),Nt("NNN",ji),Nt("NNNN",Li),Nt("NNNNN",Yi),Lt(["N","NN","NNN","NNNN","NNNNN"],(function(t,e,n,r){var i=n._locale.erasParse(t,r,n._strict);i?m(n).era=i:m(n).invalidEra=t})),Nt("y",Ot),Nt("yy",Ot),Nt("yyy",Ot),Nt("yyyy",Ot),Nt("yo",zi),Lt(["y","yy","yyy","yyyy"],Ht),Lt(["yo"],(function(t,e,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=t.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?e[Ht]=n._locale.eraYearOrdinalParse(t,i):e[Ht]=parseInt(t,10)})),Y(0,["gg",2],0,(function(){return this.weekYear()%100})),Y(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Hi("gggg","weekYear"),Hi("ggggg","weekYear"),Hi("GGGG","isoWeekYear"),Hi("GGGGG","isoWeekYear"),rt("weekYear","gg"),rt("isoWeekYear","GG"),st("weekYear",1),st("isoWeekYear",1),Nt("G",At),Nt("g",At),Nt("GG",St,bt),Nt("gg",St,bt),Nt("GGGG",Ct,wt),Nt("gggg",Ct,wt),Nt("GGGGG",Et,Dt),Nt("ggggg",Et,Dt),Yt(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,n,r){e[r.substr(0,2)]=ht(t)})),Yt(["gg","GG"],(function(t,e,n,i){e[i]=r.parseTwoDigitYear(t)})),Y("Q",0,"Qo","quarter"),rt("quarter","Q"),st("quarter",7),Nt("Q",yt),Lt("Q",(function(t,e){e[Gt]=3*(ht(t)-1)})),Y("D",["DD",2],"Do","date"),rt("date","D"),st("date",9),Nt("D",St),Nt("DD",St,bt),Nt("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),Lt(["D","DD"],qt),Lt("Do",(function(t,e){e[qt]=ht(t.match(St)[0])}));var ta=dt("Date",!0);function ea(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")}Y("DDD",["DDDD",3],"DDDo","dayOfYear"),rt("dayOfYear","DDD"),st("dayOfYear",4),Nt("DDD",kt),Nt("DDDD",_t),Lt(["DDD","DDDD"],(function(t,e,n){n._dayOfYear=ht(t)})),Y("m",["mm",2],0,"minute"),rt("minute","m"),st("minute",14),Nt("m",St),Nt("mm",St,bt),Lt(["m","mm"],$t);var na=dt("Minutes",!1);Y("s",["ss",2],0,"second"),rt("second","s"),st("second",15),Nt("s",St),Nt("ss",St,bt),Lt(["s","ss"],Kt);var ra,ia,aa=dt("Seconds",!1);for(Y("S",0,0,(function(){return~~(this.millisecond()/100)})),Y(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),Y(0,["SSS",3],0,"millisecond"),Y(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),Y(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),Y(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),Y(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),Y(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),Y(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),rt("millisecond","ms"),st("millisecond",16),Nt("S",kt,yt),Nt("SS",kt,bt),Nt("SSS",kt,_t),ra="SSSS";ra.length<=9;ra+="S")Nt(ra,Ot);function oa(t,e){e[Zt]=ht(1e3*("0."+t))}for(ra="S";ra.length<=9;ra+="S")Lt(ra,oa);function sa(){return this._isUTC?"UTC":""}function la(){return this._isUTC?"Coordinated Universal Time":""}ia=dt("Milliseconds",!1),Y("z",0,0,"zoneAbbr"),Y("zz",0,0,"zoneName");var ua=S.prototype;function ca(t){return Zn(1e3*t)}function ha(){return Zn.apply(null,arguments).parseZone()}function da(t){return t}ua.add=Nr,ua.calendar=Ur,ua.clone=Hr,ua.diff=Xr,ua.endOf=yi,ua.format=ni,ua.from=ri,ua.fromNow=ii,ua.to=ai,ua.toNow=oi,ua.get=vt,ua.invalidAt=Ci,ua.isAfter=Gr,ua.isBefore=qr,ua.isBetween=Wr,ua.isSame=$r,ua.isSameOrAfter=Kr,ua.isSameOrBefore=Zr,ua.isValid=Ti,ua.lang=li,ua.locale=si,ua.localeData=ui,ua.max=Jn,ua.min=Xn,ua.parsingFlags=ki,ua.set=gt,ua.startOf=mi,ua.subtract=Br,ua.toArray=Di,ua.toObject=Si,ua.toDate=wi,ua.toISOString=ti,ua.inspect=ei,"undefined"!=typeof Symbol&&null!=Symbol.for&&(ua[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ua.toJSON=xi,ua.toString=Qr,ua.unix=_i,ua.valueOf=bi,ua.creationData=Ei,ua.eraName=Pi,ua.eraNarrow=Vi,ua.eraAbbr=Ri,ua.eraYear=Ni,ua.year=me,ua.isLeapYear=ye,ua.weekYear=Gi,ua.isoWeekYear=qi,ua.quarter=ua.quarters=Qi,ua.month=he,ua.daysInMonth=de,ua.week=ua.weeks=Oe,ua.isoWeek=ua.isoWeeks=Ae,ua.weeksInYear=Ki,ua.weeksInWeekYear=Zi,ua.isoWeeksInYear=Wi,ua.isoWeeksInISOWeekYear=$i,ua.date=ta,ua.day=ua.days=Ge,ua.weekday=qe,ua.isoWeekday=We,ua.dayOfYear=ea,ua.hour=ua.hours=an,ua.minute=ua.minutes=na,ua.second=ua.seconds=aa,ua.millisecond=ua.milliseconds=ia,ua.utcOffset=gr,ua.utc=yr,ua.local=br,ua.parseZone=_r,ua.hasAlignedHourOffset=wr,ua.isDST=Dr,ua.isLocal=xr,ua.isUtcOffset=Tr,ua.isUtc=kr,ua.isUTC=kr,ua.zoneAbbr=sa,ua.zoneName=la,ua.dates=k("dates accessor is deprecated. Use date instead.",ta),ua.months=k("months accessor is deprecated. Use month instead",he),ua.years=k("years accessor is deprecated. Use year instead",me),ua.zone=k("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",mr),ua.isDSTShifted=k("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Sr);var fa=V.prototype;function pa(t,e,n,r){var i=bn(),a=v().set(r,e);return i[n](a,t)}function va(t,e,n){if(h(t)&&(e=t,t=void 0),t=t||"",null!=e)return pa(t,e,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=pa(t,r,n,"month");return i}function ga(t,e,n,r){"boolean"==typeof t?(h(e)&&(n=e,e=void 0),e=e||""):(n=e=t,t=!1,h(e)&&(n=e,e=void 0),e=e||"");var i,a=bn(),o=t?a._week.dow:0,s=[];if(null!=n)return pa(e,(n+o)%7,r,"day");for(i=0;i<7;i++)s[i]=pa(e,(i+o)%7,r,"day");return s}function ma(t,e){return va(t,e,"months")}function ya(t,e){return va(t,e,"monthsShort")}function ba(t,e,n){return ga(t,e,n,"weekdays")}function _a(t,e,n){return ga(t,e,n,"weekdaysShort")}function wa(t,e,n){return ga(t,e,n,"weekdaysMin")}fa.calendar=N,fa.longDateFormat=W,fa.invalidDate=K,fa.ordinal=J,fa.preparse=da,fa.postformat=da,fa.relativeTime=tt,fa.pastFuture=et,fa.set=M,fa.eras=Oi,fa.erasParse=Ai,fa.erasConvertYear=Mi,fa.erasAbbrRegex=Ii,fa.erasNameRegex=Bi,fa.erasNarrowRegex=Fi,fa.months=oe,fa.monthsShort=se,fa.monthsParse=ue,fa.monthsRegex=pe,fa.monthsShortRegex=fe,fa.week=Te,fa.firstDayOfYear=Ee,fa.firstDayOfWeek=Ce,fa.weekdays=Le,fa.weekdaysMin=ze,fa.weekdaysShort=Ye,fa.weekdaysParse=He,fa.weekdaysRegex=$e,fa.weekdaysShortRegex=Ke,fa.weekdaysMinRegex=Ze,fa.isPM=nn,fa.meridiem=on,gn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===ht(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),r.lang=k("moment.lang is deprecated. Use moment.locale instead.",gn),r.langData=k("moment.langData is deprecated. Use moment.localeData instead.",bn);var Da=Math.abs;function Sa(){var t=this._data;return this._milliseconds=Da(this._milliseconds),this._days=Da(this._days),this._months=Da(this._months),t.milliseconds=Da(t.milliseconds),t.seconds=Da(t.seconds),t.minutes=Da(t.minutes),t.hours=Da(t.hours),t.months=Da(t.months),t.years=Da(t.years),this}function xa(t,e,n,r){var i=Or(e,n);return t._milliseconds+=r*i._milliseconds,t._days+=r*i._days,t._months+=r*i._months,t._bubble()}function Ta(t,e){return xa(this,t,e,1)}function ka(t,e){return xa(this,t,e,-1)}function Ca(t){return t<0?Math.floor(t):Math.ceil(t)}function Ea(){var t,e,n,r,i,a=this._milliseconds,o=this._days,s=this._months,l=this._data;return a>=0&&o>=0&&s>=0||a<=0&&o<=0&&s<=0||(a+=864e5*Ca(Aa(s)+o),o=0,s=0),l.milliseconds=a%1e3,t=ct(a/1e3),l.seconds=t%60,e=ct(t/60),l.minutes=e%60,n=ct(e/60),l.hours=n%24,o+=ct(n/24),s+=i=ct(Oa(o)),o-=Ca(Aa(i)),r=ct(s/12),s%=12,l.days=o,l.months=s,l.years=r,this}function Oa(t){return 4800*t/146097}function Aa(t){return 146097*t/4800}function Ma(t){if(!this.isValid())return NaN;var e,n,r=this._milliseconds;if("month"===(t=it(t))||"quarter"===t||"year"===t)switch(e=this._days+r/864e5,n=this._months+Oa(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(Aa(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 Pa(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*ht(this._months/12):NaN}function Va(t){return function(){return this.as(t)}}var Ra=Va("ms"),Na=Va("s"),Ba=Va("m"),Ia=Va("h"),Fa=Va("d"),ja=Va("w"),La=Va("M"),Ya=Va("Q"),za=Va("y");function Ua(){return Or(this)}function Ha(t){return t=it(t),this.isValid()?this[t+"s"]():NaN}function Ga(t){return function(){return this.isValid()?this._data[t]:NaN}}var qa=Ga("milliseconds"),Wa=Ga("seconds"),$a=Ga("minutes"),Ka=Ga("hours"),Za=Ga("days"),Xa=Ga("months"),Ja=Ga("years");function Qa(){return ct(this.days()/7)}var to=Math.round,eo={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function no(t,e,n,r,i){return i.relativeTime(e||1,!!n,t,r)}function ro(t,e,n,r){var i=Or(t).abs(),a=to(i.as("s")),o=to(i.as("m")),s=to(i.as("h")),l=to(i.as("d")),u=to(i.as("M")),c=to(i.as("w")),h=to(i.as("y")),d=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||o<=1&&["m"]||o<n.m&&["mm",o]||s<=1&&["h"]||s<n.h&&["hh",s]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(d=d||c<=1&&["w"]||c<n.w&&["ww",c]),(d=d||u<=1&&["M"]||u<n.M&&["MM",u]||h<=1&&["y"]||["yy",h])[2]=e,d[3]=+t>0,d[4]=r,no.apply(null,d)}function io(t){return void 0===t?to:"function"==typeof t&&(to=t,!0)}function ao(t,e){return void 0!==eo[t]&&(void 0===e?eo[t]:(eo[t]=e,"s"===t&&(eo.ss=e-1),!0))}function oo(t,e){if(!this.isValid())return this.localeData().invalidDate();var n,r,i=!1,a=eo;return"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(i=t),"object"==typeof e&&(a=Object.assign({},eo,e),null!=e.s&&null==e.ss&&(a.ss=e.s-1)),r=ro(this,!i,a,n=this.localeData()),i&&(r=n.pastFuture(+this,r)),n.postformat(r)}var so=Math.abs;function lo(t){return(t>0)-(t<0)||+t}function uo(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n,r,i,a,o,s,l=so(this._milliseconds)/1e3,u=so(this._days),c=so(this._months),h=this.asSeconds();return h?(t=ct(l/60),e=ct(t/60),l%=60,t%=60,n=ct(c/12),c%=12,r=l?l.toFixed(3).replace(/\.?0+$/,""):"",i=h<0?"-":"",a=lo(this._months)!==lo(h)?"-":"",o=lo(this._days)!==lo(h)?"-":"",s=lo(this._milliseconds)!==lo(h)?"-":"",i+"P"+(n?a+n+"Y":"")+(c?a+c+"M":"")+(u?o+u+"D":"")+(e||t||l?"T":"")+(e?s+e+"H":"")+(t?s+t+"M":"")+(l?s+r+"S":"")):"P0D"}var co=sr.prototype;return co.isValid=ar,co.abs=Sa,co.add=Ta,co.subtract=ka,co.as=Ma,co.asMilliseconds=Ra,co.asSeconds=Na,co.asMinutes=Ba,co.asHours=Ia,co.asDays=Fa,co.asWeeks=ja,co.asMonths=La,co.asQuarters=Ya,co.asYears=za,co.valueOf=Pa,co._bubble=Ea,co.clone=Ua,co.get=Ha,co.milliseconds=qa,co.seconds=Wa,co.minutes=$a,co.hours=Ka,co.days=Za,co.weeks=Qa,co.months=Xa,co.years=Ja,co.humanize=oo,co.toISOString=uo,co.toString=uo,co.toJSON=uo,co.locale=si,co.localeData=ui,co.toIsoString=k("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",uo),co.lang=li,Y("X",0,0,"unix"),Y("x",0,0,"valueOf"),Nt("x",At),Nt("X",Vt),Lt("X",(function(t,e,n){n._d=new Date(1e3*parseFloat(t))})),Lt("x",(function(t,e,n){n._d=new Date(ht(t))})),
|
|
2
2
|
//! moment.js
|
|
3
|
-
r.version="2.29.4",i(Zn),r.fn=ua,r.min=tr,r.max=er,r.now=nr,r.utc=v,r.unix=ca,r.months=ma,r.isDate=d,r.locale=gn,r.invalid=b,r.duration=Or,r.isMoment=x,r.weekdays=ba,r.parseZone=ha,r.localeData=bn,r.isDuration=lr,r.monthsShort=ya,r.weekdaysMin=wa,r.defineLocale=mn,r.updateLocale=yn,r.locales=_n,r.weekdaysShort=_a,r.normalizeUnits=it,r.relativeTimeRounding=io,r.relativeTimeThreshold=ao,r.calendarFormat=zr,r.prototype=ua,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}()})),c={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:u().get("year")},{des:"月份",key:1005,mapField:"MONTH",mapping:"-",model:"2",name:"MONTH",value:u().get("month")},{des:"日期",key:1004,mapField:"DATE",mapping:"-",model:"2",name:"DATE",value:u().get("date")},{des:"星期",key:1003,mapField:"WEEK",mapping:"-",model:"2",name:"WEEK",value:u().format("dddd")},{des:"版本",key:1002,mapField:"VERSION",mapping:"-",model:"2",name:"VERSION",value:"1.0.0"},{des:"手机号",key:2001,mapField:"U_PHONE",mapping:"-",model:"2",name:"U_PHONE",value:""},{des:"用户省",key:2002,mapField:"U_PROVINCE",mapping:"-",model:"2",name:"U_PROVINCE",value:""},{des:"用户市",key:2003,mapField:"U_CITY",mapping:"-",model:"2",name:"U_CITY",value:""},{des:"用户区县",key:2004,mapField:"U_COUNTY",mapping:"-",model:"2",name:"U_COUNTY",value:""}],historyFlag:!0,shareComs:new Map},h=function(t,e){return h=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])},h(t,e)};var d=function(){return d=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},d.apply(this,arguments)};function f(t,e,n,r){return new(n||(n=Promise))((function(i,a){function o(t){try{l(r.next(t))}catch(t){a(t)}}function s(t){try{l(r.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}l((r=r.apply(t,e||[])).next())}))}function p(t,e){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=e.call(t,o)}catch(t){s=[6,t],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}function v(t,e,n){if(n||2===arguments.length)for(var r,i=0,a=e.length;i<a;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError;var g={createItem:function(t){t.catch={selectd:i.default.cloneDeep(t.selectd),list:i.default.cloneDeep(t.list)}},resetData:function(t,e){if(t.historyFlag){var n=i.default.cloneDeep(e);t.selected=n.selected,t.list=n.list}},execute:function(t){t.historyFlag&&(t.undoRedoPointer===t.undos.length-1?(t.undos.length>5&&i.default.pullAt(t.undos,0),t.undos.push({selectd:i.default.cloneDeep(t.selectd),list:i.default.cloneDeep(t.list)})):t.undos.splice(t.undoRedoPointer+1,t.undos.length-1-t.undoRedoPointer,{selectd:i.default.cloneDeep(t.selectd),list:i.default.cloneDeep(t.list)}),t.undoRedoPointer=t.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)}},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"]),y=URL.createObjectURL(m);function b(t,e){return void 0===e&&(e=5e3),f(this,void 0,void 0,(function(){var n;return p(this,(function(r){return n=new Worker(y),[2,new Promise((function(r,i){var a=function(){clearTimeout(s),n.removeEventListener("message",o),n.terminate(),n=null},o=function(t){var e=t.data,n=e.code,o=e.result,s=e.err;a(),1===n?r(o):i(s)};n.postMessage({code:t}),n.addEventListener("message",o);var s=setTimeout((function(){a(),i("timeout")}),e)}))]}))}))}function _(t,e,n,r,a){return f(this,void 0,void 0,(function(){var n,a,o,s,l,u,c;return p(this,(function(h){switch(h.label){case 0:if(n=t,a=i.default.cloneDeep(e),o=a.use,s=a.data,!o)return[3,4];u=function(t){var e,a;return p(this,(function(o){switch(o.label){case 0:return s[t].use?(e=s[t].dependVars,a={},r&&a&&e&&e.length&&e.map((function(t){var e=i.default.cloneDeep(r).filter((function(e){var n=e.mapField==t;return n&&(a[t]=e.value),n}));e&&0!=e.length||(a[t]="")})),[4,w(s[t].code,n,a,s[t].mode?s[t].mode:"worker")]):[3,2];case 1:l=o.sent(),n=l.data,o.label=2;case 2:return[2]}}))},c=0,h.label=1;case 1:return c<s.length?[5,u(c)]:[3,4];case 2:h.sent(),h.label=3;case 3:return c++,[3,1];case 4:return[2,n]}}))}))}function w(t,e,n,r){return void 0===n&&(n={}),void 0===r&&(r="worker"),f(this,void 0,void 0,(function(){var i,a,o,s,l,u,c,h,d;return p(this,(function(f){switch(f.label){case 0:return f.trys.push([0,4,,5]),"window"!=r?[3,1]:(a=(i=[["data"],[e]])[0],o=i[1],"object"==typeof n&&Object.keys(n).forEach((function(t){a.push(t),o.push(n[t])})),s=new(Function.bind.apply(Function,v(v([void 0],a,!1),[t],!1))),[2,{success:!0,data:s.apply(void 0,o)}]);case 1:return c=(l=[e,n,""])[1],h=l[2],"object"==typeof(u=l[0])&&(u=JSON.stringify(e)),"object"==typeof n&&(c=JSON.stringify(n)),Object.keys(n).forEach((function(t){return h+="".concat(t,",")})),d="let data=eval(".concat(u,"); \n let app=").concat(JSON.stringify({}),";"),d+=h?"let {".concat(h,"} = eval(").concat(c,"); "):"",[4,b(d+="".concat(t))];case 2:return[2,{success:!0,data:f.sent()}];case 3:return[3,5];case 4:return[2,{success:!1,error:f.sent(),data:e}];case 5:return[2]}}))}))}var 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 T=S,k=x;function C(t){if(T===setTimeout)return setTimeout(t,0);if((T===S||!T)&&setTimeout)return T=setTimeout,setTimeout(t,0);try{return T(t,0)}catch(e){try{return T.call(null,t,0)}catch(e){return T.call(this,t,0)}}}"function"==typeof D.setTimeout&&(T=setTimeout),"function"==typeof D.clearTimeout&&(k=clearTimeout);var E,O=[],A=!1,M=-1;function P(){A&&E&&(A=!1,E.length?O=E.concat(O):M=-1,O.length&&V())}function V(){if(!A){var t=C(P);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(k===clearTimeout)return clearTimeout(t);if((k===x||!k)&&clearTimeout)return k=clearTimeout,clearTimeout(t);try{return k(t)}catch(e){try{return k.call(null,t)}catch(e){return k.call(this,t)}}}(t)}}function R(t,e){this.fun=t,this.array=e}R.prototype.run=function(){this.fun.apply(null,this.array)};function N(){}var B=N,I=N,F=N,j=N,L=N,Y=N,z=N;var U=D.performance||{},H=U.now||U.mozNow||U.msNow||U.oNow||U.webkitNow||function(){return(new Date).getTime()};var G=new Date;var W={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 R(t,e)),1!==O.length||A||C(V)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:B,addListener:I,once:F,off:j,removeListener:L,removeAllListeners:Y,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*H.call(U),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-G)/1e3}},q="0123456789abcdefghijklmnopqrstuvwxyz";function $(t){return q.charAt(t)}function K(t,e){return t&e}function Z(t,e){return t|e}function X(t,e){return t^e}function J(t,e){return t&~e}function Q(t){if(0==t)return-1;var e=0;return 0==(65535&t)&&(t>>=16,e+=16),0==(255&t)&&(t>>=8,e+=8),0==(15&t)&&(t>>=4,e+=4),0==(3&t)&&(t>>=2,e+=2),0==(1&t)&&++e,e}function tt(t){for(var e=0;0!=t;)t&=t-1,++e;return e}var et,nt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function rt(t){var e,n,r="";for(e=0;e+3<=t.length;e+=3)n=parseInt(t.substring(e,e+3),16),r+=nt.charAt(n>>6)+nt.charAt(63&n);for(e+1==t.length?(n=parseInt(t.substring(e,e+1),16),r+=nt.charAt(n<<2)):e+2==t.length&&(n=parseInt(t.substring(e,e+2),16),r+=nt.charAt(n>>2)+nt.charAt((3&n)<<4));(3&r.length)>0;)r+="=";return r}function it(t){var e,n="",r=0,i=0;for(e=0;e<t.length&&"="!=t.charAt(e);++e){var a=nt.indexOf(t.charAt(e));a<0||(0==r?(n+=$(a>>2),i=3&a,r=1):1==r?(n+=$(i<<2|a>>4),i=15&a,r=2):2==r?(n+=$(i),n+=$(a>>2),i=3&a,r=3):(n+=$(i<<2|a>>4),n+=$(15&a),r=0))}return 1==r&&(n+=$(i<<2)),n}var at,ot=function(t){var e;if(void 0===et){var n="0123456789ABCDEF",r=" \f\n\r\t \u2028\u2029";for(et={},e=0;e<16;++e)et[n.charAt(e)]=e;for(n=n.toLowerCase(),e=10;e<16;++e)et[n.charAt(e)]=e;for(e=0;e<8;++e)et[r.charAt(e)]=-1}var i=[],a=0,o=0;for(e=0;e<t.length;++e){var s=t.charAt(e);if("="==s)break;if(-1!=(s=et[s])){if(void 0===s)throw new Error("Illegal character at offset "+e);a|=s,++o>=2?(i[i.length]=a,a=0,o=0):a<<=4}}if(o)throw new Error("Hex encoding incomplete: 4 bits missing");return i},st={decode:function(t){var e;if(void 0===at){var n="= \f\n\r\t \u2028\u2029";for(at=Object.create(null),e=0;e<64;++e)at["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)]=e;for(at["-"]=62,at._=63,e=0;e<9;++e)at[n.charAt(e)]=-1}var r=[],i=0,a=0;for(e=0;e<t.length;++e){var o=t.charAt(e);if("="==o)break;if(-1!=(o=at[o])){if(void 0===o)throw new Error("Illegal character at offset "+e);i|=o,++a>=4?(r[r.length]=i>>16,r[r.length]=i>>8&255,r[r.length]=255&i,i=0,a=0):i<<=6}}switch(a){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:r[r.length]=i>>10;break;case 3:r[r.length]=i>>16,r[r.length]=i>>8&255}return r},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(t){var e=st.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 st.decode(t)}},lt=1e13,ut=function(){function t(t){this.buf=[+t||0]}return t.prototype.mulAdd=function(t,e){var n,r,i=this.buf,a=i.length;for(n=0;n<a;++n)(r=i[n]*t+e)<lt?e=0:r-=(e=0|r/lt)*lt,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+=lt,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+=(lt+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*lt+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)?)?$/,ht=/^(\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 dt(t,e){return t.length>e&&(t=t.substring(0,e)+"…"),t}var ft,pt=function(){function t(e,n){this.hexDigits="0123456789ABCDEF",e instanceof t?(this.enc=e.enc,this.pos=e.pos):(this.enc=e,this.pos=n)}return t.prototype.get=function(t){if(void 0===t&&(t=this.pos++),t>=this.enc.length)throw new Error("Requesting byte offset ".concat(t," on a stream of length ").concat(this.enc.length));return"string"==typeof this.enc?this.enc.charCodeAt(t):this.enc[t]},t.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(15&t)},t.prototype.hexDump=function(t,e,n){for(var r="",i=t;i<e;++i)if(r+=this.hexByte(this.get(i)),!0!==n)switch(15&i){case 7:r+=" ";break;case 15:r+="\n";break;default:r+=" "}return r},t.prototype.isASCII=function(t,e){for(var n=t;n<e;++n){var r=this.get(n);if(r<32||r>176)return!1}return!0},t.prototype.parseStringISO=function(t,e){for(var n="",r=t;r<e;++r)n+=String.fromCharCode(this.get(r));return n},t.prototype.parseStringUTF=function(t,e){for(var n="",r=t;r<e;){var i=this.get(r++);n+=i<128?String.fromCharCode(i):i>191&&i<224?String.fromCharCode((31&i)<<6|63&this.get(r++)):String.fromCharCode((15&i)<<12|(63&this.get(r++))<<6|63&this.get(r++))}return n},t.prototype.parseStringBMP=function(t,e){for(var n,r,i="",a=t;a<e;)n=this.get(a++),r=this.get(a++),i+=String.fromCharCode(n<<8|r);return i},t.prototype.parseTime=function(t,e,n){var r=this.parseStringISO(t,e),i=(n?ct:ht).exec(r);return i?(n&&(i[1]=+i[1],i[1]+=+i[1]<70?2e3:1900),r=i[1]+"-"+i[2]+"-"+i[3]+" "+i[4],i[5]&&(r+=":"+i[5],i[6]&&(r+=":"+i[6],i[7]&&(r+="."+i[7]))),i[8]&&(r+=" UTC","Z"!=i[8]&&(r+=i[8],i[9]&&(r+=":"+i[9]))),r):"Unrecognized time: "+r},t.prototype.parseInteger=function(t,e){for(var n,r=this.get(t),i=r>127,a=i?255:0,o="";r==a&&++t<e;)r=this.get(t);if(0===(n=e-t))return i?-1:0;if(n>4){for(o=r,n<<=3;0==(128&(+o^a));)o=+o<<1,--n;o="("+n+" bit)\n"}i&&(r-=256);for(var s=new ut(r),l=t+1;l<e;++l)s.mulAdd(256,this.get(l));return o+s.toString()},t.prototype.parseBitString=function(t,e,n){for(var r=this.get(t),i="("+((e-t-1<<3)-r)+" bit)\n",a="",o=t+1;o<e;++o){for(var s=this.get(o),l=o==e-1?r:0,u=7;u>=l;--u)a+=s>>u&1?"1":"0";if(a.length>n)return i+dt(a,n)}return i+a},t.prototype.parseOctetString=function(t,e,n){if(this.isASCII(t,e))return dt(this.parseStringISO(t,e),n);var r=e-t,i="("+r+" byte)\n";r>(n/=2)&&(e=t+n);for(var a=t;a<e;++a)i+=this.hexByte(this.get(a));return r>n&&(i+="…"),i},t.prototype.parseOID=function(t,e,n){for(var r="",i=new ut,a=0,o=t;o<e;++o){var s=this.get(o);if(i.mulAdd(128,127&s),a+=7,!(128&s)){if(""===r)if((i=i.simplify())instanceof ut)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 dt(r,n);i=new ut,a=0}}return a>0&&(r+=".incomplete"),r},t}(),vt=function(){function t(t,e,n,r,i){if(!(r instanceof gt))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 dt(this.stream.parseStringUTF(e,e+n),t);case 18:case 19:case 20:case 21:case 22:case 26:return dt(this.stream.parseStringISO(e,e+n),t);case 30:return dt(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 pt?e:new pt(e,0);var r=new pt(n),i=new gt(n),a=t.decodeLength(n),o=n.pos,s=o-r.pos,l=null,u=function(){var e=[];if(null!==a){for(var r=o+a;n.pos<r;)e[e.length]=t.decode(n);if(n.pos!=r)throw new Error("Content size is not correct for container starting at offset "+o)}else try{for(;;){var i=t.decode(n);if(i.tag.isEOC())break;e[e.length]=i}a=o-n.pos}catch(t){throw new Error("Exception while decoding undefined length content: "+t)}return e};if(i.tagConstructed)l=u();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=u();for(var c=0;c<l.length;++c)if(l[c].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(t){l=null}if(null===l){if(null===a)throw new Error("We can't skip over an invalid tag with undefined length at offset "+o);n.pos=o+Math.abs(a)}return new t(r,s,a,i,l)},t}(),gt=function(){function t(t){var e=t.get();if(this.tagClass=e>>6,this.tagConstructed=0!=(32&e),this.tagNumber=31&e,31==this.tagNumber){var n=new ut;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}(),mt=[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],yt=(1<<26)/mt[mt.length-1],bt=function(){function t(t,e,n){null!=t&&("number"==typeof t?this.fromNumber(t,e,n):null==e&&"string"!=typeof t?this.fromString(t,256):this.fromString(t,e))}return t.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else{if(4!=t)return this.toRadix(t);e=2}var n,r=(1<<e)-1,i=!1,a="",o=this.t,s=this.DB-o*this.DB%e;if(o-- >0)for(s<this.DB&&(n=this[o]>>s)>0&&(i=!0,a=$(n));o>=0;)s<e?(n=(this[o]&(1<<s)-1)<<e-s,n|=this[--o]>>(s+=this.DB-e)):(n=this[o]>>(s-=e)&r,s<=0&&(s+=this.DB,--o)),n>0&&(i=!0),i&&(a+=$(n));return i?a:"0"},t.prototype.negate=function(){var e=xt();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)+Pt(this[this.t-1]^this.s&this.DM)},t.prototype.mod=function(e){var n=xt();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 Dt(e),this.exp(t,n)},t.prototype.clone=function(){var t=xt();return this.copyTo(t),t},t.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},t.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},t.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},t.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},t.prototype.toByteArray=function(){var t=this.t,e=[];e[0]=this.s;var n,r=this.DB-t*this.DB%8,i=0;if(t-- >0)for(r<this.DB&&(n=this[t]>>r)!=(this.s&this.DM)>>r&&(e[i++]=n|this.s<<this.DB-r);t>=0;)r<8?(n=(this[t]&(1<<r)-1)<<8-r,n|=this[--t]>>(r+=this.DB-8)):(n=this[t]>>(r-=8)&255,r<=0&&(r+=this.DB,--t)),0!=(128&n)&&(n|=-256),0==i&&(128&this.s)!=(128&n)&&++i,(i>0||n!=this.s)&&(e[i++]=n);return e},t.prototype.equals=function(t){return 0==this.compareTo(t)},t.prototype.min=function(t){return this.compareTo(t)<0?this:t},t.prototype.max=function(t){return this.compareTo(t)>0?this:t},t.prototype.and=function(t){var e=xt();return this.bitwiseTo(t,K,e),e},t.prototype.or=function(t){var e=xt();return this.bitwiseTo(t,Z,e),e},t.prototype.xor=function(t){var e=xt();return this.bitwiseTo(t,X,e),e},t.prototype.andNot=function(t){var e=xt();return this.bitwiseTo(t,J,e),e},t.prototype.not=function(){for(var t=xt(),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=xt();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},t.prototype.shiftRight=function(t){var e=xt();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+Q(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+=tt(this[n]^e);return t},t.prototype.testBit=function(t){var e=Math.floor(t/this.DB);return e>=this.t?0!=this.s:0!=(this[e]&1<<t%this.DB)},t.prototype.setBit=function(t){return this.changeBit(t,Z)},t.prototype.clearBit=function(t){return this.changeBit(t,J)},t.prototype.flipBit=function(t){return this.changeBit(t,X)},t.prototype.add=function(t){var e=xt();return this.addTo(t,e),e},t.prototype.subtract=function(t){var e=xt();return this.subTo(t,e),e},t.prototype.multiply=function(t){var e=xt();return this.multiplyTo(t,e),e},t.prototype.divide=function(t){var e=xt();return this.divRemTo(t,e,null),e},t.prototype.remainder=function(t){var e=xt();return this.divRemTo(t,null,e),e},t.prototype.divideAndRemainder=function(t){var e=xt(),n=xt();return this.divRemTo(t,e,n),[e,n]},t.prototype.modPow=function(t,e){var n,r,i=t.bitLength(),a=Mt(1);if(i<=0)return a;n=i<18?1:i<48?3:i<144?4:i<768?5:6,r=i<8?new wt(e):e.isEven()?new St(e):new Dt(e);var o=[],s=3,l=n-1,u=(1<<n)-1;if(o[1]=r.convert(this),n>1){var c=xt();for(r.sqrTo(o[1],c);s<=u;)o[s]=xt(),r.mulTo(c,o[s-2],o[s]),s+=2}var h,d,f=t.t-1,p=!0,v=xt();for(i=Pt(t[f])-1;f>=0;){for(i>=l?h=t[f]>>i-l&u:(h=(t[f]&(1<<i+1)-1)<<l-i,f>0&&(h|=t[f-1]>>this.DB+i-l)),s=n;0==(1&h);)h>>=1,--s;if((i-=s)<0&&(i+=this.DB,--f),p)o[h].copyTo(a),p=!1;else{for(;s>1;)r.sqrTo(a,v),r.sqrTo(v,a),s-=2;s>0?r.sqrTo(a,v):(d=a,a=v,v=d),r.mulTo(v,o[h],a)}for(;f>=0&&0==(t[f]&1<<i);)r.sqrTo(a,v),d=a,a=v,v=d,--i<0&&(i=this.DB-1,--f)}return r.revert(a)},t.prototype.modInverse=function(e){var n=e.isEven();if(this.isEven()&&n||0==e.signum())return t.ZERO;for(var r=e.clone(),i=this.clone(),a=Mt(1),o=Mt(0),s=Mt(0),l=Mt(1);0!=r.signum();){for(;r.isEven();)r.rShiftTo(1,r),n?(a.isEven()&&o.isEven()||(a.addTo(this,a),o.subTo(e,o)),a.rShiftTo(1,a)):o.isEven()||o.subTo(e,o),o.rShiftTo(1,o);for(;i.isEven();)i.rShiftTo(1,i),n?(s.isEven()&&l.isEven()||(s.addTo(this,s),l.subTo(e,l)),s.rShiftTo(1,s)):l.isEven()||l.subTo(e,l),l.rShiftTo(1,l);r.compareTo(i)>=0?(r.subTo(i,r),n&&a.subTo(s,a),o.subTo(l,o)):(i.subTo(r,i),n&&s.subTo(a,s),l.subTo(o,l))}return 0!=i.compareTo(t.ONE)?t.ZERO:l.compareTo(e)>=0?l.subtract(e):l.signum()<0?(l.addTo(e,l),l.signum()<0?l.add(e):l):l},t.prototype.pow=function(t){return this.exp(t,new _t)},t.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),n=t.s<0?t.negate():t.clone();if(e.compareTo(n)<0){var r=e;e=n,n=r}var i=e.getLowestSetBit(),a=n.getLowestSetBit();if(a<0)return e;for(i<a&&(a=i),a>0&&(e.rShiftTo(a,e),n.rShiftTo(a,n));e.signum()>0;)(i=e.getLowestSetBit())>0&&e.rShiftTo(i,e),(i=n.getLowestSetBit())>0&&n.rShiftTo(i,n),e.compareTo(n)>=0?(e.subTo(n,e),e.rShiftTo(1,e)):(n.subTo(e,n),n.rShiftTo(1,n));return a>0&&n.lShiftTo(a,n),n},t.prototype.isProbablePrime=function(t){var e,n=this.abs();if(1==n.t&&n[0]<=mt[mt.length-1]){for(e=0;e<mt.length;++e)if(n[0]==mt[e])return!0;return!1}if(n.isEven())return!1;for(e=1;e<mt.length;){for(var r=mt[e],i=e+1;i<mt.length&&r<yt;)r*=mt[i++];for(r=n.modInt(r);e<i;)if(r%mt[e++]==0)return!1}return n.millerRabin(t)},t.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},t.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},t.prototype.fromString=function(e,n){var r;if(16==n)r=4;else if(8==n)r=3;else if(256==n)r=8;else if(2==n)r=1;else if(32==n)r=5;else{if(4!=n)return void this.fromRadix(e,n);r=2}this.t=0,this.s=0;for(var i=e.length,a=!1,o=0;--i>=0;){var s=8==r?255&+e[i]:At(e,i);s<0?"-"==e.charAt(i)&&(a=!0):(a=!1,0==o?this[this.t++]=s:o+r>this.DB?(this[this.t-1]|=(s&(1<<this.DB-o)-1)<<o,this[this.t++]=s>>this.DB-o):this[this.t-1]|=s<<o,(o+=r)>=this.DB&&(o-=this.DB))}8==r&&0!=(128&+e[0])&&(this.s=-1,o>0&&(this[this.t-1]|=(1<<this.DB-o)-1<<o)),this.clamp(),a&&t.ZERO.subTo(this,this)},t.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},t.prototype.dlShiftTo=function(t,e){var n;for(n=this.t-1;n>=0;--n)e[n+t]=this[n];for(n=t-1;n>=0;--n)e[n]=0;e.t=this.t+t,e.s=this.s},t.prototype.drShiftTo=function(t,e){for(var n=t;n<this.t;++n)e[n-t]=this[n];e.t=Math.max(this.t-t,0),e.s=this.s},t.prototype.lShiftTo=function(t,e){for(var n=t%this.DB,r=this.DB-n,i=(1<<r)-1,a=Math.floor(t/this.DB),o=this.s<<n&this.DM,s=this.t-1;s>=0;--s)e[s+a+1]=this[s]>>r|o,o=(this[s]&i)<<n;for(s=a-1;s>=0;--s)e[s]=0;e[a]=o,e.t=this.t+a+1,e.s=this.s,e.clamp()},t.prototype.rShiftTo=function(t,e){e.s=this.s;var n=Math.floor(t/this.DB);if(n>=this.t)e.t=0;else{var r=t%this.DB,i=this.DB-r,a=(1<<r)-1;e[0]=this[n]>>r;for(var o=n+1;o<this.t;++o)e[o-n-1]|=(this[o]&a)<<i,e[o-n]=this[o]>>r;r>0&&(e[this.t-n-1]|=(this.s&a)<<i),e.t=this.t-n,e.clamp()}},t.prototype.subTo=function(t,e){for(var n=0,r=0,i=Math.min(t.t,this.t);n<i;)r+=this[n]-t[n],e[n++]=r&this.DM,r>>=this.DB;if(t.t<this.t){for(r-=t.s;n<this.t;)r+=this[n],e[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<t.t;)r-=t[n],e[n++]=r&this.DM,r>>=this.DB;r-=t.s}e.s=r<0?-1:0,r<-1?e[n++]=this.DV+r:r>0&&(e[n++]=r),e.t=n,e.clamp()},t.prototype.multiplyTo=function(e,n){var r=this.abs(),i=e.abs(),a=r.t;for(n.t=a+i.t;--a>=0;)n[a]=0;for(a=0;a<i.t;++a)n[a+r.t]=r.am(0,i[a],n,a,0,r.t);n.s=0,n.clamp(),this.s!=e.s&&t.ZERO.subTo(n,n)},t.prototype.squareTo=function(t){for(var e=this.abs(),n=t.t=2*e.t;--n>=0;)t[n]=0;for(n=0;n<e.t-1;++n){var r=e.am(n,e[n],t,2*n,0,1);(t[n+e.t]+=e.am(n+1,2*e[n],t,2*n+1,r,e.t-n-1))>=e.DV&&(t[n+e.t]-=e.DV,t[n+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(n,e[n],t,2*n,0,1)),t.s=0,t.clamp()},t.prototype.divRemTo=function(e,n,r){var i=e.abs();if(!(i.t<=0)){var a=this.abs();if(a.t<i.t)return null!=n&&n.fromInt(0),void(null!=r&&this.copyTo(r));null==r&&(r=xt());var o=xt(),s=this.s,l=e.s,u=this.DB-Pt(i[i.t-1]);u>0?(i.lShiftTo(u,o),a.lShiftTo(u,r)):(i.copyTo(o),a.copyTo(r));var c=o.t,h=o[c-1];if(0!=h){var d=h*(1<<this.F1)+(c>1?o[c-2]>>this.F2:0),f=this.FV/d,p=(1<<this.F1)/d,v=1<<this.F2,g=r.t,m=g-c,y=null==n?xt():n;for(o.dlShiftTo(m,y),r.compareTo(y)>=0&&(r[r.t++]=1,r.subTo(y,r)),t.ONE.dlShiftTo(c,y),y.subTo(o,o);o.t<c;)o[o.t++]=0;for(;--m>=0;){var b=r[--g]==h?this.DM:Math.floor(r[g]*f+(r[g-1]+v)*p);if((r[g]+=o.am(0,b,r,m,0,c))<b)for(o.dlShiftTo(m,y),r.subTo(y,r);r[g]<--b;)r.subTo(y,r)}null!=n&&(r.drShiftTo(c,n),s!=l&&t.ZERO.subTo(n,n)),r.t=c,r.clamp(),u>0&&r.rShiftTo(u,r),s<0&&t.ZERO.subTo(r,r)}}},t.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;return(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)>0?this.DV-e:-e},t.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},t.prototype.exp=function(e,n){if(e>4294967295||e<1)return t.ONE;var r=xt(),i=xt(),a=n.convert(this),o=Pt(e)-1;for(a.copyTo(r);--o>=0;)if(n.sqrTo(r,i),(e&1<<o)>0)n.mulTo(i,a,r);else{var s=r;r=i,i=s}return n.revert(r)},t.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},t.prototype.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||t>36)return"0";var e=this.chunkSize(t),n=Math.pow(t,e),r=Mt(n),i=xt(),a=xt(),o="";for(this.divRemTo(r,i,a);i.signum()>0;)o=(n+a.intValue()).toString(t).substr(1)+o,i.divRemTo(r,i,a);return a.intValue().toString(t)+o},t.prototype.fromRadix=function(e,n){this.fromInt(0),null==n&&(n=10);for(var r=this.chunkSize(n),i=Math.pow(n,r),a=!1,o=0,s=0,l=0;l<e.length;++l){var u=At(e,l);u<0?"-"==e.charAt(l)&&0==this.signum()&&(a=!0):(s=n*s+u,++o>=r&&(this.dMultiply(i),this.dAddOffset(s,0),o=0,s=0))}o>0&&(this.dMultiply(Math.pow(n,o)),this.dAddOffset(s,0)),a&&t.ZERO.subTo(this,this)},t.prototype.fromNumber=function(e,n,r){if("number"==typeof n)if(e<2)this.fromInt(1);else for(this.fromNumber(e,r),this.testBit(e-1)||this.bitwiseTo(t.ONE.shiftLeft(e-1),Z,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(n);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(t.ONE.shiftLeft(e-1),this);else{var i=[],a=7&e;i.length=1+(e>>3),n.nextBytes(i),a>0?i[0]&=(1<<a)-1:i[0]=0,this.fromString(i,256)}},t.prototype.bitwiseTo=function(t,e,n){var r,i,a=Math.min(t.t,this.t);for(r=0;r<a;++r)n[r]=e(this[r],t[r]);if(t.t<this.t){for(i=t.s&this.DM,r=a;r<this.t;++r)n[r]=e(this[r],i);n.t=this.t}else{for(i=this.s&this.DM,r=a;r<t.t;++r)n[r]=e(i,t[r]);n.t=t.t}n.s=e(this.s,t.s),n.clamp()},t.prototype.changeBit=function(e,n){var r=t.ONE.shiftLeft(e);return this.bitwiseTo(r,n,r),r},t.prototype.addTo=function(t,e){for(var n=0,r=0,i=Math.min(t.t,this.t);n<i;)r+=this[n]+t[n],e[n++]=r&this.DM,r>>=this.DB;if(t.t<this.t){for(r+=t.s;n<this.t;)r+=this[n],e[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<t.t;)r+=t[n],e[n++]=r&this.DM,r>>=this.DB;r+=t.s}e.s=r<0?-1:0,r>0?e[n++]=r:r<-1&&(e[n++]=this.DV+r),e.t=n,e.clamp()},t.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},t.prototype.dAddOffset=function(t,e){if(0!=t){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},t.prototype.multiplyLowerTo=function(t,e,n){var r=Math.min(this.t+t.t,e);for(n.s=0,n.t=r;r>0;)n[--r]=0;for(var i=n.t-this.t;r<i;++r)n[r+this.t]=this.am(0,t[r],n,r,0,this.t);for(i=Math.min(t.t,e);r<i;++r)this.am(0,t[r],n,r,0,e-r);n.clamp()},t.prototype.multiplyUpperTo=function(t,e,n){--e;var r=n.t=this.t+t.t-e;for(n.s=0;--r>=0;)n[r]=0;for(r=Math.max(e-this.t,0);r<t.t;++r)n[this.t+r-e]=this.am(e-r,t[r],n,0,0,this.t+r-e);n.clamp(),n.drShiftTo(1,n)},t.prototype.modInt=function(t){if(t<=0)return 0;var e=this.DV%t,n=this.s<0?t-1:0;if(this.t>0)if(0==e)n=this[0]%t;else for(var r=this.t-1;r>=0;--r)n=(e*n+this[r])%t;return n},t.prototype.millerRabin=function(e){var n=this.subtract(t.ONE),r=n.getLowestSetBit();if(r<=0)return!1;var i=n.shiftRight(r);(e=e+1>>1)>mt.length&&(e=mt.length);for(var a=xt(),o=0;o<e;++o){a.fromInt(mt[Math.floor(Math.random()*mt.length)]);var s=a.modPow(i,this);if(0!=s.compareTo(t.ONE)&&0!=s.compareTo(n)){for(var l=1;l++<r&&0!=s.compareTo(n);)if(0==(s=s.modPowInt(2,this)).compareTo(t.ONE))return!1;if(0!=s.compareTo(n))return!1}}return!0},t.prototype.square=function(){var t=xt();return this.squareTo(t),t},t.prototype.gcda=function(t,e){var n=this.s<0?this.negate():this.clone(),r=t.s<0?t.negate():t.clone();if(n.compareTo(r)<0){var i=n;n=r,r=i}var a=n.getLowestSetBit(),o=r.getLowestSetBit();if(o<0)e(n);else{a<o&&(o=a),o>0&&(n.rShiftTo(o,n),r.rShiftTo(o,r));var s=function(){(a=n.getLowestSetBit())>0&&n.rShiftTo(a,n),(a=r.getLowestSetBit())>0&&r.rShiftTo(a,r),n.compareTo(r)>=0?(n.subTo(r,n),n.rShiftTo(1,n)):(r.subTo(n,r),r.rShiftTo(1,r)),n.signum()>0?setTimeout(s,0):(o>0&&r.lShiftTo(o,r),setTimeout((function(){e(r)}),0))};setTimeout(s,10)}},t.prototype.fromNumberAsync=function(e,n,r,i){if("number"==typeof n)if(e<2)this.fromInt(1);else{this.fromNumber(e,r),this.testBit(e-1)||this.bitwiseTo(t.ONE.shiftLeft(e-1),Z,this),this.isEven()&&this.dAddOffset(1,0);var a=this,o=function(){a.dAddOffset(2,0),a.bitLength()>e&&a.subTo(t.ONE.shiftLeft(e-1),a),a.isProbablePrime(n)?setTimeout((function(){i()}),0):setTimeout(o,0)};setTimeout(o,0)}else{var s=[],l=7&e;s.length=1+(e>>3),n.nextBytes(s),l>0?s[0]&=(1<<l)-1:s[0]=0,this.fromString(s,256)}},t}(),_t=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}(),Dt=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=xt();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(bt.ZERO)>0&&this.m.subTo(e,e),e},t.prototype.revert=function(t){var e=xt();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}(),St=function(){function t(t){this.m=t,this.r2=xt(),this.q3=xt(),bt.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=xt();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 xt(){return new bt(null)}function Tt(t,e){return new bt(t,e)}var kt="undefined"!=typeof navigator;kt&&"Microsoft Internet Explorer"==navigator.appName?(bt.prototype.am=function(t,e,n,r,i,a){for(var o=32767&e,s=e>>15;--a>=0;){var l=32767&this[t],u=this[t++]>>15,c=s*l+u*o;i=((l=o*l+((32767&c)<<15)+n[r]+(1073741823&i))>>>30)+(c>>>15)+s*u+(i>>>30),n[r++]=1073741823&l}return i},ft=30):kt&&"Netscape"!=navigator.appName?(bt.prototype.am=function(t,e,n,r,i,a){for(;--a>=0;){var o=e*this[t++]+n[r]+i;i=Math.floor(o/67108864),n[r++]=67108863&o}return i},ft=26):(bt.prototype.am=function(t,e,n,r,i,a){for(var o=16383&e,s=e>>14;--a>=0;){var l=16383&this[t],u=this[t++]>>14,c=s*l+u*o;i=((l=o*l+((16383&c)<<14)+n[r]+i)>>28)+(c>>14)+s*u,n[r++]=268435455&l}return i},ft=28),bt.prototype.DB=ft,bt.prototype.DM=(1<<ft)-1,bt.prototype.DV=1<<ft;bt.prototype.FV=Math.pow(2,52),bt.prototype.F1=52-ft,bt.prototype.F2=2*ft-52;var Ct,Et,Ot=[];for(Ct="0".charCodeAt(0),Et=0;Et<=9;++Et)Ot[Ct++]=Et;for(Ct="a".charCodeAt(0),Et=10;Et<36;++Et)Ot[Ct++]=Et;for(Ct="A".charCodeAt(0),Et=10;Et<36;++Et)Ot[Ct++]=Et;function At(t,e){var n=Ot[t.charCodeAt(e)];return null==n?-1:n}function Mt(t){var e=xt();return e.fromInt(t),e}function Pt(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}bt.ZERO=Mt(0),bt.ONE=Mt(1);var Vt=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 Rt,Nt,Bt=null;if(null==Bt){Bt=[],Nt=0;var It=void 0;if("undefined"!=typeof window&&window.crypto&&window.crypto.getRandomValues){var Ft=new Uint32Array(256);for(window.crypto.getRandomValues(Ft),It=0;It<Ft.length;++It)Bt[Nt++]=255&Ft[It]}var jt=0,Lt=function(t){if((jt=jt||0)>=256||Nt>=256)window.removeEventListener?window.removeEventListener("mousemove",Lt,!1):window.detachEvent&&window.detachEvent("onmousemove",Lt);else try{var e=t.x+t.y;Bt[Nt++]=255&e,jt+=1}catch(t){}};"undefined"!=typeof window&&(window.addEventListener?window.addEventListener("mousemove",Lt,!1):window.attachEvent&&window.attachEvent("onmousemove",Lt))}function Yt(){if(null==Rt){for(Rt=new Vt;Nt<256;){var t=Math.floor(65536*Math.random());Bt[Nt++]=255&t}for(Rt.init(Bt),Nt=0;Nt<Bt.length;++Nt)Bt[Nt]=0;Nt=0}return Rt.next()}var zt=function(){function t(){}return t.prototype.nextBytes=function(t){for(var e=0;e<t.length;++e)t[e]=Yt()},t}();var Ut=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=Tt(t,16),this.e=parseInt(e,16)):console.error("Invalid RSA public key")},t.prototype.encrypt=function(t){var e=this.n.bitLength()+7>>3,n=function(t,e){if(e<t.length+11)return console.error("Message too long for RSA"),null;for(var n=[],r=t.length-1;r>=0&&e>0;){var i=t.charCodeAt(r--);i<128?n[--e]=i:i>127&&i<2048?(n[--e]=63&i|128,n[--e]=i>>6|192):(n[--e]=63&i|128,n[--e]=i>>6&63|128,n[--e]=i>>12|224)}n[--e]=0;for(var a=new zt,o=[];e>2;){for(o[0]=0;0==o[0];)a.nextBytes(o);n[--e]=o[0]}return n[--e]=2,n[--e]=0,new bt(n)}(t,e);if(null==n)return null;var r=this.doPublic(n);if(null==r)return null;for(var i=r.toString(16),a=i.length,o=0;o<2*e-a;o++)i="0"+i;return i},t.prototype.setPrivate=function(t,e,n){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=Tt(t,16),this.e=parseInt(e,16),this.d=Tt(n,16)):console.error("Invalid RSA private key")},t.prototype.setPrivateEx=function(t,e,n,r,i,a,o,s){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=Tt(t,16),this.e=parseInt(e,16),this.d=Tt(n,16),this.p=Tt(r,16),this.q=Tt(i,16),this.dmp1=Tt(a,16),this.dmq1=Tt(o,16),this.coeff=Tt(s,16)):console.error("Invalid RSA private key")},t.prototype.generate=function(t,e){var n=new zt,r=t>>1;this.e=parseInt(e,16);for(var i=new bt(e,16);;){for(;this.p=new bt(t-r,1,n),0!=this.p.subtract(bt.ONE).gcd(i).compareTo(bt.ONE)||!this.p.isProbablePrime(10););for(;this.q=new bt(r,1,n),0!=this.q.subtract(bt.ONE).gcd(i).compareTo(bt.ONE)||!this.q.isProbablePrime(10););if(this.p.compareTo(this.q)<=0){var a=this.p;this.p=this.q,this.q=a}var o=this.p.subtract(bt.ONE),s=this.q.subtract(bt.ONE),l=o.multiply(s);if(0==l.gcd(i).compareTo(bt.ONE)){this.n=this.p.multiply(this.q),this.d=i.modInverse(l),this.dmp1=this.d.mod(o),this.dmq1=this.d.mod(s),this.coeff=this.q.modInverse(this.p);break}}},t.prototype.decrypt=function(t){var e=Tt(t,16),n=this.doPrivate(e);return null==n?null:function(t,e){var n=t.toByteArray(),r=0;for(;r<n.length&&0==n[r];)++r;if(n.length-r!=e-1||2!=n[r])return null;++r;for(;0!=n[r];)if(++r>=n.length)return null;var i="";for(;++r<n.length;){var a=255&n[r];a<128?i+=String.fromCharCode(a):a>191&&a<224?(i+=String.fromCharCode((31&a)<<6|63&n[r+1]),++r):(i+=String.fromCharCode((15&a)<<12|(63&n[r+1])<<6|63&n[r+2]),r+=2)}return i}(n,this.n.bitLength()+7>>3)},t.prototype.generateAsync=function(t,e,n){var r=new zt,i=t>>1;this.e=parseInt(e,16);var a=new bt(e,16),o=this,s=function(){var e=function(){if(o.p.compareTo(o.q)<=0){var t=o.p;o.p=o.q,o.q=t}var e=o.p.subtract(bt.ONE),r=o.q.subtract(bt.ONE),i=e.multiply(r);0==i.gcd(a).compareTo(bt.ONE)?(o.n=o.p.multiply(o.q),o.d=a.modInverse(i),o.dmp1=o.d.mod(e),o.dmq1=o.d.mod(r),o.coeff=o.q.modInverse(o.p),setTimeout((function(){n()}),0)):setTimeout(s,0)},l=function(){o.q=xt(),o.q.fromNumberAsync(i,1,r,(function(){o.q.subtract(bt.ONE).gcda(a,(function(t){0==t.compareTo(bt.ONE)&&o.q.isProbablePrime(10)?setTimeout(e,0):setTimeout(l,0)}))}))},u=function(){o.p=xt(),o.p.fromNumberAsync(t-i,1,r,(function(){o.p.subtract(bt.ONE).gcda(a,(function(t){0==t.compareTo(bt.ONE)&&o.p.isProbablePrime(10)?setTimeout(l,0):setTimeout(u,0)}))}))};setTimeout(u,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 Tt("0001"+r+"00"+t,16)}((Ht[n]||"")+e(t).toString(),this.n.bitLength()/4);if(null==r)return null;var i=this.doPrivate(r);if(null==i)return null;var a=i.toString(16);return 0==(1&a.length)?a:"0"+a},t.prototype.verify=function(t,e,n){var r=Tt(e,16),i=this.doPublic(r);return null==i?null:function(t){for(var e in Ht)if(Ht.hasOwnProperty(e)){var n=Ht[e],r=n.length;if(t.substr(0,r)==n)return t.substr(r)}return t}
|
|
3
|
+
r.version="2.29.4",i(Zn),r.fn=ua,r.min=tr,r.max=er,r.now=nr,r.utc=v,r.unix=ca,r.months=ma,r.isDate=d,r.locale=gn,r.invalid=b,r.duration=Or,r.isMoment=x,r.weekdays=ba,r.parseZone=ha,r.localeData=bn,r.isDuration=lr,r.monthsShort=ya,r.weekdaysMin=wa,r.defineLocale=mn,r.updateLocale=yn,r.locales=_n,r.weekdaysShort=_a,r.normalizeUnits=it,r.relativeTimeRounding=io,r.relativeTimeThreshold=ao,r.calendarFormat=zr,r.prototype=ua,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}()})),c={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:u().get("year")},{des:"月份",key:1005,mapField:"MONTH",mapping:"-",model:"2",name:"MONTH",value:u().get("month")},{des:"日期",key:1004,mapField:"DATE",mapping:"-",model:"2",name:"DATE",value:u().get("date")},{des:"星期",key:1003,mapField:"WEEK",mapping:"-",model:"2",name:"WEEK",value:u().format("dddd")},{des:"版本",key:1002,mapField:"VERSION",mapping:"-",model:"2",name:"VERSION",value:"1.0.0"},{des:"手机号",key:2001,mapField:"U_PHONE",mapping:"-",model:"2",name:"U_PHONE",value:""},{des:"用户省",key:2002,mapField:"U_PROVINCE",mapping:"-",model:"2",name:"U_PROVINCE",value:""},{des:"用户市",key:2003,mapField:"U_CITY",mapping:"-",model:"2",name:"U_CITY",value:""},{des:"用户区县",key:2004,mapField:"U_COUNTY",mapping:"-",model:"2",name:"U_COUNTY",value:""}],historyFlag:!0,shareComs:new Map},h=function(t,e){return h=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])},h(t,e)};var d=function(){return d=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},d.apply(this,arguments)};function f(t,e,n,r){return new(n||(n=Promise))((function(i,a){function o(t){try{l(r.next(t))}catch(t){a(t)}}function s(t){try{l(r.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}l((r=r.apply(t,e||[])).next())}))}function p(t,e){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=e.call(t,o)}catch(t){s=[6,t],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}function v(t,e,n){if(n||2===arguments.length)for(var r,i=0,a=e.length;i<a;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError;var g={createItem:function(t){t.catch={selectd:i.default.cloneDeep(t.selectd),list:i.default.cloneDeep(t.list)}},resetData:function(t,e){if(t.historyFlag){var n=i.default.cloneDeep(e);t.selected=n.selected,t.list=n.list}},execute:function(t){t.historyFlag&&(t.undoRedoPointer===t.undos.length-1?(t.undos.length>5&&i.default.pullAt(t.undos,0),t.undos.push({selectd:i.default.cloneDeep(t.selectd),list:i.default.cloneDeep(t.list)})):t.undos.splice(t.undoRedoPointer+1,t.undos.length-1-t.undoRedoPointer,{selectd:i.default.cloneDeep(t.selectd),list:i.default.cloneDeep(t.list)}),t.undoRedoPointer=t.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)}},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"]),y=URL.createObjectURL(m);function b(t,e){return void 0===e&&(e=5e3),f(this,void 0,void 0,(function(){var n;return p(this,(function(r){return n=new Worker(y),[2,new Promise((function(r,i){var a=function(){clearTimeout(s),n.removeEventListener("message",o),n.terminate(),n=null},o=function(t){var e=t.data,n=e.code,o=e.result,s=e.err;a(),1===n?r(o):i(s)};n.postMessage({code:t}),n.addEventListener("message",o);var s=setTimeout((function(){a(),i("timeout")}),e)}))]}))}))}function _(t,e,n,r,a){return f(this,void 0,void 0,(function(){var n,a,o,s,l,u,c;return p(this,(function(h){switch(h.label){case 0:if(n=t,a=i.default.cloneDeep(e),o=a.use,s=a.data,!o)return[3,4];u=function(t){var e,a;return p(this,(function(o){switch(o.label){case 0:return s[t].use?(e=s[t].dependVars,a={},r&&a&&e&&e.length&&e.map((function(t){var e=i.default.cloneDeep(r).filter((function(e){var n=e.mapField==t;return n&&(a[t]=e.value),n}));e&&0!=e.length||(a[t]="")})),[4,w(s[t].code,n,a,s[t].mode?s[t].mode:"worker")]):[3,2];case 1:l=o.sent(),n=l.data,o.label=2;case 2:return[2]}}))},c=0,h.label=1;case 1:return c<s.length?[5,u(c)]:[3,4];case 2:h.sent(),h.label=3;case 3:return c++,[3,1];case 4:return[2,n]}}))}))}function w(t,e,n,r){return void 0===n&&(n={}),void 0===r&&(r="worker"),f(this,void 0,void 0,(function(){var i,a,o,s,l,u,c,h,d;return p(this,(function(f){switch(f.label){case 0:return f.trys.push([0,4,,5]),"window"!=r?[3,1]:(a=(i=[["data"],[e]])[0],o=i[1],"object"==typeof n&&Object.keys(n).forEach((function(t){a.push(t),o.push(n[t])})),s=new(Function.bind.apply(Function,v(v([void 0],a,!1),[t],!1))),[2,{success:!0,data:s.apply(void 0,o)}]);case 1:return c=(l=[e,n,""])[1],h=l[2],"object"==typeof(u=l[0])&&(u=JSON.stringify(e)),"object"==typeof n&&(c=JSON.stringify(n)),Object.keys(n).forEach((function(t){return h+="".concat(t,",")})),d="let data=eval(".concat(u,"); \n let app=").concat(JSON.stringify({}),";"),d+=h?"let {".concat(h,"} = eval(").concat(c,"); "):"",[4,b(d+="".concat(t))];case 2:return[2,{success:!0,data:f.sent()}];case 3:return[3,5];case 4:return[2,{success:!1,error:f.sent(),data:e}];case 5:return[2]}}))}))}var 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 T=S,k=x;function C(t){if(T===setTimeout)return setTimeout(t,0);if((T===S||!T)&&setTimeout)return T=setTimeout,setTimeout(t,0);try{return T(t,0)}catch(e){try{return T.call(null,t,0)}catch(e){return T.call(this,t,0)}}}"function"==typeof D.setTimeout&&(T=setTimeout),"function"==typeof D.clearTimeout&&(k=clearTimeout);var E,O=[],A=!1,M=-1;function P(){A&&E&&(A=!1,E.length?O=E.concat(O):M=-1,O.length&&V())}function V(){if(!A){var t=C(P);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(k===clearTimeout)return clearTimeout(t);if((k===x||!k)&&clearTimeout)return k=clearTimeout,clearTimeout(t);try{return k(t)}catch(e){try{return k.call(null,t)}catch(e){return k.call(this,t)}}}(t)}}function R(t,e){this.fun=t,this.array=e}R.prototype.run=function(){this.fun.apply(null,this.array)};function N(){}var B=N,I=N,F=N,j=N,L=N,Y=N,z=N;var U=D.performance||{},H=U.now||U.mozNow||U.msNow||U.oNow||U.webkitNow||function(){return(new Date).getTime()};var G=new Date;var q={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 R(t,e)),1!==O.length||A||C(V)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:B,addListener:I,once:F,off:j,removeListener:L,removeAllListeners:Y,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*H.call(U),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-G)/1e3}},W="0123456789abcdefghijklmnopqrstuvwxyz";function $(t){return W.charAt(t)}function K(t,e){return t&e}function Z(t,e){return t|e}function X(t,e){return t^e}function J(t,e){return t&~e}function Q(t){if(0==t)return-1;var e=0;return 0==(65535&t)&&(t>>=16,e+=16),0==(255&t)&&(t>>=8,e+=8),0==(15&t)&&(t>>=4,e+=4),0==(3&t)&&(t>>=2,e+=2),0==(1&t)&&++e,e}function tt(t){for(var e=0;0!=t;)t&=t-1,++e;return e}var et,nt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function rt(t){var e,n,r="";for(e=0;e+3<=t.length;e+=3)n=parseInt(t.substring(e,e+3),16),r+=nt.charAt(n>>6)+nt.charAt(63&n);for(e+1==t.length?(n=parseInt(t.substring(e,e+1),16),r+=nt.charAt(n<<2)):e+2==t.length&&(n=parseInt(t.substring(e,e+2),16),r+=nt.charAt(n>>2)+nt.charAt((3&n)<<4));(3&r.length)>0;)r+="=";return r}function it(t){var e,n="",r=0,i=0;for(e=0;e<t.length&&"="!=t.charAt(e);++e){var a=nt.indexOf(t.charAt(e));a<0||(0==r?(n+=$(a>>2),i=3&a,r=1):1==r?(n+=$(i<<2|a>>4),i=15&a,r=2):2==r?(n+=$(i),n+=$(a>>2),i=3&a,r=3):(n+=$(i<<2|a>>4),n+=$(15&a),r=0))}return 1==r&&(n+=$(i<<2)),n}var at,ot=function(t){var e;if(void 0===et){var n="0123456789ABCDEF",r=" \f\n\r\t \u2028\u2029";for(et={},e=0;e<16;++e)et[n.charAt(e)]=e;for(n=n.toLowerCase(),e=10;e<16;++e)et[n.charAt(e)]=e;for(e=0;e<8;++e)et[r.charAt(e)]=-1}var i=[],a=0,o=0;for(e=0;e<t.length;++e){var s=t.charAt(e);if("="==s)break;if(-1!=(s=et[s])){if(void 0===s)throw new Error("Illegal character at offset "+e);a|=s,++o>=2?(i[i.length]=a,a=0,o=0):a<<=4}}if(o)throw new Error("Hex encoding incomplete: 4 bits missing");return i},st={decode:function(t){var e;if(void 0===at){var n="= \f\n\r\t \u2028\u2029";for(at=Object.create(null),e=0;e<64;++e)at["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)]=e;for(at["-"]=62,at._=63,e=0;e<9;++e)at[n.charAt(e)]=-1}var r=[],i=0,a=0;for(e=0;e<t.length;++e){var o=t.charAt(e);if("="==o)break;if(-1!=(o=at[o])){if(void 0===o)throw new Error("Illegal character at offset "+e);i|=o,++a>=4?(r[r.length]=i>>16,r[r.length]=i>>8&255,r[r.length]=255&i,i=0,a=0):i<<=6}}switch(a){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:r[r.length]=i>>10;break;case 3:r[r.length]=i>>16,r[r.length]=i>>8&255}return r},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(t){var e=st.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 st.decode(t)}},lt=1e13,ut=function(){function t(t){this.buf=[+t||0]}return t.prototype.mulAdd=function(t,e){var n,r,i=this.buf,a=i.length;for(n=0;n<a;++n)(r=i[n]*t+e)<lt?e=0:r-=(e=0|r/lt)*lt,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+=lt,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+=(lt+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*lt+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)?)?$/,ht=/^(\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 dt(t,e){return t.length>e&&(t=t.substring(0,e)+"…"),t}var ft,pt=function(){function t(e,n){this.hexDigits="0123456789ABCDEF",e instanceof t?(this.enc=e.enc,this.pos=e.pos):(this.enc=e,this.pos=n)}return t.prototype.get=function(t){if(void 0===t&&(t=this.pos++),t>=this.enc.length)throw new Error("Requesting byte offset ".concat(t," on a stream of length ").concat(this.enc.length));return"string"==typeof this.enc?this.enc.charCodeAt(t):this.enc[t]},t.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(15&t)},t.prototype.hexDump=function(t,e,n){for(var r="",i=t;i<e;++i)if(r+=this.hexByte(this.get(i)),!0!==n)switch(15&i){case 7:r+=" ";break;case 15:r+="\n";break;default:r+=" "}return r},t.prototype.isASCII=function(t,e){for(var n=t;n<e;++n){var r=this.get(n);if(r<32||r>176)return!1}return!0},t.prototype.parseStringISO=function(t,e){for(var n="",r=t;r<e;++r)n+=String.fromCharCode(this.get(r));return n},t.prototype.parseStringUTF=function(t,e){for(var n="",r=t;r<e;){var i=this.get(r++);n+=i<128?String.fromCharCode(i):i>191&&i<224?String.fromCharCode((31&i)<<6|63&this.get(r++)):String.fromCharCode((15&i)<<12|(63&this.get(r++))<<6|63&this.get(r++))}return n},t.prototype.parseStringBMP=function(t,e){for(var n,r,i="",a=t;a<e;)n=this.get(a++),r=this.get(a++),i+=String.fromCharCode(n<<8|r);return i},t.prototype.parseTime=function(t,e,n){var r=this.parseStringISO(t,e),i=(n?ct:ht).exec(r);return i?(n&&(i[1]=+i[1],i[1]+=+i[1]<70?2e3:1900),r=i[1]+"-"+i[2]+"-"+i[3]+" "+i[4],i[5]&&(r+=":"+i[5],i[6]&&(r+=":"+i[6],i[7]&&(r+="."+i[7]))),i[8]&&(r+=" UTC","Z"!=i[8]&&(r+=i[8],i[9]&&(r+=":"+i[9]))),r):"Unrecognized time: "+r},t.prototype.parseInteger=function(t,e){for(var n,r=this.get(t),i=r>127,a=i?255:0,o="";r==a&&++t<e;)r=this.get(t);if(0===(n=e-t))return i?-1:0;if(n>4){for(o=r,n<<=3;0==(128&(+o^a));)o=+o<<1,--n;o="("+n+" bit)\n"}i&&(r-=256);for(var s=new ut(r),l=t+1;l<e;++l)s.mulAdd(256,this.get(l));return o+s.toString()},t.prototype.parseBitString=function(t,e,n){for(var r=this.get(t),i="("+((e-t-1<<3)-r)+" bit)\n",a="",o=t+1;o<e;++o){for(var s=this.get(o),l=o==e-1?r:0,u=7;u>=l;--u)a+=s>>u&1?"1":"0";if(a.length>n)return i+dt(a,n)}return i+a},t.prototype.parseOctetString=function(t,e,n){if(this.isASCII(t,e))return dt(this.parseStringISO(t,e),n);var r=e-t,i="("+r+" byte)\n";r>(n/=2)&&(e=t+n);for(var a=t;a<e;++a)i+=this.hexByte(this.get(a));return r>n&&(i+="…"),i},t.prototype.parseOID=function(t,e,n){for(var r="",i=new ut,a=0,o=t;o<e;++o){var s=this.get(o);if(i.mulAdd(128,127&s),a+=7,!(128&s)){if(""===r)if((i=i.simplify())instanceof ut)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 dt(r,n);i=new ut,a=0}}return a>0&&(r+=".incomplete"),r},t}(),vt=function(){function t(t,e,n,r,i){if(!(r instanceof gt))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 dt(this.stream.parseStringUTF(e,e+n),t);case 18:case 19:case 20:case 21:case 22:case 26:return dt(this.stream.parseStringISO(e,e+n),t);case 30:return dt(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 pt?e:new pt(e,0);var r=new pt(n),i=new gt(n),a=t.decodeLength(n),o=n.pos,s=o-r.pos,l=null,u=function(){var e=[];if(null!==a){for(var r=o+a;n.pos<r;)e[e.length]=t.decode(n);if(n.pos!=r)throw new Error("Content size is not correct for container starting at offset "+o)}else try{for(;;){var i=t.decode(n);if(i.tag.isEOC())break;e[e.length]=i}a=o-n.pos}catch(t){throw new Error("Exception while decoding undefined length content: "+t)}return e};if(i.tagConstructed)l=u();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=u();for(var c=0;c<l.length;++c)if(l[c].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(t){l=null}if(null===l){if(null===a)throw new Error("We can't skip over an invalid tag with undefined length at offset "+o);n.pos=o+Math.abs(a)}return new t(r,s,a,i,l)},t}(),gt=function(){function t(t){var e=t.get();if(this.tagClass=e>>6,this.tagConstructed=0!=(32&e),this.tagNumber=31&e,31==this.tagNumber){var n=new ut;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}(),mt=[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],yt=(1<<26)/mt[mt.length-1],bt=function(){function t(t,e,n){null!=t&&("number"==typeof t?this.fromNumber(t,e,n):null==e&&"string"!=typeof t?this.fromString(t,256):this.fromString(t,e))}return t.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else{if(4!=t)return this.toRadix(t);e=2}var n,r=(1<<e)-1,i=!1,a="",o=this.t,s=this.DB-o*this.DB%e;if(o-- >0)for(s<this.DB&&(n=this[o]>>s)>0&&(i=!0,a=$(n));o>=0;)s<e?(n=(this[o]&(1<<s)-1)<<e-s,n|=this[--o]>>(s+=this.DB-e)):(n=this[o]>>(s-=e)&r,s<=0&&(s+=this.DB,--o)),n>0&&(i=!0),i&&(a+=$(n));return i?a:"0"},t.prototype.negate=function(){var e=xt();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)+Pt(this[this.t-1]^this.s&this.DM)},t.prototype.mod=function(e){var n=xt();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 Dt(e),this.exp(t,n)},t.prototype.clone=function(){var t=xt();return this.copyTo(t),t},t.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},t.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},t.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},t.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},t.prototype.toByteArray=function(){var t=this.t,e=[];e[0]=this.s;var n,r=this.DB-t*this.DB%8,i=0;if(t-- >0)for(r<this.DB&&(n=this[t]>>r)!=(this.s&this.DM)>>r&&(e[i++]=n|this.s<<this.DB-r);t>=0;)r<8?(n=(this[t]&(1<<r)-1)<<8-r,n|=this[--t]>>(r+=this.DB-8)):(n=this[t]>>(r-=8)&255,r<=0&&(r+=this.DB,--t)),0!=(128&n)&&(n|=-256),0==i&&(128&this.s)!=(128&n)&&++i,(i>0||n!=this.s)&&(e[i++]=n);return e},t.prototype.equals=function(t){return 0==this.compareTo(t)},t.prototype.min=function(t){return this.compareTo(t)<0?this:t},t.prototype.max=function(t){return this.compareTo(t)>0?this:t},t.prototype.and=function(t){var e=xt();return this.bitwiseTo(t,K,e),e},t.prototype.or=function(t){var e=xt();return this.bitwiseTo(t,Z,e),e},t.prototype.xor=function(t){var e=xt();return this.bitwiseTo(t,X,e),e},t.prototype.andNot=function(t){var e=xt();return this.bitwiseTo(t,J,e),e},t.prototype.not=function(){for(var t=xt(),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=xt();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},t.prototype.shiftRight=function(t){var e=xt();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+Q(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+=tt(this[n]^e);return t},t.prototype.testBit=function(t){var e=Math.floor(t/this.DB);return e>=this.t?0!=this.s:0!=(this[e]&1<<t%this.DB)},t.prototype.setBit=function(t){return this.changeBit(t,Z)},t.prototype.clearBit=function(t){return this.changeBit(t,J)},t.prototype.flipBit=function(t){return this.changeBit(t,X)},t.prototype.add=function(t){var e=xt();return this.addTo(t,e),e},t.prototype.subtract=function(t){var e=xt();return this.subTo(t,e),e},t.prototype.multiply=function(t){var e=xt();return this.multiplyTo(t,e),e},t.prototype.divide=function(t){var e=xt();return this.divRemTo(t,e,null),e},t.prototype.remainder=function(t){var e=xt();return this.divRemTo(t,null,e),e},t.prototype.divideAndRemainder=function(t){var e=xt(),n=xt();return this.divRemTo(t,e,n),[e,n]},t.prototype.modPow=function(t,e){var n,r,i=t.bitLength(),a=Mt(1);if(i<=0)return a;n=i<18?1:i<48?3:i<144?4:i<768?5:6,r=i<8?new wt(e):e.isEven()?new St(e):new Dt(e);var o=[],s=3,l=n-1,u=(1<<n)-1;if(o[1]=r.convert(this),n>1){var c=xt();for(r.sqrTo(o[1],c);s<=u;)o[s]=xt(),r.mulTo(c,o[s-2],o[s]),s+=2}var h,d,f=t.t-1,p=!0,v=xt();for(i=Pt(t[f])-1;f>=0;){for(i>=l?h=t[f]>>i-l&u:(h=(t[f]&(1<<i+1)-1)<<l-i,f>0&&(h|=t[f-1]>>this.DB+i-l)),s=n;0==(1&h);)h>>=1,--s;if((i-=s)<0&&(i+=this.DB,--f),p)o[h].copyTo(a),p=!1;else{for(;s>1;)r.sqrTo(a,v),r.sqrTo(v,a),s-=2;s>0?r.sqrTo(a,v):(d=a,a=v,v=d),r.mulTo(v,o[h],a)}for(;f>=0&&0==(t[f]&1<<i);)r.sqrTo(a,v),d=a,a=v,v=d,--i<0&&(i=this.DB-1,--f)}return r.revert(a)},t.prototype.modInverse=function(e){var n=e.isEven();if(this.isEven()&&n||0==e.signum())return t.ZERO;for(var r=e.clone(),i=this.clone(),a=Mt(1),o=Mt(0),s=Mt(0),l=Mt(1);0!=r.signum();){for(;r.isEven();)r.rShiftTo(1,r),n?(a.isEven()&&o.isEven()||(a.addTo(this,a),o.subTo(e,o)),a.rShiftTo(1,a)):o.isEven()||o.subTo(e,o),o.rShiftTo(1,o);for(;i.isEven();)i.rShiftTo(1,i),n?(s.isEven()&&l.isEven()||(s.addTo(this,s),l.subTo(e,l)),s.rShiftTo(1,s)):l.isEven()||l.subTo(e,l),l.rShiftTo(1,l);r.compareTo(i)>=0?(r.subTo(i,r),n&&a.subTo(s,a),o.subTo(l,o)):(i.subTo(r,i),n&&s.subTo(a,s),l.subTo(o,l))}return 0!=i.compareTo(t.ONE)?t.ZERO:l.compareTo(e)>=0?l.subtract(e):l.signum()<0?(l.addTo(e,l),l.signum()<0?l.add(e):l):l},t.prototype.pow=function(t){return this.exp(t,new _t)},t.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),n=t.s<0?t.negate():t.clone();if(e.compareTo(n)<0){var r=e;e=n,n=r}var i=e.getLowestSetBit(),a=n.getLowestSetBit();if(a<0)return e;for(i<a&&(a=i),a>0&&(e.rShiftTo(a,e),n.rShiftTo(a,n));e.signum()>0;)(i=e.getLowestSetBit())>0&&e.rShiftTo(i,e),(i=n.getLowestSetBit())>0&&n.rShiftTo(i,n),e.compareTo(n)>=0?(e.subTo(n,e),e.rShiftTo(1,e)):(n.subTo(e,n),n.rShiftTo(1,n));return a>0&&n.lShiftTo(a,n),n},t.prototype.isProbablePrime=function(t){var e,n=this.abs();if(1==n.t&&n[0]<=mt[mt.length-1]){for(e=0;e<mt.length;++e)if(n[0]==mt[e])return!0;return!1}if(n.isEven())return!1;for(e=1;e<mt.length;){for(var r=mt[e],i=e+1;i<mt.length&&r<yt;)r*=mt[i++];for(r=n.modInt(r);e<i;)if(r%mt[e++]==0)return!1}return n.millerRabin(t)},t.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},t.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},t.prototype.fromString=function(e,n){var r;if(16==n)r=4;else if(8==n)r=3;else if(256==n)r=8;else if(2==n)r=1;else if(32==n)r=5;else{if(4!=n)return void this.fromRadix(e,n);r=2}this.t=0,this.s=0;for(var i=e.length,a=!1,o=0;--i>=0;){var s=8==r?255&+e[i]:At(e,i);s<0?"-"==e.charAt(i)&&(a=!0):(a=!1,0==o?this[this.t++]=s:o+r>this.DB?(this[this.t-1]|=(s&(1<<this.DB-o)-1)<<o,this[this.t++]=s>>this.DB-o):this[this.t-1]|=s<<o,(o+=r)>=this.DB&&(o-=this.DB))}8==r&&0!=(128&+e[0])&&(this.s=-1,o>0&&(this[this.t-1]|=(1<<this.DB-o)-1<<o)),this.clamp(),a&&t.ZERO.subTo(this,this)},t.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},t.prototype.dlShiftTo=function(t,e){var n;for(n=this.t-1;n>=0;--n)e[n+t]=this[n];for(n=t-1;n>=0;--n)e[n]=0;e.t=this.t+t,e.s=this.s},t.prototype.drShiftTo=function(t,e){for(var n=t;n<this.t;++n)e[n-t]=this[n];e.t=Math.max(this.t-t,0),e.s=this.s},t.prototype.lShiftTo=function(t,e){for(var n=t%this.DB,r=this.DB-n,i=(1<<r)-1,a=Math.floor(t/this.DB),o=this.s<<n&this.DM,s=this.t-1;s>=0;--s)e[s+a+1]=this[s]>>r|o,o=(this[s]&i)<<n;for(s=a-1;s>=0;--s)e[s]=0;e[a]=o,e.t=this.t+a+1,e.s=this.s,e.clamp()},t.prototype.rShiftTo=function(t,e){e.s=this.s;var n=Math.floor(t/this.DB);if(n>=this.t)e.t=0;else{var r=t%this.DB,i=this.DB-r,a=(1<<r)-1;e[0]=this[n]>>r;for(var o=n+1;o<this.t;++o)e[o-n-1]|=(this[o]&a)<<i,e[o-n]=this[o]>>r;r>0&&(e[this.t-n-1]|=(this.s&a)<<i),e.t=this.t-n,e.clamp()}},t.prototype.subTo=function(t,e){for(var n=0,r=0,i=Math.min(t.t,this.t);n<i;)r+=this[n]-t[n],e[n++]=r&this.DM,r>>=this.DB;if(t.t<this.t){for(r-=t.s;n<this.t;)r+=this[n],e[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<t.t;)r-=t[n],e[n++]=r&this.DM,r>>=this.DB;r-=t.s}e.s=r<0?-1:0,r<-1?e[n++]=this.DV+r:r>0&&(e[n++]=r),e.t=n,e.clamp()},t.prototype.multiplyTo=function(e,n){var r=this.abs(),i=e.abs(),a=r.t;for(n.t=a+i.t;--a>=0;)n[a]=0;for(a=0;a<i.t;++a)n[a+r.t]=r.am(0,i[a],n,a,0,r.t);n.s=0,n.clamp(),this.s!=e.s&&t.ZERO.subTo(n,n)},t.prototype.squareTo=function(t){for(var e=this.abs(),n=t.t=2*e.t;--n>=0;)t[n]=0;for(n=0;n<e.t-1;++n){var r=e.am(n,e[n],t,2*n,0,1);(t[n+e.t]+=e.am(n+1,2*e[n],t,2*n+1,r,e.t-n-1))>=e.DV&&(t[n+e.t]-=e.DV,t[n+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(n,e[n],t,2*n,0,1)),t.s=0,t.clamp()},t.prototype.divRemTo=function(e,n,r){var i=e.abs();if(!(i.t<=0)){var a=this.abs();if(a.t<i.t)return null!=n&&n.fromInt(0),void(null!=r&&this.copyTo(r));null==r&&(r=xt());var o=xt(),s=this.s,l=e.s,u=this.DB-Pt(i[i.t-1]);u>0?(i.lShiftTo(u,o),a.lShiftTo(u,r)):(i.copyTo(o),a.copyTo(r));var c=o.t,h=o[c-1];if(0!=h){var d=h*(1<<this.F1)+(c>1?o[c-2]>>this.F2:0),f=this.FV/d,p=(1<<this.F1)/d,v=1<<this.F2,g=r.t,m=g-c,y=null==n?xt():n;for(o.dlShiftTo(m,y),r.compareTo(y)>=0&&(r[r.t++]=1,r.subTo(y,r)),t.ONE.dlShiftTo(c,y),y.subTo(o,o);o.t<c;)o[o.t++]=0;for(;--m>=0;){var b=r[--g]==h?this.DM:Math.floor(r[g]*f+(r[g-1]+v)*p);if((r[g]+=o.am(0,b,r,m,0,c))<b)for(o.dlShiftTo(m,y),r.subTo(y,r);r[g]<--b;)r.subTo(y,r)}null!=n&&(r.drShiftTo(c,n),s!=l&&t.ZERO.subTo(n,n)),r.t=c,r.clamp(),u>0&&r.rShiftTo(u,r),s<0&&t.ZERO.subTo(r,r)}}},t.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;return(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)>0?this.DV-e:-e},t.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},t.prototype.exp=function(e,n){if(e>4294967295||e<1)return t.ONE;var r=xt(),i=xt(),a=n.convert(this),o=Pt(e)-1;for(a.copyTo(r);--o>=0;)if(n.sqrTo(r,i),(e&1<<o)>0)n.mulTo(i,a,r);else{var s=r;r=i,i=s}return n.revert(r)},t.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},t.prototype.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||t>36)return"0";var e=this.chunkSize(t),n=Math.pow(t,e),r=Mt(n),i=xt(),a=xt(),o="";for(this.divRemTo(r,i,a);i.signum()>0;)o=(n+a.intValue()).toString(t).substr(1)+o,i.divRemTo(r,i,a);return a.intValue().toString(t)+o},t.prototype.fromRadix=function(e,n){this.fromInt(0),null==n&&(n=10);for(var r=this.chunkSize(n),i=Math.pow(n,r),a=!1,o=0,s=0,l=0;l<e.length;++l){var u=At(e,l);u<0?"-"==e.charAt(l)&&0==this.signum()&&(a=!0):(s=n*s+u,++o>=r&&(this.dMultiply(i),this.dAddOffset(s,0),o=0,s=0))}o>0&&(this.dMultiply(Math.pow(n,o)),this.dAddOffset(s,0)),a&&t.ZERO.subTo(this,this)},t.prototype.fromNumber=function(e,n,r){if("number"==typeof n)if(e<2)this.fromInt(1);else for(this.fromNumber(e,r),this.testBit(e-1)||this.bitwiseTo(t.ONE.shiftLeft(e-1),Z,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(n);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(t.ONE.shiftLeft(e-1),this);else{var i=[],a=7&e;i.length=1+(e>>3),n.nextBytes(i),a>0?i[0]&=(1<<a)-1:i[0]=0,this.fromString(i,256)}},t.prototype.bitwiseTo=function(t,e,n){var r,i,a=Math.min(t.t,this.t);for(r=0;r<a;++r)n[r]=e(this[r],t[r]);if(t.t<this.t){for(i=t.s&this.DM,r=a;r<this.t;++r)n[r]=e(this[r],i);n.t=this.t}else{for(i=this.s&this.DM,r=a;r<t.t;++r)n[r]=e(i,t[r]);n.t=t.t}n.s=e(this.s,t.s),n.clamp()},t.prototype.changeBit=function(e,n){var r=t.ONE.shiftLeft(e);return this.bitwiseTo(r,n,r),r},t.prototype.addTo=function(t,e){for(var n=0,r=0,i=Math.min(t.t,this.t);n<i;)r+=this[n]+t[n],e[n++]=r&this.DM,r>>=this.DB;if(t.t<this.t){for(r+=t.s;n<this.t;)r+=this[n],e[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<t.t;)r+=t[n],e[n++]=r&this.DM,r>>=this.DB;r+=t.s}e.s=r<0?-1:0,r>0?e[n++]=r:r<-1&&(e[n++]=this.DV+r),e.t=n,e.clamp()},t.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},t.prototype.dAddOffset=function(t,e){if(0!=t){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},t.prototype.multiplyLowerTo=function(t,e,n){var r=Math.min(this.t+t.t,e);for(n.s=0,n.t=r;r>0;)n[--r]=0;for(var i=n.t-this.t;r<i;++r)n[r+this.t]=this.am(0,t[r],n,r,0,this.t);for(i=Math.min(t.t,e);r<i;++r)this.am(0,t[r],n,r,0,e-r);n.clamp()},t.prototype.multiplyUpperTo=function(t,e,n){--e;var r=n.t=this.t+t.t-e;for(n.s=0;--r>=0;)n[r]=0;for(r=Math.max(e-this.t,0);r<t.t;++r)n[this.t+r-e]=this.am(e-r,t[r],n,0,0,this.t+r-e);n.clamp(),n.drShiftTo(1,n)},t.prototype.modInt=function(t){if(t<=0)return 0;var e=this.DV%t,n=this.s<0?t-1:0;if(this.t>0)if(0==e)n=this[0]%t;else for(var r=this.t-1;r>=0;--r)n=(e*n+this[r])%t;return n},t.prototype.millerRabin=function(e){var n=this.subtract(t.ONE),r=n.getLowestSetBit();if(r<=0)return!1;var i=n.shiftRight(r);(e=e+1>>1)>mt.length&&(e=mt.length);for(var a=xt(),o=0;o<e;++o){a.fromInt(mt[Math.floor(Math.random()*mt.length)]);var s=a.modPow(i,this);if(0!=s.compareTo(t.ONE)&&0!=s.compareTo(n)){for(var l=1;l++<r&&0!=s.compareTo(n);)if(0==(s=s.modPowInt(2,this)).compareTo(t.ONE))return!1;if(0!=s.compareTo(n))return!1}}return!0},t.prototype.square=function(){var t=xt();return this.squareTo(t),t},t.prototype.gcda=function(t,e){var n=this.s<0?this.negate():this.clone(),r=t.s<0?t.negate():t.clone();if(n.compareTo(r)<0){var i=n;n=r,r=i}var a=n.getLowestSetBit(),o=r.getLowestSetBit();if(o<0)e(n);else{a<o&&(o=a),o>0&&(n.rShiftTo(o,n),r.rShiftTo(o,r));var s=function(){(a=n.getLowestSetBit())>0&&n.rShiftTo(a,n),(a=r.getLowestSetBit())>0&&r.rShiftTo(a,r),n.compareTo(r)>=0?(n.subTo(r,n),n.rShiftTo(1,n)):(r.subTo(n,r),r.rShiftTo(1,r)),n.signum()>0?setTimeout(s,0):(o>0&&r.lShiftTo(o,r),setTimeout((function(){e(r)}),0))};setTimeout(s,10)}},t.prototype.fromNumberAsync=function(e,n,r,i){if("number"==typeof n)if(e<2)this.fromInt(1);else{this.fromNumber(e,r),this.testBit(e-1)||this.bitwiseTo(t.ONE.shiftLeft(e-1),Z,this),this.isEven()&&this.dAddOffset(1,0);var a=this,o=function(){a.dAddOffset(2,0),a.bitLength()>e&&a.subTo(t.ONE.shiftLeft(e-1),a),a.isProbablePrime(n)?setTimeout((function(){i()}),0):setTimeout(o,0)};setTimeout(o,0)}else{var s=[],l=7&e;s.length=1+(e>>3),n.nextBytes(s),l>0?s[0]&=(1<<l)-1:s[0]=0,this.fromString(s,256)}},t}(),_t=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}(),Dt=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=xt();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(bt.ZERO)>0&&this.m.subTo(e,e),e},t.prototype.revert=function(t){var e=xt();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}(),St=function(){function t(t){this.m=t,this.r2=xt(),this.q3=xt(),bt.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=xt();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 xt(){return new bt(null)}function Tt(t,e){return new bt(t,e)}var kt="undefined"!=typeof navigator;kt&&"Microsoft Internet Explorer"==navigator.appName?(bt.prototype.am=function(t,e,n,r,i,a){for(var o=32767&e,s=e>>15;--a>=0;){var l=32767&this[t],u=this[t++]>>15,c=s*l+u*o;i=((l=o*l+((32767&c)<<15)+n[r]+(1073741823&i))>>>30)+(c>>>15)+s*u+(i>>>30),n[r++]=1073741823&l}return i},ft=30):kt&&"Netscape"!=navigator.appName?(bt.prototype.am=function(t,e,n,r,i,a){for(;--a>=0;){var o=e*this[t++]+n[r]+i;i=Math.floor(o/67108864),n[r++]=67108863&o}return i},ft=26):(bt.prototype.am=function(t,e,n,r,i,a){for(var o=16383&e,s=e>>14;--a>=0;){var l=16383&this[t],u=this[t++]>>14,c=s*l+u*o;i=((l=o*l+((16383&c)<<14)+n[r]+i)>>28)+(c>>14)+s*u,n[r++]=268435455&l}return i},ft=28),bt.prototype.DB=ft,bt.prototype.DM=(1<<ft)-1,bt.prototype.DV=1<<ft;bt.prototype.FV=Math.pow(2,52),bt.prototype.F1=52-ft,bt.prototype.F2=2*ft-52;var Ct,Et,Ot=[];for(Ct="0".charCodeAt(0),Et=0;Et<=9;++Et)Ot[Ct++]=Et;for(Ct="a".charCodeAt(0),Et=10;Et<36;++Et)Ot[Ct++]=Et;for(Ct="A".charCodeAt(0),Et=10;Et<36;++Et)Ot[Ct++]=Et;function At(t,e){var n=Ot[t.charCodeAt(e)];return null==n?-1:n}function Mt(t){var e=xt();return e.fromInt(t),e}function Pt(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}bt.ZERO=Mt(0),bt.ONE=Mt(1);var Vt=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 Rt,Nt,Bt=null;if(null==Bt){Bt=[],Nt=0;var It=void 0;if("undefined"!=typeof window&&window.crypto&&window.crypto.getRandomValues){var Ft=new Uint32Array(256);for(window.crypto.getRandomValues(Ft),It=0;It<Ft.length;++It)Bt[Nt++]=255&Ft[It]}var jt=0,Lt=function(t){if((jt=jt||0)>=256||Nt>=256)window.removeEventListener?window.removeEventListener("mousemove",Lt,!1):window.detachEvent&&window.detachEvent("onmousemove",Lt);else try{var e=t.x+t.y;Bt[Nt++]=255&e,jt+=1}catch(t){}};"undefined"!=typeof window&&(window.addEventListener?window.addEventListener("mousemove",Lt,!1):window.attachEvent&&window.attachEvent("onmousemove",Lt))}function Yt(){if(null==Rt){for(Rt=new Vt;Nt<256;){var t=Math.floor(65536*Math.random());Bt[Nt++]=255&t}for(Rt.init(Bt),Nt=0;Nt<Bt.length;++Nt)Bt[Nt]=0;Nt=0}return Rt.next()}var zt=function(){function t(){}return t.prototype.nextBytes=function(t){for(var e=0;e<t.length;++e)t[e]=Yt()},t}();var Ut=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=Tt(t,16),this.e=parseInt(e,16)):console.error("Invalid RSA public key")},t.prototype.encrypt=function(t){var e=this.n.bitLength()+7>>3,n=function(t,e){if(e<t.length+11)return console.error("Message too long for RSA"),null;for(var n=[],r=t.length-1;r>=0&&e>0;){var i=t.charCodeAt(r--);i<128?n[--e]=i:i>127&&i<2048?(n[--e]=63&i|128,n[--e]=i>>6|192):(n[--e]=63&i|128,n[--e]=i>>6&63|128,n[--e]=i>>12|224)}n[--e]=0;for(var a=new zt,o=[];e>2;){for(o[0]=0;0==o[0];)a.nextBytes(o);n[--e]=o[0]}return n[--e]=2,n[--e]=0,new bt(n)}(t,e);if(null==n)return null;var r=this.doPublic(n);if(null==r)return null;for(var i=r.toString(16),a=i.length,o=0;o<2*e-a;o++)i="0"+i;return i},t.prototype.setPrivate=function(t,e,n){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=Tt(t,16),this.e=parseInt(e,16),this.d=Tt(n,16)):console.error("Invalid RSA private key")},t.prototype.setPrivateEx=function(t,e,n,r,i,a,o,s){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=Tt(t,16),this.e=parseInt(e,16),this.d=Tt(n,16),this.p=Tt(r,16),this.q=Tt(i,16),this.dmp1=Tt(a,16),this.dmq1=Tt(o,16),this.coeff=Tt(s,16)):console.error("Invalid RSA private key")},t.prototype.generate=function(t,e){var n=new zt,r=t>>1;this.e=parseInt(e,16);for(var i=new bt(e,16);;){for(;this.p=new bt(t-r,1,n),0!=this.p.subtract(bt.ONE).gcd(i).compareTo(bt.ONE)||!this.p.isProbablePrime(10););for(;this.q=new bt(r,1,n),0!=this.q.subtract(bt.ONE).gcd(i).compareTo(bt.ONE)||!this.q.isProbablePrime(10););if(this.p.compareTo(this.q)<=0){var a=this.p;this.p=this.q,this.q=a}var o=this.p.subtract(bt.ONE),s=this.q.subtract(bt.ONE),l=o.multiply(s);if(0==l.gcd(i).compareTo(bt.ONE)){this.n=this.p.multiply(this.q),this.d=i.modInverse(l),this.dmp1=this.d.mod(o),this.dmq1=this.d.mod(s),this.coeff=this.q.modInverse(this.p);break}}},t.prototype.decrypt=function(t){var e=Tt(t,16),n=this.doPrivate(e);return null==n?null:function(t,e){var n=t.toByteArray(),r=0;for(;r<n.length&&0==n[r];)++r;if(n.length-r!=e-1||2!=n[r])return null;++r;for(;0!=n[r];)if(++r>=n.length)return null;var i="";for(;++r<n.length;){var a=255&n[r];a<128?i+=String.fromCharCode(a):a>191&&a<224?(i+=String.fromCharCode((31&a)<<6|63&n[r+1]),++r):(i+=String.fromCharCode((15&a)<<12|(63&n[r+1])<<6|63&n[r+2]),r+=2)}return i}(n,this.n.bitLength()+7>>3)},t.prototype.generateAsync=function(t,e,n){var r=new zt,i=t>>1;this.e=parseInt(e,16);var a=new bt(e,16),o=this,s=function(){var e=function(){if(o.p.compareTo(o.q)<=0){var t=o.p;o.p=o.q,o.q=t}var e=o.p.subtract(bt.ONE),r=o.q.subtract(bt.ONE),i=e.multiply(r);0==i.gcd(a).compareTo(bt.ONE)?(o.n=o.p.multiply(o.q),o.d=a.modInverse(i),o.dmp1=o.d.mod(e),o.dmq1=o.d.mod(r),o.coeff=o.q.modInverse(o.p),setTimeout((function(){n()}),0)):setTimeout(s,0)},l=function(){o.q=xt(),o.q.fromNumberAsync(i,1,r,(function(){o.q.subtract(bt.ONE).gcda(a,(function(t){0==t.compareTo(bt.ONE)&&o.q.isProbablePrime(10)?setTimeout(e,0):setTimeout(l,0)}))}))},u=function(){o.p=xt(),o.p.fromNumberAsync(t-i,1,r,(function(){o.p.subtract(bt.ONE).gcda(a,(function(t){0==t.compareTo(bt.ONE)&&o.p.isProbablePrime(10)?setTimeout(l,0):setTimeout(u,0)}))}))};setTimeout(u,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 Tt("0001"+r+"00"+t,16)}((Ht[n]||"")+e(t).toString(),this.n.bitLength()/4);if(null==r)return null;var i=this.doPrivate(r);if(null==i)return null;var a=i.toString(16);return 0==(1&a.length)?a:"0"+a},t.prototype.verify=function(t,e,n){var r=Tt(e,16),i=this.doPublic(r);return null==i?null:function(t){for(var e in Ht)if(Ht.hasOwnProperty(e)){var n=Ht[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 @@ r.version="2.29.4",i(Zn),r.fn=ua,r.min=tr,r.max=er,r.now=nr,r.utc=v,r.unix=ca,r.
|
|
|
15
15
|
* @since jsrsasign 2.1
|
|
16
16
|
* @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
|
|
17
17
|
*/
|
|
18
|
-
var Wt={};void 0!==Wt.asn1&&Wt.asn1||(Wt.asn1={}),Wt.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 bt(r,16).xor(t).add(bt.ONE).toString(16).replace(/^-/,"")}return e},this.getPEMStringFromHex=function(t,e){return hextopem(t,e)},this.newObject=function(t){var e=Wt.asn1,n=e.DERBoolean,r=e.DERInteger,i=e.DERBitString,a=e.DEROctetString,o=e.DERNull,s=e.DERObjectIdentifier,l=e.DEREnumerated,u=e.DERUTF8String,c=e.DERNumericString,h=e.DERPrintableString,d=e.DERTeletexString,f=e.DERIA5String,p=e.DERUTCTime,v=e.DERGeneralizedTime,g=e.DERSequence,m=e.DERSet,y=e.DERTaggedObject,b=e.ASN1Util.newObject,_=Object.keys(t);if(1!=_.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(":"+w+":"))throw"undefined key: "+w;if("bool"==w)return new n(t[w]);if("int"==w)return new r(t[w]);if("bitstr"==w)return new i(t[w]);if("octstr"==w)return new a(t[w]);if("null"==w)return new o(t[w]);if("oid"==w)return new s(t[w]);if("enum"==w)return new l(t[w]);if("utf8str"==w)return new u(t[w]);if("numstr"==w)return new c(t[w]);if("prnstr"==w)return new h(t[w]);if("telstr"==w)return new d(t[w]);if("ia5str"==w)return new f(t[w]);if("utctime"==w)return new p(t[w]);if("gentime"==w)return new v(t[w]);if("seq"==w){for(var D=t[w],S=[],x=0;x<D.length;x++){var T=b(D[x]);S.push(T)}return new g({array:S})}if("set"==w){for(D=t[w],S=[],x=0;x<D.length;x++){T=b(D[x]);S.push(T)}return new m({array:S})}if("tag"==w){var k=t[w];if("[object Array]"===Object.prototype.toString.call(k)&&3==k.length){var C=b(k[2]);return new y({tag:k[0],explicit:k[1],obj:C})}var E={};if(void 0!==k.explicit&&(E.explicit=k.explicit),void 0!==k.tag&&(E.tag=k.tag),void 0===k.obj)throw"obj shall be specified for 'tag'.";return E.obj=b(k.obj),new y(E)}},this.jsonToASN1HEX=function(t){return this.newObject(t).getEncodedHex()}},Wt.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 a=("00000000"+parseInt(t.substr(i,2),16).toString(2)).slice(-8);if(r+=a.substr(1,7),"0"==a.substr(0,1))e=e+"."+new bt(r,2).toString(10),r=""}return e},Wt.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 bt(t,10).toString(2),i=7-r.length%7;7==i&&(i=0);for(var a="",o=0;o<i;o++)a+="0";r=a+r;for(o=0;o<r.length-1;o+=7){var s=r.substr(o,7);o!=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("."),a=40*parseInt(i[0])+parseInt(i[1]);r+=e(a),i.splice(0,2);for(var o=0;o<i.length;o++)r+=n(i[o]);return r},Wt.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""}},Wt.asn1.DERAbstractString=function(t){Wt.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))},Gt.lang.extend(Wt.asn1.DERAbstractString,Wt.asn1.ASN1Object),Wt.asn1.DERAbstractTime=function(t){Wt.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),a=String(i.getFullYear());"utc"==e&&(a=a.substr(2,2));var o=a+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);o=o+"."+(l=l.replace(/[0]+$/,""))}}return o+"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,a){var o=new Date(Date.UTC(t,e-1,n,r,i,a,0));this.setByDate(o)},this.getFreshValueHex=function(){return this.hV}},Gt.lang.extend(Wt.asn1.DERAbstractTime,Wt.asn1.ASN1Object),Wt.asn1.DERAbstractStructured=function(t){Wt.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)},Gt.lang.extend(Wt.asn1.DERAbstractStructured,Wt.asn1.ASN1Object),Wt.asn1.DERBoolean=function(){Wt.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},Gt.lang.extend(Wt.asn1.DERBoolean,Wt.asn1.ASN1Object),Wt.asn1.DERInteger=function(t){Wt.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=Wt.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new bt(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))},Gt.lang.extend(Wt.asn1.DERInteger,Wt.asn1.ASN1Object),Wt.asn1.DERBitString=function(t){if(void 0!==t&&void 0!==t.obj){var e=Wt.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}Wt.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),a=parseInt(i,2).toString(16);1==a.length&&(a="0"+a),r+=a}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))},Gt.lang.extend(Wt.asn1.DERBitString,Wt.asn1.ASN1Object),Wt.asn1.DEROctetString=function(t){if(void 0!==t&&void 0!==t.obj){var e=Wt.asn1.ASN1Util.newObject(t.obj);t.hex=e.getEncodedHex()}Wt.asn1.DEROctetString.superclass.constructor.call(this,t),this.hT="04"},Gt.lang.extend(Wt.asn1.DEROctetString,Wt.asn1.DERAbstractString),Wt.asn1.DERNull=function(){Wt.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},Gt.lang.extend(Wt.asn1.DERNull,Wt.asn1.ASN1Object),Wt.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 bt(t,10).toString(2),i=7-r.length%7;7==i&&(i=0);for(var a="",o=0;o<i;o++)a+="0";r=a+r;for(o=0;o<r.length-1;o+=7){var s=r.substr(o,7);o!=r.length-7&&(s="1"+s),n+=e(parseInt(s,2))}return n};Wt.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("."),a=40*parseInt(i[0])+parseInt(i[1]);r+=e(a),i.splice(0,2);for(var o=0;o<i.length;o++)r+=n(i[o]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},this.setValueName=function(t){var e=Wt.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))},Gt.lang.extend(Wt.asn1.DERObjectIdentifier,Wt.asn1.ASN1Object),Wt.asn1.DEREnumerated=function(t){Wt.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=Wt.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new bt(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))},Gt.lang.extend(Wt.asn1.DEREnumerated,Wt.asn1.ASN1Object),Wt.asn1.DERUTF8String=function(t){Wt.asn1.DERUTF8String.superclass.constructor.call(this,t),this.hT="0c"},Gt.lang.extend(Wt.asn1.DERUTF8String,Wt.asn1.DERAbstractString),Wt.asn1.DERNumericString=function(t){Wt.asn1.DERNumericString.superclass.constructor.call(this,t),this.hT="12"},Gt.lang.extend(Wt.asn1.DERNumericString,Wt.asn1.DERAbstractString),Wt.asn1.DERPrintableString=function(t){Wt.asn1.DERPrintableString.superclass.constructor.call(this,t),this.hT="13"},Gt.lang.extend(Wt.asn1.DERPrintableString,Wt.asn1.DERAbstractString),Wt.asn1.DERTeletexString=function(t){Wt.asn1.DERTeletexString.superclass.constructor.call(this,t),this.hT="14"},Gt.lang.extend(Wt.asn1.DERTeletexString,Wt.asn1.DERAbstractString),Wt.asn1.DERIA5String=function(t){Wt.asn1.DERIA5String.superclass.constructor.call(this,t),this.hT="16"},Gt.lang.extend(Wt.asn1.DERIA5String,Wt.asn1.DERAbstractString),Wt.asn1.DERUTCTime=function(t){Wt.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))},Gt.lang.extend(Wt.asn1.DERUTCTime,Wt.asn1.DERAbstractTime),Wt.asn1.DERGeneralizedTime=function(t){Wt.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))},Gt.lang.extend(Wt.asn1.DERGeneralizedTime,Wt.asn1.DERAbstractTime),Wt.asn1.DERSequence=function(t){Wt.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}},Gt.lang.extend(Wt.asn1.DERSequence,Wt.asn1.DERAbstractStructured),Wt.asn1.DERSet=function(t){Wt.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)},Gt.lang.extend(Wt.asn1.DERSet,Wt.asn1.DERAbstractStructured),Wt.asn1.DERTaggedObject=function(t){Wt.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)))},Gt.lang.extend(Wt.asn1.DERTaggedObject,Wt.asn1.ASN1Object);var qt,$t=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)}}(),Kt=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 $t(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):st.unarmor(t),i=vt.decode(r);if(3===i.sub.length&&(i=i.sub[2].sub[0]),9===i.sub.length){e=i.sub[1].getHexStringValue(),this.n=Tt(e,16),n=i.sub[2].getHexStringValue(),this.e=parseInt(n,16);var a=i.sub[3].getHexStringValue();this.d=Tt(a,16);var o=i.sub[4].getHexStringValue();this.p=Tt(o,16);var s=i.sub[5].getHexStringValue();this.q=Tt(s,16);var l=i.sub[6].getHexStringValue();this.dmp1=Tt(l,16);var u=i.sub[7].getHexStringValue();this.dmq1=Tt(u,16);var c=i.sub[8].getHexStringValue();this.coeff=Tt(c,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=Tt(e,16),n=h.sub[1].getHexStringValue(),this.e=parseInt(n,16)}else e=i.sub[0].getHexStringValue(),this.n=Tt(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 Wt.asn1.DERInteger({int:0}),new Wt.asn1.DERInteger({bigint:this.n}),new Wt.asn1.DERInteger({int:this.e}),new Wt.asn1.DERInteger({bigint:this.d}),new Wt.asn1.DERInteger({bigint:this.p}),new Wt.asn1.DERInteger({bigint:this.q}),new Wt.asn1.DERInteger({bigint:this.dmp1}),new Wt.asn1.DERInteger({bigint:this.dmq1}),new Wt.asn1.DERInteger({bigint:this.coeff})]};return new Wt.asn1.DERSequence(t).getEncodedHex()},e.prototype.getPrivateBaseKeyB64=function(){return rt(this.getPrivateBaseKey())},e.prototype.getPublicBaseKey=function(){var t=new Wt.asn1.DERSequence({array:[new Wt.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new Wt.asn1.DERNull]}),e=new Wt.asn1.DERSequence({array:[new Wt.asn1.DERInteger({bigint:this.n}),new Wt.asn1.DERInteger({int:this.e})]}),n=new Wt.asn1.DERBitString({hex:"00"+e.getEncodedHex()});return new Wt.asn1.DERSequence({array:[t,n]}).getEncodedHex()},e.prototype.getPublicBaseKeyB64=function(){return rt(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}(Ut),Zt=void 0!==W?null===(qt=W.env)||void 0===qt?void 0:qt.npm_package_version:void 0,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 Kt(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(it(t))}catch(t){return!1}},t.prototype.encrypt=function(t){try{return rt(this.getKey().encrypt(t))}catch(t){return!1}},t.prototype.sign=function(t,e,n){try{return rt(this.getKey().sign(t,e,n))}catch(t){return!1}},t.prototype.verify=function(t,e,n){try{return this.getKey().verify(t,it(e),n)}catch(t){return!1}},t.prototype.getKey=function(t){if(!this.key){if(this.key=new Kt,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=Zt,t}(),Jt={},Qt=l((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!==o&&o.crypto&&(n=o.crypto),!n)try{n=Jt}catch(t){}var r=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.")},i=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=i(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)}},u=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 a=0;a<i;a++){var o=n[a>>>2]>>>24-a%4*8&255;e[r+a>>>2]|=o<<24-(r+a)%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(r());return new u.init(e,t)}}),c=a.enc={},h=c.Hex={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i<n;i++){var a=e[i>>>2]>>>24-i%4*8&255;r.push((a>>>4).toString(16)),r.push((15&a).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 u.init(n,e/2)}},d=c.Latin1={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i<n;i++){var a=e[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(a))}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 u.init(n,e)}},f=c.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 u.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,a=r.sigBytes,o=this.blockSize,s=a/(4*o),l=(s=e?t.ceil(s):t.max((0|s)-this._minBufferSize,0))*o,c=t.min(4*l,a);if(l){for(var h=0;h<l;h+=o)this._doProcessBlock(i,h);n=i.splice(0,l),r.sigBytes-=c}return new u.init(n,c)},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 v.HMAC.init(t,n).finalize(e)}}});var v=a.algo={};return a}(Math),n)})),te=(l((function(t,e){var n;t.exports=(n=Qt,function(t){var e=n,r=e.lib,i=r.Base,a=r.WordArray,o=e.x64={};o.Word=i.extend({init:function(t,e){this.high=t,this.low=e}}),o.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 a.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)})),l((function(t,e){var n;t.exports=(n=Qt,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)})),l((function(t,e){var n;t.exports=(n=Qt,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 a=e[i>>>2]>>>16-i%4*8&65535;r.push(String.fromCharCode(a))}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=[],a=0;a<n;a+=2){var o=i(e[a>>>2]>>>16-a%4*8&65535);r.push(String.fromCharCode(o))}return r.join("")},parse:function(t){for(var n=t.length,r=[],a=0;a<n;a++)r[a>>>1]|=i(t.charCodeAt(a)<<16-a%2*16);return e.create(r,2*n)}}}(),n.enc.Utf16)})),l((function(t,e){var n;t.exports=(n=Qt,function(){var t=n,e=t.lib.WordArray;function r(t,n,r){for(var i=[],a=0,o=0;o<n;o++)if(o%4){var s=r[t.charCodeAt(o-1)]<<o%4*2|r[t.charCodeAt(o)]>>>6-o%4*2;i[a>>>2]|=s<<24-a%4*8,a++}return e.create(i,a)}t.enc.Base64={stringify:function(t){var e=t.words,n=t.sigBytes,r=this._map;t.clamp();for(var i=[],a=0;a<n;a+=3)for(var o=(e[a>>>2]>>>24-a%4*8&255)<<16|(e[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|e[a+2>>>2]>>>24-(a+2)%4*8&255,s=0;s<4&&a+.75*s<n;s++)i.push(r.charAt(o>>>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 a=0;a<n.length;a++)i[n.charCodeAt(a)]=a}var o=n.charAt(64);if(o){var s=t.indexOf(o);-1!==s&&(e=s)}return r(t,e,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),n.enc.Base64)})),l((function(t,e){var n;t.exports=(n=Qt,function(){var t=n,e=t.lib.WordArray;function r(t,n,r){for(var i=[],a=0,o=0;o<n;o++)if(o%4){var s=r[t.charCodeAt(o-1)]<<o%4*2|r[t.charCodeAt(o)]>>>6-o%4*2;i[a>>>2]|=s<<24-a%4*8,a++}return e.create(i,a)}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 a=[],o=0;o<r;o+=3)for(var s=(n[o>>>2]>>>24-o%4*8&255)<<16|(n[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|n[o+2>>>2]>>>24-(o+2)%4*8&255,l=0;l<4&&o+.75*l<r;l++)a.push(i.charAt(s>>>6*(3-l)&63));var u=i.charAt(64);if(u)for(;a.length%4;)a.push(u);return a.join("")},parse:function(t,e){void 0===e&&(e=!0);var n=t.length,i=e?this._safe_map:this._map,a=this._reverseMap;if(!a){a=this._reverseMap=[];for(var o=0;o<i.length;o++)a[i.charCodeAt(o)]=o}var s=i.charAt(64);if(s){var l=t.indexOf(s);-1!==l&&(n=l)}return r(t,n,a)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"}}(),n.enc.Base64url)})),l((function(t,e){var n;t.exports=(n=Qt,function(t){var e=n,r=e.lib,i=r.WordArray,a=r.Hasher,o=e.algo,s=[];!function(){for(var e=0;e<64;e++)s[e]=4294967296*t.abs(t.sin(e+1))|0}();var l=o.MD5=a.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 a=this._hash.words,o=t[e+0],l=t[e+1],f=t[e+2],p=t[e+3],v=t[e+4],g=t[e+5],m=t[e+6],y=t[e+7],b=t[e+8],_=t[e+9],w=t[e+10],D=t[e+11],S=t[e+12],x=t[e+13],T=t[e+14],k=t[e+15],C=a[0],E=a[1],O=a[2],A=a[3];C=u(C,E,O,A,o,7,s[0]),A=u(A,C,E,O,l,12,s[1]),O=u(O,A,C,E,f,17,s[2]),E=u(E,O,A,C,p,22,s[3]),C=u(C,E,O,A,v,7,s[4]),A=u(A,C,E,O,g,12,s[5]),O=u(O,A,C,E,m,17,s[6]),E=u(E,O,A,C,y,22,s[7]),C=u(C,E,O,A,b,7,s[8]),A=u(A,C,E,O,_,12,s[9]),O=u(O,A,C,E,w,17,s[10]),E=u(E,O,A,C,D,22,s[11]),C=u(C,E,O,A,S,7,s[12]),A=u(A,C,E,O,x,12,s[13]),O=u(O,A,C,E,T,17,s[14]),C=c(C,E=u(E,O,A,C,k,22,s[15]),O,A,l,5,s[16]),A=c(A,C,E,O,m,9,s[17]),O=c(O,A,C,E,D,14,s[18]),E=c(E,O,A,C,o,20,s[19]),C=c(C,E,O,A,g,5,s[20]),A=c(A,C,E,O,w,9,s[21]),O=c(O,A,C,E,k,14,s[22]),E=c(E,O,A,C,v,20,s[23]),C=c(C,E,O,A,_,5,s[24]),A=c(A,C,E,O,T,9,s[25]),O=c(O,A,C,E,p,14,s[26]),E=c(E,O,A,C,b,20,s[27]),C=c(C,E,O,A,x,5,s[28]),A=c(A,C,E,O,f,9,s[29]),O=c(O,A,C,E,y,14,s[30]),C=h(C,E=c(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,T,23,s[35]),C=h(C,E,O,A,l,4,s[36]),A=h(A,C,E,O,v,11,s[37]),O=h(O,A,C,E,y,16,s[38]),E=h(E,O,A,C,w,23,s[39]),C=h(C,E,O,A,x,4,s[40]),A=h(A,C,E,O,o,11,s[41]),O=h(O,A,C,E,p,16,s[42]),E=h(E,O,A,C,m,23,s[43]),C=h(C,E,O,A,_,4,s[44]),A=h(A,C,E,O,S,11,s[45]),O=h(O,A,C,E,k,16,s[46]),C=d(C,E=h(E,O,A,C,f,23,s[47]),O,A,o,6,s[48]),A=d(A,C,E,O,y,10,s[49]),O=d(O,A,C,E,T,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,w,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,k,10,s[57]),O=d(O,A,C,E,m,15,s[58]),E=d(E,O,A,C,x,21,s[59]),C=d(C,E,O,A,v,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,_,21,s[63]),a[0]=a[0]+C|0,a[1]=a[1]+E|0,a[2]=a[2]+O|0,a[3]=a[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 a=t.floor(r/4294967296),o=r;n[15+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),n[14+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),e.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,l=s.words,u=0;u<4;u++){var c=l[u];l[u]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return s},clone:function(){var t=a.clone.call(this);return t._hash=this._hash.clone(),t}});function u(t,e,n,r,i,a,o){var s=t+(e&n|~e&r)+i+o;return(s<<a|s>>>32-a)+e}function c(t,e,n,r,i,a,o){var s=t+(e&r|n&~r)+i+o;return(s<<a|s>>>32-a)+e}function h(t,e,n,r,i,a,o){var s=t+(e^n^r)+i+o;return(s<<a|s>>>32-a)+e}function d(t,e,n,r,i,a,o){var s=t+(n^(e|~r))+i+o;return(s<<a|s>>>32-a)+e}e.MD5=a._createHelper(l),e.HmacMD5=a._createHmacHelper(l)}(Math),n.MD5)})),l((function(t,e){var n;t.exports=(n=Qt,function(){var t=n,e=t.lib,r=e.WordArray,i=e.Hasher,a=t.algo,o=[],s=a.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],a=n[2],s=n[3],l=n[4],u=0;u<80;u++){if(u<16)o[u]=0|t[e+u];else{var c=o[u-3]^o[u-8]^o[u-14]^o[u-16];o[u]=c<<1|c>>>31}var h=(r<<5|r>>>27)+l+o[u];h+=u<20?1518500249+(i&a|~i&s):u<40?1859775393+(i^a^s):u<60?(i&a|i&s|a&s)-1894007588:(i^a^s)-899497514,l=s,s=a,a=i<<30|i>>>2,i=r,r=h}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+a|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)})),l((function(t,e){var n;t.exports=(n=Qt,function(t){var e=n,r=e.lib,i=r.WordArray,a=r.Hasher,o=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 u=[],c=o.SHA256=a.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],a=n[2],o=n[3],s=n[4],c=n[5],h=n[6],d=n[7],f=0;f<64;f++){if(f<16)u[f]=0|t[e+f];else{var p=u[f-15],v=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,g=u[f-2],m=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;u[f]=v+u[f-7]+m+u[f-16]}var y=r&i^r&a^i&a,b=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),_=d+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&c^~s&h)+l[f]+u[f];d=h,h=c,c=s,s=o+_|0,o=a,a=i,i=r,r=_+(b+y)|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+a|0,n[3]=n[3]+o|0,n[4]=n[4]+s|0,n[5]=n[5]+c|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=a.clone.call(this);return t._hash=this._hash.clone(),t}});e.SHA256=a._createHelper(c),e.HmacSHA256=a._createHmacHelper(c)}(Math),n.SHA256)})),l((function(t,e){var n;t.exports=(n=Qt,function(){var t=n,e=t.lib.WordArray,r=t.algo,i=r.SHA256,a=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(a),t.HmacSHA224=i._createHmacHelper(a)}(),n.SHA224)})),l((function(t,e){var n;t.exports=(n=Qt,function(){var t=n,e=t.lib.Hasher,r=t.x64,i=r.Word,a=r.WordArray,o=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)],u=[];!function(){for(var t=0;t<80;t++)u[t]=s()}();var c=o.SHA512=e.extend({_doReset:function(){this._hash=new a.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],a=n[2],o=n[3],s=n[4],c=n[5],h=n[6],d=n[7],f=r.high,p=r.low,v=i.high,g=i.low,m=a.high,y=a.low,b=o.high,_=o.low,w=s.high,D=s.low,S=c.high,x=c.low,T=h.high,k=h.low,C=d.high,E=d.low,O=f,A=p,M=v,P=g,V=m,R=y,N=b,B=_,I=w,F=D,j=S,L=x,Y=T,z=k,U=C,H=E,G=0;G<80;G++){var W,q,$=u[G];if(G<16)q=$.high=0|t[e+2*G],W=$.low=0|t[e+2*G+1];else{var K=u[G-15],Z=K.high,X=K.low,J=(Z>>>1|X<<31)^(Z>>>8|X<<24)^Z>>>7,Q=(X>>>1|Z<<31)^(X>>>8|Z<<24)^(X>>>7|Z<<25),tt=u[G-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),at=u[G-7],ot=at.high,st=at.low,lt=u[G-16],ut=lt.high,ct=lt.low;q=(q=(q=J+ot+((W=Q+st)>>>0<Q>>>0?1:0))+rt+((W+=it)>>>0<it>>>0?1:0))+ut+((W+=ct)>>>0<ct>>>0?1:0),$.high=q,$.low=W}var ht,dt=I&j^~I&Y,ft=F&L^~F&z,pt=O&M^O&V^M&V,vt=A&P^A&R^P&R,gt=(O>>>28|A<<4)^(O<<30|A>>>2)^(O<<25|A>>>7),mt=(A>>>28|O<<4)^(A<<30|O>>>2)^(A<<25|O>>>7),yt=(I>>>14|F<<18)^(I>>>18|F<<14)^(I<<23|F>>>9),bt=(F>>>14|I<<18)^(F>>>18|I<<14)^(F<<23|I>>>9),_t=l[G],wt=_t.high,Dt=_t.low,St=U+yt+((ht=H+bt)>>>0<H>>>0?1:0),xt=mt+vt;U=Y,H=z,Y=j,z=L,j=I,L=F,I=N+(St=(St=(St=St+dt+((ht+=ft)>>>0<ft>>>0?1:0))+wt+((ht+=Dt)>>>0<Dt>>>0?1:0))+q+((ht+=W)>>>0<W>>>0?1:0))+((F=B+ht|0)>>>0<B>>>0?1:0)|0,N=V,B=R,V=M,R=P,M=O,P=A,O=St+(gt+pt+(xt>>>0<mt>>>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+P,i.high=v+M+(g>>>0<P>>>0?1:0),y=a.low=y+R,a.high=m+V+(y>>>0<R>>>0?1:0),_=o.low=_+B,o.high=b+N+(_>>>0<B>>>0?1:0),D=s.low=D+F,s.high=w+I+(D>>>0<F>>>0?1:0),x=c.low=x+L,c.high=S+j+(x>>>0<L>>>0?1:0),k=h.low=k+z,h.high=T+Y+(k>>>0<z>>>0?1:0),E=d.low=E+H,d.high=C+U+(E>>>0<H>>>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(c),t.HmacSHA512=e._createHmacHelper(c)}(),n.SHA512)})),l((function(t,e){var n;t.exports=(n=Qt,function(){var t=n,e=t.x64,r=e.Word,i=e.WordArray,a=t.algo,o=a.SHA512,s=a.SHA384=o.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=o._doFinalize.call(this);return t.sigBytes-=16,t}});t.SHA384=o._createHelper(s),t.HmacSHA384=o._createHmacHelper(s)}(),n.SHA384)})),l((function(t,e){var n;t.exports=(n=Qt,function(t){var e=n,r=e.lib,i=r.WordArray,a=r.Hasher,o=e.x64.Word,s=e.algo,l=[],u=[],c=[];!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++)u[t+5*e]=e+(2*t+3*e)%5*5;for(var i=1,a=0;a<24;a++){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}c[a]=o.create(s,h)}}();var h=[];!function(){for(var t=0;t<25;t++)h[t]=o.create()}();var d=s.SHA3=a.extend({cfg:a.cfg.extend({outputLength:512}),_doReset:function(){for(var t=this._state=[],e=0;e<25;e++)t[e]=new o.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 a=t[e+2*i],o=t[e+2*i+1];a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),(E=n[i]).high^=o,E.low^=a}for(var s=0;s<24;s++){for(var d=0;d<5;d++){for(var f=0,p=0,v=0;v<5;v++)f^=(E=n[d+5*v]).high,p^=E.low;var g=h[d];g.high=f,g.low=p}for(d=0;d<5;d++){var m=h[(d+4)%5],y=h[(d+1)%5],b=y.high,_=y.low;for(f=m.high^(b<<1|_>>>31),p=m.low^(_<<1|b>>>31),v=0;v<5;v++)(E=n[d+5*v]).high^=f,E.low^=p}for(var w=1;w<25;w++){var D=(E=n[w]).high,S=E.low,x=l[w];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 T=h[u[w]];T.high=f,T.low=p}var k=h[0],C=n[0];for(k.high=C.high,k.low=C.low,d=0;d<5;d++)for(v=0;v<5;v++){var E=n[w=d+5*v],O=h[w],A=h[(d+1)%5+5*v],M=h[(d+2)%5+5*v];E.high=O.high^~A.high&M.high,E.low=O.low^~A.low&M.low}E=n[0];var P=c[s];E.high^=P.high,E.low^=P.low}},_doFinalize:function(){var e=this._data,n=e.words;this._nDataBytes;var r=8*e.sigBytes,a=32*this.blockSize;n[r>>>5]|=1<<24-r%32,n[(t.ceil((r+1)/a)*a>>>5)-1]|=128,e.sigBytes=4*n.length,this._process();for(var o=this._state,s=this.cfg.outputLength/8,l=s/8,u=[],c=0;c<l;c++){var h=o[c],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),u.push(f),u.push(d)}return new i.init(u,s)},clone:function(){for(var t=a.clone.call(this),e=t._state=this._state.slice(0),n=0;n<25;n++)e[n]=e[n].clone();return t}});e.SHA3=a._createHelper(d),e.HmacSHA3=a._createHmacHelper(d)}(Math),n.SHA3)})),l((function(t,e){var n;t.exports=(n=Qt,
|
|
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 bt(r,16).xor(t).add(bt.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,a=e.DEROctetString,o=e.DERNull,s=e.DERObjectIdentifier,l=e.DEREnumerated,u=e.DERUTF8String,c=e.DERNumericString,h=e.DERPrintableString,d=e.DERTeletexString,f=e.DERIA5String,p=e.DERUTCTime,v=e.DERGeneralizedTime,g=e.DERSequence,m=e.DERSet,y=e.DERTaggedObject,b=e.ASN1Util.newObject,_=Object.keys(t);if(1!=_.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(":"+w+":"))throw"undefined key: "+w;if("bool"==w)return new n(t[w]);if("int"==w)return new r(t[w]);if("bitstr"==w)return new i(t[w]);if("octstr"==w)return new a(t[w]);if("null"==w)return new o(t[w]);if("oid"==w)return new s(t[w]);if("enum"==w)return new l(t[w]);if("utf8str"==w)return new u(t[w]);if("numstr"==w)return new c(t[w]);if("prnstr"==w)return new h(t[w]);if("telstr"==w)return new d(t[w]);if("ia5str"==w)return new f(t[w]);if("utctime"==w)return new p(t[w]);if("gentime"==w)return new v(t[w]);if("seq"==w){for(var D=t[w],S=[],x=0;x<D.length;x++){var T=b(D[x]);S.push(T)}return new g({array:S})}if("set"==w){for(D=t[w],S=[],x=0;x<D.length;x++){T=b(D[x]);S.push(T)}return new m({array:S})}if("tag"==w){var k=t[w];if("[object Array]"===Object.prototype.toString.call(k)&&3==k.length){var C=b(k[2]);return new y({tag:k[0],explicit:k[1],obj:C})}var E={};if(void 0!==k.explicit&&(E.explicit=k.explicit),void 0!==k.tag&&(E.tag=k.tag),void 0===k.obj)throw"obj shall be specified for 'tag'.";return E.obj=b(k.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 a=("00000000"+parseInt(t.substr(i,2),16).toString(2)).slice(-8);if(r+=a.substr(1,7),"0"==a.substr(0,1))e=e+"."+new bt(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 bt(t,10).toString(2),i=7-r.length%7;7==i&&(i=0);for(var a="",o=0;o<i;o++)a+="0";r=a+r;for(o=0;o<r.length-1;o+=7){var s=r.substr(o,7);o!=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("."),a=40*parseInt(i[0])+parseInt(i[1]);r+=e(a),i.splice(0,2);for(var o=0;o<i.length;o++)r+=n(i[o]);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))},Gt.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),a=String(i.getFullYear());"utc"==e&&(a=a.substr(2,2));var o=a+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);o=o+"."+(l=l.replace(/[0]+$/,""))}}return o+"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,a){var o=new Date(Date.UTC(t,e-1,n,r,i,a,0));this.setByDate(o)},this.getFreshValueHex=function(){return this.hV}},Gt.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)},Gt.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"},Gt.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 bt(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))},Gt.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),a=parseInt(i,2).toString(16);1==a.length&&(a="0"+a),r+=a}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))},Gt.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"},Gt.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"},Gt.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 bt(t,10).toString(2),i=7-r.length%7;7==i&&(i=0);for(var a="",o=0;o<i;o++)a+="0";r=a+r;for(o=0;o<r.length-1;o+=7){var s=r.substr(o,7);o!=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("."),a=40*parseInt(i[0])+parseInt(i[1]);r+=e(a),i.splice(0,2);for(var o=0;o<i.length;o++)r+=n(i[o]);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))},Gt.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 bt(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))},Gt.lang.extend(qt.asn1.DEREnumerated,qt.asn1.ASN1Object),qt.asn1.DERUTF8String=function(t){qt.asn1.DERUTF8String.superclass.constructor.call(this,t),this.hT="0c"},Gt.lang.extend(qt.asn1.DERUTF8String,qt.asn1.DERAbstractString),qt.asn1.DERNumericString=function(t){qt.asn1.DERNumericString.superclass.constructor.call(this,t),this.hT="12"},Gt.lang.extend(qt.asn1.DERNumericString,qt.asn1.DERAbstractString),qt.asn1.DERPrintableString=function(t){qt.asn1.DERPrintableString.superclass.constructor.call(this,t),this.hT="13"},Gt.lang.extend(qt.asn1.DERPrintableString,qt.asn1.DERAbstractString),qt.asn1.DERTeletexString=function(t){qt.asn1.DERTeletexString.superclass.constructor.call(this,t),this.hT="14"},Gt.lang.extend(qt.asn1.DERTeletexString,qt.asn1.DERAbstractString),qt.asn1.DERIA5String=function(t){qt.asn1.DERIA5String.superclass.constructor.call(this,t),this.hT="16"},Gt.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))},Gt.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))},Gt.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}},Gt.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)},Gt.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)))},Gt.lang.extend(qt.asn1.DERTaggedObject,qt.asn1.ASN1Object);var Wt,$t=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)}}(),Kt=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 $t(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):st.unarmor(t),i=vt.decode(r);if(3===i.sub.length&&(i=i.sub[2].sub[0]),9===i.sub.length){e=i.sub[1].getHexStringValue(),this.n=Tt(e,16),n=i.sub[2].getHexStringValue(),this.e=parseInt(n,16);var a=i.sub[3].getHexStringValue();this.d=Tt(a,16);var o=i.sub[4].getHexStringValue();this.p=Tt(o,16);var s=i.sub[5].getHexStringValue();this.q=Tt(s,16);var l=i.sub[6].getHexStringValue();this.dmp1=Tt(l,16);var u=i.sub[7].getHexStringValue();this.dmq1=Tt(u,16);var c=i.sub[8].getHexStringValue();this.coeff=Tt(c,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=Tt(e,16),n=h.sub[1].getHexStringValue(),this.e=parseInt(n,16)}else e=i.sub[0].getHexStringValue(),this.n=Tt(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 rt(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 rt(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}(Ut),Zt=void 0!==q?null===(Wt=q.env)||void 0===Wt?void 0:Wt.npm_package_version:void 0,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 Kt(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(it(t))}catch(t){return!1}},t.prototype.encrypt=function(t){try{return rt(this.getKey().encrypt(t))}catch(t){return!1}},t.prototype.sign=function(t,e,n){try{return rt(this.getKey().sign(t,e,n))}catch(t){return!1}},t.prototype.verify=function(t,e,n){try{return this.getKey().verify(t,it(e),n)}catch(t){return!1}},t.prototype.getKey=function(t){if(!this.key){if(this.key=new Kt,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=Zt,t}(),Jt={},Qt=l((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!==o&&o.crypto&&(n=o.crypto),!n)try{n=Jt}catch(t){}var r=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.")},i=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=i(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)}},u=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 a=0;a<i;a++){var o=n[a>>>2]>>>24-a%4*8&255;e[r+a>>>2]|=o<<24-(r+a)%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(r());return new u.init(e,t)}}),c=a.enc={},h=c.Hex={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i<n;i++){var a=e[i>>>2]>>>24-i%4*8&255;r.push((a>>>4).toString(16)),r.push((15&a).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 u.init(n,e/2)}},d=c.Latin1={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i<n;i++){var a=e[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(a))}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 u.init(n,e)}},f=c.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 u.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,a=r.sigBytes,o=this.blockSize,s=a/(4*o),l=(s=e?t.ceil(s):t.max((0|s)-this._minBufferSize,0))*o,c=t.min(4*l,a);if(l){for(var h=0;h<l;h+=o)this._doProcessBlock(i,h);n=i.splice(0,l),r.sigBytes-=c}return new u.init(n,c)},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 v.HMAC.init(t,n).finalize(e)}}});var v=a.algo={};return a}(Math),n)})),te=(l((function(t,e){var n;t.exports=(n=Qt,function(t){var e=n,r=e.lib,i=r.Base,a=r.WordArray,o=e.x64={};o.Word=i.extend({init:function(t,e){this.high=t,this.low=e}}),o.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 a.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)})),l((function(t,e){var n;t.exports=(n=Qt,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)})),l((function(t,e){var n;t.exports=(n=Qt,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 a=e[i>>>2]>>>16-i%4*8&65535;r.push(String.fromCharCode(a))}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=[],a=0;a<n;a+=2){var o=i(e[a>>>2]>>>16-a%4*8&65535);r.push(String.fromCharCode(o))}return r.join("")},parse:function(t){for(var n=t.length,r=[],a=0;a<n;a++)r[a>>>1]|=i(t.charCodeAt(a)<<16-a%2*16);return e.create(r,2*n)}}}(),n.enc.Utf16)})),l((function(t,e){var n;t.exports=(n=Qt,function(){var t=n,e=t.lib.WordArray;function r(t,n,r){for(var i=[],a=0,o=0;o<n;o++)if(o%4){var s=r[t.charCodeAt(o-1)]<<o%4*2|r[t.charCodeAt(o)]>>>6-o%4*2;i[a>>>2]|=s<<24-a%4*8,a++}return e.create(i,a)}t.enc.Base64={stringify:function(t){var e=t.words,n=t.sigBytes,r=this._map;t.clamp();for(var i=[],a=0;a<n;a+=3)for(var o=(e[a>>>2]>>>24-a%4*8&255)<<16|(e[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|e[a+2>>>2]>>>24-(a+2)%4*8&255,s=0;s<4&&a+.75*s<n;s++)i.push(r.charAt(o>>>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 a=0;a<n.length;a++)i[n.charCodeAt(a)]=a}var o=n.charAt(64);if(o){var s=t.indexOf(o);-1!==s&&(e=s)}return r(t,e,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),n.enc.Base64)})),l((function(t,e){var n;t.exports=(n=Qt,function(){var t=n,e=t.lib.WordArray;function r(t,n,r){for(var i=[],a=0,o=0;o<n;o++)if(o%4){var s=r[t.charCodeAt(o-1)]<<o%4*2|r[t.charCodeAt(o)]>>>6-o%4*2;i[a>>>2]|=s<<24-a%4*8,a++}return e.create(i,a)}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 a=[],o=0;o<r;o+=3)for(var s=(n[o>>>2]>>>24-o%4*8&255)<<16|(n[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|n[o+2>>>2]>>>24-(o+2)%4*8&255,l=0;l<4&&o+.75*l<r;l++)a.push(i.charAt(s>>>6*(3-l)&63));var u=i.charAt(64);if(u)for(;a.length%4;)a.push(u);return a.join("")},parse:function(t,e){void 0===e&&(e=!0);var n=t.length,i=e?this._safe_map:this._map,a=this._reverseMap;if(!a){a=this._reverseMap=[];for(var o=0;o<i.length;o++)a[i.charCodeAt(o)]=o}var s=i.charAt(64);if(s){var l=t.indexOf(s);-1!==l&&(n=l)}return r(t,n,a)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"}}(),n.enc.Base64url)})),l((function(t,e){var n;t.exports=(n=Qt,function(t){var e=n,r=e.lib,i=r.WordArray,a=r.Hasher,o=e.algo,s=[];!function(){for(var e=0;e<64;e++)s[e]=4294967296*t.abs(t.sin(e+1))|0}();var l=o.MD5=a.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 a=this._hash.words,o=t[e+0],l=t[e+1],f=t[e+2],p=t[e+3],v=t[e+4],g=t[e+5],m=t[e+6],y=t[e+7],b=t[e+8],_=t[e+9],w=t[e+10],D=t[e+11],S=t[e+12],x=t[e+13],T=t[e+14],k=t[e+15],C=a[0],E=a[1],O=a[2],A=a[3];C=u(C,E,O,A,o,7,s[0]),A=u(A,C,E,O,l,12,s[1]),O=u(O,A,C,E,f,17,s[2]),E=u(E,O,A,C,p,22,s[3]),C=u(C,E,O,A,v,7,s[4]),A=u(A,C,E,O,g,12,s[5]),O=u(O,A,C,E,m,17,s[6]),E=u(E,O,A,C,y,22,s[7]),C=u(C,E,O,A,b,7,s[8]),A=u(A,C,E,O,_,12,s[9]),O=u(O,A,C,E,w,17,s[10]),E=u(E,O,A,C,D,22,s[11]),C=u(C,E,O,A,S,7,s[12]),A=u(A,C,E,O,x,12,s[13]),O=u(O,A,C,E,T,17,s[14]),C=c(C,E=u(E,O,A,C,k,22,s[15]),O,A,l,5,s[16]),A=c(A,C,E,O,m,9,s[17]),O=c(O,A,C,E,D,14,s[18]),E=c(E,O,A,C,o,20,s[19]),C=c(C,E,O,A,g,5,s[20]),A=c(A,C,E,O,w,9,s[21]),O=c(O,A,C,E,k,14,s[22]),E=c(E,O,A,C,v,20,s[23]),C=c(C,E,O,A,_,5,s[24]),A=c(A,C,E,O,T,9,s[25]),O=c(O,A,C,E,p,14,s[26]),E=c(E,O,A,C,b,20,s[27]),C=c(C,E,O,A,x,5,s[28]),A=c(A,C,E,O,f,9,s[29]),O=c(O,A,C,E,y,14,s[30]),C=h(C,E=c(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,T,23,s[35]),C=h(C,E,O,A,l,4,s[36]),A=h(A,C,E,O,v,11,s[37]),O=h(O,A,C,E,y,16,s[38]),E=h(E,O,A,C,w,23,s[39]),C=h(C,E,O,A,x,4,s[40]),A=h(A,C,E,O,o,11,s[41]),O=h(O,A,C,E,p,16,s[42]),E=h(E,O,A,C,m,23,s[43]),C=h(C,E,O,A,_,4,s[44]),A=h(A,C,E,O,S,11,s[45]),O=h(O,A,C,E,k,16,s[46]),C=d(C,E=h(E,O,A,C,f,23,s[47]),O,A,o,6,s[48]),A=d(A,C,E,O,y,10,s[49]),O=d(O,A,C,E,T,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,w,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,k,10,s[57]),O=d(O,A,C,E,m,15,s[58]),E=d(E,O,A,C,x,21,s[59]),C=d(C,E,O,A,v,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,_,21,s[63]),a[0]=a[0]+C|0,a[1]=a[1]+E|0,a[2]=a[2]+O|0,a[3]=a[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 a=t.floor(r/4294967296),o=r;n[15+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),n[14+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),e.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,l=s.words,u=0;u<4;u++){var c=l[u];l[u]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return s},clone:function(){var t=a.clone.call(this);return t._hash=this._hash.clone(),t}});function u(t,e,n,r,i,a,o){var s=t+(e&n|~e&r)+i+o;return(s<<a|s>>>32-a)+e}function c(t,e,n,r,i,a,o){var s=t+(e&r|n&~r)+i+o;return(s<<a|s>>>32-a)+e}function h(t,e,n,r,i,a,o){var s=t+(e^n^r)+i+o;return(s<<a|s>>>32-a)+e}function d(t,e,n,r,i,a,o){var s=t+(n^(e|~r))+i+o;return(s<<a|s>>>32-a)+e}e.MD5=a._createHelper(l),e.HmacMD5=a._createHmacHelper(l)}(Math),n.MD5)})),l((function(t,e){var n;t.exports=(n=Qt,function(){var t=n,e=t.lib,r=e.WordArray,i=e.Hasher,a=t.algo,o=[],s=a.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],a=n[2],s=n[3],l=n[4],u=0;u<80;u++){if(u<16)o[u]=0|t[e+u];else{var c=o[u-3]^o[u-8]^o[u-14]^o[u-16];o[u]=c<<1|c>>>31}var h=(r<<5|r>>>27)+l+o[u];h+=u<20?1518500249+(i&a|~i&s):u<40?1859775393+(i^a^s):u<60?(i&a|i&s|a&s)-1894007588:(i^a^s)-899497514,l=s,s=a,a=i<<30|i>>>2,i=r,r=h}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+a|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)})),l((function(t,e){var n;t.exports=(n=Qt,function(t){var e=n,r=e.lib,i=r.WordArray,a=r.Hasher,o=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 u=[],c=o.SHA256=a.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],a=n[2],o=n[3],s=n[4],c=n[5],h=n[6],d=n[7],f=0;f<64;f++){if(f<16)u[f]=0|t[e+f];else{var p=u[f-15],v=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,g=u[f-2],m=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;u[f]=v+u[f-7]+m+u[f-16]}var y=r&i^r&a^i&a,b=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),_=d+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&c^~s&h)+l[f]+u[f];d=h,h=c,c=s,s=o+_|0,o=a,a=i,i=r,r=_+(b+y)|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+a|0,n[3]=n[3]+o|0,n[4]=n[4]+s|0,n[5]=n[5]+c|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=a.clone.call(this);return t._hash=this._hash.clone(),t}});e.SHA256=a._createHelper(c),e.HmacSHA256=a._createHmacHelper(c)}(Math),n.SHA256)})),l((function(t,e){var n;t.exports=(n=Qt,function(){var t=n,e=t.lib.WordArray,r=t.algo,i=r.SHA256,a=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(a),t.HmacSHA224=i._createHmacHelper(a)}(),n.SHA224)})),l((function(t,e){var n;t.exports=(n=Qt,function(){var t=n,e=t.lib.Hasher,r=t.x64,i=r.Word,a=r.WordArray,o=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)],u=[];!function(){for(var t=0;t<80;t++)u[t]=s()}();var c=o.SHA512=e.extend({_doReset:function(){this._hash=new a.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],a=n[2],o=n[3],s=n[4],c=n[5],h=n[6],d=n[7],f=r.high,p=r.low,v=i.high,g=i.low,m=a.high,y=a.low,b=o.high,_=o.low,w=s.high,D=s.low,S=c.high,x=c.low,T=h.high,k=h.low,C=d.high,E=d.low,O=f,A=p,M=v,P=g,V=m,R=y,N=b,B=_,I=w,F=D,j=S,L=x,Y=T,z=k,U=C,H=E,G=0;G<80;G++){var q,W,$=u[G];if(G<16)W=$.high=0|t[e+2*G],q=$.low=0|t[e+2*G+1];else{var K=u[G-15],Z=K.high,X=K.low,J=(Z>>>1|X<<31)^(Z>>>8|X<<24)^Z>>>7,Q=(X>>>1|Z<<31)^(X>>>8|Z<<24)^(X>>>7|Z<<25),tt=u[G-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),at=u[G-7],ot=at.high,st=at.low,lt=u[G-16],ut=lt.high,ct=lt.low;W=(W=(W=J+ot+((q=Q+st)>>>0<Q>>>0?1:0))+rt+((q+=it)>>>0<it>>>0?1:0))+ut+((q+=ct)>>>0<ct>>>0?1:0),$.high=W,$.low=q}var ht,dt=I&j^~I&Y,ft=F&L^~F&z,pt=O&M^O&V^M&V,vt=A&P^A&R^P&R,gt=(O>>>28|A<<4)^(O<<30|A>>>2)^(O<<25|A>>>7),mt=(A>>>28|O<<4)^(A<<30|O>>>2)^(A<<25|O>>>7),yt=(I>>>14|F<<18)^(I>>>18|F<<14)^(I<<23|F>>>9),bt=(F>>>14|I<<18)^(F>>>18|I<<14)^(F<<23|I>>>9),_t=l[G],wt=_t.high,Dt=_t.low,St=U+yt+((ht=H+bt)>>>0<H>>>0?1:0),xt=mt+vt;U=Y,H=z,Y=j,z=L,j=I,L=F,I=N+(St=(St=(St=St+dt+((ht+=ft)>>>0<ft>>>0?1:0))+wt+((ht+=Dt)>>>0<Dt>>>0?1:0))+W+((ht+=q)>>>0<q>>>0?1:0))+((F=B+ht|0)>>>0<B>>>0?1:0)|0,N=V,B=R,V=M,R=P,M=O,P=A,O=St+(gt+pt+(xt>>>0<mt>>>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+P,i.high=v+M+(g>>>0<P>>>0?1:0),y=a.low=y+R,a.high=m+V+(y>>>0<R>>>0?1:0),_=o.low=_+B,o.high=b+N+(_>>>0<B>>>0?1:0),D=s.low=D+F,s.high=w+I+(D>>>0<F>>>0?1:0),x=c.low=x+L,c.high=S+j+(x>>>0<L>>>0?1:0),k=h.low=k+z,h.high=T+Y+(k>>>0<z>>>0?1:0),E=d.low=E+H,d.high=C+U+(E>>>0<H>>>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(c),t.HmacSHA512=e._createHmacHelper(c)}(),n.SHA512)})),l((function(t,e){var n;t.exports=(n=Qt,function(){var t=n,e=t.x64,r=e.Word,i=e.WordArray,a=t.algo,o=a.SHA512,s=a.SHA384=o.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=o._doFinalize.call(this);return t.sigBytes-=16,t}});t.SHA384=o._createHelper(s),t.HmacSHA384=o._createHmacHelper(s)}(),n.SHA384)})),l((function(t,e){var n;t.exports=(n=Qt,function(t){var e=n,r=e.lib,i=r.WordArray,a=r.Hasher,o=e.x64.Word,s=e.algo,l=[],u=[],c=[];!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++)u[t+5*e]=e+(2*t+3*e)%5*5;for(var i=1,a=0;a<24;a++){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}c[a]=o.create(s,h)}}();var h=[];!function(){for(var t=0;t<25;t++)h[t]=o.create()}();var d=s.SHA3=a.extend({cfg:a.cfg.extend({outputLength:512}),_doReset:function(){for(var t=this._state=[],e=0;e<25;e++)t[e]=new o.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 a=t[e+2*i],o=t[e+2*i+1];a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),(E=n[i]).high^=o,E.low^=a}for(var s=0;s<24;s++){for(var d=0;d<5;d++){for(var f=0,p=0,v=0;v<5;v++)f^=(E=n[d+5*v]).high,p^=E.low;var g=h[d];g.high=f,g.low=p}for(d=0;d<5;d++){var m=h[(d+4)%5],y=h[(d+1)%5],b=y.high,_=y.low;for(f=m.high^(b<<1|_>>>31),p=m.low^(_<<1|b>>>31),v=0;v<5;v++)(E=n[d+5*v]).high^=f,E.low^=p}for(var w=1;w<25;w++){var D=(E=n[w]).high,S=E.low,x=l[w];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 T=h[u[w]];T.high=f,T.low=p}var k=h[0],C=n[0];for(k.high=C.high,k.low=C.low,d=0;d<5;d++)for(v=0;v<5;v++){var E=n[w=d+5*v],O=h[w],A=h[(d+1)%5+5*v],M=h[(d+2)%5+5*v];E.high=O.high^~A.high&M.high,E.low=O.low^~A.low&M.low}E=n[0];var P=c[s];E.high^=P.high,E.low^=P.low}},_doFinalize:function(){var e=this._data,n=e.words;this._nDataBytes;var r=8*e.sigBytes,a=32*this.blockSize;n[r>>>5]|=1<<24-r%32,n[(t.ceil((r+1)/a)*a>>>5)-1]|=128,e.sigBytes=4*n.length,this._process();for(var o=this._state,s=this.cfg.outputLength/8,l=s/8,u=[],c=0;c<l;c++){var h=o[c],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),u.push(f),u.push(d)}return new i.init(u,s)},clone:function(){for(var t=a.clone.call(this),e=t._state=this._state.slice(0),n=0;n<25;n++)e[n]=e[n].clone();return t}});e.SHA3=a._createHelper(d),e.HmacSHA3=a._createHmacHelper(d)}(Math),n.SHA3)})),l((function(t,e){var n;t.exports=(n=Qt,
|
|
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:
|
|
@@ -29,7 +29,7 @@ function(t){var e=n,r=e.lib,i=r.WordArray,a=r.Hasher,o=e.algo,s=i.create([0,1,2,
|
|
|
29
29
|
* derived from CryptoJS.mode.CTR
|
|
30
30
|
* Jan Hruby jhruby.web@gmail.com
|
|
31
31
|
*/
|
|
32
|
-
(n=Qt).mode.CTRGladman=function(){var t=n.lib.BlockCipherMode.extend();function e(t){if(255==(t>>24&255)){var e=t>>16&255,n=t>>8&255,r=255&t;255===e?(e=0,255===n?(n=0,255===r?r=0:++r):++n):++e,t=0,t+=e<<16,t+=n<<8,t+=r}else t+=1<<24;return t}function r(t){return 0===(t[0]=e(t[0]))&&(t[1]=e(t[1])),t}var i=t.Encryptor=t.extend({processBlock:function(t,e){var n=this._cipher,i=n.blockSize,a=this._iv,o=this._counter;a&&(o=this._counter=a.slice(0),this._iv=void 0),r(o);var s=o.slice(0);n.encryptBlock(s,0);for(var l=0;l<i;l++)t[e+l]^=s[l]}});return t.Decryptor=i,t}(),n.mode.CTRGladman)})),l((function(t,e){var n,r,i;t.exports=((i=Qt).mode.OFB=(n=i.lib.BlockCipherMode.extend(),r=n.Encryptor=n.extend({processBlock:function(t,e){var n=this._cipher,r=n.blockSize,i=this._iv,a=this._keystream;i&&(a=this._keystream=i.slice(0),this._iv=void 0),n.encryptBlock(a,0);for(var o=0;o<r;o++)t[e+o]^=a[o]}}),n.Decryptor=r,n),i.mode.OFB)})),l((function(t,e){var n,r;t.exports=((r=Qt).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)})),l((function(t,e){var n;t.exports=((n=Qt).pad.AnsiX923={pad:function(t,e){var n=t.sigBytes,r=4*e,i=r-n%r,a=n+i-1;t.clamp(),t.words[a>>>2]|=i<<24-a%4*8,t.sigBytes+=i},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},n.pad.Ansix923)})),l((function(t,e){var n;t.exports=((n=Qt).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)})),l((function(t,e){var n;t.exports=((n=Qt).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)})),l((function(t,e){var n;t.exports=((n=Qt).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)})),l((function(t,e){var n;t.exports=((n=Qt).pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding)})),l((function(t,e){var n;t.exports=(n=Qt,function(t){var e=n,r=e.lib.CipherParams,i=e.enc.Hex;e.format.Hex={stringify:function(t){return t.ciphertext.toString(i)},parse:function(t){var e=i.parse(t);return r.create({ciphertext:e})}}}(),n.format.Hex)})),l((function(t,e){var n;t.exports=(n=Qt,function(){var t=n,e=t.lib.BlockCipher,r=t.algo,i=[],a=[],o=[],s=[],l=[],u=[],c=[],h=[],d=[],f=[];!function(){for(var t=[],e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;var n=0,r=0;for(e=0;e<256;e++){var p=r^r<<1^r<<2^r<<3^r<<4;p=p>>>8^255&p^99,i[n]=p,a[p]=n;var v=t[n],g=t[v],m=t[g],y=257*t[p]^16843008*p;o[n]=y<<24|y>>>8,s[n]=y<<16|y>>>16,l[n]=y<<8|y>>>24,u[n]=y,y=16843009*m^65537*g^257*v^16843008*n,c[p]=y<<24|y>>>8,h[p]=y<<16|y>>>16,d[p]=y<<8|y>>>24,f[p]=y,n?(n=v^t[t[t[m^v]]],r^=t[t[r]]):n=r=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],v=r.AES=e.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,e=t.words,n=t.sigBytes/4,r=4*((this._nRounds=n+6)+1),a=this._keySchedule=[],o=0;o<r;o++)o<n?a[o]=e[o]:(u=a[o-1],o%n?n>6&&o%n==4&&(u=i[u>>>24]<<24|i[u>>>16&255]<<16|i[u>>>8&255]<<8|i[255&u]):(u=i[(u=u<<8|u>>>24)>>>24]<<24|i[u>>>16&255]<<16|i[u>>>8&255]<<8|i[255&u],u^=p[o/n|0]<<24),a[o]=a[o-n]^u);for(var s=this._invKeySchedule=[],l=0;l<r;l++){if(o=r-l,l%4)var u=a[o];else u=a[o-4];s[l]=l<4||o<=4?u:c[i[u>>>24]]^h[i[u>>>16&255]]^d[i[u>>>8&255]]^f[i[255&u]]}}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,o,s,l,u,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,c,h,d,f,a),n=t[e+1],t[e+1]=t[e+3],t[e+3]=n},_doCryptBlock:function(t,e,n,r,i,a,o,s){for(var l=this._nRounds,u=t[e]^n[0],c=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 v=r[u>>>24]^i[c>>>16&255]^a[h>>>8&255]^o[255&d]^n[f++],g=r[c>>>24]^i[h>>>16&255]^a[d>>>8&255]^o[255&u]^n[f++],m=r[h>>>24]^i[d>>>16&255]^a[u>>>8&255]^o[255&c]^n[f++],y=r[d>>>24]^i[u>>>16&255]^a[c>>>8&255]^o[255&h]^n[f++];u=v,c=g,h=m,d=y}v=(s[u>>>24]<<24|s[c>>>16&255]<<16|s[h>>>8&255]<<8|s[255&d])^n[f++],g=(s[c>>>24]<<24|s[h>>>16&255]<<16|s[d>>>8&255]<<8|s[255&u])^n[f++],m=(s[h>>>24]<<24|s[d>>>16&255]<<16|s[u>>>8&255]<<8|s[255&c])^n[f++],y=(s[d>>>24]<<24|s[u>>>16&255]<<16|s[c>>>8&255]<<8|s[255&h])^n[f++],t[e]=v,t[e+1]=g,t[e+2]=m,t[e+3]=y},keySize:8});t.AES=e._createHelper(v)}(),n.AES)})),l((function(t,e){var n;t.exports=(n=Qt,function(){var t=n,e=t.lib,r=e.WordArray,i=e.BlockCipher,a=t.algo,o=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],u=[{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}],c=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=a.DES=i.extend({_doReset:function(){for(var t=this._key.words,e=[],n=0;n<56;n++){var r=o[n]-1;e[n]=t[r>>>5]>>>31-r%32&1}for(var i=this._subKeys=[],a=0;a<16;a++){var u=i[a]=[],c=l[a];for(n=0;n<24;n++)u[n/6|0]|=e[(s[n]-1+c)%28]<<31-n%6,u[4+(n/6|0)]|=e[28+(s[n+24]-1+c)%28]<<31-n%6;for(u[0]=u[0]<<1|u[0]>>>31,n=1;n<7;n++)u[n]=u[n]>>>4*(n-1)+3;u[7]=u[7]<<5|u[7]>>>27}var h=this._invSubKeys=[];for(n=0;n<16;n++)h[n]=i[15-n]},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._subKeys)},decryptBlock:function(t,e){this._doCryptBlock(t,e,this._invSubKeys)},_doCryptBlock:function(t,e,n){this._lBlock=t[e],this._rBlock=t[e+1],d.call(this,4,252645135),d.call(this,16,65535),f.call(this,2,858993459),f.call(this,8,16711935),d.call(this,1,1431655765);for(var r=0;r<16;r++){for(var i=n[r],a=this._lBlock,o=this._rBlock,s=0,l=0;l<8;l++)s|=u[l][((o^i[l])&c[l])>>>0];this._lBlock=o,this._rBlock=a^s}var h=this._lBlock;this._lBlock=this._rBlock,this._rBlock=h,d.call(this,1,1431655765),f.call(this,8,16711935),f.call(this,2,858993459),d.call(this,16,65535),d.call(this,4,252645135),t[e]=this._lBlock,t[e+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function d(t,e){var n=(this._lBlock>>>t^this._rBlock)&e;this._rBlock^=n,this._lBlock^=n<<t}function f(t,e){var n=(this._rBlock>>>t^this._lBlock)&e;this._lBlock^=n,this._rBlock^=n<<t}t.DES=i._createHelper(h);var p=a.TripleDES=i.extend({_doReset:function(){var t=this._key.words;if(2!==t.length&&4!==t.length&&t.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var e=t.slice(0,2),n=t.length<4?t.slice(0,2):t.slice(2,4),i=t.length<6?t.slice(0,2):t.slice(4,6);this._des1=h.createEncryptor(r.create(e)),this._des2=h.createEncryptor(r.create(n)),this._des3=h.createEncryptor(r.create(i))},encryptBlock:function(t,e){this._des1.encryptBlock(t,e),this._des2.decryptBlock(t,e),this._des3.encryptBlock(t,e)},decryptBlock:function(t,e){this._des3.decryptBlock(t,e),this._des2.encryptBlock(t,e),this._des1.decryptBlock(t,e)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=i._createHelper(p)}(),n.TripleDES)})),l((function(t,e){var n;t.exports=(n=Qt,function(){var t=n,e=t.lib.StreamCipher,r=t.algo,i=r.RC4=e.extend({_doReset:function(){for(var t=this._key,e=t.words,n=t.sigBytes,r=this._S=[],i=0;i<256;i++)r[i]=i;i=0;for(var a=0;i<256;i++){var o=i%n,s=e[o>>>2]>>>24-o%4*8&255;a=(a+r[i]+s)%256;var l=r[i];r[i]=r[a],r[a]=l}this._i=this._j=0},_doProcessBlock:function(t,e){t[e]^=a.call(this)},keySize:8,ivSize:0});function a(){for(var t=this._S,e=this._i,n=this._j,r=0,i=0;i<4;i++){n=(n+t[e=(e+1)%256])%256;var a=t[e];t[e]=t[n],t[n]=a,r|=t[(t[e]+t[n])%256]<<24-8*i}return this._i=e,this._j=n,r}t.RC4=e._createHelper(i);var o=r.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)a.call(this)}});t.RC4Drop=e._createHelper(o)}(),n.RC4)})),l((function(t,e){var n;t.exports=(n=Qt,function(){var t=n,e=t.lib.StreamCipher,r=t.algo,i=[],a=[],o=[],s=r.Rabbit=e.extend({_doReset:function(){for(var t=this._key.words,e=this.cfg.iv,n=0;n<4;n++)t[n]=16711935&(t[n]<<8|t[n]>>>24)|4278255360&(t[n]<<24|t[n]>>>8);var r=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],i=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];for(this._b=0,n=0;n<4;n++)l.call(this);for(n=0;n<8;n++)i[n]^=r[n+4&7];if(e){var a=e.words,o=a[0],s=a[1],u=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=u>>>16|4294901760&c,d=c<<16|65535&u;for(i[0]^=u,i[1]^=h,i[2]^=c,i[3]^=d,i[4]^=u,i[5]^=h,i[6]^=c,i[7]^=d,n=0;n<4;n++)l.call(this)}},_doProcessBlock:function(t,e){var n=this._X;l.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)i[r]=16711935&(i[r]<<8|i[r]>>>24)|4278255360&(i[r]<<24|i[r]>>>8),t[e+r]^=i[r]},blockSize:4,ivSize:2});function l(){for(var t=this._X,e=this._C,n=0;n<8;n++)a[n]=e[n];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<a[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<a[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<a[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<a[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<a[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<a[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<a[6]>>>0?1:0)|0,this._b=e[7]>>>0<a[7]>>>0?1:0,n=0;n<8;n++){var r=t[n]+e[n],i=65535&r,s=r>>>16,l=((i*i>>>17)+i*s>>>15)+s*s,u=((4294901760&r)*r|0)+((65535&r)*r|0);o[n]=l^u}t[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,t[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,t[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,t[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,t[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,t[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,t[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,t[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}t.Rabbit=e._createHelper(s)}(),n.Rabbit)})),l((function(t,e){var n;t.exports=(n=Qt,function(){var t=n,e=t.lib.StreamCipher,r=t.algo,i=[],a=[],o=[],s=r.RabbitLegacy=e.extend({_doReset:function(){var t=this._key.words,e=this.cfg.iv,n=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],r=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var i=0;i<4;i++)l.call(this);for(i=0;i<8;i++)r[i]^=n[i+4&7];if(e){var a=e.words,o=a[0],s=a[1],u=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=u>>>16|4294901760&c,d=c<<16|65535&u;for(r[0]^=u,r[1]^=h,r[2]^=c,r[3]^=d,r[4]^=u,r[5]^=h,r[6]^=c,r[7]^=d,i=0;i<4;i++)l.call(this)}},_doProcessBlock:function(t,e){var n=this._X;l.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)i[r]=16711935&(i[r]<<8|i[r]>>>24)|4278255360&(i[r]<<24|i[r]>>>8),t[e+r]^=i[r]},blockSize:4,ivSize:2});function l(){for(var t=this._X,e=this._C,n=0;n<8;n++)a[n]=e[n];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<a[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<a[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<a[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<a[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<a[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<a[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<a[6]>>>0?1:0)|0,this._b=e[7]>>>0<a[7]>>>0?1:0,n=0;n<8;n++){var r=t[n]+e[n],i=65535&r,s=r>>>16,l=((i*i>>>17)+i*s>>>15)+s*s,u=((4294901760&r)*r|0)+((65535&r)*r|0);o[n]=l^u}t[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,t[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,t[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,t[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,t[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,t[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,t[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,t[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}t.RabbitLegacy=e._createHelper(s)}(),n.RabbitLegacy)})),l((function(t,e){var n;t.exports=(n=Qt,function(){var t=n,e=t.lib.BlockCipher,r=t.algo;const i=16,a=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],o=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var s={pbox:[],sbox:[]};function l(t,e){let n=e>>24&255,r=e>>16&255,i=e>>8&255,a=255&e,o=t.sbox[0][n]+t.sbox[1][r];return o^=t.sbox[2][i],o+=t.sbox[3][a],o}function u(t,e,n){let r,a=e,o=n;for(let e=0;e<i;++e)a^=t.pbox[e],o=l(t,a)^o,r=a,a=o,o=r;return r=a,a=o,o=r,o^=t.pbox[i],a^=t.pbox[i+1],{left:a,right:o}}function c(t,e,n){let r,a=e,o=n;for(let e=i+1;e>1;--e)a^=t.pbox[e],o=l(t,a)^o,r=a,a=o,o=r;return r=a,a=o,o=r,o^=t.pbox[1],a^=t.pbox[0],{left:a,right:o}}function h(t,e,n){for(let e=0;e<4;e++){t.sbox[e]=[];for(let n=0;n<256;n++)t.sbox[e][n]=o[e][n]}let r=0;for(let o=0;o<i+2;o++)t.pbox[o]=a[o]^e[r],r++,r>=n&&(r=0);let s=0,l=0,c=0;for(let e=0;e<i+2;e+=2)c=u(t,s,l),s=c.left,l=c.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)c=u(t,s,l),s=c.left,l=c.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=u(s,t[e],t[e+1]);t[e]=n.left,t[e+1]=n.right},decryptBlock:function(t,e){var n=c(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)})),l((function(t,e){t.exports=Qt})));var ee=function(t,e){try{var n=e.xRatio,r=e.yRatio;return isNaN(n)||isNaN(r)?(console.error("发生错误:on updataSizeDeep in go-code "),t):(t.forEach((function(t){var i;t.baseData.left=t.baseData.left*n,t.baseData.width=t.baseData.width*n,t.baseData.top=t.baseData.top*r,t.baseData.height=t.baseData.height*r,t.baseData.angle=t.baseData.angle,(null===(i=null==t?void 0:t.children)||void 0===i?void 0:i.length)&&ee(null==t?void 0:t.children,e)})),t)}catch(e){return t}},ne=function(t,e){var n=!0;try{for(var r=0,i=["width","height","left","top","opacity","angel","skewY","skewX","rotateX","rotateY"];r<i.length;r++){var a=i[r];if(Object.hasOwn(t,a)&&isNaN(t[a])){if(!("string"==typeof t[a]&&t[a].includes("%")||"NaN"==t[a])){console.warn(a+"--参数校验不合法:"+e),n=!1;break}n=!0}}return n}catch(t){return console.warn("参数校验不合法:"+e),!1}},re=function(t,e,n){var r=t[n];return t.splice(n,1),t.splice(e,0,r),t},ie=function(t,e,n){var r=i.default.findIndex(t,(function(t){return t.cid==n})),a=i.default.findIndex(t,(function(t){return t.cid==e}));return re(t,a,r)},ae=function(t,e,n){for(var r=-1,i=0;i<t.length;i++){var a=t[i];if(a.children&&a.children.length)for(var o=0;o<a.children.length;o++){if(r=o,a.children[o].cid===n){switch(e){case"up":r>=1&&re(a.children,r-1,r);break;case"down":r<a.children.length-2&&re(a.children,r+1,r);break;case"top":0!==r&&re(a.children,0,r);break;case"bottom":var s=a.children.length-1;r!==s&&re(a.children,s,r)}break}}}return t},oe=function(t,e,n){var r=!1,a=function(t){for(var o=0;o<t.length;o++){if(t[o].cid==e){r=t[o],n&&i.default.remove(t,(function(t){return t.cid==e}));break}if(t[o].children)a(t[o].children);else if(t[o].dynamicChildren){if(t[o].dynamicChildren instanceof Map){for(var s=Array.from(t[o].dynamicChildren),l=0;l<s.length;l++)if(s[l]instanceof Array){var u=s[l][1];a(u)}}else if(t[o].dynamicChildren instanceof Array)for(s=t[o].dynamicChildren,l=0;l<s.length;l++)if(s[l]instanceof Array){u=s[l][1];a(u)}}else t[o].stateChildren&&a(t[o].stateChildren)}};return a(t),r||!1},se=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},le=function(t,e){var n=null,r=function(t,i){for(var a=0,o=t;a<o.length;a++){var s=o[a];if(s.cid==e){n=i;break}if(s.children)r(s.children,s);else if(s.dynamicChildren)if(s.dynamicChildren instanceof Map){for(var l=Array.from(s.dynamicChildren),u=0;u<l.length;u++)if(l[u]instanceof Array){var c=l[u][1];r(c,s)}}else s.dynamicChildren;else s.stateChildren&&r(s.stateChildren,s)}};return r(t,null),n||!1},ue=function(t,e,n){for(var r,i=function(i){var a=t[i];if(a.cid===e)return r=a,n&&t.splice(i,1),{value:r};if(a.children&&a.children.length){for(var o=0;o<a.children.length;o++)if(a.children[o].cid===e)return r=a.children[o],n&&a.children.splice(o,1),{value:r}}else if(a.stateChildren&&a.stateChildren.length){for(o=0;o<a.stateChildren.length;o++)if(a.stateChildren[o].cid===e)return r=a.stateChildren[o],n&&a.stateChildren.splice(o,1),{value:r}}else if(a.dynamicChildren){var s=void 0;if(a.dynamicChildren instanceof Map?s=a.dynamicChildren.get(a.activeDynamic):a.dynamicChildren instanceof Array&&(s=a.dynamicChildren.find((function(t){return t[0]==a.activeDynamic}))[1]),s)for(o=0;o<s.length;o++)if(s[o].cid===e)return r=s[o],n&&s.splice(o,1),{value:r}}},a=0;a<t.length;a++){var o=i(a);if("object"==typeof o)return o.value}return!!r},ce=function(t,e,n){var r=ue(t,e),i=ue(t,n);return r.pid&&i.pid||!r.pid&&!i.pid},he=function(t,e){var n=function(t){for(var r,i,a,o=0,s=t;o<s.length;o++){var l=s[o],u=null===(a=null===(i=null===(r=null==l?void 0:l.tmpData)||void 0===r?void 0:r.source)||void 0===i?void 0:i.converse)||void 0===a?void 0:a.data;if(null==u?void 0:u.length)for(var c=0,h=u;c<h.length;c++){var d=h[c];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)},de=function(t){var e=t.length,n=function(t,e){for(var r=function(r){var i=t[r];if(i&&i.children&&i.children.length){var a=i.children.length;n(i.children,a)}else if(i&&i.dynamicChildren){var o=i.dynamicChildren.length;Array.from(i.dynamicChildren).forEach((function(t,e){n(t[1],o)}))}i.z=10*e-r},i=0;i<t.length;i++)r(i)};n(t,e)},fe=function(t){var e=function(t,n){for(var r=function(r){var i=t[r],a=Ee();n?i.pid=n:i.drag||(i.baseData.left=0,i.baseData.top=0),i.cid=a,i&&i.children&&i.children.length?e(i.children,a):i&&i.dynamicChildren&&Array.from(i.dynamicChildren).forEach((function(t,n){e(t[1],a)}))},i=0;i<t.length;i++)r(i)};e(t)},pe=function(t,e,n,r){try{if(!t||!t.hasOwnProperty(e)&&!t.hasOwnProperty(r))throw"The property you want to modify is not found. Please check whether the attribute ".concat(e," is entered correctly!");if(r){i.default.cloneDeep(t[r][e]);t[r][e]=n}else t[e]=n}catch(t){console.error(t)}},ve=function(t,e){var n;try{var r="tmpData";if(!t||!(null===(n=t[r])||void 0===n?void 0:n.hasOwnProperty("option")))throw new Error("The property you want to modify is not found. Please check whether the attribute 'option' is entered correctly!");var a=i.default.cloneDeep(t[r].option),o={};Object.assign(o,a,e),console.log(o,a,"newOP"),t[r].option=o}catch(t){console.error(new Error("An error occurred: ".concat(t)))}},ge=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}))},ye=function(t,e){var n=i.default.cloneDeep(t),r=[];return n.children&&n.children.length&&n.children.forEach((function(t){var i=e&&(null==n?void 0:n.pid)?oe(e,n.pid):null;be(t,n,i),r.push(t)})),r},be=function(t,e,n){var r=function(t,e,n){var r=t.baseData.left,i=t.baseData.top,a=e;if(r+=a.baseData.left,i+=a.baseData.top,n){if(n.baseData.angle){var o=n.baseData.angle*Math.PI/180,s=Math.cos(o),l=Math.sin(o),u=r*l+i*s;r=r*s-i*l,i=u}n.baseData.scale&&(r*=n.baseData.scale.x,i*=n.baseData.scale.y)}return{left:r,top:i}}(t,e,n),i=r.left,a=r.top;t.baseData.left=i,t.baseData.top=a},_e=function(t,e){t.baseData.left=t.baseData.left+e.left,t.baseData.top=t.baseData.top+e.top},we=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},De=function(t,e){var n=i.default.cloneDeep(t),r=[],a=function(t,e){var n=oe(t,e);r.push(n.baseData),n.pid&&a(t,n.pid)};a(n,e);var o={left:0,top:0};return r.map((function(t){t&&(o.left+=t.left,o.top+=t.top)})),o},Se=function(t,e,n){var r=t.slice();return n||(r=i.default.cloneDeep(t)),r.length>1&&r.sort((function(t,n){return t.baseData[e]-n.baseData[e]})),r},xe=function(t,e){var n=[];return t.map((function(t){var r=e.find((function(e){return e.cid===t}));r&&n.push(r)})),Te(n)},Te=function(t,e){if(t.length>0){var n={left:0,top:0,width:0,height:0},r=Se(t,"left",e),i=Se(t,"top",e),a=r[0].baseData,o=r[r.length-1].baseData,s=i[0].baseData,l=i[i.length-1].baseData,u=Math.max.apply(Math,i.map((function(t){return 1*t.baseData.top+1*t.baseData.height}))),c=Math.max.apply(Math,i.map((function(t){return 1*t.baseData.left+1*t.baseData.width})));return n.left=a.left,n.width=Math.max(1*o.left+1*o.width,c)-1*a.left,n.top=s.top,n.height=Math.max(1*l.top+1*l.height,u)-1*s.top,n}return{left:0,top:0,width:0,height:0}},ke=function(t,e,n,r){var a=t.children,o=i.default.cloneDeep(e),s=i.default.cloneDeep(Te(a,r)),l=o.left,u=o.top;o.width,o.height;var c=s.left,h=s.top,d=s.width,f=s.height,p={left:l+c,top:u+h,width:d,height:f,angle:e.angle?e.angle:0};return a.forEach((function(t){var e=i.default.cloneDeep(t.baseData);t.baseData.left<0?e.left=0:e.left=e.left-c,t.baseData.top<0?e.top=0:e.top=e.top-h,t.baseData=e})),t.baseData=p,t.children=a,p},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){for(var n=t.types,r=t.element,i=t.actions,a=t.events,o=t.eventsComs,s=function(t){var e=n[t],s=r.tmpData.actions[t];if(s&&s.use){o&&o.push(r.cid);var l=s[s.behave];if(!l)return"continue";"vars"===s.behave?l.map((function(t){t.type=e,t.id=r.cid,t.model=0,t.originalValue||(t.originalValue=t.value),t.mapField&&i.push(t)})):l.length>0&&l.forEach((function(t,n){"toggle"===s.behave&&""!==t.value&&t.value.length&&a.push({id:r.cid,type:s.behave,children:t.value.map((function(t){return{cid:t.cid,visible:t.visible}})),eventType:e,index:n}),"update"===s.behave&&""!==t.value&&t.value.length?a.push({id:r.cid,type:s.behave,children:t.value.map((function(t){return{cid:t.cid,visible:t.visible}})),eventType:e,index:n}):"link"===s.behave&&""!==t.value?a.push({id:r.cid,type:s.behave,link:t.value,eventType:e,target:t.target,index:n}):"page"===s.behave&&""!==t.value?a.push({id:r.cid,type:s.behave,page:t.value,params:t.params,eventType:e,index:n}):"dynamic"===s.behave&&""!==t.value&&t.value.length>0?a.push({id:r.cid,type:s.behave,dynamic:t.value,eventType:e,index:n}):a.push(void 0)}))}},l=0;l<n.length;l++)s(l)}var Ae="anov@2019:helloX",Me="anov@2020:helloX";function Pe(t,e){var n=di.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 Ve={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}},Re=function(t){var e;try{var n=[];if((null==t?void 0:t.dynamicChildren)instanceof Map)for(var r=Array.from(null==t?void 0:t.dynamicChildren),i=0;i<r.length;i++)r[i]instanceof Array&&n.push.apply(n,r[i][1]);else if((null==t?void 0:t.dynamicChildren)instanceof Array)for(r=null==t?void 0:t.dynamicChildren,i=0;i<r.length;i++)r[i]instanceof Array&&n.push.apply(n,r[i][1]);if(null==n?void 0:n.length)for(var a=0,o=n;a<o.length;a++){var s=o[a];if(s){var l=null===(e=null==s?void 0:s.tmpData)||void 0===e?void 0:e.source,u=l.type;l&&"packData"==u&&(s.tmpData.source.packData.data=t.source[0])}}}catch(t){console.log(t)}},Ne=Object.defineProperty,Be=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,Fe=Object.prototype.propertyIsEnumerable,je=(t,e,n)=>e in t?Ne(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Le=(t,e)=>{for(var n in e||(e={}))Ie.call(e,n)&&je(t,n,e[n]);if(Be)for(var n of Be(e))Fe.call(e,n)&&je(t,n,e[n]);return t},Ye=Symbol.for("immer-nothing"),ze=Symbol.for("immer-draftable"),Ue=Symbol.for("immer-state"),He="production"!==W.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 Ge(t,...e){if("production"!==W.env.NODE_ENV){const n=He[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 We=Object.getPrototypeOf;function qe(t){return!!t&&!!t[Ue]}function $e(t){var e;return!!t&&(Ze(t)||Array.isArray(t)||!!t[ze]||!!(null==(e=t.constructor)?void 0:e[ze])||en(t)||nn(t))}var Ke=Object.prototype.constructor.toString();function Ze(t){if(!t||"object"!=typeof t)return!1;const e=We(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)===Ke}function Xe(t,e){0===Je(t)?Object.entries(t).forEach((([n,r])=>{e(n,r,t)})):t.forEach(((n,r)=>e(r,n,t)))}function Je(t){const e=t[Ue];return e?e.type_:Array.isArray(t)?1:en(t)?2:nn(t)?3:0}function Qe(t,e){return 2===Je(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function tn(t,e,n){const r=Je(t);2===r?t.set(e,n):3===r?t.add(n):t[e]=n}function en(t){return t instanceof Map}function nn(t){return t instanceof Set}function rn(t){return t.copy_||t.base_}function an(t,e){if(en(t))return new Map(t);if(nn(t))return new Set(t);if(Array.isArray(t))return Array.prototype.slice.call(t);if(!e&&Ze(t)){if(!We(t)){const e=Object.create(null);return Object.assign(e,t)}return Le({},t)}const n=Object.getOwnPropertyDescriptors(t);delete n[Ue];let r=Reflect.ownKeys(n);for(let e=0;e<r.length;e++){const i=r[e],a=n[i];!1===a.writable&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(n[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[i]})}return Object.create(We(t),n)}function on(t,e=!1){return ln(t)||qe(t)||!$e(t)||(Je(t)>1&&(t.set=t.add=t.clear=t.delete=sn),Object.freeze(t),e&&Xe(t,((t,e)=>on(e,!0)))),t}function sn(){Ge(2)}function ln(t){return Object.isFrozen(t)}var un,cn={};function hn(t){const e=cn[t];return e||Ge(0,t),e}function dn(){return un}function fn(t,e){e&&(hn("Patches"),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function pn(t){vn(t),t.drafts_.forEach(mn),t.drafts_=null}function vn(t){t===un&&(un=t.parent_)}function gn(t){return un={drafts_:[],parent_:un,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function mn(t){const e=t[Ue];0===e.type_||1===e.type_?e.revoke_():e.revoked_=!0}function yn(t,e){e.unfinalizedDrafts_=e.drafts_.length;const n=e.drafts_[0];return void 0!==t&&t!==n?(n[Ue].modified_&&(pn(e),Ge(4)),$e(t)&&(t=bn(e,t),e.parent_||wn(e,t)),e.patches_&&hn("Patches").generateReplacementPatches_(n[Ue].base_,t,e.patches_,e.inversePatches_)):t=bn(e,n,[]),pn(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==Ye?t:void 0}function bn(t,e,n){if(ln(e))return e;const r=e[Ue];if(!r)return Xe(e,((i,a)=>_n(t,r,e,i,a,n))),e;if(r.scope_!==t)return e;if(!r.modified_)return wn(t,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const e=r.copy_;let i=e,a=!1;3===r.type_&&(i=new Set(e),e.clear(),a=!0),Xe(i,((i,o)=>_n(t,r,e,i,o,n,a))),wn(t,e,!1),n&&t.patches_&&hn("Patches").generatePatches_(r,n,t.patches_,t.inversePatches_)}return r.copy_}function _n(t,e,n,r,i,a,o){if("production"!==W.env.NODE_ENV&&i===n&&Ge(5),qe(i)){const o=bn(t,i,a&&e&&3!==e.type_&&!Qe(e.assigned_,r)?a.concat(r):void 0);if(tn(n,r,o),!qe(o))return;t.canAutoFreeze_=!1}else o&&n.add(i);if($e(i)&&!ln(i)){if(!t.immer_.autoFreeze_&&t.unfinalizedDrafts_<1)return;bn(t,i),e&&e.scope_.parent_||wn(t,i)}}function wn(t,e,n=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&on(e,n)}var Dn={get(t,e){if(e===Ue)return t;const n=rn(t);if(!Qe(n,e))return function(t,e,n){var r;const i=Tn(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_||!$e(r)?r:r===xn(t.base_,e)?(Cn(t),t.copy_[e]=En(r,t)):r},has:(t,e)=>e in rn(t),ownKeys:t=>Reflect.ownKeys(rn(t)),set(t,e,n){const r=Tn(rn(t),e);if(null==r?void 0:r.set)return r.set.call(t.draft_,n),!0;if(!t.modified_){const r=xn(rn(t),e),i=null==r?void 0:r[Ue];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||Qe(t.base_,e)))return!0;Cn(t),kn(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!==xn(t.base_,e)||e in t.base_?(t.assigned_[e]=!1,Cn(t),kn(t)):delete t.assigned_[e],t.copy_&&delete t.copy_[e],!0),getOwnPropertyDescriptor(t,e){const n=rn(t),r=Reflect.getOwnPropertyDescriptor(n,e);return r?{writable:!0,configurable:1!==t.type_||"length"!==e,enumerable:r.enumerable,value:n[e]}:r},defineProperty(){Ge(11)},getPrototypeOf:t=>We(t.base_),setPrototypeOf(){Ge(12)}},Sn={};function xn(t,e){const n=t[Ue];return(n?rn(n):t)[e]}function Tn(t,e){if(!(e in t))return;let n=We(t);for(;n;){const t=Object.getOwnPropertyDescriptor(n,e);if(t)return t;n=We(n)}}function kn(t){t.modified_||(t.modified_=!0,t.parent_&&kn(t.parent_))}function Cn(t){t.copy_||(t.copy_=an(t.base_,t.scope_.immer_.useStrictShallowCopy_))}Xe(Dn,((t,e)=>{Sn[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Sn.deleteProperty=function(t,e){return"production"!==W.env.NODE_ENV&&isNaN(parseInt(e))&&Ge(13),Sn.set.call(this,t,e,void 0)},Sn.set=function(t,e,n){return"production"!==W.env.NODE_ENV&&"length"!==e&&isNaN(parseInt(e))&&Ge(14),Dn.set.call(this,t[0],e,n,t[0])};function En(t,e){const n=en(t)?hn("MapSet").proxyMap_(t,e):nn(t)?hn("MapSet").proxySet_(t,e):function(t,e){const n=Array.isArray(t),r={type_:n?1:0,scope_:e?e.scope_:dn(),modified_:!1,finalized_:!1,assigned_:{},parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,a=Dn;n&&(i=[r],a=Sn);const{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,s}(t,e);return(e?e.scope_:dn()).drafts_.push(n),n}function On(t){if(!$e(t)||ln(t))return t;const e=t[Ue];let n;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,n=an(t,e.scope_.immer_.useStrictShallowCopy_)}else n=an(t,!0);return Xe(n,((t,e)=>{tn(n,t,On(e))})),e&&(e.finalized_=!1),n}var An=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&&Ge(6),void 0!==n&&"function"!=typeof n&&Ge(7),$e(t)){const i=gn(this),a=En(t,void 0);let o=!0;try{r=e(a),o=!1}finally{o?pn(i):vn(i)}return fn(i,n),yn(r,i)}if(!t||"object"!=typeof t){if(r=e(t),void 0===r&&(r=t),r===Ye&&(r=void 0),this.autoFreeze_&&on(r,!0),n){const e=[],i=[];hn("Patches").generateReplacementPatches_(t,r,e,i),n(e,i)}return r}Ge(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){$e(t)||Ge(8),qe(t)&&(t=function(t){qe(t)||Ge(10,t);return On(t)}(t));const e=gn(this),n=En(t,void 0);return n[Ue].isManual_=!0,vn(e),n}finishDraft(t,e){const n=t&&t[Ue];n&&n.isManual_||Ge(9);const{scope_:r}=n;return fn(r,e),yn(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=hn("Patches").applyPatches_;return qe(t)?r(t,e):this.produce(t,(t=>r(t,e)))}},Mn=An.produce;An.produceWithPatches.bind(An);var Pn=An.setAutoFreeze.bind(An);function Vn(t,e){return Pn(!1),Mn(t,e)}An.setUseStrictShallowCopy.bind(An),An.applyPatches.bind(An),An.createDraft.bind(An),An.finishDraft.bind(An);var Rn={updataArea:function(t,e){t.currentArea=e},selectdArea:function(t,e){var n=xe(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),ne(e.data.baseData,"updataBaseData")){var i=e.ratio,a=oe(t.list,r.cid),o=e.oldData;if("object"!=typeof a||a.pid){if("object"==typeof a&&a.pid){var s=oe(t.list,a.pid);"object"==typeof s?(a.baseData.left<0&&(a.baseData.left=0),a.baseData.top<0&&(a.baseData.top=0),Object.assign(a.baseData,r.baseData),ke(s,s.baseData),t.groupFlag=!t.groupFlag):s||(a.baseData.left<0&&(a.baseData.left=0),a.baseData.top<0&&(a.baseData.top=0),Object.assign(a.baseData,r.baseData))}}else if(Object.assign(a.baseData,r.baseData),i&&a.children&&a.children.length>0){var l=a.baseData.width/o.width,u=a.baseData.height/o.height;ee(a.children,{xRatio:l,yRatio:u})}}},multipleUpdataBaseData:function(t,e){if(e.ratio)for(var n=e.newData,r=e.oldData,a=n.width/r.width,o=n.height/r.height,s=t.cache.length;s--;)t.cache[s].baseData.left=t.cache[s].baseData.left*a,t.cache[s].baseData.width=t.cache[s].baseData.width*a,t.cache[s].baseData.top=t.cache[s].baseData.top*o,t.cache[s].baseData.height=t.cache[s].baseData.height*o;else for(s=t.cache.length;s--;){var l=i.default.cloneDeep(t.cache[s].baseData);l.left=l.left+e.deltaX,l.top=l.top+e.deltaY,t.cache[s].comPanel?t.cache[s].comPanel.setAttrData(Object.assign(l,e.baseData)):t.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 a=t.list.filter((function(t){return n.includes(t.cid)}));0==a.length&&(a=[oe(t.list,n[0])]);for(var o=0;o<a.length;o++){var s=a[o];if(s.pid&&t.selectd.length>1)return void console.warn("Only one component can be moved within a group");if("up"===r?s.baseData.top=s.baseData.top-i:"down"===r?s.baseData.top+=i:"left"===r?s.baseData.left-=i:"right"===r&&(s.baseData.left+=i),"object"==typeof s&&s.pid){var l=oe(t.list,s.pid);"object"==typeof l&&(ke(l,l.baseData),t.groupFlag=!t.groupFlag)}}}else console.warn("Warning! please select the component to move.")},updataGroupBaseData:function(t,e){var n=oe(t.list,e.pid),r=i.default.cloneDeep(n);oe(n.children,e.cid),ke(n,r.baseData)},editGroupBaseData:function(t,e){var n=oe(t.list,e);n.children.forEach((function(t){_e(t,n.baseData)}))},syncBaseData:function(t,e){var n=e.cid,r=e.data,a=e.isContainer;console.time("syncBaseData");var o=function(t){for(var e=0;e<t.length;e++)n===t[e].cid?t[e].baseData=Object.assign({},t[e].baseData,r):t[e].hasOwnProperty("children")&&o(t[e].children)},s=Vn(t.list,(function(t){void 0!==a&&t.length&&o(t)}));if(a)t.list=s;else{var l=oe(s,n);if(l){var u=i.default.cloneDeep(l.baseData),c=Object.assign({},l.baseData,r);this.commit("GoCom/updataBaseData",{data:{cid:n,baseData:c},oldData:u,ratio:!0})}}console.timeEnd("syncBaseData")},updataItemData:function(t,e){var n=e.cid,r=e.propsName,i=e.propsValue,a=oe(t.list,n);a&&(a[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)}};function Nn(t,e,n,r){return new(n||(n=Promise))((function(i,a){function o(t){try{l(r.next(t))}catch(t){a(t)}}function s(t){try{l(r.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}l((r=r.apply(t,e||[])).next())}))}"function"==typeof SuppressedError&&SuppressedError;const Bn=5e3,In=5e3,Fn=(t="",e)=>{let n=a.default.create({baseURL:t,timeout:Bn,headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"}});return n.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)})),n.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)})),n};function jn(t,e=!1){return e?Ln(t)?t:JSON.stringify(t):Ln(t)?JSON.parse(t):t}const Ln=t=>{if("string"==typeof t)try{const e=JSON.parse(t);return"object"==typeof e&&null!==e}catch(t){return!1}return!1},Yn=(t,e)=>{try{const n=JSON.stringify(e);sessionStorage.setItem(t,n)}catch(e){console.error(`Error setting session data for key ${t}:`,e)}},zn=t=>{const e=sessionStorage.getItem(t);if(e)try{return JSON.parse(e)}catch(e){console.error(`Error parsing session data for key ${t}:`,e)}return null},Un=t=>{for(const e of t)e.code&&(e.code=e.code.replace(/>/g,">").replace(/</g,"<"))},Hn=(t,e)=>{t instanceof Map?t.forEach((t=>{e([t])})):Array.isArray(t)&&t.forEach((t=>{e(t.children)}))},Gn=(t,e)=>{const n=t=>{var r,i,a;if(t)for(const o of t){const t=null===(a=null===(i=null===(r=null==o?void 0:o.tmpData)||void 0===r?void 0:r.source)||void 0===i?void 0:i.converse)||void 0===a?void 0:a.data;(null==t?void 0:t.length)&&Un(t),e(o),o.children?n(o.children):o.dynamicChildren?Hn(o.dynamicChildren,n):o.stateChildren&&n(o.stateChildren)}};n(t)},Wn=(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&&qn(r,i,n.cid),!0}return!1},qn=(t,e,n)=>{if(!t)throw new Error("Share variable tree is not defined");if("string"!=typeof e)throw new Error("Variable name should be a string");if(!n)throw new Error("ID is required");Array.isArray(t[e])||(t[e]=[]),t[e].includes(n)||t[e].push(n)},$n=(t,e,n)=>{var r;let i=!1;const a=null==e?void 0:e.converse;if(a&&a.use&&a.data.length)for(const e of a.data)if((null==e?void 0:e.dependVars)&&e.dependVars.includes(t))return!0;const o=null==e?void 0:e[null==e?void 0:e.type];return((null==o?void 0:o.inputSql)||(null==o?void 0:o.url)||(null==o?void 0:o.headers)||(null==o?void 0:o.params))&&(i=Wn(o.inputSql||o.url||(null===(r=o.headers)||void 0===r?void 0:r.value)||o.params,n)),i},Kn=(t,e,n=!1)=>{let r=null;const a=t=>{for(const o of t){if(o.cid===e){r=o,n&&i.default.remove(t,(t=>t.cid===e));break}if(o.children&&a(o.children),o.dynamicChildren&&Array.isArray(o.dynamicChildren))for(const[,t]of Array.from(o.dynamicChildren))a(t);o.stateChildren&&a(o.stateChildren)}};return a(t),r};function Zn(t){let e=te.enc.Utf8.parse("anov@2019:helloX"),n=te.enc.Utf8.parse("anov@2020:helloX");return te.AES.encrypt(t,e,{iv:n,mode:te.mode.CBC,padding:te.pad.Pkcs7}).toString()}const Xn=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"]),Jn=URL.createObjectURL(Xn);function Qn(t,e,n={},r="worker"){return Nn(this,void 0,void 0,(function*(){try{if("window"==r){let[r,i]=[["data"],[e]];"object"==typeof n&&Object.keys(n).forEach((t=>{r.push(t),i.push(n[t])}));return{success:!0,data:new Function(...r,t)(...i)}}{let[r,i,a]=[e,n,""];"object"==typeof r&&(r=JSON.stringify(e)),"object"==typeof n&&(i=JSON.stringify(n)),Object.keys(n).forEach((t=>a+=`${t},`));let o=`let data=eval(${r}); \n let app=${JSON.stringify({})};`;o+=a?`let {${a}} = eval(${i}); `:"",o+=`${t}`;let s=yield function(t,e=5e3){return Nn(this,void 0,void 0,(function*(){let n=new Worker(Jn);return new Promise(((r,i)=>{const a=()=>{clearTimeout(s),n.removeEventListener("message",o),n.terminate(),n=null},o=t=>{let{code:e,result:n,err:o}=t.data;a(),1===e?r(n):i(o)};n.postMessage({code:t}),n.addEventListener("message",o);let s=setTimeout((()=>{a(),i("timeout")}),e)}))}))}(o);return{success:!0,data:s}}}catch(t){return{success:!1,error:t,data:e}}}))}var tr,er,nr,rr,ir;(ir=tr||(tr={})).StaticFile="staticFile",ir.DataSource="datasource",function(t){t.json="application/json;charset=UTF-8",t.form="application/x-www-form-urlencoded; charset=UTF-8"}(er||(er={})),function(t){t.get="GET",t.post="POST",t.put="PUT",t.patch="PATCH",t.delete="DELETE"}(nr||(nr={}));class ar{constructor(t){this.db=null,this.dbName=t.databaseName,this.tableName=t.tableName,this.keyPath=t.keyPath}static getInstance(t){return ar.instance||(ar.instance=new ar(t)),ar.instance}init(){return Nn(this,void 0,void 0,(function*(){return new Promise(((t,e)=>{const n=indexedDB.open(this.dbName,1);n.onerror=t=>{e(t.target.error)},n.onupgradeneeded=t=>{this.db=t.target.result,this.db.objectStoreNames.contains(this.tableName)||this.db.createObjectStore(this.tableName,{keyPath:this.keyPath})},n.onsuccess=e=>{this.db=e.target.result,t()}}))}))}addRecord(t){return Nn(this,void 0,void 0,(function*(){if(!this.db)throw new Error("数据库未初始化。");return new Promise(((e,n)=>{const r=this.db.transaction([this.tableName],"readwrite").objectStore(this.tableName).add(t);r.onsuccess=()=>{e()},r.onerror=t=>{n(t.target.error)}}))}))}deleteRecord(t){return Nn(this,void 0,void 0,(function*(){if(!this.db)throw new Error("数据库未初始化。");return new Promise(((e,n)=>{const r=this.db.transaction([this.tableName],"readwrite").objectStore(this.tableName).delete(t);r.onsuccess=()=>{e()},r.onerror=t=>{n(t.target.error)}}))}))}updateRecord(t){return Nn(this,void 0,void 0,(function*(){if(!this.db)throw new Error("数据库未初始化。");return new Promise(((e,n)=>{const r=this.db.transaction([this.tableName],"readwrite").objectStore(this.tableName).put(t);r.onsuccess=()=>{e()},r.onerror=t=>{n(t.target.error)}}))}))}getRecord(t){return Nn(this,void 0,void 0,(function*(){if(!this.db)throw new Error("数据库未初始化。");return new Promise(((e,n)=>{const r=this.db.transaction([this.tableName],"readonly").objectStore(this.tableName).get(t);r.onsuccess=()=>{e(r.result)},r.onerror=t=>{n(t.target.error)}}))}))}getAllRecords(){return Nn(this,void 0,void 0,(function*(){if(!this.db)throw new Error("数据库未初始化。");return new Promise(((t,e)=>{const n=this.db.transaction([this.tableName],"readonly").objectStore(this.tableName).getAll();n.onsuccess=()=>{t(n.result)},n.onerror=t=>{e(t.target.error)}}))}))}}ar.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"}(rr||(rr={}));const or={databaseName:"GODB",tableName:"go-log",keyPath:"time"};class sr{constructor(){this.logLevel=rr.INFO,this.indexedDBInstance=ar.getInstance(or);try{this.indexedDBInstance.init(),console.log("IndexedDB 初始化成功。")}catch(t){console.error("初始化 IndexedDB 时出错:",t)}}static getInstance(){return sr.instance||(sr.instance=new sr),sr.instance}setLogLevel(t){this.logLevel=t}getColor(t){switch(t){case rr.FATAL:return"[31;1m";case rr.ERROR:return"[31m";case rr.WARN:return"[33m";case rr.INFO:return"[32m";case rr.DEBUG:return"[36m";case rr.TRACE:return"[34m";default:return"[0m"}}log(t,e){if(e<=this.logLevel){const n=(new Date).toISOString(),r=`[${n}] [${rr[e]}]`,i=this.getColor(e);if(null===window||void 0===window?void 0:window.goDev)console.log(`${i}${r} ${t}[0m`);else{let e=zn("anov-go-userInfo"),a=zn("anov-go-proid"),o=` [操作人:${null==e?void 0:e.userName} 项目ID:${a}] `;const s={time:n,value:`${t}`};try{this.indexedDBInstance.addRecord(s)}catch(t){console.error("添加记录时出错:",t)}console.log(`${i}${r} ${o} ${t}[0m`)}}}fatal(t){this.log(t,rr.FATAL)}error(t){this.log(t,rr.ERROR)}warn(t){this.log(t,rr.WARN)}info(t){this.log(t,rr.INFO)}debug(t){this.log(t,rr.DEBUG)}trace(t){this.log(t,rr.TRACE)}}const lr=sr.getInstance(),ur=Fn();let cr=Fn();function hr(t,e="get",n={},r={}){return Nn(this,void 0,void 0,(function*(){try{const a={method:nr[e],url:t,headers:r,timeout:In};return["post","put"].includes(e.toLowerCase())?a.data=i.default.cloneDeep(n):a.params=i.default.cloneDeep(n),/.json$/.test(t)?function(t){return Nn(this,void 0,void 0,(function*(){try{return(yield ur({method:"get",url:t})).data}catch(t){throw console.error("JSON 数据请求:",t),t}}))}(t):function(t){return Nn(this,void 0,void 0,(function*(){try{return{code:2e4,data:(yield ur(t)).data}}catch(t){throw console.error("请求数据发生错误-Error:",t),t}}))}(a)}catch(t){throw console.error("获取数据:Error:",t),t}}))}function dr(t,e,n,r){return Nn(this,void 0,void 0,(function*(){try{const i=(window.anUrl||"")+(window.agentPath||"/ds/v1/api-proxy/v1/query"),a=jn(n,!0);return yield ur({url:i,method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:{body:"post"===t?a:void 0,headers:Ln(r)?JSON.parse(r):r,method:t,url:e}})}catch(t){throw console.error("代理请求数据:Error:",t),t}}))}function fr(t,e,n,r,i){return Nn(this,void 0,void 0,(function*(){return i?dr(e,t,n,r):hr(t,e,n,r)}))}function pr(t,e="",n){var r,i,a;const o=`${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=${Tr("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 s={};try{s=e?JSON.parse(e):{}}catch(t){s=e||{}}return ur({method:"POST",url:o,data:{headers:n,param:s},timeout:Bn})}const vr=(t,e)=>Nn(void 0,void 0,void 0,(function*(){const n=window.BaseUrl,{dateType:r="",endPeriod:i="",metricsName:a=t,startPeriod:o=""}=e;return cr({method:"GET",url:`${n}ds/v1/metrics/v1/data-alarm?dateType=${r}&endPeriod=${i}&metricsName=${a}&startPeriod=${o}`,timeout:Bn})})),gr=(t,e,n)=>Nn(void 0,void 0,void 0,(function*(){var r;const i=(null===(r=window.BaseUrl)||void 0===r?void 0:r.replace("/management",""))||"";e.newEncryption=!0;const a={staticFile:{method:"get",params:e,url:`${i}/ds/v1/file/v1/${t}/query`},datasource:{method:"post",url:`${i}/ds/v1/database/v1/${t}/query`,data:Object.assign({},e)}}[n];if(!a)throw new Error("Invalid data type provided");return ur(Object.assign({timeout:Bn},a))})),mr=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")})),yr=(t,e,n)=>{try{switch(e){case"api":{let e=Cr(t,n);return{requestType:e.requestType,url:e.url,params:e.params,headers:e.headers,agency:e.agency}}case"static":return{data:t};case"datasource":{const e=kr(t.inputSql,n);return{dsName:t.dsName,dsType:"1",sql:Zn(e),filter:t.sqlFilter}}case"staticFile":return{dsName:t.dsName,dsType:t.dsType,sql:""};case"indicator":return{zbId:t.zbId,params:t.params,headers:t.headers};case"indicatorCQ":return{zbName:t.zbName,params:t.params};case"packData":return{};default:throw new Error("Invalid type")}}catch(e){console.log("准备请求数据发生错误",e,t)}},br=(t,e)=>Nn(void 0,void 0,void 0,(function*(){try{switch(e){case"api":return yield fr(t.url,t.requestType,t.params,t.headers,t.agency);case"static":return yield mr(t.data);case"datasource":return yield gr(t.dsName,{dsType:t.dsType,sql:t.sql,filter:t.filter},"datasource");case"staticFile":return yield gr(t.dsName,{dsType:t.dsType,sql:t.sql},"staticFile");case"indicator":return yield pr(t.zbId,t.params,t.headers);case"indicatorCQ":return yield vr(t.zbName,t.params);case"packData":return{};default:throw new Error("Invalid type")}}catch(t){return console.warn(t,"执行请求并获取数据发生错误"),yield new Promise(((t,e)=>{t({error:!0})}))}})),_r=(t,e,n,r=[],i=!1)=>Nn(void 0,void 0,void 0,(function*(){const a=e||t.tmpData.source.dataType,o=t.tmpData.source["indicatorCQ"==a?"indicator":a];if("globalData"===a){const t=r.find((t=>t.key===o.id||t.key===o.key)),e=zn(o.id);if(e&&!i)return e.data;if(t){let e=yield wr(t,n),r={key:o.id,data:e};return Yn(o.id,r),e}return}const s=yr(o,a,n),l=yield br(s,a);return(null==l?void 0:l.data)?l.data:l})),wr=(t,e)=>Nn(void 0,void 0,void 0,(function*(){let n=Object.assign({},{tmpData:{source:t.value}});const r=n.tmpData.source.type,i=n.tmpData.source[r],a=yr(i,r,e),o=yield br(a,r);return yield Dr(o.data,n,!0,e)})),Dr=(t,e,n=!0,r)=>Nn(void 0,void 0,void 0,(function*(){try{const{converse:a,mapFields:o}=e.tmpData.source;return a&&a.use&&n?yield new Promise(((e,n)=>{const o=function(t,e,n,r,a){return Nn(this,void 0,void 0,(function*(){let n,a=t,{use:o,data:s}=i.default.cloneDeep(e);if(o)for(let t=0;t<s.length;t++)if(s[t].use){let e=s[t].dependVars,o={};r&&o&&e&&e.length&&e.map((t=>{let e=i.default.cloneDeep(r).filter((e=>{let n=e.mapField==t;return n&&(o[t]=e.value),n}));e&&0!=e.length||(o[t]="")})),n=yield Qn(s[t].code,a,o,s[t].mode?s[t].mode:"worker"),a=n.data}return a}))}(t,a,0,r);e(o)})):yield new Promise(((e,n)=>{e(t)}))}catch(e){return console.error("执行过滤器发生错误:"+e),yield new Promise(((e,n)=>{e(t)}))}})),Sr=(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},xr=(t,e,n=[],r,i,a)=>Nn(void 0,void 0,void 0,(function*(){try{let o=t.tmpData.source.type,s=yield _r(t,o,n,r,a||!1);if(null==s||!s)return i&&i({error:!0}),Promise.resolve({error:!0});let l=yield Dr(s,t,e,n);return Sr(t,l),i&&i(l),Promise.resolve(l)}catch(t){return i&&i(t),lr.error("Error in updateComData"),console.error("Error in updateComData:",t),Promise.reject(t)}})),Tr=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},kr=(t,e)=>{if(!e)return t;if("string"==typeof t)return""===t.trim()?"":t.replace(/@(\w+)|{{(\w+)}}/g,((t,n,r)=>{const i=n||r,a=e.find((t=>t.mapField===i));return a?a.value||a.originalValue||"":t}));if(Array.isArray(t))return t.map((t=>kr(t,e)));if("object"==typeof t&&null!==t){const n={};for(let r in t)n[r]=kr(t[r],e);return n}return t},Cr=(t,e)=>{const n=t.agency,r=t,{url:i=null,headers:a,params:o,requestType:s}=r,l=i?kr(i,e):void 0,u=a&&a.use?kr(a.value,e):{};return{url:l,requestType:s,params:o?kr(o,e):{},headers:u,agency:n}},Er=(t,e,n,r,i)=>Nn(void 0,void 0,void 0,(function*(){if(t&&t.length)for(const a of t)$n(e,a.value,n)&&(yield xr({tmpData:{source:{type:"globalData",globalData:{id:a.key}}}},!0,n,t,(t=>{console.log("数据更新成功-变量改变全局数据跟新")}),!0),Gn(r,(e=>{var r,o,s;"globalData"===(null===(o=null===(r=null==e?void 0:e.tmpData)||void 0===r?void 0:r.source)||void 0===o?void 0:o.type)&&(null===(s=null==e?void 0:e.tmpData)||void 0===s?void 0:s.source.globalData).id===a.key&&xr(e,!0,n,t,(t=>{i(e,t)}),!1)})))})),Or=(t,e,n,r,i)=>Nn(void 0,void 0,void 0,(function*(){t&&(yield xr({tmpData:{source:{type:"globalData",globalData:{id:t.key}}}},!0,e,n,(t=>{console.log("数据更新成功-数据源编辑")}),!0),Gn(r,(r=>{var a,o,s;"globalData"===(null===(o=null===(a=null==r?void 0:r.tmpData)||void 0===a?void 0:a.source)||void 0===o?void 0:o.type)&&(null===(s=null==r?void 0:r.tmpData)||void 0===s?void 0:s.source.globalData).id===t.key&&xr(r,!0,e,n,(t=>{i(r,t)}),!1)})))}));class Ar{constructor(t,e){this.isUpdating=!1,this.des=t.des,this.field=t.field,this.id=t.id,this.key=t.key,this.mapping=t.mapping,this.mapField=t.mapField,this.type=t.type,this.originalValue=t.originalValue,this.model=(null==t?void 0:t.model)?null==t?void 0:t.model:1,this.converter=t.converter,this.converterCode=t.converterCode,this.fork=t.fork,this.delayUpdate=!!(null==t?void 0:t.delayUpdate),e&&(this.globalVariables=e),t.fork&&(this.model=5,this.forkValue=t.forkValue,this.originalValue=this.getForkedValue())}get value(){return this.fork&&(this.originalValue=this.getForkedValue()),this.originalValue}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,e){var n;const r=Object.assign({},this,t);this.des=r.des,this.field=r.field,this.mapping=r.mapping,this.type=r.type,this.originalValue=r.originalValue,this.converter=r.converter,this.converterCode=r.converterCode,this.fork=r.fork,this.delayUpdate=null==r?void 0:r.delayUpdate,this.model=null==r?void 0:r.model,t.id&&(this.id?"string"==typeof this.id?this.id=[this.id,t.id]:this.id instanceof Array&&!this.id.includes(t.id)&&this.id.push(t.id):this.id=t.id),t.fork&&(this.model=5,this.forkValue=null!==(n=t.forkValue)&&void 0!==n?n:this.forkValue,this.originalValue=this.getForkedValue()),e&&e(this),this.isUpdating=!1}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 Ar(t,e)}}class Mr{constructor(){this.variables=new Map,this.globalObservers=[],this.url=window.location.search,this.list=[]}clearVars(){this.list=[],this.variables.clear()}static getInstance(){return Mr.instance||(Mr.instance=new Mr),Mr.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}addUrlParamsToGlobalVars(){this.getFullUrl();let t=this.getAllUrlParams(),e=Object.keys(t),n=[];for(const r of e)n.push({mapField:r,originalValue:t[r],model:4});if(n.length)for(const t of n)this.addVariable(t)}addVariables(t){Array.isArray(t)?t.map(((t,e)=>{this.addVariable(t)})):this.addVariable(t),this.addUrlParamsToGlobalVars()}addVariable(t,e){if(!t||!(null==t?void 0:t.mapField))return console.error(t+"参数不合法!"),!1;if(this.isVariableNameExist(t.mapField)){console.log("变量名已存在");let n=this.getVariable(t.mapField);if(this.sameValue(n,t))return n;this.editVariable(t,e)}const n=Ar.create(t,this.variables);return this.variables.set(n.mapField,n),this.addToObjectArray(this.list,this.creatVarJson(n)),e&&e(n),this.notifyGlobalObservers(n),n}sameValue(t,e){if(t.fork&&t.forkValue===e.forkValue)return!0;if(t.converter&&t.converterCode===e.converterCode&&t.originalValue===e.originalValue)return!0;let n=!!t.delayUpdate==!!e.delayUpdate,r=t.originalValue==e.originalValue;return!(!n||!r)}creatVarJson(t){const{des:e,field:n,id:r,key:i,mapping:a,mapField:o,type:s,value:l,originalValue:u,model:c,converter:h,converterCode:d,fork:f,forkValue:p,update:v,delayUpdate:g}=t,m={};return void 0!==e&&(m.des=e),void 0!==n&&(m.field=n),void 0!==r&&(m.id=r),void 0!==i&&(m.key=i),void 0!==a&&(m.mapping=a),void 0!==o&&(m.mapField=o),void 0!==s&&(m.type=s),void 0!==l&&(m.value=l),void 0!==u&&(m.originalValue=u),void 0!==c&&(m.model=c),void 0!==h&&(m.converter=h),void 0!==d&&(m.converterCode=d),void 0!==f&&(m.fork=f),void 0!==p&&(m.forkValue=p),void 0!==v&&(m.update=v),void 0!==g&&(m.delayUpdate=g),m}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,this.creatVarJson(t)),this.notifyGlobalObservers(t)}))})),this.addToObjectArray(this.list,this.creatVarJson(t)),e&&e(t),t.isUpdating=!1)};n?n.updateValue(t,r):this.addVariable(t,r)}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,this.creatVarJson(t)),this.notifyGlobalObservers(t)}))})),this.addToObjectArray(this.list,this.creatVarJson(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(t){var e;let n=[];for(const[,r]of this.variables)(r.id===t||(null===(e=r.id)||void 0===e?void 0:e.includes(t)))&&n.push(r);return n}getAllVariables(t=!1){return t?(this.list=Array.from(this.variables.values()),this.list):[...this.list]}restoreVariables(t){t.forEach((t=>{this.addVariable(t)}))}registerGlobalObserver(t){this.globalObservers.push(t)}notifyGlobalObservers(t){this.globalObservers.forEach((e=>{e.update(t)}))}}Mr.instance=null;const Pr=Mr.getInstance(),Vr=(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)),Rr=(t,e,n,r)=>{const i=((t,e,n,r)=>{var i;let a;if(Vr(t,null==e?void 0:e.field)||Vr(t,null==e?void 0:e.forkValue))a=t[null==e?void 0:e.field]||"";else if(Vr(t.data,null==e?void 0:e.field)||Vr(t.data,null==e?void 0:e.forkValue))a=t.data[null==e?void 0:e.field]||"";else{const t=Kn(n,r),o=(null===(i=null==t?void 0:t.tmpData)||void 0===i?void 0:i.actions)||[];for(const t of o){const n=t.vars.find((t=>(null==t?void 0:t.mapField)===(null==e?void 0:e.mapField)));if(n){a=n.value;break}}}return a})(t,e,n,r);return void 0!==i?i:e.value},Nr=(t,e,n,r,i,a,o,s,l)=>{switch(t.type){case"link":window.open(t.link,t.target);break;case"page":l&&l(t);break;case"dynamic":((t,e,n,r,i)=>{const a=t.dynamic||[];for(const o of a){if(t.id!==e.cid)continue;const a=Kn(n,o.pid);a&&(a.activeDynamic=o.name,a.isShow=o.visible||!r||t.index===e.index-1,i({cid:a.cid,flag:o.visible}))}})(t,e,n,r,i);break;case"toggle":((t,e,n,r,i)=>{const a=t.children||[];for(const n of a){const a=n.visible&&(!r||t.index===e.index-1);i({cid:n.cid,flag:a})}})(t,e,0,r,i);break;case"update":((t,e,n,r,i)=>{const a=t.children||[];for(const t of a){const a=Kn(e,t.cid);a&&xr(a,!0,n,r,(t=>{i({cid:a.cid,data:t})}))}})(t,n,a,o,s)}},Br=(t,e,n,r,i,a,o,s,l,u)=>{const{cid:c,actions:h,index:d}=i,{eventName:f,mode:p}=h,v=2===p;((t,e,n,r,i,a)=>{let o=Pr.getVariableForId(e.cid);if(null==o?void 0:o.length)for(const s of o)if(s.type==t){let t=Rr(e,s,n,r);Pr.editVariableForValue(s.mapField,t,(()=>{const t=i[s.mapField]||[];a&&a(s,t)}))}})(f,i,r,c,n,((t,e)=>{if(Er(l,t.mapFile,Pr.getAllVariables(),r,((t,e)=>{o({cid:t.cid,data:e})})),null==e?void 0:e.length)for(const n of e){t.eventSourceId=n;const e=Kn(r,n);!(null==t?void 0:t.delayUpdate)&&e&&xr(e,!0,Pr.getAllVariables(),l,(t=>{o({cid:e.cid,data:t})}))}}));const g=((t,e,n,r,i)=>t.filter((t=>t.id===e&&t.eventType===n&&(!i||parseInt(t.index||"0")+1===parseInt(r||"0")))))(t,c,f,d,v);for(const t of g)Nr(t,i,r,v,a,Pr.getAllVariables(),l,o,s)};var Ir=Object.freeze({__proto__:null,GlobalVariables:Mr,Http:(t,e)=>"string"!=typeof t?Promise.reject(new Error("URL should be a string")):Fn(t,e),Log:lr,agentData:dr,editItem:Sr,emitEvent:Br,fetchDataByGlobal:wr,fetchDataByType:_r,filterData:Dr,findItemDeep:Kn,findItemDeep2:(t,e,n)=>{let r=!1;const a=t=>{for(let o=0;o<t.length;o++){if(t[o].cid==e){r=t[o],n&&i.default.remove(t,(t=>t.cid==e));break}if(t[o].children)a(t[o].children);else if(t[o].dynamicChildren){if(t[o].dynamicChildren instanceof Map){let e=Array.from(t[o].dynamicChildren);for(let t=0;t<e.length;t++)if(e[t]instanceof Array){let n=e[t][1];a(n)}}else if(t[o].dynamicChildren instanceof Array){let e=t[o].dynamicChildren;for(let t=0;t<e.length;t++)if(e[t]instanceof Array){let n=e[t][1];a(n)}}}else t[o].stateChildren&&a(t[o].stateChildren)}};return a(t),r||!1},getData:hr,getDataForApi:fr,getDataForSource:gr,getDataForStatic:mr,getDataForZb:pr,getDataForZbCQ:vr,getSessionData:zn,getStandardData:jn,getStringVars:Wn,getVarDefaultVal:Rr,globalVars:Pr,hasVar:$n,isJSON:Ln,recursion:Gn,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:function(t,e){let n=i.default.cloneDeep(e);try{return new Function("data",t)(n)}catch(t){return console.error(t),n}},setSessionData:Yn,updataGlobalDataSourceForVar:Er,updateComData:xr,updateGlobalDataSource:Or}),Fr=function(t,e,n,r,a){var o;try{var s={},l=[],u=[],c=[],h=i.default.cloneDeep(t);return(null===(o=null===window||void 0===window?void 0:window.go)||void 0===o?void 0:o.dev)&&he(t,(function(t){var e,n,r;if(null===(n=null===(e=null==t?void 0:t.tmpData)||void 0===e?void 0:e.actions)||void 0===n?void 0:n.length)for(var i=0,a=null===(r=null==t?void 0:t.tmpData)||void 0===r?void 0:r.actions;i<a.length;i++){var o=a[i];if("toggle"==o.behave){var s=o.toggle;if(null==s?void 0:s.length)for(var l=0,u=s;l<u.length;l++){var c=u[l],h=c.value;(null==h?void 0:h.length)&&(c.value=c.value.map((function(t){return{cid:t.cid,viewComName:t.viewComName,name:t.name,visible:t.visible}})))}}}})),he(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:u,eventsComs:c})}})),Pr.addVariables(l),l=Pr.getAllVariables(),he(h,(function(t){var e,n=null===(e=null==t?void 0:t.tmpData)||void 0===e?void 0:e.source;jr(n,l,t,s)})),{shareVariableTree:s,globalVars:Pr.getAllVariables(),globalEvents:u.filter((function(t){return t})),eventsComs:c}}catch(t){return console.error("error",t),{}}},jr=function(t,e,n,r){var i,a,o;if(t){var s=t[null==t?void 0:t.type],l=null==t?void 0:t.converse;l&&l.use&&l.data.length&&l.data.map((function(t){var e;(null==t?void 0:t.dependVars)&&(null===(e=null==t?void 0:t.dependVars)||void 0===e?void 0:e.length)&&t.dependVars.map((function(t){Yr(r,t,n.cid)}))})),(null==s?void 0:s.inputSql)&&Lr(null==s?void 0:s.inputSql,e,n,r),(null==s?void 0:s.url)&&Lr(s.url,e,n,r),(null==s?void 0:s.headers)&&(null===(i=null==s?void 0:s.headers)||void 0===i?void 0:i.use)&&(null===(a=null==s?void 0:s.headers)||void 0===a?void 0:a.value)&&Lr(null===(o=null==s?void 0:s.headers)||void 0===o?void 0:o.value,e,n,r),(null==s?void 0:s.params)&&Lr(null==s?void 0:s.params,e,n,r)}},Lr=function(t,e,n,r){"string"!=typeof t&&(t=JSON.stringify(t));var i=t.match(/({{[\w]*}})|((@)[\w]*)/gm);if(i){var a=i.map((function(t){return t.replace(/{{|}}|@/gm,"")}));if(n)for(var o=function(t){var i=a[t];if(!i||!e||e.findIndex((function(t){return t.mapField===i}))<0)return"continue";n&&r&&Yr(r,i,n.cid)},s=0;s<a.length;s++)o(s);else{var l=function(t){var i=a[t];return!i||!e||e.findIndex((function(t){return t.mapField===i}))<0?"continue":(n&&r&&Yr(r,i,n.cid),{value:!0})};for(s=0;s<a.length;s++){var u=l(s);if("object"==typeof u)return u.value}}}return!1},Yr=function(t,e,n){if(t[e]&&i.default.isArray(t[e])){t[e].push(n);var r=t[e];t[e]=i.default.uniq(r)}else t[e]=[],t[e].push(n)},zr=function(t){if("string"==typeof t)try{var e=JSON.parse(t);return!("object"!=typeof e||!e)}catch(t){return!1}return!1};var Ur={delListItem:function(t,e){var n=i.default.cloneDeep(t.list);"string"==typeof e?oe(n,e,!0):e.forEach((function(t){oe(n,t,!0)})),t.list=n,t.globalVars=Fr(t.list,t.globalConstant,t.sysConst).globalVars},editCloneCache:function(t,e){var n=i.default.cloneDeep(t.cloneCache);n.length&&n.map((function(t){t.baseData=Object.assign({},t.baseData,e)})),t.cloneCache=n},cloneItem:function(t){if(t.selectd.length>0){t.cloneCache=[];for(var e=function(e){var n=oe(t.list,t.selectd[e]);if("boolean"!=typeof n){var r=i.default.cloneDeep(n);if(r.pid="",(null==r?void 0:r.stateChildren)||(null==r?void 0:r.children))((null==r?void 0:r.stateChildren)?null==r?void 0:r.stateChildren:null==r?void 0:r.children).forEach((function(t){var e,n,i,a,o=t.cid;if(t.cid=Ee(),t.pid=r.cid,(null==r?void 0:r.stateChildren)&&(null===(n=null===(e=null==r?void 0:r.tmpData)||void 0===e?void 0:e.option)||void 0===n?void 0:n.children)){var s=null===(a=null===(i=null==r?void 0:r.tmpData)||void 0===i?void 0:i.option)||void 0===a?void 0:a.children.find((function(t){return t.cid==o}));s&&(s.cid=t.cid)}}));t.cloneCache.push(r),window.localStorage.setItem("cloneCache",JSON.stringify(t.cloneCache))}},n=0;n<t.selectd.length;n++)e(n)}},shearItem:function(t,e){if(t.selectd.length>0){t.cloneCache=[];for(var n=0;n<t.selectd.length;n++){var r=oe(t.list,t.selectd[n],!0);if("boolean"!=typeof r){var a=i.default.cloneDeep(r);t.cloneCache.push(a)}}t.selectd=[]}},pasteItem:function(t){var e,n;try{var r=(null===(n=i.default.cloneDeep(t.cloneCache))||void 0===n?void 0:n.length)?i.default.cloneDeep(t.cloneCache):JSON.parse(window.localStorage.getItem("cloneCache"));if(r.length>0){var a=[],o={};he(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 i=0,s=t.stateChildren;i<s.length;i++){s[i].pid=t.cid}if("dynamicComponent"==t.componentType){var l=void 0;t.dynamicChildren instanceof Map?l=t.dynamicChildren.get(t.activeDynamic):t.dynamicChildren instanceof Array&&(l=t.dynamicChildren.find((function(e){return e[0]==t.activeDynamic}))),l.length>1&&(Array.isArray(l[1])?l[1].forEach((function(e){e.pid=t.cid})):l.forEach((function(e){e.pid=t.cid}))),1==l.length&&l.forEach((function(e){e.pid=t.cid}))}a.push(t.cid)})),t.selectd.length>0?xe(t.selectd,t.list):Te(r),r.forEach((function(t){var e,n,r,i;if(t.baseData.top=t.baseData.top+20,t.baseData.left=t.baseData.left+20,t&&t.hasOwnProperty("stateChildren")&&(null===(n=null===(e=null==t?void 0:t.tmpData)||void 0===e?void 0:e.option)||void 0===n?void 0:n.children))for(var a=function(e){e.pid=t.cid;var n=null===(i=null===(r=null==t?void 0:t.tmpData)||void 0===r?void 0:r.option)||void 0===i?void 0:i.children.find((function(t){return t.disName==e.name}));n&&(n.cid=e.cid)},o=0,s=t.stateChildren;o<s.length;o++){a(s[o])}}));try{var s=Object.keys(o),l=JSON.stringify(r);(null==s?void 0:s.length)&&s.forEach((function(t){var e=o[t];-1!==l.indexOf(t)&&(l=l.replaceAll(null==t?void 0:t.toString(),null==e?void 0:e.toString()))})),r=JSON.parse(l)}catch(t){}(e=t.list).unshift.apply(e,i.default.cloneDeep(r)),t.selectd=a}}catch(t){console.warn(t)}},updataShow:function(t,e){var n=oe(t.list,e);if("boolean"!=typeof n){var r=!n.isShow;pe(n,"isShow",r,"")}},changeShow:function(t,e){var n=e.cid,r=e.flag,i=oe(t.list,n);i&&pe(i,"isShow",r,"")},comToggle:function(t,e){var n=oe(t.list,e);n&&ge(n)},updataLock:function(t,e){var n=oe(t.list,e);if("boolean"!=typeof n){var r=!n.isLock;pe(n,"isLock",r,"")}},breakUp:function(t,e){var n,r;try{if(!e)throw"Please pass in the component CID correctly!";var i=le(t.list,e),a=oe(t.list,e),o=a.baseData;if(isNaN(o.left)||isNaN(o.top))throw new Error("top or left is NAN");var s=ye(a,t.list);if(s.map((function(t){return t.pid=""})),i){var l=i.children.findIndex((function(t){return t.cid==e}));i.children.splice(l,1),(n=i.children).push.apply(n,s.reverse())}else{l=t.list.findIndex((function(t){return t.cid==e}));t.list.splice(l,1),(r=t.list).push.apply(r,s.reverse())}}catch(t){console.error(t)}},editGroup:function(t,e){var n,r=e.groupId;e.status;try{if(!r)throw"Please pass in the component CID correctly!";var i=t.list.findIndex((function(t){return t.cid===r})),a=t.list[i],o=ye(a);o.map((function(t){return t.pid=""})),t.list.splice(i,1),(n=t.list).push.apply(n,o)}catch(t){console.error(t)}},combination:function(t){i.default.cloneDeep(t.list);var e,n,r=[],a=[],o=Ee(),s=oe(t.list,t.selectd[0]);s.pid?console.info("Sorry, only level 2 is supported group"):s.children&&1===t.selectd.length?console.info("Sorry, only level 2 is supported group"):(t.selectd.forEach((function(e){var n=t.list.findIndex((function(t){return t.cid===e}));if(n>-1){r.push(n);var i=t.list.splice(n,1)[0];i.pid=o,a.push(i)}})),e=r.sort((function(t,e){return t-e}))[0],n=1===a.length?i.default.cloneDeep(a[0].baseData):t.currentArea,Object.assign(n,{angle:0,opacity:100,rotate:0,rotateY:0}),me(n,a),t.list.splice(e,0,{cid:o,pid:"",isShow:!0,isLock:!1,editer:!1,baseData:n,z:0,toggle:!0,name:"群组",type:"folder",origin:"anov-ui",tmpData:{actions:null,option:null,source:Ve},children:a}),de(t.list),t.selectd=[o])},moveUp:function(t,e){try{var n=t.list.findIndex((function(t){return t.cid===e}));n>=1?re(t.list,n-1,n):ae(t.list,"up",e)}catch(t){console.error(t)}},moveDown:function(t,e){try{var n=t.list.findIndex((function(t){return t.cid===e}));n>-1&&n<=t.list.length-2?re(t.list,n+1,n):ae(t.list,"down",e)}catch(t){console.error(t)}},moveTop:function(t,e){try{var n=t.list.findIndex((function(t){return t.cid===e}));n>-1&&0!==n?re(t.list,0,n):ae(t.list,"top",e)}catch(t){console.error(t)}},moveBottom:function(t,e){try{var n=t.list.findIndex((function(t){return t.cid===e})),r=t.list.length-1;n>-1&&n!==r?re(t.list,r,n):ae(t.list,"bottom",e)}catch(t){console.error(t)}}};function Hr(t){var e=[],n=[];he(i.default.cloneDeep(t),(function(t){var r,i;if(null===(i=null===(r=null==t?void 0:t.tmpData)||void 0===r?void 0:r.actions)||void 0===i?void 0:i.length){var a=t.tmpData.actions.map((function(t){return t.eventType}));Oe({types:a,element:t,actions:e,events:n})}}));var r=n.filter((function(t){return t}));return{actions:e,events:r}}var Gr={addGlobalSource:function(t,e){var n=e.name,r=e.value,i=Ee();t.globalSource.push({key:i,name:n,value:r}),Or({key:i,name:n,value:r},t.globalVars,t.globalSource,t.list,(function(t){console.log(t,22)}))},editGlobalSource:function(t,e){var n=this,r=e.key,i=e.value,a=t.globalSource.find((function(t){return t.key==r}));a&&(a.name=e.name,a.value=i,Or(a,t.globalVars,t.globalSource,t.list,(function(t,e){n.commit("GoCom/updataSourceForComponent",{cid:t.cid,data:e})})))},delGlobalSource:function(t,e){try{var n=t.globalSource.findIndex((function(t){return t.key===e}));-1!==n&&t.globalSource.splice(n,1)}catch(t){console.error("删除错误",t)}},setSyncFlag:function(t,e){t.syncFlag=e},goUpShareVar:function(t,e){t.shareVariable[e.key]=d({},e)},addGoRunVar:function(t,e){try{var n=Fr(t.list,t.globalConstant,t.sysConst);t.globalVars=n.globalVars,t.eventsComs=n.eventsComs}catch(t){console.warn(t)}},copyGoVar:function(t,e){try{for(var n=e.mapField,r=(n.toString().trim(),t.globalConstant.filter((function(t){return t.mapField.includes(n)}))),a=1,o=0;o<r.length;o++)a++;var s="".concat(n," (").concat(a,")"),l=t.globalConstant.find((function(t){return t.mapField==n}));if(n&&l){var u=i.default.cloneDeep(l);u.mapField=s,t.globalConstant.push(u);var c=Fr(t.list,t.globalConstant,t.sysConst);t.globalVars=c.globalVars,t.eventsComs=c.eventsComs}}catch(t){console.warn(t)}},delGoVar:function(t,e){try{var n=e.mapField,r=(e.mold,t.globalConstant.filter((function(t){return t.mapField==n})).length);if(!n||!r)throw new Error("删除失败!");var a=i.default.cloneDeep(t.globalConstant);i.default.remove(a,(function(t){return t.mapField==n})),t.globalConstant=a;var o=Fr(t.list,t.globalConstant,t.sysConst);t.globalVars=o.globalVars,t.eventsComs=o.eventsComs}catch(t){console.warn(t)}},goDelShareVar:function(t,e){delete t.shareVariable[e]},signal:function(t,e){},goSynchroDataAll:function(t,e){t.list=i.default.cloneDeep(e)},goSynchroDataForOption:function(t,e){if(t){var n=e.cid,r=e.value,i=oe(t.list,n);"boolean"!=typeof i&&i&&ve(i,r)}this.commit("GoCom/execute")},goSynchroData:function(t,e){if(t){var n=e.cid,r=e.attr,a=e.value,o=e.attrModel,s=oe(t.list,n);if("boolean"!=typeof s){if(s&&pe(s,r,a,o),"actions"===r.toLowerCase()){var l=t.list,u=i.default.uniqWith(i.default.concat(Hr(l).actions,Hr(t.caseList).actions),i.default.isEqual),c=i.default.uniqWith(i.default.concat(Hr(l).events,Hr(t.caseList).events),i.default.isEqual);Pr.addVariables(u),t.globalVars=Pr.getAllVariables(),t.globalEvents=c,t.pages[t.pageIndex]&&(t.pages[t.pageIndex].globalVars=u),t.pages[t.pageIndex]&&(t.pages[t.pageIndex].globalEvents=c)}if("source"===r){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,"")})),v=function(e){var n=p[e];if(!n||!t.globalVars||t.globalVars.findIndex((function(t){return t.mapField===n}))<0)return"continue";if(t.shareVariableTree||(t.shareVariableTree={}),t.shareVariableTree[n]&&i.default.isArray(t.shareVariableTree[n])){t.shareVariableTree[n].push(s.cid);var r=t.shareVariableTree[n];t.shareVariableTree[n]=i.default.uniq(r)}else t.shareVariableTree[n]=[],t.shareVariableTree[n].push(s.cid)},g=0;g<p.length;g++)v(g)}}}}this.commit("GoCom/execute")},goUpdataSysVars:function(t,e){var n={U_CITY:"cityCode",U_COUNTY:"countyCode",U_PROVINCE:"provinceCode",U_PHONE:"userPhone"},r=t.sysConst,i=Object.keys(n);r.map((function(t){if(t.originalValue=t.value,(null==t?void 0:t.name)&&(null==i?void 0:i.includes(t.name))){var r=n[t.name];t.value=e[r],t.originalValue=e[r]}return t})),Pr.addVariables(r)},resetGlobalData:function(t){t.globalVars=t.sysConst,t.globalConstant=[],t.globalSource=[]},updateGlobalRelatedVars:function(t,e){var n=e.run,r=e.gvData;return n.length&&n.forEach((function(t){var e=r.filter((function(e){return e.mapField==t.mapField||e.fork&&e.forkValue==t.mapField}));if(e.length)for(var n=0,i=e;n<i.length;n++){var a=i[n],o=t.value;a.mapField==t.mapField?a.value=o:a.fork&&t.mapField==a.forkValue?(a.converter&&a.converterCode,a.originalValue=o):r.push(t)}})),r}},Wr={updataList:function(t,e){var n=e.cid,r=Vn(e.list,(function(t){var e=oe(t,n),r=e.pid,i=se(t,n),a=function(t){for(var e=0;e<t.length;e++){var n=t[e];ke(n,n.baseData,0,!0)}},o=function(t){return t.reduce((function(t,e){return{left:t.left+e.baseData.left,top:t.top+e.baseData.top}}),{left:0,top:0})},s=function(t,e){void 0===e&&(e=t);for(var n=0;n<t.length;n++){var r=t[n];if(r.children&&Array.isArray(r.children))return 0===r.children.length?(e.splice(n,1),!0):(s(r.children,r.children)&&0===r.children.length&&e.splice(n,1),!0)}};if(i.length>0)if(e.pid=i[0].cid,r){var l=v([oe(t,r)],se(t,r),!0),u=o(l),c=o(i);e.baseData=d(d({},e.baseData),we(e.baseData,u)),e.baseData=d(d({},e.baseData),we(e.baseData,c,1)),a(l),a(i)}else{c=o(i);e.baseData=d(d({},e.baseData),we(e.baseData,c,1)),a(i)}r&&0==i.length&&(e.pid="",function(e,n){var r=se(t,n),i=oe(t,n);if(0===r.length)e.baseData=d(d({},e.baseData),we(e.baseData,i.baseData));else{r=v([i],r,!0);var s=o(r);e.baseData=d(d({},e.baseData),we(e.baseData,s))}a(v([i],r,!0))}(e,r)),s(t),de(t)}));t.list=r},updataListForContrast:function(t,e){var n=e.cid,r=e.list,a=oe(r,n);le(r,n);var o=le(t.list,n);if(!a.pid){a.pid=o.cid;var s=i.default.cloneDeep(a.baseData),l=we(a.baseData,o.baseData,1);Object.assign(a.baseData,l),ke(o,s)}de(t.list)},updateTree:function(t){for(var e=t.list,n=0;n<e.length;n++){var r=e[n];if(r.pid)(s=oe(e,r.pid))&&Object.assign(r.baseData,we(r.baseData,s.baseData));if(r.children)for(var a=0;a<r.children.length;a++){var o=r.children[a];if(o.pid!=r.cid){var s=oe(e,o.pid);if(i.default.cloneDeep(o.baseData),s){Object.assign(o.baseData,we(o.baseData,s.baseData));var l=we(o.baseData,r.baseData,1);Object.assign(o.baseData,l),ke(r,r.baseData)}o.pid=r.cid}}}de(e)}},qr=Dr,$r=function(t,e,n,r,i,a,o){return void 0===n&&(n=!0),f(void 0,void 0,void 0,(function(){var a;return p(this,(function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,xr(t,n,e,i,(function(t){r&&r(t)}),o)];case 1:return[2,s.sent()];case 2:return a=s.sent(),r&&r(a),console.log("error:11"+a),[3,3];case 3:return[2]}}))}))},Kr=function(t,e,n,r,i,a){void 0===a&&(a=!0),t&&xr(t,a,e,[],(function(e){n({cid:t.clientWidth,data:e})}))},Zr=Object.freeze({__proto__:null,Http:function(t,e){return function(t,e){void 0===t&&(t="");var n=a.default.create({baseURL:t,timeout:3e4,headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"}});return n.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)})),n.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)})),n}(t,e)},axios:a.default,getDataForEvaluator:_,filterData:qr,parseSource:function(t,e,n,r,i,a,o,s){void 0===r&&(r=!0);console.log(e,n,r,i,"callback"),xr(e,r,n,[],(function(t){i(t),"AnContainer"===(null==e?void 0:e.viewComName)&&r&&Re(e)}),s)},updateComData:$r,autoUpdateComData:function(t,e,n){var r,a,o,s,l,u=null===(r=null==t?void 0:t.tmpData)||void 0===r?void 0:r.source,c=null===(o=null===(a=u[null==u?void 0:u.type])||void 0===a?void 0:a.autoUpdate)||void 0===o?void 0:o.open,h=null===(l=null===(s=u[null==u?void 0:u.type])||void 0===s?void 0:s.autoUpdate)||void 0===l?void 0:l.time;c&&i.default.isNumber(h)&&h>0&&setInterval((function(){$r(t,e,!0,(function(e){n({cid:t.cid,data:e})}))}),1e3*h)},refreshData:Kr}),Xr=function(t){return f(this,void 0,void 0,(function(){var e,n,r,i,a;return p(this,(function(o){switch(o.label){case 0:return o.trys.push([0,3,,4]),e=t.fontUrl,n=t.fontName,r="__custom_font__",(i=document.getElementById(r))?[3,2]:((i=document.createElement("style")).id=r,[4,(document.head||document.getElementsByTagName("head")[0]).appendChild(i)]);case 1:o.sent(),o.label=2;case 2:return i.innerText+="@font-face{font-family:'".concat(n,"';src:url(").concat(e,");}"),[3,4];case 3:return a=o.sent(),console.warn(a),[3,4];case 4:return[2]}}))}))},Jr=function(t,e,n){return void 0===e&&(e="jspaths"),f(void 0,void 0,void 0,(function(){var r,i;return p(this,(function(a){switch(a.label){case 0:return r="csspaths"===e?"link":"script",i=document.createElement(r),"jspaths"===e?i.defer=!0:i.rel="stylesheet",i.className=e,i.src=t,(n||document.head||document.getElementsByTagName("head")[0]).appendChild(i),[4,new Promise((function(t,e){i.addEventListener("load",t),i.addEventListener("error",t)}))];case 1:return a.sent(),[2]}}))}))},Qr=function(t,e){return void 0===e&&(e="jspaths"),f(void 0,void 0,void 0,(function(){var n;return p(this,(function(r){switch(r.label){case 0:return n="fonts"===e?Xr:Jr,[4,Promise.all(t.map((function(t){return n(t)})))];case 1:return r.sent(),[2]}}))}))},ti=function(t){return f(void 0,void 0,void 0,(function(){return p(this,(function(e){switch(e.label){case 0:return t.fonts&&t.fonts.length?[4,Qr(t.fonts,"fonts")]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))},ei=function(t){var e=t.jspaths,n=void 0===e?[]:e,r=t.csspaths,a=void 0===r?[]:r,o=t.fonts,s=void 0===o?[]:o;return f(void 0,void 0,void 0,(function(){var t;return p(this,(function(e){switch(e.label){case 0:return t=i.default.uniqBy(s,"fontName"),[4,Promise.all([Qr(n,"jspaths"),Qr(a,"csspaths"),Qr(t,"fonts")])];case 1:return e.sent(),[2]}}))}))},ni=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 ri={reset:function(t){t.selectd=[],t.list=[],t.plant=null,t.tw=null,t.watermark=null,t.endnotes=null,t.globalConstant=[]},setFonts:function(t,e){t.resource.fonts.push({fontName:e.name,fontUrl:e.src}),ti(t.resource)},setCaseInfo:function(t,e){t.caseInfo=e},setPageId:function(t,e){t.pageId=e},pagePush:function(t,e){try{var n=e.type,r=e.value,i=["name","path","id"];if(!i.includes(n))throw new Error("页面跳转错误!".concat(n," 不是一个正确的参数 请填以下参数 ").concat(i.join(",")));if(!r)throw new Error("页面跳转错误!".concat(n," 不是一个正确的参数 请填正确的页面路径或者页面名称"));t.toPage={type:n,value:r}}catch(t){console.warn(t)}},updatComs:function(t,e){var n=this,r=oe(t.list,e);if("boolean"!=typeof r){(null==r?void 0:r.children)&&(null==r||r.children),$r(r,t.globalVars,!0,(function(t){n.commit("GoCom/updataSourceForComponent",{cid:r.cid,data:t})}),t.globalSource)}},updatComsForVar:function(t,e){var n=t.globalVars.map((function(t){var n,r;if((null===(n=null==t?void 0:t.forkValue)||void 0===n?void 0:n.length)&&(null===(r=null==t?void 0:t.forkValue)||void 0===r?void 0:r.includes(e))||t.forkValue==e)return t.mapField})).filter((function(t){return t})),r=[e];(null==n?void 0:n.length)&&(r=i.default.uniq(v([e],n,!0)));for(var a=[],o=0,s=r;o<s.length;o++){var l=s[o];t.shareVariableTree[l]&&a.push.apply(a,t.shareVariableTree[l])}if(null==a?void 0:a.length)for(var u=0,c=a;u<c.length;u++){var h=c[u];this.commit("GoCom/updatComs",h)}},addConstant:function(t,e){var n=i.default.find(t.constant,{name:e.name});n?Object.assign(n,e):t.constant.push(e)},editConstant:function(t,e){var n=i.default.find(t.constant,{name:e.name});n&&Object.assign(n,e)},delConstant:function(t,e){i.default.remove(t.constant,(function(t){return t.name==e}))},setResource:function(t,e){var n=e.type,r=e.value;t.resource[n]=r,ni(),ei(t.resource)},updataResource:function(t){ni(),ei(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,de(t.list)},saveDynamicChildren:function(t,e){var n=e.cid,r=e.data,i=e.name,a=t.pages[t.pageIndex].list,o=oe(a,n);o&&(o.activeDynamic=i,o.dynamicChildren instanceof Array&&(o.dynamicChildren=new Map(o.dynamicChildren)),o.dynamicChildren.set(i,r))},setTheme:function(t,e){t.theme=e},setPlant:function(t,e){var n=e.attr,r=e.value;t.plant||(t.plant={name:"",theme:null,baseData:{width:1920,height:1080,left:0,top:0},option:null,optionDes:null}),t.plant[n]=r},setPlantHeight:function(t,e){t.plant&&(t.plant.baseData.height=t.plant.baseData.height+e)},reversal:function(t,e){t.undos=[],t.undoRedoPointer=-1;var n=i.default.cloneDeep(e.globalVars);delete e.globalVars,t=Object.assign(t,e),Pr.addVariables(n),t.globalVars=Pr.getAllVariables(),de(t.list)},setComTmp:function(t,e){var n=t.list.find((function(t){return t.cid===e[0]}));n.com=e[1],n.tmp=e[2]},setLoading:function(t,e){var n=e.cid,r=e.flag,i=t.list.find((function(t){return t.cid===n}));i&&(i.loading=r)},setMultiple:function(t,e){t.multiple=e},setCaseList:function(t,e){t.caseList=e},updataComponentForList:function(t,e){var n=e.cid,r=e.data,i=t.list,a=oe(i,n);"boolean"!=typeof a&&Object.assign(a,r)},updataComponentForCaseList:function(t,e){var n=e.cid,r=e.data,i=t.caseList,a=oe(i,n);"boolean"!=typeof a&&Object.assign(a,r)},updataComponent:function(t,e){var n=e.cid,r=e.data,i=t.pages&&t.pages[0]&&t.pages[0].list&&t.pages[0].list.length?t.pages[0].list:t.list,a=oe(i,n);"boolean"!=typeof a&&Object.assign(a,r)},updataArea:function(t,e){t.currentArea.left+=e.deltaX,t.currentArea.top+=e.deltaY},updataSource:function(t,e){var n=e.cid,r=e.data,i=oe(t.list,n);"boolean"!=typeof i&&("indicatorCQ"===i.tmpData.source.type?i.tmpData.source.indicator.data=r:(console.log("更新数据:"+i.cid),i.tmpData.source[i.tmpData.source.type].data=r))},updataSourceForComponent:function(t,e){var n=e.cid,r=e.data;if(t.list.length){var a=oe(t.list,n);"boolean"!=typeof a&&(a.source=i.default.cloneDeep(r))}},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){_e(t.list.find((function(t){return t.cid===e[0]})),e[1])},setSelect:function(t,e){t.cache=[],t.selectd=e instanceof Array?e:[e],t.selectd.length>1&&t.selectd.forEach((function(e){t.cache.push(t.list.find((function(t){return t.cid===e&&"Other.Plant.Normal"!==t.type})))}))},setActive:function(t,e){var n=i.default.cloneDeep(e),r=n.id,a=n.multiple,o=n.origin,s=n.ctr,l=i.default.cloneDeep(t.selectd);if(a){var u=l.includes(r);if(l.length>=1){var c=l.every((function(n){return ce(t.list,n,e.id)}));if(!c)return void console.info("sorry Only sibling elements can be selected!")}u?l.splice(l.findIndex((function(t){return t===r})),1):l.push(r),t.selectd=l}else t.selectd=[r];t.selectd.forEach((function(e){var n=oe(t.list,e);if(n.pid){var r=oe(t.list,n.pid);r&&(r.toggle=!0)}s||(n.toggle=!0)})),t.selectdChangeOrigin=o||""},setCache:function(t){t.cache=[],t.selectd.length>1&&t.selectd.forEach((function(e){t.cache.push(t.list.find((function(t){return t.cid===e})))}))},clearActive:function(t){t.selectd=[]},setMultipleActive:function(t,e){t.selectd=e},syncMenuInfo:function(t){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(t,e){var n=e.com,r=e.isMobile;"MultiStateComponent"!=n.componentType||n.stateChildren||(n.stateChildren=[]),"dynamicComponent"!=n.componentType||n.dynamicChildren||(n.dynamicChildren=new Map,n.activeDynamic="状态1",n.dynamicChildren.set("状态1",[]),n.lines={h:[],v:[]}),r?t.list.push(n):t.list.unshift(n),t.menuList=i.default.cloneDeep(t.list),de(t.list),this.commit("GoCom/execute")},addComsForParent:function(t,e){var n=e.com,r=e.isMobile,a=e.PID;if("MultiStateComponent"!=n.componentType||n.stateChildren||(n.stateChildren=[]),"dynamicComponent"!=n.componentType||n.dynamicChildren||(n.dynamicChildren=new Map,n.activeDynamic="状态1",n.dynamicChildren.set("状态1",[])),a){var o=oe(t.list,a);r?(o.children=[],o.children.push(n)):o.children.unshift(n)}else r?t.list.splice(0,1,n):t.list.unshift(n);t.menuList=i.default.cloneDeep(t.list),de(t.list),this.commit("GoCom/execute")},addMyComs:function(t,e){var n;try{var r=e.data,a=e.shareVariableTree,o=e.globalVars,s=e.globalEvents;t.globalVars=i.default.uniq(i.default.concat(i.default.cloneDeep(t.globalVars),o)),t.globalEvents=i.default.uniq(i.default.concat(i.default.cloneDeep(t.globalEvents),s));var l=Object.keys(a),u=Object.keys(t.shareVariableTree),c=i.default.difference(l,u);c.length?c.forEach((function(e){t.shareVariableTree[e]=i.default.concat(i.default.cloneDeep(t.shareVariableTree[e]),a[e])})):t.shareVariableTree=Object.assign(i.default.cloneDeep(t.shareVariableTree),a),r instanceof Array?(fe(r),(n=t.list).unshift.apply(n,r)):(fe([r]),t.list.unshift(r)),t.menuList=i.default.cloneDeep(t.list),de(t.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(t,e){var n;try{if(!e||2!=e.length)throw new Error("参数错误,方法接受两个组件的CID组成的数组!");var r=i.default.cloneDeep(t.list),a=oe(r,e[0]),o=oe(r,e[1]),s=oe(r,a.pid),l={},u=0,c=0;if(o)if("selectContainer"==o.componentType){var h=oe(r,e[1]);s?(u=i.default.findIndex(s.children,(function(t){return t.cid==e[0]})),l=s.children[u],s.children=s.children.filter((function(t){return t.cid!==l.cid}))):(l=oe(r,e[0]),r=r.filter((function(t){return t.cid!==l.cid}))),l.cid=Ee(),l.pid=h.cid,h.children.push(l)}else if(a.pid||o.pid)if(s)if(u=i.default.findIndex(s.children,(function(t){return t.cid==e[0]})),l=s.children[u],a.pid!==o.pid){h=oe(r,o.pid);c=i.default.findIndex(h.children,(function(t){return t.cid==e[1]}));d=h.children[c];l.cid=Ee(),l.pid=h.cid,d.cid=Ee(),d.pid=s.cid,s.children.splice(u,1,d),h.children.splice(c,1,l)}else c=i.default.findIndex(s.children,(function(t){return t.cid==e[1]})),(n=s.children).splice.apply(n,v([c,1],s.children.splice(u,1,s.children[c]),!1));else{var h=oe(r,o.pid);u=i.default.findIndex(r,(function(t){return t.cid==e[0]})),c=i.default.findIndex(h.children,(function(t){return t.cid==e[1]})),l=oe(r,a.cid);var d=h.children[c];l.cid=Ee(),l.pid=h.cid,d.cid=Ee(),d.pid=null,r.splice(u,1,d),h.children.splice(c,1,l)}else ie(t.list,e[0],e[1]);else u=i.default.findIndex(s.children,(function(t){return t.cid==e[0]})),l=s.children[u],s.children.splice(u,1),l.cid=Ee(),l.pid=null,r.push(l);t.list=r,de(t.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,a=e.value,o=oe(t.list,r);if(!o)return;if("string"!=typeof i)return void console.error("key:[".concat(i,"]格式错误"));var s=null===(n=null==o?void 0:o.tmpData)||void 0===n?void 0:n.option,l=i.split(".");s&&(null==l?void 0:l.length)&&l.forEach((function(t,e){s.hasOwnProperty(t)&&(e===l.length-1?s[t]=a:s=s[t])}))}catch(t){console.warn("同步属性发生错误:"+t)}},mergeConfig:function(t,e){e.length>0&&e.forEach((function(e){t.list.unshift(e)})),t.menuList=i.default.cloneDeep(t.list),de(t.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=ye(n);n.children=r}t.currentEditerCid=e}else t.currentEditerCid=""},setDynamicLine:function(t,e){var n=i.default.cloneDeep(t.list),r=oe(n,e.cid);n.length&&"boolean"!=typeof r&&(r.lines=Object.assign({},r.lines,e.lines)),t.list=n}},ii={layout:function(t,e){var n=function(t,e){try{var n=t.map((function(t){var n=oe(e,t);if("object"==typeof n)return n;throw"Please check whether the input and output parameters are correct!"}));if(i.default.every(n,Object))return n;throw"Please check whether the input and output parameters are correct!"}catch(t){return console.error(t),[]}}(t.selectd,t.list);switch(e){case"alignLeft":!function(t,e){1===t.length&&(t[0].baseData.left=0);var n=i.default.sortBy(t,(function(t){return t.baseData.left})),r=n[0].baseData.left;t.map((function(t){return t.baseData.left=r}))}(n);break;case"alignRight":!function(t,e){if(1===t.length){var n=e.plant?e.plant.baseData:{width:1920,height:1080};t[0].baseData.left=n.width-t[0].baseData.width}var r=i.default.sortBy(t,(function(t){return t.baseData.left})),a=1*r[r.length-1].baseData.left+1*r[r.length-1].baseData.width;t.map((function(t){return t.baseData.left=a-1*t.baseData.width}))}(n,t);break;case"horizontally":!function(t,e){if(1===t.length){var n=e.plant?e.plant.baseData:{width:1920,height:1080};t[0].baseData.left=n.width/2-t[0].baseData.width/2}var r=i.default.sortBy(t,(function(t){return t.baseData.left})),a=i.default.sortBy(t,(function(t){return 1*t.baseData.left+1*t.baseData.width})),o=(1*r[0].baseData.left+(1*a[a.length-1].baseData.left+1*a[a.length-1].baseData.width))/2;t.map((function(t){return t.baseData.left=o-t.baseData.width/2}))}(n,t);break;case"alignTop":!function(t,e){1===t.length&&(t[0].baseData.top=0);var n=i.default.sortBy(t,(function(t){return t.baseData.top})),r=1*n[0].baseData.top;t.map((function(t){return t.baseData.top=r}))}(n);break;case"alignBottom":!function(t,e){if(1===t.length){var n=e.plant?e.plant.baseData:{width:1920,height:1080};t[0].baseData.top=n.height-t[0].baseData.height}var r=i.default.sortBy(t,(function(t){return 1*t.baseData.top})),a=1*r[r.length-1].baseData.top+1*r[r.length-1].baseData.height;t.map((function(t){return t.baseData.top=a-1*t.baseData.height}))}(n,t);break;case"verticalCenter":!function(t,e){if(1===t.length){var n=e.plant?e.plant.baseData:{width:1920,height:1080};t[0].baseData.top=n.height/2-t[0].baseData.height/2}var r=i.default.sortBy(t,(function(t){return t.baseData.top})),a=i.default.sortBy(t,(function(t){return 1*t.baseData.top+1*t.baseData.height})),o=(1*r[0].baseData.top+(1*a[a.length-1].baseData.top+1*a[a.length-1].baseData.height))/2;t.map((function(t){return t.baseData.top=o-t.baseData.height/2}))}(n,t);break;case"topDistribution":!function(t){if(t.length<3)return console.warn("A minimum of three elements are required for a distribution arrangement"),!1;var e=i.default.sortBy(t,(function(t){return t.baseData.top})),n=(e[e.length-1].baseData.top-e[0].baseData.top)/(e.length-1);e.map((function(t,r){r>0&&r<e.length-1&&(t.baseData.top=1*e[0].baseData.top+n*r)}))}(n);break;case"bottomDistribution":!function(t){if(t.length<3)return console.warn("A minimum of three elements are required for a distribution arrangement"),!1;var e=i.default.sortBy(t,(function(t){return t.baseData.top+t.baseData.height})),n=(e[e.length-1].baseData.top+e[e.length-1].baseData.height-(e[0].baseData.top+e[0].baseData.height))/(e.length-1);e.map((function(t,r){r>0&&r<e.length-1&&(t.baseData.top=1*e[0].baseData.top+1*e[0].baseData.height-1*t.baseData.height+n*r)}))}(n);break;case"xCenterDistribution":!function(t){if(t.length<3)return console.warn("A minimum of three elements are required for a distribution arrangement"),!1;var e=i.default.sortBy(t,(function(t){return t.baseData.left+t.baseData.width/2})),n=1*e[e.length-1].baseData.left+e[e.length-1].baseData.width/2,r=1*e[0].baseData.left+e[0].baseData.width/2,a=(n-r)/(e.length-1);e.map((function(t,n){n>0&&n<e.length-1&&(t.baseData.left=r-t.baseData.width/2+a*n)}))}(n);break;case"leftDistribution":!function(t){if(t.length<3)return console.warn("A minimum of three elements are required for a distribution arrangement"),!1;var e=i.default.sortBy(t,(function(t){return t.baseData.left})),n=(e[e.length-1].baseData.left-e[0].baseData.left)/(e.length-1);e.map((function(t,r){r>0&&r<e.length-1&&(t.baseData.left=e[0].baseData.left+n*r)}))}(n);break;case"rightDistribution":!function(t){if(t.length<3)return console.warn("A minimum of three elements are required for a distribution arrangement"),!1;var e=i.default.sortBy(t,(function(t){return t.baseData.left+t.baseData.width})),n=(e[e.length-1].baseData.left+e[e.length-1].baseData.width-(e[0].baseData.left+e[0].baseData.width))/(e.length-1);e.map((function(t,r){r>0&&r<e.length-1&&(t.baseData.left=e[0].baseData.left+e[0].baseData.width-t.baseData.width+n*r)}))}(n);break;case"yCenterDistribution":!function(t){if(t.length<3)return console.warn("A minimum of three elements are required for a distribution arrangement"),!1;var e=i.default.sortBy(t,(function(t){return t.baseData.top+t.baseData.height/2})),n=1*e[e.length-1].baseData.top+e[e.length-1].baseData.height/2,r=1*e[0].baseData.top+e[0].baseData.height/2,a=(n-r)/(e.length-1);e.map((function(t,n){n>0&&n<e.length-1&&(t.baseData.top=r-t.baseData.height/2+a*n)}))}(n)}}},ai={setPageData:function(t,e){t.pages[0]=e},parasePages:function(t,e){e instanceof Array&&(t.pages=e.map((function(t,e){return t.name||(t.name="页面"+(e+1)),t.path||(t.path="page"+(e+1)),t})))},addPage:function(t,e){var n=t.pages.length+1;e.name="页面"+n,e.path="page"+n,t.pages.push(e),t.pageIndex=t.pages.length-1,t.resource={jspaths:[],csspaths:[],otherpaths:[]},t.globalVars=t.sysConst},setCurrentPageIndex:function(t,e){var n=t.globalEvents,r=t.globalVars,i=t.list,a=t.name,o=t.theme,s=t.plant,l=t.shareVariableTree,u=t.resource;t.pages[t.pageIndex]={globalEvents:n,globalVars:r,list:i,name:a,theme:o,plant:s,shareVariableTree:l,resource:u},t.pageIndex=e},setPageDataForIndex:function(t,e){var n=e.index,r=e.data;t.pages[n]=r},setPageName:function(t,e){t.name=e,t.pages[t.pageIndex].name=e},saveCurrentPageData:function(t){var e=t.globalEvents,n=t.globalVars,r=void 0===n?[]:n,i=t.list,a=t.name,o=t.theme,s=t.plant,l=t.shareVariableTree,u=t.resource;t.pages[t.pageIndex]={globalEvents:e,globalVars:r,list:i,name:a,theme:o,plant:s,shareVariableTree:l,resource:u}},getCurrentPageData:function(t){var e=t.globalEvents,n=t.globalVars,r=t.list,i=t.name,a=t.theme,o=t.plant,s=t.shareVariableTree,l=t.resource;t.pages[t.pageIndex]={globalEvents:e,globalVars:n,list:r,name:i,theme:a,plant:o,shareVariableTree:s,resource:l}}},oi={segmentationContainer:function(t,e){var n=i.default.cloneDeep(t.list),r=e.containerData,a=e.direction,o=[];if("del"==a)if(r.pid){var s=function(t){if(t.length)for(var e=0;e<t.length;e++)t[e].hasOwnProperty("children")&&t[e].children.length&&t[e].children.map((function(n){t[e].cid=n.pid})),r.pid===t[e].cid?t[e].children.length&&(t[e].children.map((function(t){t.cid!==r.cid&&t.hasOwnProperty("children")&&t.children.length&&(o=t.children)})),t[e].children=[],o.length&&(t[e].children=o)):t[e].hasOwnProperty("children")&&s(t[e].children)};n.length&&s(n)}else n.length&&(n=n.filter((function(t){return t.cid!==r.cid})));else if(r.pid){var l=function(t){for(var e=0;e<t.length;e++)if(r.cid===t[e].cid){t[e].direction=a,1===t[e].children.length&&((o=t[e].children)[0].pid=null,t[e].children=[]);for(var n=0;n<2;n++)t[e].children.push({isLock:!1,isShow:!0,baseData:{width:"col"==a?"100%":"50%",height:"col"==a?"50%":"100%",angle:0,penetrate:0,opacity:100},componentType:"selectContainer",iconClass:"__vue_devtool_undefined__",isAssembly:"__vue_devtool_undefined__",source:[],comData:{actions:[],option:{grid:[{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"}],bgColor:{alpha:1,blue:0,green:0,red:0,flag:1,style:"transparent"},borderRadius:[{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"}],margins:[{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"}]}},tmpData:{},dynamic:0,filePath:"/anov-prod/mgt/go/assembly/162-bgImage.png",origin:"anov-go",name:"容器组件",path:"/index.js",viewComName:"selectContainer",optionComName:"",dataComName:"",eventComName:"",direction:"col",assemblyDeveloper:"",devEmail:"",version:null,devDept:"",toggle:!0,cid:Ee(),pid:t[e].cid,nestIndex:0,children:[],isTop:!1,isCol:"col"==a,isRow:"col"!=a,isDragged:!1,grandParentId:r.pid});o.length&&(o[0].cid=Ee(),o[0].pid=t[e].children[0].cid,t[e].children[0].children=o)}else t[e].hasOwnProperty("children")&&l(t[e].children)};n.length&&l(n)}else{var u=oe(n,r.cid);if(u){u.direction=a,1===u.children.length&&(o=u.children,u.children=[]);for(var c=0;c<2;c++)u.children.push({isLock:!1,isShow:!0,baseData:{width:"col"==a?"100%":"50%",height:"col"==a?"50%":"100%",angle:0,penetrate:0,opacity:100},componentType:"selectContainer",iconClass:"__vue_devtool_undefined__",isAssembly:"__vue_devtool_undefined__",source:[],comData:{actions:[],option:{grid:[{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"}],bgColor:{alpha:1,blue:0,green:0,red:0,flag:1,style:"transparent"},imgOpt:"",bgScaleOpt:3,borderRadius:[{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"}],margins:[{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"}]}},tmpData:{},dynamic:0,filePath:"/anov-prod/mgt/go/assembly/162-bgImage.png",origin:"anov-go",name:"容器组件",path:"/index.js",viewComName:"selectContainer",optionComName:"",dataComName:"",eventComName:"",assemblyDeveloper:"",devEmail:"",version:null,devDept:"",toggle:!0,cid:Ee(),pid:u.cid,nestIndex:0,children:[],isTop:!1,isCol:"col"==a,isRow:"col"!=a,isDragged:!1,grandParentId:r.pid});o.length&&(o[0].cid=Ee(),o[0].pid=u.children[0].cid,u.children[0].children=o)}}t.list=n}},si={goEditShareCom:function(t,e){var n=e.name,r=e.mapping;t.shareComs||(t.shareComs=new Map),t.shareComs.set(n,r)},delShareCom:function(t,e){var n=e.key;t.shareComs&&t.shareComs.has(n)&&t.shareComs.delete(n)}},li={mutation:{addGoVar:function(t,e){try{Pr.addVariable(e,(function(){t.globalVars=Pr.getAllVariables()}))}catch(t){console.warn(t)}},editGoVar:function(t,e){var n=this;try{Pr.editVariable(e,(function(r){t.globalVars=Pr.getAllVariables(),Er(t.globalSource,e.mapField,t.globalVars,t.list,(function(t){n.commit("GoCom/updatComs",t.cid)})),(null==e?void 0:e.delayUpdate)||n.commit("GoCom/updatComsForVar",e.mapField)}))}catch(t){console.warn(t)}},goEditVar:function(t,e){var n=e.key,r=e.value,i=t.globalVars.find((function(t){return t.mapField==n}));i&&(i.originalValue=r,i.update=!0,this.commit("GoCom/editGoVar",i))},goUpdataSysVars:function(t,e){var n={U_CITY:"cityCode",U_COUNTY:"countyCode",U_PROVINCE:"provinceCode",U_PHONE:"userPhone"},r=t.sysConst,i=Object.keys(n);r.map((function(t){if(t.originalValue=t.value,(null==t?void 0:t.name)&&(null==i?void 0:i.includes(t.name))){var r=n[t.name];t.value=e[r],t.originalValue=e[r]}return t})),Pr.addVariables(r)},updateGlobalVars:function(t,e){t.globalVars=e},updataVariables:function(t){t.globalVars=Pr.getAllVariables()}},actions:{updateGlobalVarsAction:function(t){(0,t.commit)("updateGlobalVars",Pr.getAllVariables())},goEditVar:function(t,e){(0,t.commit)("editGoVar",{mapField:e.key,originalValue:e.value})}}},ui=d(d(d(d(d(d(d(d(d(d(d({},g),Rn),Ur),Gr),Wr),ri),ii),ai),oi),si),li.mutation),ci=d({updataList:function(t,e){var n=t.commit;e&&n("updataList",e),n("updateTree")},updataBaseData:function(t,e){var n=t.commit;e&&n("updataBaseData",e)},setActive:function(t,e){var n=t.commit;e&&n("setActive",e)},setSyncFlag:function(t,e){var n=t.commit;e&&n("setSyncFlag",e)},execute:function(t,e){var n=t.commit;e&&n("execute",e)},updataAnimationForComponent:function(t,e){var n=t.commit;e&&n("updataAnimationForComponent",e)},updataAnimation:function(t,e){(0,t.commit)("updataAnimation",e)},setOptionForCom:function(t,e){(0,t.commit)("setOptionForCom",e)},updatComs:function(t,e){var n=t.commit;setTimeout((function(){n("updatComs",e)}))},updatComsForVar:function(t,e){var n=t.dispatch,r=t.state,a=r.globalVars.map((function(t){var n,r;if((null===(n=null==t?void 0:t.forkValue)||void 0===n?void 0:n.length)&&(null===(r=null==t?void 0:t.forkValue)||void 0===r?void 0:r.includes(e))||t.forkValue==e)return t.mapField})).filter((function(t){return t})),o=[e];(null==a?void 0:a.length)&&(o=i.default.uniq(v([e],a,!0)));for(var s=[],l=0,u=o;l<u.length;l++){var c=u[l];r.shareVariableTree[c]&&s.push.apply(s,r.shareVariableTree[c])}if(null==s?void 0:s.length)for(var h=0,d=s;h<d.length;h++){n("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)}},li.actions),hi={getCurrentPage:function(t){return t.pages.length?t.pages[t.pageIndex]:[]},globalSourceTree:function(t){if(t.list.length&&t.globalSource.length){var e=[];return he(i.default.cloneDeep(t.list),(function(t){var n,r,i;if("globalData"==(null===(r=null===(n=null==t?void 0:t.tmpData)||void 0===n?void 0:n.source)||void 0===r?void 0:r.type)){var a=null===(i=null==t?void 0:t.tmpData)||void 0===i?void 0:i.source.globalData;e.push({name:t.name,cid:t.cid,sourceId:a.id,viewComName:t.viewComName})}})),e}return[]}},di={namespaced:!0,state:c,mutations:ui,actions:ci,getters:hi},fi=function(){function t(){}return t.setAppStore=function(e){t.store=e},t.prototype.getState=function(){return t.store.state[t.storeModule]},t.prototype.mapState=function(e){return pi(t.storeModule,e)},t.prototype.mapGetters=function(e){return gi(t.storeModule,e)},t.prototype.mapMutations=function(e){return vi(t.storeModule,e)},t.prototype.callState=function(e){return t.store.state[t.storeModule][e]},t.prototype.callGetter=function(e,n){return t.store.getters[t.storeModule+"/"+e]},t.prototype.callMutation=function(e,n,r){r?t.store.commit(t.storeModule+"/"+e,n,!0):t.store.commit(t.storeModule+"/"+e,n)},t.prototype.callAction=function(e,n){t.store.dispatch(t.storeModule+"/"+e,n)},t.storeModule="GoCom",t}(),pi=yi((function(t,e){var n;return mi(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=bi(this.$store,"mapState",t);if(!r)return;e=r.context.state,n=r.context.getters}return"function"==typeof i?i.call(this,e,n):e[i]},n[r].VuexServer=!0})),n})),vi=yi((function(t,e){var n;return mi(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=this.$store.commit;if(t){var a=bi(this.$store,"mapMutations",t);if(!a)return;r=a.context.commit}return"function"==typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}})),n})),gi=yi((function(t,e){var n={};return mi(e).forEach((function(e){var r=e.key,i=e.val;i=t+i,n[r]=function(){if(!t||bi(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 mi(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 yi(t){return function(e,n){return"string"!=typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function bi(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 _i=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}(),wi=function(){function t(t){this.vueServer=t,this.loadScript=Jr}return t.setStore=function(t){this.store=t},t.prototype.loadComponents=function(t){var e=t&&t.list?t.list:[];he(e,(function(t){t.viewComName&&(t&&t.path&&t.path,t.origin,t.viewComName?t.viewComName:t.rawData.viewComName)})),t&&this.vueServer.callMutation("reversal",i.default.cloneDeep(t))},t.prototype.addStore=function(t){this.vueServer.callMutation("setActive",{id:t}),this.vueServer.callMutation("addComs",this)},t.prototype._addPlantStore=function(){this.vueServer.callMutation("setPlant",this)},t.prototype._loadComTmp=function(t,e){return f(this,void 0,void 0,(function(){var n,r,i=this;return p(this,(function(a){switch(a.label){case 0:if(window[e])return[3,5];n=function(e){var n;return p(this,(function(r){switch(r.label){case 0:return n=t[e],[4,new Promise((function(t){t(i._load(n))}))];case 1:return r.sent(),[2]}}))},r=0,a.label=1;case 1:return r<t.length?[5,n(r)]:[3,4];case 2:a.sent(),a.label=3;case 3:return r++,[3,1];case 4:window[e]=e,a.label=5;case 5:return[2]}}))}))},t.prototype._load=function(t){return f(this,void 0,void 0,(function(){var e=this;return p(this,(function(n){return[2,new Promise((function(n){n(e.loadScript(t))}))]}))}))},t}(),Di=function(){function t(t){var e=t.dbName,n=t.tables,r=t.version,i=void 0===r?1:r,a=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["dbName","tables","version"]);this.dbName=e,this.tables=n,this.version=i,this.openDB(d({dbName:e,tables:n,version:i},a))}return t.deleteDB=function(t){var e;null===(e=window.indexedDB)||void 0===e||e.deleteDatabase(t)},t.prototype.deleteItem=function(t,e,n){var r=this.storage.transaction(t,"readwrite").objectStore(t).delete(e);return r.onsuccess=function(t){"function"==typeof n&&n(t)},r},t.prototype.getItem=function(t,e,n){var r=this.storage.transaction(t,"readwrite").objectStore(t),i=null;return(i=e?r.get(e):r.getAll()).onsuccess=function(t){var e;"function"==typeof n&&n(null===(e=null==t?void 0:t.target)||void 0===e?void 0:e.result)},i.onerror=function(t){console.error(t),n(t)},i},t.prototype.setItem=function(t,e,n,r){var i=this.storage.transaction(t,"readwrite").objectStore(t).put(n,e);return i.onsuccess=function(t){"function"==typeof r&&r(t)},i.onerror=function(t){"function"==typeof r&&r(t)},i},t.prototype.get=function(t,e){return this.getItem(this.tables[0],t,e)},t.prototype.set=function(t,e,n){return this.setItem(this.tables[0],t,e,n)},t.prototype.delete=function(t,e){return this.deleteItem(this.tables[0],t,e)},t.prototype.clear=function(t,e){var n=this.storage.transaction(this.dbName,"readwrite").objectStore(t).clear();return n.onsuccess=function(t){"function"==typeof e&&e(t)},n},t.prototype.getDB=function(){return this.storage},t.prototype.closeDB=function(){this.storage.close()},t.prototype.openDB=function(t){var e=this,n=t.dbName,r=t.tables,i=t.version,a=t.callback,o=window.indexedDB;if(o)if((null==r?void 0:r.length)<1)console.error("表名不能为空");else{var s=o.open(n,i);s.onerror=function(t){var e,n;console.error("打开数据库失败: ".concat(null===(n=null===(e=t.currentTarget)||void 0===e?void 0:e.error)||void 0===n?void 0:n.message)),"function"==typeof a&&a(t)},s.onsuccess=function(t){var n;e.storage=null===(n=t.target)||void 0===n?void 0:n.result,"function"==typeof a&&a(t)},s.onupgradeneeded=function(t){var n;e.storage=null===(n=t.target)||void 0===n?void 0:n.result,r.forEach((function(n){e.storage.objectStoreNames.contains(n)||(e.storage.createObjectStore(n),"function"==typeof a&&a(t))}))}}else console.error("你的浏览器不支持indexedDB")},t}(),Si=function(){function t(){this.VueServer=new fi}return t.getInstance=function(){return this.instance||(this.db=new Di({dbName:"AnovGo",tables:["logs"]}),this.instance=new t),this.instance},t.prototype.getAppStore=function(){return t.store},t.setAppStore=function(e){t.store=e,fi.setAppStore(e),wi.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 _i(t);e?this.add(n.cid,n,!0):this.add(n.cid,n)},t.prototype.renderForParent=function(t,e,n){var r=new _i(t);void 0!==n?this.addForParent(r.cid,r,e,n):this.addForParent(r.cid,r,e)},t.prototype.reversal=function(t){new wi(new fi).loadComponents(t)},t.prototype.emitEvent=function(t,e){var n=this,r=this.VueServer.callState("globalEvents"),i=(this.VueServer.callState("globalVars"),this.VueServer.callState("shareVariableTree")),a=this.VueServer.callState("globalSource");this.VueServer.callState("globalConstant");var o=this.VueServer.callState("list");Br(r,0,i,o,t,(function(t){n.VueServer.callMutation("changeShow",t)}),(function(t){n.VueServer.callMutation("updataSourceForComponent",t)}),e,a)},t}(),xi=Object.defineProperty,Ti=Object.getOwnPropertySymbols,ki=Object.prototype.hasOwnProperty,Ci=Object.prototype.propertyIsEnumerable,Ei=(t,e,n)=>e in t?xi(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Oi=(t,e)=>{for(var n in e||(e={}))ki.call(e,n)&&Ei(t,n,e[n]);if(Ti)for(var n of Ti(e))Ci.call(e,n)&&Ei(t,n,e[n]);return t},Ai=(t,e,n)=>(Ei(t,"symbol"!=typeof e?e+"":e,n),n),Mi=(t,e,n)=>new Promise(((r,i)=>{var a=t=>{try{s(n.next(t))}catch(t){i(t)}},o=t=>{try{s(n.throw(t))}catch(t){i(t)}},s=t=>t.done?r(t.value):Promise.resolve(t.value).then(a,o);s((n=n.apply(t,e)).next())})),Pi={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},Vi="data-watermark-tag",Ri={childList:!0,subtree:!0,attributeFilter:["style","class",Vi]};var Ni=t=>{let e="";return Object.keys(t).forEach((n=>{const r=n.replace(/([A-Z])/g,"-$1").toLowerCase();e+=`${r}:${t[n]};`})),e},Bi=(t="")=>{return`${e=t,window.btoa(decodeURI(encodeURIComponent(e)))}-${(new Date).getTime()}-${Math.floor(Math.random()*Math.pow(10,8))}`;var e};var Ii=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,Fi=l((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 r(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function i(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 o&&o.global===o?o: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,o){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?i(l):r(l.href)?n(t,e,o):i(l,l.target="_blank")):(l.href=s.createObjectURL(t),setTimeout((function(){s.revokeObjectURL(l.href)}),4e4),setTimeout((function(){i(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,a,o){if(a=a||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(e(t,o),a);else if(r(t))n(t,a,o);else{var s=document.createElement("a");s.href=t,s.target="_blank",setTimeout((function(){i(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,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||o&&l||s)&&"undefined"!=typeof FileReader){var c=new FileReader;c.onloadend=function(){var t=c.result;t=u?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=t:location=t,i=null},c.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}()})),ji=function(t){if(0===t.length)return[];var e=function(t){for(var n,r,a,o,s=0;s<t.length;s++)t[s].tmpData&&(t[s]=Object.assign({},(r=t[s],a=void 0,o=void 0,a=i.default.cloneDeep(r),o=i.default.omit(a,["comData","source"]),d({},o)))),t[s]&&t[s].children&&(null===(n=t[s])||void 0===n?void 0:n.children.length)?e(t[s].children):t[s]&&t[s].dynamicChildren&&Array.from(t[s].dynamicChildren).forEach((function(t,n){e(t[1])}))};return e(t),t},Li=function(t){var e=i.default.cloneDeep(t)?i.default.cloneDeep(t):{};"string"==typeof t&&(e=JSON.parse(t));var n=[];if(e instanceof Array)e.forEach((function(t,e){var r=JSON.parse(t.caseDetailData)?JSON.parse(t.caseDetailData):{},i=t.caseDetailPath,a=t.caseDetailName,o=r.theme,s=void 0===o?null:o,l=r.globalVars,u=void 0===l?null:l,c=r.shareVariableTree,h=void 0===c?null:c,d=r.plant,f=void 0===d?null:d,p=r.list,v=void 0===p?[]:p,g=r.path,m=void 0===g?"":g;r.name;var y=r.resource,b=void 0===y?{jspaths:[],csspaths:[],otherpaths:[]}:y,_=r.watermark,w=void 0===_?null:_,D=r.tw,S=void 0===D?null:D,x=r.globalSource,T=void 0===x?[]:x,k=r.globalEvents,C=void 0===k?[]:k,E=r.globalConstant,O=void 0===E?[]:E;n.push({path:m||i,theme:s,name:a,resource:b,tw:S,watermark:w,globalSource:T,globalVars:u,globalEvents:C,globalConstant:O,shareVariableTree:h,plant:f,list:ji(v)})}));else{var r=e.theme,a=void 0===r?null:r,o=e.globalVars,s=void 0===o?null:o,l=e.shareVariableTree,u=void 0===l?null:l,c=e.plant,h=void 0===c?null:c,d=e.list,f=void 0===d?[]:d,p=e.resource,v=void 0===p?{jspaths:[],csspaths:[],otherpaths:[]}:p,g=e.watermark,m=void 0===g?null:g,y=e.tw,b=void 0===y?null:y,_=e.globalSource,w=void 0===_?[]:_,D=e.globalEvents,S=void 0===D?[]:D,x=e.globalConstant,T=void 0===x?[]:x;n.push({resource:v,tw:b,watermark:m,globalSource:w,theme:a,globalVars:s,globalEvents:S,shareVariableTree:u,globalConstant:T,plant:h,list:ji(f)})}return n};function Yi(t,e){throw new Error("".concat(t,":Expected HTMLElement, got ").concat(e))}var zi=function(){function t(t){this.option=t,this.option.isResize&&window.addEventListener("resize",this.resize.bind(this))}return Object.defineProperty(t,"defaultOption",{get:function(){return t._defaultOption},set:function(e){t._defaultOption=e},enumerable:!1,configurable:!0}),t.getInstance=function(e){return t.instance||(t.instance=new t(e)),t.instance},t.prototype.removeResize=function(){window.removeEventListener("resize",this.resize.bind(this))},t.prototype.resize=function(){var t=this.option,e=t.isEqualScale,n=t.wrapSelector,r=t.viewSelector,i=t.designWidth,a=t.designHeight,o=t.horizontal,s=t.vertical,l=document.querySelector(n);l||Yi("wrap",l);var u=l.clientWidth,c=l.clientHeight,h=document.querySelector(r);h||Yi("view",h),h.style.position="absolute",h.style.width=i+"px",h.style.height=a+"px";var d,f,p,v,g=Math.min(u/i,c/a);if(e){switch(h.style.transform="scale(".concat(g,")"),o){case"center":d=(u-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=(c-a)/2+"px";break;case"top":f=(g-1)/2*a+"px";break;case"bottom":v=(g-1)/2*a+"px"}}else h.style.transform="scale('".concat(u/i,", ").concat(c/a,"')"),d=(u-i)/2+"px",f=(c-a)/2+"px";f?h.style.top=f:v&&(h.style.bottom=v),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}(),Ui=function(){function t(t){this.wrap=null,this.target=null,this.type=0,this.minRatio=1,this.outSize={w:0,h:0},this.inSize={w:0,h:0};var e=t.wrap,n=t.target,r=t.type,i=t.size,a=t.callback;this.size=i,this.type=r,this.initOptions(e,n,i),this.initSize(i),this.layout(),this.scale(a),window.addEventListener("resize",this.reset.bind(this,a))}return t.prototype.reset=function(t){this.initSize(this.size),this.layout(),t?this.scale(t):this.scale()},t.getInstance=function(e){return t.instance||(t.instance=new t(e)),t.instance},t.prototype.removeResize=function(){window.removeEventListener("resize",this.reset.bind(this,void 0))},t.prototype.getDom=function(t){if(i.default.isElement(t))return t;var e=document.querySelector(t);return i.default.isElement(e)?e:null},t.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()},t.prototype.initSize=function(t){this.outSize.w=this.wrap.clientWidth,this.outSize.h=this.wrap.clientHeight,this.inSize=t},t.prototype.verificationDom=function(){null!=this.wrap&&null!=this.target&&this.isChildOf(this.wrap,this.target)||console.warn("Please pass in the DOM element correctly!")},t.prototype.layout=function(){if(0==this.type||3==this.type){var t=(this.outSize.w-this.inSize.w)/2,e=(this.outSize.h-this.inSize.h)/2;this.target.style.top=e+"px",this.target.style.left=t+"px"}else this.wrap.style.display="flex",this.wrap.style["align-items"]="center",this.wrap.style["justify-content"]="center",this.target.style.position="static",1==this.type?(this.wrap.style["overflow-y"]="auto",this.wrap.style["overflow-x"]="hidden"):2==this.type&&(this.wrap.style["overflow-y"]="hidden",this.wrap.style["overflow-x"]="auto")},t.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},t.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,")")},t.prototype.resize=function(){},t}(),Hi=l((function(t){!function(e){var n=function(){return{escape:function(t){return t.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1")},parseExtension:t,mimeType:function(e){var n=t(e).toLowerCase();return(r="application/font-woff",i="image/jpeg",{woff:r,woff2:r,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:i,jpeg:i,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"})[n]||"";var r,i},dataAsUrl:function(t,e){return"data:"+e+";base64,"+t},isDataUrl:function(t){return-1!==t.search(/^(data:)/)},canvasToBlob:function(t){return t.toBlob?new Promise((function(e){t.toBlob(e)})):function(t){return new Promise((function(e){for(var n=window.atob(t.toDataURL().split(",")[1]),r=n.length,i=new Uint8Array(r),a=0;a<r;a++)i[a]=n.charCodeAt(a);e(new Blob([i],{type:"image/png"}))}))}(t)},resolveUrl:function(t,e){var n=document.implementation.createHTMLDocument(),r=n.createElement("base");n.head.appendChild(r);var i=n.createElement("a");return n.body.appendChild(i),r.href=e,i.href=t,i.href},getAndEncode:function(t){var e=3e4;s.impl.options.cacheBust&&(t+=(/\?/.test(t)?"&":"?")+(new Date).getTime());return new Promise((function(n){var r,i=new XMLHttpRequest;if(i.onreadystatechange=o,i.ontimeout=l,i.responseType="blob",i.timeout=e,i.open("GET",t,!0),i.send(),s.impl.options.imagePlaceholder){var a=s.impl.options.imagePlaceholder.split(/,/);a&&a[1]&&(r=a[1])}function o(){if(4===i.readyState)if(200===i.status){var e=new FileReader;e.onloadend=function(){var t=e.result.split(/,/)[1];n(t)},e.readAsDataURL(i.response)}else r?n(r):u("cannot fetch resource: "+t+", status: "+i.status)}function l(){r?n(r):u("timeout of "+e+"ms occured while fetching resource: "+t)}function u(t){console.error(t),n("")}}))},uid:function(){var t=0;return function(){return"u"+e()+t++;function e(){return("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4)}}}(),delay:function(t){return function(e){return new Promise((function(n){setTimeout((function(){n(e)}),t)}))}},asArray:function(t){for(var e=[],n=t.length,r=0;r<n;r++)e.push(t[r]);return e},escapeXhtml:function(t){return t.replace(/#/g,"%23").replace(/\n/g,"%0A")},makeImage:function(t){return new Promise((function(e,n){var r=new Image;r.onload=function(){e(r)},r.onerror=n,r.src=t}))},width:function(t){var n=e(t,"border-left-width"),r=e(t,"border-right-width");return t.scrollWidth+n+r},height:function(t){var n=e(t,"border-top-width"),r=e(t,"border-bottom-width");return t.scrollHeight+n+r}};function t(t){var e=/\.([^\.\/]*?)$/g.exec(t);return e?e[1]:""}function e(t,e){var n=window.getComputedStyle(t).getPropertyValue(e);return parseFloat(n.replace("px",""))}}(),r=function(){var t=/url\(['"]?([^'"]+?)['"]?\)/g;return{inlineAll:function(t,n,a){return o()?Promise.resolve(t):Promise.resolve(t).then(r).then((function(e){var r=Promise.resolve(t);return e.forEach((function(t){r=r.then((function(e){return i(e,t,n,a)}))})),r}));function o(){return!e(t)}},shouldProcess:e,impl:{readUrls:r,inline:i}};function e(e){return-1!==e.search(t)}function r(e){for(var r,i=[];null!==(r=t.exec(e));)i.push(r[1]);return i.filter((function(t){return!n.isDataUrl(t)}))}function i(t,e,r,i){return Promise.resolve(e).then((function(t){return r?n.resolveUrl(t,r):t})).then(i||n.getAndEncode).then((function(t){return n.dataAsUrl(t,n.mimeType(e))})).then((function(r){return t.replace(function(t){return new RegExp("(url\\(['\"]?)("+n.escape(t)+")(['\"]?\\))","g")}(e),"$1"+r+"$3")}))}}(),i=function(){return{resolveAll:function(){return t().then((function(t){return Promise.all(t.map((function(t){return t.resolve()})))})).then((function(t){return t.join("\n")}))},impl:{readAll:t}};function t(){return Promise.resolve(n.asArray(document.styleSheets)).then((function(t){var e=[];return t.forEach((function(t){try{n.asArray(t.cssRules||[]).forEach(e.push.bind(e))}catch(e){console.log("Error while reading CSS rules from "+t.href,e.toString())}})),e})).then((function(t){return t.filter((function(t){return t.type===CSSRule.FONT_FACE_RULE})).filter((function(t){return r.shouldProcess(t.style.getPropertyValue("src"))}))})).then((function(e){return e.map(t)}));function t(t){return{resolve:function(){var e=(t.parentStyleSheet||{}).href;return r.inlineAll(t.cssText,e)},src:function(){return t.style.getPropertyValue("src")}}}}}(),a=function(){return{inlineAll:function e(i){return i instanceof Element?a(i).then((function(){return i instanceof HTMLImageElement?t(i).inline():Promise.all(n.asArray(i.childNodes).map((function(t){return e(t)})))})):Promise.resolve(i);function a(t){var e=t.style.getPropertyValue("background");return e?r.inlineAll(e).then((function(e){t.style.setProperty("background",e,t.style.getPropertyPriority("background"))})).then((function(){return t})):Promise.resolve(t)}},impl:{newImage:t}};function t(t){return{inline:function(e){return n.isDataUrl(t.src)?Promise.resolve():Promise.resolve(t.src).then(e||n.getAndEncode).then((function(e){return n.dataAsUrl(e,n.mimeType(t.src))})).then((function(e){return new Promise((function(n,r){t.onload=n,t.onerror=r,t.src=e}))}))}}}}(),o={imagePlaceholder:void 0,cacheBust:!1},s={toSvg:l,toPng:function(t,e){return u(t,e||{}).then((function(t){return t.toDataURL()}))},toJpeg:function(t,e){return u(t,e=e||{}).then((function(t){return t.toDataURL("image/jpeg",e.quality||1)}))},toBlob:function(t,e){return u(t,e||{}).then(n.canvasToBlob)},toPixelData:function(t,e){return u(t,e||{}).then((function(e){return e.getContext("2d").getImageData(0,0,n.width(t),n.height(t)).data}))},impl:{fontFaces:i,images:a,util:n,inliner:r,options:{}}};function l(t,e){return function(t){void 0===t.imagePlaceholder?s.impl.options.imagePlaceholder=o.imagePlaceholder:s.impl.options.imagePlaceholder=t.imagePlaceholder;void 0===t.cacheBust?s.impl.options.cacheBust=o.cacheBust:s.impl.options.cacheBust=t.cacheBust}(e=e||{}),Promise.resolve(t).then((function(t){return c(t,e.filter,!0)})).then(h).then((function(t){e.bgcolor&&(t.style.backgroundColor=e.bgcolor);e.width&&(t.style.width=e.width+"px");e.height&&(t.style.height=e.height+"px");e.style&&Object.keys(e.style).forEach((function(n){t.style[n]=e.style[n]}));return t})).then((function(r){return function(t,e,r){return Promise.resolve(t).then((function(t){return t.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),(new XMLSerializer).serializeToString(t)})).then(n.escapeXhtml).then((function(t){return'<foreignObject x="0" y="0" width="100%" height="100%">'+t+"</foreignObject>"})).then((function(t){return'<svg xmlns="http://www.w3.org/2000/svg" width="'+e+'" height="'+r+'">'+t+"</svg>"})).then((function(t){return"data:image/svg+xml;charset=utf-8,"+t}))}(r,e.width||n.width(t),e.height||n.height(t))}))}function u(t,e){return l(t,e).then(n.makeImage).then(n.delay(100)).then((function(r){var i=function(t){var r=document.createElement("canvas");if(r.width=e.width||n.width(t),r.height=e.height||n.height(t),e.bgcolor){var i=r.getContext("2d");i.fillStyle=e.bgcolor,i.fillRect(0,0,r.width,r.height)}return r}(t);return i.getContext("2d").drawImage(r,0,0),i}))}function c(t,e,r){return r||!e||e(t)?Promise.resolve(t).then((function(t){return t instanceof HTMLCanvasElement?n.makeImage(t.toDataURL()):t.cloneNode(!1)})).then((function(r){return function(t,e,r){var i=t.childNodes;return 0===i.length?Promise.resolve(e):a(e,n.asArray(i),r).then((function(){return e}));function a(t,e,n){var r=Promise.resolve();return e.forEach((function(e){r=r.then((function(){return c(e,n)})).then((function(e){e&&t.appendChild(e)}))})),r}}(t,r,e)})).then((function(e){return function(t,e){var r=e;return r instanceof Element?Promise.resolve().then(i).then(a).then(o).then(s).then(l).then((function(){return r})):r;function i(){if(r instanceof HTMLVideoElement){var e=window.getComputedStyle(t),n=document.createElement("canvas");n.width=parseInt(e.width,10),n.height=parseInt(e.height,10);var i=Math.max(t.videoWidth/n.width,t.videoHeight/n.height),a=t.videoWidth/i,o=t.videoHeight/i,s=n.width/2-a/2,l=n.height/2-o/2;n.getContext("2d").drawImage(t,s,l,a,o);var u=r=document.createElement("img");try{u.src=n.toDataURL()}catch(t){u.src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="}}}function a(){function e(t,e){function r(t,e){n.asArray(t).forEach((function(n){e.setProperty(n,t.getPropertyValue(n),t.getPropertyPriority(n))}))}t.cssText?e.cssText=t.cssText:r(t,e)}e(window.getComputedStyle(t),r.style)}function o(){function e(e){var i=window.getComputedStyle(t,e),a=i.getPropertyValue("content");if(""!==a&&"none"!==a){var o=n.uid();r.className=r.className+" "+o;var s=document.createElement("style");s.appendChild(l(o,e,i)),r.appendChild(s)}function l(t,e,r){var i="."+t+":"+e,a=r.cssText?o(r):s(r);return document.createTextNode(i+"{"+a+"}");function o(t){var e=t.getPropertyValue("content");return t.cssText+" content: "+e+";"}function s(t){return n.asArray(t).map(e).join("; ")+";";function e(e){return e+": "+t.getPropertyValue(e)+(t.getPropertyPriority(e)?" !important":"")}}}}[":before",":after"].forEach((function(t){e(t)}))}function s(){t instanceof HTMLTextAreaElement&&(r.innerHTML=t.value),t instanceof HTMLInputElement&&r.setAttribute("value",t.value)}function l(){r instanceof SVGElement&&(r.setAttribute("xmlns","http://www.w3.org/2000/svg"),r instanceof SVGRectElement&&["width","height"].forEach((function(t){var e=r.getAttribute(t);e&&r.style.setProperty(t,e)})))}}(t,e)})):Promise.resolve()}function h(t){return a.inlineAll(t).then((function(){return t}))}t.exports=s}()})),Gi=function(t){if(!t)return!1;return 1==new RegExp(/http(s)?:\/\/([\w-]+\.)+[\w-]+(\/[\w- .\/?%&=]*)?/).test(t)},Wi=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))},qi=function(t,e){void 0===e&&(e="screenshot.jpeg");try{for(var n=t.split(","),r=n[0].match(/:(.*?);/)[1],i=atob(n[1]),a=i.length,o=new Uint8Array(a);a--;)o[a]=i.charCodeAt(a);return new File([o],e,{type:r})}catch(t){console.error("dataURLtoFile:数据转换错误 : "+t)}},$i=function(t,e){return f(void 0,void 0,void 0,(function(){var n;return p(this,(function(r){switch(r.label){case 0:return r.trys.push([0,11,,12]),"File"!=e||"string"!=typeof t?[3,2]:[4,qi(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,Wi(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]}}))}))},Ki=function(t,e,n,r){return f(void 0,void 0,void 0,(function(){return p(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,a.default({url:t,method:"GET",responseType:"arraybuffer",params:{url:e,dom:n,quality:r}})];case 1:return[2,i.sent()];case 2:return i.sent(),console.warn("请求截图服务器发生错误,请检查地址及参数是否正确!",{url:t,path:e,dom:n,quality:r}),[2,null];case 3:return[2]}}))}))},Zi=function(t,e){return f(void 0,void 0,void 0,(function(){var n,r;return p(this,(function(i){switch(i.label){case 0:if(i.trys.push([0,2,,3]),!(n=document.querySelector(t)))throw new Error("domToImg:"+t+" dom未被找到!");return[4,Hi.toJpeg(n,{style:{transform:"scale(1)",position:"static"},quality:e})];case 1:return[2,i.sent()];case 2:return r=i.sent(),console.warn(r),[3,3];case 3:return[2]}}))}))},Xi=function(t){return"".concat(t>15?"":0).concat(t.toString(16))},Ji=function(t){var e=t.r,n=t.g,r=t.b,i=t.a,a=void 0===i?1:i;return"#".concat(Xi(e)).concat(Xi(n)).concat(Xi(r)).concat(1===a?"":Xi(Math.floor(255*a)))},Qi=function(t){var e=t.r,n=t.g,r=t.b;return"rgb(".concat(e,",").concat(n,",").concat(r,")")},ta=function(t,e){void 0===e&&(e=1e4);var n=t.r,r=t.g,i=t.b,a=t.a,o=void 0===a?1:a;return"rgba(".concat(n,",").concat(r,",").concat(i,",").concat(Math.floor(o*e)/e,")")},ea=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}},na=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])}},ra=function(t){if(t.startsWith("#"))return ea(t);if(t.startsWith("rgb"))return na(t);if("transparent"===t)return ea("#00000000");throw new Error("color string error: ".concat(t))},ia=new Map([["E1001","系统未知错误"],["E1002","vue逻辑错误"],["E1003","JavaScript错误"],["E1004","静态资源加载错误"],["E1005","请求错误"],["E1006","Promise错误"]]),aa=function(t,e,n,r){void 0===r&&(r="null"),oa({code:t,type:ia.get("".concat(t)),msg:e,router:n.currentRoute.value.fullPath,file:r,createTime:(new Date).toLocaleString()})},oa=function(t){var e=localStorage.getItem("ERROR");if(e){var n=JSON.parse(e);sa(n),n.length>50?(n[0]=t,sa(n)):n.push(t),localStorage.setItem("ERROR",JSON.stringify(n))}else localStorage.setItem("ERROR",JSON.stringify([t]))},sa=function(t){t.sort((function(t,e){return t.createTime>e.createTime?1:-1}))},la=Object.freeze({__proto__:null,Watermark:class{constructor(t={}){Ai(this,"options"),Ai(this,"container"),Ai(this,"watermarkContent"),Ai(this,"watermarkDom"),Ai(this,"style"),Ai(this,"watermarkTag"),Ai(this,"shadowRoot"),Ai(this,"mutationObserver"),Ai(this,"_isAgainRender",(t=>{if("attributes"===t.type){if(t.attributeName===Vi)return!0;if(this.watermarkTag===this._getNodeRandomId(t.target))return!0}return!(!t.removedNodes.length||this.watermarkTag!==this._getNodeRandomId(t.removedNodes[0]))})),Ai(this,"_getNodeRandomId",(t=>{var e,n;return null==(e=null==t?void 0:t.dataset)?void 0:e[(n=Vi,n.split("-").slice(1).reduce(((t,e,n)=>0===n?e:`${t}${e[0].toUpperCase()+e.slice(1)}`)))]})),Ai(this,"_destroyMutationObserver",(()=>{this.mutationObserver&&(this.mutationObserver.takeRecords(),this.mutationObserver.disconnect(),this.mutationObserver=null)})),Ai(this,"_getWatermarkDom",(t=>Mi(this,null,(function*(){this.watermarkDom||(this.watermarkDom=document.createElement("div")),"number"==typeof t&&t&&(this.style.height=`${t}px`);const e=yield function(t){const{text:e,gapX:n,gapY:r,offsetTop:i,offsetLeft:a,width:o,height:s,rotate:l,opacity:u,fontSize:c,fontStyle:h,fontVariant:d,fontWeight:f,fontFamily:p,fontColor:v,textAlign:g,textBaseline:m,image:y,blindText:b,blindFontSize:_,blindOpacity:w}=t;return new Promise(((t,D)=>{const S=document.createElement("canvas"),x=S.getContext("2d"),T=1*(Number(n)+Number(o)),k=1*(Number(r)+Number(s)),C=Number(a)||Number(n)/2,E=Number(i)||Number(r)/2;if(S.setAttribute("width",`${T}px`),S.setAttribute("height",`${k}px`),x){const n=1*o,r=1*s;if(x.translate(1*C,1*E),x.rotate(Math.PI/180*Number(l)),b&&(x.globalAlpha=w,x.font=`${_}px normal`,x.fillText(b,0,0)),x.globalAlpha=u,y){const e=new Image;return e.crossOrigin="anonymous",e.referrerPolicy="no-referrer",e.src=y,void(e.onload=()=>{x.drawImage(e,0,0,n,r),t({url:x.canvas.toDataURL(),width:T,height:k})})}const i=Array.isArray(e)?e:[e],a=i.map((t=>x.measureText(t).width)),h=Math.max(...a),d=1*Number(c);x.textAlign=g,x.textBaseline=m,x.fillStyle=v,x.font=O(`${d}px`),h>o&&(x.font=O(d/2+"px"));const f=d+5;let p=(r-(c*i.length+5*(i.length-1)))/2;p=p<0?0:p;for(let t=0;t<i.length;t++)x.fillText(i[t]||"",n/2,p+f*t);t({url:x.canvas.toDataURL(),width:T,height:k})}function 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",Ni(this.style))}return this.watermarkDom.setAttribute(Vi,this.watermarkTag),this.watermarkDom})))),Ai(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({},Pi,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=Bi("watermark"),this.mutationObserver=null,this._render()}update(t={}){this.options=Oi(Oi({},this.options),t),this.style.zIndex=this.options.zIndex,this._render()}show(){this.watermarkDom&&(this.style.display="block",this.watermarkDom.setAttribute("style",Ni(this.style)))}hide(){this.watermarkDom&&(this.style.display="none",this.watermarkDom.setAttribute("style",Ni(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 Mi(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(Vi,e);const a=Oi({position:"relative"},n);return r||delete a.position,i.setAttribute("style",Ni(a)),i})(this.options.container,this.watermarkTag,this.options.containerStyle,this.options.pack),this.watermarkContent||(this.watermarkContent=(t=>{const e=document.createElement("div");return e.setAttribute("style",Ni({pointerEvents:"none"})),e.setAttribute(Vi,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),Ii&&this.options.monitor&&(this.mutationObserver=new Ii((t=>{t.forEach((t=>{if(this._isAgainRender(t))return this.destroy(),void this._render()}))})),this.mutationObserver.observe(this.container,Ri),this.shadowRoot&&this.mutationObserver.observe(this.shadowRoot,Ri))}))}},generateComponentList:ji,generateCaseDataJson:Li,generatePageData:function(t){var e={},n=e.theme,r=void 0===n?null:n,i=e.globalVars,a=void 0===i?null:i,o=e.shareVariableTree,s=void 0===o?null:o,l=e.plant,u=void 0===l?null:l,c=e.list,h=void 0===c?[]:c,d=e.undos,f=void 0===d?[]:d,p=e.undoRedoPointer,v=void 0===p?-1:p,g=e.globalEvents,m=void 0===g?[]:g;return t&&(r=t.theme,u=t.plant),{theme:r,globalVars:a,globalEvents:m,shareVariableTree:s,plant:u,undos:f,undoRedoPointer:v,list:ji(h)}},exportJson:function(t){var e=t.caseName,n=void 0===e?"case-name":e,r=t.caseImg,i=void 0===r?"":r,a=t.caseRemark,o=void 0===a?"":a,s=t.details,l=t.caseClientType,c=void 0===l?"":l,h=t.id,d={caseClientType:c,caseName:n,caseImg:i,caseRemark:o,caseId:void 0===h?"":h,createTime:u().format("YYYY-MM-DD , h:mm:ss"),caseData:Li(s)},f=new Blob([JSON.stringify(d)],{type:"json"});Fi.saveAs(f,n+".json")},generateJson:function(t){var e=t.caseName,n=void 0===e?"":e,r=t.caseData;return t.plangInfoForPsd,{caseName:n,createTime:u().format("YYYY-MM-DD , h:mm:ss"),caseData:Li(r)}},SizeAdaption:zi,Scale:Ui,loadFontResource:Xr,loadScript:Jr,removeTag:ni,loadTag:ei,loadFont:ti,getDataForEvaluator:_,recursion:he,setIndex:de,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)},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)},decrypAES:function(t){var e=te.enc.Utf8.parse(Ae),n=te.enc.Utf8.parse(Me);return te.AES.encrypt(t,e,{iv:n,mode:te.mode.CBC,padding:te.pad.Pkcs7}).toString()},safeEval:Pe,UpdataForContainer:Re,setActions:Oe,genID:Ee,arraySwap:re,arraySwapDeep:ae,arraySwapForId:ie,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])},RecursiveList:Ce,selectdArea:xe,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,resetPositionForGroup:function(t,e){var n=e.map((function(t){return t.cid}));e.forEach((function(e){e.pid&&_e(e,t)}));var r=xe(n,e);return me(r,e),{left:r.left,top:r.top,width:r.width,height:r.height}},setPositionForWorld:_e,breakUp:ye,findItem:ue,findItemDeep:oe,findParentDeep:le,findItemIndexDeep:function(t,e){for(var n,r=0,i=0;i<t.length;i++){var a=t[i];if(r+=1,a.cid==e)break;if(null===(n=null==a?void 0:a.children)||void 0===n?void 0:n.length)for(var o=0;o<(null==a?void 0:a.children.length);o++){if(r+=1,(null==a?void 0:a.children[o]).cid==e)return r}}return r},getLength:function(t){var e=0,n=function(t){for(var r=function(r){if(t[r].isShow&&t[r].children)n(t[r].children);else if(t[r].isShow&&t[r].dynamicChildren){if(t[r].dynamicChildren instanceof Map){for(var i=Array.from(t[r].dynamicChildren),a=0;a<i.length;a++)if(i[a]instanceof Array){var o=i[a][1];n(o)}}else if(t[r].isShow&&t[r].dynamicChildren instanceof Array){var s=t[r].dynamicChildren.find((function(e){return e[0]=t[r].activeDynamic}));s&&s.length&&n(s[1])}}else t[r].isShow&&t[r].stateChildren?n(t[r].stateChildren):t[r].isShow&&e++},i=0;i<t.length;i++)r(i)};return n(t),e||!1},getPosition:Te,updataAttribute:pe,updataAttributeForOption:ve,isPeer:ce,transformPosition:we,upDataGroup:ke,upDataGroupChildren:function(t,e,n){var r=t.children,a=i.default.cloneDeep(e),o=i.default.cloneDeep(Te(r)),s=a.left,l=a.top;a.width,a.height;var u=o.left,c=o.top,h=o.width,d=o.height,f={left:s+u,top:l+c,width:h,height:d,angle:e.angle?e.angle:0};return r.forEach((function(t){var e=i.default.cloneDeep(t.baseData);t.baseData.left<0?e.left=0:e.left=e.left-u,t.baseData.top<0?e.top=0:e.top=e.top-c,t.baseData=e})),t.children=r,f},resziePositionForGroup:function(t,e,n,r){var a=t.baseData.left,o=t.baseData.top,s=e.left,l=e.top,u=i.default.cloneDeep(t.children),c=n||"";if(s-a<0)for(var h=0;h<u.length;h++){(d=u[h]).cid!==c&&(d.baseData.left=d.baseData.left+(a-s))}if(l-o<0)for(h=0;h<u.length;h++){var d;(d=u[h]).cid!==c&&(d.baseData.top=d.baseData.top+(o-l))}t.children=u},genCopyName:function(t,e,n){var r,i;void 0===n&&(n=" copy");var a=new RegExp("".concat(n,"( \\d+)?$")).exec(t);a?(r=a[1]?parseInt(a[1]):0,i=t.slice(0,a.index)):(r=0,i=t);var o=new RegExp("^".concat(i).concat(n,"( [1-9][0-9]*)?$")),s=[];e.forEach((function(t){if(a=o.exec(t)){var e=a[1]?parseInt(a[1]):1;s.push(e)}})),s.sort((function(t,e){return t-e})),r++;for(var l=0,u=s.length;l<u;l++)if(s[l]===r)r++;else if(s[l]>r)break;return i+n+" "+r},resetID:fe,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)}},updataSizeDeep:ee,resizePosition:De,resizeListPosition:function(t,e){var n=function(t,r){for(var i,a=0;a<t.length;a++){var o=t[a];if(o.pid!=r){var s=De(e,o.cid),l=De(e,o.pid);o.baseData.left=s.left-l.left,o.baseData.top=s.top-l.top}(null===(i=null==o?void 0:o.children)||void 0===i?void 0:i.length)&&n(o.children,o.cid)}};n(t,e)},checkBaseData:ne,comToggle:ge,setSessionData:function(t,e){var n=JSON.stringify(e);sessionStorage.setItem(t,n)},getSessionData:function(t){var e=sessionStorage.getItem(t);return e?JSON.parse(e):null},globalSourceTemp:Ve,getAncestorsNodes:se,getInteractive:Fr,getInteractive2:function(t,e,n,r,a){var o;try{var s={},l=[],u=[],c=[],h=i.default.cloneDeep(t);return(null===(o=null===window||void 0===window?void 0:window.go)||void 0===o?void 0:o.dev)&&he(t,(function(t){var e,n,r;if(null===(n=null===(e=null==t?void 0:t.tmpData)||void 0===e?void 0:e.actions)||void 0===n?void 0:n.length)for(var i=0,a=null===(r=null==t?void 0:t.tmpData)||void 0===r?void 0:r.actions;i<a.length;i++){var o=a[i];if("toggle"==o.behave){var s=o.toggle;if(null==s?void 0:s.length)for(var l=0,u=s;l<u.length;l++){var c=u[l],h=c.value;(null==h?void 0:h.length)&&(c.value=c.value.map((function(t){return{cid:t.cid,viewComName:t.viewComName,name:t.name,visible:t.visible}})))}}}})),he(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:u,eventsComs:c})}})),e&&e.length&&(l=v(v([],l,!0),e,!0)),n&&n.length&&(l=v(v([],l,!0),n,!0)),r&&r.length&&(l=v(v([],l,!0),r,!0)),he(h,(function(t){var e,n=null===(e=null==t?void 0:t.tmpData)||void 0===e?void 0:e.source;jr(n,l,t,s)})),l.filter((function(t){if(t.fork){var e=l.find((function(e){return e.mapField==t.forkValue||Array.isArray(t.forkValue)&&t.forkValue.includes(e.mapField)}));(a?a==t.forkValue||Array.isArray(t.forkValue)&&t.forkValue.includes(a):!!e)&&(Array.isArray(t.forkValue)?t.originalValue=t.forkValue.map((function(t){var e=l.find((function(e){return e.mapField==t}));if(e)return e.value})):t.originalValue=e.value)}})),{shareVariableTree:s,globalVars:l.filter((function(t){return a?(a==t.forkValue||Array.isArray(t.forkValue)&&t.forkValue.includes(a))&&(t.hasOwnProperty("originalValue")||(t.originalValue=t.value),t.converter&&t.converterCode?t.value=Pe(t.converterCode,t.originalValue):t.value=t.originalValue):(t.hasOwnProperty("originalValue")||(t.originalValue=t.value),t.converter&&t.converterCode?t.value=Pe(t.converterCode,t.originalValue):t.value=t.originalValue),t})),globalEvents:u.filter((function(t){return t})),eventsComs:c}}catch(t){return console.error("error",t),{}}},checkVar:function(t,e){var n,r,i,a=!1,o=t.type,s=t.converse,l=t[o];if((null==s?void 0:s.use)&&(null===(n=null==s?void 0:s.data)||void 0===n?void 0:n.length))for(var u=0,c=s.data;u<c.length;u++){if((null==(m=c[u])?void 0:m.use)&&m.dependVars.includes(e)){a=!0;break}}if(a)return a;var h="",d="",f="";"api"==o&&(h=l.url,(null===(r=l.headers)||void 0===r?void 0:r.use)&&(d=l.headers.value),f=l.params),"datasource"==o&&(h=l.inputSql),"indicator"==o&&((null===(i=l.headers)||void 0===i?void 0:i.use)&&(d=l.headers.value),f=l.params);for(var p=/({{[\w]*}})|((@)[\w]*)/gm,v=0,g=[h,d,f];v<g.length;v++){var m,y=(m=g[v]).match(p);if((null==y?void 0:y.length)&&y.find((function(t){return t=="{{".concat(e,"}}")||t=="@".concat(e)}))){a=!0;break}}return a},executeFilter:function(t){return t.hasOwnProperty("originalValue")||(t.originalValue=t.value),t.converter&&t.converterCode?t.value=Pe(t.converterCode,t.originalValue):t.value=t.originalValue,t},getShareTree:function(t,e){try{var n={},r=[],i=[];return he(t,(function(t){var a,o,s,l=null===(a=null==t?void 0:t.tmpData)||void 0===a?void 0:a.source;if(jr(l,e,t,n),null===(s=null===(o=null==t?void 0:t.tmpData)||void 0===o?void 0:o.actions)||void 0===s?void 0:s.length){var u=t.tmpData.actions.map((function(t){return t.eventType}));Oe({types:u,element:t,actions:r,events:i})}})),n}catch(t){return console.error(t),{}}},hasVar:function(t,e,n){var r,i,a,o,s=e[null==e?void 0:e.type],l=null==e?void 0:e.converse,u=!1;if(l&&l.use&&l.data.length)for(var c=0,h=l.data;c<h.length;c++){var d=h[c];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 u=!0}return(null==s?void 0:s.inputSql)&&(u=Lr(null==s?void 0:s.inputSql,n)),(null==s?void 0:s.url)&&(u=Lr(s.url,n)),(null==s?void 0:s.headers)&&(null===(i=null==s?void 0:s.headers)||void 0===i?void 0:i.use)&&(null===(a=null==s?void 0:s.headers)||void 0===a?void 0:a.value)&&(u=Lr(null===(o=null==s?void 0:s.headers)||void 0===o?void 0:o.value,n)),(null==s?void 0:s.params)&&(u=Lr(null==s?void 0:s.params,n)),u},isJSON:zr,getStandardData:function(t,e){return void 0===e&&(e=!1),e?zr(t)?t:JSON.stringify(t):zr(t)?JSON.parse(t):t},screenshot:function(t){return f(void 0,void 0,void 0,(function(){var e,n,r,i,a,o,s,l;return p(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,a=t.type,o=void 0,Gi(n)&&Gi(r)?[4,Ki(n,r,e,i||.5)]:[3,5];case 1:return(s=u.sent())&&200==s.status&&s.data?(o=s.data,[3,4]):[3,2];case 2:return console.warn("截取错误,请检查网络或服务地址配置是否正确,已转换为dom-to-img."),[4,Zi(e,i||.5)];case 3:o=u.sent(),u.label=4;case 4:return[3,7];case 5:return console.warn("地址错误,请检查传入的地址是否争取,已转换为dom-to-img."),[4,Zi(e,i||.5)];case 6:o=u.sent(),u.label=7;case 7:return o?[4,$i(o,a)]:[3,9];case 8:return[2,u.sent()];case 9:return[2,null];case 10:return[3,12];case 11:return l=u.sent(),console.error("截图发生错误:"+l),[2,null];case 12:return[2]}}))}))},toHex:Xi,toHexString:Ji,toRgbString:Qi,toRgbaString:ta,parseHexColor:ea,parseRgbaColor:na,parseColorString:ra,getColorInfo:function(t){var e=ra(t);return{hex:Ji(e),rgba:ta(e),rgb:Qi(e),rgbaObj:e}},hexToRgba:function(t){var e=ra(t);return ta(e)},rgbaToHex:function(t){var e=ra(t);return Ji(e)},watchError:function(t,e){t.config.errorHandler=function(t){console.error("监测到E1002错误"),console.error(t.filename),aa("E1002",t.name+":"+t.message,e)},window.addEventListener("error",(function(t){t.message?(console.error("监测到E1003错误"),aa("E1003",t.message,t.filename,e)):(console.error("监测到E1004错误"),aa("E1004",t.target.currentSrc,t.filename,e))}),!0)},errorHandler:aa});function ua(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ca(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
|
|
32
|
+
(n=Qt).mode.CTRGladman=function(){var t=n.lib.BlockCipherMode.extend();function e(t){if(255==(t>>24&255)){var e=t>>16&255,n=t>>8&255,r=255&t;255===e?(e=0,255===n?(n=0,255===r?r=0:++r):++n):++e,t=0,t+=e<<16,t+=n<<8,t+=r}else t+=1<<24;return t}function r(t){return 0===(t[0]=e(t[0]))&&(t[1]=e(t[1])),t}var i=t.Encryptor=t.extend({processBlock:function(t,e){var n=this._cipher,i=n.blockSize,a=this._iv,o=this._counter;a&&(o=this._counter=a.slice(0),this._iv=void 0),r(o);var s=o.slice(0);n.encryptBlock(s,0);for(var l=0;l<i;l++)t[e+l]^=s[l]}});return t.Decryptor=i,t}(),n.mode.CTRGladman)})),l((function(t,e){var n,r,i;t.exports=((i=Qt).mode.OFB=(n=i.lib.BlockCipherMode.extend(),r=n.Encryptor=n.extend({processBlock:function(t,e){var n=this._cipher,r=n.blockSize,i=this._iv,a=this._keystream;i&&(a=this._keystream=i.slice(0),this._iv=void 0),n.encryptBlock(a,0);for(var o=0;o<r;o++)t[e+o]^=a[o]}}),n.Decryptor=r,n),i.mode.OFB)})),l((function(t,e){var n,r;t.exports=((r=Qt).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)})),l((function(t,e){var n;t.exports=((n=Qt).pad.AnsiX923={pad:function(t,e){var n=t.sigBytes,r=4*e,i=r-n%r,a=n+i-1;t.clamp(),t.words[a>>>2]|=i<<24-a%4*8,t.sigBytes+=i},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},n.pad.Ansix923)})),l((function(t,e){var n;t.exports=((n=Qt).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)})),l((function(t,e){var n;t.exports=((n=Qt).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)})),l((function(t,e){var n;t.exports=((n=Qt).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)})),l((function(t,e){var n;t.exports=((n=Qt).pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding)})),l((function(t,e){var n;t.exports=(n=Qt,function(t){var e=n,r=e.lib.CipherParams,i=e.enc.Hex;e.format.Hex={stringify:function(t){return t.ciphertext.toString(i)},parse:function(t){var e=i.parse(t);return r.create({ciphertext:e})}}}(),n.format.Hex)})),l((function(t,e){var n;t.exports=(n=Qt,function(){var t=n,e=t.lib.BlockCipher,r=t.algo,i=[],a=[],o=[],s=[],l=[],u=[],c=[],h=[],d=[],f=[];!function(){for(var t=[],e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;var n=0,r=0;for(e=0;e<256;e++){var p=r^r<<1^r<<2^r<<3^r<<4;p=p>>>8^255&p^99,i[n]=p,a[p]=n;var v=t[n],g=t[v],m=t[g],y=257*t[p]^16843008*p;o[n]=y<<24|y>>>8,s[n]=y<<16|y>>>16,l[n]=y<<8|y>>>24,u[n]=y,y=16843009*m^65537*g^257*v^16843008*n,c[p]=y<<24|y>>>8,h[p]=y<<16|y>>>16,d[p]=y<<8|y>>>24,f[p]=y,n?(n=v^t[t[t[m^v]]],r^=t[t[r]]):n=r=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],v=r.AES=e.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,e=t.words,n=t.sigBytes/4,r=4*((this._nRounds=n+6)+1),a=this._keySchedule=[],o=0;o<r;o++)o<n?a[o]=e[o]:(u=a[o-1],o%n?n>6&&o%n==4&&(u=i[u>>>24]<<24|i[u>>>16&255]<<16|i[u>>>8&255]<<8|i[255&u]):(u=i[(u=u<<8|u>>>24)>>>24]<<24|i[u>>>16&255]<<16|i[u>>>8&255]<<8|i[255&u],u^=p[o/n|0]<<24),a[o]=a[o-n]^u);for(var s=this._invKeySchedule=[],l=0;l<r;l++){if(o=r-l,l%4)var u=a[o];else u=a[o-4];s[l]=l<4||o<=4?u:c[i[u>>>24]]^h[i[u>>>16&255]]^d[i[u>>>8&255]]^f[i[255&u]]}}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,o,s,l,u,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,c,h,d,f,a),n=t[e+1],t[e+1]=t[e+3],t[e+3]=n},_doCryptBlock:function(t,e,n,r,i,a,o,s){for(var l=this._nRounds,u=t[e]^n[0],c=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 v=r[u>>>24]^i[c>>>16&255]^a[h>>>8&255]^o[255&d]^n[f++],g=r[c>>>24]^i[h>>>16&255]^a[d>>>8&255]^o[255&u]^n[f++],m=r[h>>>24]^i[d>>>16&255]^a[u>>>8&255]^o[255&c]^n[f++],y=r[d>>>24]^i[u>>>16&255]^a[c>>>8&255]^o[255&h]^n[f++];u=v,c=g,h=m,d=y}v=(s[u>>>24]<<24|s[c>>>16&255]<<16|s[h>>>8&255]<<8|s[255&d])^n[f++],g=(s[c>>>24]<<24|s[h>>>16&255]<<16|s[d>>>8&255]<<8|s[255&u])^n[f++],m=(s[h>>>24]<<24|s[d>>>16&255]<<16|s[u>>>8&255]<<8|s[255&c])^n[f++],y=(s[d>>>24]<<24|s[u>>>16&255]<<16|s[c>>>8&255]<<8|s[255&h])^n[f++],t[e]=v,t[e+1]=g,t[e+2]=m,t[e+3]=y},keySize:8});t.AES=e._createHelper(v)}(),n.AES)})),l((function(t,e){var n;t.exports=(n=Qt,function(){var t=n,e=t.lib,r=e.WordArray,i=e.BlockCipher,a=t.algo,o=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],u=[{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}],c=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=a.DES=i.extend({_doReset:function(){for(var t=this._key.words,e=[],n=0;n<56;n++){var r=o[n]-1;e[n]=t[r>>>5]>>>31-r%32&1}for(var i=this._subKeys=[],a=0;a<16;a++){var u=i[a]=[],c=l[a];for(n=0;n<24;n++)u[n/6|0]|=e[(s[n]-1+c)%28]<<31-n%6,u[4+(n/6|0)]|=e[28+(s[n+24]-1+c)%28]<<31-n%6;for(u[0]=u[0]<<1|u[0]>>>31,n=1;n<7;n++)u[n]=u[n]>>>4*(n-1)+3;u[7]=u[7]<<5|u[7]>>>27}var h=this._invSubKeys=[];for(n=0;n<16;n++)h[n]=i[15-n]},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._subKeys)},decryptBlock:function(t,e){this._doCryptBlock(t,e,this._invSubKeys)},_doCryptBlock:function(t,e,n){this._lBlock=t[e],this._rBlock=t[e+1],d.call(this,4,252645135),d.call(this,16,65535),f.call(this,2,858993459),f.call(this,8,16711935),d.call(this,1,1431655765);for(var r=0;r<16;r++){for(var i=n[r],a=this._lBlock,o=this._rBlock,s=0,l=0;l<8;l++)s|=u[l][((o^i[l])&c[l])>>>0];this._lBlock=o,this._rBlock=a^s}var h=this._lBlock;this._lBlock=this._rBlock,this._rBlock=h,d.call(this,1,1431655765),f.call(this,8,16711935),f.call(this,2,858993459),d.call(this,16,65535),d.call(this,4,252645135),t[e]=this._lBlock,t[e+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function d(t,e){var n=(this._lBlock>>>t^this._rBlock)&e;this._rBlock^=n,this._lBlock^=n<<t}function f(t,e){var n=(this._rBlock>>>t^this._lBlock)&e;this._lBlock^=n,this._rBlock^=n<<t}t.DES=i._createHelper(h);var p=a.TripleDES=i.extend({_doReset:function(){var t=this._key.words;if(2!==t.length&&4!==t.length&&t.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var e=t.slice(0,2),n=t.length<4?t.slice(0,2):t.slice(2,4),i=t.length<6?t.slice(0,2):t.slice(4,6);this._des1=h.createEncryptor(r.create(e)),this._des2=h.createEncryptor(r.create(n)),this._des3=h.createEncryptor(r.create(i))},encryptBlock:function(t,e){this._des1.encryptBlock(t,e),this._des2.decryptBlock(t,e),this._des3.encryptBlock(t,e)},decryptBlock:function(t,e){this._des3.decryptBlock(t,e),this._des2.encryptBlock(t,e),this._des1.decryptBlock(t,e)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=i._createHelper(p)}(),n.TripleDES)})),l((function(t,e){var n;t.exports=(n=Qt,function(){var t=n,e=t.lib.StreamCipher,r=t.algo,i=r.RC4=e.extend({_doReset:function(){for(var t=this._key,e=t.words,n=t.sigBytes,r=this._S=[],i=0;i<256;i++)r[i]=i;i=0;for(var a=0;i<256;i++){var o=i%n,s=e[o>>>2]>>>24-o%4*8&255;a=(a+r[i]+s)%256;var l=r[i];r[i]=r[a],r[a]=l}this._i=this._j=0},_doProcessBlock:function(t,e){t[e]^=a.call(this)},keySize:8,ivSize:0});function a(){for(var t=this._S,e=this._i,n=this._j,r=0,i=0;i<4;i++){n=(n+t[e=(e+1)%256])%256;var a=t[e];t[e]=t[n],t[n]=a,r|=t[(t[e]+t[n])%256]<<24-8*i}return this._i=e,this._j=n,r}t.RC4=e._createHelper(i);var o=r.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)a.call(this)}});t.RC4Drop=e._createHelper(o)}(),n.RC4)})),l((function(t,e){var n;t.exports=(n=Qt,function(){var t=n,e=t.lib.StreamCipher,r=t.algo,i=[],a=[],o=[],s=r.Rabbit=e.extend({_doReset:function(){for(var t=this._key.words,e=this.cfg.iv,n=0;n<4;n++)t[n]=16711935&(t[n]<<8|t[n]>>>24)|4278255360&(t[n]<<24|t[n]>>>8);var r=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],i=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];for(this._b=0,n=0;n<4;n++)l.call(this);for(n=0;n<8;n++)i[n]^=r[n+4&7];if(e){var a=e.words,o=a[0],s=a[1],u=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=u>>>16|4294901760&c,d=c<<16|65535&u;for(i[0]^=u,i[1]^=h,i[2]^=c,i[3]^=d,i[4]^=u,i[5]^=h,i[6]^=c,i[7]^=d,n=0;n<4;n++)l.call(this)}},_doProcessBlock:function(t,e){var n=this._X;l.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)i[r]=16711935&(i[r]<<8|i[r]>>>24)|4278255360&(i[r]<<24|i[r]>>>8),t[e+r]^=i[r]},blockSize:4,ivSize:2});function l(){for(var t=this._X,e=this._C,n=0;n<8;n++)a[n]=e[n];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<a[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<a[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<a[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<a[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<a[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<a[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<a[6]>>>0?1:0)|0,this._b=e[7]>>>0<a[7]>>>0?1:0,n=0;n<8;n++){var r=t[n]+e[n],i=65535&r,s=r>>>16,l=((i*i>>>17)+i*s>>>15)+s*s,u=((4294901760&r)*r|0)+((65535&r)*r|0);o[n]=l^u}t[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,t[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,t[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,t[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,t[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,t[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,t[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,t[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}t.Rabbit=e._createHelper(s)}(),n.Rabbit)})),l((function(t,e){var n;t.exports=(n=Qt,function(){var t=n,e=t.lib.StreamCipher,r=t.algo,i=[],a=[],o=[],s=r.RabbitLegacy=e.extend({_doReset:function(){var t=this._key.words,e=this.cfg.iv,n=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],r=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var i=0;i<4;i++)l.call(this);for(i=0;i<8;i++)r[i]^=n[i+4&7];if(e){var a=e.words,o=a[0],s=a[1],u=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=u>>>16|4294901760&c,d=c<<16|65535&u;for(r[0]^=u,r[1]^=h,r[2]^=c,r[3]^=d,r[4]^=u,r[5]^=h,r[6]^=c,r[7]^=d,i=0;i<4;i++)l.call(this)}},_doProcessBlock:function(t,e){var n=this._X;l.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)i[r]=16711935&(i[r]<<8|i[r]>>>24)|4278255360&(i[r]<<24|i[r]>>>8),t[e+r]^=i[r]},blockSize:4,ivSize:2});function l(){for(var t=this._X,e=this._C,n=0;n<8;n++)a[n]=e[n];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<a[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<a[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<a[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<a[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<a[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<a[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<a[6]>>>0?1:0)|0,this._b=e[7]>>>0<a[7]>>>0?1:0,n=0;n<8;n++){var r=t[n]+e[n],i=65535&r,s=r>>>16,l=((i*i>>>17)+i*s>>>15)+s*s,u=((4294901760&r)*r|0)+((65535&r)*r|0);o[n]=l^u}t[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,t[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,t[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,t[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,t[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,t[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,t[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,t[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}t.RabbitLegacy=e._createHelper(s)}(),n.RabbitLegacy)})),l((function(t,e){var n;t.exports=(n=Qt,function(){var t=n,e=t.lib.BlockCipher,r=t.algo;const i=16,a=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],o=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var s={pbox:[],sbox:[]};function l(t,e){let n=e>>24&255,r=e>>16&255,i=e>>8&255,a=255&e,o=t.sbox[0][n]+t.sbox[1][r];return o^=t.sbox[2][i],o+=t.sbox[3][a],o}function u(t,e,n){let r,a=e,o=n;for(let e=0;e<i;++e)a^=t.pbox[e],o=l(t,a)^o,r=a,a=o,o=r;return r=a,a=o,o=r,o^=t.pbox[i],a^=t.pbox[i+1],{left:a,right:o}}function c(t,e,n){let r,a=e,o=n;for(let e=i+1;e>1;--e)a^=t.pbox[e],o=l(t,a)^o,r=a,a=o,o=r;return r=a,a=o,o=r,o^=t.pbox[1],a^=t.pbox[0],{left:a,right:o}}function h(t,e,n){for(let e=0;e<4;e++){t.sbox[e]=[];for(let n=0;n<256;n++)t.sbox[e][n]=o[e][n]}let r=0;for(let o=0;o<i+2;o++)t.pbox[o]=a[o]^e[r],r++,r>=n&&(r=0);let s=0,l=0,c=0;for(let e=0;e<i+2;e+=2)c=u(t,s,l),s=c.left,l=c.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)c=u(t,s,l),s=c.left,l=c.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=u(s,t[e],t[e+1]);t[e]=n.left,t[e+1]=n.right},decryptBlock:function(t,e){var n=c(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)})),l((function(t,e){t.exports=Qt})));var ee=function(t,e){try{var n=e.xRatio,r=e.yRatio;return isNaN(n)||isNaN(r)?(console.error("发生错误:on updataSizeDeep in go-code "),t):(t.forEach((function(t){var i;t.baseData.left=t.baseData.left*n,t.baseData.width=t.baseData.width*n,t.baseData.top=t.baseData.top*r,t.baseData.height=t.baseData.height*r,t.baseData.angle=t.baseData.angle,(null===(i=null==t?void 0:t.children)||void 0===i?void 0:i.length)&&ee(null==t?void 0:t.children,e)})),t)}catch(e){return t}},ne=function(t,e){var n=!0;try{for(var r=0,i=["width","height","left","top","opacity","angel","skewY","skewX","rotateX","rotateY"];r<i.length;r++){var a=i[r];if(Object.hasOwn(t,a)&&isNaN(t[a])){if(!("string"==typeof t[a]&&t[a].includes("%")||"NaN"==t[a])){console.warn(a+"--参数校验不合法:"+e),n=!1;break}n=!0}}return n}catch(t){return console.warn("参数校验不合法:"+e),!1}},re=function(t,e,n){var r=t[n];return t.splice(n,1),t.splice(e,0,r),t},ie=function(t,e,n){var r=i.default.findIndex(t,(function(t){return t.cid==n})),a=i.default.findIndex(t,(function(t){return t.cid==e}));return re(t,a,r)},ae=function(t,e,n){for(var r=-1,i=0;i<t.length;i++){var a=t[i];if(a.children&&a.children.length)for(var o=0;o<a.children.length;o++){if(r=o,a.children[o].cid===n){switch(e){case"up":r>=1&&re(a.children,r-1,r);break;case"down":r<a.children.length-2&&re(a.children,r+1,r);break;case"top":0!==r&&re(a.children,0,r);break;case"bottom":var s=a.children.length-1;r!==s&&re(a.children,s,r)}break}}}return t},oe=function(t,e,n){var r=!1,a=function(t){for(var o=0;o<t.length;o++){if(t[o].cid==e){r=t[o],n&&i.default.remove(t,(function(t){return t.cid==e}));break}if(t[o].children)a(t[o].children);else if(t[o].dynamicChildren){if(t[o].dynamicChildren instanceof Map){for(var s=Array.from(t[o].dynamicChildren),l=0;l<s.length;l++)if(s[l]instanceof Array){var u=s[l][1];a(u)}}else if(t[o].dynamicChildren instanceof Array)for(s=t[o].dynamicChildren,l=0;l<s.length;l++)if(s[l]instanceof Array){u=s[l][1];a(u)}}else t[o].stateChildren&&a(t[o].stateChildren)}};return a(t),r||!1},se=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},le=function(t,e){var n=null,r=function(t,i){for(var a=0,o=t;a<o.length;a++){var s=o[a];if(s.cid==e){n=i;break}if(s.children)r(s.children,s);else if(s.dynamicChildren)if(s.dynamicChildren instanceof Map){for(var l=Array.from(s.dynamicChildren),u=0;u<l.length;u++)if(l[u]instanceof Array){var c=l[u][1];r(c,s)}}else s.dynamicChildren;else s.stateChildren&&r(s.stateChildren,s)}};return r(t,null),n||!1},ue=function(t,e,n){for(var r,i=function(i){var a=t[i];if(a.cid===e)return r=a,n&&t.splice(i,1),{value:r};if(a.children&&a.children.length){for(var o=0;o<a.children.length;o++)if(a.children[o].cid===e)return r=a.children[o],n&&a.children.splice(o,1),{value:r}}else if(a.stateChildren&&a.stateChildren.length){for(o=0;o<a.stateChildren.length;o++)if(a.stateChildren[o].cid===e)return r=a.stateChildren[o],n&&a.stateChildren.splice(o,1),{value:r}}else if(a.dynamicChildren){var s=void 0;if(a.dynamicChildren instanceof Map?s=a.dynamicChildren.get(a.activeDynamic):a.dynamicChildren instanceof Array&&(s=a.dynamicChildren.find((function(t){return t[0]==a.activeDynamic}))[1]),s)for(o=0;o<s.length;o++)if(s[o].cid===e)return r=s[o],n&&s.splice(o,1),{value:r}}},a=0;a<t.length;a++){var o=i(a);if("object"==typeof o)return o.value}return!!r},ce=function(t,e,n){var r=ue(t,e),i=ue(t,n);return r.pid&&i.pid||!r.pid&&!i.pid},he=function(t,e){var n=function(t){for(var r,i,a,o=0,s=t;o<s.length;o++){var l=s[o],u=null===(a=null===(i=null===(r=null==l?void 0:l.tmpData)||void 0===r?void 0:r.source)||void 0===i?void 0:i.converse)||void 0===a?void 0:a.data;if(null==u?void 0:u.length)for(var c=0,h=u;c<h.length;c++){var d=h[c];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)},de=function(t){var e=t.length,n=function(t,e){for(var r=function(r){var i=t[r];if(i&&i.children&&i.children.length){var a=i.children.length;n(i.children,a)}else if(i&&i.dynamicChildren){var o=i.dynamicChildren.length;Array.from(i.dynamicChildren).forEach((function(t,e){n(t[1],o)}))}i.z=10*e-r},i=0;i<t.length;i++)r(i)};n(t,e)},fe=function(t){var e=function(t,n){for(var r=function(r){var i=t[r],a=Ee();n?i.pid=n:i.drag||(i.baseData.left=0,i.baseData.top=0),i.cid=a,i&&i.children&&i.children.length?e(i.children,a):i&&i.dynamicChildren&&Array.from(i.dynamicChildren).forEach((function(t,n){e(t[1],a)}))},i=0;i<t.length;i++)r(i)};e(t)},pe=function(t,e,n,r){try{if(!t||!t.hasOwnProperty(e)&&!t.hasOwnProperty(r))throw"The property you want to modify is not found. Please check whether the attribute ".concat(e," is entered correctly!");if(r){i.default.cloneDeep(t[r][e]);t[r][e]=n}else t[e]=n}catch(t){console.error(t)}},ve=function(t,e){var n;try{var r="tmpData";if(!t||!(null===(n=t[r])||void 0===n?void 0:n.hasOwnProperty("option")))throw new Error("The property you want to modify is not found. Please check whether the attribute 'option' is entered correctly!");var a=i.default.cloneDeep(t[r].option),o={};Object.assign(o,a,e),console.log(o,a,"newOP"),t[r].option=o}catch(t){console.error(new Error("An error occurred: ".concat(t)))}},ge=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}))},ye=function(t,e){var n=i.default.cloneDeep(t),r=[];return n.children&&n.children.length&&n.children.forEach((function(t){var i=e&&(null==n?void 0:n.pid)?oe(e,n.pid):null;be(t,n,i),r.push(t)})),r},be=function(t,e,n){var r=function(t,e,n){var r=t.baseData.left,i=t.baseData.top,a=e;if(r+=a.baseData.left,i+=a.baseData.top,n){if(n.baseData.angle){var o=n.baseData.angle*Math.PI/180,s=Math.cos(o),l=Math.sin(o),u=r*l+i*s;r=r*s-i*l,i=u}n.baseData.scale&&(r*=n.baseData.scale.x,i*=n.baseData.scale.y)}return{left:r,top:i}}(t,e,n),i=r.left,a=r.top;t.baseData.left=i,t.baseData.top=a},_e=function(t,e){t.baseData.left=t.baseData.left+e.left,t.baseData.top=t.baseData.top+e.top},we=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},De=function(t,e){var n=i.default.cloneDeep(t),r=[],a=function(t,e){var n=oe(t,e);r.push(n.baseData),n.pid&&a(t,n.pid)};a(n,e);var o={left:0,top:0};return r.map((function(t){t&&(o.left+=t.left,o.top+=t.top)})),o},Se=function(t,e,n){var r=t.slice();return n||(r=i.default.cloneDeep(t)),r.length>1&&r.sort((function(t,n){return t.baseData[e]-n.baseData[e]})),r},xe=function(t,e){var n=[];return t.map((function(t){var r=e.find((function(e){return e.cid===t}));r&&n.push(r)})),Te(n)},Te=function(t,e){if(t.length>0){var n={left:0,top:0,width:0,height:0},r=Se(t,"left",e),i=Se(t,"top",e),a=r[0].baseData,o=r[r.length-1].baseData,s=i[0].baseData,l=i[i.length-1].baseData,u=Math.max.apply(Math,i.map((function(t){return 1*t.baseData.top+1*t.baseData.height}))),c=Math.max.apply(Math,i.map((function(t){return 1*t.baseData.left+1*t.baseData.width})));return n.left=a.left,n.width=Math.max(1*o.left+1*o.width,c)-1*a.left,n.top=s.top,n.height=Math.max(1*l.top+1*l.height,u)-1*s.top,n}return{left:0,top:0,width:0,height:0}},ke=function(t,e,n,r){var a=t.children,o=i.default.cloneDeep(e),s=i.default.cloneDeep(Te(a,r)),l=o.left,u=o.top;o.width,o.height;var c=s.left,h=s.top,d=s.width,f=s.height,p={left:l+c,top:u+h,width:d,height:f,angle:e.angle?e.angle:0};return a.forEach((function(t){var e=i.default.cloneDeep(t.baseData);t.baseData.left<0?e.left=0:e.left=e.left-c,t.baseData.top<0?e.top=0:e.top=e.top-h,t.baseData=e})),t.baseData=p,t.children=a,p},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){for(var n=t.types,r=t.element,i=t.actions,a=t.events,o=t.eventsComs,s=function(t){var e=n[t],s=r.tmpData.actions[t];if(s&&s.use){o&&o.push(r.cid);var l=s[s.behave];if(!l)return"continue";"vars"===s.behave?l.map((function(t){t.type=e,t.id=r.cid,t.model=0,t.originalValue||(t.originalValue=t.value),t.mapField&&i.push(t)})):l.length>0&&l.forEach((function(t,n){"toggle"===s.behave&&""!==t.value&&t.value.length&&a.push({id:r.cid,type:s.behave,children:t.value.map((function(t){return{cid:t.cid,visible:t.visible}})),eventType:e,index:n}),"update"===s.behave&&""!==t.value&&t.value.length?a.push({id:r.cid,type:s.behave,children:t.value.map((function(t){return{cid:t.cid,visible:t.visible}})),eventType:e,index:n}):"link"===s.behave&&""!==t.value?a.push({id:r.cid,type:s.behave,link:t.value,eventType:e,target:t.target,index:n}):"page"===s.behave&&""!==t.value?a.push({id:r.cid,type:s.behave,page:t.value,params:t.params,eventType:e,index:n}):"dynamic"===s.behave&&""!==t.value&&t.value.length>0?a.push({id:r.cid,type:s.behave,dynamic:t.value,eventType:e,index:n}):a.push(void 0)}))}},l=0;l<n.length;l++)s(l)}var Ae="anov@2019:helloX",Me="anov@2020:helloX";function Pe(t,e){var n=fi.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 Ve={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}},Re=function(t){var e;try{var n=[];if((null==t?void 0:t.dynamicChildren)instanceof Map)for(var r=Array.from(null==t?void 0:t.dynamicChildren),i=0;i<r.length;i++)r[i]instanceof Array&&n.push.apply(n,r[i][1]);else if((null==t?void 0:t.dynamicChildren)instanceof Array)for(r=null==t?void 0:t.dynamicChildren,i=0;i<r.length;i++)r[i]instanceof Array&&n.push.apply(n,r[i][1]);if(null==n?void 0:n.length)for(var a=0,o=n;a<o.length;a++){var s=o[a];if(s){var l=null===(e=null==s?void 0:s.tmpData)||void 0===e?void 0:e.source,u=l.type;l&&"packData"==u&&(s.tmpData.source.packData.data=t.source[0])}}}catch(t){console.log(t)}},Ne=Object.defineProperty,Be=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,Fe=Object.prototype.propertyIsEnumerable,je=(t,e,n)=>e in t?Ne(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Le=(t,e)=>{for(var n in e||(e={}))Ie.call(e,n)&&je(t,n,e[n]);if(Be)for(var n of Be(e))Fe.call(e,n)&&je(t,n,e[n]);return t},Ye=Symbol.for("immer-nothing"),ze=Symbol.for("immer-draftable"),Ue=Symbol.for("immer-state"),He="production"!==q.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 Ge(t,...e){if("production"!==q.env.NODE_ENV){const n=He[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 qe=Object.getPrototypeOf;function We(t){return!!t&&!!t[Ue]}function $e(t){var e;return!!t&&(Ze(t)||Array.isArray(t)||!!t[ze]||!!(null==(e=t.constructor)?void 0:e[ze])||en(t)||nn(t))}var Ke=Object.prototype.constructor.toString();function Ze(t){if(!t||"object"!=typeof t)return!1;const e=qe(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)===Ke}function Xe(t,e){0===Je(t)?Object.entries(t).forEach((([n,r])=>{e(n,r,t)})):t.forEach(((n,r)=>e(r,n,t)))}function Je(t){const e=t[Ue];return e?e.type_:Array.isArray(t)?1:en(t)?2:nn(t)?3:0}function Qe(t,e){return 2===Je(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function tn(t,e,n){const r=Je(t);2===r?t.set(e,n):3===r?t.add(n):t[e]=n}function en(t){return t instanceof Map}function nn(t){return t instanceof Set}function rn(t){return t.copy_||t.base_}function an(t,e){if(en(t))return new Map(t);if(nn(t))return new Set(t);if(Array.isArray(t))return Array.prototype.slice.call(t);if(!e&&Ze(t)){if(!qe(t)){const e=Object.create(null);return Object.assign(e,t)}return Le({},t)}const n=Object.getOwnPropertyDescriptors(t);delete n[Ue];let r=Reflect.ownKeys(n);for(let e=0;e<r.length;e++){const i=r[e],a=n[i];!1===a.writable&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(n[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[i]})}return Object.create(qe(t),n)}function on(t,e=!1){return ln(t)||We(t)||!$e(t)||(Je(t)>1&&(t.set=t.add=t.clear=t.delete=sn),Object.freeze(t),e&&Xe(t,((t,e)=>on(e,!0)))),t}function sn(){Ge(2)}function ln(t){return Object.isFrozen(t)}var un,cn={};function hn(t){const e=cn[t];return e||Ge(0,t),e}function dn(){return un}function fn(t,e){e&&(hn("Patches"),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function pn(t){vn(t),t.drafts_.forEach(mn),t.drafts_=null}function vn(t){t===un&&(un=t.parent_)}function gn(t){return un={drafts_:[],parent_:un,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function mn(t){const e=t[Ue];0===e.type_||1===e.type_?e.revoke_():e.revoked_=!0}function yn(t,e){e.unfinalizedDrafts_=e.drafts_.length;const n=e.drafts_[0];return void 0!==t&&t!==n?(n[Ue].modified_&&(pn(e),Ge(4)),$e(t)&&(t=bn(e,t),e.parent_||wn(e,t)),e.patches_&&hn("Patches").generateReplacementPatches_(n[Ue].base_,t,e.patches_,e.inversePatches_)):t=bn(e,n,[]),pn(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==Ye?t:void 0}function bn(t,e,n){if(ln(e))return e;const r=e[Ue];if(!r)return Xe(e,((i,a)=>_n(t,r,e,i,a,n))),e;if(r.scope_!==t)return e;if(!r.modified_)return wn(t,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const e=r.copy_;let i=e,a=!1;3===r.type_&&(i=new Set(e),e.clear(),a=!0),Xe(i,((i,o)=>_n(t,r,e,i,o,n,a))),wn(t,e,!1),n&&t.patches_&&hn("Patches").generatePatches_(r,n,t.patches_,t.inversePatches_)}return r.copy_}function _n(t,e,n,r,i,a,o){if("production"!==q.env.NODE_ENV&&i===n&&Ge(5),We(i)){const o=bn(t,i,a&&e&&3!==e.type_&&!Qe(e.assigned_,r)?a.concat(r):void 0);if(tn(n,r,o),!We(o))return;t.canAutoFreeze_=!1}else o&&n.add(i);if($e(i)&&!ln(i)){if(!t.immer_.autoFreeze_&&t.unfinalizedDrafts_<1)return;bn(t,i),e&&e.scope_.parent_||wn(t,i)}}function wn(t,e,n=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&on(e,n)}var Dn={get(t,e){if(e===Ue)return t;const n=rn(t);if(!Qe(n,e))return function(t,e,n){var r;const i=Tn(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_||!$e(r)?r:r===xn(t.base_,e)?(Cn(t),t.copy_[e]=En(r,t)):r},has:(t,e)=>e in rn(t),ownKeys:t=>Reflect.ownKeys(rn(t)),set(t,e,n){const r=Tn(rn(t),e);if(null==r?void 0:r.set)return r.set.call(t.draft_,n),!0;if(!t.modified_){const r=xn(rn(t),e),i=null==r?void 0:r[Ue];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||Qe(t.base_,e)))return!0;Cn(t),kn(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!==xn(t.base_,e)||e in t.base_?(t.assigned_[e]=!1,Cn(t),kn(t)):delete t.assigned_[e],t.copy_&&delete t.copy_[e],!0),getOwnPropertyDescriptor(t,e){const n=rn(t),r=Reflect.getOwnPropertyDescriptor(n,e);return r?{writable:!0,configurable:1!==t.type_||"length"!==e,enumerable:r.enumerable,value:n[e]}:r},defineProperty(){Ge(11)},getPrototypeOf:t=>qe(t.base_),setPrototypeOf(){Ge(12)}},Sn={};function xn(t,e){const n=t[Ue];return(n?rn(n):t)[e]}function Tn(t,e){if(!(e in t))return;let n=qe(t);for(;n;){const t=Object.getOwnPropertyDescriptor(n,e);if(t)return t;n=qe(n)}}function kn(t){t.modified_||(t.modified_=!0,t.parent_&&kn(t.parent_))}function Cn(t){t.copy_||(t.copy_=an(t.base_,t.scope_.immer_.useStrictShallowCopy_))}Xe(Dn,((t,e)=>{Sn[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Sn.deleteProperty=function(t,e){return"production"!==q.env.NODE_ENV&&isNaN(parseInt(e))&&Ge(13),Sn.set.call(this,t,e,void 0)},Sn.set=function(t,e,n){return"production"!==q.env.NODE_ENV&&"length"!==e&&isNaN(parseInt(e))&&Ge(14),Dn.set.call(this,t[0],e,n,t[0])};function En(t,e){const n=en(t)?hn("MapSet").proxyMap_(t,e):nn(t)?hn("MapSet").proxySet_(t,e):function(t,e){const n=Array.isArray(t),r={type_:n?1:0,scope_:e?e.scope_:dn(),modified_:!1,finalized_:!1,assigned_:{},parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,a=Dn;n&&(i=[r],a=Sn);const{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,s}(t,e);return(e?e.scope_:dn()).drafts_.push(n),n}function On(t){if(!$e(t)||ln(t))return t;const e=t[Ue];let n;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,n=an(t,e.scope_.immer_.useStrictShallowCopy_)}else n=an(t,!0);return Xe(n,((t,e)=>{tn(n,t,On(e))})),e&&(e.finalized_=!1),n}var An=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&&Ge(6),void 0!==n&&"function"!=typeof n&&Ge(7),$e(t)){const i=gn(this),a=En(t,void 0);let o=!0;try{r=e(a),o=!1}finally{o?pn(i):vn(i)}return fn(i,n),yn(r,i)}if(!t||"object"!=typeof t){if(r=e(t),void 0===r&&(r=t),r===Ye&&(r=void 0),this.autoFreeze_&&on(r,!0),n){const e=[],i=[];hn("Patches").generateReplacementPatches_(t,r,e,i),n(e,i)}return r}Ge(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){$e(t)||Ge(8),We(t)&&(t=function(t){We(t)||Ge(10,t);return On(t)}(t));const e=gn(this),n=En(t,void 0);return n[Ue].isManual_=!0,vn(e),n}finishDraft(t,e){const n=t&&t[Ue];n&&n.isManual_||Ge(9);const{scope_:r}=n;return fn(r,e),yn(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=hn("Patches").applyPatches_;return We(t)?r(t,e):this.produce(t,(t=>r(t,e)))}},Mn=An.produce;An.produceWithPatches.bind(An);var Pn=An.setAutoFreeze.bind(An);function Vn(t,e){return Pn(!1),Mn(t,e)}An.setUseStrictShallowCopy.bind(An),An.applyPatches.bind(An),An.createDraft.bind(An),An.finishDraft.bind(An);var Rn={updataArea:function(t,e){t.currentArea=e},selectdArea:function(t,e){var n=xe(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),ne(e.data.baseData,"updataBaseData")){var i=e.ratio,a=oe(t.list,r.cid),o=e.oldData;if("object"!=typeof a||a.pid){if("object"==typeof a&&a.pid){var s=oe(t.list,a.pid);"object"==typeof s?(a.baseData.left<0&&(a.baseData.left=0),a.baseData.top<0&&(a.baseData.top=0),Object.assign(a.baseData,r.baseData),ke(s,s.baseData),t.groupFlag=!t.groupFlag):s||(a.baseData.left<0&&(a.baseData.left=0),a.baseData.top<0&&(a.baseData.top=0),Object.assign(a.baseData,r.baseData))}}else if(Object.assign(a.baseData,r.baseData),i&&a.children&&a.children.length>0){var l=a.baseData.width/o.width,u=a.baseData.height/o.height;ee(a.children,{xRatio:l,yRatio:u})}}},multipleUpdataBaseData:function(t,e){if(e.ratio)for(var n=e.newData,r=e.oldData,a=n.width/r.width,o=n.height/r.height,s=t.cache.length;s--;)t.cache[s].baseData.left=t.cache[s].baseData.left*a,t.cache[s].baseData.width=t.cache[s].baseData.width*a,t.cache[s].baseData.top=t.cache[s].baseData.top*o,t.cache[s].baseData.height=t.cache[s].baseData.height*o;else for(s=t.cache.length;s--;){var l=i.default.cloneDeep(t.cache[s].baseData);l.left=l.left+e.deltaX,l.top=l.top+e.deltaY,t.cache[s].comPanel?t.cache[s].comPanel.setAttrData(Object.assign(l,e.baseData)):t.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 a=t.list.filter((function(t){return n.includes(t.cid)}));0==a.length&&(a=[oe(t.list,n[0])]);for(var o=0;o<a.length;o++){var s=a[o];if(s.pid&&t.selectd.length>1)return void console.warn("Only one component can be moved within a group");if("up"===r?s.baseData.top=s.baseData.top-i:"down"===r?s.baseData.top+=i:"left"===r?s.baseData.left-=i:"right"===r&&(s.baseData.left+=i),"object"==typeof s&&s.pid){var l=oe(t.list,s.pid);"object"==typeof l&&(ke(l,l.baseData),t.groupFlag=!t.groupFlag)}}}else console.warn("Warning! please select the component to move.")},updataGroupBaseData:function(t,e){var n=oe(t.list,e.pid),r=i.default.cloneDeep(n);oe(n.children,e.cid),ke(n,r.baseData)},editGroupBaseData:function(t,e){var n=oe(t.list,e);n.children.forEach((function(t){_e(t,n.baseData)}))},syncBaseData:function(t,e){var n=e.cid,r=e.data,a=e.isContainer;console.time("syncBaseData");var o=function(t){for(var e=0;e<t.length;e++)n===t[e].cid?t[e].baseData=Object.assign({},t[e].baseData,r):t[e].hasOwnProperty("children")&&o(t[e].children)},s=Vn(t.list,(function(t){void 0!==a&&t.length&&o(t)}));if(a)t.list=s;else{var l=oe(s,n);if(l){var u=i.default.cloneDeep(l.baseData),c=Object.assign({},l.baseData,r);this.commit("GoCom/updataBaseData",{data:{cid:n,baseData:c},oldData:u,ratio:!0})}}console.timeEnd("syncBaseData")},updataItemData:function(t,e){var n=e.cid,r=e.propsName,i=e.propsValue,a=oe(t.list,n);a&&(a[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)}};function Nn(t,e,n,r){return new(n||(n=Promise))((function(i,a){function o(t){try{l(r.next(t))}catch(t){a(t)}}function s(t){try{l(r.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}l((r=r.apply(t,e||[])).next())}))}"function"==typeof SuppressedError&&SuppressedError;const Bn=5e3,In=5e3,Fn=(t="",e)=>{let n=a.default.create({baseURL:t,timeout:Bn,headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"}});return n.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)})),n.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)})),n};function jn(t,e=!1){return e?Ln(t)?t:JSON.stringify(t):Ln(t)?JSON.parse(t):t}const Ln=t=>{if("string"==typeof t)try{const e=JSON.parse(t);return"object"==typeof e&&null!==e}catch(t){return!1}return!1},Yn=(t,e)=>{try{const n=JSON.stringify(e);sessionStorage.setItem(t,n)}catch(e){console.error(`Error setting session data for key ${t}:`,e)}},zn=t=>{const e=sessionStorage.getItem(t);if(e)try{return JSON.parse(e)}catch(e){console.error(`Error parsing session data for key ${t}:`,e)}return null},Un=t=>{for(const e of t)e.code&&(e.code=e.code.replace(/>/g,">").replace(/</g,"<"))},Hn=(t,e)=>{t instanceof Map?t.forEach((t=>{e([t])})):Array.isArray(t)&&t.forEach((t=>{e(t.children)}))},Gn=(t,e)=>{const n=t=>{var r,i,a;if(t)for(const o of t){const t=null===(a=null===(i=null===(r=null==o?void 0:o.tmpData)||void 0===r?void 0:r.source)||void 0===i?void 0:i.converse)||void 0===a?void 0:a.data;(null==t?void 0:t.length)&&Un(t),e(o),o.children?n(o.children):o.dynamicChildren?Hn(o.dynamicChildren,n):o.stateChildren&&n(o.stateChildren)}};n(t)},qn=(t,e,n,r)=>{const i=t.match(/({{[\w]*}})|((@)[\w]*)/gm);if(i){const t=i.map((t=>t.replace(/{{|}}|@/gm,"")));for(const i of t)if(i&&e&&!(e.findIndex((t=>t.mapField===i))<0))return n&&r&&Wn(r,i,n.cid),!0}return!1},Wn=(t,e,n)=>{if(!t)throw new Error("Share variable tree is not defined");if("string"!=typeof e)throw new Error("Variable name should be a string");if(!n)throw new Error("ID is required");Array.isArray(t[e])||(t[e]=[]),t[e].includes(n)||t[e].push(n)},$n=(t,e,n)=>{var r;let i=!1;const a=null==e?void 0:e.converse;if(a&&a.use&&a.data.length)for(const e of a.data)if((null==e?void 0:e.dependVars)&&e.dependVars.includes(t))return!0;const o=null==e?void 0:e[null==e?void 0:e.type];return((null==o?void 0:o.inputSql)||(null==o?void 0:o.url)||(null==o?void 0:o.headers)||(null==o?void 0:o.params))&&(i=qn(o.inputSql||o.url||(null===(r=o.headers)||void 0===r?void 0:r.value)||o.params,n)),i},Kn=(t,e,n=!1)=>{let r=null;const a=t=>{for(const o of t){if(o.cid===e){r=o,n&&i.default.remove(t,(t=>t.cid===e));break}if(o.children&&a(o.children),o.dynamicChildren&&Array.isArray(o.dynamicChildren))for(const[,t]of Array.from(o.dynamicChildren))a(t);o.stateChildren&&a(o.stateChildren)}};return a(t),r};function Zn(t,e){let n=i.default.cloneDeep(e);try{return new Function("data",t)(n)}catch(t){return console.error(t),n}}function Xn(t){let e=te.enc.Utf8.parse("anov@2019:helloX"),n=te.enc.Utf8.parse("anov@2020:helloX");return te.AES.encrypt(t,e,{iv:n,mode:te.mode.CBC,padding:te.pad.Pkcs7}).toString()}const Jn=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"]),Qn=URL.createObjectURL(Jn);function tr(t,e,n={},r="worker"){return Nn(this,void 0,void 0,(function*(){try{if("window"==r){let[r,i]=[["data"],[e]];"object"==typeof n&&Object.keys(n).forEach((t=>{r.push(t),i.push(n[t])}));return{success:!0,data:new Function(...r,t)(...i)}}{let[r,i,a]=[e,n,""];"object"==typeof r&&(r=JSON.stringify(e)),"object"==typeof n&&(i=JSON.stringify(n)),Object.keys(n).forEach((t=>a+=`${t},`));let o=`let data=eval(${r}); \n let app=${JSON.stringify({})};`;o+=a?`let {${a}} = eval(${i}); `:"",o+=`${t}`;let s=yield function(t,e=5e3){return Nn(this,void 0,void 0,(function*(){let n=new Worker(Qn);return new Promise(((r,i)=>{const a=()=>{clearTimeout(s),n.removeEventListener("message",o),n.terminate(),n=null},o=t=>{let{code:e,result:n,err:o}=t.data;a(),1===e?r(n):i(o)};n.postMessage({code:t}),n.addEventListener("message",o);let s=setTimeout((()=>{a(),i("timeout")}),e)}))}))}(o);return{success:!0,data:s}}}catch(t){return{success:!1,error:t,data:e}}}))}var er,nr,rr,ir,ar;(ar=er||(er={})).StaticFile="staticFile",ar.DataSource="datasource",function(t){t.json="application/json;charset=UTF-8",t.form="application/x-www-form-urlencoded; charset=UTF-8"}(nr||(nr={})),function(t){t.get="GET",t.post="POST",t.put="PUT",t.patch="PATCH",t.delete="DELETE"}(rr||(rr={}));class or{constructor(t){this.db=null,this.dbName=t.databaseName,this.tableName=t.tableName,this.keyPath=t.keyPath}static getInstance(t){return or.instance||(or.instance=new or(t)),or.instance}init(){return Nn(this,void 0,void 0,(function*(){return new Promise(((t,e)=>{const n=indexedDB.open(this.dbName,1);n.onerror=t=>{e(t.target.error)},n.onupgradeneeded=t=>{this.db=t.target.result,this.db.objectStoreNames.contains(this.tableName)||this.db.createObjectStore(this.tableName,{keyPath:this.keyPath})},n.onsuccess=e=>{this.db=e.target.result,t()}}))}))}addRecord(t){return Nn(this,void 0,void 0,(function*(){if(!this.db)throw new Error("数据库未初始化。");return new Promise(((e,n)=>{const r=this.db.transaction([this.tableName],"readwrite").objectStore(this.tableName).add(t);r.onsuccess=()=>{e()},r.onerror=t=>{n(t.target.error)}}))}))}deleteRecord(t){return Nn(this,void 0,void 0,(function*(){if(!this.db)throw new Error("数据库未初始化。");return new Promise(((e,n)=>{const r=this.db.transaction([this.tableName],"readwrite").objectStore(this.tableName).delete(t);r.onsuccess=()=>{e()},r.onerror=t=>{n(t.target.error)}}))}))}updateRecord(t){return Nn(this,void 0,void 0,(function*(){if(!this.db)throw new Error("数据库未初始化。");return new Promise(((e,n)=>{const r=this.db.transaction([this.tableName],"readwrite").objectStore(this.tableName).put(t);r.onsuccess=()=>{e()},r.onerror=t=>{n(t.target.error)}}))}))}getRecord(t){return Nn(this,void 0,void 0,(function*(){if(!this.db)throw new Error("数据库未初始化。");return new Promise(((e,n)=>{const r=this.db.transaction([this.tableName],"readonly").objectStore(this.tableName).get(t);r.onsuccess=()=>{e(r.result)},r.onerror=t=>{n(t.target.error)}}))}))}getAllRecords(){return Nn(this,void 0,void 0,(function*(){if(!this.db)throw new Error("数据库未初始化。");return new Promise(((t,e)=>{const n=this.db.transaction([this.tableName],"readonly").objectStore(this.tableName).getAll();n.onsuccess=()=>{t(n.result)},n.onerror=t=>{e(t.target.error)}}))}))}}or.instance=null,function(t){t[t.FATAL=0]="FATAL",t[t.ERROR=1]="ERROR",t[t.WARN=2]="WARN",t[t.INFO=3]="INFO",t[t.DEBUG=4]="DEBUG",t[t.TRACE=5]="TRACE"}(ir||(ir={}));const sr={databaseName:"GODB",tableName:"go-log",keyPath:"time"};class lr{constructor(){this.logLevel=ir.INFO,this.indexedDBInstance=or.getInstance(sr);try{this.indexedDBInstance.init(),console.log("IndexedDB 初始化成功。")}catch(t){console.error("初始化 IndexedDB 时出错:",t)}}static getInstance(){return lr.instance||(lr.instance=new lr),lr.instance}setLogLevel(t){this.logLevel=t}getColor(t){switch(t){case ir.FATAL:return"[31;1m";case ir.ERROR:return"[31m";case ir.WARN:return"[33m";case ir.INFO:return"[32m";case ir.DEBUG:return"[36m";case ir.TRACE:return"[34m";default:return"[0m"}}log(t,e){if(e<=this.logLevel){const n=(new Date).toISOString(),r=`[${n}] [${ir[e]}]`,i=this.getColor(e);if(null===window||void 0===window?void 0:window.goDev)console.log(`${i}${r} ${t}[0m`);else{let e=zn("anov-go-userInfo"),a=zn("anov-go-proid"),o=` [操作人:${null==e?void 0:e.userName} 项目ID:${a}] `;const s={time:n,value:`${t}`};try{this.indexedDBInstance.addRecord(s)}catch(t){console.error("添加记录时出错:",t)}console.log(`${i}${r} ${o} ${t}[0m`)}}}fatal(t){this.log(t,ir.FATAL)}error(t){this.log(t,ir.ERROR)}warn(t){this.log(t,ir.WARN)}info(t){this.log(t,ir.INFO)}debug(t){this.log(t,ir.DEBUG)}trace(t){this.log(t,ir.TRACE)}}const ur=lr.getInstance(),cr=Fn();let hr=Fn();function dr(t,e="get",n={},r={}){return Nn(this,void 0,void 0,(function*(){try{const a={method:rr[e],url:t,headers:r,timeout:In};return["post","put"].includes(e.toLowerCase())?a.data=i.default.cloneDeep(n):a.params=i.default.cloneDeep(n),/.json$/.test(t)?function(t){return Nn(this,void 0,void 0,(function*(){try{return(yield cr({method:"get",url:t})).data}catch(t){throw console.error("JSON 数据请求:",t),t}}))}(t):function(t){return Nn(this,void 0,void 0,(function*(){try{return{code:2e4,data:(yield cr(t)).data}}catch(t){throw console.error("请求数据发生错误-Error:",t),t}}))}(a)}catch(t){throw console.error("获取数据:Error:",t),t}}))}function fr(t,e,n,r){return Nn(this,void 0,void 0,(function*(){try{const i=(window.anUrl||"")+(window.agentPath||"/ds/v1/api-proxy/v1/query"),a=jn(n,!0);return yield cr({url:i,method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:{body:"post"===t?a:void 0,headers:Ln(r)?JSON.parse(r):r,method:t,url:e}})}catch(t){throw console.error("代理请求数据:Error:",t),t}}))}function pr(t,e,n,r,i){return Nn(this,void 0,void 0,(function*(){return i?fr(e,t,n,r):dr(t,e,n,r)}))}function vr(t,e="",n){var r,i,a;const o=`${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=${kr("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 s={};try{s=e?JSON.parse(e):{}}catch(t){s=e||{}}return cr({method:"POST",url:o,data:{headers:n,param:s},timeout:Bn})}const gr=(t,e)=>Nn(void 0,void 0,void 0,(function*(){const n=window.BaseUrl,{dateType:r="",endPeriod:i="",metricsName:a=t,startPeriod:o=""}=e;return hr({method:"GET",url:`${n}ds/v1/metrics/v1/data-alarm?dateType=${r}&endPeriod=${i}&metricsName=${a}&startPeriod=${o}`,timeout:Bn})})),mr=(t,e,n)=>Nn(void 0,void 0,void 0,(function*(){var r;const i=(null===(r=window.BaseUrl)||void 0===r?void 0:r.replace("/management",""))||"";e.newEncryption=!0;const a={staticFile:{method:"get",params:e,url:`${i}/ds/v1/file/v1/${t}/query`},datasource:{method:"post",url:`${i}/ds/v1/database/v1/${t}/query`,data:Object.assign({},e)}}[n];if(!a)throw new Error("Invalid data type provided");return cr(Object.assign({timeout:Bn},a))})),yr=t=>new Promise(((e,n)=>{let r;r=t.originData&&Object.keys(t.originData).length?t.originData:t.data,void 0!==r?e({data:r}):n("Failed to retrieve cdata")})),br=(t,e,n)=>{try{switch(e){case"api":{let e=Er(t,n);return{requestType:e.requestType,url:e.url,params:e.params,headers:e.headers,agency:e.agency}}case"static":return{data:t};case"datasource":{const e=Cr(t.inputSql,n);return{dsName:t.dsName,dsType:"1",sql:Xn(e),filter:t.sqlFilter}}case"staticFile":return{dsName:t.dsName,dsType:t.dsType,sql:""};case"indicator":return{zbId:t.zbId,params:t.params,headers:t.headers};case"indicatorCQ":return{zbName:t.zbName,params:t.params};case"packData":return{};default:throw new Error("Invalid type")}}catch(e){console.log("准备请求数据发生错误",e,t)}},_r=(t,e)=>Nn(void 0,void 0,void 0,(function*(){try{switch(e){case"api":return yield pr(t.url,t.requestType,t.params,t.headers,t.agency);case"static":return yield yr(t.data);case"datasource":return yield mr(t.dsName,{dsType:t.dsType,sql:t.sql,filter:t.filter},"datasource");case"staticFile":return yield mr(t.dsName,{dsType:t.dsType,sql:t.sql},"staticFile");case"indicator":return yield vr(t.zbId,t.params,t.headers);case"indicatorCQ":return yield gr(t.zbName,t.params);case"packData":return{};default:throw new Error("Invalid type")}}catch(t){return console.warn(t,"执行请求并获取数据发生错误"),yield new Promise(((t,e)=>{t({error:!0})}))}})),wr=(t,e,n,r=[],i=!1)=>Nn(void 0,void 0,void 0,(function*(){const a=e||t.tmpData.source.dataType,o=t.tmpData.source["indicatorCQ"==a?"indicator":a];if("globalData"===a){const t=r.find((t=>t.key===o.id||t.key===o.key)),e=zn(o.id);if(e&&!i)return e.data;if(t){let e=yield Dr(t,n),r={key:o.id,data:e};return Yn(o.id,r),e}return}const s=br(o,a,n),l=yield _r(s,a);return(null==l?void 0:l.data)?l.data:l})),Dr=(t,e)=>Nn(void 0,void 0,void 0,(function*(){let n=Object.assign({},{tmpData:{source:t.value}});const r=n.tmpData.source.type,i=n.tmpData.source[r],a=br(i,r,e),o=yield _r(a,r);return yield Sr(o.data,n,!0,e)})),Sr=(t,e,n=!0,r)=>Nn(void 0,void 0,void 0,(function*(){try{const{converse:a,mapFields:o}=e.tmpData.source;return a&&a.use&&n?yield new Promise(((e,n)=>{const o=function(t,e,n,r,a){return Nn(this,void 0,void 0,(function*(){let n,a=t,{use:o,data:s}=i.default.cloneDeep(e);if(o)for(let t=0;t<s.length;t++)if(s[t].use){let e=s[t].dependVars,o={};r&&o&&e&&e.length&&e.map((t=>{let e=i.default.cloneDeep(r).filter((e=>{let n=e.mapField==t;return n&&(o[t]=e.value),n}));e&&0!=e.length||(o[t]="")})),n=yield tr(s[t].code,a,o,s[t].mode?s[t].mode:"worker"),a=n.data}return a}))}(t,a,0,r);e(o)})):yield new Promise(((e,n)=>{e(t)}))}catch(e){return console.error("执行过滤器发生错误:"+e),yield new Promise(((e,n)=>{e(t)}))}})),xr=(t,e,n)=>{const{source:r}=t.tmpData,i=r.type;n?("static"===i&&r[i]&&(r[i].originData=n),"indicatorCQ"===i?r.indicator.data=e:r[i].data=e):"indicatorCQ"===i?r.indicator.data=e:r[i].data=e,t.source=e},Tr=(t,e,n=[],r,i,a)=>Nn(void 0,void 0,void 0,(function*(){try{let o=t.tmpData.source.type,s=yield wr(t,o,n,r,a||!1);if(null==s||!s)return i&&i({error:!0}),Promise.resolve({error:!0});let l=yield Sr(s,t,e,n);return xr(t,l),i&&i(l),Promise.resolve(l)}catch(t){return i&&i(t),ur.error("Error in updateComData"),console.error("Error in updateComData:",t),Promise.reject(t)}})),kr=t=>{const e={};if(t&&t.includes("?")){const n=t.split("?")[1].split("&");for(let t of n){const[n,r]=t.split("=").map(decodeURIComponent);e[n]=r}}return e},Cr=(t,e)=>{if(!e)return t;if("string"==typeof t)return""===t.trim()?"":t.replace(/@(\w+)|{{(\w+)}}/g,((t,n,r)=>{const i=n||r,a=e.find((t=>t.mapField===i));return a?a.value||a.originalValue||"":t}));if(Array.isArray(t))return t.map((t=>Cr(t,e)));if("object"==typeof t&&null!==t){const n={};for(let r in t)n[r]=Cr(t[r],e);return n}return t},Er=(t,e)=>{const n=t.agency,r=t,{url:i=null,headers:a,params:o,requestType:s}=r,l=i?Cr(i,e):void 0,u=a&&a.use?Cr(a.value,e):{};return{url:l,requestType:s,params:o?Cr(o,e):{},headers:u,agency:n}},Or=(t,e,n,r,i)=>Nn(void 0,void 0,void 0,(function*(){if(t&&t.length)for(const a of t)$n(e,a.value,n)&&(yield Tr({tmpData:{source:{type:"globalData",globalData:{id:a.key}}}},!0,n,t,(t=>{console.log("数据更新成功-变量改变全局数据跟新")}),!0),Gn(r,(e=>{var r,o,s;"globalData"===(null===(o=null===(r=null==e?void 0:e.tmpData)||void 0===r?void 0:r.source)||void 0===o?void 0:o.type)&&(null===(s=null==e?void 0:e.tmpData)||void 0===s?void 0:s.source.globalData).id===a.key&&Tr(e,!0,n,t,(t=>{i(e,t)}),!1)})))})),Ar=(t,e,n,r,i)=>Nn(void 0,void 0,void 0,(function*(){t&&(yield Tr({tmpData:{source:{type:"globalData",globalData:{id:t.key}}}},!0,e,n,(t=>{console.log("数据更新成功-数据源编辑")}),!0),Gn(r,(r=>{var a,o,s;"globalData"===(null===(o=null===(a=null==r?void 0:r.tmpData)||void 0===a?void 0:a.source)||void 0===o?void 0:o.type)&&(null===(s=null==r?void 0:r.tmpData)||void 0===s?void 0:s.source.globalData).id===t.key&&Tr(r,!0,e,n,(t=>{i(r,t)}),!1)})))}));class Mr{constructor(t,e){this.isUpdating=!1,this.des=t.des,this.field=t.field,this.id=t.id,this.key=t.key,this.mapping=t.mapping,this.mapField=t.mapField,this.type=t.type,this.originalValue=t.originalValue,this.model=(null==t?void 0:t.model)?null==t?void 0:t.model:1,this.converter=t.converter,this.converterCode=t.converterCode,this.fork=t.fork,this.delayUpdate=!!(null==t?void 0:t.delayUpdate),e&&(this.globalVariables=e),t.fork&&(this.model=5,this.forkValue=t.forkValue,this.originalValue=this.getForkedValue())}get value(){return this.fork&&(this.originalValue=this.getForkedValue()),this.converter&&this.converterCode?Zn(this.converterCode,this.originalValue):this.originalValue}getForkedValue(){if(this.forkValue&&Array.isArray(this.forkValue))return this.forkValue.map((t=>{const e=this.globalVariables.get(t);return e?e.value:null}));if(this.forkValue){const t=this.globalVariables.get(this.forkValue);return t?t.value:null}return null}updateValue(t,n){var r;const i=Object.assign({},this,t);this.des=i.des,this.field=i.field,this.mapping=i.mapping,this.type=i.type,this.originalValue=i.originalValue,this.converter=i.converter,this.converterCode=i.converterCode,this.fork=i.fork,this.delayUpdate=null==i?void 0:i.delayUpdate,this.model=null==i?void 0:i.model,t.id&&(this.id?"string"==typeof this.id?t.id instanceof Array?this.id=e.uniq([this.id,...t.id]):this.id=[this.id,t.id]:this.id instanceof Array&&(t.id instanceof Array?this.id=e.uniq([...this.id,...t.id]):this.id=e.uniq([...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 Mr(t,e)}}class Pr{constructor(){this.variables=new Map,this.globalObservers=[],this.url=window.location.search,this.list=[]}clearVars(){this.list=[],this.variables.clear()}static getInstance(){return Pr.instance||(Pr.instance=new Pr),Pr.instance}getFullUrl(){this.url=window.location.search}getAllUrlParams(){const t=new URLSearchParams(window.location.search),e={};for(const[n,r]of t.entries())e[n]=r;return e}addUrlParamsToGlobalVars(){this.getFullUrl();let t=this.getAllUrlParams(),e=Object.keys(t),n=[];for(const r of e)n.push({mapField:r,originalValue:t[r],model:4});if(n.length)for(const t of n)this.addVariable(t)}addVariables(t){Array.isArray(t)?t.map(((t,e)=>{this.addVariable(t)})):this.addVariable(t),this.addUrlParamsToGlobalVars()}addVariable(t,e){if(!t||!(null==t?void 0:t.mapField))return console.error(t+"参数不合法!"),!1;if(this.isVariableNameExist(t.mapField)){console.warn("变量名已存在");let n=this.getVariable(t.mapField);return this.sameValue(n,t)?n:(this.editVariable(t,e),!1)}const n=Mr.create(t,this.variables);return this.variables.set(n.mapField,n),this.addToObjectArray(this.list,n),e&&e(n),this.notifyGlobalObservers(n),n}toJSON(t){try{return!!t&&JSON.stringify(t)}catch(t){return!1}}sameValue(t,e){if(t.mapfield!==e.mapfield)return!1;for(const n in e)if(!(["mapfield","field","key","value","name","globalVariables"].includes(n)||n in t&&t[n]==e[n]))return!1;return!0}creatVarJson(t){const{des:e,field:n,id:r,key:i,mapping:a,mapField:o,type:s,value:l,originalValue:u,model:c,converter:h,converterCode:d,fork:f,forkValue:p,update:v,delayUpdate:g}=t,m={};return void 0!==e&&(m.des=e),void 0!==n&&(m.field=n),void 0!==r&&(m.id=r),void 0!==i&&(m.key=i),void 0!==a&&(m.mapping=a),void 0!==o&&(m.mapField=o),void 0!==s&&(m.type=s),void 0!==l&&(m.value=l),void 0!==u&&(m.originalValue=u),void 0!==c&&(m.model=c),void 0!==h&&(m.converter=h),void 0!==d&&(m.converterCode=d),void 0!==f&&(m.fork=f),void 0!==p&&(m.forkValue=p),void 0!==v&&(m.update=v),void 0!==g&&(m.delayUpdate=g),m}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=>{if(!t.isUpdating){t.isUpdating=!0,this.notifyGlobalObservers(t);const n=this.isMapFieldInForkValues(t.mapField);console.log(n,"mapFieldsmapFields"),n.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)}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(t){var e;let n=[];for(const[,r]of this.variables)(r.id===t||(null===(e=r.id)||void 0===e?void 0:e.includes(t)))&&n.push(r);return n}getAllVariables(t=!1){return t?(this.list=Array.from(this.variables.values()),this.list):[...this.list]}restoreVariables(t){t.forEach((t=>{this.addVariable(t)}))}registerGlobalObserver(t){this.globalObservers.push(t)}notifyGlobalObservers(t){this.globalObservers.forEach((e=>{e.update(t)}))}}Pr.instance=null;const Vr=Pr.getInstance(),Rr=(t,e)=>Array.isArray(e)?e.some((e=>t&&(void 0!==t[e]||t.hasOwnProperty(e)))):"string"==typeof e&&t&&(void 0!==t[e]||t.hasOwnProperty(e)),Nr=(t,e,n,r)=>{const i=((t,e,n,r)=>{var i;let a;if(Rr(t,null==e?void 0:e.field)||Rr(t,null==e?void 0:e.forkValue))a=t[null==e?void 0:e.field]||"";else if(Rr(t.data,null==e?void 0:e.field)||Rr(t.data,null==e?void 0:e.forkValue))a=t.data[null==e?void 0:e.field]||"";else{const t=Kn(n,r),o=(null===(i=null==t?void 0:t.tmpData)||void 0===i?void 0:i.actions)||[];for(const t of o){const n=t.vars.find((t=>(null==t?void 0:t.mapField)===(null==e?void 0:e.mapField)));if(n){a=n.value;break}}}return a})(t,e,n,r);return void 0!==i?i:e.value},Br=(t,e,n,r,i,a,o,s,l)=>{switch(t.type){case"link":window.open(t.link,t.target);break;case"page":l&&l(t);break;case"dynamic":((t,e,n,r,i)=>{const a=t.dynamic||[];for(const o of a){if(t.id!==e.cid)continue;const a=Kn(n,o.pid);a&&(a.activeDynamic=o.name,a.isShow=o.visible||!r||t.index===e.index-1,i({cid:a.cid,flag:o.visible}))}})(t,e,n,r,i);break;case"toggle":((t,e,n,r,i)=>{const a=t.children||[];for(const n of a){const a=n.visible&&(!r||t.index===e.index-1);i({cid:n.cid,flag:a})}})(t,e,0,r,i);break;case"update":((t,e,n,r,i)=>{const a=t.children||[];for(const t of a){const a=Kn(e,t.cid);a&&Tr(a,!0,n,r,(t=>{i({cid:a.cid,data:t})}))}})(t,n,a,o,s)}},Ir=(t,e,n,r,i,a,o,s,l,u)=>{const{cid:c,actions:h,index:d}=i,{eventName:f,mode:p}=h,v=2===p;((t,e,n,r,i,a)=>{let o=Vr.getVariableForId(e.cid);if(null==o?void 0:o.length)for(const s of o)if(s.type==t){let t=Nr(e,s,n,r);Vr.editVariableForValue(s.mapField,t,(()=>{const t=i[s.mapField]||[];a&&a(s,t)}))}})(f,i,r,c,n,((t,e)=>{if(Or(l,t.mapFile,Vr.getAllVariables(),r,((t,e)=>{o({cid:t.cid,data:e})})),null==e?void 0:e.length)for(const n of e){t.eventSourceId=n;const e=Kn(r,n);!(null==t?void 0:t.delayUpdate)&&e&&Tr(e,!0,Vr.getAllVariables(),l,(t=>{o({cid:e.cid,data:t})}))}}));const g=((t,e,n,r,i)=>t.filter((t=>t.id===e&&t.eventType===n&&(!i||parseInt(t.index||"0")+1===parseInt(r||"0")))))(t,c,f,d,v);for(const t of g)Br(t,i,r,v,a,Vr.getAllVariables(),l,o,s)};var Fr=Object.freeze({__proto__:null,GlobalVariables:Pr,Http:(t,e)=>"string"!=typeof t?Promise.reject(new Error("URL should be a string")):Fn(t,e),Log:ur,agentData:fr,editItem:xr,emitEvent:Ir,fetchDataByGlobal:Dr,fetchDataByType:wr,filterData:Sr,findItemDeep:Kn,findItemDeep2:(t,e,n)=>{let r=!1;const a=t=>{for(let o=0;o<t.length;o++){if(t[o].cid==e){r=t[o],n&&i.default.remove(t,(t=>t.cid==e));break}if(t[o].children)a(t[o].children);else if(t[o].dynamicChildren){if(t[o].dynamicChildren instanceof Map){let e=Array.from(t[o].dynamicChildren);for(let t=0;t<e.length;t++)if(e[t]instanceof Array){let n=e[t][1];a(n)}}else if(t[o].dynamicChildren instanceof Array){let e=t[o].dynamicChildren;for(let t=0;t<e.length;t++)if(e[t]instanceof Array){let n=e[t][1];a(n)}}}else t[o].stateChildren&&a(t[o].stateChildren)}};return a(t),r||!1},getData:dr,getDataForApi:pr,getDataForSource:mr,getDataForStatic:yr,getDataForZb:vr,getDataForZbCQ:gr,getSessionData:zn,getStandardData:jn,getStringVars:qn,getVarDefaultVal:Nr,globalVars:Vr,hasVar:$n,isJSON:Ln,recursion:Gn,safeEval:function(t,e,n){const r={};n&&n.forEach((t=>{(null==t?void 0:t.name)&&(r[t.name]=t.value||t.originvalue)}));try{return new Function("data","vars",t)(e,r)}catch(t){return console.error(t),e}},safeEvalForCode:Zn,setSessionData:Yn,updataGlobalDataSourceForVar:Or,updateComData:Tr,updateGlobalDataSource:Ar}),jr=function(t,e,n,r,a){var o;try{var s={},l=[],u=[],c=[],h=i.default.cloneDeep(t);return(null===(o=null===window||void 0===window?void 0:window.go)||void 0===o?void 0:o.dev)&&he(t,(function(t){var e,n,r;if(null===(n=null===(e=null==t?void 0:t.tmpData)||void 0===e?void 0:e.actions)||void 0===n?void 0:n.length)for(var i=0,a=null===(r=null==t?void 0:t.tmpData)||void 0===r?void 0:r.actions;i<a.length;i++){var o=a[i];if("toggle"==o.behave){var s=o.toggle;if(null==s?void 0:s.length)for(var l=0,u=s;l<u.length;l++){var c=u[l],h=c.value;(null==h?void 0:h.length)&&(c.value=c.value.map((function(t){return{cid:t.cid,viewComName:t.viewComName,name:t.name,visible:t.visible}})))}}}})),he(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:u,eventsComs:c})}})),Vr.addVariables(l),l=Vr.getAllVariables(),he(h,(function(t){var e,n=null===(e=null==t?void 0:t.tmpData)||void 0===e?void 0:e.source;Lr(n,l,t,s)})),{shareVariableTree:s,globalVars:Vr.getAllVariables(),globalEvents:u.filter((function(t){return t})),eventsComs:c}}catch(t){return console.error("error",t),{}}},Lr=function(t,e,n,r){var i,a,o;if(t){var s=t[null==t?void 0:t.type],l=null==t?void 0:t.converse;l&&l.use&&l.data.length&&l.data.map((function(t){var e;(null==t?void 0:t.dependVars)&&(null===(e=null==t?void 0:t.dependVars)||void 0===e?void 0:e.length)&&t.dependVars.map((function(t){zr(r,t,n.cid)}))})),(null==s?void 0:s.inputSql)&&Yr(null==s?void 0:s.inputSql,e,n,r),(null==s?void 0:s.url)&&Yr(s.url,e,n,r),(null==s?void 0:s.headers)&&(null===(i=null==s?void 0:s.headers)||void 0===i?void 0:i.use)&&(null===(a=null==s?void 0:s.headers)||void 0===a?void 0:a.value)&&Yr(null===(o=null==s?void 0:s.headers)||void 0===o?void 0:o.value,e,n,r),(null==s?void 0:s.params)&&Yr(null==s?void 0:s.params,e,n,r)}},Yr=function(t,e,n,r){"string"!=typeof t&&(t=JSON.stringify(t));var i=t.match(/({{[\w]*}})|((@)[\w]*)/gm);if(i){var a=i.map((function(t){return t.replace(/{{|}}|@/gm,"")}));if(n)for(var o=function(t){var i=a[t];if(!i||!e||e.findIndex((function(t){return t.mapField===i}))<0)return"continue";n&&r&&zr(r,i,n.cid)},s=0;s<a.length;s++)o(s);else{var l=function(t){var i=a[t];return!i||!e||e.findIndex((function(t){return t.mapField===i}))<0?"continue":(n&&r&&zr(r,i,n.cid),{value:!0})};for(s=0;s<a.length;s++){var u=l(s);if("object"==typeof u)return u.value}}}return!1},zr=function(t,e,n){if(t[e]&&i.default.isArray(t[e])){t[e].push(n);var r=t[e];t[e]=i.default.uniq(r)}else t[e]=[],t[e].push(n)},Ur=function(t){if("string"==typeof t)try{var e=JSON.parse(t);return!("object"!=typeof e||!e)}catch(t){return!1}return!1};var Hr={delListItem:function(t,e){var n=i.default.cloneDeep(t.list);"string"==typeof e?oe(n,e,!0):e.forEach((function(t){oe(n,t,!0)})),t.list=n,t.globalVars=jr(t.list,t.globalConstant,t.sysConst).globalVars},editCloneCache:function(t,e){var n=i.default.cloneDeep(t.cloneCache);n.length&&n.map((function(t){t.baseData=Object.assign({},t.baseData,e)})),t.cloneCache=n},cloneItem:function(t){if(t.selectd.length>0){t.cloneCache=[];for(var e=function(e){var n=oe(t.list,t.selectd[e]);if("boolean"!=typeof n){var r=i.default.cloneDeep(n);if(r.pid="",(null==r?void 0:r.stateChildren)||(null==r?void 0:r.children))((null==r?void 0:r.stateChildren)?null==r?void 0:r.stateChildren:null==r?void 0:r.children).forEach((function(t){var e,n,i,a,o=t.cid;if(t.cid=Ee(),t.pid=r.cid,(null==r?void 0:r.stateChildren)&&(null===(n=null===(e=null==r?void 0:r.tmpData)||void 0===e?void 0:e.option)||void 0===n?void 0:n.children)){var s=null===(a=null===(i=null==r?void 0:r.tmpData)||void 0===i?void 0:i.option)||void 0===a?void 0:a.children.find((function(t){return t.cid==o}));s&&(s.cid=t.cid)}}));t.cloneCache.push(r),window.localStorage.setItem("cloneCache",JSON.stringify(t.cloneCache))}},n=0;n<t.selectd.length;n++)e(n)}},shearItem:function(t,e){if(t.selectd.length>0){t.cloneCache=[];for(var n=0;n<t.selectd.length;n++){var r=oe(t.list,t.selectd[n],!0);if("boolean"!=typeof r){var a=i.default.cloneDeep(r);t.cloneCache.push(a)}}t.selectd=[]}},pasteItem:function(t){var e,n;try{var r=(null===(n=i.default.cloneDeep(t.cloneCache))||void 0===n?void 0:n.length)?i.default.cloneDeep(t.cloneCache):JSON.parse(window.localStorage.getItem("cloneCache"));if(r.length>0){var a=[],o={};he(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 i=0,s=t.stateChildren;i<s.length;i++){s[i].pid=t.cid}if("dynamicComponent"==t.componentType){var l=void 0;t.dynamicChildren instanceof Map?l=t.dynamicChildren.get(t.activeDynamic):t.dynamicChildren instanceof Array&&(l=t.dynamicChildren.find((function(e){return e[0]==t.activeDynamic}))),l.length>1&&(Array.isArray(l[1])?l[1].forEach((function(e){e.pid=t.cid})):l.forEach((function(e){e.pid=t.cid}))),1==l.length&&l.forEach((function(e){e.pid=t.cid}))}a.push(t.cid)})),t.selectd.length>0?xe(t.selectd,t.list):Te(r),r.forEach((function(t){var e,n,r,i;if(t.baseData.top=t.baseData.top+20,t.baseData.left=t.baseData.left+20,t&&t.hasOwnProperty("stateChildren")&&(null===(n=null===(e=null==t?void 0:t.tmpData)||void 0===e?void 0:e.option)||void 0===n?void 0:n.children))for(var a=function(e){e.pid=t.cid;var n=null===(i=null===(r=null==t?void 0:t.tmpData)||void 0===r?void 0:r.option)||void 0===i?void 0:i.children.find((function(t){return t.disName==e.name}));n&&(n.cid=e.cid)},o=0,s=t.stateChildren;o<s.length;o++){a(s[o])}}));try{var s=Object.keys(o),l=JSON.stringify(r);(null==s?void 0:s.length)&&s.forEach((function(t){var e=o[t];-1!==l.indexOf(t)&&(l=l.replaceAll(null==t?void 0:t.toString(),null==e?void 0:e.toString()))})),r=JSON.parse(l)}catch(t){}(e=t.list).unshift.apply(e,i.default.cloneDeep(r)),t.selectd=a}}catch(t){console.warn(t)}},updataShow:function(t,e){var n=oe(t.list,e);if("boolean"!=typeof n){var r=!n.isShow;pe(n,"isShow",r,"")}},changeShow:function(t,e){var n=e.cid,r=e.flag,i=oe(t.list,n);i&&pe(i,"isShow",r,"")},comToggle:function(t,e){var n=oe(t.list,e);n&&ge(n)},updataLock:function(t,e){var n=oe(t.list,e);if("boolean"!=typeof n){var r=!n.isLock;pe(n,"isLock",r,"")}},breakUp:function(t,e){var n,r;try{if(!e)throw"Please pass in the component CID correctly!";var i=le(t.list,e),a=oe(t.list,e),o=a.baseData;if(isNaN(o.left)||isNaN(o.top))throw new Error("top or left is NAN");var s=ye(a,t.list);if(s.map((function(t){return t.pid=""})),i){var l=i.children.findIndex((function(t){return t.cid==e}));i.children.splice(l,1),(n=i.children).push.apply(n,s.reverse())}else{l=t.list.findIndex((function(t){return t.cid==e}));t.list.splice(l,1),(r=t.list).push.apply(r,s.reverse())}}catch(t){console.error(t)}},editGroup:function(t,e){var n,r=e.groupId;e.status;try{if(!r)throw"Please pass in the component CID correctly!";var i=t.list.findIndex((function(t){return t.cid===r})),a=t.list[i],o=ye(a);o.map((function(t){return t.pid=""})),t.list.splice(i,1),(n=t.list).push.apply(n,o)}catch(t){console.error(t)}},combination:function(t){i.default.cloneDeep(t.list);var e,n,r=[],a=[],o=Ee(),s=oe(t.list,t.selectd[0]);s.pid?console.info("Sorry, only level 2 is supported group"):s.children&&1===t.selectd.length?console.info("Sorry, only level 2 is supported group"):(t.selectd.forEach((function(e){var n=t.list.findIndex((function(t){return t.cid===e}));if(n>-1){r.push(n);var i=t.list.splice(n,1)[0];i.pid=o,a.push(i)}})),e=r.sort((function(t,e){return t-e}))[0],n=1===a.length?i.default.cloneDeep(a[0].baseData):t.currentArea,Object.assign(n,{angle:0,opacity:100,rotate:0,rotateY:0}),me(n,a),t.list.splice(e,0,{cid:o,pid:"",isShow:!0,isLock:!1,editer:!1,baseData:n,z:0,toggle:!0,name:"群组",type:"folder",origin:"anov-ui",tmpData:{actions:null,option:null,source:Ve},children:a}),de(t.list),t.selectd=[o])},moveUp:function(t,e){try{var n=t.list.findIndex((function(t){return t.cid===e}));n>=1?re(t.list,n-1,n):ae(t.list,"up",e)}catch(t){console.error(t)}},moveDown:function(t,e){try{var n=t.list.findIndex((function(t){return t.cid===e}));n>-1&&n<=t.list.length-2?re(t.list,n+1,n):ae(t.list,"down",e)}catch(t){console.error(t)}},moveTop:function(t,e){try{var n=t.list.findIndex((function(t){return t.cid===e}));n>-1&&0!==n?re(t.list,0,n):ae(t.list,"top",e)}catch(t){console.error(t)}},moveBottom:function(t,e){try{var n=t.list.findIndex((function(t){return t.cid===e})),r=t.list.length-1;n>-1&&n!==r?re(t.list,r,n):ae(t.list,"bottom",e)}catch(t){console.error(t)}}};function Gr(t){var e=[],n=[];he(i.default.cloneDeep(t),(function(t){var r,i;if(null===(i=null===(r=null==t?void 0:t.tmpData)||void 0===r?void 0:r.actions)||void 0===i?void 0:i.length){var a=t.tmpData.actions.map((function(t){return t.eventType}));Oe({types:a,element:t,actions:e,events:n})}}));var r=n.filter((function(t){return t}));return{actions:e,events:r}}var qr={addGlobalSource:function(t,e){var n=e.name,r=e.value,i=Ee();t.globalSource.push({key:i,name:n,value:r}),Ar({key:i,name:n,value:r},t.globalVars,t.globalSource,t.list,(function(t){console.log(t,22)}))},editGlobalSource:function(t,e){var n=this,r=e.key,i=e.value,a=t.globalSource.find((function(t){return t.key==r}));a&&(a.name=e.name,a.value=i,Ar(a,t.globalVars,t.globalSource,t.list,(function(t,e){n.commit("GoCom/updataSourceForComponent",{cid:t.cid,data:e})})))},delGlobalSource:function(t,e){try{var n=t.globalSource.findIndex((function(t){return t.key===e}));-1!==n&&t.globalSource.splice(n,1)}catch(t){console.error("删除错误",t)}},setSyncFlag:function(t,e){t.syncFlag=e},goUpShareVar:function(t,e){t.shareVariable[e.key]=d({},e)},addGoRunVar:function(t,e){try{var n=jr(t.list,t.globalConstant,t.sysConst);t.globalVars=n.globalVars,t.eventsComs=n.eventsComs}catch(t){console.warn(t)}},copyGoVar:function(t,e){try{for(var n=e.mapField,r=(n.toString().trim(),t.globalConstant.filter((function(t){return t.mapField.includes(n)}))),a=1,o=0;o<r.length;o++)a++;var s="".concat(n," (").concat(a,")"),l=t.globalConstant.find((function(t){return t.mapField==n}));if(n&&l){var u=i.default.cloneDeep(l);u.mapField=s,t.globalConstant.push(u);var c=jr(t.list,t.globalConstant,t.sysConst);t.globalVars=c.globalVars,t.eventsComs=c.eventsComs}}catch(t){console.warn(t)}},delGoVar:function(t,e){try{var n=e.mapField,r=(e.mold,t.globalConstant.filter((function(t){return t.mapField==n})).length);if(!n||!r)throw new Error("删除失败!");var a=i.default.cloneDeep(t.globalConstant);i.default.remove(a,(function(t){return t.mapField==n})),t.globalConstant=a;var o=jr(t.list,t.globalConstant,t.sysConst);t.globalVars=o.globalVars,t.eventsComs=o.eventsComs}catch(t){console.warn(t)}},goDelShareVar:function(t,e){delete t.shareVariable[e]},signal:function(t,e){},goSynchroDataAll:function(t,e){t.list=i.default.cloneDeep(e)},goSynchroDataForOption:function(t,e){if(t){var n=e.cid,r=e.value,i=oe(t.list,n);"boolean"!=typeof i&&i&&ve(i,r)}this.commit("GoCom/execute")},goSynchroData:function(t,e){if(t){var n=e.cid,r=e.attr,a=e.value,o=e.attrModel,s=oe(t.list,n);if("boolean"!=typeof s){if(s&&pe(s,r,a,o),"actions"===r.toLowerCase()){var l=t.list,u=i.default.uniqWith(i.default.concat(Gr(l).actions,Gr(t.caseList).actions),i.default.isEqual),c=i.default.uniqWith(i.default.concat(Gr(l).events,Gr(t.caseList).events),i.default.isEqual);console.log(u,"globalVarsglobalVars"),Vr.addVariables(u),t.globalVars=Vr.getAllVariables(),t.globalEvents=c,t.pages[t.pageIndex]&&(t.pages[t.pageIndex].globalVars=u),t.pages[t.pageIndex]&&(t.pages[t.pageIndex].globalEvents=c)}if("source"===r){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,"")})),v=function(e){var n=p[e];if(!n||!t.globalVars||t.globalVars.findIndex((function(t){return t.mapField===n}))<0)return"continue";if(t.shareVariableTree||(t.shareVariableTree={}),t.shareVariableTree[n]&&i.default.isArray(t.shareVariableTree[n])){t.shareVariableTree[n].push(s.cid);var r=t.shareVariableTree[n];t.shareVariableTree[n]=i.default.uniq(r)}else t.shareVariableTree[n]=[],t.shareVariableTree[n].push(s.cid)},g=0;g<p.length;g++)v(g)}}}}this.commit("GoCom/execute")},goUpdataSysVars:function(t,e){var n={U_CITY:"cityCode",U_COUNTY:"countyCode",U_PROVINCE:"provinceCode",U_PHONE:"userPhone"},r=t.sysConst,i=Object.keys(n);r.map((function(t){if(t.originalValue=t.value,(null==t?void 0:t.name)&&(null==i?void 0:i.includes(t.name))){var r=n[t.name];t.value=e[r],t.originalValue=e[r]}return t})),Vr.addVariables(r)},resetGlobalData:function(t){t.globalVars=t.sysConst,t.globalConstant=[],t.globalSource=[]},updateGlobalRelatedVars:function(t,e){var n=e.run,r=e.gvData;return n.length&&n.forEach((function(t){var e=r.filter((function(e){return e.mapField==t.mapField||e.fork&&e.forkValue==t.mapField}));if(e.length)for(var n=0,i=e;n<i.length;n++){var a=i[n],o=t.value;a.mapField==t.mapField?a.value=o:a.fork&&t.mapField==a.forkValue?(a.converter&&a.converterCode,a.originalValue=o):r.push(t)}})),r}},Wr={updataList:function(t,e){var n=e.cid,r=Vn(e.list,(function(t){var e=oe(t,n),r=e.pid,i=se(t,n),a=function(t){for(var e=0;e<t.length;e++){var n=t[e];ke(n,n.baseData,0,!0)}},o=function(t){return t.reduce((function(t,e){return{left:t.left+e.baseData.left,top:t.top+e.baseData.top}}),{left:0,top:0})},s=function(t,e){void 0===e&&(e=t);for(var n=0;n<t.length;n++){var r=t[n];if(r.children&&Array.isArray(r.children))return 0===r.children.length?(e.splice(n,1),!0):(s(r.children,r.children)&&0===r.children.length&&e.splice(n,1),!0)}};if(i.length>0)if(e.pid=i[0].cid,r){var l=v([oe(t,r)],se(t,r),!0),u=o(l),c=o(i);e.baseData=d(d({},e.baseData),we(e.baseData,u)),e.baseData=d(d({},e.baseData),we(e.baseData,c,1)),a(l),a(i)}else{c=o(i);e.baseData=d(d({},e.baseData),we(e.baseData,c,1)),a(i)}r&&0==i.length&&(e.pid="",function(e,n){var r=se(t,n),i=oe(t,n);if(0===r.length)e.baseData=d(d({},e.baseData),we(e.baseData,i.baseData));else{r=v([i],r,!0);var s=o(r);e.baseData=d(d({},e.baseData),we(e.baseData,s))}a(v([i],r,!0))}(e,r)),s(t),de(t)}));t.list=r},updataListForContrast:function(t,e){var n=e.cid,r=e.list,a=oe(r,n);le(r,n);var o=le(t.list,n);if(!a.pid){a.pid=o.cid;var s=i.default.cloneDeep(a.baseData),l=we(a.baseData,o.baseData,1);Object.assign(a.baseData,l),ke(o,s)}de(t.list)},updateTree:function(t){for(var e=t.list,n=0;n<e.length;n++){var r=e[n];if(r.pid)(s=oe(e,r.pid))&&Object.assign(r.baseData,we(r.baseData,s.baseData));if(r.children)for(var a=0;a<r.children.length;a++){var o=r.children[a];if(o.pid!=r.cid){var s=oe(e,o.pid);if(i.default.cloneDeep(o.baseData),s){Object.assign(o.baseData,we(o.baseData,s.baseData));var l=we(o.baseData,r.baseData,1);Object.assign(o.baseData,l),ke(r,r.baseData)}o.pid=r.cid}}}de(e)}},$r=Sr,Kr=function(t,e,n,r,i,a,o){return void 0===n&&(n=!0),f(void 0,void 0,void 0,(function(){var a;return p(this,(function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,Tr(t,n,e,i,(function(t){r&&r(t)}),o)];case 1:return[2,s.sent()];case 2:return a=s.sent(),r&&r(a),console.log("error:11"+a),[3,3];case 3:return[2]}}))}))},Zr=function(t,e,n,r,i,a){void 0===a&&(a=!0),t&&Tr(t,a,e,[],(function(e){n({cid:t.clientWidth,data:e})}))},Xr=Object.freeze({__proto__:null,Http:function(t,e){return function(t,e){void 0===t&&(t="");var n=a.default.create({baseURL:t,timeout:3e4,headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"}});return n.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)})),n.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)})),n}(t,e)},axios:a.default,getDataForEvaluator:_,filterData:$r,parseSource:function(t,e,n,r,i,a,o,s){void 0===r&&(r=!0);console.log(e,n,r,i,"callback"),Tr(e,r,n,[],(function(t){i(t),"AnContainer"===(null==e?void 0:e.viewComName)&&r&&Re(e)}),s)},updateComData:Kr,autoUpdateComData:function(t,e,n){var r,a,o,s,l,u=null===(r=null==t?void 0:t.tmpData)||void 0===r?void 0:r.source,c=null===(o=null===(a=u[null==u?void 0:u.type])||void 0===a?void 0:a.autoUpdate)||void 0===o?void 0:o.open,h=null===(l=null===(s=u[null==u?void 0:u.type])||void 0===s?void 0:s.autoUpdate)||void 0===l?void 0:l.time;c&&i.default.isNumber(h)&&h>0&&setInterval((function(){Kr(t,e,!0,(function(e){n({cid:t.cid,data:e})}))}),1e3*h)},refreshData:Zr}),Jr=function(t){return f(this,void 0,void 0,(function(){var e,n,r,i,a;return p(this,(function(o){switch(o.label){case 0:return o.trys.push([0,3,,4]),e=t.fontUrl,n=t.fontName,r="__custom_font__",(i=document.getElementById(r))?[3,2]:((i=document.createElement("style")).id=r,[4,(document.head||document.getElementsByTagName("head")[0]).appendChild(i)]);case 1:o.sent(),o.label=2;case 2:return i.innerText+="@font-face{font-family:'".concat(n,"';src:url(").concat(e,");}"),[3,4];case 3:return a=o.sent(),console.warn(a),[3,4];case 4:return[2]}}))}))},Qr=function(t,e,n){return void 0===e&&(e="jspaths"),f(void 0,void 0,void 0,(function(){var r,i;return p(this,(function(a){switch(a.label){case 0:return r="csspaths"===e?"link":"script",i=document.createElement(r),"jspaths"===e?i.defer=!0:i.rel="stylesheet",i.className=e,i.src=t,(n||document.head||document.getElementsByTagName("head")[0]).appendChild(i),[4,new Promise((function(t,e){i.addEventListener("load",t),i.addEventListener("error",t)}))];case 1:return a.sent(),[2]}}))}))},ti=function(t,e){return void 0===e&&(e="jspaths"),f(void 0,void 0,void 0,(function(){var n;return p(this,(function(r){switch(r.label){case 0:return n="fonts"===e?Jr:Qr,[4,Promise.all(t.map((function(t){return n(t)})))];case 1:return r.sent(),[2]}}))}))},ei=function(t){return f(void 0,void 0,void 0,(function(){return p(this,(function(e){switch(e.label){case 0:return t.fonts&&t.fonts.length?[4,ti(t.fonts,"fonts")]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))},ni=function(t){var e=t.jspaths,n=void 0===e?[]:e,r=t.csspaths,a=void 0===r?[]:r,o=t.fonts,s=void 0===o?[]:o;return f(void 0,void 0,void 0,(function(){var t;return p(this,(function(e){switch(e.label){case 0:return t=i.default.uniqBy(s,"fontName"),[4,Promise.all([ti(n,"jspaths"),ti(a,"csspaths"),ti(t,"fonts")])];case 1:return e.sent(),[2]}}))}))},ri=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 ii={reset:function(t){t.selectd=[],t.list=[],t.plant=null,t.tw=null,t.watermark=null,t.endnotes=null,t.globalConstant=[]},setFonts:function(t,e){t.resource.fonts.push({fontName:e.name,fontUrl:e.src}),ei(t.resource)},setCaseInfo:function(t,e){t.caseInfo=e},setPageId:function(t,e){t.pageId=e},pagePush:function(t,e){try{var n=e.type,r=e.value,i=["name","path","id"];if(!i.includes(n))throw new Error("页面跳转错误!".concat(n," 不是一个正确的参数 请填以下参数 ").concat(i.join(",")));if(!r)throw new Error("页面跳转错误!".concat(n," 不是一个正确的参数 请填正确的页面路径或者页面名称"));t.toPage={type:n,value:r}}catch(t){console.warn(t)}},updatComs:function(t,e){var n=this,r=oe(t.list,e);if("boolean"!=typeof r){(null==r?void 0:r.children)&&(null==r||r.children),Kr(r,t.globalVars,!0,(function(t){n.commit("GoCom/updataSourceForComponent",{cid:r.cid,data:t})}),t.globalSource)}},updatComsForVar:function(t,e){var n=t.globalVars.map((function(t){var n,r;if((null===(n=null==t?void 0:t.forkValue)||void 0===n?void 0:n.length)&&(null===(r=null==t?void 0:t.forkValue)||void 0===r?void 0:r.includes(e))||t.forkValue==e)return t.mapField})).filter((function(t){return t})),r=[e];(null==n?void 0:n.length)&&(r=i.default.uniq(v([e],n,!0)));for(var a=[],o=0,s=r;o<s.length;o++){var l=s[o];t.shareVariableTree[l]&&a.push.apply(a,t.shareVariableTree[l])}if(null==a?void 0:a.length)for(var u=0,c=a;u<c.length;u++){var h=c[u];this.commit("GoCom/updatComs",h)}},addConstant:function(t,e){var n=i.default.find(t.constant,{name:e.name});n?Object.assign(n,e):t.constant.push(e)},editConstant:function(t,e){var n=i.default.find(t.constant,{name:e.name});n&&Object.assign(n,e)},delConstant:function(t,e){i.default.remove(t.constant,(function(t){return t.name==e}))},setResource:function(t,e){var n=e.type,r=e.value;t.resource[n]=r,ri(),ni(t.resource)},updataResource:function(t){ri(),ni(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,de(t.list)},saveDynamicChildren:function(t,e){var n=e.cid,r=e.data,i=e.name,a=t.pages[t.pageIndex].list,o=oe(a,n);o&&(o.activeDynamic=i,o.dynamicChildren instanceof Array&&(o.dynamicChildren=new Map(o.dynamicChildren)),o.dynamicChildren.set(i,r))},setTheme:function(t,e){t.theme=e},setPlant:function(t,e){var n=e.attr,r=e.value;t.plant||(t.plant={name:"",theme:null,baseData:{width:1920,height:1080,left:0,top:0},option:null,optionDes:null}),t.plant[n]=r},setPlantHeight:function(t,e){t.plant&&(t.plant.baseData.height=t.plant.baseData.height+e)},reversal:function(t,e){t.undos=[],t.undoRedoPointer=-1;var n=i.default.cloneDeep(e.globalVars);delete e.globalVars,t=Object.assign(t,e),Vr.addVariables(n),t.globalVars=Vr.getAllVariables(),de(t.list)},setComTmp:function(t,e){var n=t.list.find((function(t){return t.cid===e[0]}));n.com=e[1],n.tmp=e[2]},setLoading:function(t,e){var n=e.cid,r=e.flag,i=t.list.find((function(t){return t.cid===n}));i&&(i.loading=r)},setMultiple:function(t,e){t.multiple=e},setCaseList:function(t,e){t.caseList=e},updataComponentForList:function(t,e){var n=e.cid,r=e.data,i=t.list,a=oe(i,n);"boolean"!=typeof a&&Object.assign(a,r)},updataComponentForCaseList:function(t,e){var n=e.cid,r=e.data,i=t.caseList,a=oe(i,n);"boolean"!=typeof a&&Object.assign(a,r)},updataComponent:function(t,e){var n=e.cid,r=e.data,i=t.pages&&t.pages[0]&&t.pages[0].list&&t.pages[0].list.length?t.pages[0].list:t.list,a=oe(i,n);"boolean"!=typeof a&&Object.assign(a,r)},updataArea:function(t,e){t.currentArea.left+=e.deltaX,t.currentArea.top+=e.deltaY},updataSource:function(t,e){var n=e.cid,r=e.data,i=oe(t.list,n);"boolean"!=typeof i&&("indicatorCQ"===i.tmpData.source.type?i.tmpData.source.indicator.data=r:(console.log("更新数据:"+i.cid),i.tmpData.source[i.tmpData.source.type].data=r))},updataSourceForComponent:function(t,e){var n=e.cid,r=e.data;if(t.list.length){var a=oe(t.list,n);"boolean"!=typeof a&&(a.source=i.default.cloneDeep(r))}},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){_e(t.list.find((function(t){return t.cid===e[0]})),e[1])},setSelect:function(t,e){t.cache=[],t.selectd=e instanceof Array?e:[e],t.selectd.length>1&&t.selectd.forEach((function(e){t.cache.push(t.list.find((function(t){return t.cid===e&&"Other.Plant.Normal"!==t.type})))}))},setActive:function(t,e){var n=i.default.cloneDeep(e),r=n.id,a=n.multiple,o=n.origin,s=n.ctr,l=i.default.cloneDeep(t.selectd);if(a){var u=l.includes(r);if(l.length>=1){var c=l.every((function(n){return ce(t.list,n,e.id)}));if(!c)return void console.info("sorry Only sibling elements can be selected!")}u?l.splice(l.findIndex((function(t){return t===r})),1):l.push(r),t.selectd=l}else t.selectd=[r];t.selectd.forEach((function(e){var n=oe(t.list,e);if(n.pid){var r=oe(t.list,n.pid);r&&(r.toggle=!0)}s||(n.toggle=!0)})),t.selectdChangeOrigin=o||""},setCache:function(t){t.cache=[],t.selectd.length>1&&t.selectd.forEach((function(e){t.cache.push(t.list.find((function(t){return t.cid===e})))}))},clearActive:function(t){t.selectd=[]},setMultipleActive:function(t,e){t.selectd=e},syncMenuInfo:function(t){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(t,e){var n=e.com,r=e.isMobile;"MultiStateComponent"!=n.componentType||n.stateChildren||(n.stateChildren=[]),"dynamicComponent"!=n.componentType||n.dynamicChildren||(n.dynamicChildren=new Map,n.activeDynamic="状态1",n.dynamicChildren.set("状态1",[]),n.lines={h:[],v:[]}),r?t.list.push(n):t.list.unshift(n),t.menuList=i.default.cloneDeep(t.list),de(t.list),this.commit("GoCom/execute")},addComsForParent:function(t,e){var n=e.com,r=e.isMobile,a=e.PID;if("MultiStateComponent"!=n.componentType||n.stateChildren||(n.stateChildren=[]),"dynamicComponent"!=n.componentType||n.dynamicChildren||(n.dynamicChildren=new Map,n.activeDynamic="状态1",n.dynamicChildren.set("状态1",[])),a){var o=oe(t.list,a);r?(o.children=[],o.children.push(n)):o.children.unshift(n)}else r?t.list.splice(0,1,n):t.list.unshift(n);t.menuList=i.default.cloneDeep(t.list),de(t.list),this.commit("GoCom/execute")},addMyComs:function(t,e){var n;try{var r=e.data,a=e.shareVariableTree,o=e.globalVars,s=e.globalEvents;t.globalVars=i.default.uniq(i.default.concat(i.default.cloneDeep(t.globalVars),o)),t.globalEvents=i.default.uniq(i.default.concat(i.default.cloneDeep(t.globalEvents),s));var l=Object.keys(a),u=Object.keys(t.shareVariableTree),c=i.default.difference(l,u);c.length?c.forEach((function(e){t.shareVariableTree[e]=i.default.concat(i.default.cloneDeep(t.shareVariableTree[e]),a[e])})):t.shareVariableTree=Object.assign(i.default.cloneDeep(t.shareVariableTree),a),r instanceof Array?(fe(r),(n=t.list).unshift.apply(n,r)):(fe([r]),t.list.unshift(r)),t.menuList=i.default.cloneDeep(t.list),de(t.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(t,e){var n;try{if(!e||2!=e.length)throw new Error("参数错误,方法接受两个组件的CID组成的数组!");var r=i.default.cloneDeep(t.list),a=oe(r,e[0]),o=oe(r,e[1]),s=oe(r,a.pid),l={},u=0,c=0;if(o)if("selectContainer"==o.componentType){var h=oe(r,e[1]);s?(u=i.default.findIndex(s.children,(function(t){return t.cid==e[0]})),l=s.children[u],s.children=s.children.filter((function(t){return t.cid!==l.cid}))):(l=oe(r,e[0]),r=r.filter((function(t){return t.cid!==l.cid}))),l.cid=Ee(),l.pid=h.cid,h.children.push(l)}else if(a.pid||o.pid)if(s)if(u=i.default.findIndex(s.children,(function(t){return t.cid==e[0]})),l=s.children[u],a.pid!==o.pid){h=oe(r,o.pid);c=i.default.findIndex(h.children,(function(t){return t.cid==e[1]}));d=h.children[c];l.cid=Ee(),l.pid=h.cid,d.cid=Ee(),d.pid=s.cid,s.children.splice(u,1,d),h.children.splice(c,1,l)}else c=i.default.findIndex(s.children,(function(t){return t.cid==e[1]})),(n=s.children).splice.apply(n,v([c,1],s.children.splice(u,1,s.children[c]),!1));else{var h=oe(r,o.pid);u=i.default.findIndex(r,(function(t){return t.cid==e[0]})),c=i.default.findIndex(h.children,(function(t){return t.cid==e[1]})),l=oe(r,a.cid);var d=h.children[c];l.cid=Ee(),l.pid=h.cid,d.cid=Ee(),d.pid=null,r.splice(u,1,d),h.children.splice(c,1,l)}else ie(t.list,e[0],e[1]);else u=i.default.findIndex(s.children,(function(t){return t.cid==e[0]})),l=s.children[u],s.children.splice(u,1),l.cid=Ee(),l.pid=null,r.push(l);t.list=r,de(t.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,a=e.value,o=oe(t.list,r);if(!o)return;if("string"!=typeof i)return void console.error("key:[".concat(i,"]格式错误"));var s=null===(n=null==o?void 0:o.tmpData)||void 0===n?void 0:n.option,l=i.split(".");s&&(null==l?void 0:l.length)&&l.forEach((function(t,e){s.hasOwnProperty(t)&&(e===l.length-1?s[t]=a:s=s[t])}))}catch(t){console.warn("同步属性发生错误:"+t)}},mergeConfig:function(t,e){e.length>0&&e.forEach((function(e){t.list.unshift(e)})),t.menuList=i.default.cloneDeep(t.list),de(t.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=ye(n);n.children=r}t.currentEditerCid=e}else t.currentEditerCid=""},setDynamicLine:function(t,e){var n=i.default.cloneDeep(t.list),r=oe(n,e.cid);n.length&&"boolean"!=typeof r&&(r.lines=Object.assign({},r.lines,e.lines)),t.list=n}},ai={layout:function(t,e){var n=function(t,e){try{var n=t.map((function(t){var n=oe(e,t);if("object"==typeof n)return n;throw"Please check whether the input and output parameters are correct!"}));if(i.default.every(n,Object))return n;throw"Please check whether the input and output parameters are correct!"}catch(t){return console.error(t),[]}}(t.selectd,t.list);switch(e){case"alignLeft":!function(t,e){1===t.length&&(t[0].baseData.left=0);var n=i.default.sortBy(t,(function(t){return t.baseData.left})),r=n[0].baseData.left;t.map((function(t){return t.baseData.left=r}))}(n);break;case"alignRight":!function(t,e){if(1===t.length){var n=e.plant?e.plant.baseData:{width:1920,height:1080};t[0].baseData.left=n.width-t[0].baseData.width}var r=i.default.sortBy(t,(function(t){return t.baseData.left})),a=1*r[r.length-1].baseData.left+1*r[r.length-1].baseData.width;t.map((function(t){return t.baseData.left=a-1*t.baseData.width}))}(n,t);break;case"horizontally":!function(t,e){if(1===t.length){var n=e.plant?e.plant.baseData:{width:1920,height:1080};t[0].baseData.left=n.width/2-t[0].baseData.width/2}var r=i.default.sortBy(t,(function(t){return t.baseData.left})),a=i.default.sortBy(t,(function(t){return 1*t.baseData.left+1*t.baseData.width})),o=(1*r[0].baseData.left+(1*a[a.length-1].baseData.left+1*a[a.length-1].baseData.width))/2;t.map((function(t){return t.baseData.left=o-t.baseData.width/2}))}(n,t);break;case"alignTop":!function(t,e){1===t.length&&(t[0].baseData.top=0);var n=i.default.sortBy(t,(function(t){return t.baseData.top})),r=1*n[0].baseData.top;t.map((function(t){return t.baseData.top=r}))}(n);break;case"alignBottom":!function(t,e){if(1===t.length){var n=e.plant?e.plant.baseData:{width:1920,height:1080};t[0].baseData.top=n.height-t[0].baseData.height}var r=i.default.sortBy(t,(function(t){return 1*t.baseData.top})),a=1*r[r.length-1].baseData.top+1*r[r.length-1].baseData.height;t.map((function(t){return t.baseData.top=a-1*t.baseData.height}))}(n,t);break;case"verticalCenter":!function(t,e){if(1===t.length){var n=e.plant?e.plant.baseData:{width:1920,height:1080};t[0].baseData.top=n.height/2-t[0].baseData.height/2}var r=i.default.sortBy(t,(function(t){return t.baseData.top})),a=i.default.sortBy(t,(function(t){return 1*t.baseData.top+1*t.baseData.height})),o=(1*r[0].baseData.top+(1*a[a.length-1].baseData.top+1*a[a.length-1].baseData.height))/2;t.map((function(t){return t.baseData.top=o-t.baseData.height/2}))}(n,t);break;case"topDistribution":!function(t){if(t.length<3)return console.warn("A minimum of three elements are required for a distribution arrangement"),!1;var e=i.default.sortBy(t,(function(t){return t.baseData.top})),n=(e[e.length-1].baseData.top-e[0].baseData.top)/(e.length-1);e.map((function(t,r){r>0&&r<e.length-1&&(t.baseData.top=1*e[0].baseData.top+n*r)}))}(n);break;case"bottomDistribution":!function(t){if(t.length<3)return console.warn("A minimum of three elements are required for a distribution arrangement"),!1;var e=i.default.sortBy(t,(function(t){return t.baseData.top+t.baseData.height})),n=(e[e.length-1].baseData.top+e[e.length-1].baseData.height-(e[0].baseData.top+e[0].baseData.height))/(e.length-1);e.map((function(t,r){r>0&&r<e.length-1&&(t.baseData.top=1*e[0].baseData.top+1*e[0].baseData.height-1*t.baseData.height+n*r)}))}(n);break;case"xCenterDistribution":!function(t){if(t.length<3)return console.warn("A minimum of three elements are required for a distribution arrangement"),!1;var e=i.default.sortBy(t,(function(t){return t.baseData.left+t.baseData.width/2})),n=1*e[e.length-1].baseData.left+e[e.length-1].baseData.width/2,r=1*e[0].baseData.left+e[0].baseData.width/2,a=(n-r)/(e.length-1);e.map((function(t,n){n>0&&n<e.length-1&&(t.baseData.left=r-t.baseData.width/2+a*n)}))}(n);break;case"leftDistribution":!function(t){if(t.length<3)return console.warn("A minimum of three elements are required for a distribution arrangement"),!1;var e=i.default.sortBy(t,(function(t){return t.baseData.left})),n=(e[e.length-1].baseData.left-e[0].baseData.left)/(e.length-1);e.map((function(t,r){r>0&&r<e.length-1&&(t.baseData.left=e[0].baseData.left+n*r)}))}(n);break;case"rightDistribution":!function(t){if(t.length<3)return console.warn("A minimum of three elements are required for a distribution arrangement"),!1;var e=i.default.sortBy(t,(function(t){return t.baseData.left+t.baseData.width})),n=(e[e.length-1].baseData.left+e[e.length-1].baseData.width-(e[0].baseData.left+e[0].baseData.width))/(e.length-1);e.map((function(t,r){r>0&&r<e.length-1&&(t.baseData.left=e[0].baseData.left+e[0].baseData.width-t.baseData.width+n*r)}))}(n);break;case"yCenterDistribution":!function(t){if(t.length<3)return console.warn("A minimum of three elements are required for a distribution arrangement"),!1;var e=i.default.sortBy(t,(function(t){return t.baseData.top+t.baseData.height/2})),n=1*e[e.length-1].baseData.top+e[e.length-1].baseData.height/2,r=1*e[0].baseData.top+e[0].baseData.height/2,a=(n-r)/(e.length-1);e.map((function(t,n){n>0&&n<e.length-1&&(t.baseData.top=r-t.baseData.height/2+a*n)}))}(n)}}},oi={setPageData:function(t,e){t.pages[0]=e},parasePages:function(t,e){e instanceof Array&&(t.pages=e.map((function(t,e){return t.name||(t.name="页面"+(e+1)),t.path||(t.path="page"+(e+1)),t})))},addPage:function(t,e){var n=t.pages.length+1;e.name="页面"+n,e.path="page"+n,t.pages.push(e),t.pageIndex=t.pages.length-1,t.resource={jspaths:[],csspaths:[],otherpaths:[]},t.globalVars=t.sysConst},setCurrentPageIndex:function(t,e){var n=t.globalEvents,r=t.globalVars,i=t.list,a=t.name,o=t.theme,s=t.plant,l=t.shareVariableTree,u=t.resource;t.pages[t.pageIndex]={globalEvents:n,globalVars:r,list:i,name:a,theme:o,plant:s,shareVariableTree:l,resource:u},t.pageIndex=e},setPageDataForIndex:function(t,e){var n=e.index,r=e.data;t.pages[n]=r},setPageName:function(t,e){t.name=e,t.pages[t.pageIndex].name=e},saveCurrentPageData:function(t){var e=t.globalEvents,n=t.globalVars,r=void 0===n?[]:n,i=t.list,a=t.name,o=t.theme,s=t.plant,l=t.shareVariableTree,u=t.resource;t.pages[t.pageIndex]={globalEvents:e,globalVars:r,list:i,name:a,theme:o,plant:s,shareVariableTree:l,resource:u}},getCurrentPageData:function(t){var e=t.globalEvents,n=t.globalVars,r=t.list,i=t.name,a=t.theme,o=t.plant,s=t.shareVariableTree,l=t.resource;t.pages[t.pageIndex]={globalEvents:e,globalVars:n,list:r,name:i,theme:a,plant:o,shareVariableTree:s,resource:l}}},si={segmentationContainer:function(t,e){var n=i.default.cloneDeep(t.list),r=e.containerData,a=e.direction,o=[];if("del"==a)if(r.pid){var s=function(t){if(t.length)for(var e=0;e<t.length;e++)t[e].hasOwnProperty("children")&&t[e].children.length&&t[e].children.map((function(n){t[e].cid=n.pid})),r.pid===t[e].cid?t[e].children.length&&(t[e].children.map((function(t){t.cid!==r.cid&&t.hasOwnProperty("children")&&t.children.length&&(o=t.children)})),t[e].children=[],o.length&&(t[e].children=o)):t[e].hasOwnProperty("children")&&s(t[e].children)};n.length&&s(n)}else n.length&&(n=n.filter((function(t){return t.cid!==r.cid})));else if(r.pid){var l=function(t){for(var e=0;e<t.length;e++)if(r.cid===t[e].cid){t[e].direction=a,1===t[e].children.length&&((o=t[e].children)[0].pid=null,t[e].children=[]);for(var n=0;n<2;n++)t[e].children.push({isLock:!1,isShow:!0,baseData:{width:"col"==a?"100%":"50%",height:"col"==a?"50%":"100%",angle:0,penetrate:0,opacity:100},componentType:"selectContainer",iconClass:"__vue_devtool_undefined__",isAssembly:"__vue_devtool_undefined__",source:[],comData:{actions:[],option:{grid:[{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"}],bgColor:{alpha:1,blue:0,green:0,red:0,flag:1,style:"transparent"},borderRadius:[{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"}],margins:[{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"}]}},tmpData:{},dynamic:0,filePath:"/anov-prod/mgt/go/assembly/162-bgImage.png",origin:"anov-go",name:"容器组件",path:"/index.js",viewComName:"selectContainer",optionComName:"",dataComName:"",eventComName:"",direction:"col",assemblyDeveloper:"",devEmail:"",version:null,devDept:"",toggle:!0,cid:Ee(),pid:t[e].cid,nestIndex:0,children:[],isTop:!1,isCol:"col"==a,isRow:"col"!=a,isDragged:!1,grandParentId:r.pid});o.length&&(o[0].cid=Ee(),o[0].pid=t[e].children[0].cid,t[e].children[0].children=o)}else t[e].hasOwnProperty("children")&&l(t[e].children)};n.length&&l(n)}else{var u=oe(n,r.cid);if(u){u.direction=a,1===u.children.length&&(o=u.children,u.children=[]);for(var c=0;c<2;c++)u.children.push({isLock:!1,isShow:!0,baseData:{width:"col"==a?"100%":"50%",height:"col"==a?"50%":"100%",angle:0,penetrate:0,opacity:100},componentType:"selectContainer",iconClass:"__vue_devtool_undefined__",isAssembly:"__vue_devtool_undefined__",source:[],comData:{actions:[],option:{grid:[{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"}],bgColor:{alpha:1,blue:0,green:0,red:0,flag:1,style:"transparent"},imgOpt:"",bgScaleOpt:3,borderRadius:[{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"}],margins:[{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"}]}},tmpData:{},dynamic:0,filePath:"/anov-prod/mgt/go/assembly/162-bgImage.png",origin:"anov-go",name:"容器组件",path:"/index.js",viewComName:"selectContainer",optionComName:"",dataComName:"",eventComName:"",assemblyDeveloper:"",devEmail:"",version:null,devDept:"",toggle:!0,cid:Ee(),pid:u.cid,nestIndex:0,children:[],isTop:!1,isCol:"col"==a,isRow:"col"!=a,isDragged:!1,grandParentId:r.pid});o.length&&(o[0].cid=Ee(),o[0].pid=u.children[0].cid,u.children[0].children=o)}}t.list=n}},li={goEditShareCom:function(t,e){var n=e.name,r=e.mapping;t.shareComs||(t.shareComs=new Map),t.shareComs.set(n,r)},delShareCom:function(t,e){var n=e.key;t.shareComs&&t.shareComs.has(n)&&t.shareComs.delete(n)}},ui={mutation:{addGoVar:function(t,e){try{Vr.addVariable(e,(function(){t.globalVars=Vr.getAllVariables()}))}catch(t){console.warn(t)}},editGoVar:function(t,e){var n=this;try{Vr.editVariable(e,(function(r){t.globalVars=Vr.getAllVariables(),Or(t.globalSource,e.mapField,t.globalVars,t.list,(function(t){n.commit("GoCom/updatComs",t.cid)})),(null==e?void 0:e.delayUpdate)||n.commit("GoCom/updatComsForVar",e.mapField)}))}catch(t){console.warn(t)}},goEditVar:function(t,e){var n=e.key,r=e.value,i=t.globalVars.find((function(t){return t.mapField==n}));i&&(i.originalValue=r,i.update=!0,this.commit("GoCom/editGoVar",i))},goUpdataSysVars:function(t,e){var n={U_CITY:"cityCode",U_COUNTY:"countyCode",U_PROVINCE:"provinceCode",U_PHONE:"userPhone"},r=t.sysConst,i=Object.keys(n);r.map((function(t){if(t.originalValue=t.value,(null==t?void 0:t.name)&&(null==i?void 0:i.includes(t.name))){var r=n[t.name];t.value=e[r],t.originalValue=e[r]}return t})),Vr.addVariables(r)},updateGlobalVars:function(t,e){t.globalVars=e},updataVariables:function(t){t.globalVars=Vr.getAllVariables()}},actions:{updateGlobalVarsAction:function(t){(0,t.commit)("updateGlobalVars",Vr.getAllVariables())},goEditVar:function(t,e){(0,t.commit)("editGoVar",{mapField:e.key,originalValue:e.value})}}},ci=d(d(d(d(d(d(d(d(d(d(d({},g),Rn),Hr),qr),Wr),ii),ai),oi),si),li),ui.mutation),hi=d({updataList:function(t,e){var n=t.commit;e&&n("updataList",e),n("updateTree")},updataBaseData:function(t,e){var n=t.commit;e&&n("updataBaseData",e)},setActive:function(t,e){var n=t.commit;e&&n("setActive",e)},setSyncFlag:function(t,e){var n=t.commit;e&&n("setSyncFlag",e)},execute:function(t,e){var n=t.commit;e&&n("execute",e)},updataAnimationForComponent:function(t,e){var n=t.commit;e&&n("updataAnimationForComponent",e)},updataAnimation:function(t,e){(0,t.commit)("updataAnimation",e)},setOptionForCom:function(t,e){(0,t.commit)("setOptionForCom",e)},updatComs:function(t,e){var n=t.commit;setTimeout((function(){n("updatComs",e)}))},updatComsForVar:function(t,e){var n=t.dispatch,r=t.state,a=r.globalVars.map((function(t){var n,r;if((null===(n=null==t?void 0:t.forkValue)||void 0===n?void 0:n.length)&&(null===(r=null==t?void 0:t.forkValue)||void 0===r?void 0:r.includes(e))||t.forkValue==e)return t.mapField})).filter((function(t){return t})),o=[e];(null==a?void 0:a.length)&&(o=i.default.uniq(v([e],a,!0)));for(var s=[],l=0,u=o;l<u.length;l++){var c=u[l];r.shareVariableTree[c]&&s.push.apply(s,r.shareVariableTree[c])}if(null==s?void 0:s.length)for(var h=0,d=s;h<d.length;h++){n("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)}},ui.actions),di={getCurrentPage:function(t){return t.pages.length?t.pages[t.pageIndex]:[]},globalSourceTree:function(t){if(t.list.length&&t.globalSource.length){var e=[];return he(i.default.cloneDeep(t.list),(function(t){var n,r,i;if("globalData"==(null===(r=null===(n=null==t?void 0:t.tmpData)||void 0===n?void 0:n.source)||void 0===r?void 0:r.type)){var a=null===(i=null==t?void 0:t.tmpData)||void 0===i?void 0:i.source.globalData;e.push({name:t.name,cid:t.cid,sourceId:a.id,viewComName:t.viewComName})}})),e}return[]}},fi={namespaced:!0,state:c,mutations:ci,actions:hi,getters:di},pi=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 vi(t.storeModule,e)},t.prototype.mapGetters=function(e){return mi(t.storeModule,e)},t.prototype.mapMutations=function(e){return gi(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}(),vi=bi((function(t,e){var n;return yi(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=_i(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})),gi=bi((function(t,e){var n;return yi(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=this.$store.commit;if(t){var a=_i(this.$store,"mapMutations",t);if(!a)return;r=a.context.commit}return"function"==typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}})),n})),mi=bi((function(t,e){var n={};return yi(e).forEach((function(e){var r=e.key,i=e.val;i=t+i,n[r]=function(){if(!t||_i(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 yi(t){return Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}}))}function bi(t){return function(e,n){return"string"!=typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function _i(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 wi=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}(),Di=function(){function t(t){this.vueServer=t,this.loadScript=Qr}return t.setStore=function(t){this.store=t},t.prototype.loadComponents=function(t){var e=t&&t.list?t.list:[];he(e,(function(t){t.viewComName&&(t&&t.path&&t.path,t.origin,t.viewComName?t.viewComName:t.rawData.viewComName)})),t&&this.vueServer.callMutation("reversal",i.default.cloneDeep(t))},t.prototype.addStore=function(t){this.vueServer.callMutation("setActive",{id:t}),this.vueServer.callMutation("addComs",this)},t.prototype._addPlantStore=function(){this.vueServer.callMutation("setPlant",this)},t.prototype._loadComTmp=function(t,e){return f(this,void 0,void 0,(function(){var n,r,i=this;return p(this,(function(a){switch(a.label){case 0:if(window[e])return[3,5];n=function(e){var n;return p(this,(function(r){switch(r.label){case 0:return n=t[e],[4,new Promise((function(t){t(i._load(n))}))];case 1:return r.sent(),[2]}}))},r=0,a.label=1;case 1:return r<t.length?[5,n(r)]:[3,4];case 2:a.sent(),a.label=3;case 3:return r++,[3,1];case 4:window[e]=e,a.label=5;case 5:return[2]}}))}))},t.prototype._load=function(t){return f(this,void 0,void 0,(function(){var e=this;return p(this,(function(n){return[2,new Promise((function(n){n(e.loadScript(t))}))]}))}))},t}(),Si=function(){function t(t){var e=t.dbName,n=t.tables,r=t.version,i=void 0===r?1:r,a=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["dbName","tables","version"]);this.dbName=e,this.tables=n,this.version=i,this.openDB(d({dbName:e,tables:n,version:i},a))}return t.deleteDB=function(t){var e;null===(e=window.indexedDB)||void 0===e||e.deleteDatabase(t)},t.prototype.deleteItem=function(t,e,n){var r=this.storage.transaction(t,"readwrite").objectStore(t).delete(e);return r.onsuccess=function(t){"function"==typeof n&&n(t)},r},t.prototype.getItem=function(t,e,n){var r=this.storage.transaction(t,"readwrite").objectStore(t),i=null;return(i=e?r.get(e):r.getAll()).onsuccess=function(t){var e;"function"==typeof n&&n(null===(e=null==t?void 0:t.target)||void 0===e?void 0:e.result)},i.onerror=function(t){console.error(t),n(t)},i},t.prototype.setItem=function(t,e,n,r){var i=this.storage.transaction(t,"readwrite").objectStore(t).put(n,e);return i.onsuccess=function(t){"function"==typeof r&&r(t)},i.onerror=function(t){"function"==typeof r&&r(t)},i},t.prototype.get=function(t,e){return this.getItem(this.tables[0],t,e)},t.prototype.set=function(t,e,n){return this.setItem(this.tables[0],t,e,n)},t.prototype.delete=function(t,e){return this.deleteItem(this.tables[0],t,e)},t.prototype.clear=function(t,e){var n=this.storage.transaction(this.dbName,"readwrite").objectStore(t).clear();return n.onsuccess=function(t){"function"==typeof e&&e(t)},n},t.prototype.getDB=function(){return this.storage},t.prototype.closeDB=function(){this.storage.close()},t.prototype.openDB=function(t){var e=this,n=t.dbName,r=t.tables,i=t.version,a=t.callback,o=window.indexedDB;if(o)if((null==r?void 0:r.length)<1)console.error("表名不能为空");else{var s=o.open(n,i);s.onerror=function(t){var e,n;console.error("打开数据库失败: ".concat(null===(n=null===(e=t.currentTarget)||void 0===e?void 0:e.error)||void 0===n?void 0:n.message)),"function"==typeof a&&a(t)},s.onsuccess=function(t){var n;e.storage=null===(n=t.target)||void 0===n?void 0:n.result,"function"==typeof a&&a(t)},s.onupgradeneeded=function(t){var n;e.storage=null===(n=t.target)||void 0===n?void 0:n.result,r.forEach((function(n){e.storage.objectStoreNames.contains(n)||(e.storage.createObjectStore(n),"function"==typeof a&&a(t))}))}}else console.error("你的浏览器不支持indexedDB")},t}(),xi=function(){function t(){this.VueServer=new pi}return t.getInstance=function(){return this.instance||(this.db=new Si({dbName:"AnovGo",tables:["logs"]}),this.instance=new t),this.instance},t.prototype.getAppStore=function(){return t.store},t.setAppStore=function(e){t.store=e,pi.setAppStore(e),Di.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 wi(t);e?this.add(n.cid,n,!0):this.add(n.cid,n)},t.prototype.renderForParent=function(t,e,n){var r=new wi(t);void 0!==n?this.addForParent(r.cid,r,e,n):this.addForParent(r.cid,r,e)},t.prototype.reversal=function(t){new Di(new pi).loadComponents(t)},t.prototype.emitEvent=function(t,e){var n=this,r=this.VueServer.callState("globalEvents"),i=(this.VueServer.callState("globalVars"),this.VueServer.callState("shareVariableTree")),a=this.VueServer.callState("globalSource");this.VueServer.callState("globalConstant");var o=this.VueServer.callState("list");Ir(r,0,i,o,t,(function(t){n.VueServer.callMutation("changeShow",t)}),(function(t){n.VueServer.callMutation("updataSourceForComponent",t)}),e,a)},t}(),Ti=Object.defineProperty,ki=Object.getOwnPropertySymbols,Ci=Object.prototype.hasOwnProperty,Ei=Object.prototype.propertyIsEnumerable,Oi=(t,e,n)=>e in t?Ti(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ai=(t,e)=>{for(var n in e||(e={}))Ci.call(e,n)&&Oi(t,n,e[n]);if(ki)for(var n of ki(e))Ei.call(e,n)&&Oi(t,n,e[n]);return t},Mi=(t,e,n)=>(Oi(t,"symbol"!=typeof e?e+"":e,n),n),Pi=(t,e,n)=>new Promise(((r,i)=>{var a=t=>{try{s(n.next(t))}catch(t){i(t)}},o=t=>{try{s(n.throw(t))}catch(t){i(t)}},s=t=>t.done?r(t.value):Promise.resolve(t.value).then(a,o);s((n=n.apply(t,e)).next())})),Vi={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},Ri="data-watermark-tag",Ni={childList:!0,subtree:!0,attributeFilter:["style","class",Ri]};var Bi=t=>{let e="";return Object.keys(t).forEach((n=>{const r=n.replace(/([A-Z])/g,"-$1").toLowerCase();e+=`${r}:${t[n]};`})),e},Ii=(t="")=>{return`${e=t,window.btoa(decodeURI(encodeURIComponent(e)))}-${(new Date).getTime()}-${Math.floor(Math.random()*Math.pow(10,8))}`;var e};var Fi=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,ji=l((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 r(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function i(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 o&&o.global===o?o: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,o){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?i(l):r(l.href)?n(t,e,o):i(l,l.target="_blank")):(l.href=s.createObjectURL(t),setTimeout((function(){s.revokeObjectURL(l.href)}),4e4),setTimeout((function(){i(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,a,o){if(a=a||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(e(t,o),a);else if(r(t))n(t,a,o);else{var s=document.createElement("a");s.href=t,s.target="_blank",setTimeout((function(){i(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,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||o&&l||s)&&"undefined"!=typeof FileReader){var c=new FileReader;c.onloadend=function(){var t=c.result;t=u?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=t:location=t,i=null},c.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}()})),Li=function(t){if(0===t.length)return[];var e=function(t){for(var n,r,a,o,s=0;s<t.length;s++)t[s].tmpData&&(t[s]=Object.assign({},(r=t[s],a=void 0,o=void 0,a=i.default.cloneDeep(r),o=i.default.omit(a,["comData","source"]),d({},o)))),t[s]&&t[s].children&&(null===(n=t[s])||void 0===n?void 0:n.children.length)?e(t[s].children):t[s]&&t[s].dynamicChildren&&Array.from(t[s].dynamicChildren).forEach((function(t,n){e(t[1])}))};return e(t),t},Yi=function(t){var e=i.default.cloneDeep(t)?i.default.cloneDeep(t):{};"string"==typeof t&&(e=JSON.parse(t));var n=[];if(e instanceof Array)e.forEach((function(t,e){var r=JSON.parse(t.caseDetailData)?JSON.parse(t.caseDetailData):{},i=t.caseDetailPath,a=t.caseDetailName,o=r.theme,s=void 0===o?null:o,l=r.globalVars,u=void 0===l?null:l,c=r.shareVariableTree,h=void 0===c?null:c,d=r.plant,f=void 0===d?null:d,p=r.list,v=void 0===p?[]:p,g=r.path,m=void 0===g?"":g;r.name;var y=r.resource,b=void 0===y?{jspaths:[],csspaths:[],otherpaths:[]}:y,_=r.watermark,w=void 0===_?null:_,D=r.tw,S=void 0===D?null:D,x=r.globalSource,T=void 0===x?[]:x,k=r.globalEvents,C=void 0===k?[]:k,E=r.globalConstant,O=void 0===E?[]:E;n.push({path:m||i,theme:s,name:a,resource:b,tw:S,watermark:w,globalSource:T,globalVars:u,globalEvents:C,globalConstant:O,shareVariableTree:h,plant:f,list:Li(v)})}));else{var r=e.theme,a=void 0===r?null:r,o=e.globalVars,s=void 0===o?null:o,l=e.shareVariableTree,u=void 0===l?null:l,c=e.plant,h=void 0===c?null:c,d=e.list,f=void 0===d?[]:d,p=e.resource,v=void 0===p?{jspaths:[],csspaths:[],otherpaths:[]}:p,g=e.watermark,m=void 0===g?null:g,y=e.tw,b=void 0===y?null:y,_=e.globalSource,w=void 0===_?[]:_,D=e.globalEvents,S=void 0===D?[]:D,x=e.globalConstant,T=void 0===x?[]:x;n.push({resource:v,tw:b,watermark:m,globalSource:w,theme:a,globalVars:s,globalEvents:S,shareVariableTree:u,globalConstant:T,plant:h,list:Li(f)})}return n};function zi(t,e){throw new Error("".concat(t,":Expected HTMLElement, got ").concat(e))}var Ui=function(){function t(t){this.option=t,this.option.isResize&&window.addEventListener("resize",this.resize.bind(this))}return Object.defineProperty(t,"defaultOption",{get:function(){return t._defaultOption},set:function(e){t._defaultOption=e},enumerable:!1,configurable:!0}),t.getInstance=function(e){return t.instance||(t.instance=new t(e)),t.instance},t.prototype.removeResize=function(){window.removeEventListener("resize",this.resize.bind(this))},t.prototype.resize=function(){var t=this.option,e=t.isEqualScale,n=t.wrapSelector,r=t.viewSelector,i=t.designWidth,a=t.designHeight,o=t.horizontal,s=t.vertical,l=document.querySelector(n);l||zi("wrap",l);var u=l.clientWidth,c=l.clientHeight,h=document.querySelector(r);h||zi("view",h),h.style.position="absolute",h.style.width=i+"px",h.style.height=a+"px";var d,f,p,v,g=Math.min(u/i,c/a);if(e){switch(h.style.transform="scale(".concat(g,")"),o){case"center":d=(u-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=(c-a)/2+"px";break;case"top":f=(g-1)/2*a+"px";break;case"bottom":v=(g-1)/2*a+"px"}}else h.style.transform="scale('".concat(u/i,", ").concat(c/a,"')"),d=(u-i)/2+"px",f=(c-a)/2+"px";f?h.style.top=f:v&&(h.style.bottom=v),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}(),Hi=function(){function t(t){this.wrap=null,this.target=null,this.type=0,this.minRatio=1,this.outSize={w:0,h:0},this.inSize={w:0,h:0};var e=t.wrap,n=t.target,r=t.type,i=t.size,a=t.callback;this.size=i,this.type=r,this.initOptions(e,n,i),this.initSize(i),this.layout(),this.scale(a),window.addEventListener("resize",this.reset.bind(this,a))}return t.prototype.reset=function(t){this.initSize(this.size),this.layout(),t?this.scale(t):this.scale()},t.getInstance=function(e){return t.instance||(t.instance=new t(e)),t.instance},t.prototype.removeResize=function(){window.removeEventListener("resize",this.reset.bind(this,void 0))},t.prototype.getDom=function(t){if(i.default.isElement(t))return t;var e=document.querySelector(t);return i.default.isElement(e)?e:null},t.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()},t.prototype.initSize=function(t){this.outSize.w=this.wrap.clientWidth,this.outSize.h=this.wrap.clientHeight,this.inSize=t},t.prototype.verificationDom=function(){null!=this.wrap&&null!=this.target&&this.isChildOf(this.wrap,this.target)||console.warn("Please pass in the DOM element correctly!")},t.prototype.layout=function(){if(0==this.type||3==this.type){var t=(this.outSize.w-this.inSize.w)/2,e=(this.outSize.h-this.inSize.h)/2;this.target.style.top=e+"px",this.target.style.left=t+"px"}else this.wrap.style.display="flex",this.wrap.style["align-items"]="center",this.wrap.style["justify-content"]="center",this.target.style.position="static",1==this.type?(this.wrap.style["overflow-y"]="auto",this.wrap.style["overflow-x"]="hidden"):2==this.type&&(this.wrap.style["overflow-y"]="hidden",this.wrap.style["overflow-x"]="auto")},t.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},t.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,")")},t.prototype.resize=function(){},t}(),Gi=l((function(t){!function(e){var n=function(){return{escape:function(t){return t.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1")},parseExtension:t,mimeType:function(e){var n=t(e).toLowerCase();return(r="application/font-woff",i="image/jpeg",{woff:r,woff2:r,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:i,jpeg:i,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"})[n]||"";var r,i},dataAsUrl:function(t,e){return"data:"+e+";base64,"+t},isDataUrl:function(t){return-1!==t.search(/^(data:)/)},canvasToBlob:function(t){return t.toBlob?new Promise((function(e){t.toBlob(e)})):function(t){return new Promise((function(e){for(var n=window.atob(t.toDataURL().split(",")[1]),r=n.length,i=new Uint8Array(r),a=0;a<r;a++)i[a]=n.charCodeAt(a);e(new Blob([i],{type:"image/png"}))}))}(t)},resolveUrl:function(t,e){var n=document.implementation.createHTMLDocument(),r=n.createElement("base");n.head.appendChild(r);var i=n.createElement("a");return n.body.appendChild(i),r.href=e,i.href=t,i.href},getAndEncode:function(t){var e=3e4;s.impl.options.cacheBust&&(t+=(/\?/.test(t)?"&":"?")+(new Date).getTime());return new Promise((function(n){var r,i=new XMLHttpRequest;if(i.onreadystatechange=o,i.ontimeout=l,i.responseType="blob",i.timeout=e,i.open("GET",t,!0),i.send(),s.impl.options.imagePlaceholder){var a=s.impl.options.imagePlaceholder.split(/,/);a&&a[1]&&(r=a[1])}function o(){if(4===i.readyState)if(200===i.status){var e=new FileReader;e.onloadend=function(){var t=e.result.split(/,/)[1];n(t)},e.readAsDataURL(i.response)}else r?n(r):u("cannot fetch resource: "+t+", status: "+i.status)}function l(){r?n(r):u("timeout of "+e+"ms occured while fetching resource: "+t)}function u(t){console.error(t),n("")}}))},uid:function(){var t=0;return function(){return"u"+e()+t++;function e(){return("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4)}}}(),delay:function(t){return function(e){return new Promise((function(n){setTimeout((function(){n(e)}),t)}))}},asArray:function(t){for(var e=[],n=t.length,r=0;r<n;r++)e.push(t[r]);return e},escapeXhtml:function(t){return t.replace(/#/g,"%23").replace(/\n/g,"%0A")},makeImage:function(t){return new Promise((function(e,n){var r=new Image;r.onload=function(){e(r)},r.onerror=n,r.src=t}))},width:function(t){var n=e(t,"border-left-width"),r=e(t,"border-right-width");return t.scrollWidth+n+r},height:function(t){var n=e(t,"border-top-width"),r=e(t,"border-bottom-width");return t.scrollHeight+n+r}};function t(t){var e=/\.([^\.\/]*?)$/g.exec(t);return e?e[1]:""}function e(t,e){var n=window.getComputedStyle(t).getPropertyValue(e);return parseFloat(n.replace("px",""))}}(),r=function(){var t=/url\(['"]?([^'"]+?)['"]?\)/g;return{inlineAll:function(t,n,a){return o()?Promise.resolve(t):Promise.resolve(t).then(r).then((function(e){var r=Promise.resolve(t);return e.forEach((function(t){r=r.then((function(e){return i(e,t,n,a)}))})),r}));function o(){return!e(t)}},shouldProcess:e,impl:{readUrls:r,inline:i}};function e(e){return-1!==e.search(t)}function r(e){for(var r,i=[];null!==(r=t.exec(e));)i.push(r[1]);return i.filter((function(t){return!n.isDataUrl(t)}))}function i(t,e,r,i){return Promise.resolve(e).then((function(t){return r?n.resolveUrl(t,r):t})).then(i||n.getAndEncode).then((function(t){return n.dataAsUrl(t,n.mimeType(e))})).then((function(r){return t.replace(function(t){return new RegExp("(url\\(['\"]?)("+n.escape(t)+")(['\"]?\\))","g")}(e),"$1"+r+"$3")}))}}(),i=function(){return{resolveAll:function(){return t().then((function(t){return Promise.all(t.map((function(t){return t.resolve()})))})).then((function(t){return t.join("\n")}))},impl:{readAll:t}};function t(){return Promise.resolve(n.asArray(document.styleSheets)).then((function(t){var e=[];return t.forEach((function(t){try{n.asArray(t.cssRules||[]).forEach(e.push.bind(e))}catch(e){console.log("Error while reading CSS rules from "+t.href,e.toString())}})),e})).then((function(t){return t.filter((function(t){return t.type===CSSRule.FONT_FACE_RULE})).filter((function(t){return r.shouldProcess(t.style.getPropertyValue("src"))}))})).then((function(e){return e.map(t)}));function t(t){return{resolve:function(){var e=(t.parentStyleSheet||{}).href;return r.inlineAll(t.cssText,e)},src:function(){return t.style.getPropertyValue("src")}}}}}(),a=function(){return{inlineAll:function e(i){return i instanceof Element?a(i).then((function(){return i instanceof HTMLImageElement?t(i).inline():Promise.all(n.asArray(i.childNodes).map((function(t){return e(t)})))})):Promise.resolve(i);function a(t){var e=t.style.getPropertyValue("background");return e?r.inlineAll(e).then((function(e){t.style.setProperty("background",e,t.style.getPropertyPriority("background"))})).then((function(){return t})):Promise.resolve(t)}},impl:{newImage:t}};function t(t){return{inline:function(e){return n.isDataUrl(t.src)?Promise.resolve():Promise.resolve(t.src).then(e||n.getAndEncode).then((function(e){return n.dataAsUrl(e,n.mimeType(t.src))})).then((function(e){return new Promise((function(n,r){t.onload=n,t.onerror=r,t.src=e}))}))}}}}(),o={imagePlaceholder:void 0,cacheBust:!1},s={toSvg:l,toPng:function(t,e){return u(t,e||{}).then((function(t){return t.toDataURL()}))},toJpeg:function(t,e){return u(t,e=e||{}).then((function(t){return t.toDataURL("image/jpeg",e.quality||1)}))},toBlob:function(t,e){return u(t,e||{}).then(n.canvasToBlob)},toPixelData:function(t,e){return u(t,e||{}).then((function(e){return e.getContext("2d").getImageData(0,0,n.width(t),n.height(t)).data}))},impl:{fontFaces:i,images:a,util:n,inliner:r,options:{}}};function l(t,e){return function(t){void 0===t.imagePlaceholder?s.impl.options.imagePlaceholder=o.imagePlaceholder:s.impl.options.imagePlaceholder=t.imagePlaceholder;void 0===t.cacheBust?s.impl.options.cacheBust=o.cacheBust:s.impl.options.cacheBust=t.cacheBust}(e=e||{}),Promise.resolve(t).then((function(t){return c(t,e.filter,!0)})).then(h).then(d).then((function(t){e.bgcolor&&(t.style.backgroundColor=e.bgcolor);e.width&&(t.style.width=e.width+"px");e.height&&(t.style.height=e.height+"px");e.style&&Object.keys(e.style).forEach((function(n){t.style[n]=e.style[n]}));return t})).then((function(r){return function(t,e,r){return Promise.resolve(t).then((function(t){return t.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),(new XMLSerializer).serializeToString(t)})).then(n.escapeXhtml).then((function(t){return'<foreignObject x="0" y="0" width="100%" height="100%">'+t+"</foreignObject>"})).then((function(t){return'<svg xmlns="http://www.w3.org/2000/svg" width="'+e+'" height="'+r+'">'+t+"</svg>"})).then((function(t){return"data:image/svg+xml;charset=utf-8,"+t}))}(r,e.width||n.width(t),e.height||n.height(t))}))}function u(t,e){return l(t,e).then(n.makeImage).then(n.delay(100)).then((function(r){var i=function(t){var r=document.createElement("canvas");if(r.width=e.width||n.width(t),r.height=e.height||n.height(t),e.bgcolor){var i=r.getContext("2d");i.fillStyle=e.bgcolor,i.fillRect(0,0,r.width,r.height)}return r}(t);return i.getContext("2d").drawImage(r,0,0),i}))}function c(t,e,r){return r||!e||e(t)?Promise.resolve(t).then((function(t){return t instanceof HTMLCanvasElement?n.makeImage(t.toDataURL()):t.cloneNode(!1)})).then((function(r){return function(t,e,r){var i=t.childNodes;return 0===i.length?Promise.resolve(e):a(e,n.asArray(i),r).then((function(){return e}));function a(t,e,n){var r=Promise.resolve();return e.forEach((function(e){r=r.then((function(){return c(e,n)})).then((function(e){e&&t.appendChild(e)}))})),r}}(t,r,e)})).then((function(e){return function(t,e){return e instanceof Element?Promise.resolve().then(r).then(i).then(a).then(o).then((function(){return e})):e;function r(){function r(t,e){function r(t,e){n.asArray(t).forEach((function(n){e.setProperty(n,t.getPropertyValue(n),t.getPropertyPriority(n))}))}t.cssText?e.cssText=t.cssText:r(t,e)}r(window.getComputedStyle(t),e.style)}function i(){function r(r){var i=window.getComputedStyle(t,r),a=i.getPropertyValue("content");if(""!==a&&"none"!==a){var o=n.uid();e.className=e.className+" "+o;var s=document.createElement("style");s.appendChild(l(o,r,i)),e.appendChild(s)}function l(t,e,r){var i="."+t+":"+e,a=r.cssText?o(r):s(r);return document.createTextNode(i+"{"+a+"}");function o(t){var e=t.getPropertyValue("content");return t.cssText+" content: "+e+";"}function s(t){return n.asArray(t).map(e).join("; ")+";";function e(e){return e+": "+t.getPropertyValue(e)+(t.getPropertyPriority(e)?" !important":"")}}}}[":before",":after"].forEach((function(t){r(t)}))}function a(){t instanceof HTMLTextAreaElement&&(e.innerHTML=t.value),t instanceof HTMLInputElement&&e.setAttribute("value",t.value)}function o(){e instanceof SVGElement&&(e.setAttribute("xmlns","http://www.w3.org/2000/svg"),e instanceof SVGRectElement&&["width","height"].forEach((function(t){var n=e.getAttribute(t);n&&e.style.setProperty(t,n)})))}}(t,e)})):Promise.resolve()}function h(t){return i.resolveAll().then((function(e){var n=document.createElement("style");return t.appendChild(n),n.appendChild(document.createTextNode(e)),t}))}function d(t){return a.inlineAll(t).then((function(){return t}))}t.exports=s}()})),qi=function(t){if(!t)return!1;return 1==new RegExp(/http(s)?:\/\/([\w-]+\.)+[\w-]+(\/[\w- .\/?%&=]*)?/).test(t)},Wi=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))},$i=function(t,e){void 0===e&&(e="screenshot.jpeg");try{for(var n=t.split(","),r=n[0].match(/:(.*?);/)[1],i=atob(n[1]),a=i.length,o=new Uint8Array(a);a--;)o[a]=i.charCodeAt(a);return new File([o],e,{type:r})}catch(t){console.error("dataURLtoFile:数据转换错误 : "+t)}},Ki=function(t,e){return f(void 0,void 0,void 0,(function(){var n;return p(this,(function(r){switch(r.label){case 0:return r.trys.push([0,11,,12]),"File"!=e||"string"!=typeof t?[3,2]:[4,$i(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,Wi(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]}}))}))},Zi=function(t,e,n,r){return f(void 0,void 0,void 0,(function(){return p(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,a.default({url:t,method:"GET",responseType:"arraybuffer",params:{url:e,dom:n,quality:r}})];case 1:return[2,i.sent()];case 2:return i.sent(),console.warn("请求截图服务器发生错误,请检查地址及参数是否正确!",{url:t,path:e,dom:n,quality:r}),[2,null];case 3:return[2]}}))}))},Xi=function(t,e){return f(void 0,void 0,void 0,(function(){var n,r;return p(this,(function(i){switch(i.label){case 0:if(i.trys.push([0,2,,3]),!(n=document.querySelector(t)))throw new Error("domToImg:"+t+" dom未被找到!");return[4,Gi.toJpeg(n,{style:{transform:"scale(1)",position:"static"},quality:e})];case 1:return[2,i.sent()];case 2:return r=i.sent(),console.warn(r),[3,3];case 3:return[2]}}))}))},Ji=function(t){return"".concat(t>15?"":0).concat(t.toString(16))},Qi=function(t){var e=t.r,n=t.g,r=t.b,i=t.a,a=void 0===i?1:i;return"#".concat(Ji(e)).concat(Ji(n)).concat(Ji(r)).concat(1===a?"":Ji(Math.floor(255*a)))},ta=function(t){var e=t.r,n=t.g,r=t.b;return"rgb(".concat(e,",").concat(n,",").concat(r,")")},ea=function(t,e){void 0===e&&(e=1e4);var n=t.r,r=t.g,i=t.b,a=t.a,o=void 0===a?1:a;return"rgba(".concat(n,",").concat(r,",").concat(i,",").concat(Math.floor(o*e)/e,")")},na=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}},ra=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])}},ia=function(t){if(t.startsWith("#"))return na(t);if(t.startsWith("rgb"))return ra(t);if("transparent"===t)return na("#00000000");throw new Error("color string error: ".concat(t))},aa=new Map([["E1001","系统未知错误"],["E1002","vue逻辑错误"],["E1003","JavaScript错误"],["E1004","静态资源加载错误"],["E1005","请求错误"],["E1006","Promise错误"]]),oa=function(t,e,n,r){void 0===r&&(r="null"),sa({code:t,type:aa.get("".concat(t)),msg:e,router:n.currentRoute.value.fullPath,file:r,createTime:(new Date).toLocaleString()})},sa=function(t){var e=localStorage.getItem("ERROR");if(e){var n=JSON.parse(e);la(n),n.length>50?(n[0]=t,la(n)):n.push(t),localStorage.setItem("ERROR",JSON.stringify(n))}else localStorage.setItem("ERROR",JSON.stringify([t]))},la=function(t){t.sort((function(t,e){return t.createTime>e.createTime?1:-1}))},ua=Object.freeze({__proto__:null,Watermark:class{constructor(t={}){Mi(this,"options"),Mi(this,"container"),Mi(this,"watermarkContent"),Mi(this,"watermarkDom"),Mi(this,"style"),Mi(this,"watermarkTag"),Mi(this,"shadowRoot"),Mi(this,"mutationObserver"),Mi(this,"_isAgainRender",(t=>{if("attributes"===t.type){if(t.attributeName===Ri)return!0;if(this.watermarkTag===this._getNodeRandomId(t.target))return!0}return!(!t.removedNodes.length||this.watermarkTag!==this._getNodeRandomId(t.removedNodes[0]))})),Mi(this,"_getNodeRandomId",(t=>{var e,n;return null==(e=null==t?void 0:t.dataset)?void 0:e[(n=Ri,n.split("-").slice(1).reduce(((t,e,n)=>0===n?e:`${t}${e[0].toUpperCase()+e.slice(1)}`)))]})),Mi(this,"_destroyMutationObserver",(()=>{this.mutationObserver&&(this.mutationObserver.takeRecords(),this.mutationObserver.disconnect(),this.mutationObserver=null)})),Mi(this,"_getWatermarkDom",(t=>Pi(this,null,(function*(){this.watermarkDom||(this.watermarkDom=document.createElement("div")),"number"==typeof t&&t&&(this.style.height=`${t}px`);const e=yield function(t){const{text:e,gapX:n,gapY:r,offsetTop:i,offsetLeft:a,width:o,height:s,rotate:l,opacity:u,fontSize:c,fontStyle:h,fontVariant:d,fontWeight:f,fontFamily:p,fontColor:v,textAlign:g,textBaseline:m,image:y,blindText:b,blindFontSize:_,blindOpacity:w}=t;return new Promise(((t,D)=>{const S=document.createElement("canvas"),x=S.getContext("2d"),T=1*(Number(n)+Number(o)),k=1*(Number(r)+Number(s)),C=Number(a)||Number(n)/2,E=Number(i)||Number(r)/2;if(S.setAttribute("width",`${T}px`),S.setAttribute("height",`${k}px`),x){const n=1*o,r=1*s;if(x.translate(1*C,1*E),x.rotate(Math.PI/180*Number(l)),b&&(x.globalAlpha=w,x.font=`${_}px normal`,x.fillText(b,0,0)),x.globalAlpha=u,y){const e=new Image;return e.crossOrigin="anonymous",e.referrerPolicy="no-referrer",e.src=y,void(e.onload=()=>{x.drawImage(e,0,0,n,r),t({url:x.canvas.toDataURL(),width:T,height:k})})}const i=Array.isArray(e)?e:[e],a=i.map((t=>x.measureText(t).width)),h=Math.max(...a),d=1*Number(c);x.textAlign=g,x.textBaseline=m,x.fillStyle=v,x.font=O(`${d}px`),h>o&&(x.font=O(d/2+"px"));const f=d+5;let p=(r-(c*i.length+5*(i.length-1)))/2;p=p<0?0:p;for(let t=0;t<i.length;t++)x.fillText(i[t]||"",n/2,p+f*t);t({url:x.canvas.toDataURL(),width:T,height:k})}function 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",Bi(this.style))}return this.watermarkDom.setAttribute(Ri,this.watermarkTag),this.watermarkDom})))),Mi(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({},Vi,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=Ii("watermark"),this.mutationObserver=null,this._render()}update(t={}){this.options=Ai(Ai({},this.options),t),this.style.zIndex=this.options.zIndex,this._render()}show(){this.watermarkDom&&(this.style.display="block",this.watermarkDom.setAttribute("style",Bi(this.style)))}hide(){this.watermarkDom&&(this.style.display="none",this.watermarkDom.setAttribute("style",Bi(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 Pi(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(Ri,e);const a=Ai({position:"relative"},n);return r||delete a.position,i.setAttribute("style",Bi(a)),i})(this.options.container,this.watermarkTag,this.options.containerStyle,this.options.pack),this.watermarkContent||(this.watermarkContent=(t=>{const e=document.createElement("div");return e.setAttribute("style",Bi({pointerEvents:"none"})),e.setAttribute(Ri,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),Fi&&this.options.monitor&&(this.mutationObserver=new Fi((t=>{t.forEach((t=>{if(this._isAgainRender(t))return this.destroy(),void this._render()}))})),this.mutationObserver.observe(this.container,Ni),this.shadowRoot&&this.mutationObserver.observe(this.shadowRoot,Ni))}))}},generateComponentList:Li,generateCaseDataJson:Yi,generatePageData:function(t){var e={},n=e.theme,r=void 0===n?null:n,i=e.globalVars,a=void 0===i?null:i,o=e.shareVariableTree,s=void 0===o?null:o,l=e.plant,u=void 0===l?null:l,c=e.list,h=void 0===c?[]:c,d=e.undos,f=void 0===d?[]:d,p=e.undoRedoPointer,v=void 0===p?-1:p,g=e.globalEvents,m=void 0===g?[]:g;return t&&(r=t.theme,u=t.plant),{theme:r,globalVars:a,globalEvents:m,shareVariableTree:s,plant:u,undos:f,undoRedoPointer:v,list:Li(h)}},exportJson:function(t){var e=t.caseName,n=void 0===e?"case-name":e,r=t.caseImg,i=void 0===r?"":r,a=t.caseRemark,o=void 0===a?"":a,s=t.details,l=t.caseClientType,c=void 0===l?"":l,h=t.id,d={caseClientType:c,caseName:n,caseImg:i,caseRemark:o,caseId:void 0===h?"":h,createTime:u().format("YYYY-MM-DD , h:mm:ss"),caseData:Yi(s)},f=new Blob([JSON.stringify(d)],{type:"json"});ji.saveAs(f,n+".json")},generateJson:function(t){var e=t.caseName,n=void 0===e?"":e,r=t.caseData;return t.plangInfoForPsd,{caseName:n,createTime:u().format("YYYY-MM-DD , h:mm:ss"),caseData:Yi(r)}},SizeAdaption:Ui,Scale:Hi,loadFontResource:Jr,loadScript:Qr,removeTag:ri,loadTag:ni,loadFont:ei,getDataForEvaluator:_,recursion:he,setIndex:de,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)},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)},decrypAES:function(t){var e=te.enc.Utf8.parse(Ae),n=te.enc.Utf8.parse(Me);return te.AES.encrypt(t,e,{iv:n,mode:te.mode.CBC,padding:te.pad.Pkcs7}).toString()},safeEval:Pe,UpdataForContainer:Re,setActions:Oe,genID:Ee,arraySwap:re,arraySwapDeep:ae,arraySwapForId:ie,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])},RecursiveList:Ce,selectdArea:xe,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,resetPositionForGroup:function(t,e){var n=e.map((function(t){return t.cid}));e.forEach((function(e){e.pid&&_e(e,t)}));var r=xe(n,e);return me(r,e),{left:r.left,top:r.top,width:r.width,height:r.height}},setPositionForWorld:_e,breakUp:ye,findItem:ue,findItemDeep:oe,findParentDeep:le,findItemIndexDeep:function(t,e){for(var n,r=0,i=0;i<t.length;i++){var a=t[i];if(r+=1,a.cid==e)break;if(null===(n=null==a?void 0:a.children)||void 0===n?void 0:n.length)for(var o=0;o<(null==a?void 0:a.children.length);o++){if(r+=1,(null==a?void 0:a.children[o]).cid==e)return r}}return r},getLength:function(t){var e=0,n=function(t){for(var r=function(r){if(t[r].isShow&&t[r].children)n(t[r].children);else if(t[r].isShow&&t[r].dynamicChildren){if(t[r].dynamicChildren instanceof Map){for(var i=Array.from(t[r].dynamicChildren),a=0;a<i.length;a++)if(i[a]instanceof Array){var o=i[a][1];n(o)}}else if(t[r].isShow&&t[r].dynamicChildren instanceof Array){var s=t[r].dynamicChildren.find((function(e){return e[0]=t[r].activeDynamic}));s&&s.length&&n(s[1])}}else t[r].isShow&&t[r].stateChildren?n(t[r].stateChildren):t[r].isShow&&e++},i=0;i<t.length;i++)r(i)};return n(t),e||!1},getPosition:Te,updataAttribute:pe,updataAttributeForOption:ve,isPeer:ce,transformPosition:we,upDataGroup:ke,upDataGroupChildren:function(t,e,n){var r=t.children,a=i.default.cloneDeep(e),o=i.default.cloneDeep(Te(r)),s=a.left,l=a.top;a.width,a.height;var u=o.left,c=o.top,h=o.width,d=o.height,f={left:s+u,top:l+c,width:h,height:d,angle:e.angle?e.angle:0};return r.forEach((function(t){var e=i.default.cloneDeep(t.baseData);t.baseData.left<0?e.left=0:e.left=e.left-u,t.baseData.top<0?e.top=0:e.top=e.top-c,t.baseData=e})),t.children=r,f},resziePositionForGroup:function(t,e,n,r){var a=t.baseData.left,o=t.baseData.top,s=e.left,l=e.top,u=i.default.cloneDeep(t.children),c=n||"";if(s-a<0)for(var h=0;h<u.length;h++){(d=u[h]).cid!==c&&(d.baseData.left=d.baseData.left+(a-s))}if(l-o<0)for(h=0;h<u.length;h++){var d;(d=u[h]).cid!==c&&(d.baseData.top=d.baseData.top+(o-l))}t.children=u},genCopyName:function(t,e,n){var r,i;void 0===n&&(n=" copy");var a=new RegExp("".concat(n,"( \\d+)?$")).exec(t);a?(r=a[1]?parseInt(a[1]):0,i=t.slice(0,a.index)):(r=0,i=t);var o=new RegExp("^".concat(i).concat(n,"( [1-9][0-9]*)?$")),s=[];e.forEach((function(t){if(a=o.exec(t)){var e=a[1]?parseInt(a[1]):1;s.push(e)}})),s.sort((function(t,e){return t-e})),r++;for(var l=0,u=s.length;l<u;l++)if(s[l]===r)r++;else if(s[l]>r)break;return i+n+" "+r},resetID:fe,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)}},updataSizeDeep:ee,resizePosition:De,resizeListPosition:function(t,e){var n=function(t,r){for(var i,a=0;a<t.length;a++){var o=t[a];if(o.pid!=r){var s=De(e,o.cid),l=De(e,o.pid);o.baseData.left=s.left-l.left,o.baseData.top=s.top-l.top}(null===(i=null==o?void 0:o.children)||void 0===i?void 0:i.length)&&n(o.children,o.cid)}};n(t,e)},checkBaseData:ne,comToggle:ge,setSessionData:function(t,e){var n=JSON.stringify(e);sessionStorage.setItem(t,n)},getSessionData:function(t){var e=sessionStorage.getItem(t);return e?JSON.parse(e):null},globalSourceTemp:Ve,getAncestorsNodes:se,getInteractive:jr,getInteractive2:function(t,e,n,r,a){var o;try{var s={},l=[],u=[],c=[],h=i.default.cloneDeep(t);return(null===(o=null===window||void 0===window?void 0:window.go)||void 0===o?void 0:o.dev)&&he(t,(function(t){var e,n,r;if(null===(n=null===(e=null==t?void 0:t.tmpData)||void 0===e?void 0:e.actions)||void 0===n?void 0:n.length)for(var i=0,a=null===(r=null==t?void 0:t.tmpData)||void 0===r?void 0:r.actions;i<a.length;i++){var o=a[i];if("toggle"==o.behave){var s=o.toggle;if(null==s?void 0:s.length)for(var l=0,u=s;l<u.length;l++){var c=u[l],h=c.value;(null==h?void 0:h.length)&&(c.value=c.value.map((function(t){return{cid:t.cid,viewComName:t.viewComName,name:t.name,visible:t.visible}})))}}}})),he(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:u,eventsComs:c})}})),e&&e.length&&(l=v(v([],l,!0),e,!0)),n&&n.length&&(l=v(v([],l,!0),n,!0)),r&&r.length&&(l=v(v([],l,!0),r,!0)),he(h,(function(t){var e,n=null===(e=null==t?void 0:t.tmpData)||void 0===e?void 0:e.source;Lr(n,l,t,s)})),l.filter((function(t){if(t.fork){var e=l.find((function(e){return e.mapField==t.forkValue||Array.isArray(t.forkValue)&&t.forkValue.includes(e.mapField)}));(a?a==t.forkValue||Array.isArray(t.forkValue)&&t.forkValue.includes(a):!!e)&&(Array.isArray(t.forkValue)?t.originalValue=t.forkValue.map((function(t){var e=l.find((function(e){return e.mapField==t}));if(e)return e.value})):t.originalValue=e.value)}})),{shareVariableTree:s,globalVars:l.filter((function(t){return a?(a==t.forkValue||Array.isArray(t.forkValue)&&t.forkValue.includes(a))&&(t.hasOwnProperty("originalValue")||(t.originalValue=t.value),t.converter&&t.converterCode?t.value=Pe(t.converterCode,t.originalValue):t.value=t.originalValue):(t.hasOwnProperty("originalValue")||(t.originalValue=t.value),t.converter&&t.converterCode?t.value=Pe(t.converterCode,t.originalValue):t.value=t.originalValue),t})),globalEvents:u.filter((function(t){return t})),eventsComs:c}}catch(t){return console.error("error",t),{}}},checkVar:function(t,e){var n,r,i,a=!1,o=t.type,s=t.converse,l=t[o];if((null==s?void 0:s.use)&&(null===(n=null==s?void 0:s.data)||void 0===n?void 0:n.length))for(var u=0,c=s.data;u<c.length;u++){if((null==(m=c[u])?void 0:m.use)&&m.dependVars.includes(e)){a=!0;break}}if(a)return a;var h="",d="",f="";"api"==o&&(h=l.url,(null===(r=l.headers)||void 0===r?void 0:r.use)&&(d=l.headers.value),f=l.params),"datasource"==o&&(h=l.inputSql),"indicator"==o&&((null===(i=l.headers)||void 0===i?void 0:i.use)&&(d=l.headers.value),f=l.params);for(var p=/({{[\w]*}})|((@)[\w]*)/gm,v=0,g=[h,d,f];v<g.length;v++){var m,y=(m=g[v]).match(p);if((null==y?void 0:y.length)&&y.find((function(t){return t=="{{".concat(e,"}}")||t=="@".concat(e)}))){a=!0;break}}return a},executeFilter:function(t){return t.hasOwnProperty("originalValue")||(t.originalValue=t.value),t.converter&&t.converterCode?t.value=Pe(t.converterCode,t.originalValue):t.value=t.originalValue,t},getShareTree:function(t,e){try{var n={},r=[],i=[];return he(t,(function(t){var a,o,s,l=null===(a=null==t?void 0:t.tmpData)||void 0===a?void 0:a.source;if(Lr(l,e,t,n),null===(s=null===(o=null==t?void 0:t.tmpData)||void 0===o?void 0:o.actions)||void 0===s?void 0:s.length){var u=t.tmpData.actions.map((function(t){return t.eventType}));Oe({types:u,element:t,actions:r,events:i})}})),n}catch(t){return console.error(t),{}}},hasVar:function(t,e,n){var r,i,a,o,s=e[null==e?void 0:e.type],l=null==e?void 0:e.converse,u=!1;if(l&&l.use&&l.data.length)for(var c=0,h=l.data;c<h.length;c++){var d=h[c];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 u=!0}return(null==s?void 0:s.inputSql)&&(u=Yr(null==s?void 0:s.inputSql,n)),(null==s?void 0:s.url)&&(u=Yr(s.url,n)),(null==s?void 0:s.headers)&&(null===(i=null==s?void 0:s.headers)||void 0===i?void 0:i.use)&&(null===(a=null==s?void 0:s.headers)||void 0===a?void 0:a.value)&&(u=Yr(null===(o=null==s?void 0:s.headers)||void 0===o?void 0:o.value,n)),(null==s?void 0:s.params)&&(u=Yr(null==s?void 0:s.params,n)),u},isJSON:Ur,getStandardData:function(t,e){return void 0===e&&(e=!1),e?Ur(t)?t:JSON.stringify(t):Ur(t)?JSON.parse(t):t},screenshot:function(t){return f(void 0,void 0,void 0,(function(){var e,n,r,i,a,o,s,l;return p(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,a=t.type,o=void 0,qi(n)&&qi(r)?[4,Zi(n,r,e,i||.5)]:[3,5];case 1:return(s=u.sent())&&200==s.status&&s.data?(o=s.data,[3,4]):[3,2];case 2:return console.warn("截取错误,请检查网络或服务地址配置是否正确,已转换为dom-to-img."),[4,Xi(e,i||.5)];case 3:o=u.sent(),u.label=4;case 4:return[3,7];case 5:return console.warn("地址错误,请检查传入的地址是否争取,已转换为dom-to-img."),[4,Xi(e,i||.5)];case 6:o=u.sent(),u.label=7;case 7:return o?[4,Ki(o,a)]:[3,9];case 8:return[2,u.sent()];case 9:return[2,null];case 10:return[3,12];case 11:return l=u.sent(),console.error("截图发生错误:"+l),[2,null];case 12:return[2]}}))}))},toHex:Ji,toHexString:Qi,toRgbString:ta,toRgbaString:ea,parseHexColor:na,parseRgbaColor:ra,parseColorString:ia,getColorInfo:function(t){var e=ia(t);return{hex:Qi(e),rgba:ea(e),rgb:ta(e),rgbaObj:e}},hexToRgba:function(t){var e=ia(t);return ea(e)},rgbaToHex:function(t){var e=ia(t);return Qi(e)},watchError:function(t,e){t.config.errorHandler=function(t){console.error("监测到E1002错误"),console.error(t.filename),oa("E1002",t.name+":"+t.message,e)},window.addEventListener("error",(function(t){t.message?(console.error("监测到E1003错误"),oa("E1003",t.message,t.filename,e)):(console.error("监测到E1004错误"),oa("E1004",t.target.currentSrc,t.filename,e))}),!0)},errorHandler:oa});function ca(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ha(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
|
|
33
33
|
/*!
|
|
34
34
|
* GSAP 3.12.3
|
|
35
35
|
* https://gsap.com
|
|
@@ -38,7 +38,7 @@ function(t){var e=n,r=e.lib,i=r.WordArray,a=r.Hasher,o=e.algo,s=i.create([0,1,2,
|
|
|
38
38
|
* Subject to the terms at https://gsap.com/standard-license or for
|
|
39
39
|
* Club GSAP members, the agreement issued with that membership.
|
|
40
40
|
* @author: Jack Doyle, jack@greensock.com
|
|
41
|
-
*/var ha,da,fa,pa,va,ga,ma,ya,ba,_a,wa,Da={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Sa={duration:.5,overwrite:!1,delay:0},xa=1e8,Ta=1e-8,ka=2*Math.PI,Ca=ka/4,Ea=0,Oa=Math.sqrt,Aa=Math.cos,Ma=Math.sin,Pa=function(t){return"string"==typeof t},Va=function(t){return"function"==typeof t},Ra=function(t){return"number"==typeof t},Na=function(t){return void 0===t},Ba=function(t){return"object"==typeof t},Ia=function(t){return!1!==t},Fa=function(){return"undefined"!=typeof window},ja=function(t){return Va(t)||Pa(t)},La="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},Ya=Array.isArray,za=/(?:-?\.?\d|\.)+/gi,Ua=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Ha=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Ga=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,Wa=/[+-]=-?[.\d]+/,qa=/[^,'"\[\]\s]+/gi,$a=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,Ka={},Za={},Xa=function(t){return(Za=Co(t,Ka))&&El},Ja=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},Qa=function(t,e){return!e&&console.warn(t)},to=function(t,e){return t&&(Ka[t]=e)&&Za&&(Za[t]=e)||Ka},eo=function(){return 0},no={suppressEvents:!0,isStart:!0,kill:!1},ro={suppressEvents:!0,kill:!1},io={suppressEvents:!0},ao={},oo=[],so={},lo={},uo={},co=30,ho=[],fo="",po=function(t){var e,n,r=t[0];if(Ba(r)||Va(r)||(t=[t]),!(e=(r._gsap||{}).harness)){for(n=ho.length;n--&&!ho[n].targetTest(r););e=ho[n]}for(n=t.length;n--;)t[n]&&(t[n]._gsap||(t[n]._gsap=new zs(t[n],e)))||t.splice(n,1);return t},vo=function(t){return t._gsap||po(as(t))[0]._gsap},go=function(t,e,n){return(n=t[e])&&Va(n)?t[e]():Na(n)&&t.getAttribute&&t.getAttribute(e)||n},mo=function(t,e){return(t=t.split(",")).forEach(e)||t},yo=function(t){return Math.round(1e5*t)/1e5||0},bo=function(t){return Math.round(1e7*t)/1e7||0},_o=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},wo=function(t,e){for(var n=e.length,r=0;t.indexOf(e[r])<0&&++r<n;);return r<n},Do=function(){var t,e,n=oo.length,r=oo.slice(0);for(so={},oo.length=0,t=0;t<n;t++)(e=r[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)},So=function(t,e,n,r){oo.length&&!da&&Do(),t.render(e,n,r||da&&e<0&&(t._initted||t._startAt)),oo.length&&!da&&Do()},xo=function(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(qa).length<2?e:Pa(t)?t.trim():t},To=function(t){return t},ko=function(t,e){for(var n in e)n in t||(t[n]=e[n]);return t},Co=function(t,e){for(var n in e)t[n]=e[n];return t},Eo=function t(e,n){for(var r in n)"__proto__"!==r&&"constructor"!==r&&"prototype"!==r&&(e[r]=Ba(n[r])?t(e[r]||(e[r]={}),n[r]):n[r]);return e},Oo=function(t,e){var n,r={};for(n in t)n in e||(r[n]=t[n]);return r},Ao=function(t){var e,n=t.parent||pa,r=t.keyframes?(e=Ya(t.keyframes),function(t,n){for(var r in n)r in t||"duration"===r&&e||"ease"===r||(t[r]=n[r])}):ko;if(Ia(t.inherit))for(;n;)r(t,n.vars.defaults),n=n.parent||n._dp;return t},Mo=function(t,e,n,r,i){void 0===n&&(n="_first"),void 0===r&&(r="_last");var a,o=t[r];if(i)for(a=e[i];o&&o[i]>a;)o=o._prev;return o?(e._next=o._next,o._next=e):(e._next=t[n],t[n]=e),e._next?e._next._prev=e:t[r]=e,e._prev=o,e.parent=e._dp=t,e},Po=function(t,e,n,r){void 0===n&&(n="_first"),void 0===r&&(r="_last");var i=e._prev,a=e._next;i?i._next=a:t[n]===e&&(t[n]=a),a?a._prev=i:t[r]===e&&(t[r]=i),e._next=e._prev=e.parent=null},Vo=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},Ro=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},No=function(t,e,n,r){return t._startAt&&(da?t._startAt.revert(ro):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,r))},Bo=function t(e){return!e||e._ts&&t(e.parent)},Io=function(t){return t._repeat?Fo(t._tTime,t=t.duration()+t._rDelay)*t:0},Fo=function(t,e){var n=Math.floor(t/=e);return t&&n===t?n-1:n},jo=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},Lo=function(t){return t._end=bo(t._start+(t._tDur/Math.abs(t._ts||t._rts||Ta)||0))},Yo=function(t,e){var n=t._dp;return n&&n.smoothChildTiming&&t._ts&&(t._start=bo(n._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),Lo(t),n._dirty||Ro(n,t)),t},zo=function(t,e){var n;if((e._time||!e._dur&&e._initted||e._start<t._time&&(e._dur||!e.add))&&(n=jo(t.rawTime(),e),(!e._dur||ts(0,e.totalDuration(),n)-e._tTime>Ta)&&e.render(n,!0)),Ro(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}},Uo=function(t,e,n,r){return e.parent&&Vo(e),e._start=bo((Ra(n)?n:n||t!==pa?Xo(t,n,e):t._time)+e._delay),e._end=bo(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),Mo(t,e,"_first","_last",t._sort?"_start":0),qo(e)||(t._recent=e),r||zo(t,e),t._ts<0&&Yo(t,t._tTime),t},Ho=function(t,e){return(Ka.ScrollTrigger||Ja("scrollTrigger",e))&&Ka.ScrollTrigger.create(e,t)},Go=function(t,e,n,r,i){return Zs(t,e,i),t._initted?!n&&t._pt&&!da&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&ba!==Os.frame?(oo.push(t),t._lazy=[i,r],1):void 0:1},Wo=function t(e){var n=e.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||t(n))},qo=function(t){var e=t.data;return"isFromStart"===e||"isStart"===e},$o=function(t,e,n,r){var i=t._repeat,a=bo(e)||0,o=t._tTime/t._tDur;return o&&!r&&(t._time*=a/t._dur),t._dur=a,t._tDur=i?i<0?1e10:bo(a*(i+1)+t._rDelay*i):a,o>0&&!r&&Yo(t,t._tTime=t._tDur*o),t.parent&&Lo(t),n||Ro(t.parent,t),t},Ko=function(t){return t instanceof Hs?Ro(t):$o(t,t._dur)},Zo={_start:0,endTime:eo,totalDuration:eo},Xo=function t(e,n,r){var i,a,o,s=e.labels,l=e._recent||Zo,u=e.duration()>=xa?l.endTime(!1):e._dur;return Pa(n)&&(isNaN(n)||n in s)?(a=n.charAt(0),o="%"===n.substr(-1),i=n.indexOf("="),"<"===a||">"===a?(i>=0&&(n=n.replace(/=/,"")),("<"===a?l._start:l.endTime(l._repeat>=0))+(parseFloat(n.substr(1))||0)*(o?(i<0?l:r).totalDuration()/100:1)):i<0?(n in s||(s[n]=u),s[n]):(a=parseFloat(n.charAt(i-1)+n.substr(i+1)),o&&r&&(a=a/100*(Ya(r)?r[0]:r).totalDuration()),i>1?t(e,n.substr(0,i-1),r)+a:u+a)):null==n?u:+n},Jo=function(t,e,n){var r,i,a=Ra(e[1]),o=(a?2:1)+(t<2?0:1),s=e[o];if(a&&(s.duration=e[1]),s.parent=n,t){for(r=s,i=n;i&&!("immediateRender"in r);)r=i.vars.defaults||{},i=Ia(i.vars.inherit)&&i.parent;s.immediateRender=Ia(r.immediateRender),t<2?s.runBackwards=1:s.startAt=e[o-1]}return new el(e[0],s,e[o+1])},Qo=function(t,e){return t||0===t?e(t):e},ts=function(t,e,n){return n<t?t:n>e?e:n},es=function(t,e){return Pa(t)&&(e=$a.exec(t))?e[1]:""},ns=[].slice,rs=function(t,e){return t&&Ba(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&Ba(t[0]))&&!t.nodeType&&t!==va},is=function(t,e,n){return void 0===n&&(n=[]),t.forEach((function(t){var r;return Pa(t)&&!e||rs(t,1)?(r=n).push.apply(r,as(t)):n.push(t)}))||n},as=function(t,e,n){return fa&&!e&&fa.selector?fa.selector(t):!Pa(t)||n||!ga&&As()?Ya(t)?is(t,n):rs(t)?ns.call(t,0):t?[t]:[]:ns.call((e||ma).querySelectorAll(t),0)},os=function(t){return t=as(t)[0]||Qa("Invalid scope")||{},function(e){var n=t.current||t.nativeElement||t;return as(e,n.querySelectorAll?n:n===t?Qa("Invalid scope")||ma.createElement("div"):t)}},ss=function(t){return t.sort((function(){return.5-Math.random()}))},ls=function(t){if(Va(t))return t;var e=Ba(t)?t:{each:t},n=Is(e.ease),r=e.from||0,i=parseFloat(e.base)||0,a={},o=r>0&&r<1,s=isNaN(r)||o,l=e.axis,u=r,c=r;return Pa(r)?u=c={center:.5,edges:.5,end:1}[r]||0:!o&&s&&(u=r[0],c=r[1]),function(t,o,h){var d,f,p,v,g,m,y,b,_,w=(h||e).length,D=a[w];if(!D){if(!(_="auto"===e.grid?0:(e.grid||[1,xa])[1])){for(y=-1e8;y<(y=h[_++].getBoundingClientRect().left)&&_<w;);_<w&&_--}for(D=a[w]=[],d=s?Math.min(_,w)*u-.5:r%_,f=_===xa?0:s?w*c/_-.5:r/_|0,y=0,b=xa,m=0;m<w;m++)p=m%_-d,v=f-(m/_|0),D[m]=g=l?Math.abs("y"===l?v:p):Oa(p*p+v*v),g>y&&(y=g),g<b&&(b=g);"random"===r&&ss(D),D.max=y-b,D.min=b,D.v=w=(parseFloat(e.amount)||parseFloat(e.each)*(_>w?w-1:l?"y"===l?w/_:_:Math.max(_,w/_))||0)*("edges"===r?-1:1),D.b=w<0?i-w:i,D.u=es(e.amount||e.each)||0,n=n&&w<0?Ns(n):n}return w=(D[t]-D.min)/D.max||0,bo(D.b+(n?n(w):w)*D.v)+D.u}},us=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(n){var r=bo(Math.round(parseFloat(n)/t)*t*e);return(r-r%1)/e+(Ra(n)?0:es(n))}},cs=function(t,e){var n,r,i=Ya(t);return!i&&Ba(t)&&(n=i=t.radius||xa,t.values?(t=as(t.values),(r=!Ra(t[0]))&&(n*=n)):t=us(t.increment)),Qo(e,i?Va(t)?function(e){return r=t(e),Math.abs(r-e)<=n?r:e}:function(e){for(var i,a,o=parseFloat(r?e.x:e),s=parseFloat(r?e.y:0),l=xa,u=0,c=t.length;c--;)(i=r?(i=t[c].x-o)*i+(a=t[c].y-s)*a:Math.abs(t[c]-o))<l&&(l=i,u=c);return u=!n||l<=n?t[u]:e,r||u===e||Ra(e)?u:u+es(e)}:us(t))},hs=function(t,e,n,r){return Qo(Ya(t)?!e:!0===n?!!(n=0):!r,(function(){return Ya(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}))},ds=function(t,e,n){return Qo(n,(function(n){return t[~~e(n)]}))},fs=function(t){for(var e,n,r,i,a=0,o="";~(e=t.indexOf("random(",a));)r=t.indexOf(")",e),i="["===t.charAt(e+7),n=t.substr(e+7,r-e-7).match(i?qa:za),o+=t.substr(a,e-a)+hs(i?n:+n[0],i?0:+n[1],+n[2]||1e-5),a=r+1;return o+t.substr(a,t.length-a)},ps=function(t,e,n,r,i){var a=e-t,o=r-n;return Qo(i,(function(e){return n+((e-t)/a*o||0)}))},vs=function(t,e,n){var r,i,a,o=t.labels,s=xa;for(r in o)(i=o[r]-e)<0==!!n&&i&&s>(i=Math.abs(i))&&(a=r,s=i);return a},gs=function(t,e,n){var r,i,a,o=t.vars,s=o[e],l=fa,u=t._ctx;if(s)return r=o[e+"Params"],i=o.callbackScope||t,n&&oo.length&&Do(),u&&(fa=u),a=r?s.apply(i,r):s.call(i),fa=l,a},ms=function(t){return Vo(t),t.scrollTrigger&&t.scrollTrigger.kill(!!da),t.progress()<1&&gs(t,"onInterrupt"),t},ys=[],bs=function(t){if(Fa()&&t){var e=(t=!t.name&&t.default||t).name,n=Va(t),r=e&&!n&&t.init?function(){this._props=[]}:t,i={init:eo,render:cl,add:$s,kill:dl,modifier:hl,rawVars:0},a={targetTest:0,get:0,getSetter:ol,aliases:{},register:0};if(As(),t!==r){if(lo[e])return;ko(r,ko(Oo(t,i),a)),Co(r.prototype,Co(i,Oo(t,a))),lo[r.prop=e]=r,t.targetTest&&(ho.push(r),ao[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}to(e,r),t.register&&t.register(El,r,vl)}else t&&ys.push(t)},_s=255,ws={aqua:[0,_s,_s],lime:[0,_s,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,_s],navy:[0,0,128],white:[_s,_s,_s],olive:[128,128,0],yellow:[_s,_s,0],orange:[_s,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[_s,0,0],pink:[_s,192,203],cyan:[0,_s,_s],transparent:[_s,_s,_s,0]},Ds=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)*_s+.5|0},Ss=function(t,e,n){var r,i,a,o,s,l,u,c,h,d,f=t?Ra(t)?[t>>16,t>>8&_s,t&_s]:0:ws.black;if(!f){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),ws[t])f=ws[t];else if("#"===t.charAt(0)){if(t.length<6&&(r=t.charAt(1),i=t.charAt(2),a=t.charAt(3),t="#"+r+r+i+i+a+a+(5===t.length?t.charAt(4)+t.charAt(4):"")),9===t.length)return[(f=parseInt(t.substr(1,6),16))>>16,f>>8&_s,f&_s,parseInt(t.substr(7),16)/255];f=[(t=parseInt(t.substr(1),16))>>16,t>>8&_s,t&_s]}else if("hsl"===t.substr(0,3))if(f=d=t.match(za),e){if(~t.indexOf("="))return f=t.match(Ua),n&&f.length<4&&(f[3]=1),f}else o=+f[0]%360/360,s=+f[1]/100,r=2*(l=+f[2]/100)-(i=l<=.5?l*(s+1):l+s-l*s),f.length>3&&(f[3]*=1),f[0]=Ds(o+1/3,r,i),f[1]=Ds(o,r,i),f[2]=Ds(o-1/3,r,i);else f=t.match(za)||ws.transparent;f=f.map(Number)}return e&&!d&&(r=f[0]/_s,i=f[1]/_s,a=f[2]/_s,l=((u=Math.max(r,i,a))+(c=Math.min(r,i,a)))/2,u===c?o=s=0:(h=u-c,s=l>.5?h/(2-u-c):h/(u+c),o=u===r?(i-a)/h+(i<a?6:0):u===i?(a-r)/h+2:(r-i)/h+4,o*=60),f[0]=~~(o+.5),f[1]=~~(100*s+.5),f[2]=~~(100*l+.5)),n&&f.length<4&&(f[3]=1),f},xs=function(t){var e=[],n=[],r=-1;return t.split(ks).forEach((function(t){var i=t.match(Ha)||[];e.push.apply(e,i),n.push(r+=i.length+1)})),e.c=n,e},Ts=function(t,e,n){var r,i,a,o,s="",l=(t+s).match(ks),u=e?"hsla(":"rgba(",c=0;if(!l)return t;if(l=l.map((function(t){return(t=Ss(t,e,1))&&u+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"})),n&&(a=xs(t),(r=n.c).join(s)!==a.c.join(s)))for(o=(i=t.replace(ks,"1").split(Ha)).length-1;c<o;c++)s+=i[c]+(~r.indexOf(c)?l.shift()||u+"0,0,0,0)":(a.length?a:l.length?l:n).shift());if(!i)for(o=(i=t.split(ks)).length-1;c<o;c++)s+=i[c]+l[c];return s+i[o]},ks=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(t in ws)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),Cs=/hsl[a]?\(/,Es=function(t){var e,n=t.join(" ");if(ks.lastIndex=0,ks.test(n))return e=Cs.test(n),t[1]=Ts(t[1],e),t[0]=Ts(t[0],e,xs(t[1])),!0},Os=function(){var t,e,n,r,i,a,o=Date.now,s=500,l=33,u=o(),c=u,h=1e3/240,d=h,f=[],p=function n(p){var v,g,m,y,b=o()-c,_=!0===p;if(b>s&&(u+=b-l),((v=(m=(c+=b)-u)-d)>0||_)&&(y=++r.frame,i=m-1e3*r.time,r.time=m/=1e3,d+=v+(v>=h?4:h-v),g=1),_||(t=e(n)),g)for(a=0;a<f.length;a++)f[a](m,i,y,p)};return r={time:0,frame:0,tick:function(){p(!0)},deltaRatio:function(t){return i/(1e3/(t||60))},wake:function(){ya&&(!ga&&Fa()&&(va=ga=window,ma=va.document||{},Ka.gsap=El,(va.gsapVersions||(va.gsapVersions=[])).push(El.version),Xa(Za||va.GreenSockGlobals||!va.gsap&&va||{}),n=va.requestAnimationFrame,ys.forEach(bs)),t&&r.sleep(),e=n||function(t){return setTimeout(t,d-1e3*r.time+1|0)},wa=1,p(2))},sleep:function(){(n?va.cancelAnimationFrame:clearTimeout)(t),wa=0,e=eo},lagSmoothing:function(t,e){s=t||1/0,l=Math.min(e||33,s)},fps:function(t){h=1e3/(t||240),d=1e3*r.time+h},add:function(t,e,n){var i=e?function(e,n,a,o){t(e,n,a,o),r.remove(i)}:t;return r.remove(t),f[n?"unshift":"push"](i),As(),i},remove:function(t,e){~(e=f.indexOf(t))&&f.splice(e,1)&&a>=e&&a--},_listeners:f},r}(),As=function(){return!wa&&Os.wake()},Ms={},Ps=/^[\d.\-M][\d.\-,\s]/,Vs=/["']/g,Rs=function(t){for(var e,n,r,i={},a=t.substr(1,t.length-3).split(":"),o=a[0],s=1,l=a.length;s<l;s++)n=a[s],e=s!==l-1?n.lastIndexOf(","):n.length,r=n.substr(0,e),i[o]=isNaN(r)?r.replace(Vs,"").trim():+r,o=n.substr(e+1).trim();return i},Ns=function(t){return function(e){return 1-t(1-e)}},Bs=function t(e,n){for(var r,i=e._first;i;)i instanceof Hs?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},Is=function(t,e){return t&&(Va(t)?t:Ms[t]||function(t){var e=(t+"").split("("),n=Ms[e[0]];return n&&e.length>1&&n.config?n.config.apply(null,~t.indexOf("{")?[Rs(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(xo)):Ms._CE&&Ps.test(t)?Ms._CE("",t):n}(t))||e},Fs=function(t,e,n,r){void 0===n&&(n=function(t){return 1-e(1-t)}),void 0===r&&(r=function(t){return t<.5?e(2*t)/2:1-e(2*(1-t))/2});var i,a={easeIn:e,easeOut:n,easeInOut:r};return mo(t,(function(t){for(var e in Ms[t]=Ka[t]=a,Ms[i=t.toLowerCase()]=n,a)Ms[i+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=Ms[t+"."+e]=a[e]})),a},js=function(t){return function(e){return e<.5?(1-t(1-2*e))/2:.5+t(2*(e-.5))/2}},Ls=function t(e,n,r){var i=n>=1?n:1,a=(r||(e?.3:.45))/(n<1?n:1),o=a/ka*(Math.asin(1/i)||0),s=function(t){return 1===t?1:i*Math.pow(2,-10*t)*Ma((t-o)*a)+1},l="out"===e?s:"in"===e?function(t){return 1-s(1-t)}:js(s);return a=ka/a,l.config=function(n,r){return t(e,n,r)},l},Ys=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)}:js(r);return i.config=function(n){return t(e,n)},i};mo("Linear,Quad,Cubic,Quart,Quint,Strong",(function(t,e){var n=e<5?e+1:e;Fs(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}))})),Ms.Linear.easeNone=Ms.none=Ms.Linear.easeIn,Fs("Elastic",Ls("in"),Ls("out"),Ls()),function(t,e){var n=1/e,r=function(r){return r<n?t*r*r:r<.7272727272727273?t*Math.pow(r-1.5/e,2)+.75:r<.9090909090909092?t*(r-=2.25/e)*r+.9375:t*Math.pow(r-2.625/e,2)+.984375};Fs("Bounce",(function(t){return 1-r(1-t)}),r)}(7.5625,2.75),Fs("Expo",(function(t){return t?Math.pow(2,10*(t-1)):0})),Fs("Circ",(function(t){return-(Oa(1-t*t)-1)})),Fs("Sine",(function(t){return 1===t?1:1-Aa(t*Ca)})),Fs("Back",Ys("in"),Ys("out"),Ys()),Ms.SteppedEase=Ms.steps=Ka.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*ts(0,.99999999,t)|0)+i)*n}}},Sa.ease=Ms["quad.out"],mo("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",(function(t){return fo+=t+","+t+"Params,"}));var zs=function(t,e){this.id=Ea++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:go,this.set=e?e.getSetter:ol},Us=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,$o(this,+t.duration,1,1),this.data=t.data,fa&&(this._ctx=fa,fa.data.push(this)),wa||Os.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,$o(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(As(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(Yo(this,t),!n._dp||n.parent||zo(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)&&Uo(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===Ta||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),So(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+Io(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.ratio},e.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?t:1-t)+Io(this),e):this.duration()?Math.min(1,this._time/this._dur):this.ratio},e.iteration=function(t,e){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*n,e):this._repeat?Fo(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?jo(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||-1e-8===t?0:this._rts,this.totalTime(ts(-Math.abs(this._delay),this._tDur,n),!1!==e),Lo(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):(As(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==Ta&&(this._tTime-=Ta)))),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)&&Uo(e,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(Ia(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?jo(e.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){void 0===t&&(t=io);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,Ko(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var e=this._time;return this._rDelay=t,Ko(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(Xo(this,t),Ia(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,Ia(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)-Ta))},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=Va(t)?t:To,i=function(){var t=e.then;e.then=null,Va(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(){ms(this)},t}();ko(Us.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 Hs=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=Ia(e.sortChildren),pa&&Uo(e.parent||pa,ua(r),n),e.reversed&&r.reverse(),e.paused&&r.paused(!0),e.scrollTrigger&&Ho(ua(r),e.scrollTrigger),r}ca(e,t);var n=e.prototype;return n.to=function(t,e,n){return Jo(0,arguments,this),this},n.from=function(t,e,n){return Jo(1,arguments,this),this},n.fromTo=function(t,e,n,r){return Jo(2,arguments,this),this},n.set=function(t,e,n){return e.duration=0,e.parent=this,Ao(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new el(t,e,Xo(this,n),1),this},n.call=function(t,e,n){return Uo(this,el.delayedCall(0,t,e),n)},n.staggerTo=function(t,e,n,r,i,a,o){return n.duration=e,n.stagger=n.stagger||r,n.onComplete=a,n.onCompleteParams=o,n.parent=this,new el(t,n,Xo(this,i)),this},n.staggerFrom=function(t,e,n,r,i,a,o){return n.runBackwards=1,Ao(n).immediateRender=Ia(n.immediateRender),this.staggerTo(t,e,n,r,i,a,o)},n.staggerFromTo=function(t,e,n,r,i,a,o,s){return r.startAt=n,Ao(r).immediateRender=Ia(r.immediateRender),this.staggerTo(t,e,r,i,a,o,s)},n.render=function(t,e,n){var r,i,a,o,s,l,u,c,h,d,f,p,v=this._time,g=this._dirty?this.totalDuration():this._tDur,m=this._dur,y=t<=0?0:bo(t),b=this._zTime<0!=t<0&&(this._initted||!m);if(this!==pa&&y>g&&t>=0&&(y=g),y!==this._tTime||n||b){if(v!==this._time&&m&&(y+=this._time-v,t+=this._time-v),r=y,h=this._start,l=!(c=this._ts),b&&(m||(v=this._zTime),(t||!e)&&(this._zTime=t)),this._repeat){if(f=this._yoyo,s=m+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*s+t,e,n);if(r=bo(y%s),y===g?(o=this._repeat,r=m):((o=~~(y/s))&&o===y/s&&(r=m,o--),r>m&&(r=m)),d=Fo(this._tTime,s),!v&&this._tTime&&d!==o&&this._tTime-d*s-this._dur<=0&&(d=o),f&&1&o&&(r=m-r,p=1),o!==d&&!this._lock){var _=f&&1&d,w=_===(f&&1&o);if(o<d&&(_=!_),v=_?0:y%m?m:y,this._lock=1,this.render(v||(p?0:bo(o*s)),e,!m)._lock=0,this._tTime=y,!e&&this.parent&&gs(this,"onRepeat"),this.vars.repeatRefresh&&!p&&(this.invalidate()._lock=1),v&&v!==this._time||l!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(m=this._dur,g=this._tDur,w&&(this._lock=2,v=_?m:-1e-4,this.render(v,!0),this.vars.repeatRefresh&&!p&&this.invalidate()),this._lock=0,!this._ts&&!l)return this;Bs(this,p)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(u=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,bo(v),bo(r)),u&&(y-=r-(r=u._start))),this._tTime=y,this._time=r,this._act=!c,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t,v=0),!v&&r&&!e&&!o&&(gs(this,"onStart"),this._tTime!==y))return this;if(r>=v&&t>=0)for(i=this._first;i;){if(a=i._next,(i._act||r>=i._start)&&i._ts&&u!==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){u=0,a&&(y+=this._zTime=-1e-8);break}}i=a}else{i=this._last;for(var D=t<0?t:r;i;){if(a=i._prev,(i._act||D<=i._end)&&i._ts&&u!==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){u=0,a&&(y+=this._zTime=D?-1e-8:Ta);break}}i=a}}if(u&&!e&&(this.pause(),u.render(r>=v?0:-1e-8)._zTime=r>=v?1:-1,this._ts))return this._start=h,Lo(this),this.render(t,e,n);this._onUpdate&&!e&&gs(this,"onUpdate",!0),(y===g&&this._tTime>=this.totalDuration()||!y&&v)&&(h!==this._start&&Math.abs(c)===Math.abs(this._ts)||this._lock||((t||!m)&&(y===g&&this._ts>0||!y&&this._ts<0)&&Vo(this,1),e||t<0&&!v||!y&&!v&&g||(gs(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(Ra(e)||(e=Xo(this,e,t)),!(t instanceof Us)){if(Ya(t))return t.forEach((function(t){return n.add(t,e)})),this;if(Pa(t))return this.addLabel(t,e);if(!Va(t))return this;t=el.delayedCall(0,t)}return this!==t?Uo(this,t,e):this},n.getChildren=function(t,e,n,r){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===n&&(n=!0),void 0===r&&(r=-1e8);for(var i=[],a=this._first;a;)a._start>=r&&(a instanceof el?e&&i.push(a):(n&&i.push(a),t&&i.push.apply(i,a.getChildren(!0,e,n)))),a=a._next;return i},n.getById=function(t){for(var e=this.getChildren(1,1,1),n=e.length;n--;)if(e[n].vars.id===t)return e[n]},n.remove=function(t){return Pa(t)?this.removeLabel(t):Va(t)?this.killTweensOf(t):(Po(this,t),t===this._recent&&(this._recent=this._last),Ro(this))},n.totalTime=function(e,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=bo(Os.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]=Xo(this,e),this},n.removeLabel=function(t){return delete this.labels[t],this},n.addPause=function(t,e,n){var r=el.delayedCall(0,e||eo,n);return r.data="isPause",this._hasPause=1,Uo(this,r,Xo(this,t))},n.removePause=function(t){var e=this._first;for(t=Xo(this,t);e;)e._start===t&&"isPause"===e.data&&Vo(e),e=e._next},n.killTweensOf=function(t,e,n){for(var r=this.getTweensOf(t,n),i=r.length;i--;)Gs!==r[i]&&r[i].kill(t,e);return this},n.getTweensOf=function(t,e){for(var n,r=[],i=as(t),a=this._first,o=Ra(e);a;)a instanceof el?wo(a._targets,i)&&(o?(!Gs||a._initted&&a._ts)&&a.globalTime(0)<=e&&a.globalTime(a.totalDuration())>e:!e||a.isActive())&&r.push(a):(n=a.getTweensOf(i,e)).length&&r.push.apply(r,n),a=a._next;return r},n.tweenTo=function(t,e){e=e||{};var n,r=this,i=Xo(r,t),a=e,o=a.startAt,s=a.onStart,l=a.onStartParams,u=a.immediateRender,c=el.to(r,ko({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:i,overwrite:"auto",duration:e.duration||Math.abs((i-(o&&"time"in o?o.time:r._time))/r.timeScale())||Ta,onStart:function(){if(r.pause(),!n){var t=e.duration||Math.abs((i-(o&&"time"in o?o.time:r._time))/r.timeScale());c._dur!==t&&$o(c,t,0,1).render(c._time,!0,!0),n=1}s&&s.apply(c,l||[])}},e));return u?c.render(0):c},n.tweenFromTo=function(t,e,n){return this.tweenTo(e,ko({startAt:{time:Xo(this,t)}},n))},n.recent=function(){return this._recent},n.nextLabel=function(t){return void 0===t&&(t=this._time),vs(this,Xo(this,t))},n.previousLabel=function(t){return void 0===t&&(t=this._time),vs(this,Xo(this,t),1)},n.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+Ta)},n.shiftChildren=function(t,e,n){void 0===n&&(n=0);for(var r,i=this._first,a=this.labels;i;)i._start>=n&&(i._start+=t,i._end+=t),i=i._next;if(e)for(r in a)a[r]>=n&&(a[r]+=t);return Ro(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={}),Ro(this)},n.totalDuration=function(t){var e,n,r,i=0,a=this,o=a._last,s=xa;if(arguments.length)return a.timeScale((a._repeat<0?a.duration():a.totalDuration())/(a.reversed()?-t:t));if(a._dirty){for(r=a.parent;o;)e=o._prev,o._dirty&&o.totalDuration(),(n=o._start)>s&&a._sort&&o._ts&&!a._lock?(a._lock=1,Uo(a,o,n-o._delay,1)._lock=0):s=n,n<0&&o._ts&&(i-=n,(!r&&!a._dp||r&&r.smoothChildTiming)&&(a._start+=n/a._ts,a._time-=n,a._tTime-=n),a.shiftChildren(-n,!1,-Infinity),s=0),o._end>i&&o._ts&&(i=o._end),o=e;$o(a,a===pa&&a._time>i?a._time:i,1,1),a._dirty=0}return a._tDur},e.updateRoot=function(t){if(pa._ts&&(So(pa,jo(t,pa)),ba=Os.frame),Os.frame>=co){co+=Da.autoSleep||120;var e=pa._first;if((!e||!e._ts)&&Da.autoSleep&&Os._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||Os.sleep()}}},e}(Us);ko(Hs.prototype,{_lock:0,_hasPause:0,_forcing:0});var Gs,Ws,qs=function(t,e,n,r,i,a,o){var s,l,u,c,h,d,f,p,v=new vl(this._pt,t,e,0,1,ul,null,i),g=0,m=0;for(v.b=n,v.e=r,n+="",(f=~(r+="").indexOf("random("))&&(r=fs(r)),a&&(a(p=[n,r],t,e),n=p[0],r=p[1]),l=n.match(Ga)||[];s=Ga.exec(r);)c=s[0],h=r.substring(g,s.index),u?u=(u+1)%5:"rgba("===h.substr(-5)&&(u=1),c!==l[m++]&&(d=parseFloat(l[m-1])||0,v._pt={_next:v._pt,p:h||1===m?h:",",s:d,c:"="===c.charAt(1)?_o(d,c)-d:parseFloat(c)-d,m:u&&u<4?Math.round:0},g=Ga.lastIndex);return v.c=g<r.length?r.substring(g,r.length):"",v.fp=o,(Wa.test(r)||f)&&(v.e=0),this._pt=v,v},$s=function(t,e,n,r,i,a,o,s,l,u){Va(r)&&(r=r(i||0,t,a));var c,h=t[e],d="get"!==n?n:Va(h)?l?t[e.indexOf("set")||!Va(t["get"+e.substr(3)])?e:"get"+e.substr(3)](l):t[e]():h,f=Va(h)?l?il:rl:nl;if(Pa(r)&&(~r.indexOf("random(")&&(r=fs(r)),"="===r.charAt(1)&&((c=_o(d,r)+(es(d)||0))||0===c)&&(r=c)),!u||d!==r||Ws)return isNaN(d*r)||""===r?(!h&&!(e in t)&&Ja(e,r),qs.call(this,t,e,d,r,f,s||Da.stringFilter,l)):(c=new vl(this._pt,t,e,+d||0,r-(d||0),"boolean"==typeof h?ll:sl,0,f),l&&(c.fp=l),o&&c.modifier(o,this,t),this._pt=c)},Ks=function(t,e,n,r,i,a){var o,s,l,u;if(lo[t]&&!1!==(o=new lo[t]).init(i,o.rawVars?e[t]:function(t,e,n,r,i){if(Va(t)&&(t=Js(t,i,e,n,r)),!Ba(t)||t.style&&t.nodeType||Ya(t)||La(t))return Pa(t)?Js(t,i,e,n,r):t;var a,o={};for(a in t)o[a]=Js(t[a],i,e,n,r);return o}(e[t],r,i,a,n),n,r,a)&&(n._pt=s=new vl(n._pt,i,t,0,1,o.render,o,0,o.priority),n!==_a))for(l=n._ptLookup[n._targets.indexOf(i)],u=o._props.length;u--;)l[o._props[u]]=s;return o},Zs=function t(e,n,r){var i,a,o,s,l,u,c,h,d,f,p,v,g,m=e.vars,y=m.ease,b=m.startAt,_=m.immediateRender,w=m.lazy,D=m.onUpdate,S=m.runBackwards,x=m.yoyoEase,T=m.keyframes,k=m.autoRevert,C=e._dur,E=e._startAt,O=e._targets,A=e.parent,M=A&&"nested"===A.data?A.vars.targets:O,P="auto"===e._overwrite&&!ha,V=e.timeline;if(V&&(!T||!y)&&(y="none"),e._ease=Is(y,Sa.ease),e._yEase=x?Ns(Is(!0===x?y:x,Sa.ease)):0,x&&e._yoyo&&!e._repeat&&(x=e._yEase,e._yEase=e._ease,e._ease=x),e._from=!V&&!!m.runBackwards,!V||T&&!m.stagger){if(v=(h=O[0]?vo(O[0]).harness:0)&&m[h.prop],i=Oo(m,ao),E&&(E._zTime<0&&E.progress(1),n<0&&S&&_&&!k?E.render(-1,!0):E.revert(S&&C?ro:no),E._lazy=0),b){if(Vo(e._startAt=el.set(O,ko({data:"isStart",overwrite:!1,parent:A,immediateRender:!0,lazy:!E&&Ia(w),startAt:null,delay:0,onUpdate:D&&function(){return gs(e,"onUpdate")},stagger:0},b))),e._startAt._dp=0,e._startAt._sat=e,n<0&&(da||!_&&!k)&&e._startAt.revert(ro),_&&C&&n<=0&&r<=0)return void(n&&(e._zTime=n))}else if(S&&C&&!E)if(n&&(_=!1),o=ko({overwrite:!1,data:"isFromStart",lazy:_&&!E&&Ia(w),immediateRender:_,stagger:0,parent:A},i),v&&(o[h.prop]=v),Vo(e._startAt=el.set(O,o)),e._startAt._dp=0,e._startAt._sat=e,n<0&&(da?e._startAt.revert(ro):e._startAt.render(-1,!0)),e._zTime=n,_){if(!n)return}else t(e._startAt,Ta,Ta);for(e._pt=e._ptCache=0,w=C&&Ia(w)||w&&!C,a=0;a<O.length;a++){if(c=(l=O[a])._gsap||po(O)[a]._gsap,e._ptLookup[a]=f={},so[c.id]&&oo.length&&Do(),p=M===O?a:M.indexOf(l),h&&!1!==(d=new h).init(l,v||i,e,p,M)&&(e._pt=s=new vl(e._pt,l,d.name,0,1,d.render,d,0,d.priority),d._props.forEach((function(t){f[t]=s})),d.priority&&(u=1)),!h||v)for(o in i)lo[o]&&(d=Ks(o,i,e,p,l,M))?d.priority&&(u=1):f[o]=s=$s.call(e,l,o,"get",i[o],p,M,0,m.stringFilter);e._op&&e._op[a]&&e.kill(l,e._op[a]),P&&e._pt&&(Gs=e,pa.killTweensOf(l,f,e.globalTime(n)),g=!e.parent,Gs=0),e._pt&&w&&(so[c.id]=1)}u&&pl(e),e._onInit&&e._onInit(e)}e._onUpdate=D,e._initted=(!e._op||e._pt)&&!g,T&&n<=0&&V.render(xa,!0,!0)},Xs=function(t,e,n,r){var i,a,o=e.ease||r||"power1.inOut";if(Ya(e))a=n[t]||(n[t]=[]),e.forEach((function(t,n){return a.push({t:n/(e.length-1)*100,v:t,e:o})}));else for(i in e)a=n[i]||(n[i]=[]),"ease"===i||a.push({t:parseFloat(t),v:e[i],e:o})},Js=function(t,e,n,r,i){return Va(t)?t.call(e,n,r,i):Pa(t)&&~t.indexOf("random(")?fs(t):t},Qs=fo+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",tl={};mo(Qs+",id,stagger,delay,duration,paused,scrollTrigger",(function(t){return tl[t]=1}));var el=function(t){function e(e,n,r,i){var a;"number"==typeof n&&(r.duration=n,n=r,r=null);var o,s,l,u,c,h,d,f,p=(a=t.call(this,i?n:Ao(n))||this).vars,v=p.duration,g=p.delay,m=p.immediateRender,y=p.stagger,b=p.overwrite,_=p.keyframes,w=p.defaults,D=p.scrollTrigger,S=p.yoyoEase,x=n.parent||pa,T=(Ya(e)||La(e)?Ra(e[0]):"length"in n)?[e]:as(e);if(a._targets=T.length?po(T):Qa("GSAP target "+e+" not found. https://gsap.com",!Da.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=b,_||y||ja(v)||ja(g)){if(n=a.vars,(o=a.timeline=new Hs({data:"nested",defaults:w||{},targets:x&&"nested"===x.data?x.vars.targets:T})).kill(),o.parent=o._dp=ua(a),o._start=0,y||ja(v)||ja(g)){if(u=T.length,d=y&&ls(y),Ba(y))for(c in y)~Qs.indexOf(c)&&(f||(f={}),f[c]=y[c]);for(s=0;s<u;s++)(l=Oo(n,tl)).stagger=0,S&&(l.yoyoEase=S),f&&Co(l,f),h=T[s],l.duration=+Js(v,ua(a),s,h,T),l.delay=(+Js(g,ua(a),s,h,T)||0)-a._delay,!y&&1===u&&l.delay&&(a._delay=g=l.delay,a._start+=g,l.delay=0),o.to(h,l,d?d(s,h,T):0),o._ease=Ms.none;o.duration()?v=g=0:a.timeline=0}else if(_){Ao(ko(o.vars.defaults,{ease:"none"})),o._ease=Is(_.ease||n.ease||"none");var k,C,E,O=0;if(Ya(_))_.forEach((function(t){return o.to(T,t,">")})),o.duration();else{for(c in l={},_)"ease"===c||"easeEach"===c||Xs(c,_[c],l,_.easeEach);for(c in l)for(k=l[c].sort((function(t,e){return t.t-e.t})),O=0,s=0;s<k.length;s++)(E={ease:(C=k[s]).e,duration:(C.t-(s?k[s-1].t:0))/100*v})[c]=C.v,o.to(T,E,O),O+=E.duration;o.duration()<v&&o.to({},{duration:v-o.duration()})}}v||a.duration(v=o.duration())}else a.timeline=0;return!0!==b||ha||(Gs=ua(a),pa.killTweensOf(T),Gs=0),Uo(x,ua(a),r),n.reversed&&a.reverse(),n.paused&&a.paused(!0),(m||!v&&!_&&a._start===bo(x._time)&&Ia(m)&&Bo(ua(a))&&"nested"!==x.data)&&(a._tTime=-1e-8,a.render(Math.max(0,-g)||0)),D&&Ho(ua(a),D),a}ca(e,t);var n=e.prototype;return n.render=function(t,e,n){var r,i,a,o,s,l,u,c,h,d=this._time,f=this._tDur,p=this._dur,v=t<0,g=t>f-Ta&&!v?f:t<Ta?0:t;if(p){if(g!==this._tTime||!t||n||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==v){if(r=g,c=this.timeline,this._repeat){if(o=p+this._rDelay,this._repeat<-1&&v)return this.totalTime(100*o+t,e,n);if(r=bo(g%o),g===f?(a=this._repeat,r=p):((a=~~(g/o))&&a===bo(g/o)&&(r=p,a--),r>p&&(r=p)),(l=this._yoyo&&1&a)&&(h=this._yEase,r=p-r),s=Fo(this._tTime,o),r===d&&!n&&this._initted&&a===s)return this._tTime=g,this;a!==s&&(c&&this._yEase&&Bs(c,l),this.vars.repeatRefresh&&!l&&!this._lock&&this._time!==p&&this._initted&&(this._lock=n=1,this.render(bo(o*a),!0).invalidate()._lock=0))}if(!this._initted){if(Go(this,v?t:r,n,e,g))return this._tTime=0,this;if(!(d===this._time||n&&this.vars.repeatRefresh&&a!==s))return this;if(p!==this._dur)return this.render(t,e,n)}if(this._tTime=g,this._time=r,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=u=(h||this._ease)(r/p),this._from&&(this.ratio=u=1-u),r&&!d&&!e&&!a&&(gs(this,"onStart"),this._tTime!==g))return this;for(i=this._pt;i;)i.r(u,i.d),i=i._next;c&&c.render(t<0?t:!r&&l?-1e-8:c._dur*c._ease(r/this._dur),e,n)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(v&&No(this,t,0,n),gs(this,"onUpdate")),this._repeat&&a!==s&&this.vars.onRepeat&&!e&&this.parent&&gs(this,"onRepeat"),g!==this._tDur&&g||this._tTime!==g||(v&&!this._onUpdate&&No(this,t,0,!0),(t||!p)&&(g===this._tDur&&this._ts>0||!g&&this._ts<0)&&Vo(this,1),e||v&&!d||!(g||d||l)||(gs(this,g===f?"onComplete":"onReverseComplete",!0),this._prom&&!(g<f&&this.timeScale()>0)&&this._prom()))}}else!function(t,e,n,r){var i,a,o,s=t.ratio,l=e<0||!e&&(!t._start&&Wo(t)&&(t._initted||!qo(t))||(t._ts<0||t._dp._ts<0)&&!qo(t))?0:1,u=t._rDelay,c=0;if(u&&t._repeat&&(c=ts(0,t._tDur,e),a=Fo(c,u),t._yoyo&&1&a&&(l=1-l),a!==Fo(t._tTime,u)&&(s=1-l,t.vars.repeatRefresh&&t._initted&&t.invalidate())),l!==s||da||r||t._zTime===Ta||!e&&t._zTime){if(!t._initted&&Go(t,e,r,n,c))return;for(o=t._zTime,t._zTime=e||(n?Ta:0),n||(n=e&&!o),t.ratio=l,t._from&&(l=1-l),t._time=0,t._tTime=c,i=t._pt;i;)i.r(l,i.d),i=i._next;e<0&&No(t,e,0,!0),t._onUpdate&&!n&&gs(t,"onUpdate"),c&&t._repeat&&!n&&t.parent&&gs(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===l&&(l&&Vo(t,1),n||da||(gs(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){wa||Os.wake(),this._ts||this.play();var a=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||Zs(this,a),function(t,e,n,r,i,a,o,s){var l,u,c,h,d=(t._pt&&t._ptCache||(t._ptCache={}))[e];if(!d)for(d=t._ptCache[e]=[],c=t._ptLookup,h=t._targets.length;h--;){if((l=c[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 Ws=1,t.vars[e]="+=0",Zs(t,o),Ws=0,s?Qa(e+" not eligible for reset"):1;d.push(l)}for(h=d.length;h--;)(l=(u=d[h])._pt||u).s=!r&&0!==r||i?l.s+(r||0)+a*l.c:r,l.c=n-l.s,u.e&&(u.e=yo(n)+es(u.e)),u.b&&(u.b=l.s+es(u.b))}(this,t,e,n,r,this._ease(a/this._dur),a,i)?this.resetTo(t,e,n,r,1):(Yo(this,0),this.parent||Mo(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?ms(this):this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,Gs&&!0!==Gs.vars.overwrite)._first||ms(this),this.parent&&n!==this.timeline.totalDuration()&&$o(this,this._dur*this.timeline._tDur/n,0,1),this}var r,i,a,o,s,l,u,c=this._targets,h=t?as(t):c,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}(c,h))return"all"===e&&(this._pt=0),ms(this);for(r=this._op=this._op||[],"all"!==e&&(Pa(e)&&(s={},mo(e,(function(t){return s[t]=1})),e=s),e=function(t,e){var n,r,i,a,o=t[0]?vo(t[0]).harness:0,s=o&&o.aliases;if(!s)return e;for(r in n=Co({},e),s)if(r in n)for(i=(a=s[r].split(",")).length;i--;)n[a[i]]=n[r];return n}(c,e)),u=c.length;u--;)if(~h.indexOf(c[u]))for(s in i=d[u],"all"===e?(r[u]=e,o=i,a={}):(a=r[u]=r[u]||{},o=e),o)(l=i&&i[s])&&("kill"in l.d&&!0!==l.d.kill(s)||Po(this,l,"_pt"),delete i[s]),"all"!==a&&(a[s]=1);return this._initted&&!this._pt&&f&&ms(this),this},e.to=function(t,n){return new e(t,n,arguments[2])},e.from=function(t,e){return Jo(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 Jo(2,arguments)},e.set=function(t,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new e(t,n)},e.killTweensOf=function(t,e,n){return pa.killTweensOf(t,e,n)},e}(Us);ko(el.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),mo("staggerTo,staggerFrom,staggerFromTo",(function(t){el[t]=function(){var e=new Hs,n=ns.call(arguments,0);return n.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,n)}}));var nl=function(t,e,n){return t[e]=n},rl=function(t,e,n){return t[e](n)},il=function(t,e,n,r){return t[e](r.fp,n)},al=function(t,e,n){return t.setAttribute(e,n)},ol=function(t,e){return Va(t[e])?rl:Na(t[e])&&t.setAttribute?al:nl},sl=function(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},ll=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},ul=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)},cl=function(t,e){for(var n=e._pt;n;)n.r(t,n.d),n=n._next},hl=function(t,e,n,r){for(var i,a=this._pt;a;)i=a._next,a.p===r&&a.modifier(t,e,n),a=i},dl=function(t){for(var e,n,r=this._pt;r;)n=r._next,r.p===t&&!r.op||r.op===t?Po(this,r,"_pt"):r.dep||(e=1),r=n;return!e},fl=function(t,e,n,r){r.mSet(t,e,r.m.call(r.tween,n,r.mt),r)},pl=function(t){for(var e,n,r,i,a=t._pt;a;){for(e=a._next,n=r;n&&n.pr>a.pr;)n=n._next;(a._prev=n?n._prev:i)?a._prev._next=a:r=a,(a._next=n)?n._prev=a:i=a,a=e}t._pt=r},vl=function(){function t(t,e,n,r,i,a,o,s,l){this.t=e,this.s=r,this.c=i,this.p=n,this.r=a||sl,this.d=o||this,this.set=s||nl,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=fl,this.m=t,this.mt=n,this.tween=e},t}();mo(fo+"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 ao[t]=1})),Ka.TweenMax=Ka.TweenLite=el,Ka.TimelineLite=Ka.TimelineMax=Hs,pa=new Hs({sortChildren:!1,defaults:Sa,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),Da.stringFilter=Es;var gl=[],ml={},yl=[],bl=0,_l=0,wl=function(t){return(ml[t]||yl).map((function(t){return t()}))},Dl=function(){var t=Date.now(),e=[];t-bl>2&&(wl("matchMediaInit"),gl.forEach((function(t){var n,r,i,a,o=t.queries,s=t.conditions;for(r in o)(n=va.matchMedia(o[r]).matches)&&(i=1),n!==s[r]&&(s[r]=n,a=1);a&&(t.revert(),i&&e.push(t))})),wl("matchMediaRevert"),e.forEach((function(t){return t.onMatch(t,(function(e){return t.add(null,e)}))})),bl=t,wl("matchMedia"))},Sl=function(){function t(t,e){this.selector=e&&os(e),this.data=[],this._r=[],this.isReverted=!1,this.id=_l++,t&&this.add(t)}var e=t.prototype;return e.add=function(t,e,n){Va(t)&&(n=e,e=t,t=Va);var r=this,i=function(){var t,i=fa,a=r.selector;return i&&i!==r&&i.data.push(r),n&&(r.selector=os(n)),fa=r,t=e.apply(r,arguments),Va(t)&&r._r.push(t),fa=i,r.selector=a,r.isReverted=!1,t};return r.last=i,t===Va?i(r,(function(t){return r.add(null,t)})):t?r[t]=i:i},e.ignore=function(t){var e=fa;fa=null,t(this),fa=e},e.getTweens=function(){var e=[];return this.data.forEach((function(n){return n instanceof t?e.push.apply(e,n.getTweens()):n instanceof el&&!(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 Hs?"nested"!==e.data&&(e.scrollTrigger&&e.scrollTrigger.revert(),e.kill()):!(e instanceof el)&&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=gl.length;r--;)gl[r].id===this.id&&gl.splice(r,1)},e.revert=function(t){this.kill(t||{})},t}(),xl=function(){function t(t){this.contexts=[],this.scope=t}var e=t.prototype;return e.add=function(t,e,n){Ba(t)||(t={matches:t});var r,i,a,o=new Sl(0,n||this.scope),s=o.conditions={};for(i in fa&&!o.selector&&(o.selector=fa.selector),this.contexts.push(o),e=o.add("onMatch",e),o.queries=t,t)"all"===i?a=1:(r=va.matchMedia(t[i]))&&(gl.indexOf(o)<0&&gl.push(o),(s[i]=r.matches)&&(a=1),r.addListener?r.addListener(Dl):r.addEventListener("change",Dl));return a&&e(o,(function(t){return o.add(null,t)})),this},e.revert=function(t){this.kill(t||{})},e.kill=function(t){this.contexts.forEach((function(e){return e.kill(t,!0)}))},t}(),Tl={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 bs(t)}))},timeline:function(t){return new Hs(t)},getTweensOf:function(t,e){return pa.getTweensOf(t,e)},getProperty:function(t,e,n,r){Pa(t)&&(t=as(t)[0]);var i=vo(t||{}).get,a=n?To:xo;return"native"===n&&(n=""),t?e?a((lo[e]&&lo[e].get||i)(t,e,n,r)):function(e,n,r){return a((lo[e]&&lo[e].get||i)(t,e,n,r))}:t},quickSetter:function(t,e,n){if((t=as(t)).length>1){var r=t.map((function(t){return El.quickSetter(t,e,n)})),i=r.length;return function(t){for(var e=i;e--;)r[e](t)}}t=t[0]||{};var a=lo[e],o=vo(t),s=o.harness&&(o.harness.aliases||{})[e]||e,l=a?function(e){var r=new a;_a._pt=0,r.init(t,n?e+n:e,_a,0,[t]),r.render(1,r),_a._pt&&cl(1,_a)}:o.set(t,s);return a?l:function(e){return l(t,s,n?e+n:e,o,1)}},quickTo:function(t,e,n){var r,i=El.to(t,Co(((r={})[e]="+=0.1",r.paused=!0,r),n||{})),a=function(t,n,r){return i.resetTo(e,t,n,r)};return a.tween=i,a},isTweening:function(t){return pa.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Is(t.ease,Sa.ease)),Eo(Sa,t||{})},config:function(t){return Eo(Da,t||{})},registerEffect:function(t){var e=t.name,n=t.effect,r=t.plugins,i=t.defaults,a=t.extendTimeline;(r||"").split(",").forEach((function(t){return t&&!lo[t]&&!Ka[t]&&Qa(e+" effect requires "+t+" plugin.")})),uo[e]=function(t,e,r){return n(as(t),ko(e||{},i),r)},a&&(Hs.prototype[e]=function(t,n,r){return this.add(uo[e](t,Ba(n)?n:(r=n)&&{},this),r)})},registerEase:function(t,e){Ms[t]=Is(e)},parseEase:function(t,e){return arguments.length?Is(t,e):Ms},getById:function(t){return pa.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var n,r,i=new Hs(t);for(i.smoothChildTiming=Ia(t.smoothChildTiming),pa.remove(i),i._dp=0,i._time=i._tTime=pa._time,n=pa._first;n;)r=n._next,!e&&!n._dur&&n instanceof el&&n.vars.onComplete===n._targets[0]||Uo(i,n,n._start-n._delay),n=r;return Uo(pa,i,0),i},context:function(t,e){return t?new Sl(t,e):fa},matchMedia:function(t){return new xl(t)},matchMediaRefresh:function(){return gl.forEach((function(t){var e,n,r=t.conditions;for(n in r)r[n]&&(r[n]=!1,e=1);e&&t.revert()}))||Dl()},addEventListener:function(t,e){var n=ml[t]||(ml[t]=[]);~n.indexOf(e)||n.push(e)},removeEventListener:function(t,e){var n=ml[t],r=n&&n.indexOf(e);r>=0&&n.splice(r,1)},utils:{wrap:function t(e,n,r){var i=n-e;return Ya(e)?ds(e,t(0,e.length),n):Qo(r,(function(t){return(i+(t-e)%i)%i+e}))},wrapYoyo:function t(e,n,r){var i=n-e,a=2*i;return Ya(e)?ds(e,t(0,e.length-1),n):Qo(r,(function(t){return e+((t=(a+(t-e)%a)%a||0)>i?a-t:t)}))},distribute:ls,random:hs,snap:cs,normalize:function(t,e,n){return ps(t,e,0,1,n)},getUnit:es,clamp:function(t,e,n){return Qo(n,(function(n){return ts(t,e,n)}))},splitColor:Ss,toArray:as,selector:os,mapRange:ps,pipe:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return e.reduce((function(t,e){return e(t)}),t)}},unitize:function(t,e){return function(n){return t(parseFloat(n))+(e||es(n))}},interpolate:function t(e,n,r,i){var a=isNaN(e+n)?0:function(t){return(1-t)*e+t*n};if(!a){var o,s,l,u,c,h=Pa(e),d={};if(!0===r&&(i=1)&&(r=null),h)e={p:e},n={p:n};else if(Ya(e)&&!Ya(n)){for(l=[],u=e.length,c=u-2,s=1;s<u;s++)l.push(t(e[s-1],e[s]));u--,a=function(t){t*=u;var e=Math.min(c,~~t);return l[e](t-e)},r=n}else i||(e=Co(Ya(e)?[]:{},e));if(!l){for(o in n)$s.call(d,e,o,"get",n[o]);a=function(t){return cl(t,d)||(h?e.p:e)}}}return Qo(r,a)},shuffle:ss},install:Xa,effects:uo,ticker:Os,updateRoot:Hs.updateRoot,plugins:lo,globalTimeline:pa,core:{PropTween:vl,globals:to,Tween:el,Timeline:Hs,Animation:Us,getCache:vo,_removeLinkedListItem:Po,reverting:function(){return da},context:function(t){return t&&fa&&(fa.data.push(t),t._ctx=fa),fa},suppressOverwrites:function(t){return ha=t}}};mo("to,from,fromTo,delayedCall,set,killTweensOf",(function(t){return Tl[t]=el[t]})),Os.add(Hs.updateRoot),_a=Tl.to({},{duration:0});var kl=function(t,e){for(var n=t._pt;n&&n.p!==e&&n.op!==e&&n.fp!==e;)n=n._next;return n},Cl=function(t,e){return{name:t,rawVars:1,init:function(t,n,r){r._onInit=function(t){var r,i;if(Pa(n)&&(r={},mo(n,(function(t){return r[t]=1})),n=r),e){for(i in r={},n)r[i]=e(n[i]);n=r}!function(t,e){var n,r,i,a=t._targets;for(n in e)for(r=a.length;r--;)(i=t._ptLookup[r][n])&&(i=i.d)&&(i._pt&&(i=kl(i,n)),i&&i.modifier&&i.modifier(e[n],t,a[r],n))}(t,n)}}}},El=Tl.registerPlugin({name:"attr",init:function(t,e,n,r,i){var a,o,s;for(a in this.tween=n,e)s=t.getAttribute(a)||"",(o=this.add(t,"setAttribute",(s||0)+"",e[a],r,i,0,0,a)).op=a,o.b=s,this._props.push(a)},render:function(t,e){for(var n=e._pt;n;)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)}},Cl("roundProps",us),Cl("modifiers"),Cl("snap",cs))||Tl;el.version=Hs.version=El.version="3.12.3",ya=1,Fa()&&As(),Ms.Power0,Ms.Power1,Ms.Power2,Ms.Power3,Ms.Power4,Ms.Linear,Ms.Quad,Ms.Cubic,Ms.Quart,Ms.Quint,Ms.Strong,Ms.Elastic,Ms.Back,Ms.SteppedEase,Ms.Bounce,Ms.Sine,Ms.Expo,Ms.Circ;
|
|
41
|
+
*/var da,fa,pa,va,ga,ma,ya,ba,_a,wa,Da,Sa={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},xa={duration:.5,overwrite:!1,delay:0},Ta=1e8,ka=1e-8,Ca=2*Math.PI,Ea=Ca/4,Oa=0,Aa=Math.sqrt,Ma=Math.cos,Pa=Math.sin,Va=function(t){return"string"==typeof t},Ra=function(t){return"function"==typeof t},Na=function(t){return"number"==typeof t},Ba=function(t){return void 0===t},Ia=function(t){return"object"==typeof t},Fa=function(t){return!1!==t},ja=function(){return"undefined"!=typeof window},La=function(t){return Ra(t)||Va(t)},Ya="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},za=Array.isArray,Ua=/(?:-?\.?\d|\.)+/gi,Ha=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Ga=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,qa=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,Wa=/[+-]=-?[.\d]+/,$a=/[^,'"\[\]\s]+/gi,Ka=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,Za={},Xa={},Ja=function(t){return(Xa=Eo(t,Za))&&Ol},Qa=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},to=function(t,e){return!e&&console.warn(t)},eo=function(t,e){return t&&(Za[t]=e)&&Xa&&(Xa[t]=e)||Za},no=function(){return 0},ro={suppressEvents:!0,isStart:!0,kill:!1},io={suppressEvents:!0,kill:!1},ao={suppressEvents:!0},oo={},so=[],lo={},uo={},co={},ho=30,fo=[],po="",vo=function(t){var e,n,r=t[0];if(Ia(r)||Ra(r)||(t=[t]),!(e=(r._gsap||{}).harness)){for(n=fo.length;n--&&!fo[n].targetTest(r););e=fo[n]}for(n=t.length;n--;)t[n]&&(t[n]._gsap||(t[n]._gsap=new Us(t[n],e)))||t.splice(n,1);return t},go=function(t){return t._gsap||vo(os(t))[0]._gsap},mo=function(t,e,n){return(n=t[e])&&Ra(n)?t[e]():Ba(n)&&t.getAttribute&&t.getAttribute(e)||n},yo=function(t,e){return(t=t.split(",")).forEach(e)||t},bo=function(t){return Math.round(1e5*t)/1e5||0},_o=function(t){return Math.round(1e7*t)/1e7||0},wo=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},Do=function(t,e){for(var n=e.length,r=0;t.indexOf(e[r])<0&&++r<n;);return r<n},So=function(){var t,e,n=so.length,r=so.slice(0);for(lo={},so.length=0,t=0;t<n;t++)(e=r[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)},xo=function(t,e,n,r){so.length&&!fa&&So(),t.render(e,n,r||fa&&e<0&&(t._initted||t._startAt)),so.length&&!fa&&So()},To=function(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match($a).length<2?e:Va(t)?t.trim():t},ko=function(t){return t},Co=function(t,e){for(var n in e)n in t||(t[n]=e[n]);return t},Eo=function(t,e){for(var n in e)t[n]=e[n];return t},Oo=function t(e,n){for(var r in n)"__proto__"!==r&&"constructor"!==r&&"prototype"!==r&&(e[r]=Ia(n[r])?t(e[r]||(e[r]={}),n[r]):n[r]);return e},Ao=function(t,e){var n,r={};for(n in t)n in e||(r[n]=t[n]);return r},Mo=function(t){var e,n=t.parent||va,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])}):Co;if(Fa(t.inherit))for(;n;)r(t,n.vars.defaults),n=n.parent||n._dp;return t},Po=function(t,e,n,r,i){void 0===n&&(n="_first"),void 0===r&&(r="_last");var a,o=t[r];if(i)for(a=e[i];o&&o[i]>a;)o=o._prev;return o?(e._next=o._next,o._next=e):(e._next=t[n],t[n]=e),e._next?e._next._prev=e:t[r]=e,e._prev=o,e.parent=e._dp=t,e},Vo=function(t,e,n,r){void 0===n&&(n="_first"),void 0===r&&(r="_last");var i=e._prev,a=e._next;i?i._next=a:t[n]===e&&(t[n]=a),a?a._prev=i:t[r]===e&&(t[r]=i),e._next=e._prev=e.parent=null},Ro=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},No=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},Bo=function(t,e,n,r){return t._startAt&&(fa?t._startAt.revert(io):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,r))},Io=function t(e){return!e||e._ts&&t(e.parent)},Fo=function(t){return t._repeat?jo(t._tTime,t=t.duration()+t._rDelay)*t:0},jo=function(t,e){var n=Math.floor(t/=e);return t&&n===t?n-1:n},Lo=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},Yo=function(t){return t._end=_o(t._start+(t._tDur/Math.abs(t._ts||t._rts||ka)||0))},zo=function(t,e){var n=t._dp;return n&&n.smoothChildTiming&&t._ts&&(t._start=_o(n._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),Yo(t),n._dirty||No(n,t)),t},Uo=function(t,e){var n;if((e._time||!e._dur&&e._initted||e._start<t._time&&(e._dur||!e.add))&&(n=Lo(t.rawTime(),e),(!e._dur||es(0,e.totalDuration(),n)-e._tTime>ka)&&e.render(n,!0)),No(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}},Ho=function(t,e,n,r){return e.parent&&Ro(e),e._start=_o((Na(n)?n:n||t!==va?Jo(t,n,e):t._time)+e._delay),e._end=_o(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),Po(t,e,"_first","_last",t._sort?"_start":0),$o(e)||(t._recent=e),r||Uo(t,e),t._ts<0&&zo(t,t._tTime),t},Go=function(t,e){return(Za.ScrollTrigger||Qa("scrollTrigger",e))&&Za.ScrollTrigger.create(e,t)},qo=function(t,e,n,r,i){return Xs(t,e,i),t._initted?!n&&t._pt&&!fa&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&_a!==As.frame?(so.push(t),t._lazy=[i,r],1):void 0:1},Wo=function t(e){var n=e.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||t(n))},$o=function(t){var e=t.data;return"isFromStart"===e||"isStart"===e},Ko=function(t,e,n,r){var i=t._repeat,a=_o(e)||0,o=t._tTime/t._tDur;return o&&!r&&(t._time*=a/t._dur),t._dur=a,t._tDur=i?i<0?1e10:_o(a*(i+1)+t._rDelay*i):a,o>0&&!r&&zo(t,t._tTime=t._tDur*o),t.parent&&Yo(t),n||No(t.parent,t),t},Zo=function(t){return t instanceof Gs?No(t):Ko(t,t._dur)},Xo={_start:0,endTime:no,totalDuration:no},Jo=function t(e,n,r){var i,a,o,s=e.labels,l=e._recent||Xo,u=e.duration()>=Ta?l.endTime(!1):e._dur;return Va(n)&&(isNaN(n)||n in s)?(a=n.charAt(0),o="%"===n.substr(-1),i=n.indexOf("="),"<"===a||">"===a?(i>=0&&(n=n.replace(/=/,"")),("<"===a?l._start:l.endTime(l._repeat>=0))+(parseFloat(n.substr(1))||0)*(o?(i<0?l:r).totalDuration()/100:1)):i<0?(n in s||(s[n]=u),s[n]):(a=parseFloat(n.charAt(i-1)+n.substr(i+1)),o&&r&&(a=a/100*(za(r)?r[0]:r).totalDuration()),i>1?t(e,n.substr(0,i-1),r)+a:u+a)):null==n?u:+n},Qo=function(t,e,n){var r,i,a=Na(e[1]),o=(a?2:1)+(t<2?0:1),s=e[o];if(a&&(s.duration=e[1]),s.parent=n,t){for(r=s,i=n;i&&!("immediateRender"in r);)r=i.vars.defaults||{},i=Fa(i.vars.inherit)&&i.parent;s.immediateRender=Fa(r.immediateRender),t<2?s.runBackwards=1:s.startAt=e[o-1]}return new nl(e[0],s,e[o+1])},ts=function(t,e){return t||0===t?e(t):e},es=function(t,e,n){return n<t?t:n>e?e:n},ns=function(t,e){return Va(t)&&(e=Ka.exec(t))?e[1]:""},rs=[].slice,is=function(t,e){return t&&Ia(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&Ia(t[0]))&&!t.nodeType&&t!==ga},as=function(t,e,n){return void 0===n&&(n=[]),t.forEach((function(t){var r;return Va(t)&&!e||is(t,1)?(r=n).push.apply(r,os(t)):n.push(t)}))||n},os=function(t,e,n){return pa&&!e&&pa.selector?pa.selector(t):!Va(t)||n||!ma&&Ms()?za(t)?as(t,n):is(t)?rs.call(t,0):t?[t]:[]:rs.call((e||ya).querySelectorAll(t),0)},ss=function(t){return t=os(t)[0]||to("Invalid scope")||{},function(e){var n=t.current||t.nativeElement||t;return os(e,n.querySelectorAll?n:n===t?to("Invalid scope")||ya.createElement("div"):t)}},ls=function(t){return t.sort((function(){return.5-Math.random()}))},us=function(t){if(Ra(t))return t;var e=Ia(t)?t:{each:t},n=Fs(e.ease),r=e.from||0,i=parseFloat(e.base)||0,a={},o=r>0&&r<1,s=isNaN(r)||o,l=e.axis,u=r,c=r;return Va(r)?u=c={center:.5,edges:.5,end:1}[r]||0:!o&&s&&(u=r[0],c=r[1]),function(t,o,h){var d,f,p,v,g,m,y,b,_,w=(h||e).length,D=a[w];if(!D){if(!(_="auto"===e.grid?0:(e.grid||[1,Ta])[1])){for(y=-1e8;y<(y=h[_++].getBoundingClientRect().left)&&_<w;);_<w&&_--}for(D=a[w]=[],d=s?Math.min(_,w)*u-.5:r%_,f=_===Ta?0:s?w*c/_-.5:r/_|0,y=0,b=Ta,m=0;m<w;m++)p=m%_-d,v=f-(m/_|0),D[m]=g=l?Math.abs("y"===l?v:p):Aa(p*p+v*v),g>y&&(y=g),g<b&&(b=g);"random"===r&&ls(D),D.max=y-b,D.min=b,D.v=w=(parseFloat(e.amount)||parseFloat(e.each)*(_>w?w-1:l?"y"===l?w/_:_:Math.max(_,w/_))||0)*("edges"===r?-1:1),D.b=w<0?i-w:i,D.u=ns(e.amount||e.each)||0,n=n&&w<0?Bs(n):n}return w=(D[t]-D.min)/D.max||0,_o(D.b+(n?n(w):w)*D.v)+D.u}},cs=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(n){var r=_o(Math.round(parseFloat(n)/t)*t*e);return(r-r%1)/e+(Na(n)?0:ns(n))}},hs=function(t,e){var n,r,i=za(t);return!i&&Ia(t)&&(n=i=t.radius||Ta,t.values?(t=os(t.values),(r=!Na(t[0]))&&(n*=n)):t=cs(t.increment)),ts(e,i?Ra(t)?function(e){return r=t(e),Math.abs(r-e)<=n?r:e}:function(e){for(var i,a,o=parseFloat(r?e.x:e),s=parseFloat(r?e.y:0),l=Ta,u=0,c=t.length;c--;)(i=r?(i=t[c].x-o)*i+(a=t[c].y-s)*a:Math.abs(t[c]-o))<l&&(l=i,u=c);return u=!n||l<=n?t[u]:e,r||u===e||Na(e)?u:u+ns(e)}:cs(t))},ds=function(t,e,n,r){return ts(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}))},fs=function(t,e,n){return ts(n,(function(n){return t[~~e(n)]}))},ps=function(t){for(var e,n,r,i,a=0,o="";~(e=t.indexOf("random(",a));)r=t.indexOf(")",e),i="["===t.charAt(e+7),n=t.substr(e+7,r-e-7).match(i?$a:Ua),o+=t.substr(a,e-a)+ds(i?n:+n[0],i?0:+n[1],+n[2]||1e-5),a=r+1;return o+t.substr(a,t.length-a)},vs=function(t,e,n,r,i){var a=e-t,o=r-n;return ts(i,(function(e){return n+((e-t)/a*o||0)}))},gs=function(t,e,n){var r,i,a,o=t.labels,s=Ta;for(r in o)(i=o[r]-e)<0==!!n&&i&&s>(i=Math.abs(i))&&(a=r,s=i);return a},ms=function(t,e,n){var r,i,a,o=t.vars,s=o[e],l=pa,u=t._ctx;if(s)return r=o[e+"Params"],i=o.callbackScope||t,n&&so.length&&So(),u&&(pa=u),a=r?s.apply(i,r):s.call(i),pa=l,a},ys=function(t){return Ro(t),t.scrollTrigger&&t.scrollTrigger.kill(!!fa),t.progress()<1&&ms(t,"onInterrupt"),t},bs=[],_s=function(t){if(ja()&&t){var e=(t=!t.name&&t.default||t).name,n=Ra(t),r=e&&!n&&t.init?function(){this._props=[]}:t,i={init:no,render:hl,add:Ks,kill:fl,modifier:dl,rawVars:0},a={targetTest:0,get:0,getSetter:sl,aliases:{},register:0};if(Ms(),t!==r){if(uo[e])return;Co(r,Co(Ao(t,i),a)),Eo(r.prototype,Eo(i,Ao(t,a))),uo[r.prop=e]=r,t.targetTest&&(fo.push(r),oo[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}eo(e,r),t.register&&t.register(Ol,r,gl)}else t&&bs.push(t)},ws=255,Ds={aqua:[0,ws,ws],lime:[0,ws,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,ws],navy:[0,0,128],white:[ws,ws,ws],olive:[128,128,0],yellow:[ws,ws,0],orange:[ws,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[ws,0,0],pink:[ws,192,203],cyan:[0,ws,ws],transparent:[ws,ws,ws,0]},Ss=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)*ws+.5|0},xs=function(t,e,n){var r,i,a,o,s,l,u,c,h,d,f=t?Na(t)?[t>>16,t>>8&ws,t&ws]:0:Ds.black;if(!f){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),Ds[t])f=Ds[t];else if("#"===t.charAt(0)){if(t.length<6&&(r=t.charAt(1),i=t.charAt(2),a=t.charAt(3),t="#"+r+r+i+i+a+a+(5===t.length?t.charAt(4)+t.charAt(4):"")),9===t.length)return[(f=parseInt(t.substr(1,6),16))>>16,f>>8&ws,f&ws,parseInt(t.substr(7),16)/255];f=[(t=parseInt(t.substr(1),16))>>16,t>>8&ws,t&ws]}else if("hsl"===t.substr(0,3))if(f=d=t.match(Ua),e){if(~t.indexOf("="))return f=t.match(Ha),n&&f.length<4&&(f[3]=1),f}else o=+f[0]%360/360,s=+f[1]/100,r=2*(l=+f[2]/100)-(i=l<=.5?l*(s+1):l+s-l*s),f.length>3&&(f[3]*=1),f[0]=Ss(o+1/3,r,i),f[1]=Ss(o,r,i),f[2]=Ss(o-1/3,r,i);else f=t.match(Ua)||Ds.transparent;f=f.map(Number)}return e&&!d&&(r=f[0]/ws,i=f[1]/ws,a=f[2]/ws,l=((u=Math.max(r,i,a))+(c=Math.min(r,i,a)))/2,u===c?o=s=0:(h=u-c,s=l>.5?h/(2-u-c):h/(u+c),o=u===r?(i-a)/h+(i<a?6:0):u===i?(a-r)/h+2:(r-i)/h+4,o*=60),f[0]=~~(o+.5),f[1]=~~(100*s+.5),f[2]=~~(100*l+.5)),n&&f.length<4&&(f[3]=1),f},Ts=function(t){var e=[],n=[],r=-1;return t.split(Cs).forEach((function(t){var i=t.match(Ga)||[];e.push.apply(e,i),n.push(r+=i.length+1)})),e.c=n,e},ks=function(t,e,n){var r,i,a,o,s="",l=(t+s).match(Cs),u=e?"hsla(":"rgba(",c=0;if(!l)return t;if(l=l.map((function(t){return(t=xs(t,e,1))&&u+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"})),n&&(a=Ts(t),(r=n.c).join(s)!==a.c.join(s)))for(o=(i=t.replace(Cs,"1").split(Ga)).length-1;c<o;c++)s+=i[c]+(~r.indexOf(c)?l.shift()||u+"0,0,0,0)":(a.length?a:l.length?l:n).shift());if(!i)for(o=(i=t.split(Cs)).length-1;c<o;c++)s+=i[c]+l[c];return s+i[o]},Cs=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(t in Ds)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),Es=/hsl[a]?\(/,Os=function(t){var e,n=t.join(" ");if(Cs.lastIndex=0,Cs.test(n))return e=Es.test(n),t[1]=ks(t[1],e),t[0]=ks(t[0],e,Ts(t[1])),!0},As=function(){var t,e,n,r,i,a,o=Date.now,s=500,l=33,u=o(),c=u,h=1e3/240,d=h,f=[],p=function n(p){var v,g,m,y,b=o()-c,_=!0===p;if(b>s&&(u+=b-l),((v=(m=(c+=b)-u)-d)>0||_)&&(y=++r.frame,i=m-1e3*r.time,r.time=m/=1e3,d+=v+(v>=h?4:h-v),g=1),_||(t=e(n)),g)for(a=0;a<f.length;a++)f[a](m,i,y,p)};return r={time:0,frame:0,tick:function(){p(!0)},deltaRatio:function(t){return i/(1e3/(t||60))},wake:function(){ba&&(!ma&&ja()&&(ga=ma=window,ya=ga.document||{},Za.gsap=Ol,(ga.gsapVersions||(ga.gsapVersions=[])).push(Ol.version),Ja(Xa||ga.GreenSockGlobals||!ga.gsap&&ga||{}),n=ga.requestAnimationFrame,bs.forEach(_s)),t&&r.sleep(),e=n||function(t){return setTimeout(t,d-1e3*r.time+1|0)},Da=1,p(2))},sleep:function(){(n?ga.cancelAnimationFrame:clearTimeout)(t),Da=0,e=no},lagSmoothing:function(t,e){s=t||1/0,l=Math.min(e||33,s)},fps:function(t){h=1e3/(t||240),d=1e3*r.time+h},add:function(t,e,n){var i=e?function(e,n,a,o){t(e,n,a,o),r.remove(i)}:t;return r.remove(t),f[n?"unshift":"push"](i),Ms(),i},remove:function(t,e){~(e=f.indexOf(t))&&f.splice(e,1)&&a>=e&&a--},_listeners:f},r}(),Ms=function(){return!Da&&As.wake()},Ps={},Vs=/^[\d.\-M][\d.\-,\s]/,Rs=/["']/g,Ns=function(t){for(var e,n,r,i={},a=t.substr(1,t.length-3).split(":"),o=a[0],s=1,l=a.length;s<l;s++)n=a[s],e=s!==l-1?n.lastIndexOf(","):n.length,r=n.substr(0,e),i[o]=isNaN(r)?r.replace(Rs,"").trim():+r,o=n.substr(e+1).trim();return i},Bs=function(t){return function(e){return 1-t(1-e)}},Is=function t(e,n){for(var r,i=e._first;i;)i instanceof Gs?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},Fs=function(t,e){return t&&(Ra(t)?t:Ps[t]||function(t){var e=(t+"").split("("),n=Ps[e[0]];return n&&e.length>1&&n.config?n.config.apply(null,~t.indexOf("{")?[Ns(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(To)):Ps._CE&&Vs.test(t)?Ps._CE("",t):n}(t))||e},js=function(t,e,n,r){void 0===n&&(n=function(t){return 1-e(1-t)}),void 0===r&&(r=function(t){return t<.5?e(2*t)/2:1-e(2*(1-t))/2});var i,a={easeIn:e,easeOut:n,easeInOut:r};return yo(t,(function(t){for(var e in Ps[t]=Za[t]=a,Ps[i=t.toLowerCase()]=n,a)Ps[i+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=Ps[t+"."+e]=a[e]})),a},Ls=function(t){return function(e){return e<.5?(1-t(1-2*e))/2:.5+t(2*(e-.5))/2}},Ys=function t(e,n,r){var i=n>=1?n:1,a=(r||(e?.3:.45))/(n<1?n:1),o=a/Ca*(Math.asin(1/i)||0),s=function(t){return 1===t?1:i*Math.pow(2,-10*t)*Pa((t-o)*a)+1},l="out"===e?s:"in"===e?function(t){return 1-s(1-t)}:Ls(s);return a=Ca/a,l.config=function(n,r){return t(e,n,r)},l},zs=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)}:Ls(r);return i.config=function(n){return t(e,n)},i};yo("Linear,Quad,Cubic,Quart,Quint,Strong",(function(t,e){var n=e<5?e+1:e;js(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}))})),Ps.Linear.easeNone=Ps.none=Ps.Linear.easeIn,js("Elastic",Ys("in"),Ys("out"),Ys()),function(t,e){var n=1/e,r=function(r){return r<n?t*r*r:r<.7272727272727273?t*Math.pow(r-1.5/e,2)+.75:r<.9090909090909092?t*(r-=2.25/e)*r+.9375:t*Math.pow(r-2.625/e,2)+.984375};js("Bounce",(function(t){return 1-r(1-t)}),r)}(7.5625,2.75),js("Expo",(function(t){return t?Math.pow(2,10*(t-1)):0})),js("Circ",(function(t){return-(Aa(1-t*t)-1)})),js("Sine",(function(t){return 1===t?1:1-Ma(t*Ea)})),js("Back",zs("in"),zs("out"),zs()),Ps.SteppedEase=Ps.steps=Za.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*es(0,.99999999,t)|0)+i)*n}}},xa.ease=Ps["quad.out"],yo("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",(function(t){return po+=t+","+t+"Params,"}));var Us=function(t,e){this.id=Oa++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:mo,this.set=e?e.getSetter:sl},Hs=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,Ko(this,+t.duration,1,1),this.data=t.data,pa&&(this._ctx=pa,pa.data.push(this)),Da||As.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,Ko(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(Ms(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(zo(this,t),!n._dp||n.parent||Uo(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)&&Ho(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===ka||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),xo(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+Fo(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.ratio},e.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?t:1-t)+Fo(this),e):this.duration()?Math.min(1,this._time/this._dur):this.ratio},e.iteration=function(t,e){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*n,e):this._repeat?jo(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?Lo(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||-1e-8===t?0:this._rts,this.totalTime(es(-Math.abs(this._delay),this._tDur,n),!1!==e),Yo(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):(Ms(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==ka&&(this._tTime-=ka)))),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)&&Ho(e,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(Fa(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?Lo(e.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){void 0===t&&(t=ao);var e=fa;return fa=t,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),"nested"!==this.data&&!1!==t.kill&&this.kill(),fa=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,Zo(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var e=this._time;return this._rDelay=t,Zo(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(Jo(this,t),Fa(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,Fa(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)-ka))},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=Ra(t)?t:ko,i=function(){var t=e.then;e.then=null,Ra(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(){ys(this)},t}();Co(Hs.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 Gs=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=Fa(e.sortChildren),va&&Ho(e.parent||va,ca(r),n),e.reversed&&r.reverse(),e.paused&&r.paused(!0),e.scrollTrigger&&Go(ca(r),e.scrollTrigger),r}ha(e,t);var n=e.prototype;return n.to=function(t,e,n){return Qo(0,arguments,this),this},n.from=function(t,e,n){return Qo(1,arguments,this),this},n.fromTo=function(t,e,n,r){return Qo(2,arguments,this),this},n.set=function(t,e,n){return e.duration=0,e.parent=this,Mo(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new nl(t,e,Jo(this,n),1),this},n.call=function(t,e,n){return Ho(this,nl.delayedCall(0,t,e),n)},n.staggerTo=function(t,e,n,r,i,a,o){return n.duration=e,n.stagger=n.stagger||r,n.onComplete=a,n.onCompleteParams=o,n.parent=this,new nl(t,n,Jo(this,i)),this},n.staggerFrom=function(t,e,n,r,i,a,o){return n.runBackwards=1,Mo(n).immediateRender=Fa(n.immediateRender),this.staggerTo(t,e,n,r,i,a,o)},n.staggerFromTo=function(t,e,n,r,i,a,o,s){return r.startAt=n,Mo(r).immediateRender=Fa(r.immediateRender),this.staggerTo(t,e,r,i,a,o,s)},n.render=function(t,e,n){var r,i,a,o,s,l,u,c,h,d,f,p,v=this._time,g=this._dirty?this.totalDuration():this._tDur,m=this._dur,y=t<=0?0:_o(t),b=this._zTime<0!=t<0&&(this._initted||!m);if(this!==va&&y>g&&t>=0&&(y=g),y!==this._tTime||n||b){if(v!==this._time&&m&&(y+=this._time-v,t+=this._time-v),r=y,h=this._start,l=!(c=this._ts),b&&(m||(v=this._zTime),(t||!e)&&(this._zTime=t)),this._repeat){if(f=this._yoyo,s=m+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*s+t,e,n);if(r=_o(y%s),y===g?(o=this._repeat,r=m):((o=~~(y/s))&&o===y/s&&(r=m,o--),r>m&&(r=m)),d=jo(this._tTime,s),!v&&this._tTime&&d!==o&&this._tTime-d*s-this._dur<=0&&(d=o),f&&1&o&&(r=m-r,p=1),o!==d&&!this._lock){var _=f&&1&d,w=_===(f&&1&o);if(o<d&&(_=!_),v=_?0:y%m?m:y,this._lock=1,this.render(v||(p?0:_o(o*s)),e,!m)._lock=0,this._tTime=y,!e&&this.parent&&ms(this,"onRepeat"),this.vars.repeatRefresh&&!p&&(this.invalidate()._lock=1),v&&v!==this._time||l!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(m=this._dur,g=this._tDur,w&&(this._lock=2,v=_?m:-1e-4,this.render(v,!0),this.vars.repeatRefresh&&!p&&this.invalidate()),this._lock=0,!this._ts&&!l)return this;Is(this,p)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(u=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,_o(v),_o(r)),u&&(y-=r-(r=u._start))),this._tTime=y,this._time=r,this._act=!c,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t,v=0),!v&&r&&!e&&!o&&(ms(this,"onStart"),this._tTime!==y))return this;if(r>=v&&t>=0)for(i=this._first;i;){if(a=i._next,(i._act||r>=i._start)&&i._ts&&u!==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){u=0,a&&(y+=this._zTime=-1e-8);break}}i=a}else{i=this._last;for(var D=t<0?t:r;i;){if(a=i._prev,(i._act||D<=i._end)&&i._ts&&u!==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||fa&&(i._initted||i._startAt)),r!==this._time||!this._ts&&!l){u=0,a&&(y+=this._zTime=D?-1e-8:ka);break}}i=a}}if(u&&!e&&(this.pause(),u.render(r>=v?0:-1e-8)._zTime=r>=v?1:-1,this._ts))return this._start=h,Yo(this),this.render(t,e,n);this._onUpdate&&!e&&ms(this,"onUpdate",!0),(y===g&&this._tTime>=this.totalDuration()||!y&&v)&&(h!==this._start&&Math.abs(c)===Math.abs(this._ts)||this._lock||((t||!m)&&(y===g&&this._ts>0||!y&&this._ts<0)&&Ro(this,1),e||t<0&&!v||!y&&!v&&g||(ms(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(Na(e)||(e=Jo(this,e,t)),!(t instanceof Hs)){if(za(t))return t.forEach((function(t){return n.add(t,e)})),this;if(Va(t))return this.addLabel(t,e);if(!Ra(t))return this;t=nl.delayedCall(0,t)}return this!==t?Ho(this,t,e):this},n.getChildren=function(t,e,n,r){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===n&&(n=!0),void 0===r&&(r=-1e8);for(var i=[],a=this._first;a;)a._start>=r&&(a instanceof nl?e&&i.push(a):(n&&i.push(a),t&&i.push.apply(i,a.getChildren(!0,e,n)))),a=a._next;return i},n.getById=function(t){for(var e=this.getChildren(1,1,1),n=e.length;n--;)if(e[n].vars.id===t)return e[n]},n.remove=function(t){return Va(t)?this.removeLabel(t):Ra(t)?this.killTweensOf(t):(Vo(this,t),t===this._recent&&(this._recent=this._last),No(this))},n.totalTime=function(e,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=_o(As.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]=Jo(this,e),this},n.removeLabel=function(t){return delete this.labels[t],this},n.addPause=function(t,e,n){var r=nl.delayedCall(0,e||no,n);return r.data="isPause",this._hasPause=1,Ho(this,r,Jo(this,t))},n.removePause=function(t){var e=this._first;for(t=Jo(this,t);e;)e._start===t&&"isPause"===e.data&&Ro(e),e=e._next},n.killTweensOf=function(t,e,n){for(var r=this.getTweensOf(t,n),i=r.length;i--;)qs!==r[i]&&r[i].kill(t,e);return this},n.getTweensOf=function(t,e){for(var n,r=[],i=os(t),a=this._first,o=Na(e);a;)a instanceof nl?Do(a._targets,i)&&(o?(!qs||a._initted&&a._ts)&&a.globalTime(0)<=e&&a.globalTime(a.totalDuration())>e:!e||a.isActive())&&r.push(a):(n=a.getTweensOf(i,e)).length&&r.push.apply(r,n),a=a._next;return r},n.tweenTo=function(t,e){e=e||{};var n,r=this,i=Jo(r,t),a=e,o=a.startAt,s=a.onStart,l=a.onStartParams,u=a.immediateRender,c=nl.to(r,Co({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:i,overwrite:"auto",duration:e.duration||Math.abs((i-(o&&"time"in o?o.time:r._time))/r.timeScale())||ka,onStart:function(){if(r.pause(),!n){var t=e.duration||Math.abs((i-(o&&"time"in o?o.time:r._time))/r.timeScale());c._dur!==t&&Ko(c,t,0,1).render(c._time,!0,!0),n=1}s&&s.apply(c,l||[])}},e));return u?c.render(0):c},n.tweenFromTo=function(t,e,n){return this.tweenTo(e,Co({startAt:{time:Jo(this,t)}},n))},n.recent=function(){return this._recent},n.nextLabel=function(t){return void 0===t&&(t=this._time),gs(this,Jo(this,t))},n.previousLabel=function(t){return void 0===t&&(t=this._time),gs(this,Jo(this,t),1)},n.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+ka)},n.shiftChildren=function(t,e,n){void 0===n&&(n=0);for(var r,i=this._first,a=this.labels;i;)i._start>=n&&(i._start+=t,i._end+=t),i=i._next;if(e)for(r in a)a[r]>=n&&(a[r]+=t);return No(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={}),No(this)},n.totalDuration=function(t){var e,n,r,i=0,a=this,o=a._last,s=Ta;if(arguments.length)return a.timeScale((a._repeat<0?a.duration():a.totalDuration())/(a.reversed()?-t:t));if(a._dirty){for(r=a.parent;o;)e=o._prev,o._dirty&&o.totalDuration(),(n=o._start)>s&&a._sort&&o._ts&&!a._lock?(a._lock=1,Ho(a,o,n-o._delay,1)._lock=0):s=n,n<0&&o._ts&&(i-=n,(!r&&!a._dp||r&&r.smoothChildTiming)&&(a._start+=n/a._ts,a._time-=n,a._tTime-=n),a.shiftChildren(-n,!1,-Infinity),s=0),o._end>i&&o._ts&&(i=o._end),o=e;Ko(a,a===va&&a._time>i?a._time:i,1,1),a._dirty=0}return a._tDur},e.updateRoot=function(t){if(va._ts&&(xo(va,Lo(t,va)),_a=As.frame),As.frame>=ho){ho+=Sa.autoSleep||120;var e=va._first;if((!e||!e._ts)&&Sa.autoSleep&&As._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||As.sleep()}}},e}(Hs);Co(Gs.prototype,{_lock:0,_hasPause:0,_forcing:0});var qs,Ws,$s=function(t,e,n,r,i,a,o){var s,l,u,c,h,d,f,p,v=new gl(this._pt,t,e,0,1,cl,null,i),g=0,m=0;for(v.b=n,v.e=r,n+="",(f=~(r+="").indexOf("random("))&&(r=ps(r)),a&&(a(p=[n,r],t,e),n=p[0],r=p[1]),l=n.match(qa)||[];s=qa.exec(r);)c=s[0],h=r.substring(g,s.index),u?u=(u+1)%5:"rgba("===h.substr(-5)&&(u=1),c!==l[m++]&&(d=parseFloat(l[m-1])||0,v._pt={_next:v._pt,p:h||1===m?h:",",s:d,c:"="===c.charAt(1)?wo(d,c)-d:parseFloat(c)-d,m:u&&u<4?Math.round:0},g=qa.lastIndex);return v.c=g<r.length?r.substring(g,r.length):"",v.fp=o,(Wa.test(r)||f)&&(v.e=0),this._pt=v,v},Ks=function(t,e,n,r,i,a,o,s,l,u){Ra(r)&&(r=r(i||0,t,a));var c,h=t[e],d="get"!==n?n:Ra(h)?l?t[e.indexOf("set")||!Ra(t["get"+e.substr(3)])?e:"get"+e.substr(3)](l):t[e]():h,f=Ra(h)?l?al:il:rl;if(Va(r)&&(~r.indexOf("random(")&&(r=ps(r)),"="===r.charAt(1)&&((c=wo(d,r)+(ns(d)||0))||0===c)&&(r=c)),!u||d!==r||Ws)return isNaN(d*r)||""===r?(!h&&!(e in t)&&Qa(e,r),$s.call(this,t,e,d,r,f,s||Sa.stringFilter,l)):(c=new gl(this._pt,t,e,+d||0,r-(d||0),"boolean"==typeof h?ul:ll,0,f),l&&(c.fp=l),o&&c.modifier(o,this,t),this._pt=c)},Zs=function(t,e,n,r,i,a){var o,s,l,u;if(uo[t]&&!1!==(o=new uo[t]).init(i,o.rawVars?e[t]:function(t,e,n,r,i){if(Ra(t)&&(t=Qs(t,i,e,n,r)),!Ia(t)||t.style&&t.nodeType||za(t)||Ya(t))return Va(t)?Qs(t,i,e,n,r):t;var a,o={};for(a in t)o[a]=Qs(t[a],i,e,n,r);return o}(e[t],r,i,a,n),n,r,a)&&(n._pt=s=new gl(n._pt,i,t,0,1,o.render,o,0,o.priority),n!==wa))for(l=n._ptLookup[n._targets.indexOf(i)],u=o._props.length;u--;)l[o._props[u]]=s;return o},Xs=function t(e,n,r){var i,a,o,s,l,u,c,h,d,f,p,v,g,m=e.vars,y=m.ease,b=m.startAt,_=m.immediateRender,w=m.lazy,D=m.onUpdate,S=m.runBackwards,x=m.yoyoEase,T=m.keyframes,k=m.autoRevert,C=e._dur,E=e._startAt,O=e._targets,A=e.parent,M=A&&"nested"===A.data?A.vars.targets:O,P="auto"===e._overwrite&&!da,V=e.timeline;if(V&&(!T||!y)&&(y="none"),e._ease=Fs(y,xa.ease),e._yEase=x?Bs(Fs(!0===x?y:x,xa.ease)):0,x&&e._yoyo&&!e._repeat&&(x=e._yEase,e._yEase=e._ease,e._ease=x),e._from=!V&&!!m.runBackwards,!V||T&&!m.stagger){if(v=(h=O[0]?go(O[0]).harness:0)&&m[h.prop],i=Ao(m,oo),E&&(E._zTime<0&&E.progress(1),n<0&&S&&_&&!k?E.render(-1,!0):E.revert(S&&C?io:ro),E._lazy=0),b){if(Ro(e._startAt=nl.set(O,Co({data:"isStart",overwrite:!1,parent:A,immediateRender:!0,lazy:!E&&Fa(w),startAt:null,delay:0,onUpdate:D&&function(){return ms(e,"onUpdate")},stagger:0},b))),e._startAt._dp=0,e._startAt._sat=e,n<0&&(fa||!_&&!k)&&e._startAt.revert(io),_&&C&&n<=0&&r<=0)return void(n&&(e._zTime=n))}else if(S&&C&&!E)if(n&&(_=!1),o=Co({overwrite:!1,data:"isFromStart",lazy:_&&!E&&Fa(w),immediateRender:_,stagger:0,parent:A},i),v&&(o[h.prop]=v),Ro(e._startAt=nl.set(O,o)),e._startAt._dp=0,e._startAt._sat=e,n<0&&(fa?e._startAt.revert(io):e._startAt.render(-1,!0)),e._zTime=n,_){if(!n)return}else t(e._startAt,ka,ka);for(e._pt=e._ptCache=0,w=C&&Fa(w)||w&&!C,a=0;a<O.length;a++){if(c=(l=O[a])._gsap||vo(O)[a]._gsap,e._ptLookup[a]=f={},lo[c.id]&&so.length&&So(),p=M===O?a:M.indexOf(l),h&&!1!==(d=new h).init(l,v||i,e,p,M)&&(e._pt=s=new gl(e._pt,l,d.name,0,1,d.render,d,0,d.priority),d._props.forEach((function(t){f[t]=s})),d.priority&&(u=1)),!h||v)for(o in i)uo[o]&&(d=Zs(o,i,e,p,l,M))?d.priority&&(u=1):f[o]=s=Ks.call(e,l,o,"get",i[o],p,M,0,m.stringFilter);e._op&&e._op[a]&&e.kill(l,e._op[a]),P&&e._pt&&(qs=e,va.killTweensOf(l,f,e.globalTime(n)),g=!e.parent,qs=0),e._pt&&w&&(lo[c.id]=1)}u&&vl(e),e._onInit&&e._onInit(e)}e._onUpdate=D,e._initted=(!e._op||e._pt)&&!g,T&&n<=0&&V.render(Ta,!0,!0)},Js=function(t,e,n,r){var i,a,o=e.ease||r||"power1.inOut";if(za(e))a=n[t]||(n[t]=[]),e.forEach((function(t,n){return a.push({t:n/(e.length-1)*100,v:t,e:o})}));else for(i in e)a=n[i]||(n[i]=[]),"ease"===i||a.push({t:parseFloat(t),v:e[i],e:o})},Qs=function(t,e,n,r,i){return Ra(t)?t.call(e,n,r,i):Va(t)&&~t.indexOf("random(")?ps(t):t},tl=po+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",el={};yo(tl+",id,stagger,delay,duration,paused,scrollTrigger",(function(t){return el[t]=1}));var nl=function(t){function e(e,n,r,i){var a;"number"==typeof n&&(r.duration=n,n=r,r=null);var o,s,l,u,c,h,d,f,p=(a=t.call(this,i?n:Mo(n))||this).vars,v=p.duration,g=p.delay,m=p.immediateRender,y=p.stagger,b=p.overwrite,_=p.keyframes,w=p.defaults,D=p.scrollTrigger,S=p.yoyoEase,x=n.parent||va,T=(za(e)||Ya(e)?Na(e[0]):"length"in n)?[e]:os(e);if(a._targets=T.length?vo(T):to("GSAP target "+e+" not found. https://gsap.com",!Sa.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=b,_||y||La(v)||La(g)){if(n=a.vars,(o=a.timeline=new Gs({data:"nested",defaults:w||{},targets:x&&"nested"===x.data?x.vars.targets:T})).kill(),o.parent=o._dp=ca(a),o._start=0,y||La(v)||La(g)){if(u=T.length,d=y&&us(y),Ia(y))for(c in y)~tl.indexOf(c)&&(f||(f={}),f[c]=y[c]);for(s=0;s<u;s++)(l=Ao(n,el)).stagger=0,S&&(l.yoyoEase=S),f&&Eo(l,f),h=T[s],l.duration=+Qs(v,ca(a),s,h,T),l.delay=(+Qs(g,ca(a),s,h,T)||0)-a._delay,!y&&1===u&&l.delay&&(a._delay=g=l.delay,a._start+=g,l.delay=0),o.to(h,l,d?d(s,h,T):0),o._ease=Ps.none;o.duration()?v=g=0:a.timeline=0}else if(_){Mo(Co(o.vars.defaults,{ease:"none"})),o._ease=Fs(_.ease||n.ease||"none");var k,C,E,O=0;if(za(_))_.forEach((function(t){return o.to(T,t,">")})),o.duration();else{for(c in l={},_)"ease"===c||"easeEach"===c||Js(c,_[c],l,_.easeEach);for(c in l)for(k=l[c].sort((function(t,e){return t.t-e.t})),O=0,s=0;s<k.length;s++)(E={ease:(C=k[s]).e,duration:(C.t-(s?k[s-1].t:0))/100*v})[c]=C.v,o.to(T,E,O),O+=E.duration;o.duration()<v&&o.to({},{duration:v-o.duration()})}}v||a.duration(v=o.duration())}else a.timeline=0;return!0!==b||da||(qs=ca(a),va.killTweensOf(T),qs=0),Ho(x,ca(a),r),n.reversed&&a.reverse(),n.paused&&a.paused(!0),(m||!v&&!_&&a._start===_o(x._time)&&Fa(m)&&Io(ca(a))&&"nested"!==x.data)&&(a._tTime=-1e-8,a.render(Math.max(0,-g)||0)),D&&Go(ca(a),D),a}ha(e,t);var n=e.prototype;return n.render=function(t,e,n){var r,i,a,o,s,l,u,c,h,d=this._time,f=this._tDur,p=this._dur,v=t<0,g=t>f-ka&&!v?f:t<ka?0:t;if(p){if(g!==this._tTime||!t||n||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==v){if(r=g,c=this.timeline,this._repeat){if(o=p+this._rDelay,this._repeat<-1&&v)return this.totalTime(100*o+t,e,n);if(r=_o(g%o),g===f?(a=this._repeat,r=p):((a=~~(g/o))&&a===_o(g/o)&&(r=p,a--),r>p&&(r=p)),(l=this._yoyo&&1&a)&&(h=this._yEase,r=p-r),s=jo(this._tTime,o),r===d&&!n&&this._initted&&a===s)return this._tTime=g,this;a!==s&&(c&&this._yEase&&Is(c,l),this.vars.repeatRefresh&&!l&&!this._lock&&this._time!==p&&this._initted&&(this._lock=n=1,this.render(_o(o*a),!0).invalidate()._lock=0))}if(!this._initted){if(qo(this,v?t:r,n,e,g))return this._tTime=0,this;if(!(d===this._time||n&&this.vars.repeatRefresh&&a!==s))return this;if(p!==this._dur)return this.render(t,e,n)}if(this._tTime=g,this._time=r,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=u=(h||this._ease)(r/p),this._from&&(this.ratio=u=1-u),r&&!d&&!e&&!a&&(ms(this,"onStart"),this._tTime!==g))return this;for(i=this._pt;i;)i.r(u,i.d),i=i._next;c&&c.render(t<0?t:!r&&l?-1e-8:c._dur*c._ease(r/this._dur),e,n)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(v&&Bo(this,t,0,n),ms(this,"onUpdate")),this._repeat&&a!==s&&this.vars.onRepeat&&!e&&this.parent&&ms(this,"onRepeat"),g!==this._tDur&&g||this._tTime!==g||(v&&!this._onUpdate&&Bo(this,t,0,!0),(t||!p)&&(g===this._tDur&&this._ts>0||!g&&this._ts<0)&&Ro(this,1),e||v&&!d||!(g||d||l)||(ms(this,g===f?"onComplete":"onReverseComplete",!0),this._prom&&!(g<f&&this.timeScale()>0)&&this._prom()))}}else!function(t,e,n,r){var i,a,o,s=t.ratio,l=e<0||!e&&(!t._start&&Wo(t)&&(t._initted||!$o(t))||(t._ts<0||t._dp._ts<0)&&!$o(t))?0:1,u=t._rDelay,c=0;if(u&&t._repeat&&(c=es(0,t._tDur,e),a=jo(c,u),t._yoyo&&1&a&&(l=1-l),a!==jo(t._tTime,u)&&(s=1-l,t.vars.repeatRefresh&&t._initted&&t.invalidate())),l!==s||fa||r||t._zTime===ka||!e&&t._zTime){if(!t._initted&&qo(t,e,r,n,c))return;for(o=t._zTime,t._zTime=e||(n?ka:0),n||(n=e&&!o),t.ratio=l,t._from&&(l=1-l),t._time=0,t._tTime=c,i=t._pt;i;)i.r(l,i.d),i=i._next;e<0&&Bo(t,e,0,!0),t._onUpdate&&!n&&ms(t,"onUpdate"),c&&t._repeat&&!n&&t.parent&&ms(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===l&&(l&&Ro(t,1),n||fa||(ms(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){Da||As.wake(),this._ts||this.play();var a=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||Xs(this,a),function(t,e,n,r,i,a,o,s){var l,u,c,h,d=(t._pt&&t._ptCache||(t._ptCache={}))[e];if(!d)for(d=t._ptCache[e]=[],c=t._ptLookup,h=t._targets.length;h--;){if((l=c[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 Ws=1,t.vars[e]="+=0",Xs(t,o),Ws=0,s?to(e+" not eligible for reset"):1;d.push(l)}for(h=d.length;h--;)(l=(u=d[h])._pt||u).s=!r&&0!==r||i?l.s+(r||0)+a*l.c:r,l.c=n-l.s,u.e&&(u.e=bo(n)+ns(u.e)),u.b&&(u.b=l.s+ns(u.b))}(this,t,e,n,r,this._ease(a/this._dur),a,i)?this.resetTo(t,e,n,r,1):(zo(this,0),this.parent||Po(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?ys(this):this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,qs&&!0!==qs.vars.overwrite)._first||ys(this),this.parent&&n!==this.timeline.totalDuration()&&Ko(this,this._dur*this.timeline._tDur/n,0,1),this}var r,i,a,o,s,l,u,c=this._targets,h=t?os(t):c,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}(c,h))return"all"===e&&(this._pt=0),ys(this);for(r=this._op=this._op||[],"all"!==e&&(Va(e)&&(s={},yo(e,(function(t){return s[t]=1})),e=s),e=function(t,e){var n,r,i,a,o=t[0]?go(t[0]).harness:0,s=o&&o.aliases;if(!s)return e;for(r in n=Eo({},e),s)if(r in n)for(i=(a=s[r].split(",")).length;i--;)n[a[i]]=n[r];return n}(c,e)),u=c.length;u--;)if(~h.indexOf(c[u]))for(s in i=d[u],"all"===e?(r[u]=e,o=i,a={}):(a=r[u]=r[u]||{},o=e),o)(l=i&&i[s])&&("kill"in l.d&&!0!==l.d.kill(s)||Vo(this,l,"_pt"),delete i[s]),"all"!==a&&(a[s]=1);return this._initted&&!this._pt&&f&&ys(this),this},e.to=function(t,n){return new e(t,n,arguments[2])},e.from=function(t,e){return Qo(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 Qo(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 va.killTweensOf(t,e,n)},e}(Hs);Co(nl.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),yo("staggerTo,staggerFrom,staggerFromTo",(function(t){nl[t]=function(){var e=new Gs,n=rs.call(arguments,0);return n.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,n)}}));var rl=function(t,e,n){return t[e]=n},il=function(t,e,n){return t[e](n)},al=function(t,e,n,r){return t[e](r.fp,n)},ol=function(t,e,n){return t.setAttribute(e,n)},sl=function(t,e){return Ra(t[e])?il:Ba(t[e])&&t.setAttribute?ol:rl},ll=function(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},ul=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},cl=function(t,e){var n=e._pt,r="";if(!t&&e.b)r=e.b;else if(1===t&&e.e)r=e.e;else{for(;n;)r=n.p+(n.m?n.m(n.s+n.c*t):Math.round(1e4*(n.s+n.c*t))/1e4)+r,n=n._next;r+=e.c}e.set(e.t,e.p,r,e)},hl=function(t,e){for(var n=e._pt;n;)n.r(t,n.d),n=n._next},dl=function(t,e,n,r){for(var i,a=this._pt;a;)i=a._next,a.p===r&&a.modifier(t,e,n),a=i},fl=function(t){for(var e,n,r=this._pt;r;)n=r._next,r.p===t&&!r.op||r.op===t?Vo(this,r,"_pt"):r.dep||(e=1),r=n;return!e},pl=function(t,e,n,r){r.mSet(t,e,r.m.call(r.tween,n,r.mt),r)},vl=function(t){for(var e,n,r,i,a=t._pt;a;){for(e=a._next,n=r;n&&n.pr>a.pr;)n=n._next;(a._prev=n?n._prev:i)?a._prev._next=a:r=a,(a._next=n)?n._prev=a:i=a,a=e}t._pt=r},gl=function(){function t(t,e,n,r,i,a,o,s,l){this.t=e,this.s=r,this.c=i,this.p=n,this.r=a||ll,this.d=o||this,this.set=s||rl,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=pl,this.m=t,this.mt=n,this.tween=e},t}();yo(po+"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 oo[t]=1})),Za.TweenMax=Za.TweenLite=nl,Za.TimelineLite=Za.TimelineMax=Gs,va=new Gs({sortChildren:!1,defaults:xa,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),Sa.stringFilter=Os;var ml=[],yl={},bl=[],_l=0,wl=0,Dl=function(t){return(yl[t]||bl).map((function(t){return t()}))},Sl=function(){var t=Date.now(),e=[];t-_l>2&&(Dl("matchMediaInit"),ml.forEach((function(t){var n,r,i,a,o=t.queries,s=t.conditions;for(r in o)(n=ga.matchMedia(o[r]).matches)&&(i=1),n!==s[r]&&(s[r]=n,a=1);a&&(t.revert(),i&&e.push(t))})),Dl("matchMediaRevert"),e.forEach((function(t){return t.onMatch(t,(function(e){return t.add(null,e)}))})),_l=t,Dl("matchMedia"))},xl=function(){function t(t,e){this.selector=e&&ss(e),this.data=[],this._r=[],this.isReverted=!1,this.id=wl++,t&&this.add(t)}var e=t.prototype;return e.add=function(t,e,n){Ra(t)&&(n=e,e=t,t=Ra);var r=this,i=function(){var t,i=pa,a=r.selector;return i&&i!==r&&i.data.push(r),n&&(r.selector=ss(n)),pa=r,t=e.apply(r,arguments),Ra(t)&&r._r.push(t),pa=i,r.selector=a,r.isReverted=!1,t};return r.last=i,t===Ra?i(r,(function(t){return r.add(null,t)})):t?r[t]=i:i},e.ignore=function(t){var e=pa;pa=null,t(this),pa=e},e.getTweens=function(){var e=[];return this.data.forEach((function(n){return n instanceof t?e.push.apply(e,n.getTweens()):n instanceof nl&&!(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 Gs?"nested"!==e.data&&(e.scrollTrigger&&e.scrollTrigger.revert(),e.kill()):!(e instanceof nl)&&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=ml.length;r--;)ml[r].id===this.id&&ml.splice(r,1)},e.revert=function(t){this.kill(t||{})},t}(),Tl=function(){function t(t){this.contexts=[],this.scope=t}var e=t.prototype;return e.add=function(t,e,n){Ia(t)||(t={matches:t});var r,i,a,o=new xl(0,n||this.scope),s=o.conditions={};for(i in pa&&!o.selector&&(o.selector=pa.selector),this.contexts.push(o),e=o.add("onMatch",e),o.queries=t,t)"all"===i?a=1:(r=ga.matchMedia(t[i]))&&(ml.indexOf(o)<0&&ml.push(o),(s[i]=r.matches)&&(a=1),r.addListener?r.addListener(Sl):r.addEventListener("change",Sl));return a&&e(o,(function(t){return o.add(null,t)})),this},e.revert=function(t){this.kill(t||{})},e.kill=function(t){this.contexts.forEach((function(e){return e.kill(t,!0)}))},t}(),kl={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 _s(t)}))},timeline:function(t){return new Gs(t)},getTweensOf:function(t,e){return va.getTweensOf(t,e)},getProperty:function(t,e,n,r){Va(t)&&(t=os(t)[0]);var i=go(t||{}).get,a=n?ko:To;return"native"===n&&(n=""),t?e?a((uo[e]&&uo[e].get||i)(t,e,n,r)):function(e,n,r){return a((uo[e]&&uo[e].get||i)(t,e,n,r))}:t},quickSetter:function(t,e,n){if((t=os(t)).length>1){var r=t.map((function(t){return Ol.quickSetter(t,e,n)})),i=r.length;return function(t){for(var e=i;e--;)r[e](t)}}t=t[0]||{};var a=uo[e],o=go(t),s=o.harness&&(o.harness.aliases||{})[e]||e,l=a?function(e){var r=new a;wa._pt=0,r.init(t,n?e+n:e,wa,0,[t]),r.render(1,r),wa._pt&&hl(1,wa)}:o.set(t,s);return a?l:function(e){return l(t,s,n?e+n:e,o,1)}},quickTo:function(t,e,n){var r,i=Ol.to(t,Eo(((r={})[e]="+=0.1",r.paused=!0,r),n||{})),a=function(t,n,r){return i.resetTo(e,t,n,r)};return a.tween=i,a},isTweening:function(t){return va.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Fs(t.ease,xa.ease)),Oo(xa,t||{})},config:function(t){return Oo(Sa,t||{})},registerEffect:function(t){var e=t.name,n=t.effect,r=t.plugins,i=t.defaults,a=t.extendTimeline;(r||"").split(",").forEach((function(t){return t&&!uo[t]&&!Za[t]&&to(e+" effect requires "+t+" plugin.")})),co[e]=function(t,e,r){return n(os(t),Co(e||{},i),r)},a&&(Gs.prototype[e]=function(t,n,r){return this.add(co[e](t,Ia(n)?n:(r=n)&&{},this),r)})},registerEase:function(t,e){Ps[t]=Fs(e)},parseEase:function(t,e){return arguments.length?Fs(t,e):Ps},getById:function(t){return va.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var n,r,i=new Gs(t);for(i.smoothChildTiming=Fa(t.smoothChildTiming),va.remove(i),i._dp=0,i._time=i._tTime=va._time,n=va._first;n;)r=n._next,!e&&!n._dur&&n instanceof nl&&n.vars.onComplete===n._targets[0]||Ho(i,n,n._start-n._delay),n=r;return Ho(va,i,0),i},context:function(t,e){return t?new xl(t,e):pa},matchMedia:function(t){return new Tl(t)},matchMediaRefresh:function(){return ml.forEach((function(t){var e,n,r=t.conditions;for(n in r)r[n]&&(r[n]=!1,e=1);e&&t.revert()}))||Sl()},addEventListener:function(t,e){var n=yl[t]||(yl[t]=[]);~n.indexOf(e)||n.push(e)},removeEventListener:function(t,e){var n=yl[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)?fs(e,t(0,e.length),n):ts(r,(function(t){return(i+(t-e)%i)%i+e}))},wrapYoyo:function t(e,n,r){var i=n-e,a=2*i;return za(e)?fs(e,t(0,e.length-1),n):ts(r,(function(t){return e+((t=(a+(t-e)%a)%a||0)>i?a-t:t)}))},distribute:us,random:ds,snap:hs,normalize:function(t,e,n){return vs(t,e,0,1,n)},getUnit:ns,clamp:function(t,e,n){return ts(n,(function(n){return es(t,e,n)}))},splitColor:xs,toArray:os,selector:ss,mapRange:vs,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||ns(n))}},interpolate:function t(e,n,r,i){var a=isNaN(e+n)?0:function(t){return(1-t)*e+t*n};if(!a){var o,s,l,u,c,h=Va(e),d={};if(!0===r&&(i=1)&&(r=null),h)e={p:e},n={p:n};else if(za(e)&&!za(n)){for(l=[],u=e.length,c=u-2,s=1;s<u;s++)l.push(t(e[s-1],e[s]));u--,a=function(t){t*=u;var e=Math.min(c,~~t);return l[e](t-e)},r=n}else i||(e=Eo(za(e)?[]:{},e));if(!l){for(o in n)Ks.call(d,e,o,"get",n[o]);a=function(t){return hl(t,d)||(h?e.p:e)}}}return ts(r,a)},shuffle:ls},install:Ja,effects:co,ticker:As,updateRoot:Gs.updateRoot,plugins:uo,globalTimeline:va,core:{PropTween:gl,globals:eo,Tween:nl,Timeline:Gs,Animation:Hs,getCache:go,_removeLinkedListItem:Vo,reverting:function(){return fa},context:function(t){return t&&pa&&(pa.data.push(t),t._ctx=pa),pa},suppressOverwrites:function(t){return da=t}}};yo("to,from,fromTo,delayedCall,set,killTweensOf",(function(t){return kl[t]=nl[t]})),As.add(Gs.updateRoot),wa=kl.to({},{duration:0});var Cl=function(t,e){for(var n=t._pt;n&&n.p!==e&&n.op!==e&&n.fp!==e;)n=n._next;return n},El=function(t,e){return{name:t,rawVars:1,init:function(t,n,r){r._onInit=function(t){var r,i;if(Va(n)&&(r={},yo(n,(function(t){return r[t]=1})),n=r),e){for(i in r={},n)r[i]=e(n[i]);n=r}!function(t,e){var n,r,i,a=t._targets;for(n in e)for(r=a.length;r--;)(i=t._ptLookup[r][n])&&(i=i.d)&&(i._pt&&(i=Cl(i,n)),i&&i.modifier&&i.modifier(e[n],t,a[r],n))}(t,n)}}}},Ol=kl.registerPlugin({name:"attr",init:function(t,e,n,r,i){var a,o,s;for(a in this.tween=n,e)s=t.getAttribute(a)||"",(o=this.add(t,"setAttribute",(s||0)+"",e[a],r,i,0,0,a)).op=a,o.b=s,this._props.push(a)},render:function(t,e){for(var n=e._pt;n;)fa?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)}},El("roundProps",cs),El("modifiers"),El("snap",hs))||kl;nl.version=Gs.version=Ol.version="3.12.3",ba=1,ja()&&Ms(),Ps.Power0,Ps.Power1,Ps.Power2,Ps.Power3,Ps.Power4,Ps.Linear,Ps.Quad,Ps.Cubic,Ps.Quart,Ps.Quint,Ps.Strong,Ps.Elastic,Ps.Back,Ps.SteppedEase,Ps.Bounce,Ps.Sine,Ps.Expo,Ps.Circ;
|
|
42
42
|
/*!
|
|
43
43
|
* CSSPlugin 3.12.3
|
|
44
44
|
* https://gsap.com
|
|
@@ -48,5 +48,5 @@ function(t){var e=n,r=e.lib,i=r.WordArray,a=r.Hasher,o=e.algo,s=i.create([0,1,2,
|
|
|
48
48
|
* Club GSAP members, the agreement issued with that membership.
|
|
49
49
|
* @author: Jack Doyle, jack@greensock.com
|
|
50
50
|
*/
|
|
51
|
-
var Ol,Al,Ml,Pl,Vl,Rl,Nl,Bl,Il={},Fl=180/Math.PI,jl=Math.PI/180,Ll=Math.atan2,Yl=/([A-Z])/g,zl=/(left|right|width|margin|padding|x)/i,Ul=/[\s,\(]\S/,Hl={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Gl=function(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},Wl=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)},ql=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)},$l=function(t,e){var n=e.s+e.c*t;e.set(e.t,e.p,~~(n+(n<0?-.5:.5))+e.u,e)},Kl=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},Zl=function(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)},Xl=function(t,e,n){return t.style[e]=n},Jl=function(t,e,n){return t.style.setProperty(e,n)},Ql=function(t,e,n){return t._gsap[e]=n},tu=function(t,e,n){return t._gsap.scaleX=t._gsap.scaleY=n},eu=function(t,e,n,r,i){var a=t._gsap;a.scaleX=a.scaleY=n,a.renderTransform(i,a)},nu=function(t,e,n,r,i){var a=t._gsap;a[e]=n,a.renderTransform(i,a)},ru="transform",iu=ru+"Origin",au=function t(e,n){var r=this,i=this.target,a=i.style,o=i._gsap;if(e in Il&&a){if(this.tfm=this.tfm||{},"transform"===e)return Hl.transform.split(",").forEach((function(e){return t.call(r,e,n)}));if(~(e=Hl[e]||e).indexOf(",")?e.split(",").forEach((function(t){return r.tfm[t]=Su(i,t)})):this.tfm[e]=o.x?o[e]:Su(i,e),e===iu&&(this.tfm.zOrigin=o.zOrigin),this.props.indexOf(ru)>=0)return;o.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(iu,n,"")),e=ru}(a||n)&&this.props.push(e,n,a[e])},ou=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},su=function(){var t,e,n=this.props,r=this.target,i=r.style,a=r._gsap;for(t=0;t<n.length;t+=3)n[t+1]?r[n[t]]=n[t+2]:n[t+2]?i[n[t]]=n[t+2]:i.removeProperty("--"===n[t].substr(0,2)?n[t]:n[t].replace(Yl,"-$1").toLowerCase());if(this.tfm){for(e in this.tfm)a[e]=this.tfm[e];a.svg&&(a.renderTransform(),r.setAttribute("data-svg-origin",this.svgo||"")),(t=Nl())&&t.isStart||i[ru]||(ou(i),a.zOrigin&&i[iu]&&(i[iu]+=" "+a.zOrigin+"px",a.zOrigin=0,a.renderTransform()),a.uncache=1)}},lu=function(t,e){var n={target:t,props:[],revert:su,save:au};return t._gsap||El.core.getCache(t),e&&e.split(",").forEach((function(t){return n.save(t)})),n},uu=function(t,e){var n=Al.createElementNS?Al.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):Al.createElement(t);return n&&n.style?n:Al.createElement(t)},cu=function t(e,n,r){var i=getComputedStyle(e);return i[n]||i.getPropertyValue(n.replace(Yl,"-$1").toLowerCase())||i.getPropertyValue(n)||!r&&t(e,du(n)||n,1)||""},hu="O,Moz,ms,Ms,Webkit".split(","),du=function(t,e,n){var r=(e||Vl).style,i=5;if(t in r&&!n)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);i--&&!(hu[i]+t in r););return i<0?null:(3===i?"ms":i>=0?hu[i]:"")+t},fu=function(){"undefined"!=typeof window&&window.document&&(Ol=window,Al=Ol.document,Ml=Al.documentElement,Vl=uu("div")||{style:{}},uu("div"),ru=du(ru),iu=ru+"Origin",Vl.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Bl=!!du("perspective"),Nl=El.core.reverting,Pl=1)},pu=function t(e){var n,r=uu("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=this.parentNode,a=this.nextSibling,o=this.style.cssText;if(Ml.appendChild(r),r.appendChild(this),this.style.display="block",e)try{n=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=t}catch(t){}else this._gsapBBox&&(n=this._gsapBBox());return i&&(a?i.insertBefore(this,a):i.appendChild(this)),Ml.removeChild(r),this.style.cssText=o,n},vu=function(t,e){for(var n=e.length;n--;)if(t.hasAttribute(e[n]))return t.getAttribute(e[n])},gu=function(t){var e;try{e=t.getBBox()}catch(n){e=pu.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===pu||(e=pu.call(t,!0)),!e||e.width||e.x||e.y?e:{x:+vu(t,["x","cx","x1"])||0,y:+vu(t,["y","cy","y1"])||0,width:0,height:0}},mu=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!gu(t))},yu=function(t,e){if(e){var n,r=t.style;e in Il&&e!==iu&&(e=ru),r.removeProperty?("ms"!==(n=e.substr(0,2))&&"webkit"!==e.substr(0,6)||(e="-"+e),r.removeProperty("--"===n?e:e.replace(Yl,"-$1").toLowerCase())):r.removeAttribute(e)}},bu=function(t,e,n,r,i,a){var o=new vl(t._pt,e,n,0,1,a?Zl:Kl);return t._pt=o,o.b=r,o.e=i,t._props.push(n),o},_u={deg:1,rad:1,turn:1},wu={grid:1,flex:1},Du=function t(e,n,r,i){var a,o,s,l,u=parseFloat(r)||0,c=(r+"").trim().substr((u+"").length)||"px",h=Vl.style,d=zl.test(n),f="svg"===e.tagName.toLowerCase(),p=(f?"client":"offset")+(d?"Width":"Height"),v=100,g="px"===i,m="%"===i;if(i===c||!u||_u[i]||_u[c])return u;if("px"!==c&&!g&&(u=t(e,n,r,"px")),l=e.getCTM&&mu(e),(m||"%"===c)&&(Il[n]||~n.indexOf("adius")))return a=l?e.getBBox()[d?"width":"height"]:e[p],yo(m?u/a*v:u/100*a);if(h[d?"width":"height"]=v+(g?c:i),o=~n.indexOf("adius")||"em"===i&&e.appendChild&&!f?e:e.parentNode,l&&(o=(e.ownerSVGElement||{}).parentNode),o&&o!==Al&&o.appendChild||(o=Al.body),(s=o._gsap)&&m&&s.width&&d&&s.time===Os.time&&!s.uncache)return yo(u/s.width*v);if(!m||"height"!==n&&"width"!==n)(m||"%"===c)&&!wu[cu(o,"display")]&&(h.position=cu(e,"position")),o===e&&(h.position="static"),o.appendChild(Vl),a=Vl[p],o.removeChild(Vl),h.position="absolute";else{var y=e.style[n];e.style[n]=v+i,a=e[p],y?e.style[n]=y:yu(e,n)}return d&&m&&((s=vo(o)).time=Os.time,s.width=o[p]),yo(g?a*u/v:a&&u?v/a*u:0)},Su=function(t,e,n,r){var i;return Pl||fu(),e in Hl&&"transform"!==e&&~(e=Hl[e]).indexOf(",")&&(e=e.split(",")[0]),Il[e]&&"transform"!==e?(i=Nu(t,r),i="transformOrigin"!==e?i[e]:i.svg?i.origin:Bu(cu(t,iu))+" "+i.zOrigin+"px"):(!(i=t.style[e])||"auto"===i||r||~(i+"").indexOf("calc("))&&(i=Eu[e]&&Eu[e](t,e,n)||cu(t,e)||go(t,e)||("opacity"===e?1:0)),n&&!~(i+"").trim().indexOf(" ")?Du(t,e,i,n)+n:i},xu=function(t,e,n,r){if(!n||"none"===n){var i=du(e,t,1),a=i&&cu(t,i,1);a&&a!==n?(e=i,n=a):"borderColor"===e&&(n=cu(t,"borderTopColor"))}var o,s,l,u,c,h,d,f,p,v,g,m=new vl(this._pt,t.style,e,0,1,ul),y=0,b=0;if(m.b=n,m.e=r,n+="","auto"===(r+="")&&(h=t.style[e],t.style[e]=r,r=cu(t,e)||r,h?t.style[e]=h:yu(t,e)),Es(o=[n,r]),r=o[1],l=(n=o[0]).match(Ha)||[],(r.match(Ha)||[]).length){for(;s=Ha.exec(r);)d=s[0],p=r.substring(y,s.index),c?c=(c+1)%5:"rgba("!==p.substr(-5)&&"hsla("!==p.substr(-5)||(c=1),d!==(h=l[b++]||"")&&(u=parseFloat(h)||0,g=h.substr((u+"").length),"="===d.charAt(1)&&(d=_o(u,d)+g),f=parseFloat(d),v=d.substr((f+"").length),y=Ha.lastIndex-v.length,v||(v=v||Da.units[e]||g,y===r.length&&(r+=v,m.e+=v)),g!==v&&(u=Du(t,e,h,v)||0),m._pt={_next:m._pt,p:p||1===b?p:",",s:u,c:f-u,m:c&&c<4||"zIndex"===e?Math.round:0});m.c=y<r.length?r.substring(y,r.length):""}else m.r="display"===e&&"none"===r?Zl:Kl;return Wa.test(r)&&(m.e=0),this._pt=m,m},Tu={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},ku=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]=Tu[n]||n,e[1]=Tu[r]||r,e.join(" ")},Cu=function(t,e){if(e.tween&&e.tween._time===e.tween._dur){var n,r,i,a=e.t,o=a.style,s=e.u,l=a._gsap;if("all"===s||!0===s)o.cssText="",r=1;else for(i=(s=s.split(",")).length;--i>-1;)n=s[i],Il[n]&&(r=1,n="transformOrigin"===n?iu:ru),yu(a,n);r&&(yu(a,ru),l&&(l.svg&&a.removeAttribute("transform"),Nu(a,1),l.uncache=1,ou(o)))}},Eu={clearProps:function(t,e,n,r,i){if("isFromStart"!==i.data){var a=t._pt=new vl(t._pt,e,n,0,0,Cu);return a.u=r,a.pr=-10,a.tween=i,t._props.push(n),1}}},Ou=[1,0,0,1,0,0],Au={},Mu=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},Pu=function(t){var e=cu(t,ru);return Mu(e)?Ou:e.substr(7).match(Ua).map(yo)},Vu=function(t,e){var n,r,i,a,o=t._gsap||vo(t),s=t.style,l=Pu(t);return o.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(l=[(i=t.transform.baseVal.consolidate().matrix).a,i.b,i.c,i.d,i.e,i.f]).join(",")?Ou:l:(l!==Ou||t.offsetParent||t===Ml||o.svg||(i=s.display,s.display="block",(n=t.parentNode)&&t.offsetParent||(a=1,r=t.nextElementSibling,Ml.appendChild(t)),l=Pu(t),i?s.display=i:yu(t,"display"),a&&(r?n.insertBefore(t,r):n?n.appendChild(t):Ml.removeChild(t))),e&&l.length>6?[l[0],l[1],l[4],l[5],l[12],l[13]]:l)},Ru=function(t,e,n,r,i,a){var o,s,l,u=t._gsap,c=i||Vu(t,!0),h=u.xOrigin||0,d=u.yOrigin||0,f=u.xOffset||0,p=u.yOffset||0,v=c[0],g=c[1],m=c[2],y=c[3],b=c[4],_=c[5],w=e.split(" "),D=parseFloat(w[0])||0,S=parseFloat(w[1])||0;n?c!==Ou&&(s=v*y-g*m)&&(l=D*(-g/s)+S*(v/s)-(v*_-g*b)/s,D=D*(y/s)+S*(-m/s)+(m*_-y*b)/s,S=l):(D=(o=gu(t)).x+(~w[0].indexOf("%")?D/100*o.width:D),S=o.y+(~(w[1]||w[0]).indexOf("%")?S/100*o.height:S),"xOrigin"in u||!D&&!S||(D-=o.x,S-=o.y)),r||!1!==r&&u.smooth?(b=D-h,_=S-d,u.xOffset=f+(b*v+_*m)-b,u.yOffset=p+(b*g+_*y)-_):u.xOffset=u.yOffset=0,u.xOrigin=D,u.yOrigin=S,u.smooth=!!r,u.origin=e,u.originIsAbsolute=!!n,t.style[iu]="0px 0px",a&&(bu(a,u,"xOrigin",h,D),bu(a,u,"yOrigin",d,S),bu(a,u,"xOffset",f,u.xOffset),bu(a,u,"yOffset",p,u.yOffset)),t.setAttribute("data-svg-origin",D+" "+S)},Nu=function(t,e){var n=t._gsap||new zs(t);if("x"in n&&!e&&!n.uncache)return n;var r,i,a,o,s,l,u,c,h,d,f,p,v,g,m,y,b,_,w,D,S,x,T,k,C,E,O,A,M,P,V,R,N=t.style,B=n.scaleX<0,I="px",F="deg",j=getComputedStyle(t),L=cu(t,iu)||"0";return r=i=a=l=u=c=h=d=f=0,o=s=1,n.svg=!(!t.getCTM||!mu(t)),j.translate&&("none"===j.translate&&"none"===j.scale&&"none"===j.rotate||(N[ru]=("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[ru]?j[ru]:"")),N.scale=N.rotate=N.translate="none"),g=Vu(t,n.svg),n.svg&&(n.uncache?(C=t.getBBox(),L=n.xOrigin-C.x+"px "+(n.yOrigin-C.y)+"px",k=""):k=!e&&t.getAttribute("data-svg-origin"),Ru(t,k||L,!!k||n.originIsAbsolute,!1!==n.smooth,g)),p=n.xOrigin||0,v=n.yOrigin||0,g!==Ou&&(_=g[0],w=g[1],D=g[2],S=g[3],r=x=g[4],i=T=g[5],6===g.length?(o=Math.sqrt(_*_+w*w),s=Math.sqrt(S*S+D*D),l=_||w?Ll(w,_)*Fl:0,(h=D||S?Ll(D,S)*Fl+l:0)&&(s*=Math.abs(Math.cos(h*jl))),n.svg&&(r-=p-(p*_+v*D),i-=v-(p*w+v*S))):(R=g[6],P=g[7],O=g[8],A=g[9],M=g[10],V=g[11],r=g[12],i=g[13],a=g[14],u=(m=Ll(R,M))*Fl,m&&(k=x*(y=Math.cos(-m))+O*(b=Math.sin(-m)),C=T*y+A*b,E=R*y+M*b,O=x*-b+O*y,A=T*-b+A*y,M=R*-b+M*y,V=P*-b+V*y,x=k,T=C,R=E),c=(m=Ll(-D,M))*Fl,m&&(y=Math.cos(-m),V=S*(b=Math.sin(-m))+V*y,_=k=_*y-O*b,w=C=w*y-A*b,D=E=D*y-M*b),l=(m=Ll(w,_))*Fl,m&&(k=_*(y=Math.cos(m))+w*(b=Math.sin(m)),C=x*y+T*b,w=w*y-_*b,T=T*y-x*b,_=k,x=C),u&&Math.abs(u)+Math.abs(l)>359.9&&(u=l=0,c=180-c),o=yo(Math.sqrt(_*_+w*w+D*D)),s=yo(Math.sqrt(T*T+R*R)),m=Ll(x,T),h=Math.abs(m)>2e-4?m*Fl:0,f=V?1/(V<0?-V:V):0),n.svg&&(k=t.getAttribute("transform"),n.forceCSS=t.setAttribute("transform","")||!Mu(cu(t,ru)),k&&t.setAttribute("transform",k))),Math.abs(h)>90&&Math.abs(h)<270&&(B?(o*=-1,h+=l<=0?180:-180,l+=l<=0?180:-180):(s*=-1,h+=h<=0?180:-180)),e=e||n.uncache,n.x=r-((n.xPercent=r&&(!e&&n.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-r)?-50:0)))?t.offsetWidth*n.xPercent/100:0)+I,n.y=i-((n.yPercent=i&&(!e&&n.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-i)?-50:0)))?t.offsetHeight*n.yPercent/100:0)+I,n.z=a+I,n.scaleX=yo(o),n.scaleY=yo(s),n.rotation=yo(l)+F,n.rotationX=yo(u)+F,n.rotationY=yo(c)+F,n.skewX=h+F,n.skewY=d+F,n.transformPerspective=f+I,(n.zOrigin=parseFloat(L.split(" ")[2])||!e&&n.zOrigin||0)&&(N[iu]=Bu(L)),n.svg||(n.xOffset=n.yOffset=0),n.force3D=Da.force3D,n.renderTransform=n.svg?Uu:Bl?zu:Fu,n.uncache=0,n},Bu=function(t){return(t=t.split(" "))[0]+" "+t[1]},Iu=function(t,e,n){var r=es(e);return yo(parseFloat(e)+parseFloat(Du(t,"x",n+"px",r)))+r},Fu=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,zu(t,e)},ju="0deg",Lu="0px",Yu=") ",zu=function(t,e){var n=e||this,r=n.xPercent,i=n.yPercent,a=n.x,o=n.y,s=n.z,l=n.rotation,u=n.rotationY,c=n.rotationX,h=n.skewX,d=n.skewY,f=n.scaleX,p=n.scaleY,v=n.transformPerspective,g=n.force3D,m=n.target,y=n.zOrigin,b="",_="auto"===g&&t&&1!==t||!0===g;if(y&&(c!==ju||u!==ju)){var w,D=parseFloat(u)*jl,S=Math.sin(D),x=Math.cos(D);D=parseFloat(c)*jl,w=Math.cos(D),a=Iu(m,a,S*w*-y),o=Iu(m,o,-Math.sin(D)*-y),s=Iu(m,s,x*w*-y+y)}v!==Lu&&(b+="perspective("+v+Yu),(r||i)&&(b+="translate("+r+"%, "+i+"%) "),(_||a!==Lu||o!==Lu||s!==Lu)&&(b+=s!==Lu||_?"translate3d("+a+", "+o+", "+s+") ":"translate("+a+", "+o+Yu),l!==ju&&(b+="rotate("+l+Yu),u!==ju&&(b+="rotateY("+u+Yu),c!==ju&&(b+="rotateX("+c+Yu),h===ju&&d===ju||(b+="skew("+h+", "+d+Yu),1===f&&1===p||(b+="scale("+f+", "+p+Yu),m.style[ru]=b||"translate(0, 0)"},Uu=function(t,e){var n,r,i,a,o,s=e||this,l=s.xPercent,u=s.yPercent,c=s.x,h=s.y,d=s.rotation,f=s.skewX,p=s.skewY,v=s.scaleX,g=s.scaleY,m=s.target,y=s.xOrigin,b=s.yOrigin,_=s.xOffset,w=s.yOffset,D=s.forceCSS,S=parseFloat(c),x=parseFloat(h);d=parseFloat(d),f=parseFloat(f),(p=parseFloat(p))&&(f+=p=parseFloat(p),d+=p),d||f?(d*=jl,f*=jl,n=Math.cos(d)*v,r=Math.sin(d)*v,i=Math.sin(d-f)*-g,a=Math.cos(d-f)*g,f&&(p*=jl,o=Math.tan(f-p),i*=o=Math.sqrt(1+o*o),a*=o,p&&(o=Math.tan(p),n*=o=Math.sqrt(1+o*o),r*=o)),n=yo(n),r=yo(r),i=yo(i),a=yo(a)):(n=v,a=g,r=i=0),(S&&!~(c+"").indexOf("px")||x&&!~(h+"").indexOf("px"))&&(S=Du(m,"x",c,"px"),x=Du(m,"y",h,"px")),(y||b||_||w)&&(S=yo(S+y-(y*n+b*i)+_),x=yo(x+b-(y*r+b*a)+w)),(l||u)&&(o=m.getBBox(),S=yo(S+l/100*o.width),x=yo(x+u/100*o.height)),o="matrix("+n+","+r+","+i+","+a+","+S+","+x+")",m.setAttribute("transform",o),D&&(m.style[ru]=o)},Hu=function(t,e,n,r,i){var a,o,s=360,l=Pa(i),u=parseFloat(i)*(l&&~i.indexOf("rad")?Fl:1)-r,c=r+u+"deg";return l&&("short"===(a=i.split("_")[1])&&(u%=s)!==u%180&&(u+=u<0?s:-360),"cw"===a&&u<0?u=(u+36e9)%s-~~(u/s)*s:"ccw"===a&&u>0&&(u=(u-36e9)%s-~~(u/s)*s)),t._pt=o=new vl(t._pt,e,n,r,u,Wl),o.e=c,o.u="deg",t._props.push(n),o},Gu=function(t,e){for(var n in e)t[n]=e[n];return t},Wu=function(t,e,n){var r,i,a,o,s,l,u,c=Gu({},n._gsap),h=n.style;for(i in c.svg?(a=n.getAttribute("transform"),n.setAttribute("transform",""),h[ru]=e,r=Nu(n,1),yu(n,ru),n.setAttribute("transform",a)):(a=getComputedStyle(n)[ru],h[ru]=e,r=Nu(n,1),h[ru]=a),Il)(a=c[i])!==(o=r[i])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(i)<0&&(s=es(a)!==(u=es(o))?Du(n,i,a,u):parseFloat(a),l=parseFloat(o),t._pt=new vl(t._pt,r,i,s,l-s,Gl),t._pt.u=u||0,t._props.push(i));Gu(r,c)};mo("padding,margin,Width,Radius",(function(t,e){var n="Top",r="Right",i="Bottom",a="Left",o=(e<3?[n,r,i,a]:[n+a,n+r,i+r,i+a]).map((function(n){return e<2?t+n:"border"+n+t}));Eu[e>1?"border"+t:t]=function(t,e,n,r,i){var a,s;if(arguments.length<4)return a=o.map((function(e){return Su(t,e,n)})),5===(s=a.join(" ")).split(a[0]).length?a[0]:s;a=(r+"").split(" "),s={},o.forEach((function(t,e){return s[t]=a[e]=a[e]||a[(e-1)/2|0]})),t.init(e,s,i)}}));var qu,$u,Ku,Zu={name:"css",register:fu,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,n,r,i){var a,o,s,l,u,c,h,d,f,p,v,g,m,y,b,_,w=this._props,D=t.style,S=n.vars.startAt;for(h in Pl||fu(),this.styles=this.styles||lu(t),_=this.styles.props,this.tween=n,e)if("autoRound"!==h&&(o=e[h],!lo[h]||!Ks(h,e,n,r,t,i)))if(u=typeof o,c=Eu[h],"function"===u&&(u=typeof(o=o.call(n,r,t,i))),"string"===u&&~o.indexOf("random(")&&(o=fs(o)),c)c(this,t,h,o,n)&&(b=1);else if("--"===h.substr(0,2))a=(getComputedStyle(t).getPropertyValue(h)+"").trim(),o+="",ks.lastIndex=0,ks.test(a)||(d=es(a),f=es(o)),f?d!==f&&(a=Du(t,h,a,f)+f):d&&(o+=d),this.add(D,"setProperty",a,o,r,i,0,0,h),w.push(h),_.push(h,0,D[h]);else if("undefined"!==u){if(S&&h in S?(a="function"==typeof S[h]?S[h].call(n,r,t,i):S[h],Pa(a)&&~a.indexOf("random(")&&(a=fs(a)),es(a+"")||"auto"===a||(a+=Da.units[h]||es(Su(t,h))||""),"="===(a+"").charAt(1)&&(a=Su(t,h))):a=Su(t,h),l=parseFloat(a),(p="string"===u&&"="===o.charAt(1)&&o.substr(0,2))&&(o=o.substr(2)),s=parseFloat(o),h in Hl&&("autoAlpha"===h&&(1===l&&"hidden"===Su(t,"visibility")&&s&&(l=0),_.push("visibility",0,D.visibility),bu(this,D,"visibility",l?"inherit":"hidden",s?"inherit":"hidden",!s)),"scale"!==h&&"transform"!==h&&~(h=Hl[h]).indexOf(",")&&(h=h.split(",")[0])),v=h in Il)if(this.styles.save(h),g||((m=t._gsap).renderTransform&&!e.parseTransform||Nu(t,e.parseTransform),y=!1!==e.smoothOrigin&&m.smooth,(g=this._pt=new vl(this._pt,D,ru,0,1,m.renderTransform,m,0,-1)).dep=1),"scale"===h)this._pt=new vl(this._pt,m,"scaleY",m.scaleY,(p?_o(m.scaleY,p+s):s)-m.scaleY||0,Gl),this._pt.u=0,w.push("scaleY",h),h+="X";else{if("transformOrigin"===h){_.push(iu,0,D[iu]),o=ku(o),m.svg?Ru(t,o,0,y,0,this):((f=parseFloat(o.split(" ")[2])||0)!==m.zOrigin&&bu(this,m,"zOrigin",m.zOrigin,f),bu(this,D,h,Bu(a),Bu(o)));continue}if("svgOrigin"===h){Ru(t,o,1,y,0,this);continue}if(h in Au){Hu(this,m,h,l,p?_o(l,p+o):o);continue}if("smoothOrigin"===h){bu(this,m,"smooth",m.smooth,o);continue}if("force3D"===h){m[h]=o;continue}if("transform"===h){Wu(this,o,t);continue}}else h in D||(h=du(h)||h);if(v||(s||0===s)&&(l||0===l)&&!Ul.test(o)&&h in D)s||(s=0),(d=(a+"").substr((l+"").length))!==(f=es(o)||(h in Da.units?Da.units[h]:d))&&(l=Du(t,h,a,f)),this._pt=new vl(this._pt,v?m:D,h,l,(p?_o(l,p+s):s)-l,v||"px"!==f&&"zIndex"!==h||!1===e.autoRound?Gl:$l),this._pt.u=f||0,d!==f&&"%"!==f&&(this._pt.b=a,this._pt.r=ql);else if(h in D)xu.call(this,t,h,a,p?p+o:o);else if(h in t)this.add(t,h,a||t[h],p?p+o:o,r,i);else if("parseTransform"!==h){Ja(h,o);continue}v||(h in D?_.push(h,0,D[h]):_.push(h,1,a||t[h])),w.push(h)}b&&pl(this)},render:function(t,e){if(e.tween._time||!Nl())for(var n=e._pt;n;)n.r(t,n.d),n=n._next;else e.styles.revert()},get:Su,aliases:Hl,getSetter:function(t,e,n){var r=Hl[e];return r&&r.indexOf(",")<0&&(e=r),e in Il&&e!==iu&&(t._gsap.x||Su(t,"x"))?n&&Rl===n?"scale"===e?tu:Ql:(Rl=n||{})&&("scale"===e?eu:nu):t.style&&!Na(t.style[e])?Xl:~e.indexOf("-")?Jl:ol(t,e)},core:{_removeProperty:yu,_getMatrix:Vu}};El.utils.checkPrefix=du,El.core.getStyleSaver=lu,Ku=mo((qu="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+($u="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",(function(t){Il[t]=1})),mo($u,(function(t){Da.units[t]="deg",Au[t]=1})),Hl[Ku[13]]=qu+","+$u,mo("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",(function(t){var e=t.split(":");Hl[e[1]]=Ku[e[0]]})),mo("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",(function(t){Da.units[t]="px"})),El.registerPlugin(Zu);var Xu=El.registerPlugin(Zu)||El;Xu.core.Tween;var Ju=function(){function t(){this.startPoisiton={x:0,y:0},this.endPoisiton={x:1920,y:0},this.curtain={width:1920,height:1080},this.totalTime=5,this.timeLine=Xu.timeline()}return t.getInstance=function(){return this.instance||(this.instance=new t),this.instance},t.prototype.init=function(t,e){var n;null===(n=this.timeLine)||void 0===n||n.clear();var r=e.curtain,i=e.totalTime,a=e.admissionMode;i&&(this.totalTime=i),this.setEndPoisiton(r);var o=this.filterData(t,a);this.goAnimationParams=e;for(var s=0;s<o.length;s++){var l=o[s];if(l instanceof Array)for(var u=0;u<l.length;u++){var c=this.totalTime/l.length,h=l[u],d=this._creatTl("#wrap"+h.cid);this._add(d,u*c)}else{c=this.totalTime/o.length,d=this._creatTl("#wrap"+l.cid);this._add(d,s*c)}}return this.timeLine},t.prototype.filterData=function(t,e){var n;if("left"==e)n=i.default.orderBy(t,["baseData.left"],["asc"]);else if("top"==e)n=i.default.orderBy(t,["baseData.top"],["asc"]);else if("topLeft"==e){var r=this.setSpacing(t,"left");n=i.default.orderBy(r,["spacing"],["asc"])}else if("topRight"==e){var a=this.setSpacing(t,"right");n=i.default.orderBy(a,["spacing"],["asc"])}else if("center"==e){var o=this.splitArrayForCenter(t,"left");n=[i.default.orderBy(o.true,["center.x"],["asc"]),i.default.orderBy(o.false,["center.x"],["desc"])]}else if("spaceBetween"==e){o=this.splitArrayForCenter(t,"left");n=[i.default.orderBy(o.true,["center.x"],["desc"]),i.default.orderBy(o.false,["center.x"],["asc"])]}else n=i.default.orderBy(t,["baseData.left"],["asc"]);return n},t.prototype.getSpacing=function(t,e){var n=t.x,r=t.y,i=e.x,a=e.y,o=Math.abs(n-i),s=Math.abs(r-a);return Math.sqrt(o*o+s*s)},t.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}},t.prototype.setEndPoisiton=function(t){if(t){var e=t.width,n=t.height;this.curtain=t,this.endPoisiton.x=e,this.endPoisiton.y=n}},t.prototype.setSpacing=function(t,e){var n,r=this;return"left"===e?n=this.startPoisiton:"right"===e&&(n=this.endPoisiton),t.forEach((function(t){var i=t.baseData;if(i){var a=r.creatPosition(i,e),o=r.getSpacing(a,n);t.spacing=o}})),t},t.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},t.prototype.splitArrayForCenter=function(t,e){var n,r=this,a=this.setCenter(t);return"left"!=e&&"right"!=e||(n=i.default.groupBy(a,(function(t){return t.center.x>=r.curtain.width/2}))),"top"!=e&&"bottom"!=e||(n=i.default.groupBy(a,(function(t){return t.center.y>=r.curtain.height/2}))),n},t.prototype._add=function(t,e){this.timeLine.add(t,e)},t.prototype._creatTl=function(t){var e=Xu.timeline();return e.add(this._creatTw(t)),e},t.prototype._creatTw=function(t){var e=this.goAnimationParams.params,n=e.delay,r=e.duration,i=e.repeat,a=e.type,o=e.value;return o&&o.length&&o.forEach((function(t){t.delay=n||0,t.repeat=i||0})),Xu[a](t,r,o[0],o[1])},t.prototype.in=function(){},t.prototype.out=function(){},t}(),Qu=Ju.getInstance();var tc=function(){function t(t){this.root=null,this.vuex=Si.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 t.prototype.findComponentDownward=function(t,e){var n=t.$children;if(n.length)for(var r=0,i=n;r<i.length;r++){var a=i[r];a.$options&&a.$options.propsData&&a.$options.propsData.cid&&(e[a.$options.propsData.cid]=a),a.$children&&a.$children.length&&this.findComponentDownward(a,e)}return e},t.prototype.getAllComponents=function(){var t={};return this.findComponentDownward(this.root,t),t},t.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)}},t.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)}},t.prototype.setGlobalVar=function(t){try{var e=t.key,n=t.value;if(!(t&&e&&n))throw new Error("An error occurred. Please check whether the incoming parameters are correct! The correct format of data is an object containing key and value");this.setVars(t)}catch(t){console.warn(t)}},t.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)}},t.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)}},t.prototype.getList=function(t){return t&&"id"===t?this.vuex.callState("list").map((function(t){return t.cid})):this.vuex.callState("list")},t.prototype.getTheme=function(t){var e=this.vuex.callState("theme");return t&&t(e),e},t.prototype.getElement=function(t){var e=function(t,e,n){var r=!1,a=function(t){for(var o=0;o<t.length;o++){if(t[o].cid==e){r=t[o],n&&i.default.remove(t,(function(t){return t.cid==e}));break}if(t[o].children)a(t[o].children);else if(t[o].dynamicChildren){if(t[o].dynamicChildren instanceof Map){for(var s=Array.from(t[o].dynamicChildren),l=0;l<s.length;l++)if(s[l]instanceof Array){var u=s[l][1];a(u)}}else if(t[o].dynamicChildren instanceof Array)for(s=t[o].dynamicChildren,l=0;l<s.length;l++)s[l]instanceof Array&&(u=s[l][1],a(u))}else t[o].stateChildren&&a(t[o].stateChildren)}};return a(t),r||!1}(this.vuex.callState("list"),t);return e},t.prototype.changeVis=function(t){return this.vuex.callMutation("changeShow",t)},t.prototype.comToggle=function(t){return this.vuex.callMutation("comToggle",t)},t.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},t.prototype.updateComp=function(t){return this.vuex.callMutation("updatComs",t)},t.prototype.changeDynamicState=function(t){return this.vuex.callMutation("changeDynamicState",t)},t.prototype.pageChange=function(t){return this.vuex.callMutation("setPageId",t)},t.prototype.pagePush=function(t,e,n){return void 0===n&&(n={}),this.vuex.callMutation("pagePush",{type:t,value:e,option:n})},t.prototype.activeState=function(t,e){return this.vuex.callMutation("setDynamicActive",{cid:t,name:e})},t.prototype.getVars=function(t){var e=Pr.getAllVariables();return t&&t(e),e},t.prototype.setVars=function(t){var e=Pr.getVariable(t.key);if(2!=(null==e?void 0:e.model))return this.vuex.callAction("goEditVar",t);console.warn("系统变量禁止修改!")},t}(),ec=function(t){function e(e){var n,r,i=t.call(this,e)||this,a=(n=(n=i.eventType)||new Map,d(d({},r),{EventType:n,on:function(t,e){var r=n.get(t);r?r.push(e):n.set(t,[e])},off:function(t,e){var r=n.get(t);r&&(e?r.splice(r.indexOf(e)>>>0,1):n.set(t,[]))},emit:function(t,e){var r=n.get(t);if(r){var i=r.slice().map((function(t){return t(e)}));if(i&&1==i.length)return i[0]}(r=n.get("*"))&&r.slice().map((function(n){n(t,e)}))}}));return i.$emit=a.emit,i.$on=a.on,i.$off=a.off,i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}h(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}(tc),nc=function(){function t(t){this.$action=new rc(t),this.instance=new ec(t)}return t.prototype.getGlobalvars=function(){for(var t=Pr.getAllVariables().map((function(t){return t.mapField})),e={},n=0,r=t;n<r.length;n++){var i=r[n],a=Pr.getVariable(i);a&&(e[i]=a.value)}var o=this.instance;return new Proxy(e,{has:function(t,e){return!e&&e in t},get:function(t,e){if(e in t)return t[e];throw new ReferenceError('Prop name "'+e+'" does not exist.')},set:function(t,e,n){if(!t[e])return console.log("变量不存在/不能被修改"),!1;if(t[e]=n,!e||"string"!=typeof e)throw new Error("Invalid key");o.setGlobalVar({key:e,value:n})}})},Object.defineProperty(t.prototype,"globalvars",{get:function(){return this.getGlobalvars()},enumerable:!1,configurable:!0}),t}(),rc=function(t){var e=this;this.setGlobalVars=function(t,n){if(!t||"string"!=typeof t)throw new Error("Invalid key");e.instance.setGlobalVar({key:t,value:n})},this.skipTo=function(t){if(!t||0===Object.keys(t).length)throw new Error("事件跳转发生错误:参数:".concat(t," 不正确,请正确填写!doc: https://anov.cucloud.cn/anov-go-doc/"));if(t.name)e.instance.pagePush("name",t.name);else if(t.path)e.instance.pagePush("path",t.path);else{if(!t.url)throw new Error("事件跳转发生错误:参数:".concat(t," 不正确,请正确填写!doc: https://anov.cucloud.cn/anov-go-doc/"));window.open(t.url)}},this.toggle=function(t){if(t)if("string"!=typeof t&&"number"!=typeof t)if(Array.isArray(t))for(var n=0,r=t;n<r.length;n++){var i=r[n];"string"==typeof i||"number"==typeof i?e.instance.comToggle(i):console.warn("请传入正确的参数!")}else console.warn("请传入正确的参数!");else e.instance.comToggle(t);else console.warn("请传入正确的参数!")},this.show=function(t){if(t)if("string"!=typeof t&&"number"!=typeof t){if(Array.isArray(t))for(var n=0,r=t;n<r.length;n++){var i=r[n];"string"==typeof i||"number"==typeof i?e.instance._showComponent(i.toString()):console.warn("请传入正确的参数!")}}else e.instance._showComponent(t.toString());else console.warn("请传入正确的参数!")},this.hide=function(t){if(t)if("string"!=typeof t&&"number"!=typeof t){if(Array.isArray(t))for(var n=0,r=t;n<r.length;n++){var i=r[n];"string"==typeof i||"number"==typeof i?e.instance._hideComponent(i):console.warn("请传入正确的参数!")}}else e.instance._hideComponent(t);else console.warn("请传入正确的参数!")},this.activeState=function(t,n){e.instance.activeState(t,n)},this.updateComp=function(t){if(t)if("string"!=typeof t&&"number"!=typeof t){if(Array.isArray(t))for(var n=0,r=t;n<r.length;n++){var i=r[n];"string"==typeof i||"number"==typeof i?e.instance.updateComp(i):console.warn("请传入正确的参数!")}}else e.instance.updateComp(t);else console.warn("请传入正确的参数!")},this.instance=new ec(t)};t.Go=Si,t.GoAnimation=Qu,t.Tool=la,t.createComponent=function(t,e){return e&&t?Si.getInstance().render(t,e):t?Si.getInstance().render(t):void 0},t.createComponentForParent=function(t,e,n){return void 0!==n&&t?Si.getInstance().renderForParent(t,e,n):t?Si.getInstance().renderForParent(t,e):void 0},t.emitEvent=function(t,e){return Si.getInstance().emitEvent(t,e||function(){})},t.fxhr=Zr,t.getDataForRelease=function(t,e){console.log("弃用")},t.goUtils=Ir,t.log=function(){},t.refreshData=Kr,t.run=function(t){return new nc(t)},t.store=di,Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
51
|
+
var Al,Ml,Pl,Vl,Rl,Nl,Bl,Il,Fl={},jl=180/Math.PI,Ll=Math.PI/180,Yl=Math.atan2,zl=/([A-Z])/g,Ul=/(left|right|width|margin|padding|x)/i,Hl=/[\s,\(]\S/,Gl={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},ql=function(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},Wl=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)},$l=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)},Kl=function(t,e){var n=e.s+e.c*t;e.set(e.t,e.p,~~(n+(n<0?-.5:.5))+e.u,e)},Zl=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},Xl=function(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)},Jl=function(t,e,n){return t.style[e]=n},Ql=function(t,e,n){return t.style.setProperty(e,n)},tu=function(t,e,n){return t._gsap[e]=n},eu=function(t,e,n){return t._gsap.scaleX=t._gsap.scaleY=n},nu=function(t,e,n,r,i){var a=t._gsap;a.scaleX=a.scaleY=n,a.renderTransform(i,a)},ru=function(t,e,n,r,i){var a=t._gsap;a[e]=n,a.renderTransform(i,a)},iu="transform",au=iu+"Origin",ou=function t(e,n){var r=this,i=this.target,a=i.style,o=i._gsap;if(e in Fl&&a){if(this.tfm=this.tfm||{},"transform"===e)return Gl.transform.split(",").forEach((function(e){return t.call(r,e,n)}));if(~(e=Gl[e]||e).indexOf(",")?e.split(",").forEach((function(t){return r.tfm[t]=xu(i,t)})):this.tfm[e]=o.x?o[e]:xu(i,e),e===au&&(this.tfm.zOrigin=o.zOrigin),this.props.indexOf(iu)>=0)return;o.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(au,n,"")),e=iu}(a||n)&&this.props.push(e,n,a[e])},su=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},lu=function(){var t,e,n=this.props,r=this.target,i=r.style,a=r._gsap;for(t=0;t<n.length;t+=3)n[t+1]?r[n[t]]=n[t+2]:n[t+2]?i[n[t]]=n[t+2]:i.removeProperty("--"===n[t].substr(0,2)?n[t]:n[t].replace(zl,"-$1").toLowerCase());if(this.tfm){for(e in this.tfm)a[e]=this.tfm[e];a.svg&&(a.renderTransform(),r.setAttribute("data-svg-origin",this.svgo||"")),(t=Bl())&&t.isStart||i[iu]||(su(i),a.zOrigin&&i[au]&&(i[au]+=" "+a.zOrigin+"px",a.zOrigin=0,a.renderTransform()),a.uncache=1)}},uu=function(t,e){var n={target:t,props:[],revert:lu,save:ou};return t._gsap||Ol.core.getCache(t),e&&e.split(",").forEach((function(t){return n.save(t)})),n},cu=function(t,e){var n=Ml.createElementNS?Ml.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):Ml.createElement(t);return n&&n.style?n:Ml.createElement(t)},hu=function t(e,n,r){var i=getComputedStyle(e);return i[n]||i.getPropertyValue(n.replace(zl,"-$1").toLowerCase())||i.getPropertyValue(n)||!r&&t(e,fu(n)||n,1)||""},du="O,Moz,ms,Ms,Webkit".split(","),fu=function(t,e,n){var r=(e||Rl).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},pu=function(){"undefined"!=typeof window&&window.document&&(Al=window,Ml=Al.document,Pl=Ml.documentElement,Rl=cu("div")||{style:{}},cu("div"),iu=fu(iu),au=iu+"Origin",Rl.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Il=!!fu("perspective"),Bl=Ol.core.reverting,Vl=1)},vu=function t(e){var n,r=cu("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=this.parentNode,a=this.nextSibling,o=this.style.cssText;if(Pl.appendChild(r),r.appendChild(this),this.style.display="block",e)try{n=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=t}catch(t){}else this._gsapBBox&&(n=this._gsapBBox());return i&&(a?i.insertBefore(this,a):i.appendChild(this)),Pl.removeChild(r),this.style.cssText=o,n},gu=function(t,e){for(var n=e.length;n--;)if(t.hasAttribute(e[n]))return t.getAttribute(e[n])},mu=function(t){var e;try{e=t.getBBox()}catch(n){e=vu.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===vu||(e=vu.call(t,!0)),!e||e.width||e.x||e.y?e:{x:+gu(t,["x","cx","x1"])||0,y:+gu(t,["y","cy","y1"])||0,width:0,height:0}},yu=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!mu(t))},bu=function(t,e){if(e){var n,r=t.style;e in Fl&&e!==au&&(e=iu),r.removeProperty?("ms"!==(n=e.substr(0,2))&&"webkit"!==e.substr(0,6)||(e="-"+e),r.removeProperty("--"===n?e:e.replace(zl,"-$1").toLowerCase())):r.removeAttribute(e)}},_u=function(t,e,n,r,i,a){var o=new gl(t._pt,e,n,0,1,a?Xl:Zl);return t._pt=o,o.b=r,o.e=i,t._props.push(n),o},wu={deg:1,rad:1,turn:1},Du={grid:1,flex:1},Su=function t(e,n,r,i){var a,o,s,l,u=parseFloat(r)||0,c=(r+"").trim().substr((u+"").length)||"px",h=Rl.style,d=Ul.test(n),f="svg"===e.tagName.toLowerCase(),p=(f?"client":"offset")+(d?"Width":"Height"),v=100,g="px"===i,m="%"===i;if(i===c||!u||wu[i]||wu[c])return u;if("px"!==c&&!g&&(u=t(e,n,r,"px")),l=e.getCTM&&yu(e),(m||"%"===c)&&(Fl[n]||~n.indexOf("adius")))return a=l?e.getBBox()[d?"width":"height"]:e[p],bo(m?u/a*v:u/100*a);if(h[d?"width":"height"]=v+(g?c:i),o=~n.indexOf("adius")||"em"===i&&e.appendChild&&!f?e:e.parentNode,l&&(o=(e.ownerSVGElement||{}).parentNode),o&&o!==Ml&&o.appendChild||(o=Ml.body),(s=o._gsap)&&m&&s.width&&d&&s.time===As.time&&!s.uncache)return bo(u/s.width*v);if(!m||"height"!==n&&"width"!==n)(m||"%"===c)&&!Du[hu(o,"display")]&&(h.position=hu(e,"position")),o===e&&(h.position="static"),o.appendChild(Rl),a=Rl[p],o.removeChild(Rl),h.position="absolute";else{var y=e.style[n];e.style[n]=v+i,a=e[p],y?e.style[n]=y:bu(e,n)}return d&&m&&((s=go(o)).time=As.time,s.width=o[p]),bo(g?a*u/v:a&&u?v/a*u:0)},xu=function(t,e,n,r){var i;return Vl||pu(),e in Gl&&"transform"!==e&&~(e=Gl[e]).indexOf(",")&&(e=e.split(",")[0]),Fl[e]&&"transform"!==e?(i=Bu(t,r),i="transformOrigin"!==e?i[e]:i.svg?i.origin:Iu(hu(t,au))+" "+i.zOrigin+"px"):(!(i=t.style[e])||"auto"===i||r||~(i+"").indexOf("calc("))&&(i=Ou[e]&&Ou[e](t,e,n)||hu(t,e)||mo(t,e)||("opacity"===e?1:0)),n&&!~(i+"").trim().indexOf(" ")?Su(t,e,i,n)+n:i},Tu=function(t,e,n,r){if(!n||"none"===n){var i=fu(e,t,1),a=i&&hu(t,i,1);a&&a!==n?(e=i,n=a):"borderColor"===e&&(n=hu(t,"borderTopColor"))}var o,s,l,u,c,h,d,f,p,v,g,m=new gl(this._pt,t.style,e,0,1,cl),y=0,b=0;if(m.b=n,m.e=r,n+="","auto"===(r+="")&&(h=t.style[e],t.style[e]=r,r=hu(t,e)||r,h?t.style[e]=h:bu(t,e)),Os(o=[n,r]),r=o[1],l=(n=o[0]).match(Ga)||[],(r.match(Ga)||[]).length){for(;s=Ga.exec(r);)d=s[0],p=r.substring(y,s.index),c?c=(c+1)%5:"rgba("!==p.substr(-5)&&"hsla("!==p.substr(-5)||(c=1),d!==(h=l[b++]||"")&&(u=parseFloat(h)||0,g=h.substr((u+"").length),"="===d.charAt(1)&&(d=wo(u,d)+g),f=parseFloat(d),v=d.substr((f+"").length),y=Ga.lastIndex-v.length,v||(v=v||Sa.units[e]||g,y===r.length&&(r+=v,m.e+=v)),g!==v&&(u=Su(t,e,h,v)||0),m._pt={_next:m._pt,p:p||1===b?p:",",s:u,c:f-u,m:c&&c<4||"zIndex"===e?Math.round:0});m.c=y<r.length?r.substring(y,r.length):""}else m.r="display"===e&&"none"===r?Xl:Zl;return Wa.test(r)&&(m.e=0),this._pt=m,m},ku={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Cu=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]=ku[n]||n,e[1]=ku[r]||r,e.join(" ")},Eu=function(t,e){if(e.tween&&e.tween._time===e.tween._dur){var n,r,i,a=e.t,o=a.style,s=e.u,l=a._gsap;if("all"===s||!0===s)o.cssText="",r=1;else for(i=(s=s.split(",")).length;--i>-1;)n=s[i],Fl[n]&&(r=1,n="transformOrigin"===n?au:iu),bu(a,n);r&&(bu(a,iu),l&&(l.svg&&a.removeAttribute("transform"),Bu(a,1),l.uncache=1,su(o)))}},Ou={clearProps:function(t,e,n,r,i){if("isFromStart"!==i.data){var a=t._pt=new gl(t._pt,e,n,0,0,Eu);return a.u=r,a.pr=-10,a.tween=i,t._props.push(n),1}}},Au=[1,0,0,1,0,0],Mu={},Pu=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},Vu=function(t){var e=hu(t,iu);return Pu(e)?Au:e.substr(7).match(Ha).map(bo)},Ru=function(t,e){var n,r,i,a,o=t._gsap||go(t),s=t.style,l=Vu(t);return o.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(l=[(i=t.transform.baseVal.consolidate().matrix).a,i.b,i.c,i.d,i.e,i.f]).join(",")?Au:l:(l!==Au||t.offsetParent||t===Pl||o.svg||(i=s.display,s.display="block",(n=t.parentNode)&&t.offsetParent||(a=1,r=t.nextElementSibling,Pl.appendChild(t)),l=Vu(t),i?s.display=i:bu(t,"display"),a&&(r?n.insertBefore(t,r):n?n.appendChild(t):Pl.removeChild(t))),e&&l.length>6?[l[0],l[1],l[4],l[5],l[12],l[13]]:l)},Nu=function(t,e,n,r,i,a){var o,s,l,u=t._gsap,c=i||Ru(t,!0),h=u.xOrigin||0,d=u.yOrigin||0,f=u.xOffset||0,p=u.yOffset||0,v=c[0],g=c[1],m=c[2],y=c[3],b=c[4],_=c[5],w=e.split(" "),D=parseFloat(w[0])||0,S=parseFloat(w[1])||0;n?c!==Au&&(s=v*y-g*m)&&(l=D*(-g/s)+S*(v/s)-(v*_-g*b)/s,D=D*(y/s)+S*(-m/s)+(m*_-y*b)/s,S=l):(D=(o=mu(t)).x+(~w[0].indexOf("%")?D/100*o.width:D),S=o.y+(~(w[1]||w[0]).indexOf("%")?S/100*o.height:S),"xOrigin"in u||!D&&!S||(D-=o.x,S-=o.y)),r||!1!==r&&u.smooth?(b=D-h,_=S-d,u.xOffset=f+(b*v+_*m)-b,u.yOffset=p+(b*g+_*y)-_):u.xOffset=u.yOffset=0,u.xOrigin=D,u.yOrigin=S,u.smooth=!!r,u.origin=e,u.originIsAbsolute=!!n,t.style[au]="0px 0px",a&&(_u(a,u,"xOrigin",h,D),_u(a,u,"yOrigin",d,S),_u(a,u,"xOffset",f,u.xOffset),_u(a,u,"yOffset",p,u.yOffset)),t.setAttribute("data-svg-origin",D+" "+S)},Bu=function(t,e){var n=t._gsap||new Us(t);if("x"in n&&!e&&!n.uncache)return n;var r,i,a,o,s,l,u,c,h,d,f,p,v,g,m,y,b,_,w,D,S,x,T,k,C,E,O,A,M,P,V,R,N=t.style,B=n.scaleX<0,I="px",F="deg",j=getComputedStyle(t),L=hu(t,au)||"0";return r=i=a=l=u=c=h=d=f=0,o=s=1,n.svg=!(!t.getCTM||!yu(t)),j.translate&&("none"===j.translate&&"none"===j.scale&&"none"===j.rotate||(N[iu]=("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[iu]?j[iu]:"")),N.scale=N.rotate=N.translate="none"),g=Ru(t,n.svg),n.svg&&(n.uncache?(C=t.getBBox(),L=n.xOrigin-C.x+"px "+(n.yOrigin-C.y)+"px",k=""):k=!e&&t.getAttribute("data-svg-origin"),Nu(t,k||L,!!k||n.originIsAbsolute,!1!==n.smooth,g)),p=n.xOrigin||0,v=n.yOrigin||0,g!==Au&&(_=g[0],w=g[1],D=g[2],S=g[3],r=x=g[4],i=T=g[5],6===g.length?(o=Math.sqrt(_*_+w*w),s=Math.sqrt(S*S+D*D),l=_||w?Yl(w,_)*jl:0,(h=D||S?Yl(D,S)*jl+l:0)&&(s*=Math.abs(Math.cos(h*Ll))),n.svg&&(r-=p-(p*_+v*D),i-=v-(p*w+v*S))):(R=g[6],P=g[7],O=g[8],A=g[9],M=g[10],V=g[11],r=g[12],i=g[13],a=g[14],u=(m=Yl(R,M))*jl,m&&(k=x*(y=Math.cos(-m))+O*(b=Math.sin(-m)),C=T*y+A*b,E=R*y+M*b,O=x*-b+O*y,A=T*-b+A*y,M=R*-b+M*y,V=P*-b+V*y,x=k,T=C,R=E),c=(m=Yl(-D,M))*jl,m&&(y=Math.cos(-m),V=S*(b=Math.sin(-m))+V*y,_=k=_*y-O*b,w=C=w*y-A*b,D=E=D*y-M*b),l=(m=Yl(w,_))*jl,m&&(k=_*(y=Math.cos(m))+w*(b=Math.sin(m)),C=x*y+T*b,w=w*y-_*b,T=T*y-x*b,_=k,x=C),u&&Math.abs(u)+Math.abs(l)>359.9&&(u=l=0,c=180-c),o=bo(Math.sqrt(_*_+w*w+D*D)),s=bo(Math.sqrt(T*T+R*R)),m=Yl(x,T),h=Math.abs(m)>2e-4?m*jl:0,f=V?1/(V<0?-V:V):0),n.svg&&(k=t.getAttribute("transform"),n.forceCSS=t.setAttribute("transform","")||!Pu(hu(t,iu)),k&&t.setAttribute("transform",k))),Math.abs(h)>90&&Math.abs(h)<270&&(B?(o*=-1,h+=l<=0?180:-180,l+=l<=0?180:-180):(s*=-1,h+=h<=0?180:-180)),e=e||n.uncache,n.x=r-((n.xPercent=r&&(!e&&n.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-r)?-50:0)))?t.offsetWidth*n.xPercent/100:0)+I,n.y=i-((n.yPercent=i&&(!e&&n.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-i)?-50:0)))?t.offsetHeight*n.yPercent/100:0)+I,n.z=a+I,n.scaleX=bo(o),n.scaleY=bo(s),n.rotation=bo(l)+F,n.rotationX=bo(u)+F,n.rotationY=bo(c)+F,n.skewX=h+F,n.skewY=d+F,n.transformPerspective=f+I,(n.zOrigin=parseFloat(L.split(" ")[2])||!e&&n.zOrigin||0)&&(N[au]=Iu(L)),n.svg||(n.xOffset=n.yOffset=0),n.force3D=Sa.force3D,n.renderTransform=n.svg?Hu:Il?Uu:ju,n.uncache=0,n},Iu=function(t){return(t=t.split(" "))[0]+" "+t[1]},Fu=function(t,e,n){var r=ns(e);return bo(parseFloat(e)+parseFloat(Su(t,"x",n+"px",r)))+r},ju=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,Uu(t,e)},Lu="0deg",Yu="0px",zu=") ",Uu=function(t,e){var n=e||this,r=n.xPercent,i=n.yPercent,a=n.x,o=n.y,s=n.z,l=n.rotation,u=n.rotationY,c=n.rotationX,h=n.skewX,d=n.skewY,f=n.scaleX,p=n.scaleY,v=n.transformPerspective,g=n.force3D,m=n.target,y=n.zOrigin,b="",_="auto"===g&&t&&1!==t||!0===g;if(y&&(c!==Lu||u!==Lu)){var w,D=parseFloat(u)*Ll,S=Math.sin(D),x=Math.cos(D);D=parseFloat(c)*Ll,w=Math.cos(D),a=Fu(m,a,S*w*-y),o=Fu(m,o,-Math.sin(D)*-y),s=Fu(m,s,x*w*-y+y)}v!==Yu&&(b+="perspective("+v+zu),(r||i)&&(b+="translate("+r+"%, "+i+"%) "),(_||a!==Yu||o!==Yu||s!==Yu)&&(b+=s!==Yu||_?"translate3d("+a+", "+o+", "+s+") ":"translate("+a+", "+o+zu),l!==Lu&&(b+="rotate("+l+zu),u!==Lu&&(b+="rotateY("+u+zu),c!==Lu&&(b+="rotateX("+c+zu),h===Lu&&d===Lu||(b+="skew("+h+", "+d+zu),1===f&&1===p||(b+="scale("+f+", "+p+zu),m.style[iu]=b||"translate(0, 0)"},Hu=function(t,e){var n,r,i,a,o,s=e||this,l=s.xPercent,u=s.yPercent,c=s.x,h=s.y,d=s.rotation,f=s.skewX,p=s.skewY,v=s.scaleX,g=s.scaleY,m=s.target,y=s.xOrigin,b=s.yOrigin,_=s.xOffset,w=s.yOffset,D=s.forceCSS,S=parseFloat(c),x=parseFloat(h);d=parseFloat(d),f=parseFloat(f),(p=parseFloat(p))&&(f+=p=parseFloat(p),d+=p),d||f?(d*=Ll,f*=Ll,n=Math.cos(d)*v,r=Math.sin(d)*v,i=Math.sin(d-f)*-g,a=Math.cos(d-f)*g,f&&(p*=Ll,o=Math.tan(f-p),i*=o=Math.sqrt(1+o*o),a*=o,p&&(o=Math.tan(p),n*=o=Math.sqrt(1+o*o),r*=o)),n=bo(n),r=bo(r),i=bo(i),a=bo(a)):(n=v,a=g,r=i=0),(S&&!~(c+"").indexOf("px")||x&&!~(h+"").indexOf("px"))&&(S=Su(m,"x",c,"px"),x=Su(m,"y",h,"px")),(y||b||_||w)&&(S=bo(S+y-(y*n+b*i)+_),x=bo(x+b-(y*r+b*a)+w)),(l||u)&&(o=m.getBBox(),S=bo(S+l/100*o.width),x=bo(x+u/100*o.height)),o="matrix("+n+","+r+","+i+","+a+","+S+","+x+")",m.setAttribute("transform",o),D&&(m.style[iu]=o)},Gu=function(t,e,n,r,i){var a,o,s=360,l=Va(i),u=parseFloat(i)*(l&&~i.indexOf("rad")?jl:1)-r,c=r+u+"deg";return l&&("short"===(a=i.split("_")[1])&&(u%=s)!==u%180&&(u+=u<0?s:-360),"cw"===a&&u<0?u=(u+36e9)%s-~~(u/s)*s:"ccw"===a&&u>0&&(u=(u-36e9)%s-~~(u/s)*s)),t._pt=o=new gl(t._pt,e,n,r,u,Wl),o.e=c,o.u="deg",t._props.push(n),o},qu=function(t,e){for(var n in e)t[n]=e[n];return t},Wu=function(t,e,n){var r,i,a,o,s,l,u,c=qu({},n._gsap),h=n.style;for(i in c.svg?(a=n.getAttribute("transform"),n.setAttribute("transform",""),h[iu]=e,r=Bu(n,1),bu(n,iu),n.setAttribute("transform",a)):(a=getComputedStyle(n)[iu],h[iu]=e,r=Bu(n,1),h[iu]=a),Fl)(a=c[i])!==(o=r[i])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(i)<0&&(s=ns(a)!==(u=ns(o))?Su(n,i,a,u):parseFloat(a),l=parseFloat(o),t._pt=new gl(t._pt,r,i,s,l-s,ql),t._pt.u=u||0,t._props.push(i));qu(r,c)};yo("padding,margin,Width,Radius",(function(t,e){var n="Top",r="Right",i="Bottom",a="Left",o=(e<3?[n,r,i,a]:[n+a,n+r,i+r,i+a]).map((function(n){return e<2?t+n:"border"+n+t}));Ou[e>1?"border"+t:t]=function(t,e,n,r,i){var a,s;if(arguments.length<4)return a=o.map((function(e){return xu(t,e,n)})),5===(s=a.join(" ")).split(a[0]).length?a[0]:s;a=(r+"").split(" "),s={},o.forEach((function(t,e){return s[t]=a[e]=a[e]||a[(e-1)/2|0]})),t.init(e,s,i)}}));var $u,Ku,Zu,Xu={name:"css",register:pu,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,n,r,i){var a,o,s,l,u,c,h,d,f,p,v,g,m,y,b,_,w=this._props,D=t.style,S=n.vars.startAt;for(h in Vl||pu(),this.styles=this.styles||uu(t),_=this.styles.props,this.tween=n,e)if("autoRound"!==h&&(o=e[h],!uo[h]||!Zs(h,e,n,r,t,i)))if(u=typeof o,c=Ou[h],"function"===u&&(u=typeof(o=o.call(n,r,t,i))),"string"===u&&~o.indexOf("random(")&&(o=ps(o)),c)c(this,t,h,o,n)&&(b=1);else if("--"===h.substr(0,2))a=(getComputedStyle(t).getPropertyValue(h)+"").trim(),o+="",Cs.lastIndex=0,Cs.test(a)||(d=ns(a),f=ns(o)),f?d!==f&&(a=Su(t,h,a,f)+f):d&&(o+=d),this.add(D,"setProperty",a,o,r,i,0,0,h),w.push(h),_.push(h,0,D[h]);else if("undefined"!==u){if(S&&h in S?(a="function"==typeof S[h]?S[h].call(n,r,t,i):S[h],Va(a)&&~a.indexOf("random(")&&(a=ps(a)),ns(a+"")||"auto"===a||(a+=Sa.units[h]||ns(xu(t,h))||""),"="===(a+"").charAt(1)&&(a=xu(t,h))):a=xu(t,h),l=parseFloat(a),(p="string"===u&&"="===o.charAt(1)&&o.substr(0,2))&&(o=o.substr(2)),s=parseFloat(o),h in Gl&&("autoAlpha"===h&&(1===l&&"hidden"===xu(t,"visibility")&&s&&(l=0),_.push("visibility",0,D.visibility),_u(this,D,"visibility",l?"inherit":"hidden",s?"inherit":"hidden",!s)),"scale"!==h&&"transform"!==h&&~(h=Gl[h]).indexOf(",")&&(h=h.split(",")[0])),v=h in Fl)if(this.styles.save(h),g||((m=t._gsap).renderTransform&&!e.parseTransform||Bu(t,e.parseTransform),y=!1!==e.smoothOrigin&&m.smooth,(g=this._pt=new gl(this._pt,D,iu,0,1,m.renderTransform,m,0,-1)).dep=1),"scale"===h)this._pt=new gl(this._pt,m,"scaleY",m.scaleY,(p?wo(m.scaleY,p+s):s)-m.scaleY||0,ql),this._pt.u=0,w.push("scaleY",h),h+="X";else{if("transformOrigin"===h){_.push(au,0,D[au]),o=Cu(o),m.svg?Nu(t,o,0,y,0,this):((f=parseFloat(o.split(" ")[2])||0)!==m.zOrigin&&_u(this,m,"zOrigin",m.zOrigin,f),_u(this,D,h,Iu(a),Iu(o)));continue}if("svgOrigin"===h){Nu(t,o,1,y,0,this);continue}if(h in Mu){Gu(this,m,h,l,p?wo(l,p+o):o);continue}if("smoothOrigin"===h){_u(this,m,"smooth",m.smooth,o);continue}if("force3D"===h){m[h]=o;continue}if("transform"===h){Wu(this,o,t);continue}}else h in D||(h=fu(h)||h);if(v||(s||0===s)&&(l||0===l)&&!Hl.test(o)&&h in D)s||(s=0),(d=(a+"").substr((l+"").length))!==(f=ns(o)||(h in Sa.units?Sa.units[h]:d))&&(l=Su(t,h,a,f)),this._pt=new gl(this._pt,v?m:D,h,l,(p?wo(l,p+s):s)-l,v||"px"!==f&&"zIndex"!==h||!1===e.autoRound?ql:Kl),this._pt.u=f||0,d!==f&&"%"!==f&&(this._pt.b=a,this._pt.r=$l);else if(h in D)Tu.call(this,t,h,a,p?p+o:o);else if(h in t)this.add(t,h,a||t[h],p?p+o:o,r,i);else if("parseTransform"!==h){Qa(h,o);continue}v||(h in D?_.push(h,0,D[h]):_.push(h,1,a||t[h])),w.push(h)}b&&vl(this)},render:function(t,e){if(e.tween._time||!Bl())for(var n=e._pt;n;)n.r(t,n.d),n=n._next;else e.styles.revert()},get:xu,aliases:Gl,getSetter:function(t,e,n){var r=Gl[e];return r&&r.indexOf(",")<0&&(e=r),e in Fl&&e!==au&&(t._gsap.x||xu(t,"x"))?n&&Nl===n?"scale"===e?eu:tu:(Nl=n||{})&&("scale"===e?nu:ru):t.style&&!Ba(t.style[e])?Jl:~e.indexOf("-")?Ql:sl(t,e)},core:{_removeProperty:bu,_getMatrix:Ru}};Ol.utils.checkPrefix=fu,Ol.core.getStyleSaver=uu,Zu=yo(($u="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(Ku="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",(function(t){Fl[t]=1})),yo(Ku,(function(t){Sa.units[t]="deg",Mu[t]=1})),Gl[Zu[13]]=$u+","+Ku,yo("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",(function(t){var e=t.split(":");Gl[e[1]]=Zu[e[0]]})),yo("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",(function(t){Sa.units[t]="px"})),Ol.registerPlugin(Xu);var Ju=Ol.registerPlugin(Xu)||Ol;Ju.core.Tween;var Qu=function(){function t(){this.startPoisiton={x:0,y:0},this.endPoisiton={x:1920,y:0},this.curtain={width:1920,height:1080},this.totalTime=5,this.timeLine=Ju.timeline()}return t.getInstance=function(){return this.instance||(this.instance=new t),this.instance},t.prototype.init=function(t,e){var n;null===(n=this.timeLine)||void 0===n||n.clear();var r=e.curtain,i=e.totalTime,a=e.admissionMode;i&&(this.totalTime=i),this.setEndPoisiton(r);var o=this.filterData(t,a);this.goAnimationParams=e;for(var s=0;s<o.length;s++){var l=o[s];if(l instanceof Array)for(var u=0;u<l.length;u++){var c=this.totalTime/l.length,h=l[u],d=this._creatTl("#wrap"+h.cid);this._add(d,u*c)}else{c=this.totalTime/o.length,d=this._creatTl("#wrap"+l.cid);this._add(d,s*c)}}return this.timeLine},t.prototype.filterData=function(t,e){var n;if("left"==e)n=i.default.orderBy(t,["baseData.left"],["asc"]);else if("top"==e)n=i.default.orderBy(t,["baseData.top"],["asc"]);else if("topLeft"==e){var r=this.setSpacing(t,"left");n=i.default.orderBy(r,["spacing"],["asc"])}else if("topRight"==e){var a=this.setSpacing(t,"right");n=i.default.orderBy(a,["spacing"],["asc"])}else if("center"==e){var o=this.splitArrayForCenter(t,"left");n=[i.default.orderBy(o.true,["center.x"],["asc"]),i.default.orderBy(o.false,["center.x"],["desc"])]}else if("spaceBetween"==e){o=this.splitArrayForCenter(t,"left");n=[i.default.orderBy(o.true,["center.x"],["desc"]),i.default.orderBy(o.false,["center.x"],["asc"])]}else n=i.default.orderBy(t,["baseData.left"],["asc"]);return n},t.prototype.getSpacing=function(t,e){var n=t.x,r=t.y,i=e.x,a=e.y,o=Math.abs(n-i),s=Math.abs(r-a);return Math.sqrt(o*o+s*s)},t.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}},t.prototype.setEndPoisiton=function(t){if(t){var e=t.width,n=t.height;this.curtain=t,this.endPoisiton.x=e,this.endPoisiton.y=n}},t.prototype.setSpacing=function(t,e){var n,r=this;return"left"===e?n=this.startPoisiton:"right"===e&&(n=this.endPoisiton),t.forEach((function(t){var i=t.baseData;if(i){var a=r.creatPosition(i,e),o=r.getSpacing(a,n);t.spacing=o}})),t},t.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},t.prototype.splitArrayForCenter=function(t,e){var n,r=this,a=this.setCenter(t);return"left"!=e&&"right"!=e||(n=i.default.groupBy(a,(function(t){return t.center.x>=r.curtain.width/2}))),"top"!=e&&"bottom"!=e||(n=i.default.groupBy(a,(function(t){return t.center.y>=r.curtain.height/2}))),n},t.prototype._add=function(t,e){this.timeLine.add(t,e)},t.prototype._creatTl=function(t){var e=Ju.timeline();return e.add(this._creatTw(t)),e},t.prototype._creatTw=function(t){var e=this.goAnimationParams.params,n=e.delay,r=e.duration,i=e.repeat,a=e.type,o=e.value;return o&&o.length&&o.forEach((function(t){t.delay=n||0,t.repeat=i||0})),Ju[a](t,r,o[0],o[1])},t.prototype.in=function(){},t.prototype.out=function(){},t}(),tc=Qu.getInstance();var ec=function(){function t(t){this.root=null,this.vuex=xi.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 t.prototype.findComponentDownward=function(t,e){var n=t.$children;if(n.length)for(var r=0,i=n;r<i.length;r++){var a=i[r];a.$options&&a.$options.propsData&&a.$options.propsData.cid&&(e[a.$options.propsData.cid]=a),a.$children&&a.$children.length&&this.findComponentDownward(a,e)}return e},t.prototype.getAllComponents=function(){var t={};return this.findComponentDownward(this.root,t),t},t.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)}},t.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)}},t.prototype.setGlobalVar=function(t){try{var e=t.key,n=t.value;if(!(t&&e&&n))throw new Error("An error occurred. Please check whether the incoming parameters are correct! The correct format of data is an object containing key and value");this.setVars(t)}catch(t){console.warn(t)}},t.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)}},t.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)}},t.prototype.getList=function(t){return t&&"id"===t?this.vuex.callState("list").map((function(t){return t.cid})):this.vuex.callState("list")},t.prototype.getTheme=function(t){var e=this.vuex.callState("theme");return t&&t(e),e},t.prototype.getElement=function(t){var e=function(t,e,n){var r=!1,a=function(t){for(var o=0;o<t.length;o++){if(t[o].cid==e){r=t[o],n&&i.default.remove(t,(function(t){return t.cid==e}));break}if(t[o].children)a(t[o].children);else if(t[o].dynamicChildren){if(t[o].dynamicChildren instanceof Map){for(var s=Array.from(t[o].dynamicChildren),l=0;l<s.length;l++)if(s[l]instanceof Array){var u=s[l][1];a(u)}}else if(t[o].dynamicChildren instanceof Array)for(s=t[o].dynamicChildren,l=0;l<s.length;l++)s[l]instanceof Array&&(u=s[l][1],a(u))}else t[o].stateChildren&&a(t[o].stateChildren)}};return a(t),r||!1}(this.vuex.callState("list"),t);return e},t.prototype.changeVis=function(t){return this.vuex.callMutation("changeShow",t)},t.prototype.comToggle=function(t){return this.vuex.callMutation("comToggle",t)},t.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},t.prototype.updateComp=function(t){return this.vuex.callMutation("updatComs",t)},t.prototype.changeDynamicState=function(t){return this.vuex.callMutation("changeDynamicState",t)},t.prototype.pageChange=function(t){return this.vuex.callMutation("setPageId",t)},t.prototype.pagePush=function(t,e,n){return void 0===n&&(n={}),this.vuex.callMutation("pagePush",{type:t,value:e,option:n})},t.prototype.activeState=function(t,e){return this.vuex.callMutation("setDynamicActive",{cid:t,name:e})},t.prototype.getVars=function(t){var e=Vr.getAllVariables();return t&&t(e),e},t.prototype.setVars=function(t){var e=Vr.getVariable(t.key);if(2!=(null==e?void 0:e.model))return this.vuex.callAction("goEditVar",t);console.warn("系统变量禁止修改!")},t}(),nc=function(t){function e(e){var n,r,i=t.call(this,e)||this,a=(n=(n=i.eventType)||new Map,d(d({},r),{EventType:n,on:function(t,e){var r=n.get(t);r?r.push(e):n.set(t,[e])},off:function(t,e){var r=n.get(t);r&&(e?r.splice(r.indexOf(e)>>>0,1):n.set(t,[]))},emit:function(t,e){var r=n.get(t);if(r){var i=r.slice().map((function(t){return t(e)}));if(i&&1==i.length)return i[0]}(r=n.get("*"))&&r.slice().map((function(n){n(t,e)}))}}));return i.$emit=a.emit,i.$on=a.on,i.$off=a.off,i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}h(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}(ec),rc=function(){function t(t){this.$action=new ic(t),this.instance=new nc(t)}return t.prototype.getGlobalvars=function(){for(var t=Vr.getAllVariables(),e=t.map((function(t){return t.mapField})),n={},r=function(e){var r=t.find((function(t){return t.mapField==e}));r&&(n[e]=r.value)},i=0,a=e;i<a.length;i++){r(a[i])}var o=this.instance;return new Proxy(n,{has:function(t,e){return!e&&e in t},get:function(t,e){if(e in t)return t[e];throw new ReferenceError('Prop name "'+e+'" does not exist.')},set:function(t,e,n){if(!t[e])return console.log("变量不存在/不能被修改"),!1;if(t[e]=n,!e||"string"!=typeof e)throw new Error("Invalid key");o.setGlobalVar({key:e,value:n})}})},Object.defineProperty(t.prototype,"globalvars",{get:function(){return this.getGlobalvars()},enumerable:!1,configurable:!0}),t}(),ic=function(t){var e=this;this.setGlobalVars=function(t,n){if(!t||"string"!=typeof t)throw new Error("Invalid key");e.instance.setGlobalVar({key:t,value:n})},this.skipTo=function(t){if(!t||0===Object.keys(t).length)throw new Error("事件跳转发生错误:参数:".concat(t," 不正确,请正确填写!doc: https://anov.cucloud.cn/anov-go-doc/"));if(t.name)e.instance.pagePush("name",t.name);else if(t.path)e.instance.pagePush("path",t.path);else{if(!t.url)throw new Error("事件跳转发生错误:参数:".concat(t," 不正确,请正确填写!doc: https://anov.cucloud.cn/anov-go-doc/"));window.open(t.url)}},this.toggle=function(t){if(t)if("string"!=typeof t&&"number"!=typeof t)if(Array.isArray(t))for(var n=0,r=t;n<r.length;n++){var i=r[n];"string"==typeof i||"number"==typeof i?e.instance.comToggle(i):console.warn("请传入正确的参数!")}else console.warn("请传入正确的参数!");else e.instance.comToggle(t);else console.warn("请传入正确的参数!")},this.show=function(t){if(t)if("string"!=typeof t&&"number"!=typeof t){if(Array.isArray(t))for(var n=0,r=t;n<r.length;n++){var i=r[n];"string"==typeof i||"number"==typeof i?e.instance._showComponent(i.toString()):console.warn("请传入正确的参数!")}}else e.instance._showComponent(t.toString());else console.warn("请传入正确的参数!")},this.hide=function(t){if(t)if("string"!=typeof t&&"number"!=typeof t){if(Array.isArray(t))for(var n=0,r=t;n<r.length;n++){var i=r[n];"string"==typeof i||"number"==typeof i?e.instance._hideComponent(i):console.warn("请传入正确的参数!")}}else e.instance._hideComponent(t);else console.warn("请传入正确的参数!")},this.activeState=function(t,n){e.instance.activeState(t,n)},this.updateComp=function(t){if(t)if("string"!=typeof t&&"number"!=typeof t){if(Array.isArray(t))for(var n=0,r=t;n<r.length;n++){var i=r[n];"string"==typeof i||"number"==typeof i?e.instance.updateComp(i):console.warn("请传入正确的参数!")}}else e.instance.updateComp(t);else console.warn("请传入正确的参数!")},this.instance=new nc(t)};t.Go=xi,t.GoAnimation=tc,t.Tool=ua,t.createComponent=function(t,e){return e&&t?xi.getInstance().render(t,e):t?xi.getInstance().render(t):void 0},t.createComponentForParent=function(t,e,n){return void 0!==n&&t?xi.getInstance().renderForParent(t,e,n):t?xi.getInstance().renderForParent(t,e):void 0},t.emitEvent=function(t,e){return xi.getInstance().emitEvent(t,e||function(){})},t.fxhr=Xr,t.getDataForRelease=function(t,e){console.log("弃用")},t.goUtils=Fr,t.log=function(){},t.refreshData=Zr,t.run=function(t){return new rc(t)},t.store=fi,Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
52
52
|
//# sourceMappingURL=code.umd.js.map
|