@ivujs/i-utils
Version:
前端模块化 JavaScript 工具库
26 lines • 169 kB
JavaScript
const t={DESC:0,ASC:1,RANDOM:2},e={ROUND:0,ROUND_FLOOR:1},r={ZH:"zh",EN:"en"},n={CH:/^[\u4E00-\u9FA5]+$/,EN:/^[a-zA-Z]$/,LOWER_CASE:/^[a-z]+$/,UPPER_CASE:/^[A-Z]+$/,CH_NAME:/^[\u4e00-\u9fa5·]{2,16}$/,EN_NAME:/(^[a-zA-Z][a-zA-Z\s]{0,20}[a-zA-Z]$)/,NUMBER:/^([-+])?\d+(\.\d+)?$/,INTEGER:/^(0|[1-9][0-9]*|-[1-9][0-9]*)$/,DECIMAL:/^\d+\.\d+$/,INT_OR_FLOAT:/(^[1-9][0-9]*$)|(^[1-9][0-9]*\.[0-9]{1,2}$)|(^0\.[0-9]{1,2}$)|(^0$)/,MOBILE:/^(?:(?:\+|00)86)?1[1-9]\d{9}$/,PHONE:/^(?:(?:\d{3}-)?\d{8}|^(?:\d{4}-)?\d{7,8})(?:-\d+)?$/,EMAIL:/^[\w-]+(\.[\w-]+)*@[\w-]+(\.[\w-]+)+$/,ID_CARD:/(^\d{8}(0\d|10|11|12)([0-2]\d|30|31)\d{3}$)|(^\d{6}(18|19|20)\d{2}(0[1-9]|10|11|12)([0-2]\d|30|31)\d{3}(\d|X|x)$)/,ID_CARD15:/(^\d{8}(0\d|10|11|12)([0-2]\d|30|31)\d{3}$)/,ID_CARD18:/(^\d{6}(18|19|20)\d{2}(0[1-9]|10|11|12)([0-2]\d|30|31)\d{3}(\d|X|x)$)/,BANK_CARD:/^[1-9]\d{9,29}$/,POST_CODE:/^(0[1-7]|1[0-356]|2[0-7]|3[0-6]|4[0-7]|5[1-7]|6[1-7]|7[0-5]|8[013-6])\d{4}$/,URL:/^(?:(ftp|https?|ftps):\/\/)?((?:\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}|[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+(?:[a-zA-Z]{2,6})?)?(?::(\d+))?(?:\/([^\?#]*))?(?:\?([^#]*))?(?:#(.*))?$/,IP:/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,IP6:/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,EXTERNAL:/^(http?:|https?:|mailto:|tel:)/,FUNCTION_STR:/^(function\([\w,\s]*\)\s*{[\s\S]*})|^\(\s*([\w,\s]*)\s*\)\s*=>\s*{[\s\S]*}|^(async\s*function\s*\([\w,\s]*\)\s*{[\s\S]*}\)\s*{[\s\S]*})|^(async\(\s*([\w,\s]*)\s*\)\s*=>\s*{[\s\S]*})$/},i={AM_PM:{zh:{AM:"上午",PM:"下午"},en:{AM:"AM",PM:"PM"}},WEEK:{zh:{FULL:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],SHORT:["周日","周一","周二","周三","周四","周五","周六"],MINI:["日","一","二","三","四","五","六"]},en:{FULL:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],SHORT:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],MINI:["Su","Mo","Tu","We","Th","Fr","Sa"]}},MONTH:{zh:{FULL:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],SHORT:["一","二","三","四","五","六","七","八","九","十","十一","十二"]},en:{FULL:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORT:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}},QUARTER:{zh:{FULL:["第一季度","第二季度","第三季度","第四季度"],SHORT:["一季度","二季度","三季度","四季度"],MINI:["一","二","三","四"]},en:{FULL:["quarter 1st","quarter 2nd","quarter 3rd","quarter 4th"],SHORT:["Q1th","Q2nd","Q3rd","Q4th"],MINI:["Q1","Q2","Q3","Q4"]}},OVER_TIME:{zh:{YEAR:"年",MONTH:"月",DATE:"日",HOUR:"时",MINUTE:"分",SECOND:"秒",MILLISECOND:"毫秒",DAY:"天",QUARTER:"季度"},en:{YEAR:"year",MONTH:"month",DATE:"date",HOUR:"hour",MINUTE:"minute",SECOND:"second",MILLISECOND:"millisecond",DAY:"day",QUARTER:"quarter"}},PASS_TIME:{zh:{YEAR:"年前",MONTH:"个月前",DAY:"天前",BEFORE_YESTERDAY:"前天",YESTERDAY:"昨天",TODAY:"今天",HOUR:"小时前",MINUTE:"分钟前",JUST:"刚刚"},en:{YEAR:" year ago",MONTH:" month ago",DAY:" day ago",BEFORE_YESTERDAY:"before yesterday",YESTERDAY:" yesterday",TODAY:" today",HOUR:" hour ago",MINUTE:" minute ago",JUST:" just"}},HOLIDAY:{zh:["元旦","春节","清明节","劳动节","端午节","中秋节","国庆节"],en:["New Year‘s Day","Spring Festival","Tomb Sweeping Day","Labor Day","Dragon Boat Festival","Mid-Autumn Day","National Day"]},ZODIAC:{zh:["摩羯座","水瓶座","双鱼座","白羊座","金牛座","双子座","巨蟹座","狮子座","处女座","天秤座","天蝎座","射手座"],en:["Capricorn","Aquarius","Pisces","Aries","Taurus","Gemini","Cancer","Leo","Virgo","Libra","Scorpio","Sagittarius"]},CHINESE_ZODIAC:{zh:["鼠","牛","虎","兔","龙","蛇","马","羊","猴","鸡","狗","猪"],en:["Rat","Ox","Tiger","Rabbit","Dragon","Snake","Horse","Goat","Monkey","Rooster","Dog","Pig"]},HEAVENLY_STEMS:{zh:["甲","乙","丙","丁","戊","己","庚","辛","壬","癸"],en:["Jia","Yi","Bing","Ding","Wu","Ji","Geng","Xin","Ren","Gui"]},EARTHLY_BRANCHES:{zh:["子","丑","寅","卯","辰","巳","午","未","申","酉","戌","亥"],en:["Zi","Chou","Yin","Mao","Chen","Si","Wu","Wei","Shen","You","Xu","Hai"]}};function o(t){return t.replace(/(^\s*)|(\s*$)/g,"")}function s(t){return t.replace(/(^\s*)/g,"")}function h(t){return t.replace(/(\s*$)/g,"")}function u(t){return t.replace(/\s+/g,"")}function a(t,e,r){return t.replace(new RegExp(e,"gm"),r)}function c(t){return String(t).toLocaleUpperCase()}function f(t){String(t).toLocaleLowerCase()}function l(t){return/^[a-z]$/.test(t.charAt(0))&&!(t.indexOf("-")>0||t.indexOf("_")>0)?t.replace(/([A-Z])/g,"_$1").toLowerCase():t.indexOf("-")>0?t.replace(/-/g,"_").toLowerCase():/^[A-Z]$/.test(t.charAt(0))&&!(t.indexOf("-")>0||t.indexOf("_")>0)?(t=t.charAt(0).toLowerCase()+t.slice(1)).replace(/([A-Z])/g,"_$1").toLowerCase():void 0}function p(t){if(t.indexOf("_")>0)return t.replace(/_/g,"-").toLowerCase();if(/^[a-z]$/.test(t.charAt(0))&&!(t.indexOf("-")>0||t.indexOf("_")>0))return t.replace(/([A-Z])/g,"-$1").toLowerCase();if(/^[A-Z]$/.test(t.charAt(0))&&!(t.indexOf("-")>0||t.indexOf("_")>0)){return(t.charAt(0).toLowerCase()+t.slice(1)).replace(/([A-Z])/g,"-$1").toLowerCase()}}function d(t){return t.indexOf("_")>0?t.replace(/\_(\w)/g,(function(t,e){return e.toUpperCase()})):t.indexOf("-")>0?t.replace(/\-(\w)/g,(function(t,e){return e.toUpperCase()})):/^[A-Z]$/.test(t.charAt(0))&&!(t.indexOf("-")>0||t.indexOf("_")>0)?t.charAt(0).toLowerCase()+t.slice(1):t}function g(t){if(t.indexOf("_")>0){let e=t.replace(/\_(\w)/g,(function(t,e){return e.toUpperCase()}));return e.charAt(0).toUpperCase()+e.slice(1)}if(t.indexOf("-")>0){let e=t.replace(/\-(\w)/g,(function(t,e){return e.toUpperCase()}));return e.charAt(0).toUpperCase()+e.slice(1)}return/^[a-z]$/.test(t.charAt(0))&&!(t.indexOf("-")>0||t.indexOf("_")>0)?t.charAt(0).toUpperCase()+t.slice(1):t}function y(t,e){return e.includes(t)}function w(t,e=2){let r=t.toString().length;for(;r<e;)t="0"+t,r++;return t}function m(t,e=2){let r=t.toString().length;for(;r<e;)t+="0",r++;return t}function b(t){if(!parseFloat(t))return t;let e=(t=String(t)).indexOf(".")>-1?/(\d)(?=(\d{3})+\.)/g:/(\d)(?=(?:\d{3})+$)/g;return t.replace(e,"$1,")}function A(t){let e,r,n,i=["零","壹","贰","叁","肆","伍","陆","柒","捌","玖"],o=["","拾","佰","仟"],s=["","万","亿","兆"],h=["角","分","毫","厘"],u=Number("999999999999999.9999"),a="";if(""===t)return"";if((t=parseFloat(t))>=u)throw new Error("Calculated number overflow!");if(0===t)return a=i[0]+"元整",a;if(-1===(t=t.toString()).indexOf(".")?(e=t,r=""):(n=t.split("."),e=n[0],r=n[1].substr(0,4)),parseInt(e,10)>0){let t=0,r=e.length;for(let n=0;n<r;n++){let h=e.substr(n,1),u=r-n-1,c=u/4,f=u%4;"0"===h?t++:(t>0&&(a+=i[0]),t=0,a+=i[parseInt(h)]+o[f]),0===f&&t<4&&(a+=s[c])}a+="元"}if(""!==r){let t=r.length;for(let e=0;e<t;e++){let t=r.substr(e,1);"0"!==t&&(a+=i[Number(t)]+h[e])}}return""===a?a+=i[0]+"元整":""===r&&(a+="整"),a}function v(t,e=10){return Number.parseInt(t,e)}function S(t){return Number.isInteger(t)}function D(t){return/^\d+\.\d+$/.test(t)}function E(t){return"Number"===Object.prototype.toString.call(t).slice(8,-1)}function F(t){return"String"===Object.prototype.toString.call(t).slice(8,-1)}function M(t){return"Array"===Object.prototype.toString.call(t).slice(8,-1)}function B(t){return"Object"===Object.prototype.toString.call(t).slice(8,-1)}function C(t){return"Boolean"===Object.prototype.toString.call(t).slice(8,-1)}function T(t){return"Date"===Object.prototype.toString.call(t).slice(8,-1)}function O(t){return"Function"===Object.prototype.toString}function I(t){return"AsyncFunction"===Object.prototype.toString.call(t).slice(8,-1)}function R(t){return"Symbol"===Object.prototype.toString.call(t).slice(8,-1)}function _(t){return"RegExp"===Object.prototype.toString.call(t).slice(8,-1)}function x(t){return"Error"===Object.prototype.toString.call(t).slice(8,-1)}function N(t){return"Promise"===Object.prototype.toString.call(t).slice(8,-1)}function U(t){return"Map"===Object.prototype.toString.call(t).slice(8,-1)}function P(t){return"WeakMap"===Object.prototype.toString.call(t).slice(8,-1)}function k(t){return"Set"===Object.prototype.toString.call(t).slice(8,-1)}function z(t){return"WeakSet"===Object.prototype.toString.call(t).slice(8,-1)}function j(t){return"BigInt"===Object.prototype.toString.call(t).slice(8,-1)}function $(t){try{return JSON.parse(t),!0}catch(t){return!1}}function L(t){return!q(t)}function q(t){return null==t||"undefined"===t||"null"===t||0===t||!1===t||NaN===t}function H(t){return window.isNaN(t)||M(t)||null==t||""===t}function Y(t){return!H(t)}function V(t){return null==t||""===t}function J(t){return!V(t)}function K(t){return V(t)||!(Object.keys(t)||t).length}function W(t){return!K(t)}function Z(t){return K(t)||/^\s*$/.test(t)}function Q(t){return!Z(t)}function X(t){return void 0===t}function G(t){return!X(t)}function tt(t,e){return Object.is(t,e)}function et(t,e){return Object.is(t.toLowerCase(),e.toLowerCase())}function rt(t,e){let r,n,i,o;function s(t,e){let r;if(H(t)&&H(e)&&"number"==typeof t&&"number"==typeof e)return!0;if(t===e)return!0;if("function"==typeof t&&"function"==typeof e||t instanceof Date&&e instanceof Date||t instanceof RegExp&&e instanceof RegExp||t instanceof String&&e instanceof String||t instanceof Number&&e instanceof Number)return t.toString()===e.toString();if(!(t instanceof Object&&e instanceof Object))return!1;if(t.isPrototypeOf(e)||e.isPrototypeOf(t))return!1;if(t.constructor!==e.constructor)return!1;if(t.prototype!==e.prototype)return!1;if(i.indexOf(t)>-1||o.indexOf(e)>-1)return!1;for(r in e){if(e.hasOwnProperty(r)!==t.hasOwnProperty(r))return!1;if(typeof e[r]!=typeof t[r])return!1}for(r in t){if(e.hasOwnProperty(r)!==t.hasOwnProperty(r))return!1;if(typeof e[r]!=typeof t[r])return!1;switch(typeof t[r]){case"object":case"function":if(i.push(t),o.push(e),!s(t[r],e[r]))return!1;i.pop(),o.pop();break;default:if(t[r]!==e[r])return!1}}return!0}if(arguments.length<1)return!0;for(r=1,n=arguments.length;r<n;r++)if(i=[],o=[],!s(arguments[0],arguments[r]))return!1;return!0}function nt(t){return Math.min.apply(null,t)}function it(t){return Math.max.apply(null,t)}function ot(t){return t.reduce((function(t,e){return t+e}))}function st(t){return ot(t)/t.length}function ht(t,e){return!V(t)&&e.includes(t)}function ut(t,e){return t===e||t.length===e.length&&t.every(((t,r)=>t===e[r]))}function at(t=0){return[...Array(t).keys()]}function ct(t=[],e=0,r=void 0){if(e<0)return t;if(0===t.length)t.push(r);else{if(e>t.length-1)return t;t.splice(e,0,r)}return t}function ft(t=[],e=0,r=void 0){if(e<0)return t;if(0===t.length)t.push(r);else{if(e>t.length-1)return t;t.splice(e,0,r)}return t}function lt(t=[],e=0,r=void 0){if(e<0)return t;if(0===t.length)t.push(r);else{if(e>t.length-1)return t;t.splice(e,0,t.splice(e,1,r)[0])}return t}function pt(t=[],e=0){return e<0||e>t.length-1||t.splice(e,1),t}function dt(t=[],e=0){return e<=0||e>t.length-1||t.splice(e-1,1),t}function gt(t=[],e=0){return e<0||e>t.length-1||t.splice(e+1,1),t}function yt(t=[],e=0){return e<0||e>t.length-1||t.unshift(t.splice(e,1)[0]),t}function wt(t=[],e=0){return e<0||e>t.length-1||t.push(t.splice(e,1)[0]),t}function mt(t=[],e=0){return e<0||e>t.length-1||(e>0?t.splice(e-1,0,t.splice(e,1)[0]):t.push(t.splice(e,1)[0])),t}function bt(t=[],e=0){return e<0||e>t.length-1||(e<t.length-1?t.splice(e+1,0,t.splice(e,1)[0]):t.unshift(t.splice(e,1)[0])),t}function At(t,e,r){return e<0||r<0||e>t.length-1||r>t.length-1||([t[r],t[e]]=[t[e],t[r]]),t}function vt(e,r=t.ASC){return e.sort(((n,i)=>{switch(r){case t.ASC:return n-i;case t.DESC:return i-n;case t.RANDOM:return Math.random()-.5;default:return e}}))}function St(t){return K(t)?[]:Array.from(new Set(t))}function Dt(t){for(let e=1;e<t.length;e++){const r=Math.floor(Math.random()*(e+1));[t[r],t[e]]=[t[e],t[r]]}return t}function Et(t,e={key:"id",parentKey:"pid",childrenKey:"children"}){let r=e.key,n=e.parentKey,i=e.childrenKey;if(!t||0===t.length||!r||""===r)return[];const o=function(t,e,r){return t?(void 0!==r&&(t[e]=r),t[e]):null};let s=[],h={};for(let e=0;e<t.length;e++)t[e][i]&&delete t[e][i],h[t[e][r]]=t[e];for(let e=0;e<t.length;e++){let u=h[t[e][n]];if(u&&t[e][r]!==t[e][n]){let r=o(u,i);r||(r=o(u,i,[])),r.push(t[e])}else s.push(t[e])}return s}function Ft(t,e={childrenKey:"children"}){let r=e.childrenKey,n=[];for(let i of t)if(i[r]&&!i[r].length&&delete i[r],n.push(i),i[r]&&i[r].length){let t=Ft(i[r],e);t&&n.push(...t)}return n}function Mt(t,e){return[...new Set(t.concat(e))]}function Bt(t,e){return[...new Set(t)].filter((t=>e.includes(t)))}function Ct(t,e){return[...new Set(t)].filter((t=>!e.includes(t)))}function Tt(t,e){return[...[...new Set(t)].filter((t=>!e.includes(t))),...[...new Set(e)].filter((e=>!t.includes(e)))]}function Ot(t){let e=Object.create(null);for(let[r,n]of t)e[r]=n;return e}function It(t){return JSON.stringify(Ot(t))}function Rt(t){let e=new Map;for(let r of Object.keys(t))e.set(r,t[r]);return e}function _t(t){return Rt(JSON.parse(t))}function xt(t){return JSON.stringify(t)}function Nt(t){if(!K(t))return JSON.parse(t)}function Ut(t){return Object.assign(t)}function Pt(t){if(B(t)){let e={};for(let r in t)t.hasOwnProperty(r)&&(e[r]=Pt(t[r]));return e}if(M(t)){let e=[];for(let r=0,n=t.length;r<n;r++)e[r]=Pt(t[r]);return e}if(T(t)){let e=new Date;return e.setTime(t.getTime()),e}return t}function kt(t,e){if(t===e)return!0;if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(!t||!e||"object"!=typeof t&&"object"!=typeof e)return t===e;if(t.prototype!==e.prototype)return!1;const r=Object.keys(t);return r.length===Object.keys(e).length&&r.every((r=>kt(t[r],e[r])))}function zt(t,...e){return Object.assign(t,...e)}function jt(t,e="data"){const r=(e||"data").split(".");let n=t,i=r.length-1;for(const t in r)null!==n[r[t]]&&void 0!==n[r[t]]||(n[r[t]]=Number(t)!==i?{}:void 0),n=n[r[t]];return n}function $t(t,e="data",r){const n=(e||"data").split(".");let i="";for(const t of n)i+=`['${t}']`;new Function("target",`target${i}=${r}`)(t)}function Lt(t,e=1e3,r=!0){let n;return function(){const i=arguments;if(n&&clearTimeout(n),r){const r=!n;n=setTimeout((function(){n=null}),e),r&&t.apply(this,i)}else n=setTimeout((function(){t.apply(this,i)}),e)}}function qt(t,e=1e3){let r;return function(){const n=arguments;r||(r=setTimeout((()=>{r=null,t.apply(this,n)}),e))}}function Ht(t=1e3){return new Promise((e=>setTimeout(e,t)))}function Yt(){return Be()}function Vt(){return vr(dr(new Date,-1))}function Jt(){return vr(dr(new Date,1))}function Kt(t=new Date){return vr(dr(t,-7))}function Wt(t=new Date){return vr(dr(t,7))}function Zt(t=new Date){return vr(dr(t,-30))}function Qt(t=new Date){return vr(dr(t,30))}function Xt(t=new Date){return vr(dr(t,-365))}function Gt(t=new Date){return vr(dr(t,365))}function te(t=new Date){return t.getHours()<12}function ee(t=new Date){return t.getHours()>=12}function re(t=new Date){let e=new Date;return["getFullYear","getMonth","getDate"].every((r=>e[r]()===t[r]()))}function ne(t=new Date){let e=t.getTime();return 1===v((Date.now()-e)/864e5)}function ie(t=new Date){let e=t.getTime();return 2===v((Date.now()-e)/864e5)}function oe(t=new Date){return 1===v((t.getTime()-Date.now())/864e5)}function se(t=new Date){return 2===v((t.getTime()-Date.now())/864e5)}function he(t=new Date){let e=Ne(t);return 6!==e&&7!==e}function ue(t=new Date){let e=Ne(t);return 6===e||7===e}function ae(t=new Date){return 1===Ne(t)}function ce(t=new Date){return 7===Ne(t)}function fe(t=new Date){return 1===Ue(t)}function le(t=new Date){return Ue(t)===$e(t)}function pe(t=new Date){return 1===Pe(t)}function de(t=new Date){return Pe(t)===Le(t)}function ge(t=new Date){let e=t.getFullYear();return e%100!=0&&e%4==0||e%400==0}function ye(t=new Date){return!ge(t)}function we(t,e=new Date){return t.getTime()-e.getTime()<0}function me(t,e=new Date){return t.getTime()-e.getTime()>0}function be(t,e,r){let n=t.getTime(),i=e.getTime(),o=r.getTime();return n>i&&n<o}function Ae(t,e){return["getFullYear","getMonth","getDate"].every((r=>t[r]()===e[r]()))}function ve(t,e){let r=t.getTime()/864e5,n=e.getTime()/864e5;return v((r+4)/7)===v((n+4)/7)}function Se(t,e){return["getFullYear","getMonth"].every((r=>t[r]()===e[r]()))}function De(t,e){return["getFullYear"].every((r=>t[r]()===e[r]()))}function Ee(t,e){return Ae(t,e)||we(t,e)}function Fe(t,e){return Ae(t,e)||me(t,e)}function Me(){return new Date}function Be(t=new Date,e="yyyy-MM-dd"){return vr(t,e)}function Ce(t=new Date,e="yyyy-MM-dd HH:mm:ss"){return vr(t,e)}function Te(t=new Date){return t.getTime()}function Oe(t=new Date){return Math.round(t/1e3)}function Ie(t=new Date){return{year:t.getFullYear(),month:t.getMonth()+1,date:t.getDate(),hours:t.getHours(),minutes:t.getMinutes(),seconds:t.getSeconds(),milliseconds:t.getMilliseconds()}}function Re(t=new Date){return Object.entries(Ie(t)).map((([t,e])=>e))}function _e(t=new Date,e="E",r="zh"){return"E"===e?i.WEEK[r].MINI[t.getDay()]:"EE"===e?i.WEEK[r].SHORT[t.getDay()]:"EEE"===e?i.WEEK[r].FULL[t.getDay()]:Ne(t)}function xe(t=new Date,e="Q",r="zh"){let n=Number(Math.floor((t.getMonth()+3)/3));return"Q"===e?i.QUARTER[r].MINI[n-1]:"QQ"===e?i.QUARTER[r].SHORT[n-1]:"QQQ"===e?i.QUARTER[r].FULL[n-1]:n}function Ne(t=new Date){return[7,1,2,3,4,5,6][t.getDay()]}function Ue(t=new Date){return t.getDate()}function Pe(t=new Date){return Math.ceil((t-new Date(t.getFullYear().toString()))/864e5)+1}function ke(t=new Date){return Math.ceil((t.getDate()+6-Ne(t))/7)}function ze(t=new Date){let e=new Date(t.getFullYear(),0,1),r=Ne(e),n=Math.round((t-e)/864e5);return Math.ceil((n+r)/7)}function je(t=new Date){return 7}function $e(t=new Date){return new Date(t.getFullYear(),t.getMonth()+1,0).getDate()}function Le(t=new Date){return ge(t)?366:365}function qe(t=new Date){let e=Ne(new Date(t.getFullYear(),0,1)),r=ge(t)?366:365;return 1===e?Math.ceil(r/7):Math.ceil((r-7+e)/7)}function He(t=new Date){let e=Ne(new Date(t.getFullYear(),0,1)),r=ge(t)?366:365;return 1===e?Math.ceil(r/7):Math.ceil((r-7+e)/7)}function Ye(t=new Date){let e=Ne(t);return t.setDate(t.getDate()-e+1),vr(t)}function Ve(t=new Date){let e=Ne(t);return t.setDate(t.getDate()+(7-e)),vr(t)}function Je(t=new Date){let e=[],r=t.getDay(),n=new Date;n.setDate(t.getDate()-(0===r?6:r-1));for(let t=0;t<7;t++){let r=new Date(n);r.setDate(r.getDate()+t),e.push(vr(r))}return e}function Ke(t=new Date){return t.setDate(1),vr(t)}function We(t=new Date){return vr(new Date(t.getFullYear(),t.getMonth()+1,0))}function Ze(t=new Date){let e=[],r=new Date(t.getFullYear(),t.getMonth(),1),n=new Date(t.getFullYear(),t.getMonth()+1,0);for(let t=0;t<n.getDate();t++){let n=new Date(r);n.setDate(r.getDate()+t),e.push(n)}return e}function Qe(t=new Date){return new Date(t.getFullYear(),0,1)}function Xe(t=new Date){return new Date(t.getFullYear(),11,31)}function Ge(t=new Date){let e=[],r=new Date(t.getFullYear(),0,1),n=Le();for(let t=0;t<n;t++){let n=new Date(r);n.setDate(r.getDate()+t),e.push(n.toLocaleDateString())}return e}function tr(t,e){if(K(t)||K(e))return 0;let r=(e-t)/864e5;return r>=0?Math.abs(r):r}function er(t,e){if(K(t)||K(e))return 0;let r=(e-t)/6048e5;return r>=0?Math.abs(r):r}function rr(t,e){if(K(t)||K(e))return 0;let r=(t-e)/2592e6;return r>=0?Math.abs(r):r}function nr(t,e){if(K(t)||K(e))return 0;let r=(e-t)/31104e6;return r>=0?Math.abs(r):r}function ir(t,e){if(K(t)||K(e))return[];let r=[];for(;e-t>=0;){let e=t.getFullYear(),n=Dr(t.getMonth()+1),i=Dr(t.getDate());r.push(e+"-"+n+"-"+i),t.setDate(t.getDate()+1)}return r}function or(t,e){if(K(t)||K(e))return[];let r=[],n=new Date,i=new Date;n.setFullYear(t.getFullYear(),t.getMonth()+1),i.setFullYear(e.getFullYear(),e.getMonth()+1);let o=n,s="";for(;o<=i;){let t=o.getMonth();s=0===t?o.getFullYear()-1+"-12":o.getFullYear()+"-"+Dr(t),r.push(s),o.setMonth(t+1)}return r}function sr(t,e){if(K(t)||K(e))return[];let r=[];for(;e-t>=0;){let e=t.getFullYear();r.push(e),t.setFullYear(t.getFullYear()+1)}return r}function hr(t,e="zh"){if(V(t))return"--";let r=t.getTime(),n=Date.now()-r,o=v(n/31104e6),s=v(n/2592e6),h=v(n/864e5),u=v(n/36e5),a=v(n/6e4);return o?o+i.PASS_TIME[e].YEAR:s?s+i.PASS_TIME[e].MONTH:h?1===h?i.PASS_TIME[e].YESTERDAY:2===h?i.PASS_TIME[e].BEFORE_YESTERDAY:h+i.PASS_TIME[e].DAY:u?u>12?i.PASS_TIME[e].TODAY:u+i.PASS_TIME[e].HOUR:a?a+i.PASS_TIME[e].MINUTE:i.PASS_TIME[e].JUST}function ur(t,e="zh"){if(V(t))return"--";let r=new Date,n=t.getTime()-r.getTime(),o=0,s=0,h=0,u=0;return n>=0&&(o=Math.floor(n/1e3/3600/24),s=Math.floor(n/1e3/60/60%24),h=Math.floor(n/1e3/60%60),u=Math.floor(n/1e3%60)),`${o}${i.OVER_TIME[e].DAY} ${s}${i.OVER_TIME[e].HOUR} ${h}${i.OVER_TIME[e].MINUTE} ${u}${i.OVER_TIME[e].SECOND}`}function ar(t){let e=0,r=vr(t).split("-"),n=Number(r[0]),i=Number(r[1]),o=Number(r[2]),s=new Date,h=s.getFullYear(),u=s.getMonth()+1,a=s.getDate(),c=h-n;if(c>0){let t=u-i;e=0===t?a-o<0?c-1:c:t<0?c-1:c}return e}function cr(t,e="zh"){if(V(t))return"";let r=t.getMonth()+1;return t.getDate()<[20,19,21,20,21,22,23,23,23,24,23,22][r-1]?i.ZODIAC[e][r-1]:i.ZODIAC[e][r]}function fr(t,e="zh"){if(V(t))return"";let r=t.getFullYear();return r<1900?"未知":i.CHINESE_ZODIAC[e][(r-1900)%i.CHINESE_ZODIAC[e].length]}function lr(t=new Date,e=1){return t.setFullYear(t.getFullYear()+e),t}function pr(t=new Date,e=1){return t.setMonth(t.getMonth()+e),t}function dr(t=new Date,e=1){return t.setDate(t.getDate()+e),t}function gr(t=new Date,e=1){return t.setHours(t.getHours()+e),t}function yr(t=new Date,e=1){return t.setMinutes(t.getMinutes()+e),t}function wr(t=new Date,e=1){return t.setSeconds(t.getSeconds()+e),t}function mr(t=new Date,e=100){return t.setMilliseconds(t.getMilliseconds()+e),t}function br(t=new Date,e=1){return t.setDate(t.getDate()+7*e),t}function Ar(t=new Date,e=1){return t.setMonth(t.getMonth()+4*e),t}function vr(t,e="yyyy-MM-dd",r="zh"){if(V(t))return"";if(F(t))t=Sr(t);else if(T(t));else if(S(t)&&13===String(t).length)t=new Date(t);else{if(!S(t)||10!==String(t).length)return console.error("Not supported date format!"),t;t=new Date(1e3*t)}let n={"M+":t.getMonth()+1,"d+":t.getDate(),"h+":t.getHours()%12==0?12:t.getHours()%12,"H+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds(),"S+":t.getMilliseconds(),"a+":t.getHours()<12?"am":"pm","A+":t.getHours()<12?"AM":"PM","E+":t.getDay(),"Q+":Math.floor((t.getMonth()+3)/3),S:t.getMilliseconds()},o=new RegExp(/(y+)/g);o.test(e)&&(e=e.replace(o,(function(e,r){return(t.getFullYear()+"").substring(4-r.length)})));let s=new RegExp(/((b+)|(A+))/g);s.test(e)&&(e=e.replace(s,(function(e,n){return n.length>1?t.getHours()<12?i.AM_PM[r].AM:i.AM_PM[r].PM:n===n.toLowerCase()?t.getHours()<12?i.AM_PM.en.AM.toLowerCase():i.AM_PM.en.PM.toLowerCase():t.getHours()<12?i.AM_PM.en.AM:i.AM_PM.en.PM})));let h=new RegExp(/(E+)/g);h.test(e)&&(e=e.replace(h,(function(e,n){return 1===n.length?i.WEEK[r].MINI[t.getDay()]:2===n.length?i.WEEK[r].SHORT[t.getDay()]:i.WEEK[r].FULL[t.getDay()]})));let u=new RegExp(/(Q+)/g);u.test(e)&&(e=e.replace(u,(function(e,n){return 1===n.length?i.QUARTER[r].MINI[Math.floor((t.getMonth()+3)/3)-1]:2===n.length?i.QUARTER[r].SHORT[Math.floor((t.getMonth()+3)/3)-1]:i.QUARTER[r].FULL[Math.floor((t.getMonth()+3)/3)-1]})));for(let t in n){let r=new RegExp("("+t+")");r.test(e)&&(e=e.replace(r,(function(e,r){return 1===r.length?n[t]:2===r.length?("00"+n[t]).substring((""+n[t]).length):("000"+n[t]).substring((""+n[t]).length)})))}return e}function Sr(t){return V(t)?null:F(t)?new Date(t.replace(/-/g,"/")):S(t)&&13===String(t).length?new Date(t):S(t)&&10===String(t).length?new Date(1e3*t):(console.error("Not supported date format!"),t)}function Dr(t){return(t=t.toString())[1]?t:"0"+t}function Er(t,e){let r,n,i;try{r=t.toString().split(".")[1].length}catch(t){r=0}try{n=e.toString().split(".")[1].length}catch(t){n=0}return i=Math.pow(10,Math.max(r,n)),(t*i+e*i)/i}function Fr(t,e){let r,n,i,o;try{r=t.toString().split(".")[1].length}catch(t){r=0}try{n=e.toString().split(".")[1].length}catch(t){n=0}return i=Math.pow(10,Math.max(r,n)),o=r>=n?r:n,((t*i-e*i)/i).toFixed(o)}function Mr(t,e){let r=0,n=t.toString(),i=e.toString();try{r+=n.split(".")[1].length}catch(t){}try{r+=i.split(".")[1].length}catch(t){}return Number(n.replace(".",""))*Number(i.replace(".",""))/Math.pow(10,r)}function Br(t,e){let r,n,i=0,o=0;try{i=t.toString().split(".")[1].length}catch(t){}try{o=e.toString().split(".")[1].length}catch(t){}return r=Number(t.toString().replace(".","")),n=Number(e.toString().replace(".","")),r/n*Math.pow(10,o-i)}function Cr(t,e){let r=0,n=0,i=0;try{r=t.toString().split(".")[1].length}catch(t){}try{n=e.toString().split(".")[1].length}catch(t){}return i=Math.pow(10,Math.max(r,n)),Math.round(Number(t)*i)%Math.round(Number(e)*i)/i}function Tr(t,e){return e?Tr(e,t%e):t}function Or(t,e){return t*e/Tr(t,e)}function Ir(t,r=2,n=e.ROUND){return n===e.ROUND?function(t,e=2){if(H(t))return"--";let r=String(t);e||(e=0);-1===r.indexOf(".")&&(r+=".");if(r+=new Array(e+1).join("0"),new RegExp("^(-|\\+)?(\\d+(\\.\\d{0,"+(e+1)+"})?)\\d*$").test(r)){let t="0"+RegExp.$2,r=RegExp.$1,n=RegExp.$3.length,i=!0;if(n===e+2){if(n=t.match(/\d/g),parseInt(n[n.length-1])>4)for(let t=n.length-2;t>=0&&(n[t]=parseInt(n[t])+1,10===n[t]);t--)n[t]=0,i=1!==t;t=n.join("").replace(new RegExp("(\\d+)(\\d{"+e+"})\\d$"),"$1.$2")}return i&&(t=t.substr(1)),(r+t).replace(/\.$/,"")}return String(t)}(t,r):n===e.ROUND_FLOOR?function(t,e=2){if(H(t))return"--";let r=e,n=Number(t),i=String(n).indexOf(".")+1,o=i?String(n).length-i:0;if(0===i||o<=r){let t=n;if(0===i){t=`${t}.`;for(let e=0;e<r-o;e++)t=`${t}0`}else for(let e=0;e<r-o;e++)t=`${t}0`;return t}let s="";return s=`${String(n).split(".")[0]}.${String(n).split(".")[1].substring(0,r)}`,String(s)}(t,r):void 0}function Rr(t,r=2,n=e.ROUND){return n===e.ROUND?function(t,e=2){if(H(t))return"--";let r=Math.pow(10,e);return Math.round(t*r)/r}(t,r):n===e.ROUND_FLOOR?function(t,e=2){if(H(t))return"--";let r=Math.pow(10,e);return Math.floor(t*r)/r}(t,r):void 0}function _r(t,e){return new RegExp(e).test(t)}function xr(t){return _r(t,n.CH)}function Nr(t){return _r(t,n.EN)}function Ur(t){return _r(t,n.EXTERNAL)}function Pr(t){return _r(t,n.LOWER_CASE)}function kr(t){return _r(t,n.UPPER_CASE)}function zr(t){return _r(t,n.MOBILE)}function jr(t){return _r(t,n.EMAIL)}function $r(t){return _r(t,n.ID_CARD)}function Lr(t){return _r(t,n.URL)}function qr(t=0,e=9){return Math.floor(Math.random()*(e-t+1)+t)}function Hr(t=1){return Math.floor((Math.random()+Math.floor(9*Math.random()+1))*Math.pow(10,t-1))}function Yr(t){return K(t)?"0B":t<1024?t+"B":t<1048576?(t/1024).toFixed(2)+"KB":t<1073741824?(t/1048576).toFixed(2)+"MB":(t/1073741824).toFixed(2)+"GB"}function Vr(t){if(!K(t))return t.substring(0,t.lastIndexOf("."))}function Jr(t){if(!K(t))return t.substring(t.lastIndexOf(".")+1).toLowerCase()}function Kr(t){return new Promise(((e,r)=>{let n=new FileReader;n.readAsArrayBuffer(t),n.onload=r=>{const n=new Blob([r.target.result],{type:t.type});e(n)},n.onerror=function(t){console.error(t),r(t)}}))}function Wr(t){return new Promise(((e,r)=>{let n=new FileReader;n.readAsDataURL(t),n.onload=function(t){e(t.target.result)},n.onerror=function(t){console.error(t),r(t)}}))}function Zr(t){return new Promise(((e,r)=>{try{e(URL.createObjectURL(t))}catch(e){console.error(e),URL.revokeObjectURL(t),r(e)}}))}function Qr(t){return new Promise((async(e,r)=>{try{let r=await window.fetch(t);if(200===r.status){let t=await r.blob();e(await Xr(t))}}catch(t){console.error(t),r(t)}}))}function Xr(t,e=Date.now()){return new Promise(((r,n)=>{try{const n=t.type,i=t.size,o=n.split("/")[1];r(new File([t],`${Date.now()}.${o}`,{type:n,size:i,name:`${e}.${o}`,lastModified:Date.now(),lastModifiedDate:new Date}))}catch(t){console.error(t),n(t)}}))}function Gr(t){return new Promise(((e,r)=>{const n=new FileReader;n.onload=function(t){e(t.target.result)},n.onerror=function(t){r(t)},n.readAsText(t)}))}function tn(t){return new Promise(((e,r)=>{let n=new FileReader;n.readAsDataURL(t),n.onload=function(t){e(t.target.result)},n.onerror=function(t){console.error(t),r(t)}}))}function en(t,e=Date.now()){return new Promise(((r,n)=>{try{const n=t.split(","),i=n[0].match(/:(.*?);/)[1],o=i.split("/")[1],s=window.atob(n[1]);let h=s.length;const u=new Uint8Array(h);for(;h--;)u[h]=s.charCodeAt(h);r(new File([u],`${e}.${o}`,{type:i}))}catch(t){console.error(t),n(t)}}))}function rn(t){return new Promise(((e,r)=>{try{const r=t.split(","),n=r[0].match(/:(.*?);/)[1],i=window.atob(r[1]);let o=i.length;const s=new Uint8Array(o);for(;o--;)s[o]=i.charCodeAt(o);e(new Blob([s],{type:n}))}catch(t){console.error(t),r(t)}}))}function nn(t){return new Promise(((e,r)=>{const n=new Image;n.src=t,n.onload=function(){const t=document.createElement("canvas"),r=t.getContext("2d");t.width=n.width,t.height=n.height,r.drawImage(n,0,0,n.width,n.height);const i=t.toDataURL("image/png");e(i)},n.onerror=function(t){console.error(t),r(t)}}))}function on(t,e){try{const r=window.URL.createObjectURL(t),n=window.document.createElement("a");n.download=e,n.href=r,n.click(),URL.revokeObjectURL(r)}catch(t){console.error(t)}}function sn(t,e){try{const r=window.document.createElement("a");r.download=e,r.href=t,window.document.body.appendChild(r),r.click(),window.document.body.removeChild(r)}catch(t){console.error(t)}}function hn(t){let e=t.split(","),r=parseInt(e[0].split("(")[1]),n=parseInt(e[1]),i=parseInt(e[2].split(")")[0]);return"#"+yn(r)+yn(n)+yn(i)}function un(t){let e=t.split(","),r=parseInt(e[0].split("(")[1]),n=parseInt(e[1]),i=parseInt(e[2]),o=parseFloat(e[3].split(")")[0]);return`#${yn(Math.round(256*o-1))}${yn(r)}${yn(n)}${yn(i)}`}function an(t){let e,r,n=t.split(","),i=parseInt(n[0].split("(")[1])/255,o=parseInt(n[1])/255,s=parseInt(n[2])/255,h=parseFloat(n[3]&&n[3].split(")")[0]),u=Math.max(i,o,s),a=Math.min(i,o,s),c=(u+a)/2;if(u===a)e=r=0;else{let t=u-a;switch(r=c>.5?t/(2-u-a):t/(u+a),u){case i:e=(o-s)/t+(o<s?6:0);break;case o:e=(s-i)/t+2;break;case s:e=(i-o)/t+4}e/=6}return h?`hsla(${Math.round(360*e)},${Math.round(100*r)}%,${Math.round(100*c)}%,${h})`:`hsl(${Math.round(360*e)},${Math.round(100*r)}%,${Math.round(100*c)}%)`}function cn(t){let e={},r=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(t,e,r,n){return e+e+r+r+n+n})),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(r);return e.r=parseInt(n[1],16),e.g=parseInt(n[2],16),e.b=parseInt(n[3],16),`rgb(${e.r},${e.g},${e.b})`}function fn(t,e=1){let r={},n=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(t,e,r,n){return e+e+r+r+n+n})),i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(n);return r.r=parseInt(i[1],16),r.g=parseInt(i[2],16),r.b=parseInt(i[3],16),r.o=e,`rgba(${r.r},${r.g},${r.b},${r.o})`}function ln(t){let e,r,n=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(t,e,r,n){return e+e+r+r+n+n})),i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(n),o=parseInt(i[1],16)/255,s=parseInt(i[2],16)/255,h=parseInt(i[3],16)/255,u=Math.max(o,s,h),a=Math.min(o,s,h),c=(u+a)/2;if(u===a)e=r=0;else{let t=u-a;switch(r=c>.5?t/(2-u-a):t/(u+a),u){case o:e=(s-h)/t+(s<h?6:0);break;case s:e=(h-o)/t+2;break;case h:e=(o-s)/t+4}e/=6}return`hsl(${Math.round(360*e)},${Math.round(100*r)}%,${Math.round(100*c)}%)`}function pn(){return"#"+(t=(16777216*Math.random()|0).toString(16),new Array(7-t.length).join("0")+t);var t}function dn(){return`rgb(${Math.floor(256*Math.random())},${Math.floor(256*Math.random())},${Math.floor(256*Math.random())})`}function gn(){return`rgba(${Math.floor(256*Math.random())},${Math.floor(256*Math.random())},${Math.floor(256*Math.random())},${Number(Math.random()).toFixed(2)})`}function yn(t){if(t>255)throw"'"+t+"'' is greater than 255(0xff);";return("0"+Number(t).toString(16)).slice(-2)}const wn={8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"Caps Lock",27:"Escape",32:"Space",33:"Page Up",34:"Page Down",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",42:"Print Screen",45:"Insert",46:"Delete",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",91:"Windows",93:"Right Click",96:"Numpad 0",97:"Numpad 1",98:"Numpad 2",99:"Numpad 3",100:"Numpad 4",101:"Numpad 5",102:"Numpad 6",103:"Numpad 7",104:"Numpad 8",105:"Numpad 9",106:"Numpad *",107:"Numpad +",109:"Numpad -",110:"Numpad .",111:"Numpad /",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"Num Lock",145:"Scroll Lock",182:"My Computer",183:"My Calculator",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"};function mn(t){return wn[t]?wn[t]:(console.log("Unknow Key Code: "+t),"")}function bn(t){for(let e in wn)if(wn[e]===t)return e}function An(t=32,e=16){const r="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split("");let n,i=[];if(e=e||r.length,t)for(n=0;n<t;n++)i[n]=r[0|Math.random()*e];else{let t;for(i[8]=i[13]=i[18]=i[23]="-",i[14]="4",n=0;n<36;n++)i[n]||(t=0|16*Math.random(),i[n]=r[19===n?3&t|8:t])}return i.join("")}function vn(){let t=function(){return(65536*(1+Math.random())|0).toString(16).substring(1)};return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()}
/*
* [hi-base64]{@link https://github.com/emn178/hi-base64}
*
* @version 0.3.1
* @author Chen, Yi-Cyuan [emn178@gmail.com]
* @copyright Chen, Yi-Cyuan 2014-2023
* @license MIT
*/var Sn="not a UTF-8 string",Dn="object"==typeof window,En=Dn?window:{};En.HI_BASE64_NO_WINDOW&&(Dn=!1);var Fn=!Dn&&"object"==typeof self,Mn=!En.HI_BASE64_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;Mn?En=global:Fn&&(En=self);for(var Bn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),Cn={},Tn=0;Tn<64;++Tn)Cn[Bn[Tn]]=Tn;Cn["-"]=62,Cn._=63;var On,In,Rn=function(t){return t.split("=")[0].replace(/[\r\n]/g,"")},_n=function(t){for(var e,r,n,i,o=[],s=0,h=(t=Rn(t)).length,u=0,a=h>>2<<2;u<a;)e=Cn[t.charAt(u++)],r=Cn[t.charAt(u++)],n=Cn[t.charAt(u++)],i=Cn[t.charAt(u++)],o[s++]=255&(e<<2|r>>>4),o[s++]=255&(r<<4|n>>>2),o[s++]=255&(n<<6|i);var c=h-a;return 2===c?(e=Cn[t.charAt(u++)],r=Cn[t.charAt(u++)],o[s++]=255&(e<<2|r>>>4)):3===c&&(e=Cn[t.charAt(u++)],r=Cn[t.charAt(u++)],n=Cn[t.charAt(u++)],o[s++]=255&(e<<2|r>>>4),o[s++]=255&(r<<4|n>>>2)),o},xn=function(t){for(var e,r,n,i=[],o=t.length,s=0,h=3*parseInt(o/3);s<h;)e=t[s++],r=t[s++],n=t[s++],i.push(Bn[e>>>2],Bn[63&(e<<4|r>>>4)],Bn[63&(r<<2|n>>>6)],Bn[63&n]);var u=o-h;return 1===u?(e=t[s],i.push(Bn[e>>>2],Bn[e<<4&63],"==")):2===u&&(e=t[s++],r=t[s],i.push(Bn[e>>>2],Bn[63&(e<<4|r>>>4)],Bn[r<<2&63],"=")),i.join("")},Nn=En.btoa,Un=En.atob;if(Mn){var Pn=require("buffer").Buffer;Nn=function(t){return Pn.from(t,"ascii").toString("base64")},xn=On=function(t){return Pn.from(t).toString("base64")},Un=function(t){return Pn.from(t,"base64").toString("ascii")},In=function(t){return Pn.from(t,"base64").toString()}}else Nn?(On=function(t){for(var e=[],r=0;r<t.length;r++){var n=t.charCodeAt(r);n<128?e.push(String.fromCharCode(n)):n<2048?e.push(String.fromCharCode(192|n>>6),String.fromCharCode(128|63&n)):n<55296||n>=57344?e.push(String.fromCharCode(224|n>>12),String.fromCharCode(128|n>>6&63),String.fromCharCode(128|63&n)):(n=65536+((1023&n)<<10|1023&t.charCodeAt(++r)),e.push(String.fromCharCode(240|n>>18),String.fromCharCode(128|n>>12&63),String.fromCharCode(128|n>>6&63),String.fromCharCode(128|63&n)))}return Nn(e.join(""))},In=function(t){var e=Un(t.replace(/-/g,"+").replace(/_/g,"/"));if(!/[^\x00-\x7F]/.test(e))return e;for(var r,n,i=[],o=0,s=e.length,h=0;o<s;)if((r=e.charCodeAt(o++))<=127)i.push(String.fromCharCode(r));else{if(r>191&&r<=223)n=31&r,h=1;else if(r<=239)n=15&r,h=2;else{if(!(r<=247))throw new Error(Sn);n=7&r,h=3}for(var u=0;u<h;++u){if((r=e.charCodeAt(o++))<128||r>191)throw new Error(Sn);n<<=6,n+=63&r}if(n>=55296&&n<=57343)throw new Error(Sn);if(n>1114111)throw new Error(Sn);n<=65535?i.push(String.fromCharCode(n)):(n-=65536,i.push(String.fromCharCode(55296+(n>>10)),String.fromCharCode(56320+(1023&n))))}return i.join("")}):(Nn=function(t){for(var e,r,n,i=[],o=t.length,s=0,h=3*parseInt(o/3);s<h;)e=t.charCodeAt(s++),r=t.charCodeAt(s++),n=t.charCodeAt(s++),i.push(Bn[e>>>2],Bn[63&(e<<4|r>>>4)],Bn[63&(r<<2|n>>>6)],Bn[63&n]);var u=o-h;return 1===u?(e=t.charCodeAt(s),i.push(Bn[e>>>2],Bn[e<<4&63],"==")):2===u&&(e=t.charCodeAt(s++),r=t.charCodeAt(s),i.push(Bn[e>>>2],Bn[63&(e<<4|r>>>4)],Bn[r<<2&63],"=")),i.join("")},On=function(t){for(var e,r,n,i=[],o=function(t){for(var e=[],r=0;r<t.length;r++){var n=t.charCodeAt(r);n<128?e[e.length]=n:n<2048?(e[e.length]=192|n>>6,e[e.length]=128|63&n):n<55296||n>=57344?(e[e.length]=224|n>>12,e[e.length]=128|n>>6&63,e[e.length]=128|63&n):(n=65536+((1023&n)<<10|1023&t.charCodeAt(++r)),e[e.length]=240|n>>18,e[e.length]=128|n>>12&63,e[e.length]=128|n>>6&63,e[e.length]=128|63&n)}return e}(t),s=o.length,h=0,u=3*parseInt(s/3);h<u;)e=o[h++],r=o[h++],n=o[h++],i.push(Bn[e>>>2],Bn[63&(e<<4|r>>>4)],Bn[63&(r<<2|n>>>6)],Bn[63&n]);var a=s-u;return 1===a?(e=o[h],i.push(Bn[e>>>2],Bn[e<<4&63],"==")):2===a&&(e=o[h++],r=o[h],i.push(Bn[e>>>2],Bn[63&(e<<4|r>>>4)],Bn[r<<2&63],"=")),i.join("")},Un=function(t){for(var e,r,n,i,o=[],s=t.length,h=0,u=s>>2<<2;h<u;)e=Cn[t.charAt(h++)],r=Cn[t.charAt(h++)],n=Cn[t.charAt(h++)],i=Cn[t.charAt(h++)],o.push(String.fromCharCode(255&(e<<2|r>>>4)),String.fromCharCode(255&(r<<4|n>>>2)),String.fromCharCode(255&(n<<6|i)));var a=s-u;return 2===a?(e=Cn[t.charAt(h++)],r=Cn[t.charAt(h++)],o.push(String.fromCharCode(255&(e<<2|r>>>4)))):3===a&&(e=Cn[t.charAt(h++)],r=Cn[t.charAt(h++)],n=Cn[t.charAt(h++)],o.push(String.fromCharCode(255&(e<<2|r>>>4)),String.fromCharCode(255&(r<<4|n>>>2)))),o.join("")},In=function(t){for(var e,r,n=[],i=_n(t),o=i.length,s=0,h=0;s<o;)if((e=i[s++])<=127)n.push(String.fromCharCode(e));else{if(e>191&&e<=223)r=31&e,h=1;else if(e<=239)r=15&e,h=2;else{if(!(e<=247))throw new Error(Sn);r=7&e,h=3}for(var u=0;u<h;++u){if((e=i[s++])<128||e>191)throw new Error(Sn);r<<=6,r+=63&e}if(r>=55296&&r<=57343)throw new Error(Sn);if(r>1114111)throw new Error(Sn);r<=65535?n.push(String.fromCharCode(r)):(r-=65536,n.push(String.fromCharCode(55296+(r>>10)),String.fromCharCode(56320+(1023&r))))}return n.join("")});var kn=function(t,e){var r="string"!=typeof t;return r&&t.constructor===En.ArrayBuffer&&(t=new Uint8Array(t)),r?xn(t):/[^\x00-\x7F]/.test(t)?On(t):Nn(t)};const zn=On,jn=In;var $n=Object.freeze({__proto__:null,decode:function(t){return e=Rn(e=t),r?Un(e):In(e);var e,r},decodeAsBytes:function(t){return _n(t)},encode:function(t){return kn(t)},encodeAsBytes:function(t){return kn(t)},utf8Decode:function(t){return jn(t)},utf8Encode:function(t){return zn(t)}}),Ln="object"==typeof window?window:{};
/*
* [hi-base32]{@link https://github.com/emn178/hi-base32}
*
* @version 0.5.0
* @author Chen, Yi-Cyuan [emn178@gmail.com]
* @copyright Chen, Yi-Cyuan 2015-2018
* @license MIT
*/!Ln.HI_BASE32_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node&&(Ln=global);var qn="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567".split(""),Hn={A:0,B:1,C:2,D:3,E:4,F:5,G:6,H:7,I:8,J:9,K:10,L:11,M:12,N:13,O:14,P:15,Q:16,R:17,S:18,T:19,U:20,V:21,W:22,X:23,Y:24,Z:25,2:26,3:27,4:28,5:29,6:30,7:31},Yn=[0,0,0,0,0,0,0,0],Vn=function(t,e){e.length>10&&(e="..."+e.substr(-10));var r=new Error("Decoded data is not valid UTF-8. Maybe try base32.decode.asBytes()? Partial data after reading "+t+" bytes: "+e+" <-");throw r.position=t,r},Jn=function(t){if(""===t)return[];if(!/^[A-Z2-7=]+$/.test(t))throw new Error("Invalid base32 characters");for(var e,r,n,i,o,s,h,u,a=[],c=0,f=(t=t.replace(/=/g,"")).length,l=0,p=f>>3<<3;l<p;)e=Hn[t.charAt(l++)],r=Hn[t.charAt(l++)],n=Hn[t.charAt(l++)],i=Hn[t.charAt(l++)],o=Hn[t.charAt(l++)],s=Hn[t.charAt(l++)],h=Hn[t.charAt(l++)],u=Hn[t.charAt(l++)],a[c++]=255&(e<<3|r>>>2),a[c++]=255&(r<<6|n<<1|i>>>4),a[c++]=255&(i<<4|o>>>1),a[c++]=255&(o<<7|s<<2|h>>>3),a[c++]=255&(h<<5|u);var d=f-p;return 2===d?(e=Hn[t.charAt(l++)],r=Hn[t.charAt(l++)],a[c++]=255&(e<<3|r>>>2)):4===d?(e=Hn[t.charAt(l++)],r=Hn[t.charAt(l++)],n=Hn[t.charAt(l++)],i=Hn[t.charAt(l++)],a[c++]=255&(e<<3|r>>>2),a[c++]=255&(r<<6|n<<1|i>>>4)):5===d?(e=Hn[t.charAt(l++)],r=Hn[t.charAt(l++)],n=Hn[t.charAt(l++)],i=Hn[t.charAt(l++)],o=Hn[t.charAt(l++)],a[c++]=255&(e<<3|r>>>2),a[c++]=255&(r<<6|n<<1|i>>>4),a[c++]=255&(i<<4|o>>>1)):7===d&&(e=Hn[t.charAt(l++)],r=Hn[t.charAt(l++)],n=Hn[t.charAt(l++)],i=Hn[t.charAt(l++)],o=Hn[t.charAt(l++)],s=Hn[t.charAt(l++)],h=Hn[t.charAt(l++)],a[c++]=255&(e<<3|r>>>2),a[c++]=255&(r<<6|n<<1|i>>>4),a[c++]=255&(i<<4|o>>>1),a[c++]=255&(o<<7|s<<2|h>>>3)),a},Kn=function(t,e){var r="string"!=typeof t;return r&&t.constructor===ArrayBuffer&&(t=new Uint8Array(t)),r?function(t){for(var e,r,n,i,o,s="",h=t.length,u=0,a=5*parseInt(h/5);u<a;)e=t[u++],r=t[u++],n=t[u++],i=t[u++],o=t[u++],s+=qn[e>>>3]+qn[31&(e<<2|r>>>6)]+qn[r>>>1&31]+qn[31&(r<<4|n>>>4)]+qn[31&(n<<1|i>>>7)]+qn[i>>>2&31]+qn[31&(i<<3|o>>>5)]+qn[31&o];var c=h-a;return 1===c?(e=t[u],s+=qn[e>>>3]+qn[e<<2&31]+"======"):2===c?(e=t[u++],r=t[u],s+=qn[e>>>3]+qn[31&(e<<2|r>>>6)]+qn[r>>>1&31]+qn[r<<4&31]+"===="):3===c?(e=t[u++],r=t[u++],n=t[u],s+=qn[e>>>3]+qn[31&(e<<2|r>>>6)]+qn[r>>>1&31]+qn[31&(r<<4|n>>>4)]+qn[n<<1&31]+"==="):4===c&&(e=t[u++],r=t[u++],n=t[u++],i=t[u],s+=qn[e>>>3]+qn[31&(e<<2|r>>>6)]+qn[r>>>1&31]+qn[31&(r<<4|n>>>4)]+qn[31&(n<<1|i>>>7)]+qn[i>>>2&31]+qn[i<<3&31]+"="),s}(t):function(t){var e,r,n,i,o,s,h,u=!1,a="",c=0,f=0,l=t.length;if(""===t)return a;do{for(Yn[0]=Yn[5],Yn[1]=Yn[6],Yn[2]=Yn[7],h=f;c<l&&h<5;++c)(s=t.charCodeAt(c))<128?Yn[h++]=s:s<2048?(Yn[h++]=192|s>>6,Yn[h++]=128|63&s):s<55296||s>=57344?(Yn[h++]=224|s>>12,Yn[h++]=128|s>>6&63,Yn[h++]=128|63&s):(s=65536+((1023&s)<<10|1023&t.charCodeAt(++c)),Yn[h++]=240|s>>18,Yn[h++]=128|s>>12&63,Yn[h++]=128|s>>6&63,Yn[h++]=128|63&s);f=h-5,c===l&&++c,c>l&&h<6&&(u=!0),e=Yn[0],h>4?(r=Yn[1],n=Yn[2],i=Yn[3],o=Yn[4],a+=qn[e>>>3]+qn[31&(e<<2|r>>>6)]+qn[r>>>1&31]+qn[31&(r<<4|n>>>4)]+qn[31&(n<<1|i>>>7)]+qn[i>>>2&31]+qn[31&(i<<3|o>>>5)]+qn[31&o]):1===h?a+=qn[e>>>3]+qn[e<<2&31]+"======":2===h?(r=Yn[1],a+=qn[e>>>3]+qn[31&(e<<2|r>>>6)]+qn[r>>>1&31]+qn[r<<4&31]+"===="):3===h?(r=Yn[1],n=Yn[2],a+=qn[e>>>3]+qn[31&(e<<2|r>>>6)]+qn[r>>>1&31]+qn[31&(r<<4|n>>>4)]+qn[n<<1&31]+"==="):(r=Yn[1],n=Yn[2],i=Yn[3],a+=qn[e>>>3]+qn[31&(e<<2|r>>>6)]+qn[r>>>1&31]+qn[31&(r<<4|n>>>4)]+qn[31&(n<<1|i>>>7)]+qn[i>>>2&31]+qn[i<<3&31]+"=")}while(!u);return a}(t)},Wn=function(t,e){return function(t){for(var e,r,n="",i=t.length,o=0,s=0;o<i;)if((e=t[o++])<=127)n+=String.fromCharCode(e);else{e>191&&e<=223?(r=31&e,s=1):e<=239?(r=15&e,s=2):e<=247?(r=7&e,s=3):Vn(o,n);for(var h=0;h<s;++h)((e=t[o++])<128||e>191)&&Vn(o,n),r<<=6,r+=63&e;r>=55296&&r<=57343&&Vn(o,n),r>1114111&&Vn(o,n),r<=65535?n+=String.fromCharCode(r):(r-=65536,n+=String.fromCharCode(55296+(r>>10)),n+=String.fromCharCode(56320+(1023&r)))}return n}(Jn(t))};var Zn=Object.freeze({__proto__:null,decode:function(t){return Wn(t)},decodeAsBytes:function(t){return Jn(t)},encode:function(t){return Kn(t)},encodeAsBytes:function(t){return Kn(t)}}),Qn="input is invalid type",Xn="object"==typeof window,Gn=Xn?window:{};
/**
* [js-md5]{@link https://github.com/emn178/js-md5}
*
* @namespace md5
* @version 0.8.3
* @author Chen, Yi-Cyuan [emn178@gmail.com]
* @copyright Chen, Yi-Cyuan 2014-2023
* @license MIT
*/Gn.JS_MD5_NO_WINDOW&&(Xn=!1);var ti=!Xn&&"object"==typeof self,ei=!Gn.JS_MD5_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;ei?Gn=global:ti&&(Gn=self);var ri,ni=!Gn.JS_MD5_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,ii="0123456789abcdef".split(""),oi=[128,32768,8388608,-2147483648],si=[0,8,16,24],hi=["hex","array","digest","buffer","arrayBuffer","base64"],ui="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),ai=[];if(ni){var ci=new ArrayBuffer(68);ri=new Uint8Array(ci),ai=new Uint32Array(ci)}var fi=Array.isArray;!Gn.JS_MD5_NO_NODE_JS&&fi||(fi=function(t){return"[object Array]"===Object.prototype.toString.call(t)});var li=ArrayBuffer.isView;!ni||!Gn.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW&&li||(li=function(t){return"object"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});var pi=function(t){var e=typeof t;if("string"===e)return[t,!0];if("object"!==e||null===t)throw new Error(Qn);if(ni&&t.constructor===ArrayBuffer)return[new Uint8Array(t),!1];if(!fi(t)&&!li(t))throw new Error(Qn);return[t,!1]},di=function(t){return function(e){return new wi(!0).update(e)[t]()}},gi=function(t){var e,r=require("crypto"),n=require("buffer").Buffer;e=n.from&&!Gn.JS_MD5_NO_BUFFER_FROM?n.from:function(t){return new n(t)};return function(i){if("string"==typeof i)return r.createHash("md5").update(i,"utf8").digest("hex");if(null==i)throw new Error(Qn);return i.constructor===ArrayBuffer&&(i=new Uint8Array(i)),fi(i)||li(i)||i.constructor===n?r.createHash("md5").update(e(i)).digest("hex"):t(i)}},yi=function(t){return function(e,r){return new mi(e,!0).update(r)[t]()}};function wi(t){if(t)ai[0]=ai[16]=ai[1]=ai[2]=ai[3]=ai[4]=ai[5]=ai[6]=ai[7]=ai[8]=ai[9]=ai[10]=ai[11]=ai[12]=ai[13]=ai[14]=ai[15]=0,this.blocks=ai,this.buffer8=ri;else if(ni){var e=new ArrayBuffer(68);this.buffer8=new Uint8Array(e),this.blocks=new Uint32Array(e)}else this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}function mi(t,e){var r,n=pi(t);if(t=n[0],n[1]){var i,o=[],s=t.length,h=0;for(r=0;r<s;++r)(i=t.charCodeAt(r))<128?o[h++]=i:i<2048?(o[h++]=192|i>>>6,o[h++]=128|63&i):i<55296||i>=57344?(o[h++]=224|i>>>12,o[h++]=128|i>>>6&63,o[h++]=128|63&i):(i=65536+((1023&i)<<10|1023&t.charCodeAt(++r)),o[h++]=240|i>>>18,o[h++]=128|i>>>12&63,o[h++]=128|i>>>6&63,o[h++]=128|63&i);t=o}t.length>64&&(t=new wi(!0).update(t).array());var u=[],a=[];for(r=0;r<64;++r){var c=t[r]||0;u[r]=92^c,a[r]=54^c}wi.call(this,e),this.update(a),this.oKeyPad=u,this.inner=!0,this.sharedMemory=e}wi.prototype.update=function(t){if(this.finalized)throw new Error("finalize already called");var e=pi(t);t=e[0];for(var r,n,i=e[1],o=0,s=t.length,h=this.blocks,u=this.buffer8;o<s;){if(this.hashed&&(this.hashed=!1,h[0]=h[16],h[16]=h[1]=h[2]=h[3]=h[4]=h[5]=h[6]=h[7]=h[8]=h[9]=h[10]=h[11]=h[12]=h[13]=h[14]=h[15]=0),i)if(ni)for(n=this.start;o<s&&n<64;++o)(r=t.charCodeAt(o))<128?u[n++]=r:r<2048?(u[n++]=192|r>>>6,u[n++]=128|63&r):r<55296||r>=57344?(u[n++]=224|r>>>12,u[n++]=128|r>>>6&63,u[n++]=128|63&r):(r=65536+((1023&r)<<10|1023&t.charCodeAt(++o)),u[n++]=240|r>>>18,u[n++]=128|r>>>12&63,u[n++]=128|r>>>6&63,u[n++]=128|63&r);else for(n=this.start;o<s&&n<64;++o)(r=t.charCodeAt(o))<128?h[n>>>2]|=r<<si[3&n++]:r<2048?(h[n>>>2]|=(192|r>>>6)<<si[3&n++],h[n>>>2]|=(128|63&r)<<si[3&n++]):r<55296||r>=57344?(h[n>>>2]|=(224|r>>>12)<<si[3&n++],h[n>>>2]|=(128|r>>>6&63)<<si[3&n++],h[n>>>2]|=(128|63&r)<<si[3&n++]):(r=65536+((1023&r)<<10|1023&t.charCodeAt(++o)),h[n>>>2]|=(240|r>>>18)<<si[3&n++],h[n>>>2]|=(128|r>>>12&63)<<si[3&n++],h[n>>>2]|=(128|r>>>6&63)<<si[3&n++],h[n>>>2]|=(128|63&r)<<si[3&n++]);else if(ni)for(n=this.start;o<s&&n<64;++o)u[n++]=t[o];else for(n=this.start;o<s&&n<64;++o)h[n>>>2]|=t[o]<<si[3&n++];this.lastByteIndex=n,this.bytes+=n-this.start,n>=64?(this.start=n-64,this.hash(),this.hashed=!0):this.start=n}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296|0,this.bytes=this.bytes%4294967296),this},wi.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex;t[e>>>2]|=oi[3&e],e>=56&&(this.hashed||this.hash(),t[0]=t[16],t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.bytes<<3,t[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},wi.prototype.hash=function(){var t,e,r,n,i,o,s=this.blocks;this.first?e=((e=((t=((t=s[0]-680876937)<<7|t>>>25)-271733879|0)^(r=((r=(-271733879^(n=((n=(-1732584194^2004318071&t)+s[1]-117830708)<<12|n>>>20)+t|0)&(-271733879^t))+s[2]-1126478375)<<17|r>>>15)+n|0)&(n^t))+s[3]-1316259209)<<22|e>>>10)+r|0:(t=this.h0,e=this.h1,r=this.h2,e=((e+=((t=((t+=((n=this.h3)^e&(r^n))+s[0]-680876936)<<7|t>>>25)+e|0)^(r=((r+=(e^(n=((n+=(r^t&(e^r))+s[1]-389564586)<<12|n>>>20)+t|0)&(t^e))+s[2]+606105819)<<17|r>>>15)+n|0)&(n^t))+s[3]-1044525330)<<22|e>>>10)+r|0),e=((e+=((t=((t+=(n^e&(r^n))+s[4]-176418897)<<7|t>>>25)+e|0)^(r=((r+=(e^(n=((n+=(r^t&(e^r))+s[5]+1200080426)<<12|n>>>20)+t|0)&(t^e))+s[6]-1473231341)<<17|r>>>15)+n|0)&(n^t))+s[7]-45705983)<<22|e>>>10)+r|0,e=((e+=((t=((t+=(n^e&(r^n))+s[8]+1770035416)<<7|t>>>25)+e|0)^(r=((r+=(e^(n=((n+=(r^t&(e^r))+s[9]-1958414417)<<12|n>>>20)+t|0)&(t^e))+s[10]-42063)<<17|r>>>15)+n|0)&(n^t))+s[11]-1990404162)<<22|e>>>10)+r|0,e=((e+=((t=((t+=(n^e&(r^n))+s[12]+1804603682)<<7|t>>>25)+e|0)^(r=((r+=(e^(n=((n+=(r^t&(e^r))+s[13]-40341101)<<12|n>>>20)+t|0)&(t^e))+s[14]-1502002290)<<17|r>>>15)+n|0)&(n^t))+s[15]+1236535329)<<22|e>>>10)+r|0,e=((e+=((n=((n+=(e^r&((t=((t+=(r^n&(e^r))+s[1]-165796510)<<5|t>>>27)+e|0)^e))+s[6]-1069501632)<<9|n>>>23)+t|0)^t&((r=((r+=(t^e&(n^t))+s[11]+643717713)<<14|r>>>18)+n|0)^n))+s[0]-373897302)<<20|e>>>12)+r|0,e=((e+=((n=((n+=(e^r&((t=((t+=(r^n&(e^r))+s[5]-701558691)<<5|t>>>27)+e|0)^e))+s[10]+38016083)<<9|n>>>23)+t|0)^t&((r=((r+=(t^e&(n^t))+s[15]-660478335)<<14|r>>>18)+n|0)^n))+s[4]-405537848)<<20|e>>>12)+r|0,e=((e+=((n=((n+=(e^r&((t=((t+=(r^n&(e^r))+s[9]+568446438)<<5|t>>>27)+e|0)^e))+s[14]-1019803690)<<9|n>>>23)+t|0)^t&((r=((r+=(t^e&(n^t))+s[3]-187363961)<<14|r>>>18)+n|0)^n))+s[8]+1163531501)<<20|e>>>12)+r|0,e=((e+=((n=((n+=(e^r&((t=((t+=(r^n&(e^r))+s[13]-1444681467)<<5|t>>>27)+e|0)^e))+s[2]-51403784)<<9|n>>>23)+t|0)^t&((r=(