diff --git a/service/api/login.js b/service/api/login.js index 4ea5365d..1c14d63c 100644 --- a/service/api/login.js +++ b/service/api/login.js @@ -22,7 +22,7 @@ const login = { userLoginByPassword(param) { return util.request({ url: '/user/customerService/login', - data: param.data, + query: param.query, load: true, }) }, diff --git a/service/pages/login/login.vue b/service/pages/login/login.vue index d7b69799..be51282e 100644 --- a/service/pages/login/login.vue +++ b/service/pages/login/login.vue @@ -60,7 +60,7 @@ function handleLogin() { data.password = CryptoJS.MD5(data.password).toString() api.login.userLoginByPassword({ - data: data, + query: data, }).then(rs => { if (rs.code == 200) { util.finalLogin(rs) @@ -105,7 +105,7 @@ function handleLogin() { - + @@ -136,10 +136,4 @@ function handleLogin() { } } -.footer { - .notice { - display: flex; - justify-content: center; - } -} \ No newline at end of file diff --git a/service/unpackage/dist/cache/.vite/deps/@tencentcloud_chat.js b/service/unpackage/dist/cache/.vite/deps/@tencentcloud_chat.js index 65056fb6..2ec3ddcc 100644 --- a/service/unpackage/dist/cache/.vite/deps/@tencentcloud_chat.js +++ b/service/unpackage/dist/cache/.vite/deps/@tencentcloud_chat.js @@ -2,9 +2,9 @@ import { __commonJS } from "./chunk-TDUMLE5V.js"; -// ../../../../../桌面/jiuyiUniapp/service/node_modules/@tencentcloud/chat/index.js +// ../../../../document/九亿商城/jy/service/node_modules/@tencentcloud/chat/index.js var require_chat = __commonJS({ - "../../../../../桌面/jiuyiUniapp/service/node_modules/@tencentcloud/chat/index.js"(exports, module) { + "../../../../document/九亿商城/jy/service/node_modules/@tencentcloud/chat/index.js"(exports, module) { !function(e, t) { "object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define(t) : (e = "undefined" != typeof globalThis ? globalThis : e || self).TencentCloudChat = t(); }(exports, function() { diff --git a/service/unpackage/dist/cache/.vite/deps/@tencentcloud_chat_modules_group-module__js.js b/service/unpackage/dist/cache/.vite/deps/@tencentcloud_chat_modules_group-module__js.js deleted file mode 100644 index 2fb54a87..00000000 --- a/service/unpackage/dist/cache/.vite/deps/@tencentcloud_chat_modules_group-module__js.js +++ /dev/null @@ -1,3412 +0,0 @@ -import "./chunk-TDUMLE5V.js"; - -// ../../../../../桌面/jiuyiUniapp/service/node_modules/@tencentcloud/chat/modules/group-module.js -var e = 2; -var t = 4; -var s = 10; -var o = 11; -var r = 12; -var i = 14; -var n = 17; -var a = 20; -var u = 23; -var p = 26; -var l = 27; -var c = 29; -var h = 30; -var g = 34; -var m = class { - constructor(e2 = 0, t2 = 0) { - this.high = e2, this.low = t2; - } - equal(e2) { - return null !== e2 && this.low === e2.low && this.high === e2.high; - } - toString() { - var e2 = Number(this.high).toString(16); - let t2 = Number(this.low).toString(16); - if (t2.length < 8) { - let e3 = 8 - t2.length; - for (; e3; ) - t2 = "0" + t2, e3--; - } - return e2 + t2; - } -}; -var d = { TEST: { CHINA: { DEFAULT: "wss://wss-dev.tim.qq.com" }, OVERSEA: { DEFAULT: "wss://wss-dev.tim.qq.com" }, SINGAPORE: { DEFAULT: "wss://wsssgp-dev.im.qcloud.com" }, KOREA: { DEFAULT: "wss://wsskr-dev.im.qcloud.com" }, GERMANY: { DEFAULT: "wss://wssger-dev.im.qcloud.com" }, IND: { DEFAULT: "wss://wssind-dev.im.qcloud.com" }, JPN: { DEFAULT: "wss://wssjpn-dev.im.qcloud.com" }, USA: { DEFAULT: "wss://wssusa-dev.im.qcloud.com" }, INDONESIA: { DEFAULT: "wss://wssidn-dev.im.qcloud.com" } }, PRODUCTION: { CHINA: { DEFAULT0: "wss://*w4c.my-imcloud.com", DEFAULT: "wss://wss.im.qcloud.com", IPV6: "wss://wssv6.im.qcloud.com", BACKUP: "wss://wss.tim.qq.com", STAT: "https://events.im.qcloud.com", ANYCAST: "wss://162.14.13.203" }, OVERSEA: { DEFAULT0: "wss://*w4c.my-imcloud.com", DEFAULT: "wss://wss.im.qcloud.com", BACKUP: "wss://wss.my-imcloud.com", STAT: "https://api.my-imcloud.com" }, SINGAPORE: { DEFAULT0: "wss://*w4s.my-imcloud.com", DEFAULT: "wss://wsssgp.im.qcloud.com", IPV6: "wss://wsssgpv6.im.qcloud.com", BACKUP: "wss://wsssgp.my-imcloud.com", STAT: "https://apisgp.my-imcloud.com", ANYCAST: "wss://162.14.19.159" }, KOREA: { DEFAULT0: "wss://*w4k.my-imcloud.com", DEFAULT: "wss://wsskr.im.qcloud.com", IPV6: "wss://wsskrv6.im.qcloud.com", BACKUP: "wss://wsskr.my-imcloud.com", STAT: "https://apikr.my-imcloud.com", ANYCAST: "wss://162.14.13.104" }, GERMANY: { DEFAULT0: "wss://*w4g.my-imcloud.com", DEFAULT: "wss://wssger.im.qcloud.com", IPV6: "wss://wssgerv6.im.qcloud.com", BACKUP: "wss://wssger.my-imcloud.com", STAT: "https://apiger.my-imcloud.com", ANYCAST: "wss://162.14.3.17" }, IND: { DEFAULT0: "wss://*w4i.my-imcloud.com", DEFAULT: "wss://wssind.my-imcloud.com", IPV6: "wss://wssindv6.im.qcloud.com", BACKUP: "wss://wssind.im.qcloud.com", STAT: "https://apiind.my-imcloud.com", ANYCAST: "wss://162.14.19.46" }, JPN: { DEFAULT0: "wss://*w4j.my-imcloud.com", DEFAULT: "wss://wssjpn.im.qcloud.com", IPV6: "wss://wssjpnv6.im.qcloud.com", BACKUP: "wss://wssjpn.my-imcloud.com", STAT: "https://apijpn.my-imcloud.com" }, USA: { DEFAULT0: "wss://*w4u.my-imcloud.com", DEFAULT: "wss://wssusa.im.qcloud.com", IPV6: "wss://wssusav6.im.qcloud.com", BACKUP: "wss://wssusa.my-imcloud.com", STAT: "https://apiusa.my-imcloud.com", ANYCAST: "wss://162.14.10.42" }, INDONESIA: { DEFAULT0: "wss://*w4y.my-imcloud.com", DEFAULT: "wss://wssidn.im.qcloud.com", IPV6: "wss://wssidnv6.im.qcloud.com", BACKUP: "wss://wssidn.my-imcloud.com", STAT: "https://apiidn.my-imcloud.com", ANYCAST: "wss://43.129.34.169" } } }; -var _ = { ANDROID: 2, IOS: 3, MAC: 4, WEB: 7, WX_MP: 8, QQ_MP: 9, TT_MP: 10, BAIDU_MP: 11, ALI_MP: 12, IPAD: 13, UNI_NATIVE_APP: 15, DONUT_NATIVE_APP: 19, NS_NATIVE_APP: 20, RN_NATIVE_APP: 21 }; -var f = "CHINA"; -var I = { HOST: { CURRENT: { DEFAULT: "wss://wss.im.qcloud.com", STAT: "https://events.im.qcloud.com" }, setCurrent(e2 = f) { - this.CURRENT = d.PRODUCTION[e2]; -} }, NAME: { OPEN_IM: "openim", OPEN_IM_MSG_EXT: "openim_msg_ext_http_svc", GRP: "group_open_http_svc", GRP_AV: "group_open_avchatroom_http_svc", GRP_COMMUNITY: "million_group_open_http_svc", GRP_ATTR: "group_open_attr_http_svc", FD: "sns", PROFILE: "profile", RECENT_CONTACT: "recentcontact", PIC: "openpic", BIG_GRP_NO_AUTH: "group_open_http_noauth_svc", BIG_GRP_POLLING: "group_open_long_polling_http_svc", BIG_GRP_POLLING_NO_AUTH: "group_open_long_polling_http_noauth_svc", IM_OPEN_STAT: "imopenstat", WEB_IM: "webim", IM_COS_SIGN: "im_cos_sign_svr", CUSTOM_UPLOAD: "im_cos_msg", HEARTBEAT: "heartbeat", IM_OPEN_PUSH: "im_open_push", IM_OPEN_STATUS: "im_open_status", IM_LONG_MSG: "im_long_msg", IM_CONFIG_MANAGER: "im_sdk_config_mgr", STAT_SERVICE: "StatSvc", OVERLOAD_PUSH: "OverLoadPush", IM_MSG_AUDIT_MGR: "im_msg_audit_mgr", TUIROOM_SVR: "tui_room_svr", IM_OPEN_TRANSLATE: "im_open_translate", IM_OPEN_SPEECH: "im_open_speech", MSG_SEARCH: "message_search", GRP_SEARCH: "group_search", GRP_MEMBER_SEARCH: "group_member_search", USER_SEARCH: "user_search", FOLLOW: "follow", OFFLINE_PUSH_REPORT: "offline_push_report", IM_MSG_LOGIC: "im_msg_db_logic" } }; -var M = { SEARCH_GRP_SNS: new m(0, Math.pow(2, 1)).toString(), AV_HISTORY_MSG: new m(0, Math.pow(2, 2)).toString(), GRP_COMMUNITY: new m(0, Math.pow(2, 3)).toString(), MSG_TO_SPECIFIED_GRP_MBR: new m(0, Math.pow(2, 4)).toString(), AV_MBR_LIST: new m(0, Math.pow(2, 6)).toString(), USER_STATUS: new m(0, Math.pow(2, 7)).toString(), CONV_MARK: new m(0, Math.pow(2, 9)).toString(), CONV_GROUP: new m(0, Math.pow(2, 10)).toString(), AV_BAN_MBR: new m(0, Math.pow(2, 11)).toString(), MSG_EXT: new m(0, Math.pow(2, 13)).toString(), GRP_COUNTER: new m(0, Math.pow(2, 15)).toString(), PLUGIN_TRANSLATE: new m(Math.pow(2, 6)).toString(), PLUGIN_VOICE_TO_TEXT: new m(Math.pow(2, 7)).toString(), PLUGIN_CS: new m(Math.pow(2, 8)).toString(), PLUGIN_PUSH: new m(Math.pow(2, 9)).toString(), PLUGIN_BOT: new m(Math.pow(2, 10)).toString(), MSG_REACTION: new m(Math.pow(2, 16)).toString(), FOLLOW: new m(Math.pow(2, 20)).toString() }; -var y = "group_profile"; -var D = "group_member_profile"; -var L = ["Type", "Name", "Introduction", "Notification", "FaceUrl", "Owner_Account", "CreateTime", "InfoSeq", "LastInfoTime", "LastMsgTime", "MemberNum", "MaxMemberNum", "ApplyJoinOption", "NextMsgSeq", "ShutUpAllMember", "InviteJoinOption"]; -var C = ["Role", "JoinTime", "MsgSeq", "MsgFlag"]; -var G = (I.HOST.setCurrent(f), "undefined" != typeof wx && "function" == typeof wx.getSystemInfoSync && Boolean(wx.getSystemInfoSync().fontSizeSetting)); -var b = (G && wx.createGamePortal, "undefined" != typeof qq && "function" == typeof qq.getSystemInfoSync && Boolean(qq.getSystemInfoSync().fontSizeSetting)); -var A = "undefined" != typeof tt && "function" == typeof tt.getSystemInfoSync && Boolean(tt.getSystemInfoSync().fontSizeSetting); -var T = "undefined" != typeof swan && "function" == typeof swan.getSystemInfoSync && Boolean(swan.getSystemInfoSync().fontSizeSetting); -var S = "undefined" != typeof my && "function" == typeof my.getSystemInfoSync && Boolean(my.getSystemInfoSync().fontSizeSetting); -var v = "undefined" != typeof jd && "function" == typeof jd.getSystemInfoSync; -var P = "undefined" != typeof uni && "undefined" == typeof window && "function" == typeof uni.requireNativePlugin; -var R = G && "object" == typeof wx.miniapp; -var $ = G || b || A || T || S || P || v; -var w = "undefined" == typeof window && !$ && "undefined" != typeof global && void 0 !== global.NativeScriptGlobals; -var E = "undefined" != typeof global && (void 0 !== global.nativeModuleProxy || void 0 !== global.ReactNative); -var U = "undefined" != typeof uni ? !$ : "undefined" != typeof window && !$ && !E; -var q = (b ? qq : A ? tt : T ? swan : S ? my : G ? wx : P ? uni : v && jd, U && window && window.navigator && window.navigator.userAgent || ""); -var N = /(micromessenger|webbrowser)/i.test(q); -var k = function() { - let e2 = "WEB"; - return N ? e2 = "WEB" : b ? e2 = "QQ_MP" : A ? e2 = "TT_MP" : T ? e2 = "BAIDU_MP" : S ? e2 = "ALI_MP" : G ? e2 = R ? "DONUT_NATIVE_APP" : "WX_MP" : P ? e2 = "UNI_NATIVE_APP" : w ? e2 = "NS_NATIVE_APP" : E && (e2 = "RN_NATIVE_APP"), _[e2]; -}(); -var O = (!function() { - var e2 = q.match(/OS (\d+)_/i); - e2 && e2[1] && e2[1]; -}(), function() { - var e2, t2, s2 = q.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i); - s2 && (e2 = s2[1] && parseFloat(s2[1]), t2 = s2[2] && parseFloat(s2[2]), e2 && t2 && parseFloat(s2[1] + "." + s2[2])); -}(), /MSIE/.test(q) || -1 < q.indexOf("Trident") && -1 < q.indexOf("rv:11.0")); -var F; -var x; -!function() { - var e2 = /MSIE\s(\d+)\.\d/.exec(q), e2 = e2 && parseFloat(e2[1]); - !e2 && /Trident\/7.0/i.test(q) && /rv:11.0/.test(q); -}(), F = "undefined" != typeof console ? console : "undefined" != typeof global && global.console ? global.console : "undefined" != typeof window && window.console ? window.console : {}; -var V = function() { -}; -var H = ["assert", "clear", "count", "debug", "dir", "dirxml", "error", "group", "groupCollapsed", "groupEnd", "info", "log", "profile", "profileEnd", "table", "time", "timeEnd", "timeStamp", "trace", "warn"]; -var j = H.length; -for (; j--; ) - x = H[j], console[x] || (F[x] = V); -var K = F; -var B = "TIMTextElem"; -var J = "TIMImageElem"; -var W = "TIMSoundElem"; -var z = "TIMFileElem"; -var X = "TIMFaceElem"; -var Y = "TIMVideoFileElem"; -var Q = "TIMLocationElem"; -var Z = "TIMGroupTipElem"; -var ee = "TIMGroupSystemNoticeElem"; -var te = "TIMCustomElem"; -var se = "TIMRelayElem"; -var oe = "High"; -var re = "Normal"; -var ie = "Low"; -var ne = "Lowest"; -var ae = "C2C"; -var ue = "GROUP"; -var pe = "TOPIC"; -var le = "@TIM#SYSTEM"; -var ce = "Private"; -var he = "Public"; -var ge = "ChatRoom"; -var me = "AVChatRoom"; -var de = "Community"; -var _e = "Room"; -var fe = "Live"; -var Ie = "Owner"; -var Me = "Admin"; -var ye = "Member"; -var De = "Custom"; -var Le = 1; -var Ce = 3; -var Ge = 4; -var be = 5; -var Ae = "AcceptAndNotify"; -var Te = "AlreadyInGroup"; -var Se = "__kImSDK_MesssageAtALL__"; -var ve = function() { - return (/* @__PURE__ */ new Date()).getTime() + 0; -}; -var Pe = { JPG: 1, JPEG: 1, GIF: 2, PNG: 3, BMP: 4, UNKNOWN: 255 }; -var Re = { NICK: "Tag_Profile_IM_Nick", GENDER: "Tag_Profile_IM_Gender", BIRTHDAY: "Tag_Profile_IM_BirthDay", LOCATION: "Tag_Profile_IM_Location", SELFSIGNATURE: "Tag_Profile_IM_SelfSignature", ALLOWTYPE: "Tag_Profile_IM_AllowType", LANGUAGE: "Tag_Profile_IM_Language", AVATAR: "Tag_Profile_IM_Image", MESSAGESETTINGS: "Tag_Profile_IM_MsgSettings", ADMINFORBIDTYPE: "Tag_Profile_IM_AdminForbidType", LEVEL: "Tag_Profile_IM_Level", ROLE: "Tag_Profile_IM_Role" }; -var $e = "JoinedSuccess"; -var we = "WaitAdminApproval"; -var Ee = "@TGS#_"; -var Ue = "@TOPIC#_"; -var qe = Object.prototype.hasOwnProperty; -function Ne(e2) { - if (null == e2) - return true; - if ("boolean" == typeof e2) - return false; - if ("number" == typeof e2) - return 0 === e2; - if ("string" == typeof e2) - return 0 === e2.length; - if ("function" == typeof e2) - return 0 === e2.length; - if (Array.isArray(e2)) - return 0 === e2.length; - if (e2 instanceof Error) - return "" === e2.message; - if (He(e2)) { - for (const t2 in e2) - if (qe.call(e2, t2)) - return false; - return true; - } - return !!(ke(e2) || Oe(e2) || Fe(e2)) && 0 === e2.size; -} -var ke = function(e2) { - return "map" === Je(e2); -}; -var Oe = function(e2) { - return "set" === Je(e2); -}; -var Fe = function(e2) { - return "file" === Je(e2); -}; -var xe = function(e2) { - return null !== e2 && ("number" == typeof e2 && !isNaN(+e2) || "object" == typeof e2 && e2.constructor === Number); -}; -var Ve = function(e2) { - return "string" == typeof e2; -}; -var He = function(e2) { - if ("object" != typeof e2 || null === e2) - return false; - e2 = Object.getPrototypeOf(e2); - if (null === e2) - return true; - let t2 = e2; - for (; null !== Object.getPrototypeOf(t2); ) - t2 = Object.getPrototypeOf(t2); - return e2 === t2; -}; -var je = function(e2) { - return "function" == typeof Array.isArray ? Array.isArray(e2) : "array" === Je(e2); -}; -var Ke = function(e2) { - return void 0 === e2; -}; -var Be = function(e2) { - return je(e2) || null !== e2 && "object" == typeof e2; -}; -var Je = function(e2) { - return Object.prototype.toString.call(e2).match(/^\[object (.*)\]$/)[1].toLowerCase(); -}; -var We = (Date.now || (Date.now = function() { - return (/* @__PURE__ */ new Date()).getTime(); -}), function(s2, o2, r2, i2) { - if (!Be(s2) || !Be(o2)) - return 0; - let n2 = 0; - var a2, u2 = Object.keys(o2); - for (let e2 = 0, t2 = u2.length; e2 < t2; e2++) - if (a2 = u2[e2], !(Ke(o2[a2]) || r2 && r2.includes(a2))) - if (Be(s2[a2]) && Be(o2[a2])) - n2 += We(s2[a2], o2[a2], r2, i2); - else { - if (i2 && i2.includes(o2[a2])) - continue; - s2[a2] !== o2[a2] && (s2[a2] = o2[a2], n2 += 1); - } - return n2; -}); -var ze = function(e2) { - e2 = e2 || 99999999; - return Math.round(Math.random() * e2); -}; -var Xe = {}; -var Ye = function(e2) { - if (0 === Object.getOwnPropertyNames(e2).length) - return /* @__PURE__ */ Object.create(null); - const t2 = Array.isArray(e2) ? [] : /* @__PURE__ */ Object.create(null); - var s2; - for (const o2 in e2) - null !== e2[o2] ? void 0 !== e2[o2] ? (s2 = typeof e2[o2], 0 <= ["string", "number", "function", "boolean"].indexOf(s2) ? t2[o2] = e2[o2] : t2[o2] = Ye(e2[o2])) : t2[o2] = void 0 : t2[o2] = null; - return t2; -}; -function Qe(o2, e2) { - if (!je(o2) || !je(e2)) - return false; - let r2 = false; - return e2.forEach(({ key: t2, value: e3 }) => { - const s2 = o2.find((e4) => e4.key === t2); - s2 ? s2.value !== e3 && (s2.value = e3, r2 = true) : (o2.push({ key: t2, value: e3 }), r2 = true); - }), r2; -} -function Ze(e2) { - return Ne(e2) ? [] : e2.filter((e3) => true === e3.isModified); -} -function et(e2) { - if (He(e2) && He(e2.webhookInfo)) { - const t2 = []; - return e2.webhookInfo.disableCloudMessagePreHook && t2.push("ForbidBeforeSendMsgCallback"), e2.webhookInfo.disableCloudMessagePostHook && t2.push("ForbidAfterSendMsgCallback"), 0 !== t2.length ? t2 : void 0; - } -} -function st(e2) { - return Ne(e2) ? [] : e2.filter((e3) => false === e3.isModified); -} -var ot = (e2) => e2 === me; -var rt = ({ type: e2, groupID: t2 }) => e2 === de || ("" + t2).startsWith(Ee) && !("" + t2).includes(Ue); -var it = (e2) => ("" + e2).startsWith(Ee) && ("" + e2).includes(Ue); -function nt(e2) { - return e2.split(Ue)[0]; -} -function at() { - return !O && !$; -} -function ut(e2, t2 = true, s2 = true) { - var o2 = Date.now(); - return t2 ? s2 ? o2 - e2 + " ms" : Math.round((o2 - e2) / 1e3) + " s" : s2 ? o2 - e2 : Math.round((o2 - e2) / 1e3); -} -var pt = 0; -function lt() { - return at() ? "%c Chat %c" : "Chat"; -} -function ct() { - const e2 = function() { - const e3 = /* @__PURE__ */ new Date(); - return e3.setTime(ve()), e3; - }(); - return e2.toLocaleTimeString("en-US", { hour12: false }) + "." + function(e3) { - let t2; - switch (e3.toString().length) { - case 1: - t2 = "00" + e3; - break; - case 2: - t2 = "0" + e3; - break; - default: - t2 = e3; - } - return t2; - }(e2.getMilliseconds()); -} -var ht = { arguments2String(s2) { - let o2 = ""; - if (1 === s2.length) - o2 = s2[0]; - else - for (let e2 = 0, t2 = s2.length; e2 < t2; e2++) { - if (Be(s2[e2])) - try { - o2 += s2[e2] instanceof Error ? JSON.stringify(s2[e2], ["message", "code"]) : JSON.stringify(s2[e2]); - } catch (e3) { - o2 += e3 ? e3.message : ""; - break; - } - else - o2 += s2[e2]; - o2 += " "; - } - return o2; -}, _exec(e2, t2) { - at() ? K[e2](lt(), "background:#0abf5b; padding:1px; border-radius:3px; color: #fff", "background:transparent", ct(), t2) : K[e2](`${lt()} ${ct()} ` + t2); -}, d: function() { - var e2; - pt <= -1 && (e2 = this.arguments2String(arguments), this._exec("debug", e2)); -}, l: function() { - var e2; - pt <= 0 && (e2 = this.arguments2String(arguments), this._exec("log", e2)); -}, log: function() { - var e2; - pt <= 0 && (e2 = this.arguments2String(arguments), this._exec("log", e2)); -}, i: function() { - var e2; - pt <= 1 && (e2 = this.arguments2String(arguments), this._exec("info", e2)); -}, w: function() { - var e2; - pt <= 2 && (e2 = this.arguments2String(arguments), this._exec("warn", e2)); -}, e: function() { - var e2; - pt <= 3 && (e2 = this.arguments2String(arguments), this._exec("error", e2)); -}, setLevel: function(e2) { - e2 < 4 && this._exec("log", "set level from " + pt + " to " + e2), pt = e2; -}, getLevel: function() { - return pt; -} }; -var gt = function(e2) { - return { code: 0, data: e2 || {} }; -}; -var mt = class extends Error { - constructor(e2) { - super(); - var { code: e2, message: t2, data: s2 } = e2; - this.code = e2, t2 ? this.message = t2 : this._getErrMsg && (this.message = this._getErrMsg(this.code)), this.data = s2 || {}; - } -}; -var dt = 2101; -var _t = 2114; -var ft = 2600; -var It = 2602; -var Mt = 2603; -var yt = 2620; -var Dt = 2621; -var Lt = 2623; -var Ct = 2660; -var Gt = 2661; -var bt = 2662; -var At = 2681; -var Tt = 2683; -var St = 2684; -var vt = 2685; -var Pt = 2686; -var Rt = 2687; -var $t = 2805; -var wt = 2903; -var Et = 3122; -var Ut = 3123; -var qt = "onMessageReceived"; -var Nt = "onMessageModified"; -var kt = "onMessageRevoked"; -var Ot = "onGroupListUpdated"; -var Ft = "groupAttributesUpdated"; -var xt = "onGroupCounterUpdated"; -var Vt = "onTopicUpdated"; -var Ht = "error"; -var jt = null; -var Kt = function(e2) { - return Promise.resolve(gt(e2)); -}; -var Bt = function(e2, t2 = false) { - if (e2 instanceof mt) - return t2 && null !== jt && jt.emit(Ht, e2), Promise.reject(e2); - if (e2 instanceof Error) { - const e3 = new mt({ code: wt }); - return t2 && null !== jt && jt.emit(Ht, e3), Promise.reject(e3); - } - if (Ke(e2) || Ke(e2.code)) - return Promise.reject(new mt({ code: wt })); - e2 = new mt(e2); - return t2 && null !== jt && jt.emit(Ht, e2), Promise.reject(e2); -}; -var Jt = { A2KEY_AND_TINYID_UPDATED: "_inner1", CLOUD_CONFIG: "_inner2", PROFILE_UPDATED: "_inner3", CONV_SYNC_COMPLETED: "_inner4", C2C_UNREAD_HANDLE_COMPLETED: "_inner5" }; -var Wt = "messageReceivedGroup"; -var zt = "messageReceivedGroupAVPush"; -var Xt = "messageReceivedGroupAVPull"; -var Yt = { info: 4, warning: 5, error: 6 }; -var Qt = { wifi: 1, "2g": 2, "3g": 3, "4g": 4, "5g": 5, unknown: 6, none: 7, online: 8 }; -var Zt = { login: 4, plugin_search: 16, plugin_translate: 16, plugin_voice_to_text: 16, plugin_cs: 16, plugin_push: 16, plugin_bot: 16, plugin_emoji_reaction: 16, tui_key_features: 16 }; -var es = class _es { - constructor(e2) { - this._n = "SSOLogData", this.eventType = Zt[e2] || 0, this.timestamp = 0, this.networkType = 8, this.code = 0, this.message = "", this.moreMessage = "", this.extension = e2, this.costTime = 0, this.duplicate = false, this.level = 4, this.uiPlatform = void 0, this._sentFlag = false, this._startts = ve(); - } - static bindEventStatModule(e2) { - _es.prototype._eventStatModule = e2; - } - static bindNetMonitorModule(e2) { - _es.prototype._netMonitorModule = e2; - } - updateTimeStamp() { - this.timestamp = ve(); - } - start(e2) { - return this._startts = e2, this; - } - end(e2 = false) { - if (!this._sentFlag) { - if (this._netMonitorModule) { - const e3 = this._netMonitorModule.getNetworkType(); - this.setNetworkType(e3); - } - var t2 = ve(); - 0 === this.costTime && (this.costTime = t2 - this._startts), this.setMoreMessage(`startts:${this._startts} endts:` + t2), e2 ? (this._sentFlag = true, this._eventStatModule && this._eventStatModule.pushIn(this)) : setTimeout(() => { - this._sentFlag = true, this._eventStatModule && this._eventStatModule.pushIn(this); - }, 0); - } - } - setError(e2) { - if (!(e2 instanceof Error)) - return ht.w(this._n + ".setError value not instanceof Error, please check!"), this; - if (this._sentFlag) - return this; - let t2 = true; - if (t2 = this._netMonitorModule ? this._netMonitorModule.isOnline() : t2) - e2.code && this.setCode(e2.code), e2.message && this.setMoreMessage(e2.message); - else { - const e3 = $t; - this.setCode(e3); - } - return this.setLevel("error"), this; - } - setCode(e2) { - return Ke(e2) || this._sentFlag || ("ECONNABORTED" === e2 && (this.code = 103), xe(e2) ? this.code = e2 : ht.w(this._n + ".setCode value not a number, please check!", e2, typeof e2)), this; - } - setMessage(e2) { - return Ke(e2) || this._sentFlag || (xe(e2) && (this.message = e2.toString()), Ve(e2) && (this.message = e2)), this; - } - setCostTime(e2) { - return this.costTime = e2, this; - } - setLevel(e2) { - return Ke(e2) || this._sentFlag || (this.level = Yt[e2]), this; - } - setMoreMessage(e2) { - return Ne(this.moreMessage) ? this.moreMessage = "" + e2 : this.moreMessage += " " + e2, this; - } - setNetworkType(e2) { - return Ke(e2) ? ht.w(this._n + ".setNetworkType value is undefined, please check!") : (e2 = Qt[e2.toLowerCase()], Ke(e2) || (this.networkType = e2)), this; - } - getStartTs() { - return this._startts; - } - setUIPlatform(e2) { - return this.uiPlatform = e2, this; - } - setExtension(e2) { - return this.extension = e2, this; - } - setEventType(e2) { - return this.eventType = e2, this; - } -}; -var ts = "send_group_msg"; -var ss = "get_joined_group_list"; -var os = "get_group_self_member_info"; -var rs = "create_group"; -var is = "destroy_group"; -var ns = "modify_group_base_info"; -var as = "apply_join_group"; -var us = "apply_join_group_noauth"; -var ps = "quit_group"; -var ls = "get_group_public_info"; -var cs = "change_group_owner"; -var hs = "handle_apply_join_group"; -var gs = "handle_invite_join_permission_group"; -var ms = "handle_invite_join_group"; -var ds = "group_msg_recall"; -var _s = "msg_read_report"; -var fs = "group_msg_get"; -var Is = "get_group_msg_receipt"; -var Ms = "group_msg_receipt"; -var ys = "get_group_msg_receipt_detail"; -var Ds = "get_pendency"; -var Ls = "deletemsg"; -var Cs = "get_msg"; -var Gs = "get_msg_noauth"; -var bs = "get_online_member_num"; -var As = "delete_group_ramble_msg_by_seq"; -var Ts = "modify_group_msg"; -var Ss = "set_group_attr"; -var vs = "modify_group_attr"; -var Ps = "delete_group_attr"; -var Rs = "clear_group_attr"; -var $s = "get_group_attr"; -var ws = "group_set_key_values"; -var Es = "group_get_key_values"; -var Us = "batch_get_group_notify"; -var qs = "update_group_counter"; -var Ns = "get_group_counter"; -var ks = "get_group_member_info"; -var Os = "get_members"; -var Fs = "get_specified_group_member_info"; -var xs = "add_group_member"; -var Vs = "delete_group_member"; -var Hs = "ban_group_member"; -var js = "modify_group_member_info"; -var Ks = "modify_user_info"; -var Bs = "unSend"; -var Js = "success"; -var Ws = "notStart"; -var zs = "resolved"; -var Xs = "rejected"; -var Ys = class { - constructor(e2) { - this.type = B, this.content = { text: e2.text || "" }; - } - setText(e2) { - this.content.text = e2; - } - sendable() { - return 0 !== this.content.text.length; - } -}; -function Qs(t2, s2, o2, r2 = []) { - if (t2) { - let e2 = t2; - return s2 && (t2.startsWith("http://") ? e2 = t2.replace(/^http:\/\/[^/]+/, s2) : t2.startsWith("https://") && (e2 = t2.replace(/^https:\/\/[^/]+/, s2))), e2 = o2 && -1 === e2.indexOf("authKey=") && to(e2, r2) ? -1 < e2.indexOf("?") ? e2 + "&authKey=" + o2 : e2 + "?authKey=" + o2 : e2; - } -} -function Zs(e2, t2, s2 = []) { - if (e2 === Y) - to((t2[0].content || t2[0].payload).snapshotUrl, s2) && (t2[0].content ? (t2[0].content.snapshotUrl = eo(t2[0].content.snapshotUrl), t2[0].content.thumbUrl = eo(t2[0].content.thumbUrl)) : (t2[0].payload.snapshotUrl = eo(t2[0].payload.snapshotUrl), t2[0].payload.thumbUrl = eo(t2[0].payload.thumbUrl))); - else if (e2 === z) - to((t2[0].content || t2[0].payload).fileUrl, s2) && (t2[0].content ? t2[0].content.fileUrl = eo(t2[0].content.fileUrl) : t2[0].payload.fileUrl = eo(t2[0].payload.fileUrl)); - else if (e2 === se) { - const { downloadKey: e3 = "", messageList: s3 = [] } = t2[0].content || t2[0].payload; - Ne(e3) && s3.forEach((e4) => { - Zs(e4.messageBody[0].type, e4.messageBody); - }); - } - return t2; -} -function eo(e2) { - if (!e2) - return e2; - if (-1 === e2.indexOf("authKey=")) - return e2; - const t2 = e2.split("?"), s2 = t2[1].split("&"); - let o2 = 0; - for (let e3 = 0; e3 < s2.length; e3++) - if (-1 < s2[e3].indexOf("authKey=")) { - o2 = e3; - break; - } - return s2.splice(o2, 1), 0 < s2.length ? t2[0] + "?" + s2.join("&") : t2[0]; -} -function to(e2, t2) { - let s2 = false; - if (e2) { - const o2 = e2.match(/:\/\/([0-9]?\.)?(.[^/:]+)/), r2 = o2 && o2[2] || ""; - if (r2.includes("rich-dev")) - return true; - for (let e3 = 0; e3 < t2.length; e3++) - if (r2.endsWith(t2[e3])) { - s2 = true; - break; - } - } - return s2; -} -var so = class { - constructor(e2, t2, s2, o2) { - this._imageMemoryURL = "", this._fileDownloadProxy = t2, this._authKey = s2, this._fileDNList = o2, $ || E ? this.createImageDataASURL(e2.file) : this.createImageDataASURLInWeb(e2.file), this._initImageInfoModel(), this.type = J, this._percent = 0, this.content = { imageFormat: e2.imageFormat || Pe.UNKNOWN, uuid: e2.uuid, imageInfoArray: [] }, this.initImageInfoArray(e2.imageInfoArray), this._autoFixUrl(); - } - _initImageInfoModel() { - const t2 = this; - this._ImageInfoModel = function(e2) { - this.instanceID = ze(9999999), this.sizeType = e2.type || 0, this.type = 0, this.size = e2.size || 0, this.width = e2.width || 0, this.height = e2.height || 0, this.imageUrl = e2.imageUrl || e2.url || "", this.url = Qs(e2.url || t2._imageMemoryURL, t2._fileDownloadProxy, t2._authKey, t2._fileDNList); - }, this._ImageInfoModel.prototype = { setSizeType(e2) { - this.sizeType = e2; - }, setType(e2) { - this.type = e2; - }, setImageUrl(e2) { - e2 && (this.imageUrl = e2); - }, getImageUrl() { - return this.imageUrl; - } }; - } - initImageInfoArray(e2) { - let t2 = 0, s2 = null, o2; - for (; t2 <= 2; ) - o2 = Ke(e2) || Ke(e2[t2]) ? { type: 0, size: 0, width: 0, height: 0, url: "" } : e2[t2], (s2 = new this._ImageInfoModel(o2)).setSizeType(t2 + 1), s2.setType(t2), this.addImageInfo(s2), t2++; - this.updateAccessSideImageInfoArray(); - } - updateImageInfoArray(t2) { - var s2 = this.content.imageInfoArray.length; - let o2; - for (let e2 = 0; e2 < s2; e2++) - o2 = this.content.imageInfoArray[e2], t2[e2].size && (o2.size = t2[e2].size), t2[e2].url && o2.setImageUrl(t2[e2].url), t2[e2].width && (o2.width = t2[e2].width), t2[e2].height && (o2.height = t2[e2].height); - } - _autoFixUrl() { - var t2 = this.content.imageInfoArray.length; - let s2 = "", o2 = ""; - const r2 = ["http", "https"]; - let i2 = null; - for (let e2 = 0; e2 < t2; e2++) - this.content.imageInfoArray[e2].url && ("" !== (i2 = this.content.imageInfoArray[e2]).imageUrl && (o2 = i2.imageUrl.slice(0, i2.imageUrl.indexOf("://") + 1), s2 = i2.imageUrl.slice(i2.imageUrl.indexOf("://") + 1), r2.indexOf(o2) < 0 && (o2 = "https:"), this.content.imageInfoArray[e2].setImageUrl([o2, s2].join("")))); - } - updatePercent(e2) { - this._percent = e2, 1 < this._percent && (this._percent = 1); - } - updateImageFormat(e2) { - this.content.imageFormat = Pe[e2.toUpperCase()] || Pe.UNKNOWN; - } - createImageDataASURLInWeb(e2) { - void 0 !== e2 && 0 < e2.files.length && (this._imageMemoryURL = window.URL.createObjectURL(e2.files[0])); - } - createImageDataASURL(e2) { - e2 && e2.url && (this._imageMemoryURL = e2.url); - } - replaceImageInfo(e2, t2) { - this.content.imageInfoArray[t2] instanceof this._ImageInfoModel || (this.content.imageInfoArray[t2] = e2); - } - addImageInfo(e2) { - 3 <= this.content.imageInfoArray.length || this.content.imageInfoArray.push(e2); - } - updateAccessSideImageInfoArray() { - var e2 = this.content.imageInfoArray, { width: t2 = 0, height: s2 = 0 } = e2[0]; - if (0 !== t2 && 0 !== s2) { - var o2 = e2, r2 = o2[2]; - o2[2] = o2[1], o2[1] = r2; - for (let e3 = 0; e3 < o2.length; e3++) - o2[e3].setType(e3); - Object.assign(e2[2], function(e3) { - const { originUrl: t3, originWidth: s3, originHeight: o3, min: r3 = 198 } = e3, i2 = parseInt(s3), n2 = parseInt(o3), a2 = { url: void 0, width: 0, height: 0 }; - if ((i2 <= n2 ? i2 : n2) <= r3) - a2.url = t3, a2.width = i2, a2.height = n2; - else { - n2 <= i2 ? (a2.width = Math.ceil(i2 * r3 / n2), a2.height = r3) : (a2.width = r3, a2.height = Math.ceil(n2 * r3 / i2)); - const e4 = t3 && -1 < t3.indexOf("?") ? t3 + "&" : t3 + "?"; - a2.url = 198 === r3 ? e4 + "imageView2/3/w/198/h/198" : e4 + "imageView2/3/w/720/h/720"; - } - if (Ke(t3)) { - const { url: e4, ...t4 } = a2; - return t4; - } - return a2; - }({ originWidth: t2, originHeight: s2, min: 720 })); - } - } - sendable() { - return 0 !== this.content.imageInfoArray.length && "" !== this.content.imageInfoArray[0].imageUrl && 0 !== this.content.imageInfoArray[0].size; - } -}; -var oo = class { - constructor(e2) { - this.type = X, this.content = e2 || null; - } - sendable() { - return null !== this.content; - } -}; -var ro = class { - constructor(e2, t2, s2, o2) { - this.type = W, this._percent = 0, this.content = { downloadFlag: 2, second: e2.second, size: e2.size, url: Qs(e2.url, t2, s2, o2), remoteAudioUrl: e2.url || "", uuid: e2.uuid }; - } - updatePercent(e2) { - this._percent = e2, 1 < this._percent && (this._percent = 1); - } - updateAudioUrl(e2) { - this.content.remoteAudioUrl = e2; - } - sendable() { - return "" !== this.content.remoteAudioUrl; - } -}; -var io = { from: true, groupID: true, groupName: true, to: true }; -var no = class { - constructor(e2) { - this.type = Z, this.content = {}, this._initContent(e2); - } - _initContent(t2) { - Object.keys(t2).forEach((e2) => { - switch (e2) { - case "remarkInfo": - break; - case "groupProfile": - this.content.groupProfile = {}, this._initGroupProfile(t2[e2]); - break; - case "operatorInfo": - this.content.operatorInfo = {}, this._initOperatorInfo(t2[e2]); - break; - case "memberInfoList": - case "msgMemberInfo": - this._updateMemberList(t2[e2]); - break; - case "memberExtraInfo": - case "onlineMemberInfo": - break; - case "memberNum": - this.content[e2] = t2[e2], this.content.memberCount = t2[e2]; - break; - case "newGroupProfile": - this.content.newGroupProfile = {}, this._initNewGroupProfile(t2[e2]); - break; - default: - this.content[e2] = t2[e2]; - } - }), this.content.userIDList || (this.content.userIDList = [this.content.operatorID]); - } - _initGroupProfile(t2) { - var s2 = Object.keys(t2); - for (let e2 = 0; e2 < s2.length; e2++) { - var o2 = s2[e2]; - io[o2] && (this.content.groupProfile[o2] = t2[o2]); - } - } - _initOperatorInfo(t2) { - var s2 = Object.keys(t2); - for (let e2 = 0; e2 < s2.length; e2++) { - var o2 = s2[e2]; - this.content.operatorInfo[o2] = t2[o2]; - } - } - _updateMemberList(e2) { - Ne(this.content.memberList) ? this.content.memberList = e2 : this.content.memberList.forEach((t2) => { - e2.forEach((e3) => { - t2.userID === e3.userID && Object.assign(t2, e3); - }); - }); - } - _initNewGroupProfile(t2) { - var s2 = Object.keys(t2); - for (let e2 = 0; e2 < s2.length; e2++) { - var o2 = s2[e2]; - this.content.newGroupProfile[o2] = "muteAllMembers" !== o2 ? t2[o2] : 1 === t2[o2]; - } - } -}; -var ao = { from: true, groupID: true, groupName: true, to: true, groupType: true }; -var uo = class { - constructor(e2) { - this.type = ee, this.content = {}, this._initContent(e2); - } - _initContent(t2) { - Object.keys(t2).forEach((e2) => { - switch (e2) { - case "memberInfoList": - break; - case "remarkInfo": - this.content.handleMessage = t2[e2]; - break; - case "groupProfile": - this.content.groupProfile = {}, this._initGroupProfile(t2[e2]); - break; - default: - this.content[e2] = t2[e2]; - } - }); - } - _initGroupProfile(t2) { - var s2 = Object.keys(t2); - for (let e2 = 0; e2 < s2.length; e2++) { - var o2 = s2[e2]; - ao[o2] && ("groupName" === o2 ? this.content.groupProfile.name = t2[o2] : this.content.groupProfile[o2] = t2[o2]); - } - } -}; -var po = class { - constructor(e2, t2, s2, o2) { - this.type = z, this._percent = 0; - var r2 = this._getFileInfo(e2); - this.content = { downloadFlag: 2, fileUrl: Qs(e2.url || e2.fileUrl, t2, s2, o2) || "", uuid: e2.uuid, fileName: r2.name || "", fileSize: r2.size || 0 }; - } - _getFileInfo(e2) { - if (!Ke(e2.fileName) && !Ke(e2.fileSize)) - return { size: e2.fileSize, name: e2.fileName }; - const t2 = e2.file.files[0]; - if (P) { - if (t2.path && -1 !== t2.path.indexOf(".")) { - const e3 = t2.path.slice(t2.path.lastIndexOf(".") + 1).toLowerCase(); - t2.type = e3, t2.name || (t2.name = ze(999999) + "." + e3); - } - t2.name || (t2.type = "", t2.name = t2.path.slice(t2.path.lastIndexOf("/") + 1).toLowerCase()), t2.suffix && (t2.type = t2.suffix), t2.url || (t2.url = t2.path); - } - return { size: t2.size, name: t2.name }; - } - updatePercent(e2) { - this._percent = e2, 1 < this._percent && (this._percent = 1); - } - updateFileUrl(e2) { - this.content.fileUrl = e2; - } - sendable() { - return "" !== this.content.fileUrl && "" !== this.content.fileName && 0 !== this.content.fileSize; - } -}; -var lo = class { - constructor(e2) { - this.type = te, this.content = { data: e2.data || "", description: e2.description || "", extension: e2.extension || "" }; - } - setData(e2) { - return this.content.data = e2, this; - } - setDescription(e2) { - return this.content.description = e2, this; - } - setExtension(e2) { - return this.content.extension = e2, this; - } - sendable() { - return 0 !== this.content.data.length || 0 !== this.content.description.length || 0 !== this.content.extension.length; - } -}; -var co = class { - constructor(e2, t2, s2, o2) { - this.type = Y, this._percent = 0, this.content = { remoteVideoUrl: e2.remoteVideoUrl || e2.videoUrl || "", videoFormat: e2.videoFormat, videoSecond: parseInt(e2.videoSecond, 10), videoSize: e2.videoSize, videoUrl: Qs(e2.videoUrl, t2, s2, o2), videoDownloadFlag: 2, videoUUID: e2.videoUUID, thumbUUID: e2.thumbUUID, thumbFormat: e2.thumbFormat, thumbWidth: e2.thumbWidth, snapshotWidth: e2.thumbWidth, thumbHeight: e2.thumbHeight, snapshotHeight: e2.thumbHeight, thumbSize: e2.thumbSize, snapshotSize: e2.thumbSize, thumbDownloadFlag: 2, thumbUrl: Qs(e2.thumbUrl, t2, s2, o2), snapshotUrl: Qs(e2.thumbUrl, t2, s2, o2) }; - } - updatePercent(e2) { - this._percent = e2, 1 < this._percent && (this._percent = 1); - } - updateVideoUrl(e2) { - e2 && (this.content.remoteVideoUrl = e2); - } - updateSnapshotInfo(e2) { - var { snapshotUrl: e2, snapshotWidth: t2, snapshotHeight: s2 } = e2; - Ne(e2) || (this.content.thumbUrl = this.content.snapshotUrl = e2), Ne(t2) || (this.content.thumbWidth = this.content.snapshotWidth = Number(t2)), Ne(s2) || (this.content.thumbHeight = this.content.snapshotHeight = Number(s2)); - } - sendable() { - return "" !== this.content.remoteVideoUrl; - } -}; -var ho = class { - constructor(e2) { - this.type = Q; - var { description: e2, longitude: t2, latitude: s2 } = e2; - this.content = { description: e2, longitude: t2, latitude: s2 }; - } - sendable() { - return true; - } -}; -var go = class { - constructor(e2, t2, s2, o2) { - var r2, i2; - this.from = e2.from, this.messageSender = e2.from, this.time = e2.time, this.messageSequence = e2.sequence, this.clientSequence = e2.clientSequence || e2.sequence, this.messageRandom = e2.random, this.cloudCustomData = e2.cloudCustomData || "", this.clientTime = e2.clientTime || void 0, e2.ID ? (this.ID = e2.ID || "", this.nick = e2.nick || "", this.avatar = e2.avatar || "", e2.messageBody ? this.messageBody = JSON.parse(JSON.stringify(e2.messageBody)) : this.messageBody = [{ type: e2.type, payload: e2.payload }], e2.conversationType ? e2.conversationType.startsWith(ae) ? this.receiverUserID = e2.to : e2.conversationType.startsWith(ue) && (this.receiverGroupID = e2.to) : e2.receiverGroupID ? this.receiverGroupID = e2.receiverGroupID : e2.receiverUserID && (this.receiverUserID = e2.receiverUserID), this.messageReceiver = e2.to || e2.messageReceiver) : (this.nick = e2.nick || "", this.avatar = e2.avatar || "", this.messageBody = [], r2 = e2.elements[0].type, i2 = e2.elements[0].content, this._patchRichMediaPayload(r2, i2), this._updateRichMediaDownloadUrl(r2, i2, t2, s2, o2), r2 === se ? this.messageBody.push({ type: r2, payload: new mo(i2, t2, s2, o2).content }) : this.messageBody.push({ type: r2, payload: i2 }), e2.groupID && (this.receiverGroupID = e2.groupID, this.messageReceiver = e2.groupID), e2.to && (this.receiverUserID = e2.to, this.messageReceiver = e2.to), this.ID = `${e2.tinyID}-${e2.clientTime}-` + e2.random); - } - _patchRichMediaPayload(e2, t2) { - e2 === J ? t2.imageInfoArray.forEach((e3) => { - !e3.imageUrl && e3.url && (e3.imageUrl = e3.url, e3.sizeType = e3.type, 1 === e3.type ? e3.type = 0 : 3 === e3.type && (e3.type = 1)); - }) : e2 === Y ? !t2.remoteVideoUrl && t2.videoUrl && (t2.remoteVideoUrl = t2.videoUrl) : e2 === W ? !t2.remoteAudioUrl && t2.url && (t2.remoteAudioUrl = t2.url) : e2 === z && !t2.fileUrl && t2.url && (t2.fileUrl = t2.url, t2.url = void 0); - } - _updateRichMediaDownloadUrl(e2, t2, s2, o2, r2) { - (s2 || o2) && (e2 === J ? t2.imageInfoArray.forEach((e3) => { - e3.url = Qs(e3.url, s2, o2, r2); - }) : e2 === Y ? (t2.videoUrl = Qs(t2.videoUrl, s2, o2, r2), t2.snapshotUrl = Qs(t2.thumbUrl, s2, o2, r2), t2.snapshotHeight = t2.thumbHeight, t2.snapshotWidth = t2.thumbWidth) : e2 === W ? t2.url = Qs(t2.url, s2, o2, r2) : e2 === z && (t2.fileUrl = Qs(t2.fileUrl, s2, o2, r2))); - } -}; -var mo = class { - constructor(e2, t2, s2, o2) { - if (this.type = se, this.content = { downloadKey: "", pbDownloadKey: "", messageList: [], title: "", abstractList: [], compatibleText: "", version: 0, layersOverLimit: false }, e2.downloadKey) { - const { downloadKey: t3, pbDownloadKey: s3, title: o3, abstractList: r2, compatibleText: i2, version: n2 } = e2; - this.content.downloadKey = t3, this.content.pbDownloadKey = s3, this.content.title = o3, this.content.abstractList = r2, this.content.compatibleText = i2, this.content.version = n2 || 0; - } else if (Ne(e2.messageList)) - 1 === e2.layersOverLimit && (this.content.layersOverLimit = true); - else { - const { messageList: a2, title: u2, abstractList: h2, compatibleText: l2, version: g2 } = e2, p2 = []; - a2.forEach((e3) => { - Ne(e3) || (e3 = new go(e3, t2, s2, o2), p2.push(e3)); - }), this.content.messageList = p2, this.content.title = u2, this.content.abstractList = h2, this.content.compatibleText = l2, this.content.version = g2 || 0; - } - } - sendable() { - return !Ne(this.content.messageList) || !Ne(this.content.downloadKey); - } -}; -var _o = { 1: oe, 2: re, 3: ie, 4: ne }; -var fo = class { - constructor(e2) { - this.ID = "", this.conversationID = e2.conversationID || null, this.conversationType = e2.conversationType || ae, this.conversationSubType = e2.conversationSubType, this.time = e2.time || Math.ceil(Date.now() / 1e3), this.sequence = e2.sequence || 0, this.clientSequence = e2.clientSequence || e2.sequence || 0, this.random = e2.random || 0 === e2.random ? e2.random : ze(), this.priority = this._computePriority(e2.priority), this.nick = e2.nick || "", this.avatar = e2.avatar || "", this.isPeerRead = false, this.nameCard = "", this.hasRiskContent = function(e3) { - let t2 = e3 && 1 < e3 ? true : false; - return t2; - }(e2.checkResult), this._elements = [], this.isPlaceMessage = e2.isPlaceMessage || 0, this.isRevoked = 2 === e2.isPlaceMessage || 8 === e2.msgFlagBits, this.from = e2.from || null, this.to = e2.to || null, this.flow = "", this.isSystemMessage = e2.isSystemMessage || false, this.protocol = e2.protocol || "JSON", this.isResend = false, this.isRead = false, this.status = e2.status || Js, this._onlineOnlyFlag = false, this._groupAtInfoList = [], this._relayFlag = false, this.atUserList = [], this.cloudCustomData = e2.cloudCustomData || "", this.isDeleted = false, this.isModified = !!e2.messageVersion, this._isExcludedFromUnreadCount = !(!e2.messageControlInfo || 1 !== e2.messageControlInfo.excludedFromUnreadCount), this._isExcludedFromLastMessage = !(!e2.messageControlInfo || 1 !== e2.messageControlInfo.excludedFromLastMessage), this.clientTime = e2.clientTime || Math.floor(ve() / 1e3) || 0, this.senderTinyID = e2.senderTinyID || e2.tinyID || "", this.readReceiptInfo = e2.readReceiptInfo || { readCount: void 0, unreadCount: void 0, isPeerRead: void 0, timestamp: 0 }, this.needReadReceipt = true === e2.needReadReceipt || 1 === e2.needReadReceipt, this.version = e2.messageVersion || 0, this.isBroadcastMessage = e2.isBroadcastMessage || false, this._receiverList = e2.receiverList || void 0, this.isSupportExtension = true === e2.isSupportExtension || 1 === e2.isSupportExtension, this._cmConfigID = e2.customModerationConfigurationID, this.revoker = e2.revokerInfo && e2.revokerInfo.revoker || "", this.revokerInfo = e2.revokerInfo || { userID: "", nick: "", avatar: "" }, this.revokeReason = e2.revokeReason || "", this.reInitialize(e2.currentUser), this.extractGroupInfo(e2.groupProfile || null), this.handleGroupAtInfo(e2), this.initC2CReadReceiptInfo(e2); - } - get elements() { - return this._elements; - } - getElements() { - return this._elements; - } - extractGroupInfo(e2) { - null !== e2 && (Ve(e2.nick) && (this.nick = e2.nick), Ve(e2.avatar) && (this.avatar = e2.avatar), e2 = e2["messageFromAccountExtraInformation"], He(e2) && Ve(e2.nameCard) && (this.nameCard = e2.nameCard)); - } - handleGroupAtInfo(e2) { - e2.payload && e2.payload.atUserList && e2.payload.atUserList.forEach((e3) => { - e3 !== Se ? (this._groupAtInfoList.push({ groupAtAllFlag: 0, groupAtUserID: e3 }), this.atUserList.push(e3)) : (this._groupAtInfoList.push({ groupAtAllFlag: 1 }), this.atUserList.push(Se)); - }), je(e2.groupAtInfo) && e2.groupAtInfo.forEach((e3) => { - 0 === e3.groupAtAllFlag ? this.atUserList.push(e3.groupAtUserID) : 1 === e3.groupAtAllFlag && this.atUserList.push(Se); - }); - } - getGroupAtInfoList() { - return this._groupAtInfoList; - } - _initProxy() { - this._elements[0] && (this.payload = this._elements[0].content, this.type = this._elements[0].type); - } - reInitialize(e2) { - e2 && (this.status = this.from ? Js : Bs, this.from || (this.from = e2)), this._initFlow(e2), this._initSequence(e2), this._concatConversationID(e2), this.generateMessageID(); - } - isSendable() { - return 0 !== this._elements.length && (true === this._relayFlag || "function" == typeof this._elements[0].sendable && this._elements[0].sendable()); - } - _initTo(e2) { - this.conversationType === ue && (this.to = e2.groupID); - } - _initSequence(e2) { - 0 === this.clientSequence && e2 && (this.clientSequence = function(o2) { - if (!o2) - return false; - if (void 0 === Xe[o2]) { - const r2 = /* @__PURE__ */ new Date(); - let e3 = ("3" + r2.getHours()).slice(-2), t2 = ("0" + r2.getMinutes()).slice(-2), s2 = ("0" + r2.getSeconds()).slice(-2); - Xe[o2] = parseInt([e3, t2, s2, "0001"].join("")), e3 = null, t2 = null, s2 = null, ht.l("autoIncrementIndex start index:" + Xe[o2]); - } - return Xe[o2]++; - }(e2)), 0 === this.sequence && this.conversationType === ae && (this.sequence = this.clientSequence); - } - generateMessageID() { - this.from === le && (this.senderTinyID = "144115198244471703"), this.ID = `${this.senderTinyID}-${this.clientTime}-` + this.random; - } - _initFlow(e2) { - "" !== e2 && (e2 === this.from ? (this.flow = "out", this.isRead = true) : this.flow = "in"); - } - _concatConversationID(e2) { - var t2 = this["to"], s2 = this.conversationType; - s2 !== le ? (e2 = s2 === ae ? e2 === this.from ? t2 : this.from : this.to, this.conversationID = e2 ? "" + s2 + e2 : null) : this.conversationID = le; - } - isElement(e2) { - return e2 instanceof Ys || e2 instanceof so || e2 instanceof oo || e2 instanceof ro || e2 instanceof po || e2 instanceof co || e2 instanceof no || e2 instanceof uo || e2 instanceof lo || e2 instanceof ho || e2 instanceof mo; - } - setElement(t2, s2, o2, r2) { - if (this.isElement(t2)) - return this._elements = [t2], void this._initProxy(); - var i2 = (e2) => { - if (e2.type && e2.content) - switch (e2.type) { - case B: - this.setTextElement(e2.content); - break; - case J: - this.setImageElement(e2.content, s2, o2, r2); - break; - case W: - this.setAudioElement(e2.content, s2, o2, r2); - break; - case z: - this.setFileElement(e2.content, s2, o2, r2); - break; - case Y: - this.setVideoElement(e2.content, s2, o2, r2); - break; - case te: - this.setCustomElement(e2.content); - break; - case Q: - this.setLocationElement(e2.content); - break; - case Z: - this.setGroupTipElement(e2.content); - break; - case ee: - this.setGroupSystemNoticeElement(e2.content); - break; - case X: - this.setFaceElement(e2.content); - break; - case se: - this.setMergerElement(e2.content, s2, o2, r2); - } - }; - if (je(t2)) - for (let e2 = 0; e2 < t2.length; e2++) - i2(t2[e2]); - else - i2(t2); - this._initProxy(); - } - clearElement() { - this._elements.length = 0; - } - setTextElement(e2) { - e2 = "string" == typeof e2 ? e2 : e2.text, e2 = new Ys({ text: e2 }); - this._elements.push(e2); - } - setImageElement(e2, t2, s2, o2) { - e2 = new so(e2, t2, s2, o2); - this._elements.push(e2); - } - setAudioElement(e2, t2, s2, o2) { - e2 = new ro(e2, t2, s2, o2); - this._elements.push(e2); - } - setFileElement(e2, t2, s2, o2) { - e2 = new po(e2, t2, s2, o2); - this._elements.push(e2); - } - setVideoElement(e2, t2, s2, o2) { - e2 = new co(e2, t2, s2, o2); - this._elements.push(e2); - } - setLocationElement(e2) { - e2 = new ho(e2); - this._elements.push(e2); - } - setCustomElement(e2) { - e2 = new lo(e2); - this._elements.push(e2); - } - setGroupTipElement(e2) { - let t2 = {}; - var s2 = e2.operationType; - if (Ne(e2.memberInfoList) ? e2.operatorInfo && (t2 = e2.operatorInfo) : s2 !== Le && s2 !== Ce && s2 !== Ge && s2 !== be || (t2 = e2.memberInfoList[0]), !Ne(e2.memberExtraInfo)) { - const t3 = e2.memberExtraInfo["reason"]; - e2.msgMemberInfo.forEach((e3) => { - e3.reason = t3; - }); - } - var { nick: s2, avatar: o2 } = t2, s2 = (Ve(s2) && (this.nick = s2), Ve(o2) && (this.avatar = o2), new no(e2)); - this._elements.push(s2); - } - setGroupSystemNoticeElement(e2) { - e2 = new uo(e2); - this._elements.push(e2); - } - setFaceElement(e2) { - e2 = new oo(e2); - this._elements.push(e2); - } - setMergerElement(e2, t2, s2, o2) { - e2 = new mo(e2, t2, s2, o2); - this._elements.push(e2); - } - setIsRead(e2) { - this.isRead = e2; - } - setRelayFlag(e2) { - this._relayFlag = e2; - } - _computePriority(e2) { - if (Ke(e2)) - return re; - if (Ve(e2) && -1 !== Object.values(_o).indexOf(e2)) - return e2; - if (xe(e2)) { - e2 = "" + e2; - if (-1 !== Object.keys(_o).indexOf(e2)) - return _o[e2]; - } - return re; - } - setNickAndAvatar(e2) { - var { nick: e2, avatar: t2 } = e2; - Ve(e2) && (this.nick = e2), Ve(t2) && (this.avatar = t2); - } - setNameCard(e2) { - Ve(e2) && (this.nameCard = e2); - } - initC2CReadReceiptInfo(e2) { - var { readReceiptSentByPeer: e2, timestamp: t2 = 0 } = e2; - this.conversationType === ae && true === this.needReadReceipt && (this.readReceiptInfo.isPeerRead = 1 === e2, this.readReceiptInfo.timestamp = t2); - } -}; -var Io = class { - constructor(e2) { - this._grpM = e2, this._n = "GroupTipsHandler", this._cachedGroupTipsMap = /* @__PURE__ */ new Map(), this._checkCountMap = /* @__PURE__ */ new Map(), this.MAX_CHECK_COUNT = 4; - } - onCheckTimer(e2) { - e2 % 1 == 0 && 0 < this._cachedGroupTipsMap.size && this._check(); - } - _check() { - this._cachedGroupTipsMap.forEach((e2, t2) => { - let s2 = this._checkCountMap.get(t2); - var o2 = this._grpM.hasLocalGroup(t2); - ht.l(this._n + `._check groupID:${t2} hasLocalGroup:${o2} checkCount:` + s2), o2 ? (this._notifyCachedGroupTips(t2), this._checkCountMap.delete(t2), this._grpM.deleteUnjoinedAVChatRoom(t2)) : s2 >= this.MAX_CHECK_COUNT ? (this._deleteCachedGroupTips(t2), this._checkCountMap.delete(t2)) : (s2++, this._checkCountMap.set(t2, s2)); - }); - } - onNewGroupTips(e2) { - ht.l(this._n + ".onNewGroupTips options:" + JSON.stringify(e2.dataList)); - var { eventDataList: e2, result: t2, AVChatRoomMessageList: s2 } = this._assembly(e2); - 0 < s2.length && this._grpM.onAVChatRoomMessage(s2), 0 < t2.length && (this._grpM.emitOEvt(qt, t2), this._handleTips(t2)), 0 < e2.length && (this._grpM.updateNextMessageSeq(e2), this._grpM.get(o).onNewMessage({ conversationOptionsList: e2, isInstantMessage: true })); - } - _assembly(s2) { - var { event: r2, dataList: c2 } = s2; - let i2 = null; - const n2 = [], a2 = [], u2 = {}, m2 = []; - for (let e2 = 0, t2 = c2.length; e2 < t2; e2++) { - const s3 = Ye(c2[e2]); - if (6 === r2) { - if (this._grpM.isGroupAttributesUpdatedNotice(s3)) - continue; - if (this._grpM.isGroupCountersNotice(s3)) - continue; - } - var { groupProfile: { groupID: p2, communityType: d2 = 0, topicID: _2, invisible: f2, groupType: M2 } } = s3; - let t3 = void 0; - var I2 = this._grpM.isMessageFromTopic(d2, _2), h2 = (I2 && (t3 = pe, s3.to = _2), this._grpM.hasLocalGroup(p2)); - if (h2 || !this._grpM.isUnjoinedAVChatRoom(p2)) - if (h2 || I2) - if (this._grpM.isMessageFromOrToAVChatroom(p2)) - s3.event = r2, m2.push(s3); - else if (s3.currentUser = this._grpM.getMyUserID(), s3.conversationType = ue, (i2 = new fo(s3)).setElement({ type: Z, content: { ...s3.elements, groupProfile: s3.groupProfile } }), i2.isSystemMessage = false, 1 !== f2) { - const l2 = this._grpM.get(o), { conversationID: g2, sequence: y2 } = i2; - if (6 === r2) - i2._onlineOnlyFlag = true, a2.push(i2); - else if (!l2.pushIntoNoticeResult(a2, i2)) - continue; - if (!(this._grpM.isMessageFromCommunityOfTopic(d2, _2) || 6 === r2 && l2.getLocalConversation(g2))) { - 6 !== r2 && this._qualityStat(i2); - h2 = l2.isRemoteRead({ conversationID: g2, sequence: y2 }); - if (Ke(u2[g2])) { - let e3 = 0; - "in" === i2.flow && (i2._isExcludedFromUnreadCount || i2._onlineOnlyFlag || h2 || (e3 = 1)), u2[g2] = n2.push({ conversationID: g2, unreadCount: e3, type: Ke(t3) ? i2.conversationType : t3, subType: i2.conversationSubType, lastMessage: i2._isExcludedFromLastMessage ? "" : i2 }) - 1; - } else { - const s4 = u2[g2]; - n2[s4].type = i2.conversationType, n2[s4].subType = i2.conversationSubType, n2[s4].lastMessage = i2._isExcludedFromLastMessage ? "" : i2, "in" === i2.flow && (i2._isExcludedFromUnreadCount || i2._onlineOnlyFlag || h2 || n2[s4].unreadCount++); - } - } - } else - this._qualityStat(i2); - else - this._cacheAndCompare({ groupID: p2, event: r2, item: s3, groupType: M2 }); - } - return { eventDataList: n2, result: a2, AVChatRoomMessageList: m2 }; - } - _qualityStat(e2) { - this._grpM.get(p).addMessageSequence({ key: Wt, message: e2 }); - } - _handleTips(e2) { - e2.forEach((e3) => { - switch (e3.payload.operationType) { - case 1: - this._onNewMemberComeIn(e3); - break; - case 2: - this._onMemberQuit(e3); - break; - case 3: - this._onMemberKickedOut(e3); - break; - case 4: - this._onMemberSetAdmin(e3); - break; - case 5: - this._onMemberCancelledAdmin(e3); - break; - case 6: - this._onGroupProfileModified(e3); - break; - case 7: - this._onMemberInfoModified(e3); - break; - case 8: - this._onTopicProfileUpdated(e3); - break; - default: - ht.w(this._n + "._handleTips unknown operationType:" + e3.payload.operationType); - } - }); - } - _onNewMemberComeIn(e2) { - const { memberNum: t2, groupProfile: { groupID: s2 } } = e2.payload, o2 = this._grpM.getLocalGroupProfile(s2); - o2 && xe(t2) && o2.memberCount !== t2 && (o2.memberCount = t2, this._updateConvGroupProfile(o2)); - } - _onMemberQuit(e2) { - const { memberNum: t2, groupProfile: { groupID: s2 } } = e2.payload, o2 = this._grpM.getLocalGroupProfile(s2); - o2 && xe(t2) && o2.memberCount !== t2 && (o2.memberCount = t2, this._updateConvGroupProfile(o2)), this._grpM.getGroupMemberHandler().deleteLocalGroupMembers(s2, e2.payload.userIDList); - } - _onMemberKickedOut(e2) { - const { memberNum: t2, groupProfile: { groupID: s2 } } = e2.payload, o2 = this._grpM.getLocalGroupProfile(s2); - o2 && xe(t2) && o2.memberCount !== t2 && (o2.memberCount = t2, this._updateConvGroupProfile(o2)), this._grpM.getGroupMemberHandler().deleteLocalGroupMembers(s2, e2.payload.userIDList); - } - _updateConvGroupProfile(e2) { - this._grpM.get(o).updateConvGroupProfile([e2]); - } - _onMemberSetAdmin(e2) { - const s2 = e2.payload.groupProfile.groupID, t2 = e2.payload.userIDList, o2 = this._grpM.getGroupMemberHandler(); - t2.forEach((e3) => { - const t3 = o2.getLocalGroupMemberInfo(s2, e3); - t3 && t3.updateRole(Me); - }); - } - _onMemberCancelledAdmin(e2) { - const s2 = e2.payload.groupProfile.groupID, t2 = e2.payload.userIDList, o2 = this._grpM.getGroupMemberHandler(); - t2.forEach((e3) => { - const t3 = o2.getLocalGroupMemberInfo(s2, e3); - t3 && t3.updateRole(ye); - }); - } - _onGroupProfileModified(e2) { - const { newGroupProfile: t2, groupProfile: s2, operatorInfo: o2 } = e2.payload, r2 = s2["groupID"], i2 = this._grpM.getLocalGroupProfile(r2); - Object.keys(t2).forEach((e3) => { - switch (e3) { - case "ownerID": - this._ownerChanged(i2, t2); - break; - case "groupName": - i2.name = t2[e3]; - break; - default: - i2[e3] = t2[e3]; - } - }), Ke(o2) || Object.keys(o2).forEach((t3) => { - if ("nameCard" === t3) - i2.updateSelfInfo({ nameCard: o2[t3] }); - else if ("role" === t3) { - let e3 = ""; - 400 === o2[t3] ? e3 = Ie : 300 === o2[t3] ? e3 = Me : 200 === o2[t3] && (e3 = ye), i2.updateSelfInfo({ role: e3 }); - } - }); - e2 = !i2.isSupportTopic; - this._grpM.emitGroupListUpdate(true, e2); - } - _ownerChanged({ groupID: e2 }, t2) { - const s2 = this._grpM.getLocalGroupProfile(e2), o2 = this._grpM.getMyUserID(); - if (o2 === t2.ownerID) { - s2.updateGroup({ selfInfo: { role: Ie } }); - const t3 = this._grpM.getGroupMemberHandler(), r2 = t3.getLocalGroupMemberInfo(e2, o2), i2 = this._grpM.getLocalGroupProfile(e2).ownerID, n2 = t3.getLocalGroupMemberInfo(e2, i2); - r2 && r2.updateRole(Ie), n2 && n2.updateRole(ye); - } - } - _onMemberInfoModified(e2) { - const { to: t2, payload: { groupProfile: s2, memberList: o2 } } = e2, r2 = s2.groupID, i2 = (it(t2) && this._updateTopicMuteTime(e2), this._grpM.getGroupMemberHandler()); - o2.forEach((e3) => { - const t3 = i2.getLocalGroupMemberInfo(r2, e3.userID); - t3 && xe(e3.muteTime) && t3.updateMuteUntil(e3.muteTime); - }); - } - _updateTopicMuteTime(e2) { - const { to: t2, payload: { groupProfile: o2, memberList: r2 = [] } } = e2, i2 = this._grpM.get(s), n2 = o2["groupID"], a2 = i2.getLocalTopic(n2, t2); - if (a2) { - let t3 = false; - for (let e3 = 0; e3 < r2.length; e3++) { - const s2 = r2[e3]; - if (s2.userID === this._grpM.getMyUserID() && 0 <= s2.muteTime) { - a2.updateSelfInfo({ muteTime: s2.muteTime }), t3 = true; - break; - } - } - t3 && this._grpM.emitOEvt(Vt, { groupID: n2, topic: a2 }); - } - } - _onTopicProfileUpdated(e2) { - var { groupProfile: { groupID: t2 }, newTopicInfo: o2 } = e2.payload; - this._grpM.get(s).onTopicProfileUpdated({ groupID: t2, topicID: e2.to, ...o2 }); - } - _cacheGroupTips(e2, t2) { - this._cachedGroupTipsMap.has(e2) || this._cachedGroupTipsMap.set(e2, []), this._cachedGroupTipsMap.get(e2).push(t2); - } - _deleteCachedGroupTips(e2) { - this._cachedGroupTipsMap.has(e2) && this._cachedGroupTipsMap.delete(e2); - } - _notifyCachedGroupTips(e2, t2) { - const s2 = this._cachedGroupTipsMap.get(e2) || []; - ht.l(this._n + `._notifyCachedGroupTips groupID:${e2} groupType:${t2} count:` + s2.length), s2.forEach((e3) => { - this.onNewGroupTips(e3); - }), this._deleteCachedGroupTips(e2); - } - _cacheAndCompare(e2) { - var { groupID: e2, event: t2, item: s2, groupType: o2 } = e2, t2 = (ht.l(this._n + `._cacheAndCompare groupID:${e2} groupType:` + o2), this._cacheGroupTips(e2, { event: t2, dataList: [s2] }), { groupID: e2, type: o2 }); - o2 === me ? this._grpM.hasLocalGroup(e2) ? this._notifyCachedGroupTips(e2, o2) : this._grpM.setUnjoinedAVChatRoom(e2) : (this._grpM.updateGroupMap([t2]), this._notifyCachedGroupTips(e2, o2)), this._checkCountMap.has(e2) || this._checkCountMap.set(e2, 0); - } - reset() { - this._cachedGroupTipsMap.clear(), this._checkCountMap.clear(); - } -}; -var Mo = class { - constructor(e2) { - this._grpM = e2, this._n = "CommonGroupHandler", this.tempConversationList = null, this._cachedGroupMessageMap = /* @__PURE__ */ new Map(), this._checkCountMap = /* @__PURE__ */ new Map(), this.MAX_CHECK_COUNT = 4, this.PAGING_GRP_COUNT_LIMIT = 200, this._pagingStatus = Ws, this._pagingGetCostList = [], e2.getIEmitInst().on(Jt.A2KEY_AND_TINYID_UPDATED, this.syncGroupList, this); - } - onCheckTimer(e2) { - e2 % 1 == 0 && 0 < this._cachedGroupMessageMap.size && this._check(); - } - _check() { - this._cachedGroupMessageMap.forEach((e2, t2) => { - let s2 = this._checkCountMap.get(t2); - var o2 = this._grpM.hasLocalGroup(t2); - ht.l(this._n + `._check groupID:${t2} hasLocalGroup:${o2} checkCount:` + s2), o2 ? (this._notifyCachedGroupMessage(t2), this._checkCountMap.delete(t2), this._grpM.deleteUnjoinedAVChatRoom(t2)) : s2 >= this.MAX_CHECK_COUNT ? (this._deleteCachedGroupMessage(t2), this._checkCountMap.delete(t2)) : (s2++, this._checkCountMap.set(t2, s2)); - }); - } - updateLastMsg(i2) { - var e2 = this._n + ".updateLastMsg"; - if (0 !== this._grpM.getGroupMap().size) { - let t2, s2, o2, r2 = false; - var n2, a2, u2 = i2.length; - for (let e3 = 0; e3 < u2; e3++) - (t2 = i2[e3]).type === ue && 0 !== t2.lastMessage.lastSequence && null !== t2.lastMessage.payload && (s2 = t2.conversationID.split(/^GROUP/)[1], (o2 = this._grpM.getLocalGroupProfile(s2)) && (n2 = o2.lastMessage, a2 = t2.lastMessage, JSON.stringify(n2) !== JSON.stringify(a2) && (o2.lastMessage = { ...t2.lastMessage }, r2 = true))); - ht.l(e2 + ` convCount:${u2} groupCount:${this._grpM.getLocalGroupList().length} isUpdated:` + r2), r2 && (this._grpM.sortLocalGroupList(), this._grpM.emitGroupListUpdate(true, false)); - } else - this.tempConversationList = i2; - } - onNewMessage(e2) { - const { conversationOptionsList: t2, messageList: s2, AVChatRoomMessageList: r2 } = this._assembly(e2); - 0 < r2.length && this._grpM.onAVChatRoomMessage(r2); - var i2 = Ze(s2), i2 = (0 < i2.length && this._grpM.emitOEvt(Nt, i2), 0 < t2.length && (this._grpM.get(o).onNewMessage({ conversationOptionsList: t2, isInstantMessage: false !== e2.isInstantMessage, updateUnreadCount: false !== e2.updateUnreadCount }), this._grpM.updateNextMessageSeq(t2)), st(s2)); - 0 < i2.length && this._grpM.emitOEvt(qt, i2), s2.length = 0; - } - _assembly(i2) { - const { dataList: a2, event: e2, isInstantMessage: u2 } = i2; - let p2 = null; - const h2 = [], l2 = [], d2 = [], g2 = {}, _2 = this._grpM.getFileDownloadProxy(), f2 = this._grpM.getDowloadFileAuthKey(), M2 = this._grpM.get(n).getFileDNList(), c2 = a2.length, m2 = (1 < c2 && a2.sort((e3, t2) => e3.sequence - t2.sequence), this._grpM.get(o)), I2 = this._grpM.get(t); - for (let r2 = 0; r2 < c2; r2++) { - const i3 = Ye(a2[r2]), { groupProfile: { groupID: o2, communityType: n2 = 0, topicID: c3, invisible: L2, groupType: C2 } } = i3; - let s2 = void 0; - var y2 = this._grpM.isMessageFromTopic(n2, c3), D2 = (y2 && (s2 = pe, i3.to = c3), this._grpM.hasLocalGroup(o2)); - if (D2 || !this._grpM.isUnjoinedAVChatRoom(o2)) - if (D2 || y2) - if (this._grpM.isMessageFromOrToAVChatroom(o2)) - i3.event = e2, d2.push(i3); - else if (i3.currentUser = this._grpM.getMyUserID(), i3.conversationType = ue, i3.isSystemMessage = !!i3.isSystemMessage, (p2 = new fo(i3)).setElement(i3.elements, _2, f2, M2), 1 !== L2) { - let e3 = 1 === a2[r2].isModified; - if (m2.isMessageSentByCurrentInstance(p2) ? p2.isModified = e3 : e3 = false, 1 === i3.onlineOnlyFlag) - p2._onlineOnlyFlag = true, m2.isMessageSentByCurrentInstance(p2) || l2.push(p2); - else { - if (this._grpM.isMessageFromCommunityOfTopic(n2, c3)) { - l2.push(p2); - continue; - } - if (p2.from === this._grpM.getMyUserID()) { - const t3 = m2.getLatestMessageSentByMe(p2.conversationID); - if (t3) { - const { nick: a4, avatar: o3 } = t3; - a4 === p2.nick && o3 === p2.avatar || (m2.modifyMessageSentByMe({ conversationID: i4, latestNick: p2.nick, latestAvatar: p2.avatar }), I2.mockOnNickAvatarModified(p2.nick, p2.avatar)); - } - } - if (!m2.pushIntoMessageList(l2, p2, e3)) - continue; - this._qualityStat(u2, p2); - const { conversationID: i4, sequence: t2 } = p2, a3 = m2.isRemoteRead({ conversationID: i4, sequence: t2 }); - if (Ke(g2[i4])) { - let e4 = 0; - "in" === p2.flow && (p2._isExcludedFromUnreadCount || a3 || (e4 = 1)), g2[i4] = h2.push({ conversationID: i4, unreadCount: e4, type: Ke(s2) ? p2.conversationType : s2, subType: p2.conversationSubType, lastMessage: p2._isExcludedFromLastMessage ? "" : p2 }) - 1; - } else { - const t3 = g2[i4]; - h2[t3].type = Ke(s2) ? p2.conversationType : s2, h2[t3].subType = p2.conversationSubType, h2[t3].lastMessage = p2._isExcludedFromLastMessage ? "" : p2, "in" === p2.flow && (p2._isExcludedFromUnreadCount || a3 || h2[t3].unreadCount++); - } - } - } else - this._qualityStat(u2, p2); - else - this._cacheAndCompare({ groupID: o2, event: e2, item: i3, groupType: C2 }); - } - return { conversationOptionsList: h2, messageList: l2, AVChatRoomMessageList: d2 }; - } - _qualityStat(e2, t2) { - const s2 = this._grpM.get(p); - s2.addMessageSequence({ key: Wt, message: t2 }), e2 && 0 < t2.clientTime && s2.addMessageDelay(t2.clientTime); - } - onMsgRevoked(e2, t2) { - const p2 = this._grpM.get(o), h2 = [], l2 = []; - e2.dataList.forEach((e3) => { - const t3 = e3.elements["revokedInfos"], { revokerInfo: n2, groupProfile: a2 } = e3; - let u2 = false; - a2 && (u2 = rt({ groupID: a2.groupID }) || !Ne(a2.topicID)), Ke(t3) || t3.forEach((e4) => { - var t4 = Ne(e4.topicID) ? "GROUP" + e4.groupID : "GROUP" + e4.topicID, s2 = p2.getLocalConversation(t4), o2 = e4.revokerInfo && e4.revokerInfo.revoker || n2 && n2.revoker, r2 = n2 && n2.reason || ""; - let i2; - if (s2 && ot(s2.type)) - i2 = { conversationID: t4, sequence: e4.sequence, ID: `${e4.tinyID}-${e4.clientTime}-` + e4.random }; - else { - const n3 = p2.revoke(t4, e4.sequence, e4.random); - n3 ? i2 = n3 : (i2 = { conversationID: t4, sequence: e4.sequence }, e4.tinyID && e4.clientTime && e4.random && (i2.ID = `${e4.tinyID}-${e4.clientTime}-` + e4.random), e4.time && (i2.time = e4.time)); - } - i2 && (i2.revoker = o2, i2.revokeReason = r2, i2.revokerInfo = { userID: o2, nick: "", avatar: "" }, u2 ? (i2.revokerInfo.nick = a2.nick, i2.revokerInfo.avatar = a2.avatar, h2.push(i2)) : l2.push(i2)); - }); - }), 0 === l2.length && 0 === h2.length || (p2.onMessageRevoked([...h2, ...l2], t2), 0 < h2.length && this._grpM.emitOEvt(kt, h2), 0 < l2.length && p2.updateRevokerInfo(l2).then((e3) => { - this._grpM.emitOEvt(kt, e3); - })); - } - _groupListTreeShaking(s2) { - const o2 = new Map([...this._grpM.getGroupMap()]); - for (let e2 = 0, t2 = s2.length; e2 < t2; e2++) - o2.delete(s2[e2].groupID); - this._grpM.hasJoinedAVChatRoom() && this._grpM.getJoinedAVChatRoom().forEach((e2) => { - o2.delete(e2); - }), this._grpM.getGroupMap().forEach((e2, t2) => { - e2.isSupportTopic && o2.delete(t2); - }); - var r2 = [...o2.keys()]; - for (let e2 = 0, t2 = r2.length; e2 < t2; e2++) - this._grpM.deleteGroup(r2[e2]); - } - syncGroupList(e2 = false) { - this._pagingStatus === Ws && this._grpM.clearGroupMap(); - const t2 = [...L], s2 = this.PAGING_GRP_COUNT_LIMIT, o2 = []; - if (true === e2) - return this._pagingGetGroupListWithTopic({ limit: s2, offset: 0, groupBaseInfoFilter: t2, groupList: o2 }); - const r2 = this._n + ".syncGroupList", i2 = new es("syncGroupList"); - return this._pagingGetGroupList({ limit: s2, offset: 0, groupBaseInfoFilter: t2, groupList: o2 }).then(() => { - var e3 = function(e4) { - if (je(e4) && 0 !== e4.length) { - let t4 = 0; - return e4.forEach((e5) => { - t4 += e5; - }), (t4 / e4.length).toFixed(0); - } - }(this._pagingGetCostList), t3 = function(e4) { - if (je(e4) && 0 !== e4.length) { - let t4 = 0; - return e4.forEach((e5) => { - t4 += e5; - }), t4.toFixed(0); - } - }(this._pagingGetCostList), t3 = (this._pagingGetCostList.length = 0, this._pagingStatus = zs, this._groupListTreeShaking(o2), this._grpM.updateGroupMap(o2), `count:${this._grpM.getLocalGroupList().length} sum:${t3} avg:` + e3); - return ht.l(r2 + " ok. " + t3), i2.setMessage(t3).end(), this.tempConversationList && (this.updateLastMsg(this.tempConversationList), this.tempConversationList = null), this._grpM.emitGroupListUpdate(true, true), gt({ groupList: this._grpM.getLocalGroupList() }); - }).catch((e3) => (this._pagingStatus = Xs, i2.setError(e3).end(), ht.e(r2 + " failed. error:", e3), Bt(e3))); - } - getGroupList() { - const t2 = this._n + ".getGroupList"; - if (ht.l(t2 + " pagingStatus:" + this._pagingStatus), this._pagingStatus === Xs || this._pagingStatus === Ws) - return this.syncGroupList().then(() => { - var e3 = this._grpM.getLocalGroupList(); - return gt({ groupList: e3, isSyncCompleted: this.isPagingGetCompleted() }); - }).catch((e3) => (ht.e(t2 + " failed. error:", e3), Bt(e3))); - var e2 = this._grpM.getLocalGroupList(); - return ht.l(t2 + ". returned group count:" + e2.length), Kt({ groupList: e2, isSyncCompleted: this.isPagingGetCompleted() }); - } - isPagingGetCompleted() { - return this._pagingStatus === zs; - } - _pagingGetGroupList(e2) { - const o2 = this._n + "._pagingGetGroupList"; - let { isCommunityRelay: r2 = false, limit: i2, offset: n2, groupBaseInfoFilter: a2, groupList: u2 } = e2; - const p2 = Date.now(); - return this._grpM.req({ P: ss, data: { type: r2 ? de : void 0, memberAccount: this._grpM.getMyUserID(), limit: i2, offset: n2, responseFilter: { groupBaseInfoFilter: a2, selfInfoFilter: ["Role", "JoinTime", "MsgFlag", "MsgSeq"] } } }).then((e3) => { - var { groups: e3 = [], totalCount: t2 } = e3.data, e3 = (u2.push(...e3), this._handleGroupAtInfoWithoutTopic(r2, e3), n2 + i2), s2 = !(e3 < t2), t2 = `offset:${n2} limit:${i2} total:${t2} isCompleted:${s2} current:${u2.length} isCommunityRelay:` + r2; - return this._pagingGetCostList.push(ut(p2, false)), ht.l(o2 + ` ok. ${t2} cost:` + ut(p2)), r2 || s2 ? !r2 && s2 ? (ht.l(o2 + " start to get community list"), n2 = 0, this._pagingGetGroupList({ limit: i2, offset: n2, groupBaseInfoFilter: a2, groupList: u2, isCommunityRelay: true })) : r2 && !s2 ? (n2 = e3, this._pagingGetGroupList({ limit: i2, offset: n2, groupBaseInfoFilter: a2, groupList: u2, isCommunityRelay: true })) : gt({ groupList: u2 }) : (n2 = e3, this._pagingGetGroupList({ limit: i2, offset: n2, groupBaseInfoFilter: a2, groupList: u2 })); - }).catch((e3) => 10018 === e3.code ? (ht.w(this.logPrefix + " response size exceeds the limit, request count:" + i2), i2 = 50, this._pagingGetGroupList({ limit: i2, offset: n2, groupBaseInfoFilter: a2, groupList: u2, isCommunityRelay: r2 })) : r2 ? (11e3 === e3.code && ht.l(o2 + " ok. community unavailable"), Kt({ groupList: u2 })) : Bt(e3)); - } - _pagingGetGroupListWithTopic(e2) { - const o2 = this._n + "._pagingGetGroupListWithTopic"; - let { limit: r2, offset: i2, groupBaseInfoFilter: n2, groupList: a2 } = e2; - const u2 = Date.now(); - return this._grpM.req({ P: ss, data: { type: de, memberAccount: this._grpM.getMyUserID(), limit: r2, offset: i2, responseFilter: { groupBaseInfoFilter: n2, selfInfoFilter: [...C] }, isSupportTopic: 1, needAppDefineData: 1 } }).then((e3) => { - var { groups: e3 = [], totalCount: t2 } = e3.data, e3 = (a2.push(...e3), i2 + r2), s2 = !(e3 < t2); - if (ht.l(o2 + ` ok. offset:${i2} limit:${r2} totalCount:${t2} isCompleted:${s2} currentCount:${a2.length} cost:` + ut(u2)), !s2) - return i2 = e3, this._pagingGetGroupListWithTopic({ limit: r2, offset: i2, groupBaseInfoFilter: n2, groupList: a2 }); - this._grpM.updateGroupMap(a2), this._grpM.emitGroupListUpdate(true, false); - t2 = this._grpM.getLocalGroupList().filter((e4) => true === e4.isSupportTopic); - return gt({ groupList: t2 }); - }).catch((e3) => 10018 === e3.code ? (ht.w(this.logPrefix + " response size exceeds the limit, request count:" + r2), r2 = 50, this._pagingGetGroupListWithTopic({ limit: r2, offset: i2, groupBaseInfoFilter: n2, groupList: a2 })) : Bt(e3)); - } - _cacheGroupMessage(e2, t2) { - this._cachedGroupMessageMap.has(e2) || this._cachedGroupMessageMap.set(e2, []), this._cachedGroupMessageMap.get(e2).push(t2); - } - _deleteCachedGroupMessage(e2) { - this._cachedGroupMessageMap.has(e2) && this._cachedGroupMessageMap.delete(e2); - } - _notifyCachedGroupMessage(e2, t2) { - const s2 = this._cachedGroupMessageMap.get(e2) || []; - ht.l(this._n + `._notifyCachedGroupMessage groupID:${e2} groupType:${t2} count:` + s2.length), s2.forEach((e3) => { - this.onNewMessage(e3); - }), this._deleteCachedGroupMessage(e2); - } - _cacheAndCompare(e2) { - var { groupID: e2, event: t2, item: s2, groupType: o2 } = e2, t2 = (ht.l(this._n + `._cacheAndCompare groupID:${e2} groupType:` + o2), this._cacheGroupMessage(e2, { event: t2, dataList: [s2] }), { groupID: e2, type: o2 }); - o2 === me ? this._grpM.hasLocalGroup(e2) ? this._notifyCachedGroupMessage(e2, o2) : this._grpM.setUnjoinedAVChatRoom(e2) : (this._grpM.updateGroupMap([t2]), this._notifyCachedGroupMessage(e2, o2)), this._checkCountMap.has(e2) || this._checkCountMap.set(e2, 0); - } - _handleGroupAtInfoWithoutTopic(e2, t2) { - e2 && 0 !== t2.length && t2.forEach((e3) => { - const { groupID: t3, groupAtInfoList: s2 } = e3, r2 = []; - Ke(s2) || (s2.forEach((e4) => { - r2.push({ ...e4, groupID: t3 }); - }), this._grpM.get(o).onNewGroupAtTips({ dataList: r2 })); - }); - } - setPagingGroupCount(e2) { - Ke(e2) || (this.PAGING_GRP_COUNT_LIMIT = parseInt(e2, 10)); - } - reset() { - this.PAGING_GRP_COUNT_LIMIT = 200, this._cachedGroupMessageMap.clear(), this._checkCountMap.clear(), this._pagingStatus = Ws, this._pagingGetCostList = []; - } -}; -var yo = 1; -var Do = 2; -var Lo = 3; -var Co = 4; -var Go = 5; -var bo = class { - constructor(e2) { - this._grpM = e2, this._n = "GroupAttributesHandler", this._groupAttributesMap = /* @__PURE__ */ new Map(), this._groupAttributesCopy = {}, this.CACHE_EXPIRE_TIME = 3e4, this._grpM.getIEmitInst().on(Jt.CLOUD_CONFIG, this._onCloudConfig, this); - } - _onCloudConfig() { - var e2 = this._grpM.getCloudConfig("grp_attr_cache_time"); - Ke(e2) || (this.CACHE_EXPIRE_TIME = Number(e2)); - } - updateLocalMainSequenceOnReconnected() { - this._groupAttributesMap.forEach((e2) => { - e2.localMainSequence = 0; - }); - } - isGroupAttributesUpdatedNotice(e2) { - var { to: e2, elements: { newGroupProfile: t2 } } = e2, s2 = !Ke(t2) && !Ne(t2.groupAttributeOption); - return s2 && this._onGroupAttributesUpdated({ groupID: e2, groupAttributeOption: t2.groupAttributeOption }), s2; - } - _onGroupAttributesUpdated(e2) { - const { groupID: t2, groupAttributeOption: s2 } = e2, { mainSequence: o2, isWithChangedAttributeInfo: r2, groupAttributeList: i2 = [], operationType: n2 } = s2; - if (ht.l(this._n + `.onGroupAttributesUpdated. groupID:${t2} isWithChangedAttributeInfo:${r2} operationType:` + n2), !Ke(n2)) { - this._groupAttributesCopy = this._getCachedAttributes({ groupID: t2 }); - e2 = this._getLocalGroupAttributes(t2)["localMainSequence"], e2 = o2 - e2; - if (0 != e2) { - if (1 === r2 && 1 == e2) - return this._refreshCachedGroupAttributes({ groupID: t2, remoteMainSequence: o2, groupAttributeList: i2, operationType: n2 }), void this._emitGroupAttributesUpdated(t2); - if (this._hasLocalGroupAttributes(t2)) { - const e3 = this._getLocalGroupAttributes(t2)["avChatRoomKey"]; - this._getGroupAttributes({ groupID: t2, avChatRoomKey: e3 }).then(() => { - this._emitGroupAttributesUpdated(t2); - }); - } - } - } - } - initGroupAttributesCache(e2) { - var { groupID: e2, avChatRoomKey: t2 } = e2; - this._groupAttributesMap.set(e2, { lastUpdateTime: 0, localMainSequence: 0, remoteMainSequence: 0, attributes: /* @__PURE__ */ new Map(), avChatRoomKey: t2 }), ht.l(this._n + `.initGroupAttributesCache groupID:${e2} avChatRoomKey:` + t2); - } - initGroupAttributes(e2) { - const { groupID: r2, groupAttributes: i2 } = e2, { remoteMainSequence: t2, avChatRoomKey: s2 } = this._getLocalGroupAttributes(r2), n2 = new es("initGroupAttributes"); - return n2.setMessage(`groupID:${r2} avChatRoomKey:${s2} mainSequence:` + t2), this._grpM.req({ P: Ss, data: { groupID: r2, avChatRoomKey: s2, mainSequence: t2, groupAttributeList: this._transformGroupAttributes(i2) } }).then((e3) => { - ht.l(this._n + ".initGroupAttributes ok. groupID:" + r2); - const { mainSequence: t3, groupAttributeList: s3 } = e3.data, o2 = [...s3]; - return o2.forEach((e4) => { - e4.value = i2[e4.key]; - }), this._groupAttributesCopy = this._getCachedAttributes({ groupID: r2 }), this._refreshCachedGroupAttributes({ groupID: r2, remoteMainSequence: t3, groupAttributeList: o2, operationType: yo }), this._emitGroupAttributesUpdated(r2), n2.end(), gt({ groupAttributes: i2 }); - }).catch((e3) => (n2.setError(e3).end(), Bt(e3))); - } - setGroupAttributes(e2) { - const r2 = this._n + ".setGroupAttributes", { groupID: i2, groupAttributes: n2 } = e2, { remoteMainSequence: t2, avChatRoomKey: s2, attributes: o2 } = this._getLocalGroupAttributes(i2), a2 = this._transformGroupAttributes(n2), u2 = (a2.forEach((e3) => { - var t3 = e3["key"]; - e3.sequence = 0, o2.has(t3) && (e3.sequence = o2.get(t3).sequence); - }), new es("setGroupAttributes")); - return u2.setMessage(`groupID:${i2} groupAttributes:` + JSON.stringify(n2)), ht.l(r2 + `. groupID:${i2} mainSequence:` + t2), this._grpM.req({ P: vs, data: { groupID: i2, avChatRoomKey: s2, mainSequence: t2, groupAttributeList: a2 } }).then((e3) => { - ht.l(r2 + " ok."); - const { mainSequence: t3, groupAttributeList: s3 } = e3.data, o3 = [...s3]; - return o3.forEach((e4) => { - e4.value = n2[e4.key]; - }), this._groupAttributesCopy = this._getCachedAttributes({ groupID: i2 }), this._refreshCachedGroupAttributes({ groupID: i2, remoteMainSequence: t3, groupAttributeList: o3, operationType: Do }), this._emitGroupAttributesUpdated(i2), u2.end(), gt({ groupAttributes: n2 }); - }).catch((e3) => (u2.setError(e3).end(), Bt(e3))); - } - deleteGroupAttributes(h2) { - const { groupID: t2, keyList: e2 = [] } = h2, { remoteMainSequence: s2, avChatRoomKey: l2, attributes: o2 } = this._getLocalGroupAttributes(t2); - let r2 = [...o2.keys()], i2 = Rs, n2 = Lo; - const a2 = { groupID: t2, avChatRoomKey: l2, mainSequence: s2 }, u2 = [], p2 = (0 < e2.length && (r2 = [], i2 = Ps, n2 = Co, e2.forEach((e3) => { - let t3 = 0; - o2.has(e3) && (t3 = o2.get(e3).sequence, r2.push(e3)), u2.push({ key: e3, sequence: t3 }); - }), a2.groupAttributeList = u2), new es("deleteGroupAttributes")); - return p2.setMessage(`groupID:${t2} mainSequence:${s2} keyList:${e2} proto:` + i2), this._grpM.req({ P: i2, data: a2 }).then((e3) => { - ht.l(this._n + ".deleteGroupAttributes ok. groupID:" + t2); - e3 = e3.data.mainSequence; - return this._groupAttributesCopy = this._getCachedAttributes({ groupID: t2 }), this._refreshCachedGroupAttributes({ groupID: t2, remoteMainSequence: e3, groupAttributeList: u2, operationType: n2 }), this._emitGroupAttributesUpdated(t2), p2.end(), gt({ keyList: r2 }); - }).catch((e3) => (p2.setError(e3).end(), Bt(e3))); - } - getGroupAttributes(t2) { - const s2 = this._n + ".getGroupAttributes", o2 = t2["groupID"], { avChatRoomKey: e2, lastUpdateTime: r2, localMainSequence: i2, remoteMainSequence: n2 } = this._getLocalGroupAttributes(o2), a2 = new es("getGroupAttributes"); - if (a2.setMessage(`groupID:${o2} localMainSequence:${i2} remoteMainSequence:${n2} keyList:` + t2.keyList), Date.now() - r2 >= this.CACHE_EXPIRE_TIME || i2 < n2) - return this._getGroupAttributes({ groupID: o2, avChatRoomKey: e2 }).then((e3) => { - a2.setMoreMessage("get attributes from remote. count:" + e3.length).end(), ht.l(s2 + " from remote. groupID:" + o2); - e3 = this._getCachedAttributes(t2); - return gt({ groupAttributes: e3 }); - }).catch((e3) => (a2.setError(e3).end(), Bt(e3))); - a2.setMoreMessage("get attributes from cache").end(), ht.l(s2 + " from cache. groupID:" + o2); - var u2 = this._getCachedAttributes(t2); - return Kt({ groupAttributes: u2 }); - } - _getGroupAttributes(o2) { - let e2 = 0; - return Ke(o2.avChatRoomKey) || (e2 = 1), this._grpM.req({ P: $s, data: { ...o2, groupType: e2 } }).then((e3) => { - ht.l(this._n + "._getGroupAttributes ok. groupID:" + o2.groupID); - var { mainSequence: e3, groupAttributeList: t2 } = e3.data, s2 = [...t2]; - return Ke(e3) || this._refreshCachedGroupAttributes({ groupID: o2.groupID, remoteMainSequence: e3, groupAttributeList: s2, operationType: Go }), t2; - }).catch((e3) => Bt(e3)); - } - _refreshCachedGroupAttributes(e2) { - var { groupID: t2, remoteMainSequence: s2, groupAttributeList: o2, operationType: r2 } = e2; - if (this._hasLocalGroupAttributes(t2)) { - const e3 = this._getLocalGroupAttributes(t2), i2 = e3["localMainSequence"]; - if (r2 === Go || s2 - i2 == 1) - e3.remoteMainSequence = s2, e3.localMainSequence = s2, e3.lastUpdateTime = Date.now(), this._updateCachedAttributes({ groupAttributes: e3, groupAttributeList: o2, operationType: r2 }); - else { - if (i2 === s2) - return; - e3.remoteMainSequence = s2; - } - this._groupAttributesMap.set(t2, e3); - o2 = `operationType:${r2} localMainSequence:${i2} remoteMainSequence:` + s2; - ht.l(this._n + "._refreshCachedGroupAttributes. " + o2); - } - } - _getCachedAttributes(t2) { - const { groupID: e2, keyList: s2 = [] } = t2, o2 = {}; - if (this._hasLocalGroupAttributes(e2)) { - const t3 = this._getLocalGroupAttributes(e2)["attributes"]; - if (0 < s2.length) - s2.forEach((e3) => { - t3.has(e3) && (o2[e3] = t3.get(e3).value); - }); - else - for (const e3 of t3.keys()) - o2[e3] = t3.get(e3).value; - } - return o2; - } - _updateCachedAttributes(e2) { - const { groupAttributes: o2, groupAttributeList: t2, operationType: s2 } = e2; - s2 !== Lo ? s2 !== Co ? (s2 === yo && o2.attributes.clear(), t2.forEach((e3) => { - var { key: e3, value: t3, sequence: s3 } = e3; - o2.attributes.set(e3, { value: t3, sequence: s3 }); - })) : t2.forEach((e3) => { - o2.attributes.delete(e3.key); - }) : o2.attributes.clear(); - } - _hasLocalGroupAttributes(e2) { - return this._groupAttributesMap.has(e2); - } - _getLocalGroupAttributes(e2) { - return this._hasLocalGroupAttributes(e2) || this.initGroupAttributesCache({ groupID: e2 }), this._groupAttributesMap.get(e2); - } - _transformGroupAttributes(t2) { - const s2 = []; - return Object.keys(t2).forEach((e2) => { - s2.push({ key: e2, value: t2[e2] }); - }), s2; - } - _emitGroupAttributesUpdated(e2) { - var t2 = this._getCachedAttributes({ groupID: e2 }), { updatedKeyList: s2, deletedKeyList: o2 } = this._computeAttrChangedInfo(t2); - ht.l(`${this._n}._emitGroupAttributesUpdated update:${s2.length}, delete:` + o2.length), 0 === s2.length && 0 === o2.length || this._grpM.emitOEvt(Ft, { groupID: e2, groupAttributes: t2, updatedKeyList: s2, deletedKeyList: o2 }); - } - _computeAttrChangedInfo(t2) { - const s2 = [], o2 = []; - return Object.keys(t2).forEach((e2) => { - t2[e2] !== this._groupAttributesCopy[e2] && s2.push(e2); - }), Object.keys(this._groupAttributesCopy).forEach((e2) => { - Ke(t2[e2]) && o2.push(e2); - }), this._groupAttributesCopy = {}, { updatedKeyList: s2, deletedKeyList: o2 }; - } - deleteLocalGroupAttributes(e2) { - this._hasLocalGroupAttributes(e2) && this._groupAttributesMap.delete(e2); - } - reset() { - this._groupAttributesMap.clear(), this._groupAttributesCopy = {}, this.CACHE_EXPIRE_TIME = 3e4; - } -}; -var Ao = "Set"; -var To = "Increase"; -var So = "Decrease"; -var vo = class { - constructor(e2) { - this._grpM = e2, this._n = "GroupCountersHandler", this._groupCountersMap = /* @__PURE__ */ new Map(), this.EXPIRE_TIME = 3e4, this._grpM.getIEmitInst().on(Jt.CLOUD_CONFIG, this._onCloudConfig, this); - } - _onCloudConfig() { - var e2 = this._grpM.getCloudConfig("grp_counter_expire_time"); - Ke(e2) || (this.EXPIRE_TIME = Number(e2)); - } - isGroupCountersNotice(e2) { - var { to: e2, elements: { groupCounterInfo: t2 } } = e2; - let s2 = false; - return Ne(t2) || (this._onGroupCountersUpdated({ groupID: e2, groupCounterInfo: t2 }), s2 = true), s2; - } - _onGroupCountersUpdated(e2) { - const { groupID: r2, groupCounterInfo: t2 } = e2; - t2.forEach((e3) => { - const { type: t3, groupCounterSeq: s2, counterList: o2 = [] } = e3; - 0 !== t3 && 2 !== t3 || (this._updateLocalGroupCounters({ groupID: r2, groupCounterSeq: s2, counterList: o2 }), o2.forEach((e4) => { - this._grpM.emitOEvt(xt, { groupID: r2, key: e4.key, value: e4.value }); - })), 1 === t3 && this._deleteLocalGroupCounters({ groupID: r2, groupCounterSeq: s2, counterList: o2 }); - }), ht.l(this._n + "._onGroupCountersUpdated groupID:" + r2); - } - initGroupCountersCache(e2) { - var { groupID: e2, avChatRoomKey: t2 } = e2; - this._groupCountersMap.set(e2, { lastUpdateTime: 0, groupCounterSeq: 0, counters: /* @__PURE__ */ new Map(), avChatRoomKey: t2 }), ht.l(this._n + `.initGroupCountersCache groupID:${e2} avChatRoomKey:` + t2); - } - setGroupCounters(e2) { - if (!this._grpM.canIUse(M.GRP_COUNTER)) - return this._grpM.noUse("setGroupCounters"); - const t2 = this._n + ".setGroupCounters", { groupID: s2, counters: o2 } = e2, r2 = this._convertObjectToList(o2), i2 = this._getLocalGroupCounters(s2)["avChatRoomKey"], n2 = `groupID:${s2} count:` + r2.length, a2 = new es("setGroupCounters"); - return a2.setMessage(n2), ht.l(t2 + ". " + n2), this._updateGroupCounters({ groupID: s2, counterList: r2, avChatRoomKey: i2, mode: Ao }).then((e3) => (a2.end(), ht.l(t2 + " ok."), gt({ counters: e3 }))).catch((e3) => (a2.setError(e3).end(), ht.e(t2 + " failed. error:", e3), Bt(e3))); - } - increaseGroupCounter(e2) { - var t2 = "increaseGroupCounter"; - if (!this._grpM.canIUse(M.GRP_COUNTER)) - return this._grpM.noUse(t2); - const s2 = this._n + "." + t2, { groupID: o2, key: r2, value: i2 } = e2, n2 = this._getLocalGroupCounters(o2)["avChatRoomKey"], a2 = `groupID:${o2} key:${r2} value:` + i2, u2 = new es(t2); - return u2.setMessage(a2), ht.l(s2 + ". " + a2), this._updateGroupCounters({ groupID: o2, counterList: [{ key: r2, value: i2 }], avChatRoomKey: n2, mode: To }).then((e3) => (u2.end(), ht.l(s2 + " ok."), gt({ counters: e3 }))).catch((e3) => (u2.setError(e3).end(), ht.e(s2 + " failed. error:", e3), Bt(e3))); - } - decreaseGroupCounter(e2) { - var t2 = "decreaseGroupCounter"; - if (!this._grpM.canIUse(M.GRP_COUNTER)) - return this._grpM.noUse(t2); - const s2 = this._n + "." + t2, { groupID: o2, key: r2, value: i2 } = e2, n2 = this._getLocalGroupCounters(o2)["avChatRoomKey"], a2 = `groupID:${o2} key:${r2} value:` + i2, u2 = new es(t2); - return u2.setMessage(a2), ht.l(s2 + ". " + a2), this._updateGroupCounters({ groupID: o2, counterList: [{ key: r2, value: i2 }], avChatRoomKey: n2, mode: So }).then((e3) => (u2.end(), ht.l(s2 + " ok."), gt({ counters: e3 }))).catch((e3) => (u2.setError(e3).end(), ht.e(s2 + " failed. error:", e3), Bt(e3))); - } - getGroupCounters(e2) { - if (!this._grpM.canIUse(M.GRP_COUNTER)) - return this._grpM.noUse("getGroupCounters"); - const t2 = this._n + ".getGroupCounters", { groupID: s2, keyList: o2 = [] } = e2, { avChatRoomKey: r2, lastUpdateTime: i2 } = this._getLocalGroupCounters(s2), n2 = new es("getGroupCounters"); - if (n2.setMessage("groupID:" + s2), Date.now() - i2 >= this.EXPIRE_TIME) - return this._getRemoteGroupCounters({ groupID: s2, avChatRoomKey: r2 }).then((e3) => { - n2.setMoreMessage("from remote. count:" + e3.length).end(), ht.l(t2 + " from remote. groupID:" + s2); - e3 = this._getLocalCounters(s2, o2); - return gt({ counters: e3 }); - }).catch((e3) => (n2.setError(e3).end(), Bt(e3))); - n2.setMoreMessage("from cache").end(), ht.l(t2 + " from cache. groupID:" + s2); - e2 = this._getLocalCounters(s2, o2); - return Kt({ counters: e2 }); - } - _getRemoteGroupCounters(s2) { - return this._grpM.req({ P: Ns, data: { ...s2 } }).then((e2) => { - var { counterList: e2 = [], groupCounterSeq: t2 } = e2.data; - return this._updateLocalGroupCounters({ groupID: s2.groupID, counterList: e2, groupCounterSeq: t2 }), ht.l(this._n + "._getRemoteGroupCounters ok. groupID:" + s2.groupID), e2; - }).catch((e2) => Bt(e2)); - } - _convertObjectToList(t2) { - const s2 = []; - return Object.keys(t2).forEach((e2) => { - s2.push({ key: e2, value: t2[e2] }); - }), s2; - } - _updateGroupCounters(e2) { - const o2 = this._n + "._updateGroupCounters", { groupID: t2, avChatRoomKey: s2, mode: r2 } = e2; - return ht.l(o2 + `. groupID:${t2} avChatRoomKey:${s2} mode:` + r2), this._grpM.req({ P: qs, data: { ...e2 } }).then((e3) => { - ht.l(o2 + " ok."); - const { counterList: t3 = [] } = e3.data, s3 = {}; - return t3.forEach((e4) => { - var { key: e4, value: t4 } = e4; - s3[e4] = t4; - }), s3; - }).catch((e3) => Bt(e3)); - } - _hasLocalGroupCounters(e2) { - return this._groupCountersMap.has(e2); - } - _getLocalGroupCounters(e2) { - return this._hasLocalGroupCounters(e2) || this.initGroupCountersCache({ groupID: e2 }), this._groupCountersMap.get(e2); - } - _updateLocalGroupCounters(s2) { - const { groupID: e2, counterList: t2 = [], groupCounterSeq: o2 } = s2; - if (this._hasLocalGroupCounters(e2)) { - const { counters: s3, avChatRoomKey: r2, groupCounterSeq: i2 } = this._getLocalGroupCounters(e2); - 0 < o2 && o2 < i2 || (t2.forEach((e3) => { - var { key: e3, value: t3 } = e3; - s3.set(e3, t3); - }), this._groupCountersMap.set(e2, { lastUpdateTime: Date.now(), groupCounterSeq: o2, counters: s3, avChatRoomKey: r2 })); - } - } - _deleteLocalGroupCounters(t2) { - const { groupID: e2, counterList: s2 = [], groupCounterSeq: o2 } = t2; - if (this._hasLocalGroupCounters(e2)) { - const { counters: t3, avChatRoomKey: r2 } = this._getLocalGroupCounters(e2); - s2.forEach((e3) => { - t3.delete(e3.key); - }), this._groupCountersMap.set(e2, { lastUpdateTime: Date.now(), groupCounterSeq: o2, counters: t3, avChatRoomKey: r2 }); - } - } - _getLocalCounters(e2, t2) { - const s2 = {}; - if (!this._hasLocalGroupCounters(e2)) - return s2; - const o2 = this._getLocalGroupCounters(e2)["counters"]; - if (0 < t2.length) - t2.forEach((e3) => { - o2.has(e3) && (s2[e3] = o2.get(e3)); - }); - else - for (const r2 of o2.keys()) - s2[r2] = o2.get(r2); - return s2; - } - reset() { - this._groupCountersMap.clear(), this.EXPIRE_TIME = 3e4; - } -}; -var Po = class { - constructor(e2) { - var { manager: e2, groupID: t2, onInit: s2, onSuccess: o2, onFail: r2 } = e2; - this._n = "Polling", this._manager = e2, this._grpM = e2._grpM, this._onInit = s2, this._onSuccess = o2, this._onFail = r2, this._groupID = t2, this._timeoutID = -1, this._isRunning = false, this._proto = Cs; - } - start() { - var e2 = this._grpM.isLoggedIn(); - e2 || (this._proto = Gs), ht.l(`${this._n}.start pollingInterval:${this._manager.getPollingInterval()} isLoggedIn:` + e2), this._isRunning = true, this._request(); - } - isRunning() { - return this._isRunning; - } - _request() { - var e2 = this._onInit(this._groupID); - this._grpM.req({ P: this._proto, data: e2 }).then((e3) => { - this._onSuccess(this._groupID, e3), this.isRunning() && (-1 < this._timeoutID && clearTimeout(this._timeoutID), this._timeoutID = setTimeout(this._request.bind(this), this._manager.getPollingInterval())); - }).catch((e3) => { - this._onFail(this._groupID, e3), this.isRunning() && (-1 < this._timeoutID && clearTimeout(this._timeoutID), this._timeoutID = setTimeout(this._request.bind(this), this._manager.MAX_POLLING_INTERVAL)); - }); - } - stop() { - ht.l(this._n + ".stop"), -1 < this._timeoutID && (clearTimeout(this._timeoutID), this._timeoutID = -1), this._isRunning = false; - } - getPollingTimerID() { - return this._timeoutID; - } -}; -var Ro = class { - constructor(e2) { - this.MAX_LENGTH = e2, this.map = /* @__PURE__ */ new Map(); - } - set(e2) { - if (this.map.size >= this.MAX_LENGTH) { - const e3 = this.map.entries().next().value[0]; - this.map.delete(e3); - } - this.map.set(e2, 1); - } - has(e2) { - return this.map.has(e2); - } - delete(e2) { - this.has(e2) && this.map.delete(e2); - } - reset() { - this.map.clear(); - } -}; -var $o = ["groupID", "name", "avatar", "type", "introduction", "notification", "ownerID", "selfInfo", "createTime", "infoSequence", "lastInfoTime", "lastMessage", "nextMessageSeq", "memberNum", "maxMemberNum", "memberList", "joinOption", "groupCustomField", "muteAllMembers", "isSupportTopic", "inviteOption", "_lastRevokedTime"]; -var wo = class { - constructor(e2) { - this.groupID = "", this.name = "", this.avatar = "", this.type = "", this.introduction = "", this.notification = "", this.ownerID = "", this.createTime = "", this.infoSequence = "", this.lastInfoTime = "", this.selfInfo = { messageRemindType: "", joinTime: "", nameCard: "", role: "", userID: "", memberCustomField: void 0, readedSequence: 0, excludedUnreadSequenceList: void 0 }, this.lastMessage = { lastTime: "", lastSequence: "", fromAccount: "", messageForShow: "" }, this.nextMessageSeq = "", this.memberNum = "", this.memberCount = "", this.maxMemberNum = "", this.maxMemberCount = "", this.joinOption = "", this.inviteOption = "", this.groupCustomField = [], this.muteAllMembers = false, this.isSupportTopic = false, this._lastRevokedTime = 0, this._initGroup(e2); - } - set memberNum(e2) { - } - set maxMemberNum(e2) { - } - get memberNum() { - return this.memberCount; - } - get maxMemberNum() { - return this.maxMemberCount; - } - _initGroup(e2) { - for (const t2 in e2) - $o.indexOf(t2) < 0 || ("selfInfo" !== t2 ? ("memberNum" === t2 && (this.memberCount = e2[t2]), "maxMemberNum" === t2 && (this.maxMemberCount = e2[t2]), "isSupportTopic" !== t2 ? this[t2] = e2[t2] : this.isSupportTopic = 1 === e2[t2]) : this.updateSelfInfo(e2[t2])); - } - updateGroup(e2) { - e2.appid = void 0, e2.grossTopicNextMsgSeq = void 0, e2.selfInfo && (e2.selfInfo.grossTopicReadSeq = void 0); - const t2 = JSON.parse(JSON.stringify(e2)); - t2.lastMsgTime && (this.lastMessage.lastTime = t2.lastMsgTime), Ke(t2.muteAllMembers) || ("On" === t2.muteAllMembers ? t2.muteAllMembers = true : t2.muteAllMembers = false), t2.groupCustomField && Qe(this.groupCustomField, t2.groupCustomField), Ke(t2.memberNum) || (this.memberCount = t2.memberNum), Ke(t2.maxMemberNum) || (this.maxMemberCount = t2.maxMemberNum), Ke(t2.isSupportTopic) || (this.isSupportTopic = xe(t2.isSupportTopic) ? 1 === t2.isSupportTopic : t2.isSupportTopic), We(this, t2, ["members", "errorCode", "lastMsgTime", "groupCustomField", "memberNum", "maxMemberNum", "isSupportTopic"]), je(t2.members) && 0 < t2.members.length && t2.members.forEach((e3) => { - e3.userID === this.selfInfo.userID && We(this.selfInfo, e3, ["sequence"]); - }); - } - updateSelfInfo({ nameCard: e2, joinTime: t2, role: s2, messageRemindType: o2, readedSequence: r2, excludedUnreadSequenceList: i2 }) { - e2 = { nameCard: e2, joinTime: t2, role: s2, messageRemindType: o2, readedSequence: r2, excludedUnreadSequenceList: i2 }; - We(this.selfInfo, { ...e2 }, [], ["", null, void 0, 0, NaN]); - } - setSelfNameCard(e2) { - this.selfInfo.nameCard = e2; - } -}; -var Eo = { 3: true, 4: true, 5: true, 6: true, 17: true, 20: true, 21: true, 100: true }; -var Uo = class { - constructor(e2) { - this._grpM = e2, this._n = "AVChatRoomHandler", this._joinedGroupMap = /* @__PURE__ */ new Map(), this._pollingRequestInfoMap = /* @__PURE__ */ new Map(), this._pollingInstanceMap = /* @__PURE__ */ new Map(), this._seqSll = new Ro(200), this._IDSll = new Ro(100), this._reportMessageStackedCount = 0, this._onlineMemberCountMap = /* @__PURE__ */ new Map(), this.DEFAULT_EXPIRE_TIME = 60, this.DEFAULT_POLLING_INTERVAL = 300, this.MAX_POLLING_INTERVAL = 2e3, this._pollingInterval = this.DEFAULT_POLLING_INTERVAL, this.DEFAULT_POLLING_NO_MESSAGE_COUNT = 20, this.DEFAULT_POLLING_INTERVAL_PLUS = 2e3, this._pollingNoMessageCount = 0, this._startBroadcastSeq = 1, this._broadcastMessageIDMap = /* @__PURE__ */ new Map(), this.DEFAULT_POLLING_SIMPLIFIED_MSG = 0; - } - hasJoinedAVChatRoom() { - let e2 = []; - return 0 < (e2 = 0 < this._joinedGroupMap.size ? [...this._joinedGroupMap.values()].filter((e3) => e3.type === me) : e2).length; - } - getJoinedLiveList() { - let e2 = []; - return e2 = 0 < this._joinedGroupMap.size ? [...this._joinedGroupMap.values()].filter((e3) => e3.type === fe) : e2; - } - checkJoinedAVChatRoomByID(e2) { - return this._joinedGroupMap.has(e2); - } - getJoinedAVChatRoom() { - return 0 < this._joinedGroupMap.size ? [...this._joinedGroupMap.keys()] : []; - } - _updatedata(e2) { - var t2 = this._pollingRequestInfoMap.get(e2); - return e2 === [...this._pollingInstanceMap.keys()][0] ? { ...t2, startBroadcastSeq: this._startBroadcastSeq, simplifiedMessage: this.DEFAULT_POLLING_SIMPLIFIED_MSG } : { ...t2, simplifiedMessage: this.DEFAULT_POLLING_SIMPLIFIED_MSG }; - } - _handleSuccess(e2, t2) { - const { key: s2, nextSeq: o2, rspMsgList: r2, errorCode: i2, nextBroadcastSeq: n2, broadcastMessageList: a2 } = t2.data; - if (0 !== i2) { - const s3 = this._pollingRequestInfoMap.get(e2), o3 = new es("longPollingAVError"), r3 = s3 ? s3.key + "-" + s3.startSeq : "requestInfo is undefined"; - o3.setMessage(`${e2}-${r3}-` + t2.errorInfo).setCode(t2.errorCode).end(true); - } else - this.checkJoinedAVChatRoomByID(e2) && (Ve(s2) && xe(o2) && this._pollingRequestInfoMap.set(e2, { key: s2, startSeq: o2 }), xe(n2) && n2 > this._startBroadcastSeq && (this._startBroadcastSeq = n2), je(r2) && 0 < r2.length ? (r2.forEach((e3) => { - e3.to = e3.groupID; - }), this.onMessage(r2, e2)) : (this._pollingNoMessageCount += 1, this._pollingNoMessageCount === this.DEFAULT_POLLING_NO_MESSAGE_COUNT && (this._pollingInterval = this.DEFAULT_POLLING_INTERVAL + this.DEFAULT_POLLING_INTERVAL_PLUS)), this._onBroadcastMessage(a2)); - } - _handleFailure(e2, t2) { - } - onMessage(n2, a2) { - if (je(n2) && 0 !== n2.length) { - let t2 = this._n + ".onMessage", s2 = (a2 && (t2 += " groupID:" + a2), 0 !== this._pollingNoMessageCount && (this._pollingNoMessageCount = 0, this._pollingInterval = this.DEFAULT_POLLING_INTERVAL), null); - const h2 = [], l2 = this._get(o), c2 = this._get(p), m2 = n2.length; - 1 < m2 && n2.sort((e2, t3) => e2.sequence - t3.sequence); - var u2 = this._get(r).isUnlimitedAVChatRoom(); - let i2 = false; - if (ht.getLevel() <= 0) { - const a3 = n2.map((e2) => e2.sequence); - ht.l(`${t2} count:${a3.length} sequenceList:` + a3), a3.length = 0; - } - for (let e2 = 0; e2 < m2; e2++) { - const a3 = this.restoreMessageFromSimplified(n2[e2]); - if (Eo[a3.event]) { - if (6 === a3.event) { - if (this._grpM.isGroupAttributesUpdatedNotice(a3)) - continue; - if (this._grpM.isGroupCountersNotice(a3)) - continue; - } - if (20 !== a3.event) - if (21 !== a3.event) - if (100 !== a3.event) { - s2 = this.packMessage(a3, a3.event); - const r2 = 1 === a3.isModified; - if (i2 = 1 === a3.isHistoryMessage, !u2) { - if (this._seqSll.has(s2.sequence)) - continue; - this._seqSll.set(s2.sequence); - } - const p2 = this._IDSll.has(s2.ID); - if (p2) - ht.w(`${t2} ID:${s2.ID} has:` + p2); - else { - this._IDSll.set(s2.ID); - let e3 = false; - if (!i2 && this._isMessageSentByCurrentInstance(s2) ? r2 && (e3 = true, s2.isModified = r2, l2.updateMsgIsModifiedProp(s2)) : e3 = true, e3) { - if (s2.conversationType === le && 5 === s2.payload.operationType && this._onGroupDismissed(s2.payload.groupProfile.groupID), !i2 && s2.conversationType !== le) { - const n3 = s2.conversationID.replace(ue, ""); - this._pollingInstanceMap.has(n3) ? this._grpM.isLoggedIn() && c2.addMessageSequence({ key: Xt, message: s2 }) : (s2.type !== Z && 0 < s2.clientTime && c2.addMessageDelay(s2.clientTime), c2.addMessageSequence({ key: zt, message: s2 })); - } - h2.push(s2); - } - } - } else - this.onRoomCustomData(a3); - else - this._get(g).onMessageReactionNotify({ event: 21, dataList: a3.elements.messageReactionNotifyList }); - else - this.handleMessageRevokedNotice(a3); - } else - ht.w(t2 + ". unknown event:" + a3.event); - } - if (0 !== h2.length) { - a2 = Ze(h2); - if (0 < a2.length && this._grpM.emitOEvt(Nt, a2), !i2) { - const n3 = this.packConversationOption(h2); - 0 < n3.length && l2.onNewMessage({ conversationOptionsList: n3, isInstantMessage: true }); - } - this._checkMessageStacked(h2); - a2 = st(h2); - 0 < a2.length && this._grpM.emitOEvt(qt, a2), h2.length = 0; - } - } - } - handleMessageRevokedNotice(e2) { - const { groupID: r2, elements: { revokeMsgList: t2 }, revokerInfo: i2 } = e2, n2 = []; - t2.forEach((e3) => { - var { tinyID: e3, clientTime: t3, random: s2, sequence: o2 } = e3, e3 = { conversationID: "" + ue + r2, ID: e3 + `-${t3}-` + s2, revoker: i2.revoker, revokeReason: i2.reason || "", revokerInfo: { userID: i2.revoker, nick: "", avatar: "" }, sequence: o2 }; - n2.push(e3); - }), 0 !== n2.length && this._get(o).updateRevokerInfo(n2).then((e3) => { - this._grpM.emitOEvt(kt, e3); - }); - } - isBroadcastOrNormal(e2) { - return 3 === e2 || 17 === e2; - } - isGroupTip(e2) { - return 4 === e2 || 6 === e2; - } - isGroupSystemNotice(e2) { - return 5 === e2; - } - restoreGroupTipElements(e2 = {}) { - const { operatorInfo: t2 = {}, operatorID: s2, userIDList: o2 = [], operationType: r2 } = e2; - xe(e2.groupJoinType) || 1 !== r2 && 2 !== r2 || (e2.groupJoinType = 2 === r2 ? 0 : 1); - var { userID: i2 = s2, avatar: n2 = "", nick: a2 = "" } = t2, i2 = (e2.operatorInfo = { userID: i2, avatar: n2, nick: a2 }, o2.map((e3) => ({ userID: e3 }))); - return e2.memberInfoList = e2.memberInfoList || i2, e2; - } - restoreMessageFromSimplified(s2) { - const e2 = s2["event"]; - if (this.isBroadcastOrNormal(e2) && (s2.cloudCustomData = s2.cloudCustomData || "", s2.elements = s2.elements.map((e3) => { - var t2; - return e3.type === te && ({ content: t2 = {} } = e3, e3.content = { data: "", description: "", extension: "", ...t2 }), e3; - })), (this.isGroupTip(e2) || this.isGroupSystemNotice(e2)) && (s2.from = s2.from || "@TIM#SYSTEM"), this.isGroupTip(e2)) { - s2.elements = this.restoreGroupTipElements(s2.elements); - const { elements: e3 = {} } = s2, { operationType: t2, operatorInfo: r2 = {} } = e3; - if (1 === t2) { - const s3 = [{ userID: r2.userID }]; - e3.memberInfoList = e3.memberInfoList || s3; - } - } - if (this.isGroupSystemNotice(e2)) { - let { memberInfoList: e3, operatorInfo: t2 = {} } = s2.elements; - e3 = e3 || t2, s2.elements.memberInfoList = { userID: s2.elements.operatorID, avatar: "", nick: "", ...e3 }, s2.elements = { authentication: "", remarkInfo: "", messageKey: 1e3 * s2.time, ...s2.elements }; - var o2 = Object.keys(s2.elements).filter((e4) => "operatorInfo" !== e4).reduce((e4, t3) => ({ ...e4, [t3]: s2.elements[t3] }), {}); - s2.elements = o2; - } - return s2; - } - _onGroupDismissed(e2) { - ht.l(this._n + "._onGroupDismissed groupID:" + e2), this._grpM.deleteLocalGroupAndConversation(e2), this.reset(e2); - } - _checkMessageStacked(e2) { - var t2 = "MessageStacked", e2 = e2.length; - 100 <= e2 && (this._grpM.warn(t2, e2), this._reportMessageStackedCount < 5) && (new es(t2).setMessage(`count:${e2} groupID:` + [...this._joinedGroupMap.keys()]).setLevel("warning").end(), this._reportMessageStackedCount += 1); - } - _isMessageSentByCurrentInstance(e2) { - return !!this._get(o).isMessageSentByCurrentInstance(e2); - } - packMessage(e2, t2) { - e2.currentUser = this._grpM.getMyUserID(), e2.conversationType = 5 === t2 ? le : ue, e2.isSystemMessage = !!e2.isSystemMessage; - const s2 = new fo(e2), o2 = this.packElements(e2, t2), r2 = this._grpM.getFileDownloadProxy(), i2 = this._grpM.getDowloadFileAuthKey(), a2 = this._get(n).getFileDNList(); - return s2.setElement(o2, r2, i2, a2), s2; - } - packElements(e2, t2) { - return 4 === t2 || 6 === t2 ? (this._updateMemberCountByGroupTips(e2), { type: Z, content: { ...e2.elements, groupProfile: e2.groupProfile } }) : 5 === t2 ? { type: ee, content: { ...e2.elements, groupProfile: { ...e2.groupProfile, groupID: e2.groupID } } } : e2.elements; - } - packConversationOption(t2) { - const s2 = /* @__PURE__ */ new Map(); - for (let e2 = 0; e2 < t2.length; e2++) { - var o2 = t2[e2], r2 = o2.conversationID; - if (s2.has(r2)) { - const t3 = s2.get(r2); - "in" === (t3.lastMessage = o2).flow && t3.unreadCount++; - } else - s2.set(r2, { conversationID: o2.conversationID, unreadCount: "out" === o2.flow ? 0 : 1, type: o2.conversationType, subType: o2.conversationSubType, lastMessage: o2 }); - } - return [...s2.values()]; - } - _updateMemberCountByGroupTips(e2) { - var { groupProfile: { groupID: e2 }, elements: { onlineMemberInfo: t2 } } = e2; - if (Ne(t2)) - return; - const { onlineMemberNum: s2 = 0, expireTime: o2 = this.DEFAULT_EXPIRE_TIME } = t2, r2 = this._onlineMemberCountMap.get(e2) || {}, i2 = Date.now(); - Ne(r2) ? Object.assign(r2, { lastReqTime: 0, lastSyncTime: 0, latestUpdateTime: i2, memberCount: s2, expireTime: o2 }) : (r2.latestUpdateTime = i2, r2.memberCount = s2), this._onlineMemberCountMap.set(e2, r2); - } - _onBroadcastMessage(s2) { - if (!Ne(s2)) { - const o2 = [], r2 = s2.length; - let t2 = null; - for (let e2 = 0; e2 < r2; e2++) { - const r3 = this.restoreMessageFromSimplified(s2[e2]); - Eo[r3.event] ? ((t2 = this.packMessage(r3, r3.event)).isBroadcastMessage = true, this._broadcastMessageIDMap.has(t2.ID) || (o2.push(t2), this._broadcastMessageIDMap.set(t2.ID, 1))) : ht.w(this._n + "._onBroadcastMessage unknown event:" + r3.event); - } - 0 < o2.length && this._grpM.emitOEvt(qt, o2); - } - } - start(e2) { - if (this._pollingInstanceMap.has(e2)) { - const t2 = this._pollingInstanceMap.get(e2); - void (t2.isRunning() || t2.start()); - } else { - const t2 = new Po({ manager: this, groupID: e2, onInit: this._updatedata.bind(this), onSuccess: this._handleSuccess.bind(this), onFail: this._handleFailure.bind(this) }); - t2.start(), this._pollingInstanceMap.set(e2, t2), ht.l(this._n + ".start groupID:" + e2); - } - } - handleJoinResult(o2) { - return this._preCheck(o2.group).then(() => { - var { longPollingKey: e2, group: t2 } = o2, s2 = t2.groupID; - return this._joinedGroupMap.set(s2, t2), this._grpM.updateGroupMap([t2]), this._grpM.deleteUnjoinedAVChatRoom(s2), this._grpM.emitGroupListUpdate(true, false), Ke(e2) ? Kt({ status: $e, group: t2 }) : Promise.resolve(); - }); - } - startRunLoop(r2) { - return this.handleJoinResult(r2).then(() => { - var { longPollingKey: e2, group: t2, startSeq: s2 = 0 } = r2, o2 = t2.groupID; - return this._pollingRequestInfoMap.set(o2, { key: e2, startSeq: s2 }), this.start(o2), this._grpM.isLoggedIn() ? Kt({ status: $e, group: t2 }) : Kt({ status: $e }); - }); - } - _preCheck(e2) { - if (this._get(r).isUnlimitedAVChatRoom()) - return Promise.resolve(); - if (!this.hasJoinedAVChatRoom()) - return Promise.resolve(); - if (e2.type === fe) - return Promise.resolve(); - var [e2, t2] = this._joinedGroupMap.entries().next().value; - if (this._grpM.isLoggedIn()) { - if (t2.selfInfo.role !== Ie && t2.ownerID !== this._grpM.getMyUserID()) - return this._grpM.quitGroup(e2); - this._grpM.deleteLocalGroupAndConversation(e2); - } else - this._grpM.deleteLocalGroupAndConversation(e2); - return this.reset(e2), Promise.resolve(); - } - joinWithoutAuth(e2) { - const s2 = e2["groupID"], r2 = this._n + ".joinWithoutAuth", n2 = new es("joinWithoutAuth"); - return this._grpM.req({ P: us, data: e2 }).then(({ data: { longPollingKey: e3 } }) => { - if (n2.setMessage(`groupID:${s2} longPollingKey:` + e3).end(true), Ke(e3)) - return Bt({ code: bt }); - ht.l(r2 + " ok. groupID:" + s2), this._get(o).setCompleted("" + ue + s2); - var t2 = new wo({ groupID: s2 }); - return this.startRunLoop({ group: t2, longPollingKey: e3 }), gt({ status: $e }); - }).catch((e3) => (ht.e(r2 + ` failed. groupID:${s2} error:`, e3), n2.setError(e3).setMessage("groupID:" + s2).end(true), Bt(e3))).finally(() => { - this._grpM.get(i).reportAtOnce(); - }); - } - getGroupOnlineMemberCount(e2) { - const t2 = this._onlineMemberCountMap.get(e2) || {}, s2 = Date.now(); - return Ne(t2) || s2 - t2.lastSyncTime > 1e3 * t2.expireTime && 1e4 < s2 - t2.latestUpdateTime && 3e3 < s2 - t2.lastReqTime ? (t2.lastReqTime = s2, this._onlineMemberCountMap.set(e2, t2), this._getGroupOnlineMemberCount(e2).then((e3) => gt({ memberCount: e3.memberCount })).catch((e3) => Bt(e3))) : Kt({ memberCount: t2.memberCount }); - } - _getGroupOnlineMemberCount(r2) { - const i2 = this._n + "._getGroupOnlineMemberCount", t2 = new es("_getGroupOnlineMemberCount"); - return this._grpM.requestOnlineCount(r2).then((e2) => { - const t3 = this._onlineMemberCountMap.get(r2) || {}, { memberCount: s2 = 0, expireTime: o2 = this.DEFAULT_EXPIRE_TIME } = e2.data; - ht.l(i2 + ` ok. groupID:${r2} memberCount:${s2} expireTime:` + o2); - e2 = Date.now(); - return Ne(t3) && (t3.lastReqTime = e2), this._onlineMemberCountMap.set(r2, Object.assign(t3, { lastSyncTime: e2, latestUpdateTime: e2, memberCount: s2, expireTime: o2 })), { memberCount: s2 }; - }).catch((e2) => (ht.w(i2 + " failed. error:", e2), t2.setCode(e2.code).setMessage(`groupID:${r2} error:` + JSON.stringify(e2)).end(), Promise.reject(e2))); - } - _get(e2) { - return this._grpM.get(e2); - } - setPollingInterval(e2) { - Ke(e2) || (xe(e2) ? this._pollingInterval = this.DEFAULT_POLLING_INTERVAL = e2 : this._pollingInterval = this.DEFAULT_POLLING_INTERVAL = parseInt(e2, 10)); - } - setPollingIntervalPlus(e2) { - Ke(e2) || (xe(e2) ? this.DEFAULT_POLLING_INTERVAL_PLUS = e2 : this.DEFAULT_POLLING_INTERVAL_PLUS = parseInt(e2, 10)); - } - setPollingNoMessageCount(e2) { - Ke(e2) || (xe(e2) ? this.DEFAULT_POLLING_NO_MESSAGE_COUNT = e2 : this.DEFAULT_POLLING_NO_MESSAGE_COUNT = parseInt(e2, 10)); - } - setPollingSimplifiedMessage(e2) { - Ke(e2) || "0" !== e2 && "1" !== e2 || (this.DEFAULT_POLLING_SIMPLIFIED_MSG = parseInt(e2, 10)); - } - getPollingInterval() { - return this._pollingInterval; - } - onAVChatRoomMemberBanned(e2) { - e2 = e2.payload.groupProfile.groupID; - ht.l(this._n + ".onAVChatRoomMemberBanned groupID:" + e2), this._grpM.deleteLocalGroupAndConversation(e2), this.reset(e2); - } - restartPolling() { - ht.l(this._n + ".restartPolling count:" + this._pollingInstanceMap.size); - for (const e2 of this._pollingInstanceMap.values()) - e2.stop(), e2.start(); - } - getPollingTimerID(e2) { - if (!this._pollingInstanceMap.has(e2)) - return -1; - var t2 = this._pollingInstanceMap.get(e2).getPollingTimerID(); - return ht.l(this._n + `.getPollingTimerID groupID:${e2} timerID:` + t2), t2; - } - hasPollingInstance(e2) { - return this._pollingInstanceMap.has(e2); - } - onRoomCustomData(e2) { - var { groupID: e2, sequence: t2, time: s2, elements: o2 } = e2, o2 = o2 && o2.content; - this._get(h).onRoomCustomDataReceived(o2), ht.l(this._n + `.onRoomCustomData groupID:${e2} sequence:${t2} time:${s2} data:` + o2); - } - reset(e2) { - if (e2) { - ht.l(this._n + ".reset groupID:" + e2); - const t2 = this._pollingInstanceMap.get(e2); - t2 && t2.stop(), this._pollingInstanceMap.delete(e2), this._joinedGroupMap.delete(e2), this._pollingRequestInfoMap.delete(e2), this._onlineMemberCountMap.delete(e2); - } else { - ht.l(this._n + ".reset all"); - for (const e3 of this._pollingInstanceMap.values()) - e3.stop(); - this._pollingInstanceMap.clear(), this._joinedGroupMap.clear(), this._pollingRequestInfoMap.clear(), this._onlineMemberCountMap.clear(), this._broadcastMessageIDMap.clear(); - } - this._seqSll.reset(), this._IDSll.reset(), this._reportMessageStackedCount = 0, this._pollingInterval = this.DEFAULT_POLLING_INTERVAL = 300, this.DEFAULT_POLLING_NO_MESSAGE_COUNT = 20, this.DEFAULT_POLLING_INTERVAL_PLUS = 2e3, this._pollingNoMessageCount = 0; - } -}; -var qo = class { - constructor(e2) { - this.userID = "", this.avatar = "", this.nick = "", this.role = "", this.joinTime = "", this.lastSendMsgTime = "", this.nameCard = "", this.muteUntil = 0, this.memberCustomField = [], this.isOnline = false, this.updateMember(e2); - } - updateMember(e2) { - Ke(e2.onlineStatus) || (this.isOnline = "Online" === e2.onlineStatus); - var t2 = [null, void 0, "", 0, NaN]; - e2.memberCustomField && Qe(this.memberCustomField, e2.memberCustomField), We(this, e2, ["memberCustomField", "marks", "onlineStatus"], t2); - } - updateRole(e2) { - ["Owner", "Admin", "Member"].indexOf(e2) < 0 || (this.role = e2); - } - updateMuteUntil(e2) { - Ke(e2) || (this.muteUntil = Math.floor((Date.now() + 1e3 * e2) / 1e3)); - } - updateNameCard(e2) { - Ke(e2) || (this.nameCard = e2); - } - updateMemberCustomField(e2) { - e2 && Qe(this.memberCustomField, e2); - } -}; -var No = class { - constructor(e2) { - this._grpM = e2, this._n = "GroupMemberHandler", this.groupMemberListMap = /* @__PURE__ */ new Map(), this.DEFAULT_MEMBER_INFO_FILTER = ["Role", "JoinTime", "NameCard", "ShutUpUntil", "OnlineStatus"], this._grpM.getIEmitInst().on(Jt.PROFILE_UPDATED, this._onProfileUpdated, this); - } - _onProfileUpdated({ data: t2 }) { - for (let e2 = 0; e2 < t2.length; e2++) { - const s2 = t2[e2]; - this.groupMemberListMap.forEach((e3) => { - e3.has(s2.userID) && e3.get(s2.userID).updateMember({ nick: s2.nick, avatar: s2.avatar }); - }); - } - } - deleteGroupMemberList(e2) { - this.groupMemberListMap.delete(e2); - } - getGroupMemberList({ groupID: r2, role: e2, offset: s2 = 0, count: o2 = 15, filter: l2 }) { - const i2 = this._n + ".getGroupMemberList", n2 = this._grpM.hasLocalGroup(r2); - if (ht.l(i2 + ` groupID:${r2} role:${e2} offset:${s2} count:${o2} hasLocalGroup:` + n2), !n2) - return Kt({ memberList: [], offset: 0 }); - if (this._grpM.getLocalGroupProfile(r2).type === me) { - if (this._grpM.canIUse(M.AV_MBR_LIST)) - return this._getAVChatRoomMemberList({ groupID: r2, offset: s2, filter: l2 }); - this._grpM.warn("LiveOnlineMember"); - } - let a2; - e2 !== Me && e2 !== Ie && e2 !== ye || (a2 = e2); - const g2 = new es("getGroupMemberList"); - let u2 = 0; - const p2 = { groupID: r2, limit: 100 < o2 ? 100 : o2, memberRoleFilter: a2 ? [a2] : void 0, memberInfoFilter: this.DEFAULT_MEMBER_INFO_FILTER }; - rt({ groupID: r2 }) ? p2.next = "" + s2 : (p2.offset = s2, u2 = s2 + o2); - let h2 = []; - return this._grpM.req({ P: ks, data: p2 }).then(({ data: { members: e3, memberNum: s3, next: o3 } }) => (Ke(o3) || (u2 = Ne(o3) ? 0 : o3), je(e3) && 0 !== e3.length ? (this._grpM.hasLocalGroup(r2) && (this._grpM.getLocalGroupProfile(r2).memberNum = s3), h2 = this._updateLocalGroupMemberMap(r2, e3), this._grpM.get(t).getUserProfile({ userIDList: e3.map((e4) => e4.userID), tagList: [Re.NICK, Re.AVATAR] })) : (u2 = 0, Promise.resolve([])))).then((e3) => { - const t2 = e3["data"]; - if (!je(t2) || 0 === t2.length) - return Kt({ memberList: [], offset: u2 }); - e3 = t2.map((e4) => ({ userID: e4.userID, nick: e4.nick, avatar: e4.avatar })); - return this._updateLocalGroupMemberMap(r2, e3), h2.length < o2 && (u2 = 0), g2.setMessage(`groupID:${r2} offset:${s2} count:` + o2).end(), ht.l(i2 + " ok."), gt({ memberList: h2, offset: u2 }); - }).catch((e3) => (g2.setError(e3).end(), ht.e(i2 + " failed. error:", e3), Bt(e3))); - } - _getAVChatRoomMemberList({ groupID: o2, offset: e2, filter: t2 }) { - const r2 = this._n + "._getAVChatRoomMemberList", i2 = new es("_getAVChatRoomMemberList"); - return i2.setMessage(`groupID:${o2} offset:${e2} filter:` + t2), this._grpM.req({ P: Os, data: { groupID: o2, offset: e2, filter: t2 } }).then((e3) => { - const { memberList: t3 = [], offset: s2 = 0 } = e3.data; - i2.end(), ht.l(r2 + ` ok. member count:${t3.length}, next request timestamp:` + s2); - e3 = t3.map((e4) => ({ ...e4, onlineStatus: "Online" })), e3 = this._updateLocalGroupMemberMap(o2, e3); - return gt({ memberList: e3, offset: s2 }); - }).catch((e3) => (i2.setError(e3).end(), ht.e(r2 + " failed. error:", e3), Bt(e3))); - } - getGroupMemberProfile(e2) { - var s2 = "getGroupMemberProfile", o2 = this._n + "." + s2; - let r2 = "groupID:" + e2.groupID; - 5 < e2.userIDList.length ? r2 += " userIDList.length:" + e2.userIDList.length : r2 += " userIDList:" + e2.userIDList, ht.l(o2 + " " + r2), 50 < e2.userIDList.length && (e2.userIDList = e2.userIDList.slice(0, 50)); - const { groupID: i2, userIDList: n2 } = e2, a2 = this._grpM.getLocalGroupProfile(i2); - if (a2 && ot(a2.type)) { - const e3 = Rt; - return Bt({ code: e3, message: this._grpM.getErrMsg(e3, s2) }); - } - const u2 = new es(s2); - return u2.setMessage(r2), this._getGroupMemberProfileAdvance({ ...e2, userIDList: n2 }).then((e3) => { - const s3 = e3.data["members"]; - return je(s3) && 0 !== s3.length ? (this._updateLocalGroupMemberMap(i2, s3), this._grpM.get(t).getUserProfile({ userIDList: s3.map(({ userID: e4 }) => e4), tagList: [Re.NICK, Re.AVATAR] })) : Kt([]); - }).then((e3) => { - e3 = e3.data.map(({ userID: e4, nick: t2, avatar: s3 }) => ({ userID: e4, nick: t2, avatar: s3 })), this._updateLocalGroupMemberMap(i2, e3), e3 = n2.filter((e4) => this.hasLocalGroupMember(i2, e4)).map((e4) => this.getLocalGroupMemberInfo(i2, e4)); - return u2.end(), gt({ memberList: e3 }); - }); - } - addGroupMember(i2) { - const n2 = this._n + ".addGroupMember", e2 = i2["groupID"], a2 = this._grpM.getLocalGroupProfile(e2), t2 = a2["type"], u2 = new es("addGroupMember"); - if (u2.setMessage(`groupID:${e2} groupType:` + t2), ot(t2)) { - const i3 = new mt({ code: Gt }); - return u2.setError(i3).end(), Bt(i3); - } - return i2.userIDList = i2.userIDList.map((e3) => ({ userID: e3 })), ht.l(n2 + " groupID:" + e2), this._grpM.req({ P: xs, data: i2 }).then(({ data: { members: e3 } }) => { - ht.l(n2 + " ok"); - var t3 = e3.filter((e4) => 1 === e4.result).map((e4) => e4.userID), s2 = e3.filter((e4) => 0 === e4.result).map((e4) => e4.userID), o2 = e3.filter((e4) => 2 === e4.result).map((e4) => e4.userID), e3 = e3.filter((e4) => 4 === e4.result).map((e4) => e4.userID), r2 = `groupID:${i2.groupID}, successUserIDList:${t3}, failureUserIDList:${s2}, existedUserIDList:${o2}, overLimitUserIDList:` + e3; - return u2.setMoreMessage(r2).end(), 0 === t3.length ? gt({ successUserIDList: t3, failureUserIDList: s2, existedUserIDList: o2, overLimitUserIDList: e3 }) : (this._updateConvGroupProfile(a2), gt({ successUserIDList: t3, failureUserIDList: s2, existedUserIDList: o2, overLimitUserIDList: e3, group: a2 })); - }).catch((e3) => (u2.setError(e3).end(), ht.e(n2 + " failed. error:", e3), Bt(e3))); - } - deleteGroupMember(e2) { - const t2 = this._n + ".deleteGroupMember", { groupID: s2, userIDList: o2 } = e2, r2 = this._grpM.getLocalGroupProfile(s2); - if (Ke(r2)) - return Bt({ code: Mt }); - if (ot(r2.type)) - return this._grpM.canIUse(M.AV_BAN_MBR) ? this._banAVChatRoomMember(e2) : this._grpM.noUse("deleteGroupMember"); - var i2 = `groupID:${s2} ` + (5 < o2.length ? "userIDList.length:" + o2.length : "userIDList:" + o2); - ht.l(t2 + ` groupID:${s2} userIDList:`, o2); - const n2 = new es("deleteGroupMember"); - return n2.setMessage(i2), this._grpM.req({ P: Vs, data: e2 }).then(() => (n2.end(), ht.l(t2 + " ok"), this._updateConvGroupProfile(r2), this.deleteLocalGroupMembers(s2, o2), gt({ group: r2, userIDList: o2 }))).catch((e3) => (n2.setError(e3).end(), ht.e(t2 + " failed. error:", e3), Bt(e3))); - } - _updateConvGroupProfile(e2) { - this._grpM.get(o).updateConvGroupProfile([e2]); - } - _banAVChatRoomMember(e2) { - const t2 = this._n + "._banAVChatRoomMember", { groupID: s2, userIDList: o2 } = e2, r2 = `groupID:${s2} ` + (5 < o2.length ? "userIDList.length:" + o2.length : "userIDList:" + o2), i2 = new es("_banAVChatRoomMember"), n2 = (i2.setMessage(r2), ht.l(t2 + ` groupID:${s2} userIDList:`, o2), this._grpM.getLocalGroupProfile(s2)); - return Ke(e2.duration) || 0 === e2.duration ? Bt({ code: Pt }) : this._grpM.req({ P: Hs, data: e2 }).then(() => (i2.end(), ht.l(t2 + " ok"), this.deleteLocalGroupMembers(s2, o2), gt({ group: n2, userIDList: o2 }))).catch((e3) => (i2.setError(e3).end(), ht.e(t2 + " failed. error:", e3), Bt(e3))); - } - setGroupMemberMuteTime(e2) { - const { groupID: s2, userID: t2, muteTime: o2 } = e2, r2 = this._n + ".setGroupMemberMuteTime"; - if (t2 === this._grpM.getMyUserID()) - return Bt({ code: vt }); - e2 = `groupID:${s2} userID:${t2} muteTime:` + o2; - ht.l(r2 + " " + e2); - const i2 = new es("setGroupMemberMuteTime"); - return i2.setMessage(e2), this.modifyGroupMemberInfo({ groupID: s2, userID: t2, muteTime: o2 }).then((e3) => { - i2.end(), ht.l(r2 + " ok"); - var t3 = this._grpM.getLocalGroupProfile(s2); - return gt({ group: t3, member: e3 }); - }).catch((e3) => (i2.setError(e3).end(), ht.e(r2 + " failed. error:", e3), Bt(e3))); - } - setGroupMemberRole(e2) { - const t2 = this._n + ".setGroupMemberRole", { groupID: s2, userID: o2, role: r2 } = e2, i2 = `groupID:${s2} userID:${o2} role:` + r2, n2 = this._grpM.getLocalGroupProfile(s2); - if (n2 && n2.selfInfo.role !== Ie) - return Bt({ code: At }); - const a2 = [Me, ye]; - if (rt({ groupID: s2 }) && a2.push(De), a2.indexOf(r2) < 0) - return Bt({ code: Tt }); - if (o2 === this._grpM.getMyUserID()) - return Bt({ code: St }); - const u2 = new es("setGroupMemberRole"); - return u2.setMessage(i2), ht.l(t2 + " " + i2), this.modifyGroupMemberInfo({ groupID: s2, userID: o2, role: r2 }).then((e3) => (u2.end(), ht.l(t2 + " ok"), gt({ group: n2, member: e3 }))).catch((e3) => (u2.setError(e3).end(), ht.e(t2 + " failed. error:", e3), Bt(e3))); - } - _filterProfanity(e2, t2) { - const s2 = this._grpM.get(c); - if (!s2) - return true; - var { isAllowedToSend: o2, modifiedText: r2 } = s2.filterText(t2[e2], D); - return true === o2 && (t2[e2] = r2, true); - } - setGroupMemberNameCard(e2) { - const t2 = "setGroupMemberNameCard", s2 = this._n + "." + t2; - if (e2.nameCard && false === this._filterProfanity("nameCard", e2)) - return Bt({ code: Ut }); - const { groupID: o2, userID: r2 = this._grpM.getMyUserID(), nameCard: i2 } = e2, n2 = `groupID:${o2} userID:${r2} nameCard:` + i2; - ht.l(s2 + " " + n2); - e2 = this._grpM.getLocalGroupProfile(o2); - if (e2 && ot(e2.type)) { - const e3 = Rt; - return Bt({ code: e3, message: this._grpM.getErrMsg(e3, t2) }); - } - const a2 = new es(t2); - return a2.setMessage(n2), this.modifyGroupMemberInfo({ groupID: o2, userID: r2, nameCard: i2 }).then((e3) => { - ht.l(s2 + " ok"), a2.end(); - const t3 = this._grpM.getLocalGroupProfile(o2); - return r2 === this._grpM.getMyUserID() && t3 && t3.setSelfNameCard(i2), gt({ group: t3, member: e3 }); - }).catch((e3) => (a2.setError(e3).end(), ht.e(s2 + " failed. error:", e3), Bt(e3))); - } - setGroupMemberCustomField(e2) { - const t2 = "setGroupMemberCustomField", s2 = this._n + "." + t2, { groupID: o2, userID: r2 = this._grpM.getMyUserID(), memberCustomField: i2 } = e2, n2 = `groupID:${o2} userID:${r2} memberCustomField:` + JSON.stringify(i2); - ht.l(s2 + " " + n2); - e2 = this._grpM.getLocalGroupProfile(o2); - if (e2 && ot(e2.type)) { - const e3 = Rt; - return Bt({ code: e3, message: this._grpM.getErrMsg(e3, t2) }); - } - const a2 = new es(t2); - return a2.setMessage(n2), this.modifyGroupMemberInfo({ groupID: o2, userID: r2, memberCustomField: i2 }).then((e3) => { - a2.end(), ht.l(s2 + " ok"); - var t3 = this._grpM.getLocalGroupProfile(o2); - return gt({ group: t3, member: e3 }); - }).catch((e3) => (a2.setError(e3).end(), ht.e(s2 + " failed. error:", e3), Bt(e3))); - } - modifyGroupMemberInfo(t2) { - let { groupID: s2, userID: o2 } = t2, e2 = void 0; - return it(s2) && (s2 = nt(e2 = s2)), this._grpM.req({ P: js, data: { ...t2, groupID: s2, topicID: e2 } }).then(() => { - if (this.hasLocalGroupMember(s2, o2)) { - const e4 = this.getLocalGroupMemberInfo(s2, o2); - return Ke(t2.muteTime) || e4.updateMuteUntil(t2.muteTime), Ke(t2.role) || e4.updateRole(t2.role), Ke(t2.nameCard) || e4.updateNameCard(t2.nameCard), Ke(t2.memberCustomField) || e4.updateMemberCustomField(t2.memberCustomField), e4; - } - const e3 = this._grpM.getLocalGroupProfile(s2); - if (e3 && !ot(e3.type)) - return this.getGroupMemberProfile({ groupID: s2, userIDList: [o2] }).then(({ data: { memberList: [e4] } }) => e4); - }); - } - markGroupMemberList(h2) { - const r2 = this._n + ".markGroupMemberList", { groupID: e2, markType: t2, enableMark: s2, userIDList: i2 = [] } = h2, o2 = `groupID:${e2} markType:${t2} enableMark:${s2} userIDList count:` + i2.length; - ht.l(r2 + " " + o2); - let n2 = 2; - const a2 = []; - true === s2 && (n2 = 1); - let u2 = [...i2]; - 500 < i2.length && (u2 = i2.slice(0, 500), ht.w(r2 + " the length of userIDList cannot exceed 500")), u2.forEach((e3) => { - a2.push({ userID: e3, markType: [t2] }); - }), u2 = null; - const p2 = new es("markGroupMemberList"); - return p2.setMessage(o2), this._grpM.req({ P: Ks, data: { groupID: e2, operationType: n2, memberList: a2 } }).then((e3) => { - const { memberList: t3 = [] } = e3.data, s3 = [], o3 = []; - t3.length === i2.length ? s3.push(...i2) : (t3.forEach((e4) => { - s3.push(e4.userID); - }), i2.forEach((e4) => { - s3.includes(e4) || o3.push(e4); - })); - e3 = `success count:${s3.length} fail count:` + o3.length; - return p2.setMessage(e3).end(), ht.l(r2 + " ok. " + e3), gt({ successUserIDList: s3, failureUserIDList: o3 }); - }).catch((e3) => (p2.setError(e3).end(), ht.e(r2 + " failed. error:", e3), Bt(e3))); - } - _getGroupMemberProfileAdvance(e2) { - return this._grpM.req({ P: Fs, data: { ...e2, memberInfoFilter: e2.memberInfoFilter || this.DEFAULT_MEMBER_INFO_FILTER } }); - } - _updateLocalGroupMemberMap(t2, e2) { - return je(e2) && 0 !== e2.length ? e2.map((e3) => (this.hasLocalGroupMember(t2, e3.userID) ? this.getLocalGroupMemberInfo(t2, e3.userID).updateMember(e3) : this.setLocalGroupMember(t2, new qo(e3)), this.getLocalGroupMemberInfo(t2, e3.userID))) : []; - } - deleteLocalGroupMembers(e2, t2) { - const s2 = this.groupMemberListMap.get(e2); - s2 && t2.forEach((e3) => { - s2.delete(e3); - }); - } - getLocalGroupMemberInfo(e2, t2) { - return this.groupMemberListMap.has(e2) ? this.groupMemberListMap.get(e2).get(t2) : null; - } - setLocalGroupMember(e2, t2) { - this.groupMemberListMap.has(e2) ? this.groupMemberListMap.get(e2).set(t2.userID, t2) : (t2 = (/* @__PURE__ */ new Map()).set(t2.userID, t2), this.groupMemberListMap.set(e2, t2)); - } - getLocalGroupMemberList(e2) { - return this.groupMemberListMap.get(e2); - } - hasLocalGroupMember(e2, t2) { - return this.groupMemberListMap.has(e2) && this.groupMemberListMap.get(e2).has(t2); - } - hasLocalGroupMemberMap(e2) { - return this.groupMemberListMap.has(e2); - } - reset() { - this.groupMemberListMap.clear(); - } -}; -function ko(e2) { - var t2 = e2.lastIndexOf("."); - return -1 === t2 ? e2 : e2.slice(0, t2); -} -function Oo(e2) { - const { androidInfo: t2 = {}, androidOPPOChannelID: s2 = "" } = e2, o2 = t2.OPPOChannelID || s2, { sound: r2 = "", FCMChannelID: i2 = "", ...n2 } = t2; - return { ...n2, Sound: ko(r2), OPPOChannelID: o2, GoogleChannelID: i2 }; -} -function Fo(e2) { - var { apnsInfo: e2 = {}, ignoreIOSBadge: t2 = false, disableVoipPush: s2 } = e2, t2 = true === e2.ignoreIOSBadge || true === t2 ? 1 : 0; - let o2 = void 0; - return Ke(s2) || (o2 = false === s2 ? 1 : 0), Ke(e2.disableVoipPush) || (o2 = false === e2.disableVoipPush ? 1 : 0), { ...e2, badgeMode: t2, isVoipPush: o2 }; -} -function xo(e2) { - if (He(e2)) - return { pushFlag: true === e2.disablePush ? 1 : 0, title: e2.title || "", desc: e2.description || "", ext: e2.extension || "", apnsInfo: Fo(e2), androidInfo: Oo(e2) }; -} -var Vo = 1; -var Ho = 15; -var jo = [17, 18, 20]; -var Ko = class { - constructor(e2) { - this._grpM = e2, this._n = "GroupSystemNoticeHandler", this.pendencyMap = /* @__PURE__ */ new Map(); - } - onNewGroupSystemNotice(e2) { - var { dataList: e2, isSyncingEnded: t2, isInstantMessage: s2 } = e2, { eventDataList: e2, result: r2 } = (ht.d(this._n + ".onReceiveSystemNotice count:" + e2.length), this._assembly({ notifiesList: e2, isInstantMessage: s2 })); - 0 < e2.length && (this._grpM.get(o).onNewMessage({ conversationOptionsList: e2, isInstantMessage: s2 }), this._onReceivedGroupSystemNotice({ result: r2, isInstantMessage: s2 })), s2 ? 0 < r2.length && this._grpM.emitOEvt(qt, r2) : true === t2 && this._clearGroupSystemNotice(); - } - _assembly({ notifiesList: e2, isInstantMessage: l2 }) { - let t2 = null; - const s2 = e2.length; - let r2 = 0; - const i2 = [], n2 = { conversationID: le, unreadCount: 0, type: le, subType: null, lastMessage: null }; - for (r2 = 0; r2 < s2; r2++) { - const s3 = e2[r2], { groupProfile: { communityType: a2 = 0, topicID: u2 }, elements: { topicIDList: p2, operationType: h2 } } = s3; - if (!(2 !== a2 || Ne(u2) && Ne(p2))) { - if (jo.includes(h2)) { - this._handleTopicSystemNotice(s3); - continue; - } - Ne(u2) || (s3.to = u2); - } - s3.elements.operationType !== Ho && (s3.currentUser = this._grpM.getMyUserID(), s3.conversationType = le, s3.conversationID = le, (t2 = new fo(s3)).setElement({ type: ee, content: { ...s3.elements, groupProfile: { ...s3.groupProfile } } }), t2.isSystemMessage = true, (1 === t2.sequence && 1 === t2.random || 2 === t2.sequence && 2 === t2.random) && (t2.sequence = ze(), t2.random = ze(), t2.generateMessageID(), ht.l(this._n + "._assembly regenerate ID:" + t2.ID)), this._grpM.get(o).pushIntoNoticeResult(i2, t2) && (l2 ? n2.unreadCount++ : t2.setIsRead(true), n2.subType = t2.conversationSubType)); - } - return n2.lastMessage = i2[i2.length - 1], { eventDataList: 0 < i2.length ? [n2] : [], result: i2 }; - } - _clearGroupSystemNotice() { - this._getPendencyList().then((e2) => { - e2.forEach((e3) => { - this.pendencyMap.set(`${e3.from}_${e3.groupID}_` + e3.to, e3); - }); - const t2 = this._grpM.get(o).getLocalMessageList(le), i2 = []; - t2.forEach((e3) => { - const { operatorID: t3, operationType: s2, groupProfile: o2 } = e3.payload; - if (s2 === Vo) { - const s3 = `${t3}_${o2.groupID}_` + o2.to, r2 = this.pendencyMap.get(s3); - r2 && xe(r2.handled) && 0 !== r2.handled && i2.push(e3); - } - }), this.deleteGroupSystemNotice({ messageList: i2 }); - }); - } - deleteGroupSystemNotice(e2) { - const s2 = this._n + ".deleteGroupSystemNotice"; - return je(e2.messageList) && 0 !== e2.messageList.length ? (ht.l(s2 + " " + e2.messageList.map((e3) => e3.ID)), this._grpM.req({ P: Ls, data: { messageListToDelete: e2.messageList.map((e3) => ({ from: le, messageSeq: e3.clientSequence, messageRandom: e3.random })) } }).then(() => { - ht.l(s2 + " ok"); - const t2 = this._grpM.get(o); - return e2.messageList.forEach((e3) => { - t2.deleteLocalMessage(e3); - }), gt(); - }).catch((e3) => (ht.e(s2 + " error:", e3), Bt(e3)))) : Kt(); - } - _getPendencyList(e2 = {}) { - var { type: e2, startTime: t2 = 0, limit: s2 = 20 } = e2; - return this._grpM.req({ P: Ds, data: { type: e2, startTime: t2, limit: s2, handleAccount: this._grpM.getMyUserID() } }).then((e3) => { - const t3 = e3.data.pendencyList; - return 0 !== e3.data.nextStartTime ? this._getPendencyList({ startTime: e3.data.nextStartTime }).then((e4) => [...t3, ...e4]) : t3; - }); - } - getGroupApplicationList() { - return this._getPendencyList().then((t2) => this._getPendencyList({ type: de }).then((e2) => (t2.push(...e2), this._handlePendencyResult(t2))).catch((e2) => this._handlePendencyResult(t2))); - } - _handlePendencyResult(e2) { - const t2 = []; - return e2.forEach((e3) => { - this.pendencyMap.set(`${e3.from}_${e3.groupID}_` + e3.to, e3), 0 === e3.handled && t2.push({ applicant: e3.from, applicantNick: e3.fromUserNickName, groupName: e3.groupName, groupID: e3.groupID, authentication: e3.authentication, messageKey: e3.time, applicationType: e3.applicationType, userID: e3.userID, note: e3.note }); - }), Kt({ applicationList: t2 }); - } - _onReceivedGroupSystemNotice({ result: e2, isInstantMessage: t2 }) { - t2 && e2.forEach((e3) => { - switch (e3.payload.operationType) { - case 1: - break; - case 2: - this._onApplyJoinGroup(e3); - break; - case 3: - break; - case 4: - this._onMemberKicked(e3); - break; - case 5: - this._onGroupDismissed(e3); - break; - case 6: - break; - case 7: - this._onInviteGroup(e3); - break; - case 8: - this._onQuitGroup(e3); - break; - case 9: - this._onSetManager(e3); - break; - case 10: - this._onDeleteManager(e3); - break; - case 11: - case 12: - case 15: - break; - case 20: - this._onMessageRemindTypeSynced(e3); - break; - case 21: - this._grpM.onAVChatRoomMemberBanned(e3); - } - }); - } - _onApplyJoinGroup(e2) { - var { groupID: e2, groupType: t2 } = e2.payload.groupProfile, s2 = this._grpM.hasLocalGroup(e2); - ht.l(this._n + `._onApplyJoinGroup groupID:${e2} groupType:${t2} hasGroup:` + s2), s2 || ot(t2) || this._grpM.getGroupProfile({ groupID: e2 }).then(({ data: { group: e3 } }) => { - e3 && (this._grpM.updateGroupMap([e3]), e3 = !e3.isSupportTopic, this._grpM.emitGroupListUpdate(true, e3)); - }); - } - _onMemberKicked(e2) { - e2 = e2.payload.groupProfile.groupID; - this._grpM.hasLocalGroup(e2) && this._grpM.deleteLocalGroupAndConversation(e2); - } - _onGroupDismissed(e2) { - e2 = e2.payload.groupProfile.groupID; - this._grpM.hasLocalGroup(e2) && this._grpM.deleteLocalGroupAndConversation(e2); - const t2 = this._grpM["_AVChatRoomHandler"]; - t2 && t2.checkJoinedAVChatRoomByID(e2) && t2.reset(e2); - } - _onInviteGroup(e2) { - const t2 = e2.payload.groupProfile.groupID, s2 = this._grpM.hasLocalGroup(t2); - ht.l(`${this._n}._onInviteGroup groupID:${t2} hasGroup:` + s2), this._grpM.getGroupProfile({ groupID: t2 }).then(() => { - this._grpM.emitGroupListUpdate(), this._grpM.get(o).pullMsgOnInvite("" + ue + t2); - }); - } - _onQuitGroup(e2) { - var { groupID: e2, groupType: t2 } = e2.payload.groupProfile, s2 = this._grpM.hasLocalGroup(e2); - ht.l(this._n + `._onQuitGroup groupID:${e2} groupType:${t2} hasGroup:` + s2), s2 && this._grpM.deleteLocalGroupAndConversation(e2); - } - _onSetManager(e2) { - const { to: t2, groupID: s2 } = e2.payload.groupProfile, o2 = this._grpM.getGroupMemberHandler().getLocalGroupMemberInfo(s2, t2); - o2 && o2.updateRole(Me); - } - _onDeleteManager(e2) { - const { to: t2, groupID: s2 } = e2.payload.groupProfile, o2 = this._grpM.getGroupMemberHandler().getLocalGroupMemberInfo(s2, t2); - o2 && o2.updateRole(ye); - } - _onMessageRemindTypeSynced(e2) { - var t2 = e2.payload.groupProfile["groupID"], e2 = e2.payload.messageRemindType; - this._grpM.get(o).onGroupMsgRemindTypeUpdated({ groupID: t2, messageRemindType: e2 }); - } - _handleTopicSystemNotice(e2) { - const { groupProfile: { groupID: t2, topicID: o2 }, elements: { operationType: r2, topicIDList: i2, messageRemindType: n2 } } = e2, a2 = this._grpM.get(s); - 17 === r2 ? a2.onTopicCreated({ groupID: t2, topicID: o2 }) : 18 === r2 ? a2.onTopicDeleted({ groupID: t2, topicIDList: i2 }) : 20 === r2 && a2.onMessageRemindTypeUpdated({ groupID: t2, topicID: o2, messageRemindType: n2 }); - } - reset() { - this.pendencyMap.clear(); - } -}; -var Bo = class extends class { - constructor(e2) { - this._m = e2, this._n = ""; - } - isLoggedIn() { - return this._m.get(r).isLoggedIn(); - } - isOversea() { - return this._m.get(r).isOversea(); - } - isPrivateNetWork() { - const e2 = this._m.get(r); - return e2.isPrivateNetWork() && !e2.getFileDownloadProxy(); - } - getFileDownloadProxy() { - return this._m.get(r).getFileDownloadProxy(); - } - getDowloadFileAuthKey() { - return this._m.get(r).getDowloadFileAuthKey(); - } - getMyUserID() { - return this._m.get(r).getUserID(); - } - getMyTinyID() { - return this._m.get(r).getTinyID(); - } - getSDKAppID() { - return this._m.get(r).getSDKAppID(); - } - isIntl() { - return this._m.get(r).isIntl(); - } - isUsingChatCore() { - return this._m.get(r).isUsingChatCore(); - } - isDevMode() { - return this._m.get(r).isDevMode(); - } - get(e2) { - return this._m.get(e2); - } - getPlatform() { - return k; - } - getCloudConfig(e2) { - return this._m.get(u).getCloudConfig(e2); - } - emitOEvt(e2, t2) { - this._m.getOEmitInst().emit(e2, t2); - } - emitIEvt(e2, t2) { - this._m.getIEmitInst().emit(e2, t2); - } - getIEmitInst() { - return this._m.getIEmitInst(); - } - req(e2) { - return this._m.get(a).req(e2); - } - canIUse(e2) { - return this._m.get(l).canIUse(e2); - } - getErrMsg(e2, t2, s2) { - return this._m.getErrMsg(e2, t2, s2); - } - warn(e2, t2, s2) { - e2 = this.getErrMsg(e2, t2, s2); - e2 && ht.w(e2); - } - noUse(e2) { - var t2 = Et; - return Bt({ code: t2, message: this.getErrMsg(t2, e2) }); - } -} { - constructor(e2) { - super(e2), this._n = "GroupModule", this._commonGroupHandler = new Mo(this), this._groupAttributesHandler = new bo(this), this._groupCountersHandler = new vo(this), this._AVChatRoomHandler = new Uo(this), this._groupTipsHandler = new Io(this), this._groupSystemNoticeHandler = new Ko(this), this._groupMemberHandler = new No(this), this.groupMap = /* @__PURE__ */ new Map(), this._unjoinedAVChatRoomList = /* @__PURE__ */ new Map(), this._receiptDetailCompleteMap = /* @__PURE__ */ new Map(), this._onlineMemberCountMap = /* @__PURE__ */ new Map(), this._timeoutIDs = [], this.getIEmitInst().on(Jt.CLOUD_CONFIG, this._onCloudConfig, this); - } - _onCloudConfig() { - var e2 = this.getCloudConfig("polling_interval"), t2 = this.getCloudConfig("polling_interval_plus"), s2 = this.getCloudConfig("polling_no_msg_count"), o2 = this.getCloudConfig("polling_simplified_msg"), r2 = this.getCloudConfig("paging_grp_count"); - ht.l(this._n + `._onCloudConfig pollingInterval:${e2} pollingIntervalPlus:${t2} pollingNoMessageCount:${s2} pollingSimplifiedMessage:${o2} pagingGroupCount:` + r2), this._AVChatRoomHandler.setPollingInterval(e2), this._AVChatRoomHandler.setPollingIntervalPlus(t2), this._AVChatRoomHandler.setPollingNoMessageCount(s2), this._AVChatRoomHandler.setPollingSimplifiedMessage(o2), this._commonGroupHandler.setPagingGroupCount(r2); - } - onCheckTimer(e2) { - this.isLoggedIn() && (this._commonGroupHandler.onCheckTimer(e2), this._groupTipsHandler.onCheckTimer(e2)); - } - guardForAVChatRoom(t2) { - if (t2.conversationType !== ue) - return Kt(); - { - const s2 = it(t2.to) ? nt(t2.to) : t2.to; - return this.hasLocalGroup(s2) ? Kt() : this.getGroupProfile({ groupID: s2 }).then((e2) => { - e2 = e2.data.group.type; - if (ht.l(`${this._n}.guardForAVChatRoom. groupID:${s2} type:` + e2), e2 !== me) - return Kt(); - { - const e3 = dt; - return Bt(new mt({ code: e3, message: this.getErrMsg(e3, t2.from, s2), data: { message: t2 } })); - } - }); - } - } - checkJoinedAVChatRoomByID(e2) { - return this._AVChatRoomHandler.checkJoinedAVChatRoomByID(e2); - } - onNewMessage(e2) { - this._commonGroupHandler.onNewMessage(e2); - } - updateNextMessageSeq(e2) { - if (je(e2)) { - const o2 = this.get(s); - e2.forEach((e3) => { - var t2 = e3.conversationID.replace(ue, ""); - it(t2) && o2.updateUnreadCountAndLastMsg(t2, e3.lastMessage), this.groupMap.has(t2) && (this.groupMap.get(t2).nextMessageSeq = e3.lastMessage.sequence + 1); - }); - } - } - onNewGroupTips(e2) { - this._groupTipsHandler.onNewGroupTips(e2); - } - onMsgRevoked(e2, t2 = true) { - this._commonGroupHandler.onMsgRevoked(e2, t2); - } - onNewGroupSystemNotice(e2) { - this._groupSystemNoticeHandler.onNewGroupSystemNotice(e2); - } - onMsgReadNotice(e2) { - e2.dataList.forEach((i2) => { - const e3 = i2.elements["groupMessageReadNotice"]; - if (!Ke(e3)) { - const i3 = this.get(o); - e3.forEach((e4) => { - var { groupID: e4, topicID: t2, lastMessageSeq: s2 } = e4; - ht.l(this._n + `.onMsgReadNotice groupID:${e4} lastMessageSeq:` + s2); - let o2 = "" + ue + e4, r2 = true; - Ne(t2) || (o2 = "" + ue + t2, r2 = false), i3.updateIsReadAfterReadReport({ conversationID: o2, lastMessageSeq: s2 }), i3.updateUnreadCount(o2, r2), i3.clearGroupAtInfoList(o2, r2); - }); - } - }); - } - onReadReceiptList(e2) { - ht.l(this._n + ".onReadReceiptList options:", e2), e2.dataList.forEach((e3) => { - const { groupProfile: t2, elements: s2 } = e3, r2 = t2["groupID"], i2 = this.get(o), n2 = s2["readReceiptList"]; - i2.updateReadReceiptInfo({ groupID: r2, readReceiptList: n2 }); - }); - } - onMsgModified(e2) { - ht.l(this._n + ".onMsgModified options:", e2); - const t2 = this.get(o); - e2.dataList.forEach((e3) => { - t2.onMessageModified({ ...e3, conversationType: ue, to: e3.topicID || e3.groupID }); - }); - } - deleteGroupSystemNotice(e2) { - this._groupSystemNoticeHandler.deleteGroupSystemNotice(e2); - } - initGroupMap(e2) { - this.groupMap.set(e2.groupID, new wo(e2)); - } - clearGroupMap() { - this.groupMap.clear(); - } - deleteGroup(e2) { - this.groupMap.delete(e2); - } - updateGroupMap(e2) { - const t2 = this.get(o); - let s2; - e2.forEach((e3) => { - s2 = e3.groupID, this.groupMap.has(s2) ? this.groupMap.get(s2).updateGroup(e3) : (this.groupMap.set(s2, new wo(e3)), t2.deleteGroupRoamingInfo(s2)); - }); - var r2 = this.getMyUserID(); - for (const [, o2] of this.groupMap) - o2.selfInfo.userID = r2, "Owner" === o2.selfInfo.role && (o2.ownerID = r2); - } - getGroupMap() { - return this.groupMap; - } - getLocalGroupList() { - return [...this.groupMap.values()].filter((e2) => e2.type !== _e && e2.type !== fe); - } - getLocalGroupProfile(e2) { - return this.groupMap.get(e2); - } - sortLocalGroupList() { - const e2 = [...this.groupMap].filter(([, e3]) => !Ne(e3.lastMessage)); - e2.sort((e3, t2) => t2[1].lastMessage.lastTime - e3[1].lastMessage.lastTime), this.groupMap = new Map([...e2]); - } - updateGroupLastMessage(e2) { - this._commonGroupHandler.updateLastMsg(e2); - } - emitGroupListUpdate(e2 = true, t2 = true) { - var s2 = this.getLocalGroupList(); - if (e2 && this.emitOEvt(Ot), t2) { - const e3 = JSON.parse(JSON.stringify(s2)); - this.get(o).updateConvGroupProfile(e3); - } - } - getMyNameCardByGroupID(e2) { - e2 = this.getLocalGroupProfile(e2); - return e2 ? e2.selfInfo.nameCard : ""; - } - isPagingGetCompleted() { - return this._commonGroupHandler.isPagingGetCompleted(); - } - getMsgRemindType(e2) { - if (!je(e2) || 0 === e2.length) - return Promise.resolve(); - e2 = e2.filter((e3) => !ot(this.getLocalGroupProfile(e3).type)); - return 0 === e2.length ? Promise.resolve() : (ht.l(this._n + ".getMsgRemindType groupIDList:" + e2), this.getGroupProfileAdvance({ groupIDList: e2, responseFilter: { memberInfoFilter: ["MsgFlag"] } }).then((e3) => { - const t2 = e3.data["successGroupList"], s2 = this.get(o); - t2.forEach((e4) => { - s2.onGroupMsgRemindTypeUpdated({ groupID: e4.groupID, messageRemindType: je(e4.members) ? e4.members[0].messageRemindType : "" }); - }); - })); - } - getGroupList() { - return this._commonGroupHandler.getGroupList(); - } - syncCommunityWithTopic() { - return this._commonGroupHandler.syncGroupList(true); - } - getGroupProfile(t2) { - const r2 = this._n + ".getGroupProfile", i2 = new es("getGroupProfile"), { groupID: n2, groupCustomFieldFilter: e2 } = t2; - ht.l(r2 + " groupID:" + n2); - var s2 = { groupIDList: [n2], responseFilter: { groupBaseInfoFilter: [...L], groupCustomFieldFilter: e2, memberInfoFilter: [...C, "NameCard"] } }; - return this.getGroupProfileAdvance(s2).then(({ data: { successGroupList: e3, failureGroupList: t3 } }) => { - if (ht.l(r2 + " ok"), 0 < t3.length) - return Bt(t3[0]); - let s3; - return (s3 = ot(e3[0].type) && !this.hasLocalGroup(n2) ? new wo(e3[0]) : (this.updateGroupMap(e3), this.getLocalGroupProfile(n2))).isSupportTopic || this.get(o).updateConvGroupProfile([s3]), i2.setMessage(`groupID:${n2} type:${s3.type} muteAllMembers:${s3.muteAllMembers} ownerID:` + s3.ownerID).end(), gt({ group: s3 }); - }).catch((e3) => (i2.setError(e3).setMessage("groupID:" + t2.groupID).end(), ht.e(r2 + " failed. error:", e3), Bt(e3))); - } - getGroupProfileAdvance(e2) { - const t2 = this._n + ".getGroupProfileAdvance", s2 = e2["groupIDList"], o2 = (je(s2) && 50 < s2.length && (this.warn("GetGroupProfileLimit"), s2.length = 50), []), r2 = [], i2 = (s2.forEach((e3) => { - (rt({ groupID: e3 }) ? r2 : o2).push(e3); - }), []); - if (0 < o2.length) { - const t3 = this._getGroupProfileAdvance({ ...e2, groupIDList: o2 }); - i2.push(t3); - } - if (0 < r2.length) { - const t3 = this._getGroupProfileAdvance({ ...e2, groupIDList: r2, relayFlag: 0 < o2.length }); - i2.push(t3); - } - return Promise.all(i2).then((e3) => { - const t3 = [], s3 = []; - return e3.forEach((e4) => { - t3.push(...e4.successGroupList), s3.push(...e4.failureGroupList); - }), gt({ successGroupList: t3, failureGroupList: s3 }); - }).catch((e3) => (ht.e(t2 + " failed. error:", e3), Bt(e3))); - } - _getGroupProfileAdvance(t2) { - const { relayFlag: s2 = false, ...o2 } = t2; - return this.req({ P: os, data: o2 }).then((e2) => { - ht.l(this._n + "._getGroupProfileAdvance ok. options:", o2); - const t3 = e2.data["groups"]; - return { successGroupList: t3.filter((e3) => Ke(e3.errorCode) || 0 === e3.errorCode), failureGroupList: t3.filter((e3) => e3.errorCode && 0 !== e3.errorCode).map((e3) => new mt({ code: e3.errorCode, message: e3.errorInfo, data: { groupID: e3.groupID } })) }; - }).catch((e2) => s2 && rt({ groupID: t2.groupIDList[0] }) ? { successGroupList: [], failureGroupList: [] } : Bt(e2)); - } - createGroup(u2) { - const s2 = [he, ce, ge, me, de], p2 = this._n + ".createGroup", { type: o2, groupID: r2 } = u2; - if (u2.name && false === this._filterProfanity("name", u2)) - return Bt({ code: Ut }); - if (u2.introduction && false === this._filterProfanity("introduction", u2)) - return Bt({ code: Ut }); - if (u2.notification && false === this._filterProfanity("notification", u2)) - return Bt({ code: Ut }); - if (!s2.includes(o2)) - return Bt({ code: ft }); - if (!rt({ type: o2 })) { - if (!Ne(r2) && rt({ groupID: r2 })) - return Bt({ code: It }); - u2.isSupportTopic = void 0; - } - if (ot(o2) && !Ke(u2.memberList) && 0 < u2.memberList.length && (u2.memberList = void 0), this._canIUseJoinOption(o2) || Ke(u2.joinOption) || (u2.joinOption = void 0), rt({ type: o2 })) { - if (!Ne(r2) && !rt({ groupID: r2 })) - return Bt({ code: It }); - u2.isSupportTopic = true === u2.isSupportTopic ? 1 : 0; - } - const h2 = new es("createGroup"); - ht.l(p2 + " options:", u2); - let l2 = null, g2 = []; - return this.req({ P: rs, data: { ...u2, ownerID: this.getMyUserID(), webPushFlag: 1 } }).then((s3) => { - const { groupID: o3, overLimitUserIDList: r3 = [] } = s3.data; - l2 = o3, g2 = r3; - s3 = `groupType:${u2.type} groupID:${o3} overLimitUserIDList:` + r3; - if (h2.setMessage(s3).end(), ht.l(p2 + " ok. " + s3), u2.type === me) - return this.getGroupProfile({ groupID: o3 }); - if (u2.type === de && 1 === u2.isSupportTopic) - return this.getGroupProfile({ groupID: o3 }); - Ne(u2.memberList) || Ne(r3) || (u2.memberList = u2.memberList.filter((e2) => -1 === r3.indexOf(e2.userID))), this.updateGroupMap([{ ...u2, groupID: o3 }]); - const i2 = this.get(e); - let n2 = "", a2 = 0; - u2.type === de ? (n2 = this.isIntl() ? "Create Community" : "创建社群", a2 = 1) : n2 = this.isIntl() ? "Create Group" : "创建群组"; - s3 = this.get(t).getMyNick(), s3 = i2.createCustomMessage({ to: o3, conversationType: ue, payload: { data: JSON.stringify({ businessID: "group_create", content: n2, cmd: a2, opUser: s3 || this.getMyUserID(), version: 4 }) } }); - return i2.sendMessageInstance(s3), this.emitGroupListUpdate(), this.getGroupProfile({ groupID: o3 }); - }).then((e2) => { - const t2 = e2.data["group"], { nameCard: s3, joinTime: o3 } = t2.selfInfo; - return t2.updateSelfInfo({ nameCard: s3, joinTime: o3, messageRemindType: Ae, role: Ie }), gt({ group: t2, overLimitUserIDList: g2 }); - }).catch((e2) => { - if (h2.setMessage("groupType:" + u2.type).setError(e2).end(), 10010 !== e2.code && 10007 !== e2.code) - return ht.e(p2 + " failed. error:", e2), Bt(e2); - { - this._silentlyGetGroupProfile(e2.code, l2), this.updateGroupMap([{ ...u2, groupID: l2 }]); - const t2 = this.getLocalGroupProfile(l2); - return t2.selfInfo.role = Ie, gt({ group: t2, overLimitUserIDList: g2 }); - } - }); - } - dismissGroup(e2) { - const t2 = this._n + ".dismissGroup", s2 = "groupID:" + e2, o2 = new es("dismissGroup"); - return o2.setMessage(s2), ht.l(t2 + " " + s2), this.req({ P: is, data: { groupID: e2 } }).then(() => (o2.end(), ht.l(t2 + " ok"), this.deleteLocalGroupAndConversation(e2), this.checkJoinedAVChatRoomByID(e2) && this._AVChatRoomHandler.reset(e2), this._groupAttributesHandler.deleteLocalGroupAttributes(e2), gt({ groupID: e2 }))).catch((e3) => (o2.setError(e3).end(), ht.e(t2 + " failed. error:", e3), Bt(e3))); - } - updateGroupProfile(e2) { - const t2 = this._n + ".updateGroupProfile"; - if (this.hasLocalGroup(e2.groupID)) { - const s3 = this.getLocalGroupProfile(e2.groupID).type; - this._canIUseJoinOption(s3) || Ke(e2.joinOption) || (ht.w(t2 + " joinOption is unavailable for Work/Meeting/AVChatRoom"), e2.joinOption = void 0); - } - if (Ke(e2.muteAllMembers) || (e2.muteAllMembers ? e2.muteAllMembers = "On" : e2.muteAllMembers = "Off"), e2.name && false === this._filterProfanity("name", e2)) - return Bt({ code: Ut }); - if (e2.introduction && false === this._filterProfanity("introduction", e2)) - return Bt({ code: Ut }); - if (e2.notification && false === this._filterProfanity("notification", e2)) - return Bt({ code: Ut }); - const s2 = new es("updateGroupProfile"); - return s2.setMessage(JSON.stringify(e2)), ht.l(t2 + " groupID:" + e2.groupID), this.req({ P: ns, data: e2 }).then(() => (s2.end(), ht.l(t2 + " ok"), this.hasLocalGroup(e2.groupID) && this.groupMap.get(e2.groupID).updateGroup(e2), gt({ group: this.groupMap.get(e2.groupID) }))).catch((e3) => (s2.setError(e3).end(), ht.l(t2 + " failed. error:", e3), Bt(e3))); - } - _filterProfanity(e2, t2) { - const s2 = this.get(c); - if (!s2) - return true; - var { isAllowedToSend: o2, modifiedText: r2 } = s2.filterText(t2[e2], y); - return true === o2 && (t2[e2] = r2, true); - } - joinGroup(t2) { - const s2 = t2["groupID"], o2 = this._n + ".joinGroup"; - if (this.deleteUnjoinedAVChatRoom(s2), this.hasLocalGroup(s2)) { - if (!this.isLoggedIn()) - return Kt({ status: Te }); - const r2 = new es("applyJoinGroup"); - return this.getGroupProfile({ groupID: s2 }).then(() => (r2.setMessage(`groupID:${s2} joinedStatus:` + Te).end(), Kt({ status: Te }))).catch((e2) => (r2.setMessage(`groupID:${s2} unjoined`).end(), ht.w(o2 + ` ${s2} was unjoined, now join!`), this.groupMap.delete(s2), this.applyJoinGroup(t2))); - } - return ht.l(o2 + " groupID:" + s2), this.isLoggedIn() ? this.applyJoinGroup(t2) : this._AVChatRoomHandler.joinWithoutAuth(t2); - } - applyJoinGroup(e2) { - const a2 = this._n + ".applyJoinGroup", { groupID: u2, applyMessage: t2 } = e2; - if (!Ne(t2) && false === this._filterProfanity("applyMessage", e2)) - return Bt({ code: Ut }); - const p2 = new es("applyJoinGroup"), s2 = { ...e2 }, h2 = this.canIUse(M.AV_HISTORY_MSG); - return h2 && (s2.historyMessageFlag = 1), this.get(o).deleteTopicRoamingInfo(u2), this.req({ P: as, data: s2 }).then(({ data: { joinedStatus: e3, longPollingKey: t3, startSeq: s3, avChatRoomFlag: o2, avChatRoomKey: r2, messageList: i2 } }) => { - var n2 = `groupID:${u2} joinedStatus:${e3} longPollingKey:${t3} startSeq:${s3} avChatRoomFlag:${o2} canGetAVChatRoomHistoryMsg:${h2}, historyMsgCount:` + (Ne(i2) ? 0 : i2.length); - switch (p2.setMessage(n2).end(), ht.l(a2 + " ok. " + n2), e3) { - case we: - return gt({ status: we }); - case $e: - return this.getGroupProfile({ groupID: u2 }).then(({ data: { group: e4 } }) => this._handleJoinResult({ group: e4, avChatRoomFlag: o2, longPollingKey: t3, startSeq: s3, avChatRoomKey: r2, messageList: i2 })).catch((e4) => { - if (10010 !== e4.code && 10007 !== e4.code) - return ht.e(a2 + " failed. error:", e4), Bt(e4); - { - this._silentlyGetGroupProfile(e4.code, u2); - const a3 = new wo({ groupID: u2 }); - return this.updateGroupMap([a3]), this._handleJoinResult({ group: a3, avChatRoomFlag: o2, longPollingKey: t3, startSeq: s3, avChatRoomKey: r2, messageList: i2 }); - } - }); - default: { - const e4 = new mt({ code: Ct }); - return ht.e(a2 + " failed. error:", e4), Bt(e4); - } - } - }).catch((e3) => (p2.setMessage("groupID:" + u2).setError(e3).end(), ht.e(a2 + " failed. error:", e3), Bt(e3))); - } - _handleJoinResult(e2) { - const { group: t2, avChatRoomFlag: s2, longPollingKey: r2, startSeq: i2, avChatRoomKey: n2, messageList: a2 } = e2, u2 = t2["groupID"]; - if (1 !== s2) - return this.emitGroupListUpdate(true, false), gt({ status: $e, group: t2 }); - { - let e3; - return this.get(o).setCompleted("" + ue + u2), this._groupAttributesHandler.initGroupAttributesCache({ groupID: u2, avChatRoomKey: n2 }), this._groupCountersHandler.initGroupCountersCache({ groupID: u2, avChatRoomKey: n2 }), (e3 = Ke(r2) ? this._AVChatRoomHandler.handleJoinResult({ group: t2 }) : this._AVChatRoomHandler.startRunLoop({ group: t2, longPollingKey: r2, startSeq: i2 })).then(() => { - this._onAVChatRoomHistoryMessage(a2, u2); - }), e3; - } - } - quitGroup(e2) { - const t2 = this._n + ".quitGroup", s2 = "groupID:" + e2, o2 = (ht.l(t2 + " " + s2), this.checkJoinedAVChatRoomByID(e2)); - if (!o2 && !this.hasLocalGroup(e2)) - return Bt({ code: Lt }); - if (o2 && !this.isLoggedIn()) - return ht.l(t2 + " anonymously ok. " + s2), this.deleteLocalGroupAndConversation(e2), this._AVChatRoomHandler.reset(e2), Kt({ groupID: e2 }); - const r2 = new es("quitGroup"); - return r2.setMessage(s2), this.req({ P: ps, data: { groupID: e2 } }).then(() => (r2.end(), ht.l(t2 + " ok"), this.deleteLocalGroupAndConversation(e2), o2 && this._AVChatRoomHandler.reset(e2), this._groupAttributesHandler.deleteLocalGroupAttributes(e2), gt({ groupID: e2 }))).catch((e3) => (r2.setError(e3).end(), ht.e(t2 + " failed. error:", e3), Bt(e3))); - } - searchGroupByID(e2) { - const t2 = this._n + ".searchGroupByID", s2 = { groupIDList: [e2] }, o2 = new es("searchGroupByID"); - return o2.setMessage("groupID:" + e2), ht.l(t2 + " groupID:" + e2), this.req({ P: ls, data: s2 }).then(({ data: { groupProfile: e3 } }) => { - if (0 !== e3[0].errorCode) - throw new mt({ code: e3[0].errorCode, message: e3[0].errorInfo }); - return o2.end(), ht.l(t2 + " ok"), gt({ group: new wo(e3[0]) }); - }).catch((e3) => (o2.setError(e3).end(), ht.w(t2 + " failed. error:", e3), Bt(e3))); - } - changeGroupOwner(o2) { - const r2 = this._n + ".changeGroupOwner"; - if (this.hasLocalGroup(o2.groupID) && this.getLocalGroupProfile(o2.groupID).type === me) - return Bt({ code: yt }); - if (o2.newOwnerID === this.getMyUserID()) - return Bt({ code: Dt }); - const i2 = new es("changeGroupOwner"); - return i2.setMessage(`groupID:${o2.groupID} newOwnerID:` + o2.newOwnerID), ht.l(r2 + " groupID:" + o2.groupID), this.req({ P: cs, data: o2 }).then(() => { - i2.end(), ht.l(r2 + " ok"); - var { groupID: e2, newOwnerID: t2 } = o2; - this.groupMap.get(e2).ownerID = t2; - const s2 = this._groupMemberHandler.getLocalGroupMemberList(e2); - if (s2 instanceof Map) { - const o3 = s2.get(this.getMyUserID()), r3 = (Ke(o3) || (o3.updateRole("Member"), this.groupMap.get(e2).selfInfo.role = "Member"), s2.get(t2)); - Ke(r3) || r3.updateRole("Owner"); - } - return this.emitGroupListUpdate(true, false), gt({ group: this.groupMap.get(e2) }); - }).catch((e2) => (i2.setError(e2).end(), ht.e(r2 + " failed. error:", e2), Bt(e2))); - } - getGroupApplicationList() { - return this._groupSystemNoticeHandler.getGroupApplicationList(); - } - handleGroupApplication(e2) { - const t2 = this._n + ".handleGroupApplication", { handleAction: h2, handleMessage: l2, message: s2, application: o2 } = e2; - let r2, i2, n2, a2, u2, g2 = (s2 ? (r2 = s2.payload.operatorID, i2 = s2.payload.groupProfile.groupID, n2 = s2.payload.authentication, a2 = s2.payload.messageKey) : o2 && (r2 = o2.applicant, i2 = o2.groupID, n2 = o2.authentication, a2 = o2.messageKey), hs); - o2 && 2 === o2.applicationType && (g2 = gs, u2 = o2.userID); - const p2 = new es("handleGroupApplication"); - return p2.setMessage("groupID:" + i2), ht.l(t2 + " groupID:" + i2), this.req({ P: g2, data: { handleAction: h2, handleMessage: l2, applicant: r2, invitee: u2, groupID: i2, authentication: n2, messageKey: a2 } }).then(() => (p2.end(), ht.l(t2 + " ok"), s2 && this._groupSystemNoticeHandler.deleteGroupSystemNotice({ messageList: [e2.message] }), gt({ group: this.getLocalGroupProfile(i2) }))).catch((e3) => (p2.setError(e3).end(), ht.e(t2 + " failed. error", e3), Bt(e3))); - } - handleGroupInvitation(e2) { - const t2 = this._n + ".handleGroupInvitation", { groupProfile: { groupID: s2 }, authentication: o2, messageKey: r2, operatorID: i2 } = e2.message.payload, n2 = e2["handleAction"], a2 = new es("handleGroupInvitation"); - return a2.setMessage(`groupID:${s2} inviter:${i2} handleAction:` + n2), ht.l(t2 + ` groupID:${s2} inviter:${i2} handleAction:` + n2), this.req({ P: ms, data: { ...e2, inviter: i2, groupID: s2, authentication: o2, messageKey: r2 } }).then(() => (a2.end(), ht.l(t2 + " ok"), this._groupSystemNoticeHandler.deleteGroupSystemNotice({ messageList: [e2.message] }), gt({ group: this.getLocalGroupProfile(s2) }))).catch((e3) => (a2.setError(e3).end(), ht.e(t2 + " failed. error", e3), Bt(e3))); - } - getGroupOnlineMemberCount(t2) { - const s2 = this._n + ".getGroupOnlineMemberCount", e2 = this._AVChatRoomHandler.checkJoinedAVChatRoomByID(t2), o2 = this.hasLocalGroup(t2); - if (ht.l(s2 + ` groupID:${t2} isAVChatRoom:${e2} has:` + o2), e2) - return this._AVChatRoomHandler.getGroupOnlineMemberCount(t2); - if (!o2) - return Kt({ memberCount: 0 }); - var r2 = Date.now(); - if (this._onlineMemberCountMap.has(t2)) { - const s3 = this._onlineMemberCountMap.get(t2); - if (r2 - s3.lastReqTime <= 6e4) - return Kt({ memberCount: s3.memberCount }); - s3.lastReqTime = r2; - } - return this.requestOnlineCount(t2).then((e3) => { - var { memberCount: e3 = 0 } = e3.data; - return this._onlineMemberCountMap.set(t2, { lastReqTime: Date.now(), memberCount: e3 }), ht.l(s2 + ` ok. groupID:${t2} memberCount:` + e3), Kt({ memberCount: e3 }); - }).catch((e3) => (ht.w(s2 + " failed. error:", e3), Promise.reject(e3))); - } - requestOnlineCount(e2) { - return this.req({ P: bs, data: { groupID: e2 } }); - } - hasLocalGroup(e2) { - return this.groupMap.has(e2); - } - deleteLocalGroupAndConversation(e2) { - const t2 = this.checkJoinedAVChatRoomByID(e2), r2 = (ht.l(this._n + `.deleteLocalGroupAndConversation groupID:${e2} isJoinedAVChatRoom:` + t2), this.get(o)), i2 = "" + ue + e2; - if (t2 && (this.stopMessageLongPolling({ groupID: e2 }), r2.deleteLocalConv(i2)), rt({ groupID: e2 })) { - const t3 = this.getLocalGroupProfile(e2); - t3 && true === t3.isSupportTopic && this.get(s).deleteTopicListInCommunity(e2); - } - r2.clearUnreadCount(i2), r2.setCompleted(i2), this._deleteLocalGroup(e2), this._onlineMemberCountMap.delete(e2), this.emitGroupListUpdate(true, false); - } - _deleteLocalGroup(e2) { - this.groupMap.delete(e2), this._groupMemberHandler.deleteGroupMemberList(e2); - } - sendMessage(e2, t2) { - if (je(e2._receiverList) && 0 < e2._receiverList.length && !this.canIUse(M.MSG_TO_SPECIFIED_GRP_MBR)) - return this.noUse("Targeted Group Message"); - e2 = this.createGroupMessagePack(e2, t2); - return this.req(e2); - } - createGroupMessagePack(e2, t2) { - let s2 = null, o2 = (t2 && t2.offlinePushInfo && (s2 = t2.offlinePushInfo), ""); - Ve(e2.cloudCustomData) && 0 < e2.cloudCustomData.length && (o2 = e2.cloudCustomData); - const r2 = []; - if (He(t2) && He(t2.messageControlInfo)) { - const { excludedFromUnreadCount: e3, excludedFromLastMessage: s3, excludedFromContentModeration: o3 } = t2.messageControlInfo; - true === e3 && r2.push("NoUnread"), true === s3 && r2.push("NoLastMsg"), true === o3 && r2.push("NoMsgCheck"); - } - let i2 = void 0; - je(e2._receiverList) && 0 < e2._receiverList.length && (i2 = e2._receiverList, 50 < e2._receiverList.length && (i2 = e2._receiverList.slice(0, 50), this.warn("ReceiverListLimit"))); - const a2 = this.isOnlineMessage(e2, t2) ? 1 : 0, u2 = JSON.parse(JSON.stringify(e2.getElements())), l2 = this.get(n).getFileDNList(), p2 = e2.getGroupAtInfoList(), h2 = { fromAccount: this.getMyUserID(), groupID: e2.to, msgBody: Zs(e2.type, u2, l2), cloudCustomData: o2, random: e2.random, priority: e2.priority, clientSequence: e2.clientSequence, groupAtInfo: e2.type !== B || Ne(p2) ? void 0 : p2, onlineOnlyFlag: a2, clientTime: e2.clientTime, offlinePushInfo: xo(s2), messageControlInfo: 0 == a2 ? r2 : void 0, needReadReceipt: true !== e2.needReadReceipt || this.isMessageFromOrToAVChatroom(e2.to) ? 0 : 1, receiverList: i2, isSupportExtension: true === e2.isSupportExtension ? 1 : 0, isRelayMessage: true === e2._relayFlag ? 1 : 0, cmConfigID: e2._cmConfigID, forbidCallbackControl: et(t2) }; - return it(e2.to) && (h2.groupID = nt(e2.to), h2.topicID = e2.to), { P: ts, data: h2 }; - } - revokeMessage(e2) { - const t2 = { groupID: e2.to, msgSeqList: [{ msgSeq: e2.sequence }] }; - return it(e2.to) && (t2.groupID = nt(e2.to), t2.topicID = e2.to), this.req({ P: ds, data: t2 }); - } - deleteMessage(e2) { - var { to: e2, keyList: t2 } = e2; - ht.l(this._n + `.deleteMessage groupID:${e2} count:` + t2.length); - const s2 = { groupID: e2, deleter: this.getMyUserID(), keyList: t2 }; - return it(e2) && (s2.groupID = nt(e2), s2.topicID = e2), this.req({ P: As, data: s2 }); - } - modifyRemoteMessage(e2) { - const { to: t2, sequence: s2, payload: o2, type: r2, version: i2 = 0, cloudCustomData: h2, _elements: n2 } = e2; - let a2 = t2, u2 = void 0, p2 = (it(t2) && (a2 = nt(t2), u2 = t2), void 0); - return (e2 = r2) !== B && e2 !== te && e2 !== Q && e2 !== X || (1 < n2.length && n2.splice(0, 1, { type: r2, content: o2 }), p2 = n2), this.req({ P: Ts, data: { groupID: a2, topicID: u2, sequence: s2, version: i2, elements: p2, cloudCustomData: h2 } }); - } - getRoamingMessage(e2) { - const u2 = this._n + ".getRoamingMessage"; - let { conversationID: p2, groupID: h2, sequence: t2 } = e2; - const l2 = new es("getRoamingMessage"); - let g2 = 0, c2 = void 0; - return it(h2) && (h2 = nt(c2 = h2)), this._computeLastSequence({ groupID: h2, topicID: c2, sequence: t2 }).then((e3) => (g2 = e3, ht.l(u2 + ` groupID:${h2} startSequence:` + g2), this.req({ P: fs, data: { groupID: h2, count: 21, sequence: g2, topicID: c2 } }))).then((e3) => { - var { messageList: t3, complete: s2, invisibleSequenceList: r2 = [] } = e3.data; - let { nextSequence: i2 = 0 } = e3.data; - Ke(t3) ? ht.l(u2 + ` ok. complete:${s2} nextSequence:${i2} but messageList is undefined!`) : ht.l(u2 + ` ok. complete:${s2} nextSequence:${i2} count:` + t3.length), l2.setMessage(`groupID:${h2} topicID:${c2} startSequence:${g2} complete:${s2} nextSequence:` + i2).end(); - const n2 = this.get(o); - let a2 = []; - e3 = [], Ne(t3) || (a2 = n2.onRoamingMessage(t3, p2, true, e3), n2.updateIsRead(p2), n2.patchConvLastMessage(p2)), t3 = 2 === s2 || i2 < 1; - return t3 && (n2.setCompleted(p2), i2 = ""), ht.l(u2 + ` isPullingCompleted:${t3} nextReqID:${i2} storedMsgCount:${a2.length} invisibleSeqCount:` + r2.length), { nextReqID: i2 + "", storedMessageList: a2, assembledMessageList: e3, isPullingCompleted: t3 }; - }).catch((e3) => (l2.setError(e3).setMessage(`groupID:${h2} topicID:${c2} startSequence:` + g2).end(), ht.w(u2 + " failed. error:", e3), Bt(e3))); - } - _getGroupIDOfMessage(e2) { - return e2.conversationID.replace(ue, ""); - } - getReadReceiptList(s2) { - const o2 = this._n + ".getReadReceiptList", e2 = this._getGroupIDOfMessage(s2[0]), t2 = this.getMyUserID(), r2 = s2.filter((e3) => e3.from === t2 && true === e3.needReadReceipt).map((e3) => ({ sequence: e3.sequence })); - if (ht.l(o2 + ` groupID:${e2} sequenceList:` + JSON.stringify(r2)), 0 === r2.length) - return Kt({ messageList: s2 }); - const i2 = new es("getReadReceiptList"); - return i2.setMessage("groupID:" + e2), this.req({ P: Is, data: { groupID: e2, sequenceList: r2 } }).then((e3) => { - i2.end(), ht.l(o2 + " ok"); - const t3 = e3.data["readReceiptList"]; - return je(t3) && t3.forEach((t4) => { - s2.forEach((e4) => { - 0 === t4.code && t4.sequence === e4.sequence && (e4.readReceiptInfo.readCount = t4.readCount, e4.readReceiptInfo.unreadCount = t4.unreadCount); - }); - }), gt({ messageList: s2 }); - }).catch((e3) => (i2.setError(e3).end(), ht.w(o2 + " failed. error:", e3), Bt(e3))); - } - sendReadReceipt(e2) { - const t2 = this._n + ".sendReadReceipt", s2 = this._getGroupIDOfMessage(e2[0]), o2 = new es("sendReadReceipt"), r2 = (o2.setMessage("groupID:" + s2), this.getMyUserID()), i2 = e2.filter((e3) => e3.from !== r2 && true === e3.needReadReceipt).map((e3) => ({ sequence: e3.sequence })); - return 0 === i2.length ? Bt({ code: _t }) : (ht.l(t2 + ". sequenceList:" + JSON.stringify(i2)), this.req({ P: Ms, data: { groupID: s2, sequenceList: i2 } }).then((e3) => (o2.end(), ht.l(t2 + " ok"), gt())).catch((e3) => (o2.setError(e3).end(), ht.w(t2 + " failed. error:", e3), Bt(e3)))); - } - getReadReceiptDetail(h2) { - const { message: e2, filter: t2, cursor: s2, count: o2 } = h2, r2 = this._getGroupIDOfMessage(e2), i2 = e2.ID, l2 = e2.sequence, n2 = this._n + ".getReadReceiptDetail", g2 = this._receiptDetailCompleteMap.get(i2) || false, a2 = 0 !== t2 && 1 !== t2 ? 0 : t2, c2 = Ve(s2) ? s2 : "", m2 = !xe(o2) || o2 <= 0 || 100 <= o2 ? 100 : o2, d2 = `groupID:${r2} sequence:${l2} cursor:${c2} filter:${a2} completeFlag:` + g2, u2 = (ht.l(n2 + " " + d2), { cursor: "", isCompleted: false, messageID: i2, unreadUserIDList: [], readUserIDList: [] }), p2 = new es("getReadReceiptDetail"); - return p2.setMessage(d2), this.req({ P: ys, data: { groupID: r2, sequence: l2, flag: a2, cursor: c2, count: m2 } }).then((e3) => { - p2.end(); - const { cursor: t3, isCompleted: s3, unreadUserIDList: o3, readUserIDList: r3 } = e3.data; - return u2.cursor = t3, 1 === s3 && (u2.isCompleted = true, this._receiptDetailCompleteMap.set(i2, true)), 0 === a2 ? u2.readUserIDList = r3.map((e4) => e4.userID) : 1 === a2 && (u2.unreadUserIDList = o3.map((e4) => e4.userID)), ht.l(n2 + " ok"), gt(u2); - }).catch((e3) => (p2.setError(e3).end(), ht.w(n2 + " failed. error:", e3), Bt(e3))); - } - getRoamingMessagesHopping(g2) { - const c2 = this._n + ".getRoamingMessagesHopping"; - let { groupID: t2, count: s2, sequence: m2, direction: d2 } = g2, r2 = void 0; - return Ke(m2) && 1 === d2 ? Kt({ messageList: [], isCompleted: true, nextMessageSeq: "" }) : (it(t2) && (t2 = nt(r2 = t2)), this._computeReqSeqHopping({ groupID: t2, topicID: r2, sequence: m2 }).then((e2) => { - Ke(m2) || 1 !== d2 || (e2 = m2 + s2 - 1); - const h2 = `${r2 ? "topicID:" + r2 : "groupID:" + t2} sequence:${m2} reqSeq:${e2} direction:` + d2, l2 = (ht.l(c2 + " " + h2), new es("getRoamingMessagesHopping")); - return this.req({ P: fs, data: { groupID: t2, topicID: r2, count: s2, sequence: e2 } }).then((e3) => { - var { messageList: e3 = [], complete: t3, nextSequence: s3 = 0, invisibleSequenceList: r3 = [] } = e3.data, i2 = `complete:${t3} nextSequence:${s3} remoteMsgCount:${e3.length} invisibleSequenceList:` + r3; - l2.setMessage(h2 + " " + i2).end(), ht.l(c2 + " ok. " + i2); - const n2 = "" + ue + g2.groupID, a2 = this.get(o), u2 = a2.onRoamingMessage(e3, n2, false), p2 = this._computeResult({ groupID: g2.groupID, direction: d2, sequence: m2, remoteMessageList: e3, processedMessageList: u2, complete: t3, nextSequence: s3, invisibleSequenceList: r3 }); - return a2.storeHoppingMessageList(p2.messageList), gt(p2); - }).catch((e3) => (l2.setError(e3).setMessage(`groupID:${t2} sequence:${m2} count:` + s2).end(), ht.w(c2 + " failed. error:", e3), Bt(e3))); - })); - } - _computeReqSeqHopping(e2) { - const { groupID: s2, topicID: t2, sequence: o2 } = e2; - return 0 < o2 ? Promise.resolve(o2) : Ke(t2) ? this.getGroupProfileAdvance({ groupIDList: [s2], responseFilter: { groupBaseInfoFilter: ["NextMsgSeq"] } }).then(({ data: { successGroupList: e3 } }) => { - let t3 = 0; - return Ne(e3) || (t3 = e3[0].nextMessageSeq - 1), ht.l(`${this._n}._computeReqSeqHopping groupID:${s2} lastSequence:${t3} from remote`), t3; - }).catch((e3) => Bt(e3)) : Promise.resolve(0); - } - _computeResult(e2) { - const t2 = { messageList: [], isCompleted: false, nextMessageSeq: "" }, { groupID: s2, direction: o2, sequence: r2, remoteMessageList: i2 = [], processedMessageList: n2 = [], complete: a2, nextSequence: u2, invisibleSequenceList: p2 } = e2; - if (0 === o2) - return t2.nextMessageSeq = u2, (2 === a2 || u2 < 1) && (t2.isCompleted = true, t2.nextMessageSeq = ""), t2.messageList = n2, t2; - if (1 === o2) { - if (Ne(i2)) { - if (Ne(p2)) - return t2.isCompleted = true, t2.nextMessageSeq = "", t2; - t2.nextMessageSeq = p2[0] + 1; - } else { - const e3 = i2[0].sequence, s3 = p2[0] || 0; - t2.nextMessageSeq = e3 > s3 ? e3 + 1 : s3 + 1; - } - return n2.forEach((e3) => { - e3.sequence >= r2 && t2.messageList.push(e3); - }), (rt({ groupID: s2 }) || it(s2)) && 0 === t2.messageList.length && i2[0].sequence < r2 && (t2.isCompleted = true, t2.nextMessageSeq = ""), t2; - } - } - setMessageRead({ conversationID: r2, lastMessageSeq: i2 }) { - const n2 = this._n + ".setMessageRead", e2 = `convID:${r2} lastMessageSeq:` + i2, a2 = (ht.l(n2 + " " + e2), xe(i2) || this.warn("DoNotModifyLastSeq"), new es("setMessageRead")); - a2.setMessage(e2); - let u2 = r2.replace(ue, ""), p2 = void 0; - return it(u2) && (u2 = nt(p2 = u2)), this.req({ P: _s, data: { groupID: u2, topicID: p2, messageReadSeq: i2 } }).then(() => { - a2.end(), ht.l(n2 + " ok"); - const e3 = this.get(o); - e3.updateIsReadAfterReadReport({ conversationID: r2, lastMessageSeq: i2 }); - let t2 = true; - if (!Ke(p2)) { - t2 = false; - const r3 = this.get(s).getLocalTopic(u2, p2); - r3 && r3.updateSelfInfo({ readedSequence: i2 }); - } - return e3.updateUnreadCount(r2, t2), gt(); - }).catch((e3) => (a2.setError(e3).end(), ht.l(n2 + " failed. error:", e3), Bt(e3))); - } - _computeLastSequence(e2) { - var { groupID: e2, topicID: t2, sequence: s2 } = e2; - return 0 < s2 ? Promise.resolve(s2) : Ke(t2) ? this.getGroupLastSequence(e2) : Promise.resolve(0); - } - getGroupLastSequence(e2) { - const t2 = this._n + ".getGroupLastSequence", s2 = new es("getGroupLastSequence"); - let r2 = 0, i2 = ""; - const n2 = "groupID:" + e2; - if (this.hasLocalGroup(e2)) { - const o2 = this.getLocalGroupProfile(e2), a3 = o2.lastMessage; - if (0 < a3.lastSequence && false === a3.onlineOnlyFlag) - return r2 = a3.lastSequence, i2 = n2 + `, ${r2} from group.lastMessage.lastSequence`, ht.l(t2 + " " + i2), s2.setMessage(i2).end(), Promise.resolve(r2); - if (1 < o2.nextMessageSeq) - return r2 = o2.nextMessageSeq - 1, i2 = n2 + `, ${r2} from group.nextMessageSeq`, ht.l(t2 + " " + i2), s2.setMessage(i2).end(), Promise.resolve(r2); - } - const a2 = this.get(o).getLocalConversation("GROUP" + e2); - return a2 && a2.lastMessage.lastSequence && false === a2.lastMessage.onlineOnlyFlag ? (r2 = a2.lastMessage.lastSequence, i2 = n2 + `, ${r2} from conversation.lastMessage.lastSequence`, ht.l(t2 + " " + i2), s2.setMessage(i2).end(), Promise.resolve(r2)) : this.getGroupProfileAdvance({ groupIDList: [e2], responseFilter: { groupBaseInfoFilter: ["NextMsgSeq"] } }).then(({ data: { successGroupList: e3 } }) => (Ne(e3) ? ht.w(t2 + ` ${n2}, empty successGroupList`) : (r2 = e3[0].nextMessageSeq - 1, i2 = n2 + `, ${r2} from remote`, ht.l(t2 + " " + i2)), s2.setMessage(i2).end(), r2)).catch((e3) => (s2.setError(e3).setMessage(n2).end(), ht.w(t2 + " failed. error:", e3), Bt(e3))); - } - isMessageFromOrToAVChatroom(e2) { - return this._AVChatRoomHandler.checkJoinedAVChatRoomByID(e2); - } - hasJoinedAVChatRoom() { - return this._AVChatRoomHandler.hasJoinedAVChatRoom(); - } - getJoinedAVChatRoom() { - return this._AVChatRoomHandler.getJoinedAVChatRoom(); - } - getGroupRemoteLastSeq(e2) { - e2 = this.getLocalGroupProfile(e2); - return e2 ? e2.nextMessageSeq - 1 : 1; - } - isOnlineMessage(e2, t2) { - return !(!this._canIUseOnlineOnlyFlag(e2) || !t2 || true !== t2.onlineUserOnly); - } - _canIUseOnlineOnlyFlag(e2) { - const t2 = this.getJoinedAVChatRoom(); - return !t2 || !t2.includes(e2.to) || e2.conversationType !== ue; - } - _onAVChatRoomHistoryMessage(e2, t2) { - if (!Ne(e2)) { - ht.l(this._n + `._onAVChatRoomHistoryMessage groupID:${t2} count:` + e2.length); - const s2 = []; - e2.forEach((e3) => { - s2.push({ ...e3, isHistoryMessage: 1 }); - }), this.onAVChatRoomMessage(s2, t2); - } - } - onAVChatRoomMessage(e2, t2 = "") { - this._AVChatRoomHandler.onMessage(e2, t2); - } - onAVChatRoomMemberBanned(e2) { - this._AVChatRoomHandler.onAVChatRoomMemberBanned(e2); - } - setUnjoinedAVChatRoom(e2) { - this._unjoinedAVChatRoomList.set(e2, 1); - } - deleteUnjoinedAVChatRoom(e2) { - this._unjoinedAVChatRoomList.has(e2) && this._unjoinedAVChatRoomList.delete(e2); - } - isUnjoinedAVChatRoom(e2) { - return this._unjoinedAVChatRoomList.has(e2); - } - isGroupAttributesUpdatedNotice(e2) { - return this._groupAttributesHandler.isGroupAttributesUpdatedNotice(e2); - } - updateLocalMainSequenceOnReconnected() { - this._groupAttributesHandler.updateLocalMainSequenceOnReconnected(); - } - initGroupAttributes(e2) { - return this._groupAttributesHandler.initGroupAttributes(e2); - } - setGroupAttributes(e2) { - return this._groupAttributesHandler.setGroupAttributes(e2); - } - deleteGroupAttributes(e2) { - return this._groupAttributesHandler.deleteGroupAttributes(e2); - } - getGroupAttributes(e2) { - return this._groupAttributesHandler.getGroupAttributes(e2); - } - isMessageFromTopic(e2, t2) { - return 2 === e2 && !Ne(t2); - } - isMessageFromCommunityOfTopic(e2, t2) { - return 2 === e2 && Ne(t2); - } - getMessageExtensions(e2, t2) { - return ht.l(this._n + ".getMessageExtensions startSequence:" + t2), this.req({ P: Es, data: { groupID: e2.to, messageSequence: e2.sequence, startSequence: t2 } }); - } - modifyMsgExts(e2, t2, s2 = 1) { - return ht.l(this._n + ".modifyMsgExts operateType:" + s2), this.req({ P: ws, data: { groupID: e2.to, messageSequence: e2.sequence, extensionList: t2, operateType: s2 } }); - } - _genNotifyReqList(s2) { - const o2 = []; - var r2, i2, n2, a2; - for (let e2 = 0, t2 = s2.length; e2 < t2; e2++) - r2 = s2[e2], a2 = this.getLocalGroupProfile(r2).type, i2 = this._getGroupLastRevokedTime(r2), n2 = 1e3 * ve(), a2 = { notifyType: 1, limit: 20, type: rt({ type: a2, groupID: r2 }) ? de : void 0, groupID: r2, beginTime: i2, endTime: n2 }, o2.push(a2); - return o2; - } - getNotice(e2) { - const t2 = this._n + ".getNotice", s2 = e2.filter((e3) => { - if (!this.hasLocalGroup(e3)) - return false; - var { type: e3, isSupportTopic: t3 } = this.getLocalGroupProfile(e3); - return !ot(e3) && !t3; - }); - 0 !== s2.length && (ht.l(t2 + " list:" + s2), this.req({ P: Us, data: { notifyReqList: this._genNotifyReqList(s2) } }).then((i2) => { - const e3 = i2.data["notifyRspList"], n2 = []; - if (je(e3)) { - const i3 = { dataList: [] }; - let r2 = t2 + " ok."; - e3.forEach((e4) => { - var { nextRevokedTime: t3, groupID: s3, notifyList: o2 } = e4; - r2 += ` groupID:${s3} nextRevokedTime:${t3} count:${o2.length} -`, i3.dataList.push({ elements: { revokedInfos: this._genRevokedInfos(e4) } }), 0 !== t3 ? (this._setGroupLastRevokedTime(s3, t3), n2.push(s3)) : this._setGroupLastRevokedTime(s3, 1e3 * ve()); - }), ht.l(r2), this.onMsgRevoked(i3, false); - } - 0 < n2.length && this.getNotice(n2); - }).catch((e3) => { - ht.e(t2 + " failed. error:", e3); - })); - } - _genRevokedInfos(e2) { - const { notifyList: t2, groupID: s2 } = e2, o2 = []; - return je(t2) && t2.forEach((e3) => { - o2.push({ groupID: s2, sequence: e3.sequence, random: e3.random, revokerInfo: { ...e3.revokerInfo } }); - }), o2; - } - _getGroupLastRevokedTime(e2) { - return this.hasLocalGroup(e2) ? this.getLocalGroupProfile(e2)._lastRevokedTime : 0; - } - _setGroupLastRevokedTime(e2, t2) { - this.hasLocalGroup(e2) && (this.getLocalGroupProfile(e2)._lastRevokedTime = t2); - } - isGroupCountersNotice(e2) { - return this._groupCountersHandler.isGroupCountersNotice(e2); - } - setGroupCounters(e2) { - return this._groupCountersHandler.setGroupCounters(e2); - } - increaseGroupCounter(e2) { - return this._groupCountersHandler.increaseGroupCounter(e2); - } - decreaseGroupCounter(e2) { - return this._groupCountersHandler.decreaseGroupCounter(e2); - } - getGroupCounters(e2) { - return this._groupCountersHandler.getGroupCounters(e2); - } - getGroupMemberHandler() { - return this._groupMemberHandler; - } - getGroupMemberList(e2) { - return this._groupMemberHandler.getGroupMemberList(e2); - } - getGroupMemberProfile(e2) { - return this._groupMemberHandler.getGroupMemberProfile(e2); - } - addGroupMember(e2) { - return this._groupMemberHandler.addGroupMember(e2); - } - deleteGroupMember(e2) { - return this._groupMemberHandler.deleteGroupMember(e2); - } - setGroupMemberMuteTime(e2) { - return this._groupMemberHandler.setGroupMemberMuteTime(e2); - } - setGroupMemberRole(e2) { - return this._groupMemberHandler.setGroupMemberRole(e2); - } - setGroupMemberNameCard(e2) { - return this._groupMemberHandler.setGroupMemberNameCard(e2); - } - setGroupMemberCustomField(e2) { - return this._groupMemberHandler.setGroupMemberCustomField(e2); - } - markGroupMemberList(e2) { - return this._groupMemberHandler.markGroupMemberList(e2); - } - modifyGroupMemberInfo(e2) { - return this._groupMemberHandler.modifyGroupMemberInfo(e2); - } - restartPolling() { - this._AVChatRoomHandler.restartPolling(); - } - getPollingTimerID(e2) { - if (!e2) - return -1; - var t2 = this.getLocalGroupProfile(e2); - return t2 && ot(t2.type) ? this._AVChatRoomHandler.getPollingTimerID(e2) : -1; - } - _canIUseJoinOption(e2) { - return e2 === he || rt({ type: e2 }); - } - _silentlyGetGroupProfile(e2, t2) { - var s2 = setTimeout(this.getGroupProfile.bind(this, { groupID: t2 }), 3e3); - this._timeoutIDs.push(s2), ht.l(this._n + `._silentlyGetGroupProfile errorCode:${e2} groupID:${t2} timeoutIDs:` + this._timeoutIDs); - } - _clearTimeoutIDs() { - this._timeoutIDs.forEach((e2) => { - e2 && clearTimeout(e2); - }), this._timeoutIDs = []; - } - startMessageLongPolling(e2) { - var { groupID: e2, longPollingKey: t2, longPollingSequence: s2 = 1 } = e2, o2 = this.get(r).isUnlimitedAVChatRoom(), i2 = (this._AVChatRoomHandler.hasPollingInstance(e2) && this.stopMessageLongPolling({ groupID: e2 }), this._AVChatRoomHandler.getJoinedLiveList()), o2 = (!o2 && 0 < i2.length && this.stopMessageLongPolling({ groupID: i2[0] }), new wo({ groupID: e2, type: fe })); - return ht.l(this._n + `.startMessageLongPolling groupID:${e2} longPollingKey:${t2} longPollingSequence:` + s2), this._AVChatRoomHandler.startRunLoop({ group: o2, longPollingKey: t2, startSeq: s2 }); - } - stopMessageLongPolling(e2) { - const t2 = e2["groupID"], s2 = this.get(o); - return this._AVChatRoomHandler.reset(t2), this._deleteLocalGroup(t2), s2.deleteLocalConv("" + ue + t2), ht.l(this._n + ".stopMessageLongPolling ok, groupID:" + t2), Kt({ groupID: t2 }); - } - reset() { - this.groupMap.clear(), this._unjoinedAVChatRoomList.clear(), this._receiptDetailCompleteMap.clear(), this._onlineMemberCountMap.clear(), this._commonGroupHandler.reset(), this._groupSystemNoticeHandler.reset(), this._groupTipsHandler.reset(), this._groupAttributesHandler.reset(), this._groupCountersHandler.reset(), this._AVChatRoomHandler.reset(), this._groupMemberHandler.reset(), this._clearTimeoutIDs(); - } -}; -export { - Bo as default -}; -//# sourceMappingURL=@tencentcloud_chat_modules_group-module__js.js.map diff --git a/service/unpackage/dist/cache/.vite/deps/@tencentcloud_chat_modules_group-module__js.js.map b/service/unpackage/dist/cache/.vite/deps/@tencentcloud_chat_modules_group-module__js.js.map deleted file mode 100644 index 67f67f4f..00000000 --- a/service/unpackage/dist/cache/.vite/deps/@tencentcloud_chat_modules_group-module__js.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../../../../../node_modules/@tencentcloud/chat/modules/group-module.js"], - "sourcesContent": ["\"use strict\";const e=2,t=4,s=10,o=11,r=12,i=14,n=17,a=20,u=23,p=26,l=27,c=29,h=30,g=34;class m{constructor(e=0,t=0){this.high=e,this.low=t}equal(e){return null!==e&&this.low===e.low&&this.high===e.high}toString(){var e=Number(this.high).toString(16);let t=Number(this.low).toString(16);if(t.length<8){let e=8-t.length;for(;e;)t=\"0\"+t,e--}return e+t}}const d={TEST:{CHINA:{DEFAULT:\"wss://wss-dev.tim.qq.com\"},OVERSEA:{DEFAULT:\"wss://wss-dev.tim.qq.com\"},SINGAPORE:{DEFAULT:\"wss://wsssgp-dev.im.qcloud.com\"},KOREA:{DEFAULT:\"wss://wsskr-dev.im.qcloud.com\"},GERMANY:{DEFAULT:\"wss://wssger-dev.im.qcloud.com\"},IND:{DEFAULT:\"wss://wssind-dev.im.qcloud.com\"},JPN:{DEFAULT:\"wss://wssjpn-dev.im.qcloud.com\"},USA:{DEFAULT:\"wss://wssusa-dev.im.qcloud.com\"},INDONESIA:{DEFAULT:\"wss://wssidn-dev.im.qcloud.com\"}},PRODUCTION:{CHINA:{DEFAULT0:\"wss://*w4c.my-imcloud.com\",DEFAULT:\"wss://wss.im.qcloud.com\",IPV6:\"wss://wssv6.im.qcloud.com\",BACKUP:\"wss://wss.tim.qq.com\",STAT:\"https://events.im.qcloud.com\",ANYCAST:\"wss://162.14.13.203\"},OVERSEA:{DEFAULT0:\"wss://*w4c.my-imcloud.com\",DEFAULT:\"wss://wss.im.qcloud.com\",BACKUP:\"wss://wss.my-imcloud.com\",STAT:\"https://api.my-imcloud.com\"},SINGAPORE:{DEFAULT0:\"wss://*w4s.my-imcloud.com\",DEFAULT:\"wss://wsssgp.im.qcloud.com\",IPV6:\"wss://wsssgpv6.im.qcloud.com\",BACKUP:\"wss://wsssgp.my-imcloud.com\",STAT:\"https://apisgp.my-imcloud.com\",ANYCAST:\"wss://162.14.19.159\"},KOREA:{DEFAULT0:\"wss://*w4k.my-imcloud.com\",DEFAULT:\"wss://wsskr.im.qcloud.com\",IPV6:\"wss://wsskrv6.im.qcloud.com\",BACKUP:\"wss://wsskr.my-imcloud.com\",STAT:\"https://apikr.my-imcloud.com\",ANYCAST:\"wss://162.14.13.104\"},GERMANY:{DEFAULT0:\"wss://*w4g.my-imcloud.com\",DEFAULT:\"wss://wssger.im.qcloud.com\",IPV6:\"wss://wssgerv6.im.qcloud.com\",BACKUP:\"wss://wssger.my-imcloud.com\",STAT:\"https://apiger.my-imcloud.com\",ANYCAST:\"wss://162.14.3.17\"},IND:{DEFAULT0:\"wss://*w4i.my-imcloud.com\",DEFAULT:\"wss://wssind.my-imcloud.com\",IPV6:\"wss://wssindv6.im.qcloud.com\",BACKUP:\"wss://wssind.im.qcloud.com\",STAT:\"https://apiind.my-imcloud.com\",ANYCAST:\"wss://162.14.19.46\"},JPN:{DEFAULT0:\"wss://*w4j.my-imcloud.com\",DEFAULT:\"wss://wssjpn.im.qcloud.com\",IPV6:\"wss://wssjpnv6.im.qcloud.com\",BACKUP:\"wss://wssjpn.my-imcloud.com\",STAT:\"https://apijpn.my-imcloud.com\"},USA:{DEFAULT0:\"wss://*w4u.my-imcloud.com\",DEFAULT:\"wss://wssusa.im.qcloud.com\",IPV6:\"wss://wssusav6.im.qcloud.com\",BACKUP:\"wss://wssusa.my-imcloud.com\",STAT:\"https://apiusa.my-imcloud.com\",ANYCAST:\"wss://162.14.10.42\"},INDONESIA:{DEFAULT0:\"wss://*w4y.my-imcloud.com\",DEFAULT:\"wss://wssidn.im.qcloud.com\",IPV6:\"wss://wssidnv6.im.qcloud.com\",BACKUP:\"wss://wssidn.my-imcloud.com\",STAT:\"https://apiidn.my-imcloud.com\",ANYCAST:\"wss://43.129.34.169\"}}},_={ANDROID:2,IOS:3,MAC:4,WEB:7,WX_MP:8,QQ_MP:9,TT_MP:10,BAIDU_MP:11,ALI_MP:12,IPAD:13,UNI_NATIVE_APP:15,DONUT_NATIVE_APP:19,NS_NATIVE_APP:20,RN_NATIVE_APP:21},f=\"CHINA\",I={HOST:{CURRENT:{DEFAULT:\"wss://wss.im.qcloud.com\",STAT:\"https://events.im.qcloud.com\"},setCurrent(e=f){this.CURRENT=d.PRODUCTION[e]}},NAME:{OPEN_IM:\"openim\",OPEN_IM_MSG_EXT:\"openim_msg_ext_http_svc\",GRP:\"group_open_http_svc\",GRP_AV:\"group_open_avchatroom_http_svc\",GRP_COMMUNITY:\"million_group_open_http_svc\",GRP_ATTR:\"group_open_attr_http_svc\",FD:\"sns\",PROFILE:\"profile\",RECENT_CONTACT:\"recentcontact\",PIC:\"openpic\",BIG_GRP_NO_AUTH:\"group_open_http_noauth_svc\",BIG_GRP_POLLING:\"group_open_long_polling_http_svc\",BIG_GRP_POLLING_NO_AUTH:\"group_open_long_polling_http_noauth_svc\",IM_OPEN_STAT:\"imopenstat\",WEB_IM:\"webim\",IM_COS_SIGN:\"im_cos_sign_svr\",CUSTOM_UPLOAD:\"im_cos_msg\",HEARTBEAT:\"heartbeat\",IM_OPEN_PUSH:\"im_open_push\",IM_OPEN_STATUS:\"im_open_status\",IM_LONG_MSG:\"im_long_msg\",IM_CONFIG_MANAGER:\"im_sdk_config_mgr\",STAT_SERVICE:\"StatSvc\",OVERLOAD_PUSH:\"OverLoadPush\",IM_MSG_AUDIT_MGR:\"im_msg_audit_mgr\",TUIROOM_SVR:\"tui_room_svr\",IM_OPEN_TRANSLATE:\"im_open_translate\",IM_OPEN_SPEECH:\"im_open_speech\",MSG_SEARCH:\"message_search\",GRP_SEARCH:\"group_search\",GRP_MEMBER_SEARCH:\"group_member_search\",USER_SEARCH:\"user_search\",FOLLOW:\"follow\",OFFLINE_PUSH_REPORT:\"offline_push_report\",IM_MSG_LOGIC:\"im_msg_db_logic\"}},M={SEARCH_GRP_SNS:new m(0,Math.pow(2,1)).toString(),AV_HISTORY_MSG:new m(0,Math.pow(2,2)).toString(),GRP_COMMUNITY:new m(0,Math.pow(2,3)).toString(),MSG_TO_SPECIFIED_GRP_MBR:new m(0,Math.pow(2,4)).toString(),AV_MBR_LIST:new m(0,Math.pow(2,6)).toString(),USER_STATUS:new m(0,Math.pow(2,7)).toString(),CONV_MARK:new m(0,Math.pow(2,9)).toString(),CONV_GROUP:new m(0,Math.pow(2,10)).toString(),AV_BAN_MBR:new m(0,Math.pow(2,11)).toString(),MSG_EXT:new m(0,Math.pow(2,13)).toString(),GRP_COUNTER:new m(0,Math.pow(2,15)).toString(),PLUGIN_TRANSLATE:new m(Math.pow(2,6)).toString(),PLUGIN_VOICE_TO_TEXT:new m(Math.pow(2,7)).toString(),PLUGIN_CS:new m(Math.pow(2,8)).toString(),PLUGIN_PUSH:new m(Math.pow(2,9)).toString(),PLUGIN_BOT:new m(Math.pow(2,10)).toString(),MSG_REACTION:new m(Math.pow(2,16)).toString(),FOLLOW:new m(Math.pow(2,20)).toString()},y=\"group_profile\",D=\"group_member_profile\",L=[\"Type\",\"Name\",\"Introduction\",\"Notification\",\"FaceUrl\",\"Owner_Account\",\"CreateTime\",\"InfoSeq\",\"LastInfoTime\",\"LastMsgTime\",\"MemberNum\",\"MaxMemberNum\",\"ApplyJoinOption\",\"NextMsgSeq\",\"ShutUpAllMember\",\"InviteJoinOption\"],C=[\"Role\",\"JoinTime\",\"MsgSeq\",\"MsgFlag\"],G=(I.HOST.setCurrent(f),\"undefined\"!=typeof wx&&\"function\"==typeof wx.getSystemInfoSync&&Boolean(wx.getSystemInfoSync().fontSizeSetting)),b=(G&&wx.createGamePortal,\"undefined\"!=typeof qq&&\"function\"==typeof qq.getSystemInfoSync&&Boolean(qq.getSystemInfoSync().fontSizeSetting)),A=\"undefined\"!=typeof tt&&\"function\"==typeof tt.getSystemInfoSync&&Boolean(tt.getSystemInfoSync().fontSizeSetting),T=\"undefined\"!=typeof swan&&\"function\"==typeof swan.getSystemInfoSync&&Boolean(swan.getSystemInfoSync().fontSizeSetting),S=\"undefined\"!=typeof my&&\"function\"==typeof my.getSystemInfoSync&&Boolean(my.getSystemInfoSync().fontSizeSetting),v=\"undefined\"!=typeof jd&&\"function\"==typeof jd.getSystemInfoSync,P=\"undefined\"!=typeof uni&&\"undefined\"==typeof window&&\"function\"==typeof uni.requireNativePlugin,R=G&&\"object\"==typeof wx.miniapp,$=G||b||A||T||S||P||v,w=\"undefined\"==typeof window&&!$&&\"undefined\"!=typeof global&&void 0!==global.NativeScriptGlobals,E=\"undefined\"!=typeof global&&(void 0!==global.nativeModuleProxy||void 0!==global.ReactNative),U=\"undefined\"!=typeof uni?!$:\"undefined\"!=typeof window&&!$&&!E,q=(b?qq:A?tt:T?swan:S?my:G?wx:P?uni:v&&jd,U&&window&&window.navigator&&window.navigator.userAgent||\"\"),N=/(micromessenger|webbrowser)/i.test(q),k=function(){let e=\"WEB\";return N?e=\"WEB\":b?e=\"QQ_MP\":A?e=\"TT_MP\":T?e=\"BAIDU_MP\":S?e=\"ALI_MP\":G?e=R?\"DONUT_NATIVE_APP\":\"WX_MP\":P?e=\"UNI_NATIVE_APP\":w?e=\"NS_NATIVE_APP\":E&&(e=\"RN_NATIVE_APP\"),_[e]}(),O=(!function(){var e=q.match(/OS (\\d+)_/i);e&&e[1]&&e[1]}(),function(){var e,t,s=q.match(/Android (\\d+)(?:\\.(\\d+))?(?:\\.(\\d+))*/i);s&&(e=s[1]&&parseFloat(s[1]),t=s[2]&&parseFloat(s[2]),e&&t&&parseFloat(s[1]+\".\"+s[2]))}(),/MSIE/.test(q)||-1{const s=o.find(e=>e.key===t);s?s.value!==e&&(s.value=e,r=!0):(o.push({key:t,value:e}),r=!0)}),r}function Ze(e){return Ne(e)?[]:e.filter(e=>!0===e.isModified)}function et(e){if(He(e)&&He(e.webhookInfo)){const t=[];return e.webhookInfo.disableCloudMessagePreHook&&t.push(\"ForbidBeforeSendMsgCallback\"),e.webhookInfo.disableCloudMessagePostHook&&t.push(\"ForbidAfterSendMsgCallback\"),0!==t.length?t:void 0}}function st(e){return Ne(e)?[]:e.filter(e=>!1===e.isModified)}const ot=e=>e===me,rt=({type:e,groupID:t})=>e===de||(\"\"+t).startsWith(Ee)&&!(\"\"+t).includes(Ue),it=e=>(\"\"+e).startsWith(Ee)&&(\"\"+e).includes(Ue);function nt(e){return e.split(Ue)[0]}function at(){return!O&&!$}function ut(e,t=!0,s=!0){var o=Date.now();return t?s?o-e+\" ms\":Math.round((o-e)/1e3)+\" s\":s?o-e:Math.round((o-e)/1e3)}let pt=0;function lt(){return at()?\"%c Chat %c\":\"Chat\"}function ct(){const e=function(){const e=new Date;return e.setTime(ve()),e}();return e.toLocaleTimeString(\"en-US\",{hour12:!1})+\".\"+function(e){let t;switch(e.toString().length){case 1:t=\"00\"+e;break;case 2:t=\"0\"+e;break;default:t=e}return t}(e.getMilliseconds())}const ht={arguments2String(s){let o=\"\";if(1===s.length)o=s[0];else for(let e=0,t=s.length;e{this._sentFlag=!0,this._eventStatModule&&this._eventStatModule.pushIn(this)},0)}}setError(e){if(!(e instanceof Error))return ht.w(this._n+\".setError value not instanceof Error, please check!\"),this;if(this._sentFlag)return this;let t=!0;if(t=this._netMonitorModule?this._netMonitorModule.isOnline():t)e.code&&this.setCode(e.code),e.message&&this.setMoreMessage(e.message);else{const e=$t;this.setCode(e)}return this.setLevel(\"error\"),this}setCode(e){return Ke(e)||this._sentFlag||(\"ECONNABORTED\"===e&&(this.code=103),xe(e)?this.code=e:ht.w(this._n+\".setCode value not a number, please check!\",e,typeof e)),this}setMessage(e){return Ke(e)||this._sentFlag||(xe(e)&&(this.message=e.toString()),Ve(e)&&(this.message=e)),this}setCostTime(e){return this.costTime=e,this}setLevel(e){return Ke(e)||this._sentFlag||(this.level=Yt[e]),this}setMoreMessage(e){return Ne(this.moreMessage)?this.moreMessage=\"\"+e:this.moreMessage+=\" \"+e,this}setNetworkType(e){return Ke(e)?ht.w(this._n+\".setNetworkType value is undefined, please check!\"):(e=Qt[e.toLowerCase()],Ke(e)||(this.networkType=e)),this}getStartTs(){return this._startts}setUIPlatform(e){return this.uiPlatform=e,this}setExtension(e){return this.extension=e,this}setEventType(e){return this.eventType=e,this}}const ts=\"send_group_msg\",ss=\"get_joined_group_list\",os=\"get_group_self_member_info\",rs=\"create_group\",is=\"destroy_group\",ns=\"modify_group_base_info\",as=\"apply_join_group\",us=\"apply_join_group_noauth\",ps=\"quit_group\",ls=\"get_group_public_info\",cs=\"change_group_owner\",hs=\"handle_apply_join_group\",gs=\"handle_invite_join_permission_group\",ms=\"handle_invite_join_group\",ds=\"group_msg_recall\",_s=\"msg_read_report\",fs=\"group_msg_get\",Is=\"get_group_msg_receipt\",Ms=\"group_msg_receipt\",ys=\"get_group_msg_receipt_detail\",Ds=\"get_pendency\",Ls=\"deletemsg\",Cs=\"get_msg\",Gs=\"get_msg_noauth\",bs=\"get_online_member_num\",As=\"delete_group_ramble_msg_by_seq\",Ts=\"modify_group_msg\",Ss=\"set_group_attr\",vs=\"modify_group_attr\",Ps=\"delete_group_attr\",Rs=\"clear_group_attr\",$s=\"get_group_attr\",ws=\"group_set_key_values\",Es=\"group_get_key_values\",Us=\"batch_get_group_notify\",qs=\"update_group_counter\",Ns=\"get_group_counter\",ks=\"get_group_member_info\",Os=\"get_members\",Fs=\"get_specified_group_member_info\",xs=\"add_group_member\",Vs=\"delete_group_member\",Hs=\"ban_group_member\",js=\"modify_group_member_info\",Ks=\"modify_user_info\",Bs=\"unSend\",Js=\"success\",Ws=\"notStart\",zs=\"resolved\",Xs=\"rejected\";class Ys{constructor(e){this.type=B,this.content={text:e.text||\"\"}}setText(e){this.content.text=e}sendable(){return 0!==this.content.text.length}}function Qs(t,s,o,r=[]){if(t){let e=t;return s&&(t.startsWith(\"http://\")?e=t.replace(/^http:\\/\\/[^/]+/,s):t.startsWith(\"https://\")&&(e=t.replace(/^https:\\/\\/[^/]+/,s))),e=o&&-1===e.indexOf(\"authKey=\")&&to(e,r)?-1{Zs(e.messageBody[0].type,e.messageBody)})}return t}function eo(e){if(!e)return e;if(-1===e.indexOf(\"authKey=\"))return e;const t=e.split(\"?\"),s=t[1].split(\"&\");let o=0;for(let e=0;e{switch(e){case\"remarkInfo\":break;case\"groupProfile\":this.content.groupProfile={},this._initGroupProfile(t[e]);break;case\"operatorInfo\":this.content.operatorInfo={},this._initOperatorInfo(t[e]);break;case\"memberInfoList\":case\"msgMemberInfo\":this._updateMemberList(t[e]);break;case\"memberExtraInfo\":case\"onlineMemberInfo\":break;case\"memberNum\":this.content[e]=t[e],this.content.memberCount=t[e];break;case\"newGroupProfile\":this.content.newGroupProfile={},this._initNewGroupProfile(t[e]);break;default:this.content[e]=t[e]}}),this.content.userIDList||(this.content.userIDList=[this.content.operatorID])}_initGroupProfile(t){var s=Object.keys(t);for(let e=0;e{e.forEach(e=>{t.userID===e.userID&&Object.assign(t,e)})})}_initNewGroupProfile(t){var s=Object.keys(t);for(let e=0;e{switch(e){case\"memberInfoList\":break;case\"remarkInfo\":this.content.handleMessage=t[e];break;case\"groupProfile\":this.content.groupProfile={},this._initGroupProfile(t[e]);break;default:this.content[e]=t[e]}})}_initGroupProfile(t){var s=Object.keys(t);for(let e=0;e{!e.imageUrl&&e.url&&(e.imageUrl=e.url,e.sizeType=e.type,1===e.type?e.type=0:3===e.type&&(e.type=1))}):e===Y?!t.remoteVideoUrl&&t.videoUrl&&(t.remoteVideoUrl=t.videoUrl):e===W?!t.remoteAudioUrl&&t.url&&(t.remoteAudioUrl=t.url):e===z&&!t.fileUrl&&t.url&&(t.fileUrl=t.url,t.url=void 0)}_updateRichMediaDownloadUrl(e,t,s,o,r){(s||o)&&(e===J?t.imageInfoArray.forEach(e=>{e.url=Qs(e.url,s,o,r)}):e===Y?(t.videoUrl=Qs(t.videoUrl,s,o,r),t.snapshotUrl=Qs(t.thumbUrl,s,o,r),t.snapshotHeight=t.thumbHeight,t.snapshotWidth=t.thumbWidth):e===W?t.url=Qs(t.url,s,o,r):e===z&&(t.fileUrl=Qs(t.fileUrl,s,o,r)))}}var mo=class{constructor(e,t,s,o){if(this.type=se,this.content={downloadKey:\"\",pbDownloadKey:\"\",messageList:[],title:\"\",abstractList:[],compatibleText:\"\",version:0,layersOverLimit:!1},e.downloadKey){const{downloadKey:t,pbDownloadKey:s,title:o,abstractList:r,compatibleText:i,version:n}=e;this.content.downloadKey=t,this.content.pbDownloadKey=s,this.content.title=o,this.content.abstractList=r,this.content.compatibleText=i,this.content.version=n||0}else if(Ne(e.messageList))1===e.layersOverLimit&&(this.content.layersOverLimit=!0);else{const{messageList:a,title:u,abstractList:h,compatibleText:l,version:g}=e,p=[];a.forEach(e=>{Ne(e)||(e=new go(e,t,s,o),p.push(e))}),this.content.messageList=p,this.content.title=u,this.content.abstractList=h,this.content.compatibleText=l,this.content.version=g||0}}sendable(){return!Ne(this.content.messageList)||!Ne(this.content.downloadKey)}};const _o={1:oe,2:re,3:ie,4:ne};class fo{constructor(e){this.ID=\"\",this.conversationID=e.conversationID||null,this.conversationType=e.conversationType||ae,this.conversationSubType=e.conversationSubType,this.time=e.time||Math.ceil(Date.now()/1e3),this.sequence=e.sequence||0,this.clientSequence=e.clientSequence||e.sequence||0,this.random=e.random||0===e.random?e.random:ze(),this.priority=this._computePriority(e.priority),this.nick=e.nick||\"\",this.avatar=e.avatar||\"\",this.isPeerRead=!1,this.nameCard=\"\",this.hasRiskContent=function(e){let t=e&&1{e!==Se?(this._groupAtInfoList.push({groupAtAllFlag:0,groupAtUserID:e}),this.atUserList.push(e)):(this._groupAtInfoList.push({groupAtAllFlag:1}),this.atUserList.push(Se))}),je(e.groupAtInfo)&&e.groupAtInfo.forEach(e=>{0===e.groupAtAllFlag?this.atUserList.push(e.groupAtUserID):1===e.groupAtAllFlag&&this.atUserList.push(Se)})}getGroupAtInfoList(){return this._groupAtInfoList}_initProxy(){this._elements[0]&&(this.payload=this._elements[0].content,this.type=this._elements[0].type)}reInitialize(e){e&&(this.status=this.from?Js:Bs,this.from||(this.from=e)),this._initFlow(e),this._initSequence(e),this._concatConversationID(e),this.generateMessageID()}isSendable(){return 0!==this._elements.length&&(!0===this._relayFlag||\"function\"==typeof this._elements[0].sendable&&this._elements[0].sendable())}_initTo(e){this.conversationType===ue&&(this.to=e.groupID)}_initSequence(e){0===this.clientSequence&&e&&(this.clientSequence=function(o){if(!o)return!1;if(void 0===Xe[o]){const r=new Date;let e=(\"3\"+r.getHours()).slice(-2),t=(\"0\"+r.getMinutes()).slice(-2),s=(\"0\"+r.getSeconds()).slice(-2);Xe[o]=parseInt([e,t,s,\"0001\"].join(\"\")),e=null,t=null,s=null,ht.l(\"autoIncrementIndex start index:\"+Xe[o])}return Xe[o]++}(e)),0===this.sequence&&this.conversationType===ae&&(this.sequence=this.clientSequence)}generateMessageID(){this.from===le&&(this.senderTinyID=\"144115198244471703\"),this.ID=`${this.senderTinyID}-${this.clientTime}-`+this.random}_initFlow(e){\"\"!==e&&(e===this.from?(this.flow=\"out\",this.isRead=!0):this.flow=\"in\")}_concatConversationID(e){var t=this[\"to\"],s=this.conversationType;s!==le?(e=s===ae?e===this.from?t:this.from:this.to,this.conversationID=e?\"\"+s+e:null):this.conversationID=le}isElement(e){return e instanceof Ys||e instanceof so||e instanceof oo||e instanceof ro||e instanceof po||e instanceof co||e instanceof no||e instanceof uo||e instanceof lo||e instanceof ho||e instanceof mo}setElement(t,s,o,r){if(this.isElement(t))return this._elements=[t],void this._initProxy();var i=e=>{if(e.type&&e.content)switch(e.type){case B:this.setTextElement(e.content);break;case J:this.setImageElement(e.content,s,o,r);break;case W:this.setAudioElement(e.content,s,o,r);break;case z:this.setFileElement(e.content,s,o,r);break;case Y:this.setVideoElement(e.content,s,o,r);break;case te:this.setCustomElement(e.content);break;case Q:this.setLocationElement(e.content);break;case Z:this.setGroupTipElement(e.content);break;case ee:this.setGroupSystemNoticeElement(e.content);break;case X:this.setFaceElement(e.content);break;case se:this.setMergerElement(e.content,s,o,r)}};if(je(t))for(let e=0;e{e.reason=t})}var{nick:s,avatar:o}=t,s=(Ve(s)&&(this.nick=s),Ve(o)&&(this.avatar=o),new no(e));this._elements.push(s)}setGroupSystemNoticeElement(e){e=new uo(e);this._elements.push(e)}setFaceElement(e){e=new oo(e);this._elements.push(e)}setMergerElement(e,t,s,o){e=new mo(e,t,s,o);this._elements.push(e)}setIsRead(e){this.isRead=e}setRelayFlag(e){this._relayFlag=e}_computePriority(e){if(Ke(e))return re;if(Ve(e)&&-1!==Object.values(_o).indexOf(e))return e;if(xe(e)){e=\"\"+e;if(-1!==Object.keys(_o).indexOf(e))return _o[e]}return re}setNickAndAvatar(e){var{nick:e,avatar:t}=e;Ve(e)&&(this.nick=e),Ve(t)&&(this.avatar=t)}setNameCard(e){Ve(e)&&(this.nameCard=e)}initC2CReadReceiptInfo(e){var{readReceiptSentByPeer:e,timestamp:t=0}=e;this.conversationType===ae&&!0===this.needReadReceipt&&(this.readReceiptInfo.isPeerRead=1===e,this.readReceiptInfo.timestamp=t)}}class Io{constructor(e){this._grpM=e,this._n=\"GroupTipsHandler\",this._cachedGroupTipsMap=new Map,this._checkCountMap=new Map,this.MAX_CHECK_COUNT=4}onCheckTimer(e){e%1==0&&0{let s=this._checkCountMap.get(t);var o=this._grpM.hasLocalGroup(t);ht.l(this._n+`._check groupID:${t} hasLocalGroup:${o} checkCount:`+s),o?(this._notifyCachedGroupTips(t),this._checkCountMap.delete(t),this._grpM.deleteUnjoinedAVChatRoom(t)):s>=this.MAX_CHECK_COUNT?(this._deleteCachedGroupTips(t),this._checkCountMap.delete(t)):(s++,this._checkCountMap.set(t,s))})}onNewGroupTips(e){ht.l(this._n+\".onNewGroupTips options:\"+JSON.stringify(e.dataList));var{eventDataList:e,result:t,AVChatRoomMessageList:s}=this._assembly(e);0{switch(e.payload.operationType){case 1:this._onNewMemberComeIn(e);break;case 2:this._onMemberQuit(e);break;case 3:this._onMemberKickedOut(e);break;case 4:this._onMemberSetAdmin(e);break;case 5:this._onMemberCancelledAdmin(e);break;case 6:this._onGroupProfileModified(e);break;case 7:this._onMemberInfoModified(e);break;case 8:this._onTopicProfileUpdated(e);break;default:ht.w(this._n+\"._handleTips unknown operationType:\"+e.payload.operationType)}})}_onNewMemberComeIn(e){const{memberNum:t,groupProfile:{groupID:s}}=e.payload,o=this._grpM.getLocalGroupProfile(s);o&&xe(t)&&o.memberCount!==t&&(o.memberCount=t,this._updateConvGroupProfile(o))}_onMemberQuit(e){const{memberNum:t,groupProfile:{groupID:s}}=e.payload,o=this._grpM.getLocalGroupProfile(s);o&&xe(t)&&o.memberCount!==t&&(o.memberCount=t,this._updateConvGroupProfile(o)),this._grpM.getGroupMemberHandler().deleteLocalGroupMembers(s,e.payload.userIDList)}_onMemberKickedOut(e){const{memberNum:t,groupProfile:{groupID:s}}=e.payload,o=this._grpM.getLocalGroupProfile(s);o&&xe(t)&&o.memberCount!==t&&(o.memberCount=t,this._updateConvGroupProfile(o)),this._grpM.getGroupMemberHandler().deleteLocalGroupMembers(s,e.payload.userIDList)}_updateConvGroupProfile(e){this._grpM.get(o).updateConvGroupProfile([e])}_onMemberSetAdmin(e){const s=e.payload.groupProfile.groupID,t=e.payload.userIDList,o=this._grpM.getGroupMemberHandler();t.forEach(e=>{const t=o.getLocalGroupMemberInfo(s,e);t&&t.updateRole(Me)})}_onMemberCancelledAdmin(e){const s=e.payload.groupProfile.groupID,t=e.payload.userIDList,o=this._grpM.getGroupMemberHandler();t.forEach(e=>{const t=o.getLocalGroupMemberInfo(s,e);t&&t.updateRole(ye)})}_onGroupProfileModified(e){const{newGroupProfile:t,groupProfile:s,operatorInfo:o}=e.payload,r=s[\"groupID\"],i=this._grpM.getLocalGroupProfile(r);Object.keys(t).forEach(e=>{switch(e){case\"ownerID\":this._ownerChanged(i,t);break;case\"groupName\":i.name=t[e];break;default:i[e]=t[e]}}),Ke(o)||Object.keys(o).forEach(t=>{if(\"nameCard\"===t)i.updateSelfInfo({nameCard:o[t]});else if(\"role\"===t){let e=\"\";400===o[t]?e=Ie:300===o[t]?e=Me:200===o[t]&&(e=ye),i.updateSelfInfo({role:e})}});e=!i.isSupportTopic;this._grpM.emitGroupListUpdate(!0,e)}_ownerChanged({groupID:e},t){const s=this._grpM.getLocalGroupProfile(e),o=this._grpM.getMyUserID();if(o===t.ownerID){s.updateGroup({selfInfo:{role:Ie}});const t=this._grpM.getGroupMemberHandler(),r=t.getLocalGroupMemberInfo(e,o),i=this._grpM.getLocalGroupProfile(e).ownerID,n=t.getLocalGroupMemberInfo(e,i);r&&r.updateRole(Ie),n&&n.updateRole(ye)}}_onMemberInfoModified(e){const{to:t,payload:{groupProfile:s,memberList:o}}=e,r=s.groupID,i=(it(t)&&this._updateTopicMuteTime(e),this._grpM.getGroupMemberHandler());o.forEach(e=>{const t=i.getLocalGroupMemberInfo(r,e.userID);t&&xe(e.muteTime)&&t.updateMuteUntil(e.muteTime)})}_updateTopicMuteTime(e){const{to:t,payload:{groupProfile:o,memberList:r=[]}}=e,i=this._grpM.get(s),n=o[\"groupID\"],a=i.getLocalTopic(n,t);if(a){let t=!1;for(let e=0;e{this.onNewGroupTips(e)}),this._deleteCachedGroupTips(e)}_cacheAndCompare(e){var{groupID:e,event:t,item:s,groupType:o}=e,t=(ht.l(this._n+`._cacheAndCompare groupID:${e} groupType:`+o),this._cacheGroupTips(e,{event:t,dataList:[s]}),{groupID:e,type:o});o===me?this._grpM.hasLocalGroup(e)?this._notifyCachedGroupTips(e,o):this._grpM.setUnjoinedAVChatRoom(e):(this._grpM.updateGroupMap([t]),this._notifyCachedGroupTips(e,o)),this._checkCountMap.has(e)||this._checkCountMap.set(e,0)}reset(){this._cachedGroupTipsMap.clear(),this._checkCountMap.clear()}}class Mo{constructor(e){this._grpM=e,this._n=\"CommonGroupHandler\",this.tempConversationList=null,this._cachedGroupMessageMap=new Map,this._checkCountMap=new Map,this.MAX_CHECK_COUNT=4,this.PAGING_GRP_COUNT_LIMIT=200,this._pagingStatus=Ws,this._pagingGetCostList=[],e.getIEmitInst().on(Jt.A2KEY_AND_TINYID_UPDATED,this.syncGroupList,this)}onCheckTimer(e){e%1==0&&0{let s=this._checkCountMap.get(t);var o=this._grpM.hasLocalGroup(t);ht.l(this._n+`._check groupID:${t} hasLocalGroup:${o} checkCount:`+s),o?(this._notifyCachedGroupMessage(t),this._checkCountMap.delete(t),this._grpM.deleteUnjoinedAVChatRoom(t)):s>=this.MAX_CHECK_COUNT?(this._deleteCachedGroupMessage(t),this._checkCountMap.delete(t)):(s++,this._checkCountMap.set(t,s))})}updateLastMsg(i){var e=this._n+\".updateLastMsg\";if(0!==this._grpM.getGroupMap().size){let t,s,o,r=!1;var n,a,u=i.length;for(let e=0;ee.sequence-t.sequence),this._grpM.get(o)),I=this._grpM.get(t);for(let r=0;r{const t=e.elements[\"revokedInfos\"],{revokerInfo:n,groupProfile:a}=e;let u=!1;a&&(u=rt({groupID:a.groupID})||!Ne(a.topicID)),Ke(t)||t.forEach(e=>{var t=Ne(e.topicID)?\"GROUP\"+e.groupID:\"GROUP\"+e.topicID,s=p.getLocalConversation(t),o=e.revokerInfo&&e.revokerInfo.revoker||n&&n.revoker,r=n&&n.reason||\"\";let i;if(s&&ot(s.type))i={conversationID:t,sequence:e.sequence,ID:`${e.tinyID}-${e.clientTime}-`+e.random};else{const n=p.revoke(t,e.sequence,e.random);n?i=n:(i={conversationID:t,sequence:e.sequence},e.tinyID&&e.clientTime&&e.random&&(i.ID=`${e.tinyID}-${e.clientTime}-`+e.random),e.time&&(i.time=e.time))}i&&(i.revoker=o,i.revokeReason=r,i.revokerInfo={userID:o,nick:\"\",avatar:\"\"},u?(i.revokerInfo.nick=a.nick,i.revokerInfo.avatar=a.avatar,h.push(i)):l.push(i))})}),0===l.length&&0===h.length||(p.onMessageRevoked([...h,...l],t),0{this._grpM.emitOEvt(kt,e)}))}_groupListTreeShaking(s){const o=new Map([...this._grpM.getGroupMap()]);for(let e=0,t=s.length;e{o.delete(e)}),this._grpM.getGroupMap().forEach((e,t)=>{e.isSupportTopic&&o.delete(t)});var r=[...o.keys()];for(let e=0,t=r.length;e{var e=function(e){if(je(e)&&0!==e.length){let t=0;return e.forEach(e=>{t+=e}),(t/e.length).toFixed(0)}}(this._pagingGetCostList),t=function(e){if(je(e)&&0!==e.length){let t=0;return e.forEach(e=>{t+=e}),t.toFixed(0)}}(this._pagingGetCostList),t=(this._pagingGetCostList.length=0,this._pagingStatus=zs,this._groupListTreeShaking(o),this._grpM.updateGroupMap(o),`count:${this._grpM.getLocalGroupList().length} sum:${t} avg:`+e);return ht.l(r+\" ok. \"+t),i.setMessage(t).end(),this.tempConversationList&&(this.updateLastMsg(this.tempConversationList),this.tempConversationList=null),this._grpM.emitGroupListUpdate(!0,!0),gt({groupList:this._grpM.getLocalGroupList()})}).catch(e=>(this._pagingStatus=Xs,i.setError(e).end(),ht.e(r+\" failed. error:\",e),Bt(e)))}getGroupList(){const t=this._n+\".getGroupList\";if(ht.l(t+\" pagingStatus:\"+this._pagingStatus),this._pagingStatus===Xs||this._pagingStatus===Ws)return this.syncGroupList().then(()=>{var e=this._grpM.getLocalGroupList();return gt({groupList:e,isSyncCompleted:this.isPagingGetCompleted()})}).catch(e=>(ht.e(t+\" failed. error:\",e),Bt(e)));var e=this._grpM.getLocalGroupList();return ht.l(t+\". returned group count:\"+e.length),Kt({groupList:e,isSyncCompleted:this.isPagingGetCompleted()})}isPagingGetCompleted(){return this._pagingStatus===zs}_pagingGetGroupList(e){const o=this._n+\"._pagingGetGroupList\";let{isCommunityRelay:r=!1,limit:i,offset:n,groupBaseInfoFilter:a,groupList:u}=e;const p=Date.now();return this._grpM.req({P:ss,data:{type:r?de:void 0,memberAccount:this._grpM.getMyUserID(),limit:i,offset:n,responseFilter:{groupBaseInfoFilter:a,selfInfoFilter:[\"Role\",\"JoinTime\",\"MsgFlag\",\"MsgSeq\"]}}}).then(e=>{var{groups:e=[],totalCount:t}=e.data,e=(u.push(...e),this._handleGroupAtInfoWithoutTopic(r,e),n+i),s=!(e10018===e.code?(ht.w(this.logPrefix+\" response size exceeds the limit, request count:\"+i),i=50,this._pagingGetGroupList({limit:i,offset:n,groupBaseInfoFilter:a,groupList:u,isCommunityRelay:r})):r?(11e3===e.code&&ht.l(o+\" ok. community unavailable\"),Kt({groupList:u})):Bt(e))}_pagingGetGroupListWithTopic(e){const o=this._n+\"._pagingGetGroupListWithTopic\";let{limit:r,offset:i,groupBaseInfoFilter:n,groupList:a}=e;const u=Date.now();return this._grpM.req({P:ss,data:{type:de,memberAccount:this._grpM.getMyUserID(),limit:r,offset:i,responseFilter:{groupBaseInfoFilter:n,selfInfoFilter:[...C]},isSupportTopic:1,needAppDefineData:1}}).then(e=>{var{groups:e=[],totalCount:t}=e.data,e=(a.push(...e),i+r),s=!(e!0===e.isSupportTopic);return gt({groupList:t})}).catch(e=>10018===e.code?(ht.w(this.logPrefix+\" response size exceeds the limit, request count:\"+r),r=50,this._pagingGetGroupListWithTopic({limit:r,offset:i,groupBaseInfoFilter:n,groupList:a})):Bt(e))}_cacheGroupMessage(e,t){this._cachedGroupMessageMap.has(e)||this._cachedGroupMessageMap.set(e,[]),this._cachedGroupMessageMap.get(e).push(t)}_deleteCachedGroupMessage(e){this._cachedGroupMessageMap.has(e)&&this._cachedGroupMessageMap.delete(e)}_notifyCachedGroupMessage(e,t){const s=this._cachedGroupMessageMap.get(e)||[];ht.l(this._n+`._notifyCachedGroupMessage groupID:${e} groupType:${t} count:`+s.length),s.forEach(e=>{this.onNewMessage(e)}),this._deleteCachedGroupMessage(e)}_cacheAndCompare(e){var{groupID:e,event:t,item:s,groupType:o}=e,t=(ht.l(this._n+`._cacheAndCompare groupID:${e} groupType:`+o),this._cacheGroupMessage(e,{event:t,dataList:[s]}),{groupID:e,type:o});o===me?this._grpM.hasLocalGroup(e)?this._notifyCachedGroupMessage(e,o):this._grpM.setUnjoinedAVChatRoom(e):(this._grpM.updateGroupMap([t]),this._notifyCachedGroupMessage(e,o)),this._checkCountMap.has(e)||this._checkCountMap.set(e,0)}_handleGroupAtInfoWithoutTopic(e,t){e&&0!==t.length&&t.forEach(e=>{const{groupID:t,groupAtInfoList:s}=e,r=[];Ke(s)||(s.forEach(e=>{r.push({...e,groupID:t})}),this._grpM.get(o).onNewGroupAtTips({dataList:r}))})}setPagingGroupCount(e){Ke(e)||(this.PAGING_GRP_COUNT_LIMIT=parseInt(e,10))}reset(){this.PAGING_GRP_COUNT_LIMIT=200,this._cachedGroupMessageMap.clear(),this._checkCountMap.clear(),this._pagingStatus=Ws,this._pagingGetCostList=[]}}const yo=1,Do=2,Lo=3,Co=4,Go=5;class bo{constructor(e){this._grpM=e,this._n=\"GroupAttributesHandler\",this._groupAttributesMap=new Map,this._groupAttributesCopy={},this.CACHE_EXPIRE_TIME=3e4,this._grpM.getIEmitInst().on(Jt.CLOUD_CONFIG,this._onCloudConfig,this)}_onCloudConfig(){var e=this._grpM.getCloudConfig(\"grp_attr_cache_time\");Ke(e)||(this.CACHE_EXPIRE_TIME=Number(e))}updateLocalMainSequenceOnReconnected(){this._groupAttributesMap.forEach(e=>{e.localMainSequence=0})}isGroupAttributesUpdatedNotice(e){var{to:e,elements:{newGroupProfile:t}}=e,s=!Ke(t)&&!Ne(t.groupAttributeOption);return s&&this._onGroupAttributesUpdated({groupID:e,groupAttributeOption:t.groupAttributeOption}),s}_onGroupAttributesUpdated(e){const{groupID:t,groupAttributeOption:s}=e,{mainSequence:o,isWithChangedAttributeInfo:r,groupAttributeList:i=[],operationType:n}=s;if(ht.l(this._n+\".onGroupAttributesUpdated. \"+`groupID:${t} isWithChangedAttributeInfo:${r} operationType:`+n),!Ke(n)){this._groupAttributesCopy=this._getCachedAttributes({groupID:t});e=this._getLocalGroupAttributes(t)[\"localMainSequence\"],e=o-e;if(0!=e){if(1===r&&1==e)return this._refreshCachedGroupAttributes({groupID:t,remoteMainSequence:o,groupAttributeList:i,operationType:n}),void this._emitGroupAttributesUpdated(t);if(this._hasLocalGroupAttributes(t)){const e=this._getLocalGroupAttributes(t)[\"avChatRoomKey\"];this._getGroupAttributes({groupID:t,avChatRoomKey:e}).then(()=>{this._emitGroupAttributesUpdated(t)})}}}}initGroupAttributesCache(e){var{groupID:e,avChatRoomKey:t}=e;this._groupAttributesMap.set(e,{lastUpdateTime:0,localMainSequence:0,remoteMainSequence:0,attributes:new Map,avChatRoomKey:t}),ht.l(this._n+`.initGroupAttributesCache groupID:${e} avChatRoomKey:`+t)}initGroupAttributes(e){const{groupID:r,groupAttributes:i}=e,{remoteMainSequence:t,avChatRoomKey:s}=this._getLocalGroupAttributes(r),n=new es(\"initGroupAttributes\");return n.setMessage(`groupID:${r} avChatRoomKey:${s} mainSequence:`+t),this._grpM.req({P:Ss,data:{groupID:r,avChatRoomKey:s,mainSequence:t,groupAttributeList:this._transformGroupAttributes(i)}}).then(e=>{ht.l(this._n+\".initGroupAttributes ok. groupID:\"+r);const{mainSequence:t,groupAttributeList:s}=e.data,o=[...s];return o.forEach(e=>{e.value=i[e.key]}),this._groupAttributesCopy=this._getCachedAttributes({groupID:r}),this._refreshCachedGroupAttributes({groupID:r,remoteMainSequence:t,groupAttributeList:o,operationType:yo}),this._emitGroupAttributesUpdated(r),n.end(),gt({groupAttributes:i})}).catch(e=>(n.setError(e).end(),Bt(e)))}setGroupAttributes(e){const r=this._n+\".setGroupAttributes\",{groupID:i,groupAttributes:n}=e,{remoteMainSequence:t,avChatRoomKey:s,attributes:o}=this._getLocalGroupAttributes(i),a=this._transformGroupAttributes(n),u=(a.forEach(e=>{var t=e[\"key\"];e.sequence=0,o.has(t)&&(e.sequence=o.get(t).sequence)}),new es(\"setGroupAttributes\"));return u.setMessage(`groupID:${i} groupAttributes:`+JSON.stringify(n)),ht.l(r+`. groupID:${i} mainSequence:`+t),this._grpM.req({P:vs,data:{groupID:i,avChatRoomKey:s,mainSequence:t,groupAttributeList:a}}).then(e=>{ht.l(r+\" ok.\");const{mainSequence:t,groupAttributeList:s}=e.data,o=[...s];return o.forEach(e=>{e.value=n[e.key]}),this._groupAttributesCopy=this._getCachedAttributes({groupID:i}),this._refreshCachedGroupAttributes({groupID:i,remoteMainSequence:t,groupAttributeList:o,operationType:Do}),this._emitGroupAttributesUpdated(i),u.end(),gt({groupAttributes:n})}).catch(e=>(u.setError(e).end(),Bt(e)))}deleteGroupAttributes(h){const{groupID:t,keyList:e=[]}=h,{remoteMainSequence:s,avChatRoomKey:l,attributes:o}=this._getLocalGroupAttributes(t);let r=[...o.keys()],i=Rs,n=Lo;const a={groupID:t,avChatRoomKey:l,mainSequence:s},u=[],p=(0{let t=0;o.has(e)&&(t=o.get(e).sequence,r.push(e)),u.push({key:e,sequence:t})}),a.groupAttributeList=u),new es(\"deleteGroupAttributes\"));return p.setMessage(`groupID:${t} mainSequence:${s} keyList:${e} proto:`+i),this._grpM.req({P:i,data:a}).then(e=>{ht.l(this._n+\".deleteGroupAttributes ok. groupID:\"+t);e=e.data.mainSequence;return this._groupAttributesCopy=this._getCachedAttributes({groupID:t}),this._refreshCachedGroupAttributes({groupID:t,remoteMainSequence:e,groupAttributeList:u,operationType:n}),this._emitGroupAttributesUpdated(t),p.end(),gt({keyList:r})}).catch(e=>(p.setError(e).end(),Bt(e)))}getGroupAttributes(t){const s=this._n+\".getGroupAttributes\",o=t[\"groupID\"],{avChatRoomKey:e,lastUpdateTime:r,localMainSequence:i,remoteMainSequence:n}=this._getLocalGroupAttributes(o),a=new es(\"getGroupAttributes\");if(a.setMessage(`groupID:${o} localMainSequence:${i} remoteMainSequence:${n} keyList:`+t.keyList),Date.now()-r>=this.CACHE_EXPIRE_TIME||i{a.setMoreMessage(\"get attributes from remote. count:\"+e.length).end(),ht.l(s+\" from remote. groupID:\"+o);e=this._getCachedAttributes(t);return gt({groupAttributes:e})}).catch(e=>(a.setError(e).end(),Bt(e)));a.setMoreMessage(\"get attributes from cache\").end(),ht.l(s+\" from cache. groupID:\"+o);var u=this._getCachedAttributes(t);return Kt({groupAttributes:u})}_getGroupAttributes(o){let e=0;return Ke(o.avChatRoomKey)||(e=1),this._grpM.req({P:$s,data:{...o,groupType:e}}).then(e=>{ht.l(this._n+\"._getGroupAttributes ok. groupID:\"+o.groupID);var{mainSequence:e,groupAttributeList:t}=e.data,s=[...t];return Ke(e)||this._refreshCachedGroupAttributes({groupID:o.groupID,remoteMainSequence:e,groupAttributeList:s,operationType:Go}),t}).catch(e=>Bt(e))}_refreshCachedGroupAttributes(e){var{groupID:t,remoteMainSequence:s,groupAttributeList:o,operationType:r}=e;if(this._hasLocalGroupAttributes(t)){const e=this._getLocalGroupAttributes(t),i=e[\"localMainSequence\"];if(r===Go||s-i==1)e.remoteMainSequence=s,e.localMainSequence=s,e.lastUpdateTime=Date.now(),this._updateCachedAttributes({groupAttributes:e,groupAttributeList:o,operationType:r});else{if(i===s)return;e.remoteMainSequence=s}this._groupAttributesMap.set(t,e);o=`operationType:${r} localMainSequence:${i} remoteMainSequence:`+s;ht.l(this._n+\"._refreshCachedGroupAttributes. \"+o)}}_getCachedAttributes(t){const{groupID:e,keyList:s=[]}=t,o={};if(this._hasLocalGroupAttributes(e)){const t=this._getLocalGroupAttributes(e)[\"attributes\"];if(0{t.has(e)&&(o[e]=t.get(e).value)});else for(const e of t.keys())o[e]=t.get(e).value}return o}_updateCachedAttributes(e){const{groupAttributes:o,groupAttributeList:t,operationType:s}=e;s!==Lo?s!==Co?(s===yo&&o.attributes.clear(),t.forEach(e=>{var{key:e,value:t,sequence:s}=e;o.attributes.set(e,{value:t,sequence:s})})):t.forEach(e=>{o.attributes.delete(e.key)}):o.attributes.clear()}_hasLocalGroupAttributes(e){return this._groupAttributesMap.has(e)}_getLocalGroupAttributes(e){return this._hasLocalGroupAttributes(e)||this.initGroupAttributesCache({groupID:e}),this._groupAttributesMap.get(e)}_transformGroupAttributes(t){const s=[];return Object.keys(t).forEach(e=>{s.push({key:e,value:t[e]})}),s}_emitGroupAttributesUpdated(e){var t=this._getCachedAttributes({groupID:e}),{updatedKeyList:s,deletedKeyList:o}=this._computeAttrChangedInfo(t);ht.l(`${this._n}._emitGroupAttributesUpdated update:${s.length}, delete:`+o.length),0===s.length&&0===o.length||this._grpM.emitOEvt(Ft,{groupID:e,groupAttributes:t,updatedKeyList:s,deletedKeyList:o})}_computeAttrChangedInfo(t){const s=[],o=[];return Object.keys(t).forEach(e=>{t[e]!==this._groupAttributesCopy[e]&&s.push(e)}),Object.keys(this._groupAttributesCopy).forEach(e=>{Ke(t[e])&&o.push(e)}),this._groupAttributesCopy={},{updatedKeyList:s,deletedKeyList:o}}deleteLocalGroupAttributes(e){this._hasLocalGroupAttributes(e)&&this._groupAttributesMap.delete(e)}reset(){this._groupAttributesMap.clear(),this._groupAttributesCopy={},this.CACHE_EXPIRE_TIME=3e4}}const Ao=\"Set\",To=\"Increase\",So=\"Decrease\";class vo{constructor(e){this._grpM=e,this._n=\"GroupCountersHandler\",this._groupCountersMap=new Map,this.EXPIRE_TIME=3e4,this._grpM.getIEmitInst().on(Jt.CLOUD_CONFIG,this._onCloudConfig,this)}_onCloudConfig(){var e=this._grpM.getCloudConfig(\"grp_counter_expire_time\");Ke(e)||(this.EXPIRE_TIME=Number(e))}isGroupCountersNotice(e){var{to:e,elements:{groupCounterInfo:t}}=e;let s=!1;return Ne(t)||(this._onGroupCountersUpdated({groupID:e,groupCounterInfo:t}),s=!0),s}_onGroupCountersUpdated(e){const{groupID:r,groupCounterInfo:t}=e;t.forEach(e=>{const{type:t,groupCounterSeq:s,counterList:o=[]}=e;0!==t&&2!==t||(this._updateLocalGroupCounters({groupID:r,groupCounterSeq:s,counterList:o}),o.forEach(e=>{this._grpM.emitOEvt(xt,{groupID:r,key:e.key,value:e.value})})),1===t&&this._deleteLocalGroupCounters({groupID:r,groupCounterSeq:s,counterList:o})}),ht.l(this._n+\"._onGroupCountersUpdated groupID:\"+r)}initGroupCountersCache(e){var{groupID:e,avChatRoomKey:t}=e;this._groupCountersMap.set(e,{lastUpdateTime:0,groupCounterSeq:0,counters:new Map,avChatRoomKey:t}),ht.l(this._n+`.initGroupCountersCache groupID:${e} avChatRoomKey:`+t)}setGroupCounters(e){if(!this._grpM.canIUse(M.GRP_COUNTER))return this._grpM.noUse(\"setGroupCounters\");const t=this._n+\".setGroupCounters\",{groupID:s,counters:o}=e,r=this._convertObjectToList(o),i=this._getLocalGroupCounters(s)[\"avChatRoomKey\"],n=`groupID:${s} count:`+r.length,a=new es(\"setGroupCounters\");return a.setMessage(n),ht.l(t+\". \"+n),this._updateGroupCounters({groupID:s,counterList:r,avChatRoomKey:i,mode:Ao}).then(e=>(a.end(),ht.l(t+\" ok.\"),gt({counters:e}))).catch(e=>(a.setError(e).end(),ht.e(t+\" failed. error:\",e),Bt(e)))}increaseGroupCounter(e){var t=\"increaseGroupCounter\";if(!this._grpM.canIUse(M.GRP_COUNTER))return this._grpM.noUse(t);const s=this._n+\".\"+t,{groupID:o,key:r,value:i}=e,n=this._getLocalGroupCounters(o)[\"avChatRoomKey\"],a=`groupID:${o} key:${r} value:`+i,u=new es(t);return u.setMessage(a),ht.l(s+\". \"+a),this._updateGroupCounters({groupID:o,counterList:[{key:r,value:i}],avChatRoomKey:n,mode:To}).then(e=>(u.end(),ht.l(s+\" ok.\"),gt({counters:e}))).catch(e=>(u.setError(e).end(),ht.e(s+\" failed. error:\",e),Bt(e)))}decreaseGroupCounter(e){var t=\"decreaseGroupCounter\";if(!this._grpM.canIUse(M.GRP_COUNTER))return this._grpM.noUse(t);const s=this._n+\".\"+t,{groupID:o,key:r,value:i}=e,n=this._getLocalGroupCounters(o)[\"avChatRoomKey\"],a=`groupID:${o} key:${r} value:`+i,u=new es(t);return u.setMessage(a),ht.l(s+\". \"+a),this._updateGroupCounters({groupID:o,counterList:[{key:r,value:i}],avChatRoomKey:n,mode:So}).then(e=>(u.end(),ht.l(s+\" ok.\"),gt({counters:e}))).catch(e=>(u.setError(e).end(),ht.e(s+\" failed. error:\",e),Bt(e)))}getGroupCounters(e){if(!this._grpM.canIUse(M.GRP_COUNTER))return this._grpM.noUse(\"getGroupCounters\");const t=this._n+\".getGroupCounters\",{groupID:s,keyList:o=[]}=e,{avChatRoomKey:r,lastUpdateTime:i}=this._getLocalGroupCounters(s),n=new es(\"getGroupCounters\");if(n.setMessage(\"groupID:\"+s),Date.now()-i>=this.EXPIRE_TIME)return this._getRemoteGroupCounters({groupID:s,avChatRoomKey:r}).then(e=>{n.setMoreMessage(\"from remote. count:\"+e.length).end(),ht.l(t+\" from remote. groupID:\"+s);e=this._getLocalCounters(s,o);return gt({counters:e})}).catch(e=>(n.setError(e).end(),Bt(e)));n.setMoreMessage(\"from cache\").end(),ht.l(t+\" from cache. groupID:\"+s);e=this._getLocalCounters(s,o);return Kt({counters:e})}_getRemoteGroupCounters(s){return this._grpM.req({P:Ns,data:{...s}}).then(e=>{var{counterList:e=[],groupCounterSeq:t}=e.data;return this._updateLocalGroupCounters({groupID:s.groupID,counterList:e,groupCounterSeq:t}),ht.l(this._n+\"._getRemoteGroupCounters ok. groupID:\"+s.groupID),e}).catch(e=>Bt(e))}_convertObjectToList(t){const s=[];return Object.keys(t).forEach(e=>{s.push({key:e,value:t[e]})}),s}_updateGroupCounters(e){const o=this._n+\"._updateGroupCounters\",{groupID:t,avChatRoomKey:s,mode:r}=e;return ht.l(o+`. groupID:${t} avChatRoomKey:${s} mode:`+r),this._grpM.req({P:qs,data:{...e}}).then(e=>{ht.l(o+\" ok.\");const{counterList:t=[]}=e.data,s={};return t.forEach(e=>{var{key:e,value:t}=e;s[e]=t}),s}).catch(e=>Bt(e))}_hasLocalGroupCounters(e){return this._groupCountersMap.has(e)}_getLocalGroupCounters(e){return this._hasLocalGroupCounters(e)||this.initGroupCountersCache({groupID:e}),this._groupCountersMap.get(e)}_updateLocalGroupCounters(s){const{groupID:e,counterList:t=[],groupCounterSeq:o}=s;if(this._hasLocalGroupCounters(e)){const{counters:s,avChatRoomKey:r,groupCounterSeq:i}=this._getLocalGroupCounters(e);0{var{key:e,value:t}=e;s.set(e,t)}),this._groupCountersMap.set(e,{lastUpdateTime:Date.now(),groupCounterSeq:o,counters:s,avChatRoomKey:r}))}}_deleteLocalGroupCounters(t){const{groupID:e,counterList:s=[],groupCounterSeq:o}=t;if(this._hasLocalGroupCounters(e)){const{counters:t,avChatRoomKey:r}=this._getLocalGroupCounters(e);s.forEach(e=>{t.delete(e.key)}),this._groupCountersMap.set(e,{lastUpdateTime:Date.now(),groupCounterSeq:o,counters:t,avChatRoomKey:r})}}_getLocalCounters(e,t){const s={};if(!this._hasLocalGroupCounters(e))return s;const o=this._getLocalGroupCounters(e)[\"counters\"];if(0{o.has(e)&&(s[e]=o.get(e))});else for(const r of o.keys())s[r]=o.get(r);return s}reset(){this._groupCountersMap.clear(),this.EXPIRE_TIME=3e4}}class Po{constructor(e){var{manager:e,groupID:t,onInit:s,onSuccess:o,onFail:r}=e;this._n=\"Polling\",this._manager=e,this._grpM=e._grpM,this._onInit=s,this._onSuccess=o,this._onFail=r,this._groupID=t,this._timeoutID=-1,this._isRunning=!1,this._proto=Cs}start(){var e=this._grpM.isLoggedIn();e||(this._proto=Gs),ht.l(`${this._n}.start pollingInterval:${this._manager.getPollingInterval()} isLoggedIn:`+e),this._isRunning=!0,this._request()}isRunning(){return this._isRunning}_request(){var e=this._onInit(this._groupID);this._grpM.req({P:this._proto,data:e}).then(e=>{this._onSuccess(this._groupID,e),this.isRunning()&&(-1{this._onFail(this._groupID,e),this.isRunning()&&(-1=this.MAX_LENGTH){const e=this.map.entries().next().value[0];this.map.delete(e)}this.map.set(e,1)}has(e){return this.map.has(e)}delete(e){this.has(e)&&this.map.delete(e)}reset(){this.map.clear()}}const $o=[\"groupID\",\"name\",\"avatar\",\"type\",\"introduction\",\"notification\",\"ownerID\",\"selfInfo\",\"createTime\",\"infoSequence\",\"lastInfoTime\",\"lastMessage\",\"nextMessageSeq\",\"memberNum\",\"maxMemberNum\",\"memberList\",\"joinOption\",\"groupCustomField\",\"muteAllMembers\",\"isSupportTopic\",\"inviteOption\",\"_lastRevokedTime\"];class wo{constructor(e){this.groupID=\"\",this.name=\"\",this.avatar=\"\",this.type=\"\",this.introduction=\"\",this.notification=\"\",this.ownerID=\"\",this.createTime=\"\",this.infoSequence=\"\",this.lastInfoTime=\"\",this.selfInfo={messageRemindType:\"\",joinTime:\"\",nameCard:\"\",role:\"\",userID:\"\",memberCustomField:void 0,readedSequence:0,excludedUnreadSequenceList:void 0},this.lastMessage={lastTime:\"\",lastSequence:\"\",fromAccount:\"\",messageForShow:\"\"},this.nextMessageSeq=\"\",this.memberNum=\"\",this.memberCount=\"\",this.maxMemberNum=\"\",this.maxMemberCount=\"\",this.joinOption=\"\",this.inviteOption=\"\",this.groupCustomField=[],this.muteAllMembers=!1,this.isSupportTopic=!1,this._lastRevokedTime=0,this._initGroup(e)}set memberNum(e){}set maxMemberNum(e){}get memberNum(){return this.memberCount}get maxMemberNum(){return this.maxMemberCount}_initGroup(e){for(const t in e)$o.indexOf(t)<0||(\"selfInfo\"!==t?(\"memberNum\"===t&&(this.memberCount=e[t]),\"maxMemberNum\"===t&&(this.maxMemberCount=e[t]),\"isSupportTopic\"!==t?this[t]=e[t]:this.isSupportTopic=1===e[t]):this.updateSelfInfo(e[t]))}updateGroup(e){e.appid=void 0,e.grossTopicNextMsgSeq=void 0,e.selfInfo&&(e.selfInfo.grossTopicReadSeq=void 0);const t=JSON.parse(JSON.stringify(e));t.lastMsgTime&&(this.lastMessage.lastTime=t.lastMsgTime),Ke(t.muteAllMembers)||(\"On\"===t.muteAllMembers?t.muteAllMembers=!0:t.muteAllMembers=!1),t.groupCustomField&&Qe(this.groupCustomField,t.groupCustomField),Ke(t.memberNum)||(this.memberCount=t.memberNum),Ke(t.maxMemberNum)||(this.maxMemberCount=t.maxMemberNum),Ke(t.isSupportTopic)||(this.isSupportTopic=xe(t.isSupportTopic)?1===t.isSupportTopic:t.isSupportTopic),We(this,t,[\"members\",\"errorCode\",\"lastMsgTime\",\"groupCustomField\",\"memberNum\",\"maxMemberNum\",\"isSupportTopic\"]),je(t.members)&&0{e.userID===this.selfInfo.userID&&We(this.selfInfo,e,[\"sequence\"])})}updateSelfInfo({nameCard:e,joinTime:t,role:s,messageRemindType:o,readedSequence:r,excludedUnreadSequenceList:i}){e={nameCard:e,joinTime:t,role:s,messageRemindType:o,readedSequence:r,excludedUnreadSequenceList:i};We(this.selfInfo,{...e},[],[\"\",null,void 0,0,NaN])}setSelfNameCard(e){this.selfInfo.nameCard=e}}const Eo={3:!0,4:!0,5:!0,6:!0,17:!0,20:!0,21:!0,100:!0};class Uo{constructor(e){this._grpM=e,this._n=\"AVChatRoomHandler\",this._joinedGroupMap=new Map,this._pollingRequestInfoMap=new Map,this._pollingInstanceMap=new Map,this._seqSll=new Ro(200),this._IDSll=new Ro(100),this._reportMessageStackedCount=0,this._onlineMemberCountMap=new Map,this.DEFAULT_EXPIRE_TIME=60,this.DEFAULT_POLLING_INTERVAL=300,this.MAX_POLLING_INTERVAL=2e3,this._pollingInterval=this.DEFAULT_POLLING_INTERVAL,this.DEFAULT_POLLING_NO_MESSAGE_COUNT=20,this.DEFAULT_POLLING_INTERVAL_PLUS=2e3,this._pollingNoMessageCount=0,this._startBroadcastSeq=1,this._broadcastMessageIDMap=new Map,this.DEFAULT_POLLING_SIMPLIFIED_MSG=0}hasJoinedAVChatRoom(){let e=[];return 0<(e=0e.type===me):e).length}getJoinedLiveList(){let e=[];return e=0e.type===fe):e}checkJoinedAVChatRoomByID(e){return this._joinedGroupMap.has(e)}getJoinedAVChatRoom(){return 0this._startBroadcastSeq&&(this._startBroadcastSeq=n),je(r)&&0{e.to=e.groupID}),this.onMessage(r,e)):(this._pollingNoMessageCount+=1,this._pollingNoMessageCount===this.DEFAULT_POLLING_NO_MESSAGE_COUNT&&(this._pollingInterval=this.DEFAULT_POLLING_INTERVAL+this.DEFAULT_POLLING_INTERVAL_PLUS)),this._onBroadcastMessage(a))}_handleFailure(e,t){}onMessage(n,a){if(je(n)&&0!==n.length){let t=this._n+\".onMessage\",s=(a&&(t+=\" groupID:\"+a),0!==this._pollingNoMessageCount&&(this._pollingNoMessageCount=0,this._pollingInterval=this.DEFAULT_POLLING_INTERVAL),null);const h=[],l=this._get(o),c=this._get(p),m=n.length;1e.sequence-t.sequence);var u=this._get(r).isUnlimitedAVChatRoom();let i=!1;if(ht.getLevel()<=0){const a=n.map(e=>e.sequence);ht.l(`${t} count:${a.length} sequenceList:`+a),a.length=0}for(let e=0;e{var{tinyID:e,clientTime:t,random:s,sequence:o}=e,e={conversationID:\"\"+ue+r,ID:e+`-${t}-`+s,revoker:i.revoker,revokeReason:i.reason||\"\",revokerInfo:{userID:i.revoker,nick:\"\",avatar:\"\"},sequence:o};n.push(e)}),0!==n.length&&this._get(o).updateRevokerInfo(n).then(e=>{this._grpM.emitOEvt(kt,e)})}isBroadcastOrNormal(e){return 3===e||17===e}isGroupTip(e){return 4===e||6===e}isGroupSystemNotice(e){return 5===e}restoreGroupTipElements(e={}){const{operatorInfo:t={},operatorID:s,userIDList:o=[],operationType:r}=e;xe(e.groupJoinType)||1!==r&&2!==r||(e.groupJoinType=2===r?0:1);var{userID:i=s,avatar:n=\"\",nick:a=\"\"}=t,i=(e.operatorInfo={userID:i,avatar:n,nick:a},o.map(e=>({userID:e})));return e.memberInfoList=e.memberInfoList||i,e}restoreMessageFromSimplified(s){const e=s[\"event\"];if(this.isBroadcastOrNormal(e)&&(s.cloudCustomData=s.cloudCustomData||\"\",s.elements=s.elements.map(e=>{var t;return e.type===te&&({content:t={}}=e,e.content={data:\"\",description:\"\",extension:\"\",...t}),e})),(this.isGroupTip(e)||this.isGroupSystemNotice(e))&&(s.from=s.from||\"@TIM#SYSTEM\"),this.isGroupTip(e)){s.elements=this.restoreGroupTipElements(s.elements);const{elements:e={}}=s,{operationType:t,operatorInfo:r={}}=e;if(1===t){const s=[{userID:r.userID}];e.memberInfoList=e.memberInfoList||s}}if(this.isGroupSystemNotice(e)){let{memberInfoList:e,operatorInfo:t={}}=s.elements;e=e||t,s.elements.memberInfoList={userID:s.elements.operatorID,avatar:\"\",nick:\"\",...e},s.elements={authentication:\"\",remarkInfo:\"\",messageKey:1e3*s.time,...s.elements};var o=Object.keys(s.elements).filter(e=>\"operatorInfo\"!==e).reduce((e,t)=>({...e,[t]:s.elements[t]}),{});s.elements=o}return s}_onGroupDismissed(e){ht.l(this._n+\"._onGroupDismissed groupID:\"+e),this._grpM.deleteLocalGroupAndConversation(e),this.reset(e)}_checkMessageStacked(e){var t=\"MessageStacked\",e=e.length;100<=e&&(this._grpM.warn(t,e),this._reportMessageStackedCount<5)&&(new es(t).setMessage(`count:${e} groupID:`+[...this._joinedGroupMap.keys()]).setLevel(\"warning\").end(),this._reportMessageStackedCount+=1)}_isMessageSentByCurrentInstance(e){return!!this._get(o).isMessageSentByCurrentInstance(e)}packMessage(e,t){e.currentUser=this._grpM.getMyUserID(),e.conversationType=5===t?le:ue,e.isSystemMessage=!!e.isSystemMessage;const s=new fo(e),o=this.packElements(e,t),r=this._grpM.getFileDownloadProxy(),i=this._grpM.getDowloadFileAuthKey(),a=this._get(n).getFileDNList();return s.setElement(o,r,i,a),s}packElements(e,t){return 4===t||6===t?(this._updateMemberCountByGroupTips(e),{type:Z,content:{...e.elements,groupProfile:e.groupProfile}}):5===t?{type:ee,content:{...e.elements,groupProfile:{...e.groupProfile,groupID:e.groupID}}}:e.elements}packConversationOption(t){const s=new Map;for(let e=0;e{var{longPollingKey:e,group:t}=o,s=t.groupID;return this._joinedGroupMap.set(s,t),this._grpM.updateGroupMap([t]),this._grpM.deleteUnjoinedAVChatRoom(s),this._grpM.emitGroupListUpdate(!0,!1),Ke(e)?Kt({status:$e,group:t}):Promise.resolve()})}startRunLoop(r){return this.handleJoinResult(r).then(()=>{var{longPollingKey:e,group:t,startSeq:s=0}=r,o=t.groupID;return this._pollingRequestInfoMap.set(o,{key:e,startSeq:s}),this.start(o),this._grpM.isLoggedIn()?Kt({status:$e,group:t}):Kt({status:$e})})}_preCheck(e){if(this._get(r).isUnlimitedAVChatRoom())return Promise.resolve();if(!this.hasJoinedAVChatRoom())return Promise.resolve();if(e.type===fe)return Promise.resolve();var[e,t]=this._joinedGroupMap.entries().next().value;if(this._grpM.isLoggedIn()){if(t.selfInfo.role!==Ie&&t.ownerID!==this._grpM.getMyUserID())return this._grpM.quitGroup(e);this._grpM.deleteLocalGroupAndConversation(e)}else this._grpM.deleteLocalGroupAndConversation(e);return this.reset(e),Promise.resolve()}joinWithoutAuth(e){const s=e[\"groupID\"],r=this._n+\".joinWithoutAuth\",n=new es(\"joinWithoutAuth\");return this._grpM.req({P:us,data:e}).then(({data:{longPollingKey:e}})=>{if(n.setMessage(`groupID:${s} longPollingKey:`+e).end(!0),Ke(e))return Bt({code:bt});ht.l(r+\" ok. groupID:\"+s),this._get(o).setCompleted(\"\"+ue+s);var t=new wo({groupID:s});return this.startRunLoop({group:t,longPollingKey:e}),gt({status:$e})}).catch(e=>(ht.e(r+` failed. groupID:${s} error:`,e),n.setError(e).setMessage(\"groupID:\"+s).end(!0),Bt(e))).finally(()=>{this._grpM.get(i).reportAtOnce()})}getGroupOnlineMemberCount(e){const t=this._onlineMemberCountMap.get(e)||{},s=Date.now();return Ne(t)||s-t.lastSyncTime>1e3*t.expireTime&&1e4gt({memberCount:e.memberCount})).catch(e=>Bt(e))):Kt({memberCount:t.memberCount})}_getGroupOnlineMemberCount(r){const i=this._n+\"._getGroupOnlineMemberCount\",t=new es(\"_getGroupOnlineMemberCount\");return this._grpM.requestOnlineCount(r).then(e=>{const t=this._onlineMemberCountMap.get(r)||{},{memberCount:s=0,expireTime:o=this.DEFAULT_EXPIRE_TIME}=e.data;ht.l(i+` ok. groupID:${r} memberCount:${s} expireTime:`+o);e=Date.now();return Ne(t)&&(t.lastReqTime=e),this._onlineMemberCountMap.set(r,Object.assign(t,{lastSyncTime:e,latestUpdateTime:e,memberCount:s,expireTime:o})),{memberCount:s}}).catch(e=>(ht.w(i+\" failed. error:\",e),t.setCode(e.code).setMessage(`groupID:${r} error:`+JSON.stringify(e)).end(),Promise.reject(e)))}_get(e){return this._grpM.get(e)}setPollingInterval(e){Ke(e)||(xe(e)?this._pollingInterval=this.DEFAULT_POLLING_INTERVAL=e:this._pollingInterval=this.DEFAULT_POLLING_INTERVAL=parseInt(e,10))}setPollingIntervalPlus(e){Ke(e)||(xe(e)?this.DEFAULT_POLLING_INTERVAL_PLUS=e:this.DEFAULT_POLLING_INTERVAL_PLUS=parseInt(e,10))}setPollingNoMessageCount(e){Ke(e)||(xe(e)?this.DEFAULT_POLLING_NO_MESSAGE_COUNT=e:this.DEFAULT_POLLING_NO_MESSAGE_COUNT=parseInt(e,10))}setPollingSimplifiedMessage(e){Ke(e)||\"0\"!==e&&\"1\"!==e||(this.DEFAULT_POLLING_SIMPLIFIED_MSG=parseInt(e,10))}getPollingInterval(){return this._pollingInterval}onAVChatRoomMemberBanned(e){e=e.payload.groupProfile.groupID;ht.l(this._n+\".onAVChatRoomMemberBanned groupID:\"+e),this._grpM.deleteLocalGroupAndConversation(e),this.reset(e)}restartPolling(){ht.l(this._n+\".restartPolling count:\"+this._pollingInstanceMap.size);for(const e of this._pollingInstanceMap.values())e.stop(),e.start()}getPollingTimerID(e){if(!this._pollingInstanceMap.has(e))return-1;var t=this._pollingInstanceMap.get(e).getPollingTimerID();return ht.l(this._n+`.getPollingTimerID groupID:${e} timerID:`+t),t}hasPollingInstance(e){return this._pollingInstanceMap.has(e)}onRoomCustomData(e){var{groupID:e,sequence:t,time:s,elements:o}=e,o=o&&o.content;this._get(h).onRoomCustomDataReceived(o),ht.l(this._n+`.onRoomCustomData groupID:${e} sequence:${t} time:${s} data:`+o)}reset(e){if(e){ht.l(this._n+\".reset groupID:\"+e);const t=this._pollingInstanceMap.get(e);t&&t.stop(),this._pollingInstanceMap.delete(e),this._joinedGroupMap.delete(e),this._pollingRequestInfoMap.delete(e),this._onlineMemberCountMap.delete(e)}else{ht.l(this._n+\".reset all\");for(const e of this._pollingInstanceMap.values())e.stop();this._pollingInstanceMap.clear(),this._joinedGroupMap.clear(),this._pollingRequestInfoMap.clear(),this._onlineMemberCountMap.clear(),this._broadcastMessageIDMap.clear()}this._seqSll.reset(),this._IDSll.reset(),this._reportMessageStackedCount=0,this._pollingInterval=this.DEFAULT_POLLING_INTERVAL=300,this.DEFAULT_POLLING_NO_MESSAGE_COUNT=20,this.DEFAULT_POLLING_INTERVAL_PLUS=2e3,this._pollingNoMessageCount=0}}class qo{constructor(e){this.userID=\"\",this.avatar=\"\",this.nick=\"\",this.role=\"\",this.joinTime=\"\",this.lastSendMsgTime=\"\",this.nameCard=\"\",this.muteUntil=0,this.memberCustomField=[],this.isOnline=!1,this.updateMember(e)}updateMember(e){Ke(e.onlineStatus)||(this.isOnline=\"Online\"===e.onlineStatus);var t=[null,void 0,\"\",0,NaN];e.memberCustomField&&Qe(this.memberCustomField,e.memberCustomField),We(this,e,[\"memberCustomField\",\"marks\",\"onlineStatus\"],t)}updateRole(e){[\"Owner\",\"Admin\",\"Member\"].indexOf(e)<0||(this.role=e)}updateMuteUntil(e){Ke(e)||(this.muteUntil=Math.floor((Date.now()+1e3*e)/1e3))}updateNameCard(e){Ke(e)||(this.nameCard=e)}updateMemberCustomField(e){e&&Qe(this.memberCustomField,e)}}class No{constructor(e){this._grpM=e,this._n=\"GroupMemberHandler\",this.groupMemberListMap=new Map,this.DEFAULT_MEMBER_INFO_FILTER=[\"Role\",\"JoinTime\",\"NameCard\",\"ShutUpUntil\",\"OnlineStatus\"],this._grpM.getIEmitInst().on(Jt.PROFILE_UPDATED,this._onProfileUpdated,this)}_onProfileUpdated({data:t}){for(let e=0;e{e.has(s.userID)&&e.get(s.userID).updateMember({nick:s.nick,avatar:s.avatar})})}}deleteGroupMemberList(e){this.groupMemberListMap.delete(e)}getGroupMemberList({groupID:r,role:e,offset:s=0,count:o=15,filter:l}){const i=this._n+\".getGroupMemberList\",n=this._grpM.hasLocalGroup(r);if(ht.l(i+` groupID:${r} role:${e} offset:${s} count:${o} hasLocalGroup:`+n),!n)return Kt({memberList:[],offset:0});if(this._grpM.getLocalGroupProfile(r).type===me){if(this._grpM.canIUse(M.AV_MBR_LIST))return this._getAVChatRoomMemberList({groupID:r,offset:s,filter:l});this._grpM.warn(\"LiveOnlineMember\")}let a;e!==Me&&e!==Ie&&e!==ye||(a=e);const g=new es(\"getGroupMemberList\");let u=0;const p={groupID:r,limit:100(Ke(o)||(u=Ne(o)?0:o),je(e)&&0!==e.length?(this._grpM.hasLocalGroup(r)&&(this._grpM.getLocalGroupProfile(r).memberNum=s),h=this._updateLocalGroupMemberMap(r,e),this._grpM.get(t).getUserProfile({userIDList:e.map(e=>e.userID),tagList:[Re.NICK,Re.AVATAR]})):(u=0,Promise.resolve([])))).then(e=>{const t=e[\"data\"];if(!je(t)||0===t.length)return Kt({memberList:[],offset:u});e=t.map(e=>({userID:e.userID,nick:e.nick,avatar:e.avatar}));return this._updateLocalGroupMemberMap(r,e),h.length(g.setError(e).end(),ht.e(i+\" failed. error:\",e),Bt(e)))}_getAVChatRoomMemberList({groupID:o,offset:e,filter:t}){const r=this._n+\"._getAVChatRoomMemberList\",i=new es(\"_getAVChatRoomMemberList\");return i.setMessage(`groupID:${o} offset:${e} filter:`+t),this._grpM.req({P:Os,data:{groupID:o,offset:e,filter:t}}).then(e=>{const{memberList:t=[],offset:s=0}=e.data;i.end(),ht.l(r+` ok. member count:${t.length}, next request timestamp:`+s);e=t.map(e=>({...e,onlineStatus:\"Online\"})),e=this._updateLocalGroupMemberMap(o,e);return gt({memberList:e,offset:s})}).catch(e=>(i.setError(e).end(),ht.e(r+\" failed. error:\",e),Bt(e)))}getGroupMemberProfile(e){var s=\"getGroupMemberProfile\",o=this._n+\".\"+s;let r=\"groupID:\"+e.groupID;5{const s=e.data[\"members\"];return je(s)&&0!==s.length?(this._updateLocalGroupMemberMap(i,s),this._grpM.get(t).getUserProfile({userIDList:s.map(({userID:e})=>e),tagList:[Re.NICK,Re.AVATAR]})):Kt([])}).then(e=>{e=e.data.map(({userID:e,nick:t,avatar:s})=>({userID:e,nick:t,avatar:s})),this._updateLocalGroupMemberMap(i,e),e=n.filter(e=>this.hasLocalGroupMember(i,e)).map(e=>this.getLocalGroupMemberInfo(i,e));return u.end(),gt({memberList:e})})}addGroupMember(i){const n=this._n+\".addGroupMember\",e=i[\"groupID\"],a=this._grpM.getLocalGroupProfile(e),t=a[\"type\"],u=new es(\"addGroupMember\");if(u.setMessage(`groupID:${e} groupType:`+t),ot(t)){const i=new mt({code:Gt});return u.setError(i).end(),Bt(i)}return i.userIDList=i.userIDList.map(e=>({userID:e})),ht.l(n+\" groupID:\"+e),this._grpM.req({P:xs,data:i}).then(({data:{members:e}})=>{ht.l(n+\" ok\");var t=e.filter(e=>1===e.result).map(e=>e.userID),s=e.filter(e=>0===e.result).map(e=>e.userID),o=e.filter(e=>2===e.result).map(e=>e.userID),e=e.filter(e=>4===e.result).map(e=>e.userID),r=`groupID:${i.groupID}, successUserIDList:${t}, failureUserIDList:${s}, existedUserIDList:${o}, overLimitUserIDList:`+e;return u.setMoreMessage(r).end(),0===t.length?gt({successUserIDList:t,failureUserIDList:s,existedUserIDList:o,overLimitUserIDList:e}):(this._updateConvGroupProfile(a),gt({successUserIDList:t,failureUserIDList:s,existedUserIDList:o,overLimitUserIDList:e,group:a}))}).catch(e=>(u.setError(e).end(),ht.e(n+\" failed. error:\",e),Bt(e)))}deleteGroupMember(e){const t=this._n+\".deleteGroupMember\",{groupID:s,userIDList:o}=e,r=this._grpM.getLocalGroupProfile(s);if(Ke(r))return Bt({code:Mt});if(ot(r.type))return this._grpM.canIUse(M.AV_BAN_MBR)?this._banAVChatRoomMember(e):this._grpM.noUse(\"deleteGroupMember\");var i=`groupID:${s} `+(5(n.end(),ht.l(t+\" ok\"),this._updateConvGroupProfile(r),this.deleteLocalGroupMembers(s,o),gt({group:r,userIDList:o}))).catch(e=>(n.setError(e).end(),ht.e(t+\" failed. error:\",e),Bt(e)))}_updateConvGroupProfile(e){this._grpM.get(o).updateConvGroupProfile([e])}_banAVChatRoomMember(e){const t=this._n+\"._banAVChatRoomMember\",{groupID:s,userIDList:o}=e,r=`groupID:${s} `+(5(i.end(),ht.l(t+\" ok\"),this.deleteLocalGroupMembers(s,o),gt({group:n,userIDList:o}))).catch(e=>(i.setError(e).end(),ht.e(t+\" failed. error:\",e),Bt(e)))}setGroupMemberMuteTime(e){const{groupID:s,userID:t,muteTime:o}=e,r=this._n+\".setGroupMemberMuteTime\";if(t===this._grpM.getMyUserID())return Bt({code:vt});e=`groupID:${s} userID:${t} muteTime:`+o;ht.l(r+\" \"+e);const i=new es(\"setGroupMemberMuteTime\");return i.setMessage(e),this.modifyGroupMemberInfo({groupID:s,userID:t,muteTime:o}).then(e=>{i.end(),ht.l(r+\" ok\");var t=this._grpM.getLocalGroupProfile(s);return gt({group:t,member:e})}).catch(e=>(i.setError(e).end(),ht.e(r+\" failed. error:\",e),Bt(e)))}setGroupMemberRole(e){const t=this._n+\".setGroupMemberRole\",{groupID:s,userID:o,role:r}=e,i=`groupID:${s} userID:${o} role:`+r,n=this._grpM.getLocalGroupProfile(s);if(n&&n.selfInfo.role!==Ie)return Bt({code:At});const a=[Me,ye];if(rt({groupID:s})&&a.push(De),a.indexOf(r)<0)return Bt({code:Tt});if(o===this._grpM.getMyUserID())return Bt({code:St});const u=new es(\"setGroupMemberRole\");return u.setMessage(i),ht.l(t+\" \"+i),this.modifyGroupMemberInfo({groupID:s,userID:o,role:r}).then(e=>(u.end(),ht.l(t+\" ok\"),gt({group:n,member:e}))).catch(e=>(u.setError(e).end(),ht.e(t+\" failed. error:\",e),Bt(e)))}_filterProfanity(e,t){const s=this._grpM.get(c);if(!s)return!0;var{isAllowedToSend:o,modifiedText:r}=s.filterText(t[e],D);return!0===o&&(t[e]=r,!0)}setGroupMemberNameCard(e){const t=\"setGroupMemberNameCard\",s=this._n+\".\"+t;if(e.nameCard&&!1===this._filterProfanity(\"nameCard\",e))return Bt({code:Ut});const{groupID:o,userID:r=this._grpM.getMyUserID(),nameCard:i}=e,n=`groupID:${o} userID:${r} nameCard:`+i;ht.l(s+\" \"+n);e=this._grpM.getLocalGroupProfile(o);if(e&&ot(e.type)){const e=Rt;return Bt({code:e,message:this._grpM.getErrMsg(e,t)})}const a=new es(t);return a.setMessage(n),this.modifyGroupMemberInfo({groupID:o,userID:r,nameCard:i}).then(e=>{ht.l(s+\" ok\"),a.end();const t=this._grpM.getLocalGroupProfile(o);return r===this._grpM.getMyUserID()&&t&&t.setSelfNameCard(i),gt({group:t,member:e})}).catch(e=>(a.setError(e).end(),ht.e(s+\" failed. error:\",e),Bt(e)))}setGroupMemberCustomField(e){const t=\"setGroupMemberCustomField\",s=this._n+\".\"+t,{groupID:o,userID:r=this._grpM.getMyUserID(),memberCustomField:i}=e,n=`groupID:${o} userID:${r} memberCustomField:`+JSON.stringify(i);ht.l(s+\" \"+n);e=this._grpM.getLocalGroupProfile(o);if(e&&ot(e.type)){const e=Rt;return Bt({code:e,message:this._grpM.getErrMsg(e,t)})}const a=new es(t);return a.setMessage(n),this.modifyGroupMemberInfo({groupID:o,userID:r,memberCustomField:i}).then(e=>{a.end(),ht.l(s+\" ok\");var t=this._grpM.getLocalGroupProfile(o);return gt({group:t,member:e})}).catch(e=>(a.setError(e).end(),ht.e(s+\" failed. error:\",e),Bt(e)))}modifyGroupMemberInfo(t){let{groupID:s,userID:o}=t,e=void 0;return it(s)&&(s=nt(e=s)),this._grpM.req({P:js,data:{...t,groupID:s,topicID:e}}).then(()=>{if(this.hasLocalGroupMember(s,o)){const e=this.getLocalGroupMemberInfo(s,o);return Ke(t.muteTime)||e.updateMuteUntil(t.muteTime),Ke(t.role)||e.updateRole(t.role),Ke(t.nameCard)||e.updateNameCard(t.nameCard),Ke(t.memberCustomField)||e.updateMemberCustomField(t.memberCustomField),e}const e=this._grpM.getLocalGroupProfile(s);if(e&&!ot(e.type))return this.getGroupMemberProfile({groupID:s,userIDList:[o]}).then(({data:{memberList:[e]}})=>e)})}markGroupMemberList(h){const r=this._n+\".markGroupMemberList\",{groupID:e,markType:t,enableMark:s,userIDList:i=[]}=h,o=`groupID:${e} markType:${t} enableMark:${s} userIDList count:`+i.length;ht.l(r+\" \"+o);let n=2;const a=[];!0===s&&(n=1);let u=[...i];500{a.push({userID:e,markType:[t]})}),u=null;const p=new es(\"markGroupMemberList\");return p.setMessage(o),this._grpM.req({P:Ks,data:{groupID:e,operationType:n,memberList:a}}).then(e=>{const{memberList:t=[]}=e.data,s=[],o=[];t.length===i.length?s.push(...i):(t.forEach(e=>{s.push(e.userID)}),i.forEach(e=>{s.includes(e)||o.push(e)}));e=`success count:${s.length} fail count:`+o.length;return p.setMessage(e).end(),ht.l(r+\" ok. \"+e),gt({successUserIDList:s,failureUserIDList:o})}).catch(e=>(p.setError(e).end(),ht.e(r+\" failed. error:\",e),Bt(e)))}_getGroupMemberProfileAdvance(e){return this._grpM.req({P:Fs,data:{...e,memberInfoFilter:e.memberInfoFilter||this.DEFAULT_MEMBER_INFO_FILTER}})}_updateLocalGroupMemberMap(t,e){return je(e)&&0!==e.length?e.map(e=>(this.hasLocalGroupMember(t,e.userID)?this.getLocalGroupMemberInfo(t,e.userID).updateMember(e):this.setLocalGroupMember(t,new qo(e)),this.getLocalGroupMemberInfo(t,e.userID))):[]}deleteLocalGroupMembers(e,t){const s=this.groupMemberListMap.get(e);s&&t.forEach(e=>{s.delete(e)})}getLocalGroupMemberInfo(e,t){return this.groupMemberListMap.has(e)?this.groupMemberListMap.get(e).get(t):null}setLocalGroupMember(e,t){this.groupMemberListMap.has(e)?this.groupMemberListMap.get(e).set(t.userID,t):(t=(new Map).set(t.userID,t),this.groupMemberListMap.set(e,t))}getLocalGroupMemberList(e){return this.groupMemberListMap.get(e)}hasLocalGroupMember(e,t){return this.groupMemberListMap.has(e)&&this.groupMemberListMap.get(e).has(t)}hasLocalGroupMemberMap(e){return this.groupMemberListMap.has(e)}reset(){this.groupMemberListMap.clear()}}function ko(e){var t=e.lastIndexOf(\".\");return-1===t?e:e.slice(0,t)}function Oo(e){const{androidInfo:t={},androidOPPOChannelID:s=\"\"}=e,o=t.OPPOChannelID||s,{sound:r=\"\",FCMChannelID:i=\"\",...n}=t;return{...n,Sound:ko(r),OPPOChannelID:o,GoogleChannelID:i}}function Fo(e){var{apnsInfo:e={},ignoreIOSBadge:t=!1,disableVoipPush:s}=e,t=!0===e.ignoreIOSBadge||!0===t?1:0;let o=void 0;return Ke(s)||(o=!1===s?1:0),Ke(e.disableVoipPush)||(o=!1===e.disableVoipPush?1:0),{...e,badgeMode:t,isVoipPush:o}}function xo(e){if(He(e))return{pushFlag:!0===e.disablePush?1:0,title:e.title||\"\",desc:e.description||\"\",ext:e.extension||\"\",apnsInfo:Fo(e),androidInfo:Oo(e)}}const Vo=1,Ho=15,jo=[17,18,20];class Ko{constructor(e){this._grpM=e,this._n=\"GroupSystemNoticeHandler\",this.pendencyMap=new Map}onNewGroupSystemNotice(e){var{dataList:e,isSyncingEnded:t,isInstantMessage:s}=e,{eventDataList:e,result:r}=(ht.d(this._n+\".onReceiveSystemNotice count:\"+e.length),this._assembly({notifiesList:e,isInstantMessage:s}));0{e.forEach(e=>{this.pendencyMap.set(`${e.from}_${e.groupID}_`+e.to,e)});const t=this._grpM.get(o).getLocalMessageList(le),i=[];t.forEach(e=>{const{operatorID:t,operationType:s,groupProfile:o}=e.payload;if(s===Vo){const s=`${t}_${o.groupID}_`+o.to,r=this.pendencyMap.get(s);r&&xe(r.handled)&&0!==r.handled&&i.push(e)}}),this.deleteGroupSystemNotice({messageList:i})})}deleteGroupSystemNotice(e){const s=this._n+\".deleteGroupSystemNotice\";return je(e.messageList)&&0!==e.messageList.length?(ht.l(s+\" \"+e.messageList.map(e=>e.ID)),this._grpM.req({P:Ls,data:{messageListToDelete:e.messageList.map(e=>({from:le,messageSeq:e.clientSequence,messageRandom:e.random}))}}).then(()=>{ht.l(s+\" ok\");const t=this._grpM.get(o);return e.messageList.forEach(e=>{t.deleteLocalMessage(e)}),gt()}).catch(e=>(ht.e(s+\" error:\",e),Bt(e)))):Kt()}_getPendencyList(e={}){var{type:e,startTime:t=0,limit:s=20}=e;return this._grpM.req({P:Ds,data:{type:e,startTime:t,limit:s,handleAccount:this._grpM.getMyUserID()}}).then(e=>{const t=e.data.pendencyList;return 0!==e.data.nextStartTime?this._getPendencyList({startTime:e.data.nextStartTime}).then(e=>[...t,...e]):t})}getGroupApplicationList(){return this._getPendencyList().then(t=>this._getPendencyList({type:de}).then(e=>(t.push(...e),this._handlePendencyResult(t))).catch(e=>this._handlePendencyResult(t)))}_handlePendencyResult(e){const t=[];return e.forEach(e=>{this.pendencyMap.set(`${e.from}_${e.groupID}_`+e.to,e),0===e.handled&&t.push({applicant:e.from,applicantNick:e.fromUserNickName,groupName:e.groupName,groupID:e.groupID,authentication:e.authentication,messageKey:e.time,applicationType:e.applicationType,userID:e.userID,note:e.note})}),Kt({applicationList:t})}_onReceivedGroupSystemNotice({result:e,isInstantMessage:t}){t&&e.forEach(e=>{switch(e.payload.operationType){case 1:break;case 2:this._onApplyJoinGroup(e);break;case 3:break;case 4:this._onMemberKicked(e);break;case 5:this._onGroupDismissed(e);break;case 6:break;case 7:this._onInviteGroup(e);break;case 8:this._onQuitGroup(e);break;case 9:this._onSetManager(e);break;case 10:this._onDeleteManager(e);break;case 11:case 12:case 15:break;case 20:this._onMessageRemindTypeSynced(e);break;case 21:this._grpM.onAVChatRoomMemberBanned(e)}})}_onApplyJoinGroup(e){var{groupID:e,groupType:t}=e.payload.groupProfile,s=this._grpM.hasLocalGroup(e);ht.l(this._n+`._onApplyJoinGroup groupID:${e} groupType:${t} hasGroup:`+s),s||ot(t)||this._grpM.getGroupProfile({groupID:e}).then(({data:{group:e}})=>{e&&(this._grpM.updateGroupMap([e]),e=!e.isSupportTopic,this._grpM.emitGroupListUpdate(!0,e))})}_onMemberKicked(e){e=e.payload.groupProfile.groupID;this._grpM.hasLocalGroup(e)&&this._grpM.deleteLocalGroupAndConversation(e)}_onGroupDismissed(e){e=e.payload.groupProfile.groupID;this._grpM.hasLocalGroup(e)&&this._grpM.deleteLocalGroupAndConversation(e);const t=this._grpM[\"_AVChatRoomHandler\"];t&&t.checkJoinedAVChatRoomByID(e)&&t.reset(e)}_onInviteGroup(e){const t=e.payload.groupProfile.groupID,s=this._grpM.hasLocalGroup(t);ht.l(`${this._n}._onInviteGroup groupID:${t} hasGroup:`+s),this._grpM.getGroupProfile({groupID:t}).then(()=>{this._grpM.emitGroupListUpdate(),this._grpM.get(o).pullMsgOnInvite(\"\"+ue+t)})}_onQuitGroup(e){var{groupID:e,groupType:t}=e.payload.groupProfile,s=this._grpM.hasLocalGroup(e);ht.l(this._n+`._onQuitGroup groupID:${e} groupType:${t} hasGroup:`+s),s&&this._grpM.deleteLocalGroupAndConversation(e)}_onSetManager(e){const{to:t,groupID:s}=e.payload.groupProfile,o=this._grpM.getGroupMemberHandler().getLocalGroupMemberInfo(s,t);o&&o.updateRole(Me)}_onDeleteManager(e){const{to:t,groupID:s}=e.payload.groupProfile,o=this._grpM.getGroupMemberHandler().getLocalGroupMemberInfo(s,t);o&&o.updateRole(ye)}_onMessageRemindTypeSynced(e){var t=e.payload.groupProfile[\"groupID\"],e=e.payload.messageRemindType;this._grpM.get(o).onGroupMsgRemindTypeUpdated({groupID:t,messageRemindType:e})}_handleTopicSystemNotice(e){const{groupProfile:{groupID:t,topicID:o},elements:{operationType:r,topicIDList:i,messageRemindType:n}}=e,a=this._grpM.get(s);17===r?a.onTopicCreated({groupID:t,topicID:o}):18===r?a.onTopicDeleted({groupID:t,topicIDList:i}):20===r&&a.onMessageRemindTypeUpdated({groupID:t,topicID:o,messageRemindType:n})}reset(){this.pendencyMap.clear()}}class Bo extends class{constructor(e){this._m=e,this._n=\"\"}isLoggedIn(){return this._m.get(r).isLoggedIn()}isOversea(){return this._m.get(r).isOversea()}isPrivateNetWork(){const e=this._m.get(r);return e.isPrivateNetWork()&&!e.getFileDownloadProxy()}getFileDownloadProxy(){return this._m.get(r).getFileDownloadProxy()}getDowloadFileAuthKey(){return this._m.get(r).getDowloadFileAuthKey()}getMyUserID(){return this._m.get(r).getUserID()}getMyTinyID(){return this._m.get(r).getTinyID()}getSDKAppID(){return this._m.get(r).getSDKAppID()}isIntl(){return this._m.get(r).isIntl()}isUsingChatCore(){return this._m.get(r).isUsingChatCore()}isDevMode(){return this._m.get(r).isDevMode()}get(e){return this._m.get(e)}getPlatform(){return k}getCloudConfig(e){return this._m.get(u).getCloudConfig(e)}emitOEvt(e,t){this._m.getOEmitInst().emit(e,t)}emitIEvt(e,t){this._m.getIEmitInst().emit(e,t)}getIEmitInst(){return this._m.getIEmitInst()}req(e){return this._m.get(a).req(e)}canIUse(e){return this._m.get(l).canIUse(e)}getErrMsg(e,t,s){return this._m.getErrMsg(e,t,s)}warn(e,t,s){e=this.getErrMsg(e,t,s);e&&ht.w(e)}noUse(e){var t=Et;return Bt({code:t,message:this.getErrMsg(t,e)})}}{constructor(e){super(e),this._n=\"GroupModule\",this._commonGroupHandler=new Mo(this),this._groupAttributesHandler=new bo(this),this._groupCountersHandler=new vo(this),this._AVChatRoomHandler=new Uo(this),this._groupTipsHandler=new Io(this),this._groupSystemNoticeHandler=new Ko(this),this._groupMemberHandler=new No(this),this.groupMap=new Map,this._unjoinedAVChatRoomList=new Map,this._receiptDetailCompleteMap=new Map,this._onlineMemberCountMap=new Map,this._timeoutIDs=[],this.getIEmitInst().on(Jt.CLOUD_CONFIG,this._onCloudConfig,this)}_onCloudConfig(){var e=this.getCloudConfig(\"polling_interval\"),t=this.getCloudConfig(\"polling_interval_plus\"),s=this.getCloudConfig(\"polling_no_msg_count\"),o=this.getCloudConfig(\"polling_simplified_msg\"),r=this.getCloudConfig(\"paging_grp_count\");ht.l(this._n+`._onCloudConfig pollingInterval:${e} pollingIntervalPlus:${t} pollingNoMessageCount:${s} pollingSimplifiedMessage:${o} pagingGroupCount:`+r),this._AVChatRoomHandler.setPollingInterval(e),this._AVChatRoomHandler.setPollingIntervalPlus(t),this._AVChatRoomHandler.setPollingNoMessageCount(s),this._AVChatRoomHandler.setPollingSimplifiedMessage(o),this._commonGroupHandler.setPagingGroupCount(r)}onCheckTimer(e){this.isLoggedIn()&&(this._commonGroupHandler.onCheckTimer(e),this._groupTipsHandler.onCheckTimer(e))}guardForAVChatRoom(t){if(t.conversationType!==ue)return Kt();{const s=it(t.to)?nt(t.to):t.to;return this.hasLocalGroup(s)?Kt():this.getGroupProfile({groupID:s}).then(e=>{e=e.data.group.type;if(ht.l(`${this._n}.guardForAVChatRoom. groupID:${s} type:`+e),e!==me)return Kt();{const e=dt;return Bt(new mt({code:e,message:this.getErrMsg(e,t.from,s),data:{message:t}}))}})}}checkJoinedAVChatRoomByID(e){return this._AVChatRoomHandler.checkJoinedAVChatRoomByID(e)}onNewMessage(e){this._commonGroupHandler.onNewMessage(e)}updateNextMessageSeq(e){if(je(e)){const o=this.get(s);e.forEach(e=>{var t=e.conversationID.replace(ue,\"\");it(t)&&o.updateUnreadCountAndLastMsg(t,e.lastMessage),this.groupMap.has(t)&&(this.groupMap.get(t).nextMessageSeq=e.lastMessage.sequence+1)})}}onNewGroupTips(e){this._groupTipsHandler.onNewGroupTips(e)}onMsgRevoked(e,t=!0){this._commonGroupHandler.onMsgRevoked(e,t)}onNewGroupSystemNotice(e){this._groupSystemNoticeHandler.onNewGroupSystemNotice(e)}onMsgReadNotice(e){e.dataList.forEach(i=>{const e=i.elements[\"groupMessageReadNotice\"];if(!Ke(e)){const i=this.get(o);e.forEach(e=>{var{groupID:e,topicID:t,lastMessageSeq:s}=e;ht.l(this._n+`.onMsgReadNotice groupID:${e} lastMessageSeq:`+s);let o=\"\"+ue+e,r=!0;Ne(t)||(o=\"\"+ue+t,r=!1),i.updateIsReadAfterReadReport({conversationID:o,lastMessageSeq:s}),i.updateUnreadCount(o,r),i.clearGroupAtInfoList(o,r)})}})}onReadReceiptList(e){ht.l(this._n+\".onReadReceiptList options:\",e),e.dataList.forEach(e=>{const{groupProfile:t,elements:s}=e,r=t[\"groupID\"],i=this.get(o),n=s[\"readReceiptList\"];i.updateReadReceiptInfo({groupID:r,readReceiptList:n})})}onMsgModified(e){ht.l(this._n+\".onMsgModified options:\",e);const t=this.get(o);e.dataList.forEach(e=>{t.onMessageModified({...e,conversationType:ue,to:e.topicID||e.groupID})})}deleteGroupSystemNotice(e){this._groupSystemNoticeHandler.deleteGroupSystemNotice(e)}initGroupMap(e){this.groupMap.set(e.groupID,new wo(e))}clearGroupMap(){this.groupMap.clear()}deleteGroup(e){this.groupMap.delete(e)}updateGroupMap(e){const t=this.get(o);let s;e.forEach(e=>{s=e.groupID,this.groupMap.has(s)?this.groupMap.get(s).updateGroup(e):(this.groupMap.set(s,new wo(e)),t.deleteGroupRoamingInfo(s))});var r=this.getMyUserID();for(const[,o]of this.groupMap)o.selfInfo.userID=r,\"Owner\"===o.selfInfo.role&&(o.ownerID=r)}getGroupMap(){return this.groupMap}getLocalGroupList(){return[...this.groupMap.values()].filter(e=>e.type!==_e&&e.type!==fe)}getLocalGroupProfile(e){return this.groupMap.get(e)}sortLocalGroupList(){const e=[...this.groupMap].filter(([,e])=>!Ne(e.lastMessage));e.sort((e,t)=>t[1].lastMessage.lastTime-e[1].lastMessage.lastTime),this.groupMap=new Map([...e])}updateGroupLastMessage(e){this._commonGroupHandler.updateLastMsg(e)}emitGroupListUpdate(e=!0,t=!0){var s=this.getLocalGroupList();if(e&&this.emitOEvt(Ot),t){const e=JSON.parse(JSON.stringify(s));this.get(o).updateConvGroupProfile(e)}}getMyNameCardByGroupID(e){e=this.getLocalGroupProfile(e);return e?e.selfInfo.nameCard:\"\"}isPagingGetCompleted(){return this._commonGroupHandler.isPagingGetCompleted()}getMsgRemindType(e){if(!je(e)||0===e.length)return Promise.resolve();e=e.filter(e=>!ot(this.getLocalGroupProfile(e).type));return 0===e.length?Promise.resolve():(ht.l(this._n+\".getMsgRemindType groupIDList:\"+e),this.getGroupProfileAdvance({groupIDList:e,responseFilter:{memberInfoFilter:[\"MsgFlag\"]}}).then(e=>{const t=e.data[\"successGroupList\"],s=this.get(o);t.forEach(e=>{s.onGroupMsgRemindTypeUpdated({groupID:e.groupID,messageRemindType:je(e.members)?e.members[0].messageRemindType:\"\"})})}))}getGroupList(){return this._commonGroupHandler.getGroupList()}syncCommunityWithTopic(){return this._commonGroupHandler.syncGroupList(!0)}getGroupProfile(t){const r=this._n+\".getGroupProfile\",i=new es(\"getGroupProfile\"),{groupID:n,groupCustomFieldFilter:e}=t;ht.l(r+\" groupID:\"+n);var s={groupIDList:[n],responseFilter:{groupBaseInfoFilter:[...L],groupCustomFieldFilter:e,memberInfoFilter:[...C,\"NameCard\"]}};return this.getGroupProfileAdvance(s).then(({data:{successGroupList:e,failureGroupList:t}})=>{if(ht.l(r+\" ok\"),0(i.setError(e).setMessage(\"groupID:\"+t.groupID).end(),ht.e(r+\" failed. error:\",e),Bt(e)))}getGroupProfileAdvance(e){const t=this._n+\".getGroupProfileAdvance\",s=e[\"groupIDList\"],o=(je(s)&&50{(rt({groupID:e})?r:o).push(e)}),[]);if(0{const t=[],s=[];return e.forEach(e=>{t.push(...e.successGroupList),s.push(...e.failureGroupList)}),gt({successGroupList:t,failureGroupList:s})}).catch(e=>(ht.e(t+\" failed. error:\",e),Bt(e)))}_getGroupProfileAdvance(t){const{relayFlag:s=!1,...o}=t;return this.req({P:os,data:o}).then(e=>{ht.l(this._n+\"._getGroupProfileAdvance ok. options:\",o);const t=e.data[\"groups\"];return{successGroupList:t.filter(e=>Ke(e.errorCode)||0===e.errorCode),failureGroupList:t.filter(e=>e.errorCode&&0!==e.errorCode).map(e=>new mt({code:e.errorCode,message:e.errorInfo,data:{groupID:e.groupID}}))}}).catch(e=>s&&rt({groupID:t.groupIDList[0]})?{successGroupList:[],failureGroupList:[]}:Bt(e))}createGroup(u){const s=[he,ce,ge,me,de],p=this._n+\".createGroup\",{type:o,groupID:r}=u;if(u.name&&!1===this._filterProfanity(\"name\",u))return Bt({code:Ut});if(u.introduction&&!1===this._filterProfanity(\"introduction\",u))return Bt({code:Ut});if(u.notification&&!1===this._filterProfanity(\"notification\",u))return Bt({code:Ut});if(!s.includes(o))return Bt({code:ft});if(!rt({type:o})){if(!Ne(r)&&rt({groupID:r}))return Bt({code:It});u.isSupportTopic=void 0}if(ot(o)&&!Ke(u.memberList)&&0{const{groupID:o,overLimitUserIDList:r=[]}=s.data;l=o,g=r;s=`groupType:${u.type} groupID:${o} overLimitUserIDList:`+r;if(h.setMessage(s).end(),ht.l(p+\" ok. \"+s),u.type===me)return this.getGroupProfile({groupID:o});if(u.type===de&&1===u.isSupportTopic)return this.getGroupProfile({groupID:o});Ne(u.memberList)||Ne(r)||(u.memberList=u.memberList.filter(e=>-1===r.indexOf(e.userID))),this.updateGroupMap([{...u,groupID:o}]);const i=this.get(e);let n=\"\",a=0;u.type===de?(n=this.isIntl()?\"Create Community\":\"创建社群\",a=1):n=this.isIntl()?\"Create Group\":\"创建群组\";s=this.get(t).getMyNick(),s=i.createCustomMessage({to:o,conversationType:ue,payload:{data:JSON.stringify({businessID:\"group_create\",content:n,cmd:a,opUser:s||this.getMyUserID(),version:4})}});return i.sendMessageInstance(s),this.emitGroupListUpdate(),this.getGroupProfile({groupID:o})}).then(e=>{const t=e.data[\"group\"],{nameCard:s,joinTime:o}=t.selfInfo;return t.updateSelfInfo({nameCard:s,joinTime:o,messageRemindType:Ae,role:Ie}),gt({group:t,overLimitUserIDList:g})}).catch(e=>{if(h.setMessage(\"groupType:\"+u.type).setError(e).end(),10010!==e.code&&10007!==e.code)return ht.e(p+\" failed. error:\",e),Bt(e);{this._silentlyGetGroupProfile(e.code,l),this.updateGroupMap([{...u,groupID:l}]);const t=this.getLocalGroupProfile(l);return t.selfInfo.role=Ie,gt({group:t,overLimitUserIDList:g})}})}dismissGroup(e){const t=this._n+\".dismissGroup\",s=\"groupID:\"+e,o=new es(\"dismissGroup\");return o.setMessage(s),ht.l(t+\" \"+s),this.req({P:is,data:{groupID:e}}).then(()=>(o.end(),ht.l(t+\" ok\"),this.deleteLocalGroupAndConversation(e),this.checkJoinedAVChatRoomByID(e)&&this._AVChatRoomHandler.reset(e),this._groupAttributesHandler.deleteLocalGroupAttributes(e),gt({groupID:e}))).catch(e=>(o.setError(e).end(),ht.e(t+\" failed. error:\",e),Bt(e)))}updateGroupProfile(e){const t=this._n+\".updateGroupProfile\";if(this.hasLocalGroup(e.groupID)){const s=this.getLocalGroupProfile(e.groupID).type;this._canIUseJoinOption(s)||Ke(e.joinOption)||(ht.w(t+\" joinOption is unavailable for Work/Meeting/AVChatRoom\"),e.joinOption=void 0)}if(Ke(e.muteAllMembers)||(e.muteAllMembers?e.muteAllMembers=\"On\":e.muteAllMembers=\"Off\"),e.name&&!1===this._filterProfanity(\"name\",e))return Bt({code:Ut});if(e.introduction&&!1===this._filterProfanity(\"introduction\",e))return Bt({code:Ut});if(e.notification&&!1===this._filterProfanity(\"notification\",e))return Bt({code:Ut});const s=new es(\"updateGroupProfile\");return s.setMessage(JSON.stringify(e)),ht.l(t+\" groupID:\"+e.groupID),this.req({P:ns,data:e}).then(()=>(s.end(),ht.l(t+\" ok\"),this.hasLocalGroup(e.groupID)&&this.groupMap.get(e.groupID).updateGroup(e),gt({group:this.groupMap.get(e.groupID)}))).catch(e=>(s.setError(e).end(),ht.l(t+\" failed. error:\",e),Bt(e)))}_filterProfanity(e,t){const s=this.get(c);if(!s)return!0;var{isAllowedToSend:o,modifiedText:r}=s.filterText(t[e],y);return!0===o&&(t[e]=r,!0)}joinGroup(t){const s=t[\"groupID\"],o=this._n+\".joinGroup\";if(this.deleteUnjoinedAVChatRoom(s),this.hasLocalGroup(s)){if(!this.isLoggedIn())return Kt({status:Te});const r=new es(\"applyJoinGroup\");return this.getGroupProfile({groupID:s}).then(()=>(r.setMessage(`groupID:${s} joinedStatus:`+Te).end(),Kt({status:Te}))).catch(e=>(r.setMessage(`groupID:${s} unjoined`).end(),ht.w(o+` ${s} was unjoined, now join!`),this.groupMap.delete(s),this.applyJoinGroup(t)))}return ht.l(o+\" groupID:\"+s),this.isLoggedIn()?this.applyJoinGroup(t):this._AVChatRoomHandler.joinWithoutAuth(t)}applyJoinGroup(e){const a=this._n+\".applyJoinGroup\",{groupID:u,applyMessage:t}=e;if(!Ne(t)&&!1===this._filterProfanity(\"applyMessage\",e))return Bt({code:Ut});const p=new es(\"applyJoinGroup\"),s={...e},h=this.canIUse(M.AV_HISTORY_MSG);return h&&(s.historyMessageFlag=1),this.get(o).deleteTopicRoamingInfo(u),this.req({P:as,data:s}).then(({data:{joinedStatus:e,longPollingKey:t,startSeq:s,avChatRoomFlag:o,avChatRoomKey:r,messageList:i}})=>{var n=`groupID:${u} joinedStatus:${e} longPollingKey:${t} startSeq:${s} avChatRoomFlag:${o} canGetAVChatRoomHistoryMsg:${h}, historyMsgCount:`+(Ne(i)?0:i.length);switch(p.setMessage(n).end(),ht.l(a+\" ok. \"+n),e){case we:return gt({status:we});case $e:return this.getGroupProfile({groupID:u}).then(({data:{group:e}})=>this._handleJoinResult({group:e,avChatRoomFlag:o,longPollingKey:t,startSeq:s,avChatRoomKey:r,messageList:i})).catch(e=>{if(10010!==e.code&&10007!==e.code)return ht.e(a+\" failed. error:\",e),Bt(e);{this._silentlyGetGroupProfile(e.code,u);const a=new wo({groupID:u});return this.updateGroupMap([a]),this._handleJoinResult({group:a,avChatRoomFlag:o,longPollingKey:t,startSeq:s,avChatRoomKey:r,messageList:i})}});default:{const e=new mt({code:Ct});return ht.e(a+\" failed. error:\",e),Bt(e)}}}).catch(e=>(p.setMessage(\"groupID:\"+u).setError(e).end(),ht.e(a+\" failed. error:\",e),Bt(e)))}_handleJoinResult(e){const{group:t,avChatRoomFlag:s,longPollingKey:r,startSeq:i,avChatRoomKey:n,messageList:a}=e,u=t[\"groupID\"];if(1!==s)return this.emitGroupListUpdate(!0,!1),gt({status:$e,group:t});{let e;return this.get(o).setCompleted(\"\"+ue+u),this._groupAttributesHandler.initGroupAttributesCache({groupID:u,avChatRoomKey:n}),this._groupCountersHandler.initGroupCountersCache({groupID:u,avChatRoomKey:n}),(e=Ke(r)?this._AVChatRoomHandler.handleJoinResult({group:t}):this._AVChatRoomHandler.startRunLoop({group:t,longPollingKey:r,startSeq:i})).then(()=>{this._onAVChatRoomHistoryMessage(a,u)}),e}}quitGroup(e){const t=this._n+\".quitGroup\",s=\"groupID:\"+e,o=(ht.l(t+\" \"+s),this.checkJoinedAVChatRoomByID(e));if(!o&&!this.hasLocalGroup(e))return Bt({code:Lt});if(o&&!this.isLoggedIn())return ht.l(t+\" anonymously ok. \"+s),this.deleteLocalGroupAndConversation(e),this._AVChatRoomHandler.reset(e),Kt({groupID:e});const r=new es(\"quitGroup\");return r.setMessage(s),this.req({P:ps,data:{groupID:e}}).then(()=>(r.end(),ht.l(t+\" ok\"),this.deleteLocalGroupAndConversation(e),o&&this._AVChatRoomHandler.reset(e),this._groupAttributesHandler.deleteLocalGroupAttributes(e),gt({groupID:e}))).catch(e=>(r.setError(e).end(),ht.e(t+\" failed. error:\",e),Bt(e)))}searchGroupByID(e){const t=this._n+\".searchGroupByID\",s={groupIDList:[e]},o=new es(\"searchGroupByID\");return o.setMessage(\"groupID:\"+e),ht.l(t+\" groupID:\"+e),this.req({P:ls,data:s}).then(({data:{groupProfile:e}})=>{if(0!==e[0].errorCode)throw new mt({code:e[0].errorCode,message:e[0].errorInfo});return o.end(),ht.l(t+\" ok\"),gt({group:new wo(e[0])})}).catch(e=>(o.setError(e).end(),ht.w(t+\" failed. error:\",e),Bt(e)))}changeGroupOwner(o){const r=this._n+\".changeGroupOwner\";if(this.hasLocalGroup(o.groupID)&&this.getLocalGroupProfile(o.groupID).type===me)return Bt({code:yt});if(o.newOwnerID===this.getMyUserID())return Bt({code:Dt});const i=new es(\"changeGroupOwner\");return i.setMessage(`groupID:${o.groupID} newOwnerID:`+o.newOwnerID),ht.l(r+\" groupID:\"+o.groupID),this.req({P:cs,data:o}).then(()=>{i.end(),ht.l(r+\" ok\");var{groupID:e,newOwnerID:t}=o;this.groupMap.get(e).ownerID=t;const s=this._groupMemberHandler.getLocalGroupMemberList(e);if(s instanceof Map){const o=s.get(this.getMyUserID()),r=(Ke(o)||(o.updateRole(\"Member\"),this.groupMap.get(e).selfInfo.role=\"Member\"),s.get(t));Ke(r)||r.updateRole(\"Owner\")}return this.emitGroupListUpdate(!0,!1),gt({group:this.groupMap.get(e)})}).catch(e=>(i.setError(e).end(),ht.e(r+\" failed. error:\",e),Bt(e)))}getGroupApplicationList(){return this._groupSystemNoticeHandler.getGroupApplicationList()}handleGroupApplication(e){const t=this._n+\".handleGroupApplication\",{handleAction:h,handleMessage:l,message:s,application:o}=e;let r,i,n,a,u,g=(s?(r=s.payload.operatorID,i=s.payload.groupProfile.groupID,n=s.payload.authentication,a=s.payload.messageKey):o&&(r=o.applicant,i=o.groupID,n=o.authentication,a=o.messageKey),hs);o&&2===o.applicationType&&(g=gs,u=o.userID);const p=new es(\"handleGroupApplication\");return p.setMessage(\"groupID:\"+i),ht.l(t+\" groupID:\"+i),this.req({P:g,data:{handleAction:h,handleMessage:l,applicant:r,invitee:u,groupID:i,authentication:n,messageKey:a}}).then(()=>(p.end(),ht.l(t+\" ok\"),s&&this._groupSystemNoticeHandler.deleteGroupSystemNotice({messageList:[e.message]}),gt({group:this.getLocalGroupProfile(i)}))).catch(e=>(p.setError(e).end(),ht.e(t+\" failed. error\",e),Bt(e)))}handleGroupInvitation(e){const t=this._n+\".handleGroupInvitation\",{groupProfile:{groupID:s},authentication:o,messageKey:r,operatorID:i}=e.message.payload,n=e[\"handleAction\"],a=new es(\"handleGroupInvitation\");return a.setMessage(`groupID:${s} inviter:${i} handleAction:`+n),ht.l(t+` groupID:${s} inviter:${i} handleAction:`+n),this.req({P:ms,data:{...e,inviter:i,groupID:s,authentication:o,messageKey:r}}).then(()=>(a.end(),ht.l(t+\" ok\"),this._groupSystemNoticeHandler.deleteGroupSystemNotice({messageList:[e.message]}),gt({group:this.getLocalGroupProfile(s)}))).catch(e=>(a.setError(e).end(),ht.e(t+\" failed. error\",e),Bt(e)))}getGroupOnlineMemberCount(t){const s=this._n+\".getGroupOnlineMemberCount\",e=this._AVChatRoomHandler.checkJoinedAVChatRoomByID(t),o=this.hasLocalGroup(t);if(ht.l(s+` groupID:${t} isAVChatRoom:${e} has:`+o),e)return this._AVChatRoomHandler.getGroupOnlineMemberCount(t);if(!o)return Kt({memberCount:0});var r=Date.now();if(this._onlineMemberCountMap.has(t)){const s=this._onlineMemberCountMap.get(t);if(r-s.lastReqTime<=6e4)return Kt({memberCount:s.memberCount});s.lastReqTime=r}return this.requestOnlineCount(t).then(e=>{var{memberCount:e=0}=e.data;return this._onlineMemberCountMap.set(t,{lastReqTime:Date.now(),memberCount:e}),ht.l(s+` ok. groupID:${t} memberCount:`+e),Kt({memberCount:e})}).catch(e=>(ht.w(s+\" failed. error:\",e),Promise.reject(e)))}requestOnlineCount(e){return this.req({P:bs,data:{groupID:e}})}hasLocalGroup(e){return this.groupMap.has(e)}deleteLocalGroupAndConversation(e){const t=this.checkJoinedAVChatRoomByID(e),r=(ht.l(this._n+`.deleteLocalGroupAndConversation groupID:${e} isJoinedAVChatRoom:`+t),this.get(o)),i=\"\"+ue+e;if(t&&(this.stopMessageLongPolling({groupID:e}),r.deleteLocalConv(i)),rt({groupID:e})){const t=this.getLocalGroupProfile(e);t&&!0===t.isSupportTopic&&this.get(s).deleteTopicListInCommunity(e)}r.clearUnreadCount(i),r.setCompleted(i),this._deleteLocalGroup(e),this._onlineMemberCountMap.delete(e),this.emitGroupListUpdate(!0,!1)}_deleteLocalGroup(e){this.groupMap.delete(e),this._groupMemberHandler.deleteGroupMemberList(e)}sendMessage(e,t){if(je(e._receiverList)&&0(g=e,ht.l(u+` groupID:${h} startSequence:`+g),this.req({P:fs,data:{groupID:h,count:21,sequence:g,topicID:c}}))).then(e=>{var{messageList:t,complete:s,invisibleSequenceList:r=[]}=e.data;let{nextSequence:i=0}=e.data;Ke(t)?ht.l(u+` ok. complete:${s} nextSequence:${i} but messageList is undefined!`):ht.l(u+` ok. complete:${s} nextSequence:${i} count:`+t.length),l.setMessage(`groupID:${h} topicID:${c} startSequence:${g} complete:${s} nextSequence:`+i).end();const n=this.get(o);let a=[];e=[],Ne(t)||(a=n.onRoamingMessage(t,p,!0,e),n.updateIsRead(p),n.patchConvLastMessage(p)),t=2===s||i<1;return t&&(n.setCompleted(p),i=\"\"),ht.l(u+` isPullingCompleted:${t} nextReqID:${i} storedMsgCount:${a.length} invisibleSeqCount:`+r.length),{nextReqID:i+\"\",storedMessageList:a,assembledMessageList:e,isPullingCompleted:t}}).catch(e=>(l.setError(e).setMessage(`groupID:${h} topicID:${c} startSequence:`+g).end(),ht.w(u+\" failed. error:\",e),Bt(e)))}_getGroupIDOfMessage(e){return e.conversationID.replace(ue,\"\")}getReadReceiptList(s){const o=this._n+\".getReadReceiptList\",e=this._getGroupIDOfMessage(s[0]),t=this.getMyUserID(),r=s.filter(e=>e.from===t&&!0===e.needReadReceipt).map(e=>({sequence:e.sequence}));if(ht.l(o+` groupID:${e} sequenceList:`+JSON.stringify(r)),0===r.length)return Kt({messageList:s});const i=new es(\"getReadReceiptList\");return i.setMessage(\"groupID:\"+e),this.req({P:Is,data:{groupID:e,sequenceList:r}}).then(e=>{i.end(),ht.l(o+\" ok\");const t=e.data[\"readReceiptList\"];return je(t)&&t.forEach(t=>{s.forEach(e=>{0===t.code&&t.sequence===e.sequence&&(e.readReceiptInfo.readCount=t.readCount,e.readReceiptInfo.unreadCount=t.unreadCount)})}),gt({messageList:s})}).catch(e=>(i.setError(e).end(),ht.w(o+\" failed. error:\",e),Bt(e)))}sendReadReceipt(e){const t=this._n+\".sendReadReceipt\",s=this._getGroupIDOfMessage(e[0]),o=new es(\"sendReadReceipt\"),r=(o.setMessage(\"groupID:\"+s),this.getMyUserID()),i=e.filter(e=>e.from!==r&&!0===e.needReadReceipt).map(e=>({sequence:e.sequence}));return 0===i.length?Bt({code:_t}):(ht.l(t+\". sequenceList:\"+JSON.stringify(i)),this.req({P:Ms,data:{groupID:s,sequenceList:i}}).then(e=>(o.end(),ht.l(t+\" ok\"),gt())).catch(e=>(o.setError(e).end(),ht.w(t+\" failed. error:\",e),Bt(e))))}getReadReceiptDetail(h){const{message:e,filter:t,cursor:s,count:o}=h,r=this._getGroupIDOfMessage(e),i=e.ID,l=e.sequence,n=this._n+\".getReadReceiptDetail\",g=this._receiptDetailCompleteMap.get(i)||!1,a=0!==t&&1!==t?0:t,c=Ve(s)?s:\"\",m=!xe(o)||o<=0||100<=o?100:o,d=`groupID:${r} sequence:${l} cursor:${c} filter:${a} completeFlag:`+g,u=(ht.l(n+\" \"+d),{cursor:\"\",isCompleted:!1,messageID:i,unreadUserIDList:[],readUserIDList:[]}),p=new es(\"getReadReceiptDetail\");return p.setMessage(d),this.req({P:ys,data:{groupID:r,sequence:l,flag:a,cursor:c,count:m}}).then(e=>{p.end();const{cursor:t,isCompleted:s,unreadUserIDList:o,readUserIDList:r}=e.data;return u.cursor=t,1===s&&(u.isCompleted=!0,this._receiptDetailCompleteMap.set(i,!0)),0===a?u.readUserIDList=r.map(e=>e.userID):1===a&&(u.unreadUserIDList=o.map(e=>e.userID)),ht.l(n+\" ok\"),gt(u)}).catch(e=>(p.setError(e).end(),ht.w(n+\" failed. error:\",e),Bt(e)))}getRoamingMessagesHopping(g){const c=this._n+\".getRoamingMessagesHopping\";let{groupID:t,count:s,sequence:m,direction:d}=g,r=void 0;return Ke(m)&&1===d?Kt({messageList:[],isCompleted:!0,nextMessageSeq:\"\"}):(it(t)&&(t=nt(r=t)),this._computeReqSeqHopping({groupID:t,topicID:r,sequence:m}).then(e=>{Ke(m)||1!==d||(e=m+s-1);const h=`${r?\"topicID:\"+r:\"groupID:\"+t} sequence:${m} reqSeq:${e} direction:`+d,l=(ht.l(c+\" \"+h),new es(\"getRoamingMessagesHopping\"));return this.req({P:fs,data:{groupID:t,topicID:r,count:s,sequence:e}}).then(e=>{var{messageList:e=[],complete:t,nextSequence:s=0,invisibleSequenceList:r=[]}=e.data,i=`complete:${t} nextSequence:${s} remoteMsgCount:${e.length} invisibleSequenceList:`+r;l.setMessage(h+\" \"+i).end(),ht.l(c+\" ok. \"+i);const n=\"\"+ue+g.groupID,a=this.get(o),u=a.onRoamingMessage(e,n,!1),p=this._computeResult({groupID:g.groupID,direction:d,sequence:m,remoteMessageList:e,processedMessageList:u,complete:t,nextSequence:s,invisibleSequenceList:r});return a.storeHoppingMessageList(p.messageList),gt(p)}).catch(e=>(l.setError(e).setMessage(`groupID:${t} sequence:${m} count:`+s).end(),ht.w(c+\" failed. error:\",e),Bt(e)))}))}_computeReqSeqHopping(e){const{groupID:s,topicID:t,sequence:o}=e;return 0{let t=0;return Ne(e)||(t=e[0].nextMessageSeq-1),ht.l(`${this._n}._computeReqSeqHopping groupID:${s} lastSequence:${t} from remote`),t}).catch(e=>Bt(e)):Promise.resolve(0)}_computeResult(e){const t={messageList:[],isCompleted:!1,nextMessageSeq:\"\"},{groupID:s,direction:o,sequence:r,remoteMessageList:i=[],processedMessageList:n=[],complete:a,nextSequence:u,invisibleSequenceList:p}=e;if(0===o)return t.nextMessageSeq=u,(2===a||u<1)&&(t.isCompleted=!0,t.nextMessageSeq=\"\"),t.messageList=n,t;if(1===o){if(Ne(i)){if(Ne(p))return t.isCompleted=!0,t.nextMessageSeq=\"\",t;t.nextMessageSeq=p[0]+1}else{const e=i[0].sequence,s=p[0]||0;t.nextMessageSeq=e>s?e+1:s+1}return n.forEach(e=>{e.sequence>=r&&t.messageList.push(e)}),(rt({groupID:s})||it(s))&&0===t.messageList.length&&i[0].sequence{a.end(),ht.l(n+\" ok\");const e=this.get(o);e.updateIsReadAfterReadReport({conversationID:r,lastMessageSeq:i});let t=!0;if(!Ke(p)){t=!1;const r=this.get(s).getLocalTopic(u,p);r&&r.updateSelfInfo({readedSequence:i})}return e.updateUnreadCount(r,t),gt()}).catch(e=>(a.setError(e).end(),ht.l(n+\" failed. error:\",e),Bt(e)))}_computeLastSequence(e){var{groupID:e,topicID:t,sequence:s}=e;return 0(Ne(e)?ht.w(t+` ${n}, empty successGroupList`):(r=e[0].nextMessageSeq-1,i=n+`, ${r} from remote`,ht.l(t+\" \"+i)),s.setMessage(i).end(),r)).catch(e=>(s.setError(e).setMessage(n).end(),ht.w(t+\" failed. error:\",e),Bt(e)))}isMessageFromOrToAVChatroom(e){return this._AVChatRoomHandler.checkJoinedAVChatRoomByID(e)}hasJoinedAVChatRoom(){return this._AVChatRoomHandler.hasJoinedAVChatRoom()}getJoinedAVChatRoom(){return this._AVChatRoomHandler.getJoinedAVChatRoom()}getGroupRemoteLastSeq(e){e=this.getLocalGroupProfile(e);return e?e.nextMessageSeq-1:1}isOnlineMessage(e,t){return!(!this._canIUseOnlineOnlyFlag(e)||!t||!0!==t.onlineUserOnly)}_canIUseOnlineOnlyFlag(e){const t=this.getJoinedAVChatRoom();return!t||!t.includes(e.to)||e.conversationType!==ue}_onAVChatRoomHistoryMessage(e,t){if(!Ne(e)){ht.l(this._n+`._onAVChatRoomHistoryMessage groupID:${t} count:`+e.length);const s=[];e.forEach(e=>{s.push({...e,isHistoryMessage:1})}),this.onAVChatRoomMessage(s,t)}}onAVChatRoomMessage(e,t=\"\"){this._AVChatRoomHandler.onMessage(e,t)}onAVChatRoomMemberBanned(e){this._AVChatRoomHandler.onAVChatRoomMemberBanned(e)}setUnjoinedAVChatRoom(e){this._unjoinedAVChatRoomList.set(e,1)}deleteUnjoinedAVChatRoom(e){this._unjoinedAVChatRoomList.has(e)&&this._unjoinedAVChatRoomList.delete(e)}isUnjoinedAVChatRoom(e){return this._unjoinedAVChatRoomList.has(e)}isGroupAttributesUpdatedNotice(e){return this._groupAttributesHandler.isGroupAttributesUpdatedNotice(e)}updateLocalMainSequenceOnReconnected(){this._groupAttributesHandler.updateLocalMainSequenceOnReconnected()}initGroupAttributes(e){return this._groupAttributesHandler.initGroupAttributes(e)}setGroupAttributes(e){return this._groupAttributesHandler.setGroupAttributes(e)}deleteGroupAttributes(e){return this._groupAttributesHandler.deleteGroupAttributes(e)}getGroupAttributes(e){return this._groupAttributesHandler.getGroupAttributes(e)}isMessageFromTopic(e,t){return 2===e&&!Ne(t)}isMessageFromCommunityOfTopic(e,t){return 2===e&&Ne(t)}getMessageExtensions(e,t){return ht.l(this._n+\".getMessageExtensions startSequence:\"+t),this.req({P:Es,data:{groupID:e.to,messageSequence:e.sequence,startSequence:t}})}modifyMsgExts(e,t,s=1){return ht.l(this._n+\".modifyMsgExts operateType:\"+s),this.req({P:ws,data:{groupID:e.to,messageSequence:e.sequence,extensionList:t,operateType:s}})}_genNotifyReqList(s){const o=[];var r,i,n,a;for(let e=0,t=s.length;e{if(!this.hasLocalGroup(e))return!1;var{type:e,isSupportTopic:t}=this.getLocalGroupProfile(e);return!ot(e)&&!t});0!==s.length&&(ht.l(t+\" list:\"+s),this.req({P:Us,data:{notifyReqList:this._genNotifyReqList(s)}}).then(i=>{const e=i.data[\"notifyRspList\"],n=[];if(je(e)){const i={dataList:[]};let r=t+\" ok.\";e.forEach(e=>{var{nextRevokedTime:t,groupID:s,notifyList:o}=e;r+=` groupID:${s} nextRevokedTime:${t} count:${o.length}\r\n`,i.dataList.push({elements:{revokedInfos:this._genRevokedInfos(e)}}),0!==t?(this._setGroupLastRevokedTime(s,t),n.push(s)):this._setGroupLastRevokedTime(s,1e3*ve())}),ht.l(r),this.onMsgRevoked(i,!1)}0{ht.e(t+\" failed. error:\",e)}))}_genRevokedInfos(e){const{notifyList:t,groupID:s}=e,o=[];return je(t)&&t.forEach(e=>{o.push({groupID:s,sequence:e.sequence,random:e.random,revokerInfo:{...e.revokerInfo}})}),o}_getGroupLastRevokedTime(e){return this.hasLocalGroup(e)?this.getLocalGroupProfile(e)._lastRevokedTime:0}_setGroupLastRevokedTime(e,t){this.hasLocalGroup(e)&&(this.getLocalGroupProfile(e)._lastRevokedTime=t)}isGroupCountersNotice(e){return this._groupCountersHandler.isGroupCountersNotice(e)}setGroupCounters(e){return this._groupCountersHandler.setGroupCounters(e)}increaseGroupCounter(e){return this._groupCountersHandler.increaseGroupCounter(e)}decreaseGroupCounter(e){return this._groupCountersHandler.decreaseGroupCounter(e)}getGroupCounters(e){return this._groupCountersHandler.getGroupCounters(e)}getGroupMemberHandler(){return this._groupMemberHandler}getGroupMemberList(e){return this._groupMemberHandler.getGroupMemberList(e)}getGroupMemberProfile(e){return this._groupMemberHandler.getGroupMemberProfile(e)}addGroupMember(e){return this._groupMemberHandler.addGroupMember(e)}deleteGroupMember(e){return this._groupMemberHandler.deleteGroupMember(e)}setGroupMemberMuteTime(e){return this._groupMemberHandler.setGroupMemberMuteTime(e)}setGroupMemberRole(e){return this._groupMemberHandler.setGroupMemberRole(e)}setGroupMemberNameCard(e){return this._groupMemberHandler.setGroupMemberNameCard(e)}setGroupMemberCustomField(e){return this._groupMemberHandler.setGroupMemberCustomField(e)}markGroupMemberList(e){return this._groupMemberHandler.markGroupMemberList(e)}modifyGroupMemberInfo(e){return this._groupMemberHandler.modifyGroupMemberInfo(e)}restartPolling(){this._AVChatRoomHandler.restartPolling()}getPollingTimerID(e){if(!e)return-1;var t=this.getLocalGroupProfile(e);return t&&ot(t.type)?this._AVChatRoomHandler.getPollingTimerID(e):-1}_canIUseJoinOption(e){return e===he||rt({type:e})}_silentlyGetGroupProfile(e,t){var s=setTimeout(this.getGroupProfile.bind(this,{groupID:t}),3e3);this._timeoutIDs.push(s),ht.l(this._n+`._silentlyGetGroupProfile errorCode:${e} groupID:${t} timeoutIDs:`+this._timeoutIDs)}_clearTimeoutIDs(){this._timeoutIDs.forEach(e=>{e&&clearTimeout(e)}),this._timeoutIDs=[]}startMessageLongPolling(e){var{groupID:e,longPollingKey:t,longPollingSequence:s=1}=e,o=this.get(r).isUnlimitedAVChatRoom(),i=(this._AVChatRoomHandler.hasPollingInstance(e)&&this.stopMessageLongPolling({groupID:e}),this._AVChatRoomHandler.getJoinedLiveList()),o=(!o&&0>> 2] >>> (24 - (i % 4) * 8)) & 0xff;\r\n\t thisWords[(thisSigBytes + i) >>> 2] |= thatByte << (24 - ((thisSigBytes + i) % 4) * 8);\r\n\t }\r\n\t } else {\r\n\t // Copy one word at a time\r\n\t for (var j = 0; j < thatSigBytes; j += 4) {\r\n\t thisWords[(thisSigBytes + j) >>> 2] = thatWords[j >>> 2];\r\n\t }\r\n\t }\r\n\t this.sigBytes += thatSigBytes;\r\n\r\n\t // Chainable\r\n\t return this;\r\n\t },\r\n\r\n\t /**\r\n\t * Removes insignificant bits.\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * wordArray.clamp();\r\n\t */\r\n\t clamp: function () {\r\n\t // Shortcuts\r\n\t var words = this.words;\r\n\t var sigBytes = this.sigBytes;\r\n\r\n\t // Clamp\r\n\t words[sigBytes >>> 2] &= 0xffffffff << (32 - (sigBytes % 4) * 8);\r\n\t words.length = Math.ceil(sigBytes / 4);\r\n\t },\r\n\r\n\t /**\r\n\t * Creates a copy of this word array.\r\n\t *\r\n\t * @return {WordArray} The clone.\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var clone = wordArray.clone();\r\n\t */\r\n\t clone: function () {\r\n\t var clone = Base.clone.call(this);\r\n\t clone.words = this.words.slice(0);\r\n\r\n\t return clone;\r\n\t },\r\n\r\n\t /**\r\n\t * Creates a word array filled with random bytes.\r\n\t *\r\n\t * @param {number} nBytes The number of random bytes to generate.\r\n\t *\r\n\t * @return {WordArray} The random word array.\r\n\t *\r\n\t * @static\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var wordArray = CryptoJS.lib.WordArray.random(16);\r\n\t */\r\n\t random: function (nBytes) {\r\n\t var words = [];\r\n\r\n\t for (var i = 0; i < nBytes; i += 4) {\r\n\t words.push(cryptoSecureRandomInt());\r\n\t }\r\n\r\n\t return new WordArray.init(words, nBytes);\r\n\t }\r\n\t });\r\n\r\n\t /**\r\n\t * Encoder namespace.\r\n\t */\r\n\t var C_enc = C.enc = {};\r\n\r\n\t /**\r\n\t * Hex encoding strategy.\r\n\t */\r\n\t var Hex = C_enc.Hex = {\r\n\t /**\r\n\t * Converts a word array to a hex string.\r\n\t *\r\n\t * @param {WordArray} wordArray The word array.\r\n\t *\r\n\t * @return {string} The hex string.\r\n\t *\r\n\t * @static\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var hexString = CryptoJS.enc.Hex.stringify(wordArray);\r\n\t */\r\n\t stringify: function (wordArray) {\r\n\t // Shortcuts\r\n\t var words = wordArray.words;\r\n\t var sigBytes = wordArray.sigBytes;\r\n\r\n\t // Convert\r\n\t var hexChars = [];\r\n\t for (var i = 0; i < sigBytes; i++) {\r\n\t var bite = (words[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;\r\n\t hexChars.push((bite >>> 4).toString(16));\r\n\t hexChars.push((bite & 0x0f).toString(16));\r\n\t }\r\n\r\n\t return hexChars.join('');\r\n\t },\r\n\r\n\t /**\r\n\t * Converts a hex string to a word array.\r\n\t *\r\n\t * @param {string} hexStr The hex string.\r\n\t *\r\n\t * @return {WordArray} The word array.\r\n\t *\r\n\t * @static\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var wordArray = CryptoJS.enc.Hex.parse(hexString);\r\n\t */\r\n\t parse: function (hexStr) {\r\n\t // Shortcut\r\n\t var hexStrLength = hexStr.length;\r\n\r\n\t // Convert\r\n\t var words = [];\r\n\t for (var i = 0; i < hexStrLength; i += 2) {\r\n\t words[i >>> 3] |= parseInt(hexStr.substr(i, 2), 16) << (24 - (i % 8) * 4);\r\n\t }\r\n\r\n\t return new WordArray.init(words, hexStrLength / 2);\r\n\t }\r\n\t };\r\n\r\n\t /**\r\n\t * Latin1 encoding strategy.\r\n\t */\r\n\t var Latin1 = C_enc.Latin1 = {\r\n\t /**\r\n\t * Converts a word array to a Latin1 string.\r\n\t *\r\n\t * @param {WordArray} wordArray The word array.\r\n\t *\r\n\t * @return {string} The Latin1 string.\r\n\t *\r\n\t * @static\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var latin1String = CryptoJS.enc.Latin1.stringify(wordArray);\r\n\t */\r\n\t stringify: function (wordArray) {\r\n\t // Shortcuts\r\n\t var words = wordArray.words;\r\n\t var sigBytes = wordArray.sigBytes;\r\n\r\n\t // Convert\r\n\t var latin1Chars = [];\r\n\t for (var i = 0; i < sigBytes; i++) {\r\n\t var bite = (words[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;\r\n\t latin1Chars.push(String.fromCharCode(bite));\r\n\t }\r\n\r\n\t return latin1Chars.join('');\r\n\t },\r\n\r\n\t /**\r\n\t * Converts a Latin1 string to a word array.\r\n\t *\r\n\t * @param {string} latin1Str The Latin1 string.\r\n\t *\r\n\t * @return {WordArray} The word array.\r\n\t *\r\n\t * @static\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var wordArray = CryptoJS.enc.Latin1.parse(latin1String);\r\n\t */\r\n\t parse: function (latin1Str) {\r\n\t // Shortcut\r\n\t var latin1StrLength = latin1Str.length;\r\n\r\n\t // Convert\r\n\t var words = [];\r\n\t for (var i = 0; i < latin1StrLength; i++) {\r\n\t words[i >>> 2] |= (latin1Str.charCodeAt(i) & 0xff) << (24 - (i % 4) * 8);\r\n\t }\r\n\r\n\t return new WordArray.init(words, latin1StrLength);\r\n\t }\r\n\t };\r\n\r\n\t /**\r\n\t * UTF-8 encoding strategy.\r\n\t */\r\n\t var Utf8 = C_enc.Utf8 = {\r\n\t /**\r\n\t * Converts a word array to a UTF-8 string.\r\n\t *\r\n\t * @param {WordArray} wordArray The word array.\r\n\t *\r\n\t * @return {string} The UTF-8 string.\r\n\t *\r\n\t * @static\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var utf8String = CryptoJS.enc.Utf8.stringify(wordArray);\r\n\t */\r\n\t stringify: function (wordArray) {\r\n\t try {\r\n\t return decodeURIComponent(escape(Latin1.stringify(wordArray)));\r\n\t } catch (e) {\r\n\t throw new Error('Malformed UTF-8 data');\r\n\t }\r\n\t },\r\n\r\n\t /**\r\n\t * Converts a UTF-8 string to a word array.\r\n\t *\r\n\t * @param {string} utf8Str The UTF-8 string.\r\n\t *\r\n\t * @return {WordArray} The word array.\r\n\t *\r\n\t * @static\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var wordArray = CryptoJS.enc.Utf8.parse(utf8String);\r\n\t */\r\n\t parse: function (utf8Str) {\r\n\t return Latin1.parse(unescape(encodeURIComponent(utf8Str)));\r\n\t }\r\n\t };\r\n\r\n\t /**\r\n\t * Abstract buffered block algorithm template.\r\n\t *\r\n\t * The property blockSize must be implemented in a concrete subtype.\r\n\t *\r\n\t * @property {number} _minBufferSize The number of blocks that should be kept unprocessed in the buffer. Default: 0\r\n\t */\r\n\t var BufferedBlockAlgorithm = C_lib.BufferedBlockAlgorithm = Base.extend({\r\n\t /**\r\n\t * Resets this block algorithm's data buffer to its initial state.\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * bufferedBlockAlgorithm.reset();\r\n\t */\r\n\t reset: function () {\r\n\t // Initial values\r\n\t this._data = new WordArray.init();\r\n\t this._nDataBytes = 0;\r\n\t },\r\n\r\n\t /**\r\n\t * Adds new data to this block algorithm's buffer.\r\n\t *\r\n\t * @param {WordArray|string} data The data to append. Strings are converted to a WordArray using UTF-8.\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * bufferedBlockAlgorithm._append('data');\r\n\t * bufferedBlockAlgorithm._append(wordArray);\r\n\t */\r\n\t _append: function (data) {\r\n\t // Convert string to WordArray, else assume WordArray already\r\n\t if (typeof data == 'string') {\r\n\t data = Utf8.parse(data);\r\n\t }\r\n\r\n\t // Append\r\n\t this._data.concat(data);\r\n\t this._nDataBytes += data.sigBytes;\r\n\t },\r\n\r\n\t /**\r\n\t * Processes available data blocks.\r\n\t *\r\n\t * This method invokes _doProcessBlock(offset), which must be implemented by a concrete subtype.\r\n\t *\r\n\t * @param {boolean} doFlush Whether all blocks and partial blocks should be processed.\r\n\t *\r\n\t * @return {WordArray} The processed data.\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var processedData = bufferedBlockAlgorithm._process();\r\n\t * var processedData = bufferedBlockAlgorithm._process(!!'flush');\r\n\t */\r\n\t _process: function (doFlush) {\r\n\t var processedWords;\r\n\r\n\t // Shortcuts\r\n\t var data = this._data;\r\n\t var dataWords = data.words;\r\n\t var dataSigBytes = data.sigBytes;\r\n\t var blockSize = this.blockSize;\r\n\t var blockSizeBytes = blockSize * 4;\r\n\r\n\t // Count blocks ready\r\n\t var nBlocksReady = dataSigBytes / blockSizeBytes;\r\n\t if (doFlush) {\r\n\t // Round up to include partial blocks\r\n\t nBlocksReady = Math.ceil(nBlocksReady);\r\n\t } else {\r\n\t // Round down to include only full blocks,\r\n\t // less the number of blocks that must remain in the buffer\r\n\t nBlocksReady = Math.max((nBlocksReady | 0) - this._minBufferSize, 0);\r\n\t }\r\n\r\n\t // Count words ready\r\n\t var nWordsReady = nBlocksReady * blockSize;\r\n\r\n\t // Count bytes ready\r\n\t var nBytesReady = Math.min(nWordsReady * 4, dataSigBytes);\r\n\r\n\t // Process blocks\r\n\t if (nWordsReady) {\r\n\t for (var offset = 0; offset < nWordsReady; offset += blockSize) {\r\n\t // Perform concrete-algorithm logic\r\n\t this._doProcessBlock(dataWords, offset);\r\n\t }\r\n\r\n\t // Remove processed words\r\n\t processedWords = dataWords.splice(0, nWordsReady);\r\n\t data.sigBytes -= nBytesReady;\r\n\t }\r\n\r\n\t // Return processed words\r\n\t return new WordArray.init(processedWords, nBytesReady);\r\n\t },\r\n\r\n\t /**\r\n\t * Creates a copy of this object.\r\n\t *\r\n\t * @return {Object} The clone.\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var clone = bufferedBlockAlgorithm.clone();\r\n\t */\r\n\t clone: function () {\r\n\t var clone = Base.clone.call(this);\r\n\t clone._data = this._data.clone();\r\n\r\n\t return clone;\r\n\t },\r\n\r\n\t _minBufferSize: 0\r\n\t });\r\n\r\n\t /**\r\n\t * Abstract hasher template.\r\n\t *\r\n\t * @property {number} blockSize The number of 32-bit words this hasher operates on. Default: 16 (512 bits)\r\n\t */\r\n\t var Hasher = C_lib.Hasher = BufferedBlockAlgorithm.extend({\r\n\t /**\r\n\t * Configuration options.\r\n\t */\r\n\t cfg: Base.extend(),\r\n\r\n\t /**\r\n\t * Initializes a newly created hasher.\r\n\t *\r\n\t * @param {Object} cfg (Optional) The configuration options to use for this hash computation.\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var hasher = CryptoJS.algo.SHA256.create();\r\n\t */\r\n\t init: function (cfg) {\r\n\t // Apply config defaults\r\n\t this.cfg = this.cfg.extend(cfg);\r\n\r\n\t // Set initial values\r\n\t this.reset();\r\n\t },\r\n\r\n\t /**\r\n\t * Resets this hasher to its initial state.\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * hasher.reset();\r\n\t */\r\n\t reset: function () {\r\n\t // Reset data buffer\r\n\t BufferedBlockAlgorithm.reset.call(this);\r\n\r\n\t // Perform concrete-hasher logic\r\n\t this._doReset();\r\n\t },\r\n\r\n\t /**\r\n\t * Updates this hasher with a message.\r\n\t *\r\n\t * @param {WordArray|string} messageUpdate The message to append.\r\n\t *\r\n\t * @return {Hasher} This hasher.\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * hasher.update('message');\r\n\t * hasher.update(wordArray);\r\n\t */\r\n\t update: function (messageUpdate) {\r\n\t // Append\r\n\t this._append(messageUpdate);\r\n\r\n\t // Update the hash\r\n\t this._process();\r\n\r\n\t // Chainable\r\n\t return this;\r\n\t },\r\n\r\n\t /**\r\n\t * Finalizes the hash computation.\r\n\t * Note that the finalize operation is effectively a destructive, read-once operation.\r\n\t *\r\n\t * @param {WordArray|string} messageUpdate (Optional) A final message update.\r\n\t *\r\n\t * @return {WordArray} The hash.\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var hash = hasher.finalize();\r\n\t * var hash = hasher.finalize('message');\r\n\t * var hash = hasher.finalize(wordArray);\r\n\t */\r\n\t finalize: function (messageUpdate) {\r\n\t // Final message update\r\n\t if (messageUpdate) {\r\n\t this._append(messageUpdate);\r\n\t }\r\n\r\n\t // Perform concrete-hasher logic\r\n\t var hash = this._doFinalize();\r\n\r\n\t return hash;\r\n\t },\r\n\r\n\t blockSize: 512/32,\r\n\r\n\t /**\r\n\t * Creates a shortcut function to a hasher's object interface.\r\n\t *\r\n\t * @param {Hasher} hasher The hasher to create a helper for.\r\n\t *\r\n\t * @return {Function} The shortcut function.\r\n\t *\r\n\t * @static\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var SHA256 = CryptoJS.lib.Hasher._createHelper(CryptoJS.algo.SHA256);\r\n\t */\r\n\t _createHelper: function (hasher) {\r\n\t return function (message, cfg) {\r\n\t return new hasher.init(cfg).finalize(message);\r\n\t };\r\n\t },\r\n\r\n\t /**\r\n\t * Creates a shortcut function to the HMAC's object interface.\r\n\t *\r\n\t * @param {Hasher} hasher The hasher to use in this HMAC helper.\r\n\t *\r\n\t * @return {Function} The shortcut function.\r\n\t *\r\n\t * @static\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var HmacSHA256 = CryptoJS.lib.Hasher._createHmacHelper(CryptoJS.algo.SHA256);\r\n\t */\r\n\t _createHmacHelper: function (hasher) {\r\n\t return function (message, key) {\r\n\t return new C_algo.HMAC.init(hasher, key).finalize(message);\r\n\t };\r\n\t }\r\n\t });\r\n\r\n\t /**\r\n\t * Algorithm namespace.\r\n\t */\r\n\t var C_algo = C.algo = {};\r\n\r\n\t return C;\r\n\t}(Math));\r\n\r\n\r\n\treturn CryptoJS;\r\n\r\n}));", ";(function (root, factory) {\r\n\tif (typeof exports === \"object\") {\r\n\t\t// CommonJS\r\n\t\tmodule.exports = exports = factory(require(\"./core\"));\r\n\t}\r\n\telse if (typeof define === \"function\" && define.amd) {\r\n\t\t// AMD\r\n\t\tdefine([\"./core\"], factory);\r\n\t}\r\n\telse {\r\n\t\t// Global (browser)\r\n\t\tfactory(root.CryptoJS);\r\n\t}\r\n}(this, function (CryptoJS) {\r\n\r\n\t(function (undefined) {\r\n\t // Shortcuts\r\n\t var C = CryptoJS;\r\n\t var C_lib = C.lib;\r\n\t var Base = C_lib.Base;\r\n\t var X32WordArray = C_lib.WordArray;\r\n\r\n\t /**\r\n\t * x64 namespace.\r\n\t */\r\n\t var C_x64 = C.x64 = {};\r\n\r\n\t /**\r\n\t * A 64-bit word.\r\n\t */\r\n\t var X64Word = C_x64.Word = Base.extend({\r\n\t /**\r\n\t * Initializes a newly created 64-bit word.\r\n\t *\r\n\t * @param {number} high The high 32 bits.\r\n\t * @param {number} low The low 32 bits.\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var x64Word = CryptoJS.x64.Word.create(0x00010203, 0x04050607);\r\n\t */\r\n\t init: function (high, low) {\r\n\t this.high = high;\r\n\t this.low = low;\r\n\t }\r\n\r\n\t /**\r\n\t * Bitwise NOTs this word.\r\n\t *\r\n\t * @return {X64Word} A new x64-Word object after negating.\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var negated = x64Word.not();\r\n\t */\r\n\t // not: function () {\r\n\t // var high = ~this.high;\r\n\t // var low = ~this.low;\r\n\r\n\t // return X64Word.create(high, low);\r\n\t // },\r\n\r\n\t /**\r\n\t * Bitwise ANDs this word with the passed word.\r\n\t *\r\n\t * @param {X64Word} word The x64-Word to AND with this word.\r\n\t *\r\n\t * @return {X64Word} A new x64-Word object after ANDing.\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var anded = x64Word.and(anotherX64Word);\r\n\t */\r\n\t // and: function (word) {\r\n\t // var high = this.high & word.high;\r\n\t // var low = this.low & word.low;\r\n\r\n\t // return X64Word.create(high, low);\r\n\t // },\r\n\r\n\t /**\r\n\t * Bitwise ORs this word with the passed word.\r\n\t *\r\n\t * @param {X64Word} word The x64-Word to OR with this word.\r\n\t *\r\n\t * @return {X64Word} A new x64-Word object after ORing.\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var ored = x64Word.or(anotherX64Word);\r\n\t */\r\n\t // or: function (word) {\r\n\t // var high = this.high | word.high;\r\n\t // var low = this.low | word.low;\r\n\r\n\t // return X64Word.create(high, low);\r\n\t // },\r\n\r\n\t /**\r\n\t * Bitwise XORs this word with the passed word.\r\n\t *\r\n\t * @param {X64Word} word The x64-Word to XOR with this word.\r\n\t *\r\n\t * @return {X64Word} A new x64-Word object after XORing.\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var xored = x64Word.xor(anotherX64Word);\r\n\t */\r\n\t // xor: function (word) {\r\n\t // var high = this.high ^ word.high;\r\n\t // var low = this.low ^ word.low;\r\n\r\n\t // return X64Word.create(high, low);\r\n\t // },\r\n\r\n\t /**\r\n\t * Shifts this word n bits to the left.\r\n\t *\r\n\t * @param {number} n The number of bits to shift.\r\n\t *\r\n\t * @return {X64Word} A new x64-Word object after shifting.\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var shifted = x64Word.shiftL(25);\r\n\t */\r\n\t // shiftL: function (n) {\r\n\t // if (n < 32) {\r\n\t // var high = (this.high << n) | (this.low >>> (32 - n));\r\n\t // var low = this.low << n;\r\n\t // } else {\r\n\t // var high = this.low << (n - 32);\r\n\t // var low = 0;\r\n\t // }\r\n\r\n\t // return X64Word.create(high, low);\r\n\t // },\r\n\r\n\t /**\r\n\t * Shifts this word n bits to the right.\r\n\t *\r\n\t * @param {number} n The number of bits to shift.\r\n\t *\r\n\t * @return {X64Word} A new x64-Word object after shifting.\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var shifted = x64Word.shiftR(7);\r\n\t */\r\n\t // shiftR: function (n) {\r\n\t // if (n < 32) {\r\n\t // var low = (this.low >>> n) | (this.high << (32 - n));\r\n\t // var high = this.high >>> n;\r\n\t // } else {\r\n\t // var low = this.high >>> (n - 32);\r\n\t // var high = 0;\r\n\t // }\r\n\r\n\t // return X64Word.create(high, low);\r\n\t // },\r\n\r\n\t /**\r\n\t * Rotates this word n bits to the left.\r\n\t *\r\n\t * @param {number} n The number of bits to rotate.\r\n\t *\r\n\t * @return {X64Word} A new x64-Word object after rotating.\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var rotated = x64Word.rotL(25);\r\n\t */\r\n\t // rotL: function (n) {\r\n\t // return this.shiftL(n).or(this.shiftR(64 - n));\r\n\t // },\r\n\r\n\t /**\r\n\t * Rotates this word n bits to the right.\r\n\t *\r\n\t * @param {number} n The number of bits to rotate.\r\n\t *\r\n\t * @return {X64Word} A new x64-Word object after rotating.\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var rotated = x64Word.rotR(7);\r\n\t */\r\n\t // rotR: function (n) {\r\n\t // return this.shiftR(n).or(this.shiftL(64 - n));\r\n\t // },\r\n\r\n\t /**\r\n\t * Adds this word with the passed word.\r\n\t *\r\n\t * @param {X64Word} word The x64-Word to add with this word.\r\n\t *\r\n\t * @return {X64Word} A new x64-Word object after adding.\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var added = x64Word.add(anotherX64Word);\r\n\t */\r\n\t // add: function (word) {\r\n\t // var low = (this.low + word.low) | 0;\r\n\t // var carry = (low >>> 0) < (this.low >>> 0) ? 1 : 0;\r\n\t // var high = (this.high + word.high + carry) | 0;\r\n\r\n\t // return X64Word.create(high, low);\r\n\t // }\r\n\t });\r\n\r\n\t /**\r\n\t * An array of 64-bit words.\r\n\t *\r\n\t * @property {Array} words The array of CryptoJS.x64.Word objects.\r\n\t * @property {number} sigBytes The number of significant bytes in this word array.\r\n\t */\r\n\t var X64WordArray = C_x64.WordArray = Base.extend({\r\n\t /**\r\n\t * Initializes a newly created word array.\r\n\t *\r\n\t * @param {Array} words (Optional) An array of CryptoJS.x64.Word objects.\r\n\t * @param {number} sigBytes (Optional) The number of significant bytes in the words.\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var wordArray = CryptoJS.x64.WordArray.create();\r\n\t *\r\n\t * var wordArray = CryptoJS.x64.WordArray.create([\r\n\t * CryptoJS.x64.Word.create(0x00010203, 0x04050607),\r\n\t * CryptoJS.x64.Word.create(0x18191a1b, 0x1c1d1e1f)\r\n\t * ]);\r\n\t *\r\n\t * var wordArray = CryptoJS.x64.WordArray.create([\r\n\t * CryptoJS.x64.Word.create(0x00010203, 0x04050607),\r\n\t * CryptoJS.x64.Word.create(0x18191a1b, 0x1c1d1e1f)\r\n\t * ], 10);\r\n\t */\r\n\t init: function (words, sigBytes) {\r\n\t words = this.words = words || [];\r\n\r\n\t if (sigBytes != undefined) {\r\n\t this.sigBytes = sigBytes;\r\n\t } else {\r\n\t this.sigBytes = words.length * 8;\r\n\t }\r\n\t },\r\n\r\n\t /**\r\n\t * Converts this 64-bit word array to a 32-bit word array.\r\n\t *\r\n\t * @return {CryptoJS.lib.WordArray} This word array's data as a 32-bit word array.\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var x32WordArray = x64WordArray.toX32();\r\n\t */\r\n\t toX32: function () {\r\n\t // Shortcuts\r\n\t var x64Words = this.words;\r\n\t var x64WordsLength = x64Words.length;\r\n\r\n\t // Convert\r\n\t var x32Words = [];\r\n\t for (var i = 0; i < x64WordsLength; i++) {\r\n\t var x64Word = x64Words[i];\r\n\t x32Words.push(x64Word.high);\r\n\t x32Words.push(x64Word.low);\r\n\t }\r\n\r\n\t return X32WordArray.create(x32Words, this.sigBytes);\r\n\t },\r\n\r\n\t /**\r\n\t * Creates a copy of this word array.\r\n\t *\r\n\t * @return {X64WordArray} The clone.\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var clone = x64WordArray.clone();\r\n\t */\r\n\t clone: function () {\r\n\t var clone = Base.clone.call(this);\r\n\r\n\t // Clone \"words\" array\r\n\t var words = clone.words = this.words.slice(0);\r\n\r\n\t // Clone each X64Word object\r\n\t var wordsLength = words.length;\r\n\t for (var i = 0; i < wordsLength; i++) {\r\n\t words[i] = words[i].clone();\r\n\t }\r\n\r\n\t return clone;\r\n\t }\r\n\t });\r\n\t}());\r\n\r\n\r\n\treturn CryptoJS;\r\n\r\n}));", ";(function (root, factory) {\r\n\tif (typeof exports === \"object\") {\r\n\t\t// CommonJS\r\n\t\tmodule.exports = exports = factory(require(\"./core\"));\r\n\t}\r\n\telse if (typeof define === \"function\" && define.amd) {\r\n\t\t// AMD\r\n\t\tdefine([\"./core\"], factory);\r\n\t}\r\n\telse {\r\n\t\t// Global (browser)\r\n\t\tfactory(root.CryptoJS);\r\n\t}\r\n}(this, function (CryptoJS) {\r\n\r\n\t(function () {\r\n\t // Check if typed arrays are supported\r\n\t if (typeof ArrayBuffer != 'function') {\r\n\t return;\r\n\t }\r\n\r\n\t // Shortcuts\r\n\t var C = CryptoJS;\r\n\t var C_lib = C.lib;\r\n\t var WordArray = C_lib.WordArray;\r\n\r\n\t // Reference original init\r\n\t var superInit = WordArray.init;\r\n\r\n\t // Augment WordArray.init to handle typed arrays\r\n\t var subInit = WordArray.init = function (typedArray) {\r\n\t // Convert buffers to uint8\r\n\t if (typedArray instanceof ArrayBuffer) {\r\n\t typedArray = new Uint8Array(typedArray);\r\n\t }\r\n\r\n\t // Convert other array views to uint8\r\n\t if (\r\n\t typedArray instanceof Int8Array ||\r\n\t (typeof Uint8ClampedArray !== \"undefined\" && typedArray instanceof Uint8ClampedArray) ||\r\n\t typedArray instanceof Int16Array ||\r\n\t typedArray instanceof Uint16Array ||\r\n\t typedArray instanceof Int32Array ||\r\n\t typedArray instanceof Uint32Array ||\r\n\t typedArray instanceof Float32Array ||\r\n\t typedArray instanceof Float64Array\r\n\t ) {\r\n\t typedArray = new Uint8Array(typedArray.buffer, typedArray.byteOffset, typedArray.byteLength);\r\n\t }\r\n\r\n\t // Handle Uint8Array\r\n\t if (typedArray instanceof Uint8Array) {\r\n\t // Shortcut\r\n\t var typedArrayByteLength = typedArray.byteLength;\r\n\r\n\t // Extract bytes\r\n\t var words = [];\r\n\t for (var i = 0; i < typedArrayByteLength; i++) {\r\n\t words[i >>> 2] |= typedArray[i] << (24 - (i % 4) * 8);\r\n\t }\r\n\r\n\t // Initialize this word array\r\n\t superInit.call(this, words, typedArrayByteLength);\r\n\t } else {\r\n\t // Else call normal init\r\n\t superInit.apply(this, arguments);\r\n\t }\r\n\t };\r\n\r\n\t subInit.prototype = WordArray;\r\n\t}());\r\n\r\n\r\n\treturn CryptoJS.lib.WordArray;\r\n\r\n}));", ";(function (root, factory) {\r\n\tif (typeof exports === \"object\") {\r\n\t\t// CommonJS\r\n\t\tmodule.exports = exports = factory(require(\"./core\"));\r\n\t}\r\n\telse if (typeof define === \"function\" && define.amd) {\r\n\t\t// AMD\r\n\t\tdefine([\"./core\"], factory);\r\n\t}\r\n\telse {\r\n\t\t// Global (browser)\r\n\t\tfactory(root.CryptoJS);\r\n\t}\r\n}(this, function (CryptoJS) {\r\n\r\n\t(function () {\r\n\t // Shortcuts\r\n\t var C = CryptoJS;\r\n\t var C_lib = C.lib;\r\n\t var WordArray = C_lib.WordArray;\r\n\t var C_enc = C.enc;\r\n\r\n\t /**\r\n\t * UTF-16 BE encoding strategy.\r\n\t */\r\n\t var Utf16BE = C_enc.Utf16 = C_enc.Utf16BE = {\r\n\t /**\r\n\t * Converts a word array to a UTF-16 BE string.\r\n\t *\r\n\t * @param {WordArray} wordArray The word array.\r\n\t *\r\n\t * @return {string} The UTF-16 BE string.\r\n\t *\r\n\t * @static\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var utf16String = CryptoJS.enc.Utf16.stringify(wordArray);\r\n\t */\r\n\t stringify: function (wordArray) {\r\n\t // Shortcuts\r\n\t var words = wordArray.words;\r\n\t var sigBytes = wordArray.sigBytes;\r\n\r\n\t // Convert\r\n\t var utf16Chars = [];\r\n\t for (var i = 0; i < sigBytes; i += 2) {\r\n\t var codePoint = (words[i >>> 2] >>> (16 - (i % 4) * 8)) & 0xffff;\r\n\t utf16Chars.push(String.fromCharCode(codePoint));\r\n\t }\r\n\r\n\t return utf16Chars.join('');\r\n\t },\r\n\r\n\t /**\r\n\t * Converts a UTF-16 BE string to a word array.\r\n\t *\r\n\t * @param {string} utf16Str The UTF-16 BE string.\r\n\t *\r\n\t * @return {WordArray} The word array.\r\n\t *\r\n\t * @static\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var wordArray = CryptoJS.enc.Utf16.parse(utf16String);\r\n\t */\r\n\t parse: function (utf16Str) {\r\n\t // Shortcut\r\n\t var utf16StrLength = utf16Str.length;\r\n\r\n\t // Convert\r\n\t var words = [];\r\n\t for (var i = 0; i < utf16StrLength; i++) {\r\n\t words[i >>> 1] |= utf16Str.charCodeAt(i) << (16 - (i % 2) * 16);\r\n\t }\r\n\r\n\t return WordArray.create(words, utf16StrLength * 2);\r\n\t }\r\n\t };\r\n\r\n\t /**\r\n\t * UTF-16 LE encoding strategy.\r\n\t */\r\n\t C_enc.Utf16LE = {\r\n\t /**\r\n\t * Converts a word array to a UTF-16 LE string.\r\n\t *\r\n\t * @param {WordArray} wordArray The word array.\r\n\t *\r\n\t * @return {string} The UTF-16 LE string.\r\n\t *\r\n\t * @static\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var utf16Str = CryptoJS.enc.Utf16LE.stringify(wordArray);\r\n\t */\r\n\t stringify: function (wordArray) {\r\n\t // Shortcuts\r\n\t var words = wordArray.words;\r\n\t var sigBytes = wordArray.sigBytes;\r\n\r\n\t // Convert\r\n\t var utf16Chars = [];\r\n\t for (var i = 0; i < sigBytes; i += 2) {\r\n\t var codePoint = swapEndian((words[i >>> 2] >>> (16 - (i % 4) * 8)) & 0xffff);\r\n\t utf16Chars.push(String.fromCharCode(codePoint));\r\n\t }\r\n\r\n\t return utf16Chars.join('');\r\n\t },\r\n\r\n\t /**\r\n\t * Converts a UTF-16 LE string to a word array.\r\n\t *\r\n\t * @param {string} utf16Str The UTF-16 LE string.\r\n\t *\r\n\t * @return {WordArray} The word array.\r\n\t *\r\n\t * @static\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var wordArray = CryptoJS.enc.Utf16LE.parse(utf16Str);\r\n\t */\r\n\t parse: function (utf16Str) {\r\n\t // Shortcut\r\n\t var utf16StrLength = utf16Str.length;\r\n\r\n\t // Convert\r\n\t var words = [];\r\n\t for (var i = 0; i < utf16StrLength; i++) {\r\n\t words[i >>> 1] |= swapEndian(utf16Str.charCodeAt(i) << (16 - (i % 2) * 16));\r\n\t }\r\n\r\n\t return WordArray.create(words, utf16StrLength * 2);\r\n\t }\r\n\t };\r\n\r\n\t function swapEndian(word) {\r\n\t return ((word << 8) & 0xff00ff00) | ((word >>> 8) & 0x00ff00ff);\r\n\t }\r\n\t}());\r\n\r\n\r\n\treturn CryptoJS.enc.Utf16;\r\n\r\n}));", ";(function (root, factory) {\r\n\tif (typeof exports === \"object\") {\r\n\t\t// CommonJS\r\n\t\tmodule.exports = exports = factory(require(\"./core\"));\r\n\t}\r\n\telse if (typeof define === \"function\" && define.amd) {\r\n\t\t// AMD\r\n\t\tdefine([\"./core\"], factory);\r\n\t}\r\n\telse {\r\n\t\t// Global (browser)\r\n\t\tfactory(root.CryptoJS);\r\n\t}\r\n}(this, function (CryptoJS) {\r\n\r\n\t(function () {\r\n\t // Shortcuts\r\n\t var C = CryptoJS;\r\n\t var C_lib = C.lib;\r\n\t var WordArray = C_lib.WordArray;\r\n\t var C_enc = C.enc;\r\n\r\n\t /**\r\n\t * Base64 encoding strategy.\r\n\t */\r\n\t var Base64 = C_enc.Base64 = {\r\n\t /**\r\n\t * Converts a word array to a Base64 string.\r\n\t *\r\n\t * @param {WordArray} wordArray The word array.\r\n\t *\r\n\t * @return {string} The Base64 string.\r\n\t *\r\n\t * @static\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var base64String = CryptoJS.enc.Base64.stringify(wordArray);\r\n\t */\r\n\t stringify: function (wordArray) {\r\n\t // Shortcuts\r\n\t var words = wordArray.words;\r\n\t var sigBytes = wordArray.sigBytes;\r\n\t var map = this._map;\r\n\r\n\t // Clamp excess bits\r\n\t wordArray.clamp();\r\n\r\n\t // Convert\r\n\t var base64Chars = [];\r\n\t for (var i = 0; i < sigBytes; i += 3) {\r\n\t var byte1 = (words[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;\r\n\t var byte2 = (words[(i + 1) >>> 2] >>> (24 - ((i + 1) % 4) * 8)) & 0xff;\r\n\t var byte3 = (words[(i + 2) >>> 2] >>> (24 - ((i + 2) % 4) * 8)) & 0xff;\r\n\r\n\t var triplet = (byte1 << 16) | (byte2 << 8) | byte3;\r\n\r\n\t for (var j = 0; (j < 4) && (i + j * 0.75 < sigBytes); j++) {\r\n\t base64Chars.push(map.charAt((triplet >>> (6 * (3 - j))) & 0x3f));\r\n\t }\r\n\t }\r\n\r\n\t // Add padding\r\n\t var paddingChar = map.charAt(64);\r\n\t if (paddingChar) {\r\n\t while (base64Chars.length % 4) {\r\n\t base64Chars.push(paddingChar);\r\n\t }\r\n\t }\r\n\r\n\t return base64Chars.join('');\r\n\t },\r\n\r\n\t /**\r\n\t * Converts a Base64 string to a word array.\r\n\t *\r\n\t * @param {string} base64Str The Base64 string.\r\n\t *\r\n\t * @return {WordArray} The word array.\r\n\t *\r\n\t * @static\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var wordArray = CryptoJS.enc.Base64.parse(base64String);\r\n\t */\r\n\t parse: function (base64Str) {\r\n\t // Shortcuts\r\n\t var base64StrLength = base64Str.length;\r\n\t var map = this._map;\r\n\t var reverseMap = this._reverseMap;\r\n\r\n\t if (!reverseMap) {\r\n\t reverseMap = this._reverseMap = [];\r\n\t for (var j = 0; j < map.length; j++) {\r\n\t reverseMap[map.charCodeAt(j)] = j;\r\n\t }\r\n\t }\r\n\r\n\t // Ignore padding\r\n\t var paddingChar = map.charAt(64);\r\n\t if (paddingChar) {\r\n\t var paddingIndex = base64Str.indexOf(paddingChar);\r\n\t if (paddingIndex !== -1) {\r\n\t base64StrLength = paddingIndex;\r\n\t }\r\n\t }\r\n\r\n\t // Convert\r\n\t return parseLoop(base64Str, base64StrLength, reverseMap);\r\n\r\n\t },\r\n\r\n\t _map: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='\r\n\t };\r\n\r\n\t function parseLoop(base64Str, base64StrLength, reverseMap) {\r\n\t var words = [];\r\n\t var nBytes = 0;\r\n\t for (var i = 0; i < base64StrLength; i++) {\r\n\t if (i % 4) {\r\n\t var bits1 = reverseMap[base64Str.charCodeAt(i - 1)] << ((i % 4) * 2);\r\n\t var bits2 = reverseMap[base64Str.charCodeAt(i)] >>> (6 - (i % 4) * 2);\r\n\t var bitsCombined = bits1 | bits2;\r\n\t words[nBytes >>> 2] |= bitsCombined << (24 - (nBytes % 4) * 8);\r\n\t nBytes++;\r\n\t }\r\n\t }\r\n\t return WordArray.create(words, nBytes);\r\n\t }\r\n\t}());\r\n\r\n\r\n\treturn CryptoJS.enc.Base64;\r\n\r\n}));", ";(function (root, factory) {\r\n\tif (typeof exports === \"object\") {\r\n\t\t// CommonJS\r\n\t\tmodule.exports = exports = factory(require(\"./core\"));\r\n\t}\r\n\telse if (typeof define === \"function\" && define.amd) {\r\n\t\t// AMD\r\n\t\tdefine([\"./core\"], factory);\r\n\t}\r\n\telse {\r\n\t\t// Global (browser)\r\n\t\tfactory(root.CryptoJS);\r\n\t}\r\n}(this, function (CryptoJS) {\r\n\r\n\t(function () {\r\n\t // Shortcuts\r\n\t var C = CryptoJS;\r\n\t var C_lib = C.lib;\r\n\t var WordArray = C_lib.WordArray;\r\n\t var C_enc = C.enc;\r\n\r\n\t /**\r\n\t * Base64url encoding strategy.\r\n\t */\r\n\t var Base64url = C_enc.Base64url = {\r\n\t /**\r\n\t * Converts a word array to a Base64url string.\r\n\t *\r\n\t * @param {WordArray} wordArray The word array.\r\n\t *\r\n\t * @param {boolean} urlSafe Whether to use url safe\r\n\t *\r\n\t * @return {string} The Base64url string.\r\n\t *\r\n\t * @static\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var base64String = CryptoJS.enc.Base64url.stringify(wordArray);\r\n\t */\r\n\t stringify: function (wordArray, urlSafe) {\r\n\t if (urlSafe === undefined) {\r\n\t urlSafe = true\r\n\t }\r\n\t // Shortcuts\r\n\t var words = wordArray.words;\r\n\t var sigBytes = wordArray.sigBytes;\r\n\t var map = urlSafe ? this._safe_map : this._map;\r\n\r\n\t // Clamp excess bits\r\n\t wordArray.clamp();\r\n\r\n\t // Convert\r\n\t var base64Chars = [];\r\n\t for (var i = 0; i < sigBytes; i += 3) {\r\n\t var byte1 = (words[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;\r\n\t var byte2 = (words[(i + 1) >>> 2] >>> (24 - ((i + 1) % 4) * 8)) & 0xff;\r\n\t var byte3 = (words[(i + 2) >>> 2] >>> (24 - ((i + 2) % 4) * 8)) & 0xff;\r\n\r\n\t var triplet = (byte1 << 16) | (byte2 << 8) | byte3;\r\n\r\n\t for (var j = 0; (j < 4) && (i + j * 0.75 < sigBytes); j++) {\r\n\t base64Chars.push(map.charAt((triplet >>> (6 * (3 - j))) & 0x3f));\r\n\t }\r\n\t }\r\n\r\n\t // Add padding\r\n\t var paddingChar = map.charAt(64);\r\n\t if (paddingChar) {\r\n\t while (base64Chars.length % 4) {\r\n\t base64Chars.push(paddingChar);\r\n\t }\r\n\t }\r\n\r\n\t return base64Chars.join('');\r\n\t },\r\n\r\n\t /**\r\n\t * Converts a Base64url string to a word array.\r\n\t *\r\n\t * @param {string} base64Str The Base64url string.\r\n\t *\r\n\t * @param {boolean} urlSafe Whether to use url safe\r\n\t *\r\n\t * @return {WordArray} The word array.\r\n\t *\r\n\t * @static\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var wordArray = CryptoJS.enc.Base64url.parse(base64String);\r\n\t */\r\n\t parse: function (base64Str, urlSafe) {\r\n\t if (urlSafe === undefined) {\r\n\t urlSafe = true\r\n\t }\r\n\r\n\t // Shortcuts\r\n\t var base64StrLength = base64Str.length;\r\n\t var map = urlSafe ? this._safe_map : this._map;\r\n\t var reverseMap = this._reverseMap;\r\n\r\n\t if (!reverseMap) {\r\n\t reverseMap = this._reverseMap = [];\r\n\t for (var j = 0; j < map.length; j++) {\r\n\t reverseMap[map.charCodeAt(j)] = j;\r\n\t }\r\n\t }\r\n\r\n\t // Ignore padding\r\n\t var paddingChar = map.charAt(64);\r\n\t if (paddingChar) {\r\n\t var paddingIndex = base64Str.indexOf(paddingChar);\r\n\t if (paddingIndex !== -1) {\r\n\t base64StrLength = paddingIndex;\r\n\t }\r\n\t }\r\n\r\n\t // Convert\r\n\t return parseLoop(base64Str, base64StrLength, reverseMap);\r\n\r\n\t },\r\n\r\n\t _map: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=',\r\n\t _safe_map: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_',\r\n\t };\r\n\r\n\t function parseLoop(base64Str, base64StrLength, reverseMap) {\r\n\t var words = [];\r\n\t var nBytes = 0;\r\n\t for (var i = 0; i < base64StrLength; i++) {\r\n\t if (i % 4) {\r\n\t var bits1 = reverseMap[base64Str.charCodeAt(i - 1)] << ((i % 4) * 2);\r\n\t var bits2 = reverseMap[base64Str.charCodeAt(i)] >>> (6 - (i % 4) * 2);\r\n\t var bitsCombined = bits1 | bits2;\r\n\t words[nBytes >>> 2] |= bitsCombined << (24 - (nBytes % 4) * 8);\r\n\t nBytes++;\r\n\t }\r\n\t }\r\n\t return WordArray.create(words, nBytes);\r\n\t }\r\n\t}());\r\n\r\n\r\n\treturn CryptoJS.enc.Base64url;\r\n\r\n}));", ";(function (root, factory) {\r\n\tif (typeof exports === \"object\") {\r\n\t\t// CommonJS\r\n\t\tmodule.exports = exports = factory(require(\"./core\"));\r\n\t}\r\n\telse if (typeof define === \"function\" && define.amd) {\r\n\t\t// AMD\r\n\t\tdefine([\"./core\"], factory);\r\n\t}\r\n\telse {\r\n\t\t// Global (browser)\r\n\t\tfactory(root.CryptoJS);\r\n\t}\r\n}(this, function (CryptoJS) {\r\n\r\n\t(function (Math) {\r\n\t // Shortcuts\r\n\t var C = CryptoJS;\r\n\t var C_lib = C.lib;\r\n\t var WordArray = C_lib.WordArray;\r\n\t var Hasher = C_lib.Hasher;\r\n\t var C_algo = C.algo;\r\n\r\n\t // Constants table\r\n\t var T = [];\r\n\r\n\t // Compute constants\r\n\t (function () {\r\n\t for (var i = 0; i < 64; i++) {\r\n\t T[i] = (Math.abs(Math.sin(i + 1)) * 0x100000000) | 0;\r\n\t }\r\n\t }());\r\n\r\n\t /**\r\n\t * MD5 hash algorithm.\r\n\t */\r\n\t var MD5 = C_algo.MD5 = Hasher.extend({\r\n\t _doReset: function () {\r\n\t this._hash = new WordArray.init([\r\n\t 0x67452301, 0xefcdab89,\r\n\t 0x98badcfe, 0x10325476\r\n\t ]);\r\n\t },\r\n\r\n\t _doProcessBlock: function (M, offset) {\r\n\t // Swap endian\r\n\t for (var i = 0; i < 16; i++) {\r\n\t // Shortcuts\r\n\t var offset_i = offset + i;\r\n\t var M_offset_i = M[offset_i];\r\n\r\n\t M[offset_i] = (\r\n\t (((M_offset_i << 8) | (M_offset_i >>> 24)) & 0x00ff00ff) |\r\n\t (((M_offset_i << 24) | (M_offset_i >>> 8)) & 0xff00ff00)\r\n\t );\r\n\t }\r\n\r\n\t // Shortcuts\r\n\t var H = this._hash.words;\r\n\r\n\t var M_offset_0 = M[offset + 0];\r\n\t var M_offset_1 = M[offset + 1];\r\n\t var M_offset_2 = M[offset + 2];\r\n\t var M_offset_3 = M[offset + 3];\r\n\t var M_offset_4 = M[offset + 4];\r\n\t var M_offset_5 = M[offset + 5];\r\n\t var M_offset_6 = M[offset + 6];\r\n\t var M_offset_7 = M[offset + 7];\r\n\t var M_offset_8 = M[offset + 8];\r\n\t var M_offset_9 = M[offset + 9];\r\n\t var M_offset_10 = M[offset + 10];\r\n\t var M_offset_11 = M[offset + 11];\r\n\t var M_offset_12 = M[offset + 12];\r\n\t var M_offset_13 = M[offset + 13];\r\n\t var M_offset_14 = M[offset + 14];\r\n\t var M_offset_15 = M[offset + 15];\r\n\r\n\t // Working variables\r\n\t var a = H[0];\r\n\t var b = H[1];\r\n\t var c = H[2];\r\n\t var d = H[3];\r\n\r\n\t // Computation\r\n\t a = FF(a, b, c, d, M_offset_0, 7, T[0]);\r\n\t d = FF(d, a, b, c, M_offset_1, 12, T[1]);\r\n\t c = FF(c, d, a, b, M_offset_2, 17, T[2]);\r\n\t b = FF(b, c, d, a, M_offset_3, 22, T[3]);\r\n\t a = FF(a, b, c, d, M_offset_4, 7, T[4]);\r\n\t d = FF(d, a, b, c, M_offset_5, 12, T[5]);\r\n\t c = FF(c, d, a, b, M_offset_6, 17, T[6]);\r\n\t b = FF(b, c, d, a, M_offset_7, 22, T[7]);\r\n\t a = FF(a, b, c, d, M_offset_8, 7, T[8]);\r\n\t d = FF(d, a, b, c, M_offset_9, 12, T[9]);\r\n\t c = FF(c, d, a, b, M_offset_10, 17, T[10]);\r\n\t b = FF(b, c, d, a, M_offset_11, 22, T[11]);\r\n\t a = FF(a, b, c, d, M_offset_12, 7, T[12]);\r\n\t d = FF(d, a, b, c, M_offset_13, 12, T[13]);\r\n\t c = FF(c, d, a, b, M_offset_14, 17, T[14]);\r\n\t b = FF(b, c, d, a, M_offset_15, 22, T[15]);\r\n\r\n\t a = GG(a, b, c, d, M_offset_1, 5, T[16]);\r\n\t d = GG(d, a, b, c, M_offset_6, 9, T[17]);\r\n\t c = GG(c, d, a, b, M_offset_11, 14, T[18]);\r\n\t b = GG(b, c, d, a, M_offset_0, 20, T[19]);\r\n\t a = GG(a, b, c, d, M_offset_5, 5, T[20]);\r\n\t d = GG(d, a, b, c, M_offset_10, 9, T[21]);\r\n\t c = GG(c, d, a, b, M_offset_15, 14, T[22]);\r\n\t b = GG(b, c, d, a, M_offset_4, 20, T[23]);\r\n\t a = GG(a, b, c, d, M_offset_9, 5, T[24]);\r\n\t d = GG(d, a, b, c, M_offset_14, 9, T[25]);\r\n\t c = GG(c, d, a, b, M_offset_3, 14, T[26]);\r\n\t b = GG(b, c, d, a, M_offset_8, 20, T[27]);\r\n\t a = GG(a, b, c, d, M_offset_13, 5, T[28]);\r\n\t d = GG(d, a, b, c, M_offset_2, 9, T[29]);\r\n\t c = GG(c, d, a, b, M_offset_7, 14, T[30]);\r\n\t b = GG(b, c, d, a, M_offset_12, 20, T[31]);\r\n\r\n\t a = HH(a, b, c, d, M_offset_5, 4, T[32]);\r\n\t d = HH(d, a, b, c, M_offset_8, 11, T[33]);\r\n\t c = HH(c, d, a, b, M_offset_11, 16, T[34]);\r\n\t b = HH(b, c, d, a, M_offset_14, 23, T[35]);\r\n\t a = HH(a, b, c, d, M_offset_1, 4, T[36]);\r\n\t d = HH(d, a, b, c, M_offset_4, 11, T[37]);\r\n\t c = HH(c, d, a, b, M_offset_7, 16, T[38]);\r\n\t b = HH(b, c, d, a, M_offset_10, 23, T[39]);\r\n\t a = HH(a, b, c, d, M_offset_13, 4, T[40]);\r\n\t d = HH(d, a, b, c, M_offset_0, 11, T[41]);\r\n\t c = HH(c, d, a, b, M_offset_3, 16, T[42]);\r\n\t b = HH(b, c, d, a, M_offset_6, 23, T[43]);\r\n\t a = HH(a, b, c, d, M_offset_9, 4, T[44]);\r\n\t d = HH(d, a, b, c, M_offset_12, 11, T[45]);\r\n\t c = HH(c, d, a, b, M_offset_15, 16, T[46]);\r\n\t b = HH(b, c, d, a, M_offset_2, 23, T[47]);\r\n\r\n\t a = II(a, b, c, d, M_offset_0, 6, T[48]);\r\n\t d = II(d, a, b, c, M_offset_7, 10, T[49]);\r\n\t c = II(c, d, a, b, M_offset_14, 15, T[50]);\r\n\t b = II(b, c, d, a, M_offset_5, 21, T[51]);\r\n\t a = II(a, b, c, d, M_offset_12, 6, T[52]);\r\n\t d = II(d, a, b, c, M_offset_3, 10, T[53]);\r\n\t c = II(c, d, a, b, M_offset_10, 15, T[54]);\r\n\t b = II(b, c, d, a, M_offset_1, 21, T[55]);\r\n\t a = II(a, b, c, d, M_offset_8, 6, T[56]);\r\n\t d = II(d, a, b, c, M_offset_15, 10, T[57]);\r\n\t c = II(c, d, a, b, M_offset_6, 15, T[58]);\r\n\t b = II(b, c, d, a, M_offset_13, 21, T[59]);\r\n\t a = II(a, b, c, d, M_offset_4, 6, T[60]);\r\n\t d = II(d, a, b, c, M_offset_11, 10, T[61]);\r\n\t c = II(c, d, a, b, M_offset_2, 15, T[62]);\r\n\t b = II(b, c, d, a, M_offset_9, 21, T[63]);\r\n\r\n\t // Intermediate hash value\r\n\t H[0] = (H[0] + a) | 0;\r\n\t H[1] = (H[1] + b) | 0;\r\n\t H[2] = (H[2] + c) | 0;\r\n\t H[3] = (H[3] + d) | 0;\r\n\t },\r\n\r\n\t _doFinalize: function () {\r\n\t // Shortcuts\r\n\t var data = this._data;\r\n\t var dataWords = data.words;\r\n\r\n\t var nBitsTotal = this._nDataBytes * 8;\r\n\t var nBitsLeft = data.sigBytes * 8;\r\n\r\n\t // Add padding\r\n\t dataWords[nBitsLeft >>> 5] |= 0x80 << (24 - nBitsLeft % 32);\r\n\r\n\t var nBitsTotalH = Math.floor(nBitsTotal / 0x100000000);\r\n\t var nBitsTotalL = nBitsTotal;\r\n\t dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 15] = (\r\n\t (((nBitsTotalH << 8) | (nBitsTotalH >>> 24)) & 0x00ff00ff) |\r\n\t (((nBitsTotalH << 24) | (nBitsTotalH >>> 8)) & 0xff00ff00)\r\n\t );\r\n\t dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 14] = (\r\n\t (((nBitsTotalL << 8) | (nBitsTotalL >>> 24)) & 0x00ff00ff) |\r\n\t (((nBitsTotalL << 24) | (nBitsTotalL >>> 8)) & 0xff00ff00)\r\n\t );\r\n\r\n\t data.sigBytes = (dataWords.length + 1) * 4;\r\n\r\n\t // Hash final blocks\r\n\t this._process();\r\n\r\n\t // Shortcuts\r\n\t var hash = this._hash;\r\n\t var H = hash.words;\r\n\r\n\t // Swap endian\r\n\t for (var i = 0; i < 4; i++) {\r\n\t // Shortcut\r\n\t var H_i = H[i];\r\n\r\n\t H[i] = (((H_i << 8) | (H_i >>> 24)) & 0x00ff00ff) |\r\n\t (((H_i << 24) | (H_i >>> 8)) & 0xff00ff00);\r\n\t }\r\n\r\n\t // Return final computed hash\r\n\t return hash;\r\n\t },\r\n\r\n\t clone: function () {\r\n\t var clone = Hasher.clone.call(this);\r\n\t clone._hash = this._hash.clone();\r\n\r\n\t return clone;\r\n\t }\r\n\t });\r\n\r\n\t function FF(a, b, c, d, x, s, t) {\r\n\t var n = a + ((b & c) | (~b & d)) + x + t;\r\n\t return ((n << s) | (n >>> (32 - s))) + b;\r\n\t }\r\n\r\n\t function GG(a, b, c, d, x, s, t) {\r\n\t var n = a + ((b & d) | (c & ~d)) + x + t;\r\n\t return ((n << s) | (n >>> (32 - s))) + b;\r\n\t }\r\n\r\n\t function HH(a, b, c, d, x, s, t) {\r\n\t var n = a + (b ^ c ^ d) + x + t;\r\n\t return ((n << s) | (n >>> (32 - s))) + b;\r\n\t }\r\n\r\n\t function II(a, b, c, d, x, s, t) {\r\n\t var n = a + (c ^ (b | ~d)) + x + t;\r\n\t return ((n << s) | (n >>> (32 - s))) + b;\r\n\t }\r\n\r\n\t /**\r\n\t * Shortcut function to the hasher's object interface.\r\n\t *\r\n\t * @param {WordArray|string} message The message to hash.\r\n\t *\r\n\t * @return {WordArray} The hash.\r\n\t *\r\n\t * @static\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var hash = CryptoJS.MD5('message');\r\n\t * var hash = CryptoJS.MD5(wordArray);\r\n\t */\r\n\t C.MD5 = Hasher._createHelper(MD5);\r\n\r\n\t /**\r\n\t * Shortcut function to the HMAC's object interface.\r\n\t *\r\n\t * @param {WordArray|string} message The message to hash.\r\n\t * @param {WordArray|string} key The secret key.\r\n\t *\r\n\t * @return {WordArray} The HMAC.\r\n\t *\r\n\t * @static\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var hmac = CryptoJS.HmacMD5(message, key);\r\n\t */\r\n\t C.HmacMD5 = Hasher._createHmacHelper(MD5);\r\n\t}(Math));\r\n\r\n\r\n\treturn CryptoJS.MD5;\r\n\r\n}));", ";(function (root, factory) {\r\n\tif (typeof exports === \"object\") {\r\n\t\t// CommonJS\r\n\t\tmodule.exports = exports = factory(require(\"./core\"));\r\n\t}\r\n\telse if (typeof define === \"function\" && define.amd) {\r\n\t\t// AMD\r\n\t\tdefine([\"./core\"], factory);\r\n\t}\r\n\telse {\r\n\t\t// Global (browser)\r\n\t\tfactory(root.CryptoJS);\r\n\t}\r\n}(this, function (CryptoJS) {\r\n\r\n\t(function () {\r\n\t // Shortcuts\r\n\t var C = CryptoJS;\r\n\t var C_lib = C.lib;\r\n\t var WordArray = C_lib.WordArray;\r\n\t var Hasher = C_lib.Hasher;\r\n\t var C_algo = C.algo;\r\n\r\n\t // Reusable object\r\n\t var W = [];\r\n\r\n\t /**\r\n\t * SHA-1 hash algorithm.\r\n\t */\r\n\t var SHA1 = C_algo.SHA1 = Hasher.extend({\r\n\t _doReset: function () {\r\n\t this._hash = new WordArray.init([\r\n\t 0x67452301, 0xefcdab89,\r\n\t 0x98badcfe, 0x10325476,\r\n\t 0xc3d2e1f0\r\n\t ]);\r\n\t },\r\n\r\n\t _doProcessBlock: function (M, offset) {\r\n\t // Shortcut\r\n\t var H = this._hash.words;\r\n\r\n\t // Working variables\r\n\t var a = H[0];\r\n\t var b = H[1];\r\n\t var c = H[2];\r\n\t var d = H[3];\r\n\t var e = H[4];\r\n\r\n\t // Computation\r\n\t for (var i = 0; i < 80; i++) {\r\n\t if (i < 16) {\r\n\t W[i] = M[offset + i] | 0;\r\n\t } else {\r\n\t var n = W[i - 3] ^ W[i - 8] ^ W[i - 14] ^ W[i - 16];\r\n\t W[i] = (n << 1) | (n >>> 31);\r\n\t }\r\n\r\n\t var t = ((a << 5) | (a >>> 27)) + e + W[i];\r\n\t if (i < 20) {\r\n\t t += ((b & c) | (~b & d)) + 0x5a827999;\r\n\t } else if (i < 40) {\r\n\t t += (b ^ c ^ d) + 0x6ed9eba1;\r\n\t } else if (i < 60) {\r\n\t t += ((b & c) | (b & d) | (c & d)) - 0x70e44324;\r\n\t } else /* if (i < 80) */ {\r\n\t t += (b ^ c ^ d) - 0x359d3e2a;\r\n\t }\r\n\r\n\t e = d;\r\n\t d = c;\r\n\t c = (b << 30) | (b >>> 2);\r\n\t b = a;\r\n\t a = t;\r\n\t }\r\n\r\n\t // Intermediate hash value\r\n\t H[0] = (H[0] + a) | 0;\r\n\t H[1] = (H[1] + b) | 0;\r\n\t H[2] = (H[2] + c) | 0;\r\n\t H[3] = (H[3] + d) | 0;\r\n\t H[4] = (H[4] + e) | 0;\r\n\t },\r\n\r\n\t _doFinalize: function () {\r\n\t // Shortcuts\r\n\t var data = this._data;\r\n\t var dataWords = data.words;\r\n\r\n\t var nBitsTotal = this._nDataBytes * 8;\r\n\t var nBitsLeft = data.sigBytes * 8;\r\n\r\n\t // Add padding\r\n\t dataWords[nBitsLeft >>> 5] |= 0x80 << (24 - nBitsLeft % 32);\r\n\t dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 14] = Math.floor(nBitsTotal / 0x100000000);\r\n\t dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 15] = nBitsTotal;\r\n\t data.sigBytes = dataWords.length * 4;\r\n\r\n\t // Hash final blocks\r\n\t this._process();\r\n\r\n\t // Return final computed hash\r\n\t return this._hash;\r\n\t },\r\n\r\n\t clone: function () {\r\n\t var clone = Hasher.clone.call(this);\r\n\t clone._hash = this._hash.clone();\r\n\r\n\t return clone;\r\n\t }\r\n\t });\r\n\r\n\t /**\r\n\t * Shortcut function to the hasher's object interface.\r\n\t *\r\n\t * @param {WordArray|string} message The message to hash.\r\n\t *\r\n\t * @return {WordArray} The hash.\r\n\t *\r\n\t * @static\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var hash = CryptoJS.SHA1('message');\r\n\t * var hash = CryptoJS.SHA1(wordArray);\r\n\t */\r\n\t C.SHA1 = Hasher._createHelper(SHA1);\r\n\r\n\t /**\r\n\t * Shortcut function to the HMAC's object interface.\r\n\t *\r\n\t * @param {WordArray|string} message The message to hash.\r\n\t * @param {WordArray|string} key The secret key.\r\n\t *\r\n\t * @return {WordArray} The HMAC.\r\n\t *\r\n\t * @static\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var hmac = CryptoJS.HmacSHA1(message, key);\r\n\t */\r\n\t C.HmacSHA1 = Hasher._createHmacHelper(SHA1);\r\n\t}());\r\n\r\n\r\n\treturn CryptoJS.SHA1;\r\n\r\n}));", ";(function (root, factory) {\r\n\tif (typeof exports === \"object\") {\r\n\t\t// CommonJS\r\n\t\tmodule.exports = exports = factory(require(\"./core\"));\r\n\t}\r\n\telse if (typeof define === \"function\" && define.amd) {\r\n\t\t// AMD\r\n\t\tdefine([\"./core\"], factory);\r\n\t}\r\n\telse {\r\n\t\t// Global (browser)\r\n\t\tfactory(root.CryptoJS);\r\n\t}\r\n}(this, function (CryptoJS) {\r\n\r\n\t(function (Math) {\r\n\t // Shortcuts\r\n\t var C = CryptoJS;\r\n\t var C_lib = C.lib;\r\n\t var WordArray = C_lib.WordArray;\r\n\t var Hasher = C_lib.Hasher;\r\n\t var C_algo = C.algo;\r\n\r\n\t // Initialization and round constants tables\r\n\t var H = [];\r\n\t var K = [];\r\n\r\n\t // Compute constants\r\n\t (function () {\r\n\t function isPrime(n) {\r\n\t var sqrtN = Math.sqrt(n);\r\n\t for (var factor = 2; factor <= sqrtN; factor++) {\r\n\t if (!(n % factor)) {\r\n\t return false;\r\n\t }\r\n\t }\r\n\r\n\t return true;\r\n\t }\r\n\r\n\t function getFractionalBits(n) {\r\n\t return ((n - (n | 0)) * 0x100000000) | 0;\r\n\t }\r\n\r\n\t var n = 2;\r\n\t var nPrime = 0;\r\n\t while (nPrime < 64) {\r\n\t if (isPrime(n)) {\r\n\t if (nPrime < 8) {\r\n\t H[nPrime] = getFractionalBits(Math.pow(n, 1 / 2));\r\n\t }\r\n\t K[nPrime] = getFractionalBits(Math.pow(n, 1 / 3));\r\n\r\n\t nPrime++;\r\n\t }\r\n\r\n\t n++;\r\n\t }\r\n\t }());\r\n\r\n\t // Reusable object\r\n\t var W = [];\r\n\r\n\t /**\r\n\t * SHA-256 hash algorithm.\r\n\t */\r\n\t var SHA256 = C_algo.SHA256 = Hasher.extend({\r\n\t _doReset: function () {\r\n\t this._hash = new WordArray.init(H.slice(0));\r\n\t },\r\n\r\n\t _doProcessBlock: function (M, offset) {\r\n\t // Shortcut\r\n\t var H = this._hash.words;\r\n\r\n\t // Working variables\r\n\t var a = H[0];\r\n\t var b = H[1];\r\n\t var c = H[2];\r\n\t var d = H[3];\r\n\t var e = H[4];\r\n\t var f = H[5];\r\n\t var g = H[6];\r\n\t var h = H[7];\r\n\r\n\t // Computation\r\n\t for (var i = 0; i < 64; i++) {\r\n\t if (i < 16) {\r\n\t W[i] = M[offset + i] | 0;\r\n\t } else {\r\n\t var gamma0x = W[i - 15];\r\n\t var gamma0 = ((gamma0x << 25) | (gamma0x >>> 7)) ^\r\n\t ((gamma0x << 14) | (gamma0x >>> 18)) ^\r\n\t (gamma0x >>> 3);\r\n\r\n\t var gamma1x = W[i - 2];\r\n\t var gamma1 = ((gamma1x << 15) | (gamma1x >>> 17)) ^\r\n\t ((gamma1x << 13) | (gamma1x >>> 19)) ^\r\n\t (gamma1x >>> 10);\r\n\r\n\t W[i] = gamma0 + W[i - 7] + gamma1 + W[i - 16];\r\n\t }\r\n\r\n\t var ch = (e & f) ^ (~e & g);\r\n\t var maj = (a & b) ^ (a & c) ^ (b & c);\r\n\r\n\t var sigma0 = ((a << 30) | (a >>> 2)) ^ ((a << 19) | (a >>> 13)) ^ ((a << 10) | (a >>> 22));\r\n\t var sigma1 = ((e << 26) | (e >>> 6)) ^ ((e << 21) | (e >>> 11)) ^ ((e << 7) | (e >>> 25));\r\n\r\n\t var t1 = h + sigma1 + ch + K[i] + W[i];\r\n\t var t2 = sigma0 + maj;\r\n\r\n\t h = g;\r\n\t g = f;\r\n\t f = e;\r\n\t e = (d + t1) | 0;\r\n\t d = c;\r\n\t c = b;\r\n\t b = a;\r\n\t a = (t1 + t2) | 0;\r\n\t }\r\n\r\n\t // Intermediate hash value\r\n\t H[0] = (H[0] + a) | 0;\r\n\t H[1] = (H[1] + b) | 0;\r\n\t H[2] = (H[2] + c) | 0;\r\n\t H[3] = (H[3] + d) | 0;\r\n\t H[4] = (H[4] + e) | 0;\r\n\t H[5] = (H[5] + f) | 0;\r\n\t H[6] = (H[6] + g) | 0;\r\n\t H[7] = (H[7] + h) | 0;\r\n\t },\r\n\r\n\t _doFinalize: function () {\r\n\t // Shortcuts\r\n\t var data = this._data;\r\n\t var dataWords = data.words;\r\n\r\n\t var nBitsTotal = this._nDataBytes * 8;\r\n\t var nBitsLeft = data.sigBytes * 8;\r\n\r\n\t // Add padding\r\n\t dataWords[nBitsLeft >>> 5] |= 0x80 << (24 - nBitsLeft % 32);\r\n\t dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 14] = Math.floor(nBitsTotal / 0x100000000);\r\n\t dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 15] = nBitsTotal;\r\n\t data.sigBytes = dataWords.length * 4;\r\n\r\n\t // Hash final blocks\r\n\t this._process();\r\n\r\n\t // Return final computed hash\r\n\t return this._hash;\r\n\t },\r\n\r\n\t clone: function () {\r\n\t var clone = Hasher.clone.call(this);\r\n\t clone._hash = this._hash.clone();\r\n\r\n\t return clone;\r\n\t }\r\n\t });\r\n\r\n\t /**\r\n\t * Shortcut function to the hasher's object interface.\r\n\t *\r\n\t * @param {WordArray|string} message The message to hash.\r\n\t *\r\n\t * @return {WordArray} The hash.\r\n\t *\r\n\t * @static\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var hash = CryptoJS.SHA256('message');\r\n\t * var hash = CryptoJS.SHA256(wordArray);\r\n\t */\r\n\t C.SHA256 = Hasher._createHelper(SHA256);\r\n\r\n\t /**\r\n\t * Shortcut function to the HMAC's object interface.\r\n\t *\r\n\t * @param {WordArray|string} message The message to hash.\r\n\t * @param {WordArray|string} key The secret key.\r\n\t *\r\n\t * @return {WordArray} The HMAC.\r\n\t *\r\n\t * @static\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var hmac = CryptoJS.HmacSHA256(message, key);\r\n\t */\r\n\t C.HmacSHA256 = Hasher._createHmacHelper(SHA256);\r\n\t}(Math));\r\n\r\n\r\n\treturn CryptoJS.SHA256;\r\n\r\n}));", ";(function (root, factory, undef) {\r\n\tif (typeof exports === \"object\") {\r\n\t\t// CommonJS\r\n\t\tmodule.exports = exports = factory(require(\"./core\"), require(\"./sha256\"));\r\n\t}\r\n\telse if (typeof define === \"function\" && define.amd) {\r\n\t\t// AMD\r\n\t\tdefine([\"./core\", \"./sha256\"], factory);\r\n\t}\r\n\telse {\r\n\t\t// Global (browser)\r\n\t\tfactory(root.CryptoJS);\r\n\t}\r\n}(this, function (CryptoJS) {\r\n\r\n\t(function () {\r\n\t // Shortcuts\r\n\t var C = CryptoJS;\r\n\t var C_lib = C.lib;\r\n\t var WordArray = C_lib.WordArray;\r\n\t var C_algo = C.algo;\r\n\t var SHA256 = C_algo.SHA256;\r\n\r\n\t /**\r\n\t * SHA-224 hash algorithm.\r\n\t */\r\n\t var SHA224 = C_algo.SHA224 = SHA256.extend({\r\n\t _doReset: function () {\r\n\t this._hash = new WordArray.init([\r\n\t 0xc1059ed8, 0x367cd507, 0x3070dd17, 0xf70e5939,\r\n\t 0xffc00b31, 0x68581511, 0x64f98fa7, 0xbefa4fa4\r\n\t ]);\r\n\t },\r\n\r\n\t _doFinalize: function () {\r\n\t var hash = SHA256._doFinalize.call(this);\r\n\r\n\t hash.sigBytes -= 4;\r\n\r\n\t return hash;\r\n\t }\r\n\t });\r\n\r\n\t /**\r\n\t * Shortcut function to the hasher's object interface.\r\n\t *\r\n\t * @param {WordArray|string} message The message to hash.\r\n\t *\r\n\t * @return {WordArray} The hash.\r\n\t *\r\n\t * @static\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var hash = CryptoJS.SHA224('message');\r\n\t * var hash = CryptoJS.SHA224(wordArray);\r\n\t */\r\n\t C.SHA224 = SHA256._createHelper(SHA224);\r\n\r\n\t /**\r\n\t * Shortcut function to the HMAC's object interface.\r\n\t *\r\n\t * @param {WordArray|string} message The message to hash.\r\n\t * @param {WordArray|string} key The secret key.\r\n\t *\r\n\t * @return {WordArray} The HMAC.\r\n\t *\r\n\t * @static\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var hmac = CryptoJS.HmacSHA224(message, key);\r\n\t */\r\n\t C.HmacSHA224 = SHA256._createHmacHelper(SHA224);\r\n\t}());\r\n\r\n\r\n\treturn CryptoJS.SHA224;\r\n\r\n}));", ";(function (root, factory, undef) {\r\n\tif (typeof exports === \"object\") {\r\n\t\t// CommonJS\r\n\t\tmodule.exports = exports = factory(require(\"./core\"), require(\"./x64-core\"));\r\n\t}\r\n\telse if (typeof define === \"function\" && define.amd) {\r\n\t\t// AMD\r\n\t\tdefine([\"./core\", \"./x64-core\"], factory);\r\n\t}\r\n\telse {\r\n\t\t// Global (browser)\r\n\t\tfactory(root.CryptoJS);\r\n\t}\r\n}(this, function (CryptoJS) {\r\n\r\n\t(function () {\r\n\t // Shortcuts\r\n\t var C = CryptoJS;\r\n\t var C_lib = C.lib;\r\n\t var Hasher = C_lib.Hasher;\r\n\t var C_x64 = C.x64;\r\n\t var X64Word = C_x64.Word;\r\n\t var X64WordArray = C_x64.WordArray;\r\n\t var C_algo = C.algo;\r\n\r\n\t function X64Word_create() {\r\n\t return X64Word.create.apply(X64Word, arguments);\r\n\t }\r\n\r\n\t // Constants\r\n\t var K = [\r\n\t X64Word_create(0x428a2f98, 0xd728ae22), X64Word_create(0x71374491, 0x23ef65cd),\r\n\t X64Word_create(0xb5c0fbcf, 0xec4d3b2f), X64Word_create(0xe9b5dba5, 0x8189dbbc),\r\n\t X64Word_create(0x3956c25b, 0xf348b538), X64Word_create(0x59f111f1, 0xb605d019),\r\n\t X64Word_create(0x923f82a4, 0xaf194f9b), X64Word_create(0xab1c5ed5, 0xda6d8118),\r\n\t X64Word_create(0xd807aa98, 0xa3030242), X64Word_create(0x12835b01, 0x45706fbe),\r\n\t X64Word_create(0x243185be, 0x4ee4b28c), X64Word_create(0x550c7dc3, 0xd5ffb4e2),\r\n\t X64Word_create(0x72be5d74, 0xf27b896f), X64Word_create(0x80deb1fe, 0x3b1696b1),\r\n\t X64Word_create(0x9bdc06a7, 0x25c71235), X64Word_create(0xc19bf174, 0xcf692694),\r\n\t X64Word_create(0xe49b69c1, 0x9ef14ad2), X64Word_create(0xefbe4786, 0x384f25e3),\r\n\t X64Word_create(0x0fc19dc6, 0x8b8cd5b5), X64Word_create(0x240ca1cc, 0x77ac9c65),\r\n\t X64Word_create(0x2de92c6f, 0x592b0275), X64Word_create(0x4a7484aa, 0x6ea6e483),\r\n\t X64Word_create(0x5cb0a9dc, 0xbd41fbd4), X64Word_create(0x76f988da, 0x831153b5),\r\n\t X64Word_create(0x983e5152, 0xee66dfab), X64Word_create(0xa831c66d, 0x2db43210),\r\n\t X64Word_create(0xb00327c8, 0x98fb213f), X64Word_create(0xbf597fc7, 0xbeef0ee4),\r\n\t X64Word_create(0xc6e00bf3, 0x3da88fc2), X64Word_create(0xd5a79147, 0x930aa725),\r\n\t X64Word_create(0x06ca6351, 0xe003826f), X64Word_create(0x14292967, 0x0a0e6e70),\r\n\t X64Word_create(0x27b70a85, 0x46d22ffc), X64Word_create(0x2e1b2138, 0x5c26c926),\r\n\t X64Word_create(0x4d2c6dfc, 0x5ac42aed), X64Word_create(0x53380d13, 0x9d95b3df),\r\n\t X64Word_create(0x650a7354, 0x8baf63de), X64Word_create(0x766a0abb, 0x3c77b2a8),\r\n\t X64Word_create(0x81c2c92e, 0x47edaee6), X64Word_create(0x92722c85, 0x1482353b),\r\n\t X64Word_create(0xa2bfe8a1, 0x4cf10364), X64Word_create(0xa81a664b, 0xbc423001),\r\n\t X64Word_create(0xc24b8b70, 0xd0f89791), X64Word_create(0xc76c51a3, 0x0654be30),\r\n\t X64Word_create(0xd192e819, 0xd6ef5218), X64Word_create(0xd6990624, 0x5565a910),\r\n\t X64Word_create(0xf40e3585, 0x5771202a), X64Word_create(0x106aa070, 0x32bbd1b8),\r\n\t X64Word_create(0x19a4c116, 0xb8d2d0c8), X64Word_create(0x1e376c08, 0x5141ab53),\r\n\t X64Word_create(0x2748774c, 0xdf8eeb99), X64Word_create(0x34b0bcb5, 0xe19b48a8),\r\n\t X64Word_create(0x391c0cb3, 0xc5c95a63), X64Word_create(0x4ed8aa4a, 0xe3418acb),\r\n\t X64Word_create(0x5b9cca4f, 0x7763e373), X64Word_create(0x682e6ff3, 0xd6b2b8a3),\r\n\t X64Word_create(0x748f82ee, 0x5defb2fc), X64Word_create(0x78a5636f, 0x43172f60),\r\n\t X64Word_create(0x84c87814, 0xa1f0ab72), X64Word_create(0x8cc70208, 0x1a6439ec),\r\n\t X64Word_create(0x90befffa, 0x23631e28), X64Word_create(0xa4506ceb, 0xde82bde9),\r\n\t X64Word_create(0xbef9a3f7, 0xb2c67915), X64Word_create(0xc67178f2, 0xe372532b),\r\n\t X64Word_create(0xca273ece, 0xea26619c), X64Word_create(0xd186b8c7, 0x21c0c207),\r\n\t X64Word_create(0xeada7dd6, 0xcde0eb1e), X64Word_create(0xf57d4f7f, 0xee6ed178),\r\n\t X64Word_create(0x06f067aa, 0x72176fba), X64Word_create(0x0a637dc5, 0xa2c898a6),\r\n\t X64Word_create(0x113f9804, 0xbef90dae), X64Word_create(0x1b710b35, 0x131c471b),\r\n\t X64Word_create(0x28db77f5, 0x23047d84), X64Word_create(0x32caab7b, 0x40c72493),\r\n\t X64Word_create(0x3c9ebe0a, 0x15c9bebc), X64Word_create(0x431d67c4, 0x9c100d4c),\r\n\t X64Word_create(0x4cc5d4be, 0xcb3e42b6), X64Word_create(0x597f299c, 0xfc657e2a),\r\n\t X64Word_create(0x5fcb6fab, 0x3ad6faec), X64Word_create(0x6c44198c, 0x4a475817)\r\n\t ];\r\n\r\n\t // Reusable objects\r\n\t var W = [];\r\n\t (function () {\r\n\t for (var i = 0; i < 80; i++) {\r\n\t W[i] = X64Word_create();\r\n\t }\r\n\t }());\r\n\r\n\t /**\r\n\t * SHA-512 hash algorithm.\r\n\t */\r\n\t var SHA512 = C_algo.SHA512 = Hasher.extend({\r\n\t _doReset: function () {\r\n\t this._hash = new X64WordArray.init([\r\n\t new X64Word.init(0x6a09e667, 0xf3bcc908), new X64Word.init(0xbb67ae85, 0x84caa73b),\r\n\t new X64Word.init(0x3c6ef372, 0xfe94f82b), new X64Word.init(0xa54ff53a, 0x5f1d36f1),\r\n\t new X64Word.init(0x510e527f, 0xade682d1), new X64Word.init(0x9b05688c, 0x2b3e6c1f),\r\n\t new X64Word.init(0x1f83d9ab, 0xfb41bd6b), new X64Word.init(0x5be0cd19, 0x137e2179)\r\n\t ]);\r\n\t },\r\n\r\n\t _doProcessBlock: function (M, offset) {\r\n\t // Shortcuts\r\n\t var H = this._hash.words;\r\n\r\n\t var H0 = H[0];\r\n\t var H1 = H[1];\r\n\t var H2 = H[2];\r\n\t var H3 = H[3];\r\n\t var H4 = H[4];\r\n\t var H5 = H[5];\r\n\t var H6 = H[6];\r\n\t var H7 = H[7];\r\n\r\n\t var H0h = H0.high;\r\n\t var H0l = H0.low;\r\n\t var H1h = H1.high;\r\n\t var H1l = H1.low;\r\n\t var H2h = H2.high;\r\n\t var H2l = H2.low;\r\n\t var H3h = H3.high;\r\n\t var H3l = H3.low;\r\n\t var H4h = H4.high;\r\n\t var H4l = H4.low;\r\n\t var H5h = H5.high;\r\n\t var H5l = H5.low;\r\n\t var H6h = H6.high;\r\n\t var H6l = H6.low;\r\n\t var H7h = H7.high;\r\n\t var H7l = H7.low;\r\n\r\n\t // Working variables\r\n\t var ah = H0h;\r\n\t var al = H0l;\r\n\t var bh = H1h;\r\n\t var bl = H1l;\r\n\t var ch = H2h;\r\n\t var cl = H2l;\r\n\t var dh = H3h;\r\n\t var dl = H3l;\r\n\t var eh = H4h;\r\n\t var el = H4l;\r\n\t var fh = H5h;\r\n\t var fl = H5l;\r\n\t var gh = H6h;\r\n\t var gl = H6l;\r\n\t var hh = H7h;\r\n\t var hl = H7l;\r\n\r\n\t // Rounds\r\n\t for (var i = 0; i < 80; i++) {\r\n\t var Wil;\r\n\t var Wih;\r\n\r\n\t // Shortcut\r\n\t var Wi = W[i];\r\n\r\n\t // Extend message\r\n\t if (i < 16) {\r\n\t Wih = Wi.high = M[offset + i * 2] | 0;\r\n\t Wil = Wi.low = M[offset + i * 2 + 1] | 0;\r\n\t } else {\r\n\t // Gamma0\r\n\t var gamma0x = W[i - 15];\r\n\t var gamma0xh = gamma0x.high;\r\n\t var gamma0xl = gamma0x.low;\r\n\t var gamma0h = ((gamma0xh >>> 1) | (gamma0xl << 31)) ^ ((gamma0xh >>> 8) | (gamma0xl << 24)) ^ (gamma0xh >>> 7);\r\n\t var gamma0l = ((gamma0xl >>> 1) | (gamma0xh << 31)) ^ ((gamma0xl >>> 8) | (gamma0xh << 24)) ^ ((gamma0xl >>> 7) | (gamma0xh << 25));\r\n\r\n\t // Gamma1\r\n\t var gamma1x = W[i - 2];\r\n\t var gamma1xh = gamma1x.high;\r\n\t var gamma1xl = gamma1x.low;\r\n\t var gamma1h = ((gamma1xh >>> 19) | (gamma1xl << 13)) ^ ((gamma1xh << 3) | (gamma1xl >>> 29)) ^ (gamma1xh >>> 6);\r\n\t var gamma1l = ((gamma1xl >>> 19) | (gamma1xh << 13)) ^ ((gamma1xl << 3) | (gamma1xh >>> 29)) ^ ((gamma1xl >>> 6) | (gamma1xh << 26));\r\n\r\n\t // W[i] = gamma0 + W[i - 7] + gamma1 + W[i - 16]\r\n\t var Wi7 = W[i - 7];\r\n\t var Wi7h = Wi7.high;\r\n\t var Wi7l = Wi7.low;\r\n\r\n\t var Wi16 = W[i - 16];\r\n\t var Wi16h = Wi16.high;\r\n\t var Wi16l = Wi16.low;\r\n\r\n\t Wil = gamma0l + Wi7l;\r\n\t Wih = gamma0h + Wi7h + ((Wil >>> 0) < (gamma0l >>> 0) ? 1 : 0);\r\n\t Wil = Wil + gamma1l;\r\n\t Wih = Wih + gamma1h + ((Wil >>> 0) < (gamma1l >>> 0) ? 1 : 0);\r\n\t Wil = Wil + Wi16l;\r\n\t Wih = Wih + Wi16h + ((Wil >>> 0) < (Wi16l >>> 0) ? 1 : 0);\r\n\r\n\t Wi.high = Wih;\r\n\t Wi.low = Wil;\r\n\t }\r\n\r\n\t var chh = (eh & fh) ^ (~eh & gh);\r\n\t var chl = (el & fl) ^ (~el & gl);\r\n\t var majh = (ah & bh) ^ (ah & ch) ^ (bh & ch);\r\n\t var majl = (al & bl) ^ (al & cl) ^ (bl & cl);\r\n\r\n\t var sigma0h = ((ah >>> 28) | (al << 4)) ^ ((ah << 30) | (al >>> 2)) ^ ((ah << 25) | (al >>> 7));\r\n\t var sigma0l = ((al >>> 28) | (ah << 4)) ^ ((al << 30) | (ah >>> 2)) ^ ((al << 25) | (ah >>> 7));\r\n\t var sigma1h = ((eh >>> 14) | (el << 18)) ^ ((eh >>> 18) | (el << 14)) ^ ((eh << 23) | (el >>> 9));\r\n\t var sigma1l = ((el >>> 14) | (eh << 18)) ^ ((el >>> 18) | (eh << 14)) ^ ((el << 23) | (eh >>> 9));\r\n\r\n\t // t1 = h + sigma1 + ch + K[i] + W[i]\r\n\t var Ki = K[i];\r\n\t var Kih = Ki.high;\r\n\t var Kil = Ki.low;\r\n\r\n\t var t1l = hl + sigma1l;\r\n\t var t1h = hh + sigma1h + ((t1l >>> 0) < (hl >>> 0) ? 1 : 0);\r\n\t var t1l = t1l + chl;\r\n\t var t1h = t1h + chh + ((t1l >>> 0) < (chl >>> 0) ? 1 : 0);\r\n\t var t1l = t1l + Kil;\r\n\t var t1h = t1h + Kih + ((t1l >>> 0) < (Kil >>> 0) ? 1 : 0);\r\n\t var t1l = t1l + Wil;\r\n\t var t1h = t1h + Wih + ((t1l >>> 0) < (Wil >>> 0) ? 1 : 0);\r\n\r\n\t // t2 = sigma0 + maj\r\n\t var t2l = sigma0l + majl;\r\n\t var t2h = sigma0h + majh + ((t2l >>> 0) < (sigma0l >>> 0) ? 1 : 0);\r\n\r\n\t // Update working variables\r\n\t hh = gh;\r\n\t hl = gl;\r\n\t gh = fh;\r\n\t gl = fl;\r\n\t fh = eh;\r\n\t fl = el;\r\n\t el = (dl + t1l) | 0;\r\n\t eh = (dh + t1h + ((el >>> 0) < (dl >>> 0) ? 1 : 0)) | 0;\r\n\t dh = ch;\r\n\t dl = cl;\r\n\t ch = bh;\r\n\t cl = bl;\r\n\t bh = ah;\r\n\t bl = al;\r\n\t al = (t1l + t2l) | 0;\r\n\t ah = (t1h + t2h + ((al >>> 0) < (t1l >>> 0) ? 1 : 0)) | 0;\r\n\t }\r\n\r\n\t // Intermediate hash value\r\n\t H0l = H0.low = (H0l + al);\r\n\t H0.high = (H0h + ah + ((H0l >>> 0) < (al >>> 0) ? 1 : 0));\r\n\t H1l = H1.low = (H1l + bl);\r\n\t H1.high = (H1h + bh + ((H1l >>> 0) < (bl >>> 0) ? 1 : 0));\r\n\t H2l = H2.low = (H2l + cl);\r\n\t H2.high = (H2h + ch + ((H2l >>> 0) < (cl >>> 0) ? 1 : 0));\r\n\t H3l = H3.low = (H3l + dl);\r\n\t H3.high = (H3h + dh + ((H3l >>> 0) < (dl >>> 0) ? 1 : 0));\r\n\t H4l = H4.low = (H4l + el);\r\n\t H4.high = (H4h + eh + ((H4l >>> 0) < (el >>> 0) ? 1 : 0));\r\n\t H5l = H5.low = (H5l + fl);\r\n\t H5.high = (H5h + fh + ((H5l >>> 0) < (fl >>> 0) ? 1 : 0));\r\n\t H6l = H6.low = (H6l + gl);\r\n\t H6.high = (H6h + gh + ((H6l >>> 0) < (gl >>> 0) ? 1 : 0));\r\n\t H7l = H7.low = (H7l + hl);\r\n\t H7.high = (H7h + hh + ((H7l >>> 0) < (hl >>> 0) ? 1 : 0));\r\n\t },\r\n\r\n\t _doFinalize: function () {\r\n\t // Shortcuts\r\n\t var data = this._data;\r\n\t var dataWords = data.words;\r\n\r\n\t var nBitsTotal = this._nDataBytes * 8;\r\n\t var nBitsLeft = data.sigBytes * 8;\r\n\r\n\t // Add padding\r\n\t dataWords[nBitsLeft >>> 5] |= 0x80 << (24 - nBitsLeft % 32);\r\n\t dataWords[(((nBitsLeft + 128) >>> 10) << 5) + 30] = Math.floor(nBitsTotal / 0x100000000);\r\n\t dataWords[(((nBitsLeft + 128) >>> 10) << 5) + 31] = nBitsTotal;\r\n\t data.sigBytes = dataWords.length * 4;\r\n\r\n\t // Hash final blocks\r\n\t this._process();\r\n\r\n\t // Convert hash to 32-bit word array before returning\r\n\t var hash = this._hash.toX32();\r\n\r\n\t // Return final computed hash\r\n\t return hash;\r\n\t },\r\n\r\n\t clone: function () {\r\n\t var clone = Hasher.clone.call(this);\r\n\t clone._hash = this._hash.clone();\r\n\r\n\t return clone;\r\n\t },\r\n\r\n\t blockSize: 1024/32\r\n\t });\r\n\r\n\t /**\r\n\t * Shortcut function to the hasher's object interface.\r\n\t *\r\n\t * @param {WordArray|string} message The message to hash.\r\n\t *\r\n\t * @return {WordArray} The hash.\r\n\t *\r\n\t * @static\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var hash = CryptoJS.SHA512('message');\r\n\t * var hash = CryptoJS.SHA512(wordArray);\r\n\t */\r\n\t C.SHA512 = Hasher._createHelper(SHA512);\r\n\r\n\t /**\r\n\t * Shortcut function to the HMAC's object interface.\r\n\t *\r\n\t * @param {WordArray|string} message The message to hash.\r\n\t * @param {WordArray|string} key The secret key.\r\n\t *\r\n\t * @return {WordArray} The HMAC.\r\n\t *\r\n\t * @static\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var hmac = CryptoJS.HmacSHA512(message, key);\r\n\t */\r\n\t C.HmacSHA512 = Hasher._createHmacHelper(SHA512);\r\n\t}());\r\n\r\n\r\n\treturn CryptoJS.SHA512;\r\n\r\n}));", ";(function (root, factory, undef) {\r\n\tif (typeof exports === \"object\") {\r\n\t\t// CommonJS\r\n\t\tmodule.exports = exports = factory(require(\"./core\"), require(\"./x64-core\"), require(\"./sha512\"));\r\n\t}\r\n\telse if (typeof define === \"function\" && define.amd) {\r\n\t\t// AMD\r\n\t\tdefine([\"./core\", \"./x64-core\", \"./sha512\"], factory);\r\n\t}\r\n\telse {\r\n\t\t// Global (browser)\r\n\t\tfactory(root.CryptoJS);\r\n\t}\r\n}(this, function (CryptoJS) {\r\n\r\n\t(function () {\r\n\t // Shortcuts\r\n\t var C = CryptoJS;\r\n\t var C_x64 = C.x64;\r\n\t var X64Word = C_x64.Word;\r\n\t var X64WordArray = C_x64.WordArray;\r\n\t var C_algo = C.algo;\r\n\t var SHA512 = C_algo.SHA512;\r\n\r\n\t /**\r\n\t * SHA-384 hash algorithm.\r\n\t */\r\n\t var SHA384 = C_algo.SHA384 = SHA512.extend({\r\n\t _doReset: function () {\r\n\t this._hash = new X64WordArray.init([\r\n\t new X64Word.init(0xcbbb9d5d, 0xc1059ed8), new X64Word.init(0x629a292a, 0x367cd507),\r\n\t new X64Word.init(0x9159015a, 0x3070dd17), new X64Word.init(0x152fecd8, 0xf70e5939),\r\n\t new X64Word.init(0x67332667, 0xffc00b31), new X64Word.init(0x8eb44a87, 0x68581511),\r\n\t new X64Word.init(0xdb0c2e0d, 0x64f98fa7), new X64Word.init(0x47b5481d, 0xbefa4fa4)\r\n\t ]);\r\n\t },\r\n\r\n\t _doFinalize: function () {\r\n\t var hash = SHA512._doFinalize.call(this);\r\n\r\n\t hash.sigBytes -= 16;\r\n\r\n\t return hash;\r\n\t }\r\n\t });\r\n\r\n\t /**\r\n\t * Shortcut function to the hasher's object interface.\r\n\t *\r\n\t * @param {WordArray|string} message The message to hash.\r\n\t *\r\n\t * @return {WordArray} The hash.\r\n\t *\r\n\t * @static\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var hash = CryptoJS.SHA384('message');\r\n\t * var hash = CryptoJS.SHA384(wordArray);\r\n\t */\r\n\t C.SHA384 = SHA512._createHelper(SHA384);\r\n\r\n\t /**\r\n\t * Shortcut function to the HMAC's object interface.\r\n\t *\r\n\t * @param {WordArray|string} message The message to hash.\r\n\t * @param {WordArray|string} key The secret key.\r\n\t *\r\n\t * @return {WordArray} The HMAC.\r\n\t *\r\n\t * @static\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var hmac = CryptoJS.HmacSHA384(message, key);\r\n\t */\r\n\t C.HmacSHA384 = SHA512._createHmacHelper(SHA384);\r\n\t}());\r\n\r\n\r\n\treturn CryptoJS.SHA384;\r\n\r\n}));", ";(function (root, factory, undef) {\r\n\tif (typeof exports === \"object\") {\r\n\t\t// CommonJS\r\n\t\tmodule.exports = exports = factory(require(\"./core\"), require(\"./x64-core\"));\r\n\t}\r\n\telse if (typeof define === \"function\" && define.amd) {\r\n\t\t// AMD\r\n\t\tdefine([\"./core\", \"./x64-core\"], factory);\r\n\t}\r\n\telse {\r\n\t\t// Global (browser)\r\n\t\tfactory(root.CryptoJS);\r\n\t}\r\n}(this, function (CryptoJS) {\r\n\r\n\t(function (Math) {\r\n\t // Shortcuts\r\n\t var C = CryptoJS;\r\n\t var C_lib = C.lib;\r\n\t var WordArray = C_lib.WordArray;\r\n\t var Hasher = C_lib.Hasher;\r\n\t var C_x64 = C.x64;\r\n\t var X64Word = C_x64.Word;\r\n\t var C_algo = C.algo;\r\n\r\n\t // Constants tables\r\n\t var RHO_OFFSETS = [];\r\n\t var PI_INDEXES = [];\r\n\t var ROUND_CONSTANTS = [];\r\n\r\n\t // Compute Constants\r\n\t (function () {\r\n\t // Compute rho offset constants\r\n\t var x = 1, y = 0;\r\n\t for (var t = 0; t < 24; t++) {\r\n\t RHO_OFFSETS[x + 5 * y] = ((t + 1) * (t + 2) / 2) % 64;\r\n\r\n\t var newX = y % 5;\r\n\t var newY = (2 * x + 3 * y) % 5;\r\n\t x = newX;\r\n\t y = newY;\r\n\t }\r\n\r\n\t // Compute pi index constants\r\n\t for (var x = 0; x < 5; x++) {\r\n\t for (var y = 0; y < 5; y++) {\r\n\t PI_INDEXES[x + 5 * y] = y + ((2 * x + 3 * y) % 5) * 5;\r\n\t }\r\n\t }\r\n\r\n\t // Compute round constants\r\n\t var LFSR = 0x01;\r\n\t for (var i = 0; i < 24; i++) {\r\n\t var roundConstantMsw = 0;\r\n\t var roundConstantLsw = 0;\r\n\r\n\t for (var j = 0; j < 7; j++) {\r\n\t if (LFSR & 0x01) {\r\n\t var bitPosition = (1 << j) - 1;\r\n\t if (bitPosition < 32) {\r\n\t roundConstantLsw ^= 1 << bitPosition;\r\n\t } else /* if (bitPosition >= 32) */ {\r\n\t roundConstantMsw ^= 1 << (bitPosition - 32);\r\n\t }\r\n\t }\r\n\r\n\t // Compute next LFSR\r\n\t if (LFSR & 0x80) {\r\n\t // Primitive polynomial over GF(2): x^8 + x^6 + x^5 + x^4 + 1\r\n\t LFSR = (LFSR << 1) ^ 0x71;\r\n\t } else {\r\n\t LFSR <<= 1;\r\n\t }\r\n\t }\r\n\r\n\t ROUND_CONSTANTS[i] = X64Word.create(roundConstantMsw, roundConstantLsw);\r\n\t }\r\n\t }());\r\n\r\n\t // Reusable objects for temporary values\r\n\t var T = [];\r\n\t (function () {\r\n\t for (var i = 0; i < 25; i++) {\r\n\t T[i] = X64Word.create();\r\n\t }\r\n\t }());\r\n\r\n\t /**\r\n\t * SHA-3 hash algorithm.\r\n\t */\r\n\t var SHA3 = C_algo.SHA3 = Hasher.extend({\r\n\t /**\r\n\t * Configuration options.\r\n\t *\r\n\t * @property {number} outputLength\r\n\t * The desired number of bits in the output hash.\r\n\t * Only values permitted are: 224, 256, 384, 512.\r\n\t * Default: 512\r\n\t */\r\n\t cfg: Hasher.cfg.extend({\r\n\t outputLength: 512\r\n\t }),\r\n\r\n\t _doReset: function () {\r\n\t var state = this._state = []\r\n\t for (var i = 0; i < 25; i++) {\r\n\t state[i] = new X64Word.init();\r\n\t }\r\n\r\n\t this.blockSize = (1600 - 2 * this.cfg.outputLength) / 32;\r\n\t },\r\n\r\n\t _doProcessBlock: function (M, offset) {\r\n\t // Shortcuts\r\n\t var state = this._state;\r\n\t var nBlockSizeLanes = this.blockSize / 2;\r\n\r\n\t // Absorb\r\n\t for (var i = 0; i < nBlockSizeLanes; i++) {\r\n\t // Shortcuts\r\n\t var M2i = M[offset + 2 * i];\r\n\t var M2i1 = M[offset + 2 * i + 1];\r\n\r\n\t // Swap endian\r\n\t M2i = (\r\n\t (((M2i << 8) | (M2i >>> 24)) & 0x00ff00ff) |\r\n\t (((M2i << 24) | (M2i >>> 8)) & 0xff00ff00)\r\n\t );\r\n\t M2i1 = (\r\n\t (((M2i1 << 8) | (M2i1 >>> 24)) & 0x00ff00ff) |\r\n\t (((M2i1 << 24) | (M2i1 >>> 8)) & 0xff00ff00)\r\n\t );\r\n\r\n\t // Absorb message into state\r\n\t var lane = state[i];\r\n\t lane.high ^= M2i1;\r\n\t lane.low ^= M2i;\r\n\t }\r\n\r\n\t // Rounds\r\n\t for (var round = 0; round < 24; round++) {\r\n\t // Theta\r\n\t for (var x = 0; x < 5; x++) {\r\n\t // Mix column lanes\r\n\t var tMsw = 0, tLsw = 0;\r\n\t for (var y = 0; y < 5; y++) {\r\n\t var lane = state[x + 5 * y];\r\n\t tMsw ^= lane.high;\r\n\t tLsw ^= lane.low;\r\n\t }\r\n\r\n\t // Temporary values\r\n\t var Tx = T[x];\r\n\t Tx.high = tMsw;\r\n\t Tx.low = tLsw;\r\n\t }\r\n\t for (var x = 0; x < 5; x++) {\r\n\t // Shortcuts\r\n\t var Tx4 = T[(x + 4) % 5];\r\n\t var Tx1 = T[(x + 1) % 5];\r\n\t var Tx1Msw = Tx1.high;\r\n\t var Tx1Lsw = Tx1.low;\r\n\r\n\t // Mix surrounding columns\r\n\t var tMsw = Tx4.high ^ ((Tx1Msw << 1) | (Tx1Lsw >>> 31));\r\n\t var tLsw = Tx4.low ^ ((Tx1Lsw << 1) | (Tx1Msw >>> 31));\r\n\t for (var y = 0; y < 5; y++) {\r\n\t var lane = state[x + 5 * y];\r\n\t lane.high ^= tMsw;\r\n\t lane.low ^= tLsw;\r\n\t }\r\n\t }\r\n\r\n\t // Rho Pi\r\n\t for (var laneIndex = 1; laneIndex < 25; laneIndex++) {\r\n\t var tMsw;\r\n\t var tLsw;\r\n\r\n\t // Shortcuts\r\n\t var lane = state[laneIndex];\r\n\t var laneMsw = lane.high;\r\n\t var laneLsw = lane.low;\r\n\t var rhoOffset = RHO_OFFSETS[laneIndex];\r\n\r\n\t // Rotate lanes\r\n\t if (rhoOffset < 32) {\r\n\t tMsw = (laneMsw << rhoOffset) | (laneLsw >>> (32 - rhoOffset));\r\n\t tLsw = (laneLsw << rhoOffset) | (laneMsw >>> (32 - rhoOffset));\r\n\t } else /* if (rhoOffset >= 32) */ {\r\n\t tMsw = (laneLsw << (rhoOffset - 32)) | (laneMsw >>> (64 - rhoOffset));\r\n\t tLsw = (laneMsw << (rhoOffset - 32)) | (laneLsw >>> (64 - rhoOffset));\r\n\t }\r\n\r\n\t // Transpose lanes\r\n\t var TPiLane = T[PI_INDEXES[laneIndex]];\r\n\t TPiLane.high = tMsw;\r\n\t TPiLane.low = tLsw;\r\n\t }\r\n\r\n\t // Rho pi at x = y = 0\r\n\t var T0 = T[0];\r\n\t var state0 = state[0];\r\n\t T0.high = state0.high;\r\n\t T0.low = state0.low;\r\n\r\n\t // Chi\r\n\t for (var x = 0; x < 5; x++) {\r\n\t for (var y = 0; y < 5; y++) {\r\n\t // Shortcuts\r\n\t var laneIndex = x + 5 * y;\r\n\t var lane = state[laneIndex];\r\n\t var TLane = T[laneIndex];\r\n\t var Tx1Lane = T[((x + 1) % 5) + 5 * y];\r\n\t var Tx2Lane = T[((x + 2) % 5) + 5 * y];\r\n\r\n\t // Mix rows\r\n\t lane.high = TLane.high ^ (~Tx1Lane.high & Tx2Lane.high);\r\n\t lane.low = TLane.low ^ (~Tx1Lane.low & Tx2Lane.low);\r\n\t }\r\n\t }\r\n\r\n\t // Iota\r\n\t var lane = state[0];\r\n\t var roundConstant = ROUND_CONSTANTS[round];\r\n\t lane.high ^= roundConstant.high;\r\n\t lane.low ^= roundConstant.low;\r\n\t }\r\n\t },\r\n\r\n\t _doFinalize: function () {\r\n\t // Shortcuts\r\n\t var data = this._data;\r\n\t var dataWords = data.words;\r\n\t var nBitsTotal = this._nDataBytes * 8;\r\n\t var nBitsLeft = data.sigBytes * 8;\r\n\t var blockSizeBits = this.blockSize * 32;\r\n\r\n\t // Add padding\r\n\t dataWords[nBitsLeft >>> 5] |= 0x1 << (24 - nBitsLeft % 32);\r\n\t dataWords[((Math.ceil((nBitsLeft + 1) / blockSizeBits) * blockSizeBits) >>> 5) - 1] |= 0x80;\r\n\t data.sigBytes = dataWords.length * 4;\r\n\r\n\t // Hash final blocks\r\n\t this._process();\r\n\r\n\t // Shortcuts\r\n\t var state = this._state;\r\n\t var outputLengthBytes = this.cfg.outputLength / 8;\r\n\t var outputLengthLanes = outputLengthBytes / 8;\r\n\r\n\t // Squeeze\r\n\t var hashWords = [];\r\n\t for (var i = 0; i < outputLengthLanes; i++) {\r\n\t // Shortcuts\r\n\t var lane = state[i];\r\n\t var laneMsw = lane.high;\r\n\t var laneLsw = lane.low;\r\n\r\n\t // Swap endian\r\n\t laneMsw = (\r\n\t (((laneMsw << 8) | (laneMsw >>> 24)) & 0x00ff00ff) |\r\n\t (((laneMsw << 24) | (laneMsw >>> 8)) & 0xff00ff00)\r\n\t );\r\n\t laneLsw = (\r\n\t (((laneLsw << 8) | (laneLsw >>> 24)) & 0x00ff00ff) |\r\n\t (((laneLsw << 24) | (laneLsw >>> 8)) & 0xff00ff00)\r\n\t );\r\n\r\n\t // Squeeze state to retrieve hash\r\n\t hashWords.push(laneLsw);\r\n\t hashWords.push(laneMsw);\r\n\t }\r\n\r\n\t // Return final computed hash\r\n\t return new WordArray.init(hashWords, outputLengthBytes);\r\n\t },\r\n\r\n\t clone: function () {\r\n\t var clone = Hasher.clone.call(this);\r\n\r\n\t var state = clone._state = this._state.slice(0);\r\n\t for (var i = 0; i < 25; i++) {\r\n\t state[i] = state[i].clone();\r\n\t }\r\n\r\n\t return clone;\r\n\t }\r\n\t });\r\n\r\n\t /**\r\n\t * Shortcut function to the hasher's object interface.\r\n\t *\r\n\t * @param {WordArray|string} message The message to hash.\r\n\t *\r\n\t * @return {WordArray} The hash.\r\n\t *\r\n\t * @static\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var hash = CryptoJS.SHA3('message');\r\n\t * var hash = CryptoJS.SHA3(wordArray);\r\n\t */\r\n\t C.SHA3 = Hasher._createHelper(SHA3);\r\n\r\n\t /**\r\n\t * Shortcut function to the HMAC's object interface.\r\n\t *\r\n\t * @param {WordArray|string} message The message to hash.\r\n\t * @param {WordArray|string} key The secret key.\r\n\t *\r\n\t * @return {WordArray} The HMAC.\r\n\t *\r\n\t * @static\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var hmac = CryptoJS.HmacSHA3(message, key);\r\n\t */\r\n\t C.HmacSHA3 = Hasher._createHmacHelper(SHA3);\r\n\t}(Math));\r\n\r\n\r\n\treturn CryptoJS.SHA3;\r\n\r\n}));", ";(function (root, factory) {\r\n\tif (typeof exports === \"object\") {\r\n\t\t// CommonJS\r\n\t\tmodule.exports = exports = factory(require(\"./core\"));\r\n\t}\r\n\telse if (typeof define === \"function\" && define.amd) {\r\n\t\t// AMD\r\n\t\tdefine([\"./core\"], factory);\r\n\t}\r\n\telse {\r\n\t\t// Global (browser)\r\n\t\tfactory(root.CryptoJS);\r\n\t}\r\n}(this, function (CryptoJS) {\r\n\r\n\t/** @preserve\r\n\t(c) 2012 by Cédric Mesnil. All rights reserved.\r\n\r\n\tRedistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:\r\n\r\n\t - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.\r\n\t - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.\r\n\r\n\tTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r\n\t*/\r\n\r\n\t(function (Math) {\r\n\t // Shortcuts\r\n\t var C = CryptoJS;\r\n\t var C_lib = C.lib;\r\n\t var WordArray = C_lib.WordArray;\r\n\t var Hasher = C_lib.Hasher;\r\n\t var C_algo = C.algo;\r\n\r\n\t // Constants table\r\n\t var _zl = WordArray.create([\r\n\t 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,\r\n\t 7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8,\r\n\t 3, 10, 14, 4, 9, 15, 8, 1, 2, 7, 0, 6, 13, 11, 5, 12,\r\n\t 1, 9, 11, 10, 0, 8, 12, 4, 13, 3, 7, 15, 14, 5, 6, 2,\r\n\t 4, 0, 5, 9, 7, 12, 2, 10, 14, 1, 3, 8, 11, 6, 15, 13]);\r\n\t var _zr = WordArray.create([\r\n\t 5, 14, 7, 0, 9, 2, 11, 4, 13, 6, 15, 8, 1, 10, 3, 12,\r\n\t 6, 11, 3, 7, 0, 13, 5, 10, 14, 15, 8, 12, 4, 9, 1, 2,\r\n\t 15, 5, 1, 3, 7, 14, 6, 9, 11, 8, 12, 2, 10, 0, 4, 13,\r\n\t 8, 6, 4, 1, 3, 11, 15, 0, 5, 12, 2, 13, 9, 7, 10, 14,\r\n\t 12, 15, 10, 4, 1, 5, 8, 7, 6, 2, 13, 14, 0, 3, 9, 11]);\r\n\t var _sl = WordArray.create([\r\n\t 11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8,\r\n\t 7, 6, 8, 13, 11, 9, 7, 15, 7, 12, 15, 9, 11, 7, 13, 12,\r\n\t 11, 13, 6, 7, 14, 9, 13, 15, 14, 8, 13, 6, 5, 12, 7, 5,\r\n\t 11, 12, 14, 15, 14, 15, 9, 8, 9, 14, 5, 6, 8, 6, 5, 12,\r\n\t 9, 15, 5, 11, 6, 8, 13, 12, 5, 12, 13, 14, 11, 8, 5, 6 ]);\r\n\t var _sr = WordArray.create([\r\n\t 8, 9, 9, 11, 13, 15, 15, 5, 7, 7, 8, 11, 14, 14, 12, 6,\r\n\t 9, 13, 15, 7, 12, 8, 9, 11, 7, 7, 12, 7, 6, 15, 13, 11,\r\n\t 9, 7, 15, 11, 8, 6, 6, 14, 12, 13, 5, 14, 13, 13, 7, 5,\r\n\t 15, 5, 8, 11, 14, 14, 6, 14, 6, 9, 12, 9, 12, 5, 15, 8,\r\n\t 8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, 15, 13, 11, 11 ]);\r\n\r\n\t var _hl = WordArray.create([ 0x00000000, 0x5A827999, 0x6ED9EBA1, 0x8F1BBCDC, 0xA953FD4E]);\r\n\t var _hr = WordArray.create([ 0x50A28BE6, 0x5C4DD124, 0x6D703EF3, 0x7A6D76E9, 0x00000000]);\r\n\r\n\t /**\r\n\t * RIPEMD160 hash algorithm.\r\n\t */\r\n\t var RIPEMD160 = C_algo.RIPEMD160 = Hasher.extend({\r\n\t _doReset: function () {\r\n\t this._hash = WordArray.create([0x67452301, 0xEFCDAB89, 0x98BADCFE, 0x10325476, 0xC3D2E1F0]);\r\n\t },\r\n\r\n\t _doProcessBlock: function (M, offset) {\r\n\r\n\t // Swap endian\r\n\t for (var i = 0; i < 16; i++) {\r\n\t // Shortcuts\r\n\t var offset_i = offset + i;\r\n\t var M_offset_i = M[offset_i];\r\n\r\n\t // Swap\r\n\t M[offset_i] = (\r\n\t (((M_offset_i << 8) | (M_offset_i >>> 24)) & 0x00ff00ff) |\r\n\t (((M_offset_i << 24) | (M_offset_i >>> 8)) & 0xff00ff00)\r\n\t );\r\n\t }\r\n\t // Shortcut\r\n\t var H = this._hash.words;\r\n\t var hl = _hl.words;\r\n\t var hr = _hr.words;\r\n\t var zl = _zl.words;\r\n\t var zr = _zr.words;\r\n\t var sl = _sl.words;\r\n\t var sr = _sr.words;\r\n\r\n\t // Working variables\r\n\t var al, bl, cl, dl, el;\r\n\t var ar, br, cr, dr, er;\r\n\r\n\t ar = al = H[0];\r\n\t br = bl = H[1];\r\n\t cr = cl = H[2];\r\n\t dr = dl = H[3];\r\n\t er = el = H[4];\r\n\t // Computation\r\n\t var t;\r\n\t for (var i = 0; i < 80; i += 1) {\r\n\t t = (al + M[offset+zl[i]])|0;\r\n\t if (i<16){\r\n\t\t t += f1(bl,cl,dl) + hl[0];\r\n\t } else if (i<32) {\r\n\t\t t += f2(bl,cl,dl) + hl[1];\r\n\t } else if (i<48) {\r\n\t\t t += f3(bl,cl,dl) + hl[2];\r\n\t } else if (i<64) {\r\n\t\t t += f4(bl,cl,dl) + hl[3];\r\n\t } else {// if (i<80) {\r\n\t\t t += f5(bl,cl,dl) + hl[4];\r\n\t }\r\n\t t = t|0;\r\n\t t = rotl(t,sl[i]);\r\n\t t = (t+el)|0;\r\n\t al = el;\r\n\t el = dl;\r\n\t dl = rotl(cl, 10);\r\n\t cl = bl;\r\n\t bl = t;\r\n\r\n\t t = (ar + M[offset+zr[i]])|0;\r\n\t if (i<16){\r\n\t\t t += f5(br,cr,dr) + hr[0];\r\n\t } else if (i<32) {\r\n\t\t t += f4(br,cr,dr) + hr[1];\r\n\t } else if (i<48) {\r\n\t\t t += f3(br,cr,dr) + hr[2];\r\n\t } else if (i<64) {\r\n\t\t t += f2(br,cr,dr) + hr[3];\r\n\t } else {// if (i<80) {\r\n\t\t t += f1(br,cr,dr) + hr[4];\r\n\t }\r\n\t t = t|0;\r\n\t t = rotl(t,sr[i]) ;\r\n\t t = (t+er)|0;\r\n\t ar = er;\r\n\t er = dr;\r\n\t dr = rotl(cr, 10);\r\n\t cr = br;\r\n\t br = t;\r\n\t }\r\n\t // Intermediate hash value\r\n\t t = (H[1] + cl + dr)|0;\r\n\t H[1] = (H[2] + dl + er)|0;\r\n\t H[2] = (H[3] + el + ar)|0;\r\n\t H[3] = (H[4] + al + br)|0;\r\n\t H[4] = (H[0] + bl + cr)|0;\r\n\t H[0] = t;\r\n\t },\r\n\r\n\t _doFinalize: function () {\r\n\t // Shortcuts\r\n\t var data = this._data;\r\n\t var dataWords = data.words;\r\n\r\n\t var nBitsTotal = this._nDataBytes * 8;\r\n\t var nBitsLeft = data.sigBytes * 8;\r\n\r\n\t // Add padding\r\n\t dataWords[nBitsLeft >>> 5] |= 0x80 << (24 - nBitsLeft % 32);\r\n\t dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 14] = (\r\n\t (((nBitsTotal << 8) | (nBitsTotal >>> 24)) & 0x00ff00ff) |\r\n\t (((nBitsTotal << 24) | (nBitsTotal >>> 8)) & 0xff00ff00)\r\n\t );\r\n\t data.sigBytes = (dataWords.length + 1) * 4;\r\n\r\n\t // Hash final blocks\r\n\t this._process();\r\n\r\n\t // Shortcuts\r\n\t var hash = this._hash;\r\n\t var H = hash.words;\r\n\r\n\t // Swap endian\r\n\t for (var i = 0; i < 5; i++) {\r\n\t // Shortcut\r\n\t var H_i = H[i];\r\n\r\n\t // Swap\r\n\t H[i] = (((H_i << 8) | (H_i >>> 24)) & 0x00ff00ff) |\r\n\t (((H_i << 24) | (H_i >>> 8)) & 0xff00ff00);\r\n\t }\r\n\r\n\t // Return final computed hash\r\n\t return hash;\r\n\t },\r\n\r\n\t clone: function () {\r\n\t var clone = Hasher.clone.call(this);\r\n\t clone._hash = this._hash.clone();\r\n\r\n\t return clone;\r\n\t }\r\n\t });\r\n\r\n\r\n\t function f1(x, y, z) {\r\n\t return ((x) ^ (y) ^ (z));\r\n\r\n\t }\r\n\r\n\t function f2(x, y, z) {\r\n\t return (((x)&(y)) | ((~x)&(z)));\r\n\t }\r\n\r\n\t function f3(x, y, z) {\r\n\t return (((x) | (~(y))) ^ (z));\r\n\t }\r\n\r\n\t function f4(x, y, z) {\r\n\t return (((x) & (z)) | ((y)&(~(z))));\r\n\t }\r\n\r\n\t function f5(x, y, z) {\r\n\t return ((x) ^ ((y) |(~(z))));\r\n\r\n\t }\r\n\r\n\t function rotl(x,n) {\r\n\t return (x<>>(32-n));\r\n\t }\r\n\r\n\r\n\t /**\r\n\t * Shortcut function to the hasher's object interface.\r\n\t *\r\n\t * @param {WordArray|string} message The message to hash.\r\n\t *\r\n\t * @return {WordArray} The hash.\r\n\t *\r\n\t * @static\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var hash = CryptoJS.RIPEMD160('message');\r\n\t * var hash = CryptoJS.RIPEMD160(wordArray);\r\n\t */\r\n\t C.RIPEMD160 = Hasher._createHelper(RIPEMD160);\r\n\r\n\t /**\r\n\t * Shortcut function to the HMAC's object interface.\r\n\t *\r\n\t * @param {WordArray|string} message The message to hash.\r\n\t * @param {WordArray|string} key The secret key.\r\n\t *\r\n\t * @return {WordArray} The HMAC.\r\n\t *\r\n\t * @static\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var hmac = CryptoJS.HmacRIPEMD160(message, key);\r\n\t */\r\n\t C.HmacRIPEMD160 = Hasher._createHmacHelper(RIPEMD160);\r\n\t}(Math));\r\n\r\n\r\n\treturn CryptoJS.RIPEMD160;\r\n\r\n}));", ";(function (root, factory) {\r\n\tif (typeof exports === \"object\") {\r\n\t\t// CommonJS\r\n\t\tmodule.exports = exports = factory(require(\"./core\"));\r\n\t}\r\n\telse if (typeof define === \"function\" && define.amd) {\r\n\t\t// AMD\r\n\t\tdefine([\"./core\"], factory);\r\n\t}\r\n\telse {\r\n\t\t// Global (browser)\r\n\t\tfactory(root.CryptoJS);\r\n\t}\r\n}(this, function (CryptoJS) {\r\n\r\n\t(function () {\r\n\t // Shortcuts\r\n\t var C = CryptoJS;\r\n\t var C_lib = C.lib;\r\n\t var Base = C_lib.Base;\r\n\t var C_enc = C.enc;\r\n\t var Utf8 = C_enc.Utf8;\r\n\t var C_algo = C.algo;\r\n\r\n\t /**\r\n\t * HMAC algorithm.\r\n\t */\r\n\t var HMAC = C_algo.HMAC = Base.extend({\r\n\t /**\r\n\t * Initializes a newly created HMAC.\r\n\t *\r\n\t * @param {Hasher} hasher The hash algorithm to use.\r\n\t * @param {WordArray|string} key The secret key.\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var hmacHasher = CryptoJS.algo.HMAC.create(CryptoJS.algo.SHA256, key);\r\n\t */\r\n\t init: function (hasher, key) {\r\n\t // Init hasher\r\n\t hasher = this._hasher = new hasher.init();\r\n\r\n\t // Convert string to WordArray, else assume WordArray already\r\n\t if (typeof key == 'string') {\r\n\t key = Utf8.parse(key);\r\n\t }\r\n\r\n\t // Shortcuts\r\n\t var hasherBlockSize = hasher.blockSize;\r\n\t var hasherBlockSizeBytes = hasherBlockSize * 4;\r\n\r\n\t // Allow arbitrary length keys\r\n\t if (key.sigBytes > hasherBlockSizeBytes) {\r\n\t key = hasher.finalize(key);\r\n\t }\r\n\r\n\t // Clamp excess bits\r\n\t key.clamp();\r\n\r\n\t // Clone key for inner and outer pads\r\n\t var oKey = this._oKey = key.clone();\r\n\t var iKey = this._iKey = key.clone();\r\n\r\n\t // Shortcuts\r\n\t var oKeyWords = oKey.words;\r\n\t var iKeyWords = iKey.words;\r\n\r\n\t // XOR keys with pad constants\r\n\t for (var i = 0; i < hasherBlockSize; i++) {\r\n\t oKeyWords[i] ^= 0x5c5c5c5c;\r\n\t iKeyWords[i] ^= 0x36363636;\r\n\t }\r\n\t oKey.sigBytes = iKey.sigBytes = hasherBlockSizeBytes;\r\n\r\n\t // Set initial values\r\n\t this.reset();\r\n\t },\r\n\r\n\t /**\r\n\t * Resets this HMAC to its initial state.\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * hmacHasher.reset();\r\n\t */\r\n\t reset: function () {\r\n\t // Shortcut\r\n\t var hasher = this._hasher;\r\n\r\n\t // Reset\r\n\t hasher.reset();\r\n\t hasher.update(this._iKey);\r\n\t },\r\n\r\n\t /**\r\n\t * Updates this HMAC with a message.\r\n\t *\r\n\t * @param {WordArray|string} messageUpdate The message to append.\r\n\t *\r\n\t * @return {HMAC} This HMAC instance.\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * hmacHasher.update('message');\r\n\t * hmacHasher.update(wordArray);\r\n\t */\r\n\t update: function (messageUpdate) {\r\n\t this._hasher.update(messageUpdate);\r\n\r\n\t // Chainable\r\n\t return this;\r\n\t },\r\n\r\n\t /**\r\n\t * Finalizes the HMAC computation.\r\n\t * Note that the finalize operation is effectively a destructive, read-once operation.\r\n\t *\r\n\t * @param {WordArray|string} messageUpdate (Optional) A final message update.\r\n\t *\r\n\t * @return {WordArray} The HMAC.\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var hmac = hmacHasher.finalize();\r\n\t * var hmac = hmacHasher.finalize('message');\r\n\t * var hmac = hmacHasher.finalize(wordArray);\r\n\t */\r\n\t finalize: function (messageUpdate) {\r\n\t // Shortcut\r\n\t var hasher = this._hasher;\r\n\r\n\t // Compute HMAC\r\n\t var innerHash = hasher.finalize(messageUpdate);\r\n\t hasher.reset();\r\n\t var hmac = hasher.finalize(this._oKey.clone().concat(innerHash));\r\n\r\n\t return hmac;\r\n\t }\r\n\t });\r\n\t}());\r\n\r\n\r\n}));", ";(function (root, factory, undef) {\r\n\tif (typeof exports === \"object\") {\r\n\t\t// CommonJS\r\n\t\tmodule.exports = exports = factory(require(\"./core\"), require(\"./sha256\"), require(\"./hmac\"));\r\n\t}\r\n\telse if (typeof define === \"function\" && define.amd) {\r\n\t\t// AMD\r\n\t\tdefine([\"./core\", \"./sha256\", \"./hmac\"], factory);\r\n\t}\r\n\telse {\r\n\t\t// Global (browser)\r\n\t\tfactory(root.CryptoJS);\r\n\t}\r\n}(this, function (CryptoJS) {\r\n\r\n\t(function () {\r\n\t // Shortcuts\r\n\t var C = CryptoJS;\r\n\t var C_lib = C.lib;\r\n\t var Base = C_lib.Base;\r\n\t var WordArray = C_lib.WordArray;\r\n\t var C_algo = C.algo;\r\n\t var SHA256 = C_algo.SHA256;\r\n\t var HMAC = C_algo.HMAC;\r\n\r\n\t /**\r\n\t * Password-Based Key Derivation Function 2 algorithm.\r\n\t */\r\n\t var PBKDF2 = C_algo.PBKDF2 = Base.extend({\r\n\t /**\r\n\t * Configuration options.\r\n\t *\r\n\t * @property {number} keySize The key size in words to generate. Default: 4 (128 bits)\r\n\t * @property {Hasher} hasher The hasher to use. Default: SHA256\r\n\t * @property {number} iterations The number of iterations to perform. Default: 250000\r\n\t */\r\n\t cfg: Base.extend({\r\n\t keySize: 128/32,\r\n\t hasher: SHA256,\r\n\t iterations: 250000\r\n\t }),\r\n\r\n\t /**\r\n\t * Initializes a newly created key derivation function.\r\n\t *\r\n\t * @param {Object} cfg (Optional) The configuration options to use for the derivation.\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var kdf = CryptoJS.algo.PBKDF2.create();\r\n\t * var kdf = CryptoJS.algo.PBKDF2.create({ keySize: 8 });\r\n\t * var kdf = CryptoJS.algo.PBKDF2.create({ keySize: 8, iterations: 1000 });\r\n\t */\r\n\t init: function (cfg) {\r\n\t this.cfg = this.cfg.extend(cfg);\r\n\t },\r\n\r\n\t /**\r\n\t * Computes the Password-Based Key Derivation Function 2.\r\n\t *\r\n\t * @param {WordArray|string} password The password.\r\n\t * @param {WordArray|string} salt A salt.\r\n\t *\r\n\t * @return {WordArray} The derived key.\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var key = kdf.compute(password, salt);\r\n\t */\r\n\t compute: function (password, salt) {\r\n\t // Shortcut\r\n\t var cfg = this.cfg;\r\n\r\n\t // Init HMAC\r\n\t var hmac = HMAC.create(cfg.hasher, password);\r\n\r\n\t // Initial values\r\n\t var derivedKey = WordArray.create();\r\n\t var blockIndex = WordArray.create([0x00000001]);\r\n\r\n\t // Shortcuts\r\n\t var derivedKeyWords = derivedKey.words;\r\n\t var blockIndexWords = blockIndex.words;\r\n\t var keySize = cfg.keySize;\r\n\t var iterations = cfg.iterations;\r\n\r\n\t // Generate key\r\n\t while (derivedKeyWords.length < keySize) {\r\n\t var block = hmac.update(salt).finalize(blockIndex);\r\n\t hmac.reset();\r\n\r\n\t // Shortcuts\r\n\t var blockWords = block.words;\r\n\t var blockWordsLength = blockWords.length;\r\n\r\n\t // Iterations\r\n\t var intermediate = block;\r\n\t for (var i = 1; i < iterations; i++) {\r\n\t intermediate = hmac.finalize(intermediate);\r\n\t hmac.reset();\r\n\r\n\t // Shortcut\r\n\t var intermediateWords = intermediate.words;\r\n\r\n\t // XOR intermediate with block\r\n\t for (var j = 0; j < blockWordsLength; j++) {\r\n\t blockWords[j] ^= intermediateWords[j];\r\n\t }\r\n\t }\r\n\r\n\t derivedKey.concat(block);\r\n\t blockIndexWords[0]++;\r\n\t }\r\n\t derivedKey.sigBytes = keySize * 4;\r\n\r\n\t return derivedKey;\r\n\t }\r\n\t });\r\n\r\n\t /**\r\n\t * Computes the Password-Based Key Derivation Function 2.\r\n\t *\r\n\t * @param {WordArray|string} password The password.\r\n\t * @param {WordArray|string} salt A salt.\r\n\t * @param {Object} cfg (Optional) The configuration options to use for this computation.\r\n\t *\r\n\t * @return {WordArray} The derived key.\r\n\t *\r\n\t * @static\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var key = CryptoJS.PBKDF2(password, salt);\r\n\t * var key = CryptoJS.PBKDF2(password, salt, { keySize: 8 });\r\n\t * var key = CryptoJS.PBKDF2(password, salt, { keySize: 8, iterations: 1000 });\r\n\t */\r\n\t C.PBKDF2 = function (password, salt, cfg) {\r\n\t return PBKDF2.create(cfg).compute(password, salt);\r\n\t };\r\n\t}());\r\n\r\n\r\n\treturn CryptoJS.PBKDF2;\r\n\r\n}));", ";(function (root, factory, undef) {\r\n\tif (typeof exports === \"object\") {\r\n\t\t// CommonJS\r\n\t\tmodule.exports = exports = factory(require(\"./core\"), require(\"./sha1\"), require(\"./hmac\"));\r\n\t}\r\n\telse if (typeof define === \"function\" && define.amd) {\r\n\t\t// AMD\r\n\t\tdefine([\"./core\", \"./sha1\", \"./hmac\"], factory);\r\n\t}\r\n\telse {\r\n\t\t// Global (browser)\r\n\t\tfactory(root.CryptoJS);\r\n\t}\r\n}(this, function (CryptoJS) {\r\n\r\n\t(function () {\r\n\t // Shortcuts\r\n\t var C = CryptoJS;\r\n\t var C_lib = C.lib;\r\n\t var Base = C_lib.Base;\r\n\t var WordArray = C_lib.WordArray;\r\n\t var C_algo = C.algo;\r\n\t var MD5 = C_algo.MD5;\r\n\r\n\t /**\r\n\t * This key derivation function is meant to conform with EVP_BytesToKey.\r\n\t * www.openssl.org/docs/crypto/EVP_BytesToKey.html\r\n\t */\r\n\t var EvpKDF = C_algo.EvpKDF = Base.extend({\r\n\t /**\r\n\t * Configuration options.\r\n\t *\r\n\t * @property {number} keySize The key size in words to generate. Default: 4 (128 bits)\r\n\t * @property {Hasher} hasher The hash algorithm to use. Default: MD5\r\n\t * @property {number} iterations The number of iterations to perform. Default: 1\r\n\t */\r\n\t cfg: Base.extend({\r\n\t keySize: 128/32,\r\n\t hasher: MD5,\r\n\t iterations: 1\r\n\t }),\r\n\r\n\t /**\r\n\t * Initializes a newly created key derivation function.\r\n\t *\r\n\t * @param {Object} cfg (Optional) The configuration options to use for the derivation.\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var kdf = CryptoJS.algo.EvpKDF.create();\r\n\t * var kdf = CryptoJS.algo.EvpKDF.create({ keySize: 8 });\r\n\t * var kdf = CryptoJS.algo.EvpKDF.create({ keySize: 8, iterations: 1000 });\r\n\t */\r\n\t init: function (cfg) {\r\n\t this.cfg = this.cfg.extend(cfg);\r\n\t },\r\n\r\n\t /**\r\n\t * Derives a key from a password.\r\n\t *\r\n\t * @param {WordArray|string} password The password.\r\n\t * @param {WordArray|string} salt A salt.\r\n\t *\r\n\t * @return {WordArray} The derived key.\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var key = kdf.compute(password, salt);\r\n\t */\r\n\t compute: function (password, salt) {\r\n\t var block;\r\n\r\n\t // Shortcut\r\n\t var cfg = this.cfg;\r\n\r\n\t // Init hasher\r\n\t var hasher = cfg.hasher.create();\r\n\r\n\t // Initial values\r\n\t var derivedKey = WordArray.create();\r\n\r\n\t // Shortcuts\r\n\t var derivedKeyWords = derivedKey.words;\r\n\t var keySize = cfg.keySize;\r\n\t var iterations = cfg.iterations;\r\n\r\n\t // Generate key\r\n\t while (derivedKeyWords.length < keySize) {\r\n\t if (block) {\r\n\t hasher.update(block);\r\n\t }\r\n\t block = hasher.update(password).finalize(salt);\r\n\t hasher.reset();\r\n\r\n\t // Iterations\r\n\t for (var i = 1; i < iterations; i++) {\r\n\t block = hasher.finalize(block);\r\n\t hasher.reset();\r\n\t }\r\n\r\n\t derivedKey.concat(block);\r\n\t }\r\n\t derivedKey.sigBytes = keySize * 4;\r\n\r\n\t return derivedKey;\r\n\t }\r\n\t });\r\n\r\n\t /**\r\n\t * Derives a key from a password.\r\n\t *\r\n\t * @param {WordArray|string} password The password.\r\n\t * @param {WordArray|string} salt A salt.\r\n\t * @param {Object} cfg (Optional) The configuration options to use for this computation.\r\n\t *\r\n\t * @return {WordArray} The derived key.\r\n\t *\r\n\t * @static\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var key = CryptoJS.EvpKDF(password, salt);\r\n\t * var key = CryptoJS.EvpKDF(password, salt, { keySize: 8 });\r\n\t * var key = CryptoJS.EvpKDF(password, salt, { keySize: 8, iterations: 1000 });\r\n\t */\r\n\t C.EvpKDF = function (password, salt, cfg) {\r\n\t return EvpKDF.create(cfg).compute(password, salt);\r\n\t };\r\n\t}());\r\n\r\n\r\n\treturn CryptoJS.EvpKDF;\r\n\r\n}));", ";(function (root, factory, undef) {\r\n\tif (typeof exports === \"object\") {\r\n\t\t// CommonJS\r\n\t\tmodule.exports = exports = factory(require(\"./core\"), require(\"./evpkdf\"));\r\n\t}\r\n\telse if (typeof define === \"function\" && define.amd) {\r\n\t\t// AMD\r\n\t\tdefine([\"./core\", \"./evpkdf\"], factory);\r\n\t}\r\n\telse {\r\n\t\t// Global (browser)\r\n\t\tfactory(root.CryptoJS);\r\n\t}\r\n}(this, function (CryptoJS) {\r\n\r\n\t/**\r\n\t * Cipher core components.\r\n\t */\r\n\tCryptoJS.lib.Cipher || (function (undefined) {\r\n\t // Shortcuts\r\n\t var C = CryptoJS;\r\n\t var C_lib = C.lib;\r\n\t var Base = C_lib.Base;\r\n\t var WordArray = C_lib.WordArray;\r\n\t var BufferedBlockAlgorithm = C_lib.BufferedBlockAlgorithm;\r\n\t var C_enc = C.enc;\r\n\t var Utf8 = C_enc.Utf8;\r\n\t var Base64 = C_enc.Base64;\r\n\t var C_algo = C.algo;\r\n\t var EvpKDF = C_algo.EvpKDF;\r\n\r\n\t /**\r\n\t * Abstract base cipher template.\r\n\t *\r\n\t * @property {number} keySize This cipher's key size. Default: 4 (128 bits)\r\n\t * @property {number} ivSize This cipher's IV size. Default: 4 (128 bits)\r\n\t * @property {number} _ENC_XFORM_MODE A constant representing encryption mode.\r\n\t * @property {number} _DEC_XFORM_MODE A constant representing decryption mode.\r\n\t */\r\n\t var Cipher = C_lib.Cipher = BufferedBlockAlgorithm.extend({\r\n\t /**\r\n\t * Configuration options.\r\n\t *\r\n\t * @property {WordArray} iv The IV to use for this operation.\r\n\t */\r\n\t cfg: Base.extend(),\r\n\r\n\t /**\r\n\t * Creates this cipher in encryption mode.\r\n\t *\r\n\t * @param {WordArray} key The key.\r\n\t * @param {Object} cfg (Optional) The configuration options to use for this operation.\r\n\t *\r\n\t * @return {Cipher} A cipher instance.\r\n\t *\r\n\t * @static\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var cipher = CryptoJS.algo.AES.createEncryptor(keyWordArray, { iv: ivWordArray });\r\n\t */\r\n\t createEncryptor: function (key, cfg) {\r\n\t return this.create(this._ENC_XFORM_MODE, key, cfg);\r\n\t },\r\n\r\n\t /**\r\n\t * Creates this cipher in decryption mode.\r\n\t *\r\n\t * @param {WordArray} key The key.\r\n\t * @param {Object} cfg (Optional) The configuration options to use for this operation.\r\n\t *\r\n\t * @return {Cipher} A cipher instance.\r\n\t *\r\n\t * @static\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var cipher = CryptoJS.algo.AES.createDecryptor(keyWordArray, { iv: ivWordArray });\r\n\t */\r\n\t createDecryptor: function (key, cfg) {\r\n\t return this.create(this._DEC_XFORM_MODE, key, cfg);\r\n\t },\r\n\r\n\t /**\r\n\t * Initializes a newly created cipher.\r\n\t *\r\n\t * @param {number} xformMode Either the encryption or decryption transormation mode constant.\r\n\t * @param {WordArray} key The key.\r\n\t * @param {Object} cfg (Optional) The configuration options to use for this operation.\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var cipher = CryptoJS.algo.AES.create(CryptoJS.algo.AES._ENC_XFORM_MODE, keyWordArray, { iv: ivWordArray });\r\n\t */\r\n\t init: function (xformMode, key, cfg) {\r\n\t // Apply config defaults\r\n\t this.cfg = this.cfg.extend(cfg);\r\n\r\n\t // Store transform mode and key\r\n\t this._xformMode = xformMode;\r\n\t this._key = key;\r\n\r\n\t // Set initial values\r\n\t this.reset();\r\n\t },\r\n\r\n\t /**\r\n\t * Resets this cipher to its initial state.\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * cipher.reset();\r\n\t */\r\n\t reset: function () {\r\n\t // Reset data buffer\r\n\t BufferedBlockAlgorithm.reset.call(this);\r\n\r\n\t // Perform concrete-cipher logic\r\n\t this._doReset();\r\n\t },\r\n\r\n\t /**\r\n\t * Adds data to be encrypted or decrypted.\r\n\t *\r\n\t * @param {WordArray|string} dataUpdate The data to encrypt or decrypt.\r\n\t *\r\n\t * @return {WordArray} The data after processing.\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var encrypted = cipher.process('data');\r\n\t * var encrypted = cipher.process(wordArray);\r\n\t */\r\n\t process: function (dataUpdate) {\r\n\t // Append\r\n\t this._append(dataUpdate);\r\n\r\n\t // Process available blocks\r\n\t return this._process();\r\n\t },\r\n\r\n\t /**\r\n\t * Finalizes the encryption or decryption process.\r\n\t * Note that the finalize operation is effectively a destructive, read-once operation.\r\n\t *\r\n\t * @param {WordArray|string} dataUpdate The final data to encrypt or decrypt.\r\n\t *\r\n\t * @return {WordArray} The data after final processing.\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var encrypted = cipher.finalize();\r\n\t * var encrypted = cipher.finalize('data');\r\n\t * var encrypted = cipher.finalize(wordArray);\r\n\t */\r\n\t finalize: function (dataUpdate) {\r\n\t // Final data update\r\n\t if (dataUpdate) {\r\n\t this._append(dataUpdate);\r\n\t }\r\n\r\n\t // Perform concrete-cipher logic\r\n\t var finalProcessedData = this._doFinalize();\r\n\r\n\t return finalProcessedData;\r\n\t },\r\n\r\n\t keySize: 128/32,\r\n\r\n\t ivSize: 128/32,\r\n\r\n\t _ENC_XFORM_MODE: 1,\r\n\r\n\t _DEC_XFORM_MODE: 2,\r\n\r\n\t /**\r\n\t * Creates shortcut functions to a cipher's object interface.\r\n\t *\r\n\t * @param {Cipher} cipher The cipher to create a helper for.\r\n\t *\r\n\t * @return {Object} An object with encrypt and decrypt shortcut functions.\r\n\t *\r\n\t * @static\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var AES = CryptoJS.lib.Cipher._createHelper(CryptoJS.algo.AES);\r\n\t */\r\n\t _createHelper: (function () {\r\n\t function selectCipherStrategy(key) {\r\n\t if (typeof key == 'string') {\r\n\t return PasswordBasedCipher;\r\n\t } else {\r\n\t return SerializableCipher;\r\n\t }\r\n\t }\r\n\r\n\t return function (cipher) {\r\n\t return {\r\n\t encrypt: function (message, key, cfg) {\r\n\t return selectCipherStrategy(key).encrypt(cipher, message, key, cfg);\r\n\t },\r\n\r\n\t decrypt: function (ciphertext, key, cfg) {\r\n\t return selectCipherStrategy(key).decrypt(cipher, ciphertext, key, cfg);\r\n\t }\r\n\t };\r\n\t };\r\n\t }())\r\n\t });\r\n\r\n\t /**\r\n\t * Abstract base stream cipher template.\r\n\t *\r\n\t * @property {number} blockSize The number of 32-bit words this cipher operates on. Default: 1 (32 bits)\r\n\t */\r\n\t var StreamCipher = C_lib.StreamCipher = Cipher.extend({\r\n\t _doFinalize: function () {\r\n\t // Process partial blocks\r\n\t var finalProcessedBlocks = this._process(!!'flush');\r\n\r\n\t return finalProcessedBlocks;\r\n\t },\r\n\r\n\t blockSize: 1\r\n\t });\r\n\r\n\t /**\r\n\t * Mode namespace.\r\n\t */\r\n\t var C_mode = C.mode = {};\r\n\r\n\t /**\r\n\t * Abstract base block cipher mode template.\r\n\t */\r\n\t var BlockCipherMode = C_lib.BlockCipherMode = Base.extend({\r\n\t /**\r\n\t * Creates this mode for encryption.\r\n\t *\r\n\t * @param {Cipher} cipher A block cipher instance.\r\n\t * @param {Array} iv The IV words.\r\n\t *\r\n\t * @static\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var mode = CryptoJS.mode.CBC.createEncryptor(cipher, iv.words);\r\n\t */\r\n\t createEncryptor: function (cipher, iv) {\r\n\t return this.Encryptor.create(cipher, iv);\r\n\t },\r\n\r\n\t /**\r\n\t * Creates this mode for decryption.\r\n\t *\r\n\t * @param {Cipher} cipher A block cipher instance.\r\n\t * @param {Array} iv The IV words.\r\n\t *\r\n\t * @static\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var mode = CryptoJS.mode.CBC.createDecryptor(cipher, iv.words);\r\n\t */\r\n\t createDecryptor: function (cipher, iv) {\r\n\t return this.Decryptor.create(cipher, iv);\r\n\t },\r\n\r\n\t /**\r\n\t * Initializes a newly created mode.\r\n\t *\r\n\t * @param {Cipher} cipher A block cipher instance.\r\n\t * @param {Array} iv The IV words.\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var mode = CryptoJS.mode.CBC.Encryptor.create(cipher, iv.words);\r\n\t */\r\n\t init: function (cipher, iv) {\r\n\t this._cipher = cipher;\r\n\t this._iv = iv;\r\n\t }\r\n\t });\r\n\r\n\t /**\r\n\t * Cipher Block Chaining mode.\r\n\t */\r\n\t var CBC = C_mode.CBC = (function () {\r\n\t /**\r\n\t * Abstract base CBC mode.\r\n\t */\r\n\t var CBC = BlockCipherMode.extend();\r\n\r\n\t /**\r\n\t * CBC encryptor.\r\n\t */\r\n\t CBC.Encryptor = CBC.extend({\r\n\t /**\r\n\t * Processes the data block at offset.\r\n\t *\r\n\t * @param {Array} words The data words to operate on.\r\n\t * @param {number} offset The offset where the block starts.\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * mode.processBlock(data.words, offset);\r\n\t */\r\n\t processBlock: function (words, offset) {\r\n\t // Shortcuts\r\n\t var cipher = this._cipher;\r\n\t var blockSize = cipher.blockSize;\r\n\r\n\t // XOR and encrypt\r\n\t xorBlock.call(this, words, offset, blockSize);\r\n\t cipher.encryptBlock(words, offset);\r\n\r\n\t // Remember this block to use with next block\r\n\t this._prevBlock = words.slice(offset, offset + blockSize);\r\n\t }\r\n\t });\r\n\r\n\t /**\r\n\t * CBC decryptor.\r\n\t */\r\n\t CBC.Decryptor = CBC.extend({\r\n\t /**\r\n\t * Processes the data block at offset.\r\n\t *\r\n\t * @param {Array} words The data words to operate on.\r\n\t * @param {number} offset The offset where the block starts.\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * mode.processBlock(data.words, offset);\r\n\t */\r\n\t processBlock: function (words, offset) {\r\n\t // Shortcuts\r\n\t var cipher = this._cipher;\r\n\t var blockSize = cipher.blockSize;\r\n\r\n\t // Remember this block to use with next block\r\n\t var thisBlock = words.slice(offset, offset + blockSize);\r\n\r\n\t // Decrypt and XOR\r\n\t cipher.decryptBlock(words, offset);\r\n\t xorBlock.call(this, words, offset, blockSize);\r\n\r\n\t // This block becomes the previous block\r\n\t this._prevBlock = thisBlock;\r\n\t }\r\n\t });\r\n\r\n\t function xorBlock(words, offset, blockSize) {\r\n\t var block;\r\n\r\n\t // Shortcut\r\n\t var iv = this._iv;\r\n\r\n\t // Choose mixing block\r\n\t if (iv) {\r\n\t block = iv;\r\n\r\n\t // Remove IV for subsequent blocks\r\n\t this._iv = undefined;\r\n\t } else {\r\n\t block = this._prevBlock;\r\n\t }\r\n\r\n\t // XOR blocks\r\n\t for (var i = 0; i < blockSize; i++) {\r\n\t words[offset + i] ^= block[i];\r\n\t }\r\n\t }\r\n\r\n\t return CBC;\r\n\t }());\r\n\r\n\t /**\r\n\t * Padding namespace.\r\n\t */\r\n\t var C_pad = C.pad = {};\r\n\r\n\t /**\r\n\t * PKCS #5/7 padding strategy.\r\n\t */\r\n\t var Pkcs7 = C_pad.Pkcs7 = {\r\n\t /**\r\n\t * Pads data using the algorithm defined in PKCS #5/7.\r\n\t *\r\n\t * @param {WordArray} data The data to pad.\r\n\t * @param {number} blockSize The multiple that the data should be padded to.\r\n\t *\r\n\t * @static\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * CryptoJS.pad.Pkcs7.pad(wordArray, 4);\r\n\t */\r\n\t pad: function (data, blockSize) {\r\n\t // Shortcut\r\n\t var blockSizeBytes = blockSize * 4;\r\n\r\n\t // Count padding bytes\r\n\t var nPaddingBytes = blockSizeBytes - data.sigBytes % blockSizeBytes;\r\n\r\n\t // Create padding word\r\n\t var paddingWord = (nPaddingBytes << 24) | (nPaddingBytes << 16) | (nPaddingBytes << 8) | nPaddingBytes;\r\n\r\n\t // Create padding\r\n\t var paddingWords = [];\r\n\t for (var i = 0; i < nPaddingBytes; i += 4) {\r\n\t paddingWords.push(paddingWord);\r\n\t }\r\n\t var padding = WordArray.create(paddingWords, nPaddingBytes);\r\n\r\n\t // Add padding\r\n\t data.concat(padding);\r\n\t },\r\n\r\n\t /**\r\n\t * Unpads data that had been padded using the algorithm defined in PKCS #5/7.\r\n\t *\r\n\t * @param {WordArray} data The data to unpad.\r\n\t *\r\n\t * @static\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * CryptoJS.pad.Pkcs7.unpad(wordArray);\r\n\t */\r\n\t unpad: function (data) {\r\n\t // Get number of padding bytes from last byte\r\n\t var nPaddingBytes = data.words[(data.sigBytes - 1) >>> 2] & 0xff;\r\n\r\n\t // Remove padding\r\n\t data.sigBytes -= nPaddingBytes;\r\n\t }\r\n\t };\r\n\r\n\t /**\r\n\t * Abstract base block cipher template.\r\n\t *\r\n\t * @property {number} blockSize The number of 32-bit words this cipher operates on. Default: 4 (128 bits)\r\n\t */\r\n\t var BlockCipher = C_lib.BlockCipher = Cipher.extend({\r\n\t /**\r\n\t * Configuration options.\r\n\t *\r\n\t * @property {Mode} mode The block mode to use. Default: CBC\r\n\t * @property {Padding} padding The padding strategy to use. Default: Pkcs7\r\n\t */\r\n\t cfg: Cipher.cfg.extend({\r\n\t mode: CBC,\r\n\t padding: Pkcs7\r\n\t }),\r\n\r\n\t reset: function () {\r\n\t var modeCreator;\r\n\r\n\t // Reset cipher\r\n\t Cipher.reset.call(this);\r\n\r\n\t // Shortcuts\r\n\t var cfg = this.cfg;\r\n\t var iv = cfg.iv;\r\n\t var mode = cfg.mode;\r\n\r\n\t // Reset block mode\r\n\t if (this._xformMode == this._ENC_XFORM_MODE) {\r\n\t modeCreator = mode.createEncryptor;\r\n\t } else /* if (this._xformMode == this._DEC_XFORM_MODE) */ {\r\n\t modeCreator = mode.createDecryptor;\r\n\t // Keep at least one block in the buffer for unpadding\r\n\t this._minBufferSize = 1;\r\n\t }\r\n\r\n\t if (this._mode && this._mode.__creator == modeCreator) {\r\n\t this._mode.init(this, iv && iv.words);\r\n\t } else {\r\n\t this._mode = modeCreator.call(mode, this, iv && iv.words);\r\n\t this._mode.__creator = modeCreator;\r\n\t }\r\n\t },\r\n\r\n\t _doProcessBlock: function (words, offset) {\r\n\t this._mode.processBlock(words, offset);\r\n\t },\r\n\r\n\t _doFinalize: function () {\r\n\t var finalProcessedBlocks;\r\n\r\n\t // Shortcut\r\n\t var padding = this.cfg.padding;\r\n\r\n\t // Finalize\r\n\t if (this._xformMode == this._ENC_XFORM_MODE) {\r\n\t // Pad data\r\n\t padding.pad(this._data, this.blockSize);\r\n\r\n\t // Process final blocks\r\n\t finalProcessedBlocks = this._process(!!'flush');\r\n\t } else /* if (this._xformMode == this._DEC_XFORM_MODE) */ {\r\n\t // Process final blocks\r\n\t finalProcessedBlocks = this._process(!!'flush');\r\n\r\n\t // Unpad data\r\n\t padding.unpad(finalProcessedBlocks);\r\n\t }\r\n\r\n\t return finalProcessedBlocks;\r\n\t },\r\n\r\n\t blockSize: 128/32\r\n\t });\r\n\r\n\t /**\r\n\t * A collection of cipher parameters.\r\n\t *\r\n\t * @property {WordArray} ciphertext The raw ciphertext.\r\n\t * @property {WordArray} key The key to this ciphertext.\r\n\t * @property {WordArray} iv The IV used in the ciphering operation.\r\n\t * @property {WordArray} salt The salt used with a key derivation function.\r\n\t * @property {Cipher} algorithm The cipher algorithm.\r\n\t * @property {Mode} mode The block mode used in the ciphering operation.\r\n\t * @property {Padding} padding The padding scheme used in the ciphering operation.\r\n\t * @property {number} blockSize The block size of the cipher.\r\n\t * @property {Format} formatter The default formatting strategy to convert this cipher params object to a string.\r\n\t */\r\n\t var CipherParams = C_lib.CipherParams = Base.extend({\r\n\t /**\r\n\t * Initializes a newly created cipher params object.\r\n\t *\r\n\t * @param {Object} cipherParams An object with any of the possible cipher parameters.\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var cipherParams = CryptoJS.lib.CipherParams.create({\r\n\t * ciphertext: ciphertextWordArray,\r\n\t * key: keyWordArray,\r\n\t * iv: ivWordArray,\r\n\t * salt: saltWordArray,\r\n\t * algorithm: CryptoJS.algo.AES,\r\n\t * mode: CryptoJS.mode.CBC,\r\n\t * padding: CryptoJS.pad.PKCS7,\r\n\t * blockSize: 4,\r\n\t * formatter: CryptoJS.format.OpenSSL\r\n\t * });\r\n\t */\r\n\t init: function (cipherParams) {\r\n\t this.mixIn(cipherParams);\r\n\t },\r\n\r\n\t /**\r\n\t * Converts this cipher params object to a string.\r\n\t *\r\n\t * @param {Format} formatter (Optional) The formatting strategy to use.\r\n\t *\r\n\t * @return {string} The stringified cipher params.\r\n\t *\r\n\t * @throws Error If neither the formatter nor the default formatter is set.\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var string = cipherParams + '';\r\n\t * var string = cipherParams.toString();\r\n\t * var string = cipherParams.toString(CryptoJS.format.OpenSSL);\r\n\t */\r\n\t toString: function (formatter) {\r\n\t return (formatter || this.formatter).stringify(this);\r\n\t }\r\n\t });\r\n\r\n\t /**\r\n\t * Format namespace.\r\n\t */\r\n\t var C_format = C.format = {};\r\n\r\n\t /**\r\n\t * OpenSSL formatting strategy.\r\n\t */\r\n\t var OpenSSLFormatter = C_format.OpenSSL = {\r\n\t /**\r\n\t * Converts a cipher params object to an OpenSSL-compatible string.\r\n\t *\r\n\t * @param {CipherParams} cipherParams The cipher params object.\r\n\t *\r\n\t * @return {string} The OpenSSL-compatible string.\r\n\t *\r\n\t * @static\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var openSSLString = CryptoJS.format.OpenSSL.stringify(cipherParams);\r\n\t */\r\n\t stringify: function (cipherParams) {\r\n\t var wordArray;\r\n\r\n\t // Shortcuts\r\n\t var ciphertext = cipherParams.ciphertext;\r\n\t var salt = cipherParams.salt;\r\n\r\n\t // Format\r\n\t if (salt) {\r\n\t wordArray = WordArray.create([0x53616c74, 0x65645f5f]).concat(salt).concat(ciphertext);\r\n\t } else {\r\n\t wordArray = ciphertext;\r\n\t }\r\n\r\n\t return wordArray.toString(Base64);\r\n\t },\r\n\r\n\t /**\r\n\t * Converts an OpenSSL-compatible string to a cipher params object.\r\n\t *\r\n\t * @param {string} openSSLStr The OpenSSL-compatible string.\r\n\t *\r\n\t * @return {CipherParams} The cipher params object.\r\n\t *\r\n\t * @static\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var cipherParams = CryptoJS.format.OpenSSL.parse(openSSLString);\r\n\t */\r\n\t parse: function (openSSLStr) {\r\n\t var salt;\r\n\r\n\t // Parse base64\r\n\t var ciphertext = Base64.parse(openSSLStr);\r\n\r\n\t // Shortcut\r\n\t var ciphertextWords = ciphertext.words;\r\n\r\n\t // Test for salt\r\n\t if (ciphertextWords[0] == 0x53616c74 && ciphertextWords[1] == 0x65645f5f) {\r\n\t // Extract salt\r\n\t salt = WordArray.create(ciphertextWords.slice(2, 4));\r\n\r\n\t // Remove salt from ciphertext\r\n\t ciphertextWords.splice(0, 4);\r\n\t ciphertext.sigBytes -= 16;\r\n\t }\r\n\r\n\t return CipherParams.create({ ciphertext: ciphertext, salt: salt });\r\n\t }\r\n\t };\r\n\r\n\t /**\r\n\t * A cipher wrapper that returns ciphertext as a serializable cipher params object.\r\n\t */\r\n\t var SerializableCipher = C_lib.SerializableCipher = Base.extend({\r\n\t /**\r\n\t * Configuration options.\r\n\t *\r\n\t * @property {Formatter} format The formatting strategy to convert cipher param objects to and from a string. Default: OpenSSL\r\n\t */\r\n\t cfg: Base.extend({\r\n\t format: OpenSSLFormatter\r\n\t }),\r\n\r\n\t /**\r\n\t * Encrypts a message.\r\n\t *\r\n\t * @param {Cipher} cipher The cipher algorithm to use.\r\n\t * @param {WordArray|string} message The message to encrypt.\r\n\t * @param {WordArray} key The key.\r\n\t * @param {Object} cfg (Optional) The configuration options to use for this operation.\r\n\t *\r\n\t * @return {CipherParams} A cipher params object.\r\n\t *\r\n\t * @static\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key);\r\n\t * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv });\r\n\t * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv, format: CryptoJS.format.OpenSSL });\r\n\t */\r\n\t encrypt: function (cipher, message, key, cfg) {\r\n\t // Apply config defaults\r\n\t cfg = this.cfg.extend(cfg);\r\n\r\n\t // Encrypt\r\n\t var encryptor = cipher.createEncryptor(key, cfg);\r\n\t var ciphertext = encryptor.finalize(message);\r\n\r\n\t // Shortcut\r\n\t var cipherCfg = encryptor.cfg;\r\n\r\n\t // Create and return serializable cipher params\r\n\t return CipherParams.create({\r\n\t ciphertext: ciphertext,\r\n\t key: key,\r\n\t iv: cipherCfg.iv,\r\n\t algorithm: cipher,\r\n\t mode: cipherCfg.mode,\r\n\t padding: cipherCfg.padding,\r\n\t blockSize: cipher.blockSize,\r\n\t formatter: cfg.format\r\n\t });\r\n\t },\r\n\r\n\t /**\r\n\t * Decrypts serialized ciphertext.\r\n\t *\r\n\t * @param {Cipher} cipher The cipher algorithm to use.\r\n\t * @param {CipherParams|string} ciphertext The ciphertext to decrypt.\r\n\t * @param {WordArray} key The key.\r\n\t * @param {Object} cfg (Optional) The configuration options to use for this operation.\r\n\t *\r\n\t * @return {WordArray} The plaintext.\r\n\t *\r\n\t * @static\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, key, { iv: iv, format: CryptoJS.format.OpenSSL });\r\n\t * var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, key, { iv: iv, format: CryptoJS.format.OpenSSL });\r\n\t */\r\n\t decrypt: function (cipher, ciphertext, key, cfg) {\r\n\t // Apply config defaults\r\n\t cfg = this.cfg.extend(cfg);\r\n\r\n\t // Convert string to CipherParams\r\n\t ciphertext = this._parse(ciphertext, cfg.format);\r\n\r\n\t // Decrypt\r\n\t var plaintext = cipher.createDecryptor(key, cfg).finalize(ciphertext.ciphertext);\r\n\r\n\t return plaintext;\r\n\t },\r\n\r\n\t /**\r\n\t * Converts serialized ciphertext to CipherParams,\r\n\t * else assumed CipherParams already and returns ciphertext unchanged.\r\n\t *\r\n\t * @param {CipherParams|string} ciphertext The ciphertext.\r\n\t * @param {Formatter} format The formatting strategy to use to parse serialized ciphertext.\r\n\t *\r\n\t * @return {CipherParams} The unserialized ciphertext.\r\n\t *\r\n\t * @static\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var ciphertextParams = CryptoJS.lib.SerializableCipher._parse(ciphertextStringOrParams, format);\r\n\t */\r\n\t _parse: function (ciphertext, format) {\r\n\t if (typeof ciphertext == 'string') {\r\n\t return format.parse(ciphertext, this);\r\n\t } else {\r\n\t return ciphertext;\r\n\t }\r\n\t }\r\n\t });\r\n\r\n\t /**\r\n\t * Key derivation function namespace.\r\n\t */\r\n\t var C_kdf = C.kdf = {};\r\n\r\n\t /**\r\n\t * OpenSSL key derivation function.\r\n\t */\r\n\t var OpenSSLKdf = C_kdf.OpenSSL = {\r\n\t /**\r\n\t * Derives a key and IV from a password.\r\n\t *\r\n\t * @param {string} password The password to derive from.\r\n\t * @param {number} keySize The size in words of the key to generate.\r\n\t * @param {number} ivSize The size in words of the IV to generate.\r\n\t * @param {WordArray|string} salt (Optional) A 64-bit salt to use. If omitted, a salt will be generated randomly.\r\n\t *\r\n\t * @return {CipherParams} A cipher params object with the key, IV, and salt.\r\n\t *\r\n\t * @static\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32);\r\n\t * var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');\r\n\t */\r\n\t execute: function (password, keySize, ivSize, salt, hasher) {\r\n\t // Generate random salt\r\n\t if (!salt) {\r\n\t salt = WordArray.random(64/8);\r\n\t }\r\n\r\n\t // Derive key and IV\r\n\t if (!hasher) {\r\n\t var key = EvpKDF.create({ keySize: keySize + ivSize }).compute(password, salt);\r\n\t } else {\r\n\t var key = EvpKDF.create({ keySize: keySize + ivSize, hasher: hasher }).compute(password, salt);\r\n\t }\r\n\r\n\r\n\t // Separate key and IV\r\n\t var iv = WordArray.create(key.words.slice(keySize), ivSize * 4);\r\n\t key.sigBytes = keySize * 4;\r\n\r\n\t // Return params\r\n\t return CipherParams.create({ key: key, iv: iv, salt: salt });\r\n\t }\r\n\t };\r\n\r\n\t /**\r\n\t * A serializable cipher wrapper that derives the key from a password,\r\n\t * and returns ciphertext as a serializable cipher params object.\r\n\t */\r\n\t var PasswordBasedCipher = C_lib.PasswordBasedCipher = SerializableCipher.extend({\r\n\t /**\r\n\t * Configuration options.\r\n\t *\r\n\t * @property {KDF} kdf The key derivation function to use to generate a key and IV from a password. Default: OpenSSL\r\n\t */\r\n\t cfg: SerializableCipher.cfg.extend({\r\n\t kdf: OpenSSLKdf\r\n\t }),\r\n\r\n\t /**\r\n\t * Encrypts a message using a password.\r\n\t *\r\n\t * @param {Cipher} cipher The cipher algorithm to use.\r\n\t * @param {WordArray|string} message The message to encrypt.\r\n\t * @param {string} password The password.\r\n\t * @param {Object} cfg (Optional) The configuration options to use for this operation.\r\n\t *\r\n\t * @return {CipherParams} A cipher params object.\r\n\t *\r\n\t * @static\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password');\r\n\t * var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password', { format: CryptoJS.format.OpenSSL });\r\n\t */\r\n\t encrypt: function (cipher, message, password, cfg) {\r\n\t // Apply config defaults\r\n\t cfg = this.cfg.extend(cfg);\r\n\r\n\t // Derive key and other params\r\n\t var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize, cfg.salt, cfg.hasher);\r\n\r\n\t // Add IV to config\r\n\t cfg.iv = derivedParams.iv;\r\n\r\n\t // Encrypt\r\n\t var ciphertext = SerializableCipher.encrypt.call(this, cipher, message, derivedParams.key, cfg);\r\n\r\n\t // Mix in derived params\r\n\t ciphertext.mixIn(derivedParams);\r\n\r\n\t return ciphertext;\r\n\t },\r\n\r\n\t /**\r\n\t * Decrypts serialized ciphertext using a password.\r\n\t *\r\n\t * @param {Cipher} cipher The cipher algorithm to use.\r\n\t * @param {CipherParams|string} ciphertext The ciphertext to decrypt.\r\n\t * @param {string} password The password.\r\n\t * @param {Object} cfg (Optional) The configuration options to use for this operation.\r\n\t *\r\n\t * @return {WordArray} The plaintext.\r\n\t *\r\n\t * @static\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, 'password', { format: CryptoJS.format.OpenSSL });\r\n\t * var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, 'password', { format: CryptoJS.format.OpenSSL });\r\n\t */\r\n\t decrypt: function (cipher, ciphertext, password, cfg) {\r\n\t // Apply config defaults\r\n\t cfg = this.cfg.extend(cfg);\r\n\r\n\t // Convert string to CipherParams\r\n\t ciphertext = this._parse(ciphertext, cfg.format);\r\n\r\n\t // Derive key and other params\r\n\t var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize, ciphertext.salt, cfg.hasher);\r\n\r\n\t // Add IV to config\r\n\t cfg.iv = derivedParams.iv;\r\n\r\n\t // Decrypt\r\n\t var plaintext = SerializableCipher.decrypt.call(this, cipher, ciphertext, derivedParams.key, cfg);\r\n\r\n\t return plaintext;\r\n\t }\r\n\t });\r\n\t}());\r\n\r\n\r\n}));", ";(function (root, factory, undef) {\r\n\tif (typeof exports === \"object\") {\r\n\t\t// CommonJS\r\n\t\tmodule.exports = exports = factory(require(\"./core\"), require(\"./cipher-core\"));\r\n\t}\r\n\telse if (typeof define === \"function\" && define.amd) {\r\n\t\t// AMD\r\n\t\tdefine([\"./core\", \"./cipher-core\"], factory);\r\n\t}\r\n\telse {\r\n\t\t// Global (browser)\r\n\t\tfactory(root.CryptoJS);\r\n\t}\r\n}(this, function (CryptoJS) {\r\n\r\n\t/**\r\n\t * Cipher Feedback block mode.\r\n\t */\r\n\tCryptoJS.mode.CFB = (function () {\r\n\t var CFB = CryptoJS.lib.BlockCipherMode.extend();\r\n\r\n\t CFB.Encryptor = CFB.extend({\r\n\t processBlock: function (words, offset) {\r\n\t // Shortcuts\r\n\t var cipher = this._cipher;\r\n\t var blockSize = cipher.blockSize;\r\n\r\n\t generateKeystreamAndEncrypt.call(this, words, offset, blockSize, cipher);\r\n\r\n\t // Remember this block to use with next block\r\n\t this._prevBlock = words.slice(offset, offset + blockSize);\r\n\t }\r\n\t });\r\n\r\n\t CFB.Decryptor = CFB.extend({\r\n\t processBlock: function (words, offset) {\r\n\t // Shortcuts\r\n\t var cipher = this._cipher;\r\n\t var blockSize = cipher.blockSize;\r\n\r\n\t // Remember this block to use with next block\r\n\t var thisBlock = words.slice(offset, offset + blockSize);\r\n\r\n\t generateKeystreamAndEncrypt.call(this, words, offset, blockSize, cipher);\r\n\r\n\t // This block becomes the previous block\r\n\t this._prevBlock = thisBlock;\r\n\t }\r\n\t });\r\n\r\n\t function generateKeystreamAndEncrypt(words, offset, blockSize, cipher) {\r\n\t var keystream;\r\n\r\n\t // Shortcut\r\n\t var iv = this._iv;\r\n\r\n\t // Generate keystream\r\n\t if (iv) {\r\n\t keystream = iv.slice(0);\r\n\r\n\t // Remove IV for subsequent blocks\r\n\t this._iv = undefined;\r\n\t } else {\r\n\t keystream = this._prevBlock;\r\n\t }\r\n\t cipher.encryptBlock(keystream, 0);\r\n\r\n\t // Encrypt\r\n\t for (var i = 0; i < blockSize; i++) {\r\n\t words[offset + i] ^= keystream[i];\r\n\t }\r\n\t }\r\n\r\n\t return CFB;\r\n\t}());\r\n\r\n\r\n\treturn CryptoJS.mode.CFB;\r\n\r\n}));", ";(function (root, factory, undef) {\r\n\tif (typeof exports === \"object\") {\r\n\t\t// CommonJS\r\n\t\tmodule.exports = exports = factory(require(\"./core\"), require(\"./cipher-core\"));\r\n\t}\r\n\telse if (typeof define === \"function\" && define.amd) {\r\n\t\t// AMD\r\n\t\tdefine([\"./core\", \"./cipher-core\"], factory);\r\n\t}\r\n\telse {\r\n\t\t// Global (browser)\r\n\t\tfactory(root.CryptoJS);\r\n\t}\r\n}(this, function (CryptoJS) {\r\n\r\n\t/**\r\n\t * Counter block mode.\r\n\t */\r\n\tCryptoJS.mode.CTR = (function () {\r\n\t var CTR = CryptoJS.lib.BlockCipherMode.extend();\r\n\r\n\t var Encryptor = CTR.Encryptor = CTR.extend({\r\n\t processBlock: function (words, offset) {\r\n\t // Shortcuts\r\n\t var cipher = this._cipher\r\n\t var blockSize = cipher.blockSize;\r\n\t var iv = this._iv;\r\n\t var counter = this._counter;\r\n\r\n\t // Generate keystream\r\n\t if (iv) {\r\n\t counter = this._counter = iv.slice(0);\r\n\r\n\t // Remove IV for subsequent blocks\r\n\t this._iv = undefined;\r\n\t }\r\n\t var keystream = counter.slice(0);\r\n\t cipher.encryptBlock(keystream, 0);\r\n\r\n\t // Increment counter\r\n\t counter[blockSize - 1] = (counter[blockSize - 1] + 1) | 0\r\n\r\n\t // Encrypt\r\n\t for (var i = 0; i < blockSize; i++) {\r\n\t words[offset + i] ^= keystream[i];\r\n\t }\r\n\t }\r\n\t });\r\n\r\n\t CTR.Decryptor = Encryptor;\r\n\r\n\t return CTR;\r\n\t}());\r\n\r\n\r\n\treturn CryptoJS.mode.CTR;\r\n\r\n}));", ";(function (root, factory, undef) {\r\n\tif (typeof exports === \"object\") {\r\n\t\t// CommonJS\r\n\t\tmodule.exports = exports = factory(require(\"./core\"), require(\"./cipher-core\"));\r\n\t}\r\n\telse if (typeof define === \"function\" && define.amd) {\r\n\t\t// AMD\r\n\t\tdefine([\"./core\", \"./cipher-core\"], factory);\r\n\t}\r\n\telse {\r\n\t\t// Global (browser)\r\n\t\tfactory(root.CryptoJS);\r\n\t}\r\n}(this, function (CryptoJS) {\r\n\r\n\t/** @preserve\r\n\t * Counter block mode compatible with Dr Brian Gladman fileenc.c\r\n\t * derived from CryptoJS.mode.CTR\r\n\t * Jan Hruby jhruby.web@gmail.com\r\n\t */\r\n\tCryptoJS.mode.CTRGladman = (function () {\r\n\t var CTRGladman = CryptoJS.lib.BlockCipherMode.extend();\r\n\r\n\t\tfunction incWord(word)\r\n\t\t{\r\n\t\t\tif (((word >> 24) & 0xff) === 0xff) { //overflow\r\n\t\t\tvar b1 = (word >> 16)&0xff;\r\n\t\t\tvar b2 = (word >> 8)&0xff;\r\n\t\t\tvar b3 = word & 0xff;\r\n\r\n\t\t\tif (b1 === 0xff) // overflow b1\r\n\t\t\t{\r\n\t\t\tb1 = 0;\r\n\t\t\tif (b2 === 0xff)\r\n\t\t\t{\r\n\t\t\t\tb2 = 0;\r\n\t\t\t\tif (b3 === 0xff)\r\n\t\t\t\t{\r\n\t\t\t\t\tb3 = 0;\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\t++b3;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t++b2;\r\n\t\t\t}\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t++b1;\r\n\t\t\t}\r\n\r\n\t\t\tword = 0;\r\n\t\t\tword += (b1 << 16);\r\n\t\t\tword += (b2 << 8);\r\n\t\t\tword += b3;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\tword += (0x01 << 24);\r\n\t\t\t}\r\n\t\t\treturn word;\r\n\t\t}\r\n\r\n\t\tfunction incCounter(counter)\r\n\t\t{\r\n\t\t\tif ((counter[0] = incWord(counter[0])) === 0)\r\n\t\t\t{\r\n\t\t\t\t// encr_data in fileenc.c from Dr Brian Gladman's counts only with DWORD j < 8\r\n\t\t\t\tcounter[1] = incWord(counter[1]);\r\n\t\t\t}\r\n\t\t\treturn counter;\r\n\t\t}\r\n\r\n\t var Encryptor = CTRGladman.Encryptor = CTRGladman.extend({\r\n\t processBlock: function (words, offset) {\r\n\t // Shortcuts\r\n\t var cipher = this._cipher\r\n\t var blockSize = cipher.blockSize;\r\n\t var iv = this._iv;\r\n\t var counter = this._counter;\r\n\r\n\t // Generate keystream\r\n\t if (iv) {\r\n\t counter = this._counter = iv.slice(0);\r\n\r\n\t // Remove IV for subsequent blocks\r\n\t this._iv = undefined;\r\n\t }\r\n\r\n\t\t\t\tincCounter(counter);\r\n\r\n\t\t\t\tvar keystream = counter.slice(0);\r\n\t cipher.encryptBlock(keystream, 0);\r\n\r\n\t // Encrypt\r\n\t for (var i = 0; i < blockSize; i++) {\r\n\t words[offset + i] ^= keystream[i];\r\n\t }\r\n\t }\r\n\t });\r\n\r\n\t CTRGladman.Decryptor = Encryptor;\r\n\r\n\t return CTRGladman;\r\n\t}());\r\n\r\n\r\n\r\n\r\n\treturn CryptoJS.mode.CTRGladman;\r\n\r\n}));", ";(function (root, factory, undef) {\r\n\tif (typeof exports === \"object\") {\r\n\t\t// CommonJS\r\n\t\tmodule.exports = exports = factory(require(\"./core\"), require(\"./cipher-core\"));\r\n\t}\r\n\telse if (typeof define === \"function\" && define.amd) {\r\n\t\t// AMD\r\n\t\tdefine([\"./core\", \"./cipher-core\"], factory);\r\n\t}\r\n\telse {\r\n\t\t// Global (browser)\r\n\t\tfactory(root.CryptoJS);\r\n\t}\r\n}(this, function (CryptoJS) {\r\n\r\n\t/**\r\n\t * Output Feedback block mode.\r\n\t */\r\n\tCryptoJS.mode.OFB = (function () {\r\n\t var OFB = CryptoJS.lib.BlockCipherMode.extend();\r\n\r\n\t var Encryptor = OFB.Encryptor = OFB.extend({\r\n\t processBlock: function (words, offset) {\r\n\t // Shortcuts\r\n\t var cipher = this._cipher\r\n\t var blockSize = cipher.blockSize;\r\n\t var iv = this._iv;\r\n\t var keystream = this._keystream;\r\n\r\n\t // Generate keystream\r\n\t if (iv) {\r\n\t keystream = this._keystream = iv.slice(0);\r\n\r\n\t // Remove IV for subsequent blocks\r\n\t this._iv = undefined;\r\n\t }\r\n\t cipher.encryptBlock(keystream, 0);\r\n\r\n\t // Encrypt\r\n\t for (var i = 0; i < blockSize; i++) {\r\n\t words[offset + i] ^= keystream[i];\r\n\t }\r\n\t }\r\n\t });\r\n\r\n\t OFB.Decryptor = Encryptor;\r\n\r\n\t return OFB;\r\n\t}());\r\n\r\n\r\n\treturn CryptoJS.mode.OFB;\r\n\r\n}));", ";(function (root, factory, undef) {\r\n\tif (typeof exports === \"object\") {\r\n\t\t// CommonJS\r\n\t\tmodule.exports = exports = factory(require(\"./core\"), require(\"./cipher-core\"));\r\n\t}\r\n\telse if (typeof define === \"function\" && define.amd) {\r\n\t\t// AMD\r\n\t\tdefine([\"./core\", \"./cipher-core\"], factory);\r\n\t}\r\n\telse {\r\n\t\t// Global (browser)\r\n\t\tfactory(root.CryptoJS);\r\n\t}\r\n}(this, function (CryptoJS) {\r\n\r\n\t/**\r\n\t * Electronic Codebook block mode.\r\n\t */\r\n\tCryptoJS.mode.ECB = (function () {\r\n\t var ECB = CryptoJS.lib.BlockCipherMode.extend();\r\n\r\n\t ECB.Encryptor = ECB.extend({\r\n\t processBlock: function (words, offset) {\r\n\t this._cipher.encryptBlock(words, offset);\r\n\t }\r\n\t });\r\n\r\n\t ECB.Decryptor = ECB.extend({\r\n\t processBlock: function (words, offset) {\r\n\t this._cipher.decryptBlock(words, offset);\r\n\t }\r\n\t });\r\n\r\n\t return ECB;\r\n\t}());\r\n\r\n\r\n\treturn CryptoJS.mode.ECB;\r\n\r\n}));", ";(function (root, factory, undef) {\r\n\tif (typeof exports === \"object\") {\r\n\t\t// CommonJS\r\n\t\tmodule.exports = exports = factory(require(\"./core\"), require(\"./cipher-core\"));\r\n\t}\r\n\telse if (typeof define === \"function\" && define.amd) {\r\n\t\t// AMD\r\n\t\tdefine([\"./core\", \"./cipher-core\"], factory);\r\n\t}\r\n\telse {\r\n\t\t// Global (browser)\r\n\t\tfactory(root.CryptoJS);\r\n\t}\r\n}(this, function (CryptoJS) {\r\n\r\n\t/**\r\n\t * ANSI X.923 padding strategy.\r\n\t */\r\n\tCryptoJS.pad.AnsiX923 = {\r\n\t pad: function (data, blockSize) {\r\n\t // Shortcuts\r\n\t var dataSigBytes = data.sigBytes;\r\n\t var blockSizeBytes = blockSize * 4;\r\n\r\n\t // Count padding bytes\r\n\t var nPaddingBytes = blockSizeBytes - dataSigBytes % blockSizeBytes;\r\n\r\n\t // Compute last byte position\r\n\t var lastBytePos = dataSigBytes + nPaddingBytes - 1;\r\n\r\n\t // Pad\r\n\t data.clamp();\r\n\t data.words[lastBytePos >>> 2] |= nPaddingBytes << (24 - (lastBytePos % 4) * 8);\r\n\t data.sigBytes += nPaddingBytes;\r\n\t },\r\n\r\n\t unpad: function (data) {\r\n\t // Get number of padding bytes from last byte\r\n\t var nPaddingBytes = data.words[(data.sigBytes - 1) >>> 2] & 0xff;\r\n\r\n\t // Remove padding\r\n\t data.sigBytes -= nPaddingBytes;\r\n\t }\r\n\t};\r\n\r\n\r\n\treturn CryptoJS.pad.Ansix923;\r\n\r\n}));", ";(function (root, factory, undef) {\r\n\tif (typeof exports === \"object\") {\r\n\t\t// CommonJS\r\n\t\tmodule.exports = exports = factory(require(\"./core\"), require(\"./cipher-core\"));\r\n\t}\r\n\telse if (typeof define === \"function\" && define.amd) {\r\n\t\t// AMD\r\n\t\tdefine([\"./core\", \"./cipher-core\"], factory);\r\n\t}\r\n\telse {\r\n\t\t// Global (browser)\r\n\t\tfactory(root.CryptoJS);\r\n\t}\r\n}(this, function (CryptoJS) {\r\n\r\n\t/**\r\n\t * ISO 10126 padding strategy.\r\n\t */\r\n\tCryptoJS.pad.Iso10126 = {\r\n\t pad: function (data, blockSize) {\r\n\t // Shortcut\r\n\t var blockSizeBytes = blockSize * 4;\r\n\r\n\t // Count padding bytes\r\n\t var nPaddingBytes = blockSizeBytes - data.sigBytes % blockSizeBytes;\r\n\r\n\t // Pad\r\n\t data.concat(CryptoJS.lib.WordArray.random(nPaddingBytes - 1)).\r\n\t concat(CryptoJS.lib.WordArray.create([nPaddingBytes << 24], 1));\r\n\t },\r\n\r\n\t unpad: function (data) {\r\n\t // Get number of padding bytes from last byte\r\n\t var nPaddingBytes = data.words[(data.sigBytes - 1) >>> 2] & 0xff;\r\n\r\n\t // Remove padding\r\n\t data.sigBytes -= nPaddingBytes;\r\n\t }\r\n\t};\r\n\r\n\r\n\treturn CryptoJS.pad.Iso10126;\r\n\r\n}));", ";(function (root, factory, undef) {\r\n\tif (typeof exports === \"object\") {\r\n\t\t// CommonJS\r\n\t\tmodule.exports = exports = factory(require(\"./core\"), require(\"./cipher-core\"));\r\n\t}\r\n\telse if (typeof define === \"function\" && define.amd) {\r\n\t\t// AMD\r\n\t\tdefine([\"./core\", \"./cipher-core\"], factory);\r\n\t}\r\n\telse {\r\n\t\t// Global (browser)\r\n\t\tfactory(root.CryptoJS);\r\n\t}\r\n}(this, function (CryptoJS) {\r\n\r\n\t/**\r\n\t * ISO/IEC 9797-1 Padding Method 2.\r\n\t */\r\n\tCryptoJS.pad.Iso97971 = {\r\n\t pad: function (data, blockSize) {\r\n\t // Add 0x80 byte\r\n\t data.concat(CryptoJS.lib.WordArray.create([0x80000000], 1));\r\n\r\n\t // Zero pad the rest\r\n\t CryptoJS.pad.ZeroPadding.pad(data, blockSize);\r\n\t },\r\n\r\n\t unpad: function (data) {\r\n\t // Remove zero padding\r\n\t CryptoJS.pad.ZeroPadding.unpad(data);\r\n\r\n\t // Remove one more byte -- the 0x80 byte\r\n\t data.sigBytes--;\r\n\t }\r\n\t};\r\n\r\n\r\n\treturn CryptoJS.pad.Iso97971;\r\n\r\n}));", ";(function (root, factory, undef) {\r\n\tif (typeof exports === \"object\") {\r\n\t\t// CommonJS\r\n\t\tmodule.exports = exports = factory(require(\"./core\"), require(\"./cipher-core\"));\r\n\t}\r\n\telse if (typeof define === \"function\" && define.amd) {\r\n\t\t// AMD\r\n\t\tdefine([\"./core\", \"./cipher-core\"], factory);\r\n\t}\r\n\telse {\r\n\t\t// Global (browser)\r\n\t\tfactory(root.CryptoJS);\r\n\t}\r\n}(this, function (CryptoJS) {\r\n\r\n\t/**\r\n\t * Zero padding strategy.\r\n\t */\r\n\tCryptoJS.pad.ZeroPadding = {\r\n\t pad: function (data, blockSize) {\r\n\t // Shortcut\r\n\t var blockSizeBytes = blockSize * 4;\r\n\r\n\t // Pad\r\n\t data.clamp();\r\n\t data.sigBytes += blockSizeBytes - ((data.sigBytes % blockSizeBytes) || blockSizeBytes);\r\n\t },\r\n\r\n\t unpad: function (data) {\r\n\t // Shortcut\r\n\t var dataWords = data.words;\r\n\r\n\t // Unpad\r\n\t var i = data.sigBytes - 1;\r\n\t for (var i = data.sigBytes - 1; i >= 0; i--) {\r\n\t if (((dataWords[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff)) {\r\n\t data.sigBytes = i + 1;\r\n\t break;\r\n\t }\r\n\t }\r\n\t }\r\n\t};\r\n\r\n\r\n\treturn CryptoJS.pad.ZeroPadding;\r\n\r\n}));", ";(function (root, factory, undef) {\r\n\tif (typeof exports === \"object\") {\r\n\t\t// CommonJS\r\n\t\tmodule.exports = exports = factory(require(\"./core\"), require(\"./cipher-core\"));\r\n\t}\r\n\telse if (typeof define === \"function\" && define.amd) {\r\n\t\t// AMD\r\n\t\tdefine([\"./core\", \"./cipher-core\"], factory);\r\n\t}\r\n\telse {\r\n\t\t// Global (browser)\r\n\t\tfactory(root.CryptoJS);\r\n\t}\r\n}(this, function (CryptoJS) {\r\n\r\n\t/**\r\n\t * A noop padding strategy.\r\n\t */\r\n\tCryptoJS.pad.NoPadding = {\r\n\t pad: function () {\r\n\t },\r\n\r\n\t unpad: function () {\r\n\t }\r\n\t};\r\n\r\n\r\n\treturn CryptoJS.pad.NoPadding;\r\n\r\n}));", ";(function (root, factory, undef) {\r\n\tif (typeof exports === \"object\") {\r\n\t\t// CommonJS\r\n\t\tmodule.exports = exports = factory(require(\"./core\"), require(\"./cipher-core\"));\r\n\t}\r\n\telse if (typeof define === \"function\" && define.amd) {\r\n\t\t// AMD\r\n\t\tdefine([\"./core\", \"./cipher-core\"], factory);\r\n\t}\r\n\telse {\r\n\t\t// Global (browser)\r\n\t\tfactory(root.CryptoJS);\r\n\t}\r\n}(this, function (CryptoJS) {\r\n\r\n\t(function (undefined) {\r\n\t // Shortcuts\r\n\t var C = CryptoJS;\r\n\t var C_lib = C.lib;\r\n\t var CipherParams = C_lib.CipherParams;\r\n\t var C_enc = C.enc;\r\n\t var Hex = C_enc.Hex;\r\n\t var C_format = C.format;\r\n\r\n\t var HexFormatter = C_format.Hex = {\r\n\t /**\r\n\t * Converts the ciphertext of a cipher params object to a hexadecimally encoded string.\r\n\t *\r\n\t * @param {CipherParams} cipherParams The cipher params object.\r\n\t *\r\n\t * @return {string} The hexadecimally encoded string.\r\n\t *\r\n\t * @static\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var hexString = CryptoJS.format.Hex.stringify(cipherParams);\r\n\t */\r\n\t stringify: function (cipherParams) {\r\n\t return cipherParams.ciphertext.toString(Hex);\r\n\t },\r\n\r\n\t /**\r\n\t * Converts a hexadecimally encoded ciphertext string to a cipher params object.\r\n\t *\r\n\t * @param {string} input The hexadecimally encoded string.\r\n\t *\r\n\t * @return {CipherParams} The cipher params object.\r\n\t *\r\n\t * @static\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var cipherParams = CryptoJS.format.Hex.parse(hexString);\r\n\t */\r\n\t parse: function (input) {\r\n\t var ciphertext = Hex.parse(input);\r\n\t return CipherParams.create({ ciphertext: ciphertext });\r\n\t }\r\n\t };\r\n\t}());\r\n\r\n\r\n\treturn CryptoJS.format.Hex;\r\n\r\n}));", ";(function (root, factory, undef) {\r\n\tif (typeof exports === \"object\") {\r\n\t\t// CommonJS\r\n\t\tmodule.exports = exports = factory(require(\"./core\"), require(\"./enc-base64\"), require(\"./md5\"), require(\"./evpkdf\"), require(\"./cipher-core\"));\r\n\t}\r\n\telse if (typeof define === \"function\" && define.amd) {\r\n\t\t// AMD\r\n\t\tdefine([\"./core\", \"./enc-base64\", \"./md5\", \"./evpkdf\", \"./cipher-core\"], factory);\r\n\t}\r\n\telse {\r\n\t\t// Global (browser)\r\n\t\tfactory(root.CryptoJS);\r\n\t}\r\n}(this, function (CryptoJS) {\r\n\r\n\t(function () {\r\n\t // Shortcuts\r\n\t var C = CryptoJS;\r\n\t var C_lib = C.lib;\r\n\t var BlockCipher = C_lib.BlockCipher;\r\n\t var C_algo = C.algo;\r\n\r\n\t // Lookup tables\r\n\t var SBOX = [];\r\n\t var INV_SBOX = [];\r\n\t var SUB_MIX_0 = [];\r\n\t var SUB_MIX_1 = [];\r\n\t var SUB_MIX_2 = [];\r\n\t var SUB_MIX_3 = [];\r\n\t var INV_SUB_MIX_0 = [];\r\n\t var INV_SUB_MIX_1 = [];\r\n\t var INV_SUB_MIX_2 = [];\r\n\t var INV_SUB_MIX_3 = [];\r\n\r\n\t // Compute lookup tables\r\n\t (function () {\r\n\t // Compute double table\r\n\t var d = [];\r\n\t for (var i = 0; i < 256; i++) {\r\n\t if (i < 128) {\r\n\t d[i] = i << 1;\r\n\t } else {\r\n\t d[i] = (i << 1) ^ 0x11b;\r\n\t }\r\n\t }\r\n\r\n\t // Walk GF(2^8)\r\n\t var x = 0;\r\n\t var xi = 0;\r\n\t for (var i = 0; i < 256; i++) {\r\n\t // Compute sbox\r\n\t var sx = xi ^ (xi << 1) ^ (xi << 2) ^ (xi << 3) ^ (xi << 4);\r\n\t sx = (sx >>> 8) ^ (sx & 0xff) ^ 0x63;\r\n\t SBOX[x] = sx;\r\n\t INV_SBOX[sx] = x;\r\n\r\n\t // Compute multiplication\r\n\t var x2 = d[x];\r\n\t var x4 = d[x2];\r\n\t var x8 = d[x4];\r\n\r\n\t // Compute sub bytes, mix columns tables\r\n\t var t = (d[sx] * 0x101) ^ (sx * 0x1010100);\r\n\t SUB_MIX_0[x] = (t << 24) | (t >>> 8);\r\n\t SUB_MIX_1[x] = (t << 16) | (t >>> 16);\r\n\t SUB_MIX_2[x] = (t << 8) | (t >>> 24);\r\n\t SUB_MIX_3[x] = t;\r\n\r\n\t // Compute inv sub bytes, inv mix columns tables\r\n\t var t = (x8 * 0x1010101) ^ (x4 * 0x10001) ^ (x2 * 0x101) ^ (x * 0x1010100);\r\n\t INV_SUB_MIX_0[sx] = (t << 24) | (t >>> 8);\r\n\t INV_SUB_MIX_1[sx] = (t << 16) | (t >>> 16);\r\n\t INV_SUB_MIX_2[sx] = (t << 8) | (t >>> 24);\r\n\t INV_SUB_MIX_3[sx] = t;\r\n\r\n\t // Compute next counter\r\n\t if (!x) {\r\n\t x = xi = 1;\r\n\t } else {\r\n\t x = x2 ^ d[d[d[x8 ^ x2]]];\r\n\t xi ^= d[d[xi]];\r\n\t }\r\n\t }\r\n\t }());\r\n\r\n\t // Precomputed Rcon lookup\r\n\t var RCON = [0x00, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36];\r\n\r\n\t /**\r\n\t * AES block cipher algorithm.\r\n\t */\r\n\t var AES = C_algo.AES = BlockCipher.extend({\r\n\t _doReset: function () {\r\n\t var t;\r\n\r\n\t // Skip reset of nRounds has been set before and key did not change\r\n\t if (this._nRounds && this._keyPriorReset === this._key) {\r\n\t return;\r\n\t }\r\n\r\n\t // Shortcuts\r\n\t var key = this._keyPriorReset = this._key;\r\n\t var keyWords = key.words;\r\n\t var keySize = key.sigBytes / 4;\r\n\r\n\t // Compute number of rounds\r\n\t var nRounds = this._nRounds = keySize + 6;\r\n\r\n\t // Compute number of key schedule rows\r\n\t var ksRows = (nRounds + 1) * 4;\r\n\r\n\t // Compute key schedule\r\n\t var keySchedule = this._keySchedule = [];\r\n\t for (var ksRow = 0; ksRow < ksRows; ksRow++) {\r\n\t if (ksRow < keySize) {\r\n\t keySchedule[ksRow] = keyWords[ksRow];\r\n\t } else {\r\n\t t = keySchedule[ksRow - 1];\r\n\r\n\t if (!(ksRow % keySize)) {\r\n\t // Rot word\r\n\t t = (t << 8) | (t >>> 24);\r\n\r\n\t // Sub word\r\n\t t = (SBOX[t >>> 24] << 24) | (SBOX[(t >>> 16) & 0xff] << 16) | (SBOX[(t >>> 8) & 0xff] << 8) | SBOX[t & 0xff];\r\n\r\n\t // Mix Rcon\r\n\t t ^= RCON[(ksRow / keySize) | 0] << 24;\r\n\t } else if (keySize > 6 && ksRow % keySize == 4) {\r\n\t // Sub word\r\n\t t = (SBOX[t >>> 24] << 24) | (SBOX[(t >>> 16) & 0xff] << 16) | (SBOX[(t >>> 8) & 0xff] << 8) | SBOX[t & 0xff];\r\n\t }\r\n\r\n\t keySchedule[ksRow] = keySchedule[ksRow - keySize] ^ t;\r\n\t }\r\n\t }\r\n\r\n\t // Compute inv key schedule\r\n\t var invKeySchedule = this._invKeySchedule = [];\r\n\t for (var invKsRow = 0; invKsRow < ksRows; invKsRow++) {\r\n\t var ksRow = ksRows - invKsRow;\r\n\r\n\t if (invKsRow % 4) {\r\n\t var t = keySchedule[ksRow];\r\n\t } else {\r\n\t var t = keySchedule[ksRow - 4];\r\n\t }\r\n\r\n\t if (invKsRow < 4 || ksRow <= 4) {\r\n\t invKeySchedule[invKsRow] = t;\r\n\t } else {\r\n\t invKeySchedule[invKsRow] = INV_SUB_MIX_0[SBOX[t >>> 24]] ^ INV_SUB_MIX_1[SBOX[(t >>> 16) & 0xff]] ^\r\n\t INV_SUB_MIX_2[SBOX[(t >>> 8) & 0xff]] ^ INV_SUB_MIX_3[SBOX[t & 0xff]];\r\n\t }\r\n\t }\r\n\t },\r\n\r\n\t encryptBlock: function (M, offset) {\r\n\t this._doCryptBlock(M, offset, this._keySchedule, SUB_MIX_0, SUB_MIX_1, SUB_MIX_2, SUB_MIX_3, SBOX);\r\n\t },\r\n\r\n\t decryptBlock: function (M, offset) {\r\n\t // Swap 2nd and 4th rows\r\n\t var t = M[offset + 1];\r\n\t M[offset + 1] = M[offset + 3];\r\n\t M[offset + 3] = t;\r\n\r\n\t this._doCryptBlock(M, offset, this._invKeySchedule, INV_SUB_MIX_0, INV_SUB_MIX_1, INV_SUB_MIX_2, INV_SUB_MIX_3, INV_SBOX);\r\n\r\n\t // Inv swap 2nd and 4th rows\r\n\t var t = M[offset + 1];\r\n\t M[offset + 1] = M[offset + 3];\r\n\t M[offset + 3] = t;\r\n\t },\r\n\r\n\t _doCryptBlock: function (M, offset, keySchedule, SUB_MIX_0, SUB_MIX_1, SUB_MIX_2, SUB_MIX_3, SBOX) {\r\n\t // Shortcut\r\n\t var nRounds = this._nRounds;\r\n\r\n\t // Get input, add round key\r\n\t var s0 = M[offset] ^ keySchedule[0];\r\n\t var s1 = M[offset + 1] ^ keySchedule[1];\r\n\t var s2 = M[offset + 2] ^ keySchedule[2];\r\n\t var s3 = M[offset + 3] ^ keySchedule[3];\r\n\r\n\t // Key schedule row counter\r\n\t var ksRow = 4;\r\n\r\n\t // Rounds\r\n\t for (var round = 1; round < nRounds; round++) {\r\n\t // Shift rows, sub bytes, mix columns, add round key\r\n\t var t0 = SUB_MIX_0[s0 >>> 24] ^ SUB_MIX_1[(s1 >>> 16) & 0xff] ^ SUB_MIX_2[(s2 >>> 8) & 0xff] ^ SUB_MIX_3[s3 & 0xff] ^ keySchedule[ksRow++];\r\n\t var t1 = SUB_MIX_0[s1 >>> 24] ^ SUB_MIX_1[(s2 >>> 16) & 0xff] ^ SUB_MIX_2[(s3 >>> 8) & 0xff] ^ SUB_MIX_3[s0 & 0xff] ^ keySchedule[ksRow++];\r\n\t var t2 = SUB_MIX_0[s2 >>> 24] ^ SUB_MIX_1[(s3 >>> 16) & 0xff] ^ SUB_MIX_2[(s0 >>> 8) & 0xff] ^ SUB_MIX_3[s1 & 0xff] ^ keySchedule[ksRow++];\r\n\t var t3 = SUB_MIX_0[s3 >>> 24] ^ SUB_MIX_1[(s0 >>> 16) & 0xff] ^ SUB_MIX_2[(s1 >>> 8) & 0xff] ^ SUB_MIX_3[s2 & 0xff] ^ keySchedule[ksRow++];\r\n\r\n\t // Update state\r\n\t s0 = t0;\r\n\t s1 = t1;\r\n\t s2 = t2;\r\n\t s3 = t3;\r\n\t }\r\n\r\n\t // Shift rows, sub bytes, add round key\r\n\t var t0 = ((SBOX[s0 >>> 24] << 24) | (SBOX[(s1 >>> 16) & 0xff] << 16) | (SBOX[(s2 >>> 8) & 0xff] << 8) | SBOX[s3 & 0xff]) ^ keySchedule[ksRow++];\r\n\t var t1 = ((SBOX[s1 >>> 24] << 24) | (SBOX[(s2 >>> 16) & 0xff] << 16) | (SBOX[(s3 >>> 8) & 0xff] << 8) | SBOX[s0 & 0xff]) ^ keySchedule[ksRow++];\r\n\t var t2 = ((SBOX[s2 >>> 24] << 24) | (SBOX[(s3 >>> 16) & 0xff] << 16) | (SBOX[(s0 >>> 8) & 0xff] << 8) | SBOX[s1 & 0xff]) ^ keySchedule[ksRow++];\r\n\t var t3 = ((SBOX[s3 >>> 24] << 24) | (SBOX[(s0 >>> 16) & 0xff] << 16) | (SBOX[(s1 >>> 8) & 0xff] << 8) | SBOX[s2 & 0xff]) ^ keySchedule[ksRow++];\r\n\r\n\t // Set output\r\n\t M[offset] = t0;\r\n\t M[offset + 1] = t1;\r\n\t M[offset + 2] = t2;\r\n\t M[offset + 3] = t3;\r\n\t },\r\n\r\n\t keySize: 256/32\r\n\t });\r\n\r\n\t /**\r\n\t * Shortcut functions to the cipher's object interface.\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var ciphertext = CryptoJS.AES.encrypt(message, key, cfg);\r\n\t * var plaintext = CryptoJS.AES.decrypt(ciphertext, key, cfg);\r\n\t */\r\n\t C.AES = BlockCipher._createHelper(AES);\r\n\t}());\r\n\r\n\r\n\treturn CryptoJS.AES;\r\n\r\n}));", ";(function (root, factory, undef) {\r\n\tif (typeof exports === \"object\") {\r\n\t\t// CommonJS\r\n\t\tmodule.exports = exports = factory(require(\"./core\"), require(\"./enc-base64\"), require(\"./md5\"), require(\"./evpkdf\"), require(\"./cipher-core\"));\r\n\t}\r\n\telse if (typeof define === \"function\" && define.amd) {\r\n\t\t// AMD\r\n\t\tdefine([\"./core\", \"./enc-base64\", \"./md5\", \"./evpkdf\", \"./cipher-core\"], factory);\r\n\t}\r\n\telse {\r\n\t\t// Global (browser)\r\n\t\tfactory(root.CryptoJS);\r\n\t}\r\n}(this, function (CryptoJS) {\r\n\r\n\t(function () {\r\n\t // Shortcuts\r\n\t var C = CryptoJS;\r\n\t var C_lib = C.lib;\r\n\t var WordArray = C_lib.WordArray;\r\n\t var BlockCipher = C_lib.BlockCipher;\r\n\t var C_algo = C.algo;\r\n\r\n\t // Permuted Choice 1 constants\r\n\t var PC1 = [\r\n\t 57, 49, 41, 33, 25, 17, 9, 1,\r\n\t 58, 50, 42, 34, 26, 18, 10, 2,\r\n\t 59, 51, 43, 35, 27, 19, 11, 3,\r\n\t 60, 52, 44, 36, 63, 55, 47, 39,\r\n\t 31, 23, 15, 7, 62, 54, 46, 38,\r\n\t 30, 22, 14, 6, 61, 53, 45, 37,\r\n\t 29, 21, 13, 5, 28, 20, 12, 4\r\n\t ];\r\n\r\n\t // Permuted Choice 2 constants\r\n\t var PC2 = [\r\n\t 14, 17, 11, 24, 1, 5,\r\n\t 3, 28, 15, 6, 21, 10,\r\n\t 23, 19, 12, 4, 26, 8,\r\n\t 16, 7, 27, 20, 13, 2,\r\n\t 41, 52, 31, 37, 47, 55,\r\n\t 30, 40, 51, 45, 33, 48,\r\n\t 44, 49, 39, 56, 34, 53,\r\n\t 46, 42, 50, 36, 29, 32\r\n\t ];\r\n\r\n\t // Cumulative bit shift constants\r\n\t var BIT_SHIFTS = [1, 2, 4, 6, 8, 10, 12, 14, 15, 17, 19, 21, 23, 25, 27, 28];\r\n\r\n\t // SBOXes and round permutation constants\r\n\t var SBOX_P = [\r\n\t {\r\n\t 0x0: 0x808200,\r\n\t 0x10000000: 0x8000,\r\n\t 0x20000000: 0x808002,\r\n\t 0x30000000: 0x2,\r\n\t 0x40000000: 0x200,\r\n\t 0x50000000: 0x808202,\r\n\t 0x60000000: 0x800202,\r\n\t 0x70000000: 0x800000,\r\n\t 0x80000000: 0x202,\r\n\t 0x90000000: 0x800200,\r\n\t 0xa0000000: 0x8200,\r\n\t 0xb0000000: 0x808000,\r\n\t 0xc0000000: 0x8002,\r\n\t 0xd0000000: 0x800002,\r\n\t 0xe0000000: 0x0,\r\n\t 0xf0000000: 0x8202,\r\n\t 0x8000000: 0x0,\r\n\t 0x18000000: 0x808202,\r\n\t 0x28000000: 0x8202,\r\n\t 0x38000000: 0x8000,\r\n\t 0x48000000: 0x808200,\r\n\t 0x58000000: 0x200,\r\n\t 0x68000000: 0x808002,\r\n\t 0x78000000: 0x2,\r\n\t 0x88000000: 0x800200,\r\n\t 0x98000000: 0x8200,\r\n\t 0xa8000000: 0x808000,\r\n\t 0xb8000000: 0x800202,\r\n\t 0xc8000000: 0x800002,\r\n\t 0xd8000000: 0x8002,\r\n\t 0xe8000000: 0x202,\r\n\t 0xf8000000: 0x800000,\r\n\t 0x1: 0x8000,\r\n\t 0x10000001: 0x2,\r\n\t 0x20000001: 0x808200,\r\n\t 0x30000001: 0x800000,\r\n\t 0x40000001: 0x808002,\r\n\t 0x50000001: 0x8200,\r\n\t 0x60000001: 0x200,\r\n\t 0x70000001: 0x800202,\r\n\t 0x80000001: 0x808202,\r\n\t 0x90000001: 0x808000,\r\n\t 0xa0000001: 0x800002,\r\n\t 0xb0000001: 0x8202,\r\n\t 0xc0000001: 0x202,\r\n\t 0xd0000001: 0x800200,\r\n\t 0xe0000001: 0x8002,\r\n\t 0xf0000001: 0x0,\r\n\t 0x8000001: 0x808202,\r\n\t 0x18000001: 0x808000,\r\n\t 0x28000001: 0x800000,\r\n\t 0x38000001: 0x200,\r\n\t 0x48000001: 0x8000,\r\n\t 0x58000001: 0x800002,\r\n\t 0x68000001: 0x2,\r\n\t 0x78000001: 0x8202,\r\n\t 0x88000001: 0x8002,\r\n\t 0x98000001: 0x800202,\r\n\t 0xa8000001: 0x202,\r\n\t 0xb8000001: 0x808200,\r\n\t 0xc8000001: 0x800200,\r\n\t 0xd8000001: 0x0,\r\n\t 0xe8000001: 0x8200,\r\n\t 0xf8000001: 0x808002\r\n\t },\r\n\t {\r\n\t 0x0: 0x40084010,\r\n\t 0x1000000: 0x4000,\r\n\t 0x2000000: 0x80000,\r\n\t 0x3000000: 0x40080010,\r\n\t 0x4000000: 0x40000010,\r\n\t 0x5000000: 0x40084000,\r\n\t 0x6000000: 0x40004000,\r\n\t 0x7000000: 0x10,\r\n\t 0x8000000: 0x84000,\r\n\t 0x9000000: 0x40004010,\r\n\t 0xa000000: 0x40000000,\r\n\t 0xb000000: 0x84010,\r\n\t 0xc000000: 0x80010,\r\n\t 0xd000000: 0x0,\r\n\t 0xe000000: 0x4010,\r\n\t 0xf000000: 0x40080000,\r\n\t 0x800000: 0x40004000,\r\n\t 0x1800000: 0x84010,\r\n\t 0x2800000: 0x10,\r\n\t 0x3800000: 0x40004010,\r\n\t 0x4800000: 0x40084010,\r\n\t 0x5800000: 0x40000000,\r\n\t 0x6800000: 0x80000,\r\n\t 0x7800000: 0x40080010,\r\n\t 0x8800000: 0x80010,\r\n\t 0x9800000: 0x0,\r\n\t 0xa800000: 0x4000,\r\n\t 0xb800000: 0x40080000,\r\n\t 0xc800000: 0x40000010,\r\n\t 0xd800000: 0x84000,\r\n\t 0xe800000: 0x40084000,\r\n\t 0xf800000: 0x4010,\r\n\t 0x10000000: 0x0,\r\n\t 0x11000000: 0x40080010,\r\n\t 0x12000000: 0x40004010,\r\n\t 0x13000000: 0x40084000,\r\n\t 0x14000000: 0x40080000,\r\n\t 0x15000000: 0x10,\r\n\t 0x16000000: 0x84010,\r\n\t 0x17000000: 0x4000,\r\n\t 0x18000000: 0x4010,\r\n\t 0x19000000: 0x80000,\r\n\t 0x1a000000: 0x80010,\r\n\t 0x1b000000: 0x40000010,\r\n\t 0x1c000000: 0x84000,\r\n\t 0x1d000000: 0x40004000,\r\n\t 0x1e000000: 0x40000000,\r\n\t 0x1f000000: 0x40084010,\r\n\t 0x10800000: 0x84010,\r\n\t 0x11800000: 0x80000,\r\n\t 0x12800000: 0x40080000,\r\n\t 0x13800000: 0x4000,\r\n\t 0x14800000: 0x40004000,\r\n\t 0x15800000: 0x40084010,\r\n\t 0x16800000: 0x10,\r\n\t 0x17800000: 0x40000000,\r\n\t 0x18800000: 0x40084000,\r\n\t 0x19800000: 0x40000010,\r\n\t 0x1a800000: 0x40004010,\r\n\t 0x1b800000: 0x80010,\r\n\t 0x1c800000: 0x0,\r\n\t 0x1d800000: 0x4010,\r\n\t 0x1e800000: 0x40080010,\r\n\t 0x1f800000: 0x84000\r\n\t },\r\n\t {\r\n\t 0x0: 0x104,\r\n\t 0x100000: 0x0,\r\n\t 0x200000: 0x4000100,\r\n\t 0x300000: 0x10104,\r\n\t 0x400000: 0x10004,\r\n\t 0x500000: 0x4000004,\r\n\t 0x600000: 0x4010104,\r\n\t 0x700000: 0x4010000,\r\n\t 0x800000: 0x4000000,\r\n\t 0x900000: 0x4010100,\r\n\t 0xa00000: 0x10100,\r\n\t 0xb00000: 0x4010004,\r\n\t 0xc00000: 0x4000104,\r\n\t 0xd00000: 0x10000,\r\n\t 0xe00000: 0x4,\r\n\t 0xf00000: 0x100,\r\n\t 0x80000: 0x4010100,\r\n\t 0x180000: 0x4010004,\r\n\t 0x280000: 0x0,\r\n\t 0x380000: 0x4000100,\r\n\t 0x480000: 0x4000004,\r\n\t 0x580000: 0x10000,\r\n\t 0x680000: 0x10004,\r\n\t 0x780000: 0x104,\r\n\t 0x880000: 0x4,\r\n\t 0x980000: 0x100,\r\n\t 0xa80000: 0x4010000,\r\n\t 0xb80000: 0x10104,\r\n\t 0xc80000: 0x10100,\r\n\t 0xd80000: 0x4000104,\r\n\t 0xe80000: 0x4010104,\r\n\t 0xf80000: 0x4000000,\r\n\t 0x1000000: 0x4010100,\r\n\t 0x1100000: 0x10004,\r\n\t 0x1200000: 0x10000,\r\n\t 0x1300000: 0x4000100,\r\n\t 0x1400000: 0x100,\r\n\t 0x1500000: 0x4010104,\r\n\t 0x1600000: 0x4000004,\r\n\t 0x1700000: 0x0,\r\n\t 0x1800000: 0x4000104,\r\n\t 0x1900000: 0x4000000,\r\n\t 0x1a00000: 0x4,\r\n\t 0x1b00000: 0x10100,\r\n\t 0x1c00000: 0x4010000,\r\n\t 0x1d00000: 0x104,\r\n\t 0x1e00000: 0x10104,\r\n\t 0x1f00000: 0x4010004,\r\n\t 0x1080000: 0x4000000,\r\n\t 0x1180000: 0x104,\r\n\t 0x1280000: 0x4010100,\r\n\t 0x1380000: 0x0,\r\n\t 0x1480000: 0x10004,\r\n\t 0x1580000: 0x4000100,\r\n\t 0x1680000: 0x100,\r\n\t 0x1780000: 0x4010004,\r\n\t 0x1880000: 0x10000,\r\n\t 0x1980000: 0x4010104,\r\n\t 0x1a80000: 0x10104,\r\n\t 0x1b80000: 0x4000004,\r\n\t 0x1c80000: 0x4000104,\r\n\t 0x1d80000: 0x4010000,\r\n\t 0x1e80000: 0x4,\r\n\t 0x1f80000: 0x10100\r\n\t },\r\n\t {\r\n\t 0x0: 0x80401000,\r\n\t 0x10000: 0x80001040,\r\n\t 0x20000: 0x401040,\r\n\t 0x30000: 0x80400000,\r\n\t 0x40000: 0x0,\r\n\t 0x50000: 0x401000,\r\n\t 0x60000: 0x80000040,\r\n\t 0x70000: 0x400040,\r\n\t 0x80000: 0x80000000,\r\n\t 0x90000: 0x400000,\r\n\t 0xa0000: 0x40,\r\n\t 0xb0000: 0x80001000,\r\n\t 0xc0000: 0x80400040,\r\n\t 0xd0000: 0x1040,\r\n\t 0xe0000: 0x1000,\r\n\t 0xf0000: 0x80401040,\r\n\t 0x8000: 0x80001040,\r\n\t 0x18000: 0x40,\r\n\t 0x28000: 0x80400040,\r\n\t 0x38000: 0x80001000,\r\n\t 0x48000: 0x401000,\r\n\t 0x58000: 0x80401040,\r\n\t 0x68000: 0x0,\r\n\t 0x78000: 0x80400000,\r\n\t 0x88000: 0x1000,\r\n\t 0x98000: 0x80401000,\r\n\t 0xa8000: 0x400000,\r\n\t 0xb8000: 0x1040,\r\n\t 0xc8000: 0x80000000,\r\n\t 0xd8000: 0x400040,\r\n\t 0xe8000: 0x401040,\r\n\t 0xf8000: 0x80000040,\r\n\t 0x100000: 0x400040,\r\n\t 0x110000: 0x401000,\r\n\t 0x120000: 0x80000040,\r\n\t 0x130000: 0x0,\r\n\t 0x140000: 0x1040,\r\n\t 0x150000: 0x80400040,\r\n\t 0x160000: 0x80401000,\r\n\t 0x170000: 0x80001040,\r\n\t 0x180000: 0x80401040,\r\n\t 0x190000: 0x80000000,\r\n\t 0x1a0000: 0x80400000,\r\n\t 0x1b0000: 0x401040,\r\n\t 0x1c0000: 0x80001000,\r\n\t 0x1d0000: 0x400000,\r\n\t 0x1e0000: 0x40,\r\n\t 0x1f0000: 0x1000,\r\n\t 0x108000: 0x80400000,\r\n\t 0x118000: 0x80401040,\r\n\t 0x128000: 0x0,\r\n\t 0x138000: 0x401000,\r\n\t 0x148000: 0x400040,\r\n\t 0x158000: 0x80000000,\r\n\t 0x168000: 0x80001040,\r\n\t 0x178000: 0x40,\r\n\t 0x188000: 0x80000040,\r\n\t 0x198000: 0x1000,\r\n\t 0x1a8000: 0x80001000,\r\n\t 0x1b8000: 0x80400040,\r\n\t 0x1c8000: 0x1040,\r\n\t 0x1d8000: 0x80401000,\r\n\t 0x1e8000: 0x400000,\r\n\t 0x1f8000: 0x401040\r\n\t },\r\n\t {\r\n\t 0x0: 0x80,\r\n\t 0x1000: 0x1040000,\r\n\t 0x2000: 0x40000,\r\n\t 0x3000: 0x20000000,\r\n\t 0x4000: 0x20040080,\r\n\t 0x5000: 0x1000080,\r\n\t 0x6000: 0x21000080,\r\n\t 0x7000: 0x40080,\r\n\t 0x8000: 0x1000000,\r\n\t 0x9000: 0x20040000,\r\n\t 0xa000: 0x20000080,\r\n\t 0xb000: 0x21040080,\r\n\t 0xc000: 0x21040000,\r\n\t 0xd000: 0x0,\r\n\t 0xe000: 0x1040080,\r\n\t 0xf000: 0x21000000,\r\n\t 0x800: 0x1040080,\r\n\t 0x1800: 0x21000080,\r\n\t 0x2800: 0x80,\r\n\t 0x3800: 0x1040000,\r\n\t 0x4800: 0x40000,\r\n\t 0x5800: 0x20040080,\r\n\t 0x6800: 0x21040000,\r\n\t 0x7800: 0x20000000,\r\n\t 0x8800: 0x20040000,\r\n\t 0x9800: 0x0,\r\n\t 0xa800: 0x21040080,\r\n\t 0xb800: 0x1000080,\r\n\t 0xc800: 0x20000080,\r\n\t 0xd800: 0x21000000,\r\n\t 0xe800: 0x1000000,\r\n\t 0xf800: 0x40080,\r\n\t 0x10000: 0x40000,\r\n\t 0x11000: 0x80,\r\n\t 0x12000: 0x20000000,\r\n\t 0x13000: 0x21000080,\r\n\t 0x14000: 0x1000080,\r\n\t 0x15000: 0x21040000,\r\n\t 0x16000: 0x20040080,\r\n\t 0x17000: 0x1000000,\r\n\t 0x18000: 0x21040080,\r\n\t 0x19000: 0x21000000,\r\n\t 0x1a000: 0x1040000,\r\n\t 0x1b000: 0x20040000,\r\n\t 0x1c000: 0x40080,\r\n\t 0x1d000: 0x20000080,\r\n\t 0x1e000: 0x0,\r\n\t 0x1f000: 0x1040080,\r\n\t 0x10800: 0x21000080,\r\n\t 0x11800: 0x1000000,\r\n\t 0x12800: 0x1040000,\r\n\t 0x13800: 0x20040080,\r\n\t 0x14800: 0x20000000,\r\n\t 0x15800: 0x1040080,\r\n\t 0x16800: 0x80,\r\n\t 0x17800: 0x21040000,\r\n\t 0x18800: 0x40080,\r\n\t 0x19800: 0x21040080,\r\n\t 0x1a800: 0x0,\r\n\t 0x1b800: 0x21000000,\r\n\t 0x1c800: 0x1000080,\r\n\t 0x1d800: 0x40000,\r\n\t 0x1e800: 0x20040000,\r\n\t 0x1f800: 0x20000080\r\n\t },\r\n\t {\r\n\t 0x0: 0x10000008,\r\n\t 0x100: 0x2000,\r\n\t 0x200: 0x10200000,\r\n\t 0x300: 0x10202008,\r\n\t 0x400: 0x10002000,\r\n\t 0x500: 0x200000,\r\n\t 0x600: 0x200008,\r\n\t 0x700: 0x10000000,\r\n\t 0x800: 0x0,\r\n\t 0x900: 0x10002008,\r\n\t 0xa00: 0x202000,\r\n\t 0xb00: 0x8,\r\n\t 0xc00: 0x10200008,\r\n\t 0xd00: 0x202008,\r\n\t 0xe00: 0x2008,\r\n\t 0xf00: 0x10202000,\r\n\t 0x80: 0x10200000,\r\n\t 0x180: 0x10202008,\r\n\t 0x280: 0x8,\r\n\t 0x380: 0x200000,\r\n\t 0x480: 0x202008,\r\n\t 0x580: 0x10000008,\r\n\t 0x680: 0x10002000,\r\n\t 0x780: 0x2008,\r\n\t 0x880: 0x200008,\r\n\t 0x980: 0x2000,\r\n\t 0xa80: 0x10002008,\r\n\t 0xb80: 0x10200008,\r\n\t 0xc80: 0x0,\r\n\t 0xd80: 0x10202000,\r\n\t 0xe80: 0x202000,\r\n\t 0xf80: 0x10000000,\r\n\t 0x1000: 0x10002000,\r\n\t 0x1100: 0x10200008,\r\n\t 0x1200: 0x10202008,\r\n\t 0x1300: 0x2008,\r\n\t 0x1400: 0x200000,\r\n\t 0x1500: 0x10000000,\r\n\t 0x1600: 0x10000008,\r\n\t 0x1700: 0x202000,\r\n\t 0x1800: 0x202008,\r\n\t 0x1900: 0x0,\r\n\t 0x1a00: 0x8,\r\n\t 0x1b00: 0x10200000,\r\n\t 0x1c00: 0x2000,\r\n\t 0x1d00: 0x10002008,\r\n\t 0x1e00: 0x10202000,\r\n\t 0x1f00: 0x200008,\r\n\t 0x1080: 0x8,\r\n\t 0x1180: 0x202000,\r\n\t 0x1280: 0x200000,\r\n\t 0x1380: 0x10000008,\r\n\t 0x1480: 0x10002000,\r\n\t 0x1580: 0x2008,\r\n\t 0x1680: 0x10202008,\r\n\t 0x1780: 0x10200000,\r\n\t 0x1880: 0x10202000,\r\n\t 0x1980: 0x10200008,\r\n\t 0x1a80: 0x2000,\r\n\t 0x1b80: 0x202008,\r\n\t 0x1c80: 0x200008,\r\n\t 0x1d80: 0x0,\r\n\t 0x1e80: 0x10000000,\r\n\t 0x1f80: 0x10002008\r\n\t },\r\n\t {\r\n\t 0x0: 0x100000,\r\n\t 0x10: 0x2000401,\r\n\t 0x20: 0x400,\r\n\t 0x30: 0x100401,\r\n\t 0x40: 0x2100401,\r\n\t 0x50: 0x0,\r\n\t 0x60: 0x1,\r\n\t 0x70: 0x2100001,\r\n\t 0x80: 0x2000400,\r\n\t 0x90: 0x100001,\r\n\t 0xa0: 0x2000001,\r\n\t 0xb0: 0x2100400,\r\n\t 0xc0: 0x2100000,\r\n\t 0xd0: 0x401,\r\n\t 0xe0: 0x100400,\r\n\t 0xf0: 0x2000000,\r\n\t 0x8: 0x2100001,\r\n\t 0x18: 0x0,\r\n\t 0x28: 0x2000401,\r\n\t 0x38: 0x2100400,\r\n\t 0x48: 0x100000,\r\n\t 0x58: 0x2000001,\r\n\t 0x68: 0x2000000,\r\n\t 0x78: 0x401,\r\n\t 0x88: 0x100401,\r\n\t 0x98: 0x2000400,\r\n\t 0xa8: 0x2100000,\r\n\t 0xb8: 0x100001,\r\n\t 0xc8: 0x400,\r\n\t 0xd8: 0x2100401,\r\n\t 0xe8: 0x1,\r\n\t 0xf8: 0x100400,\r\n\t 0x100: 0x2000000,\r\n\t 0x110: 0x100000,\r\n\t 0x120: 0x2000401,\r\n\t 0x130: 0x2100001,\r\n\t 0x140: 0x100001,\r\n\t 0x150: 0x2000400,\r\n\t 0x160: 0x2100400,\r\n\t 0x170: 0x100401,\r\n\t 0x180: 0x401,\r\n\t 0x190: 0x2100401,\r\n\t 0x1a0: 0x100400,\r\n\t 0x1b0: 0x1,\r\n\t 0x1c0: 0x0,\r\n\t 0x1d0: 0x2100000,\r\n\t 0x1e0: 0x2000001,\r\n\t 0x1f0: 0x400,\r\n\t 0x108: 0x100400,\r\n\t 0x118: 0x2000401,\r\n\t 0x128: 0x2100001,\r\n\t 0x138: 0x1,\r\n\t 0x148: 0x2000000,\r\n\t 0x158: 0x100000,\r\n\t 0x168: 0x401,\r\n\t 0x178: 0x2100400,\r\n\t 0x188: 0x2000001,\r\n\t 0x198: 0x2100000,\r\n\t 0x1a8: 0x0,\r\n\t 0x1b8: 0x2100401,\r\n\t 0x1c8: 0x100401,\r\n\t 0x1d8: 0x400,\r\n\t 0x1e8: 0x2000400,\r\n\t 0x1f8: 0x100001\r\n\t },\r\n\t {\r\n\t 0x0: 0x8000820,\r\n\t 0x1: 0x20000,\r\n\t 0x2: 0x8000000,\r\n\t 0x3: 0x20,\r\n\t 0x4: 0x20020,\r\n\t 0x5: 0x8020820,\r\n\t 0x6: 0x8020800,\r\n\t 0x7: 0x800,\r\n\t 0x8: 0x8020000,\r\n\t 0x9: 0x8000800,\r\n\t 0xa: 0x20800,\r\n\t 0xb: 0x8020020,\r\n\t 0xc: 0x820,\r\n\t 0xd: 0x0,\r\n\t 0xe: 0x8000020,\r\n\t 0xf: 0x20820,\r\n\t 0x80000000: 0x800,\r\n\t 0x80000001: 0x8020820,\r\n\t 0x80000002: 0x8000820,\r\n\t 0x80000003: 0x8000000,\r\n\t 0x80000004: 0x8020000,\r\n\t 0x80000005: 0x20800,\r\n\t 0x80000006: 0x20820,\r\n\t 0x80000007: 0x20,\r\n\t 0x80000008: 0x8000020,\r\n\t 0x80000009: 0x820,\r\n\t 0x8000000a: 0x20020,\r\n\t 0x8000000b: 0x8020800,\r\n\t 0x8000000c: 0x0,\r\n\t 0x8000000d: 0x8020020,\r\n\t 0x8000000e: 0x8000800,\r\n\t 0x8000000f: 0x20000,\r\n\t 0x10: 0x20820,\r\n\t 0x11: 0x8020800,\r\n\t 0x12: 0x20,\r\n\t 0x13: 0x800,\r\n\t 0x14: 0x8000800,\r\n\t 0x15: 0x8000020,\r\n\t 0x16: 0x8020020,\r\n\t 0x17: 0x20000,\r\n\t 0x18: 0x0,\r\n\t 0x19: 0x20020,\r\n\t 0x1a: 0x8020000,\r\n\t 0x1b: 0x8000820,\r\n\t 0x1c: 0x8020820,\r\n\t 0x1d: 0x20800,\r\n\t 0x1e: 0x820,\r\n\t 0x1f: 0x8000000,\r\n\t 0x80000010: 0x20000,\r\n\t 0x80000011: 0x800,\r\n\t 0x80000012: 0x8020020,\r\n\t 0x80000013: 0x20820,\r\n\t 0x80000014: 0x20,\r\n\t 0x80000015: 0x8020000,\r\n\t 0x80000016: 0x8000000,\r\n\t 0x80000017: 0x8000820,\r\n\t 0x80000018: 0x8020820,\r\n\t 0x80000019: 0x8000020,\r\n\t 0x8000001a: 0x8000800,\r\n\t 0x8000001b: 0x0,\r\n\t 0x8000001c: 0x20800,\r\n\t 0x8000001d: 0x820,\r\n\t 0x8000001e: 0x20020,\r\n\t 0x8000001f: 0x8020800\r\n\t }\r\n\t ];\r\n\r\n\t // Masks that select the SBOX input\r\n\t var SBOX_MASK = [\r\n\t 0xf8000001, 0x1f800000, 0x01f80000, 0x001f8000,\r\n\t 0x0001f800, 0x00001f80, 0x000001f8, 0x8000001f\r\n\t ];\r\n\r\n\t /**\r\n\t * DES block cipher algorithm.\r\n\t */\r\n\t var DES = C_algo.DES = BlockCipher.extend({\r\n\t _doReset: function () {\r\n\t // Shortcuts\r\n\t var key = this._key;\r\n\t var keyWords = key.words;\r\n\r\n\t // Select 56 bits according to PC1\r\n\t var keyBits = [];\r\n\t for (var i = 0; i < 56; i++) {\r\n\t var keyBitPos = PC1[i] - 1;\r\n\t keyBits[i] = (keyWords[keyBitPos >>> 5] >>> (31 - keyBitPos % 32)) & 1;\r\n\t }\r\n\r\n\t // Assemble 16 subkeys\r\n\t var subKeys = this._subKeys = [];\r\n\t for (var nSubKey = 0; nSubKey < 16; nSubKey++) {\r\n\t // Create subkey\r\n\t var subKey = subKeys[nSubKey] = [];\r\n\r\n\t // Shortcut\r\n\t var bitShift = BIT_SHIFTS[nSubKey];\r\n\r\n\t // Select 48 bits according to PC2\r\n\t for (var i = 0; i < 24; i++) {\r\n\t // Select from the left 28 key bits\r\n\t subKey[(i / 6) | 0] |= keyBits[((PC2[i] - 1) + bitShift) % 28] << (31 - i % 6);\r\n\r\n\t // Select from the right 28 key bits\r\n\t subKey[4 + ((i / 6) | 0)] |= keyBits[28 + (((PC2[i + 24] - 1) + bitShift) % 28)] << (31 - i % 6);\r\n\t }\r\n\r\n\t // Since each subkey is applied to an expanded 32-bit input,\r\n\t // the subkey can be broken into 8 values scaled to 32-bits,\r\n\t // which allows the key to be used without expansion\r\n\t subKey[0] = (subKey[0] << 1) | (subKey[0] >>> 31);\r\n\t for (var i = 1; i < 7; i++) {\r\n\t subKey[i] = subKey[i] >>> ((i - 1) * 4 + 3);\r\n\t }\r\n\t subKey[7] = (subKey[7] << 5) | (subKey[7] >>> 27);\r\n\t }\r\n\r\n\t // Compute inverse subkeys\r\n\t var invSubKeys = this._invSubKeys = [];\r\n\t for (var i = 0; i < 16; i++) {\r\n\t invSubKeys[i] = subKeys[15 - i];\r\n\t }\r\n\t },\r\n\r\n\t encryptBlock: function (M, offset) {\r\n\t this._doCryptBlock(M, offset, this._subKeys);\r\n\t },\r\n\r\n\t decryptBlock: function (M, offset) {\r\n\t this._doCryptBlock(M, offset, this._invSubKeys);\r\n\t },\r\n\r\n\t _doCryptBlock: function (M, offset, subKeys) {\r\n\t // Get input\r\n\t this._lBlock = M[offset];\r\n\t this._rBlock = M[offset + 1];\r\n\r\n\t // Initial permutation\r\n\t exchangeLR.call(this, 4, 0x0f0f0f0f);\r\n\t exchangeLR.call(this, 16, 0x0000ffff);\r\n\t exchangeRL.call(this, 2, 0x33333333);\r\n\t exchangeRL.call(this, 8, 0x00ff00ff);\r\n\t exchangeLR.call(this, 1, 0x55555555);\r\n\r\n\t // Rounds\r\n\t for (var round = 0; round < 16; round++) {\r\n\t // Shortcuts\r\n\t var subKey = subKeys[round];\r\n\t var lBlock = this._lBlock;\r\n\t var rBlock = this._rBlock;\r\n\r\n\t // Feistel function\r\n\t var f = 0;\r\n\t for (var i = 0; i < 8; i++) {\r\n\t f |= SBOX_P[i][((rBlock ^ subKey[i]) & SBOX_MASK[i]) >>> 0];\r\n\t }\r\n\t this._lBlock = rBlock;\r\n\t this._rBlock = lBlock ^ f;\r\n\t }\r\n\r\n\t // Undo swap from last round\r\n\t var t = this._lBlock;\r\n\t this._lBlock = this._rBlock;\r\n\t this._rBlock = t;\r\n\r\n\t // Final permutation\r\n\t exchangeLR.call(this, 1, 0x55555555);\r\n\t exchangeRL.call(this, 8, 0x00ff00ff);\r\n\t exchangeRL.call(this, 2, 0x33333333);\r\n\t exchangeLR.call(this, 16, 0x0000ffff);\r\n\t exchangeLR.call(this, 4, 0x0f0f0f0f);\r\n\r\n\t // Set output\r\n\t M[offset] = this._lBlock;\r\n\t M[offset + 1] = this._rBlock;\r\n\t },\r\n\r\n\t keySize: 64/32,\r\n\r\n\t ivSize: 64/32,\r\n\r\n\t blockSize: 64/32\r\n\t });\r\n\r\n\t // Swap bits across the left and right words\r\n\t function exchangeLR(offset, mask) {\r\n\t var t = ((this._lBlock >>> offset) ^ this._rBlock) & mask;\r\n\t this._rBlock ^= t;\r\n\t this._lBlock ^= t << offset;\r\n\t }\r\n\r\n\t function exchangeRL(offset, mask) {\r\n\t var t = ((this._rBlock >>> offset) ^ this._lBlock) & mask;\r\n\t this._lBlock ^= t;\r\n\t this._rBlock ^= t << offset;\r\n\t }\r\n\r\n\t /**\r\n\t * Shortcut functions to the cipher's object interface.\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var ciphertext = CryptoJS.DES.encrypt(message, key, cfg);\r\n\t * var plaintext = CryptoJS.DES.decrypt(ciphertext, key, cfg);\r\n\t */\r\n\t C.DES = BlockCipher._createHelper(DES);\r\n\r\n\t /**\r\n\t * Triple-DES block cipher algorithm.\r\n\t */\r\n\t var TripleDES = C_algo.TripleDES = BlockCipher.extend({\r\n\t _doReset: function () {\r\n\t // Shortcuts\r\n\t var key = this._key;\r\n\t var keyWords = key.words;\r\n\t // Make sure the key length is valid (64, 128 or >= 192 bit)\r\n\t if (keyWords.length !== 2 && keyWords.length !== 4 && keyWords.length < 6) {\r\n\t throw new Error('Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.');\r\n\t }\r\n\r\n\t // Extend the key according to the keying options defined in 3DES standard\r\n\t var key1 = keyWords.slice(0, 2);\r\n\t var key2 = keyWords.length < 4 ? keyWords.slice(0, 2) : keyWords.slice(2, 4);\r\n\t var key3 = keyWords.length < 6 ? keyWords.slice(0, 2) : keyWords.slice(4, 6);\r\n\r\n\t // Create DES instances\r\n\t this._des1 = DES.createEncryptor(WordArray.create(key1));\r\n\t this._des2 = DES.createEncryptor(WordArray.create(key2));\r\n\t this._des3 = DES.createEncryptor(WordArray.create(key3));\r\n\t },\r\n\r\n\t encryptBlock: function (M, offset) {\r\n\t this._des1.encryptBlock(M, offset);\r\n\t this._des2.decryptBlock(M, offset);\r\n\t this._des3.encryptBlock(M, offset);\r\n\t },\r\n\r\n\t decryptBlock: function (M, offset) {\r\n\t this._des3.decryptBlock(M, offset);\r\n\t this._des2.encryptBlock(M, offset);\r\n\t this._des1.decryptBlock(M, offset);\r\n\t },\r\n\r\n\t keySize: 192/32,\r\n\r\n\t ivSize: 64/32,\r\n\r\n\t blockSize: 64/32\r\n\t });\r\n\r\n\t /**\r\n\t * Shortcut functions to the cipher's object interface.\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var ciphertext = CryptoJS.TripleDES.encrypt(message, key, cfg);\r\n\t * var plaintext = CryptoJS.TripleDES.decrypt(ciphertext, key, cfg);\r\n\t */\r\n\t C.TripleDES = BlockCipher._createHelper(TripleDES);\r\n\t}());\r\n\r\n\r\n\treturn CryptoJS.TripleDES;\r\n\r\n}));", ";(function (root, factory, undef) {\r\n\tif (typeof exports === \"object\") {\r\n\t\t// CommonJS\r\n\t\tmodule.exports = exports = factory(require(\"./core\"), require(\"./enc-base64\"), require(\"./md5\"), require(\"./evpkdf\"), require(\"./cipher-core\"));\r\n\t}\r\n\telse if (typeof define === \"function\" && define.amd) {\r\n\t\t// AMD\r\n\t\tdefine([\"./core\", \"./enc-base64\", \"./md5\", \"./evpkdf\", \"./cipher-core\"], factory);\r\n\t}\r\n\telse {\r\n\t\t// Global (browser)\r\n\t\tfactory(root.CryptoJS);\r\n\t}\r\n}(this, function (CryptoJS) {\r\n\r\n\t(function () {\r\n\t // Shortcuts\r\n\t var C = CryptoJS;\r\n\t var C_lib = C.lib;\r\n\t var StreamCipher = C_lib.StreamCipher;\r\n\t var C_algo = C.algo;\r\n\r\n\t /**\r\n\t * RC4 stream cipher algorithm.\r\n\t */\r\n\t var RC4 = C_algo.RC4 = StreamCipher.extend({\r\n\t _doReset: function () {\r\n\t // Shortcuts\r\n\t var key = this._key;\r\n\t var keyWords = key.words;\r\n\t var keySigBytes = key.sigBytes;\r\n\r\n\t // Init sbox\r\n\t var S = this._S = [];\r\n\t for (var i = 0; i < 256; i++) {\r\n\t S[i] = i;\r\n\t }\r\n\r\n\t // Key setup\r\n\t for (var i = 0, j = 0; i < 256; i++) {\r\n\t var keyByteIndex = i % keySigBytes;\r\n\t var keyByte = (keyWords[keyByteIndex >>> 2] >>> (24 - (keyByteIndex % 4) * 8)) & 0xff;\r\n\r\n\t j = (j + S[i] + keyByte) % 256;\r\n\r\n\t // Swap\r\n\t var t = S[i];\r\n\t S[i] = S[j];\r\n\t S[j] = t;\r\n\t }\r\n\r\n\t // Counters\r\n\t this._i = this._j = 0;\r\n\t },\r\n\r\n\t _doProcessBlock: function (M, offset) {\r\n\t M[offset] ^= generateKeystreamWord.call(this);\r\n\t },\r\n\r\n\t keySize: 256/32,\r\n\r\n\t ivSize: 0\r\n\t });\r\n\r\n\t function generateKeystreamWord() {\r\n\t // Shortcuts\r\n\t var S = this._S;\r\n\t var i = this._i;\r\n\t var j = this._j;\r\n\r\n\t // Generate keystream word\r\n\t var keystreamWord = 0;\r\n\t for (var n = 0; n < 4; n++) {\r\n\t i = (i + 1) % 256;\r\n\t j = (j + S[i]) % 256;\r\n\r\n\t // Swap\r\n\t var t = S[i];\r\n\t S[i] = S[j];\r\n\t S[j] = t;\r\n\r\n\t keystreamWord |= S[(S[i] + S[j]) % 256] << (24 - n * 8);\r\n\t }\r\n\r\n\t // Update counters\r\n\t this._i = i;\r\n\t this._j = j;\r\n\r\n\t return keystreamWord;\r\n\t }\r\n\r\n\t /**\r\n\t * Shortcut functions to the cipher's object interface.\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var ciphertext = CryptoJS.RC4.encrypt(message, key, cfg);\r\n\t * var plaintext = CryptoJS.RC4.decrypt(ciphertext, key, cfg);\r\n\t */\r\n\t C.RC4 = StreamCipher._createHelper(RC4);\r\n\r\n\t /**\r\n\t * Modified RC4 stream cipher algorithm.\r\n\t */\r\n\t var RC4Drop = C_algo.RC4Drop = RC4.extend({\r\n\t /**\r\n\t * Configuration options.\r\n\t *\r\n\t * @property {number} drop The number of keystream words to drop. Default 192\r\n\t */\r\n\t cfg: RC4.cfg.extend({\r\n\t drop: 192\r\n\t }),\r\n\r\n\t _doReset: function () {\r\n\t RC4._doReset.call(this);\r\n\r\n\t // Drop\r\n\t for (var i = this.cfg.drop; i > 0; i--) {\r\n\t generateKeystreamWord.call(this);\r\n\t }\r\n\t }\r\n\t });\r\n\r\n\t /**\r\n\t * Shortcut functions to the cipher's object interface.\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var ciphertext = CryptoJS.RC4Drop.encrypt(message, key, cfg);\r\n\t * var plaintext = CryptoJS.RC4Drop.decrypt(ciphertext, key, cfg);\r\n\t */\r\n\t C.RC4Drop = StreamCipher._createHelper(RC4Drop);\r\n\t}());\r\n\r\n\r\n\treturn CryptoJS.RC4;\r\n\r\n}));", ";(function (root, factory, undef) {\r\n\tif (typeof exports === \"object\") {\r\n\t\t// CommonJS\r\n\t\tmodule.exports = exports = factory(require(\"./core\"), require(\"./enc-base64\"), require(\"./md5\"), require(\"./evpkdf\"), require(\"./cipher-core\"));\r\n\t}\r\n\telse if (typeof define === \"function\" && define.amd) {\r\n\t\t// AMD\r\n\t\tdefine([\"./core\", \"./enc-base64\", \"./md5\", \"./evpkdf\", \"./cipher-core\"], factory);\r\n\t}\r\n\telse {\r\n\t\t// Global (browser)\r\n\t\tfactory(root.CryptoJS);\r\n\t}\r\n}(this, function (CryptoJS) {\r\n\r\n\t(function () {\r\n\t // Shortcuts\r\n\t var C = CryptoJS;\r\n\t var C_lib = C.lib;\r\n\t var StreamCipher = C_lib.StreamCipher;\r\n\t var C_algo = C.algo;\r\n\r\n\t // Reusable objects\r\n\t var S = [];\r\n\t var C_ = [];\r\n\t var G = [];\r\n\r\n\t /**\r\n\t * Rabbit stream cipher algorithm\r\n\t */\r\n\t var Rabbit = C_algo.Rabbit = StreamCipher.extend({\r\n\t _doReset: function () {\r\n\t // Shortcuts\r\n\t var K = this._key.words;\r\n\t var iv = this.cfg.iv;\r\n\r\n\t // Swap endian\r\n\t for (var i = 0; i < 4; i++) {\r\n\t K[i] = (((K[i] << 8) | (K[i] >>> 24)) & 0x00ff00ff) |\r\n\t (((K[i] << 24) | (K[i] >>> 8)) & 0xff00ff00);\r\n\t }\r\n\r\n\t // Generate initial state values\r\n\t var X = this._X = [\r\n\t K[0], (K[3] << 16) | (K[2] >>> 16),\r\n\t K[1], (K[0] << 16) | (K[3] >>> 16),\r\n\t K[2], (K[1] << 16) | (K[0] >>> 16),\r\n\t K[3], (K[2] << 16) | (K[1] >>> 16)\r\n\t ];\r\n\r\n\t // Generate initial counter values\r\n\t var C = this._C = [\r\n\t (K[2] << 16) | (K[2] >>> 16), (K[0] & 0xffff0000) | (K[1] & 0x0000ffff),\r\n\t (K[3] << 16) | (K[3] >>> 16), (K[1] & 0xffff0000) | (K[2] & 0x0000ffff),\r\n\t (K[0] << 16) | (K[0] >>> 16), (K[2] & 0xffff0000) | (K[3] & 0x0000ffff),\r\n\t (K[1] << 16) | (K[1] >>> 16), (K[3] & 0xffff0000) | (K[0] & 0x0000ffff)\r\n\t ];\r\n\r\n\t // Carry bit\r\n\t this._b = 0;\r\n\r\n\t // Iterate the system four times\r\n\t for (var i = 0; i < 4; i++) {\r\n\t nextState.call(this);\r\n\t }\r\n\r\n\t // Modify the counters\r\n\t for (var i = 0; i < 8; i++) {\r\n\t C[i] ^= X[(i + 4) & 7];\r\n\t }\r\n\r\n\t // IV setup\r\n\t if (iv) {\r\n\t // Shortcuts\r\n\t var IV = iv.words;\r\n\t var IV_0 = IV[0];\r\n\t var IV_1 = IV[1];\r\n\r\n\t // Generate four subvectors\r\n\t var i0 = (((IV_0 << 8) | (IV_0 >>> 24)) & 0x00ff00ff) | (((IV_0 << 24) | (IV_0 >>> 8)) & 0xff00ff00);\r\n\t var i2 = (((IV_1 << 8) | (IV_1 >>> 24)) & 0x00ff00ff) | (((IV_1 << 24) | (IV_1 >>> 8)) & 0xff00ff00);\r\n\t var i1 = (i0 >>> 16) | (i2 & 0xffff0000);\r\n\t var i3 = (i2 << 16) | (i0 & 0x0000ffff);\r\n\r\n\t // Modify counter values\r\n\t C[0] ^= i0;\r\n\t C[1] ^= i1;\r\n\t C[2] ^= i2;\r\n\t C[3] ^= i3;\r\n\t C[4] ^= i0;\r\n\t C[5] ^= i1;\r\n\t C[6] ^= i2;\r\n\t C[7] ^= i3;\r\n\r\n\t // Iterate the system four times\r\n\t for (var i = 0; i < 4; i++) {\r\n\t nextState.call(this);\r\n\t }\r\n\t }\r\n\t },\r\n\r\n\t _doProcessBlock: function (M, offset) {\r\n\t // Shortcut\r\n\t var X = this._X;\r\n\r\n\t // Iterate the system\r\n\t nextState.call(this);\r\n\r\n\t // Generate four keystream words\r\n\t S[0] = X[0] ^ (X[5] >>> 16) ^ (X[3] << 16);\r\n\t S[1] = X[2] ^ (X[7] >>> 16) ^ (X[5] << 16);\r\n\t S[2] = X[4] ^ (X[1] >>> 16) ^ (X[7] << 16);\r\n\t S[3] = X[6] ^ (X[3] >>> 16) ^ (X[1] << 16);\r\n\r\n\t for (var i = 0; i < 4; i++) {\r\n\t // Swap endian\r\n\t S[i] = (((S[i] << 8) | (S[i] >>> 24)) & 0x00ff00ff) |\r\n\t (((S[i] << 24) | (S[i] >>> 8)) & 0xff00ff00);\r\n\r\n\t // Encrypt\r\n\t M[offset + i] ^= S[i];\r\n\t }\r\n\t },\r\n\r\n\t blockSize: 128/32,\r\n\r\n\t ivSize: 64/32\r\n\t });\r\n\r\n\t function nextState() {\r\n\t // Shortcuts\r\n\t var X = this._X;\r\n\t var C = this._C;\r\n\r\n\t // Save old counter values\r\n\t for (var i = 0; i < 8; i++) {\r\n\t C_[i] = C[i];\r\n\t }\r\n\r\n\t // Calculate new counter values\r\n\t C[0] = (C[0] + 0x4d34d34d + this._b) | 0;\r\n\t C[1] = (C[1] + 0xd34d34d3 + ((C[0] >>> 0) < (C_[0] >>> 0) ? 1 : 0)) | 0;\r\n\t C[2] = (C[2] + 0x34d34d34 + ((C[1] >>> 0) < (C_[1] >>> 0) ? 1 : 0)) | 0;\r\n\t C[3] = (C[3] + 0x4d34d34d + ((C[2] >>> 0) < (C_[2] >>> 0) ? 1 : 0)) | 0;\r\n\t C[4] = (C[4] + 0xd34d34d3 + ((C[3] >>> 0) < (C_[3] >>> 0) ? 1 : 0)) | 0;\r\n\t C[5] = (C[5] + 0x34d34d34 + ((C[4] >>> 0) < (C_[4] >>> 0) ? 1 : 0)) | 0;\r\n\t C[6] = (C[6] + 0x4d34d34d + ((C[5] >>> 0) < (C_[5] >>> 0) ? 1 : 0)) | 0;\r\n\t C[7] = (C[7] + 0xd34d34d3 + ((C[6] >>> 0) < (C_[6] >>> 0) ? 1 : 0)) | 0;\r\n\t this._b = (C[7] >>> 0) < (C_[7] >>> 0) ? 1 : 0;\r\n\r\n\t // Calculate the g-values\r\n\t for (var i = 0; i < 8; i++) {\r\n\t var gx = X[i] + C[i];\r\n\r\n\t // Construct high and low argument for squaring\r\n\t var ga = gx & 0xffff;\r\n\t var gb = gx >>> 16;\r\n\r\n\t // Calculate high and low result of squaring\r\n\t var gh = ((((ga * ga) >>> 17) + ga * gb) >>> 15) + gb * gb;\r\n\t var gl = (((gx & 0xffff0000) * gx) | 0) + (((gx & 0x0000ffff) * gx) | 0);\r\n\r\n\t // High XOR low\r\n\t G[i] = gh ^ gl;\r\n\t }\r\n\r\n\t // Calculate new state values\r\n\t X[0] = (G[0] + ((G[7] << 16) | (G[7] >>> 16)) + ((G[6] << 16) | (G[6] >>> 16))) | 0;\r\n\t X[1] = (G[1] + ((G[0] << 8) | (G[0] >>> 24)) + G[7]) | 0;\r\n\t X[2] = (G[2] + ((G[1] << 16) | (G[1] >>> 16)) + ((G[0] << 16) | (G[0] >>> 16))) | 0;\r\n\t X[3] = (G[3] + ((G[2] << 8) | (G[2] >>> 24)) + G[1]) | 0;\r\n\t X[4] = (G[4] + ((G[3] << 16) | (G[3] >>> 16)) + ((G[2] << 16) | (G[2] >>> 16))) | 0;\r\n\t X[5] = (G[5] + ((G[4] << 8) | (G[4] >>> 24)) + G[3]) | 0;\r\n\t X[6] = (G[6] + ((G[5] << 16) | (G[5] >>> 16)) + ((G[4] << 16) | (G[4] >>> 16))) | 0;\r\n\t X[7] = (G[7] + ((G[6] << 8) | (G[6] >>> 24)) + G[5]) | 0;\r\n\t }\r\n\r\n\t /**\r\n\t * Shortcut functions to the cipher's object interface.\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var ciphertext = CryptoJS.Rabbit.encrypt(message, key, cfg);\r\n\t * var plaintext = CryptoJS.Rabbit.decrypt(ciphertext, key, cfg);\r\n\t */\r\n\t C.Rabbit = StreamCipher._createHelper(Rabbit);\r\n\t}());\r\n\r\n\r\n\treturn CryptoJS.Rabbit;\r\n\r\n}));", ";(function (root, factory, undef) {\r\n\tif (typeof exports === \"object\") {\r\n\t\t// CommonJS\r\n\t\tmodule.exports = exports = factory(require(\"./core\"), require(\"./enc-base64\"), require(\"./md5\"), require(\"./evpkdf\"), require(\"./cipher-core\"));\r\n\t}\r\n\telse if (typeof define === \"function\" && define.amd) {\r\n\t\t// AMD\r\n\t\tdefine([\"./core\", \"./enc-base64\", \"./md5\", \"./evpkdf\", \"./cipher-core\"], factory);\r\n\t}\r\n\telse {\r\n\t\t// Global (browser)\r\n\t\tfactory(root.CryptoJS);\r\n\t}\r\n}(this, function (CryptoJS) {\r\n\r\n\t(function () {\r\n\t // Shortcuts\r\n\t var C = CryptoJS;\r\n\t var C_lib = C.lib;\r\n\t var StreamCipher = C_lib.StreamCipher;\r\n\t var C_algo = C.algo;\r\n\r\n\t // Reusable objects\r\n\t var S = [];\r\n\t var C_ = [];\r\n\t var G = [];\r\n\r\n\t /**\r\n\t * Rabbit stream cipher algorithm.\r\n\t *\r\n\t * This is a legacy version that neglected to convert the key to little-endian.\r\n\t * This error doesn't affect the cipher's security,\r\n\t * but it does affect its compatibility with other implementations.\r\n\t */\r\n\t var RabbitLegacy = C_algo.RabbitLegacy = StreamCipher.extend({\r\n\t _doReset: function () {\r\n\t // Shortcuts\r\n\t var K = this._key.words;\r\n\t var iv = this.cfg.iv;\r\n\r\n\t // Generate initial state values\r\n\t var X = this._X = [\r\n\t K[0], (K[3] << 16) | (K[2] >>> 16),\r\n\t K[1], (K[0] << 16) | (K[3] >>> 16),\r\n\t K[2], (K[1] << 16) | (K[0] >>> 16),\r\n\t K[3], (K[2] << 16) | (K[1] >>> 16)\r\n\t ];\r\n\r\n\t // Generate initial counter values\r\n\t var C = this._C = [\r\n\t (K[2] << 16) | (K[2] >>> 16), (K[0] & 0xffff0000) | (K[1] & 0x0000ffff),\r\n\t (K[3] << 16) | (K[3] >>> 16), (K[1] & 0xffff0000) | (K[2] & 0x0000ffff),\r\n\t (K[0] << 16) | (K[0] >>> 16), (K[2] & 0xffff0000) | (K[3] & 0x0000ffff),\r\n\t (K[1] << 16) | (K[1] >>> 16), (K[3] & 0xffff0000) | (K[0] & 0x0000ffff)\r\n\t ];\r\n\r\n\t // Carry bit\r\n\t this._b = 0;\r\n\r\n\t // Iterate the system four times\r\n\t for (var i = 0; i < 4; i++) {\r\n\t nextState.call(this);\r\n\t }\r\n\r\n\t // Modify the counters\r\n\t for (var i = 0; i < 8; i++) {\r\n\t C[i] ^= X[(i + 4) & 7];\r\n\t }\r\n\r\n\t // IV setup\r\n\t if (iv) {\r\n\t // Shortcuts\r\n\t var IV = iv.words;\r\n\t var IV_0 = IV[0];\r\n\t var IV_1 = IV[1];\r\n\r\n\t // Generate four subvectors\r\n\t var i0 = (((IV_0 << 8) | (IV_0 >>> 24)) & 0x00ff00ff) | (((IV_0 << 24) | (IV_0 >>> 8)) & 0xff00ff00);\r\n\t var i2 = (((IV_1 << 8) | (IV_1 >>> 24)) & 0x00ff00ff) | (((IV_1 << 24) | (IV_1 >>> 8)) & 0xff00ff00);\r\n\t var i1 = (i0 >>> 16) | (i2 & 0xffff0000);\r\n\t var i3 = (i2 << 16) | (i0 & 0x0000ffff);\r\n\r\n\t // Modify counter values\r\n\t C[0] ^= i0;\r\n\t C[1] ^= i1;\r\n\t C[2] ^= i2;\r\n\t C[3] ^= i3;\r\n\t C[4] ^= i0;\r\n\t C[5] ^= i1;\r\n\t C[6] ^= i2;\r\n\t C[7] ^= i3;\r\n\r\n\t // Iterate the system four times\r\n\t for (var i = 0; i < 4; i++) {\r\n\t nextState.call(this);\r\n\t }\r\n\t }\r\n\t },\r\n\r\n\t _doProcessBlock: function (M, offset) {\r\n\t // Shortcut\r\n\t var X = this._X;\r\n\r\n\t // Iterate the system\r\n\t nextState.call(this);\r\n\r\n\t // Generate four keystream words\r\n\t S[0] = X[0] ^ (X[5] >>> 16) ^ (X[3] << 16);\r\n\t S[1] = X[2] ^ (X[7] >>> 16) ^ (X[5] << 16);\r\n\t S[2] = X[4] ^ (X[1] >>> 16) ^ (X[7] << 16);\r\n\t S[3] = X[6] ^ (X[3] >>> 16) ^ (X[1] << 16);\r\n\r\n\t for (var i = 0; i < 4; i++) {\r\n\t // Swap endian\r\n\t S[i] = (((S[i] << 8) | (S[i] >>> 24)) & 0x00ff00ff) |\r\n\t (((S[i] << 24) | (S[i] >>> 8)) & 0xff00ff00);\r\n\r\n\t // Encrypt\r\n\t M[offset + i] ^= S[i];\r\n\t }\r\n\t },\r\n\r\n\t blockSize: 128/32,\r\n\r\n\t ivSize: 64/32\r\n\t });\r\n\r\n\t function nextState() {\r\n\t // Shortcuts\r\n\t var X = this._X;\r\n\t var C = this._C;\r\n\r\n\t // Save old counter values\r\n\t for (var i = 0; i < 8; i++) {\r\n\t C_[i] = C[i];\r\n\t }\r\n\r\n\t // Calculate new counter values\r\n\t C[0] = (C[0] + 0x4d34d34d + this._b) | 0;\r\n\t C[1] = (C[1] + 0xd34d34d3 + ((C[0] >>> 0) < (C_[0] >>> 0) ? 1 : 0)) | 0;\r\n\t C[2] = (C[2] + 0x34d34d34 + ((C[1] >>> 0) < (C_[1] >>> 0) ? 1 : 0)) | 0;\r\n\t C[3] = (C[3] + 0x4d34d34d + ((C[2] >>> 0) < (C_[2] >>> 0) ? 1 : 0)) | 0;\r\n\t C[4] = (C[4] + 0xd34d34d3 + ((C[3] >>> 0) < (C_[3] >>> 0) ? 1 : 0)) | 0;\r\n\t C[5] = (C[5] + 0x34d34d34 + ((C[4] >>> 0) < (C_[4] >>> 0) ? 1 : 0)) | 0;\r\n\t C[6] = (C[6] + 0x4d34d34d + ((C[5] >>> 0) < (C_[5] >>> 0) ? 1 : 0)) | 0;\r\n\t C[7] = (C[7] + 0xd34d34d3 + ((C[6] >>> 0) < (C_[6] >>> 0) ? 1 : 0)) | 0;\r\n\t this._b = (C[7] >>> 0) < (C_[7] >>> 0) ? 1 : 0;\r\n\r\n\t // Calculate the g-values\r\n\t for (var i = 0; i < 8; i++) {\r\n\t var gx = X[i] + C[i];\r\n\r\n\t // Construct high and low argument for squaring\r\n\t var ga = gx & 0xffff;\r\n\t var gb = gx >>> 16;\r\n\r\n\t // Calculate high and low result of squaring\r\n\t var gh = ((((ga * ga) >>> 17) + ga * gb) >>> 15) + gb * gb;\r\n\t var gl = (((gx & 0xffff0000) * gx) | 0) + (((gx & 0x0000ffff) * gx) | 0);\r\n\r\n\t // High XOR low\r\n\t G[i] = gh ^ gl;\r\n\t }\r\n\r\n\t // Calculate new state values\r\n\t X[0] = (G[0] + ((G[7] << 16) | (G[7] >>> 16)) + ((G[6] << 16) | (G[6] >>> 16))) | 0;\r\n\t X[1] = (G[1] + ((G[0] << 8) | (G[0] >>> 24)) + G[7]) | 0;\r\n\t X[2] = (G[2] + ((G[1] << 16) | (G[1] >>> 16)) + ((G[0] << 16) | (G[0] >>> 16))) | 0;\r\n\t X[3] = (G[3] + ((G[2] << 8) | (G[2] >>> 24)) + G[1]) | 0;\r\n\t X[4] = (G[4] + ((G[3] << 16) | (G[3] >>> 16)) + ((G[2] << 16) | (G[2] >>> 16))) | 0;\r\n\t X[5] = (G[5] + ((G[4] << 8) | (G[4] >>> 24)) + G[3]) | 0;\r\n\t X[6] = (G[6] + ((G[5] << 16) | (G[5] >>> 16)) + ((G[4] << 16) | (G[4] >>> 16))) | 0;\r\n\t X[7] = (G[7] + ((G[6] << 8) | (G[6] >>> 24)) + G[5]) | 0;\r\n\t }\r\n\r\n\t /**\r\n\t * Shortcut functions to the cipher's object interface.\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var ciphertext = CryptoJS.RabbitLegacy.encrypt(message, key, cfg);\r\n\t * var plaintext = CryptoJS.RabbitLegacy.decrypt(ciphertext, key, cfg);\r\n\t */\r\n\t C.RabbitLegacy = StreamCipher._createHelper(RabbitLegacy);\r\n\t}());\r\n\r\n\r\n\treturn CryptoJS.RabbitLegacy;\r\n\r\n}));", ";(function (root, factory, undef) {\r\n\tif (typeof exports === \"object\") {\r\n\t\t// CommonJS\r\n\t\tmodule.exports = exports = factory(require(\"./core\"), require(\"./enc-base64\"), require(\"./md5\"), require(\"./evpkdf\"), require(\"./cipher-core\"));\r\n\t}\r\n\telse if (typeof define === \"function\" && define.amd) {\r\n\t\t// AMD\r\n\t\tdefine([\"./core\", \"./enc-base64\", \"./md5\", \"./evpkdf\", \"./cipher-core\"], factory);\r\n\t}\r\n\telse {\r\n\t\t// Global (browser)\r\n\t\tfactory(root.CryptoJS);\r\n\t}\r\n}(this, function (CryptoJS) {\r\n\r\n\t(function () {\r\n\t // Shortcuts\r\n\t var C = CryptoJS;\r\n\t var C_lib = C.lib;\r\n\t var BlockCipher = C_lib.BlockCipher;\r\n\t var C_algo = C.algo;\r\n\r\n\t const N = 16;\r\n\r\n\t //Origin pbox and sbox, derived from PI\r\n\t const ORIG_P = [\r\n\t 0x243F6A88, 0x85A308D3, 0x13198A2E, 0x03707344,\r\n\t 0xA4093822, 0x299F31D0, 0x082EFA98, 0xEC4E6C89,\r\n\t 0x452821E6, 0x38D01377, 0xBE5466CF, 0x34E90C6C,\r\n\t 0xC0AC29B7, 0xC97C50DD, 0x3F84D5B5, 0xB5470917,\r\n\t 0x9216D5D9, 0x8979FB1B\r\n\t ];\r\n\r\n\t const ORIG_S = [\r\n\t [ 0xD1310BA6, 0x98DFB5AC, 0x2FFD72DB, 0xD01ADFB7,\r\n\t 0xB8E1AFED, 0x6A267E96, 0xBA7C9045, 0xF12C7F99,\r\n\t 0x24A19947, 0xB3916CF7, 0x0801F2E2, 0x858EFC16,\r\n\t 0x636920D8, 0x71574E69, 0xA458FEA3, 0xF4933D7E,\r\n\t 0x0D95748F, 0x728EB658, 0x718BCD58, 0x82154AEE,\r\n\t 0x7B54A41D, 0xC25A59B5, 0x9C30D539, 0x2AF26013,\r\n\t 0xC5D1B023, 0x286085F0, 0xCA417918, 0xB8DB38EF,\r\n\t 0x8E79DCB0, 0x603A180E, 0x6C9E0E8B, 0xB01E8A3E,\r\n\t 0xD71577C1, 0xBD314B27, 0x78AF2FDA, 0x55605C60,\r\n\t 0xE65525F3, 0xAA55AB94, 0x57489862, 0x63E81440,\r\n\t 0x55CA396A, 0x2AAB10B6, 0xB4CC5C34, 0x1141E8CE,\r\n\t 0xA15486AF, 0x7C72E993, 0xB3EE1411, 0x636FBC2A,\r\n\t 0x2BA9C55D, 0x741831F6, 0xCE5C3E16, 0x9B87931E,\r\n\t 0xAFD6BA33, 0x6C24CF5C, 0x7A325381, 0x28958677,\r\n\t 0x3B8F4898, 0x6B4BB9AF, 0xC4BFE81B, 0x66282193,\r\n\t 0x61D809CC, 0xFB21A991, 0x487CAC60, 0x5DEC8032,\r\n\t 0xEF845D5D, 0xE98575B1, 0xDC262302, 0xEB651B88,\r\n\t 0x23893E81, 0xD396ACC5, 0x0F6D6FF3, 0x83F44239,\r\n\t 0x2E0B4482, 0xA4842004, 0x69C8F04A, 0x9E1F9B5E,\r\n\t 0x21C66842, 0xF6E96C9A, 0x670C9C61, 0xABD388F0,\r\n\t 0x6A51A0D2, 0xD8542F68, 0x960FA728, 0xAB5133A3,\r\n\t 0x6EEF0B6C, 0x137A3BE4, 0xBA3BF050, 0x7EFB2A98,\r\n\t 0xA1F1651D, 0x39AF0176, 0x66CA593E, 0x82430E88,\r\n\t 0x8CEE8619, 0x456F9FB4, 0x7D84A5C3, 0x3B8B5EBE,\r\n\t 0xE06F75D8, 0x85C12073, 0x401A449F, 0x56C16AA6,\r\n\t 0x4ED3AA62, 0x363F7706, 0x1BFEDF72, 0x429B023D,\r\n\t 0x37D0D724, 0xD00A1248, 0xDB0FEAD3, 0x49F1C09B,\r\n\t 0x075372C9, 0x80991B7B, 0x25D479D8, 0xF6E8DEF7,\r\n\t 0xE3FE501A, 0xB6794C3B, 0x976CE0BD, 0x04C006BA,\r\n\t 0xC1A94FB6, 0x409F60C4, 0x5E5C9EC2, 0x196A2463,\r\n\t 0x68FB6FAF, 0x3E6C53B5, 0x1339B2EB, 0x3B52EC6F,\r\n\t 0x6DFC511F, 0x9B30952C, 0xCC814544, 0xAF5EBD09,\r\n\t 0xBEE3D004, 0xDE334AFD, 0x660F2807, 0x192E4BB3,\r\n\t 0xC0CBA857, 0x45C8740F, 0xD20B5F39, 0xB9D3FBDB,\r\n\t 0x5579C0BD, 0x1A60320A, 0xD6A100C6, 0x402C7279,\r\n\t 0x679F25FE, 0xFB1FA3CC, 0x8EA5E9F8, 0xDB3222F8,\r\n\t 0x3C7516DF, 0xFD616B15, 0x2F501EC8, 0xAD0552AB,\r\n\t 0x323DB5FA, 0xFD238760, 0x53317B48, 0x3E00DF82,\r\n\t 0x9E5C57BB, 0xCA6F8CA0, 0x1A87562E, 0xDF1769DB,\r\n\t 0xD542A8F6, 0x287EFFC3, 0xAC6732C6, 0x8C4F5573,\r\n\t 0x695B27B0, 0xBBCA58C8, 0xE1FFA35D, 0xB8F011A0,\r\n\t 0x10FA3D98, 0xFD2183B8, 0x4AFCB56C, 0x2DD1D35B,\r\n\t 0x9A53E479, 0xB6F84565, 0xD28E49BC, 0x4BFB9790,\r\n\t 0xE1DDF2DA, 0xA4CB7E33, 0x62FB1341, 0xCEE4C6E8,\r\n\t 0xEF20CADA, 0x36774C01, 0xD07E9EFE, 0x2BF11FB4,\r\n\t 0x95DBDA4D, 0xAE909198, 0xEAAD8E71, 0x6B93D5A0,\r\n\t 0xD08ED1D0, 0xAFC725E0, 0x8E3C5B2F, 0x8E7594B7,\r\n\t 0x8FF6E2FB, 0xF2122B64, 0x8888B812, 0x900DF01C,\r\n\t 0x4FAD5EA0, 0x688FC31C, 0xD1CFF191, 0xB3A8C1AD,\r\n\t 0x2F2F2218, 0xBE0E1777, 0xEA752DFE, 0x8B021FA1,\r\n\t 0xE5A0CC0F, 0xB56F74E8, 0x18ACF3D6, 0xCE89E299,\r\n\t 0xB4A84FE0, 0xFD13E0B7, 0x7CC43B81, 0xD2ADA8D9,\r\n\t 0x165FA266, 0x80957705, 0x93CC7314, 0x211A1477,\r\n\t 0xE6AD2065, 0x77B5FA86, 0xC75442F5, 0xFB9D35CF,\r\n\t 0xEBCDAF0C, 0x7B3E89A0, 0xD6411BD3, 0xAE1E7E49,\r\n\t 0x00250E2D, 0x2071B35E, 0x226800BB, 0x57B8E0AF,\r\n\t 0x2464369B, 0xF009B91E, 0x5563911D, 0x59DFA6AA,\r\n\t 0x78C14389, 0xD95A537F, 0x207D5BA2, 0x02E5B9C5,\r\n\t 0x83260376, 0x6295CFA9, 0x11C81968, 0x4E734A41,\r\n\t 0xB3472DCA, 0x7B14A94A, 0x1B510052, 0x9A532915,\r\n\t 0xD60F573F, 0xBC9BC6E4, 0x2B60A476, 0x81E67400,\r\n\t 0x08BA6FB5, 0x571BE91F, 0xF296EC6B, 0x2A0DD915,\r\n\t 0xB6636521, 0xE7B9F9B6, 0xFF34052E, 0xC5855664,\r\n\t 0x53B02D5D, 0xA99F8FA1, 0x08BA4799, 0x6E85076A ],\r\n\t [ 0x4B7A70E9, 0xB5B32944, 0xDB75092E, 0xC4192623,\r\n\t 0xAD6EA6B0, 0x49A7DF7D, 0x9CEE60B8, 0x8FEDB266,\r\n\t 0xECAA8C71, 0x699A17FF, 0x5664526C, 0xC2B19EE1,\r\n\t 0x193602A5, 0x75094C29, 0xA0591340, 0xE4183A3E,\r\n\t 0x3F54989A, 0x5B429D65, 0x6B8FE4D6, 0x99F73FD6,\r\n\t 0xA1D29C07, 0xEFE830F5, 0x4D2D38E6, 0xF0255DC1,\r\n\t 0x4CDD2086, 0x8470EB26, 0x6382E9C6, 0x021ECC5E,\r\n\t 0x09686B3F, 0x3EBAEFC9, 0x3C971814, 0x6B6A70A1,\r\n\t 0x687F3584, 0x52A0E286, 0xB79C5305, 0xAA500737,\r\n\t 0x3E07841C, 0x7FDEAE5C, 0x8E7D44EC, 0x5716F2B8,\r\n\t 0xB03ADA37, 0xF0500C0D, 0xF01C1F04, 0x0200B3FF,\r\n\t 0xAE0CF51A, 0x3CB574B2, 0x25837A58, 0xDC0921BD,\r\n\t 0xD19113F9, 0x7CA92FF6, 0x94324773, 0x22F54701,\r\n\t 0x3AE5E581, 0x37C2DADC, 0xC8B57634, 0x9AF3DDA7,\r\n\t 0xA9446146, 0x0FD0030E, 0xECC8C73E, 0xA4751E41,\r\n\t 0xE238CD99, 0x3BEA0E2F, 0x3280BBA1, 0x183EB331,\r\n\t 0x4E548B38, 0x4F6DB908, 0x6F420D03, 0xF60A04BF,\r\n\t 0x2CB81290, 0x24977C79, 0x5679B072, 0xBCAF89AF,\r\n\t 0xDE9A771F, 0xD9930810, 0xB38BAE12, 0xDCCF3F2E,\r\n\t 0x5512721F, 0x2E6B7124, 0x501ADDE6, 0x9F84CD87,\r\n\t 0x7A584718, 0x7408DA17, 0xBC9F9ABC, 0xE94B7D8C,\r\n\t 0xEC7AEC3A, 0xDB851DFA, 0x63094366, 0xC464C3D2,\r\n\t 0xEF1C1847, 0x3215D908, 0xDD433B37, 0x24C2BA16,\r\n\t 0x12A14D43, 0x2A65C451, 0x50940002, 0x133AE4DD,\r\n\t 0x71DFF89E, 0x10314E55, 0x81AC77D6, 0x5F11199B,\r\n\t 0x043556F1, 0xD7A3C76B, 0x3C11183B, 0x5924A509,\r\n\t 0xF28FE6ED, 0x97F1FBFA, 0x9EBABF2C, 0x1E153C6E,\r\n\t 0x86E34570, 0xEAE96FB1, 0x860E5E0A, 0x5A3E2AB3,\r\n\t 0x771FE71C, 0x4E3D06FA, 0x2965DCB9, 0x99E71D0F,\r\n\t 0x803E89D6, 0x5266C825, 0x2E4CC978, 0x9C10B36A,\r\n\t 0xC6150EBA, 0x94E2EA78, 0xA5FC3C53, 0x1E0A2DF4,\r\n\t 0xF2F74EA7, 0x361D2B3D, 0x1939260F, 0x19C27960,\r\n\t 0x5223A708, 0xF71312B6, 0xEBADFE6E, 0xEAC31F66,\r\n\t 0xE3BC4595, 0xA67BC883, 0xB17F37D1, 0x018CFF28,\r\n\t 0xC332DDEF, 0xBE6C5AA5, 0x65582185, 0x68AB9802,\r\n\t 0xEECEA50F, 0xDB2F953B, 0x2AEF7DAD, 0x5B6E2F84,\r\n\t 0x1521B628, 0x29076170, 0xECDD4775, 0x619F1510,\r\n\t 0x13CCA830, 0xEB61BD96, 0x0334FE1E, 0xAA0363CF,\r\n\t 0xB5735C90, 0x4C70A239, 0xD59E9E0B, 0xCBAADE14,\r\n\t 0xEECC86BC, 0x60622CA7, 0x9CAB5CAB, 0xB2F3846E,\r\n\t 0x648B1EAF, 0x19BDF0CA, 0xA02369B9, 0x655ABB50,\r\n\t 0x40685A32, 0x3C2AB4B3, 0x319EE9D5, 0xC021B8F7,\r\n\t 0x9B540B19, 0x875FA099, 0x95F7997E, 0x623D7DA8,\r\n\t 0xF837889A, 0x97E32D77, 0x11ED935F, 0x16681281,\r\n\t 0x0E358829, 0xC7E61FD6, 0x96DEDFA1, 0x7858BA99,\r\n\t 0x57F584A5, 0x1B227263, 0x9B83C3FF, 0x1AC24696,\r\n\t 0xCDB30AEB, 0x532E3054, 0x8FD948E4, 0x6DBC3128,\r\n\t 0x58EBF2EF, 0x34C6FFEA, 0xFE28ED61, 0xEE7C3C73,\r\n\t 0x5D4A14D9, 0xE864B7E3, 0x42105D14, 0x203E13E0,\r\n\t 0x45EEE2B6, 0xA3AAABEA, 0xDB6C4F15, 0xFACB4FD0,\r\n\t 0xC742F442, 0xEF6ABBB5, 0x654F3B1D, 0x41CD2105,\r\n\t 0xD81E799E, 0x86854DC7, 0xE44B476A, 0x3D816250,\r\n\t 0xCF62A1F2, 0x5B8D2646, 0xFC8883A0, 0xC1C7B6A3,\r\n\t 0x7F1524C3, 0x69CB7492, 0x47848A0B, 0x5692B285,\r\n\t 0x095BBF00, 0xAD19489D, 0x1462B174, 0x23820E00,\r\n\t 0x58428D2A, 0x0C55F5EA, 0x1DADF43E, 0x233F7061,\r\n\t 0x3372F092, 0x8D937E41, 0xD65FECF1, 0x6C223BDB,\r\n\t 0x7CDE3759, 0xCBEE7460, 0x4085F2A7, 0xCE77326E,\r\n\t 0xA6078084, 0x19F8509E, 0xE8EFD855, 0x61D99735,\r\n\t 0xA969A7AA, 0xC50C06C2, 0x5A04ABFC, 0x800BCADC,\r\n\t 0x9E447A2E, 0xC3453484, 0xFDD56705, 0x0E1E9EC9,\r\n\t 0xDB73DBD3, 0x105588CD, 0x675FDA79, 0xE3674340,\r\n\t 0xC5C43465, 0x713E38D8, 0x3D28F89E, 0xF16DFF20,\r\n\t 0x153E21E7, 0x8FB03D4A, 0xE6E39F2B, 0xDB83ADF7 ],\r\n\t [ 0xE93D5A68, 0x948140F7, 0xF64C261C, 0x94692934,\r\n\t 0x411520F7, 0x7602D4F7, 0xBCF46B2E, 0xD4A20068,\r\n\t 0xD4082471, 0x3320F46A, 0x43B7D4B7, 0x500061AF,\r\n\t 0x1E39F62E, 0x97244546, 0x14214F74, 0xBF8B8840,\r\n\t 0x4D95FC1D, 0x96B591AF, 0x70F4DDD3, 0x66A02F45,\r\n\t 0xBFBC09EC, 0x03BD9785, 0x7FAC6DD0, 0x31CB8504,\r\n\t 0x96EB27B3, 0x55FD3941, 0xDA2547E6, 0xABCA0A9A,\r\n\t 0x28507825, 0x530429F4, 0x0A2C86DA, 0xE9B66DFB,\r\n\t 0x68DC1462, 0xD7486900, 0x680EC0A4, 0x27A18DEE,\r\n\t 0x4F3FFEA2, 0xE887AD8C, 0xB58CE006, 0x7AF4D6B6,\r\n\t 0xAACE1E7C, 0xD3375FEC, 0xCE78A399, 0x406B2A42,\r\n\t 0x20FE9E35, 0xD9F385B9, 0xEE39D7AB, 0x3B124E8B,\r\n\t 0x1DC9FAF7, 0x4B6D1856, 0x26A36631, 0xEAE397B2,\r\n\t 0x3A6EFA74, 0xDD5B4332, 0x6841E7F7, 0xCA7820FB,\r\n\t 0xFB0AF54E, 0xD8FEB397, 0x454056AC, 0xBA489527,\r\n\t 0x55533A3A, 0x20838D87, 0xFE6BA9B7, 0xD096954B,\r\n\t 0x55A867BC, 0xA1159A58, 0xCCA92963, 0x99E1DB33,\r\n\t 0xA62A4A56, 0x3F3125F9, 0x5EF47E1C, 0x9029317C,\r\n\t 0xFDF8E802, 0x04272F70, 0x80BB155C, 0x05282CE3,\r\n\t 0x95C11548, 0xE4C66D22, 0x48C1133F, 0xC70F86DC,\r\n\t 0x07F9C9EE, 0x41041F0F, 0x404779A4, 0x5D886E17,\r\n\t 0x325F51EB, 0xD59BC0D1, 0xF2BCC18F, 0x41113564,\r\n\t 0x257B7834, 0x602A9C60, 0xDFF8E8A3, 0x1F636C1B,\r\n\t 0x0E12B4C2, 0x02E1329E, 0xAF664FD1, 0xCAD18115,\r\n\t 0x6B2395E0, 0x333E92E1, 0x3B240B62, 0xEEBEB922,\r\n\t 0x85B2A20E, 0xE6BA0D99, 0xDE720C8C, 0x2DA2F728,\r\n\t 0xD0127845, 0x95B794FD, 0x647D0862, 0xE7CCF5F0,\r\n\t 0x5449A36F, 0x877D48FA, 0xC39DFD27, 0xF33E8D1E,\r\n\t 0x0A476341, 0x992EFF74, 0x3A6F6EAB, 0xF4F8FD37,\r\n\t 0xA812DC60, 0xA1EBDDF8, 0x991BE14C, 0xDB6E6B0D,\r\n\t 0xC67B5510, 0x6D672C37, 0x2765D43B, 0xDCD0E804,\r\n\t 0xF1290DC7, 0xCC00FFA3, 0xB5390F92, 0x690FED0B,\r\n\t 0x667B9FFB, 0xCEDB7D9C, 0xA091CF0B, 0xD9155EA3,\r\n\t 0xBB132F88, 0x515BAD24, 0x7B9479BF, 0x763BD6EB,\r\n\t 0x37392EB3, 0xCC115979, 0x8026E297, 0xF42E312D,\r\n\t 0x6842ADA7, 0xC66A2B3B, 0x12754CCC, 0x782EF11C,\r\n\t 0x6A124237, 0xB79251E7, 0x06A1BBE6, 0x4BFB6350,\r\n\t 0x1A6B1018, 0x11CAEDFA, 0x3D25BDD8, 0xE2E1C3C9,\r\n\t 0x44421659, 0x0A121386, 0xD90CEC6E, 0xD5ABEA2A,\r\n\t 0x64AF674E, 0xDA86A85F, 0xBEBFE988, 0x64E4C3FE,\r\n\t 0x9DBC8057, 0xF0F7C086, 0x60787BF8, 0x6003604D,\r\n\t 0xD1FD8346, 0xF6381FB0, 0x7745AE04, 0xD736FCCC,\r\n\t 0x83426B33, 0xF01EAB71, 0xB0804187, 0x3C005E5F,\r\n\t 0x77A057BE, 0xBDE8AE24, 0x55464299, 0xBF582E61,\r\n\t 0x4E58F48F, 0xF2DDFDA2, 0xF474EF38, 0x8789BDC2,\r\n\t 0x5366F9C3, 0xC8B38E74, 0xB475F255, 0x46FCD9B9,\r\n\t 0x7AEB2661, 0x8B1DDF84, 0x846A0E79, 0x915F95E2,\r\n\t 0x466E598E, 0x20B45770, 0x8CD55591, 0xC902DE4C,\r\n\t 0xB90BACE1, 0xBB8205D0, 0x11A86248, 0x7574A99E,\r\n\t 0xB77F19B6, 0xE0A9DC09, 0x662D09A1, 0xC4324633,\r\n\t 0xE85A1F02, 0x09F0BE8C, 0x4A99A025, 0x1D6EFE10,\r\n\t 0x1AB93D1D, 0x0BA5A4DF, 0xA186F20F, 0x2868F169,\r\n\t 0xDCB7DA83, 0x573906FE, 0xA1E2CE9B, 0x4FCD7F52,\r\n\t 0x50115E01, 0xA70683FA, 0xA002B5C4, 0x0DE6D027,\r\n\t 0x9AF88C27, 0x773F8641, 0xC3604C06, 0x61A806B5,\r\n\t 0xF0177A28, 0xC0F586E0, 0x006058AA, 0x30DC7D62,\r\n\t 0x11E69ED7, 0x2338EA63, 0x53C2DD94, 0xC2C21634,\r\n\t 0xBBCBEE56, 0x90BCB6DE, 0xEBFC7DA1, 0xCE591D76,\r\n\t 0x6F05E409, 0x4B7C0188, 0x39720A3D, 0x7C927C24,\r\n\t 0x86E3725F, 0x724D9DB9, 0x1AC15BB4, 0xD39EB8FC,\r\n\t 0xED545578, 0x08FCA5B5, 0xD83D7CD3, 0x4DAD0FC4,\r\n\t 0x1E50EF5E, 0xB161E6F8, 0xA28514D9, 0x6C51133C,\r\n\t 0x6FD5C7E7, 0x56E14EC4, 0x362ABFCE, 0xDDC6C837,\r\n\t 0xD79A3234, 0x92638212, 0x670EFA8E, 0x406000E0 ],\r\n\t [ 0x3A39CE37, 0xD3FAF5CF, 0xABC27737, 0x5AC52D1B,\r\n\t 0x5CB0679E, 0x4FA33742, 0xD3822740, 0x99BC9BBE,\r\n\t 0xD5118E9D, 0xBF0F7315, 0xD62D1C7E, 0xC700C47B,\r\n\t 0xB78C1B6B, 0x21A19045, 0xB26EB1BE, 0x6A366EB4,\r\n\t 0x5748AB2F, 0xBC946E79, 0xC6A376D2, 0x6549C2C8,\r\n\t 0x530FF8EE, 0x468DDE7D, 0xD5730A1D, 0x4CD04DC6,\r\n\t 0x2939BBDB, 0xA9BA4650, 0xAC9526E8, 0xBE5EE304,\r\n\t 0xA1FAD5F0, 0x6A2D519A, 0x63EF8CE2, 0x9A86EE22,\r\n\t 0xC089C2B8, 0x43242EF6, 0xA51E03AA, 0x9CF2D0A4,\r\n\t 0x83C061BA, 0x9BE96A4D, 0x8FE51550, 0xBA645BD6,\r\n\t 0x2826A2F9, 0xA73A3AE1, 0x4BA99586, 0xEF5562E9,\r\n\t 0xC72FEFD3, 0xF752F7DA, 0x3F046F69, 0x77FA0A59,\r\n\t 0x80E4A915, 0x87B08601, 0x9B09E6AD, 0x3B3EE593,\r\n\t 0xE990FD5A, 0x9E34D797, 0x2CF0B7D9, 0x022B8B51,\r\n\t 0x96D5AC3A, 0x017DA67D, 0xD1CF3ED6, 0x7C7D2D28,\r\n\t 0x1F9F25CF, 0xADF2B89B, 0x5AD6B472, 0x5A88F54C,\r\n\t 0xE029AC71, 0xE019A5E6, 0x47B0ACFD, 0xED93FA9B,\r\n\t 0xE8D3C48D, 0x283B57CC, 0xF8D56629, 0x79132E28,\r\n\t 0x785F0191, 0xED756055, 0xF7960E44, 0xE3D35E8C,\r\n\t 0x15056DD4, 0x88F46DBA, 0x03A16125, 0x0564F0BD,\r\n\t 0xC3EB9E15, 0x3C9057A2, 0x97271AEC, 0xA93A072A,\r\n\t 0x1B3F6D9B, 0x1E6321F5, 0xF59C66FB, 0x26DCF319,\r\n\t 0x7533D928, 0xB155FDF5, 0x03563482, 0x8ABA3CBB,\r\n\t 0x28517711, 0xC20AD9F8, 0xABCC5167, 0xCCAD925F,\r\n\t 0x4DE81751, 0x3830DC8E, 0x379D5862, 0x9320F991,\r\n\t 0xEA7A90C2, 0xFB3E7BCE, 0x5121CE64, 0x774FBE32,\r\n\t 0xA8B6E37E, 0xC3293D46, 0x48DE5369, 0x6413E680,\r\n\t 0xA2AE0810, 0xDD6DB224, 0x69852DFD, 0x09072166,\r\n\t 0xB39A460A, 0x6445C0DD, 0x586CDECF, 0x1C20C8AE,\r\n\t 0x5BBEF7DD, 0x1B588D40, 0xCCD2017F, 0x6BB4E3BB,\r\n\t 0xDDA26A7E, 0x3A59FF45, 0x3E350A44, 0xBCB4CDD5,\r\n\t 0x72EACEA8, 0xFA6484BB, 0x8D6612AE, 0xBF3C6F47,\r\n\t 0xD29BE463, 0x542F5D9E, 0xAEC2771B, 0xF64E6370,\r\n\t 0x740E0D8D, 0xE75B1357, 0xF8721671, 0xAF537D5D,\r\n\t 0x4040CB08, 0x4EB4E2CC, 0x34D2466A, 0x0115AF84,\r\n\t 0xE1B00428, 0x95983A1D, 0x06B89FB4, 0xCE6EA048,\r\n\t 0x6F3F3B82, 0x3520AB82, 0x011A1D4B, 0x277227F8,\r\n\t 0x611560B1, 0xE7933FDC, 0xBB3A792B, 0x344525BD,\r\n\t 0xA08839E1, 0x51CE794B, 0x2F32C9B7, 0xA01FBAC9,\r\n\t 0xE01CC87E, 0xBCC7D1F6, 0xCF0111C3, 0xA1E8AAC7,\r\n\t 0x1A908749, 0xD44FBD9A, 0xD0DADECB, 0xD50ADA38,\r\n\t 0x0339C32A, 0xC6913667, 0x8DF9317C, 0xE0B12B4F,\r\n\t 0xF79E59B7, 0x43F5BB3A, 0xF2D519FF, 0x27D9459C,\r\n\t 0xBF97222C, 0x15E6FC2A, 0x0F91FC71, 0x9B941525,\r\n\t 0xFAE59361, 0xCEB69CEB, 0xC2A86459, 0x12BAA8D1,\r\n\t 0xB6C1075E, 0xE3056A0C, 0x10D25065, 0xCB03A442,\r\n\t 0xE0EC6E0E, 0x1698DB3B, 0x4C98A0BE, 0x3278E964,\r\n\t 0x9F1F9532, 0xE0D392DF, 0xD3A0342B, 0x8971F21E,\r\n\t 0x1B0A7441, 0x4BA3348C, 0xC5BE7120, 0xC37632D8,\r\n\t 0xDF359F8D, 0x9B992F2E, 0xE60B6F47, 0x0FE3F11D,\r\n\t 0xE54CDA54, 0x1EDAD891, 0xCE6279CF, 0xCD3E7E6F,\r\n\t 0x1618B166, 0xFD2C1D05, 0x848FD2C5, 0xF6FB2299,\r\n\t 0xF523F357, 0xA6327623, 0x93A83531, 0x56CCCD02,\r\n\t 0xACF08162, 0x5A75EBB5, 0x6E163697, 0x88D273CC,\r\n\t 0xDE966292, 0x81B949D0, 0x4C50901B, 0x71C65614,\r\n\t 0xE6C6C7BD, 0x327A140A, 0x45E1D006, 0xC3F27B9A,\r\n\t 0xC9AA53FD, 0x62A80F00, 0xBB25BFE2, 0x35BDD2F6,\r\n\t 0x71126905, 0xB2040222, 0xB6CBCF7C, 0xCD769C2B,\r\n\t 0x53113EC0, 0x1640E3D3, 0x38ABBD60, 0x2547ADF0,\r\n\t 0xBA38209C, 0xF746CE76, 0x77AFA1C5, 0x20756060,\r\n\t 0x85CBFE4E, 0x8AE88DD8, 0x7AAAF9B0, 0x4CF9AA7E,\r\n\t 0x1948C25C, 0x02FB8A8C, 0x01C36AE4, 0xD6EBE1F9,\r\n\t 0x90D4F869, 0xA65CDEA0, 0x3F09252D, 0xC208E69F,\r\n\t 0xB74E6132, 0xCE77E25B, 0x578FDFE3, 0x3AC372E6 ]\r\n\t ];\r\n\r\n\t var BLOWFISH_CTX = {\r\n\t pbox: [],\r\n\t sbox: []\r\n\t }\r\n\r\n\t function F(ctx, x){\r\n\t let a = (x >> 24) & 0xFF;\r\n\t let b = (x >> 16) & 0xFF;\r\n\t let c = (x >> 8) & 0xFF;\r\n\t let d = x & 0xFF;\r\n\r\n\t let y = ctx.sbox[0][a] + ctx.sbox[1][b];\r\n\t y = y ^ ctx.sbox[2][c];\r\n\t y = y + ctx.sbox[3][d];\r\n\r\n\t return y;\r\n\t }\r\n\r\n\t function BlowFish_Encrypt(ctx, left, right){\r\n\t let Xl = left;\r\n\t let Xr = right;\r\n\t let temp;\r\n\r\n\t for(let i = 0; i < N; ++i){\r\n\t Xl = Xl ^ ctx.pbox[i];\r\n\t Xr = F(ctx, Xl) ^ Xr;\r\n\r\n\t temp = Xl;\r\n\t Xl = Xr;\r\n\t Xr = temp;\r\n\t }\r\n\r\n\t temp = Xl;\r\n\t Xl = Xr;\r\n\t Xr = temp;\r\n\r\n\t Xr = Xr ^ ctx.pbox[N];\r\n\t Xl = Xl ^ ctx.pbox[N + 1];\r\n\r\n\t return {left: Xl, right: Xr};\r\n\t }\r\n\r\n\t function BlowFish_Decrypt(ctx, left, right){\r\n\t let Xl = left;\r\n\t let Xr = right;\r\n\t let temp;\r\n\r\n\t for(let i = N + 1; i > 1; --i){\r\n\t Xl = Xl ^ ctx.pbox[i];\r\n\t Xr = F(ctx, Xl) ^ Xr;\r\n\r\n\t temp = Xl;\r\n\t Xl = Xr;\r\n\t Xr = temp;\r\n\t }\r\n\r\n\t temp = Xl;\r\n\t Xl = Xr;\r\n\t Xr = temp;\r\n\r\n\t Xr = Xr ^ ctx.pbox[1];\r\n\t Xl = Xl ^ ctx.pbox[0];\r\n\r\n\t return {left: Xl, right: Xr};\r\n\t }\r\n\r\n\t /**\r\n\t * Initialization ctx's pbox and sbox.\r\n\t *\r\n\t * @param {Object} ctx The object has pbox and sbox.\r\n\t * @param {Array} key An array of 32-bit words.\r\n\t * @param {int} keysize The length of the key.\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * BlowFishInit(BLOWFISH_CTX, key, 128/32);\r\n\t */\r\n\t function BlowFishInit(ctx, key, keysize)\r\n\t {\r\n\t for(let Row = 0; Row < 4; Row++)\r\n\t {\r\n\t ctx.sbox[Row] = [];\r\n\t for(let Col = 0; Col < 256; Col++)\r\n\t {\r\n\t ctx.sbox[Row][Col] = ORIG_S[Row][Col];\r\n\t }\r\n\t }\r\n\r\n\t let keyIndex = 0;\r\n\t for(let index = 0; index < N + 2; index++)\r\n\t {\r\n\t ctx.pbox[index] = ORIG_P[index] ^ key[keyIndex];\r\n\t keyIndex++;\r\n\t if(keyIndex >= keysize)\r\n\t {\r\n\t keyIndex = 0;\r\n\t }\r\n\t }\r\n\r\n\t let Data1 = 0;\r\n\t let Data2 = 0;\r\n\t let res = 0;\r\n\t for(let i = 0; i < N + 2; i += 2)\r\n\t {\r\n\t res = BlowFish_Encrypt(ctx, Data1, Data2);\r\n\t Data1 = res.left;\r\n\t Data2 = res.right;\r\n\t ctx.pbox[i] = Data1;\r\n\t ctx.pbox[i + 1] = Data2;\r\n\t }\r\n\r\n\t for(let i = 0; i < 4; i++)\r\n\t {\r\n\t for(let j = 0; j < 256; j += 2)\r\n\t {\r\n\t res = BlowFish_Encrypt(ctx, Data1, Data2);\r\n\t Data1 = res.left;\r\n\t Data2 = res.right;\r\n\t ctx.sbox[i][j] = Data1;\r\n\t ctx.sbox[i][j + 1] = Data2;\r\n\t }\r\n\t }\r\n\r\n\t return true;\r\n\t }\r\n\r\n\t /**\r\n\t * Blowfish block cipher algorithm.\r\n\t */\r\n\t var Blowfish = C_algo.Blowfish = BlockCipher.extend({\r\n\t _doReset: function () {\r\n\t // Skip reset of nRounds has been set before and key did not change\r\n\t if (this._keyPriorReset === this._key) {\r\n\t return;\r\n\t }\r\n\r\n\t // Shortcuts\r\n\t var key = this._keyPriorReset = this._key;\r\n\t var keyWords = key.words;\r\n\t var keySize = key.sigBytes / 4;\r\n\r\n\t //Initialization pbox and sbox\r\n\t BlowFishInit(BLOWFISH_CTX, keyWords, keySize);\r\n\t },\r\n\r\n\t encryptBlock: function (M, offset) {\r\n\t var res = BlowFish_Encrypt(BLOWFISH_CTX, M[offset], M[offset + 1]);\r\n\t M[offset] = res.left;\r\n\t M[offset + 1] = res.right;\r\n\t },\r\n\r\n\t decryptBlock: function (M, offset) {\r\n\t var res = BlowFish_Decrypt(BLOWFISH_CTX, M[offset], M[offset + 1]);\r\n\t M[offset] = res.left;\r\n\t M[offset + 1] = res.right;\r\n\t },\r\n\r\n\t blockSize: 64/32,\r\n\r\n\t keySize: 128/32,\r\n\r\n\t ivSize: 64/32\r\n\t });\r\n\r\n\t /**\r\n\t * Shortcut functions to the cipher's object interface.\r\n\t *\r\n\t * @example\r\n\t *\r\n\t * var ciphertext = CryptoJS.Blowfish.encrypt(message, key, cfg);\r\n\t * var plaintext = CryptoJS.Blowfish.decrypt(ciphertext, key, cfg);\r\n\t */\r\n\t C.Blowfish = BlockCipher._createHelper(Blowfish);\r\n\t}());\r\n\r\n\r\n\treturn CryptoJS.Blowfish;\r\n\r\n}));", ";(function (root, factory, undef) {\r\n\tif (typeof exports === \"object\") {\r\n\t\t// CommonJS\r\n\t\tmodule.exports = exports = factory(require(\"./core\"), require(\"./x64-core\"), require(\"./lib-typedarrays\"), require(\"./enc-utf16\"), require(\"./enc-base64\"), require(\"./enc-base64url\"), require(\"./md5\"), require(\"./sha1\"), require(\"./sha256\"), require(\"./sha224\"), require(\"./sha512\"), require(\"./sha384\"), require(\"./sha3\"), require(\"./ripemd160\"), require(\"./hmac\"), require(\"./pbkdf2\"), require(\"./evpkdf\"), require(\"./cipher-core\"), require(\"./mode-cfb\"), require(\"./mode-ctr\"), require(\"./mode-ctr-gladman\"), require(\"./mode-ofb\"), require(\"./mode-ecb\"), require(\"./pad-ansix923\"), require(\"./pad-iso10126\"), require(\"./pad-iso97971\"), require(\"./pad-zeropadding\"), require(\"./pad-nopadding\"), require(\"./format-hex\"), require(\"./aes\"), require(\"./tripledes\"), require(\"./rc4\"), require(\"./rabbit\"), require(\"./rabbit-legacy\"), require(\"./blowfish\"));\r\n\t}\r\n\telse if (typeof define === \"function\" && define.amd) {\r\n\t\t// AMD\r\n\t\tdefine([\"./core\", \"./x64-core\", \"./lib-typedarrays\", \"./enc-utf16\", \"./enc-base64\", \"./enc-base64url\", \"./md5\", \"./sha1\", \"./sha256\", \"./sha224\", \"./sha512\", \"./sha384\", \"./sha3\", \"./ripemd160\", \"./hmac\", \"./pbkdf2\", \"./evpkdf\", \"./cipher-core\", \"./mode-cfb\", \"./mode-ctr\", \"./mode-ctr-gladman\", \"./mode-ofb\", \"./mode-ecb\", \"./pad-ansix923\", \"./pad-iso10126\", \"./pad-iso97971\", \"./pad-zeropadding\", \"./pad-nopadding\", \"./format-hex\", \"./aes\", \"./tripledes\", \"./rc4\", \"./rabbit\", \"./rabbit-legacy\", \"./blowfish\"], factory);\r\n\t}\r\n\telse {\r\n\t\t// Global (browser)\r\n\t\troot.CryptoJS = factory(root.CryptoJS);\r\n\t}\r\n}(this, function (CryptoJS) {\r\n\r\n\treturn CryptoJS;\r\n\r\n}));"], + "sourcesContent": ["module.exports = Object.create(new Proxy({}, {\n get(_, key) {\n if (\n key !== '__esModule' &&\n key !== '__proto__' &&\n key !== 'constructor' &&\n key !== 'splice'\n ) {\n console.warn(`Module \"crypto\" has been externalized for browser compatibility. Cannot access \"crypto.${key}\" in client code. See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.`)\n }\n }\n}))", ";(function (root, factory) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory();\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\troot.CryptoJS = factory();\n\t}\n}(this, function () {\n\n\t/*globals window, global, require*/\n\n\t/**\n\t * CryptoJS core components.\n\t */\n\tvar CryptoJS = CryptoJS || (function (Math, undefined) {\n\n\t var crypto;\n\n\t // Native crypto from window (Browser)\n\t if (typeof window !== 'undefined' && window.crypto) {\n\t crypto = window.crypto;\n\t }\n\n\t // Native crypto in web worker (Browser)\n\t if (typeof self !== 'undefined' && self.crypto) {\n\t crypto = self.crypto;\n\t }\n\n\t // Native crypto from worker\n\t if (typeof globalThis !== 'undefined' && globalThis.crypto) {\n\t crypto = globalThis.crypto;\n\t }\n\n\t // Native (experimental IE 11) crypto from window (Browser)\n\t if (!crypto && typeof window !== 'undefined' && window.msCrypto) {\n\t crypto = window.msCrypto;\n\t }\n\n\t // Native crypto from global (NodeJS)\n\t if (!crypto && typeof global !== 'undefined' && global.crypto) {\n\t crypto = global.crypto;\n\t }\n\n\t // Native crypto import via require (NodeJS)\n\t if (!crypto && typeof require === 'function') {\n\t try {\n\t crypto = require('crypto');\n\t } catch (err) {}\n\t }\n\n\t /*\n\t * Cryptographically secure pseudorandom number generator\n\t *\n\t * As Math.random() is cryptographically not safe to use\n\t */\n\t var cryptoSecureRandomInt = function () {\n\t if (crypto) {\n\t // Use getRandomValues method (Browser)\n\t if (typeof crypto.getRandomValues === 'function') {\n\t try {\n\t return crypto.getRandomValues(new Uint32Array(1))[0];\n\t } catch (err) {}\n\t }\n\n\t // Use randomBytes method (NodeJS)\n\t if (typeof crypto.randomBytes === 'function') {\n\t try {\n\t return crypto.randomBytes(4).readInt32LE();\n\t } catch (err) {}\n\t }\n\t }\n\n\t throw new Error('Native crypto module could not be used to get secure random number.');\n\t };\n\n\t /*\n\t * Local polyfill of Object.create\n\n\t */\n\t var create = Object.create || (function () {\n\t function F() {}\n\n\t return function (obj) {\n\t var subtype;\n\n\t F.prototype = obj;\n\n\t subtype = new F();\n\n\t F.prototype = null;\n\n\t return subtype;\n\t };\n\t }());\n\n\t /**\n\t * CryptoJS namespace.\n\t */\n\t var C = {};\n\n\t /**\n\t * Library namespace.\n\t */\n\t var C_lib = C.lib = {};\n\n\t /**\n\t * Base object for prototypal inheritance.\n\t */\n\t var Base = C_lib.Base = (function () {\n\n\n\t return {\n\t /**\n\t * Creates a new object that inherits from this object.\n\t *\n\t * @param {Object} overrides Properties to copy into the new object.\n\t *\n\t * @return {Object} The new object.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var MyType = CryptoJS.lib.Base.extend({\n\t * field: 'value',\n\t *\n\t * method: function () {\n\t * }\n\t * });\n\t */\n\t extend: function (overrides) {\n\t // Spawn\n\t var subtype = create(this);\n\n\t // Augment\n\t if (overrides) {\n\t subtype.mixIn(overrides);\n\t }\n\n\t // Create default initializer\n\t if (!subtype.hasOwnProperty('init') || this.init === subtype.init) {\n\t subtype.init = function () {\n\t subtype.$super.init.apply(this, arguments);\n\t };\n\t }\n\n\t // Initializer's prototype is the subtype object\n\t subtype.init.prototype = subtype;\n\n\t // Reference supertype\n\t subtype.$super = this;\n\n\t return subtype;\n\t },\n\n\t /**\n\t * Extends this object and runs the init method.\n\t * Arguments to create() will be passed to init().\n\t *\n\t * @return {Object} The new object.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var instance = MyType.create();\n\t */\n\t create: function () {\n\t var instance = this.extend();\n\t instance.init.apply(instance, arguments);\n\n\t return instance;\n\t },\n\n\t /**\n\t * Initializes a newly created object.\n\t * Override this method to add some logic when your objects are created.\n\t *\n\t * @example\n\t *\n\t * var MyType = CryptoJS.lib.Base.extend({\n\t * init: function () {\n\t * // ...\n\t * }\n\t * });\n\t */\n\t init: function () {\n\t },\n\n\t /**\n\t * Copies properties into this object.\n\t *\n\t * @param {Object} properties The properties to mix in.\n\t *\n\t * @example\n\t *\n\t * MyType.mixIn({\n\t * field: 'value'\n\t * });\n\t */\n\t mixIn: function (properties) {\n\t for (var propertyName in properties) {\n\t if (properties.hasOwnProperty(propertyName)) {\n\t this[propertyName] = properties[propertyName];\n\t }\n\t }\n\n\t // IE won't copy toString using the loop above\n\t if (properties.hasOwnProperty('toString')) {\n\t this.toString = properties.toString;\n\t }\n\t },\n\n\t /**\n\t * Creates a copy of this object.\n\t *\n\t * @return {Object} The clone.\n\t *\n\t * @example\n\t *\n\t * var clone = instance.clone();\n\t */\n\t clone: function () {\n\t return this.init.prototype.extend(this);\n\t }\n\t };\n\t }());\n\n\t /**\n\t * An array of 32-bit words.\n\t *\n\t * @property {Array} words The array of 32-bit words.\n\t * @property {number} sigBytes The number of significant bytes in this word array.\n\t */\n\t var WordArray = C_lib.WordArray = Base.extend({\n\t /**\n\t * Initializes a newly created word array.\n\t *\n\t * @param {Array} words (Optional) An array of 32-bit words.\n\t * @param {number} sigBytes (Optional) The number of significant bytes in the words.\n\t *\n\t * @example\n\t *\n\t * var wordArray = CryptoJS.lib.WordArray.create();\n\t * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607]);\n\t * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607], 6);\n\t */\n\t init: function (words, sigBytes) {\n\t words = this.words = words || [];\n\n\t if (sigBytes != undefined) {\n\t this.sigBytes = sigBytes;\n\t } else {\n\t this.sigBytes = words.length * 4;\n\t }\n\t },\n\n\t /**\n\t * Converts this word array to a string.\n\t *\n\t * @param {Encoder} encoder (Optional) The encoding strategy to use. Default: CryptoJS.enc.Hex\n\t *\n\t * @return {string} The stringified word array.\n\t *\n\t * @example\n\t *\n\t * var string = wordArray + '';\n\t * var string = wordArray.toString();\n\t * var string = wordArray.toString(CryptoJS.enc.Utf8);\n\t */\n\t toString: function (encoder) {\n\t return (encoder || Hex).stringify(this);\n\t },\n\n\t /**\n\t * Concatenates a word array to this word array.\n\t *\n\t * @param {WordArray} wordArray The word array to append.\n\t *\n\t * @return {WordArray} This word array.\n\t *\n\t * @example\n\t *\n\t * wordArray1.concat(wordArray2);\n\t */\n\t concat: function (wordArray) {\n\t // Shortcuts\n\t var thisWords = this.words;\n\t var thatWords = wordArray.words;\n\t var thisSigBytes = this.sigBytes;\n\t var thatSigBytes = wordArray.sigBytes;\n\n\t // Clamp excess bits\n\t this.clamp();\n\n\t // Concat\n\t if (thisSigBytes % 4) {\n\t // Copy one byte at a time\n\t for (var i = 0; i < thatSigBytes; i++) {\n\t var thatByte = (thatWords[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;\n\t thisWords[(thisSigBytes + i) >>> 2] |= thatByte << (24 - ((thisSigBytes + i) % 4) * 8);\n\t }\n\t } else {\n\t // Copy one word at a time\n\t for (var j = 0; j < thatSigBytes; j += 4) {\n\t thisWords[(thisSigBytes + j) >>> 2] = thatWords[j >>> 2];\n\t }\n\t }\n\t this.sigBytes += thatSigBytes;\n\n\t // Chainable\n\t return this;\n\t },\n\n\t /**\n\t * Removes insignificant bits.\n\t *\n\t * @example\n\t *\n\t * wordArray.clamp();\n\t */\n\t clamp: function () {\n\t // Shortcuts\n\t var words = this.words;\n\t var sigBytes = this.sigBytes;\n\n\t // Clamp\n\t words[sigBytes >>> 2] &= 0xffffffff << (32 - (sigBytes % 4) * 8);\n\t words.length = Math.ceil(sigBytes / 4);\n\t },\n\n\t /**\n\t * Creates a copy of this word array.\n\t *\n\t * @return {WordArray} The clone.\n\t *\n\t * @example\n\t *\n\t * var clone = wordArray.clone();\n\t */\n\t clone: function () {\n\t var clone = Base.clone.call(this);\n\t clone.words = this.words.slice(0);\n\n\t return clone;\n\t },\n\n\t /**\n\t * Creates a word array filled with random bytes.\n\t *\n\t * @param {number} nBytes The number of random bytes to generate.\n\t *\n\t * @return {WordArray} The random word array.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var wordArray = CryptoJS.lib.WordArray.random(16);\n\t */\n\t random: function (nBytes) {\n\t var words = [];\n\n\t for (var i = 0; i < nBytes; i += 4) {\n\t words.push(cryptoSecureRandomInt());\n\t }\n\n\t return new WordArray.init(words, nBytes);\n\t }\n\t });\n\n\t /**\n\t * Encoder namespace.\n\t */\n\t var C_enc = C.enc = {};\n\n\t /**\n\t * Hex encoding strategy.\n\t */\n\t var Hex = C_enc.Hex = {\n\t /**\n\t * Converts a word array to a hex string.\n\t *\n\t * @param {WordArray} wordArray The word array.\n\t *\n\t * @return {string} The hex string.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var hexString = CryptoJS.enc.Hex.stringify(wordArray);\n\t */\n\t stringify: function (wordArray) {\n\t // Shortcuts\n\t var words = wordArray.words;\n\t var sigBytes = wordArray.sigBytes;\n\n\t // Convert\n\t var hexChars = [];\n\t for (var i = 0; i < sigBytes; i++) {\n\t var bite = (words[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;\n\t hexChars.push((bite >>> 4).toString(16));\n\t hexChars.push((bite & 0x0f).toString(16));\n\t }\n\n\t return hexChars.join('');\n\t },\n\n\t /**\n\t * Converts a hex string to a word array.\n\t *\n\t * @param {string} hexStr The hex string.\n\t *\n\t * @return {WordArray} The word array.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var wordArray = CryptoJS.enc.Hex.parse(hexString);\n\t */\n\t parse: function (hexStr) {\n\t // Shortcut\n\t var hexStrLength = hexStr.length;\n\n\t // Convert\n\t var words = [];\n\t for (var i = 0; i < hexStrLength; i += 2) {\n\t words[i >>> 3] |= parseInt(hexStr.substr(i, 2), 16) << (24 - (i % 8) * 4);\n\t }\n\n\t return new WordArray.init(words, hexStrLength / 2);\n\t }\n\t };\n\n\t /**\n\t * Latin1 encoding strategy.\n\t */\n\t var Latin1 = C_enc.Latin1 = {\n\t /**\n\t * Converts a word array to a Latin1 string.\n\t *\n\t * @param {WordArray} wordArray The word array.\n\t *\n\t * @return {string} The Latin1 string.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var latin1String = CryptoJS.enc.Latin1.stringify(wordArray);\n\t */\n\t stringify: function (wordArray) {\n\t // Shortcuts\n\t var words = wordArray.words;\n\t var sigBytes = wordArray.sigBytes;\n\n\t // Convert\n\t var latin1Chars = [];\n\t for (var i = 0; i < sigBytes; i++) {\n\t var bite = (words[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;\n\t latin1Chars.push(String.fromCharCode(bite));\n\t }\n\n\t return latin1Chars.join('');\n\t },\n\n\t /**\n\t * Converts a Latin1 string to a word array.\n\t *\n\t * @param {string} latin1Str The Latin1 string.\n\t *\n\t * @return {WordArray} The word array.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var wordArray = CryptoJS.enc.Latin1.parse(latin1String);\n\t */\n\t parse: function (latin1Str) {\n\t // Shortcut\n\t var latin1StrLength = latin1Str.length;\n\n\t // Convert\n\t var words = [];\n\t for (var i = 0; i < latin1StrLength; i++) {\n\t words[i >>> 2] |= (latin1Str.charCodeAt(i) & 0xff) << (24 - (i % 4) * 8);\n\t }\n\n\t return new WordArray.init(words, latin1StrLength);\n\t }\n\t };\n\n\t /**\n\t * UTF-8 encoding strategy.\n\t */\n\t var Utf8 = C_enc.Utf8 = {\n\t /**\n\t * Converts a word array to a UTF-8 string.\n\t *\n\t * @param {WordArray} wordArray The word array.\n\t *\n\t * @return {string} The UTF-8 string.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var utf8String = CryptoJS.enc.Utf8.stringify(wordArray);\n\t */\n\t stringify: function (wordArray) {\n\t try {\n\t return decodeURIComponent(escape(Latin1.stringify(wordArray)));\n\t } catch (e) {\n\t throw new Error('Malformed UTF-8 data');\n\t }\n\t },\n\n\t /**\n\t * Converts a UTF-8 string to a word array.\n\t *\n\t * @param {string} utf8Str The UTF-8 string.\n\t *\n\t * @return {WordArray} The word array.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var wordArray = CryptoJS.enc.Utf8.parse(utf8String);\n\t */\n\t parse: function (utf8Str) {\n\t return Latin1.parse(unescape(encodeURIComponent(utf8Str)));\n\t }\n\t };\n\n\t /**\n\t * Abstract buffered block algorithm template.\n\t *\n\t * The property blockSize must be implemented in a concrete subtype.\n\t *\n\t * @property {number} _minBufferSize The number of blocks that should be kept unprocessed in the buffer. Default: 0\n\t */\n\t var BufferedBlockAlgorithm = C_lib.BufferedBlockAlgorithm = Base.extend({\n\t /**\n\t * Resets this block algorithm's data buffer to its initial state.\n\t *\n\t * @example\n\t *\n\t * bufferedBlockAlgorithm.reset();\n\t */\n\t reset: function () {\n\t // Initial values\n\t this._data = new WordArray.init();\n\t this._nDataBytes = 0;\n\t },\n\n\t /**\n\t * Adds new data to this block algorithm's buffer.\n\t *\n\t * @param {WordArray|string} data The data to append. Strings are converted to a WordArray using UTF-8.\n\t *\n\t * @example\n\t *\n\t * bufferedBlockAlgorithm._append('data');\n\t * bufferedBlockAlgorithm._append(wordArray);\n\t */\n\t _append: function (data) {\n\t // Convert string to WordArray, else assume WordArray already\n\t if (typeof data == 'string') {\n\t data = Utf8.parse(data);\n\t }\n\n\t // Append\n\t this._data.concat(data);\n\t this._nDataBytes += data.sigBytes;\n\t },\n\n\t /**\n\t * Processes available data blocks.\n\t *\n\t * This method invokes _doProcessBlock(offset), which must be implemented by a concrete subtype.\n\t *\n\t * @param {boolean} doFlush Whether all blocks and partial blocks should be processed.\n\t *\n\t * @return {WordArray} The processed data.\n\t *\n\t * @example\n\t *\n\t * var processedData = bufferedBlockAlgorithm._process();\n\t * var processedData = bufferedBlockAlgorithm._process(!!'flush');\n\t */\n\t _process: function (doFlush) {\n\t var processedWords;\n\n\t // Shortcuts\n\t var data = this._data;\n\t var dataWords = data.words;\n\t var dataSigBytes = data.sigBytes;\n\t var blockSize = this.blockSize;\n\t var blockSizeBytes = blockSize * 4;\n\n\t // Count blocks ready\n\t var nBlocksReady = dataSigBytes / blockSizeBytes;\n\t if (doFlush) {\n\t // Round up to include partial blocks\n\t nBlocksReady = Math.ceil(nBlocksReady);\n\t } else {\n\t // Round down to include only full blocks,\n\t // less the number of blocks that must remain in the buffer\n\t nBlocksReady = Math.max((nBlocksReady | 0) - this._minBufferSize, 0);\n\t }\n\n\t // Count words ready\n\t var nWordsReady = nBlocksReady * blockSize;\n\n\t // Count bytes ready\n\t var nBytesReady = Math.min(nWordsReady * 4, dataSigBytes);\n\n\t // Process blocks\n\t if (nWordsReady) {\n\t for (var offset = 0; offset < nWordsReady; offset += blockSize) {\n\t // Perform concrete-algorithm logic\n\t this._doProcessBlock(dataWords, offset);\n\t }\n\n\t // Remove processed words\n\t processedWords = dataWords.splice(0, nWordsReady);\n\t data.sigBytes -= nBytesReady;\n\t }\n\n\t // Return processed words\n\t return new WordArray.init(processedWords, nBytesReady);\n\t },\n\n\t /**\n\t * Creates a copy of this object.\n\t *\n\t * @return {Object} The clone.\n\t *\n\t * @example\n\t *\n\t * var clone = bufferedBlockAlgorithm.clone();\n\t */\n\t clone: function () {\n\t var clone = Base.clone.call(this);\n\t clone._data = this._data.clone();\n\n\t return clone;\n\t },\n\n\t _minBufferSize: 0\n\t });\n\n\t /**\n\t * Abstract hasher template.\n\t *\n\t * @property {number} blockSize The number of 32-bit words this hasher operates on. Default: 16 (512 bits)\n\t */\n\t var Hasher = C_lib.Hasher = BufferedBlockAlgorithm.extend({\n\t /**\n\t * Configuration options.\n\t */\n\t cfg: Base.extend(),\n\n\t /**\n\t * Initializes a newly created hasher.\n\t *\n\t * @param {Object} cfg (Optional) The configuration options to use for this hash computation.\n\t *\n\t * @example\n\t *\n\t * var hasher = CryptoJS.algo.SHA256.create();\n\t */\n\t init: function (cfg) {\n\t // Apply config defaults\n\t this.cfg = this.cfg.extend(cfg);\n\n\t // Set initial values\n\t this.reset();\n\t },\n\n\t /**\n\t * Resets this hasher to its initial state.\n\t *\n\t * @example\n\t *\n\t * hasher.reset();\n\t */\n\t reset: function () {\n\t // Reset data buffer\n\t BufferedBlockAlgorithm.reset.call(this);\n\n\t // Perform concrete-hasher logic\n\t this._doReset();\n\t },\n\n\t /**\n\t * Updates this hasher with a message.\n\t *\n\t * @param {WordArray|string} messageUpdate The message to append.\n\t *\n\t * @return {Hasher} This hasher.\n\t *\n\t * @example\n\t *\n\t * hasher.update('message');\n\t * hasher.update(wordArray);\n\t */\n\t update: function (messageUpdate) {\n\t // Append\n\t this._append(messageUpdate);\n\n\t // Update the hash\n\t this._process();\n\n\t // Chainable\n\t return this;\n\t },\n\n\t /**\n\t * Finalizes the hash computation.\n\t * Note that the finalize operation is effectively a destructive, read-once operation.\n\t *\n\t * @param {WordArray|string} messageUpdate (Optional) A final message update.\n\t *\n\t * @return {WordArray} The hash.\n\t *\n\t * @example\n\t *\n\t * var hash = hasher.finalize();\n\t * var hash = hasher.finalize('message');\n\t * var hash = hasher.finalize(wordArray);\n\t */\n\t finalize: function (messageUpdate) {\n\t // Final message update\n\t if (messageUpdate) {\n\t this._append(messageUpdate);\n\t }\n\n\t // Perform concrete-hasher logic\n\t var hash = this._doFinalize();\n\n\t return hash;\n\t },\n\n\t blockSize: 512/32,\n\n\t /**\n\t * Creates a shortcut function to a hasher's object interface.\n\t *\n\t * @param {Hasher} hasher The hasher to create a helper for.\n\t *\n\t * @return {Function} The shortcut function.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var SHA256 = CryptoJS.lib.Hasher._createHelper(CryptoJS.algo.SHA256);\n\t */\n\t _createHelper: function (hasher) {\n\t return function (message, cfg) {\n\t return new hasher.init(cfg).finalize(message);\n\t };\n\t },\n\n\t /**\n\t * Creates a shortcut function to the HMAC's object interface.\n\t *\n\t * @param {Hasher} hasher The hasher to use in this HMAC helper.\n\t *\n\t * @return {Function} The shortcut function.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var HmacSHA256 = CryptoJS.lib.Hasher._createHmacHelper(CryptoJS.algo.SHA256);\n\t */\n\t _createHmacHelper: function (hasher) {\n\t return function (message, key) {\n\t return new C_algo.HMAC.init(hasher, key).finalize(message);\n\t };\n\t }\n\t });\n\n\t /**\n\t * Algorithm namespace.\n\t */\n\t var C_algo = C.algo = {};\n\n\t return C;\n\t}(Math));\n\n\n\treturn CryptoJS;\n\n}));", ";(function (root, factory) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory(require(\"./core\"));\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([\"./core\"], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\tfactory(root.CryptoJS);\n\t}\n}(this, function (CryptoJS) {\n\n\t(function (undefined) {\n\t // Shortcuts\n\t var C = CryptoJS;\n\t var C_lib = C.lib;\n\t var Base = C_lib.Base;\n\t var X32WordArray = C_lib.WordArray;\n\n\t /**\n\t * x64 namespace.\n\t */\n\t var C_x64 = C.x64 = {};\n\n\t /**\n\t * A 64-bit word.\n\t */\n\t var X64Word = C_x64.Word = Base.extend({\n\t /**\n\t * Initializes a newly created 64-bit word.\n\t *\n\t * @param {number} high The high 32 bits.\n\t * @param {number} low The low 32 bits.\n\t *\n\t * @example\n\t *\n\t * var x64Word = CryptoJS.x64.Word.create(0x00010203, 0x04050607);\n\t */\n\t init: function (high, low) {\n\t this.high = high;\n\t this.low = low;\n\t }\n\n\t /**\n\t * Bitwise NOTs this word.\n\t *\n\t * @return {X64Word} A new x64-Word object after negating.\n\t *\n\t * @example\n\t *\n\t * var negated = x64Word.not();\n\t */\n\t // not: function () {\n\t // var high = ~this.high;\n\t // var low = ~this.low;\n\n\t // return X64Word.create(high, low);\n\t // },\n\n\t /**\n\t * Bitwise ANDs this word with the passed word.\n\t *\n\t * @param {X64Word} word The x64-Word to AND with this word.\n\t *\n\t * @return {X64Word} A new x64-Word object after ANDing.\n\t *\n\t * @example\n\t *\n\t * var anded = x64Word.and(anotherX64Word);\n\t */\n\t // and: function (word) {\n\t // var high = this.high & word.high;\n\t // var low = this.low & word.low;\n\n\t // return X64Word.create(high, low);\n\t // },\n\n\t /**\n\t * Bitwise ORs this word with the passed word.\n\t *\n\t * @param {X64Word} word The x64-Word to OR with this word.\n\t *\n\t * @return {X64Word} A new x64-Word object after ORing.\n\t *\n\t * @example\n\t *\n\t * var ored = x64Word.or(anotherX64Word);\n\t */\n\t // or: function (word) {\n\t // var high = this.high | word.high;\n\t // var low = this.low | word.low;\n\n\t // return X64Word.create(high, low);\n\t // },\n\n\t /**\n\t * Bitwise XORs this word with the passed word.\n\t *\n\t * @param {X64Word} word The x64-Word to XOR with this word.\n\t *\n\t * @return {X64Word} A new x64-Word object after XORing.\n\t *\n\t * @example\n\t *\n\t * var xored = x64Word.xor(anotherX64Word);\n\t */\n\t // xor: function (word) {\n\t // var high = this.high ^ word.high;\n\t // var low = this.low ^ word.low;\n\n\t // return X64Word.create(high, low);\n\t // },\n\n\t /**\n\t * Shifts this word n bits to the left.\n\t *\n\t * @param {number} n The number of bits to shift.\n\t *\n\t * @return {X64Word} A new x64-Word object after shifting.\n\t *\n\t * @example\n\t *\n\t * var shifted = x64Word.shiftL(25);\n\t */\n\t // shiftL: function (n) {\n\t // if (n < 32) {\n\t // var high = (this.high << n) | (this.low >>> (32 - n));\n\t // var low = this.low << n;\n\t // } else {\n\t // var high = this.low << (n - 32);\n\t // var low = 0;\n\t // }\n\n\t // return X64Word.create(high, low);\n\t // },\n\n\t /**\n\t * Shifts this word n bits to the right.\n\t *\n\t * @param {number} n The number of bits to shift.\n\t *\n\t * @return {X64Word} A new x64-Word object after shifting.\n\t *\n\t * @example\n\t *\n\t * var shifted = x64Word.shiftR(7);\n\t */\n\t // shiftR: function (n) {\n\t // if (n < 32) {\n\t // var low = (this.low >>> n) | (this.high << (32 - n));\n\t // var high = this.high >>> n;\n\t // } else {\n\t // var low = this.high >>> (n - 32);\n\t // var high = 0;\n\t // }\n\n\t // return X64Word.create(high, low);\n\t // },\n\n\t /**\n\t * Rotates this word n bits to the left.\n\t *\n\t * @param {number} n The number of bits to rotate.\n\t *\n\t * @return {X64Word} A new x64-Word object after rotating.\n\t *\n\t * @example\n\t *\n\t * var rotated = x64Word.rotL(25);\n\t */\n\t // rotL: function (n) {\n\t // return this.shiftL(n).or(this.shiftR(64 - n));\n\t // },\n\n\t /**\n\t * Rotates this word n bits to the right.\n\t *\n\t * @param {number} n The number of bits to rotate.\n\t *\n\t * @return {X64Word} A new x64-Word object after rotating.\n\t *\n\t * @example\n\t *\n\t * var rotated = x64Word.rotR(7);\n\t */\n\t // rotR: function (n) {\n\t // return this.shiftR(n).or(this.shiftL(64 - n));\n\t // },\n\n\t /**\n\t * Adds this word with the passed word.\n\t *\n\t * @param {X64Word} word The x64-Word to add with this word.\n\t *\n\t * @return {X64Word} A new x64-Word object after adding.\n\t *\n\t * @example\n\t *\n\t * var added = x64Word.add(anotherX64Word);\n\t */\n\t // add: function (word) {\n\t // var low = (this.low + word.low) | 0;\n\t // var carry = (low >>> 0) < (this.low >>> 0) ? 1 : 0;\n\t // var high = (this.high + word.high + carry) | 0;\n\n\t // return X64Word.create(high, low);\n\t // }\n\t });\n\n\t /**\n\t * An array of 64-bit words.\n\t *\n\t * @property {Array} words The array of CryptoJS.x64.Word objects.\n\t * @property {number} sigBytes The number of significant bytes in this word array.\n\t */\n\t var X64WordArray = C_x64.WordArray = Base.extend({\n\t /**\n\t * Initializes a newly created word array.\n\t *\n\t * @param {Array} words (Optional) An array of CryptoJS.x64.Word objects.\n\t * @param {number} sigBytes (Optional) The number of significant bytes in the words.\n\t *\n\t * @example\n\t *\n\t * var wordArray = CryptoJS.x64.WordArray.create();\n\t *\n\t * var wordArray = CryptoJS.x64.WordArray.create([\n\t * CryptoJS.x64.Word.create(0x00010203, 0x04050607),\n\t * CryptoJS.x64.Word.create(0x18191a1b, 0x1c1d1e1f)\n\t * ]);\n\t *\n\t * var wordArray = CryptoJS.x64.WordArray.create([\n\t * CryptoJS.x64.Word.create(0x00010203, 0x04050607),\n\t * CryptoJS.x64.Word.create(0x18191a1b, 0x1c1d1e1f)\n\t * ], 10);\n\t */\n\t init: function (words, sigBytes) {\n\t words = this.words = words || [];\n\n\t if (sigBytes != undefined) {\n\t this.sigBytes = sigBytes;\n\t } else {\n\t this.sigBytes = words.length * 8;\n\t }\n\t },\n\n\t /**\n\t * Converts this 64-bit word array to a 32-bit word array.\n\t *\n\t * @return {CryptoJS.lib.WordArray} This word array's data as a 32-bit word array.\n\t *\n\t * @example\n\t *\n\t * var x32WordArray = x64WordArray.toX32();\n\t */\n\t toX32: function () {\n\t // Shortcuts\n\t var x64Words = this.words;\n\t var x64WordsLength = x64Words.length;\n\n\t // Convert\n\t var x32Words = [];\n\t for (var i = 0; i < x64WordsLength; i++) {\n\t var x64Word = x64Words[i];\n\t x32Words.push(x64Word.high);\n\t x32Words.push(x64Word.low);\n\t }\n\n\t return X32WordArray.create(x32Words, this.sigBytes);\n\t },\n\n\t /**\n\t * Creates a copy of this word array.\n\t *\n\t * @return {X64WordArray} The clone.\n\t *\n\t * @example\n\t *\n\t * var clone = x64WordArray.clone();\n\t */\n\t clone: function () {\n\t var clone = Base.clone.call(this);\n\n\t // Clone \"words\" array\n\t var words = clone.words = this.words.slice(0);\n\n\t // Clone each X64Word object\n\t var wordsLength = words.length;\n\t for (var i = 0; i < wordsLength; i++) {\n\t words[i] = words[i].clone();\n\t }\n\n\t return clone;\n\t }\n\t });\n\t}());\n\n\n\treturn CryptoJS;\n\n}));", ";(function (root, factory) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory(require(\"./core\"));\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([\"./core\"], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\tfactory(root.CryptoJS);\n\t}\n}(this, function (CryptoJS) {\n\n\t(function () {\n\t // Check if typed arrays are supported\n\t if (typeof ArrayBuffer != 'function') {\n\t return;\n\t }\n\n\t // Shortcuts\n\t var C = CryptoJS;\n\t var C_lib = C.lib;\n\t var WordArray = C_lib.WordArray;\n\n\t // Reference original init\n\t var superInit = WordArray.init;\n\n\t // Augment WordArray.init to handle typed arrays\n\t var subInit = WordArray.init = function (typedArray) {\n\t // Convert buffers to uint8\n\t if (typedArray instanceof ArrayBuffer) {\n\t typedArray = new Uint8Array(typedArray);\n\t }\n\n\t // Convert other array views to uint8\n\t if (\n\t typedArray instanceof Int8Array ||\n\t (typeof Uint8ClampedArray !== \"undefined\" && typedArray instanceof Uint8ClampedArray) ||\n\t typedArray instanceof Int16Array ||\n\t typedArray instanceof Uint16Array ||\n\t typedArray instanceof Int32Array ||\n\t typedArray instanceof Uint32Array ||\n\t typedArray instanceof Float32Array ||\n\t typedArray instanceof Float64Array\n\t ) {\n\t typedArray = new Uint8Array(typedArray.buffer, typedArray.byteOffset, typedArray.byteLength);\n\t }\n\n\t // Handle Uint8Array\n\t if (typedArray instanceof Uint8Array) {\n\t // Shortcut\n\t var typedArrayByteLength = typedArray.byteLength;\n\n\t // Extract bytes\n\t var words = [];\n\t for (var i = 0; i < typedArrayByteLength; i++) {\n\t words[i >>> 2] |= typedArray[i] << (24 - (i % 4) * 8);\n\t }\n\n\t // Initialize this word array\n\t superInit.call(this, words, typedArrayByteLength);\n\t } else {\n\t // Else call normal init\n\t superInit.apply(this, arguments);\n\t }\n\t };\n\n\t subInit.prototype = WordArray;\n\t}());\n\n\n\treturn CryptoJS.lib.WordArray;\n\n}));", ";(function (root, factory) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory(require(\"./core\"));\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([\"./core\"], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\tfactory(root.CryptoJS);\n\t}\n}(this, function (CryptoJS) {\n\n\t(function () {\n\t // Shortcuts\n\t var C = CryptoJS;\n\t var C_lib = C.lib;\n\t var WordArray = C_lib.WordArray;\n\t var C_enc = C.enc;\n\n\t /**\n\t * UTF-16 BE encoding strategy.\n\t */\n\t var Utf16BE = C_enc.Utf16 = C_enc.Utf16BE = {\n\t /**\n\t * Converts a word array to a UTF-16 BE string.\n\t *\n\t * @param {WordArray} wordArray The word array.\n\t *\n\t * @return {string} The UTF-16 BE string.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var utf16String = CryptoJS.enc.Utf16.stringify(wordArray);\n\t */\n\t stringify: function (wordArray) {\n\t // Shortcuts\n\t var words = wordArray.words;\n\t var sigBytes = wordArray.sigBytes;\n\n\t // Convert\n\t var utf16Chars = [];\n\t for (var i = 0; i < sigBytes; i += 2) {\n\t var codePoint = (words[i >>> 2] >>> (16 - (i % 4) * 8)) & 0xffff;\n\t utf16Chars.push(String.fromCharCode(codePoint));\n\t }\n\n\t return utf16Chars.join('');\n\t },\n\n\t /**\n\t * Converts a UTF-16 BE string to a word array.\n\t *\n\t * @param {string} utf16Str The UTF-16 BE string.\n\t *\n\t * @return {WordArray} The word array.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var wordArray = CryptoJS.enc.Utf16.parse(utf16String);\n\t */\n\t parse: function (utf16Str) {\n\t // Shortcut\n\t var utf16StrLength = utf16Str.length;\n\n\t // Convert\n\t var words = [];\n\t for (var i = 0; i < utf16StrLength; i++) {\n\t words[i >>> 1] |= utf16Str.charCodeAt(i) << (16 - (i % 2) * 16);\n\t }\n\n\t return WordArray.create(words, utf16StrLength * 2);\n\t }\n\t };\n\n\t /**\n\t * UTF-16 LE encoding strategy.\n\t */\n\t C_enc.Utf16LE = {\n\t /**\n\t * Converts a word array to a UTF-16 LE string.\n\t *\n\t * @param {WordArray} wordArray The word array.\n\t *\n\t * @return {string} The UTF-16 LE string.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var utf16Str = CryptoJS.enc.Utf16LE.stringify(wordArray);\n\t */\n\t stringify: function (wordArray) {\n\t // Shortcuts\n\t var words = wordArray.words;\n\t var sigBytes = wordArray.sigBytes;\n\n\t // Convert\n\t var utf16Chars = [];\n\t for (var i = 0; i < sigBytes; i += 2) {\n\t var codePoint = swapEndian((words[i >>> 2] >>> (16 - (i % 4) * 8)) & 0xffff);\n\t utf16Chars.push(String.fromCharCode(codePoint));\n\t }\n\n\t return utf16Chars.join('');\n\t },\n\n\t /**\n\t * Converts a UTF-16 LE string to a word array.\n\t *\n\t * @param {string} utf16Str The UTF-16 LE string.\n\t *\n\t * @return {WordArray} The word array.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var wordArray = CryptoJS.enc.Utf16LE.parse(utf16Str);\n\t */\n\t parse: function (utf16Str) {\n\t // Shortcut\n\t var utf16StrLength = utf16Str.length;\n\n\t // Convert\n\t var words = [];\n\t for (var i = 0; i < utf16StrLength; i++) {\n\t words[i >>> 1] |= swapEndian(utf16Str.charCodeAt(i) << (16 - (i % 2) * 16));\n\t }\n\n\t return WordArray.create(words, utf16StrLength * 2);\n\t }\n\t };\n\n\t function swapEndian(word) {\n\t return ((word << 8) & 0xff00ff00) | ((word >>> 8) & 0x00ff00ff);\n\t }\n\t}());\n\n\n\treturn CryptoJS.enc.Utf16;\n\n}));", ";(function (root, factory) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory(require(\"./core\"));\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([\"./core\"], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\tfactory(root.CryptoJS);\n\t}\n}(this, function (CryptoJS) {\n\n\t(function () {\n\t // Shortcuts\n\t var C = CryptoJS;\n\t var C_lib = C.lib;\n\t var WordArray = C_lib.WordArray;\n\t var C_enc = C.enc;\n\n\t /**\n\t * Base64 encoding strategy.\n\t */\n\t var Base64 = C_enc.Base64 = {\n\t /**\n\t * Converts a word array to a Base64 string.\n\t *\n\t * @param {WordArray} wordArray The word array.\n\t *\n\t * @return {string} The Base64 string.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var base64String = CryptoJS.enc.Base64.stringify(wordArray);\n\t */\n\t stringify: function (wordArray) {\n\t // Shortcuts\n\t var words = wordArray.words;\n\t var sigBytes = wordArray.sigBytes;\n\t var map = this._map;\n\n\t // Clamp excess bits\n\t wordArray.clamp();\n\n\t // Convert\n\t var base64Chars = [];\n\t for (var i = 0; i < sigBytes; i += 3) {\n\t var byte1 = (words[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;\n\t var byte2 = (words[(i + 1) >>> 2] >>> (24 - ((i + 1) % 4) * 8)) & 0xff;\n\t var byte3 = (words[(i + 2) >>> 2] >>> (24 - ((i + 2) % 4) * 8)) & 0xff;\n\n\t var triplet = (byte1 << 16) | (byte2 << 8) | byte3;\n\n\t for (var j = 0; (j < 4) && (i + j * 0.75 < sigBytes); j++) {\n\t base64Chars.push(map.charAt((triplet >>> (6 * (3 - j))) & 0x3f));\n\t }\n\t }\n\n\t // Add padding\n\t var paddingChar = map.charAt(64);\n\t if (paddingChar) {\n\t while (base64Chars.length % 4) {\n\t base64Chars.push(paddingChar);\n\t }\n\t }\n\n\t return base64Chars.join('');\n\t },\n\n\t /**\n\t * Converts a Base64 string to a word array.\n\t *\n\t * @param {string} base64Str The Base64 string.\n\t *\n\t * @return {WordArray} The word array.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var wordArray = CryptoJS.enc.Base64.parse(base64String);\n\t */\n\t parse: function (base64Str) {\n\t // Shortcuts\n\t var base64StrLength = base64Str.length;\n\t var map = this._map;\n\t var reverseMap = this._reverseMap;\n\n\t if (!reverseMap) {\n\t reverseMap = this._reverseMap = [];\n\t for (var j = 0; j < map.length; j++) {\n\t reverseMap[map.charCodeAt(j)] = j;\n\t }\n\t }\n\n\t // Ignore padding\n\t var paddingChar = map.charAt(64);\n\t if (paddingChar) {\n\t var paddingIndex = base64Str.indexOf(paddingChar);\n\t if (paddingIndex !== -1) {\n\t base64StrLength = paddingIndex;\n\t }\n\t }\n\n\t // Convert\n\t return parseLoop(base64Str, base64StrLength, reverseMap);\n\n\t },\n\n\t _map: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='\n\t };\n\n\t function parseLoop(base64Str, base64StrLength, reverseMap) {\n\t var words = [];\n\t var nBytes = 0;\n\t for (var i = 0; i < base64StrLength; i++) {\n\t if (i % 4) {\n\t var bits1 = reverseMap[base64Str.charCodeAt(i - 1)] << ((i % 4) * 2);\n\t var bits2 = reverseMap[base64Str.charCodeAt(i)] >>> (6 - (i % 4) * 2);\n\t var bitsCombined = bits1 | bits2;\n\t words[nBytes >>> 2] |= bitsCombined << (24 - (nBytes % 4) * 8);\n\t nBytes++;\n\t }\n\t }\n\t return WordArray.create(words, nBytes);\n\t }\n\t}());\n\n\n\treturn CryptoJS.enc.Base64;\n\n}));", ";(function (root, factory) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory(require(\"./core\"));\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([\"./core\"], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\tfactory(root.CryptoJS);\n\t}\n}(this, function (CryptoJS) {\n\n\t(function () {\n\t // Shortcuts\n\t var C = CryptoJS;\n\t var C_lib = C.lib;\n\t var WordArray = C_lib.WordArray;\n\t var C_enc = C.enc;\n\n\t /**\n\t * Base64url encoding strategy.\n\t */\n\t var Base64url = C_enc.Base64url = {\n\t /**\n\t * Converts a word array to a Base64url string.\n\t *\n\t * @param {WordArray} wordArray The word array.\n\t *\n\t * @param {boolean} urlSafe Whether to use url safe\n\t *\n\t * @return {string} The Base64url string.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var base64String = CryptoJS.enc.Base64url.stringify(wordArray);\n\t */\n\t stringify: function (wordArray, urlSafe) {\n\t if (urlSafe === undefined) {\n\t urlSafe = true\n\t }\n\t // Shortcuts\n\t var words = wordArray.words;\n\t var sigBytes = wordArray.sigBytes;\n\t var map = urlSafe ? this._safe_map : this._map;\n\n\t // Clamp excess bits\n\t wordArray.clamp();\n\n\t // Convert\n\t var base64Chars = [];\n\t for (var i = 0; i < sigBytes; i += 3) {\n\t var byte1 = (words[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;\n\t var byte2 = (words[(i + 1) >>> 2] >>> (24 - ((i + 1) % 4) * 8)) & 0xff;\n\t var byte3 = (words[(i + 2) >>> 2] >>> (24 - ((i + 2) % 4) * 8)) & 0xff;\n\n\t var triplet = (byte1 << 16) | (byte2 << 8) | byte3;\n\n\t for (var j = 0; (j < 4) && (i + j * 0.75 < sigBytes); j++) {\n\t base64Chars.push(map.charAt((triplet >>> (6 * (3 - j))) & 0x3f));\n\t }\n\t }\n\n\t // Add padding\n\t var paddingChar = map.charAt(64);\n\t if (paddingChar) {\n\t while (base64Chars.length % 4) {\n\t base64Chars.push(paddingChar);\n\t }\n\t }\n\n\t return base64Chars.join('');\n\t },\n\n\t /**\n\t * Converts a Base64url string to a word array.\n\t *\n\t * @param {string} base64Str The Base64url string.\n\t *\n\t * @param {boolean} urlSafe Whether to use url safe\n\t *\n\t * @return {WordArray} The word array.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var wordArray = CryptoJS.enc.Base64url.parse(base64String);\n\t */\n\t parse: function (base64Str, urlSafe) {\n\t if (urlSafe === undefined) {\n\t urlSafe = true\n\t }\n\n\t // Shortcuts\n\t var base64StrLength = base64Str.length;\n\t var map = urlSafe ? this._safe_map : this._map;\n\t var reverseMap = this._reverseMap;\n\n\t if (!reverseMap) {\n\t reverseMap = this._reverseMap = [];\n\t for (var j = 0; j < map.length; j++) {\n\t reverseMap[map.charCodeAt(j)] = j;\n\t }\n\t }\n\n\t // Ignore padding\n\t var paddingChar = map.charAt(64);\n\t if (paddingChar) {\n\t var paddingIndex = base64Str.indexOf(paddingChar);\n\t if (paddingIndex !== -1) {\n\t base64StrLength = paddingIndex;\n\t }\n\t }\n\n\t // Convert\n\t return parseLoop(base64Str, base64StrLength, reverseMap);\n\n\t },\n\n\t _map: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=',\n\t _safe_map: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_',\n\t };\n\n\t function parseLoop(base64Str, base64StrLength, reverseMap) {\n\t var words = [];\n\t var nBytes = 0;\n\t for (var i = 0; i < base64StrLength; i++) {\n\t if (i % 4) {\n\t var bits1 = reverseMap[base64Str.charCodeAt(i - 1)] << ((i % 4) * 2);\n\t var bits2 = reverseMap[base64Str.charCodeAt(i)] >>> (6 - (i % 4) * 2);\n\t var bitsCombined = bits1 | bits2;\n\t words[nBytes >>> 2] |= bitsCombined << (24 - (nBytes % 4) * 8);\n\t nBytes++;\n\t }\n\t }\n\t return WordArray.create(words, nBytes);\n\t }\n\t}());\n\n\n\treturn CryptoJS.enc.Base64url;\n\n}));", ";(function (root, factory) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory(require(\"./core\"));\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([\"./core\"], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\tfactory(root.CryptoJS);\n\t}\n}(this, function (CryptoJS) {\n\n\t(function (Math) {\n\t // Shortcuts\n\t var C = CryptoJS;\n\t var C_lib = C.lib;\n\t var WordArray = C_lib.WordArray;\n\t var Hasher = C_lib.Hasher;\n\t var C_algo = C.algo;\n\n\t // Constants table\n\t var T = [];\n\n\t // Compute constants\n\t (function () {\n\t for (var i = 0; i < 64; i++) {\n\t T[i] = (Math.abs(Math.sin(i + 1)) * 0x100000000) | 0;\n\t }\n\t }());\n\n\t /**\n\t * MD5 hash algorithm.\n\t */\n\t var MD5 = C_algo.MD5 = Hasher.extend({\n\t _doReset: function () {\n\t this._hash = new WordArray.init([\n\t 0x67452301, 0xefcdab89,\n\t 0x98badcfe, 0x10325476\n\t ]);\n\t },\n\n\t _doProcessBlock: function (M, offset) {\n\t // Swap endian\n\t for (var i = 0; i < 16; i++) {\n\t // Shortcuts\n\t var offset_i = offset + i;\n\t var M_offset_i = M[offset_i];\n\n\t M[offset_i] = (\n\t (((M_offset_i << 8) | (M_offset_i >>> 24)) & 0x00ff00ff) |\n\t (((M_offset_i << 24) | (M_offset_i >>> 8)) & 0xff00ff00)\n\t );\n\t }\n\n\t // Shortcuts\n\t var H = this._hash.words;\n\n\t var M_offset_0 = M[offset + 0];\n\t var M_offset_1 = M[offset + 1];\n\t var M_offset_2 = M[offset + 2];\n\t var M_offset_3 = M[offset + 3];\n\t var M_offset_4 = M[offset + 4];\n\t var M_offset_5 = M[offset + 5];\n\t var M_offset_6 = M[offset + 6];\n\t var M_offset_7 = M[offset + 7];\n\t var M_offset_8 = M[offset + 8];\n\t var M_offset_9 = M[offset + 9];\n\t var M_offset_10 = M[offset + 10];\n\t var M_offset_11 = M[offset + 11];\n\t var M_offset_12 = M[offset + 12];\n\t var M_offset_13 = M[offset + 13];\n\t var M_offset_14 = M[offset + 14];\n\t var M_offset_15 = M[offset + 15];\n\n\t // Working variables\n\t var a = H[0];\n\t var b = H[1];\n\t var c = H[2];\n\t var d = H[3];\n\n\t // Computation\n\t a = FF(a, b, c, d, M_offset_0, 7, T[0]);\n\t d = FF(d, a, b, c, M_offset_1, 12, T[1]);\n\t c = FF(c, d, a, b, M_offset_2, 17, T[2]);\n\t b = FF(b, c, d, a, M_offset_3, 22, T[3]);\n\t a = FF(a, b, c, d, M_offset_4, 7, T[4]);\n\t d = FF(d, a, b, c, M_offset_5, 12, T[5]);\n\t c = FF(c, d, a, b, M_offset_6, 17, T[6]);\n\t b = FF(b, c, d, a, M_offset_7, 22, T[7]);\n\t a = FF(a, b, c, d, M_offset_8, 7, T[8]);\n\t d = FF(d, a, b, c, M_offset_9, 12, T[9]);\n\t c = FF(c, d, a, b, M_offset_10, 17, T[10]);\n\t b = FF(b, c, d, a, M_offset_11, 22, T[11]);\n\t a = FF(a, b, c, d, M_offset_12, 7, T[12]);\n\t d = FF(d, a, b, c, M_offset_13, 12, T[13]);\n\t c = FF(c, d, a, b, M_offset_14, 17, T[14]);\n\t b = FF(b, c, d, a, M_offset_15, 22, T[15]);\n\n\t a = GG(a, b, c, d, M_offset_1, 5, T[16]);\n\t d = GG(d, a, b, c, M_offset_6, 9, T[17]);\n\t c = GG(c, d, a, b, M_offset_11, 14, T[18]);\n\t b = GG(b, c, d, a, M_offset_0, 20, T[19]);\n\t a = GG(a, b, c, d, M_offset_5, 5, T[20]);\n\t d = GG(d, a, b, c, M_offset_10, 9, T[21]);\n\t c = GG(c, d, a, b, M_offset_15, 14, T[22]);\n\t b = GG(b, c, d, a, M_offset_4, 20, T[23]);\n\t a = GG(a, b, c, d, M_offset_9, 5, T[24]);\n\t d = GG(d, a, b, c, M_offset_14, 9, T[25]);\n\t c = GG(c, d, a, b, M_offset_3, 14, T[26]);\n\t b = GG(b, c, d, a, M_offset_8, 20, T[27]);\n\t a = GG(a, b, c, d, M_offset_13, 5, T[28]);\n\t d = GG(d, a, b, c, M_offset_2, 9, T[29]);\n\t c = GG(c, d, a, b, M_offset_7, 14, T[30]);\n\t b = GG(b, c, d, a, M_offset_12, 20, T[31]);\n\n\t a = HH(a, b, c, d, M_offset_5, 4, T[32]);\n\t d = HH(d, a, b, c, M_offset_8, 11, T[33]);\n\t c = HH(c, d, a, b, M_offset_11, 16, T[34]);\n\t b = HH(b, c, d, a, M_offset_14, 23, T[35]);\n\t a = HH(a, b, c, d, M_offset_1, 4, T[36]);\n\t d = HH(d, a, b, c, M_offset_4, 11, T[37]);\n\t c = HH(c, d, a, b, M_offset_7, 16, T[38]);\n\t b = HH(b, c, d, a, M_offset_10, 23, T[39]);\n\t a = HH(a, b, c, d, M_offset_13, 4, T[40]);\n\t d = HH(d, a, b, c, M_offset_0, 11, T[41]);\n\t c = HH(c, d, a, b, M_offset_3, 16, T[42]);\n\t b = HH(b, c, d, a, M_offset_6, 23, T[43]);\n\t a = HH(a, b, c, d, M_offset_9, 4, T[44]);\n\t d = HH(d, a, b, c, M_offset_12, 11, T[45]);\n\t c = HH(c, d, a, b, M_offset_15, 16, T[46]);\n\t b = HH(b, c, d, a, M_offset_2, 23, T[47]);\n\n\t a = II(a, b, c, d, M_offset_0, 6, T[48]);\n\t d = II(d, a, b, c, M_offset_7, 10, T[49]);\n\t c = II(c, d, a, b, M_offset_14, 15, T[50]);\n\t b = II(b, c, d, a, M_offset_5, 21, T[51]);\n\t a = II(a, b, c, d, M_offset_12, 6, T[52]);\n\t d = II(d, a, b, c, M_offset_3, 10, T[53]);\n\t c = II(c, d, a, b, M_offset_10, 15, T[54]);\n\t b = II(b, c, d, a, M_offset_1, 21, T[55]);\n\t a = II(a, b, c, d, M_offset_8, 6, T[56]);\n\t d = II(d, a, b, c, M_offset_15, 10, T[57]);\n\t c = II(c, d, a, b, M_offset_6, 15, T[58]);\n\t b = II(b, c, d, a, M_offset_13, 21, T[59]);\n\t a = II(a, b, c, d, M_offset_4, 6, T[60]);\n\t d = II(d, a, b, c, M_offset_11, 10, T[61]);\n\t c = II(c, d, a, b, M_offset_2, 15, T[62]);\n\t b = II(b, c, d, a, M_offset_9, 21, T[63]);\n\n\t // Intermediate hash value\n\t H[0] = (H[0] + a) | 0;\n\t H[1] = (H[1] + b) | 0;\n\t H[2] = (H[2] + c) | 0;\n\t H[3] = (H[3] + d) | 0;\n\t },\n\n\t _doFinalize: function () {\n\t // Shortcuts\n\t var data = this._data;\n\t var dataWords = data.words;\n\n\t var nBitsTotal = this._nDataBytes * 8;\n\t var nBitsLeft = data.sigBytes * 8;\n\n\t // Add padding\n\t dataWords[nBitsLeft >>> 5] |= 0x80 << (24 - nBitsLeft % 32);\n\n\t var nBitsTotalH = Math.floor(nBitsTotal / 0x100000000);\n\t var nBitsTotalL = nBitsTotal;\n\t dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 15] = (\n\t (((nBitsTotalH << 8) | (nBitsTotalH >>> 24)) & 0x00ff00ff) |\n\t (((nBitsTotalH << 24) | (nBitsTotalH >>> 8)) & 0xff00ff00)\n\t );\n\t dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 14] = (\n\t (((nBitsTotalL << 8) | (nBitsTotalL >>> 24)) & 0x00ff00ff) |\n\t (((nBitsTotalL << 24) | (nBitsTotalL >>> 8)) & 0xff00ff00)\n\t );\n\n\t data.sigBytes = (dataWords.length + 1) * 4;\n\n\t // Hash final blocks\n\t this._process();\n\n\t // Shortcuts\n\t var hash = this._hash;\n\t var H = hash.words;\n\n\t // Swap endian\n\t for (var i = 0; i < 4; i++) {\n\t // Shortcut\n\t var H_i = H[i];\n\n\t H[i] = (((H_i << 8) | (H_i >>> 24)) & 0x00ff00ff) |\n\t (((H_i << 24) | (H_i >>> 8)) & 0xff00ff00);\n\t }\n\n\t // Return final computed hash\n\t return hash;\n\t },\n\n\t clone: function () {\n\t var clone = Hasher.clone.call(this);\n\t clone._hash = this._hash.clone();\n\n\t return clone;\n\t }\n\t });\n\n\t function FF(a, b, c, d, x, s, t) {\n\t var n = a + ((b & c) | (~b & d)) + x + t;\n\t return ((n << s) | (n >>> (32 - s))) + b;\n\t }\n\n\t function GG(a, b, c, d, x, s, t) {\n\t var n = a + ((b & d) | (c & ~d)) + x + t;\n\t return ((n << s) | (n >>> (32 - s))) + b;\n\t }\n\n\t function HH(a, b, c, d, x, s, t) {\n\t var n = a + (b ^ c ^ d) + x + t;\n\t return ((n << s) | (n >>> (32 - s))) + b;\n\t }\n\n\t function II(a, b, c, d, x, s, t) {\n\t var n = a + (c ^ (b | ~d)) + x + t;\n\t return ((n << s) | (n >>> (32 - s))) + b;\n\t }\n\n\t /**\n\t * Shortcut function to the hasher's object interface.\n\t *\n\t * @param {WordArray|string} message The message to hash.\n\t *\n\t * @return {WordArray} The hash.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var hash = CryptoJS.MD5('message');\n\t * var hash = CryptoJS.MD5(wordArray);\n\t */\n\t C.MD5 = Hasher._createHelper(MD5);\n\n\t /**\n\t * Shortcut function to the HMAC's object interface.\n\t *\n\t * @param {WordArray|string} message The message to hash.\n\t * @param {WordArray|string} key The secret key.\n\t *\n\t * @return {WordArray} The HMAC.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var hmac = CryptoJS.HmacMD5(message, key);\n\t */\n\t C.HmacMD5 = Hasher._createHmacHelper(MD5);\n\t}(Math));\n\n\n\treturn CryptoJS.MD5;\n\n}));", ";(function (root, factory) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory(require(\"./core\"));\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([\"./core\"], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\tfactory(root.CryptoJS);\n\t}\n}(this, function (CryptoJS) {\n\n\t(function () {\n\t // Shortcuts\n\t var C = CryptoJS;\n\t var C_lib = C.lib;\n\t var WordArray = C_lib.WordArray;\n\t var Hasher = C_lib.Hasher;\n\t var C_algo = C.algo;\n\n\t // Reusable object\n\t var W = [];\n\n\t /**\n\t * SHA-1 hash algorithm.\n\t */\n\t var SHA1 = C_algo.SHA1 = Hasher.extend({\n\t _doReset: function () {\n\t this._hash = new WordArray.init([\n\t 0x67452301, 0xefcdab89,\n\t 0x98badcfe, 0x10325476,\n\t 0xc3d2e1f0\n\t ]);\n\t },\n\n\t _doProcessBlock: function (M, offset) {\n\t // Shortcut\n\t var H = this._hash.words;\n\n\t // Working variables\n\t var a = H[0];\n\t var b = H[1];\n\t var c = H[2];\n\t var d = H[3];\n\t var e = H[4];\n\n\t // Computation\n\t for (var i = 0; i < 80; i++) {\n\t if (i < 16) {\n\t W[i] = M[offset + i] | 0;\n\t } else {\n\t var n = W[i - 3] ^ W[i - 8] ^ W[i - 14] ^ W[i - 16];\n\t W[i] = (n << 1) | (n >>> 31);\n\t }\n\n\t var t = ((a << 5) | (a >>> 27)) + e + W[i];\n\t if (i < 20) {\n\t t += ((b & c) | (~b & d)) + 0x5a827999;\n\t } else if (i < 40) {\n\t t += (b ^ c ^ d) + 0x6ed9eba1;\n\t } else if (i < 60) {\n\t t += ((b & c) | (b & d) | (c & d)) - 0x70e44324;\n\t } else /* if (i < 80) */ {\n\t t += (b ^ c ^ d) - 0x359d3e2a;\n\t }\n\n\t e = d;\n\t d = c;\n\t c = (b << 30) | (b >>> 2);\n\t b = a;\n\t a = t;\n\t }\n\n\t // Intermediate hash value\n\t H[0] = (H[0] + a) | 0;\n\t H[1] = (H[1] + b) | 0;\n\t H[2] = (H[2] + c) | 0;\n\t H[3] = (H[3] + d) | 0;\n\t H[4] = (H[4] + e) | 0;\n\t },\n\n\t _doFinalize: function () {\n\t // Shortcuts\n\t var data = this._data;\n\t var dataWords = data.words;\n\n\t var nBitsTotal = this._nDataBytes * 8;\n\t var nBitsLeft = data.sigBytes * 8;\n\n\t // Add padding\n\t dataWords[nBitsLeft >>> 5] |= 0x80 << (24 - nBitsLeft % 32);\n\t dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 14] = Math.floor(nBitsTotal / 0x100000000);\n\t dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 15] = nBitsTotal;\n\t data.sigBytes = dataWords.length * 4;\n\n\t // Hash final blocks\n\t this._process();\n\n\t // Return final computed hash\n\t return this._hash;\n\t },\n\n\t clone: function () {\n\t var clone = Hasher.clone.call(this);\n\t clone._hash = this._hash.clone();\n\n\t return clone;\n\t }\n\t });\n\n\t /**\n\t * Shortcut function to the hasher's object interface.\n\t *\n\t * @param {WordArray|string} message The message to hash.\n\t *\n\t * @return {WordArray} The hash.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var hash = CryptoJS.SHA1('message');\n\t * var hash = CryptoJS.SHA1(wordArray);\n\t */\n\t C.SHA1 = Hasher._createHelper(SHA1);\n\n\t /**\n\t * Shortcut function to the HMAC's object interface.\n\t *\n\t * @param {WordArray|string} message The message to hash.\n\t * @param {WordArray|string} key The secret key.\n\t *\n\t * @return {WordArray} The HMAC.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var hmac = CryptoJS.HmacSHA1(message, key);\n\t */\n\t C.HmacSHA1 = Hasher._createHmacHelper(SHA1);\n\t}());\n\n\n\treturn CryptoJS.SHA1;\n\n}));", ";(function (root, factory) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory(require(\"./core\"));\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([\"./core\"], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\tfactory(root.CryptoJS);\n\t}\n}(this, function (CryptoJS) {\n\n\t(function (Math) {\n\t // Shortcuts\n\t var C = CryptoJS;\n\t var C_lib = C.lib;\n\t var WordArray = C_lib.WordArray;\n\t var Hasher = C_lib.Hasher;\n\t var C_algo = C.algo;\n\n\t // Initialization and round constants tables\n\t var H = [];\n\t var K = [];\n\n\t // Compute constants\n\t (function () {\n\t function isPrime(n) {\n\t var sqrtN = Math.sqrt(n);\n\t for (var factor = 2; factor <= sqrtN; factor++) {\n\t if (!(n % factor)) {\n\t return false;\n\t }\n\t }\n\n\t return true;\n\t }\n\n\t function getFractionalBits(n) {\n\t return ((n - (n | 0)) * 0x100000000) | 0;\n\t }\n\n\t var n = 2;\n\t var nPrime = 0;\n\t while (nPrime < 64) {\n\t if (isPrime(n)) {\n\t if (nPrime < 8) {\n\t H[nPrime] = getFractionalBits(Math.pow(n, 1 / 2));\n\t }\n\t K[nPrime] = getFractionalBits(Math.pow(n, 1 / 3));\n\n\t nPrime++;\n\t }\n\n\t n++;\n\t }\n\t }());\n\n\t // Reusable object\n\t var W = [];\n\n\t /**\n\t * SHA-256 hash algorithm.\n\t */\n\t var SHA256 = C_algo.SHA256 = Hasher.extend({\n\t _doReset: function () {\n\t this._hash = new WordArray.init(H.slice(0));\n\t },\n\n\t _doProcessBlock: function (M, offset) {\n\t // Shortcut\n\t var H = this._hash.words;\n\n\t // Working variables\n\t var a = H[0];\n\t var b = H[1];\n\t var c = H[2];\n\t var d = H[3];\n\t var e = H[4];\n\t var f = H[5];\n\t var g = H[6];\n\t var h = H[7];\n\n\t // Computation\n\t for (var i = 0; i < 64; i++) {\n\t if (i < 16) {\n\t W[i] = M[offset + i] | 0;\n\t } else {\n\t var gamma0x = W[i - 15];\n\t var gamma0 = ((gamma0x << 25) | (gamma0x >>> 7)) ^\n\t ((gamma0x << 14) | (gamma0x >>> 18)) ^\n\t (gamma0x >>> 3);\n\n\t var gamma1x = W[i - 2];\n\t var gamma1 = ((gamma1x << 15) | (gamma1x >>> 17)) ^\n\t ((gamma1x << 13) | (gamma1x >>> 19)) ^\n\t (gamma1x >>> 10);\n\n\t W[i] = gamma0 + W[i - 7] + gamma1 + W[i - 16];\n\t }\n\n\t var ch = (e & f) ^ (~e & g);\n\t var maj = (a & b) ^ (a & c) ^ (b & c);\n\n\t var sigma0 = ((a << 30) | (a >>> 2)) ^ ((a << 19) | (a >>> 13)) ^ ((a << 10) | (a >>> 22));\n\t var sigma1 = ((e << 26) | (e >>> 6)) ^ ((e << 21) | (e >>> 11)) ^ ((e << 7) | (e >>> 25));\n\n\t var t1 = h + sigma1 + ch + K[i] + W[i];\n\t var t2 = sigma0 + maj;\n\n\t h = g;\n\t g = f;\n\t f = e;\n\t e = (d + t1) | 0;\n\t d = c;\n\t c = b;\n\t b = a;\n\t a = (t1 + t2) | 0;\n\t }\n\n\t // Intermediate hash value\n\t H[0] = (H[0] + a) | 0;\n\t H[1] = (H[1] + b) | 0;\n\t H[2] = (H[2] + c) | 0;\n\t H[3] = (H[3] + d) | 0;\n\t H[4] = (H[4] + e) | 0;\n\t H[5] = (H[5] + f) | 0;\n\t H[6] = (H[6] + g) | 0;\n\t H[7] = (H[7] + h) | 0;\n\t },\n\n\t _doFinalize: function () {\n\t // Shortcuts\n\t var data = this._data;\n\t var dataWords = data.words;\n\n\t var nBitsTotal = this._nDataBytes * 8;\n\t var nBitsLeft = data.sigBytes * 8;\n\n\t // Add padding\n\t dataWords[nBitsLeft >>> 5] |= 0x80 << (24 - nBitsLeft % 32);\n\t dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 14] = Math.floor(nBitsTotal / 0x100000000);\n\t dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 15] = nBitsTotal;\n\t data.sigBytes = dataWords.length * 4;\n\n\t // Hash final blocks\n\t this._process();\n\n\t // Return final computed hash\n\t return this._hash;\n\t },\n\n\t clone: function () {\n\t var clone = Hasher.clone.call(this);\n\t clone._hash = this._hash.clone();\n\n\t return clone;\n\t }\n\t });\n\n\t /**\n\t * Shortcut function to the hasher's object interface.\n\t *\n\t * @param {WordArray|string} message The message to hash.\n\t *\n\t * @return {WordArray} The hash.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var hash = CryptoJS.SHA256('message');\n\t * var hash = CryptoJS.SHA256(wordArray);\n\t */\n\t C.SHA256 = Hasher._createHelper(SHA256);\n\n\t /**\n\t * Shortcut function to the HMAC's object interface.\n\t *\n\t * @param {WordArray|string} message The message to hash.\n\t * @param {WordArray|string} key The secret key.\n\t *\n\t * @return {WordArray} The HMAC.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var hmac = CryptoJS.HmacSHA256(message, key);\n\t */\n\t C.HmacSHA256 = Hasher._createHmacHelper(SHA256);\n\t}(Math));\n\n\n\treturn CryptoJS.SHA256;\n\n}));", ";(function (root, factory, undef) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory(require(\"./core\"), require(\"./sha256\"));\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([\"./core\", \"./sha256\"], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\tfactory(root.CryptoJS);\n\t}\n}(this, function (CryptoJS) {\n\n\t(function () {\n\t // Shortcuts\n\t var C = CryptoJS;\n\t var C_lib = C.lib;\n\t var WordArray = C_lib.WordArray;\n\t var C_algo = C.algo;\n\t var SHA256 = C_algo.SHA256;\n\n\t /**\n\t * SHA-224 hash algorithm.\n\t */\n\t var SHA224 = C_algo.SHA224 = SHA256.extend({\n\t _doReset: function () {\n\t this._hash = new WordArray.init([\n\t 0xc1059ed8, 0x367cd507, 0x3070dd17, 0xf70e5939,\n\t 0xffc00b31, 0x68581511, 0x64f98fa7, 0xbefa4fa4\n\t ]);\n\t },\n\n\t _doFinalize: function () {\n\t var hash = SHA256._doFinalize.call(this);\n\n\t hash.sigBytes -= 4;\n\n\t return hash;\n\t }\n\t });\n\n\t /**\n\t * Shortcut function to the hasher's object interface.\n\t *\n\t * @param {WordArray|string} message The message to hash.\n\t *\n\t * @return {WordArray} The hash.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var hash = CryptoJS.SHA224('message');\n\t * var hash = CryptoJS.SHA224(wordArray);\n\t */\n\t C.SHA224 = SHA256._createHelper(SHA224);\n\n\t /**\n\t * Shortcut function to the HMAC's object interface.\n\t *\n\t * @param {WordArray|string} message The message to hash.\n\t * @param {WordArray|string} key The secret key.\n\t *\n\t * @return {WordArray} The HMAC.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var hmac = CryptoJS.HmacSHA224(message, key);\n\t */\n\t C.HmacSHA224 = SHA256._createHmacHelper(SHA224);\n\t}());\n\n\n\treturn CryptoJS.SHA224;\n\n}));", ";(function (root, factory, undef) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory(require(\"./core\"), require(\"./x64-core\"));\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([\"./core\", \"./x64-core\"], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\tfactory(root.CryptoJS);\n\t}\n}(this, function (CryptoJS) {\n\n\t(function () {\n\t // Shortcuts\n\t var C = CryptoJS;\n\t var C_lib = C.lib;\n\t var Hasher = C_lib.Hasher;\n\t var C_x64 = C.x64;\n\t var X64Word = C_x64.Word;\n\t var X64WordArray = C_x64.WordArray;\n\t var C_algo = C.algo;\n\n\t function X64Word_create() {\n\t return X64Word.create.apply(X64Word, arguments);\n\t }\n\n\t // Constants\n\t var K = [\n\t X64Word_create(0x428a2f98, 0xd728ae22), X64Word_create(0x71374491, 0x23ef65cd),\n\t X64Word_create(0xb5c0fbcf, 0xec4d3b2f), X64Word_create(0xe9b5dba5, 0x8189dbbc),\n\t X64Word_create(0x3956c25b, 0xf348b538), X64Word_create(0x59f111f1, 0xb605d019),\n\t X64Word_create(0x923f82a4, 0xaf194f9b), X64Word_create(0xab1c5ed5, 0xda6d8118),\n\t X64Word_create(0xd807aa98, 0xa3030242), X64Word_create(0x12835b01, 0x45706fbe),\n\t X64Word_create(0x243185be, 0x4ee4b28c), X64Word_create(0x550c7dc3, 0xd5ffb4e2),\n\t X64Word_create(0x72be5d74, 0xf27b896f), X64Word_create(0x80deb1fe, 0x3b1696b1),\n\t X64Word_create(0x9bdc06a7, 0x25c71235), X64Word_create(0xc19bf174, 0xcf692694),\n\t X64Word_create(0xe49b69c1, 0x9ef14ad2), X64Word_create(0xefbe4786, 0x384f25e3),\n\t X64Word_create(0x0fc19dc6, 0x8b8cd5b5), X64Word_create(0x240ca1cc, 0x77ac9c65),\n\t X64Word_create(0x2de92c6f, 0x592b0275), X64Word_create(0x4a7484aa, 0x6ea6e483),\n\t X64Word_create(0x5cb0a9dc, 0xbd41fbd4), X64Word_create(0x76f988da, 0x831153b5),\n\t X64Word_create(0x983e5152, 0xee66dfab), X64Word_create(0xa831c66d, 0x2db43210),\n\t X64Word_create(0xb00327c8, 0x98fb213f), X64Word_create(0xbf597fc7, 0xbeef0ee4),\n\t X64Word_create(0xc6e00bf3, 0x3da88fc2), X64Word_create(0xd5a79147, 0x930aa725),\n\t X64Word_create(0x06ca6351, 0xe003826f), X64Word_create(0x14292967, 0x0a0e6e70),\n\t X64Word_create(0x27b70a85, 0x46d22ffc), X64Word_create(0x2e1b2138, 0x5c26c926),\n\t X64Word_create(0x4d2c6dfc, 0x5ac42aed), X64Word_create(0x53380d13, 0x9d95b3df),\n\t X64Word_create(0x650a7354, 0x8baf63de), X64Word_create(0x766a0abb, 0x3c77b2a8),\n\t X64Word_create(0x81c2c92e, 0x47edaee6), X64Word_create(0x92722c85, 0x1482353b),\n\t X64Word_create(0xa2bfe8a1, 0x4cf10364), X64Word_create(0xa81a664b, 0xbc423001),\n\t X64Word_create(0xc24b8b70, 0xd0f89791), X64Word_create(0xc76c51a3, 0x0654be30),\n\t X64Word_create(0xd192e819, 0xd6ef5218), X64Word_create(0xd6990624, 0x5565a910),\n\t X64Word_create(0xf40e3585, 0x5771202a), X64Word_create(0x106aa070, 0x32bbd1b8),\n\t X64Word_create(0x19a4c116, 0xb8d2d0c8), X64Word_create(0x1e376c08, 0x5141ab53),\n\t X64Word_create(0x2748774c, 0xdf8eeb99), X64Word_create(0x34b0bcb5, 0xe19b48a8),\n\t X64Word_create(0x391c0cb3, 0xc5c95a63), X64Word_create(0x4ed8aa4a, 0xe3418acb),\n\t X64Word_create(0x5b9cca4f, 0x7763e373), X64Word_create(0x682e6ff3, 0xd6b2b8a3),\n\t X64Word_create(0x748f82ee, 0x5defb2fc), X64Word_create(0x78a5636f, 0x43172f60),\n\t X64Word_create(0x84c87814, 0xa1f0ab72), X64Word_create(0x8cc70208, 0x1a6439ec),\n\t X64Word_create(0x90befffa, 0x23631e28), X64Word_create(0xa4506ceb, 0xde82bde9),\n\t X64Word_create(0xbef9a3f7, 0xb2c67915), X64Word_create(0xc67178f2, 0xe372532b),\n\t X64Word_create(0xca273ece, 0xea26619c), X64Word_create(0xd186b8c7, 0x21c0c207),\n\t X64Word_create(0xeada7dd6, 0xcde0eb1e), X64Word_create(0xf57d4f7f, 0xee6ed178),\n\t X64Word_create(0x06f067aa, 0x72176fba), X64Word_create(0x0a637dc5, 0xa2c898a6),\n\t X64Word_create(0x113f9804, 0xbef90dae), X64Word_create(0x1b710b35, 0x131c471b),\n\t X64Word_create(0x28db77f5, 0x23047d84), X64Word_create(0x32caab7b, 0x40c72493),\n\t X64Word_create(0x3c9ebe0a, 0x15c9bebc), X64Word_create(0x431d67c4, 0x9c100d4c),\n\t X64Word_create(0x4cc5d4be, 0xcb3e42b6), X64Word_create(0x597f299c, 0xfc657e2a),\n\t X64Word_create(0x5fcb6fab, 0x3ad6faec), X64Word_create(0x6c44198c, 0x4a475817)\n\t ];\n\n\t // Reusable objects\n\t var W = [];\n\t (function () {\n\t for (var i = 0; i < 80; i++) {\n\t W[i] = X64Word_create();\n\t }\n\t }());\n\n\t /**\n\t * SHA-512 hash algorithm.\n\t */\n\t var SHA512 = C_algo.SHA512 = Hasher.extend({\n\t _doReset: function () {\n\t this._hash = new X64WordArray.init([\n\t new X64Word.init(0x6a09e667, 0xf3bcc908), new X64Word.init(0xbb67ae85, 0x84caa73b),\n\t new X64Word.init(0x3c6ef372, 0xfe94f82b), new X64Word.init(0xa54ff53a, 0x5f1d36f1),\n\t new X64Word.init(0x510e527f, 0xade682d1), new X64Word.init(0x9b05688c, 0x2b3e6c1f),\n\t new X64Word.init(0x1f83d9ab, 0xfb41bd6b), new X64Word.init(0x5be0cd19, 0x137e2179)\n\t ]);\n\t },\n\n\t _doProcessBlock: function (M, offset) {\n\t // Shortcuts\n\t var H = this._hash.words;\n\n\t var H0 = H[0];\n\t var H1 = H[1];\n\t var H2 = H[2];\n\t var H3 = H[3];\n\t var H4 = H[4];\n\t var H5 = H[5];\n\t var H6 = H[6];\n\t var H7 = H[7];\n\n\t var H0h = H0.high;\n\t var H0l = H0.low;\n\t var H1h = H1.high;\n\t var H1l = H1.low;\n\t var H2h = H2.high;\n\t var H2l = H2.low;\n\t var H3h = H3.high;\n\t var H3l = H3.low;\n\t var H4h = H4.high;\n\t var H4l = H4.low;\n\t var H5h = H5.high;\n\t var H5l = H5.low;\n\t var H6h = H6.high;\n\t var H6l = H6.low;\n\t var H7h = H7.high;\n\t var H7l = H7.low;\n\n\t // Working variables\n\t var ah = H0h;\n\t var al = H0l;\n\t var bh = H1h;\n\t var bl = H1l;\n\t var ch = H2h;\n\t var cl = H2l;\n\t var dh = H3h;\n\t var dl = H3l;\n\t var eh = H4h;\n\t var el = H4l;\n\t var fh = H5h;\n\t var fl = H5l;\n\t var gh = H6h;\n\t var gl = H6l;\n\t var hh = H7h;\n\t var hl = H7l;\n\n\t // Rounds\n\t for (var i = 0; i < 80; i++) {\n\t var Wil;\n\t var Wih;\n\n\t // Shortcut\n\t var Wi = W[i];\n\n\t // Extend message\n\t if (i < 16) {\n\t Wih = Wi.high = M[offset + i * 2] | 0;\n\t Wil = Wi.low = M[offset + i * 2 + 1] | 0;\n\t } else {\n\t // Gamma0\n\t var gamma0x = W[i - 15];\n\t var gamma0xh = gamma0x.high;\n\t var gamma0xl = gamma0x.low;\n\t var gamma0h = ((gamma0xh >>> 1) | (gamma0xl << 31)) ^ ((gamma0xh >>> 8) | (gamma0xl << 24)) ^ (gamma0xh >>> 7);\n\t var gamma0l = ((gamma0xl >>> 1) | (gamma0xh << 31)) ^ ((gamma0xl >>> 8) | (gamma0xh << 24)) ^ ((gamma0xl >>> 7) | (gamma0xh << 25));\n\n\t // Gamma1\n\t var gamma1x = W[i - 2];\n\t var gamma1xh = gamma1x.high;\n\t var gamma1xl = gamma1x.low;\n\t var gamma1h = ((gamma1xh >>> 19) | (gamma1xl << 13)) ^ ((gamma1xh << 3) | (gamma1xl >>> 29)) ^ (gamma1xh >>> 6);\n\t var gamma1l = ((gamma1xl >>> 19) | (gamma1xh << 13)) ^ ((gamma1xl << 3) | (gamma1xh >>> 29)) ^ ((gamma1xl >>> 6) | (gamma1xh << 26));\n\n\t // W[i] = gamma0 + W[i - 7] + gamma1 + W[i - 16]\n\t var Wi7 = W[i - 7];\n\t var Wi7h = Wi7.high;\n\t var Wi7l = Wi7.low;\n\n\t var Wi16 = W[i - 16];\n\t var Wi16h = Wi16.high;\n\t var Wi16l = Wi16.low;\n\n\t Wil = gamma0l + Wi7l;\n\t Wih = gamma0h + Wi7h + ((Wil >>> 0) < (gamma0l >>> 0) ? 1 : 0);\n\t Wil = Wil + gamma1l;\n\t Wih = Wih + gamma1h + ((Wil >>> 0) < (gamma1l >>> 0) ? 1 : 0);\n\t Wil = Wil + Wi16l;\n\t Wih = Wih + Wi16h + ((Wil >>> 0) < (Wi16l >>> 0) ? 1 : 0);\n\n\t Wi.high = Wih;\n\t Wi.low = Wil;\n\t }\n\n\t var chh = (eh & fh) ^ (~eh & gh);\n\t var chl = (el & fl) ^ (~el & gl);\n\t var majh = (ah & bh) ^ (ah & ch) ^ (bh & ch);\n\t var majl = (al & bl) ^ (al & cl) ^ (bl & cl);\n\n\t var sigma0h = ((ah >>> 28) | (al << 4)) ^ ((ah << 30) | (al >>> 2)) ^ ((ah << 25) | (al >>> 7));\n\t var sigma0l = ((al >>> 28) | (ah << 4)) ^ ((al << 30) | (ah >>> 2)) ^ ((al << 25) | (ah >>> 7));\n\t var sigma1h = ((eh >>> 14) | (el << 18)) ^ ((eh >>> 18) | (el << 14)) ^ ((eh << 23) | (el >>> 9));\n\t var sigma1l = ((el >>> 14) | (eh << 18)) ^ ((el >>> 18) | (eh << 14)) ^ ((el << 23) | (eh >>> 9));\n\n\t // t1 = h + sigma1 + ch + K[i] + W[i]\n\t var Ki = K[i];\n\t var Kih = Ki.high;\n\t var Kil = Ki.low;\n\n\t var t1l = hl + sigma1l;\n\t var t1h = hh + sigma1h + ((t1l >>> 0) < (hl >>> 0) ? 1 : 0);\n\t var t1l = t1l + chl;\n\t var t1h = t1h + chh + ((t1l >>> 0) < (chl >>> 0) ? 1 : 0);\n\t var t1l = t1l + Kil;\n\t var t1h = t1h + Kih + ((t1l >>> 0) < (Kil >>> 0) ? 1 : 0);\n\t var t1l = t1l + Wil;\n\t var t1h = t1h + Wih + ((t1l >>> 0) < (Wil >>> 0) ? 1 : 0);\n\n\t // t2 = sigma0 + maj\n\t var t2l = sigma0l + majl;\n\t var t2h = sigma0h + majh + ((t2l >>> 0) < (sigma0l >>> 0) ? 1 : 0);\n\n\t // Update working variables\n\t hh = gh;\n\t hl = gl;\n\t gh = fh;\n\t gl = fl;\n\t fh = eh;\n\t fl = el;\n\t el = (dl + t1l) | 0;\n\t eh = (dh + t1h + ((el >>> 0) < (dl >>> 0) ? 1 : 0)) | 0;\n\t dh = ch;\n\t dl = cl;\n\t ch = bh;\n\t cl = bl;\n\t bh = ah;\n\t bl = al;\n\t al = (t1l + t2l) | 0;\n\t ah = (t1h + t2h + ((al >>> 0) < (t1l >>> 0) ? 1 : 0)) | 0;\n\t }\n\n\t // Intermediate hash value\n\t H0l = H0.low = (H0l + al);\n\t H0.high = (H0h + ah + ((H0l >>> 0) < (al >>> 0) ? 1 : 0));\n\t H1l = H1.low = (H1l + bl);\n\t H1.high = (H1h + bh + ((H1l >>> 0) < (bl >>> 0) ? 1 : 0));\n\t H2l = H2.low = (H2l + cl);\n\t H2.high = (H2h + ch + ((H2l >>> 0) < (cl >>> 0) ? 1 : 0));\n\t H3l = H3.low = (H3l + dl);\n\t H3.high = (H3h + dh + ((H3l >>> 0) < (dl >>> 0) ? 1 : 0));\n\t H4l = H4.low = (H4l + el);\n\t H4.high = (H4h + eh + ((H4l >>> 0) < (el >>> 0) ? 1 : 0));\n\t H5l = H5.low = (H5l + fl);\n\t H5.high = (H5h + fh + ((H5l >>> 0) < (fl >>> 0) ? 1 : 0));\n\t H6l = H6.low = (H6l + gl);\n\t H6.high = (H6h + gh + ((H6l >>> 0) < (gl >>> 0) ? 1 : 0));\n\t H7l = H7.low = (H7l + hl);\n\t H7.high = (H7h + hh + ((H7l >>> 0) < (hl >>> 0) ? 1 : 0));\n\t },\n\n\t _doFinalize: function () {\n\t // Shortcuts\n\t var data = this._data;\n\t var dataWords = data.words;\n\n\t var nBitsTotal = this._nDataBytes * 8;\n\t var nBitsLeft = data.sigBytes * 8;\n\n\t // Add padding\n\t dataWords[nBitsLeft >>> 5] |= 0x80 << (24 - nBitsLeft % 32);\n\t dataWords[(((nBitsLeft + 128) >>> 10) << 5) + 30] = Math.floor(nBitsTotal / 0x100000000);\n\t dataWords[(((nBitsLeft + 128) >>> 10) << 5) + 31] = nBitsTotal;\n\t data.sigBytes = dataWords.length * 4;\n\n\t // Hash final blocks\n\t this._process();\n\n\t // Convert hash to 32-bit word array before returning\n\t var hash = this._hash.toX32();\n\n\t // Return final computed hash\n\t return hash;\n\t },\n\n\t clone: function () {\n\t var clone = Hasher.clone.call(this);\n\t clone._hash = this._hash.clone();\n\n\t return clone;\n\t },\n\n\t blockSize: 1024/32\n\t });\n\n\t /**\n\t * Shortcut function to the hasher's object interface.\n\t *\n\t * @param {WordArray|string} message The message to hash.\n\t *\n\t * @return {WordArray} The hash.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var hash = CryptoJS.SHA512('message');\n\t * var hash = CryptoJS.SHA512(wordArray);\n\t */\n\t C.SHA512 = Hasher._createHelper(SHA512);\n\n\t /**\n\t * Shortcut function to the HMAC's object interface.\n\t *\n\t * @param {WordArray|string} message The message to hash.\n\t * @param {WordArray|string} key The secret key.\n\t *\n\t * @return {WordArray} The HMAC.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var hmac = CryptoJS.HmacSHA512(message, key);\n\t */\n\t C.HmacSHA512 = Hasher._createHmacHelper(SHA512);\n\t}());\n\n\n\treturn CryptoJS.SHA512;\n\n}));", ";(function (root, factory, undef) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory(require(\"./core\"), require(\"./x64-core\"), require(\"./sha512\"));\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([\"./core\", \"./x64-core\", \"./sha512\"], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\tfactory(root.CryptoJS);\n\t}\n}(this, function (CryptoJS) {\n\n\t(function () {\n\t // Shortcuts\n\t var C = CryptoJS;\n\t var C_x64 = C.x64;\n\t var X64Word = C_x64.Word;\n\t var X64WordArray = C_x64.WordArray;\n\t var C_algo = C.algo;\n\t var SHA512 = C_algo.SHA512;\n\n\t /**\n\t * SHA-384 hash algorithm.\n\t */\n\t var SHA384 = C_algo.SHA384 = SHA512.extend({\n\t _doReset: function () {\n\t this._hash = new X64WordArray.init([\n\t new X64Word.init(0xcbbb9d5d, 0xc1059ed8), new X64Word.init(0x629a292a, 0x367cd507),\n\t new X64Word.init(0x9159015a, 0x3070dd17), new X64Word.init(0x152fecd8, 0xf70e5939),\n\t new X64Word.init(0x67332667, 0xffc00b31), new X64Word.init(0x8eb44a87, 0x68581511),\n\t new X64Word.init(0xdb0c2e0d, 0x64f98fa7), new X64Word.init(0x47b5481d, 0xbefa4fa4)\n\t ]);\n\t },\n\n\t _doFinalize: function () {\n\t var hash = SHA512._doFinalize.call(this);\n\n\t hash.sigBytes -= 16;\n\n\t return hash;\n\t }\n\t });\n\n\t /**\n\t * Shortcut function to the hasher's object interface.\n\t *\n\t * @param {WordArray|string} message The message to hash.\n\t *\n\t * @return {WordArray} The hash.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var hash = CryptoJS.SHA384('message');\n\t * var hash = CryptoJS.SHA384(wordArray);\n\t */\n\t C.SHA384 = SHA512._createHelper(SHA384);\n\n\t /**\n\t * Shortcut function to the HMAC's object interface.\n\t *\n\t * @param {WordArray|string} message The message to hash.\n\t * @param {WordArray|string} key The secret key.\n\t *\n\t * @return {WordArray} The HMAC.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var hmac = CryptoJS.HmacSHA384(message, key);\n\t */\n\t C.HmacSHA384 = SHA512._createHmacHelper(SHA384);\n\t}());\n\n\n\treturn CryptoJS.SHA384;\n\n}));", ";(function (root, factory, undef) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory(require(\"./core\"), require(\"./x64-core\"));\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([\"./core\", \"./x64-core\"], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\tfactory(root.CryptoJS);\n\t}\n}(this, function (CryptoJS) {\n\n\t(function (Math) {\n\t // Shortcuts\n\t var C = CryptoJS;\n\t var C_lib = C.lib;\n\t var WordArray = C_lib.WordArray;\n\t var Hasher = C_lib.Hasher;\n\t var C_x64 = C.x64;\n\t var X64Word = C_x64.Word;\n\t var C_algo = C.algo;\n\n\t // Constants tables\n\t var RHO_OFFSETS = [];\n\t var PI_INDEXES = [];\n\t var ROUND_CONSTANTS = [];\n\n\t // Compute Constants\n\t (function () {\n\t // Compute rho offset constants\n\t var x = 1, y = 0;\n\t for (var t = 0; t < 24; t++) {\n\t RHO_OFFSETS[x + 5 * y] = ((t + 1) * (t + 2) / 2) % 64;\n\n\t var newX = y % 5;\n\t var newY = (2 * x + 3 * y) % 5;\n\t x = newX;\n\t y = newY;\n\t }\n\n\t // Compute pi index constants\n\t for (var x = 0; x < 5; x++) {\n\t for (var y = 0; y < 5; y++) {\n\t PI_INDEXES[x + 5 * y] = y + ((2 * x + 3 * y) % 5) * 5;\n\t }\n\t }\n\n\t // Compute round constants\n\t var LFSR = 0x01;\n\t for (var i = 0; i < 24; i++) {\n\t var roundConstantMsw = 0;\n\t var roundConstantLsw = 0;\n\n\t for (var j = 0; j < 7; j++) {\n\t if (LFSR & 0x01) {\n\t var bitPosition = (1 << j) - 1;\n\t if (bitPosition < 32) {\n\t roundConstantLsw ^= 1 << bitPosition;\n\t } else /* if (bitPosition >= 32) */ {\n\t roundConstantMsw ^= 1 << (bitPosition - 32);\n\t }\n\t }\n\n\t // Compute next LFSR\n\t if (LFSR & 0x80) {\n\t // Primitive polynomial over GF(2): x^8 + x^6 + x^5 + x^4 + 1\n\t LFSR = (LFSR << 1) ^ 0x71;\n\t } else {\n\t LFSR <<= 1;\n\t }\n\t }\n\n\t ROUND_CONSTANTS[i] = X64Word.create(roundConstantMsw, roundConstantLsw);\n\t }\n\t }());\n\n\t // Reusable objects for temporary values\n\t var T = [];\n\t (function () {\n\t for (var i = 0; i < 25; i++) {\n\t T[i] = X64Word.create();\n\t }\n\t }());\n\n\t /**\n\t * SHA-3 hash algorithm.\n\t */\n\t var SHA3 = C_algo.SHA3 = Hasher.extend({\n\t /**\n\t * Configuration options.\n\t *\n\t * @property {number} outputLength\n\t * The desired number of bits in the output hash.\n\t * Only values permitted are: 224, 256, 384, 512.\n\t * Default: 512\n\t */\n\t cfg: Hasher.cfg.extend({\n\t outputLength: 512\n\t }),\n\n\t _doReset: function () {\n\t var state = this._state = []\n\t for (var i = 0; i < 25; i++) {\n\t state[i] = new X64Word.init();\n\t }\n\n\t this.blockSize = (1600 - 2 * this.cfg.outputLength) / 32;\n\t },\n\n\t _doProcessBlock: function (M, offset) {\n\t // Shortcuts\n\t var state = this._state;\n\t var nBlockSizeLanes = this.blockSize / 2;\n\n\t // Absorb\n\t for (var i = 0; i < nBlockSizeLanes; i++) {\n\t // Shortcuts\n\t var M2i = M[offset + 2 * i];\n\t var M2i1 = M[offset + 2 * i + 1];\n\n\t // Swap endian\n\t M2i = (\n\t (((M2i << 8) | (M2i >>> 24)) & 0x00ff00ff) |\n\t (((M2i << 24) | (M2i >>> 8)) & 0xff00ff00)\n\t );\n\t M2i1 = (\n\t (((M2i1 << 8) | (M2i1 >>> 24)) & 0x00ff00ff) |\n\t (((M2i1 << 24) | (M2i1 >>> 8)) & 0xff00ff00)\n\t );\n\n\t // Absorb message into state\n\t var lane = state[i];\n\t lane.high ^= M2i1;\n\t lane.low ^= M2i;\n\t }\n\n\t // Rounds\n\t for (var round = 0; round < 24; round++) {\n\t // Theta\n\t for (var x = 0; x < 5; x++) {\n\t // Mix column lanes\n\t var tMsw = 0, tLsw = 0;\n\t for (var y = 0; y < 5; y++) {\n\t var lane = state[x + 5 * y];\n\t tMsw ^= lane.high;\n\t tLsw ^= lane.low;\n\t }\n\n\t // Temporary values\n\t var Tx = T[x];\n\t Tx.high = tMsw;\n\t Tx.low = tLsw;\n\t }\n\t for (var x = 0; x < 5; x++) {\n\t // Shortcuts\n\t var Tx4 = T[(x + 4) % 5];\n\t var Tx1 = T[(x + 1) % 5];\n\t var Tx1Msw = Tx1.high;\n\t var Tx1Lsw = Tx1.low;\n\n\t // Mix surrounding columns\n\t var tMsw = Tx4.high ^ ((Tx1Msw << 1) | (Tx1Lsw >>> 31));\n\t var tLsw = Tx4.low ^ ((Tx1Lsw << 1) | (Tx1Msw >>> 31));\n\t for (var y = 0; y < 5; y++) {\n\t var lane = state[x + 5 * y];\n\t lane.high ^= tMsw;\n\t lane.low ^= tLsw;\n\t }\n\t }\n\n\t // Rho Pi\n\t for (var laneIndex = 1; laneIndex < 25; laneIndex++) {\n\t var tMsw;\n\t var tLsw;\n\n\t // Shortcuts\n\t var lane = state[laneIndex];\n\t var laneMsw = lane.high;\n\t var laneLsw = lane.low;\n\t var rhoOffset = RHO_OFFSETS[laneIndex];\n\n\t // Rotate lanes\n\t if (rhoOffset < 32) {\n\t tMsw = (laneMsw << rhoOffset) | (laneLsw >>> (32 - rhoOffset));\n\t tLsw = (laneLsw << rhoOffset) | (laneMsw >>> (32 - rhoOffset));\n\t } else /* if (rhoOffset >= 32) */ {\n\t tMsw = (laneLsw << (rhoOffset - 32)) | (laneMsw >>> (64 - rhoOffset));\n\t tLsw = (laneMsw << (rhoOffset - 32)) | (laneLsw >>> (64 - rhoOffset));\n\t }\n\n\t // Transpose lanes\n\t var TPiLane = T[PI_INDEXES[laneIndex]];\n\t TPiLane.high = tMsw;\n\t TPiLane.low = tLsw;\n\t }\n\n\t // Rho pi at x = y = 0\n\t var T0 = T[0];\n\t var state0 = state[0];\n\t T0.high = state0.high;\n\t T0.low = state0.low;\n\n\t // Chi\n\t for (var x = 0; x < 5; x++) {\n\t for (var y = 0; y < 5; y++) {\n\t // Shortcuts\n\t var laneIndex = x + 5 * y;\n\t var lane = state[laneIndex];\n\t var TLane = T[laneIndex];\n\t var Tx1Lane = T[((x + 1) % 5) + 5 * y];\n\t var Tx2Lane = T[((x + 2) % 5) + 5 * y];\n\n\t // Mix rows\n\t lane.high = TLane.high ^ (~Tx1Lane.high & Tx2Lane.high);\n\t lane.low = TLane.low ^ (~Tx1Lane.low & Tx2Lane.low);\n\t }\n\t }\n\n\t // Iota\n\t var lane = state[0];\n\t var roundConstant = ROUND_CONSTANTS[round];\n\t lane.high ^= roundConstant.high;\n\t lane.low ^= roundConstant.low;\n\t }\n\t },\n\n\t _doFinalize: function () {\n\t // Shortcuts\n\t var data = this._data;\n\t var dataWords = data.words;\n\t var nBitsTotal = this._nDataBytes * 8;\n\t var nBitsLeft = data.sigBytes * 8;\n\t var blockSizeBits = this.blockSize * 32;\n\n\t // Add padding\n\t dataWords[nBitsLeft >>> 5] |= 0x1 << (24 - nBitsLeft % 32);\n\t dataWords[((Math.ceil((nBitsLeft + 1) / blockSizeBits) * blockSizeBits) >>> 5) - 1] |= 0x80;\n\t data.sigBytes = dataWords.length * 4;\n\n\t // Hash final blocks\n\t this._process();\n\n\t // Shortcuts\n\t var state = this._state;\n\t var outputLengthBytes = this.cfg.outputLength / 8;\n\t var outputLengthLanes = outputLengthBytes / 8;\n\n\t // Squeeze\n\t var hashWords = [];\n\t for (var i = 0; i < outputLengthLanes; i++) {\n\t // Shortcuts\n\t var lane = state[i];\n\t var laneMsw = lane.high;\n\t var laneLsw = lane.low;\n\n\t // Swap endian\n\t laneMsw = (\n\t (((laneMsw << 8) | (laneMsw >>> 24)) & 0x00ff00ff) |\n\t (((laneMsw << 24) | (laneMsw >>> 8)) & 0xff00ff00)\n\t );\n\t laneLsw = (\n\t (((laneLsw << 8) | (laneLsw >>> 24)) & 0x00ff00ff) |\n\t (((laneLsw << 24) | (laneLsw >>> 8)) & 0xff00ff00)\n\t );\n\n\t // Squeeze state to retrieve hash\n\t hashWords.push(laneLsw);\n\t hashWords.push(laneMsw);\n\t }\n\n\t // Return final computed hash\n\t return new WordArray.init(hashWords, outputLengthBytes);\n\t },\n\n\t clone: function () {\n\t var clone = Hasher.clone.call(this);\n\n\t var state = clone._state = this._state.slice(0);\n\t for (var i = 0; i < 25; i++) {\n\t state[i] = state[i].clone();\n\t }\n\n\t return clone;\n\t }\n\t });\n\n\t /**\n\t * Shortcut function to the hasher's object interface.\n\t *\n\t * @param {WordArray|string} message The message to hash.\n\t *\n\t * @return {WordArray} The hash.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var hash = CryptoJS.SHA3('message');\n\t * var hash = CryptoJS.SHA3(wordArray);\n\t */\n\t C.SHA3 = Hasher._createHelper(SHA3);\n\n\t /**\n\t * Shortcut function to the HMAC's object interface.\n\t *\n\t * @param {WordArray|string} message The message to hash.\n\t * @param {WordArray|string} key The secret key.\n\t *\n\t * @return {WordArray} The HMAC.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var hmac = CryptoJS.HmacSHA3(message, key);\n\t */\n\t C.HmacSHA3 = Hasher._createHmacHelper(SHA3);\n\t}(Math));\n\n\n\treturn CryptoJS.SHA3;\n\n}));", ";(function (root, factory) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory(require(\"./core\"));\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([\"./core\"], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\tfactory(root.CryptoJS);\n\t}\n}(this, function (CryptoJS) {\n\n\t/** @preserve\n\t(c) 2012 by Cédric Mesnil. All rights reserved.\n\n\tRedistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:\n\n\t - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.\n\t - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.\n\n\tTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\t*/\n\n\t(function (Math) {\n\t // Shortcuts\n\t var C = CryptoJS;\n\t var C_lib = C.lib;\n\t var WordArray = C_lib.WordArray;\n\t var Hasher = C_lib.Hasher;\n\t var C_algo = C.algo;\n\n\t // Constants table\n\t var _zl = WordArray.create([\n\t 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,\n\t 7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8,\n\t 3, 10, 14, 4, 9, 15, 8, 1, 2, 7, 0, 6, 13, 11, 5, 12,\n\t 1, 9, 11, 10, 0, 8, 12, 4, 13, 3, 7, 15, 14, 5, 6, 2,\n\t 4, 0, 5, 9, 7, 12, 2, 10, 14, 1, 3, 8, 11, 6, 15, 13]);\n\t var _zr = WordArray.create([\n\t 5, 14, 7, 0, 9, 2, 11, 4, 13, 6, 15, 8, 1, 10, 3, 12,\n\t 6, 11, 3, 7, 0, 13, 5, 10, 14, 15, 8, 12, 4, 9, 1, 2,\n\t 15, 5, 1, 3, 7, 14, 6, 9, 11, 8, 12, 2, 10, 0, 4, 13,\n\t 8, 6, 4, 1, 3, 11, 15, 0, 5, 12, 2, 13, 9, 7, 10, 14,\n\t 12, 15, 10, 4, 1, 5, 8, 7, 6, 2, 13, 14, 0, 3, 9, 11]);\n\t var _sl = WordArray.create([\n\t 11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8,\n\t 7, 6, 8, 13, 11, 9, 7, 15, 7, 12, 15, 9, 11, 7, 13, 12,\n\t 11, 13, 6, 7, 14, 9, 13, 15, 14, 8, 13, 6, 5, 12, 7, 5,\n\t 11, 12, 14, 15, 14, 15, 9, 8, 9, 14, 5, 6, 8, 6, 5, 12,\n\t 9, 15, 5, 11, 6, 8, 13, 12, 5, 12, 13, 14, 11, 8, 5, 6 ]);\n\t var _sr = WordArray.create([\n\t 8, 9, 9, 11, 13, 15, 15, 5, 7, 7, 8, 11, 14, 14, 12, 6,\n\t 9, 13, 15, 7, 12, 8, 9, 11, 7, 7, 12, 7, 6, 15, 13, 11,\n\t 9, 7, 15, 11, 8, 6, 6, 14, 12, 13, 5, 14, 13, 13, 7, 5,\n\t 15, 5, 8, 11, 14, 14, 6, 14, 6, 9, 12, 9, 12, 5, 15, 8,\n\t 8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, 15, 13, 11, 11 ]);\n\n\t var _hl = WordArray.create([ 0x00000000, 0x5A827999, 0x6ED9EBA1, 0x8F1BBCDC, 0xA953FD4E]);\n\t var _hr = WordArray.create([ 0x50A28BE6, 0x5C4DD124, 0x6D703EF3, 0x7A6D76E9, 0x00000000]);\n\n\t /**\n\t * RIPEMD160 hash algorithm.\n\t */\n\t var RIPEMD160 = C_algo.RIPEMD160 = Hasher.extend({\n\t _doReset: function () {\n\t this._hash = WordArray.create([0x67452301, 0xEFCDAB89, 0x98BADCFE, 0x10325476, 0xC3D2E1F0]);\n\t },\n\n\t _doProcessBlock: function (M, offset) {\n\n\t // Swap endian\n\t for (var i = 0; i < 16; i++) {\n\t // Shortcuts\n\t var offset_i = offset + i;\n\t var M_offset_i = M[offset_i];\n\n\t // Swap\n\t M[offset_i] = (\n\t (((M_offset_i << 8) | (M_offset_i >>> 24)) & 0x00ff00ff) |\n\t (((M_offset_i << 24) | (M_offset_i >>> 8)) & 0xff00ff00)\n\t );\n\t }\n\t // Shortcut\n\t var H = this._hash.words;\n\t var hl = _hl.words;\n\t var hr = _hr.words;\n\t var zl = _zl.words;\n\t var zr = _zr.words;\n\t var sl = _sl.words;\n\t var sr = _sr.words;\n\n\t // Working variables\n\t var al, bl, cl, dl, el;\n\t var ar, br, cr, dr, er;\n\n\t ar = al = H[0];\n\t br = bl = H[1];\n\t cr = cl = H[2];\n\t dr = dl = H[3];\n\t er = el = H[4];\n\t // Computation\n\t var t;\n\t for (var i = 0; i < 80; i += 1) {\n\t t = (al + M[offset+zl[i]])|0;\n\t if (i<16){\n\t\t t += f1(bl,cl,dl) + hl[0];\n\t } else if (i<32) {\n\t\t t += f2(bl,cl,dl) + hl[1];\n\t } else if (i<48) {\n\t\t t += f3(bl,cl,dl) + hl[2];\n\t } else if (i<64) {\n\t\t t += f4(bl,cl,dl) + hl[3];\n\t } else {// if (i<80) {\n\t\t t += f5(bl,cl,dl) + hl[4];\n\t }\n\t t = t|0;\n\t t = rotl(t,sl[i]);\n\t t = (t+el)|0;\n\t al = el;\n\t el = dl;\n\t dl = rotl(cl, 10);\n\t cl = bl;\n\t bl = t;\n\n\t t = (ar + M[offset+zr[i]])|0;\n\t if (i<16){\n\t\t t += f5(br,cr,dr) + hr[0];\n\t } else if (i<32) {\n\t\t t += f4(br,cr,dr) + hr[1];\n\t } else if (i<48) {\n\t\t t += f3(br,cr,dr) + hr[2];\n\t } else if (i<64) {\n\t\t t += f2(br,cr,dr) + hr[3];\n\t } else {// if (i<80) {\n\t\t t += f1(br,cr,dr) + hr[4];\n\t }\n\t t = t|0;\n\t t = rotl(t,sr[i]) ;\n\t t = (t+er)|0;\n\t ar = er;\n\t er = dr;\n\t dr = rotl(cr, 10);\n\t cr = br;\n\t br = t;\n\t }\n\t // Intermediate hash value\n\t t = (H[1] + cl + dr)|0;\n\t H[1] = (H[2] + dl + er)|0;\n\t H[2] = (H[3] + el + ar)|0;\n\t H[3] = (H[4] + al + br)|0;\n\t H[4] = (H[0] + bl + cr)|0;\n\t H[0] = t;\n\t },\n\n\t _doFinalize: function () {\n\t // Shortcuts\n\t var data = this._data;\n\t var dataWords = data.words;\n\n\t var nBitsTotal = this._nDataBytes * 8;\n\t var nBitsLeft = data.sigBytes * 8;\n\n\t // Add padding\n\t dataWords[nBitsLeft >>> 5] |= 0x80 << (24 - nBitsLeft % 32);\n\t dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 14] = (\n\t (((nBitsTotal << 8) | (nBitsTotal >>> 24)) & 0x00ff00ff) |\n\t (((nBitsTotal << 24) | (nBitsTotal >>> 8)) & 0xff00ff00)\n\t );\n\t data.sigBytes = (dataWords.length + 1) * 4;\n\n\t // Hash final blocks\n\t this._process();\n\n\t // Shortcuts\n\t var hash = this._hash;\n\t var H = hash.words;\n\n\t // Swap endian\n\t for (var i = 0; i < 5; i++) {\n\t // Shortcut\n\t var H_i = H[i];\n\n\t // Swap\n\t H[i] = (((H_i << 8) | (H_i >>> 24)) & 0x00ff00ff) |\n\t (((H_i << 24) | (H_i >>> 8)) & 0xff00ff00);\n\t }\n\n\t // Return final computed hash\n\t return hash;\n\t },\n\n\t clone: function () {\n\t var clone = Hasher.clone.call(this);\n\t clone._hash = this._hash.clone();\n\n\t return clone;\n\t }\n\t });\n\n\n\t function f1(x, y, z) {\n\t return ((x) ^ (y) ^ (z));\n\n\t }\n\n\t function f2(x, y, z) {\n\t return (((x)&(y)) | ((~x)&(z)));\n\t }\n\n\t function f3(x, y, z) {\n\t return (((x) | (~(y))) ^ (z));\n\t }\n\n\t function f4(x, y, z) {\n\t return (((x) & (z)) | ((y)&(~(z))));\n\t }\n\n\t function f5(x, y, z) {\n\t return ((x) ^ ((y) |(~(z))));\n\n\t }\n\n\t function rotl(x,n) {\n\t return (x<>>(32-n));\n\t }\n\n\n\t /**\n\t * Shortcut function to the hasher's object interface.\n\t *\n\t * @param {WordArray|string} message The message to hash.\n\t *\n\t * @return {WordArray} The hash.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var hash = CryptoJS.RIPEMD160('message');\n\t * var hash = CryptoJS.RIPEMD160(wordArray);\n\t */\n\t C.RIPEMD160 = Hasher._createHelper(RIPEMD160);\n\n\t /**\n\t * Shortcut function to the HMAC's object interface.\n\t *\n\t * @param {WordArray|string} message The message to hash.\n\t * @param {WordArray|string} key The secret key.\n\t *\n\t * @return {WordArray} The HMAC.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var hmac = CryptoJS.HmacRIPEMD160(message, key);\n\t */\n\t C.HmacRIPEMD160 = Hasher._createHmacHelper(RIPEMD160);\n\t}(Math));\n\n\n\treturn CryptoJS.RIPEMD160;\n\n}));", ";(function (root, factory) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory(require(\"./core\"));\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([\"./core\"], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\tfactory(root.CryptoJS);\n\t}\n}(this, function (CryptoJS) {\n\n\t(function () {\n\t // Shortcuts\n\t var C = CryptoJS;\n\t var C_lib = C.lib;\n\t var Base = C_lib.Base;\n\t var C_enc = C.enc;\n\t var Utf8 = C_enc.Utf8;\n\t var C_algo = C.algo;\n\n\t /**\n\t * HMAC algorithm.\n\t */\n\t var HMAC = C_algo.HMAC = Base.extend({\n\t /**\n\t * Initializes a newly created HMAC.\n\t *\n\t * @param {Hasher} hasher The hash algorithm to use.\n\t * @param {WordArray|string} key The secret key.\n\t *\n\t * @example\n\t *\n\t * var hmacHasher = CryptoJS.algo.HMAC.create(CryptoJS.algo.SHA256, key);\n\t */\n\t init: function (hasher, key) {\n\t // Init hasher\n\t hasher = this._hasher = new hasher.init();\n\n\t // Convert string to WordArray, else assume WordArray already\n\t if (typeof key == 'string') {\n\t key = Utf8.parse(key);\n\t }\n\n\t // Shortcuts\n\t var hasherBlockSize = hasher.blockSize;\n\t var hasherBlockSizeBytes = hasherBlockSize * 4;\n\n\t // Allow arbitrary length keys\n\t if (key.sigBytes > hasherBlockSizeBytes) {\n\t key = hasher.finalize(key);\n\t }\n\n\t // Clamp excess bits\n\t key.clamp();\n\n\t // Clone key for inner and outer pads\n\t var oKey = this._oKey = key.clone();\n\t var iKey = this._iKey = key.clone();\n\n\t // Shortcuts\n\t var oKeyWords = oKey.words;\n\t var iKeyWords = iKey.words;\n\n\t // XOR keys with pad constants\n\t for (var i = 0; i < hasherBlockSize; i++) {\n\t oKeyWords[i] ^= 0x5c5c5c5c;\n\t iKeyWords[i] ^= 0x36363636;\n\t }\n\t oKey.sigBytes = iKey.sigBytes = hasherBlockSizeBytes;\n\n\t // Set initial values\n\t this.reset();\n\t },\n\n\t /**\n\t * Resets this HMAC to its initial state.\n\t *\n\t * @example\n\t *\n\t * hmacHasher.reset();\n\t */\n\t reset: function () {\n\t // Shortcut\n\t var hasher = this._hasher;\n\n\t // Reset\n\t hasher.reset();\n\t hasher.update(this._iKey);\n\t },\n\n\t /**\n\t * Updates this HMAC with a message.\n\t *\n\t * @param {WordArray|string} messageUpdate The message to append.\n\t *\n\t * @return {HMAC} This HMAC instance.\n\t *\n\t * @example\n\t *\n\t * hmacHasher.update('message');\n\t * hmacHasher.update(wordArray);\n\t */\n\t update: function (messageUpdate) {\n\t this._hasher.update(messageUpdate);\n\n\t // Chainable\n\t return this;\n\t },\n\n\t /**\n\t * Finalizes the HMAC computation.\n\t * Note that the finalize operation is effectively a destructive, read-once operation.\n\t *\n\t * @param {WordArray|string} messageUpdate (Optional) A final message update.\n\t *\n\t * @return {WordArray} The HMAC.\n\t *\n\t * @example\n\t *\n\t * var hmac = hmacHasher.finalize();\n\t * var hmac = hmacHasher.finalize('message');\n\t * var hmac = hmacHasher.finalize(wordArray);\n\t */\n\t finalize: function (messageUpdate) {\n\t // Shortcut\n\t var hasher = this._hasher;\n\n\t // Compute HMAC\n\t var innerHash = hasher.finalize(messageUpdate);\n\t hasher.reset();\n\t var hmac = hasher.finalize(this._oKey.clone().concat(innerHash));\n\n\t return hmac;\n\t }\n\t });\n\t}());\n\n\n}));", ";(function (root, factory, undef) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory(require(\"./core\"), require(\"./sha256\"), require(\"./hmac\"));\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([\"./core\", \"./sha256\", \"./hmac\"], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\tfactory(root.CryptoJS);\n\t}\n}(this, function (CryptoJS) {\n\n\t(function () {\n\t // Shortcuts\n\t var C = CryptoJS;\n\t var C_lib = C.lib;\n\t var Base = C_lib.Base;\n\t var WordArray = C_lib.WordArray;\n\t var C_algo = C.algo;\n\t var SHA256 = C_algo.SHA256;\n\t var HMAC = C_algo.HMAC;\n\n\t /**\n\t * Password-Based Key Derivation Function 2 algorithm.\n\t */\n\t var PBKDF2 = C_algo.PBKDF2 = Base.extend({\n\t /**\n\t * Configuration options.\n\t *\n\t * @property {number} keySize The key size in words to generate. Default: 4 (128 bits)\n\t * @property {Hasher} hasher The hasher to use. Default: SHA256\n\t * @property {number} iterations The number of iterations to perform. Default: 250000\n\t */\n\t cfg: Base.extend({\n\t keySize: 128/32,\n\t hasher: SHA256,\n\t iterations: 250000\n\t }),\n\n\t /**\n\t * Initializes a newly created key derivation function.\n\t *\n\t * @param {Object} cfg (Optional) The configuration options to use for the derivation.\n\t *\n\t * @example\n\t *\n\t * var kdf = CryptoJS.algo.PBKDF2.create();\n\t * var kdf = CryptoJS.algo.PBKDF2.create({ keySize: 8 });\n\t * var kdf = CryptoJS.algo.PBKDF2.create({ keySize: 8, iterations: 1000 });\n\t */\n\t init: function (cfg) {\n\t this.cfg = this.cfg.extend(cfg);\n\t },\n\n\t /**\n\t * Computes the Password-Based Key Derivation Function 2.\n\t *\n\t * @param {WordArray|string} password The password.\n\t * @param {WordArray|string} salt A salt.\n\t *\n\t * @return {WordArray} The derived key.\n\t *\n\t * @example\n\t *\n\t * var key = kdf.compute(password, salt);\n\t */\n\t compute: function (password, salt) {\n\t // Shortcut\n\t var cfg = this.cfg;\n\n\t // Init HMAC\n\t var hmac = HMAC.create(cfg.hasher, password);\n\n\t // Initial values\n\t var derivedKey = WordArray.create();\n\t var blockIndex = WordArray.create([0x00000001]);\n\n\t // Shortcuts\n\t var derivedKeyWords = derivedKey.words;\n\t var blockIndexWords = blockIndex.words;\n\t var keySize = cfg.keySize;\n\t var iterations = cfg.iterations;\n\n\t // Generate key\n\t while (derivedKeyWords.length < keySize) {\n\t var block = hmac.update(salt).finalize(blockIndex);\n\t hmac.reset();\n\n\t // Shortcuts\n\t var blockWords = block.words;\n\t var blockWordsLength = blockWords.length;\n\n\t // Iterations\n\t var intermediate = block;\n\t for (var i = 1; i < iterations; i++) {\n\t intermediate = hmac.finalize(intermediate);\n\t hmac.reset();\n\n\t // Shortcut\n\t var intermediateWords = intermediate.words;\n\n\t // XOR intermediate with block\n\t for (var j = 0; j < blockWordsLength; j++) {\n\t blockWords[j] ^= intermediateWords[j];\n\t }\n\t }\n\n\t derivedKey.concat(block);\n\t blockIndexWords[0]++;\n\t }\n\t derivedKey.sigBytes = keySize * 4;\n\n\t return derivedKey;\n\t }\n\t });\n\n\t /**\n\t * Computes the Password-Based Key Derivation Function 2.\n\t *\n\t * @param {WordArray|string} password The password.\n\t * @param {WordArray|string} salt A salt.\n\t * @param {Object} cfg (Optional) The configuration options to use for this computation.\n\t *\n\t * @return {WordArray} The derived key.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var key = CryptoJS.PBKDF2(password, salt);\n\t * var key = CryptoJS.PBKDF2(password, salt, { keySize: 8 });\n\t * var key = CryptoJS.PBKDF2(password, salt, { keySize: 8, iterations: 1000 });\n\t */\n\t C.PBKDF2 = function (password, salt, cfg) {\n\t return PBKDF2.create(cfg).compute(password, salt);\n\t };\n\t}());\n\n\n\treturn CryptoJS.PBKDF2;\n\n}));", ";(function (root, factory, undef) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory(require(\"./core\"), require(\"./sha1\"), require(\"./hmac\"));\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([\"./core\", \"./sha1\", \"./hmac\"], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\tfactory(root.CryptoJS);\n\t}\n}(this, function (CryptoJS) {\n\n\t(function () {\n\t // Shortcuts\n\t var C = CryptoJS;\n\t var C_lib = C.lib;\n\t var Base = C_lib.Base;\n\t var WordArray = C_lib.WordArray;\n\t var C_algo = C.algo;\n\t var MD5 = C_algo.MD5;\n\n\t /**\n\t * This key derivation function is meant to conform with EVP_BytesToKey.\n\t * www.openssl.org/docs/crypto/EVP_BytesToKey.html\n\t */\n\t var EvpKDF = C_algo.EvpKDF = Base.extend({\n\t /**\n\t * Configuration options.\n\t *\n\t * @property {number} keySize The key size in words to generate. Default: 4 (128 bits)\n\t * @property {Hasher} hasher The hash algorithm to use. Default: MD5\n\t * @property {number} iterations The number of iterations to perform. Default: 1\n\t */\n\t cfg: Base.extend({\n\t keySize: 128/32,\n\t hasher: MD5,\n\t iterations: 1\n\t }),\n\n\t /**\n\t * Initializes a newly created key derivation function.\n\t *\n\t * @param {Object} cfg (Optional) The configuration options to use for the derivation.\n\t *\n\t * @example\n\t *\n\t * var kdf = CryptoJS.algo.EvpKDF.create();\n\t * var kdf = CryptoJS.algo.EvpKDF.create({ keySize: 8 });\n\t * var kdf = CryptoJS.algo.EvpKDF.create({ keySize: 8, iterations: 1000 });\n\t */\n\t init: function (cfg) {\n\t this.cfg = this.cfg.extend(cfg);\n\t },\n\n\t /**\n\t * Derives a key from a password.\n\t *\n\t * @param {WordArray|string} password The password.\n\t * @param {WordArray|string} salt A salt.\n\t *\n\t * @return {WordArray} The derived key.\n\t *\n\t * @example\n\t *\n\t * var key = kdf.compute(password, salt);\n\t */\n\t compute: function (password, salt) {\n\t var block;\n\n\t // Shortcut\n\t var cfg = this.cfg;\n\n\t // Init hasher\n\t var hasher = cfg.hasher.create();\n\n\t // Initial values\n\t var derivedKey = WordArray.create();\n\n\t // Shortcuts\n\t var derivedKeyWords = derivedKey.words;\n\t var keySize = cfg.keySize;\n\t var iterations = cfg.iterations;\n\n\t // Generate key\n\t while (derivedKeyWords.length < keySize) {\n\t if (block) {\n\t hasher.update(block);\n\t }\n\t block = hasher.update(password).finalize(salt);\n\t hasher.reset();\n\n\t // Iterations\n\t for (var i = 1; i < iterations; i++) {\n\t block = hasher.finalize(block);\n\t hasher.reset();\n\t }\n\n\t derivedKey.concat(block);\n\t }\n\t derivedKey.sigBytes = keySize * 4;\n\n\t return derivedKey;\n\t }\n\t });\n\n\t /**\n\t * Derives a key from a password.\n\t *\n\t * @param {WordArray|string} password The password.\n\t * @param {WordArray|string} salt A salt.\n\t * @param {Object} cfg (Optional) The configuration options to use for this computation.\n\t *\n\t * @return {WordArray} The derived key.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var key = CryptoJS.EvpKDF(password, salt);\n\t * var key = CryptoJS.EvpKDF(password, salt, { keySize: 8 });\n\t * var key = CryptoJS.EvpKDF(password, salt, { keySize: 8, iterations: 1000 });\n\t */\n\t C.EvpKDF = function (password, salt, cfg) {\n\t return EvpKDF.create(cfg).compute(password, salt);\n\t };\n\t}());\n\n\n\treturn CryptoJS.EvpKDF;\n\n}));", ";(function (root, factory, undef) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory(require(\"./core\"), require(\"./evpkdf\"));\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([\"./core\", \"./evpkdf\"], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\tfactory(root.CryptoJS);\n\t}\n}(this, function (CryptoJS) {\n\n\t/**\n\t * Cipher core components.\n\t */\n\tCryptoJS.lib.Cipher || (function (undefined) {\n\t // Shortcuts\n\t var C = CryptoJS;\n\t var C_lib = C.lib;\n\t var Base = C_lib.Base;\n\t var WordArray = C_lib.WordArray;\n\t var BufferedBlockAlgorithm = C_lib.BufferedBlockAlgorithm;\n\t var C_enc = C.enc;\n\t var Utf8 = C_enc.Utf8;\n\t var Base64 = C_enc.Base64;\n\t var C_algo = C.algo;\n\t var EvpKDF = C_algo.EvpKDF;\n\n\t /**\n\t * Abstract base cipher template.\n\t *\n\t * @property {number} keySize This cipher's key size. Default: 4 (128 bits)\n\t * @property {number} ivSize This cipher's IV size. Default: 4 (128 bits)\n\t * @property {number} _ENC_XFORM_MODE A constant representing encryption mode.\n\t * @property {number} _DEC_XFORM_MODE A constant representing decryption mode.\n\t */\n\t var Cipher = C_lib.Cipher = BufferedBlockAlgorithm.extend({\n\t /**\n\t * Configuration options.\n\t *\n\t * @property {WordArray} iv The IV to use for this operation.\n\t */\n\t cfg: Base.extend(),\n\n\t /**\n\t * Creates this cipher in encryption mode.\n\t *\n\t * @param {WordArray} key The key.\n\t * @param {Object} cfg (Optional) The configuration options to use for this operation.\n\t *\n\t * @return {Cipher} A cipher instance.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var cipher = CryptoJS.algo.AES.createEncryptor(keyWordArray, { iv: ivWordArray });\n\t */\n\t createEncryptor: function (key, cfg) {\n\t return this.create(this._ENC_XFORM_MODE, key, cfg);\n\t },\n\n\t /**\n\t * Creates this cipher in decryption mode.\n\t *\n\t * @param {WordArray} key The key.\n\t * @param {Object} cfg (Optional) The configuration options to use for this operation.\n\t *\n\t * @return {Cipher} A cipher instance.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var cipher = CryptoJS.algo.AES.createDecryptor(keyWordArray, { iv: ivWordArray });\n\t */\n\t createDecryptor: function (key, cfg) {\n\t return this.create(this._DEC_XFORM_MODE, key, cfg);\n\t },\n\n\t /**\n\t * Initializes a newly created cipher.\n\t *\n\t * @param {number} xformMode Either the encryption or decryption transormation mode constant.\n\t * @param {WordArray} key The key.\n\t * @param {Object} cfg (Optional) The configuration options to use for this operation.\n\t *\n\t * @example\n\t *\n\t * var cipher = CryptoJS.algo.AES.create(CryptoJS.algo.AES._ENC_XFORM_MODE, keyWordArray, { iv: ivWordArray });\n\t */\n\t init: function (xformMode, key, cfg) {\n\t // Apply config defaults\n\t this.cfg = this.cfg.extend(cfg);\n\n\t // Store transform mode and key\n\t this._xformMode = xformMode;\n\t this._key = key;\n\n\t // Set initial values\n\t this.reset();\n\t },\n\n\t /**\n\t * Resets this cipher to its initial state.\n\t *\n\t * @example\n\t *\n\t * cipher.reset();\n\t */\n\t reset: function () {\n\t // Reset data buffer\n\t BufferedBlockAlgorithm.reset.call(this);\n\n\t // Perform concrete-cipher logic\n\t this._doReset();\n\t },\n\n\t /**\n\t * Adds data to be encrypted or decrypted.\n\t *\n\t * @param {WordArray|string} dataUpdate The data to encrypt or decrypt.\n\t *\n\t * @return {WordArray} The data after processing.\n\t *\n\t * @example\n\t *\n\t * var encrypted = cipher.process('data');\n\t * var encrypted = cipher.process(wordArray);\n\t */\n\t process: function (dataUpdate) {\n\t // Append\n\t this._append(dataUpdate);\n\n\t // Process available blocks\n\t return this._process();\n\t },\n\n\t /**\n\t * Finalizes the encryption or decryption process.\n\t * Note that the finalize operation is effectively a destructive, read-once operation.\n\t *\n\t * @param {WordArray|string} dataUpdate The final data to encrypt or decrypt.\n\t *\n\t * @return {WordArray} The data after final processing.\n\t *\n\t * @example\n\t *\n\t * var encrypted = cipher.finalize();\n\t * var encrypted = cipher.finalize('data');\n\t * var encrypted = cipher.finalize(wordArray);\n\t */\n\t finalize: function (dataUpdate) {\n\t // Final data update\n\t if (dataUpdate) {\n\t this._append(dataUpdate);\n\t }\n\n\t // Perform concrete-cipher logic\n\t var finalProcessedData = this._doFinalize();\n\n\t return finalProcessedData;\n\t },\n\n\t keySize: 128/32,\n\n\t ivSize: 128/32,\n\n\t _ENC_XFORM_MODE: 1,\n\n\t _DEC_XFORM_MODE: 2,\n\n\t /**\n\t * Creates shortcut functions to a cipher's object interface.\n\t *\n\t * @param {Cipher} cipher The cipher to create a helper for.\n\t *\n\t * @return {Object} An object with encrypt and decrypt shortcut functions.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var AES = CryptoJS.lib.Cipher._createHelper(CryptoJS.algo.AES);\n\t */\n\t _createHelper: (function () {\n\t function selectCipherStrategy(key) {\n\t if (typeof key == 'string') {\n\t return PasswordBasedCipher;\n\t } else {\n\t return SerializableCipher;\n\t }\n\t }\n\n\t return function (cipher) {\n\t return {\n\t encrypt: function (message, key, cfg) {\n\t return selectCipherStrategy(key).encrypt(cipher, message, key, cfg);\n\t },\n\n\t decrypt: function (ciphertext, key, cfg) {\n\t return selectCipherStrategy(key).decrypt(cipher, ciphertext, key, cfg);\n\t }\n\t };\n\t };\n\t }())\n\t });\n\n\t /**\n\t * Abstract base stream cipher template.\n\t *\n\t * @property {number} blockSize The number of 32-bit words this cipher operates on. Default: 1 (32 bits)\n\t */\n\t var StreamCipher = C_lib.StreamCipher = Cipher.extend({\n\t _doFinalize: function () {\n\t // Process partial blocks\n\t var finalProcessedBlocks = this._process(!!'flush');\n\n\t return finalProcessedBlocks;\n\t },\n\n\t blockSize: 1\n\t });\n\n\t /**\n\t * Mode namespace.\n\t */\n\t var C_mode = C.mode = {};\n\n\t /**\n\t * Abstract base block cipher mode template.\n\t */\n\t var BlockCipherMode = C_lib.BlockCipherMode = Base.extend({\n\t /**\n\t * Creates this mode for encryption.\n\t *\n\t * @param {Cipher} cipher A block cipher instance.\n\t * @param {Array} iv The IV words.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var mode = CryptoJS.mode.CBC.createEncryptor(cipher, iv.words);\n\t */\n\t createEncryptor: function (cipher, iv) {\n\t return this.Encryptor.create(cipher, iv);\n\t },\n\n\t /**\n\t * Creates this mode for decryption.\n\t *\n\t * @param {Cipher} cipher A block cipher instance.\n\t * @param {Array} iv The IV words.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var mode = CryptoJS.mode.CBC.createDecryptor(cipher, iv.words);\n\t */\n\t createDecryptor: function (cipher, iv) {\n\t return this.Decryptor.create(cipher, iv);\n\t },\n\n\t /**\n\t * Initializes a newly created mode.\n\t *\n\t * @param {Cipher} cipher A block cipher instance.\n\t * @param {Array} iv The IV words.\n\t *\n\t * @example\n\t *\n\t * var mode = CryptoJS.mode.CBC.Encryptor.create(cipher, iv.words);\n\t */\n\t init: function (cipher, iv) {\n\t this._cipher = cipher;\n\t this._iv = iv;\n\t }\n\t });\n\n\t /**\n\t * Cipher Block Chaining mode.\n\t */\n\t var CBC = C_mode.CBC = (function () {\n\t /**\n\t * Abstract base CBC mode.\n\t */\n\t var CBC = BlockCipherMode.extend();\n\n\t /**\n\t * CBC encryptor.\n\t */\n\t CBC.Encryptor = CBC.extend({\n\t /**\n\t * Processes the data block at offset.\n\t *\n\t * @param {Array} words The data words to operate on.\n\t * @param {number} offset The offset where the block starts.\n\t *\n\t * @example\n\t *\n\t * mode.processBlock(data.words, offset);\n\t */\n\t processBlock: function (words, offset) {\n\t // Shortcuts\n\t var cipher = this._cipher;\n\t var blockSize = cipher.blockSize;\n\n\t // XOR and encrypt\n\t xorBlock.call(this, words, offset, blockSize);\n\t cipher.encryptBlock(words, offset);\n\n\t // Remember this block to use with next block\n\t this._prevBlock = words.slice(offset, offset + blockSize);\n\t }\n\t });\n\n\t /**\n\t * CBC decryptor.\n\t */\n\t CBC.Decryptor = CBC.extend({\n\t /**\n\t * Processes the data block at offset.\n\t *\n\t * @param {Array} words The data words to operate on.\n\t * @param {number} offset The offset where the block starts.\n\t *\n\t * @example\n\t *\n\t * mode.processBlock(data.words, offset);\n\t */\n\t processBlock: function (words, offset) {\n\t // Shortcuts\n\t var cipher = this._cipher;\n\t var blockSize = cipher.blockSize;\n\n\t // Remember this block to use with next block\n\t var thisBlock = words.slice(offset, offset + blockSize);\n\n\t // Decrypt and XOR\n\t cipher.decryptBlock(words, offset);\n\t xorBlock.call(this, words, offset, blockSize);\n\n\t // This block becomes the previous block\n\t this._prevBlock = thisBlock;\n\t }\n\t });\n\n\t function xorBlock(words, offset, blockSize) {\n\t var block;\n\n\t // Shortcut\n\t var iv = this._iv;\n\n\t // Choose mixing block\n\t if (iv) {\n\t block = iv;\n\n\t // Remove IV for subsequent blocks\n\t this._iv = undefined;\n\t } else {\n\t block = this._prevBlock;\n\t }\n\n\t // XOR blocks\n\t for (var i = 0; i < blockSize; i++) {\n\t words[offset + i] ^= block[i];\n\t }\n\t }\n\n\t return CBC;\n\t }());\n\n\t /**\n\t * Padding namespace.\n\t */\n\t var C_pad = C.pad = {};\n\n\t /**\n\t * PKCS #5/7 padding strategy.\n\t */\n\t var Pkcs7 = C_pad.Pkcs7 = {\n\t /**\n\t * Pads data using the algorithm defined in PKCS #5/7.\n\t *\n\t * @param {WordArray} data The data to pad.\n\t * @param {number} blockSize The multiple that the data should be padded to.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * CryptoJS.pad.Pkcs7.pad(wordArray, 4);\n\t */\n\t pad: function (data, blockSize) {\n\t // Shortcut\n\t var blockSizeBytes = blockSize * 4;\n\n\t // Count padding bytes\n\t var nPaddingBytes = blockSizeBytes - data.sigBytes % blockSizeBytes;\n\n\t // Create padding word\n\t var paddingWord = (nPaddingBytes << 24) | (nPaddingBytes << 16) | (nPaddingBytes << 8) | nPaddingBytes;\n\n\t // Create padding\n\t var paddingWords = [];\n\t for (var i = 0; i < nPaddingBytes; i += 4) {\n\t paddingWords.push(paddingWord);\n\t }\n\t var padding = WordArray.create(paddingWords, nPaddingBytes);\n\n\t // Add padding\n\t data.concat(padding);\n\t },\n\n\t /**\n\t * Unpads data that had been padded using the algorithm defined in PKCS #5/7.\n\t *\n\t * @param {WordArray} data The data to unpad.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * CryptoJS.pad.Pkcs7.unpad(wordArray);\n\t */\n\t unpad: function (data) {\n\t // Get number of padding bytes from last byte\n\t var nPaddingBytes = data.words[(data.sigBytes - 1) >>> 2] & 0xff;\n\n\t // Remove padding\n\t data.sigBytes -= nPaddingBytes;\n\t }\n\t };\n\n\t /**\n\t * Abstract base block cipher template.\n\t *\n\t * @property {number} blockSize The number of 32-bit words this cipher operates on. Default: 4 (128 bits)\n\t */\n\t var BlockCipher = C_lib.BlockCipher = Cipher.extend({\n\t /**\n\t * Configuration options.\n\t *\n\t * @property {Mode} mode The block mode to use. Default: CBC\n\t * @property {Padding} padding The padding strategy to use. Default: Pkcs7\n\t */\n\t cfg: Cipher.cfg.extend({\n\t mode: CBC,\n\t padding: Pkcs7\n\t }),\n\n\t reset: function () {\n\t var modeCreator;\n\n\t // Reset cipher\n\t Cipher.reset.call(this);\n\n\t // Shortcuts\n\t var cfg = this.cfg;\n\t var iv = cfg.iv;\n\t var mode = cfg.mode;\n\n\t // Reset block mode\n\t if (this._xformMode == this._ENC_XFORM_MODE) {\n\t modeCreator = mode.createEncryptor;\n\t } else /* if (this._xformMode == this._DEC_XFORM_MODE) */ {\n\t modeCreator = mode.createDecryptor;\n\t // Keep at least one block in the buffer for unpadding\n\t this._minBufferSize = 1;\n\t }\n\n\t if (this._mode && this._mode.__creator == modeCreator) {\n\t this._mode.init(this, iv && iv.words);\n\t } else {\n\t this._mode = modeCreator.call(mode, this, iv && iv.words);\n\t this._mode.__creator = modeCreator;\n\t }\n\t },\n\n\t _doProcessBlock: function (words, offset) {\n\t this._mode.processBlock(words, offset);\n\t },\n\n\t _doFinalize: function () {\n\t var finalProcessedBlocks;\n\n\t // Shortcut\n\t var padding = this.cfg.padding;\n\n\t // Finalize\n\t if (this._xformMode == this._ENC_XFORM_MODE) {\n\t // Pad data\n\t padding.pad(this._data, this.blockSize);\n\n\t // Process final blocks\n\t finalProcessedBlocks = this._process(!!'flush');\n\t } else /* if (this._xformMode == this._DEC_XFORM_MODE) */ {\n\t // Process final blocks\n\t finalProcessedBlocks = this._process(!!'flush');\n\n\t // Unpad data\n\t padding.unpad(finalProcessedBlocks);\n\t }\n\n\t return finalProcessedBlocks;\n\t },\n\n\t blockSize: 128/32\n\t });\n\n\t /**\n\t * A collection of cipher parameters.\n\t *\n\t * @property {WordArray} ciphertext The raw ciphertext.\n\t * @property {WordArray} key The key to this ciphertext.\n\t * @property {WordArray} iv The IV used in the ciphering operation.\n\t * @property {WordArray} salt The salt used with a key derivation function.\n\t * @property {Cipher} algorithm The cipher algorithm.\n\t * @property {Mode} mode The block mode used in the ciphering operation.\n\t * @property {Padding} padding The padding scheme used in the ciphering operation.\n\t * @property {number} blockSize The block size of the cipher.\n\t * @property {Format} formatter The default formatting strategy to convert this cipher params object to a string.\n\t */\n\t var CipherParams = C_lib.CipherParams = Base.extend({\n\t /**\n\t * Initializes a newly created cipher params object.\n\t *\n\t * @param {Object} cipherParams An object with any of the possible cipher parameters.\n\t *\n\t * @example\n\t *\n\t * var cipherParams = CryptoJS.lib.CipherParams.create({\n\t * ciphertext: ciphertextWordArray,\n\t * key: keyWordArray,\n\t * iv: ivWordArray,\n\t * salt: saltWordArray,\n\t * algorithm: CryptoJS.algo.AES,\n\t * mode: CryptoJS.mode.CBC,\n\t * padding: CryptoJS.pad.PKCS7,\n\t * blockSize: 4,\n\t * formatter: CryptoJS.format.OpenSSL\n\t * });\n\t */\n\t init: function (cipherParams) {\n\t this.mixIn(cipherParams);\n\t },\n\n\t /**\n\t * Converts this cipher params object to a string.\n\t *\n\t * @param {Format} formatter (Optional) The formatting strategy to use.\n\t *\n\t * @return {string} The stringified cipher params.\n\t *\n\t * @throws Error If neither the formatter nor the default formatter is set.\n\t *\n\t * @example\n\t *\n\t * var string = cipherParams + '';\n\t * var string = cipherParams.toString();\n\t * var string = cipherParams.toString(CryptoJS.format.OpenSSL);\n\t */\n\t toString: function (formatter) {\n\t return (formatter || this.formatter).stringify(this);\n\t }\n\t });\n\n\t /**\n\t * Format namespace.\n\t */\n\t var C_format = C.format = {};\n\n\t /**\n\t * OpenSSL formatting strategy.\n\t */\n\t var OpenSSLFormatter = C_format.OpenSSL = {\n\t /**\n\t * Converts a cipher params object to an OpenSSL-compatible string.\n\t *\n\t * @param {CipherParams} cipherParams The cipher params object.\n\t *\n\t * @return {string} The OpenSSL-compatible string.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var openSSLString = CryptoJS.format.OpenSSL.stringify(cipherParams);\n\t */\n\t stringify: function (cipherParams) {\n\t var wordArray;\n\n\t // Shortcuts\n\t var ciphertext = cipherParams.ciphertext;\n\t var salt = cipherParams.salt;\n\n\t // Format\n\t if (salt) {\n\t wordArray = WordArray.create([0x53616c74, 0x65645f5f]).concat(salt).concat(ciphertext);\n\t } else {\n\t wordArray = ciphertext;\n\t }\n\n\t return wordArray.toString(Base64);\n\t },\n\n\t /**\n\t * Converts an OpenSSL-compatible string to a cipher params object.\n\t *\n\t * @param {string} openSSLStr The OpenSSL-compatible string.\n\t *\n\t * @return {CipherParams} The cipher params object.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var cipherParams = CryptoJS.format.OpenSSL.parse(openSSLString);\n\t */\n\t parse: function (openSSLStr) {\n\t var salt;\n\n\t // Parse base64\n\t var ciphertext = Base64.parse(openSSLStr);\n\n\t // Shortcut\n\t var ciphertextWords = ciphertext.words;\n\n\t // Test for salt\n\t if (ciphertextWords[0] == 0x53616c74 && ciphertextWords[1] == 0x65645f5f) {\n\t // Extract salt\n\t salt = WordArray.create(ciphertextWords.slice(2, 4));\n\n\t // Remove salt from ciphertext\n\t ciphertextWords.splice(0, 4);\n\t ciphertext.sigBytes -= 16;\n\t }\n\n\t return CipherParams.create({ ciphertext: ciphertext, salt: salt });\n\t }\n\t };\n\n\t /**\n\t * A cipher wrapper that returns ciphertext as a serializable cipher params object.\n\t */\n\t var SerializableCipher = C_lib.SerializableCipher = Base.extend({\n\t /**\n\t * Configuration options.\n\t *\n\t * @property {Formatter} format The formatting strategy to convert cipher param objects to and from a string. Default: OpenSSL\n\t */\n\t cfg: Base.extend({\n\t format: OpenSSLFormatter\n\t }),\n\n\t /**\n\t * Encrypts a message.\n\t *\n\t * @param {Cipher} cipher The cipher algorithm to use.\n\t * @param {WordArray|string} message The message to encrypt.\n\t * @param {WordArray} key The key.\n\t * @param {Object} cfg (Optional) The configuration options to use for this operation.\n\t *\n\t * @return {CipherParams} A cipher params object.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key);\n\t * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv });\n\t * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv, format: CryptoJS.format.OpenSSL });\n\t */\n\t encrypt: function (cipher, message, key, cfg) {\n\t // Apply config defaults\n\t cfg = this.cfg.extend(cfg);\n\n\t // Encrypt\n\t var encryptor = cipher.createEncryptor(key, cfg);\n\t var ciphertext = encryptor.finalize(message);\n\n\t // Shortcut\n\t var cipherCfg = encryptor.cfg;\n\n\t // Create and return serializable cipher params\n\t return CipherParams.create({\n\t ciphertext: ciphertext,\n\t key: key,\n\t iv: cipherCfg.iv,\n\t algorithm: cipher,\n\t mode: cipherCfg.mode,\n\t padding: cipherCfg.padding,\n\t blockSize: cipher.blockSize,\n\t formatter: cfg.format\n\t });\n\t },\n\n\t /**\n\t * Decrypts serialized ciphertext.\n\t *\n\t * @param {Cipher} cipher The cipher algorithm to use.\n\t * @param {CipherParams|string} ciphertext The ciphertext to decrypt.\n\t * @param {WordArray} key The key.\n\t * @param {Object} cfg (Optional) The configuration options to use for this operation.\n\t *\n\t * @return {WordArray} The plaintext.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, key, { iv: iv, format: CryptoJS.format.OpenSSL });\n\t * var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, key, { iv: iv, format: CryptoJS.format.OpenSSL });\n\t */\n\t decrypt: function (cipher, ciphertext, key, cfg) {\n\t // Apply config defaults\n\t cfg = this.cfg.extend(cfg);\n\n\t // Convert string to CipherParams\n\t ciphertext = this._parse(ciphertext, cfg.format);\n\n\t // Decrypt\n\t var plaintext = cipher.createDecryptor(key, cfg).finalize(ciphertext.ciphertext);\n\n\t return plaintext;\n\t },\n\n\t /**\n\t * Converts serialized ciphertext to CipherParams,\n\t * else assumed CipherParams already and returns ciphertext unchanged.\n\t *\n\t * @param {CipherParams|string} ciphertext The ciphertext.\n\t * @param {Formatter} format The formatting strategy to use to parse serialized ciphertext.\n\t *\n\t * @return {CipherParams} The unserialized ciphertext.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var ciphertextParams = CryptoJS.lib.SerializableCipher._parse(ciphertextStringOrParams, format);\n\t */\n\t _parse: function (ciphertext, format) {\n\t if (typeof ciphertext == 'string') {\n\t return format.parse(ciphertext, this);\n\t } else {\n\t return ciphertext;\n\t }\n\t }\n\t });\n\n\t /**\n\t * Key derivation function namespace.\n\t */\n\t var C_kdf = C.kdf = {};\n\n\t /**\n\t * OpenSSL key derivation function.\n\t */\n\t var OpenSSLKdf = C_kdf.OpenSSL = {\n\t /**\n\t * Derives a key and IV from a password.\n\t *\n\t * @param {string} password The password to derive from.\n\t * @param {number} keySize The size in words of the key to generate.\n\t * @param {number} ivSize The size in words of the IV to generate.\n\t * @param {WordArray|string} salt (Optional) A 64-bit salt to use. If omitted, a salt will be generated randomly.\n\t *\n\t * @return {CipherParams} A cipher params object with the key, IV, and salt.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32);\n\t * var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');\n\t */\n\t execute: function (password, keySize, ivSize, salt, hasher) {\n\t // Generate random salt\n\t if (!salt) {\n\t salt = WordArray.random(64/8);\n\t }\n\n\t // Derive key and IV\n\t if (!hasher) {\n\t var key = EvpKDF.create({ keySize: keySize + ivSize }).compute(password, salt);\n\t } else {\n\t var key = EvpKDF.create({ keySize: keySize + ivSize, hasher: hasher }).compute(password, salt);\n\t }\n\n\n\t // Separate key and IV\n\t var iv = WordArray.create(key.words.slice(keySize), ivSize * 4);\n\t key.sigBytes = keySize * 4;\n\n\t // Return params\n\t return CipherParams.create({ key: key, iv: iv, salt: salt });\n\t }\n\t };\n\n\t /**\n\t * A serializable cipher wrapper that derives the key from a password,\n\t * and returns ciphertext as a serializable cipher params object.\n\t */\n\t var PasswordBasedCipher = C_lib.PasswordBasedCipher = SerializableCipher.extend({\n\t /**\n\t * Configuration options.\n\t *\n\t * @property {KDF} kdf The key derivation function to use to generate a key and IV from a password. Default: OpenSSL\n\t */\n\t cfg: SerializableCipher.cfg.extend({\n\t kdf: OpenSSLKdf\n\t }),\n\n\t /**\n\t * Encrypts a message using a password.\n\t *\n\t * @param {Cipher} cipher The cipher algorithm to use.\n\t * @param {WordArray|string} message The message to encrypt.\n\t * @param {string} password The password.\n\t * @param {Object} cfg (Optional) The configuration options to use for this operation.\n\t *\n\t * @return {CipherParams} A cipher params object.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password');\n\t * var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password', { format: CryptoJS.format.OpenSSL });\n\t */\n\t encrypt: function (cipher, message, password, cfg) {\n\t // Apply config defaults\n\t cfg = this.cfg.extend(cfg);\n\n\t // Derive key and other params\n\t var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize, cfg.salt, cfg.hasher);\n\n\t // Add IV to config\n\t cfg.iv = derivedParams.iv;\n\n\t // Encrypt\n\t var ciphertext = SerializableCipher.encrypt.call(this, cipher, message, derivedParams.key, cfg);\n\n\t // Mix in derived params\n\t ciphertext.mixIn(derivedParams);\n\n\t return ciphertext;\n\t },\n\n\t /**\n\t * Decrypts serialized ciphertext using a password.\n\t *\n\t * @param {Cipher} cipher The cipher algorithm to use.\n\t * @param {CipherParams|string} ciphertext The ciphertext to decrypt.\n\t * @param {string} password The password.\n\t * @param {Object} cfg (Optional) The configuration options to use for this operation.\n\t *\n\t * @return {WordArray} The plaintext.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, 'password', { format: CryptoJS.format.OpenSSL });\n\t * var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, 'password', { format: CryptoJS.format.OpenSSL });\n\t */\n\t decrypt: function (cipher, ciphertext, password, cfg) {\n\t // Apply config defaults\n\t cfg = this.cfg.extend(cfg);\n\n\t // Convert string to CipherParams\n\t ciphertext = this._parse(ciphertext, cfg.format);\n\n\t // Derive key and other params\n\t var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize, ciphertext.salt, cfg.hasher);\n\n\t // Add IV to config\n\t cfg.iv = derivedParams.iv;\n\n\t // Decrypt\n\t var plaintext = SerializableCipher.decrypt.call(this, cipher, ciphertext, derivedParams.key, cfg);\n\n\t return plaintext;\n\t }\n\t });\n\t}());\n\n\n}));", ";(function (root, factory, undef) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory(require(\"./core\"), require(\"./cipher-core\"));\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([\"./core\", \"./cipher-core\"], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\tfactory(root.CryptoJS);\n\t}\n}(this, function (CryptoJS) {\n\n\t/**\n\t * Cipher Feedback block mode.\n\t */\n\tCryptoJS.mode.CFB = (function () {\n\t var CFB = CryptoJS.lib.BlockCipherMode.extend();\n\n\t CFB.Encryptor = CFB.extend({\n\t processBlock: function (words, offset) {\n\t // Shortcuts\n\t var cipher = this._cipher;\n\t var blockSize = cipher.blockSize;\n\n\t generateKeystreamAndEncrypt.call(this, words, offset, blockSize, cipher);\n\n\t // Remember this block to use with next block\n\t this._prevBlock = words.slice(offset, offset + blockSize);\n\t }\n\t });\n\n\t CFB.Decryptor = CFB.extend({\n\t processBlock: function (words, offset) {\n\t // Shortcuts\n\t var cipher = this._cipher;\n\t var blockSize = cipher.blockSize;\n\n\t // Remember this block to use with next block\n\t var thisBlock = words.slice(offset, offset + blockSize);\n\n\t generateKeystreamAndEncrypt.call(this, words, offset, blockSize, cipher);\n\n\t // This block becomes the previous block\n\t this._prevBlock = thisBlock;\n\t }\n\t });\n\n\t function generateKeystreamAndEncrypt(words, offset, blockSize, cipher) {\n\t var keystream;\n\n\t // Shortcut\n\t var iv = this._iv;\n\n\t // Generate keystream\n\t if (iv) {\n\t keystream = iv.slice(0);\n\n\t // Remove IV for subsequent blocks\n\t this._iv = undefined;\n\t } else {\n\t keystream = this._prevBlock;\n\t }\n\t cipher.encryptBlock(keystream, 0);\n\n\t // Encrypt\n\t for (var i = 0; i < blockSize; i++) {\n\t words[offset + i] ^= keystream[i];\n\t }\n\t }\n\n\t return CFB;\n\t}());\n\n\n\treturn CryptoJS.mode.CFB;\n\n}));", ";(function (root, factory, undef) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory(require(\"./core\"), require(\"./cipher-core\"));\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([\"./core\", \"./cipher-core\"], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\tfactory(root.CryptoJS);\n\t}\n}(this, function (CryptoJS) {\n\n\t/**\n\t * Counter block mode.\n\t */\n\tCryptoJS.mode.CTR = (function () {\n\t var CTR = CryptoJS.lib.BlockCipherMode.extend();\n\n\t var Encryptor = CTR.Encryptor = CTR.extend({\n\t processBlock: function (words, offset) {\n\t // Shortcuts\n\t var cipher = this._cipher\n\t var blockSize = cipher.blockSize;\n\t var iv = this._iv;\n\t var counter = this._counter;\n\n\t // Generate keystream\n\t if (iv) {\n\t counter = this._counter = iv.slice(0);\n\n\t // Remove IV for subsequent blocks\n\t this._iv = undefined;\n\t }\n\t var keystream = counter.slice(0);\n\t cipher.encryptBlock(keystream, 0);\n\n\t // Increment counter\n\t counter[blockSize - 1] = (counter[blockSize - 1] + 1) | 0\n\n\t // Encrypt\n\t for (var i = 0; i < blockSize; i++) {\n\t words[offset + i] ^= keystream[i];\n\t }\n\t }\n\t });\n\n\t CTR.Decryptor = Encryptor;\n\n\t return CTR;\n\t}());\n\n\n\treturn CryptoJS.mode.CTR;\n\n}));", ";(function (root, factory, undef) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory(require(\"./core\"), require(\"./cipher-core\"));\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([\"./core\", \"./cipher-core\"], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\tfactory(root.CryptoJS);\n\t}\n}(this, function (CryptoJS) {\n\n\t/** @preserve\n\t * Counter block mode compatible with Dr Brian Gladman fileenc.c\n\t * derived from CryptoJS.mode.CTR\n\t * Jan Hruby jhruby.web@gmail.com\n\t */\n\tCryptoJS.mode.CTRGladman = (function () {\n\t var CTRGladman = CryptoJS.lib.BlockCipherMode.extend();\n\n\t\tfunction incWord(word)\n\t\t{\n\t\t\tif (((word >> 24) & 0xff) === 0xff) { //overflow\n\t\t\tvar b1 = (word >> 16)&0xff;\n\t\t\tvar b2 = (word >> 8)&0xff;\n\t\t\tvar b3 = word & 0xff;\n\n\t\t\tif (b1 === 0xff) // overflow b1\n\t\t\t{\n\t\t\tb1 = 0;\n\t\t\tif (b2 === 0xff)\n\t\t\t{\n\t\t\t\tb2 = 0;\n\t\t\t\tif (b3 === 0xff)\n\t\t\t\t{\n\t\t\t\t\tb3 = 0;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t++b3;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t++b2;\n\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t++b1;\n\t\t\t}\n\n\t\t\tword = 0;\n\t\t\tword += (b1 << 16);\n\t\t\tword += (b2 << 8);\n\t\t\tword += b3;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\tword += (0x01 << 24);\n\t\t\t}\n\t\t\treturn word;\n\t\t}\n\n\t\tfunction incCounter(counter)\n\t\t{\n\t\t\tif ((counter[0] = incWord(counter[0])) === 0)\n\t\t\t{\n\t\t\t\t// encr_data in fileenc.c from Dr Brian Gladman's counts only with DWORD j < 8\n\t\t\t\tcounter[1] = incWord(counter[1]);\n\t\t\t}\n\t\t\treturn counter;\n\t\t}\n\n\t var Encryptor = CTRGladman.Encryptor = CTRGladman.extend({\n\t processBlock: function (words, offset) {\n\t // Shortcuts\n\t var cipher = this._cipher\n\t var blockSize = cipher.blockSize;\n\t var iv = this._iv;\n\t var counter = this._counter;\n\n\t // Generate keystream\n\t if (iv) {\n\t counter = this._counter = iv.slice(0);\n\n\t // Remove IV for subsequent blocks\n\t this._iv = undefined;\n\t }\n\n\t\t\t\tincCounter(counter);\n\n\t\t\t\tvar keystream = counter.slice(0);\n\t cipher.encryptBlock(keystream, 0);\n\n\t // Encrypt\n\t for (var i = 0; i < blockSize; i++) {\n\t words[offset + i] ^= keystream[i];\n\t }\n\t }\n\t });\n\n\t CTRGladman.Decryptor = Encryptor;\n\n\t return CTRGladman;\n\t}());\n\n\n\n\n\treturn CryptoJS.mode.CTRGladman;\n\n}));", ";(function (root, factory, undef) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory(require(\"./core\"), require(\"./cipher-core\"));\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([\"./core\", \"./cipher-core\"], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\tfactory(root.CryptoJS);\n\t}\n}(this, function (CryptoJS) {\n\n\t/**\n\t * Output Feedback block mode.\n\t */\n\tCryptoJS.mode.OFB = (function () {\n\t var OFB = CryptoJS.lib.BlockCipherMode.extend();\n\n\t var Encryptor = OFB.Encryptor = OFB.extend({\n\t processBlock: function (words, offset) {\n\t // Shortcuts\n\t var cipher = this._cipher\n\t var blockSize = cipher.blockSize;\n\t var iv = this._iv;\n\t var keystream = this._keystream;\n\n\t // Generate keystream\n\t if (iv) {\n\t keystream = this._keystream = iv.slice(0);\n\n\t // Remove IV for subsequent blocks\n\t this._iv = undefined;\n\t }\n\t cipher.encryptBlock(keystream, 0);\n\n\t // Encrypt\n\t for (var i = 0; i < blockSize; i++) {\n\t words[offset + i] ^= keystream[i];\n\t }\n\t }\n\t });\n\n\t OFB.Decryptor = Encryptor;\n\n\t return OFB;\n\t}());\n\n\n\treturn CryptoJS.mode.OFB;\n\n}));", ";(function (root, factory, undef) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory(require(\"./core\"), require(\"./cipher-core\"));\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([\"./core\", \"./cipher-core\"], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\tfactory(root.CryptoJS);\n\t}\n}(this, function (CryptoJS) {\n\n\t/**\n\t * Electronic Codebook block mode.\n\t */\n\tCryptoJS.mode.ECB = (function () {\n\t var ECB = CryptoJS.lib.BlockCipherMode.extend();\n\n\t ECB.Encryptor = ECB.extend({\n\t processBlock: function (words, offset) {\n\t this._cipher.encryptBlock(words, offset);\n\t }\n\t });\n\n\t ECB.Decryptor = ECB.extend({\n\t processBlock: function (words, offset) {\n\t this._cipher.decryptBlock(words, offset);\n\t }\n\t });\n\n\t return ECB;\n\t}());\n\n\n\treturn CryptoJS.mode.ECB;\n\n}));", ";(function (root, factory, undef) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory(require(\"./core\"), require(\"./cipher-core\"));\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([\"./core\", \"./cipher-core\"], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\tfactory(root.CryptoJS);\n\t}\n}(this, function (CryptoJS) {\n\n\t/**\n\t * ANSI X.923 padding strategy.\n\t */\n\tCryptoJS.pad.AnsiX923 = {\n\t pad: function (data, blockSize) {\n\t // Shortcuts\n\t var dataSigBytes = data.sigBytes;\n\t var blockSizeBytes = blockSize * 4;\n\n\t // Count padding bytes\n\t var nPaddingBytes = blockSizeBytes - dataSigBytes % blockSizeBytes;\n\n\t // Compute last byte position\n\t var lastBytePos = dataSigBytes + nPaddingBytes - 1;\n\n\t // Pad\n\t data.clamp();\n\t data.words[lastBytePos >>> 2] |= nPaddingBytes << (24 - (lastBytePos % 4) * 8);\n\t data.sigBytes += nPaddingBytes;\n\t },\n\n\t unpad: function (data) {\n\t // Get number of padding bytes from last byte\n\t var nPaddingBytes = data.words[(data.sigBytes - 1) >>> 2] & 0xff;\n\n\t // Remove padding\n\t data.sigBytes -= nPaddingBytes;\n\t }\n\t};\n\n\n\treturn CryptoJS.pad.Ansix923;\n\n}));", ";(function (root, factory, undef) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory(require(\"./core\"), require(\"./cipher-core\"));\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([\"./core\", \"./cipher-core\"], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\tfactory(root.CryptoJS);\n\t}\n}(this, function (CryptoJS) {\n\n\t/**\n\t * ISO 10126 padding strategy.\n\t */\n\tCryptoJS.pad.Iso10126 = {\n\t pad: function (data, blockSize) {\n\t // Shortcut\n\t var blockSizeBytes = blockSize * 4;\n\n\t // Count padding bytes\n\t var nPaddingBytes = blockSizeBytes - data.sigBytes % blockSizeBytes;\n\n\t // Pad\n\t data.concat(CryptoJS.lib.WordArray.random(nPaddingBytes - 1)).\n\t concat(CryptoJS.lib.WordArray.create([nPaddingBytes << 24], 1));\n\t },\n\n\t unpad: function (data) {\n\t // Get number of padding bytes from last byte\n\t var nPaddingBytes = data.words[(data.sigBytes - 1) >>> 2] & 0xff;\n\n\t // Remove padding\n\t data.sigBytes -= nPaddingBytes;\n\t }\n\t};\n\n\n\treturn CryptoJS.pad.Iso10126;\n\n}));", ";(function (root, factory, undef) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory(require(\"./core\"), require(\"./cipher-core\"));\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([\"./core\", \"./cipher-core\"], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\tfactory(root.CryptoJS);\n\t}\n}(this, function (CryptoJS) {\n\n\t/**\n\t * ISO/IEC 9797-1 Padding Method 2.\n\t */\n\tCryptoJS.pad.Iso97971 = {\n\t pad: function (data, blockSize) {\n\t // Add 0x80 byte\n\t data.concat(CryptoJS.lib.WordArray.create([0x80000000], 1));\n\n\t // Zero pad the rest\n\t CryptoJS.pad.ZeroPadding.pad(data, blockSize);\n\t },\n\n\t unpad: function (data) {\n\t // Remove zero padding\n\t CryptoJS.pad.ZeroPadding.unpad(data);\n\n\t // Remove one more byte -- the 0x80 byte\n\t data.sigBytes--;\n\t }\n\t};\n\n\n\treturn CryptoJS.pad.Iso97971;\n\n}));", ";(function (root, factory, undef) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory(require(\"./core\"), require(\"./cipher-core\"));\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([\"./core\", \"./cipher-core\"], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\tfactory(root.CryptoJS);\n\t}\n}(this, function (CryptoJS) {\n\n\t/**\n\t * Zero padding strategy.\n\t */\n\tCryptoJS.pad.ZeroPadding = {\n\t pad: function (data, blockSize) {\n\t // Shortcut\n\t var blockSizeBytes = blockSize * 4;\n\n\t // Pad\n\t data.clamp();\n\t data.sigBytes += blockSizeBytes - ((data.sigBytes % blockSizeBytes) || blockSizeBytes);\n\t },\n\n\t unpad: function (data) {\n\t // Shortcut\n\t var dataWords = data.words;\n\n\t // Unpad\n\t var i = data.sigBytes - 1;\n\t for (var i = data.sigBytes - 1; i >= 0; i--) {\n\t if (((dataWords[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff)) {\n\t data.sigBytes = i + 1;\n\t break;\n\t }\n\t }\n\t }\n\t};\n\n\n\treturn CryptoJS.pad.ZeroPadding;\n\n}));", ";(function (root, factory, undef) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory(require(\"./core\"), require(\"./cipher-core\"));\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([\"./core\", \"./cipher-core\"], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\tfactory(root.CryptoJS);\n\t}\n}(this, function (CryptoJS) {\n\n\t/**\n\t * A noop padding strategy.\n\t */\n\tCryptoJS.pad.NoPadding = {\n\t pad: function () {\n\t },\n\n\t unpad: function () {\n\t }\n\t};\n\n\n\treturn CryptoJS.pad.NoPadding;\n\n}));", ";(function (root, factory, undef) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory(require(\"./core\"), require(\"./cipher-core\"));\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([\"./core\", \"./cipher-core\"], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\tfactory(root.CryptoJS);\n\t}\n}(this, function (CryptoJS) {\n\n\t(function (undefined) {\n\t // Shortcuts\n\t var C = CryptoJS;\n\t var C_lib = C.lib;\n\t var CipherParams = C_lib.CipherParams;\n\t var C_enc = C.enc;\n\t var Hex = C_enc.Hex;\n\t var C_format = C.format;\n\n\t var HexFormatter = C_format.Hex = {\n\t /**\n\t * Converts the ciphertext of a cipher params object to a hexadecimally encoded string.\n\t *\n\t * @param {CipherParams} cipherParams The cipher params object.\n\t *\n\t * @return {string} The hexadecimally encoded string.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var hexString = CryptoJS.format.Hex.stringify(cipherParams);\n\t */\n\t stringify: function (cipherParams) {\n\t return cipherParams.ciphertext.toString(Hex);\n\t },\n\n\t /**\n\t * Converts a hexadecimally encoded ciphertext string to a cipher params object.\n\t *\n\t * @param {string} input The hexadecimally encoded string.\n\t *\n\t * @return {CipherParams} The cipher params object.\n\t *\n\t * @static\n\t *\n\t * @example\n\t *\n\t * var cipherParams = CryptoJS.format.Hex.parse(hexString);\n\t */\n\t parse: function (input) {\n\t var ciphertext = Hex.parse(input);\n\t return CipherParams.create({ ciphertext: ciphertext });\n\t }\n\t };\n\t}());\n\n\n\treturn CryptoJS.format.Hex;\n\n}));", ";(function (root, factory, undef) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory(require(\"./core\"), require(\"./enc-base64\"), require(\"./md5\"), require(\"./evpkdf\"), require(\"./cipher-core\"));\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([\"./core\", \"./enc-base64\", \"./md5\", \"./evpkdf\", \"./cipher-core\"], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\tfactory(root.CryptoJS);\n\t}\n}(this, function (CryptoJS) {\n\n\t(function () {\n\t // Shortcuts\n\t var C = CryptoJS;\n\t var C_lib = C.lib;\n\t var BlockCipher = C_lib.BlockCipher;\n\t var C_algo = C.algo;\n\n\t // Lookup tables\n\t var SBOX = [];\n\t var INV_SBOX = [];\n\t var SUB_MIX_0 = [];\n\t var SUB_MIX_1 = [];\n\t var SUB_MIX_2 = [];\n\t var SUB_MIX_3 = [];\n\t var INV_SUB_MIX_0 = [];\n\t var INV_SUB_MIX_1 = [];\n\t var INV_SUB_MIX_2 = [];\n\t var INV_SUB_MIX_3 = [];\n\n\t // Compute lookup tables\n\t (function () {\n\t // Compute double table\n\t var d = [];\n\t for (var i = 0; i < 256; i++) {\n\t if (i < 128) {\n\t d[i] = i << 1;\n\t } else {\n\t d[i] = (i << 1) ^ 0x11b;\n\t }\n\t }\n\n\t // Walk GF(2^8)\n\t var x = 0;\n\t var xi = 0;\n\t for (var i = 0; i < 256; i++) {\n\t // Compute sbox\n\t var sx = xi ^ (xi << 1) ^ (xi << 2) ^ (xi << 3) ^ (xi << 4);\n\t sx = (sx >>> 8) ^ (sx & 0xff) ^ 0x63;\n\t SBOX[x] = sx;\n\t INV_SBOX[sx] = x;\n\n\t // Compute multiplication\n\t var x2 = d[x];\n\t var x4 = d[x2];\n\t var x8 = d[x4];\n\n\t // Compute sub bytes, mix columns tables\n\t var t = (d[sx] * 0x101) ^ (sx * 0x1010100);\n\t SUB_MIX_0[x] = (t << 24) | (t >>> 8);\n\t SUB_MIX_1[x] = (t << 16) | (t >>> 16);\n\t SUB_MIX_2[x] = (t << 8) | (t >>> 24);\n\t SUB_MIX_3[x] = t;\n\n\t // Compute inv sub bytes, inv mix columns tables\n\t var t = (x8 * 0x1010101) ^ (x4 * 0x10001) ^ (x2 * 0x101) ^ (x * 0x1010100);\n\t INV_SUB_MIX_0[sx] = (t << 24) | (t >>> 8);\n\t INV_SUB_MIX_1[sx] = (t << 16) | (t >>> 16);\n\t INV_SUB_MIX_2[sx] = (t << 8) | (t >>> 24);\n\t INV_SUB_MIX_3[sx] = t;\n\n\t // Compute next counter\n\t if (!x) {\n\t x = xi = 1;\n\t } else {\n\t x = x2 ^ d[d[d[x8 ^ x2]]];\n\t xi ^= d[d[xi]];\n\t }\n\t }\n\t }());\n\n\t // Precomputed Rcon lookup\n\t var RCON = [0x00, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36];\n\n\t /**\n\t * AES block cipher algorithm.\n\t */\n\t var AES = C_algo.AES = BlockCipher.extend({\n\t _doReset: function () {\n\t var t;\n\n\t // Skip reset of nRounds has been set before and key did not change\n\t if (this._nRounds && this._keyPriorReset === this._key) {\n\t return;\n\t }\n\n\t // Shortcuts\n\t var key = this._keyPriorReset = this._key;\n\t var keyWords = key.words;\n\t var keySize = key.sigBytes / 4;\n\n\t // Compute number of rounds\n\t var nRounds = this._nRounds = keySize + 6;\n\n\t // Compute number of key schedule rows\n\t var ksRows = (nRounds + 1) * 4;\n\n\t // Compute key schedule\n\t var keySchedule = this._keySchedule = [];\n\t for (var ksRow = 0; ksRow < ksRows; ksRow++) {\n\t if (ksRow < keySize) {\n\t keySchedule[ksRow] = keyWords[ksRow];\n\t } else {\n\t t = keySchedule[ksRow - 1];\n\n\t if (!(ksRow % keySize)) {\n\t // Rot word\n\t t = (t << 8) | (t >>> 24);\n\n\t // Sub word\n\t t = (SBOX[t >>> 24] << 24) | (SBOX[(t >>> 16) & 0xff] << 16) | (SBOX[(t >>> 8) & 0xff] << 8) | SBOX[t & 0xff];\n\n\t // Mix Rcon\n\t t ^= RCON[(ksRow / keySize) | 0] << 24;\n\t } else if (keySize > 6 && ksRow % keySize == 4) {\n\t // Sub word\n\t t = (SBOX[t >>> 24] << 24) | (SBOX[(t >>> 16) & 0xff] << 16) | (SBOX[(t >>> 8) & 0xff] << 8) | SBOX[t & 0xff];\n\t }\n\n\t keySchedule[ksRow] = keySchedule[ksRow - keySize] ^ t;\n\t }\n\t }\n\n\t // Compute inv key schedule\n\t var invKeySchedule = this._invKeySchedule = [];\n\t for (var invKsRow = 0; invKsRow < ksRows; invKsRow++) {\n\t var ksRow = ksRows - invKsRow;\n\n\t if (invKsRow % 4) {\n\t var t = keySchedule[ksRow];\n\t } else {\n\t var t = keySchedule[ksRow - 4];\n\t }\n\n\t if (invKsRow < 4 || ksRow <= 4) {\n\t invKeySchedule[invKsRow] = t;\n\t } else {\n\t invKeySchedule[invKsRow] = INV_SUB_MIX_0[SBOX[t >>> 24]] ^ INV_SUB_MIX_1[SBOX[(t >>> 16) & 0xff]] ^\n\t INV_SUB_MIX_2[SBOX[(t >>> 8) & 0xff]] ^ INV_SUB_MIX_3[SBOX[t & 0xff]];\n\t }\n\t }\n\t },\n\n\t encryptBlock: function (M, offset) {\n\t this._doCryptBlock(M, offset, this._keySchedule, SUB_MIX_0, SUB_MIX_1, SUB_MIX_2, SUB_MIX_3, SBOX);\n\t },\n\n\t decryptBlock: function (M, offset) {\n\t // Swap 2nd and 4th rows\n\t var t = M[offset + 1];\n\t M[offset + 1] = M[offset + 3];\n\t M[offset + 3] = t;\n\n\t this._doCryptBlock(M, offset, this._invKeySchedule, INV_SUB_MIX_0, INV_SUB_MIX_1, INV_SUB_MIX_2, INV_SUB_MIX_3, INV_SBOX);\n\n\t // Inv swap 2nd and 4th rows\n\t var t = M[offset + 1];\n\t M[offset + 1] = M[offset + 3];\n\t M[offset + 3] = t;\n\t },\n\n\t _doCryptBlock: function (M, offset, keySchedule, SUB_MIX_0, SUB_MIX_1, SUB_MIX_2, SUB_MIX_3, SBOX) {\n\t // Shortcut\n\t var nRounds = this._nRounds;\n\n\t // Get input, add round key\n\t var s0 = M[offset] ^ keySchedule[0];\n\t var s1 = M[offset + 1] ^ keySchedule[1];\n\t var s2 = M[offset + 2] ^ keySchedule[2];\n\t var s3 = M[offset + 3] ^ keySchedule[3];\n\n\t // Key schedule row counter\n\t var ksRow = 4;\n\n\t // Rounds\n\t for (var round = 1; round < nRounds; round++) {\n\t // Shift rows, sub bytes, mix columns, add round key\n\t var t0 = SUB_MIX_0[s0 >>> 24] ^ SUB_MIX_1[(s1 >>> 16) & 0xff] ^ SUB_MIX_2[(s2 >>> 8) & 0xff] ^ SUB_MIX_3[s3 & 0xff] ^ keySchedule[ksRow++];\n\t var t1 = SUB_MIX_0[s1 >>> 24] ^ SUB_MIX_1[(s2 >>> 16) & 0xff] ^ SUB_MIX_2[(s3 >>> 8) & 0xff] ^ SUB_MIX_3[s0 & 0xff] ^ keySchedule[ksRow++];\n\t var t2 = SUB_MIX_0[s2 >>> 24] ^ SUB_MIX_1[(s3 >>> 16) & 0xff] ^ SUB_MIX_2[(s0 >>> 8) & 0xff] ^ SUB_MIX_3[s1 & 0xff] ^ keySchedule[ksRow++];\n\t var t3 = SUB_MIX_0[s3 >>> 24] ^ SUB_MIX_1[(s0 >>> 16) & 0xff] ^ SUB_MIX_2[(s1 >>> 8) & 0xff] ^ SUB_MIX_3[s2 & 0xff] ^ keySchedule[ksRow++];\n\n\t // Update state\n\t s0 = t0;\n\t s1 = t1;\n\t s2 = t2;\n\t s3 = t3;\n\t }\n\n\t // Shift rows, sub bytes, add round key\n\t var t0 = ((SBOX[s0 >>> 24] << 24) | (SBOX[(s1 >>> 16) & 0xff] << 16) | (SBOX[(s2 >>> 8) & 0xff] << 8) | SBOX[s3 & 0xff]) ^ keySchedule[ksRow++];\n\t var t1 = ((SBOX[s1 >>> 24] << 24) | (SBOX[(s2 >>> 16) & 0xff] << 16) | (SBOX[(s3 >>> 8) & 0xff] << 8) | SBOX[s0 & 0xff]) ^ keySchedule[ksRow++];\n\t var t2 = ((SBOX[s2 >>> 24] << 24) | (SBOX[(s3 >>> 16) & 0xff] << 16) | (SBOX[(s0 >>> 8) & 0xff] << 8) | SBOX[s1 & 0xff]) ^ keySchedule[ksRow++];\n\t var t3 = ((SBOX[s3 >>> 24] << 24) | (SBOX[(s0 >>> 16) & 0xff] << 16) | (SBOX[(s1 >>> 8) & 0xff] << 8) | SBOX[s2 & 0xff]) ^ keySchedule[ksRow++];\n\n\t // Set output\n\t M[offset] = t0;\n\t M[offset + 1] = t1;\n\t M[offset + 2] = t2;\n\t M[offset + 3] = t3;\n\t },\n\n\t keySize: 256/32\n\t });\n\n\t /**\n\t * Shortcut functions to the cipher's object interface.\n\t *\n\t * @example\n\t *\n\t * var ciphertext = CryptoJS.AES.encrypt(message, key, cfg);\n\t * var plaintext = CryptoJS.AES.decrypt(ciphertext, key, cfg);\n\t */\n\t C.AES = BlockCipher._createHelper(AES);\n\t}());\n\n\n\treturn CryptoJS.AES;\n\n}));", ";(function (root, factory, undef) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory(require(\"./core\"), require(\"./enc-base64\"), require(\"./md5\"), require(\"./evpkdf\"), require(\"./cipher-core\"));\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([\"./core\", \"./enc-base64\", \"./md5\", \"./evpkdf\", \"./cipher-core\"], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\tfactory(root.CryptoJS);\n\t}\n}(this, function (CryptoJS) {\n\n\t(function () {\n\t // Shortcuts\n\t var C = CryptoJS;\n\t var C_lib = C.lib;\n\t var WordArray = C_lib.WordArray;\n\t var BlockCipher = C_lib.BlockCipher;\n\t var C_algo = C.algo;\n\n\t // Permuted Choice 1 constants\n\t var PC1 = [\n\t 57, 49, 41, 33, 25, 17, 9, 1,\n\t 58, 50, 42, 34, 26, 18, 10, 2,\n\t 59, 51, 43, 35, 27, 19, 11, 3,\n\t 60, 52, 44, 36, 63, 55, 47, 39,\n\t 31, 23, 15, 7, 62, 54, 46, 38,\n\t 30, 22, 14, 6, 61, 53, 45, 37,\n\t 29, 21, 13, 5, 28, 20, 12, 4\n\t ];\n\n\t // Permuted Choice 2 constants\n\t var PC2 = [\n\t 14, 17, 11, 24, 1, 5,\n\t 3, 28, 15, 6, 21, 10,\n\t 23, 19, 12, 4, 26, 8,\n\t 16, 7, 27, 20, 13, 2,\n\t 41, 52, 31, 37, 47, 55,\n\t 30, 40, 51, 45, 33, 48,\n\t 44, 49, 39, 56, 34, 53,\n\t 46, 42, 50, 36, 29, 32\n\t ];\n\n\t // Cumulative bit shift constants\n\t var BIT_SHIFTS = [1, 2, 4, 6, 8, 10, 12, 14, 15, 17, 19, 21, 23, 25, 27, 28];\n\n\t // SBOXes and round permutation constants\n\t var SBOX_P = [\n\t {\n\t 0x0: 0x808200,\n\t 0x10000000: 0x8000,\n\t 0x20000000: 0x808002,\n\t 0x30000000: 0x2,\n\t 0x40000000: 0x200,\n\t 0x50000000: 0x808202,\n\t 0x60000000: 0x800202,\n\t 0x70000000: 0x800000,\n\t 0x80000000: 0x202,\n\t 0x90000000: 0x800200,\n\t 0xa0000000: 0x8200,\n\t 0xb0000000: 0x808000,\n\t 0xc0000000: 0x8002,\n\t 0xd0000000: 0x800002,\n\t 0xe0000000: 0x0,\n\t 0xf0000000: 0x8202,\n\t 0x8000000: 0x0,\n\t 0x18000000: 0x808202,\n\t 0x28000000: 0x8202,\n\t 0x38000000: 0x8000,\n\t 0x48000000: 0x808200,\n\t 0x58000000: 0x200,\n\t 0x68000000: 0x808002,\n\t 0x78000000: 0x2,\n\t 0x88000000: 0x800200,\n\t 0x98000000: 0x8200,\n\t 0xa8000000: 0x808000,\n\t 0xb8000000: 0x800202,\n\t 0xc8000000: 0x800002,\n\t 0xd8000000: 0x8002,\n\t 0xe8000000: 0x202,\n\t 0xf8000000: 0x800000,\n\t 0x1: 0x8000,\n\t 0x10000001: 0x2,\n\t 0x20000001: 0x808200,\n\t 0x30000001: 0x800000,\n\t 0x40000001: 0x808002,\n\t 0x50000001: 0x8200,\n\t 0x60000001: 0x200,\n\t 0x70000001: 0x800202,\n\t 0x80000001: 0x808202,\n\t 0x90000001: 0x808000,\n\t 0xa0000001: 0x800002,\n\t 0xb0000001: 0x8202,\n\t 0xc0000001: 0x202,\n\t 0xd0000001: 0x800200,\n\t 0xe0000001: 0x8002,\n\t 0xf0000001: 0x0,\n\t 0x8000001: 0x808202,\n\t 0x18000001: 0x808000,\n\t 0x28000001: 0x800000,\n\t 0x38000001: 0x200,\n\t 0x48000001: 0x8000,\n\t 0x58000001: 0x800002,\n\t 0x68000001: 0x2,\n\t 0x78000001: 0x8202,\n\t 0x88000001: 0x8002,\n\t 0x98000001: 0x800202,\n\t 0xa8000001: 0x202,\n\t 0xb8000001: 0x808200,\n\t 0xc8000001: 0x800200,\n\t 0xd8000001: 0x0,\n\t 0xe8000001: 0x8200,\n\t 0xf8000001: 0x808002\n\t },\n\t {\n\t 0x0: 0x40084010,\n\t 0x1000000: 0x4000,\n\t 0x2000000: 0x80000,\n\t 0x3000000: 0x40080010,\n\t 0x4000000: 0x40000010,\n\t 0x5000000: 0x40084000,\n\t 0x6000000: 0x40004000,\n\t 0x7000000: 0x10,\n\t 0x8000000: 0x84000,\n\t 0x9000000: 0x40004010,\n\t 0xa000000: 0x40000000,\n\t 0xb000000: 0x84010,\n\t 0xc000000: 0x80010,\n\t 0xd000000: 0x0,\n\t 0xe000000: 0x4010,\n\t 0xf000000: 0x40080000,\n\t 0x800000: 0x40004000,\n\t 0x1800000: 0x84010,\n\t 0x2800000: 0x10,\n\t 0x3800000: 0x40004010,\n\t 0x4800000: 0x40084010,\n\t 0x5800000: 0x40000000,\n\t 0x6800000: 0x80000,\n\t 0x7800000: 0x40080010,\n\t 0x8800000: 0x80010,\n\t 0x9800000: 0x0,\n\t 0xa800000: 0x4000,\n\t 0xb800000: 0x40080000,\n\t 0xc800000: 0x40000010,\n\t 0xd800000: 0x84000,\n\t 0xe800000: 0x40084000,\n\t 0xf800000: 0x4010,\n\t 0x10000000: 0x0,\n\t 0x11000000: 0x40080010,\n\t 0x12000000: 0x40004010,\n\t 0x13000000: 0x40084000,\n\t 0x14000000: 0x40080000,\n\t 0x15000000: 0x10,\n\t 0x16000000: 0x84010,\n\t 0x17000000: 0x4000,\n\t 0x18000000: 0x4010,\n\t 0x19000000: 0x80000,\n\t 0x1a000000: 0x80010,\n\t 0x1b000000: 0x40000010,\n\t 0x1c000000: 0x84000,\n\t 0x1d000000: 0x40004000,\n\t 0x1e000000: 0x40000000,\n\t 0x1f000000: 0x40084010,\n\t 0x10800000: 0x84010,\n\t 0x11800000: 0x80000,\n\t 0x12800000: 0x40080000,\n\t 0x13800000: 0x4000,\n\t 0x14800000: 0x40004000,\n\t 0x15800000: 0x40084010,\n\t 0x16800000: 0x10,\n\t 0x17800000: 0x40000000,\n\t 0x18800000: 0x40084000,\n\t 0x19800000: 0x40000010,\n\t 0x1a800000: 0x40004010,\n\t 0x1b800000: 0x80010,\n\t 0x1c800000: 0x0,\n\t 0x1d800000: 0x4010,\n\t 0x1e800000: 0x40080010,\n\t 0x1f800000: 0x84000\n\t },\n\t {\n\t 0x0: 0x104,\n\t 0x100000: 0x0,\n\t 0x200000: 0x4000100,\n\t 0x300000: 0x10104,\n\t 0x400000: 0x10004,\n\t 0x500000: 0x4000004,\n\t 0x600000: 0x4010104,\n\t 0x700000: 0x4010000,\n\t 0x800000: 0x4000000,\n\t 0x900000: 0x4010100,\n\t 0xa00000: 0x10100,\n\t 0xb00000: 0x4010004,\n\t 0xc00000: 0x4000104,\n\t 0xd00000: 0x10000,\n\t 0xe00000: 0x4,\n\t 0xf00000: 0x100,\n\t 0x80000: 0x4010100,\n\t 0x180000: 0x4010004,\n\t 0x280000: 0x0,\n\t 0x380000: 0x4000100,\n\t 0x480000: 0x4000004,\n\t 0x580000: 0x10000,\n\t 0x680000: 0x10004,\n\t 0x780000: 0x104,\n\t 0x880000: 0x4,\n\t 0x980000: 0x100,\n\t 0xa80000: 0x4010000,\n\t 0xb80000: 0x10104,\n\t 0xc80000: 0x10100,\n\t 0xd80000: 0x4000104,\n\t 0xe80000: 0x4010104,\n\t 0xf80000: 0x4000000,\n\t 0x1000000: 0x4010100,\n\t 0x1100000: 0x10004,\n\t 0x1200000: 0x10000,\n\t 0x1300000: 0x4000100,\n\t 0x1400000: 0x100,\n\t 0x1500000: 0x4010104,\n\t 0x1600000: 0x4000004,\n\t 0x1700000: 0x0,\n\t 0x1800000: 0x4000104,\n\t 0x1900000: 0x4000000,\n\t 0x1a00000: 0x4,\n\t 0x1b00000: 0x10100,\n\t 0x1c00000: 0x4010000,\n\t 0x1d00000: 0x104,\n\t 0x1e00000: 0x10104,\n\t 0x1f00000: 0x4010004,\n\t 0x1080000: 0x4000000,\n\t 0x1180000: 0x104,\n\t 0x1280000: 0x4010100,\n\t 0x1380000: 0x0,\n\t 0x1480000: 0x10004,\n\t 0x1580000: 0x4000100,\n\t 0x1680000: 0x100,\n\t 0x1780000: 0x4010004,\n\t 0x1880000: 0x10000,\n\t 0x1980000: 0x4010104,\n\t 0x1a80000: 0x10104,\n\t 0x1b80000: 0x4000004,\n\t 0x1c80000: 0x4000104,\n\t 0x1d80000: 0x4010000,\n\t 0x1e80000: 0x4,\n\t 0x1f80000: 0x10100\n\t },\n\t {\n\t 0x0: 0x80401000,\n\t 0x10000: 0x80001040,\n\t 0x20000: 0x401040,\n\t 0x30000: 0x80400000,\n\t 0x40000: 0x0,\n\t 0x50000: 0x401000,\n\t 0x60000: 0x80000040,\n\t 0x70000: 0x400040,\n\t 0x80000: 0x80000000,\n\t 0x90000: 0x400000,\n\t 0xa0000: 0x40,\n\t 0xb0000: 0x80001000,\n\t 0xc0000: 0x80400040,\n\t 0xd0000: 0x1040,\n\t 0xe0000: 0x1000,\n\t 0xf0000: 0x80401040,\n\t 0x8000: 0x80001040,\n\t 0x18000: 0x40,\n\t 0x28000: 0x80400040,\n\t 0x38000: 0x80001000,\n\t 0x48000: 0x401000,\n\t 0x58000: 0x80401040,\n\t 0x68000: 0x0,\n\t 0x78000: 0x80400000,\n\t 0x88000: 0x1000,\n\t 0x98000: 0x80401000,\n\t 0xa8000: 0x400000,\n\t 0xb8000: 0x1040,\n\t 0xc8000: 0x80000000,\n\t 0xd8000: 0x400040,\n\t 0xe8000: 0x401040,\n\t 0xf8000: 0x80000040,\n\t 0x100000: 0x400040,\n\t 0x110000: 0x401000,\n\t 0x120000: 0x80000040,\n\t 0x130000: 0x0,\n\t 0x140000: 0x1040,\n\t 0x150000: 0x80400040,\n\t 0x160000: 0x80401000,\n\t 0x170000: 0x80001040,\n\t 0x180000: 0x80401040,\n\t 0x190000: 0x80000000,\n\t 0x1a0000: 0x80400000,\n\t 0x1b0000: 0x401040,\n\t 0x1c0000: 0x80001000,\n\t 0x1d0000: 0x400000,\n\t 0x1e0000: 0x40,\n\t 0x1f0000: 0x1000,\n\t 0x108000: 0x80400000,\n\t 0x118000: 0x80401040,\n\t 0x128000: 0x0,\n\t 0x138000: 0x401000,\n\t 0x148000: 0x400040,\n\t 0x158000: 0x80000000,\n\t 0x168000: 0x80001040,\n\t 0x178000: 0x40,\n\t 0x188000: 0x80000040,\n\t 0x198000: 0x1000,\n\t 0x1a8000: 0x80001000,\n\t 0x1b8000: 0x80400040,\n\t 0x1c8000: 0x1040,\n\t 0x1d8000: 0x80401000,\n\t 0x1e8000: 0x400000,\n\t 0x1f8000: 0x401040\n\t },\n\t {\n\t 0x0: 0x80,\n\t 0x1000: 0x1040000,\n\t 0x2000: 0x40000,\n\t 0x3000: 0x20000000,\n\t 0x4000: 0x20040080,\n\t 0x5000: 0x1000080,\n\t 0x6000: 0x21000080,\n\t 0x7000: 0x40080,\n\t 0x8000: 0x1000000,\n\t 0x9000: 0x20040000,\n\t 0xa000: 0x20000080,\n\t 0xb000: 0x21040080,\n\t 0xc000: 0x21040000,\n\t 0xd000: 0x0,\n\t 0xe000: 0x1040080,\n\t 0xf000: 0x21000000,\n\t 0x800: 0x1040080,\n\t 0x1800: 0x21000080,\n\t 0x2800: 0x80,\n\t 0x3800: 0x1040000,\n\t 0x4800: 0x40000,\n\t 0x5800: 0x20040080,\n\t 0x6800: 0x21040000,\n\t 0x7800: 0x20000000,\n\t 0x8800: 0x20040000,\n\t 0x9800: 0x0,\n\t 0xa800: 0x21040080,\n\t 0xb800: 0x1000080,\n\t 0xc800: 0x20000080,\n\t 0xd800: 0x21000000,\n\t 0xe800: 0x1000000,\n\t 0xf800: 0x40080,\n\t 0x10000: 0x40000,\n\t 0x11000: 0x80,\n\t 0x12000: 0x20000000,\n\t 0x13000: 0x21000080,\n\t 0x14000: 0x1000080,\n\t 0x15000: 0x21040000,\n\t 0x16000: 0x20040080,\n\t 0x17000: 0x1000000,\n\t 0x18000: 0x21040080,\n\t 0x19000: 0x21000000,\n\t 0x1a000: 0x1040000,\n\t 0x1b000: 0x20040000,\n\t 0x1c000: 0x40080,\n\t 0x1d000: 0x20000080,\n\t 0x1e000: 0x0,\n\t 0x1f000: 0x1040080,\n\t 0x10800: 0x21000080,\n\t 0x11800: 0x1000000,\n\t 0x12800: 0x1040000,\n\t 0x13800: 0x20040080,\n\t 0x14800: 0x20000000,\n\t 0x15800: 0x1040080,\n\t 0x16800: 0x80,\n\t 0x17800: 0x21040000,\n\t 0x18800: 0x40080,\n\t 0x19800: 0x21040080,\n\t 0x1a800: 0x0,\n\t 0x1b800: 0x21000000,\n\t 0x1c800: 0x1000080,\n\t 0x1d800: 0x40000,\n\t 0x1e800: 0x20040000,\n\t 0x1f800: 0x20000080\n\t },\n\t {\n\t 0x0: 0x10000008,\n\t 0x100: 0x2000,\n\t 0x200: 0x10200000,\n\t 0x300: 0x10202008,\n\t 0x400: 0x10002000,\n\t 0x500: 0x200000,\n\t 0x600: 0x200008,\n\t 0x700: 0x10000000,\n\t 0x800: 0x0,\n\t 0x900: 0x10002008,\n\t 0xa00: 0x202000,\n\t 0xb00: 0x8,\n\t 0xc00: 0x10200008,\n\t 0xd00: 0x202008,\n\t 0xe00: 0x2008,\n\t 0xf00: 0x10202000,\n\t 0x80: 0x10200000,\n\t 0x180: 0x10202008,\n\t 0x280: 0x8,\n\t 0x380: 0x200000,\n\t 0x480: 0x202008,\n\t 0x580: 0x10000008,\n\t 0x680: 0x10002000,\n\t 0x780: 0x2008,\n\t 0x880: 0x200008,\n\t 0x980: 0x2000,\n\t 0xa80: 0x10002008,\n\t 0xb80: 0x10200008,\n\t 0xc80: 0x0,\n\t 0xd80: 0x10202000,\n\t 0xe80: 0x202000,\n\t 0xf80: 0x10000000,\n\t 0x1000: 0x10002000,\n\t 0x1100: 0x10200008,\n\t 0x1200: 0x10202008,\n\t 0x1300: 0x2008,\n\t 0x1400: 0x200000,\n\t 0x1500: 0x10000000,\n\t 0x1600: 0x10000008,\n\t 0x1700: 0x202000,\n\t 0x1800: 0x202008,\n\t 0x1900: 0x0,\n\t 0x1a00: 0x8,\n\t 0x1b00: 0x10200000,\n\t 0x1c00: 0x2000,\n\t 0x1d00: 0x10002008,\n\t 0x1e00: 0x10202000,\n\t 0x1f00: 0x200008,\n\t 0x1080: 0x8,\n\t 0x1180: 0x202000,\n\t 0x1280: 0x200000,\n\t 0x1380: 0x10000008,\n\t 0x1480: 0x10002000,\n\t 0x1580: 0x2008,\n\t 0x1680: 0x10202008,\n\t 0x1780: 0x10200000,\n\t 0x1880: 0x10202000,\n\t 0x1980: 0x10200008,\n\t 0x1a80: 0x2000,\n\t 0x1b80: 0x202008,\n\t 0x1c80: 0x200008,\n\t 0x1d80: 0x0,\n\t 0x1e80: 0x10000000,\n\t 0x1f80: 0x10002008\n\t },\n\t {\n\t 0x0: 0x100000,\n\t 0x10: 0x2000401,\n\t 0x20: 0x400,\n\t 0x30: 0x100401,\n\t 0x40: 0x2100401,\n\t 0x50: 0x0,\n\t 0x60: 0x1,\n\t 0x70: 0x2100001,\n\t 0x80: 0x2000400,\n\t 0x90: 0x100001,\n\t 0xa0: 0x2000001,\n\t 0xb0: 0x2100400,\n\t 0xc0: 0x2100000,\n\t 0xd0: 0x401,\n\t 0xe0: 0x100400,\n\t 0xf0: 0x2000000,\n\t 0x8: 0x2100001,\n\t 0x18: 0x0,\n\t 0x28: 0x2000401,\n\t 0x38: 0x2100400,\n\t 0x48: 0x100000,\n\t 0x58: 0x2000001,\n\t 0x68: 0x2000000,\n\t 0x78: 0x401,\n\t 0x88: 0x100401,\n\t 0x98: 0x2000400,\n\t 0xa8: 0x2100000,\n\t 0xb8: 0x100001,\n\t 0xc8: 0x400,\n\t 0xd8: 0x2100401,\n\t 0xe8: 0x1,\n\t 0xf8: 0x100400,\n\t 0x100: 0x2000000,\n\t 0x110: 0x100000,\n\t 0x120: 0x2000401,\n\t 0x130: 0x2100001,\n\t 0x140: 0x100001,\n\t 0x150: 0x2000400,\n\t 0x160: 0x2100400,\n\t 0x170: 0x100401,\n\t 0x180: 0x401,\n\t 0x190: 0x2100401,\n\t 0x1a0: 0x100400,\n\t 0x1b0: 0x1,\n\t 0x1c0: 0x0,\n\t 0x1d0: 0x2100000,\n\t 0x1e0: 0x2000001,\n\t 0x1f0: 0x400,\n\t 0x108: 0x100400,\n\t 0x118: 0x2000401,\n\t 0x128: 0x2100001,\n\t 0x138: 0x1,\n\t 0x148: 0x2000000,\n\t 0x158: 0x100000,\n\t 0x168: 0x401,\n\t 0x178: 0x2100400,\n\t 0x188: 0x2000001,\n\t 0x198: 0x2100000,\n\t 0x1a8: 0x0,\n\t 0x1b8: 0x2100401,\n\t 0x1c8: 0x100401,\n\t 0x1d8: 0x400,\n\t 0x1e8: 0x2000400,\n\t 0x1f8: 0x100001\n\t },\n\t {\n\t 0x0: 0x8000820,\n\t 0x1: 0x20000,\n\t 0x2: 0x8000000,\n\t 0x3: 0x20,\n\t 0x4: 0x20020,\n\t 0x5: 0x8020820,\n\t 0x6: 0x8020800,\n\t 0x7: 0x800,\n\t 0x8: 0x8020000,\n\t 0x9: 0x8000800,\n\t 0xa: 0x20800,\n\t 0xb: 0x8020020,\n\t 0xc: 0x820,\n\t 0xd: 0x0,\n\t 0xe: 0x8000020,\n\t 0xf: 0x20820,\n\t 0x80000000: 0x800,\n\t 0x80000001: 0x8020820,\n\t 0x80000002: 0x8000820,\n\t 0x80000003: 0x8000000,\n\t 0x80000004: 0x8020000,\n\t 0x80000005: 0x20800,\n\t 0x80000006: 0x20820,\n\t 0x80000007: 0x20,\n\t 0x80000008: 0x8000020,\n\t 0x80000009: 0x820,\n\t 0x8000000a: 0x20020,\n\t 0x8000000b: 0x8020800,\n\t 0x8000000c: 0x0,\n\t 0x8000000d: 0x8020020,\n\t 0x8000000e: 0x8000800,\n\t 0x8000000f: 0x20000,\n\t 0x10: 0x20820,\n\t 0x11: 0x8020800,\n\t 0x12: 0x20,\n\t 0x13: 0x800,\n\t 0x14: 0x8000800,\n\t 0x15: 0x8000020,\n\t 0x16: 0x8020020,\n\t 0x17: 0x20000,\n\t 0x18: 0x0,\n\t 0x19: 0x20020,\n\t 0x1a: 0x8020000,\n\t 0x1b: 0x8000820,\n\t 0x1c: 0x8020820,\n\t 0x1d: 0x20800,\n\t 0x1e: 0x820,\n\t 0x1f: 0x8000000,\n\t 0x80000010: 0x20000,\n\t 0x80000011: 0x800,\n\t 0x80000012: 0x8020020,\n\t 0x80000013: 0x20820,\n\t 0x80000014: 0x20,\n\t 0x80000015: 0x8020000,\n\t 0x80000016: 0x8000000,\n\t 0x80000017: 0x8000820,\n\t 0x80000018: 0x8020820,\n\t 0x80000019: 0x8000020,\n\t 0x8000001a: 0x8000800,\n\t 0x8000001b: 0x0,\n\t 0x8000001c: 0x20800,\n\t 0x8000001d: 0x820,\n\t 0x8000001e: 0x20020,\n\t 0x8000001f: 0x8020800\n\t }\n\t ];\n\n\t // Masks that select the SBOX input\n\t var SBOX_MASK = [\n\t 0xf8000001, 0x1f800000, 0x01f80000, 0x001f8000,\n\t 0x0001f800, 0x00001f80, 0x000001f8, 0x8000001f\n\t ];\n\n\t /**\n\t * DES block cipher algorithm.\n\t */\n\t var DES = C_algo.DES = BlockCipher.extend({\n\t _doReset: function () {\n\t // Shortcuts\n\t var key = this._key;\n\t var keyWords = key.words;\n\n\t // Select 56 bits according to PC1\n\t var keyBits = [];\n\t for (var i = 0; i < 56; i++) {\n\t var keyBitPos = PC1[i] - 1;\n\t keyBits[i] = (keyWords[keyBitPos >>> 5] >>> (31 - keyBitPos % 32)) & 1;\n\t }\n\n\t // Assemble 16 subkeys\n\t var subKeys = this._subKeys = [];\n\t for (var nSubKey = 0; nSubKey < 16; nSubKey++) {\n\t // Create subkey\n\t var subKey = subKeys[nSubKey] = [];\n\n\t // Shortcut\n\t var bitShift = BIT_SHIFTS[nSubKey];\n\n\t // Select 48 bits according to PC2\n\t for (var i = 0; i < 24; i++) {\n\t // Select from the left 28 key bits\n\t subKey[(i / 6) | 0] |= keyBits[((PC2[i] - 1) + bitShift) % 28] << (31 - i % 6);\n\n\t // Select from the right 28 key bits\n\t subKey[4 + ((i / 6) | 0)] |= keyBits[28 + (((PC2[i + 24] - 1) + bitShift) % 28)] << (31 - i % 6);\n\t }\n\n\t // Since each subkey is applied to an expanded 32-bit input,\n\t // the subkey can be broken into 8 values scaled to 32-bits,\n\t // which allows the key to be used without expansion\n\t subKey[0] = (subKey[0] << 1) | (subKey[0] >>> 31);\n\t for (var i = 1; i < 7; i++) {\n\t subKey[i] = subKey[i] >>> ((i - 1) * 4 + 3);\n\t }\n\t subKey[7] = (subKey[7] << 5) | (subKey[7] >>> 27);\n\t }\n\n\t // Compute inverse subkeys\n\t var invSubKeys = this._invSubKeys = [];\n\t for (var i = 0; i < 16; i++) {\n\t invSubKeys[i] = subKeys[15 - i];\n\t }\n\t },\n\n\t encryptBlock: function (M, offset) {\n\t this._doCryptBlock(M, offset, this._subKeys);\n\t },\n\n\t decryptBlock: function (M, offset) {\n\t this._doCryptBlock(M, offset, this._invSubKeys);\n\t },\n\n\t _doCryptBlock: function (M, offset, subKeys) {\n\t // Get input\n\t this._lBlock = M[offset];\n\t this._rBlock = M[offset + 1];\n\n\t // Initial permutation\n\t exchangeLR.call(this, 4, 0x0f0f0f0f);\n\t exchangeLR.call(this, 16, 0x0000ffff);\n\t exchangeRL.call(this, 2, 0x33333333);\n\t exchangeRL.call(this, 8, 0x00ff00ff);\n\t exchangeLR.call(this, 1, 0x55555555);\n\n\t // Rounds\n\t for (var round = 0; round < 16; round++) {\n\t // Shortcuts\n\t var subKey = subKeys[round];\n\t var lBlock = this._lBlock;\n\t var rBlock = this._rBlock;\n\n\t // Feistel function\n\t var f = 0;\n\t for (var i = 0; i < 8; i++) {\n\t f |= SBOX_P[i][((rBlock ^ subKey[i]) & SBOX_MASK[i]) >>> 0];\n\t }\n\t this._lBlock = rBlock;\n\t this._rBlock = lBlock ^ f;\n\t }\n\n\t // Undo swap from last round\n\t var t = this._lBlock;\n\t this._lBlock = this._rBlock;\n\t this._rBlock = t;\n\n\t // Final permutation\n\t exchangeLR.call(this, 1, 0x55555555);\n\t exchangeRL.call(this, 8, 0x00ff00ff);\n\t exchangeRL.call(this, 2, 0x33333333);\n\t exchangeLR.call(this, 16, 0x0000ffff);\n\t exchangeLR.call(this, 4, 0x0f0f0f0f);\n\n\t // Set output\n\t M[offset] = this._lBlock;\n\t M[offset + 1] = this._rBlock;\n\t },\n\n\t keySize: 64/32,\n\n\t ivSize: 64/32,\n\n\t blockSize: 64/32\n\t });\n\n\t // Swap bits across the left and right words\n\t function exchangeLR(offset, mask) {\n\t var t = ((this._lBlock >>> offset) ^ this._rBlock) & mask;\n\t this._rBlock ^= t;\n\t this._lBlock ^= t << offset;\n\t }\n\n\t function exchangeRL(offset, mask) {\n\t var t = ((this._rBlock >>> offset) ^ this._lBlock) & mask;\n\t this._lBlock ^= t;\n\t this._rBlock ^= t << offset;\n\t }\n\n\t /**\n\t * Shortcut functions to the cipher's object interface.\n\t *\n\t * @example\n\t *\n\t * var ciphertext = CryptoJS.DES.encrypt(message, key, cfg);\n\t * var plaintext = CryptoJS.DES.decrypt(ciphertext, key, cfg);\n\t */\n\t C.DES = BlockCipher._createHelper(DES);\n\n\t /**\n\t * Triple-DES block cipher algorithm.\n\t */\n\t var TripleDES = C_algo.TripleDES = BlockCipher.extend({\n\t _doReset: function () {\n\t // Shortcuts\n\t var key = this._key;\n\t var keyWords = key.words;\n\t // Make sure the key length is valid (64, 128 or >= 192 bit)\n\t if (keyWords.length !== 2 && keyWords.length !== 4 && keyWords.length < 6) {\n\t throw new Error('Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.');\n\t }\n\n\t // Extend the key according to the keying options defined in 3DES standard\n\t var key1 = keyWords.slice(0, 2);\n\t var key2 = keyWords.length < 4 ? keyWords.slice(0, 2) : keyWords.slice(2, 4);\n\t var key3 = keyWords.length < 6 ? keyWords.slice(0, 2) : keyWords.slice(4, 6);\n\n\t // Create DES instances\n\t this._des1 = DES.createEncryptor(WordArray.create(key1));\n\t this._des2 = DES.createEncryptor(WordArray.create(key2));\n\t this._des3 = DES.createEncryptor(WordArray.create(key3));\n\t },\n\n\t encryptBlock: function (M, offset) {\n\t this._des1.encryptBlock(M, offset);\n\t this._des2.decryptBlock(M, offset);\n\t this._des3.encryptBlock(M, offset);\n\t },\n\n\t decryptBlock: function (M, offset) {\n\t this._des3.decryptBlock(M, offset);\n\t this._des2.encryptBlock(M, offset);\n\t this._des1.decryptBlock(M, offset);\n\t },\n\n\t keySize: 192/32,\n\n\t ivSize: 64/32,\n\n\t blockSize: 64/32\n\t });\n\n\t /**\n\t * Shortcut functions to the cipher's object interface.\n\t *\n\t * @example\n\t *\n\t * var ciphertext = CryptoJS.TripleDES.encrypt(message, key, cfg);\n\t * var plaintext = CryptoJS.TripleDES.decrypt(ciphertext, key, cfg);\n\t */\n\t C.TripleDES = BlockCipher._createHelper(TripleDES);\n\t}());\n\n\n\treturn CryptoJS.TripleDES;\n\n}));", ";(function (root, factory, undef) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory(require(\"./core\"), require(\"./enc-base64\"), require(\"./md5\"), require(\"./evpkdf\"), require(\"./cipher-core\"));\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([\"./core\", \"./enc-base64\", \"./md5\", \"./evpkdf\", \"./cipher-core\"], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\tfactory(root.CryptoJS);\n\t}\n}(this, function (CryptoJS) {\n\n\t(function () {\n\t // Shortcuts\n\t var C = CryptoJS;\n\t var C_lib = C.lib;\n\t var StreamCipher = C_lib.StreamCipher;\n\t var C_algo = C.algo;\n\n\t /**\n\t * RC4 stream cipher algorithm.\n\t */\n\t var RC4 = C_algo.RC4 = StreamCipher.extend({\n\t _doReset: function () {\n\t // Shortcuts\n\t var key = this._key;\n\t var keyWords = key.words;\n\t var keySigBytes = key.sigBytes;\n\n\t // Init sbox\n\t var S = this._S = [];\n\t for (var i = 0; i < 256; i++) {\n\t S[i] = i;\n\t }\n\n\t // Key setup\n\t for (var i = 0, j = 0; i < 256; i++) {\n\t var keyByteIndex = i % keySigBytes;\n\t var keyByte = (keyWords[keyByteIndex >>> 2] >>> (24 - (keyByteIndex % 4) * 8)) & 0xff;\n\n\t j = (j + S[i] + keyByte) % 256;\n\n\t // Swap\n\t var t = S[i];\n\t S[i] = S[j];\n\t S[j] = t;\n\t }\n\n\t // Counters\n\t this._i = this._j = 0;\n\t },\n\n\t _doProcessBlock: function (M, offset) {\n\t M[offset] ^= generateKeystreamWord.call(this);\n\t },\n\n\t keySize: 256/32,\n\n\t ivSize: 0\n\t });\n\n\t function generateKeystreamWord() {\n\t // Shortcuts\n\t var S = this._S;\n\t var i = this._i;\n\t var j = this._j;\n\n\t // Generate keystream word\n\t var keystreamWord = 0;\n\t for (var n = 0; n < 4; n++) {\n\t i = (i + 1) % 256;\n\t j = (j + S[i]) % 256;\n\n\t // Swap\n\t var t = S[i];\n\t S[i] = S[j];\n\t S[j] = t;\n\n\t keystreamWord |= S[(S[i] + S[j]) % 256] << (24 - n * 8);\n\t }\n\n\t // Update counters\n\t this._i = i;\n\t this._j = j;\n\n\t return keystreamWord;\n\t }\n\n\t /**\n\t * Shortcut functions to the cipher's object interface.\n\t *\n\t * @example\n\t *\n\t * var ciphertext = CryptoJS.RC4.encrypt(message, key, cfg);\n\t * var plaintext = CryptoJS.RC4.decrypt(ciphertext, key, cfg);\n\t */\n\t C.RC4 = StreamCipher._createHelper(RC4);\n\n\t /**\n\t * Modified RC4 stream cipher algorithm.\n\t */\n\t var RC4Drop = C_algo.RC4Drop = RC4.extend({\n\t /**\n\t * Configuration options.\n\t *\n\t * @property {number} drop The number of keystream words to drop. Default 192\n\t */\n\t cfg: RC4.cfg.extend({\n\t drop: 192\n\t }),\n\n\t _doReset: function () {\n\t RC4._doReset.call(this);\n\n\t // Drop\n\t for (var i = this.cfg.drop; i > 0; i--) {\n\t generateKeystreamWord.call(this);\n\t }\n\t }\n\t });\n\n\t /**\n\t * Shortcut functions to the cipher's object interface.\n\t *\n\t * @example\n\t *\n\t * var ciphertext = CryptoJS.RC4Drop.encrypt(message, key, cfg);\n\t * var plaintext = CryptoJS.RC4Drop.decrypt(ciphertext, key, cfg);\n\t */\n\t C.RC4Drop = StreamCipher._createHelper(RC4Drop);\n\t}());\n\n\n\treturn CryptoJS.RC4;\n\n}));", ";(function (root, factory, undef) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory(require(\"./core\"), require(\"./enc-base64\"), require(\"./md5\"), require(\"./evpkdf\"), require(\"./cipher-core\"));\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([\"./core\", \"./enc-base64\", \"./md5\", \"./evpkdf\", \"./cipher-core\"], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\tfactory(root.CryptoJS);\n\t}\n}(this, function (CryptoJS) {\n\n\t(function () {\n\t // Shortcuts\n\t var C = CryptoJS;\n\t var C_lib = C.lib;\n\t var StreamCipher = C_lib.StreamCipher;\n\t var C_algo = C.algo;\n\n\t // Reusable objects\n\t var S = [];\n\t var C_ = [];\n\t var G = [];\n\n\t /**\n\t * Rabbit stream cipher algorithm\n\t */\n\t var Rabbit = C_algo.Rabbit = StreamCipher.extend({\n\t _doReset: function () {\n\t // Shortcuts\n\t var K = this._key.words;\n\t var iv = this.cfg.iv;\n\n\t // Swap endian\n\t for (var i = 0; i < 4; i++) {\n\t K[i] = (((K[i] << 8) | (K[i] >>> 24)) & 0x00ff00ff) |\n\t (((K[i] << 24) | (K[i] >>> 8)) & 0xff00ff00);\n\t }\n\n\t // Generate initial state values\n\t var X = this._X = [\n\t K[0], (K[3] << 16) | (K[2] >>> 16),\n\t K[1], (K[0] << 16) | (K[3] >>> 16),\n\t K[2], (K[1] << 16) | (K[0] >>> 16),\n\t K[3], (K[2] << 16) | (K[1] >>> 16)\n\t ];\n\n\t // Generate initial counter values\n\t var C = this._C = [\n\t (K[2] << 16) | (K[2] >>> 16), (K[0] & 0xffff0000) | (K[1] & 0x0000ffff),\n\t (K[3] << 16) | (K[3] >>> 16), (K[1] & 0xffff0000) | (K[2] & 0x0000ffff),\n\t (K[0] << 16) | (K[0] >>> 16), (K[2] & 0xffff0000) | (K[3] & 0x0000ffff),\n\t (K[1] << 16) | (K[1] >>> 16), (K[3] & 0xffff0000) | (K[0] & 0x0000ffff)\n\t ];\n\n\t // Carry bit\n\t this._b = 0;\n\n\t // Iterate the system four times\n\t for (var i = 0; i < 4; i++) {\n\t nextState.call(this);\n\t }\n\n\t // Modify the counters\n\t for (var i = 0; i < 8; i++) {\n\t C[i] ^= X[(i + 4) & 7];\n\t }\n\n\t // IV setup\n\t if (iv) {\n\t // Shortcuts\n\t var IV = iv.words;\n\t var IV_0 = IV[0];\n\t var IV_1 = IV[1];\n\n\t // Generate four subvectors\n\t var i0 = (((IV_0 << 8) | (IV_0 >>> 24)) & 0x00ff00ff) | (((IV_0 << 24) | (IV_0 >>> 8)) & 0xff00ff00);\n\t var i2 = (((IV_1 << 8) | (IV_1 >>> 24)) & 0x00ff00ff) | (((IV_1 << 24) | (IV_1 >>> 8)) & 0xff00ff00);\n\t var i1 = (i0 >>> 16) | (i2 & 0xffff0000);\n\t var i3 = (i2 << 16) | (i0 & 0x0000ffff);\n\n\t // Modify counter values\n\t C[0] ^= i0;\n\t C[1] ^= i1;\n\t C[2] ^= i2;\n\t C[3] ^= i3;\n\t C[4] ^= i0;\n\t C[5] ^= i1;\n\t C[6] ^= i2;\n\t C[7] ^= i3;\n\n\t // Iterate the system four times\n\t for (var i = 0; i < 4; i++) {\n\t nextState.call(this);\n\t }\n\t }\n\t },\n\n\t _doProcessBlock: function (M, offset) {\n\t // Shortcut\n\t var X = this._X;\n\n\t // Iterate the system\n\t nextState.call(this);\n\n\t // Generate four keystream words\n\t S[0] = X[0] ^ (X[5] >>> 16) ^ (X[3] << 16);\n\t S[1] = X[2] ^ (X[7] >>> 16) ^ (X[5] << 16);\n\t S[2] = X[4] ^ (X[1] >>> 16) ^ (X[7] << 16);\n\t S[3] = X[6] ^ (X[3] >>> 16) ^ (X[1] << 16);\n\n\t for (var i = 0; i < 4; i++) {\n\t // Swap endian\n\t S[i] = (((S[i] << 8) | (S[i] >>> 24)) & 0x00ff00ff) |\n\t (((S[i] << 24) | (S[i] >>> 8)) & 0xff00ff00);\n\n\t // Encrypt\n\t M[offset + i] ^= S[i];\n\t }\n\t },\n\n\t blockSize: 128/32,\n\n\t ivSize: 64/32\n\t });\n\n\t function nextState() {\n\t // Shortcuts\n\t var X = this._X;\n\t var C = this._C;\n\n\t // Save old counter values\n\t for (var i = 0; i < 8; i++) {\n\t C_[i] = C[i];\n\t }\n\n\t // Calculate new counter values\n\t C[0] = (C[0] + 0x4d34d34d + this._b) | 0;\n\t C[1] = (C[1] + 0xd34d34d3 + ((C[0] >>> 0) < (C_[0] >>> 0) ? 1 : 0)) | 0;\n\t C[2] = (C[2] + 0x34d34d34 + ((C[1] >>> 0) < (C_[1] >>> 0) ? 1 : 0)) | 0;\n\t C[3] = (C[3] + 0x4d34d34d + ((C[2] >>> 0) < (C_[2] >>> 0) ? 1 : 0)) | 0;\n\t C[4] = (C[4] + 0xd34d34d3 + ((C[3] >>> 0) < (C_[3] >>> 0) ? 1 : 0)) | 0;\n\t C[5] = (C[5] + 0x34d34d34 + ((C[4] >>> 0) < (C_[4] >>> 0) ? 1 : 0)) | 0;\n\t C[6] = (C[6] + 0x4d34d34d + ((C[5] >>> 0) < (C_[5] >>> 0) ? 1 : 0)) | 0;\n\t C[7] = (C[7] + 0xd34d34d3 + ((C[6] >>> 0) < (C_[6] >>> 0) ? 1 : 0)) | 0;\n\t this._b = (C[7] >>> 0) < (C_[7] >>> 0) ? 1 : 0;\n\n\t // Calculate the g-values\n\t for (var i = 0; i < 8; i++) {\n\t var gx = X[i] + C[i];\n\n\t // Construct high and low argument for squaring\n\t var ga = gx & 0xffff;\n\t var gb = gx >>> 16;\n\n\t // Calculate high and low result of squaring\n\t var gh = ((((ga * ga) >>> 17) + ga * gb) >>> 15) + gb * gb;\n\t var gl = (((gx & 0xffff0000) * gx) | 0) + (((gx & 0x0000ffff) * gx) | 0);\n\n\t // High XOR low\n\t G[i] = gh ^ gl;\n\t }\n\n\t // Calculate new state values\n\t X[0] = (G[0] + ((G[7] << 16) | (G[7] >>> 16)) + ((G[6] << 16) | (G[6] >>> 16))) | 0;\n\t X[1] = (G[1] + ((G[0] << 8) | (G[0] >>> 24)) + G[7]) | 0;\n\t X[2] = (G[2] + ((G[1] << 16) | (G[1] >>> 16)) + ((G[0] << 16) | (G[0] >>> 16))) | 0;\n\t X[3] = (G[3] + ((G[2] << 8) | (G[2] >>> 24)) + G[1]) | 0;\n\t X[4] = (G[4] + ((G[3] << 16) | (G[3] >>> 16)) + ((G[2] << 16) | (G[2] >>> 16))) | 0;\n\t X[5] = (G[5] + ((G[4] << 8) | (G[4] >>> 24)) + G[3]) | 0;\n\t X[6] = (G[6] + ((G[5] << 16) | (G[5] >>> 16)) + ((G[4] << 16) | (G[4] >>> 16))) | 0;\n\t X[7] = (G[7] + ((G[6] << 8) | (G[6] >>> 24)) + G[5]) | 0;\n\t }\n\n\t /**\n\t * Shortcut functions to the cipher's object interface.\n\t *\n\t * @example\n\t *\n\t * var ciphertext = CryptoJS.Rabbit.encrypt(message, key, cfg);\n\t * var plaintext = CryptoJS.Rabbit.decrypt(ciphertext, key, cfg);\n\t */\n\t C.Rabbit = StreamCipher._createHelper(Rabbit);\n\t}());\n\n\n\treturn CryptoJS.Rabbit;\n\n}));", ";(function (root, factory, undef) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory(require(\"./core\"), require(\"./enc-base64\"), require(\"./md5\"), require(\"./evpkdf\"), require(\"./cipher-core\"));\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([\"./core\", \"./enc-base64\", \"./md5\", \"./evpkdf\", \"./cipher-core\"], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\tfactory(root.CryptoJS);\n\t}\n}(this, function (CryptoJS) {\n\n\t(function () {\n\t // Shortcuts\n\t var C = CryptoJS;\n\t var C_lib = C.lib;\n\t var StreamCipher = C_lib.StreamCipher;\n\t var C_algo = C.algo;\n\n\t // Reusable objects\n\t var S = [];\n\t var C_ = [];\n\t var G = [];\n\n\t /**\n\t * Rabbit stream cipher algorithm.\n\t *\n\t * This is a legacy version that neglected to convert the key to little-endian.\n\t * This error doesn't affect the cipher's security,\n\t * but it does affect its compatibility with other implementations.\n\t */\n\t var RabbitLegacy = C_algo.RabbitLegacy = StreamCipher.extend({\n\t _doReset: function () {\n\t // Shortcuts\n\t var K = this._key.words;\n\t var iv = this.cfg.iv;\n\n\t // Generate initial state values\n\t var X = this._X = [\n\t K[0], (K[3] << 16) | (K[2] >>> 16),\n\t K[1], (K[0] << 16) | (K[3] >>> 16),\n\t K[2], (K[1] << 16) | (K[0] >>> 16),\n\t K[3], (K[2] << 16) | (K[1] >>> 16)\n\t ];\n\n\t // Generate initial counter values\n\t var C = this._C = [\n\t (K[2] << 16) | (K[2] >>> 16), (K[0] & 0xffff0000) | (K[1] & 0x0000ffff),\n\t (K[3] << 16) | (K[3] >>> 16), (K[1] & 0xffff0000) | (K[2] & 0x0000ffff),\n\t (K[0] << 16) | (K[0] >>> 16), (K[2] & 0xffff0000) | (K[3] & 0x0000ffff),\n\t (K[1] << 16) | (K[1] >>> 16), (K[3] & 0xffff0000) | (K[0] & 0x0000ffff)\n\t ];\n\n\t // Carry bit\n\t this._b = 0;\n\n\t // Iterate the system four times\n\t for (var i = 0; i < 4; i++) {\n\t nextState.call(this);\n\t }\n\n\t // Modify the counters\n\t for (var i = 0; i < 8; i++) {\n\t C[i] ^= X[(i + 4) & 7];\n\t }\n\n\t // IV setup\n\t if (iv) {\n\t // Shortcuts\n\t var IV = iv.words;\n\t var IV_0 = IV[0];\n\t var IV_1 = IV[1];\n\n\t // Generate four subvectors\n\t var i0 = (((IV_0 << 8) | (IV_0 >>> 24)) & 0x00ff00ff) | (((IV_0 << 24) | (IV_0 >>> 8)) & 0xff00ff00);\n\t var i2 = (((IV_1 << 8) | (IV_1 >>> 24)) & 0x00ff00ff) | (((IV_1 << 24) | (IV_1 >>> 8)) & 0xff00ff00);\n\t var i1 = (i0 >>> 16) | (i2 & 0xffff0000);\n\t var i3 = (i2 << 16) | (i0 & 0x0000ffff);\n\n\t // Modify counter values\n\t C[0] ^= i0;\n\t C[1] ^= i1;\n\t C[2] ^= i2;\n\t C[3] ^= i3;\n\t C[4] ^= i0;\n\t C[5] ^= i1;\n\t C[6] ^= i2;\n\t C[7] ^= i3;\n\n\t // Iterate the system four times\n\t for (var i = 0; i < 4; i++) {\n\t nextState.call(this);\n\t }\n\t }\n\t },\n\n\t _doProcessBlock: function (M, offset) {\n\t // Shortcut\n\t var X = this._X;\n\n\t // Iterate the system\n\t nextState.call(this);\n\n\t // Generate four keystream words\n\t S[0] = X[0] ^ (X[5] >>> 16) ^ (X[3] << 16);\n\t S[1] = X[2] ^ (X[7] >>> 16) ^ (X[5] << 16);\n\t S[2] = X[4] ^ (X[1] >>> 16) ^ (X[7] << 16);\n\t S[3] = X[6] ^ (X[3] >>> 16) ^ (X[1] << 16);\n\n\t for (var i = 0; i < 4; i++) {\n\t // Swap endian\n\t S[i] = (((S[i] << 8) | (S[i] >>> 24)) & 0x00ff00ff) |\n\t (((S[i] << 24) | (S[i] >>> 8)) & 0xff00ff00);\n\n\t // Encrypt\n\t M[offset + i] ^= S[i];\n\t }\n\t },\n\n\t blockSize: 128/32,\n\n\t ivSize: 64/32\n\t });\n\n\t function nextState() {\n\t // Shortcuts\n\t var X = this._X;\n\t var C = this._C;\n\n\t // Save old counter values\n\t for (var i = 0; i < 8; i++) {\n\t C_[i] = C[i];\n\t }\n\n\t // Calculate new counter values\n\t C[0] = (C[0] + 0x4d34d34d + this._b) | 0;\n\t C[1] = (C[1] + 0xd34d34d3 + ((C[0] >>> 0) < (C_[0] >>> 0) ? 1 : 0)) | 0;\n\t C[2] = (C[2] + 0x34d34d34 + ((C[1] >>> 0) < (C_[1] >>> 0) ? 1 : 0)) | 0;\n\t C[3] = (C[3] + 0x4d34d34d + ((C[2] >>> 0) < (C_[2] >>> 0) ? 1 : 0)) | 0;\n\t C[4] = (C[4] + 0xd34d34d3 + ((C[3] >>> 0) < (C_[3] >>> 0) ? 1 : 0)) | 0;\n\t C[5] = (C[5] + 0x34d34d34 + ((C[4] >>> 0) < (C_[4] >>> 0) ? 1 : 0)) | 0;\n\t C[6] = (C[6] + 0x4d34d34d + ((C[5] >>> 0) < (C_[5] >>> 0) ? 1 : 0)) | 0;\n\t C[7] = (C[7] + 0xd34d34d3 + ((C[6] >>> 0) < (C_[6] >>> 0) ? 1 : 0)) | 0;\n\t this._b = (C[7] >>> 0) < (C_[7] >>> 0) ? 1 : 0;\n\n\t // Calculate the g-values\n\t for (var i = 0; i < 8; i++) {\n\t var gx = X[i] + C[i];\n\n\t // Construct high and low argument for squaring\n\t var ga = gx & 0xffff;\n\t var gb = gx >>> 16;\n\n\t // Calculate high and low result of squaring\n\t var gh = ((((ga * ga) >>> 17) + ga * gb) >>> 15) + gb * gb;\n\t var gl = (((gx & 0xffff0000) * gx) | 0) + (((gx & 0x0000ffff) * gx) | 0);\n\n\t // High XOR low\n\t G[i] = gh ^ gl;\n\t }\n\n\t // Calculate new state values\n\t X[0] = (G[0] + ((G[7] << 16) | (G[7] >>> 16)) + ((G[6] << 16) | (G[6] >>> 16))) | 0;\n\t X[1] = (G[1] + ((G[0] << 8) | (G[0] >>> 24)) + G[7]) | 0;\n\t X[2] = (G[2] + ((G[1] << 16) | (G[1] >>> 16)) + ((G[0] << 16) | (G[0] >>> 16))) | 0;\n\t X[3] = (G[3] + ((G[2] << 8) | (G[2] >>> 24)) + G[1]) | 0;\n\t X[4] = (G[4] + ((G[3] << 16) | (G[3] >>> 16)) + ((G[2] << 16) | (G[2] >>> 16))) | 0;\n\t X[5] = (G[5] + ((G[4] << 8) | (G[4] >>> 24)) + G[3]) | 0;\n\t X[6] = (G[6] + ((G[5] << 16) | (G[5] >>> 16)) + ((G[4] << 16) | (G[4] >>> 16))) | 0;\n\t X[7] = (G[7] + ((G[6] << 8) | (G[6] >>> 24)) + G[5]) | 0;\n\t }\n\n\t /**\n\t * Shortcut functions to the cipher's object interface.\n\t *\n\t * @example\n\t *\n\t * var ciphertext = CryptoJS.RabbitLegacy.encrypt(message, key, cfg);\n\t * var plaintext = CryptoJS.RabbitLegacy.decrypt(ciphertext, key, cfg);\n\t */\n\t C.RabbitLegacy = StreamCipher._createHelper(RabbitLegacy);\n\t}());\n\n\n\treturn CryptoJS.RabbitLegacy;\n\n}));", ";(function (root, factory, undef) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory(require(\"./core\"), require(\"./enc-base64\"), require(\"./md5\"), require(\"./evpkdf\"), require(\"./cipher-core\"));\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([\"./core\", \"./enc-base64\", \"./md5\", \"./evpkdf\", \"./cipher-core\"], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\tfactory(root.CryptoJS);\n\t}\n}(this, function (CryptoJS) {\n\n\t(function () {\n\t // Shortcuts\n\t var C = CryptoJS;\n\t var C_lib = C.lib;\n\t var BlockCipher = C_lib.BlockCipher;\n\t var C_algo = C.algo;\n\n\t const N = 16;\n\n\t //Origin pbox and sbox, derived from PI\n\t const ORIG_P = [\n\t 0x243F6A88, 0x85A308D3, 0x13198A2E, 0x03707344,\n\t 0xA4093822, 0x299F31D0, 0x082EFA98, 0xEC4E6C89,\n\t 0x452821E6, 0x38D01377, 0xBE5466CF, 0x34E90C6C,\n\t 0xC0AC29B7, 0xC97C50DD, 0x3F84D5B5, 0xB5470917,\n\t 0x9216D5D9, 0x8979FB1B\n\t ];\n\n\t const ORIG_S = [\n\t [ 0xD1310BA6, 0x98DFB5AC, 0x2FFD72DB, 0xD01ADFB7,\n\t 0xB8E1AFED, 0x6A267E96, 0xBA7C9045, 0xF12C7F99,\n\t 0x24A19947, 0xB3916CF7, 0x0801F2E2, 0x858EFC16,\n\t 0x636920D8, 0x71574E69, 0xA458FEA3, 0xF4933D7E,\n\t 0x0D95748F, 0x728EB658, 0x718BCD58, 0x82154AEE,\n\t 0x7B54A41D, 0xC25A59B5, 0x9C30D539, 0x2AF26013,\n\t 0xC5D1B023, 0x286085F0, 0xCA417918, 0xB8DB38EF,\n\t 0x8E79DCB0, 0x603A180E, 0x6C9E0E8B, 0xB01E8A3E,\n\t 0xD71577C1, 0xBD314B27, 0x78AF2FDA, 0x55605C60,\n\t 0xE65525F3, 0xAA55AB94, 0x57489862, 0x63E81440,\n\t 0x55CA396A, 0x2AAB10B6, 0xB4CC5C34, 0x1141E8CE,\n\t 0xA15486AF, 0x7C72E993, 0xB3EE1411, 0x636FBC2A,\n\t 0x2BA9C55D, 0x741831F6, 0xCE5C3E16, 0x9B87931E,\n\t 0xAFD6BA33, 0x6C24CF5C, 0x7A325381, 0x28958677,\n\t 0x3B8F4898, 0x6B4BB9AF, 0xC4BFE81B, 0x66282193,\n\t 0x61D809CC, 0xFB21A991, 0x487CAC60, 0x5DEC8032,\n\t 0xEF845D5D, 0xE98575B1, 0xDC262302, 0xEB651B88,\n\t 0x23893E81, 0xD396ACC5, 0x0F6D6FF3, 0x83F44239,\n\t 0x2E0B4482, 0xA4842004, 0x69C8F04A, 0x9E1F9B5E,\n\t 0x21C66842, 0xF6E96C9A, 0x670C9C61, 0xABD388F0,\n\t 0x6A51A0D2, 0xD8542F68, 0x960FA728, 0xAB5133A3,\n\t 0x6EEF0B6C, 0x137A3BE4, 0xBA3BF050, 0x7EFB2A98,\n\t 0xA1F1651D, 0x39AF0176, 0x66CA593E, 0x82430E88,\n\t 0x8CEE8619, 0x456F9FB4, 0x7D84A5C3, 0x3B8B5EBE,\n\t 0xE06F75D8, 0x85C12073, 0x401A449F, 0x56C16AA6,\n\t 0x4ED3AA62, 0x363F7706, 0x1BFEDF72, 0x429B023D,\n\t 0x37D0D724, 0xD00A1248, 0xDB0FEAD3, 0x49F1C09B,\n\t 0x075372C9, 0x80991B7B, 0x25D479D8, 0xF6E8DEF7,\n\t 0xE3FE501A, 0xB6794C3B, 0x976CE0BD, 0x04C006BA,\n\t 0xC1A94FB6, 0x409F60C4, 0x5E5C9EC2, 0x196A2463,\n\t 0x68FB6FAF, 0x3E6C53B5, 0x1339B2EB, 0x3B52EC6F,\n\t 0x6DFC511F, 0x9B30952C, 0xCC814544, 0xAF5EBD09,\n\t 0xBEE3D004, 0xDE334AFD, 0x660F2807, 0x192E4BB3,\n\t 0xC0CBA857, 0x45C8740F, 0xD20B5F39, 0xB9D3FBDB,\n\t 0x5579C0BD, 0x1A60320A, 0xD6A100C6, 0x402C7279,\n\t 0x679F25FE, 0xFB1FA3CC, 0x8EA5E9F8, 0xDB3222F8,\n\t 0x3C7516DF, 0xFD616B15, 0x2F501EC8, 0xAD0552AB,\n\t 0x323DB5FA, 0xFD238760, 0x53317B48, 0x3E00DF82,\n\t 0x9E5C57BB, 0xCA6F8CA0, 0x1A87562E, 0xDF1769DB,\n\t 0xD542A8F6, 0x287EFFC3, 0xAC6732C6, 0x8C4F5573,\n\t 0x695B27B0, 0xBBCA58C8, 0xE1FFA35D, 0xB8F011A0,\n\t 0x10FA3D98, 0xFD2183B8, 0x4AFCB56C, 0x2DD1D35B,\n\t 0x9A53E479, 0xB6F84565, 0xD28E49BC, 0x4BFB9790,\n\t 0xE1DDF2DA, 0xA4CB7E33, 0x62FB1341, 0xCEE4C6E8,\n\t 0xEF20CADA, 0x36774C01, 0xD07E9EFE, 0x2BF11FB4,\n\t 0x95DBDA4D, 0xAE909198, 0xEAAD8E71, 0x6B93D5A0,\n\t 0xD08ED1D0, 0xAFC725E0, 0x8E3C5B2F, 0x8E7594B7,\n\t 0x8FF6E2FB, 0xF2122B64, 0x8888B812, 0x900DF01C,\n\t 0x4FAD5EA0, 0x688FC31C, 0xD1CFF191, 0xB3A8C1AD,\n\t 0x2F2F2218, 0xBE0E1777, 0xEA752DFE, 0x8B021FA1,\n\t 0xE5A0CC0F, 0xB56F74E8, 0x18ACF3D6, 0xCE89E299,\n\t 0xB4A84FE0, 0xFD13E0B7, 0x7CC43B81, 0xD2ADA8D9,\n\t 0x165FA266, 0x80957705, 0x93CC7314, 0x211A1477,\n\t 0xE6AD2065, 0x77B5FA86, 0xC75442F5, 0xFB9D35CF,\n\t 0xEBCDAF0C, 0x7B3E89A0, 0xD6411BD3, 0xAE1E7E49,\n\t 0x00250E2D, 0x2071B35E, 0x226800BB, 0x57B8E0AF,\n\t 0x2464369B, 0xF009B91E, 0x5563911D, 0x59DFA6AA,\n\t 0x78C14389, 0xD95A537F, 0x207D5BA2, 0x02E5B9C5,\n\t 0x83260376, 0x6295CFA9, 0x11C81968, 0x4E734A41,\n\t 0xB3472DCA, 0x7B14A94A, 0x1B510052, 0x9A532915,\n\t 0xD60F573F, 0xBC9BC6E4, 0x2B60A476, 0x81E67400,\n\t 0x08BA6FB5, 0x571BE91F, 0xF296EC6B, 0x2A0DD915,\n\t 0xB6636521, 0xE7B9F9B6, 0xFF34052E, 0xC5855664,\n\t 0x53B02D5D, 0xA99F8FA1, 0x08BA4799, 0x6E85076A ],\n\t [ 0x4B7A70E9, 0xB5B32944, 0xDB75092E, 0xC4192623,\n\t 0xAD6EA6B0, 0x49A7DF7D, 0x9CEE60B8, 0x8FEDB266,\n\t 0xECAA8C71, 0x699A17FF, 0x5664526C, 0xC2B19EE1,\n\t 0x193602A5, 0x75094C29, 0xA0591340, 0xE4183A3E,\n\t 0x3F54989A, 0x5B429D65, 0x6B8FE4D6, 0x99F73FD6,\n\t 0xA1D29C07, 0xEFE830F5, 0x4D2D38E6, 0xF0255DC1,\n\t 0x4CDD2086, 0x8470EB26, 0x6382E9C6, 0x021ECC5E,\n\t 0x09686B3F, 0x3EBAEFC9, 0x3C971814, 0x6B6A70A1,\n\t 0x687F3584, 0x52A0E286, 0xB79C5305, 0xAA500737,\n\t 0x3E07841C, 0x7FDEAE5C, 0x8E7D44EC, 0x5716F2B8,\n\t 0xB03ADA37, 0xF0500C0D, 0xF01C1F04, 0x0200B3FF,\n\t 0xAE0CF51A, 0x3CB574B2, 0x25837A58, 0xDC0921BD,\n\t 0xD19113F9, 0x7CA92FF6, 0x94324773, 0x22F54701,\n\t 0x3AE5E581, 0x37C2DADC, 0xC8B57634, 0x9AF3DDA7,\n\t 0xA9446146, 0x0FD0030E, 0xECC8C73E, 0xA4751E41,\n\t 0xE238CD99, 0x3BEA0E2F, 0x3280BBA1, 0x183EB331,\n\t 0x4E548B38, 0x4F6DB908, 0x6F420D03, 0xF60A04BF,\n\t 0x2CB81290, 0x24977C79, 0x5679B072, 0xBCAF89AF,\n\t 0xDE9A771F, 0xD9930810, 0xB38BAE12, 0xDCCF3F2E,\n\t 0x5512721F, 0x2E6B7124, 0x501ADDE6, 0x9F84CD87,\n\t 0x7A584718, 0x7408DA17, 0xBC9F9ABC, 0xE94B7D8C,\n\t 0xEC7AEC3A, 0xDB851DFA, 0x63094366, 0xC464C3D2,\n\t 0xEF1C1847, 0x3215D908, 0xDD433B37, 0x24C2BA16,\n\t 0x12A14D43, 0x2A65C451, 0x50940002, 0x133AE4DD,\n\t 0x71DFF89E, 0x10314E55, 0x81AC77D6, 0x5F11199B,\n\t 0x043556F1, 0xD7A3C76B, 0x3C11183B, 0x5924A509,\n\t 0xF28FE6ED, 0x97F1FBFA, 0x9EBABF2C, 0x1E153C6E,\n\t 0x86E34570, 0xEAE96FB1, 0x860E5E0A, 0x5A3E2AB3,\n\t 0x771FE71C, 0x4E3D06FA, 0x2965DCB9, 0x99E71D0F,\n\t 0x803E89D6, 0x5266C825, 0x2E4CC978, 0x9C10B36A,\n\t 0xC6150EBA, 0x94E2EA78, 0xA5FC3C53, 0x1E0A2DF4,\n\t 0xF2F74EA7, 0x361D2B3D, 0x1939260F, 0x19C27960,\n\t 0x5223A708, 0xF71312B6, 0xEBADFE6E, 0xEAC31F66,\n\t 0xE3BC4595, 0xA67BC883, 0xB17F37D1, 0x018CFF28,\n\t 0xC332DDEF, 0xBE6C5AA5, 0x65582185, 0x68AB9802,\n\t 0xEECEA50F, 0xDB2F953B, 0x2AEF7DAD, 0x5B6E2F84,\n\t 0x1521B628, 0x29076170, 0xECDD4775, 0x619F1510,\n\t 0x13CCA830, 0xEB61BD96, 0x0334FE1E, 0xAA0363CF,\n\t 0xB5735C90, 0x4C70A239, 0xD59E9E0B, 0xCBAADE14,\n\t 0xEECC86BC, 0x60622CA7, 0x9CAB5CAB, 0xB2F3846E,\n\t 0x648B1EAF, 0x19BDF0CA, 0xA02369B9, 0x655ABB50,\n\t 0x40685A32, 0x3C2AB4B3, 0x319EE9D5, 0xC021B8F7,\n\t 0x9B540B19, 0x875FA099, 0x95F7997E, 0x623D7DA8,\n\t 0xF837889A, 0x97E32D77, 0x11ED935F, 0x16681281,\n\t 0x0E358829, 0xC7E61FD6, 0x96DEDFA1, 0x7858BA99,\n\t 0x57F584A5, 0x1B227263, 0x9B83C3FF, 0x1AC24696,\n\t 0xCDB30AEB, 0x532E3054, 0x8FD948E4, 0x6DBC3128,\n\t 0x58EBF2EF, 0x34C6FFEA, 0xFE28ED61, 0xEE7C3C73,\n\t 0x5D4A14D9, 0xE864B7E3, 0x42105D14, 0x203E13E0,\n\t 0x45EEE2B6, 0xA3AAABEA, 0xDB6C4F15, 0xFACB4FD0,\n\t 0xC742F442, 0xEF6ABBB5, 0x654F3B1D, 0x41CD2105,\n\t 0xD81E799E, 0x86854DC7, 0xE44B476A, 0x3D816250,\n\t 0xCF62A1F2, 0x5B8D2646, 0xFC8883A0, 0xC1C7B6A3,\n\t 0x7F1524C3, 0x69CB7492, 0x47848A0B, 0x5692B285,\n\t 0x095BBF00, 0xAD19489D, 0x1462B174, 0x23820E00,\n\t 0x58428D2A, 0x0C55F5EA, 0x1DADF43E, 0x233F7061,\n\t 0x3372F092, 0x8D937E41, 0xD65FECF1, 0x6C223BDB,\n\t 0x7CDE3759, 0xCBEE7460, 0x4085F2A7, 0xCE77326E,\n\t 0xA6078084, 0x19F8509E, 0xE8EFD855, 0x61D99735,\n\t 0xA969A7AA, 0xC50C06C2, 0x5A04ABFC, 0x800BCADC,\n\t 0x9E447A2E, 0xC3453484, 0xFDD56705, 0x0E1E9EC9,\n\t 0xDB73DBD3, 0x105588CD, 0x675FDA79, 0xE3674340,\n\t 0xC5C43465, 0x713E38D8, 0x3D28F89E, 0xF16DFF20,\n\t 0x153E21E7, 0x8FB03D4A, 0xE6E39F2B, 0xDB83ADF7 ],\n\t [ 0xE93D5A68, 0x948140F7, 0xF64C261C, 0x94692934,\n\t 0x411520F7, 0x7602D4F7, 0xBCF46B2E, 0xD4A20068,\n\t 0xD4082471, 0x3320F46A, 0x43B7D4B7, 0x500061AF,\n\t 0x1E39F62E, 0x97244546, 0x14214F74, 0xBF8B8840,\n\t 0x4D95FC1D, 0x96B591AF, 0x70F4DDD3, 0x66A02F45,\n\t 0xBFBC09EC, 0x03BD9785, 0x7FAC6DD0, 0x31CB8504,\n\t 0x96EB27B3, 0x55FD3941, 0xDA2547E6, 0xABCA0A9A,\n\t 0x28507825, 0x530429F4, 0x0A2C86DA, 0xE9B66DFB,\n\t 0x68DC1462, 0xD7486900, 0x680EC0A4, 0x27A18DEE,\n\t 0x4F3FFEA2, 0xE887AD8C, 0xB58CE006, 0x7AF4D6B6,\n\t 0xAACE1E7C, 0xD3375FEC, 0xCE78A399, 0x406B2A42,\n\t 0x20FE9E35, 0xD9F385B9, 0xEE39D7AB, 0x3B124E8B,\n\t 0x1DC9FAF7, 0x4B6D1856, 0x26A36631, 0xEAE397B2,\n\t 0x3A6EFA74, 0xDD5B4332, 0x6841E7F7, 0xCA7820FB,\n\t 0xFB0AF54E, 0xD8FEB397, 0x454056AC, 0xBA489527,\n\t 0x55533A3A, 0x20838D87, 0xFE6BA9B7, 0xD096954B,\n\t 0x55A867BC, 0xA1159A58, 0xCCA92963, 0x99E1DB33,\n\t 0xA62A4A56, 0x3F3125F9, 0x5EF47E1C, 0x9029317C,\n\t 0xFDF8E802, 0x04272F70, 0x80BB155C, 0x05282CE3,\n\t 0x95C11548, 0xE4C66D22, 0x48C1133F, 0xC70F86DC,\n\t 0x07F9C9EE, 0x41041F0F, 0x404779A4, 0x5D886E17,\n\t 0x325F51EB, 0xD59BC0D1, 0xF2BCC18F, 0x41113564,\n\t 0x257B7834, 0x602A9C60, 0xDFF8E8A3, 0x1F636C1B,\n\t 0x0E12B4C2, 0x02E1329E, 0xAF664FD1, 0xCAD18115,\n\t 0x6B2395E0, 0x333E92E1, 0x3B240B62, 0xEEBEB922,\n\t 0x85B2A20E, 0xE6BA0D99, 0xDE720C8C, 0x2DA2F728,\n\t 0xD0127845, 0x95B794FD, 0x647D0862, 0xE7CCF5F0,\n\t 0x5449A36F, 0x877D48FA, 0xC39DFD27, 0xF33E8D1E,\n\t 0x0A476341, 0x992EFF74, 0x3A6F6EAB, 0xF4F8FD37,\n\t 0xA812DC60, 0xA1EBDDF8, 0x991BE14C, 0xDB6E6B0D,\n\t 0xC67B5510, 0x6D672C37, 0x2765D43B, 0xDCD0E804,\n\t 0xF1290DC7, 0xCC00FFA3, 0xB5390F92, 0x690FED0B,\n\t 0x667B9FFB, 0xCEDB7D9C, 0xA091CF0B, 0xD9155EA3,\n\t 0xBB132F88, 0x515BAD24, 0x7B9479BF, 0x763BD6EB,\n\t 0x37392EB3, 0xCC115979, 0x8026E297, 0xF42E312D,\n\t 0x6842ADA7, 0xC66A2B3B, 0x12754CCC, 0x782EF11C,\n\t 0x6A124237, 0xB79251E7, 0x06A1BBE6, 0x4BFB6350,\n\t 0x1A6B1018, 0x11CAEDFA, 0x3D25BDD8, 0xE2E1C3C9,\n\t 0x44421659, 0x0A121386, 0xD90CEC6E, 0xD5ABEA2A,\n\t 0x64AF674E, 0xDA86A85F, 0xBEBFE988, 0x64E4C3FE,\n\t 0x9DBC8057, 0xF0F7C086, 0x60787BF8, 0x6003604D,\n\t 0xD1FD8346, 0xF6381FB0, 0x7745AE04, 0xD736FCCC,\n\t 0x83426B33, 0xF01EAB71, 0xB0804187, 0x3C005E5F,\n\t 0x77A057BE, 0xBDE8AE24, 0x55464299, 0xBF582E61,\n\t 0x4E58F48F, 0xF2DDFDA2, 0xF474EF38, 0x8789BDC2,\n\t 0x5366F9C3, 0xC8B38E74, 0xB475F255, 0x46FCD9B9,\n\t 0x7AEB2661, 0x8B1DDF84, 0x846A0E79, 0x915F95E2,\n\t 0x466E598E, 0x20B45770, 0x8CD55591, 0xC902DE4C,\n\t 0xB90BACE1, 0xBB8205D0, 0x11A86248, 0x7574A99E,\n\t 0xB77F19B6, 0xE0A9DC09, 0x662D09A1, 0xC4324633,\n\t 0xE85A1F02, 0x09F0BE8C, 0x4A99A025, 0x1D6EFE10,\n\t 0x1AB93D1D, 0x0BA5A4DF, 0xA186F20F, 0x2868F169,\n\t 0xDCB7DA83, 0x573906FE, 0xA1E2CE9B, 0x4FCD7F52,\n\t 0x50115E01, 0xA70683FA, 0xA002B5C4, 0x0DE6D027,\n\t 0x9AF88C27, 0x773F8641, 0xC3604C06, 0x61A806B5,\n\t 0xF0177A28, 0xC0F586E0, 0x006058AA, 0x30DC7D62,\n\t 0x11E69ED7, 0x2338EA63, 0x53C2DD94, 0xC2C21634,\n\t 0xBBCBEE56, 0x90BCB6DE, 0xEBFC7DA1, 0xCE591D76,\n\t 0x6F05E409, 0x4B7C0188, 0x39720A3D, 0x7C927C24,\n\t 0x86E3725F, 0x724D9DB9, 0x1AC15BB4, 0xD39EB8FC,\n\t 0xED545578, 0x08FCA5B5, 0xD83D7CD3, 0x4DAD0FC4,\n\t 0x1E50EF5E, 0xB161E6F8, 0xA28514D9, 0x6C51133C,\n\t 0x6FD5C7E7, 0x56E14EC4, 0x362ABFCE, 0xDDC6C837,\n\t 0xD79A3234, 0x92638212, 0x670EFA8E, 0x406000E0 ],\n\t [ 0x3A39CE37, 0xD3FAF5CF, 0xABC27737, 0x5AC52D1B,\n\t 0x5CB0679E, 0x4FA33742, 0xD3822740, 0x99BC9BBE,\n\t 0xD5118E9D, 0xBF0F7315, 0xD62D1C7E, 0xC700C47B,\n\t 0xB78C1B6B, 0x21A19045, 0xB26EB1BE, 0x6A366EB4,\n\t 0x5748AB2F, 0xBC946E79, 0xC6A376D2, 0x6549C2C8,\n\t 0x530FF8EE, 0x468DDE7D, 0xD5730A1D, 0x4CD04DC6,\n\t 0x2939BBDB, 0xA9BA4650, 0xAC9526E8, 0xBE5EE304,\n\t 0xA1FAD5F0, 0x6A2D519A, 0x63EF8CE2, 0x9A86EE22,\n\t 0xC089C2B8, 0x43242EF6, 0xA51E03AA, 0x9CF2D0A4,\n\t 0x83C061BA, 0x9BE96A4D, 0x8FE51550, 0xBA645BD6,\n\t 0x2826A2F9, 0xA73A3AE1, 0x4BA99586, 0xEF5562E9,\n\t 0xC72FEFD3, 0xF752F7DA, 0x3F046F69, 0x77FA0A59,\n\t 0x80E4A915, 0x87B08601, 0x9B09E6AD, 0x3B3EE593,\n\t 0xE990FD5A, 0x9E34D797, 0x2CF0B7D9, 0x022B8B51,\n\t 0x96D5AC3A, 0x017DA67D, 0xD1CF3ED6, 0x7C7D2D28,\n\t 0x1F9F25CF, 0xADF2B89B, 0x5AD6B472, 0x5A88F54C,\n\t 0xE029AC71, 0xE019A5E6, 0x47B0ACFD, 0xED93FA9B,\n\t 0xE8D3C48D, 0x283B57CC, 0xF8D56629, 0x79132E28,\n\t 0x785F0191, 0xED756055, 0xF7960E44, 0xE3D35E8C,\n\t 0x15056DD4, 0x88F46DBA, 0x03A16125, 0x0564F0BD,\n\t 0xC3EB9E15, 0x3C9057A2, 0x97271AEC, 0xA93A072A,\n\t 0x1B3F6D9B, 0x1E6321F5, 0xF59C66FB, 0x26DCF319,\n\t 0x7533D928, 0xB155FDF5, 0x03563482, 0x8ABA3CBB,\n\t 0x28517711, 0xC20AD9F8, 0xABCC5167, 0xCCAD925F,\n\t 0x4DE81751, 0x3830DC8E, 0x379D5862, 0x9320F991,\n\t 0xEA7A90C2, 0xFB3E7BCE, 0x5121CE64, 0x774FBE32,\n\t 0xA8B6E37E, 0xC3293D46, 0x48DE5369, 0x6413E680,\n\t 0xA2AE0810, 0xDD6DB224, 0x69852DFD, 0x09072166,\n\t 0xB39A460A, 0x6445C0DD, 0x586CDECF, 0x1C20C8AE,\n\t 0x5BBEF7DD, 0x1B588D40, 0xCCD2017F, 0x6BB4E3BB,\n\t 0xDDA26A7E, 0x3A59FF45, 0x3E350A44, 0xBCB4CDD5,\n\t 0x72EACEA8, 0xFA6484BB, 0x8D6612AE, 0xBF3C6F47,\n\t 0xD29BE463, 0x542F5D9E, 0xAEC2771B, 0xF64E6370,\n\t 0x740E0D8D, 0xE75B1357, 0xF8721671, 0xAF537D5D,\n\t 0x4040CB08, 0x4EB4E2CC, 0x34D2466A, 0x0115AF84,\n\t 0xE1B00428, 0x95983A1D, 0x06B89FB4, 0xCE6EA048,\n\t 0x6F3F3B82, 0x3520AB82, 0x011A1D4B, 0x277227F8,\n\t 0x611560B1, 0xE7933FDC, 0xBB3A792B, 0x344525BD,\n\t 0xA08839E1, 0x51CE794B, 0x2F32C9B7, 0xA01FBAC9,\n\t 0xE01CC87E, 0xBCC7D1F6, 0xCF0111C3, 0xA1E8AAC7,\n\t 0x1A908749, 0xD44FBD9A, 0xD0DADECB, 0xD50ADA38,\n\t 0x0339C32A, 0xC6913667, 0x8DF9317C, 0xE0B12B4F,\n\t 0xF79E59B7, 0x43F5BB3A, 0xF2D519FF, 0x27D9459C,\n\t 0xBF97222C, 0x15E6FC2A, 0x0F91FC71, 0x9B941525,\n\t 0xFAE59361, 0xCEB69CEB, 0xC2A86459, 0x12BAA8D1,\n\t 0xB6C1075E, 0xE3056A0C, 0x10D25065, 0xCB03A442,\n\t 0xE0EC6E0E, 0x1698DB3B, 0x4C98A0BE, 0x3278E964,\n\t 0x9F1F9532, 0xE0D392DF, 0xD3A0342B, 0x8971F21E,\n\t 0x1B0A7441, 0x4BA3348C, 0xC5BE7120, 0xC37632D8,\n\t 0xDF359F8D, 0x9B992F2E, 0xE60B6F47, 0x0FE3F11D,\n\t 0xE54CDA54, 0x1EDAD891, 0xCE6279CF, 0xCD3E7E6F,\n\t 0x1618B166, 0xFD2C1D05, 0x848FD2C5, 0xF6FB2299,\n\t 0xF523F357, 0xA6327623, 0x93A83531, 0x56CCCD02,\n\t 0xACF08162, 0x5A75EBB5, 0x6E163697, 0x88D273CC,\n\t 0xDE966292, 0x81B949D0, 0x4C50901B, 0x71C65614,\n\t 0xE6C6C7BD, 0x327A140A, 0x45E1D006, 0xC3F27B9A,\n\t 0xC9AA53FD, 0x62A80F00, 0xBB25BFE2, 0x35BDD2F6,\n\t 0x71126905, 0xB2040222, 0xB6CBCF7C, 0xCD769C2B,\n\t 0x53113EC0, 0x1640E3D3, 0x38ABBD60, 0x2547ADF0,\n\t 0xBA38209C, 0xF746CE76, 0x77AFA1C5, 0x20756060,\n\t 0x85CBFE4E, 0x8AE88DD8, 0x7AAAF9B0, 0x4CF9AA7E,\n\t 0x1948C25C, 0x02FB8A8C, 0x01C36AE4, 0xD6EBE1F9,\n\t 0x90D4F869, 0xA65CDEA0, 0x3F09252D, 0xC208E69F,\n\t 0xB74E6132, 0xCE77E25B, 0x578FDFE3, 0x3AC372E6 ]\n\t ];\n\n\t var BLOWFISH_CTX = {\n\t pbox: [],\n\t sbox: []\n\t }\n\n\t function F(ctx, x){\n\t let a = (x >> 24) & 0xFF;\n\t let b = (x >> 16) & 0xFF;\n\t let c = (x >> 8) & 0xFF;\n\t let d = x & 0xFF;\n\n\t let y = ctx.sbox[0][a] + ctx.sbox[1][b];\n\t y = y ^ ctx.sbox[2][c];\n\t y = y + ctx.sbox[3][d];\n\n\t return y;\n\t }\n\n\t function BlowFish_Encrypt(ctx, left, right){\n\t let Xl = left;\n\t let Xr = right;\n\t let temp;\n\n\t for(let i = 0; i < N; ++i){\n\t Xl = Xl ^ ctx.pbox[i];\n\t Xr = F(ctx, Xl) ^ Xr;\n\n\t temp = Xl;\n\t Xl = Xr;\n\t Xr = temp;\n\t }\n\n\t temp = Xl;\n\t Xl = Xr;\n\t Xr = temp;\n\n\t Xr = Xr ^ ctx.pbox[N];\n\t Xl = Xl ^ ctx.pbox[N + 1];\n\n\t return {left: Xl, right: Xr};\n\t }\n\n\t function BlowFish_Decrypt(ctx, left, right){\n\t let Xl = left;\n\t let Xr = right;\n\t let temp;\n\n\t for(let i = N + 1; i > 1; --i){\n\t Xl = Xl ^ ctx.pbox[i];\n\t Xr = F(ctx, Xl) ^ Xr;\n\n\t temp = Xl;\n\t Xl = Xr;\n\t Xr = temp;\n\t }\n\n\t temp = Xl;\n\t Xl = Xr;\n\t Xr = temp;\n\n\t Xr = Xr ^ ctx.pbox[1];\n\t Xl = Xl ^ ctx.pbox[0];\n\n\t return {left: Xl, right: Xr};\n\t }\n\n\t /**\n\t * Initialization ctx's pbox and sbox.\n\t *\n\t * @param {Object} ctx The object has pbox and sbox.\n\t * @param {Array} key An array of 32-bit words.\n\t * @param {int} keysize The length of the key.\n\t *\n\t * @example\n\t *\n\t * BlowFishInit(BLOWFISH_CTX, key, 128/32);\n\t */\n\t function BlowFishInit(ctx, key, keysize)\n\t {\n\t for(let Row = 0; Row < 4; Row++)\n\t {\n\t ctx.sbox[Row] = [];\n\t for(let Col = 0; Col < 256; Col++)\n\t {\n\t ctx.sbox[Row][Col] = ORIG_S[Row][Col];\n\t }\n\t }\n\n\t let keyIndex = 0;\n\t for(let index = 0; index < N + 2; index++)\n\t {\n\t ctx.pbox[index] = ORIG_P[index] ^ key[keyIndex];\n\t keyIndex++;\n\t if(keyIndex >= keysize)\n\t {\n\t keyIndex = 0;\n\t }\n\t }\n\n\t let Data1 = 0;\n\t let Data2 = 0;\n\t let res = 0;\n\t for(let i = 0; i < N + 2; i += 2)\n\t {\n\t res = BlowFish_Encrypt(ctx, Data1, Data2);\n\t Data1 = res.left;\n\t Data2 = res.right;\n\t ctx.pbox[i] = Data1;\n\t ctx.pbox[i + 1] = Data2;\n\t }\n\n\t for(let i = 0; i < 4; i++)\n\t {\n\t for(let j = 0; j < 256; j += 2)\n\t {\n\t res = BlowFish_Encrypt(ctx, Data1, Data2);\n\t Data1 = res.left;\n\t Data2 = res.right;\n\t ctx.sbox[i][j] = Data1;\n\t ctx.sbox[i][j + 1] = Data2;\n\t }\n\t }\n\n\t return true;\n\t }\n\n\t /**\n\t * Blowfish block cipher algorithm.\n\t */\n\t var Blowfish = C_algo.Blowfish = BlockCipher.extend({\n\t _doReset: function () {\n\t // Skip reset of nRounds has been set before and key did not change\n\t if (this._keyPriorReset === this._key) {\n\t return;\n\t }\n\n\t // Shortcuts\n\t var key = this._keyPriorReset = this._key;\n\t var keyWords = key.words;\n\t var keySize = key.sigBytes / 4;\n\n\t //Initialization pbox and sbox\n\t BlowFishInit(BLOWFISH_CTX, keyWords, keySize);\n\t },\n\n\t encryptBlock: function (M, offset) {\n\t var res = BlowFish_Encrypt(BLOWFISH_CTX, M[offset], M[offset + 1]);\n\t M[offset] = res.left;\n\t M[offset + 1] = res.right;\n\t },\n\n\t decryptBlock: function (M, offset) {\n\t var res = BlowFish_Decrypt(BLOWFISH_CTX, M[offset], M[offset + 1]);\n\t M[offset] = res.left;\n\t M[offset + 1] = res.right;\n\t },\n\n\t blockSize: 64/32,\n\n\t keySize: 128/32,\n\n\t ivSize: 64/32\n\t });\n\n\t /**\n\t * Shortcut functions to the cipher's object interface.\n\t *\n\t * @example\n\t *\n\t * var ciphertext = CryptoJS.Blowfish.encrypt(message, key, cfg);\n\t * var plaintext = CryptoJS.Blowfish.decrypt(ciphertext, key, cfg);\n\t */\n\t C.Blowfish = BlockCipher._createHelper(Blowfish);\n\t}());\n\n\n\treturn CryptoJS.Blowfish;\n\n}));", ";(function (root, factory, undef) {\n\tif (typeof exports === \"object\") {\n\t\t// CommonJS\n\t\tmodule.exports = exports = factory(require(\"./core\"), require(\"./x64-core\"), require(\"./lib-typedarrays\"), require(\"./enc-utf16\"), require(\"./enc-base64\"), require(\"./enc-base64url\"), require(\"./md5\"), require(\"./sha1\"), require(\"./sha256\"), require(\"./sha224\"), require(\"./sha512\"), require(\"./sha384\"), require(\"./sha3\"), require(\"./ripemd160\"), require(\"./hmac\"), require(\"./pbkdf2\"), require(\"./evpkdf\"), require(\"./cipher-core\"), require(\"./mode-cfb\"), require(\"./mode-ctr\"), require(\"./mode-ctr-gladman\"), require(\"./mode-ofb\"), require(\"./mode-ecb\"), require(\"./pad-ansix923\"), require(\"./pad-iso10126\"), require(\"./pad-iso97971\"), require(\"./pad-zeropadding\"), require(\"./pad-nopadding\"), require(\"./format-hex\"), require(\"./aes\"), require(\"./tripledes\"), require(\"./rc4\"), require(\"./rabbit\"), require(\"./rabbit-legacy\"), require(\"./blowfish\"));\n\t}\n\telse if (typeof define === \"function\" && define.amd) {\n\t\t// AMD\n\t\tdefine([\"./core\", \"./x64-core\", \"./lib-typedarrays\", \"./enc-utf16\", \"./enc-base64\", \"./enc-base64url\", \"./md5\", \"./sha1\", \"./sha256\", \"./sha224\", \"./sha512\", \"./sha384\", \"./sha3\", \"./ripemd160\", \"./hmac\", \"./pbkdf2\", \"./evpkdf\", \"./cipher-core\", \"./mode-cfb\", \"./mode-ctr\", \"./mode-ctr-gladman\", \"./mode-ofb\", \"./mode-ecb\", \"./pad-ansix923\", \"./pad-iso10126\", \"./pad-iso97971\", \"./pad-zeropadding\", \"./pad-nopadding\", \"./format-hex\", \"./aes\", \"./tripledes\", \"./rc4\", \"./rabbit\", \"./rabbit-legacy\", \"./blowfish\"], factory);\n\t}\n\telse {\n\t\t// Global (browser)\n\t\troot.CryptoJS = factory(root.CryptoJS);\n\t}\n}(this, function (CryptoJS) {\n\n\treturn CryptoJS;\n\n}));"], "mappings": ";;;;;;AAAA;AAAA;AAAA,WAAO,UAAU,OAAO,OAAO,IAAI,MAAM,CAAC,GAAG;AAAA,MAC3C,IAAI,GAAG,KAAK;AACV,YACE,QAAQ,gBACR,QAAQ,eACR,QAAQ,iBACR,QAAQ,UACR;AACA,kBAAQ,KAAK,0FAA0F,GAAG,qIAAqI;AAAA,QACjP;AAAA,MACF;AAAA,IACF,CAAC,CAAC;AAAA;AAAA;;;ACXF;AAAA;AAAC,KAAC,SAAU,MAAM,SAAS;AAC1B,UAAI,OAAO,YAAY,UAAU;AAEhC,eAAO,UAAU,UAAU,QAAQ;AAAA,MACpC,WACS,OAAO,WAAW,cAAc,OAAO,KAAK;AAEpD,eAAO,CAAC,GAAG,OAAO;AAAA,MACnB,OACK;AAEJ,aAAK,WAAW,QAAQ;AAAA,MACzB;AAAA,IACD,GAAE,SAAM,WAAY;AAOnB,UAAI,WAAW,YAAa,SAAUA,OAAMC,YAAW;AAEnD,YAAI;AAGJ,YAAI,OAAO,WAAW,eAAe,OAAO,QAAQ;AAChD,mBAAS,OAAO;AAAA,QACpB;AAGA,YAAI,OAAO,SAAS,eAAe,KAAK,QAAQ;AAC5C,mBAAS,KAAK;AAAA,QAClB;AAGA,YAAI,OAAO,eAAe,eAAe,WAAW,QAAQ;AACxD,mBAAS,WAAW;AAAA,QACxB;AA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AAEhC,eAAO,UAAU,UAAU,QAAQ,gBAAmB,oBAAuB,2BAA8B,qBAAwB,sBAAyB,yBAA4B,eAAkB,gBAAmB,kBAAqB,kBAAqB,kBAAqB,kBAAqB,gBAAmB,qBAAwB,gBAAmB,kBAAqB,kBAAqB,uBAA0B,oBAAuB,oBAAuB,4BAA+B,oBAAuB,oBAAuB,wBAA2B,wBAA2B,wBAA2B,2BAA8B,yBAA4B,sBAAyB,eAAkB,qBAAwB,eAAkB,kBAAqB,yBAA4B,kBAAqB;AAAA,MACr1B,WACS,OAAO,WAAW,cAAc,OAAO,KAAK;AAEpD,eAAO,CAAC,UAAU,cAAc,qBAAqB,eAAe,gBAAgB,mBAAmB,SAAS,UAAU,YAAY,YAAY,YAAY,YAAY,UAAU,eAAe,UAAU,YAAY,YAAY,iBAAiB,cAAc,cAAc,sBAAsB,cAAc,cAAc,kBAAkB,kBAAkB,kBAAkB,qBAAqB,mBAAmB,gBAAgB,SAAS,eAAe,SAAS,YAAY,mBAAmB,YAAY,GAAG,OAAO;AAAA,MACzgB,OACK;AAEJ,aAAK,WAAW,QAAQ,KAAK,QAAQ;AAAA,MACtC;AAAA,IACD,GAAE,SAAM,SAAU,UAAU;AAE3B,aAAO;AAAA,IAER,CAAC;AAAA;AAAA;", "names": ["Math", "undefined", "undefined", "Math", "Math", "n", "H", "Math", "Math", "undefined", "CBC", "undefined", "SUB_MIX_0", "SUB_MIX_1", "SUB_MIX_2", "SUB_MIX_3", "SBOX", "C", "C"] } diff --git a/service/vite.config.js b/service/vite.config.js new file mode 100644 index 00000000..51460a10 --- /dev/null +++ b/service/vite.config.js @@ -0,0 +1,41 @@ +import { + defineConfig +} from 'vite'; +import uni from '@dcloudio/vite-plugin-uni'; + +// let target = 'http://91f.xyz:8080' +let target = 'http://1a4b9ed1.r24.cpolar.top' + +export default defineConfig({ + plugins: [uni()], + server: { + host: "0.0.0.0", + port: 5173, + proxy: { + "/system": { + target, + changeOrigin: true, + }, + "/shopify": { + target, + changeOrigin: true, + }, + "/user": { + target, + changeOrigin: true, + }, + "/coreplay": { + target, + changeOrigin: true, + }, + "/file": { + target, + changeOrigin: true, + }, + "/video": { + target, + changeOrigin: true, + }, + } + } +}) \ No newline at end of file