text: /**
   * xe-utils.js v3.0.0-beta.1
   * MIT License.
   * @preserve
   */
  !function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):n.XEUtils=t()}(this,function(){"use strict";var n="yyyy-MM-dd HH:mm:ss",b={treeOptions:{parentKey:"parentId",key:"id",children:"children"},formatDate:n+".SSSZ",formatString:n,dateDiffRules:[["yyyy",31536e6],["MM",2592e6],["dd",864e5],["HH",36e5],["mm",6e4],["ss",1e3],["S",0]]};function r(){}function t(n,e){var u=Object[n];return function(t){var r=[];if(t){if(u)return u(t);ot(t,1<e?function(n){r.push([""+n,t[n]])}:function(){r.push(arguments[e])})}return r}}function e(e,u){return function(n,t){if(n){if("string"==typeof n||Nn(n))return n[e]?n[e](t):u(n,t);for(var r in n)if(Mn(n,r)&&t===n[r])return r}return-1}}function u(t){return function(n){return"[object "+t+"]"===L.call(n)}}function i(t){return function(n){return typeof n===t}}function o(o,a,f,c,s){return function(n,t,r){if(n&&t){if(o&&n[o])return n[o](t,r);if(a&&Nn(n)){for(var e=0,u=n.length;e<u;e++)if(!!t.call(r,n[e],e,n)===c)return[!0,!1,e,n[e]][f]}else for(var i in n)if(Mn(n,i)&&!!t.call(r,n[i],i,n)===c)return[!0,!1,i,n[i]][f]}return s}}function a(u){return function(n,t,r){if(n&&kn(t)){if(Nn(n)||jn(n))return u(n,t,r);for(var e in n)if(Mn(n,e)&&t.call(r,n[e],e,n))return e}return-1}}function f(o){return function(r,e){var u,i;return r&&r.length?(mn(r,function(n,t){e&&(n=kn(e)?e(n,t,r):ft(n,e)),On(n)||!On(u)&&!o(u,n)||(i=t,u=n)}),r[i]):u}}function c(c,s){return function(r,e){var n,t,u={},i=[],o=this,a=arguments,f=a.length;if(!kn(e)){for(t=1;t<f;t++)n=a[t],i.push.apply(i,Nn(n)?n:[n]);e=0}return ot(r,function(n,t){((e?e.call(o,n,t,r):-1<Vn(i,function(n){return n===t}))?c:s)&&(u[t]=n)}),u}}function s(r){return function(n){if(n){var t=r(n);if(!isNaN(t))return t}return 0}}function l(o){return function(n,t,r,e){var u=r||{},i=u.children||"children";return o(null,n,t,e,[],[],i,u)}}function h(n,t){return n===t}function p(t,r){try{delete t[r]}catch(n){t[r]=void 0}}function g(r,e,u,i,n,t,o){if(r===e)return!0;if(r&&e&&!Tn(r)&&!Tn(e)&&!jn(r)&&!jn(e)){if(Wn(r))return u(""+r,""+e,n,t,o);if(Cn(r)||Fn(r))return u(+r,+e,n,t,o);var a,f,c,s=Nn(r),l=Nn(e);if(s||l?s&&l:r.constructor===e.constructor)return f=tt(r),c=tt(e),i&&(a=i(r,e,n)),f.length===c.length&&(wn(a)?en(f,function(n,t){return n===c[t]&&g(r[n],e[c[t]],u,i,s||l?t:n,r,e)}):!!a)}return u(r,e,n,t,o)}function v(n,t){return F(St(n)).replace(new RegExp("(\\d+.\\d{0,"+t+"}).*"),"$1")}function d(t){var r=new RegExp("(?:"+tt(t).join("|")+")","g");return function(n){return qt(n).replace(r,function(n){return t[n]})}}function S(n){return n.getFullYear()}function D(n){return n.getMonth()}function m(n){return n.getTime()}function y(n){return n?n.splice&&n.join?n:(""+n).split("."):[]}function x(){return C?C.origin||C.protocol+"//"+C.host:""}function M(n){return Date.UTC(n[0],n[1],n[2],n[3],n[4],n[5],n[6])}function O(n){return m((t=n,new Date(S(t),D(t),t.getDate())));var t}function w(){return new Date}function N(n,t){var r=F(n),e=F(t),u=Math.pow(10,Math.max(E(r),E(e)));return(xt(n,u)+xt(t,u))/u}function E(n){return(n.split(".")[1]||"").length}function k(n,t){var r=F(n),e=F(t),u=E(r),i=E(e)-u,o=i<0,a=Math.pow(10,o?Math.abs(i):i);return xt(r.replace(".","")/e.replace(".",""),o?1/a:a)}function F(n){if(0<=(""+n).indexOf("e-")){var t=n<0;return(t?"-":"")+"0"+(""+((t?Math.abs(n):n)+1)).substr(1)}return""+n}r.v="v3",r.mixin=function(){mn(arguments,function(n){ot(n,function(t,n){r[n]=kn(t)?function(){var n=t.apply(r.$context,arguments);return r.$context=null,n}:t})})},r.setup=function(n){return B(b,n)};var j="undefined",T="last",W="first",I=864e5,A=7*I,C=typeof location===j?0:location,H=typeof window===j?0:window,R=typeof document===j?0:document,Z=encodeURIComponent,z=decodeURIComponent,L=Object.prototype.toString,$=parseInt,P={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},U=/(.+)?\[(\d+)\]$/,Y=Object.assign;function q(t,n,r){for(var e,u=n.length,i=1;i<u;i++)e=n[i],mn(tt(n[i]),r?function(n){t[n]=gt(e[n],r)}:function(n){t[n]=e[n]});return t}var B=function(n){if(n){var t=arguments;if(!0!==n)return Y?Y.apply(Object,t):q(n,t);if(1<t.length)return q(n=Nn(n[1])?[]:{},t,!0)}return n},J=B;function K(r,e,u){var i={};if(r){if(!e)return r;kn(e)||(e=Bt(e)),ot(r,function(n,t){i[t]=e.call(u,n,t,r)})}return i}function _(n,t,r){if(n)for(var e in n)Mn(n,e)&&t.call(r,n[e],e,n)}function Q(t,r,e){yn(tt(t),function(n){r.call(e,t[n],n,t)})}function X(n){var t=[];return ot(n,function(n){fn(t,n)||t.push(n)}),t}function G(n,t){return wn(n)?1:Zn(n)?wn(t)?-1:1:n&&n.localeCompare?n.localeCompare(t):t<n?1:-1}function V(u,i){return function(n,t){var r=n[u],e=t[u];return r===e?i?i(n,t):0:G(r,e)}}function nn(n,t,r){if(n){if(On(t))return pn(n).sort(G);var e,u=ln(n,function(n){return{data:n}}),i=(o=n,a=u,c=r,mn(f=Nn(f=t)?f:[f],function(r,e){mn(a,kn(r)?function(n,t){n[e]=r.call(c,n.data,t,o)}:function(n){n[e]=ft(n.data,r)})}),f).length;if(i){for(;0<=i;)e=V(i,e),i--;u=u.sort(e)}return ln(u,Bt("data"))}var o,a,f,c;return[]}function tn(n){for(var t,r=[],e=rt(n),u=e.length-1;0<=u;u--)t=0<u?mt(0,u):0,r.push(e[t]),e.splice(t,1);return r}var rn=o("some",1,0,!0,!1),en=o("every",1,1,!1,!0);function un(n,t,r){var e=[];if(n)for(t=t||0,r=r||n.length;t<r;t++)e.push(n[t]);return e}var on=o("find",1,3,!0),an=o("",0,2,!0);function fn(n,t){return-1!==Xn(n,t)}function cn(n,t){if(n.indexOf)return n.indexOf(t);for(var r=0,e=n.length;r<e;r++)if(t===n[r])return r}function sn(n,t){if(n.lastIndexOf)return n.lastIndexOf(t);for(var r=n.length-1;0<=r;r--)if(t===n[r])return r;return-1}function ln(n,t,r){var e=[];if(n&&1<arguments.length){if(kn(t)||(t=Bt(t)),n.map)return n.map(t,r);ot(n,function(){e.push(t.apply(r,arguments))})}return e}function hn(n){var t,r,e,u=[];if(n&&n.length)for(t=0,e=(r=bt(n,function(n){return n?n.length:0}))?r.length:0;t<e;t++)u.push(ln(n,t));return u}function pn(n){return ln(n,function(n){return n})}function gn(n,t){var r,e=0;if(Nn(n)&&Nn(t)){for(r=t.length;e<r;e++)if(!fn(n,t[e]))return!1;return!0}return fn(n,t)}function vn(n,t){for(var r,e=arguments,u=[],i=[],o=2,a=e.length;o<a;o++)u.push(e[o]);if(Nn(t)){for(a=t.length-1,o=0;o<a;o++)i.push(t[o]);t=t[a]}return ln(n,function(n){if(i.length&&(n=function(n,t){for(var r=0,e=t.length;n&&r<e;)n=n[t[r++]];return e&&n?n:0}(n,i)),(r=n[t]||t)&&r.apply)return r.apply(n,u)})}var dn=vn;function mn(n,t,r){if(n)if(n.forEach)n.forEach(t,r);else for(var e=0,u=n.length;e<u;e++)t.call(r,n[e],e,n)}function yn(n,t,r){for(var e=n.length-1;0<=e;e--)t.call(r,n[e],e,n)}var bn=l(function n(t,r,e,u,i,o,a,f){var c,s,l,h,p,g;if(r)for(s=0,l=r.length;s<l;s++){if(c=r[s],h=i.concat([""+s]),p=o.concat([c]),e.call(u,c,s,r,h,t,p))return{index:s,item:c,path:h,items:r,parent:t,nodes:p};if(a&&c&&(g=n(c,c[a],e,u,h.concat([a]),p,a,f)))return g}});var Sn=l(function r(e,u,i,o,a,f,c,s){var l,h;ot(u,function(n,t){l=a.concat([""+t]),h=f.concat([n]),i.call(o,n,t,u,l,e,h),n&&c&&(l.push(c),r(n,n[c],i,o,l,h,c,s))})});var Dn=l(function r(e,u,i,o,a,f,c,s){var l,h,p,g=s.mapChildren||c;return ln(u,function(n,t){return l=a.concat([""+t]),h=f.concat([n]),(p=i.call(o,n,t,u,l,e,h))&&n&&c&&n[c]&&(p[g]=r(n,n[c],i,o,l,h,c,s)),p})});var xn=l(function(n,t,r,e,u,i,o,a){return function r(e,u,i,o,a,f,c,s,l){var h,p,g,v,d,m=[],y=l.original,b=l.mapChildren||s;return mn(i,function(n,t){h=f.concat([""+t]),p=c.concat([n]),v=e||o.call(a,n,t,i,h,u,p),d=s&&n[s],(v||d)&&(g=y?n:B({},n)),v||d?(g[b]=r(v,n,n[s],o,a,h,p,s,l),(v||g[b].length)&&m.push(g)):v&&m.push(g)}),m}(0,n,t,r,e,u,i,o,a)});function Mn(n,t){return!(!n||!n.hasOwnProperty)&&n.hasOwnProperty(t)}function On(n){return Zn(n)||wn(n)}var wn=i(j),Nn=Array.isArray||u("Array");var En=function(n){return!Zn(n)&&!isNaN(n)&&!Nn(n)&&n%1==0},kn=i("function"),Fn=i("boolean"),jn=i("string"),Tn=i("number"),Wn=u("RegExp"),In=i("object");function An(n){return!!n&&n.constructor===Object}var Cn=u("Date"),Hn=u("Error");function Rn(n){for(var t in n)return!1;return!0}function Zn(n){return null===n}var zn=typeof Symbol!==j;function Ln(n){return zn&&Symbol.isSymbol?Symbol.isSymbol(n):"symbol"==typeof n}var $n=u("Arguments");var Pn=typeof FormData!==j;var Un=typeof Map!==j;var Yn=typeof WeakMap!==j;var qn=typeof Set!==j;var Bn=typeof WeakSet!==j;function Jn(n){var t,r=n?Nt(n):w();return!!Cn(r)&&((t=r.getFullYear())%4==0&&(t%100!=0||t%400==0))}function Kn(n,t){return g(n,t,h)}var _n=0;function Qn(n){var t=0;return jn(n)||Nn(n)?n.length:(ot(n,function(){t++}),t)}var Xn=e("indexOf",cn),Gn=e("lastIndexOf",sn),Vn=a(function(n,t,r){for(var e=0,u=n.length;e<u;e++)if(t.call(r,n[e],e,n))return e;return-1}),nt=a(function(n,t,r){for(var e=n.length-1;0<=e;e--)if(t.call(r,n[e],e,n))return e;return-1});var tt=t("keys",1),rt=t("values",0),et=t("entries",2),ut=c(1,0),it=c(0,1);function ot(n,t,r){return n?(Nn(n)?mn:_)(n,t,r):n}function at(n,t,r){return n?(Nn(n)?yn:Q)(n,t,r):n}function ft(n,t,r){if(On(n))return r;var e=function(n,t){if(n){var r,e,u,i=0;if(n[t]||Mn(n,t))return n[t];if(e=y(t),u=e.length)for(r=n;i<u;i++)if(o=r,a=e[i],void 0,f=a?a.match(U):"",On(r=f?f[1]?o[f[1]]?o[f[1]][f[2]]:void 0:o[f[2]]:o[a]))return i===u-1?r:void 0;return r}var o,a,f}(n,t);return wn(e)?r:e}var ct=/(.+)\[(\d+)\]$/;function st(n,t,r,e){if(n[t])return r&&(n[t]=e),n[t];var u,i=t?t.match(ct):null,o=r?e:{};return i?(u=$(i[2]),n[i[1]]||(n[i[1]]=new Array(u+1)),n[i[1]][u]=o):n[t]=o,o}function lt(r,e,u){var i,n,o={};return r&&(e&&In(e)?(n=e,e=function(){return Rn(n)}):kn(e)||(e=Bt(e)),ot(r,function(n,t){i=e?e.call(u,n,t,r):n,o[i]?o[i].push(n):o[i]=[n]})),o}function ht(n,t,r){return n(t,r?function(n){return pt(n,r)}:function(n){return n})}function pt(n,t){return An(n)?ht(K,n,t):Nn(n)?ht(ln,n,t):function(n,t){if(t&&n){var r=n.constructor;switch(L.call(n)){case"[object Date]":case"[object RegExp]":return new r(n.valueOf());case"[object Set]":var e=new r;return n.forEach(function(n){e.add(n)}),e;case"[object Map]":var u=new r;return n.forEach(function(n,t){u.set(t,n)}),u}}return n}(n,t)}function gt(n,t){return n?pt(n,t):n}function vt(r,e,n){if(r){var t,u=1<arguments.length&&(Zn(e)||!In(e)),i=u?n:e;if(An(r))_(r,u?function(n,t){r[t]=e}:function(n,t){p(r,t)}),i&&B(r,i);else if(Nn(r)){if(u)for(t=r.length;0<t;)r[--t]=e;else r.length=0;i&&r.push.apply(r,i)}}return r}function dt(r,e,u){if(r){if(On(e))return vt(r);var i=[],o=[];return kn(e)||(a=e,e=function(n,t){return t===a}),ot(r,function(n,t,r){e.call(u,n,t,r)&&i.push(t)}),Nn(r)?at(i,function(n,t){o.push(r[n]),r.splice(n,1)}):(o={},mn(i,function(n){o[n]=r[n],p(r,n)})),o}var a;return r}function mt(n,t){return t<=n?n:(n>>=0)+Math.round(Math.random()*((t||9)-n))}var yt=f(function(n,t){return t<n}),bt=f(function(n,t){return n<t});var St=s(parseFloat),Dt=s($);function xt(n,t){var r=St(n),e=St(t),u=F(r),i=F(e);return parseInt(u.replace(".",""))*parseInt(i.replace(".",""))/Math.pow(10,E(u)+E(i))}function Mt(n,t,r){var e=0;return ot(n,t?kn(t)?function(){e=N(e,t.apply(r,arguments))}:function(n){e=N(e,ft(n,t))}:function(n){e=N(e,n)}),e}var Ot=Date.now||function(){return m(w())};var wt=[{rules:[["yyyy",4]]},{rules:[["MM",2],["M",1]],offset:-1},{rules:[["dd",2],["d",1]]},{rules:[["HH",2],["H",1]]},{rules:[["mm",2],["m",1]]},{rules:[["ss",2],["s",1]]},{rules:[["SSS",3],["S",1]]},{rules:[["ZZ",5],["Z",6],["Z",5],["Z",1]]}];function Nt(n,t){var r,e;if(n)if((e=Cn(n))||!t&&/^[0-9]{11,15}$/.test(n))r=new Date(e?m(n):$(n));else if(jn(n)){var u,i=function(n,t){var r,e,u,i,o,a,f,c,s,l=[0,0,1,0,0,0,0];for(u=0,i=wt.length;u<i;u++)for(f=0,c=(a=(o=wt[u]).rules).length;f<c;f++){if(r=a[f],-1<(e=t.indexOf(r[0]))&&(s=n.substring(e,e+r[1]))&&s.length===r[1]){o.offset&&(s=$(s)+o.offset),l[u]=s;break}if(f===c-1)return l}return l}(n,t||b.formatDate),o=i[7];i[0]&&(o?"z"===o[0]||"Z"===o[0]?r=new Date(M(i)):(u=o.match(/([-+]{1})(\d{2}):?(\d{2})/))&&(r=new Date(M(i)-("-"===u[1]?-1:1)*$(u[2])*36e5+6e4*$(u[3]))):r=new Date(i[0],i[1],i[2],i[3],i[4],i[5],i[6]))}return!r||isNaN(m(r))?"Invalid Date":r}function Et(n,t,r,e){var u=t[r];return u?kn(u)?u(e,r,n):u[e]:e}var kt=/\[([^\]]+)]|y{2,4}|M{1,2}|d{1,2}|H{1,2}|h{1,2}|m{1,2}|s{1,2}|S{1,3}|Z{1,2}|W{1,2}|D{1,3}|[aAeEq]/g;function Ft(e,n,t){if(e){if(e=Nt(e),Cn(e)){var r=n||b.formatString,u=e.getHours(),i=u<12?"am":"pm",o=B({},b.formatStringMatchs,t?t.formats:null),a=function(n,t){return(""+S(e)).substr(4-t)},f=function(n,t){return Ut(D(e)+1,t,"0")},c=function(n,t){return Ut(e.getDate(),t,"0")},s=function(n,t){return Ut(u,t,"0")},l=function(n,t){return Ut(u<=12?u:u-12,t,"0")},h=function(n,t){return Ut(e.getMinutes(),t,"0")},p=function(n,t){return Ut(e.getSeconds(),t,"0")},g=function(n,t){return Ut(e.getMilliseconds(),t,"0")},v=function(n,t){var r=e.getTimezoneOffset()/60*-1;return Et(e,o,n,(0<=r?"+":"-")+Ut(r,2,"0")+(1===t?":":"")+"00")},d=function(n,t){return Ut(Et(e,o,n,Ct(e)),t,"0")},m=function(n,t){return Ut(Et(e,o,n,At(e)),t,"0")},y={yyyy:a,yy:a,MM:f,M:f,dd:c,d:c,HH:s,H:s,hh:l,h:l,mm:h,m:h,ss:p,s:p,SSS:g,S:g,ZZ:v,Z:v,WW:d,W:d,DDD:m,D:m,a:function(n){return Et(e,o,n,i)},A:function(n){return Et(e,o,n,i.toLocaleUpperCase())},e:function(n){return Et(e,o,n,e.getDay())},E:function(n){return Et(e,o,n,0===(t=e.getDay())?7:t);var t},q:function(n){return Et(e,o,n,Math.floor((D(e)+3)/3))}};return r.replace(kt,function(n,t){return t||(y[n]?y[n](n,n.length):n)})}return e}return""}function jt(n,t,r){var e;if(n=Nt(n),Cn(n)&&(t&&(e=t&&!isNaN(t)?t:0,n.setFullYear(S(n)+e)),r||!isNaN(r))){if(r===W)return new Date(S(n),0,1);if(r===T)return n.setMonth(11),Tt(n,0,T);n.setMonth(r)}return n}function Tt(n,t,r){var e=t&&!isNaN(t)?t:0;if(n=Nt(n),Cn(n)){if(r||!isNaN(r)){if(r===W)return new Date(S(n),D(n)+e,1);if(r===T)return new Date(m(Tt(n,e+1,W))-1);n.setDate(r)}e&&n.setMonth(D(n)+e)}return n}function Wt(n,t,r){var e,u,i;return n=Nt(n),Cn(n)?(i=$(/^[0-7]$/.test(r)?r:n.getDay()),u=n.getDay(),e=m(n)+((0===i?7:i)-(0===u?7:u))*I,t&&!isNaN(t)&&(e+=t*A),new Date(e)):n}function It(n,t,r){if(n=Nt(n),Cn(n)&&!isNaN(t)){if(n.setDate(n.getDate()+$(t)),r===W)return new Date(S(n),D(n),n.getDate());if(r===T)return new Date(m(It(n,1,W))-1)}return n}function At(n){return n=Nt(n),Cn(n)?Math.floor((O(n)-O(jt(n,0,W)))/I)+1:n}function Ct(n){if(n=Nt(n),Cn(n)){n.setHours(0,0,0,0),n.setDate(n.getDate()+3-(n.getDay()+6)%7);var t=new Date(n.getFullYear(),0,4);return Math.round(((n.getTime()-t.getTime())/I+(t.getDay()+6)%7-3)/7)+1}return n}function Ht(n){return n&&n.trim?n.trim():Zt(Rt(n))}function Rt(n){return n&&n.trimLeft?n.trimLeft():qt(n).replace(/^[\s\uFEFF\xA0]+/g,"")}function Zt(n){return n&&n.trimRight?n.trimRight():qt(n).replace(/[\s\uFEFF\xA0]+$/g,"")}var zt=d(P),Lt={};ot(P,function(n,t){Lt[P[t]]=t});var $t=d(Lt);function Pt(n,t){var r=qt(n);if(r.repeat)return r.repeat(t);var e=isNaN(t)?[]:new Array($(t));return e.join(r)+(0<e.length?r:"")}function Ut(n,t,r){var e=qt(n);return t>>=0,r=wn(r)?" ":""+r,e.padStart?e.padStart(t,r):t>e.length?((t-=e.length)>r.length&&(r+=Pt(r,t/r.length)),r.slice(0,t)+e):e}function Yt(n,t,r){var e=qt(n);return t>>=0,r=wn(r)?" ":""+r,e.padEnd?e.padEnd(t,r):t>e.length?((t-=e.length)>r.length&&(r+=Pt(r,t/r.length)),e+r.slice(0,t)):e}function qt(n){return Tn(n)?F(n):""+(On(n)?"":n)}function Bt(t,r){return function(n){return Zn(n)?r:n[t]}}function Jt(n){return _t(n.split("?")[1]||"")}function Kt(n){var t,e,r,u,i=""+n;return 0===i.indexOf("//")?i=(C?C.protocol:"")+i:0===i.indexOf("/")&&(i=x()+i),r=i.replace(/#.*/,"").match(/(\?.*)/),(u={href:i,hash:"",host:"",hostname:"",protocol:"",port:"",search:r&&r[1]&&1<r[1].length?r[1]:""}).path=i.replace(/^([a-z0-9.+-]*:)\/\//,function(n,t){return u.protocol=t,""}).replace(/^([a-z0-9.+-]*)(:\d+)?\/?/,function(n,t,r){return e=r||"",u.port=e.replace(":",""),u.hostname=t,u.host=t+e,"/"}).replace(/(#.*)/,function(n,t){return u.hash=1<t.length?t:"",""}),t=u.hash.match(/#((.*)\?|(.*))/),u.pathname=u.path.replace(/(\?|#.*).*/,""),u.origin=u.protocol+"//"+u.host,u.hashKey=t&&(t[2]||t[1])||"",u.hashQuery=Jt(u.hash),u.searchQuery=Jt(u.search),u}function _t(n){var t,r={};return n&&jn(n)&&mn(n.split("&"),function(n){t=n.split("="),r[z(t[0])]=z(t[1]||"")}),r}function Qt(n){try{return n.setItem("__xe_t",1),n.removeItem("__xe_t"),!0}catch(n){return!1}}function Xt(n){return-1<navigator.userAgent.indexOf(n)}function Gt(n,t){var r=parseFloat(t),e=w(),u=m(e);switch(n){case"y":return m(jt(e,r));case"M":return m(Tt(e,r));case"d":return m(It(e,r));case"h":case"H":return u+60*r*60*1e3;case"m":return u+60*r*1e3;case"s":return u+1e3*r}return u}function Vt(n){return(Cn(n)?n:new Date(n)).toUTCString()}function nr(n,t,r){if(R){var e,u,i,o,a,f,c=[],s=arguments;return Nn(n)?c=n:1<s.length?c=[B({name:n,value:t},r)]:In(n)&&(c=[n]),0<c.length?(mn(c,function(n){e=B({},b.cookies,n),i=[],e.name&&(u=e.expires,i.push(Z(e.name)+"="+Z(In(e.value)?JSON.stringify(e.value):e.value)),u&&(u=isNaN(u)?u.replace(/^([0-9]+)(y|M|d|H|h|m|s)$/,function(n,t,r){return Vt(Gt(r,t))}):/^[0-9]{11,13}$/.test(u)||Cn(u)?Vt(u):Vt(Gt("d",u)),e.expires=u),mn(["expires","path","domain","secure"],function(n){wn(e[n])||i.push(e[n]&&"secure"===n?n:n+"="+e[n])})),R.cookie=i.join("; ")}),!0):(o={},(a=R.cookie)&&mn(a.split("; "),function(n){f=n.indexOf("="),o[z(n.substring(0,f))]=z(n.substring(f+1)||"")}),1===s.length?o[n]:o)}return!1}function tr(n,t,r){return nr(n,t,r),nr}function rr(n,t){nr(n,0,B({expires:-1},b.cookies,t))}function er(){return tt(nr())}return B(nr,{isKey:function(n){return fn(er(),n)},set:tr,setItem:tr,get:nr,getItem:nr,remove:rr,removeItem:rr,keys:er,getJSON:nr}),B(r,{assign:B,extend:J,objectEach:_,lastObjectEach:Q,objectMap:K,uniq:X,union:function(){for(var n=arguments,t=[],r=0,e=n.length;r<e;r++)t=t.concat(pn(n[r]));return X(t)},sortBy:nn,shuffle:tn,sample:function(n,t){var r=tn(n);return arguments.length<=1?r[0]:(t<r.length&&(r.length=t||0),r)},some:rn,every:en,slice:un,filter:function(r,e,u){var i=[];if(r&&e){if(r.filter)return r.filter(e,u);ot(r,function(n,t){e.call(u,n,t,r)&&i.push(n)})}return i},find:on,findKey:an,includes:fn,arrayIndexOf:cn,arrayLastIndexOf:sn,map:ln,reduce:function(n,t,r){if(n){var e,u,i=0,o=r,a=2<arguments.length,f=tt(n);if(n.length&&n.reduce)return u=function(){return t.apply(null,arguments)},a?n.reduce(u,o):n.reduce(u);for(a&&(i=1,o=n[f[0]]),e=f.length;i<e;i++)o=t.call(null,o,n[f[i]],i,n);return o}},copyWithin:function(n,t,r,e){if(Nn(n)&&n.copyWithin)return n.copyWithin(t,r,e);var u,i,o=t>>0,a=r>>0,f=n.length,c=3<arguments.length?e>>0:f;if(o<f&&0<=(o=0<=o?o:f+o)&&(a=0<=a?a:f+a)<(c=0<=c?c:f+c))for(u=0,i=n.slice(a,c);o<f&&!(i.length<=u);o++)n[o]=i[u++];return n},chunk:function(n,t){var r,e=[],u=t>>0||1;if(Nn(n))if(0<=u&&n.length>u)for(r=0;r<n.length;)e.push(n.slice(r,r+u)),r+=u;else e=n.length?[n]:n;return e},zip:function(){return hn(arguments)},unzip:hn,zipObject:function(n,r){var e={};return r=r||[],ot(rt(n),function(n,t){e[n]=r[t]}),e},flatten:function(n,t){return Nn(n)?function t(n,r){var e=[];return mn(n,function(n){e=e.concat(Nn(n)?r?t(n,r):n:[n])}),e}(n,t):[]},toArray:pn,includeArrays:gn,pluck:function(n,t){return ln(n,t)},invoke:vn,invokeMap:dn,arrayEach:mn,lastArrayEach:yn,toArrayTree:function(n,t){var r,e,u,i,o,a=B({},b.treeOptions,t),f=a.strict,c=a.key,s=a.parentKey,l=a.children,h=a.sortKey,p=a.reverse,g=a.data,v=[],d={};return h&&(n=nn(gt(n),h),p&&(n=n.reverse())),r=ln(n,function(n){return n[c]}),ot(n,function(n){e=n[c],g?(u={})[g]=n:u=n,i=n[s],d[e]=d[e]||[],d[i]=d[i]||[],d[i].push(u),u[c]=e,u[s]=i,u[l]=d[e],(!f||f&&!i)&&(fn(r,i)||v.push(u))}),f&&(o=l,ot(n,function(n){n.children&&!n.children.length&&dt(n,o)})),v},toTreeArray:function(n,t){return function t(r,n,e){var u,i=e.children,o=e.data;return ot(n,function(n){u=n[i],o&&(n=n[o]),r.push(n),u&&t(r,u,e)}),r}([],n,B({},b.treeOptions,t))},findTree:bn,eachTree:Sn,mapTree:Dn,filterTree:function(n,o,t,a){var f=[];return n&&o&&Sn(n,function(n,t,r,e,u,i){o.call(a,n,t,r,e,u,i)&&f.push(n)},t),f},searchTree:xn,hasOwnProp:Mn,eqNull:On,isNaN:function(n){return Tn(n)&&isNaN(n)},isFinite:function(n){return Tn(n)&&isFinite(n)},isUndefined:wn,isArray:Nn,isFloat:function(n){return!(Zn(n)||isNaN(n)||Nn(n)||En(n))},isInteger:En,isFunction:kn,isBoolean:Fn,isString:jn,isNumber:Tn,isRegExp:Wn,isObject:In,isPlainObject:An,isDate:Cn,isError:Hn,isTypeError:function(n){return!!n&&n.constructor===TypeError},isEmpty:Rn,isNull:Zn,isSymbol:Ln,isArguments:$n,isElement:function(n){return!!(n&&jn(n.nodeName)&&Tn(n.nodeType))},isDocument:function(n){return!(!n||!R||9!==n.nodeType)},isWindow:function(n){return H&&!(!n||n!==n.window)},isFormData:function(n){return Pn&&n instanceof FormData},isMap:function(n){return Un&&n instanceof Map},isWeakMap:function(n){return Yn&&n instanceof WeakMap},isSet:function(n){return qn&&n instanceof Set},isWeakSet:function(n){return Bn&&n instanceof WeakSet},isLeapYear:Jn,isMatch:function(r,e){var n=tt(r),t=tt(e);return!t.length||(gn(n,t)?rn(t,function(t){return-1<Vn(n,function(n){return n===t&&Kn(r[n],e[t])})}):Kn(r,e))},isEqual:Kn,isEqualWith:function(n,t,o){return kn(o)?g(n,t,function(n,t,r,e,u){var i=o(n,t,r,e,u);return wn(i)?h(n,t):!!i},o):g(n,t,h)},getType:function(n){return Zn(n)?"null":Ln(n)?"symbol":Cn(n)?"date":Nn(n)?"array":Wn(n)?"regexp":Hn(n)?"error":typeof n},uniqueId:function(n){return[n,++_n].join("")},getSize:Qn,indexOf:Xn,lastIndexOf:Gn,findIndexOf:Vn,findLastIndexOf:nt,toStringJSON:function(n){if(In(n))return n;if(jn(n))try{return JSON.parse(n)}catch(n){}return{}},toJSONString:function(n){return JSON.stringify(n)||""},keys:tt,values:rt,entries:et,pick:ut,omit:it,first:function(n){return rt(n)[0]},last:function(n){var t=rt(n);return t[t.length-1]},each:ot,forOf:function(n,t,r){if(n)if(Nn(n))for(var e=0,u=n.length;e<u&&!1!==t.call(r,n[e],e,n);e++);else for(var i in n)if(Mn(n,i)&&!1===t.call(r,n[i],i,n))break},lastForOf:function(n,t,r){var e,u;if(n)if(Nn(n))for(e=n.length-1;0<=e&&!1!==t.call(r,n[e],e,n);e--);else for(e=(u=tt(n)).length-1;0<=e&&!1!==t.call(r,n[u[e]],u[e],n);e--);},lastEach:at,has:function(n,t){if(n){if(Mn(n,t))return!0;var r,e,u,i,o,a,f=y(t),c=0,s=f.length;for(o=n;c<s&&(a=!1,(i=(r=f[c])?r.match(U):"")?(e=i[1],u=i[2],e?o[e]&&Mn(o[e],u)&&(a=!0,o=o[e][u]):Mn(o,u)&&(a=!0,o=o[u])):Mn(o,r)&&(a=!0,o=o[r]),a);c++)if(c===s-1)return!0}return!1},get:ft,set:function(n,t,r){if(n)if(n[t]||Mn(n,t))n[t]=r;else for(var e=n,u=y(t),i=u.length,o=0;o<i;o++)e=st(e,u[o],o===i-1,r);return n},groupBy:lt,countBy:function(n,t,r){var e=lt(n,t,r||this);return _(e,function(n,t){e[t]=n.length}),e},clone:gt,clear:vt,remove:dt,range:function(n,t,r){var e,u,i=[],o=arguments;if(o.length<2&&(t=o[0],n=0),u=t>>0,(e=n>>0)<t)for(r=r>>0||1;e<u;e+=r)i.push(e);return i},destructuring:function(t,n){if(t&&n){var r=B.apply(this,[{}].concat(un(arguments,1))),e=tt(r);mn(tt(t),function(n){fn(e,n)&&(t[n]=r[n])})}return t},random:mt,min:yt,max:bt,commafy:function(n,t){if(n=qt(n).replace(/,/g,"")){var r=B({spaceNumber:3,separator:","},t),e=r.digits||r.fixed,u=(e?St(n).toFixed(e):n).split(".");return u[0].replace(new RegExp("(?=(?!(\\b))(\\d{"+r.spaceNumber+"})+$)","g"),r.separator)+(u[1]?"."+u[1]:"")}return n},toFixedString:function(n,t){var r=v(n,t).split("."),e=t?[r[0],".",Yt(r[1]||"",t,"0")].join(""):r[0];return"-"===e.substring(0,1)&&0===parseFloat(e)?t?e.replace(/^-/,""):"0":e},toFixedNumber:function(n,t){var r=(t?St:Dt)(v(n,t));return 0===r?0:r},toNumber:St,toInteger:Dt,add:function(n,t){return N(St(n),St(t))},subtract:function(n,t){var r=St(n),e=St(t),u=F(r),i=F(e),o=E(u),a=E(i),f=Math.pow(10,Math.max(o,a));return parseFloat(((r*f-e*f)/f).toFixed(a<=o?o:a))},multiply:xt,divide:function(n,t){return k(St(n),St(t))},sum:Mt,mean:function(n,t,r){return k(Mt(n,t,r),Qn(n))},now:Ot,timestamp:function(n,t){if(n){var r=Nt(n,t);return Cn(r)?m(r):r}return Ot()},isDateSame:function(n,t,r){return!(!n||!t)&&"Invalid Date"!==(n=Ft(n,r))&&n===Ft(t,r)},toStringDate:Nt,toDateString:Ft,getWhatYear:jt,getWhatMonth:Tt,getWhatWeek:Wt,getWhatDay:It,getYearDay:At,getYearWeek:Ct,getMonthWeek:function n(t){var r,e,u=Nt(t);return Cn(u)?((e=Wt(r=Tt(u,0,W),0,1))<r&&(e=Wt(r,1,1)),e<=u?Math.floor((O(u)-O(e))/A)+1:n(Wt(u,0,1))):u},getDayOfYear:function(n,t){return n=Nt(n),Cn(n)?Jn(jt(n,t))?366:365:n},getDayOfMonth:function(n,t){return n=Nt(n),Cn(n)?Math.floor((m(Tt(n,t,T))-m(Tt(n,t,W)))/I)+1:n},getDateDiff:function(n,t,r){var e,u,i,o,a,f,c,s={done:!1,time:0};if(n=Nt(n),t=t?Nt(t):w(),Cn(n)&&Cn(t)&&(e=m(n))<(u=m(t)))for(o=s.time=u-e,a=r&&0<r.length?r:b.dateDiffRules,s.done=!0,c=0,f=a.length;c<f;c++)o>=(i=a[c])[1]?c===f-1?s[i[0]]=o||0:(s[i[0]]=Math.floor(o/i[1]),o-=s[i[0]]*i[1]):s[i[0]]=0;return s},trim:Ht,trimLeft:Rt,trimRight:Zt,escape:zt,unescape:$t,camelCase:function(n){return qt(n).replace(/(-[a-zA-Z])/g,function(n,t){return t.substring(1).toLocaleUpperCase()})},kebabCase:function(n){return qt(n).replace(/([A-Z])/g,function(n,t){return"-"+t.toLowerCase()})},repeat:Pt,padStart:Ut,padEnd:Yt,startsWith:function(n,t,r){var e=qt(n);return 0===(1===arguments.length?e:e.substring(r)).indexOf(t)},endsWith:function(n,t,r){var e=qt(n),u=arguments.length;return 1<u&&(2<u?e.substring(0,r).indexOf(t)===r-1:e.indexOf(t)===e.length-1)},template:function(n,r){return qt(n).replace(/\{{2}([.\w[\]\s]+)\}{2}/g,function(n,t){return ft(r,Ht(t))})},toString:qt,property:Bt,bind:function(n,t){var r=un(arguments,2);return function(){return n.apply(t,un(arguments).concat(r))}},once:function(n,t){var r=!1,e=null,u=un(arguments,2);return function(){return r||(e=n.apply(t,un(arguments).concat(u)),r=!0),e}},after:function(t,r,e){var u=0,i=[];return function(){var n=arguments;++u<=t&&i.push(n[0]),t<=u&&r.apply(e,[i].concat(un(n)))}},before:function(t,r,e){var u=0,i=[];return e=e||this,function(){var n=arguments;++u<t&&(i.push(n[0]),r.apply(e,[i].concat(un(n))))}},throttle:function(n,t,r){var e,u,i=r||{},o=!1,a=0,f=!("leading"in i)||i.leading,c="trailing"in i&&i.trailing,s=function(){o=!0,n.apply(u,e),a=setTimeout(l,t)},l=function(){a=0,o||!0!==c||s()},h=function(){e=arguments,u=this,o=!1,0===a&&(!0===f?s():!0===c&&(a=setTimeout(l,t)))};return h.cancel=function(){var n=0!==a;return clearTimeout(a),o=!1,a=0,n},h},debounce:function(n,t,r){var e,u,i=r||{},o=!1,a=0,f="boolean"==typeof r,c="leading"in i?i.leading:f,s="trailing"in i?i.trailing:!f,l=function(){o=!0,a=0,n.apply(u,e)},h=function(){!0===c&&(a=0),o||!0!==s||l()},p=function(){o=!1,e=arguments,u=this,0===a?!0===c&&l():clearTimeout(a),a=setTimeout(h,t)};return p.cancel=function(){var n=0!==a;return clearTimeout(a),a=0,n},p},delay:function(n,t){var r=un(arguments,2),e=this;return setTimeout(function(){n.apply(e,r)},t)},unserialize:_t,serialize:function(n){var r,e=[];return ot(n,function(n,t){wn(n)||(r=Nn(n),An(n)||r?e=e.concat(function r(n,e,u){var i,o=[];return ot(n,function(n,t){i=Nn(n),An(n)||i?o=o.concat(r(n,e+"["+t+"]",i)):o.push(Z(e+"["+(u?"":t)+"]")+"="+Z(Zn(n)?"":n))}),o}(n,t,r)):e.push(Z(t)+"="+Z(Zn(n)?"":n)))}),e.join("&").replace(/%20/g,"+")},parseUrl:Kt,getBaseURL:function(){if(C){var n=C.pathname,t=Gn(n,"/")+1;return x()+(t===n.length?n:n.substring(0,t))}return""},locat:function(){return C?Kt(C.href):{}},browse:function(){var t,n,r,e=!1,u={isNode:!1,isMobile:e,isPC:!1,isDoc:!!R};return H||typeof process===j?(r=Xt("Edge"),n=Xt("Chrome"),e=/(Android|webOS|iPhone|iPad|iPod|SymbianOS|BlackBerry|Windows Phone)/.test(navigator.userAgent),u.isDoc&&(t=R.body||R.documentElement,mn(["webkit","khtml","moz","ms","o"],function(n){u["-"+n]=!!t[n+"MatchesSelector"]})),B(u,{edge:r,firefox:Xt("Firefox"),msie:!r&&u["-ms"],safari:!n&&!r&&Xt("Safari"),isMobile:e,isPC:!e,isLocalStorage:Qt(H.localStorage),isSessionStorage:Qt(H.sessionStorage)})):u.isNode=!0,u},cookie:nr}),r});