1"use strict";var _location$hostname$ma;function _slicedToArray(t,n){return _arrayWithHoles(t)||_iterableToArrayLimit(t,n)||_unsupportedIterableToArray(t,n)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(t,n){if(t){if("string"==typeof t)return _arrayLikeToArray(t,n);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?_arrayLikeToArray(t,n):void 0}}function _arrayLikeToArray(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,a=Array(n);e<n;e++)a[e]=t[e];return a}function _iterableToArrayLimit(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var a,o,i,r,c=[],s=!0,l=!1;try{if(i=(e=e.call(t)).next,0===n){if(Object(e)!==e)return;s=!1}else for(;!(s=(a=i.call(e)).done)&&(c.push(a.value),c.length!==n);s=!0);}catch(t){l=!0,o=t}finally{try{if(!s&&null!=e.return&&(r=e.return(),Object(r)!==r))return}finally{if(l)throw o}}return c}}function _arrayWithHoles(t){if(Array.isArray(t))return t}function _regenerator(){var f,_,t="function"==typeof Symbol?Symbol:{},n=t.iterator||"@@iterator",e=t.toStringTag||"@@toStringTag";function a(t,n,e,u){var a=n&&n.prototype instanceof i?n:i,o=Object.create(a.prototype);return _regeneratorDefine2(o,"_invoke",function(a,o,t){var i,r,c,s=0,l=u||[],d=!1,g={p:0,n:0,v:f,a:p,f:p.bind(f,4),d:function(t,n){return i=t,r=0,c=f,g.n=n,m}};function p(t,n){for(r=t,c=n,_=0;!d&&s&&!e&&_<l.length;_++){var e,a=l[_],o=g.p,i=a[2];3<t?(e=i===n)&&(c=a[(r=a[4])?5:(r=3,3)],a[4]=a[5]=f):a[0]<=o&&((e=t<2&&o<a[1])?(r=0,g.v=n,g.n=a[1]):o<i&&(e=t<3||a[0]>n||i<n)&&(a[4]=t,a[5]=n,g.n=i,r=0))}if(e||1<t)return m;throw d=!0,n}return function(t,n,e){if(1<s)throw TypeError("Generator is already running");for(d&&1===n&&p(n,e),r=n,c=e;(_=r<2?f:c)||!d;){i||(r?r<3?(1<r&&(g.n=-1),p(r,c)):g.n=c:g.v=c);try{if(s=2,i){if(r||(t="next"),_=i[t]){if(!(_=_.call(i,c)))throw TypeError("iterator result is not an object");if(!_.done)return _;c=_.value,r<2&&(r=0)}else 1===r&&(_=i.return)&&_.call(i),r<2&&(c=TypeError("The iterator does not provide a '"+t+"' method"),r=1);i=f}else if((_=(d=g.n<0)?c:a.call(o,g))!==m)break}catch(t){i=f,r=1,c=t}finally{s=1}}return{value:_,done:d}}}(t,e),!0),o}var m={};function i(){}function o(){}function r(){}_=Object.getPrototypeOf;var c=[][n]?_(_([][n]())):(_regeneratorDefine2(_={},n,function(){return this}),_),s=r.prototype=i.prototype=Object.create(c);function l(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,r):(t.__proto__=r,_regeneratorDefine2(t,e,"GeneratorFunction")),t.prototype=Object.create(s),t}return _regeneratorDefine2(s,"constructor",o.prototype=r),_regeneratorDefine2(r,"constructor",o),_regeneratorDefine2(r,e,o.displayName="GeneratorFunction"),_regeneratorDefine2(s),_regeneratorDefine2(s,e,"Generator"),_regeneratorDefine2(s,n,function(){return this}),_regeneratorDefine2(s,"toString",function(){return"[object Generator]"}),(_regenerator=function(){return{w:a,m:l}})()}function _regeneratorDefine2(t,n,e,a){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}(_regeneratorDefine2=function(t,n,e,a){function o(n,e){_regeneratorDefine2(t,n,function(t){return this._invoke(n,e,t)})}n?i?i(t,n,{value:e,enumerable:!a,configurable:!a,writable:!a}):t[n]=e:(o("next",0),o("throw",1),o("return",2))})(t,n,e,a)}function asyncGeneratorStep(t,n,e,a,o,i,r){try{var c=t[i](r),s=c.value}catch(t){return void e(t)}c.done?n(s):Promise.resolve(s).then(a,o)}function _asyncToGenerator(c){return function(){var t=this,r=arguments;return new Promise(function(n,e){var a=c.apply(t,r);function o(t){asyncGeneratorStep(a,n,e,o,i,"next",t)}function i(t){asyncGeneratorStep(a,n,e,o,i,"throw",t)}o(void 0)})}}function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(t,n){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),a=1;a<arguments.length;a++){var o=arguments[a];if(null!=o)for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(e[i]=o[i])}return e},writable:!0,configurable:!0}
1),function(){var t="undefined"!=typeof exports?exports:"undefined"!=typeof self?self:$.global,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function s(t){this.message=t}(s.prototype=new Error).name="InvalidCharacterError",t.btoa||(t.btoa=function(t){for(var n,e,a=String(t),o=0,i=c,r="";a.charAt(0|o)||(i="=",o%1);r+=i.charAt(63&n>>8-o%1*8)){if(255<(e=a.charCodeAt(o+=.75)))throw new s("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");n=n<<8|e}return r}),t.atob||(t.atob=function(t){var n=String(t).replace(/[=]+$/,"");if(n.length%4==1)throw new s("'atob' failed: The string to be decoded is not correctly encoded.");for(var e,a,o=0,i=0,r="";a=n.charAt(i++);~a&&(e=o%4?64*e+a:a,o++%4)?r+=String.fromCharCode(255&e>>(-2*o&6)):0)a=c.indexOf(a);return r})}(),function(t){if("object"==("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).localforage=t()}}(function(){return function i(r,c,s){function l(n,t){if(!c[n]){if(!r[n]){var e="function"==typeof require&&require;if(!t&&e)return e(n,!0);if(d)return d(n,!0);var a=new Error("Cannot find module '"+n+"'");throw a.code="MODULE_NOT_FOUND",a}var o=c[n]={exports:{}};r[n][0].call(o.exports,function(t){return l(r[n][1][t]||t)},o,o.exports,i,r,c,s)}return c[n].exports}for(var d="function"==typeof require&&require,t=0;t<s.length;t++)l(s[t]);return l}({1:[function(t,d,n){(function(n){function e(){s=!0;for(var t,n,e=l.length;e;){for(n=l,l=[],t=-1;++t<e;)n[t]();e=l.length}s=!1}var a,t=n.MutationObserver||n.WebKitMutationObserver;if(t){var o=0,i=new t(e),r=n.document.createTextNode("");i.observe(r,{characterData:!0}),a=function(){r.data=o=++o%2}}else if(n.setImmediate||void 0===n.MessageChannel)a="document"in n&&"onreadystatechange"in n.document.createElement("script")?function(){var t=n.document.createElement("script");t.onreadystatechange=function(){e(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},n.document.documentElement.appendChild(t)}:function(){setTimeout(e,0)};else{var c=new n.MessageChannel;c.port1.onmessage=e,a=function(){c.port2.postMessage(0)}}var s,l=[];d.exports=function(t){1!==l.push(t)||s||a()}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(t,n,e){function l(){}function a(t){if("function"!=typeof t)throw new TypeError("resolver must be a function");this.state=f,this.queue=[],this.outcome=void 0,t!==l&&c(this,t)}function o(t,n,e){this.promise=t,"function"==typeof n&&(this.onFulfilled=n,this.callFulfilled=this.otherCallFulfilled),"function"==typeof e&&(this.onRejected=e,this.callRejected=this.otherCallRejected)}function i(n,e,a){d(function(){var t;try{t=e(a)}catch(t){return g.reject(n,t)}t===n?g.reject(n,new TypeError("Cannot resolve promise with itself")):g.resolve(n,t)})}function r(t){var n=t&&t.then;if(t&&("object"==_typeof(t)||"function"==typeof t)&&"function"==typeof n)return function(){n.apply(t,arguments)}}function c(n,t){function e(t){o||(o=!0,g.reject(n,t))}function a(t){o||(o=!0,g.resolve(n,t))}var o=!1,i=s(function(){t(a,e)});"error"===i.status&&e(i.value)}function s(t,n){var e={};try{e.value=t(n),e.status="success"}catch(t){e.status="error",e.value=t}return e}var d=t(1),g={},p=["REJECTED"],u=["FULFILLED"],f=["PENDING"];(n.exports=a).prototype.catch=function(t){return this.then(null,t)},a.prototype.then=function(t,n){if("function"!=typeof t&&this.state===u||"function"!=typeof n&&this.state===p)return this;var e=new this.constructor(l);return this.state!==f?i(e,this.state===u?t:n,this.outcome):this.queue.push(new o(e,t,n)),e},o.prototype.callFulfilled=function(t){g.resolve(this.promise,t)},o.prototype.otherCallFulfilled=function(t){i(this.promise,this.onFulfilled,t)},o.prototype.callRejected=function(t){g.reject(this.promise,t)},o.prototype.otherCallRejected=function(t){i(this.promise,this.onRejected,t)},g.resolve=function(t,n){var e=s(r,n);if("error"===e.status)return g.reject(t,e.value);var a=e.value;if(a)c(t,a);else{t.state=u,t.outcome=n;for(var o=-1,i=t.queue.length;++o<i;)t.queue[o].callFulfilled(n)}return t},g.reject=function(t,n){t.state=p,t.outcome=n;for(var e=-1,a=t.queue.length;++e<a;)t.queue[e].callRejected(n);return t},a.resolve=function(t){return t instanceof this?t:g.resolve(new this(l),t)},a.reject=function(t){var n=new this(l);return g.reject(n,t)},a.all=function(t){function n(t,n){e.resolve(t).then(function(t){i[n]=t,++r!==a||o||(o=!0,g.resolve(s,i))},function(t){o||(o=!0,g.reject(s,t))})}var e=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var a=t.length,o=!1;if(!a)return this.resolve([]);for(var i=new Array(a),r=0,c=-1,s=new this(l);++c<a;)n(t[c],c);return s},a.race=function(t){var n=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var e,a=t.length,o=!1;if(!a)return this.resolve([]);for(var i=-1,r=new this(l);++i<a;)e=t[i],n.resolve(e).then(function(t){o||(o=!0,g.resolve(r,t))},function(t){o||(o=!0,g.reject(r,t))});return r}},{1:1}],3:[function(n,t,e){(function(t){"function"!=typeof t.Promise&&(t.Promise=n(2))}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{2:2}],4:[function(t,n,e){function r(n,e){n=n||[],e=e||{};try{return new Blob(n,e)}catch(t){if("TypeError"!==t.name)throw t;for(var a=new("undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder),o=0;o<n.length;o+=1)a.append(n[o]);return a.getBlob(e.type)}}function g(t,n){n&&t.then(function(t){n(null,t)},function(t){n(t)})}function s(t,n,e){"function"==typeof n&&t.then(n),"function"==typeof e&&t.catch(e)}function p(t){return"string"!=typeof t&&(console.warn(t+" used as a key, but it is not a string."),t=String(t)),t}function i(){if(arguments.length&&"function"==typeof arguments[arguments.length-1])return arguments[arguments.length-1]}function a(t){return"boolean"==typeof B?j.resolve(B):(a=t,new j(function(e){var t=a.transaction(T,D),n=r([""]);t.objectStore(T).put(n,"key"),t.onabort=function(t){t.preventDefault(),t.stopPropagation(),e(!1)},t.oncomplete=function(){var t=navigator.userAgent.match(/Chrome\/(\d+)/),n=navigator.userAgent.match(/Edge\//);e(n||!t||43<=parseInt(t[1],10))}}).catch(function(){return!1})).then(function(t){return B=t});var a}function c(t){var n=A[t.name],e={};e.promise=new j(function(t,n){e.resolve=t,e.reject=n}),n.deferredOperations.push(e),n.dbReady?n.dbReady=n.dbReady.then(function(){return e.promise}):n.dbReady=e.promise}function l(t){var n=A[t.name].deferredOperations.pop();if(n)return n.resolve(),n.promise}function d(t,n){var e=A[t.name].deferredOperations.pop();if(e)return e.reject(n),e.promise}function o(o,i){return new j(function(n,e){if(A[o.name]=A[o.name]||{forages:[],db:null,dbReady:null,deferredOperations:[]},o.db){if(!i)return n(o.db);c(o),o.db.close()}var t=[o.name];
1i&&t.push(o.version);var a=L.open.apply(L,t);i&&(a.onupgradeneeded=function(t){var n=a.result;try{n.createObjectStore(o.storeName),t.oldVersion<=1&&n.createObjectStore(T)}catch(n){if("ConstraintError"!==n.name)throw n;console.warn('The database "'+o.name+'" has been upgraded from version '+t.oldVersion+" to version "+t.newVersion+', but the storage "'+o.storeName+'" already exists.')}}),a.onerror=function(t){t.preventDefault(),e(a.error)},a.onsuccess=function(){var t=a.result;t.onversionchange=function(t){t.target.close()},n(t),l(o)}})}function u(t){return o(t,!1)}function f(t){return o(t,!0)}function _(t,n){if(!t.db)return!0;var e=!t.db.objectStoreNames.contains(t.storeName),a=t.version<t.db.version,o=t.version>t.db.version;if(a&&(t.version!==n&&console.warn('The database "'+t.name+"\" can't be downgraded from version "+t.db.version+" to version "+t.version+"."),t.version=t.db.version),o||e){if(e){var i=t.db.version+1;i>t.version&&(t.version=i)}return!0}return!1}function m(t){return r([function(t){for(var n=t.length,e=new ArrayBuffer(n),a=new Uint8Array(e),o=0;o<n;o++)a[o]=t.charCodeAt(o);return e}(atob(t.data))],{type:t.type})}function h(t){return t&&t.__local_forage_encoded_blob}function v(t){var n=this,e=n._initReady().then(function(){var t=A[n._dbInfo.name];if(t&&t.dbReady)return t.dbReady});return s(e,t,t),e}function w(t,n,e,a){void 0===a&&(a=1);try{var o=t.db.transaction(t.storeName,n);e(null,o)}catch(o){if(0<a&&(!t.db||"InvalidStateError"===o.name||"NotFoundError"===o.name))return j.resolve().then(function(){if(!t.db||"NotFoundError"===o.name&&!t.db.objectStoreNames.contains(t.storeName)&&t.version<=t.db.version)return t.db&&(t.version=t.db.version+1),f(t)}).then(function(){return function(e){c(e);for(var a=A[e.name],o=a.forages,t=0;t<o.length;t++){var n=o[t];n._dbInfo.db&&(n._dbInfo.db.close(),n._dbInfo.db=null)}return e.db=null,u(e).then(function(t){return e.db=t,_(e)?f(e):t}).then(function(t){e.db=a.db=t;for(var n=0;n<o.length;n++)o[n]._dbInfo.db=t}).catch(function(t){throw d(e,t),t})}(t).then(function(){w(t,n,e,a-1)})}).catch(e);e(o)}}function y(t){var n,e,a,o,i,r=.75*t.length,c=t.length,s=0;"="===t[t.length-1]&&(r--,"="===t[t.length-2]&&r--);var l=new ArrayBuffer(r),d=new Uint8Array(l);for(n=0;n<c;n+=4)e=G.indexOf(t[n]),a=G.indexOf(t[n+1]),o=G.indexOf(t[n+2]),i=G.indexOf(t[n+3]),d[s++]=e<<2|a>>4,d[s++]=(15&a)<<4|o>>2,d[s++]=(3&o)<<6|63&i;return l}function b(t){var n,e=new Uint8Array(t),a="";for(n=0;n<e.length;n+=3)a+=G[e[n]>>2],a+=G[(3&e[n])<<4|e[n+1]>>4],a+=G[(15&e[n+1])<<2|e[n+2]>>6],a+=G[63&e[n+2]];return e.length%3==2?a=a.substring(0,a.length-1)+"=":e.length%3==1&&(a=a.substring(0,a.length-2)+"=="),a}function k(t,n,e,a){t.executeSql("CREATE TABLE IF NOT EXISTS "+n.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],e,a)}function P(t,a,o,i,r,c){t.executeSql(o,i,r,function(t,e){e.code===e.SYNTAX_ERR?t.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[a.storeName],function(t,n){n.rows.length?c(t,e):k(t,a,function(){t.executeSql(o,i,r,c)},c)},c):c(t,e)},c)}function x(t,n){var e=t.name+"/";return t.storeName!==n.storeName&&(e+=t.storeName+"/"),e}function $(){return!function(){var t="_localforage_support_test";try{return localStorage.setItem(t,!0),localStorage.removeItem(t),!1}catch(t){return!0}}()||0<localStorage.length}function S(n,e){n[e]=function(){var t=arguments;return n.ready().then(function(){return n[e].apply(n,t)})}}function C(){for(var t=1;t<arguments.length;t++){var n=arguments[t];if(n)for(var e in n)n.hasOwnProperty(e)&&(Y(n[e])?arguments[0][e]=n[e].slice():arguments[0][e]=n[e])}return arguments[0]}var I="function"==typeof Symbol&&"symbol"==_typeof(Symbol.iterator)?function(t){return _typeof(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":_typeof(t)},L=function(){try{if("undefined"!=typeof indexedDB)return indexedDB;if("undefined"!=typeof webkitIndexedDB)return webkitIndexedDB;if("undefined"!=typeof mozIndexedDB)return mozIndexedDB;if("undefined"!=typeof OIndexedDB)return OIndexedDB;if("undefined"!=typeof msIndexedDB)return msIndexedDB}catch(t){return}}();"undefined"==typeof Promise&&t(3);var j=Promise,T="local-forage-detect-blob-support",B=void 0,A={},E=Object.prototype.toString,U="readonly",D="readwrite",O={_driver:"asyncStorage",_initStorage:function(t){function n(){return j.resolve()}var a=this,o={db:null};if(t)for(var e in t)o[e]=t[e];var i=A[o.name];i||(i={forages:[],db:null,dbReady:null,deferredOperations:[]},A[o.name]=i),i.forages.push(a),a._initReady||(a._initReady=a.ready,a.ready=v);for(var r=[],c=0;c<i.forages.length;c++){var s=i.forages[c];s!==a&&r.push(s._initReady().catch(n))}var l=i.forages.slice(0);return j.all(r).then(function(){return o.db=i.db,u(o)}).then(function(t){return o.db=t,_(o,a._defaultConfig.version)?f(o):t}).then(function(t){o.db=i.db=t,a._dbInfo=o;for(var n=0;n<l.length;n++){var e=l[n];e!==a&&(e._dbInfo.db=o.db,e._dbInfo.version=o.version)}})},_support:function(){try{if(!L||!L.open)return!1;var t="undefined"!=typeof openDatabase&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),n="function"==typeof fetch&&-1!==fetch.toString().indexOf("[native code");return(!t||n)&&"undefined"!=typeof indexedDB&&"undefined"!=typeof IDBKeyRange}catch(t){return!1}}(),iterate:function(r,t){var c=this,n=new j(function(i,e){c.ready().then(function(){w(c._dbInfo,U,function(t,n){if(t)return e(t);try{var a=n.objectStore(c._dbInfo.storeName).openCursor(),o=1;a.onsuccess=function(){var t=a.result;if(t){var n=t.value;h(n)&&(n=m(n));var e=r(n,t.key,o++);void 0!==e?i(e):t.continue()}else i()},a.onerror=function(){e(a.error)}}catch(t){e(t)}})}).catch(e)});return g(n,t),n},getItem:function(i,t){var r=this;i=p(i);var n=new j(function(a,o){r.ready().then(function(){w(r._dbInfo,U,function(t,n){if(t)return o(t);try{var e=n.objectStore(r._dbInfo.storeName).get(i);e.onsuccess=function(){var t=e.result;void 0===t&&(t=null),h(t)&&(t=m(t)),a(t)},e.onerror=function(){o(e.error)}}catch(t){o(t)}})}).catch(o)});return g(n,t),n},setItem:function(c,n,t){var s=this;c=p(c);var e=new j(function(i,r){var t;s.ready().then(function(){return t=s._dbInfo,"[object Blob]"===E.call(n)?a(t.db).then(function(t){return t?n:(a=n,new j(function(e,t){var n=new FileReader;n.onerror=t,n.onloadend=function(t){var n=btoa(t.target.result||"");e({__local_forage_encoded_blob:!0,data:n,type:a.type})},n.readAsBinaryString(a)}));var a}):n}).then(function(o){w(s._dbInfo,D,function(t,n){if(t)return r(t);try{var e=n.objectStore(s._dbInfo.storeName);null===o&&(o=void 0);var a=e.put(o,c);n.oncomplete=function(){void 0===o&&(o=null),i(o)},n.onabort=n.onerror=function(){var t=a.error?a.error:a.transaction.error;r(t)}}catch(t){r(t)}})}).catch(r)});return g(e,t),e},removeItem:function(i,t){var r=this;i=p(i);var n=new j(function(a,o){r.ready().then(function(){w(r._dbInfo,D,function(t,n){if(t)return o(t);try{var e=n.objectStore(r._dbInfo.storeName).delete(i);n.oncomplete=function(){a()},n.onerror=function(){o(e.error)},n.onabort=function(){var t=e.error?e.error:e.transaction.error;o(t)}}catch(t){o(t)}})}).catch(o)});return g(n,t),n},clear:function(t){var i=this,n=new j(function(a,o){i.ready().then(function(){w(i._dbInfo,D,function(t,n){if(t)return o(t);try{var e=n.objectStore(i._dbInfo.storeName).clear();n.oncomplete=function(){a()},n.onabort=n.onerror=function(){var t=e.error?e.error:e.transaction.error;o(t)}}catch(t){o(t)}})}).catch(o)});return g(n,t),n},length:function(t){var i=this,n=new j(function(a,o){i.ready().then(function(){w(i._dbInfo,U,function(t,n){if(t)return o(t);try{var e=n.objectStore(i._dbInfo.storeName).count();e.onsuccess=function(){a(e.result)},e.onerror=function(){o(e.error)}}catch(t){o(t)}})}).catch(o)});return g(n,t),n},key:function(c,t){var s=this,n=new j(function(i,r){c<0?i(null):s.ready().then(function(){w(s._dbInfo,U,function(t,n){if(t)return r(t);try{var e=n.objectStore(s._dbInfo.storeName),a=!1,o=e.openKeyCursor();o.onsuccess=function(){var t=o.result;t?0===c?i(t.key):a?i(t.key):(a=!0,t.advance(c)):i(null)},o.onerror=function(){r(o.error)}}catch(t){r(t)}})}).catch(r)});return g(n,t),n},keys:function(t){var r=this,n=new j(function(o,i){r.ready().then(function(){w(r._dbInfo,U,function(t,n){if(t)return i(t);try{var e=n.objectStore(r._dbInfo.storeName).openKeyCursor(),a=[];e.onsuccess=function(){var t=e.result;t?(a.push(t.key),t.continue()):o(a)},e.onerror=function(){i(e.error)}}catch(t){i(t)}})}).catch(i)});return g(n,t),n},dropInstance:function(r,t){t=i.apply(this,arguments);var n,e=this.config();if((r="function"!=typeof r&&r||{}).name||(r.name=r.name||e.name,r.storeName=r.storeName||e.storeName),r.name){var a=r.
1name===e.name&&this._dbInfo.db?j.resolve(this._dbInfo.db):u(r).then(function(t){var n=A[r.name],e=n.forages;n.db=t;for(var a=0;a<e.length;a++)e[a]._dbInfo.db=t;return t});n=r.storeName?a.then(function(t){if(t.objectStoreNames.contains(r.storeName)){var o=t.version+1;c(r);var a=A[r.name],i=a.forages;t.close();for(var n=0;n<i.length;n++){var e=i[n];e._dbInfo.db=null,e._dbInfo.version=o}return new j(function(n,e){var a=L.open(r.name,o);a.onerror=function(t){a.result.close(),e(t)},a.onupgradeneeded=function(){a.result.deleteObjectStore(r.storeName)},a.onsuccess=function(){var t=a.result;t.close(),n(t)}}).then(function(t){a.db=t;for(var n=0;n<i.length;n++){var e=i[n];e._dbInfo.db=t,l(e._dbInfo)}}).catch(function(t){throw(d(r,t)||j.resolve()).catch(function(){}),t})}}):a.then(function(t){c(r);var e=A[r.name],a=e.forages;t.close();for(var n=0;n<a.length;n++)a[n]._dbInfo.db=null;return new j(function(n,e){var a=L.deleteDatabase(r.name);a.onerror=function(){var t=a.result;t&&t.close(),e(a.error)},a.onblocked=function(){console.warn('dropInstance blocked for database "'+r.name+'" until all open connections are closed')},a.onsuccess=function(){var t=a.result;t&&t.close(),n(t)}}).then(function(t){e.db=t;for(var n=0;n<a.length;n++)l(a[n]._dbInfo)}).catch(function(t){throw(d(r,t)||j.resolve()).catch(function(){}),t})})}else n=j.reject("Invalid arguments");return g(n,t),n}},G="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",N=/^~~local_forage_type~([^~]+)~/,F="__lfsc__:",z=F.length,R="arbf",M="blob",H=z+R.length,W=Object.prototype.toString,V={serialize:function(n,e){var t="";if(n&&(t=W.call(n)),n&&("[object ArrayBuffer]"===t||n.buffer&&"[object ArrayBuffer]"===W.call(n.buffer))){var a,o=F;n instanceof ArrayBuffer?(a=n,o+=R):(a=n.buffer,"[object Int8Array]"===t?o+="si08":"[object Uint8Array]"===t?o+="ui08":"[object Uint8ClampedArray]"===t?o+="uic8":"[object Int16Array]"===t?o+="si16":"[object Uint16Array]"===t?o+="ur16":"[object Int32Array]"===t?o+="si32":"[object Uint32Array]"===t?o+="ui32":"[object Float32Array]"===t?o+="fl32":"[object Float64Array]"===t?o+="fl64":e(new Error("Failed to get type for BinaryArray"))),e(o+b(a))}else if("[object Blob]"===t){var i=new FileReader;i.onload=function(){var t="~~local_forage_type~"+n.type+"~"+b(this.result);e(F+M+t)},i.readAsArrayBuffer(n)}else try{e(JSON.stringify(n))}catch(t){console.error("Couldn't convert value into a JSON string: ",n),e(null,t)}},deserialize:function(t){if(t.substring(0,z)!==F)return JSON.parse(t);var n,e=t.substring(H),a=t.substring(z,H);if(a===M&&N.test(e)){var o=e.match(N);n=o[1],e=e.substring(o[0].length)}var i=y(e);switch(a){case R:return i;case M:return r([i],{type:n});case"si08":return new Int8Array(i);case"ui08":return new Uint8Array(i);case"uic8":return new Uint8ClampedArray(i);case"si16":return new Int16Array(i);case"ur16":return new Uint16Array(i);case"si32":return new Int32Array(i);case"ui32":return new Uint32Array(i);case"fl32":return new Float32Array(i);case"fl64":return new Float64Array(i);default:throw new Error("Unkown type: "+a)}},stringToBuffer:y,bufferToString:b},q={_driver:"webSQLStorage",_initStorage:function(t){var a=this,o={db:null};if(t)for(var n in t)o[n]="string"!=typeof t[n]?t[n].toString():t[n];var e=new j(function(n,e){try{o.db=openDatabase(o.name,String(o.version),o.description,o.size)}catch(n){return e(n)}o.db.transaction(function(t){k(t,o,function(){a._dbInfo=o,n()},function(t,n){e(n)})},e)});return o.serializer=V,e},_support:"function"==typeof openDatabase,iterate:function(l,t){var n=this,e=new j(function(s,e){n.ready().then(function(){var c=n._dbInfo;c.db.transaction(function(t){P(t,c,"SELECT * FROM "+c.storeName,[],function(t,n){for(var e=n.rows,a=e.length,o=0;o<a;o++){var i=e.item(o),r=i.value;if(r&&(r=c.serializer.deserialize(r)),void 0!==(r=l(r,i.key,o+1)))return void s(r)}s()},function(t,n){e(n)})})}).catch(e)});return g(e,t),e},getItem:function(n,t){var i=this;n=p(n);var e=new j(function(o,e){i.ready().then(function(){var a=i._dbInfo;a.db.transaction(function(t){P(t,a,"SELECT * FROM "+a.storeName+" WHERE key = ? LIMIT 1",[n],function(t,n){var e=n.rows.length?n.rows.item(0).value:null;e&&(e=a.serializer.deserialize(e)),o(e)},function(t,n){e(n)})})}).catch(e)});return g(e,t),e},setItem:function(t,n,e){return function r(c,t,s,l){var d=this;c=p(c);var n=new j(function(o,i){d.ready().then(function(){void 0===t&&(t=null);var e=t,a=d._dbInfo;a.serializer.serialize(t,function(n,t){t?i(t):a.db.transaction(function(t){P(t,a,"INSERT OR REPLACE INTO "+a.storeName+" (key, value) VALUES (?, ?)",[c,n],function(){o(e)},function(t,n){i(n)})},function(t){if(t.code===t.QUOTA_ERR){if(0<l)return void o(r.apply(d,[c,e,s,l-1]));i(t)}})})}).catch(i)});return g(n,s),n}.apply(this,[t,n,e,1])},removeItem:function(o,t){var i=this;o=p(o);var n=new j(function(e,a){i.ready().then(function(){var n=i._dbInfo;
1n.db.transaction(function(t){P(t,n,"DELETE FROM "+n.storeName+" WHERE key = ?",[o],function(){e()},function(t,n){a(n)})})}).catch(a)});return g(n,t),n},clear:function(t){var o=this,n=new j(function(e,a){o.ready().then(function(){var n=o._dbInfo;n.db.transaction(function(t){P(t,n,"DELETE FROM "+n.storeName,[],function(){e()},function(t,n){a(n)})})}).catch(a)});return g(n,t),n},length:function(t){var o=this,n=new j(function(a,e){o.ready().then(function(){var n=o._dbInfo;n.db.transaction(function(t){P(t,n,"SELECT COUNT(key) as c FROM "+n.storeName,[],function(t,n){var e=n.rows.item(0).c;a(e)},function(t,n){e(n)})})}).catch(e)});return g(n,t),n},key:function(o,t){var i=this,n=new j(function(a,e){i.ready().then(function(){var n=i._dbInfo;n.db.transaction(function(t){P(t,n,"SELECT key FROM "+n.storeName+" WHERE id = ? LIMIT 1",[o+1],function(t,n){var e=n.rows.length?n.rows.item(0).key:null;a(e)},function(t,n){e(n)})})}).catch(e)});return g(n,t),n},keys:function(t){var a=this,n=new j(function(o,e){a.ready().then(function(){var n=a._dbInfo;n.db.transaction(function(t){P(t,n,"SELECT key FROM "+n.storeName,[],function(t,n){for(var e=[],a=0;a<n.rows.length;a++)e.push(n.rows.item(a).key);o(e)},function(t,n){e(n)})})}).catch(e)});return g(n,t),n},dropInstance:function(e,t){t=i.apply(this,arguments);var a=this.config();(e="function"!=typeof e&&e||{}).name||(e.name=e.name||a.name,e.storeName=e.storeName||a.storeName);var n,o=this;return g(n=e.name?new j(function(t){var n,i;n=e.name===a.name?o._dbInfo.db:openDatabase(e.name,"","",0),t(e.storeName?{db:n,storeNames:[e.storeName]}:(i=n,new j(function(o,e){i.transaction(function(t){t.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(t,n){for(var e=[],a=0;a<n.rows.length;a++)e.push(n.rows.item(a).name);o({db:i,storeNames:e})},function(t,n){e(n)})},function(t){e(t)})})))}).then(function(c){return new j(function(i,r){c.db.transaction(function(a){function t(n){return new j(function(t,e){a.executeSql("DROP TABLE IF EXISTS "+n,[],function(){t()},function(t,n){e(n)})})}for(var n=[],e=0,o=c.storeNames.length;e<o;e++)n.push(t(c.storeNames[e]));j.all(n).then(function(){i()}).catch(function(t){r(t)})},function(t){r(t)})})}):j.reject("Invalid arguments"),t),n}},Z={_driver:"localStorageWrapper",_initStorage:function(t){var n={};if(t)for(var e in t)n[e]=t[e];return n.keyPrefix=x(t,this._defaultConfig),$()?((this._dbInfo=n).serializer=V,j.resolve()):j.reject()},_support:function(){try{return"undefined"!=typeof localStorage&&"setItem"in localStorage&&!!localStorage.setItem}catch(t){return!1}}(),iterate:function(s,t){var l=this,n=l.ready().then(function(){for(var t=l._dbInfo,n=t.keyPrefix,e=n.length,a=localStorage.length,o=1,i=0;i<a;i++){var r=localStorage.key(i);if(0===r.indexOf(n)){var c=localStorage.getItem(r);if(c&&(c=t.serializer.deserialize(c)),void 0!==(c=s(c,r.substring(e),o++)))return c}}});return g(n,t),n},getItem:function(e,t){var a=this;e=p(e);var n=a.ready().then(function(){var t=a._dbInfo,n=localStorage.getItem(t.keyPrefix+e);return n&&(n=t.serializer.deserialize(n)),n});return g(n,t),n},setItem:function(r,t,n){var c=this;r=p(r);var e=c.ready().then(function(){void 0===t&&(t=null);var i=t;return new j(function(e,a){var o=c._dbInfo;o.serializer.serialize(t,function(t,n){if(n)a(n);else try{localStorage.setItem(o.keyPrefix+r,t),e(i)}catch(t){"QuotaExceededError"!==t.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==t.name||a(t),a(t)}})})});return g(e,n),e},removeItem:function(n,t){var e=this;n=p(n);var a=e.ready().then(function(){var t=e._dbInfo;localStorage.removeItem(t.keyPrefix+n)});return g(a,t),a},clear:function(t){var a=this,n=a.ready().then(function(){for(var t=a._dbInfo.keyPrefix,n=localStorage.length-1;0<=n;n--){var e=localStorage.key(n);0===e.indexOf(t)&&localStorage.removeItem(e)}});return g(n,t),n},length:function(t){var n=this.keys().then(function(t){return t.length});return g(n,t),n},key:function(e,t){var a=this,n=a.ready().then(function(){var n,t=a._dbInfo;try{n=localStorage.key(e)}catch(t){n=null}return n&&(n=n.substring(t.keyPrefix.length)),n});return g(n,t),n},keys:function(t){var i=this,n=i.ready().then(function(){for(var t=i._dbInfo,n=localStorage.length,e=[],a=0;a<n;a++){var o=localStorage.key(a);0===o.indexOf(t.keyPrefix)&&e.push(o.substring(t.keyPrefix.length))}return e});return g(n,t),n},dropInstance:function(n,t){if(t=i.apply(this,arguments),!(n="function"!=typeof n&&n||{}).name){var e=this.config();n.name=n.name||e.name,n.storeName=n.storeName||e.storeName}var a,o=this;return g(a=n.name?new j(function(t){t(n.storeName?x(n,o._defaultConfig):n.name+"/")}).then(function(t){for(var n=localStorage.length-1;0<=n;n--){var e=localStorage.key(n);0===e.indexOf(t)&&localStorage.removeItem(e)}}):j.reject("Invalid arguments"),t),a}},K=function(t,n){for(var e=t.length,a=0;a<e;){if((o=t[a])===(i=n)||"number"==typeof o&&"number"==typeof i&&isNaN(o)&&isNaN(i))return!0;a++}var o,i;return!1},Y=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},Q={},J={},X={INDEXEDDB:O,WEBSQL:q,LOCALSTORAGE:Z},tt=[X.INDEXEDDB._driver,X.WEBSQL._driver,X.LOCALSTORAGE._driver],nt=["dropInstance"],et=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(nt),at={description:"",driver:tt.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1},ot=new(function(){function o(t){for(var n in function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,o),X)if(X.hasOwnProperty(n)){var e=X[n],a=e._driver;this[n]=a,Q[a]||this.defineDriver(e)}this._defaultConfig=C({},at),this._config=C({},this._defaultConfig,t),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return o.prototype.config=function(t){if("object"!==(void 0===t?"undefined":I(t)))return"string"==typeof t?this._config[t]:this._config;if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var n in t){if("storeName"===n&&(t[n]=t[n].replace(/\W/g,"_")),"version"===n&&"number"!=typeof t[n])return new Error("Database version must be a number.");this._config[n]=t[n]}return!("driver"in t&&t.driver)||this.setDriver(this._config.driver)},o.prototype.defineDriver=function(l,t,n){var e=new j(function(n,e){try{var a=l._driver,t=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!l._driver)return void e(t);for(var o=et.concat("_initStorage"),i=0,r=o.length;i<r;i++){var c=o[i];if((!K(nt,c)||l[c])&&"function"!=typeof l[c])return void e(t)}!function(){for(var t=function(e){return function(){var t=new Error("Method "+e+" is not implemented by the current driver"),n=j.reject(t);return g(n,arguments[arguments.length-1]),n}},n=0,e=nt.length;n<e;n++){var a=nt[n];l[a]||(l[a]=t(a))}}();var s=function(t){Q[a]&&console.info("Redefining LocalForage driver: "+a),Q[a]=l,J[a]=t,n()};"_support"in l?l._support&&"function"==typeof l._support?l._support().then(s,e):s(!!l._support):s(!0)}catch(t){e(t)}});return s(e,t,n),e},o.prototype.driver=function(){return this._driver||null},o.prototype.getDriver=function(t,n,e){var a=Q[t]?j.resolve(Q[t]):j.reject(new Error("Driver not found."));return s(a,n,e),a}
1,o.prototype.getSerializer=function(t){var n=j.resolve(V);return s(n,t),n},o.prototype.ready=function(t){var n=this,e=n._driverSet.then(function(){return null===n._ready&&(n._ready=n._initDriver()),n._ready});return s(e,t,t),e},o.prototype.setDriver=function(t,n,e){function i(){c._config.driver=c.driver()}function r(t){return c._extend(t),i(),c._ready=c._initStorage(c._config),c._ready}var c=this;Y(t)||(t=[t]);var a=this._getSupportedDrivers(t),o=null!==this._driverSet?this._driverSet.catch(function(){return j.resolve()}):j.resolve();return this._driverSet=o.then(function(){var t=a[0];return c._dbInfo=null,c._ready=null,c.getDriver(t).then(function(t){var o;c._driver=t._driver,i(),c._wrapLibraryMethodsWithReady(),c._initDriver=(o=a,function(){var a=0;return function t(){for(;a<o.length;){var n=o[a];return a++,c._dbInfo=null,c._ready=null,c.getDriver(n).then(r).catch(t)}i();var e=new Error("No available storage method found.");return c._driverSet=j.reject(e),c._driverSet}()})})}).catch(function(){i();var t=new Error("No available storage method found.");return c._driverSet=j.reject(t),c._driverSet}),s(this._driverSet,n,e),this._driverSet},o.prototype.supports=function(t){return!!J[t]},o.prototype._extend=function(t){C(this,t)},o.prototype._getSupportedDrivers=function(t){for(var n=[],e=0,a=t.length;e<a;e++){var o=t[e];this.supports(o)&&n.push(o)}return n},o.prototype._wrapLibraryMethodsWithReady=function(){for(var t=0,n=et.length;t<n;t++)S(this,et[t])},o.prototype.createInstance=function(t){return new o(t)},o}());n.exports=ot},{3:3}]},{},[4])(4)}),jQuery.cookie=function(t,n,e){if(1<arguments.length&&"[object Object]"!==String(n)){if(e=jQuery.extend({},e),null==n&&(e.expires=-1),"number"==typeof e.expires){var a=e.expires,o=e.expires=new Date;o.setDate(o.getDate()+a)}return n=String(n),document.cookie=[encodeURIComponent(t),"=",e.raw?n:encodeURIComponent(n),e.expires?"; expires="+e.expires.toUTCString():"",e.path?"; path="+e.path:"",e.domain?"; domain="+e.domain:"",e.secure?"; secure":""].join("")}var i,r=(e=n||{}).raw?function(t){return t}:decodeURIComponent;return(i=new RegExp("(?:^|; )"+encodeURIComponent(t)+"=([^;]*)").exec(document.cookie))?r(i[1]):null};var integrationUrls={domain:"gtarcade.com",trd_login:"https://profile.gtarcade.com",passport_url:"https://profile.gtarcade.com",payment_url:"//pay.gtarcade.com",resource_url:"https://static.gtarcade.com"};function integrationPrompt(t){var e=this;this.win=t||window,this.init=function(t,n){if(!t)throw new Error("Argument is invaild");this.callback=n;t=t;var e=this.win.document.body||this.win.documentElement,a="string"==typeof t?$(t).hide().appendTo(e):(t instanceof jQuery?t:$(t)).clone(!0).hide().appendTo(e);if(!a.length)throw new Error("Empty object");return this.container=a,this}
1,this.layout=function(t){if(!this.container)throw new Error("Must be init");return"function"==typeof t&&t(this),this},this.show=function(){var t=this.getOffset();this.container.css({position:"absolute",left:t.left,top:t.top,display:"block",zIndex:1e6}),this.backgroundObj=integrationBackground({opacity:.5}).show(),"function"==typeof this.callback&&this.callback(this)},this.hide=function(){this.container.hide(),integrationBackground().hide()},this.remove=function(){this.container&&this.container.remove(),this.container=null},this.getOffset=function(){var t={},n=$(e.win);t.docWidth=$(e.win.document.body).width(),t.docHeight=$(e.win).height(),t.winHeight=n.height(),t.winWidth=n.width(),t.conWidth=$(e.container).width(),t.conHeight=$(e.container).height(),t.left=Math.max(0,n.scrollLeft()+(t.winWidth-t.conWidth)/2),t.top=Math.max(0,n.scrollTop()+(t.winHeight-t.conHeight)/2);Math.min(t.docHeight-t.conHeight-10,t.top);return t},$(this.win).resize(function(){var t=e.getOffset();$(e.backgroundObj).css({width:t.docWidth+"px",height:t.docHeight+"px"}),$(e.container).css({left:t.left+"px",top:t.top+"px"})}).scroll(function(){var t=e.getOffset();$(e.container).css({top:t.top+"px"})})}function integrationBackground(t){var n=(t=t||{}).zindex||999999,e=Math.max(document.body.clientWidth||document.documentElement.clientWidth)+"px",a=Math.max(document.body.clientHeight,document.documentElement.clientHeight)+"px";return $("#backgroundBoardId").length?$("#backgroundBoardId").css({width:e,height:a}):$('<iframe id="backgroundBoardId" scrolling="no" frameborder="0" style="overflow:hidden; position:fixed; background:#000; z-index:'+n+"; width:"+e+"; left:0; top:0; height:"+a+'; display:none" src="'+integrationUrls.resource_url+'/gta_common/js/bck.htm"></iframe>').appendTo(document.body||document.documentElement).css("opacity",t.opacity||.7)}window.gtCaptcha=function(){var c="",n={1:"eng",2:"zho-hk",3:"zho",4:"tur",5:"deu",6:"fra",7:"rus",8:"spa",9:"pon",10:"pol",11:"ind",12:"isl",13:"tha",14:"ara",15:"kor",16:"jpn",17:"vie",18:"him"},s=0,l="profile.gtarcade.com",d="jsonp",g=0,e=!0;function p(t){s=0,t.onClose&&t.onClose(),gtCaptcha.instance.destroy&>Captcha.instance.destroy(),gtCaptcha.instance=null}return{init:function(t){if(t&&("string"==typeof t?c=t:(t.env&&(c=t.env),t.apiHost&&-1!=(l=t.apiHost).indexOf("uzgames")&&(g=1),t.apiType&&(d=t.apiType))),"undefined"==typeof initGeetest4){var n=document.head||document.getElementsByTagName("head")[0],e=document.createElement("script");e.type="text/javascript",e.src="//oss.gtarcade.com/ucms/be4c6e85-7f4f-4ef2-9a9e-2b34d94442f8_2025-10-28.js","onload"in e||(e.onreadystatechange=function(){"complete"!==this.readyState&&"loaded"!==this.readyState||(this.onreadystatechange=null)}),e.onload=function(){this.onload=null},n.appendChild(e)}},pop:function(r){if(e&&(r=$.extend({},{element:"body",product:"bind"},r||{}),"undefined"!=typeof initGeetest4)){e=!1;var t=window.integrationPop&&window.integrationPop.nowLangId||window.langId&&window.langId[$.cookie("lang")]||window.nowLangId||1;initGeetest4({captchaId:r.captchaId,product:r.product||"bind",language:n[t]||"eng"},function(i){gtCaptcha.instance=i,"bind"!==r.product&&(r.element?captchaObj.appendTo(r.element):(console.log("å¾å½¢éªè¯ç 缺å°åæ°"),r.onFail&&r.onFail(s,{status:"-1",msg:"å¾å½¢éªè¯ç 缺å°åæ°"}))),i.onReady(function(){r.onReady&&r.onReady(),e=!0}).onSuccess(function(t){var e,a,n,o=i.getValidate();o.captcha_id=r.captchaId,e=function(t){r.onSuccess&&r.onSuccess(t)},a=function(t){s++,r.onFail&&r.onFail(s,t)},n={url:"https://"+c+l+"/site/captcha-validate",data:{captcha_type:"GT",captcha_params:o},success:function(t){if(+t.status===g){var n=t.data;n&&n.verify_token&&e&&e(n.verify_token)}else a&&a(t)},error:function(t){a&&a(t)}},"jsonp"==d?(n.dataType="jsonp",n.jsonp="callback"):n.type=d,$.ajax(n),p(r)}).onFail(function(t){s++,r.onFail&&r.onFail(s,t),s>=r.failLimit&&(p(r),r.onLimitFail&&r.onLimitFail())}).onClose(function(){p(r)})})}},instance:null}}();var envPrefix=String($(document.currentScript||document.getElementById("integration-js")).attr("data-env-prefix")||(null===(_location$hostname$ma=location.hostname.match(/(qa|prv)/i))||void 0===_location$hostname$ma?void 0:_location$hostname$ma[0])||"").toLowerCase();localforage&&localforage.config({name:"integration",storeName:"cache",description:"integration cache"});var restoreToken="",restDay="",integrationIsSupport=-1<document.domain.indexOf("support.gtarca
1de.com"),scriptSrc=(integrationUrls={domain:"gtarcade.com",trd_login:"https://".concat(envPrefix,"profile.gtarcade.com"),passport_url:"https://".concat(envPrefix,"profile.gtarcade.com"),payment_url:"https://".concat(envPrefix,"pay.gtarcade.com"),resource_url:"https://".concat(envPrefix,"static.gtarcade.com"),appendFile:"https://".concat(envPrefix,"static.gtarcade.com/gta_common/integration/"),globalapi:"https://".concat(envPrefix,"globalapi.gtarcade.com/api/"),version:"?v=20230610.03"},$(document.currentScript||document.getElementById("integration-js")||'script[src*="gta_common/integration/index.js"]').attr("src")||"");function getCacheVersion(){var t,n=(null===(t=scriptSrc.split("?"))||void 0===t?void 0:t[1])||"",e=getWeekNumber(new Date);return((n.match(/[a-zA-Z0-9]+/g)||[]).join("")||(new Date).toISOString().slice(0,10).replace(/-/g,""))+"."+e}function getWeekNumber(t){t||(t=new Date),(t=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate()))).setUTCDate(t.getUTCDate()+4-(t.getUTCDay()||7));var n=new Date(Date.UTC(t.getUTCFullYear(),0,1));return Math.ceil(((t-n)/864e5+1)/7)}var _isCssLoaded=!1,integrationPop={envPrefix:envPrefix,initData:$(document.currentScript||document.getElementById("integration-js")).data()||{},cacheVersion:getCacheVersion(),picProp:new integrationPrompt,langList:[],nowLangName:"",nowLangId:"",nowLangSymbol:"",menuList:[],isLetterShow:!1,letterUrl:"",gameList:[],checkIsLogin:function(){if($.cookie("uuzu_UNICKNAME")){$("#integration_header-login,#integration_game_header-login,#integration_switchLogin,#integration_signUpF").hide(),$("#integration_header-out,#integration_game_header-out").show(),$("#integration_header-out").find(".integration_header-username").html(t);var t=$.cookie("uuzu_UNICKNAME");
110<t.length&&(t=t.substring(0,12)+".."),$("#integration_header-out").find(".integration_header-username").html(t),$("#integration_game_header-out").find(".integration_game_header-username").html(t)}else $("#integration_header-out,#integration_game_header-out").hide(),$("#integration_header-login,#integration_game_header-login,.integration_switchLogin,.integration_signUpF").show();$(".integration_now_Lang,.integration_game_now_Lang").html(integrationPop.nowLangName)},showLogin:function(t,n){var e='<div class="integration_popUp_sign integration_pop_sign" from='+t+' id="integration_loginG" style="position:absolute; left:200px; top:60px;"> <div class="allBoxG"> <div class="popUp_head"> <a href="javascript:;" class="btn_close" id="integration_loginCloseBtn" title="Close">x</a> <div class="title integration_title_loginG"><p>'+langPack["Log In"]+'</p></div> <div class="title integration_title_SignUpG"><p>'+langPack["Sign up"]+'</p></div> </div> <div class="integration_popUp_main clearfix"> <div class="integration_box_loginG" id="integration_loginArea"> <form class="form_login"> <p class="integration_Glogo"></p> <h3 class="integration_existingH" style="display:none;">'+langPack["existing User"]+'</h3> <div class="dd"><input name="email" id="email" type="text" placeholder="'+langPack.Email+'" class="input_login integration_login_email" '+(integrationIsSupport?"":'maxlength="50"')+' /><div class="integration_wrong_tip username_warn" id="integration_error_email"><span class="tip_sj">â²</span>'+langPack["Please enter a valid email address!"]+'</div></div> <div class="dd"><input name="password" id="password" type="password" placeholder="'+langPack.Password+'" class="input_login" '+(integrationIsSupport?"":'maxlength="32"')+' /><div class="integration_wrong_tip password_warn" id="integration_error_pwd"><span class="tip_sj">â²</span>'+langPack["Password must be at least 6 characters!"]+'</div></div> <div class="dd clearfix integration_show_login_verify_code" style="display:none;"> <input type="text" class="input_login fl" placeholder="'+langPack["Verification Code"]+'" style="width:230px;" id="integration_login_code" name="integration_login_code" '+(integrationIsSupport?"":'maxlength="10"')+' /> <div class="integration_wrong_tip code_warn" id="error_code"><span class="tip_sj">â²</span>'+langPack["Verification Code don't match"]+'</div> <span class="yzm fr"><img onclick="integrationPop.changeVerifyCode(1);" id="logVerifyCode" align="middle" src="" valign="absmiddle" style="cursor:pointer"></span> </div> <div class="dd"> <label class="label_checkbox" ><input name="" id="integration_rememberMe" type="checkbox" checked="false" value=""/>'+langPack["Remember me"]+'</label> <div class="btn_forgotPasw"><a href="'+integrationUrls.passport_url+'/password/recovery" class="integration_fpoint" fpoint="page_platform@@login@@å®ç½é¡¶é_ç»å½é¢æ¿_å¯ç æ¾å">'+langPack["Forgot Password?"]+'</a></div> </div> <div class="btn_sign"><a href="javascript:;" id="integration_loginBtn" class="integration_login_btn integration_fpoint" fpoint="page_platform@@login@@å®ç½ç»å½_ç»å½è´¦å·">'+langPack["Log In"]+'</a></div> <div class="noAccount">'+langPack["Don't have a GTarcade account?"]+' <a href="javascript:;" id="integration_btnGoSign" class="integration_fpoint" fpoint="page_platform@@login@@å®ç½ç»å½é¢æ¿_注å颿¿">'+langPack["Sign up now!"]+' </a></div> <div class="forgotAccount">'+langPack["Forgot your login email?"]+' <a href="'+integrationUrls.passport_url+'/user/rec
1overy" class="integration_fpoint" fpoint="page_platform@@login@@å®ç½é¡¶é_ç»å½é¢æ¿_è´¦å·æ¾å">'+langPack["Recover account"]+' </a></div> </form> </div> <div class="integration_box_SignUpG" id="integration_signUpArea"> <form class="form_login" action="/site/proxy" method="get"> <p class="integration_Glogo"></p> <h3 class="integration_existingH" style="display:none;">'+langPack["existing User"]+'</h3> <div class="dd"><input name="integration_reg_email" id="integration_reg_email" type="text" placeholder="'+langPack.Email+'" class="input_login" '+(integrationIsSupport?"":'maxlength="50"')+' /><div class="integration_wrong_tip" id="integration_email_error"><span class="tip_sj">â²</span>'+langPack["Please enter a valid email address!"]+'</div></div> <div class="dd"><input name="integration_reg_password" id="integration_reg_password" type="password" placeholder="'+langPack.Password+'" class="input_login" '+(integrationIsSupport?"":'maxlength="32"')+' /><div class="integration_wrong_tip" id="integration_password_error"><span class="tip_sj">â²</span>'+langPack["Password must be at least 6 characters!"]+'</div></div> <div class="dd"><input name="integration_reg_password_re" id="integration_reg_password_re" type="password" placeholder="'+langPack["Confirm Password"]+'" class="input_login" '+(integrationIsSupport?"":'maxlength="32"')+' /><div class="integration_wrong_tip" id="integration_password_re_error"><span class="tip_sj">â²</span>'+langPack["Passwords don't match"]+'</div></div> <div class="dd clearfix integration_show_reg_verify_code" style="display:none;"> <input type="text" id="integration_reg_code" class="input_login fl" placeholder="'+langPack["Verification Code"]+'" style="width:230px;" name="integration_reg_code" '+(integrationIsSupport?"":'maxlength="10"')+' /> <div class="integration_wrong_tip code_warn" id="integration_code_error"><span class="tip_sj">â²</span>'+langPack["Verification Code don't match"]+'</div> <span class="yzm fr"><img onclick="integrationPop.changeVerifyCode(2);" id="regVerifyCode" align="middle" src="" valign="absmiddle" style="cursor:pointer"></span> </div> <div class="dd"> <label class="label_checkbox" ><input name="policy0" type="checkbox" value=""/>'+langPack["I have read and agree to the"]+' <a href="javascript:void(0);" onclick="integrationPop.gdprDiagShow(1)">'+langPack["Terms of Service"]+"</a> "+(langPack.and||"&")+' <a href="javascript:void(0);" onclick="integrationPop.gdprDiagShow(2)">'+langPack["Privacy Policy"]+'.</a></label> <label class="label_checkbox" style="display:none;"><input name="policy1" type="checkbox" value=""/>'+langPack["I would like GTarcade to keep me informed of their newest games and promotions."]+'</label> </div> <div class="btn_sign"><a href="javascript:;" id="integration_signBtn" class="btn_lg_a integration_fpoint" fpoint="page_platform@@signup@@å®ç½æ³¨å_注åè´¦å·" style="background: rgb(199, 199, 199);">'+langPack["Sign up"]+'</a></div> <div class="noAccount">'+langPack["Allready have an account"]+'? <a href="javascript:;" id="integration_btnGoLogin" class="integration_fpoint" fpoint="page_platform@@signup@@å®ç½æ³¨å颿¿_ç»å½é¢æ¿">'+langPack["Log in here"]+'! </a></div> </form> </div> <div class="integration_other_account"> <a href="javascript:;" class="integration_btn_fbLogin" onclick="integrationPop.connect(\'facebook\',\''+t+"')\">"+langPack["Log in with Facebook"]+'</a> <a href="javascript:;" class="integration_btn_gLogin" onclick="integrationPop.connect(\'google\',\''+t+"')\">"+langPack["Log in with Google"]+'</a> <ul class="list clearfix"> <li><a href="javascript:;" onclick="integrationPop.connect(\'twitter\',\''+t+'\')"><h3 class="Twitter"></h3>'+langPack.Twitter+"</a></li> <li><a href=\"javascript:;\" onclick=\"integrationPop.connect('yahoo','"+t+'\')"><h3 class="Yahoo"></h3>'+langPack.Yahoo+"!</a></li> <li><a href=\"javascript:;\" onclick=\"integrationPop.connect('livespace','"+t+'\')"><h3 class="Windows"></h3>'+langPack.Windows+'</a></li> <li class="show_vk"><a href="javascript:;" onclick="integrationPop.connect(\'vk\',\''+t+'\')"><h3 class="VK_ru"></h3>VK</a></li> </ul> <div class="other">
1 <span>'+langPack["Or login with"]+'</span> <ul class="list clearfix"> <li><a href="javascript:;" onclick="integrationPop.connect(\'kakao\',\''+t+'\')" title="'+langPack.Kakao+'"><h3 class="Kakao"></h3></a></li> <li><a href="javascript:;" onclick="integrationPop.connect(\'naver\',\''+t+'\')" title="'+langPack.Naver+'"><h3 class="Naver"></h3></a></li> \x3c!--<li><a href="javascript:;" onclick="integrationPop.connect(\'huawei\',\''+t+'\')" title="'+langPack.Huawei+'"><h3 class="Huawei"></h3></a></li>--\x3e <li><a href="javascript:;" onclick="integrationPop.connect(\'apple\',\''+t+'\')" title="'+langPack.Apple+'"><h3 class="Apple"></h3></a></li> </ul> </div> </div> <div class="integration_other_account integration_existingL" style=" padding-top:36px;display:none;"> <p class="title">Connect a Windows Live Account</p> <ul class="list clearfix" style=" padding-top:14px;"> <li><a href="#"><h3 class="Windows"></h3>Windows</a></li> </ul> <p class="tip_singS"><em>'+langPack.hello+", "+(void 0!==n?n.account:"")+"</em>"+langPack["The address of this mail had been registered!"]+'</p> </div> <div class="line"><p>Or</p></div> </div> </div> </div>';this.picProp.init(e).show(),$(document).on("click","#integration_loginCloseBtn",function(){$("#integration_loginG").remove(),integrationBackground().hide()}),integrationPop.checkInputValueIsNeeded(),"login"===t?$(".integration_box_loginG").addClass("change_z-index"):"showThirdSignUpBinded"===t?($(".integration_box_loginG").addClass("change_z-index"),$(".integration_other_account,.integration_Glogo").hide(),$(".integration_existingL,.integration_existingH").show(),$("#integration_loginArea input[name='email']").val(n?n.email:"")):($(".integration_box_SignUpG").addClass("change_z-index"),$(".integration_title_SignUpG").show(),$(".integration_title_loginG").hide(),integrationPop.getCaptchaConfig()),"ru-ru"===$.cookie("lang")&&-1==="roopllodeocdarkorbitseafight".indexOf(document.domain.split(".")[0])?($(".integration_pop_sign .integration_other_account .list").addClass("change_for_vk"),$(".show_vk").show()):($(".integration_pop_sign .integration_other_account .list").removeClass("change_for_vk"),$(".show_vk").hide()),$(document).on("click","input[name='policy0']",function(){$(this).prop("checked")?$("#integration_signBtn").css({background:"#fe9500"}):$("#integration_signBtn").css({background:"#c7c7c7"})})},checkInputValueIsNeeded:function(){var t=$.cookie("integration_login_email");t&&$("#integration_loginArea input[name='email'],#integration_game_login_email").val(t)},showSignUpSuccess:function(){var t='<div class="integration_popWrap"><h2 class="popUp_head"><a href="javascript:;" id="integration_signUpSuccessColseBtn" class="btn_close p_close" title="Close">x</a></h2><div class="pop-newsBox"><p class="succes-icon">'+langPack["Successful registration"]+'</p><p class="tt3">'+langPack["Go to"]+' <a href="'+integrationUrls.passport_url+'">'+langPack["My Account"]+"</a>, "+langPack["to change account information"]+"</p></div></div>";this.picProp.init(t).show(),$(document).on("click","#integration_signUpSuccessColseBtn",function(){$(".integration_popWrap").remove(),integrationBackground().hide()}),setTimeout(function(){window.location.reload()},5e3)},showThirdSignUpBinded:function(t,n){$("#integration_loginG").remove(),integrationBackground().hide(),this.showLogin("showThirdSignUpBinded",{account:t,email:n})},connect:function(t,n){document.domain=integrationUrls.domain;var e=(window.screen.availHeight-10-500)/2,a=(window.screen.availWi
1dth-30-700)/2;"livespace"===t&&(t="win");var o,i,r=window.open(integrationUrls.trd_login+"/social/connect?plat=pt_en&name="+t+"&callbackUrl="+integrationUrls.domain,"_blank","height=500,width=700,top="+e+",left="+a),c=setInterval((o=r,i=0,function(){if($.cookie("loginsucceed"))return integrationPop.showSignUpSuccess(),$.cookie("loginsucceed",null,{path:"/",domain:"."+integrationUrls.domain}),void clearInterval(c);if($.cookie("emailRegisted"))return integrationPop.showThirdSignUpBinded($.cookie("emailRegisted"),$.cookie(t+"email")),$.cookie("emailRegisted",null,{path:"/",domain:"."+integrationUrls.domain}),void clearInterval(c);if($.cookie("connecterror"))return integrationPop.showWarningInfo(t),$.cookie("connecterror",null,{path:"/",domain:"."+integrationUrls.domain}),void clearInterval(c);if($.cookie("hasRegisted"))return integrationPop.showWarningInfo(t),$.cookie("hasRegisted",null,{path:"/",domain:"."+integrationUrls.domain}),void clearInterval(c);if(o.closed){if(i++,console.log("Window closed, waiting for cookie... "+i),$.cookie("uuzu_UAUTH")&&(window.location.reload(),clearInterval(c)),i<=30)return;$.cookie("uuzu_getGdprInfo",!0,{path:"/",domain:".gtarcade.com"}),clearInterval(c)}else i=0}),500);integrationPop.addDot({key_module:"pop_ups",key_function:n,value:t})},showWarningInfo:function(t){"win"===t&&(t="livespace");var n='<div class="integration_popWrap" id="integration_connect_social_media"><h2 class="integration_popUp_head"><a href="javascript:;" class="btn_close p_close" title="Close" id="integration_signUpSuccessColseBtn">x</a></h2><div class="pop-newsBox "><p class="error-icon" style="font-size: 1em;line-height: 24px">'+langPack["This {plat} account is already bound to a Gta account, please switch {plat} account."].replace(/{plat}/g,t)+'</p></div><div style="text-align: center"><a style="font-size: 1em;background-position: 14px 0;color:#d21034;display: inline-block;" href="'+{google:"https://www.google.com",facebook:"https://www.facebook.com",twitter:"https://www.twitter.com",yahoo:"https://www.yahoo.com",livespace:"https://login.live.com"}[t]+'" target="_blank"> '+langPack["Switch {plat} account"].replace(/{plat}/g,t)+"</a></div></div>";this.picProp.init(n).show(),$(document).on("click","#integration_signUpSuccessColseBtn",function(){$("#integration_connect_social_media").remove(),integrationBackground().hide()})},check_email:function(t){return!t.match(/^[a-zA-Z0-9!#$%&'*+\/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+\/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$/)&&langPack["Please enter a valid email address!"]},changeVerifyCode:function(t,n){var e="",a="login",o="ç»å½";switch(t){case 1:e=$("#logVerifyCode");break;case 2:e=$("#regVerifyCode"),a="signup",o="注å";break;case 3:e=$("#hearderLogVerifyCode");break;case 4:e=$("#gameHearderLogVerifyCode")}integrationPop.addDot({key_module:"page_platform",key_function:a,value:"å®ç½"+o+"_"+o+"å¾å½¢éªè¯"}),$.ajax({type:"GET",url:integrationUrls.passport_url+"/site/captcha?refresh=1",dataType:"jsonp",cache:!1,jsonp:"callback",success:function(t){e.attr("src",integrationUrls.passport_url+t.url),$("body").data(integrationUrls.passport_url+"/site/captcha.hash",[t.hash1,t.hash2]),n&&n()}})},show_verify_code:function(t){var n="";if(""===(n="game"===t?$("#integration_game_login_email").val().trim():$(".integration_login_email").val().trim()))return $(".integration_show_login_verify_code").hide(),$(".integration_game_game_header_verify_code").hide(),!1;$.ajax({type:"GET",url:integrationUrls.passport_url+"/site/showcode",data:"username="+n,dataType:"jsonp",async:!0,cache:!1,jsonp:"callback",success:function(t){1===Number(t.status)?($(".integration_show_login_verify_code").show(),$(".integration_game_game_header_verify_code").show()):($(".integration_show_login_verify_code").hide(),$(".integration_game_game_header_verify_code").hide())}})},show_reg_verify_code:function(){$.ajax({type:"GET",url:integrationUrls.passport_url+"/site/showip",dataType:"jsonp",async:!0,cache:!1,jsonp:"callback",success:function(t){1===Number(t.status)?$(".integration_show_reg_verify_code").show():$(".integration_show_reg_verify_code").hide()}})},login:function(r,c,s,l,t){r&&"undefined"!==r&&c&&"undefined"!==c&&$.ajax({url:integrationUrls.passport_url+"/passport-gta/login",type:"GET",data:{username:r,password:c,
1code:t,keep_login:s,from:l,busFrom:1,deviceId:integrationPop.getBrowerInfo(),deviceType:1,os:integrationPop.getOsInfo()},dataType:"jsonp",success:function(t){if($(".integration_login_btn").removeClass("loading"),1==t.status){if("UZ"===$(".integration_login_btn").attr("data-captcha-type")&&integrationPop.addDot({key_module:"page_platform",key_function:"login",value:"å®ç½ç»å½_ç»å½å¾å½¢éªè¯æå"}),0<t.setcookie.length)for(var n=0;n<t.setcookie.length;n++)$.cookie(t.setcookie[n].name,t.setcookie[n].value,{expires:t.setcookie[n].expires,path:t.setcookie[n].path,domain:t.setcookie[n].domain});$.cookie("uuzu_getGdprInfo",!0,{path:"/",domain:".gtarcade.com"}),$.cookie("account","",{expires:-1,path:"/"}),$.cookie("kurl","",{expires:-1,path:"/"}),1===s?$.cookie("integration_login_email",r,{expires:30,domain:".gtarcade.com",path:"/"}):$.cookie("integration_login_email",null,{domain:".gtarcade.com",path:"/"});var e=integrationPop.getUrlParam("rurl");e?window.location.href=decodeURIComponent(e):window.location.reload()}else if(299==t.status)integrationPop.getDelAccountDetail(),restoreToken=t.data.restore_token,restDay=t.data.end_time,integrationPop.showDelAccountPop(),1<=restDay?(console.log(restDay,"s"),$(".del-pop-content .rest-day").text(restDay),$(".del-pop-content .long-time").show(),$(".del-pop-content .no-time").hide()):($(".del-pop-content .long-time").hide(),$(".del-pop-content .no-time").show());else{var a=1;if("game"===l){for(var o in t.errors)$(".integration_game_"+o+"_warnTB").html('<span class="tip_sj">â²</span>'+t.errors[o][0]).show();"The operation is too frequent, please try again later."===t.message&&$(".integration_game_password_warnTB").html(t.message).show(),a=4}else for(var o in $(".integration_wrong_tip").hide(),t.errors)$("."+o+"_warn").html('<span class="tip_sj">â²</span>'+t.errors[o][0]).show();var i=t.captcha_type;i&&($(".integration_login_btn").attr("data-captcha-type",i),"GT"==i?($(".integration_show_login_verify_code").hide(),integrationPop.popLoginGtCaptcha(function(t){integrationPop.login(r,c,s,l,t)})):"UZ"==i&&($(".integration_show_login_verify_code").show(),integrationPop.changeVerifyCode(a),integrationPop.addDot({key_module:"page_platform",key_function:"login",value:"å®ç½ç»å½_ç»å½å¾å½¢éªè¯å¤±è´¥"})))}},error:function(){$(".integration_login_btn").removeClass("loading")}})},getUrlParam:function(t){var n=new RegExp("(^|&)"+t+"=([^&]*)(&|$)"),e=window.location.search.substr(1).match(n);return null!=e?unescape(e[2]):null},signUp:function(o,i,r,c,s,l,d,g,t,n){if($.trim(o)&&$.trim(i)&&$.trim(r)){$("#integration_signBtn").addClass("disabled");var p=!0;p&&(p=!1,$.ajax({url:integrationUrls.passport_url+"/passport-gta/reg",type:"GET",data:{email:o,password:i,password_re:r,birthYear:c,birthMonth:s,birthDay:l,subscription:d,from:g,code:t},dataType:"jsonp",success:function(t){if($("#integration_signBtn").removeClass("disabled"),$("#integration_signBtn").removeClass("loading"),p=!0,1===Number(t.status)){"UZ"===$("#integration_signBtn").attr("data-captcha-type")&&integrationPop.addDot({key_module:"page_platform",key_function:"signup",value:"å®ç½æ³¨å_注åå¾å½¢éªè¯æå"}),localStorage.setItem("username",o);var n=integrationPop.getUrlParam("rurl");n?window.location.href=decodeURIComponent(n):window.location.reload()}else{for(var e in t.errors){$("#"+("integration_"+e+"_error")).html('<span class="tip_sj">â²</span>'+t.errors[e][0]).show()}var a=t.captcha_type;a&&($("#integration_signBtn").attr("data-captcha-type",a),"GT"==a?($(".integration_show_reg_verify_code").hide(),integrationPop.popSignupGtCaptcha(function(t){integrationPop.signUp(o,i,r,c,s,l,d,g,t)})):"UZ"==a&&($(".integration_show_reg_verify_code").show(),integrationPop.changeVerifyCode(2),integrationPop.addDot({key_module:"page_platform",key_function:"signup",value:"å®ç½æ³¨å_注åå¾å½¢éªè¯å¤±è´¥"})))}},error:function(){$("#integration_signBtn").removeClass("loading")}}))}},logout:function(){$.ajax({url:integrationUrls.passport_url+"/site/logout?callback=?",type:"GET",dataType:"jsonp",success:function(){setTimeout(function(){$.cookie("uuzu_UAUTH",null,{domain:".gtarcade.com",path:"/"}),$.cookie("uuzu_UNICKNAME",null,{domain:".gtarcade.com",path:"/"}),$.cookie("uuzu_getGdprInfo",null,{path:"/",domain:".gtarcade.com"}),$.cookie("gdpr_version",null,{path:"/",domain:".gtarcade.com"}),window.location.reload()},1e3)}})},login_show:function(t){if(integrationPop.addDot({key_module:"pop_ups",key_function:"login",value:"login_button"}),"integration_loginBtn"===t){var n=$("#integration_loginArea input[name='email']").val(),e=$("#integration_loginArea input[name='password']").val(),a=$("#integration_login_code").val(),o=$("#integration_rememberMe").is(":checked")?1:0,i="";if("undefined"===n||""===$.trim(n))return void $("#integration_error_email").show();if($("#integration_error_email").hide(),"undefined"===e||""===$.trim(e))return void $("#integration_error_pwd").show();if($("#integration_error_pwd").hide(),this.check_email(n))return $("#integration_loginArea").find("#integration_error_email").html(this.check_email(n)).show(),!1}$(".integration_login_btn").addClass("loading"),"GT"==$(".integration_login_btn").attr("data-captcha-type")?integrationPop.popLoginGtCaptcha(function(t){integrationPop.login(n,e,o,i,t)}):integrationPop.login(n,e,o,i,a)},check_password_strength:function(t,n){var e=!1,a=new RegExp("qwerty|123456|password|admin|"+n,"ig");return(null!==t.match(a)||t.length<6)&&(e="Pick a stronger password except your email address, simple number"),e},addDot:function(t){window.yoozoo?yoozoo.customDot({event_type:1,key_module:t.key_module,key_function:t.key_function,value:t.value}):$.getScript("https://".concat(envPrefix,"static.gtarcade.com/gta_common/dot/yoozooDot.js").concat(integrationUrls.version),function(){yoozoo.customDot({event_type:1,key_module:t.key_module,key_function:t.key_function,value:t.value})})},drawPlatformFooterHtml:function(){var t='\n <footer class="plate_footer" '.concat(_isCssLoaded?""
1:'style="display: none;"','>\n <section class="main">\n <div class="gta-logo"></div>\n <p class="site-link">\n <a class="integration_gtarcade_plat_frontpoint" integration_data_gtarcade_plat_frontpoint="www-bottom-menu,GTarcade-abouts,//www.gtarcade.com/abouts.html" rel="nofollow" href="//www.gtarcade.com/abouts.html">').concat(langPack["About Us"],'</a>\n <a class="integration_gtarcade_plat_frontpoint" integration_data_gtarcade_plat_frontpoint="www-bottom-menu,GTarcade-contact,//www.gtarcade.com/contact.html" rel="nofollow" href="//www.gtarcade.com/contact.html">').concat(langPack.Contact,'</a>\n <a class="integration_gtarcade_plat_frontpoint" integration_data_gtarcade_plat_frontpoint="www-bottom-menu,GTarcade-privacy,//www.gtarcade.com/privacy.html" rel="nofollow" target="_self" href="//www.gtarcade.com/privacy.html">').concat(langPack["Privacy Policy"],'</a>\n <a class="integration_gtarcade_plat_frontpoint" integration_data_gtarcade_plat_frontpoint="www-bottom-menu,GTarcade-terms,//www.gtarcade.com/terms.html" rel="nofollow" target="_self" href="//www.gtarcade.com/terms.html">').concat(langPack["Terms of Service"],'</a>\n <a class="integration_gtarcade_plat_frontpoint" integration_data_gtarcade_plat_frontpoint="www-bottom-menu,Update-Password," rel="nofollow" id="go_update_password" href="javascript:;">').concat(langPack["Update Password"],'</a>\n <a class="integration_gtarcade_plat_frontpoint" integration_data_gtarcade_plat_frontpoint="www-bottom-menu,Payment-History," rel="nofollow" id="go_pay_history" href="javascript:;">').concat(langPack["Payment History"],'</a>\n </p>\n <p class="social-link">\n <a integration_data_gtarcade_plat_frontpoint="www-bottom-menu,Social-Networking-Twitter,https://twitter.com/GTarcade" rel="nofollow" class="icon-twitter integration_gtarcade_plat_frontpoint" target="_blank" href="https://twitter.com/GTarcade">Twitter</a>\n <a integration_data_gtarcade_plat_frontpoint="www-bottom-menu,Social-Networking-youtubeFollow,https://www.youtube.com/channel/UCBTbBAH48bnkbFf7FE7Wg3A" rel="nofollow" class="icon-YouTube integration_gtarcade_plat_frontpoint" target="_blank" href="https://www.youtube.com/channel/UCBTbBAH48bnkbFf7FE7Wg3A">YouTube</a>\n <a integration_data_gtarcade_plat_frontpoint="www-bottom-menu,Social-Networking-Instagram,https://www.instagram.com/gtarcadeofficial" rel="nofollow" class="icon-Instagram integration_gtarcade_plat_frontpoint" target="_blank" href="https://www.instagram.com/gtarcadeofficial">Instagram</a>\n <a integration_data_gtarcade_plat_frontpoint="www-bottom-menu,Social-Networking-Facebook,https://www.facebook.com/gtarcade" rel="nofollow" class="icon-facebook integration_gtarcade_plat_frontpoint" target="_blank" href="https://www.facebook.com/gtarcade">Facebook</a>\n <a integration_data_gtarcade_plat_frontpoint="www-bottom-menu,Social-Networking-LinkedIn,https://www.linkedin.com/company/2186534" rel="nofollow" class="icon-LinkedIn integration_gtarcade_plat_frontpoint" target="_blank" href="https://www.linkedin.com/company/2186534">LinkedIn</a>\n </p>\n </section>\n </footer>\n ');$("body").append(t),integrationPop.checkIsLogin();$.cookie("lang")&&$.cookie("lang");(navigator.language||navigator.userLanguage).includes("zh")&&integrationPop.addBeian(),"jp"===integrationPop.nowLangSymbol&&integrationPop.addJPTerms()},addBeian:function(){$(".plate_footer .main").append('\n <p class="ft_beian">\n <img style="top: 3px;width: 14px;height: 16px;display: unset;" src="//pic.youzu.com/youzu/web/website_header/img/beian_icon.png?uz1210" border="0">\n <a target="_blank" rel="nofollow" href="https://www.beian.gov.cn/portal/registerSystemInfo?recordcode=31010402010014">沪å
¬ç½å®å¤31010402010014å·</a>\n <img style=";top: 3px;width: 14px;height: 16px;display: unset;" src="//pic.youzu.com/youzu/web/website_header/img/beian_icon2.png?uz1210" border="0">\n <a style="margin-left: 4px;" rel="nofollow" href="https://beian.miit.gov.cn/" target="_blank">沪ICPå¤09058784å·-21</a>\n </p>\n ')},addJPTerms:function(){$(".plate_footer .site-link").append('\n <br>\n <a class="integration_gtarcade_plat_frontpoint" integration_data_gtarcade_plat_frontpoint="www-bottom-menu,https://uterms.gtarcade.com/index.html?id=7017186" rel="nofollow" href="https://uterms.gtarcade.com/index.html?id=7017186">è³éæ±ºæ¸æ³ã«åºã¥ã表示</a>\n <a class="integration_gtarcade_plat_frontpoint" integration_data_gtarcade_plat_frontpoint="www-bottom-menu,https://uterms.gtarcade.com/index.html?id=7017185" rel="nofollow" href="https://uterms.gtarcade.com/index.html?id=7017185">ç¹å®åå弿³ã«åºã¥ã表示</a>\n ')},drawPlatformHeaderHtml:function(){var t='<div class="secretMailboxCheck close"><div class="icon-box"><i class="icon"></i></div><div class="info"><a class="un_link" href="//'.concat(envPrefix,'acct.gtarcade.com/profile/index">').concat(langPack["Bind your recovery email to increase your account security level."],"</a></div></div>
1")+'<header class="integration_topBar" '.concat(_isCssLoaded?"":'style="display: none;"',">")+'<section class="topBar_main clearfix" style="margin: 0px 40px;"><h1 class="topBar_logo"><a class="integration_gtarcade_plat_frontpoint" integration_data_gtarcade_plat_frontpoint="www-top-menu,topBar-logo,//www.gtarcade.com" href="//www.gtarcade.com" title="Play the best online games on GTarcade.com"></a></h1><div class="integration_topBar_nav"><ul></ul></div><div class="integration_Select_Language fr"><p class="integration_now_Lang"></p><ul class="integration_Lang_box" id="lang_change"></ul></div><div class="integration_topBar_login" id="integration_header-login"><div id="signUp" class="integration_btn_signT fr"><a integration_data_gtarcade_plat_frontpoint="www-top-menu,Sign-up," href="javascript:;" class="btn integration_gtarcade_plat_frontpoint integration_fpoint" fpoint="page_platform@@signup@@å®ç½é¡¶é_注å颿¿">'+langPack["Sign up"]+'</a></div><div class="integration_btn_logT fr"><a integration_data_gtarcade_plat_frontpoint="www-top-menu,Log-In," href="javascript:;" class="btn integration_gtarcade_plat_frontpoint integration_fpoint" fpoint="page_platform@@login@@å®ç½é¡¶é_ç»å½é¢æ¿">'+langPack["Log in"]+'</a></div></div><div class="integration_topBar_login" id="integration_header-out" style="display: none;">'+'\n <div class="userAvatar_log fl">\n <a href="https://'.concat(envPrefix,'profile.gtarcade.com/profile/index" class="avatar-link">\n <div class="avatar-border"></div>\n <img class="avatar" src="').concat(integrationUrls.appendFile,'images/layout/default-avatar.png"/>\n </a>\n <span class="station_letter_count" id="stationLetterCount" style="display: none;">0</span>\n <div class="user-info-card">\n <div class="user-info-wrap">\n <div class="user-info">\n <div class="avatar-box">\n <a href="https://').concat(envPrefix,'profile.gtarcade.com/profile/index" class="avatar-link">\n <div class="avatar-border"></div>\n <img class="avatar" src="').concat(integrationUrls.appendFile,'images/layout/default-avatar.png"/>\n </a>\n </div>\n <div class="name">\n <a href="https://').concat(envPrefix,'profile.gtarcade.com/profile/index" class="name-link integration_header-username"></a>\n <a class="more" href="https://').concat(envPrefix,'profile.gtarcade.com/profile/index"></a>\n </div>\n </div>\n <div class="btn-group">\n <a class="btn1 line" href="#task">').concat(langPack["Task Center"],'</a>\n <a class="btn1 fill" href="#mall">').concat(langPack["Welfare Mall"],'</a>\n </div>\n <div class="credit-group">\n <a class="item gcoin" href="https://').concat(envPrefix,'profile.gtarcade.com/profile/wallet">\n <div class="num">0</div>\n </a>\n <a class="item credit" href="https://').concat(envPrefix,'profile.gtarcade.com/profile/point">\n <div class="num">0</div>\n </a>\n </div>\n </div>\n <div class="message" id="userInfoCardMsgWrap"></div>\n <a integration_data_gtarcade_plat_frontpoint="www-top-menu,Log-out," class="integration_btn_logoutT fr integration_gtarcade_plat_frontpoint" id="integration_logoutBtn" href="javascript:void(0);">').concat(langPack["Log out"],"</a>\n </div>\n </div>\n ")+'<p class="userName_log fl"><em>'+'<a href="https://'.concat(envPrefix,'profile.gtarcade.com/profile/index" class="integration_header-username"></a>')+"</em></p></span></div></section></header>",n="",e="",a="";if($("#init_header_html").hide(),$("body").prepend(t),integrationPop.langList&&0!==integrationPop.langList.length&&"{}"!==JSON.stringify(integrationPop.gameList)){$.cookie("uuzu_UNICKNAME")&&integrationPop.isLetterShow&&$.getScript(integrationUrls.appendFile+"integration-js/zmsg.addon.js"+integrationUrls.version,function(){zmsg.init("#stationLetterCount",1,envPrefix),$(".station_letter").css({display:"inline-block"})});for(var o=0;o<integrationPop.langList.length;o++){var i=$.cookie("lang")?$.cookie("lang"):"en-us";integrationPop.langList[o].code!==i&&(n+='<li><a integration_data_gtarcade_plat_frontpoint="www-top-menu,'+integrationPop.langList[o].title+'" class="btn integration_gtarcade_plat_frontpoint" href="javascript:void(0);" urlLang="'+integrationPop.langList[o].symbol+'" lang="'+integrationPop.langList[o].code+'">'+integrationPop.langList[o].title+"</a></li>")}$(".integration_Lang_box").html(n),integrationPop.langList.length<=1&&$(".integration_Select_Language").addClass("less");for(o=0;o<integrationPop.menuList.length;o++)-1===integrationPop.menuList[o].url.indexOf("community.gtarcade.com")?-1==integrationPop.menuList[o].title.indexOf(langPack["Desktop App"]||"Desktop App")?e+='<li class="'+(1===Number(integrationPop.menuList[o].ad_addition.top_menu.content)?"integration_nav_juegos":"")+'"><a class="integration_gtarcade_plat_frontpoint" integration_data_gtarcade_plat_frontpoint="www-top-menu,topBar-'+integrationPop.menuList[o].title+","+integrationPop.menuList[o].url.replace(/^((https?:)?\/\/)/,"$1".concat(envPrefix))+'" href="'+integrationPop.menuList[o].url.replace(/^((https?:)?\/\/)/,"$1".concat(envPrefix))+'" '+(1===Number(integrationPop.menuList[o].is_window)?'target="_blank"':"")+">"+integrationPop.menuList[o].title+"</a></li>":e+='\n <li class="app">\n <a class="integration_gtarcade_plat_frontpoint" href="javascript:void(0);">'.concat(langPack.APP||"APP",'</a>\n <div class="dropdown">\n <a class="integration_gtarcade_plat_frontpoint" integration_data_gtarcade_plat_frontpoint="www-top-menu,topBar-DesktopApp,').concat(integrationPop.menuList[o].url,'" href="').concat(integrationPop.menuList[o].url.replace(/^((https?:)?\/\/)/,"$1".concat(envPrefix)),'" target="_blank">').concat(langPack["Desktop App"]||"Desktop App",'</a>\n <a class="integration_gtarcade_plat_frontpoint" integration_data_gtarcade_plat_frontpoint="www-top-menu,topBar-GTAAPP,https://osact.gtarcade.com/platform/apps/download/index.html" href="https://osact.gtarcade.com/platform/apps/download/index.html" target="_blank">').concat(langPack["Mobile App"]||"Mobile App","</a>\n </div>\n </li>\n "):e+='\n <li class="forum">\n <a class="integration_gtarcade_plat_frontpoint" href="javascript:void(0);">'.concat(langPack.Forum||"Forum",'</a>\n <div class="dropdown">\n <a class="integration_gtarcade_plat_frontpoint" integration_data_gtarcade_plat_frontpoint="www-top-menu,topBar-Forum,https://community.gtarcade.com" href="').concat("https://community.gtarcade.com".replace(/^((https?:)?\/\/)/,"$1".concat(envPrefix)),'" target="_blank">').concat(langPack.Forum||"Forum",'</a>\n <a class="integration_gtarcade_plat_frontpoint" integration_data_gtarcade_plat_frontpoint="www-top-menu,topBar-Forum (Beta),https://forum.gtarcade.com" href="').concat("https://forum.gtarcade.com".replace(/^((https?:)?\/\/)/,"$1".concat(envPrefix)),'" target="_blank">').concat(langPack["Forum (Beta)"]||"Forum (Beta)","</a>\n </div>\n </li>\n ");$(".integration_topBar_nav").html(e),$(".integration_nav_juegos").append('<div class="integration_gameBox_nav clearfix css3_bounceIn"><div class="gamelist-content"></div></div>'),a+=r("mobile_games",integrationPop.gameList.mobile_games),a+=r("browser_games",integrationPop.gameList.browser_games),a+=r("pc_games",integrationPop.gameList.pc_games),$(".integration_gameBox_nav .gamelist-content").html(a),integrationPop._setGameListPos(),$(window).resize(integrationPop._setGameListPos),integrationPop.checkIsLogin(),integrationPop.renderGotCookie(),integrationPop._initUserInfoCardInfo(),integrationPop.secretMailboxCheck()}else console.log("æ°æ®é
置失败ï¼è¯·æ¥çcmsé
ç½®");
1function r(t,n){if(!n||0===n.length)return"";for(var e="",a=0;a<n.length;a++)e+='\n <li class="'.concat(n[a].remark,'">\n <a class="integration_gtarcade_plat_frontpoint" integration_data_gtarcade_plat_frontpoint="www-top-menu,topBar-').concat(a,",").concat(n[a].url,'" href="').concat(n[a].url.replace(/^((https?:)?\/\/)/,"$1".concat(envPrefix?"prv":"")),'" target="_blank">\n <img src="').concat(n[a].thumb[0]||"",'" alt="').concat(n[a].title,'" />\n <span>').concat(n[a].title,"</span>\n </a>\n </li>\n ");return'\n <div class="list_gameBoxNav">\n <h4 class="gamelist-title">'.concat(langPack[t],'</h4>\n <ul class="gamelist-list">\n ').concat(e,"\n </ul>\n </div>\n ")}},drawGameHeaderHtml:function(){var t='<header class="integration_game_topBar" '.concat(_isCssLoaded?"":'style="display: none;"',">")+'<section class="topBar_main clearfix" style="margin: 0px 40px;"><h1 class="topBar_logo"><a href="//www.gtarcade.com" title="Play the best online games on GTarcade.com"></a></h1><div class="integration_game_topBar_nav"></div><div class="integration_game_Select_Language fr"><p class="integration_game_now_Lang">ç®ä½ä¸æ</p><ul class="integration_game_Lang_box" id="lang_change_back"></ul></div><div class="integration_game_topBar_login" id="integration_game_header-login"><ul class="integration_game_QLoginT fr"><li><a href="javascript:;" onclick="integrationPop.connect(\'facebook\',\'login\')" class="FacebookT" title="Facebook"></a></li><li><a href="javascript:;" onclick="integrationPop.connect(\'google\',\'login\')" class="GoogleT" title="Google"></a></li><li><a href="javascript:;" onclick="integrationPop.connect(\'twitter\',\'login\')" class="TwitterT" title="Twitter"></a></li><li><a href="javascript:;" onclick="integrationPop.connect(\'yahoo\',\'login\')" class="YahooT" title="Yahoo"></a></li><li><a href="javascript:;" onclick="integrationPop.connect(\'win\',\'login\')" class="WindowsT" title="Windows"></a></li></ul><div id="integration_game_signUp" class="integration_game_btn_signT fr"><a href="javascript:;" class="btn integration_fpoint" fpoint="page_platform@@signup@@æ¸¸ææ³¨å_注åè´¦å·">'+langPack["Sign up"]+'</a></div><div class="integration_game_btn_logT fr"><a href="javascript:;" class="btn integration_login_btn integration_fpoint" fpoint="page_platform@@signup@@游æç»å½_ç»å½è´¦å·" id="integration_game_login_header">'+langPack["Log in"]+'</a></div><div class="integration_game_Tsign_box_B fr"><div class="Thang"><input name="integration_game_login_email" id="integration_game_login_email" type="text" placeholder="'+langPack.Email+'" class="input_Tlogin"><div class="wrong_tipTB integration_game_username_warnTB" id="integration_game_login_email_error"><span class="tip_sj">â²</span>Please enter a valid email address! </div></div><div class="Thang"><input name="password" id="integration_game_login_password" type="password" placeholder="'+langPack.Password+'" class="input_Tlogin"><div class="wrong_tipTB integration_game_password_warnTB" id="integration_game_login_password_error"><span class="tip_sj">â²</span>Password must be at least 6 characters!'+'<a class="forgotPaswT" href="https://'.concat(envPrefix,'profile.gtarcade.com/password/recovery" class="integration_fpoint" fpoint="page_platform@@login@@å®ç½é¡¶é_ç»å½é¢æ¿_å¯ç æ¾å">Forgot Password?</a>')+'</div></div><div class="Thang integration_game_game_header_verify_code" style="display: none;"><input type="text" id="integration_game_login_code" name="email" class="input_Tlogin fl" placeholder="'+langPack["Verification Code"]+'" style="width:80px; margin-right:10px;"><div class="Tyzm f1" style="float:left;"><img onclick="integrationPop.changeVerifyCode(4);" id="gameHearderLogVerifyCode" align="middle" src="" valign="absmiddle" style="cursor:pointer"></div><div class="wrong_tipTB integration_game_code_warnTB" id="integration_game_login_code_error"><span class="tip_sj">â²</span></div></div></div></div><div class="integration_game_topBar_login" id="integration_game_header-out" style="display: none;">'+'\n <div class="userAvatar_log fl">\n <a href="https://'.concat(envPrefix,'profile.gtarcade.com/profile/index" class="avatar-link">\n <img class="avatar" src="').concat(integrationUrls.appendFile,'images/layout/default-avatar.png"/>\n </a>
1\n <span class="station_letter_count" id="stationLetterCount" style="display: none;">0</span>\n <div class="user-info-card">\n <div class="user-info-wrap">\n <div class="user-info">\n <div class="avatar-box">\n <a href="https://').concat(envPrefix,'profile.gtarcade.com/profile/index" class="avatar-link">\n <img class="avatar" src="').concat(integrationUrls.appendFile,'images/layout/default-avatar.png"/>\n </a>\n </div>\n <div class="name">\n <a href="https://').concat(envPrefix,'profile.gtarcade.com/profile/index" class="name-link integration_game_header-username"></a>\n <a class="more" href="https://').concat(envPrefix,'profile.gtarcade.com/profile/index"></a>\n </div>\n </div>\n <div class="btn-group">\n <a class="btn1 line" href="#task">').concat(langPack["Task Center"],'</a>\n <a class="btn1 fill" href="#mall">').concat(langPack["Welfare Mall"],'</a>\n </div>\n <div class="credit-group">\n <a class="item gcoin" href="https://').concat(envPrefix,'profile.gtarcade.com/profile/wallet">\n <div class="num"></div>\n </a>\n <a class="item credit" href="https://').concat(envPrefix,'profile.gtarcade.com/profile/point">\n <div class="num"></div>\n </a>\n </div>\n </div>\n <div class="message" id="userInfoCardMsgWrap"></div>\n <a integration_data_gtarcade_plat_frontpoint="www-top-menu,Log-out," class="integration_btn_logoutT fr integration_gtarcade_plat_frontpoint" id="integration_logoutBtn" href="javascript:void(0);">').concat(langPack["Log out"],"</a>\n </div>\n </div>\n ")+'<p class="integration_game_userName_log fl"><em><a href="https://'.concat(envPrefix,'profile.gtarcade.com/profile/index" class="integration_game_header-username"></a></em></p>')+"</span></div></section></header>",n="",e="",a="";if($("#init_header_html").hide(),$("body").prepend(t),integrationPop.langList&&0!==integrationPop.langList.length&&"{}"!==JSON.stringify(integrationPop.gameList)){for(var o=0;o<integrationPop.langList.length;o++){var i=$.cookie("lang")?$.cookie("lang"):"en-us";integrationPop.langList[o].code!==i&&(n+='<li><a integration_data_gtarcade_plat_frontpoint="www-top-menu,'+integrationPop.langList[o].title+'" class="btn integration_gtarcade_plat_frontpoint" href="javascript:void(0);" urlLang="'+integrationPop.langList[o].symbol+'" lang="'+integrationPop.langList[o].code+'">'+integrationPop.langList[o].title+"</a></li>")}$(".integration_game_Lang_box").html(n),integrationPop.langList.length<=1&&$(".integration_game_Select_Language").addClass("less");for(o=0;o<integrationPop.menuList.length;o++)e+='<li class="'+(1===Number(integrationPop.menuList[o].ad_addition.top_menu.content)?"integration_game_nav_juegos":"")+'"><a class="integration_gtarcade_plat_frontpoint" integration_data_gtarcade_plat_frontpoint="www-top-menu,topBar-'+integrationPop.menuList[o].title+","+integrationPop.menuList[o].url+'" href="'+integrationPop.menuList[o].url+'" '+(1===Number(integrationPop.menuList[o].is_window)?'target="_blank"':"")+">"+integrationPop.menuList[o].title+"</a></li>";$(".integration_game_topBar_nav").html(e),$(".integration_game_nav_juegos").append('<div class="integration_game_gameBox_nav integration_game_gameBox_nav clearfix css3_bounceIn"><div class="gamelist-content"></div></div>'),a+=r("mobile_games",integrationPop.gameList.mobile_games),a+=r("browser_games",integrationPop.gameList.browser_games),a+=r("pc_games",integrationPop.gameList.pc_games),$(".integration_game_gameBox_nav .gamelist-content").html(a),$.cookie("uuzu_UNICKNAME")&&integrationPop.isLetterShow&&$.getScript(integrationUrls.appendFile+"integration-js/zmsg.addon.js"+integrationUrls.version,function(){zmsg.init("#stationLetterCount",1,envPrefix),$(".station_letter").css({display:"inline-block"})}),integrationPop._setGameListPos(),$(window).resize(integrationPop._setGameListPos),integrationPop.checkIsLogin(),integrationPop.renderGotCookie(),integrationPop._initUserInfoCardInfo()}else console.log("æ°æ®é
置失败ï¼è¯·æ¥çcmsé
ç½®");
1function r(t,n){if(!n||0===n.length)return"";for(var e="",a=0;a<n.length;a++)e+='\n <li class="'.concat(n[a].remark,'">\n <a class="integration_gtarcade_plat_frontpoint" integration_data_gtarcade_plat_frontpoint="www-top-menu,topBar-').concat(a,",").concat(n[a].url,'" href="').concat(n[a].url.replace(/^((https?:)?\/\/)/,"$1".concat(envPrefix?"prv":"")),'" target="_blank">\n <img src="').concat(n[a].thumb[0]||"",'" alt="').concat(n[a].title,'" />\n <span>').concat(n[a].title,"</span>\n </a>\n </li>\n ");return'\n <div class="list_gameBoxNav">\n <h4 class="gamelist-title">'.concat(langPack[t],'</h4>\n <ul class="gamelist-list">\n ').concat(e,"\n </ul>\n </div>\n ")}},drawFooter:function(){window.langPack?this.drawPlatformFooterHtml():this.checkWitchLangNeeded(this.drawPlatformFooterHtml)},drawPlatformHeader:function(){window.langPack?this.drawPlatformHeaderHtml():this.checkWitchLangNeeded(this.drawPlatformHeaderHtml)},drawGameHeader:function(){window.langPack?this.drawGameHeaderHtml():this.checkWitchLangNeeded(this.drawGameHeaderHtml)},drawLoginDialog:function(){var t=_asyncToGenerator(_regenerator().m(function t(){var i,r,n,e,a,o;return _regenerator().w(function(t){for(;;)switch(t.n){case 0:return o=function(){return(o=_asyncToGenerator(_regenerator().m(function t(n){var e,a,o;return _regenerator().w(function(t){for(;;)switch(t.n){case 0:for(integrationPop.langList=n.data.language,integrationPop.isLetterShow=n.data.msg.msg_display,integrationPop.letterUrl=n.data.msg.msg_link,integrationPop.langList&&0!==integrationPop.langList.length||(integrationPop.renderDefaultLang(),console.log("åå§åè¯è¨å表失败ï¼è¯·æ£æ¥cmsé
ç½®")),e=0;e<integrationPop.langList.length;e++)integrationPop.langList[e].code===i&&(integrationPop.nowLangName=integrationPop.langList[e].title,integrationPop.nowLangId=integrationPop.langList[e].id,integrationPop.nowLangSymbol=integrationPop.langList[e].symbol,r=!0);return r||(i=integrationPop.langList[0].code,$.cookie("lang",i,{expires:90,path:"/",domain:".gtarcade.com"})),a="cache_langpack_"+integrationPop.nowLangSymbol,t.n=1,integrationPop.cacheGet(a);case 1:(o=t.v)?(window.langPack=o.data,integrationPop.showLogin("login")):($.ajaxSetup({cache:!0}),$.getScript(integrationUrls.appendFile+"lang/"+i+"/index.js"+integrationUrls.version,function(){integrationPop.showLogin("login"),window.langPack&&integrationPop.cacheSet(a,Object.assign({},window.langPack))}));case 2:return t.a(2)}},t)}))).apply(this,arguments)},a=function(t){return o.apply(this,arguments)},i=$.cookie("lang")?$.cookie("lang"):"en-us",r=!1,n="cache_top_index",t.n=1,integrationPop.cacheGet(n);case 1:(e=t.v)?a(e):$.ajax({type:"GET",url:integrationUrls.globalapi+"unify-top/index",data:{domain:window.location.hostname.replace(/^(qa|prv)\-?/i,"")},dataType:"jsonp",success:function(t){a(t),integrationPop.cacheSet(n,t.data)}});case 2:return t.a(2)}},t)}));return function(){return t.apply(this,arguments)}}(),checkWitchLangNeeded:function(){var t=_asyncToGenerator(_regenerator().m(function t(){var c,s,n,e,a,o;return _regenerator().w(function(t){for(;;)switch(t.n){case 0:return o=function(){return(o=_asyncToGenerator(_regenerator().m(function t(n){var e,a,o,i,r;return _regenerator().w(function(t){for(;;)switch(t.n){case 0:for(r=function(){return(r=_asyncToGenerator(_regenerator().m(function t(){var n,e,a,o,i;return _regenerator().w(function(t){for(;;)switch(t.n){case 0:return i=function(t){integrationPop.menuList=t.data.menu,integrationPop.gameList=t.data.games,1===Number(integrationPop.langList[0].web_type)?(integrationPop.drawPlatformHeaderHtml(),integrationPop.drawPlatformFooterHtml()):integrationPop.drawGameHeaderHtml()},n="cache_top_menu_"+integrationPop.nowLangSymbol,e="cache_top_games_"+integrationPop.nowLangSymbol,t.n=1,integrationPop.cacheGet(n);case 1:return a=t.v,t.n=2,integrationPop.cacheGet(e);case 2:o=t.v,a&&o?i({data:{menu:a.data,games:o.data}}):$.ajax({type:"GET",url:integrationUrls.globalapi+"unify-top/menu",data:{web_type:integrationPop.langList[0].web_type,lang_id:integrationPop.nowLangId,domain:window.location.hostname.replace(/^(qa|prv)\-?/i,"")},dataType:"jsonp",success:function(t){i(t),integrationPop.cacheSet(n,t.data.menu),integrationPop.cacheSet(e,t.data.games,3600)},error:function(){integrationPop.drawPlatformHeaderHtml(),integrationPop.drawPlatformFooterHtml()}});case 3:return t.a(2)}},t)}))).apply(this,arguments)},i=function(){return r.apply(this,arguments)},integrationPop.langList=n.data.language,integrationPop.isLetterShow=n.data.msg.msg_display,integrationPop.letterUrl=n.data.msg.msg_link,integrationPop.langList&&0!==integrationPop.langList.length||(integrationPop.renderDefaultLang(),console.log("åå§åè¯è¨å表失败ï¼è¯·æ£æ¥cmsé
ç½®")),e=0;e<integrationPop.langList.length;e++)integrationPop.langList[e].code===c&&(integrationPop.nowLangName=integrationPop.langList[e].title,integrationPop.nowLangId=integrationPop.langList[e].id,integrationPop.nowLangSymbol=integrationPop.langList[e].symbol,s=!0);return s||(c=integrationPop.langList[0].code,integrationPop.nowLangName=integrationPop.langList[0].title,integrationPop.nowLangId=integrationPop.langList[0].id,integrationPop.nowLangSymbol=integrationPop.langList[0].symbol,$.cookie("lang",c,{expires:90,path:"/",domain:".gtarcade.com"})),a="cache_langpack_"+integrationPop.nowLangSymbol,t.n=1,integrationPop.cacheGet(a);case 1:(o=t.v)?(window.langPack=o.data,i()):($.ajaxSetup({cache:!0}),$.getScript(integrationUrls.appendFile+"lang/"+c+"/index.js"+integrationUrls.version,function(){i(),window.langPack&&integrationPop.cacheSet(a,Object.assign({},window.langPack))}));case 2:return t.a(2)}},t)}))).apply(this,arguments)},a=function(t){return o.apply(this,arguments)},c=$.cookie("lang")?$.cookie("lang"):"en-us",s=!1,n="cache_top_index",t.n=1,integrationPop.cacheGet(n);case 1:(e=t.v)?a(e):$.ajax({type:"GET",url:integrationUrls.globalapi+"unify-top/index",data:{domain:window.location.hostname.replace(/^(qa|prv)\-?/i,"")},dataType:"jsonp",success:function(t){a(t),integrationPop.cacheSet(n,t.data)},error:function(){integrationPop.renderDefaultLang(),$.getScript(integrationUrls.appendFile+"lang/en-us/index.js"+integrationUrls.version,function(){integrationPop.drawPlatformHeaderHtml(),integrationPop.drawPlatformFooterHtml()})}});case 2:return t.a(2)}},t)}));return function(){return t.apply(this,arguments)}}(),prependCSSFile:function(){var t=$("<link>");$("head").append($(t)),$(t).on("load",function(){_isCssLoaded=!0,$(".integration_topBar,.integration_game_topBar,.plate_footer").show()}),t.attr({rel:"stylesheet",type:"text/css",href:integrationUrls.appendFile+"integration-css/integration.css"+integrationUrls.version})},gameHeaderLoginShow:function(){var n=$("#integration_game_login_email").val().trim(),e=$("#integration_game_login_password").val().trim(),t=$("#integration_game_login_code").val().trim(),a=!0;this.check_email(n)?($("#integration_game_login_header").removeClass("disabled"),$("#integration_game_login_email_error").html('<span class="tip_sj">â²</span>'+langPack["Please enter a valid email address!"]).show(),a=!1):($("#integration_game_login_header").removeClass("disabled"),$("#integration_game_login_email_error").hide()),e.trim().length<6?($("#integration_game_login_header").removeClass("disabled"),$("#integration_game_login_password_error").html('<span class="tip_sj">â²</span>'+langPack["Password must be at least 6 characters!"]).show(),a=!1):($("#integration_game_login_header").removeClass("disabled"),$("#integration_game_login_password_error").hide()),a&&$(".integration_login_btn").addClass("loading"),"GT"==$(".integration_login_btn").attr("data-captcha-type")?integrationPop.popLoginGtCaptcha(function(t){integrationPop.login(n,e,$.cookie("integration_login_email")?1:0,"game",t)}):integrationPop.login(n,e,$.cookie("integration_login_email")?1:0,"game",t)},getAjax:function(t,n,e,a,o){$.ajax({type:t,url:n,data:e,dataType:"json","Content-Type":"application/json; charset=UTF-8",xhrFields:{withCredentials:!0},success:function(t){a(t)},error:function(t){o&&o(t)}})},asyncAjax:function(t,a,o){return new Promise(function(n,e){integrationPop.getAjax(t,a,o,function(t){n(t)},function(t){e(t)})})},fetchGdprList:function(){return _asyncToGenerator(_regenerator().m(function t(){var n,e,a,o,i,r,c,s,l,d,g,p,u,f,_;return _regenerator().w(function(t){for(;;)switch(t.n){case 0:if(console.log(1111,integrationPop),integrationPop.nowLangId){t.n=1;break}return t.n=1,new Promise(function(t){setTimeout(t,50)});case 1:return t.n=2,Promise.all([integrationPop.asyncAjax("GET","//ucms-api.gtarcade.com/api/article/list",{site_id:1179,cid:"_gta_header_privacy",lang_id:integrationPop.nowLangId}),integrationPop.asyncAjax("GET","//ucms-api.gtarcade.com/api/article/list",{site_id:1179,cid:"_gta_header_terms",lang_id:integrationPop.nowLangId}),integrationPop.asyncAjax("GET","//ucms-api.gtarcade.com/api/article/list",{site_id:1179,cid:"_gta_header_privacy",lang_id:1}),integrationPop.asyncAjax("GET","//ucms-api.gtarcade.com/api/article/list",{site_id:1179,cid:"_gta_header_terms",lang_id:1})]);case 2:if(n=t.v,e=_slicedToArray(n,4),a=e[0],o=a.data,i=a.status,r=e[1],c=r.data,s=r.status,l=e[2],d=l.data,g=l.status,p=e[3],u=p.data,f=p.status,200==i&&200==s&&200==g&&200==f)return _={privacy:o,terms:c,defaultPrivacy:d,defaultTerms:u},t.a(2,_);t.n=3;break;case 3:return t.a(2,{privacy:[],terms:[],defaultPrivacy:d,defaultTerms:u});case 4:return t.a(2)}},t)}))()},getGdprCms:function(){var n=_asyncToGenerator(_regenerator().m(function t(n){var e,i,r,c,s,l,a,d,g,p,u,o;return _regenerator().w(function(t){for(;;)switch(t.n){case 0:if(e='<div class="integration_policy-diag-box_new" id="integration_policyDiagBox_new"> <div class="integration_policy-diag"> <div class="policy-hd"><a href="javascript:;" class="gdpr_close" title="Close">x</a></div> <div class="policy-bd"> <div class="bd-content" data-type="terms"> <div class="policy terms"></div> <div class="policy privacy"></div> </div> </div> <div class="policy-buttons"> <a href="javascript:void(0);" class="policy-disagree">disagree</a> <a href="javascript:void(0);" class="policy-agree">agree</a> </div> </div> </div>
1',0<$("#integration_policyDiagBox_new").length)return t.a(2);t.n=1;break;case 1:return $("body").append(e),s=c=r=i="",l=this,t.n=2,this.fetchGdprList();case 2:return a=t.v,d=a.privacy,g=a.terms,p=a.defaultPrivacy,u=a.defaultTerms,(o=[]).push(_asyncToGenerator(_regenerator().m(function t(){var n,e,a,o;return _regenerator().w(function(t){for(;;)switch(t.n){case 0:if(0!=(n=d.length?d[0].id:0))return t.n=1,l.asyncAjax("GET","//ucms-api.gtarcade.com/api/article/info",{site_id:1179,id:n});t.n=5;break;case 1:if(200!=(e=t.v).status){t.n=4;break}if(e.data.content){t.n=3;break}return t.n=2,l.asyncAjax("GET","//ucms-api.gtarcade.com/api/article/info",{site_id:1179,id:p[0].id});case 2:200==(a=t.v).status&&(i=a.data.content,c=a.data.summary),t.n=4;break;case 3:i=e.data.content,c=e.data.summary;case 4:t.n=7;break;case 5:return t.n=6,l.asyncAjax("GET","//ucms-api.gtarcade.com/api/article/info",{site_id:1179,id:p[0].id});case 6:200==(o=t.v).status&&(i=o.data.content,c=o.data.summary);case 7:return t.a(2)}},t)}))()),o.push(_asyncToGenerator(_regenerator().m(function t(){var n,e,a,o;return _regenerator().w(function(t){for(;;)switch(t.n){case 0:if(0!=(n=g.length?g[0].id:0))return t.n=1,l.asyncAjax("GET","//ucms-api.gtarcade.com/api/article/info",{site_id:1179,id:n});t.n=5;break;case 1:if(200!=(e=t.v).status){t.n=4;break}if(e.data.content){t.n=3;break}return t.n=2,l.asyncAjax("GET","//ucms-api.gtarcade.com/api/article/info",{site_id:1179,id:u[0].id});case 2:200==(a=t.v).status&&(r=a.data.content,s=a.data.summary),t.n=4;break;case 3:r=e.data.content,s=e.data.summary;case 4:t.n=7;break;case 5:return t.n=6,l.asyncAjax("GET","//ucms-api.gtarcade.com/api/article/info",{site_id:1179,id:u[0].id});case 6:200==(o=t.v).status&&(r=o.data.content,s=o.data.summary);case 7:return t.a(2)}},t)}))()),t.n=3,Promise.all(o);case 3:n({privacyContent:i,termsContent:r,version:c+"|"+s});case 4:return t.a(2)}},t,this)}));return function(t){return n.apply(this,arguments)}}(),getGdprInfo:function(e){var a=this;a.getAjax("GET","https://".concat(envPrefix,"globalapi.gtarcade.com/api/new-gdpr/user-info"),"",function(t){if(0===t.code){var n=t.data.gdpr_version;e!=n&&(integrationPop.gdprDiagShow(),$(document).on("click","#integration_policyDiagBox_new .policy-disagree",function(){0===$("#integration_policyConfirmBox").length&&$("body").append('<div class="integration_policy-confirm-box" id="integration_policyConfirmBox"> <div class="integration_policy-confirm"> <div class="confirm-hd"></div> <div class="confirm-bd">If you do not agree to the above agreement, you can only access the page as a visitor and cannot enjoy game experiences and other platform services.</div> <div class="confirm-buttons"> <a href="javascript:void(0);" class="confirm-disagree">Continue to exit</a> <a href="javascript:void(0);" class="confirm-agree">Go back</a> </div> </div> </div>'),$("#integration_policyConfirmBox").show(),integrationPop.gdprDiagShow(),$(document).on("click","#integration_policyConfirmBox .confirm-disagree",function(){return integrationPop.logout(),!1}),$(document).on("click","#integration_policyConfirmBox .confirm-agree",function(){return $("#integration_policyConfirmBox").hide(),!1})}),$(document).on("click","#integration_policyDiagBox_new .policy-agree",function(){return a.updateGdpr(e,function(t){0===t.code?(integrationPop.gdprDiagHide(),$.cookie("uuzu_getGdprInfo",null,{path:"/",domain:".gtarcade.com"}),$.cookie("gdpr_version",null,{path:"/",domain:".gtarcade.com"})):(alert("update gdpr failed,please try again"),integrationPop.gdprDiagShow())}),integrationPop.gdprDiagShow(),!1}))}})},updateGdpr:function(t,n){this.getAjax("GET","https://".concat(envPrefix,"globalapi.gtarcade.com/api/new-gdpr/update-gdpr"),{account:"",gdprVersion:t},function(t){n(t)})},gdprDiagShow:function(){1==(0<arguments.length&&void 0!==arguments[0]?arguments[0]:1)?$(".integration_policy-diag-box_new .bd-content").attr("data-type","terms"):$(".integration_policy-diag-box_new .bd-content").attr("data-type","privacy"),$("#integration_policyDiagBox_new").show()},gdprDiagHide:function(){$("#integration_policyDiagBox_new").hide()},gdprCommonAction:function(){$(document).on("click","#integration_policyDiagBox_new .policy-hd span",function(){var t=$(this),n=t.index();t.addClass("active").siblings().removeClass("active"),$("#integration_policyDiagBox_new .bd-content").eq(n).addClass("active").siblings().removeClass("active")}),$(document).on("click","#integration_policyDiagBox_new .policy-disagree",function(){return $("input[name='policy0']").prop("checked",!1),$("#integration_signBtn").css({background:"#c7c7c7"}),integrationPop.gdprDiagHide(),!1}),$(document).on("click","#integration_policyDiagBox_new .policy-agree",function(){return $("input[name='policy0']").prop("checked",!0),$("#integration_signBtn").css({background:"#fe9500"}),integrationPop.gdprDiagHide(),!1}),$(document).on("click","#integration_policyDiagBox_new .gdpr_close",function(){$("#integration_policyDiagBox_new .policy-disagree").trigger("click")})},renderDefaultLang:function(){integrationPop.langList=[{id:1,code:"en-us",symbol:"en",title:"English",intro:"è±è¯",status:1,web_type:1}]}
1,renderGotCookie:function(){window.integrationLoadCookie&&"function"==typeof window.integrationLoadCookie&&window.integrationLoadCookie()},getOsInfo:function(){var t=navigator.userAgent.toLowerCase();return-1<t.indexOf("win")?-1<t.indexOf("windows nt 5.0")?"Windows2000":-1<t.indexOf("windows nt 5.1")||-1<t.indexOf("windows nt 5.2")?"WindowsXP":-1<t.indexOf("windows nt 6.0")?"WindowsVista":-1<t.indexOf("windows nt 6.1")||-1<t.indexOf("windows 7")?"Windows7":-1<t.indexOf("windows nt 6.2")||-1<t.indexOf("windows 8")?"Windows8":-1<t.indexOf("windows nt 6.3")?"Windows8.1":-1<t.indexOf("windows nt 6.2")||-1<t.indexOf("windows nt 10.0")?"Windows10":"Windows":-1<t.indexOf("iphone")?"Iphone":-1<t.indexOf("mac")?"Mac":-1<t.indexOf("x11")||-1<t.indexOf("unix")||-1<t.indexOf("sunname")||-1<t.indexOf("bsd")?"Unix":-1<t.indexOf("linux")?-1<t.indexOf("android")?"Android":"Linux":"Unknown"},getBrowerInfo:function(){var t=t||function(a){var t=a.document,o=a.navigator.userAgent.toLowerCase(),e=t.documentMode,i=a.chrome||!1,r={agent:o,isIE:/trident/.test(o),isGecko:0<o.indexOf("gecko")&&o.indexOf("like gecko")<0,isWebkit:0<o.indexOf("webkit"),isStrict:"CSS1Compat"===t.compatMode,supportSubTitle:function(){return"track"in t.createElement("track")},supportScope:function(){return"scoped"in t.createElement("style")},ieVersion:function(){var t=a.navigator.userAgent.toLowerCase(),n=/(msie\s|trident.*rv:)([\w.]+)/.exec(t);try{return n[2]}catch(t){return e}},operaVersion:function(){try{if(a.opera)return o.match(/opera.([\d.]+)/)[1];if(0<o.indexOf("opr"))return o.match(/opr\/([\d.]+)/)[1]}catch(t){return 0}}};try{r.type=r.isIE?"IE":a.opera||0<o.indexOf("opr")?"Opera":0<o.indexOf("chrome")?"Chrome":a.openDatabase?"Safari":0<o.indexOf("firefox")?"Firefox":"unknow",r.version="IE"===r.type?r.ieVersion():"Firefox"===r.type?o.match(/firefox\/([\d.]+)/)[1]:"Chrome"===r.type?o.match(/chrome\/([\d.]+)/)[1]:"Opera"===r.type?r.operaVersion():"Safari"===r.type?o.match(/version\/([\d.]+)/)[1]:"0",r.shell=function(){if(0<o.indexOf("edge"))return r.version=o.match(/edge\/([\d.]+)/)[1]||r.version,"edgeæµè§å¨";if(0<o.indexOf("maxthon"))return r.version=o.match(/maxthon\/([\d.]+)/)[1]||r.version,"岿¸¸æµè§å¨";if(0<o.indexOf("qqbrowser"))return r.version=o.match(/qqbrowser\/([\d.]+)/)[1]||r.version,"QQæµè§å¨";if(0<o.indexOf("se 2.x"))return"æçæµè§å¨";if(i&&"Opera"!==r.type){var t=a.external,n=a.clientInformation.languages;if(t&&"LiebaoGetVersion"in t)return"çè±¹æµè§å¨";if(0<o.indexOf("bidubrowser"))return r.version=o.match(/bidubrowser\/([\d.]+)/)[1]||o.match(/chrome\/([\d.]+)/)[1],"ç¾åº¦æµè§å¨";if(r.supportSubTitle()&&void 0===n){var e=Object.keys(i.webstore).length;return 1<e?"360æéæµè§å¨":"360å®å
¨æµè§å¨"}return"Chrome"}return r.type},r.name=r.shell()}catch(t){}return r}(window);return null==t.name||""==t.name?(t.name="Unknown",t.version=""):null==t.version&&(t.version=""),t.name+t.version},_setGameListPos:function(){var t=-1*$(".integration_nav_juegos,.integration_game_nav_juegos").offset().left,n=$(".integration_topBar,.integration_game_topBar").width(),e=$(document).height();$(".integration_gameBox_nav,.integration_game_gameBox_nav").css({marginLeft:t,width:n,maxHeight:.85*e})},_initUserInfoCardInfo:function(){var t={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",decode:function(t){var n,e,a,o,i="",r=0;for(t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");r<t.length;)n=this._keyStr.indexOf(t.charAt(r++)),e=this._keyStr.indexOf(t.charAt(r++)),a=this._keyStr.indexOf(t.charAt(r++)),o=this._keyStr.indexOf(t.charAt(r++)),i+=String.fromCharCode(n<<2|e>>4),64!=a&&(i+=String.fromCharCode((15&e)<<4|a>>2)),64!=o&&(i+=String.fromCharCode((3&a)<<6|o));return i}};$.cookie("uuzu_UNICKNAME")&&(this.getAjax("GET","https://".concat(envPrefix,"profile.gtarcade.com/api/user/safe-info"),"",function(t){if(0===t.status){var n=window.atob(t.data.head_host),e=window.atob(t.data.head),a="",o=t.data.avatar_box;a=n&&e?"".concat(n).concat(e):"".concat(integrationUrls.appendFile,"images/layout/default-avatar.png"),$(".userAvatar_log img.avatar").attr("src",a),o&&$(".userAvatar_log .avatar-border").css("background-image","url(".concat(o,")"))}}),$.ajax({type:"GET",url:"https://".concat(envPrefix,"integral.gtarca
1de.com/api/getUserPoint"),dataType:"jsonp",cache:!1,jsonp:"callback",success:function(t){0===t.code&&$(".user-info-card .credit-group .credit .num").html(t.data.point||0)}}),this.getAjax("POST","//".concat(envPrefix?"".concat(envPrefix,"-"):"","payapi.gtarcade.com/user/coinsInfo"),{app_id:"SYS619c87c5328491.77416847",account:t.decode($.cookie("uuzu_account"))},function(t){"000000"===t.code&&$(".user-info-card .credit-group .gcoin .num").html(t.data.totalCoins||0)}))},secretMailboxCheck:function(){this.getAjax("POST","//".concat(envPrefix,"profile.gtarcade.com/api/email/popup"),{type:2},function(t){if(0==t.status){if(1==t.data.popup){$(".secretMailboxCheck").removeClass("close").addClass("show");var n=!0;$(".secretMailboxCheck").mouseenter(function(){n=!1,$(".secretMailboxCheck").addClass("show")}),$(".secretMailboxCheck").mouseleave(function(){n=!0,$(".secretMailboxCheck").removeClass("show").addClass("close")}),setTimeout(function(){n&&$(".secretMailboxCheck").removeClass("show").addClass("close")},3e3)}}else console.log(t.msg),$(".secretMailboxCheck").removeClass("show").addClass("close")})},showDelAccountPop:function(){if(0<$(".del-pop-content").length)$(".pop-mask,.del-pop-content").fadeIn(200);else{var t='<div class="pop-mask"></div> <div class="del-pop del-pop-content "> <div class="title"><span class="icon-del"></span>'+langPack["Account deletion in progress"]+'<span class="icon tips" id="tips"></span> </div> <div class="del-content"> <p class="inline-box long-time">'+langPack["Your account will be deleted in <span class='rest-day'></span> days."]+'</p> <p class="inline-box no-time">'+langPack["Your account will be deleted soon."]+'</p> <p class="inline-box">'+langPack["After account deletion, all information will be cleared."]+"</p> <p>"+langPack["You can cancel your account deletion by signing in."]+'</p> </div> <div class="btn-box"> <div class="btn cancel" id="cancel">'+langPack["Cancel Sign in"]+'</div> <div class="btn login" id="login">'+langPack["Sign in"]+'</div> </div> </div> <div class="del-pop del-pop-detail"> <div class="title"><span class="icon-del"></span>'+langPack["Account deletion description"]+'</div> <span class="icon close" id="close"></span> <div class="del-detail" id="delAccountDetail"> </div> </div>';$("body").append(t)}},cancelDelAccount:function(t){$(".del-pop-content .login").addClass("disabled");var r=!0;r&&(r=!1,this.getAjax("POST","//".concat(envPrefix,"profile.gtarcade.com/api/passport/account-restore"),{restore_token:t},function(t){if($(".del-pop-content .login").removeClass("disabled"),r=!0,0==t.status){var n=t.data.login_data.setcookie;if(0<n.length)for(var e=0;e<n.length;e++)$.cookie(n[e].name,n[e].value,{expires:n[e].expires,path:n[e].path,domain:n[e].domain});$.cookie("uuzu_getGdprInfo",!0,{path:"/",domain:".gtarcade.com"}),$.cookie("account","",{expires:-1,path:"/"}),$.cookie("kurl","",{expires:-1,path:"/"});var a=$("#integration_rememberMe").is(":checked")?1:0,o=$("#integration_loginArea input[name='email']").val();1===a?$.cookie("integration_login_email",o,{expires:30,domain:".gtarcade.com",path:"/"}):$.cookie("integration_login_email",null,{domain:".gtarcade.com",path:"/"});var i=integrationPop.getUrlParam("rurl");i?window.location.href=decodeURIComponent(i):window.location.reload()}}))},getDelAccountDetail:function(){this.getAjax("GET","https://ucms-api.gtarcade.com/api/article/list",{site_id:1116,lang_id:integrationPop.nowLangId,cid:"delAccount",offset:0,show:1},function(t){t.data.length&&$("#delAccountDetail").html(t.data[0].content)})},getCaptchaConfig:function(){$.ajax({type:"GET",url:"https://".concat(envPrefix,"profile.gtarcade.com/site/config"),dataType:"jsonp",async:!0,cache:!1,jsonp:"callback",success:function(t){if(0==+t.status&&t.data){var n=t.data.registerCaptchaType,e=+t.data.registerCaptchaStatus;$("#integration_signBtn").attr("data-captcha-type",n),$("#integration_signBtn").attr("data-captcha-status",e),1==e&&"UZ"==n&&integrationPop.changeVerifyCode(2,function(){$(".integration_show_reg_verify_code").show()})}}})},popSignupGtCaptcha:function(n){$("#integration_signBtn").addClass("loading"),integrationPop.addDot({key_module:"page_platform",key_function:"signup",value:"å®ç½æ³¨å_注åè¡ä¸ºéªè¯"}),gtCaptcha.pop({captchaId:"78642ca0b4c668f3a0ea26384ce6816c",failLimit:5,onReady:function(){gtCaptcha&>Captcha.instance&>Captcha.instance.showBox()},onSuccess:function(t){n&&n(t),integrationPop.addDot({key_module:"page_platform",key_function:"signup",value:"å®ç½æ³¨å_注åè¡ä¸ºéªè¯æå"})},onFail:function(t,n){n.msg&&alert(langPack[n.msg]||n.msg),integrationPop.addDot({key_module:"page_platform",key_function:"signup",value:"å®ç½æ³¨å_注åè¡ä¸ºéªè¯å¤±è´¥"})},onLimitFail:function(){alert(langPack["Too many attempts, please wait a bit and try again"])},onClose:function(){$("#integration_signBtn").removeClass("loading")}})},popLoginGtCaptcha:function(n){$(".integration_login_btn").addClass("loading"),integrationPop.addDot({key_module:"page_platform",key_function:"login",value:"å®ç½ç»å½_ç»å½è¡ä¸ºéªè¯"}),gtCaptcha.pop({captchaId:"baa490b6c73f9ca48e7020342703fd7d",fail
1Limit:5,onReady:function(){gtCaptcha&>Captcha.instance&>Captcha.instance.showBox()},onSuccess:function(t){n&&n(t),integrationPop.addDot({key_module:"page_platform",key_function:"login",value:"å®ç½ç»å½_ç»å½è¡ä¸ºéªè¯æå"})},onFail:function(t,n){n.msg&&alert(langPack[n.msg]||n.msg),integrationPop.addDot({key_module:"page_platform",key_function:"login",value:"å®ç½ç»å½_ç»å½è¡ä¸ºéªè¯å¤±è´¥"})},onLimitFail:function(){alert(langPack["Too many attempts, please wait a bit and try again"])},onClose:function(){$(".integration_login_btn").removeClass("loading")}})},cacheSet:function(t,n,e){var a=integrationPop.cacheVersion,o={version:a,data:n};e&&0<Number(e)&&(o.expireAt=Date.now()+1e3*Number(e)),console.log("cacheSet",t,n,a,o.expireAt),localforage.setItem(t,o)},cacheGet:function(){var n=_asyncToGenerator(_regenerator().m(function t(n){var e,a;return _regenerator().w(function(t){for(;;)switch(t.n){case 0:return e=integrationPop.cacheVersion,t.n=1,localforage.getItem(n);case 1:if(!(a=t.v)){t.n=5;break}if(a.expireAt&&Date.now()>a.expireAt)return t.n=2,localforage.removeItem(n);t.n=3;break;case 2:return t.a(2,null);case 3:if(a.version===e)return console.log("cacheGet",n,a.data,e),t.a(2,{data:a.data});t.n=4;break;case 4:return t.n=5,localforage.removeItem(n);case 5:return t.a(2,null)}},t)}));return function(t){return n.apply(this,arguments)}}()};$(document).ready(function(){if(navigator.userAgent.match(/(gtarcade|gta_sdk\/1\.0|phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i))return $("#init_header_html").hide(),!1;function t(t,n){$(document).on("mouseenter",t,function(){$(this).find(n).show().addClass("css3_bounceIn"),clearTimeout(window.integrationPopTimer[n]),delete window.integrationPopTimer[n]}),$(document).on("mouseleave",t,function(){var t=$(this);window.integrationPopTimer[n]=setTimeout(function(){delete window.integrationPopTimer[n],t.find(n).hide().removeClass("css3_bounceIn")},120)})}integrationPop.prependCSSFile(),integrationPop.checkWitchLangNeeded(),integrationPop.checkInputValueIsNeeded(),integrationPop.checkIsLogin(),window.gtCaptcha&>Captcha.init(envPrefix),$(document).on("click",".integration_Lang_box li a,.integration_game_Lang_box li a",function(){return $.cookie("lang",$(this).attr("lang"),{expires:90,path:"/",domain:".gtarcade.com"}),-1!==location.hostname.indexOf("support.gtarcade.com")?window.location.reload():integrationPop.initData&&integrationPop.initData.noChangeUrl?window.location.reload():window.location.href=window.location.protocol+"//"+document.domain+"/"+$(this).attr("urlLang")+"/",!1}),window.integrationPopTimer={},t(".integration_nav_juegos,.integration_Select_Language",".integration_gameBox_nav,.integration_Lang_box"),t(".integration_game_nav_juegos,.integration_game_Select_Language",".integration_game_gameBox_nav,.integration_game_Lang_box"),t(".integration_topBar_login,.integration_game_topBar_login",".user-info-card"),$(document).on("click",".integration_btn_logT,#integration_switchLogin",function(){integrationPop.showLogin("login")}),$(document).on("click",".integration_btn_signT,#integration_signUpF,#integration_game_signUp",function(){integrationPop.showLogin("sign")}),$(document).on("click","#integration_btnGoSign",function(){integrationPop.getCaptchaConfig(),$(".integration_box_SignUpG").stop().removeClass("pageRotate").css({display:"block",opacity:1}),$(".integration_box_loginG").addClass("pageRotate").fadeOut(1e3,function(){$(this).removeClass("pageRotate")}),$(".integration_title_SignUpG").show(),$(".integration_title_loginG").hide(),"showThirdSignUpBinded"===$("#integration_loginG").attr("from")&&$(".integration_existingL").hide()}),$(document).on("click","#integration_btnGoLogin",function(){$(".integration_box_loginG").stop().removeClass("pageRotate").css({display:"block",opacity:1}),$(".integration_box_SignUpG").addClass("pageRotate").fadeOut(1e3,function(){$(this).removeClass("pageRotate")}),$(".integration_title_SignUpG").hide(),$(".integration_title_loginG").show(),"showThirdSignUpBinded"===$("#integration_loginG").attr("from")&&$(".integration_existingL").show()}),$(document).on("click","#integration_loginBtn",function(){$(this).hasClass("loading")||integrationPop.login_show("integration_loginBtn")}),$(document).on("focus","#integration_reg_email, #integration_reg_password, #integration_reg_password_re",function(){switch($(this).attr("id")){case"integration_reg_email":$("#integration_email_error").hide();break;case"integration_reg_password":$("#integration_password_error").hide();break;case"integration_reg_password_re":$("#integration_password_re_error").hide();break;default:$(".integration_wrong_tip").hide()}}),$(document).on("click","#integration_signBtn",function(){if(!$(this).hasClass("loading")){$.cookie("uuzu_UAUTH",null,{domain:".gtarcade.com",path:"/"}),$.cookie("uuzu_UNICKNAME",null,{domain:".gtarcade.com",path:"/"});var t,n=$(this).attr("id");"integration_signBtn"===n?t="integration_signUpArea":"fbloginBtn"===n&&(t="fbloginID");
1var e=$("#"+t).find("#integration_reg_email").val().trim(),a=$("#"+t).find("#integration_reg_password").val().trim(),o=$("#"+t).find("#integration_reg_password_re").val().trim(),i=$("#"+t).find("#integration_reg_code").val().trim(),r=$("#regBox select[name=year]").val()?$("#regBox select[name=year]").val():"0000",c=$("#regBox select[name=month]").val()?$("#regBox select[name=month]").val():"00",s=$("#regBox select[name=day]").val()?$("#regBox select[name=day]").val():"00",l=$("#signUpFrom").val(),d=!0;$(".integration_wrong_tip").hide();var g=integrationPop.check_password_strength(a,e);if(e&&e.match(/^[a-zA-Z0-9!#$%&'*+\/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+\/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$/)||($("#"+t).find("#integration_email_error").show(),d=!1),(!a||a.length<6||g)&&($("#"+t).find("#integration_password_error").html(g).show(),d=!1),(!o||a.pr<6)&&($("#"+t).find("#integration_password_re_error").show(),d=!1),a!==o&&($("#"+t).find("#integration_password_re_error").html('<span class="tip_sj">â²</span>'+langPack["Passwords don't match"]).show(),d=!1),d&&(d=$("input[name='policy0']").prop("checked")),d){$(this).addClass("loading");var p=$(this).attr("data-captcha-type");1==+(d=$(this).attr("data-captcha-status"))&&"GT"==p?integrationPop.popSignupGtCaptcha(function(t){integrationPop.signUp(e,a,o,r,c,s,0,l,t)}):integrationPop.signUp(e,a,o,r,c,s,0,l,i)}else integrationPop.changeVerifyCode(2)}}),$(document).on("click","#integration_logoutBtn,#integration_game_logoutBtn",function(){integrationPop.logout()}),$(document).on("click","#integration_game_login_header",function(){$(this).hasClass("loading")||($(this).addClass("disabled"),integrationPop.gameHeaderLoginShow())}),$(document).on("click",".integration_gtarcade_plat_frontpoint",function(){var t=$(this).attr("integration_data_gtarcade_plat_frontpoint");integrationPop.addDot({key_module:t.split(",")[0]?t.split(",")[0]:"",key_function:t.split(",")[0]?t.split(",")[0]:"",value:t.split(",")[0]?t.split(",")[0]:""})}),$(document).on("click",".integration_fpoint",function(){var t=$(this).attr("fpoint").split("@@");integrationPop.addDot({key_module:t[0],key_function:t[1],value:t[2]})}),$(document).on("click","#go_update_password,#go_pay_history",function(){$.cookie("uuzu_UNICKNAME")?"go_update_password"==$(this).attr("id")?$(this).attr("href","https://profile.gtarcade.com/password/security?tab=pass"):$(this).attr("href","https://pay.gtarcade.com/charge/history"):integrationPop.showLogin("login")});-1==="pay.gtarcade.com".indexOf(window.location.host)&&integrationPop.getGdprCms(function(t){if(t){var n=t.privacyContent,e=t.termsContent,a=t.version;$.cookie("gdpr_version",a,{path:"/",domain:".gtarcade.com"}),$("#integration_policyDiagBox_new .bd-content .terms").eq(0).html(e),$("#integration_policyDiagBox_new .bd-content .privacy").eq(0).html(n),$.cookie("uuzu_UNICKNAME")&&$.cookie("uuzu_UAUTH")&&$.cookie("uuzu_getGdprInfo")&&integrationPop.getGdprInfo(a)}}),$(document).on("click",".del-pop-content .tips",function(){$(".del-pop-detail").fadeIn(200)}),$(document).on("click",".del-pop-detail .close",function(){$(".del-pop-detail").fadeOut(200)}),$(document).on("click",".del-pop-content .cancel",function(){$(".pop-mask,.del-pop-content").fadeOut(200)}),$(document).on("click",".del-pop-content .login",function(){integrationPop.cancelDelAccount(restoreToken)}),integrationPop.gdprCommonAction();try{$.ajax({url:"https://ucms-api.youzu.com/api/da/info?site_id=116&position=4k",success:function(t){var n=t.data.remark&&JSON.parse(t.data.remark),e=window.location.href.split("?")[0],a=window.location.host.split(".")[0];if(!n[a])return!1;var o=!1;n[a]&&n[a].forEach(function(t){(-1<e.indexOf(t)||"*"===t)&&(o=!0)}),o&&(document.documentElement.style.zoom=Math.max(1,document.documentElement.clientWidth/1920))}})}catch(t){console.error(t)}});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.