1function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _assertClassBrand(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function asyncGeneratorStep(e,t,n,r,o,a,i){try{var s=e[a](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function _asyncToGenerator(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){asyncGeneratorStep(a,r,o,i,s,"next",e)}function s(e){asyncGeneratorStep(a,r,o,i,s,"throw",e)}i(void 0)})}}function _callSuper(e,t,n){return t=_getPrototypeOf(t),_possibleConstructorReturn(e,_isNativeReflectConstruct()?Reflect.construct(t,n||[],_getPrototypeOf(e).constructor):t.apply(e,n))}function _checkPrivateRedeclaration(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _classPrivateFieldGet2(e,t){return e.get(_assertClassBrand(e,t))}function _classPrivateFieldInitSpec(e,t,n){_checkPrivateRedeclaration(e,t),t.set(e,n)}function _classPrivateFieldSet2(e,t,n){return e.set(_assertClassBrand(e,t),n),n}function _classPrivateMethodInitSpec(e,t){_checkPrivateRedeclaration(e,t),t.add(e)}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_toPropertyKey(r.key),r)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _createForOfIteratorHelper(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=_unsupportedIterableToArray(e))||t){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){s=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(s)throw a}}}}function _defineProperty(e,t,n){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=_superPropBase(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},_get.apply(null,arguments)}function _getPrototypeOf(e){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf(e)}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t)}function _isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_isNativeReflectConstruct=function(){return!!e})()}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _iterableToArrayLimit(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}
vendor: 4,212 bytes, line 1
1finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return s}}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 _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _objectSpread2(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach(function(t){_defineProperty(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _objectWithoutProperties(e,t){if(null==e)return{};var n,r,o=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}function _possibleConstructorReturn(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _regenerator(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var c=r&&r.prototype instanceof s?r:s,u=Object.create(c.prototype);return _regeneratorDefine(u,"_invoke",function(n,r,o){var a,s,c,u=0,l=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return a=t,s=0,c=e,p.n=n,i}};function f(n,r){for(s=n,c=r,t=0;!d&&u&&!o&&t<l.length;t++){var o,a=l[t],f=p.p,_=a[2];n>3?(o=_===r)&&(c=a[(s=a[4])?5:(s=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=n<2&&f<a[1])?(s=0,p.v=r,p.n=a[1]):f<_&&(o=n<3||a[0]>r||r>_)&&(a[4]=n,a[5]=r,p.n=_,s=0))}if(o||n>1)return i;throw d=!0,r}return function(o,l,_){if(u>1)throw TypeError("Generator is already running");for(d&&1===l&&f(l,_),s=l,c=_;(t=s<2?e:c)||!d;){a||(s?s<3?(s>1&&(p.n=-1),f(s,c)):p.n=c:p.v=c);try{if(u=2,a){if(s||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=a.return)&&t.call(a),s<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),s=1);a=e}else if((t=(d=p.n<0)?c:n.call(r,p))!==i)break}catch(t){a=e,s=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,o,a),!0),u}var i={};function s(){}function c(){}function u(){}t=Object.getPrototypeOf;var l=[][r]?t(t([][r]())):(_regeneratorDefine(t={},r,function(){return this}),t),d=u.prototype=s.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,_regeneratorDefine(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=u,_regeneratorDefine(d,"constructor",u),_regeneratorDefine(u,"constructor",c),c.displayName="GeneratorFunction",_regeneratorDefine(u,o,"GeneratorFunction"),_regeneratorDefine(d),_regeneratorDefine(d,o,"Generator"),_regeneratorDefine(d,r,function(){return this}),_regeneratorDefine(d,"toString",function(){return"[object Generator]"}),(_regenerator=function(){return{w:a,m:p}})()}function _regeneratorDefine(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}_regeneratorDefine=function(e,t,n,r){function a(t,n){_regeneratorDefine(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},_regeneratorDefine(e,t,n,r)}function _regeneratorValues(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);
1if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(typeof e+" is not iterable")}function _setPrototypeOf(e,t){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_setPrototypeOf(e,t)}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _superPropBase(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=_getPrototypeOf(e)););return e}function _superPropGet(e,t,n,r){var o=_get(_getPrototypeOf(e.prototype),t,n);return"function"==typeof o?function(e){return o.apply(n,e)}:o}function _toArray(e){return _arrayWithHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableRest()}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _toPrimitive(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==typeof t?t:t+""}function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}var baseHttp="https://".concat(window.location.host,"/api"),STORAGE_KEYS={TRACK_ENTRY_TYPE:"track_entry_type",REFERRING_PAGE_AFTER_LOGOUT:"referring_page_after_logout",AUTH_TOKEN:"auth_token",AUTH_ID:"auth_id",TOKEN:"token",REGISTRATION_VIA_AMPLITUDE:"registration_via_amplitude",REG_PLACEMENT:"reg_placement",USER_REVIEW_POPUP_INTENT:"user_review_popup_intent",LOGIN_ONE_TIME:"login_one_time",SHOW_AUTH_BANNER:"show_auth_banner",SHOW_AUTH_WHEELS:"show_auth_wheels",CHECK_REGISTRATION_VIA:"check_registration_via",GOOGLE_ONE_TAP:"google_one_tap",WIDGET_QUICK_LINKS:"widget_quick_links",PAGE_AFF_LINK_CLICK_INDEX:"page_aff_link_click_index",SEARCH_FORM_POPULAR:"search_form_popular",SEARCH_FORM_SLOTS:"search_form_slots",ADD_USER_PROPERTIES_EXIST:"add_user_properties_exist",AM_SESSION_ID:"am_session_id",AM_DEVICE_ID:"am_device_id",UTM_PARAMS:"utm_params",HAS_UTM_VISITED:"has_utm_visited",UTM_INIT_PARAMS:"utm_init_params",UTM_DATA_LAYER_PUSHED:"utm_data_layer_pushed",UTM_LOGGED_USER_DATA_LAYER_PUSHED:"utm_logged_user_data_layer_pushed",FIRST_PAGE_VISIT:"first_page_visit",STORAGE_SPONSORED_DATE:"storage_sponsored_date",KEITARO:"keitaro",KEITARO_CAMPAIGN:"keitaro_campaign",MIDORI_COOKIES:"midori_cookies",EXIT_POPUP:"exit_popup",WHEELS_EXIT_POPUP:"wheels_exit_popup",ADMIN_PANEL_HIDDEN:"admin_panel_hidden",PARTNER_CASINO_ID:"partner_casino_id",GEO:"geo",GEO_FACT:"geo_fact",CHANGED_GEO:"changed_geo",EMAIL_POPUP_STORAGE:"email_popup_storage",ADD_EVENTS_VISIT_PAGE_REDIRECT_VIEW:"add_events_visit_page_redirect_view",INTENT_FIT_LOG:"intent_fit_log",SCROLL_POSITION:"scroll_position",AUTH_WHEELS_POPUP_CONGRATULATIONS:"auth_wheels_popup_congratulations",VISITED_PATHS:"visited_paths",VISITED_PATHS_EXPIRING:"visited_paths_expiring",REGISTER_COINS_EVENT:"register_coins_event",ALTERNATIVE_SPONSORED_OFFERS:"alternative_sponsored_offers",SHOP_BANNER_HIDDEN:"shop_banner_hidden",TAB_LABEL_HIDDEN:"tab_label_hidden",TG_REG_POPUP:"tg_reg_popup",BONUSES_REACTIONS:"bonuses_reactions",REACTIONS_FEEDBACK_POPUP:"reactions_feedback_popup",REACTIONS_FEEDBACK_POPUP_COUNT:"reactions_feedback_popup_count",FORUM_SSO_READY:"forum_sso_ready",HB_CLAIM:"hb_claim",HB_SUPER:"hb_super",HB_REGISTRATION:"hb_registration"};
1function extendStorage(e){Object.keys(STORAGE_KEYS).forEach(function(t){var n=STORAGE_KEYS[t].replace(/_([a-z])/g,function(e,t){return t.toUpperCase()}).replace(/^([a-z])/,function(e,t){return t.toUpperCase()});e["get".concat(n)]=function(){return e.getItem(STORAGE_KEYS[t])},e["set".concat(n)]=function(n){return e.setItem(STORAGE_KEYS[t],n)},e["remove".concat(n)]=function(){return e.removeItem(STORAGE_KEYS[t])}})}var storage$1={getItem:function(e){try{var t=localStorage.getItem(e);return t?JSON.parse(t):null}catch(e){return null}},setItem:function(e,t){try{localStorage.setItem(e,JSON.stringify(t))}catch(e){}},removeItem:function(e){try{localStorage.removeItem(e)}catch(e){}},clear:function(){try{localStorage.clear()}catch(e){}}};extendStorage(storage$1),window.storage=storage$1;var __bridge_storage=Object.freeze({__proto__:null,default:storage$1}),onIdle=function(e){"requestIdleCallback"in window?requestIdleCallback(e,{timeout:arguments.length>1&&void 0!==arguments[1]?arguments[1]:2e3}):setTimeout(e,200)},idleQueue=[],idleQueueRunning=!1,_runIdleQueue=function(){var e=idleQueue.shift();e?(idleQueueRunning=!0,onIdle(_asyncToGenerator(_regenerator().m(function t(){return _regenerator().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,t.n=1,e();case 1:t.n=3;break;case 2:t.p=2,t.v;case 3:_runIdleQueue();case 4:return t.a(2)}},t,null,[[0,2]])})),3e3)):idleQueueRunning=!1},queueIdleTask=function(e){idleQueue.push(e),idleQueueRunning||_runIdleQueue()},yieldToMain=function(){return"undefined"!=typeof scheduler&&"function"==typeof scheduler.yield?scheduler.yield():new Promise(function(e){return setTimeout(e,0)})};document.location.host.replace("loc.","").replace("dev.","").replace("green.","").replace("blue.","");var getDomainName=function(){var e=document.location.hostname,t=(e=e.replace(/^(loc\d*\.|dev\d*\.|preprod\d*\.|qa\d*\.|sandbox\d*\.|presandbox\d*\.|stage\d*\.)/i,"")).match(/^(?:https?:\/\/)?([^\/:]+\.[^\/:]+)(?::\d+)?$/);return t?t[1]:e},eventPush=function(e){window.dataLayer=window.dataLayer||[],setTimeout(function(){dataLayer.push(e)},0)},AMPLITUDE_API_KEY="519e6213bd7243eed35df240d6822359",AMPLITUDE_COOKIE_NAME="AMP_".concat(AMPLITUDE_API_KEY.substring(0,10)),AMPLITUDE_LEGACY_COOKIE_NAME="amp_".concat(AMPLITUDE_API_KEY.substring(0,6)),AMPLITUDE_STORAGE_SYNC_DELAY=500,AMPLITUDE_STORAGE_SYNC_MAX_RETRIES=50,readRawCookie=function(e){var t=document.cookie.match(new RegExp("(^| )"+e+"=([^;]+)"));if(!t)return null;try{return decodeURIComponent(t[2])}catch(e){return t[2]}},readAmplitudeCookiePayload=function(){var e=readRawCookie(AMPLITUDE_COOKIE_NAME);if(!e)return null;try{return JSON.parse(decodeURIComponent(atob(e)))}catch(e){return null}},getAmplitudeDeviceId=function(){var e,t=(null!==(e=readAmplitudeCookiePayload())&&void 0!==e?e:{}).deviceId;if(t)return t;var n=readRawCookie(AMPLITUDE_LEGACY_COOKIE_NAME);return n?n.split(".")[0]:null},getAmplitudeSessionId=function(){var e,t=readRawCookie("am_session_id");if(t&&"null"!==t)return t;var n=(null!==(e=readAmplitudeCookiePayload())&&void 0!==e?e:{}).sessionId;return null!=n?n:null},amplitudeStorageSyncScheduled=!1,amplitudeStorageSyncAttempts=0,scheduleAmplitudeStorageSync=function(){amplitudeStorageSyncScheduled||amplitudeStorageSyncAttempts>=AMPLITUDE_STORAGE_SYNC_MAX_RETRIES||(amplitudeStorageSyncScheduled=!0,amplitudeStorageSyncAttempts+=1,setTimeout(function(){amplitudeStorageSyncScheduled=!1,checkIfAmplitudeAndAnalyticsLoaded()},AMPLITUDE_STORAGE_SYNC_DELAY))},checkIfAmplitudeAndAnalyticsLoaded=function(){var e,t,n,r,o,a=storage$1.getAmSessionId(),i=storage$1.getAmDeviceId();if(Boolean(a)&&Boolean(i))return{am_session_id:a,am_device_id:i};var s=null===(e=window.amplitude)||void 0===e||null===(t=e.getSessionId)||void 0===t?void 0:t.call(e),c=null!==(n=null===(r=window.amplitude)||void 0===r||null===(o=r.getDeviceId)||void 0===o?void 0:o.call(r))&&void 0!==n?n:getAmplitudeDeviceId();if(s&&c)return storage$1.setAmSessionId(s),storage$1.setAmDeviceId(c),{am_session_id:s,am_device_id:c};scheduleAmplitudeStorageSync()},externalIdCache=new Map,externalIdUtcDate=function(){return(new Date).toISOString().slice(0,10)},externalIdCacheKey=function(e,t,n){return"".concat(e,"|").concat(t,"|").concat(n,"|").concat(externalIdUtcDate())},resolveAmplitudeIds=function(){var e,t,n=checkIfAmplitudeAndAnalyticsLoaded();return{sessionId:null!==(e=null==n?void 0:n.am_session_id)&&void 0!==e?e:getAmplitudeSessionId(),deviceId:null!==(t=null==n?void 0:n.am_device_id)&&void 0!==t?t:getAmplitudeDeviceId()}},buildExternalId=function(){var e=_asyncToGenerator(_regenerator().m(function e(t){var n,r,o,a,i,s,c;return _regenerator().w(function(e){for(;;)switch(e.p=e.n){case 0:if(r=resolveAmplitudeIds(),o=r.sessionId,a=r.deviceId,o&&a&&t){e.n=1;break}return e.a(2,null);case 1:if(i=externalIdCacheKey(o,a,t),!externalIdCache.has(i)){e.n=2;break}return e.a(2,externalIdCache.get(i));case 2:if(null!==(n=window.crypto)&&void 0!==n&&n.subtle){e.n=3;break}return e.a(2,null);case 3:return e.p=3,e.n=4,window.crypto.subtle.digest("SHA-256",(new TextEncoder).encode(i));case 4:return s=e.v,c=Array.from(new Uint8Array(s)).map(function(e){return e.toString(16).padStart(2,"0")}).join("").slice(0,16),externalIdCache.set(i,c),e.a(2,c);case 5:return e.p=5,e.v,e.a(2,null)}},e,null,[[3,5]])}));return function(t){return e.apply(this,arguments)}}(),navAff=function(e,t,n,r,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,i=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=document.body.dataset.geo.toLowerCase(),c=r?r.split(",").map(function(e){return e.toLowerCase()}):[],u=!1;s&&c.length&&(u=c.find(function(e){return e===s})),n&&eventPush(n);var l=e.includes("?bonus="),d=e.includes("?referer=");
1if(l||d){if(!u&&o){var p=_objectSpread2(_objectSpread2({},checkIfAmplitudeAndAnalyticsLoaded()),i);navKeitaroApi(e,!!t,p,a)}}else normalizeBlankUrlAndRedirect(e,t)},normalizeBlankUrlAndRedirect=function(e,t){var n=e.toString();if(t){var r=window.open("about:blank","_blank");r?r.location.href=n:window.location.href=n}else window.location.href=n},navForm=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.includes("?bonus="),o=e.includes("?referer=");if(r||o){var a,i=e.split("?")[1],s=e.split("?")[0],c={};i&&i.split("&").forEach(function(e){var t=_slicedToArray(e.split("="),2),n=t[0],r=t[1];n&&r&&(c[n]=decodeURIComponent(r))}),c.bonus&&(n.bonus=c.bonus),c.bonus_position&&(n.position=c.bonus_position),c.referer&&(n.referer=c.referer),n.domain=s,n.path=window.location.pathname,n.site=document.body.dataset.siteId;var u=document.createElement("form");for(var l in u.id="postForm",u.action="/redirect",u.method="post",u.enctype="multipart/form-data",t&&(u.target="_blank"),n){var d=document.createElement("input");d.type="hidden",d.name=l,d.value=n[l],u.append(d)}document.body.append(u),u.submit(),null===(a=document.querySelector("#postForm"))||void 0===a||a.remove()}else t?window.open(e,"_blank"):document.location.href=e},navKeitaroApi=function(){var e=_asyncToGenerator(_regenerator().m(function e(t){var n,r,o,a,i,s,c,u=arguments;return _regenerator().w(function(e){for(;;)switch(e.p=e.n){case 0:return n=u.length>1&&void 0!==u[1]&&u[1],r=u.length>2&&void 0!==u[2]?u[2]:{},o=u.length>3&&void 0!==u[3]?u[3]:null,e.n=1,buildExternalId(extractBonusId(t));case 1:if((a=e.v)&&(r.external_id=a),i=prepareKeitaroUrlWithParams(t,r)){e.n=2;break}return e.a(2);case 2:return e.p=2,o&&o.classList.add("loading"),e.n=3,fetch(i,{method:"GET",mode:"cors",credentials:"same-origin",headers:{Accept:"text/plain"}});case 3:return s=e.v,e.n=4,s.text();case 4:if((c=e.v.trim())&&c.startsWith("http")){e.n=5;break}return normalizeBlankUrlAndRedirect(i,n),e.a(2);case 5:normalizeBlankUrlAndRedirect(c,n),e.n=7;break;case 6:e.p=6,e.v,normalizeBlankUrlAndRedirect(i,n);case 7:return e.p=7,o&&o.classList.remove("loading"),e.f(7);case 8:return e.a(2)}},e,null,[[2,6,7,8]])}));return function(t){return e.apply(this,arguments)}}(),extractBonusId=function(e){try{return new URL(e.startsWith("http")?e:"https://"+e).searchParams.get("bonus")}catch(e){return null}},prepareKeitaroUrlWithParams=function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=document.body.dataset.keitaroUrl;if(o){var a;try{a=atob(o)}catch(e){return}var i,s=new URL(e.startsWith("http")?e:"https://"+e),c=s.hostname,u=s.searchParams,l=new URL(a);if(l.searchParams.set("casino",c),u.forEach(function(e,t){l.searchParams.set(t,e)}),u.get("bonus")&&(r.bonus=u.get("bonus")),u.get("offer_type")&&(r.offer_type=u.get("offer_type")),u.get("bonus_position")&&(r.position=u.get("bonus_position")),u.get("country_code"))r.country_code=u.get("country_code");else{var d=document.body.dataset.geoFact;d&&d.length&&(r.country_code=d.toLowerCase())}if(u.get("user_id"))r.user_id=u.get("user_id");else{var p=document.body.dataset.userId;p&&""!==p&&(r.user_id=p)}if(u.get("email"))r.email=u.get("email");else{var f=document.body.dataset.userEmail;f&&""!==f&&(r.email=f)}if(r.path=window.location.pathname,r.site=document.body.dataset.siteId,!u.has("referer"))i=r.path?"".concat(window.location.origin).concat(r.path):document.referrer&&new URL(document.referrer).host===window.location.host?document.referrer:window.location.href,r.referrer=i,r.se_referrer=i;var _,g;if(u.get("am_session_id"))r.am_session_id=u.get("am_session_id");else{var m=(_="am_session_id",(g=document.cookie.match(new RegExp("(^| )"+_+"=([^;]+)")))?decodeURIComponent(g[2]):null);m&&(r.am_session_id=m)}if(u.get("am_device_id"))r.am_device_id=u.get("am_device_id");else{var h=getAmplitudeDeviceId();h&&(r.am_device_id=h)}var y=(null===(t=storage$1.getUtmParams)||void 0===t?void 0:t.call(storage$1))||{};Object.entries(y).forEach(function(e){var t=_slicedToArray(e,2),n=t[0],o=t[1];null!=o&&""!==o&&(r[n]=String(o))}),Object.entries(r).forEach(function(e){var t=_slicedToArray(e,2),n=t[0],r=t[1];null!=r&&""!==r&&l.searchParams.set(n,r)});var v=String(null!==(n=storage$1.getKeitaroCampaign())&&void 0!==n?n:"").trim().replace(/^\/+|\/+$/g,"");return v&&(l.pathname="/".concat(v)),l.toString()}},setBonusPositions=function(){Array.from(document.querySelectorAll("[data-bonus]")).filter(function(e){return!isNaN(e.dataset.bonus)}
1).forEach(function(e,t){e.dataset.bonusPosition=t+1})},elementInViewport=function(e){if(!e)return!1;for(var t=e.offsetTop,n=e.offsetLeft,r=e.offsetWidth,o=e.offsetHeight;e.offsetParent;)t+=(e=e.offsetParent).offsetTop,n+=e.offsetLeft;return t<window.pageYOffset+window.innerHeight&&n<window.pageXOffset+window.innerWidth&&t+o>window.pageYOffset&&n+r>window.pageXOffset},getAmplitudeCookie=function(e){var t="; ".concat(document.cookie).split("; ".concat(e,"="));if(2===t.length)return t.pop().split(";").shift()},hexToHSL=function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=_slicedToArray((e=e.replace("#","")).match(/.{2}/g).map(function(e){return parseInt(e,16)/255}),3),a=o[0],i=o[1],s=o[2],c=Math.max(a,i,s),u=Math.min(a,i,s),l=c-u;0===l?t=0:(t=_defineProperty(_defineProperty(_defineProperty({},a,(i-s)/l),i,(s-a)/l+2),s,(a-i)/l+4)[c]%6,t*=60);var d=(c+u)/2;return n=0===l?0:l/(1-Math.abs(2*d-1)),"hsl(".concat(Math.round(t),", ").concat(Math.round(100*n),"%, ").concat(Math.round(r||100*d),"%)")},fadeOut=function(e){e.style.opacity=1,function t(){(e.style.opacity-=.1)<0?e.style.display="none":requestAnimationFrame(t)}()},fadeIn=function(e,t){e.style.opacity=0,e.style.display=t||"block",function t(){var n=parseFloat(e.style.opacity);(n+=.1)>1||(e.style.opacity=n,requestAnimationFrame(t))}()},fadeToggle=function(e){!e.style.opacity||e.style.opacity<0?fadeIn(e):fadeOut(e)},externalLinkClick=function(e){e.length>0&&e.forEach(function(e){e.addEventListener("click",function(t){if(t.preventDefault(),"false"!==e.dataset.aff){var n=e.dataset.href;"no"===e.dataset.blank?document.location.href=n:window.open(n,"_blank")}})})},internalLinkClick=function(e){e.length>0&&e.forEach(function(e){e.addEventListener("click",function(t){t.preventDefault();var n=e.dataset.href;n&&(document.location.href=n)})})},setCookie=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"/",o=new Date;o.setTime(o.getTime()+24*n*60*60*1e3),document.cookie="".concat(e,"=").concat(t||"","; expires=").concat(o.toUTCString(),"; path=").concat(r)},getCookie=function(e){var t="; ".concat(document.cookie).split("; ".concat(e,"="));if(2===t.length)return t.pop().split(";").shift()},deleteCookie=function(e){document.cookie=e+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;"},getLocaleCountry=function(){var e;return(null===(e=document.querySelector("body").dataset.localeCountry)||void 0===e?void 0:e.toLowerCase())||null},removeBannersAfterFirst=function(e){var t=Array.from(e);if(t.length>1)for(var n=1;n<t.length;n++)t[n].parentNode.removeChild(t[n])},clearGetParameters=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).removeOnly,t=void 0===e?[]:e,n=new URL(window.location.href),r=n.pathname,o=new URLSearchParams(n.search);if(t.length>0){t.forEach(function(e){return o.delete(e)});var a=o.toString(),i="".concat(r).concat(a?"?".concat(a):"").concat(n.hash);history.replaceState(null,"",i)}else{var s=o.has("casino"),c=o.has("bonus");"/redirect"===r&&("/redirect"!==r||s&&c)||history.replaceState(null,"",r)}},prepareUtmParams=function(){var e=new URLSearchParams(window.location.search),t={},n=!1,r=e.get("token"),o=JSON.parse(getReferrer().last_page_source_name),a=JSON.parse(getReferrer().last_page_source_type),i="internal"===o&&"internal"===a;["utm_source","utm_medium","utm_campaign","utm_content","utm_term"].forEach(function(r){var i=e.get(r);if(i)t[r]=JSON.stringify(i),n=!0;else switch(r){case"utm_source":t.utm_source=JSON.stringify(o);break;case"utm_medium":t.utm_medium=JSON.stringify(a);break;default:t[r]=JSON.stringify("none")}}),n||!i?(storage$1.setUtmParams(t),(n||r)&&(localStorage.removeItem("utm_attribution_used"),clearGetParameters())):r&&clearGetParameters()}
1,utmParams=function(){var e=storage$1.getUtmParams()||{};return Object.keys(e).length>0?e:{}},utmInitParams=function(){var e=new URLSearchParams(window.location.search),t={},n=!storage$1.getHasUtmVisited();n&&(["utm_source","utm_medium","utm_campaign","utm_content","utm_term"].forEach(function(n){var r=e.get(n);if(r)t["".concat(n,"_init")]=JSON.stringify(r);else switch(n){case"utm_source":t.utm_source_init=getReferrer().last_page_source_name;break;case"utm_medium":t.utm_medium_init=getReferrer().last_page_source_type;break;default:t["".concat(n,"_init")]=JSON.stringify("none")}}),storage$1.setUtmInitParams(t),storage$1.setFirstPageVisit(window.location.pathname)),n&&storage$1.setHasUtmVisited("true")},brevoUtmData=function(){var e,t,n,r,o,a={},i=null!==(e=storage$1.getUtmParams())&&void 0!==e?e:null;i&&(a=_objectSpread2({am_device_id:null!==(t=storage$1.getAmDeviceId())&&void 0!==t?t:null,am_session_id:null!==(n=storage$1.getAmSessionId())&&void 0!==n?n:null,first_page_visit:null!==(r=storage$1.getFirstPageVisit())&&void 0!==r?r:null,region:null!==(o=document.body.dataset.localeState)&&void 0!==o?o:null},Object.fromEntries(Object.entries(i).map(function(e){var t=_slicedToArray(e,2),n=t[0],r=t[1];try{return[n,"string"==typeof r?JSON.parse(r):r]}catch(e){return[n,r]}}))));return a},getReferrer=function(){var e,t,n=document.referrer,r=["r.mail.casinosanalyzer.com"].some(function(e){return n.includes(e)}),o=["casinosanalyzer.com","ausscasinosanalyzer.com","casinosanalyzer.ca","casinosanalyzer.co.nz","casinosanalyzer.co.uk","kasynoanalyzer.com"].some(function(e){return n.includes(e)}),a=n.includes("www.google."),i=new URLSearchParams(window.location.search),s=i.get("utm_medium"),c=i.get("utm_campaign"),u="utm_attribution_used";null!=c&&localStorage.removeItem(u);var l="1"===localStorage.getItem(u);if(null==c){var d=(storage$1.getUtmParams()||{}).utm_campaign;if(d&&!l&&!(o&&l))try{c="string"==typeof d?JSON.parse(d):d}catch(e){c=d}}if(o&&l&&(c=null),null==s){var p=(storage$1.getUtmParams()||{}).utm_medium;if(p)try{s="string"==typeof p?JSON.parse(p):p}catch(e){s=p}}var f="confirmation_email"===c||r;return f&&null==i.get("utm_campaign")&&localStorage.setItem(u,"1"),f?(e="email",t="email"):n?o?(e="internal",t="internal"):a?(e="search",t="google"):(e="other",t="other"):(e="direct",t="direct"),!s||f||o||a||(e=s,t=s),{last_page:JSON.stringify(n||"null"),last_page_source_type:JSON.stringify(e),last_page_source_name:JSON.stringify(t)}},setCampaignParameter=function(){var e=new URLSearchParams(window.location.search).get("campaign");e&&(storage$1.setKeitaroCampaign(e),clearGetParameters({removeOnly:["campaign"]}))},loadScripts=function(e){e.forEach(function(e){var t=document.createElement("script");e.async&&(t.async=!0),t.src=e.path,e.type&&(t.type=e.type),e.crossorigin&&(t.crossOrigin=e.crossorigin),document.head.appendChild(t)})},eventID=["p_bonus_spin_n","p_bonus_amount","p_bonus_casino","p_bonus_category","p_bonus_country","p_bonus_percent","p_casino_category","p_casino_city","p_casino_country","p_casino_state_usa","p_casino_currency","p_casino_deposit_low","p_casino_payment","p_casino","p_casino_slot_soft","p_game_category","p_slot_category","p_slot","p_slot_payline","p_blog_category","p_blog_article","p_website_category","p_similar_casinos","p_software_bonuses","p_website_page","p_profile_rewards","p_profile_shop","p_home","p_promo_codes_category","p_other"],addSecondsToDate=function(e,t){var n=new Date(e);return n.setTime(n.getTime()+1e3*t),n},addMinutesToDate=function(e,t){var n=new Date(e);return n.setTime(n.getTime()+6e4*t),n},addHoursToDate=function(e,t){var n=new Date(e);return n.setTime(n.getTime()+36e5*t),n},compareDates=function(e){e=new Date(e);var t=new Date,n=e.getFullYear(),r=e.getMonth(),o=e.getDate(),a=t.getFullYear(),i=t.getMonth(),s=t.getDate();switch(!0){case n===a&&r===i&&o===s:return e;case n<a||n===a&&r<i||n===a&&r===i&&o<s:return s;default:return e}},daysDifference=function(e){var t=new Date(e),n=new Date,r=Date.UTC(t.getFullYear(),t.getMonth(),t.getDate()),o=Date.UTC(n.getFullYear(),n.getMonth(),n.getDate()),a=Math.abs(o-r);return Math.ceil(a/864e5)},sponsoredTimerAnimation=function(e){e.forEach(function(e){var t=storage$1.getStorageSponsoredDate(
1);t=t?compareDates(t):new Date,storage$1.setStorageSponsoredDate(t);var n=t,r=+e.dataset.hours,o=+e.dataset.minutes,a=+e.dataset.seconds,i=addHoursToDate(n,r);i=addMinutesToDate(i,o),i=addSecondsToDate(i,a);var s=setInterval(function(){var t=(new Date).getTime(),n=i-t;if(n<0)return clearInterval(s),void(e.innerHTML="<span>00</span><span>:</span><span>00</span><span>:</span><span>00</span>");var r=Math.floor(n/864e5),o=Math.floor(n%864e5/36e5+24*r),a=Math.floor(n%36e5/6e4),c=Math.floor(n%6e4/1e3);o=o<10?"0".concat(o):o,a=a<10?"0".concat(a):a,c=c<10?"0".concat(c):c,e.innerHTML="<span>".concat(o,"</span><span>:</span><span>").concat(a,"</span><span>:</span><span>").concat(c,"</span>")},1e3)})},actualStorageDateAndGeo=function(e){var t=localStorage.getItem("geo"),n=localStorage.getItem("".concat(e,"Geo")),r=n&&t===n;r||localStorage.setItem("".concat(e,"Geo"),t);var o=localStorage.getItem(e);if(!o)return localStorage.setItem(e,JSON.stringify(new Date)),!1;var a=daysDifference(JSON.parse(o));return a>0&&localStorage.setItem(e,JSON.stringify(new Date)),0===a&&r},getDeviceInfo=function(){var e,t,n,r,o=null!==(e=null===(t=window.screen)||void 0===t?void 0:t.width)&&void 0!==e?e:1,a=null!==(n=null===(r=window.screen)||void 0===r?void 0:r.height)&&void 0!==n?n:1;return{device_width:o,device_height:a,device_ratio:parseFloat((o/a).toFixed(4))}},setGrowthbookDataParams=function(){document.body.dataset.deviceRatio=getDeviceInfo().device_ratio},widgetAffLinkClickCount=new Map,getWidgetAffLinkClickIndex=function(e){var t;if(!e)return 0;var n=(null!==(t=widgetAffLinkClickCount.get(e))&&void 0!==t?t:0)+1;return widgetAffLinkClickCount.set(e,n),n},isCurrentPage404ByDOM=function(){return document.querySelector("#page404")},isDesktop=function(){return!/Mobi|Android|iPhone|iPad|iPod/i.test(navigator.userAgent)},setGeoFactGlobal=function(){var e,t=null!==(e=document.body.dataset.geoFact)&&void 0!==e?e:document.body.dataset.geo;storage$1.setGeoFact(t)},hexToHsl=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;e||(e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"000000"),e=e.replace(/^#/,"");var n=parseInt(e.slice(0,2),16)/255,r=parseInt(e.slice(2,4),16)/255,o=parseInt(e.slice(4,6),16)/255,a=Math.max(n,r,o),i=Math.min(n,r,o),s=a-i,c=0,u=0,l=(a+i)/2;if(0!==s){switch(u=s/(1-Math.abs(2*l-1)),a){case n:c=(r-o)/s+(r<o?6:0);break;case r:c=(o-n)/s+2;break;case o:c=(n-r)/s+4}c/=6}return c=Math.round(360*c),u=Math.round(100*u),l=t||Math.round(100*l),"hsl(".concat(c,", ").concat(u,"%, ").concat(l,"%)")},__bridge_globals=Object.freeze({__proto__:null,actualStorageDateAndGeo:actualStorageDateAndGeo,brevoUtmData:brevoUtmData,buildExternalId:buildExternalId,checkIfAmplitudeAndAnalyticsLoaded:checkIfAmplitudeAndAnalyticsLoaded,daysDifference:daysDifference,deleteCookie:deleteCookie,elementInViewport:elementInViewport,eventID:eventID,eventPush:eventPush,externalLinkClick:externalLinkClick,fadeIn:fadeIn,fadeOut:fadeOut,fadeToggle:fadeToggle,getAmplitudeCookie:getAmplitudeCookie,getAmplitudeDeviceId:getAmplitudeDeviceId,getCookie:getCookie,getDeviceInfo:getDeviceInfo,getDomainName:getDomainName,getLocaleCountry:getLocaleCountry,getReferrer:getReferrer,getWidgetAffLinkClickIndex:getWidgetAffLinkClickIndex,hexToHSL:hexToHSL,hexToHsl:hexToHsl,internalLinkClick:internalLinkClick,isCurrentPage404ByDOM:isCurrentPage404ByDOM,isDesktop:isDesktop,loadScripts:loadScripts,navAff:navAff,navForm:navForm,onIdle:onIdle,prepareUtmParams:prepareUtmParams,queueIdleTask:queueIdleTask,removeBannersAfterFirst:removeBannersAfterFirst,setBonusPositions:setBonusPositions,setCampaignParameter:setCampaignParameter,setCookie:setCookie,setGeoFactGlobal:setGeoFactGlobal,setGrowthbookDataParams:setGrowthbookDataParams,sponsoredTimerAnimation:sponsoredTimerAnimation,utmInitParams:utmInitParams,utmParams:utmParams,yieldToMain:yieldToMain}),SecureApiClient=function(){return _createClass(function e(){_classCallCheck(this,e)},null,[{key:"base64ToBytes",value:function(e){return Uint8Array.from(atob(e),function(e){return e.charCodeAt(0)})}},{key:"sha256Raw",value:(a=_asyncToGenerator(_regenerator().m(function e(t){var n;return _regenerator().w(function(e){for(;;)if(0===e.n)return n=(new TextEncoder).encode(t),e.a(2,window.crypto.subtle.digest("SHA-256",
1n))},e)})),function(e){return a.apply(this,arguments)})},{key:"getCookie",value:function(e){var t,n=_createForOfIteratorHelper(document.cookie?document.cookie.split("; "):[]);try{for(n.s();!(t=n.n()).done;){var r=_toArray(t.value.split("=")),o=r[0],a=r.slice(1);if(o===e)return decodeURIComponent(a.join("=")||"")}}catch(e){n.e(e)}finally{n.f()}return""}},{key:"canDecryptSecurePayload",value:function(e){var t;return Boolean(e&&(null===(t=window.crypto)||void 0===t?void 0:t.subtle))}},{key:"getClientKey",value:function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).clientKey||window.PUBLIC_API_KEY||this.getCookie(this.PUBLIC_API_KEY_COOKIE)||""}},{key:"parseJsonSafe",value:(o=_asyncToGenerator(_regenerator().m(function e(t){return _regenerator().w(function(e){for(;;)switch(e.p=e.n){case 0:if(!1!==(t.headers.get("content-type")||"").toLowerCase().includes("application/json")){e.n=1;break}return e.a(2,null);case 1:return e.p=1,e.n=2,t.json();case 2:return e.a(2,e.v);case 3:return e.p=3,e.v,e.a(2,null)}},e,null,[[1,3]])})),function(e){return o.apply(this,arguments)})},{key:"decryptPayload",value:(r=_asyncToGenerator(_regenerator().m(function e(t,n){var r,o,a,i,s,c,u;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,this.sha256Raw(n);case 1:return r=e.v,e.n=2,window.crypto.subtle.importKey("raw",r,"AES-GCM",!1,["decrypt"]);case 2:return o=e.v,a=this.base64ToBytes(t.iv),i=this.base64ToBytes(t.tag),s=this.base64ToBytes(t.data),(c=new Uint8Array(s.length+i.length)).set(s,0),c.set(i,s.length),e.n=3,window.crypto.subtle.decrypt({name:"AES-GCM",iv:a,tagLength:128},o,c);case 3:return u=e.v,e.a(2,JSON.parse((new TextDecoder).decode(u)))}},e,this)})),function(e,t){return r.apply(this,arguments)})},{key:"refreshClientKey",value:(n=_asyncToGenerator(_regenerator().m(function e(){var t,n,r,o=arguments;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:"same-origin",e.n=1,fetch(this.PUBLIC_API_REFRESH_URL,{method:"POST",credentials:t});case 1:if((n=e.v).ok){e.n=2;break}return e.a(2,"");case 2:if(""===(r=(n.headers.get(this.PUBLIC_API_KEY_HEADER)||"").trim())){e.n=3;break}return e.a(2,r);case 3:return e.a(2,this.getCookie(this.PUBLIC_API_KEY_COOKIE))}},e,this)})),function(){return n.apply(this,arguments)})},{key:"executeSecureRequest",value:(t=_asyncToGenerator(_regenerator().m(function e(t){var n,r,o,a,i,s,c,u;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:if(n=t.url,r=t.method,o=t.headers,a=t.body,i=t.credentials,s=t.shouldSecure,c=t.clientKey,u=_objectSpread2({},o),!s){e.n=2;break}if(""!==c){e.n=1;break}throw new Error("Public API key is missing for secure request");case 1:u[this.PUBLIC_API_KEY_HEADER]=c;case 2:return e.a(2,fetch(n,{method:r,headers:u,body:a,credentials:i}))}},e,this)})),function(e){return t.apply(this,arguments)})},{key:"fetch",value:(e=_asyncToGenerator(_regenerator().m(function e(t){var n,r,o,a,i,s,c,u,l,d,p,f,_,g,m,h,y;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:if(n=t.url,r=t.method,o=void 0===r?"GET":r,a=t.headers,i=void 0===a?{}:a,s=t.body,c=void 0===s?void 0:s,u=t.credentials,l=void 0===u?"same-origin":u,d=t.security,p=(void 0===d?null:d)||{},f=Boolean(p.requireSecure),_=Boolean(p.scope),g=f||_,m=this.getClientKey(p),!g||""!==m){e.n=2;break}return e.n=1,this.refreshClientKey(l);case 1:m=e.v;case 2:return e.n=3,this.executeSecureRequest({url:n,method:o,headers:i,body:c,credentials:l,shouldSecure:g,clientKey:m});case 3:if(h=e.v,!g||401!==h.status){e.n=6;break}return e.n=4,this.refreshClientKey(l);case 4:if(""===(m=e.v)){e.n=6;break}return e.n=5,this.executeSecureRequest({url:n,method:o,headers:i,body:c,credentials:l,shouldSecure:g,clientKey:m});case 5:h=e.v;case 6:return e.n=7,this.parseJsonSafe(h);case 7:if(null!==(y=e.v)){e.n=8;break}throw new Error("Secure API response must be JSON");case 8:if(null!=y&&y.encrypted&&null!=y&&y.payload){e.n=9;break}return e.a(2,y);case 9:if(this.canDecryptSecurePayload(m)){e.n=10;break}throw new Error("Public API key is missing for encrypted response");case 10:return e.a(2,this.decryptPayload(y.payload,m))}},e,this)})),function(t){return e.apply(this,arguments)})}]);var e,t,n,r,o,a}();_defineProperty(SecureApiClient,"PUBLIC_API_KEY_HEADER","X-Public-Api-Key"),_defineProperty(SecureApiClient,"PUBLIC_API_KEY_COOKIE","public_api_key"),_defineProperty(SecureApiClient,"PUBLIC_API_REFRESH_URL","/api/public-api-key/refresh");var secureApiFetch=function(e){return SecureApiClient.fetch(e)},__bridge_secureApiClient=Object.freeze({__proto__:null,SecureApiClient:SecureApiClient,secureApiFetch:secureApiFetch}),isAuth=function(){var e=_asyncToGenerator(_regenerator().m(function e(){return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,secureApiFetch({url:"".concat(baseHttp,"/is-auth"),method:"GET",headers:{"Content-Type":"application/json"},security:{requireSecure:!0,scope:"is_auth"}});case 1:return e.a(2,e.v)}},e)}));return function(){return e.apply(this,arguments)}}(),autoSignIn=function(){var e=_asyncToGenerator(_regenerator().m(function e(t){var n;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,fetch("".concat(baseHttp,"/auto-sign-in"),{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:t})});case 1:return n=e.v,e.n=2,n.json();case 2:return e.a(2,e.v)}},e)}));return function(t){return e.apply(this,arguments)}}(),checkEmailExists=function(){var e=_asyncToGenerator(_regenerator().m(function e(t){var n;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,fetch("".concat(baseHttp,"/email-exists"),{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:t.toLowerCase()})});case 1:return n=e.v,e.n=2,n.json();case 2:return e.a(2,e.v)}},e)}));return function(t){return e.apply(this,arguments)}}
1(),signIn=function(){var e=_asyncToGenerator(_regenerator().m(function e(t,n){var r;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,fetch("".concat(baseHttp,"/sign-in?domain=").concat(window.location.host),{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:t,password:n,utmData:brevoUtmData()})});case 1:return r=e.v,e.n=2,r.json();case 2:return e.a(2,e.v)}},e)}));return function(t,n){return e.apply(this,arguments)}}(),signUp=function(){var e=_asyncToGenerator(_regenerator().m(function e(t,n){var r,o,a=arguments;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return r=a.length>2&&void 0!==a[2]?a[2]:"registrationPopup",e.n=1,fetch("".concat(baseHttp,"/sign-up"),{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:t,password:n,redirect:"".concat(window.location.pathname).concat(window.location.search),utmData:brevoUtmData(),source:r})});case 1:return o=e.v,e.n=2,o.json();case 2:return e.a(2,e.v)}},e)}));return function(t,n){return e.apply(this,arguments)}}(),logout=function(){var e=_asyncToGenerator(_regenerator().m(function e(){var t;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,fetch("".concat(baseHttp,"/logout"),{method:"get",headers:{"Content-Type":"application/json"}});case 1:return t=e.v,e.n=2,t.json();case 2:return e.a(2,e.v)}},e)}));return function(){return e.apply(this,arguments)}}(),updateDetails=function(){var e=_asyncToGenerator(_regenerator().m(function e(t){var n;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,fetch("".concat(baseHttp,"/update-details"),{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:t})});case 1:return n=e.v,e.n=2,n.json();case 2:return e.a(2,e.v)}},e)}));return function(t){return e.apply(this,arguments)}}(),updateAvatar=function(){var e=_asyncToGenerator(_regenerator().m(function e(t){var n;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,fetch("".concat(baseHttp,"/update-avatar"),{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({avatar:t})});case 1:return n=e.v,e.n=2,n.json();case 2:return e.a(2,e.v)}},e)}));return function(t){return e.apply(this,arguments)}}(),changePassword=function(){var e=_asyncToGenerator(_regenerator().m(function e(t){var n;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,fetch("".concat(baseHttp,"/change-password"),{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:t})});case 1:return n=e.v,e.n=2,n.json();case 2:return e.a(2,e.v)}},e)}));return function(t){return e.apply(this,arguments)}}(),changeCountry=function(){var e=_asyncToGenerator(_regenerator().m(function e(t){var n;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,fetch("".concat(baseHttp,"/change-country"),{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({countryId:t})});case 1:return n=e.v,e.n=2,n.json();case 2:return e.a(2,e.v)}},e)}));return function(t){return e.apply(this,arguments)}}(),getSelectedCountryList=function(){var e=_asyncToGenerator(_regenerator().m(function e(){var t;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,fetch("".concat(baseHttp,"/selected-country-list"),{method:"get",headers:{"Content-Type":"application/json"}});case 1:return t=e.v,e.n=2,t.json();case 2:return e.a(2,e.v)}},e)}));return function(){return e.apply(this,arguments)}}(),sendResetPasswordLink=function(){var e=_asyncToGenerator(_regenerator().m(function e(t){var n;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,fetch("".concat(baseHttp,"/reset-password"),{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:t,utmData:brevoUtmData()})});case 1:return n=e.v,e.n=2,n.json();case 2:return e.a(2,e.v)}},e)}));return function(t){return e.apply(this,arguments)}}(),sendConfirmEmailLink=function(){var e=_asyncToGenerator(_regenerator().m(function e(t){var n;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,fetch("".concat(baseHttp,"/confirm-email"),{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:t,redirect:"".concat(window.location.pathname).concat(window.location.search),utmData:brevoUtmData()})});case 1:return n=e.v,e.n=2,n.json();case 2:return e.a(2,e.v)}},e)}));return function(t){return e.apply(this,arguments)}}(),setNotifications=function(){var e=_asyncToGenerator(_regenerator().m(function e(t){var n;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,fetch("".concat(baseHttp,"/set-notifications"),{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({promoSubscribe:t.promoSubscribe,releasesSubscribe:t.releasesSubscribe})});case 1:return n=e.v,e.n=2,n.json();case 2:return e.a(2,e.v)}},e)}));return function(t){return e.apply(this,arguments)}}(),__bridge_authApi=Object.freeze({__proto__:null,autoSignIn:autoSignIn,changeCountry:changeCountry,changePassword:changePassword,checkEmailExists:checkEmailExists,getSelectedCountryList:getSelectedCountryList,isAuth:isAuth,logout:logout,sendConfirmEmailLink:sendConfirmEmailLink,sendResetPasswordLink:sendResetPasswordLink,setNotifications:setNotifications,signIn:signIn,signUp:signUp,updateAvatar:updateAvatar,updateDetails:updateDetails}),__translate=function(e){var t,n,r,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];switch(String((arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ww")||"ww").split(/[-_]/)[0].toUpperCase()){case"PL":return o?interpolationReplace(e,TRANSLATION_PL_INTERPOLATION):null!==(t=TRANSLATION_PL[e])&&void 0!==t?t:e;case"DE":return o?e:null!==(n=TRANSLATION_DE[e])&&void 0!==n?n:e;case"ES":return o?interpolationReplace(e,TRANSLATION_ES_INTERPOLATION):null!==(r=TRANSLATION_ES[e])&&void 0!==r?r:e}return e},interpolationReplace=function(e,t){var n=e;for(var r in t){var o=new RegExp("\\b".concat(r,"\\b"),"g");n=n.replace(o,t[r])}return n};window.__translate=__translate;var __bridge_translate=Object.freeze({__proto__:null,__translate:__translate}),loadAuthPopup=function(){return import("./chunks/scripts.bundle/authPopup-BhQB5gX6.js").then(function(e){return e.authPopup})},loadAuthWheelPopup=function(){return import("./chunks/scripts.bundle/authWheelPopup-C5EfThtb.js").then(function(e){return e.authWheelPopup})},preloadOnIntent=function(e,t){return["pointerenter","touchstart","focusin"].forEach(function(n){e.addEventListener(n,t,{once:!0,passive:!0})})},Auth=function(){return _createClass(function e(){var t=this;_classCallCheck(this,e),_defineProperty(this,"checkIfAnalyticsLoaded",function(e){var n=e.registration,r=e.userID;window.ga||window.amplitude||window.zaraz?(t.sendRegistrationViaUserPropertyAmplitude(n),t.sendUserIdPropertyAmplitude(r)):setTimeout(function(){return t.checkIfAnalyticsLoaded({registration:n,userID:r})},500)}
1),this.noAmplitudeParam=new URLSearchParams(document.location.search).get("no-amplitude"),this.loginExistingUserAmplitude,this.registrationNewUserAmplitude,this.userLoginOneTime=storage.getLoginOneTime(),this.clickGoogleLoginAmplitude=function(){},this.clickGoogleSignupAmplitude=function(){},this.noAmplitudeParam||_asyncToGenerator(_regenerator().m(function e(){var n,r,o;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,import("./chunks/scripts.bundle/authAmplitude-tsjGVOi_.js");case 1:n=e.v,r=n.clickGoogleLoginAmplitude,o=n.clickGoogleSignupAmplitude,t.clickGoogleLoginAmplitude=r,t.clickGoogleSignupAmplitude=o;case 2:return e.a(2)}},e)}))()},[{key:"translate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return __translate(e,getLocaleCountry()||"en",t)||e}},{key:"initAuth",value:(n=_asyncToGenerator(_regenerator().m(function e(){var t,n,r,o,a,i,s,c,u,l,d,p,f,_,g,m,h,y,v,b,S,w,k=this;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:if(r=null!==(t=document.getElementById("profileHeader"))&&void 0!==t?t:null,o=null!==(n=document.getElementById("profileHeaderButton"))&&void 0!==n?n:null,a=document.getElementById("profileHeaderNotAuth"),i=document.getElementById("authSignupButton"),s=document.getElementById("authOptionsProfiler"),c=document.querySelector('[data-id="authSpinWheelImage"]'),u=document.querySelector("#comingSoonOfferRegister"),l=document.getElementsByClassName("authSignupBonusListButton"),removeBannersAfterFirst(l),this.noAmplitudeParam){e.n=2;break}return e.n=1,import("./chunks/scripts.bundle/authAmplitude-tsjGVOi_.js");case 1:d=e.v,p=d.loginExistingUserAmplitude,f=d.registrationNewUserAmplitude,this.loginExistingUserAmplitude=p,this.registrationNewUserAmplitude=f;case 2:if(!r){e.n=4;break}return e.n=3,isAuth();case 3:v=e.v,s&&(s.style.display="block"),this.removeBannerFromBonuses(l),this.checkIfAnalyticsLoaded({registration:null===(_=v.data)||void 0===_?void 0:_.registrationVia,userID:null===(g=v.data)||void 0===g?void 0:g.id}),this.setTokenStorage(!0),this.setGlobalUserId(null===(m=v.data)||void 0===m?void 0:m.id),"Google"===(null===(h=v.data)||void 0===h?void 0:h.registrationVia)&&this.sendGoogleEntryTypeAmplitude(null===(b=v.data)||void 0===b?void 0:b.created,null===(S=v.data)||void 0===S?void 0:S.registrationVia,null===(w=v.data)||void 0===w?void 0:w.id),this.setToken(null===(y=v.data)||void 0===y?void 0:y.token),this.checkUserLastPageBeforeProfilePage(r,o),this.initForumSSO(),e.n=6;break;case 4:return s&&(s.style.display="block"),this.generateProfileHeaderButtonNotAuth(a),this.authSignup(i),this.authBannerSpinWheelAnimation(c),this.setTokenStorage(!1),this.checkIfAnalyticsLoaded({registration:null,userID:null}),storage.removeCheckRegistrationVia(),e.n=5,this.autoLogin(r);case 5:this.callPopupByBonusBannerClick();case 6:window.location.search.includes("logged_in=true")&&(this.successMessageGenerateHTML(),this.scrollToEntryPosition(),storage.getAuthWheelsPopupCongratulations()&&setTimeout(_asyncToGenerator(_regenerator().m(function e(){var t;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,loadAuthWheelPopup();case 1:(t=e.v).generateCongratulationsHTML(),t.congratulationsClaimBonusLayoutSwitcher(),storage.removeAuthWheelsPopupCongratulations();case 2:return e.a(2)}},e)})),1e3)),this.removeQueryParam("logged_in"),u&&u.addEventListener("click",function(){var e,t=document.querySelector("#comingSoonOffer"),n=null==t||null===(e=t.dataset)||void 0===e?void 0:e.casinoId,r=document.body.dataset.siteId;k.userLoginOneTime?k.clickGoogleLoginAmplitude():k.clickGoogleSignupAmplitude(),!storage.getScrollPosition()&&storage.setScrollPosition(window.scrollY||window.pageYOffset),storage.getTrackEntryType()&&storage.removeTrackEntryType(),storage.setRegPlacement("comingSoonOffer");var o=new URLSearchParams({source:"comingSoonOffer"});n&&o.set("casino_id",n),r&&o.set("site_id",r),document.location.href="/connect/google?".concat(o.toString())});case 7:return e.a(2)}},e,this)})),function(){return n.apply(this,arguments)})},{key:"setTokenStorage",value:function(e){return e?storage.setAuthToken((!0).toString()):storage.getAuthToken()?storage.removeAuthToken():null}},{key:"setToken",value:function(e){return e?storage.setToken(e.toString()):storage.getToken()?storage.removeToken():null}},{key:"autoLogin",value:(t=_asyncToGenerator(_regenerator().m(function e(t){var n,r;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:if(storage.getToken()||(n=new URLSearchParams(window.location.search),(r=n.get("token"))&&storage.setToken(r)),!storage.getToken()){e.n=2;break}return e.n=1,autoSignIn(storage.getToken());case 1:window.location.reload(),!t&&storage.removeToken();case 2:return e.a(2)}},e)})),function(e){return t.apply(this,arguments)})},{key:"setGlobalUserId",value:function(e){if(e&&!storage.getAuthId())return storage.setAuthId(e)}},{key:"generateProfileHeaderButtonNotAuth",value:function(e){e&&preloadOnIntent(e,loadAuthPopup),e&&e.addEventListener("click",function(){storage.setRegistrationViaAmplitude("reg"),storage.setRegPlacement("header"),loadAuthPopup().then(function(e){return e.generateHTMLAdapter("mainHTML")})})}},{key:"removeQueryParam",value:function(e){var t=new URL(window.location.href);t.searchParams.delete(e),""===t.search&&(t.search=""),window.history.replaceState({},document.title,t.href)}},{key:"removeBannerFromBonuses",value:function(e){Array.from(e).forEach(function(e){e.remove()})}},{key:"authSignup",value:function(e){e&&preloadOnIntent(e,loadAuthPopup),e&&e.addEventListener("click",function(){loadAuthPopup().then(function(e){return e.generateHTMLAdapter("mainHTML")})})}},{key:"authBannerSpinWheelAnimation",value:function(e){var t=0,n=function(){t+=360,e.style.transition="transform 2s ease-in-out",e.style.transform="rotate(".concat(t,"deg)"),setTimeout(function(){e.style.transition="none",e.style.transform="rotate(".concat(t-360,"deg)"),e.offsetWidth,e.style.transition="transform 2s ease-in-out",n()},4e3)};e&&n()}},{key:"successMessageGenerateHTML",value:function(){var e='\n <div class="success" id="loggedInSuccessMessage">\n <div class="success_box">\n <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M12 22C6.477 22 2 17.523 2 12C2 6.477 6.477 2 12 2C17.523 2 22 6.477 22 12C22 17.523 17.523 22 12 22ZM12 20C14.1217 20 16.1566 19.1571 17.6569
117.6569C19.1571 16.1566 20 14.1217 20 12C20 9.87827 19.1571 7.84344 17.6569 6.34315C16.1566 4.84286 14.1217 4 12 4C9.87827 4 7.84344 4.84286 6.34315 6.34315C4.84285 7.84344 4 9.87827 4 12C4 14.1217 4.84285 16.1566 6.34314 17.6569C7.84344 19.1571 9.87827 20 12 20ZM11.003 16L6.76 11.757L8.174 10.343L11.003 13.172L16.659 7.515L18.074 8.929L11.003 16Z" fill="white"/>\n </svg>\n <p class="text">'.concat(this.translate("You have successfully logged in"),"</p>\n </div>\n </div>\n ");document.body.insertAdjacentHTML("beforeend",e);var t=document.getElementById("loggedInSuccessMessage");t.style.animation="show 0.51s forwards ease-in-out",this.hideSuccessMessage(t)}},{key:"callPopupByBonusBannerClick",value:function(){var e=document.getElementsByClassName("authSignupBonusListButton");Array.from(e).forEach(function(e){preloadOnIntent(e,loadAuthWheelPopup),e.addEventListener("click",function(){storage.setRegPlacement("fortune_wheel"),loadAuthWheelPopup().then(function(e){return e.generateMainHTML()})})})}},{key:"hideSuccessMessage",value:function(e){setTimeout(function(){e.remove()},1900)}},{key:"sendRegistrationViaUserPropertyAmplitude",value:function(e){storage.getCheckRegistrationVia()||(storage.setCheckRegistrationVia((new Date).toString()),"undefined"!=typeof amplitude&&litude.identify?amplitude.identify((new amplitude.Identify).set("registration_via",e)):window.location.hostname.includes("casinosanalyzer.co.uk")&&"undefined"!=typeof zaraz&&"function"==typeof zaraz.track&&zaraz.set("registration_via",e))}},{key:"sendUserIdPropertyAmplitude",value:(e=_asyncToGenerator(_regenerator().m(function e(t){return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,import("./chunks/scripts.bundle/authAmplitude-tsjGVOi_.js");
1case 1:(0,e.v.setAnalyticsUserId)(t);case 2:return e.a(2)}},e)})),function(t){return e.apply(this,arguments)})},{key:"setEntryTypeStorage",value:function(){var e={entryType:arguments.length>0&&void 0!==arguments[0]?arguments[0]:"registration",isSend:arguments.length>1&&void 0!==arguments[1]&&arguments[1]};return storage.setTrackEntryType(e)}},{key:"sendGoogleEntryTypeAmplitude",value:function(e,t,n){var r=storage.getTrackEntryType(),o=(new Date).toISOString().slice(0,10);if(!r||!r.isSend){var a="login";return e===o&&(a="registration"),this.setEntryTypeStorage(a,!0),"login"===a?this.loginExistingUserAmplitude(n):this.registrationNewUserAmplitude(n,t)}}},{key:"checkUserLastPageBeforeProfilePage",value:function(e,t){[e,t].forEach(function(e){e.addEventListener("click",function(){storage.setReferringPageAfterLogout(window.location.pathname)})})}},{key:"scrollToEntryPosition",value:function(){storage.getScrollPosition()&&(window.scrollTo(0,parseInt(storage.getScrollPosition(),10)),storage.removeScrollPosition())}},{key:"initForumSSO",value:function(){storage.setForumSsoReady((!0).toString())}}]);var e,t,n}(),auth=new Auth,POPUPS_CSS_LOADED_CLASS="popups-css-loaded",PROMISE_KEY="__popupsCssPromise",isPopupsCssLoaded=function(){return document.documentElement.classList.contains(POPUPS_CSS_LOADED_CLASS)},loadPopupsCss=function(){return window[PROMISE_KEY]||(window[PROMISE_KEY]=new Promise(function(e){var t=function(){document.documentElement.classList.add(POPUPS_CSS_LOADED_CLASS),e()},n=document.body.dataset,r=n.templateName,o=n.version;if(!r)return t();var a=document.createElement("link");a.rel="stylesheet",a.href="/build/".concat(r,"/assets/css/popups.css?v=").concat(o),a.onload=t,a.onerror=t;var i=document.querySelector('link[href*="/assets/css/main.css"]');i?i.after(a):document.head.appendChild(a)})),window[PROMISE_KEY]},headerMobBtn=document.querySelector("#headerMobBtn"),headerNav=document.querySelector("#headerNav"),headerNavClose=document.querySelector("#headerNavClose"),authSignupButton=document.querySelector("#authSignupButton"),localeSwitcher=document.querySelector("#localeSwitcher"),localeSwitcherBtn=document.querySelector("#localeSwitcherBtn"),headerMenuMobBtn=document.querySelectorAll('[data-element="header__menu--mob"]'),geoSwitcherNode=document.getElementById("geoSwitcher"),geoSwitcherOriginalParent=(null==geoSwitcherNode?void 0:geoSwitcherNode.parentNode)||null,geoSwitcherOriginalNextSibling=(null==geoSwitcherNode?void 0:geoSwitcherNode.nextSibling)||null,moveGeoSwitcherBack=function(){var e=document.getElementById("geoSwitcher");e&&geoSwitcherOriginalParent&&(geoSwitcherOriginalNextSibling&&geoSwitcherOriginalNextSibling.parentNode===geoSwitcherOriginalParent?geoSwitcherOriginalParent.insertBefore(e,geoSwitcherOriginalNextSibling):geoSwitcherOriginalParent.appendChild(e))},localeSwitcherFn=function(){if(localeSwitcher){var e=document.querySelectorAll('[data-element="localeSwitcher_list-item"]');e.length&&e.forEach(function(e){e.addEventListener("click",function(t){t.stopPropagation(),t.preventDefault(),document.location.href=e.dataset.href})}),window.innerWidth<=768&&localeSwitcherBtn&&(localeSwitcherBtn.addEventListener("click",function(e){e.stopPropagation(),localeSwitcher.classList.toggle("active")}),document.addEventListener("click",function(e){!localeSwitcher.classList.contains("active")||localeSwitcher.contains(e.target)||localeSwitcherBtn.contains(e.target)||localeSwitcher.classList.remove("active")}))}},headerEventsFn=function(){storage.getUtmLoggedUserDataLayerPushed()&&authSignupButton&&(authSignupButton.innerHTML="Login"),headerMenuMobBtn.forEach(function(e){e.addEventListener("click",function(){headerMenuMobBtnToggle(e);var t=document.querySelector("#headerMenuMobList");if(t){t.innerHTML="";var n=e.dataset.name;document.querySelectorAll('[data-target="'.concat(n,'"]')).forEach(function(e){var n=e.cloneNode(!0);t.append(n)});var r=t.querySelectorAll('[data-name="internal--link"]');internalLinkClick(r)}})}),null==headerMobBtn||headerMobBtn.addEventListener("click",function(){document.body.classList.add("popupShown"),null==headerNav||headerNav.classList.add("shown");var e=document.getElementById("geoSwitcher"),t=document.querySelector(".header__mob.header__mob-action");e&&t&&t.appendChild(e);var n=document.querySelector('[data-element="header__menu--mob"]');null==n||n.click(),window.addEventListener("resize",_handleResize)}),null==headerNavClose||headerNavClose.addEventListener("click",function(){null==headerNav||headerNav.classList.remove("shown"),document.body.classList.remove("popupS
1hown"),moveGeoSwitcherBack()});var e=document.querySelector(".header");e&&e.addEventListener("mouseenter",function(e){e.target.closest("#headerMenu .header__menu-item")&&document.dispatchEvent(new CustomEvent("header:closeGeoSwitcher"))},!0)},_handleResize=function(){window.innerWidth>=992&&(null==headerNav||headerNav.classList.remove("shown"),document.body.classList.remove("popupShown"),moveGeoSwitcherBack(),window.removeEventListener("resize",_handleResize))},GEO_COUNTRY_REJECTION_EVENT_CAT="geo_country_rejection",getGeoCountryRejectionUtmParams=function(){return _objectSpread2({utm_source:JSON.stringify("search"),utm_medium:JSON.stringify("search"),utm_campaign:JSON.stringify("none"),utm_content:JSON.stringify("none"),utm_term:JSON.stringify("none")},utmParams())},getGeoCountryRejectionAmplitudeContext=function(){var e=document.body.dataset.routeBonus||"p_other",t=eventID.findIndex(function(t){return t===e}),n=t>-1?t+1:eventID.length,r=t>-1?eventID[t]:eventID[eventID.length-1];return{event_id:"d-v1-e".concat(n),page_group:JSON.stringify(r)}},pushGeoCountryRejectionEvent=function(e){try{var t=getDeviceInfo(),n=t.device_width,r=t.device_height,o=t.device_ratio,a="".concat(document.location.origin).concat(document.location.pathname),i={event_cat:GEO_COUNTRY_REJECTION_EVENT_CAT,page_current_path:JSON.stringify(document.location.pathname),page_url:JSON.stringify(a),page_url_full:JSON.stringify(document.location.href),page_route_id:JSON.stringify(document.body.dataset.routeId||""),website_domain:JSON.stringify(document.location.hostname),device_width:n,device_height:r,device_ratio:o};if("popup"===e)return window.dataLayer=window.dataLayer||[],void window.dataLayer.push(Object.assign({event:"addEvents_showBlock",event_name:"popup"},i,getGeoCountryRejectionAmplitudeContext(),getGeoCountryRejectionUtmParams()));window.dataLayer=window.dataLayer||[],window.dataLayer.push(Object.assign({event:"addEvents_click",event_name:e},i,getGeoCountryRejectionAmplitudeContext(),getGeoCountryRejectionUtmParams()))}catch(e){}},trackGeoCountryRejectionPopup=function(){pushGeoCountryRejectionEvent("popup")},trackGeoCountryRejectionSwitch=function(){pushGeoCountryRejectionEvent("switch")},headerMenuMobBtnToggle=function(e){var t=document.querySelector('[data-element="header__menu--mob"].active');t&&t.classList.remove("active"),e.classList.add("active")},loadAdminPanelStyle=function(){return new Promise(function(e){if(document.querySelector("link[data-admin-panel-style]"))e();else{var t=document.createElement("link");t.rel="stylesheet",t.crossOrigin="anonymous",t.dataset.adminPanelStyle="1",t.href="/build/midori/assets/css/adminPanel.css?t="+Date.now(),t.addEventListener("load",e,{once:!0}),t.addEventListener("error",e,{once:!0}),document.head.appendChild(t)}})},adminPanelInitFn=function(){var e=_asyncToGenerator(_regenerator().m(function e(){var t,n;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:if(!getCookie("ca_admin")){e.n=2;break}return document.cookie=encodeURIComponent("is_test")+"="+encodeURIComponent(1),e.n=1,Promise.all([import("/build/midori/assets/js/adminPanel.js?t="+Date.now()),loadAdminPanelStyle()]);case 1:t=e.v,n=_slicedToArray(t,1),(0,n[0].adminPanel)(),e.n=3;break;case 2:document.cookie=encodeURIComponent("is_test")+"="+encodeURIComponent(0);case 3:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),geoSwitcherFn=function(){var e=".geo_residency_popup-box",t=".return",n=".close, .close_popup",r="#geoSwitcherPopupSearch",o="#geoSwitcherPopupBox",a="#geoSwitcher",i=".geo_residency_popup, .popup, [data-residency-popup]",s=".country",c=".country_name",u=".header",l='[data-element="hotBonusesHeader"]',d='[data-element="hotBonusesPopup"]',p="#headerQuest",f="#headerNav",_=".header_burger",g=".header_overlay",m=".header-mob, .header_mob, #header-mob",h=document.querySelector(e);if(h){var y=h.querySelector(t),v=h.querySelector(n),b=document.querySelector(r),S=document.querySelector(o),w=document.querySelector(a),k=h.closest(i),P=document.querySelector(u),C=document.querySelector(d),O=document.querySelector(f);if(b&&S){var A=Array.from(S.querySelectorAll(s)),T=!1,E=function(){return null==w?void 0:w.classList.contains("active")},I=function(){var e,t,n;null===(e=document.querySelector(_))||void 0===e||e.classList.remove("active"),null===(t=document.querySelector(g))||void 0===t||t.classList.remove("active"),null===(n=document.querySelector(m))||void 0===n||n.classList.remove("active")},L=function(e){return String(e||"").trim().toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"")},N=A.map(function(e){var t;return{el:e,geo:(e.dataset.geo||"").trim().toUpperCase(),id:(e.dataset.id||"").trim(),name:L(null===(t=e.querySelector(c))||void 0===t?void 0:t.textContent)}}),R=S.querySelector("[data-geo-empty]");R||((R=document.createElement("div")).dataset.geoEmpty="1",R.className="
1country country--empty",R.style.display="none",R.innerHTML='<span class="country_name">No countries found</span>',S.appendChild(R));var D,x=function(e){var t,n=String(e.alpha2||"").toUpperCase(),r=document.createElement("div");r.dataset.id=e.id,r.dataset.geo=n,r.className="country",r.innerHTML='\n <span class="image fflag ff-round fflag-'.concat(e.alpha2,'"></span>\n <span class="country_name">').concat((t=e.name,String(null!=t?t:"").replace(/[&<>"']/g,function(e){return{"&":"&","<":"<",">":">",'"':""","'":"'"}[e]})),'</span>\n <div class="selected">\n <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M9.74987 14.9417L19.4992 5L21 6.52916L9.74987 18L3 11.1177L4.49974 9.58855L9.74987 14.9417Z" fill="#05E98F"/>\n </svg>\n </div>\n '),S.insertBefore(r,R),N.push({el:r,geo:n,id:String(e.id||""),name:L(e.name)})},U=null,j=null,G=function(){return j||(j=getSelectedCountryList().catch(function(e){throw j=null,e})),j},B=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:365,r=new Date;r.setTime(r.getTime()+24*n*60*60*1e3),document.cookie="".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(t),"; Expires=").concat(r.toUTCString(),"; Path=/; SameSite=Lax")},J=function(e){var t=String(e||"").trim().toUpperCase();N.forEach(function(e){var n=e.el,r=e.geo;n.classList.toggle("active",r===t)})},M=function(e){var t,n,r=String(e||"").trim().toUpperCase();return r&&"US"!==r?(null===(t=N.find(function(e){return e.geo===r}))||void 0===t?void 0:t.id)||null:(null===(n=N.find(function(e){return""===e.geo}))||void 0===n?void 0:n.id)||null},q=function(e){var t=new URL(location.href);return t.searchParams.set("geo",e.toUpperCase()),t.toString()},H=function(){var e=L(b.value),t=0;N.forEach(function(n){var r=n.el,o=n.name,a=!e||o.includes(e);r.style.display=a?"":"none",a&&t++}),R.style.display=t?"none":""},F=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];null==k||k.classList.remove("is-open"),null==k||k.classList.add("is-hidden"),e&&(null==w||w.classList.remove("active")),T&&(document.removeEventListener("click",W,!0),T=!1),b.value="",H()},z=function(){null==k||k.classList.add("is-open"),null==k||k.removeAttribute("inert"),null==k||k.classList.remove("is-hidden"),null==w||w.classList.add("active"),I(),T||(document.addEventListener("click",W,!0),T=!0),U||(U=G().then(function(e){((null==e?void 0:e.countries)||[]).filter(function(e){return"RU"!==(e.alpha2||"").toUpperCase()}).forEach(x),J(Q&&"US"!==Q?Q:""),H()}).catch(function(){U=null})),b.value="",H(),setTimeout(function(){return b.focus()},0)},W=function(e){if(E()){var t=e.target;null!=w&&w.contains(t)||null!=k&&k.contains(t)||F()}};b.addEventListener("input",function(){clearTimeout(D),D=setTimeout(H,60)}),b.addEventListener("keydown",function(e){if("Escape"===e.key&&(b.value="",H(),b.blur()),"Enter"===e.key){var t,n=null===(t=N.find(function(e){return"none"!==e.el.style.display}))||void 0===t?void 0:t.el;null==n||n.click()}}),P&&P.addEventListener("click",function(e){E()&&(e.target.closest(l)||e.target.closest(p))&&F()}),document.addEventListener("header:closeGeoSwitcher",function(){E()&&F()}),null==y||y.addEventListener("click",function(e){e.preventDefault(),F()}),null==v||v.addEventListener("click",function(e){e.preventDefault(),F(),I(),null==O||O.classList.remove("shown"),document.body.classList.remove("popupShown"),moveGeoSwitcherBack()}),["pointerenter","touchstart","focusin"].forEach(function(e){null==w||w.addEventListener(e,function(){return G().catch(function(){})},{once:!0,passive:!0})}),null==w||w.addEventListener("click",function(e){e.preventDefault(),e.stopPropagation(),null!=C&&C.classList.contains("show")&&document.dispatchEvent(new CustomEvent("hotBonuses:hide")),null!=k&&k.classList.contains("is-open")?F():z()});var K,V,Y=function(){var e=_asyncToGenerator(_regenerator().m(function e(t){var n,r,o,a,i=arguments;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:if(n=i.length>1&&void 0!==i[1]?i[1]:null,r=String(t||"").trim().toUpperCase(),o=r||"US",a=n||M(o),B("user_geo",o),J("US"===o?"":o),!document.body.dataset.userId||
1!a){e.n=1;break}return e.n=1,changeCountry(a);case 1:location.href=q(o);case 2:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),$=function(e){if(!e)return deleteCookie("user_geo"),J(""),void(location.href=q("US"));B("user_geo",e,365),J(e),location.href=q(e)},Q=((null==k?void 0:k.dataset.currentGeo)||(K="user_geo",V=document.cookie.match(new RegExp("(?:^|;\\s*)".concat(K,"=([^;]*)"))),V?decodeURIComponent(V[1]):null)||"").trim().toUpperCase();J(Q&&"US"!==Q?Q:""),S.addEventListener("click",function(){var e=_asyncToGenerator(_regenerator().m(function e(t){var n,r,o,a,i,c;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:if((r=t.target.closest(s))&&S.contains(r)){e.n=1;break}return e.a(2);case 1:if(o=(r.dataset.geo||"").trim().toUpperCase(),a=(r.dataset.id||"").trim(),i=window.frontScreenLockModal,c=window.frontScreenLockWidget,!(o&&null!=c&&null!==(n=c.shouldConfirmGeoSwitch)&&void 0!==n&&n.call(c,o)&&i)){e.n=2;break}return F(),trackGeoCountryRejectionPopup(),i.open({confirmText:"Stay on current region",detailsText:"I understand - switch anyway",onConfirm:function(){i.close()},onDetails:function(){trackGeoCountryRejectionSwitch(),i.close(),setTimeout(function(){$(o)},300)},onClose:null}),e.a(2);case 2:return e.n=3,Y(o,a);case 3:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}()),function(){try{var e=new URL(location.href);if(!e.searchParams.has("geo"))return;e.searchParams.delete("geo"),history.replaceState({},document.title,e.toString())}catch(e){}}(),H()}}},getTermsAndConditions=function(){var e=_asyncToGenerator(_regenerator().m(function e(t){var n;return _regenerator().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,fetch("/api/terms_and_conditions/".concat(t),{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"}});case 1:return n=e.v,e.n=2,n.json();case 2:return e.a(2,e.v);case 3:return e.p=3,e.v,e.a(2,"T&C not provided.")}},e,null,[[0,3]])}));return function(t){return e.apply(this,arguments)}}(),geoCloudflareLocation=function(){var e=_asyncToGenerator(_regenerator().m(function e(){return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,fetch("https://www.cloudflare.com/cdn-cgi/trace",{mode:"cors"}).then(function(e){return e.text()}).then(function(e){var t=e.replace(/[\r\n]+/g,'","').replace(/=+/g,'":"');return t='{"'+t.slice(0,t.lastIndexOf('","'))+'"}',JSON.parse(t).loc});case 1:return e.a(2,e.v)}},e)}));return function(){return e.apply(this,arguments)}}(),fetchOffers=function(){var e=_asyncToGenerator(_regenerator().m(function e(t){return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,secureApiFetch({url:t,method:"GET",headers:{"Content-Type":"application/json"},security:{requireSecure:!0,scope:"offers"}});case 1:return e.a(2,e.v)}},e)}));return function(t){return e.apply(this,arguments)}}(),getOffersByClientLocation=function(){var e=_asyncToGenerator(_regenerator().m(function e(t){return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,fetchOffers("/api/offers?country=".concat(t)).then(function(e){return 0!==e.length&&e||(e=[{offer_id:"947",offer_name:"True-Fortune",offer_bonus:"Exclusive Offer â¬25 Free Chip",offer_domain:"true-fortune.com",offer_games:"38",offer_established:"2016",offer_terms:"https://true-fortune.com/bonus_terms",offer_free_spins:"",offer_jurisdictions:"Curacao",offer_payment:"Bitcoin Cash, EcoPayz EcoCard, Maestro, MasterCard, Neteller, Skrill Moneybookers, Visa, Wire Transfer",offer_background:"000711"},{offer_id:"843",offer_name:"iWildCasino",offer_bonus:"Welcome Bonus Pack: 260% up to â¬3500 + 270 Free Spins!",offer_domain:"iwildcasino.com",offer_games:"6000",offer_established:"2021",offer_terms:"https://iwildcasino.com/en/page/terms-and-conditions",offer_free_spins:"",offer_jurisdictions:"Curacao",offer_payment:"Klarna, MasterCard, Visa",offer_background:"210C41"},{offer_id:"855",offer_name:"Shambala Casino",offer_bonus:"Welcome Package â¬500 + 180 Free Spins",offer_domain:"shambalacasino.com",offer_games:"4000",offer_established:"2021",offer_terms:"https://shambalacasino.com/terms-and-conditions",offer_free_spins:"",offer_jurisdictions:"Curacao",offer_payment:"Neteller, Bitcoin, Neosurf",offer_background:"0E0906"}]),e});case 1:return e.a(2,e.v)}},e)}));return function(t){return e.apply(this,arguments)}}(),__bridge_api=Object.freeze({__proto__:null,fetchOffers:fetchOffers,geoCloudflareLocation:geoCloudflareLocation,getOffersByClientLocation:getOffersByClientLocation,getTermsAndConditions:getTermsAndConditions}
1),_excluded=["event"],coinsBalanceElement=document.querySelector("[data-element=coins-balance]"),updateCoinsBalance=function(e){var t=e.balanceChange,n=e.questDetails;if(t){var r=(parseInt(coinsBalanceElement.textContent)||0)+t;coinsBalanceElement.textContent=r>999?"999+":r,document.dispatchEvent(new CustomEvent("balanceChanged",{detail:{newBalance:r,balanceChange:t,questDetails:n}}))}},updateQuest=function(e){var t=e.quest,n=e.type;document.dispatchEvent(new CustomEvent("questUpdated",{detail:{quest:t,type:n}}))},redeemReward=function(e){var t=e.event,n=_objectWithoutProperties(e,_excluded);document.dispatchEvent(new CustomEvent(t,{detail:n}))},WEBSOCKET_ENDPOINT="wss://".concat(document.location.host,"/centrifugo/connection/websocket"),CentrifugeManager=function(){return _createClass(function e(){_classCallCheck(this,e),this.client=null,this.token=null,this.userId=document.body.dataset.userId||"",this.channels={balance:"user_balance:#".concat(this.userId),events:"user_events:#".concat(this.userId),quests:"user_quests:#".concat(this.userId),rewards:"user_rewards:#".concat(this.userId)}},[{key:"initialize",value:(r=_asyncToGenerator(_regenerator().m(function e(){var t=this;return _regenerator().w(function(e){for(;;)switch(e.p=e.n){case 0:if(this.userId&&document.body.dataset.gamificationEnabled){e.n=1;break}return e.a(2);case 1:return e.p=1,e.n=2,this.getToken();case 2:if(this.token=e.v,this.token){e.n=3;break}return e.a(2);case 3:this.client=new Centrifuge(WEBSOCKET_ENDPOINT,{token:this.token,getToken:this.getToken.bind(this),debug:"prod"!==document.body.dataset.websiteEnv}),this.subscribeToChannel(this.channels.balance,updateCoinsBalance),this.subscribeToChannel(this.channels.quests,updateQuest),this.subscribeToChannel(this.channels.rewards,redeemReward),this.subscribeToChannel(this.channels.events),this.client.connect(),window.getCentrifugeClient=function(){return t.client},e.n=5;break;case 4:e.p=4,e.v;case 5:return e.a(2)}},e,this,[[1,4]])})),function(){return r.apply(this,arguments)})},{key:"getToken",value:(n=_asyncToGenerator(_regenerator().m(function e(){var t,n,r;return _regenerator().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,fetch("/api/centrifugo/token");case 1:if((t=e.v).ok){e.n=2;break}throw new Error("Failed to fetch token: ".concat(t.status));case 2:return e.n=3,t.json();case 3:return n=e.v,r=n.token,e.a(2,r);case 4:throw e.p=4,e.v;case 5:return e.a(2)}},e,null,[[0,4]])})),function(){return n.apply(this,arguments)})},{key:"subscribeToChannel",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};if(this.client){var n=this.client.newSubscription(e);n.on("publication",function(e){var n=e.data;return t(n)}),n.subscribe()}}},{key:"publishToChannel",value:(t=_asyncToGenerator(_regenerator().m(function e(t,n){var r;return _regenerator().w(function(e){for(;;)switch(e.p=e.n){case 0:if(this.client){e.n=1;break}return e.a(2);case 1:return e.p=1,e.n=2,this.client.getSubscription(t);case 2:if(r=e.v){e.n=3;break}return e.a(2);case 3:return e.n=4,r.publish(n);case 4:e.n=6;break;case 5:e.p=5,e.v;case 6:return e.a(2)}},e,this,[[1,5]])})),function(e,n){return t.apply(this,arguments)})},{key:"publishCustomEvent",value:(e=_asyncToGenerator(_regenerator().m(function e(t){var n,r=arguments;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return n=r.length>1&&void 0!==r[1]?r[1]:{},e.n=1,this.publishToChannel(this.channels.events,{type:t,body:n});case 1:return e.a(2)}},e,this)})),function(t){return e.apply(this,arguments)})}]);var e,t,n,r}(),centrifugeManager=new CentrifugeManager,__bridge_CentrifugeManager=Object.freeze({__proto__:null,centrifugeManager:centrifugeManager});function getProfilePath(){var e;return(null===(e=document.body)||void 0===e||null===(e=e.dataset)||void 0===e?void 0:e.profilePath)||"/profile"}var __bridge_getProfilePath=Object.freeze({__proto__:null,getProfilePath:getProfilePath}),parseApiResponse=function(){var e=_asyncToGenerator(_regenerator().m(function e(t){var n;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,t.json().catch(function(){return null});case 1:return n=e.v,e.a(2,{ok:t.ok,status:t.status,data:n})}},e)}));return function(t){return e.apply(this,arguments)}}(),getUserReview=function(){var e=_asyncToGenerator(_regenerator().m(function e(t,n){var r;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,fetch("".concat(baseHttp,"/user-review/index?sort=").concat(t,"&casino_id=").concat(n),{method:"get",headers:{"Content-Type":"application/json"}});case 1:return r=e.v,e.n=2,r.json();case 2:return e.a(2,e.v)}},e)}));return function(t,n){return e.apply(this,arguments)}}(),getUserReviewPaginated=function(){var e=_asyncToGenerator(_regenerator().m(function e(t,n,r){var o,a,i,s=arguments;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return o=s.length>3&&void 0!==s[3]?s[3]:null,a=new URLSearchParams({sort:t,casino_id:n,page:r,page_size:1===r?20:5}),null!==o&&""!==o&&a.append("dictionary",o),e.n=1,fetch("".concat(baseHttp,"/user-review/index?").concat(a.toString()),{method:"get",headers:{"Content-Type":"application/json"}});case 1:return i=e.v,e.n=2,i.json();case 2:return e.a(2,e.v)}},e)}));return function(t,n,r){return e.apply(this,arguments)}}(),storeUserReview=function(){var e=_asyncToGenerator(_regenerator().m(function e(t,n,r,o){var a;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,fetch("".concat(baseHttp,"/user-review/store"),{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({score:t,promotions_and_bonuses:r.promotions_and_bonuses,deposits_and_withdrawals:r.deposits_and_withdrawals,games_variety:r.games_variety,support:r.support,website_convenience:r.website_convenience,text:n,casino_id:parseInt(o)})});
1case 1:return a=e.v,e.n=2,parseApiResponse(a);case 2:return e.a(2,e.v)}},e)}));return function(t,n,r,o){return e.apply(this,arguments)}}(),storeUserReviewScreenshots=function(){var e=_asyncToGenerator(_regenerator().m(function e(t,n){var r,o;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return(r=new FormData).append("review_id",t),n.forEach(function(e){return r.append("files[]",e)}),e.n=1,fetch("".concat(baseHttp,"/user-review/store-screenshots"),{method:"post",body:r});case 1:return o=e.v,e.n=2,parseApiResponse(o);case 2:return e.a(2,e.v)}},e)}));return function(t,n){return e.apply(this,arguments)}}(),getUserReviewLimit=function(){var e=_asyncToGenerator(_regenerator().m(function e(){var t;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,fetch("".concat(baseHttp,"/user-review/limit"),{method:"get",headers:{"Content-Type":"application/json"}});case 1:return t=e.v,e.n=2,parseApiResponse(t);case 2:return e.a(2,e.v)}},e)}));return function(){return e.apply(this,arguments)}}(),finalizeUserReview=function(){var e=_asyncToGenerator(_regenerator().m(function e(t){var n;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,fetch("".concat(baseHttp,"/user-review/finalize"),{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({review_id:parseInt(t)})});case 1:return n=e.v,e.n=2,parseApiResponse(n);case 2:return e.a(2,e.v)}},e)}));return function(t){return e.apply(this,arguments)}}(),storeUserReviewLike=function(){var e=_asyncToGenerator(_regenerator().m(function e(t){var n;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,fetch("".concat(baseHttp,"/user-review-like/store"),{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({user_review_id:parseInt(t)})});case 1:return n=e.v,e.n=2,n.json();case 2:return e.a(2,e.v)}},e)}));return function(t){return e.apply(this,arguments)}}(),deleteUserReviewLike=function(){var e=_asyncToGenerator(_regenerator().m(function e(t){var n;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,fetch("".concat(baseHttp,"/user-review-like/delete"),{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({user_review_id:parseInt(t)})});case 1:return n=e.v,e.n=2,n.json();case 2:return e.a(2,e.v)}},e)}));return function(t){return e.apply(this,arguments)}}(),readReply=function(){var e=_asyncToGenerator(_regenerator().m(function e(){var t;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,fetch("".concat(baseHttp,"/user-review/read-reply"),{method:"post",headers:{"Content-Type":"application/json"}});case 1:return t=e.v,e.n=2,t.json();case 2:return e.a(2,e.v)}},e)}));return function(){return e.apply(this,arguments)}}(),storeReply=function(){var e=_asyncToGenerator(_regenerator().m(function e(t,n,r){var o;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,fetch("".concat(baseHttp,"/user-review/store-reply"),{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({user_review_id:parseInt(t),casino_id:parseInt(n),text:r})});case 1:return o=e.v,e.n=2,o.json();case 2:return e.a(2,e.v)}},e)}));return function(t,n,r){return e.apply(this,arguments)}}(),updateReply=function(){var e=_asyncToGenerator(_regenerator().m(function e(t,n,r){var o;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,fetch("".concat(baseHttp,"/user-review/update-reply"),{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({user_review_id:parseInt(t),casino_id:parseInt(n),text:r})});case 1:return o=e.v,e.n=2,o.json();case 2:return e.a(2,e.v)}},e)}));return function(t,n,r){return e.apply(this,arguments)}}(),read=function(){var e=_asyncToGenerator(_regenerator().m(function e(t){var n;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,fetch("".concat(baseHttp,"/user-review/read?casino_id=").concat(t),{method:"post",headers:{"Content-Type":"application/json"}});case 1:return n=e.v,e.n=2,n.json();case 2:return e.a(2,e.v)}},e)}));return function(t){return e.apply(this,arguments)}}(),__bridge_userReviewApi=Object.freeze({__proto__:null,deleteUserReviewLike:
1deleteUserReviewLike,finalizeUserReview:finalizeUserReview,getUserReview:getUserReview,getUserReviewLimit:getUserReviewLimit,getUserReviewPaginated:getUserReviewPaginated,read:read,readReply:readReply,storeReply:storeReply,storeUserReview:storeUserReview,storeUserReviewLike:storeUserReviewLike,storeUserReviewScreenshots:storeUserReviewScreenshots,updateReply:updateReply}),fetchQuests=function(){var e=_asyncToGenerator(_regenerator().m(function e(){var t,n;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,secureApiFetch({url:"".concat(baseHttp,"/gamification/quests"),method:"GET",headers:{"Content-Type":"application/json"},security:{requireSecure:!0,scope:"quests"}});case 1:return t=e.v,n=t.quests,e.a(2,n)}},e)}));return function(){return e.apply(this,arguments)}}(),fetchCoinHistory=function(){var e=_asyncToGenerator(_regenerator().m(function e(t){var n,r,o,a,i=arguments;return _regenerator().w(function(e){for(;;)switch(e.p=e.n){case 0:return n=i.length>1&&void 0!==i[1]?i[1]:1,r=i.length>2&&void 0!==i[2]?i[2]:50,e.p=1,e.n=2,fetch("".concat(baseHttp,"/gamification/coin-history?type=").concat(t,"&_page=").concat(n,"&_itemsOnPage=").concat(r),{method:"GET",headers:{"Content-Type":"application/json"}});case 2:return o=e.v,e.n=3,o.json();case 3:if(a=e.v,o.ok){e.n=4;break}throw new Error(a.message);case 4:return e.a(2,{items:a.items,total:a.total,showMore:a.total>n*r});case 5:return e.p=5,e.v,e.a(2,{items:[],total:0,showMore:!1})}},e,null,[[1,5]])}));return function(t){return e.apply(this,arguments)}}(),purchaseBonus=function(){var e=_asyncToGenerator(_regenerator().m(function e(t){var n,r,o,a;return _regenerator().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,n="".concat(baseHttp,"/bonus/").concat(t,"/purchase"),e.n=1,fetch(n,{method:"POST",headers:{"Content-Type":"application/json"}});case 1:return r=e.v,e.n=2,r.json();case 2:if(o=e.v,r.ok){e.n=3;break}throw new Error(o.message||Object.values(o.errors||{})[0]||"An error occurred while purchasing bonus");case 3:return e.a(2,{success:!0,message:o.message,userBonus:o.userBonus});case 4:return e.p=4,a=e.v,e.a(2,{success:!1,message:a.message})}},e,null,[[0,4]])}));return function(t){return e.apply(this,arguments)}}(),__bridge_gamificationApi=Object.freeze({__proto__:null,fetchCoinHistory:fetchCoinHistory,fetchQuests:fetchQuests,purchaseBonus:purchaseBonus}),BonusesPopup=function(){return _createClass(function e(t,n,r,o){var a,i=this;_classCallCheck(this,e),_defineProperty(this,"amplitudeTC",function(e){var t=e.casino,n=e.widgetTitle;e.eventCat;var r=e.clickAffLinkVersion,o=e.eventAffClickName;t="string"===_typeof(t)?JSON.parse(t):t;var a=document.location.pathname,s=document.location.origin+document.location.pathname;document.location.href;var c=document.body.dataset.routeBonus,u=document.body.dataset.routeId,l=eventID.findIndex(function(e){return e===c});l>-1||eventID.length;var d=l>-1?eventID[l]:eventID[eventID.length-1];document.body.dataset.localeLang,document.body.dataset.websiteEnv,document.body.dataset.localeCountry;var p=document.body.dataset.geo,f=storage.getPageAffLinkClickIndex();f++,storage.setPageAffLinkClickIndex(f);var _=0;if(t.created){var g=new Date(t.created.date),m=new Date,h=Math.abs(m-g);_=Math.floor(h/864e5)}var y=365;if(t.expiredDate){var v=new Date(t.expiredDate.date),b=new Date;if(v<b)y=0;else{var S=Math.abs(v-b);y=Math.floor(S/864e5)+1}}dataLayer&&dataLayer.push(Object.assign({event:"click",event_id:"d-v".concat(document.body.dataset.amplitudeVersion,"-e").concat(r),event_cat:"w_website",event_name:o,page_current_path:JSON.stringify(a),page_url:JSON.stringify(s),page_group:JSON.stringify(d),widget_title:JSON.stringify(n),widget_id:JSON.stringify(null),page_route_id:JSON.stringify(u),widget_handler:JSON.stringify(null),widget_section:JSON.stringify(null),widget_position:JSON.stringify(null),casino_list_user_country:JSON.stringify(p),casino_user_country:JSON.stringify(p),casino_list_for_geo:JSON.stringify(!1),casino_domain:JSON.stringify(t.casino.domain),casino_bonus_title_short:JSON.stringify(t.titleShort?t.titleShort:null),casino_bonus_title_short_strlen:JSON.stringify(t.titleShort?t.titleShort.length:0),c
1asino_id:JSON.stringify(t.casino.casinoId),casino_name:JSON.stringify(t.casino.name),casino_bonus_amount_max:JSON.stringify(t.amountMax&&!isNaN(parseInt(t.amountMax))?parseInt(t.amountMax):0),casino_bonus_percent:JSON.stringify(t.percent?t.percent:0),casino_bonus_expired:JSON.stringify(!!t.expired&&t.expired),casino_bonus_id:JSON.stringify(t.id),casino_domain_bonus_id:JSON.stringify(t.casino.domain+"_"+t.id),casino_score_geo:JSON.stringify(!!t.score&&t.score),casino_afflink_exist:JSON.stringify(!!t.affiliateUrl),casino_bonus_wagering_requirements:JSON.stringify(t.wageringRequirements&&!isNaN(parseInt(t.wageringRequirements))?parseInt(t.wageringRequirements):0),casino_bonus_deposit_min:JSON.stringify(t.depositMin?parseInt(t.depositMin):0),casino_bonus_code_exist:JSON.stringify(!!t.code),casino_bonus_label_exist:JSON.stringify(!!t.label),casino_bonus_category:JSON.stringify(Array.isArray(t.bonusCategories)?t.bonusCategories.map(function(e){return e.name}).join(", "):null),casino_bonus_label:JSON.stringify(t.label?t.label:"Not Set"),widget_list_index:JSON.stringify(1),casino_bonus_type:JSON.stringify(Array.isArray(t.bonusTypes)?t.bonusTypes.map(function(e){return e.name}).join(", "):null),casino_bonus_free_spins:JSON.stringify(t.freeSpins?+t.freeSpins:0),casino_score_geo_text:JSON.stringify(i.casinoScoreGeoText(t.score)),casino_user_country_allowed:JSON.stringify(!0),casino_bonus_currency:JSON.stringify(t.currency&&Array.isArray(t.currency)&&t.currency.length&&!t.currency.every(function(e){return null===e})?t.currency:["Not Set"]),casino_bonus_active:JSON.stringify(!t.affiliateUrl),casino_bonus_slots:JSON.stringify(t.slots.length?Object.values(t.slots):["Not Set"]),casino_bonus_category_display:JSON.stringify("Not Set"),casino_geo_rating:JSON.stringify(t.score&&Number(t.score)?Number(t.score).toFixed(1):0),casino_bonus_active_days_left:JSON.stringify(+y),casino_bonus_days_after_create:JSON.stringify(+_),casino_bonus_exclusive:JSON.stringify(!!t.exclusive&&t.exclusive),casino_bonus_code:JSON.stringify(t.code?t.code:"Not Set"),casino_bonus_cashable:JSON.stringify(!!t.cashable&&t.cashable),sponsored:JSON.stringify(!!t.sponsored)}
1,utmParams()))}),this.selector=t,this.title=n,this.data=r,this.localCountry=o,this.description="",this.widgetAffLinkClickIndex=0,this.eventCat="w_bonus_list_restricted_popup",this.tncCountries=["GB"],this.noAmplitudeParam=new URLSearchParams(document.location.search).get("no-amplitude"),this.alternativePopupWidget=null!==(a=document.getElementById("alternativePopupWidget"))&&void 0!==a?a:null,this.sponsoredDisplay=this.alternativePopupWidget?"true"===this.alternativePopupWidget.dataset.promoDisplay:null},[{key:"generatePopup",value:function(){var e,t,n=this,r=document.createElement("div");r.className="bonusesPopup__wrapper";var o=document.createElement("div");o.className="bonusesPopup__title",o.innerHTML=null!==(e=__translate(this.title,this.localCountry))&&void 0!==e?e:this.title,r.appendChild(o);var a=document.createElement("div");a.id="bonusesPopupClose",a.className="bonusesPopup__close",a.innerHTML='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12.0007 10.586L16.9507 5.636L18.3647 7.05L13.4147 12L18.3647 16.95L16.9507 18.364L12.0007 13.414L7.05072 18.364L5.63672 16.95L10.5867 12L5.63672 7.05L7.05072 5.636L12.0007 10.586Z" fill="#6C6C6C"/></svg>';var i=document.createElement("div");i.className="bonusesPopup__items";this.data.slice(0,3).forEach(function(e,t){var r=n.bonusesPopupItemTemplate(e,"",t);i.appendChild(r)}),r.appendChild(i),r.appendChild(a);var s=document.createElement("p");s.className="tc-line",s.textContent="".concat(null!==(t=__translate("T&Cs Apply to All Bonuses. 18+ only. Gamble Responsibly.",this.localCountry))&&void 0!==t?t:"T&Cs Apply to All Bonuses. 18+ only. Gamble Responsibly."),r.appendChild(s),this.selector.appendChild(r),this.bonusesPopupLinks.call(this,this.data),this.onClickPromoCodeLoop()}},{key:"bonusesPopupItemTemplate",value:function(e,t,n){var r=document.createElement("div");r.className="bonusesPopup__card__wrapper";var o=document.createElement("div");return o.className="bonusesPopup__card",e.sponsored&&o.classList.add("promo"),o.dataset.element="bonusesPopup__item",o.dataset.casinoId=e.id,o.dataset.casinoTermsUrl=e.termsUrl,o.dataset.casinoDomain=e.casino.domain,o.dataset.casinoUrl=e.casino.domain+"?bonus="+e.id,o.dataset.casinoRestricted=e.restrictedCountries.filter(function(e){return null!=e}).join(","),o.dataset.casinoAffLink=e.affiliateUrl,o.dataset.casinoBlank=!0,o.dataset.casinoPublished=e.published,o.dataset.promo=JSON.stringify(e.sponsored),o.innerHTML=e.sponsored?this.sponosoredCard(e,n):this.card(e,n),r.append(o),r}},{key:"casinoDep",value:function(e){var t="";if(e.depositMin){var n,r=null!==(n=e.depositMinFormatted)&&void 0!==n?n:e.depositMin;t='<div class="bonusesPopup__card__content--dep">\n\t <span>'.concat(__translate("Minimum deposit",this.localCountry),':\n\t <span class="text">\n\t <b>').concat(r,"</b>\n\t </span>\n\t </span>\n\t </div>")}return t}},{key:"casinoReq",value:function(e){var t="";return e.wageringRequirements&&(t='<div class="bonusesPopup__card__content--req">\n <span>'.concat(__translate("Wagering requirements",this.localCountry),": <b>").concat(e.wageringRequirements,"</b></span>\n </div>")),t}},{key:"casinoPromo",value:function(e){var t="";return t=e.code||e.showPromocode?'<div data-element="bonus_promo"\n\t\t\t\t class="promo_code-block "\n\t\t\t\t data-default-promocode="'.concat(JSON.stringify(!e.code&&e.showPromocode),'"\n\t\t\t\t>\n\t\t\t\t\t<span class="promo_code-bg" data-text-before="').concat(__translate("Reveal",this.localCountry),'"></span>\n\t\t\t\t\t<span data-element="bonus_promo-value" class="promo_code-text">').concat(e.code?e.code:"ANALYZER",'</span>\n\t\t\t\t\t<div class="promo_code-copied" data-text-after="Copied!">\n\t\t\t\t\t\t<svg>\n\t\t\t\t\t\t\t<use href="/build/midori/assets/icons/icons_264.svg#check_circle"></use>\n\t\t\t\t\t\t</svg>\n\t\t\t\t\t</div>\n\t\t\t\t</div>'):'<span class="promo-no-code">'.concat(__translate("No code needed",this.localCountry),"</span>"),'<div class="card-td-promo"><span class="promo_code-title">'.concat(__translate("Promo code",this.localCountry),":</span> ").concat(t,"</div>")}},{key:"casinoSponsoredPromo",value:function(e){var t="";return(e.code||e.showPromocode)&&(e.id&&String(e.id).slice(-2),t='<div class="content-promoted-promo mobile">\n <div data-element="bonus_promo"\n data-default-promocode="'.concat(!e.code&&e.showPromocode,'"\n class="content-promo"\n >\n <div class="content-promo-code">
1\n <span class="promo_code-text" data-element="bonus_promo-value">').concat(e.code?e.code:"ANALYZER",'</span>\n <svg>\n <use href="/build/midori/assets/icons/icons_264.svg#copy"></use>\n </svg>\n </div>\n <div class="content-promo-copied" data-text-before="Copied">\n <svg>\n <use href="/build/midori/assets/icons/icons_264.svg#check_green"></use>\n </svg>\n </div>\n </div>\n </div>')),t}},{key:"btnText",value:function(){var e="/free-spins"===document.location.pathname?"Get free spins":"Play now";if(document.location.pathname.indexOf("/online-casinos")>-1&&(e="Visit casino"),"fr"===this.localCountry)switch(e){case"Get no deposit bonus":e="Obtenez un bonus sans dépôt";break;case"Get bonus":e="Prendre le Bonus";break;case"Visit casino":e="Visiter Casino"}var t=__translate(e,this.localCountry);return e=null!=t?t:e,e}},{key:"card",value:function(e,t){var n,r='<div class="bonusesPopup__card__top">\n <div class="bonusesPopup__card__top__logo">\n <div class="bonusesPopup__card__top__logo-bg"\n style="'.concat("FFFFFF"===e.casino.background?"background:#ffffff; border: 1px solid #DBD8D8":"background: linear-gradient(220deg, ".concat(hexToHSL(e.casino.background),", ").concat(hexToHSL(e.casino.background,40)," )"),'">\n <img src="').concat(e.casino.logo,'"\n alt="').concat(e.casino.name,'"\n title="').concat(e.casino.name,'" loading="lazy" width="80"\n height="80">\n </div>\n </div>\n <div class="bonusesPopup__card__top__info">\n <div class="bonusesPopup__card__top__info--name">').concat(e.casino.name,'</div>\n </div>\n </div>\n <div class="bonusesPopup__card__content">\n <div class="bonusesPopup__card__content--main">').concat(null!==(n=__translate(e.title,this.localCountry,!0))&&void 0!==n?n:e.title,"</div>\n ").concat(this.casinoDep(e),"\n\t\t ").concat(this.casinoReq(e),"\n </div>\n ").concat(this.casinoPromo(e),'\n <div class="bonusesPopup__card__btn-wrapper">\n\t <button class="bonusesPopup__card__btn">').concat(this.btnText(),'</button>\n\t</div>\n <div class="bonusesPopup__card__after">\n <div class="bonusesPopup__card__after--nocode">* ').concat(__translate("Code already applied",this.localCountry),'</div>\n <div class="bonusesPopup__card__after--select">\n <span class="bonusesPopup__card__after--select__txt">').concat(__translate("Show T&C",this.localCountry),'</span>\n <svg><use href="/build/midori/assets/icons/icons_264.svg#drop_down_gray"></use></svg></svg>\n </div>\n </div>');return r}},{key:"sponosoredCard",value:function(e,t){return"".concat(this.sponsoredTimer(t),'\n\t\t\t\t\t\t<div class="card-td-content">\n\t\t\t\t <div class="bonusesPopup__card__top">\n\t\t\t\t <div class="bonusesPopup__card__top__logo">\n\t\t\t\t <div class="bonusesPopup__card__top__logo-bg"\n\t\t\t\t style="').concat("FFFFFF"===e.casino.background?"background:#ffffff; border: 1px solid #DBD8D8":"background: linear-gradient(220deg, ".concat(hexToHSL(e.casino.background),", ").concat(hexToHSL(e.casino.background,40)," )"),'">\n\t\t\t\t <img src="').concat(e.casino.logo,'"\n\t\t\t\t alt="').concat(e.casino.name,'"\n\t\t\t\t title="').concat(e.casino.name,'" loading="lazy" width="80" height="80">\n\t\t\t\t </div>\n\t\t\t\t </div>\n\t\t\t\t <div class="bonusesPopup__card__top__info">\n\t\t\t\t <div class="bonusesPopup__card__top__info--name">').concat(e.titleShort,'</div>\n\t\t\t\t </div>\n\t\t\t\t </div>\n\t\t\t\t <div class="bonusesPopup__card__content">\n\t\t\t\t\t ').concat(this.casinoDep(e),"\n\t\t\t\t\t ").concat(this.casinoReq(e),"\n\t\t\t\t </div>\n\t\t\t\t ").concat(this.casinoSponsoredPromo(e),'\n\t\t\t\t <div class="bonusesPopup__card__btn-wrapper">\n\t\t\t\t \t<button class="bonusesPopup__card__btn">').concat(this.btnText(),"</button>
1\n\t\t\t\t </div>\n\t\t\t\t</div> ")}},{key:"sponsoredTimer",value:function(){return' <div class="card-td-limited">\n <p class="limited-text"><svg>\n <use href="/build/midori/assets/icons/icons_264.svg#stopwatch"></use>\n </svg>Exclusive Deal</p>\n </div>'}},{key:"bonusesPopupLinks",value:function(e){var t=this,n=this.selector.querySelectorAll('[data-element="bonusesPopup__item"]'),r=this.isBonusesPopupsShow();Promise.all(_toConsumableArray(n).map(function(e){var n=e.dataset.casinoDomain,r=document.body.dataset.pathCasinos,o="/".concat(r,"/").concat(n);return t.isPageExist(o)})).then(function(e){e.forEach(function(e,t){if(!e){var r=n[t].querySelector('[data-element="bonusesPopup__review"]');r&&r.classList.add("disabled")}})}),n.forEach(function(n,o){n.addEventListener("click",function(){var a=_asyncToGenerator(_regenerator().m(function a(i){var s,c,u,l,d,p,f,_,g,m,h,y,v,b,S,w,k,P,C,O,A,T,E;return _regenerator().w(function(a){for(;;)switch(a.n){case 0:if(i.preventDefault(),i.stopPropagation(),s=i.target,c=n.dataset.casinoId,u=n.dataset.casinoUrl,l=n.dataset.casinoBlank,d=n.dataset.casinoRestricted,p=n.dataset.casinoAffLink,f=n.dataset.casinoDomain,_=n.dataset.casinoTermsUrl,g=n.dataset.casinoPublished,m=Boolean(t.tncCountries.includes(document.body.dataset.geo.toUpperCase())&&p),h=n.closest(".bonusesPopup").dataset.h2,y={widgetTitle:h,eventCat:t.eventCat,casinos:e,casino:e[o],btnText:"".concat(t.btnText())},!s.closest(".bonusesPopup__card__after--select")){a.n=3;break}if((v=document.createElement("div")).classList.add("bonusesPopup__card__after--content"),b=n.querySelector(".bonusesPopup__card__after--select__txt"),S=n.querySelector(".bonusesPopup__card__after--content"),!n.classList.contains("tac-show")||!S){a.n=1;break}return b.innerHTML=__translate("Show T&C",t.localCountry),S.parentNode.removeChild(S),n.classList.remove("tac-show"),a.a(2);case 1:return b.innerHTML=__translate("Hide T&C",t.localCountry),a.n=2,t.getTerms(c);case 2:w=a.v,n.classList.add("tac-show"),w.length>160?(P=w.slice(0,160),C=w.slice(160),v.innerHTML='<span class="bonusesPopup__card__after--text" '.concat(m?'data-terms_url="'.concat(_,'"'):"",">")+P+'<span class="hidden-text">'.concat(C,'</span><span class="show-more-link">... ').concat(null!==(k=__translate("Show more",t.localCountry))&&void 0!==k?k:"Show more","</span></span>"),O=v.querySelector(".show-more-link"),A=v.querySelector(".hidden-text"),O.addEventListener("click",function(e){var n;(e.stopPropagation(),"none"!==A.style.display||""!==A.style.display)?(A.style.display="inline",O.textContent=""):(A.style.display="none",O.textContent="... ".concat(null!==(n=__translate("Show more",t.localCountry))&&void 0!==n?n:"Show more"))})):v.innerHTML='<span class="bonusesPopup__card__after--text" '.concat(m?'data-terms_url="'.concat(_,'"'):"",">").concat(w,"</span>"),n.append(v),y.widgetPref="showBlock",y.clickAffLinkVersion=81,y.showWidgetVersion=82,y.eventAffClickName="casino_bonus_tc_open",setTimeout(function(){t.showTermsAmplitude(y)},0),a.n=6;break;case 3:if("bonusesPopup__review"!==s.dataset.element){a.n=5;break}if(g){a.n=4;break}return a.a(2);case 4:T=document.body.dataset.pathCasinos,document.location.href="/".concat(T,"/").concat(f),a.n=6;break;case 5:s.classList.contains("bonusesPopup__card__after--content")||s.closest(".bonusesPopup__card__after--content")?m&&(t.noAmplitudeParam||(y.clickAffLinkVersion=81,y.showWidgetVersion=82,y.eventAffClickName="tc_redirect",t.amplitudeTC(y)),window.open(_,"_blank")):(setTimeout(function(){t.selector.dataset.popupShown=!0,t.selector.classList.remove("show"),r||document.body.classList.remove("bonusesPopup__show")},1e3),E={event:"TrackOffersClickMainBonusesTableAffiliateLink",eventCategory:"TrackOffers",eventAction:"ClickMainBonusesTableAffiliateLink",eventLabel:"".concat(f),eventValue:"".concat(o+1)},navAff(u,l,E,d,p,s),centrifugeManager.publishCustomEvent("bonusClicked",{bonusId:c,isSponsored:n.dataset.promo}),y.widgetPref="clickAffLink",y.clickAffLinkVersion=81,y.showWidgetVersion=82,y.eventAffClickName="casino_visit",setTimeout(function(){t.clickAffLinkAmplitude(y,++t.widgetAffLinkClickIndex)},0));case 6:return a.a(2)}},a)}));return function(e){return a.apply(this,arguments)}}())}),this.selector.addEventListener("click",function(){var e=_asyncToGenerator(_regenerator().m(function e(n){return _regenerator().w(function(e){for(;;)switch(e.n){case 0:n.target.closest(".bonusesPopup__close")&&(t.selector.dataset.popupShown=!0,t.selector.classList.remove("show"),r||document.body.classList.remove("bonusesPopup__show"));case 1:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}()),this.tncCountries.includes(document.body.dataset.geo.toUpperCase())&&n.forEac
1h(function(e){var t=e.querySelector(".bonusesPopup__card__after--select");t&&t.click()})}},{key:"showTermsAmplitude",value:function(e){var t=e.casino,n=e.widgetTitle,r=e.eventCat,o=e.clickAffLinkVersion,a=e.eventAffClickName,i=e.btnText;t="string"===_typeof(t)?JSON.parse(t):t;var s=document.location.pathname,c=document.location.origin+document.location.pathname;document.location.href;var u=document.body.dataset.routeBonus,l=document.body.dataset.routeId,d=eventID.findIndex(function(e){return e===u});d>-1||eventID.length;var p=d>-1?eventID[d]:eventID[eventID.length-1];document.body.dataset.localeLang,document.body.dataset.websiteEnv,document.body.dataset.localeCountry;var f=document.body.dataset.geo,_=0;if(t.created){var g=new Date(t.created.date),m=new Date,h=Math.abs(m-g);_=Math.floor(h/864e5)}var y=365;if(t.expiredDate){var v=new Date(t.expiredDate.date),b=new Date;if(v<b)y=0;else{var S=Math.abs(v-b);y=Math.floor(S/864e5)+1}}dataLayer&&dataLayer.push(Object.assign({event:"addEvents_showBlock",event_id:"d-v".concat(document.body.dataset.amplitudeVersion,"-e").concat(o),event_cat:r,event_name:a,page_current_path:JSON.stringify(s),page_url:JSON.stringify(c),page_group:JSON.stringify(p),widget_title:JSON.stringify(n),widget_id:JSON.stringify(null),page_route_id:JSON.stringify(l),widget_handler:JSON.stringify(null),widget_section:JSON.stringify(null),widget_position:JSON.stringify(null),casino_list_user_country:JSON.stringify(f),casino_user_country:JSON.stringify(f),casino_list_for_geo:JSON.stringify(!1),casino_domain:JSON.stringify(t.casino.domain),casino_bonus_title_short:JSON.stringify(t.titleShort?t.titleShort:null),casino_bonus_title_short_strlen:JSON.stringify(t.titleShort?t.titleShort.length:0),casino_id:JSON.stringify(t.casino.casinoId),casino_name:JSON.stringify(t.casino.name),casino_bonus_amount_max:JSON.stringify(t.amountMax&&!isNaN(parseInt(t.amountMax))?parseInt(t.amountMax):0),casino_bonus_percent:JSON.stringify(t.percent?t.percent:0),casino_bonus_expired:JSON.stringify(!!t.expired&&t.expired),casino_bonus_button_name:JSON.stringify(i),casino_bonus_id:JSON.stringify(t.id),casino_domain_bonus_id:JSON.stringify(t.casino.domain+"_"+t.id),casino_score_geo:JSON.stringify(!!t.score&&t.score),casino_afflink_exist:JSON.stringify(!!t.affiliateUrl),casino_bonus_wagering_requirements:JSON.stringify(t.wageringRequirements&&!isNaN(parseInt(t.wageringRequirements))?parseInt(t.wageringRequirements):0),casino_bonus_deposit_min:JSON.stringify(t.depositMin?parseInt(t.depositMin):0),casino_bonus_code_exist:JSON.stringify(!!t.code),casino_bonus_label_exist:JSON.stringify(!!t.label),casino_bonus_category:JSON.stringify(Array.isArray(t.bonusCategories)?t.bonusCategories.map(function(e){return e.name}).join(", "):null),casino_bonus_label:JSON.stringify(t.label?t.label:"Not Set"),widget_list_index:JSON.stringify(1),casino_bonus_type:JSON.stringify(Array.isArray(t.bonusTypes)?t.bonusTypes.map(function(e){return e.name}).join(", "):null),casino_bonus_free_spins:JSON.stringify(t.freeSpins?+t.freeSpins:0),casino_score_geo_text:JSON.stringify(this.casinoScoreGeoText(t.score)),casino_user_country_allowed:JSON.stringify(!0),casino_bonus_currency:JSON.stringify(t.currency&&!t.currency.every(function(e){return null===e})?Object.values(t.currency):["Not Set"]),casino_bonus_active:JSON.stringify(!t.affiliateUrl),casino_bonus_slots:JSON.stringify(t.slots.length?Object.values(t.slots):["Not Set"]),casino_bonus_category_display:JSON.stringify("Not Set"),casino_geo_rating:JSON.stringify(t.score?+t.score.toFixed(1):0),casino_bonus_active_days_left:JSON.stringify(+y),casino_bonus_days_after_create:JSON.stringify(+_),casino_bonus_exclusive:JSON.stringify(!!t.exclusive&&t.exclusive),casino_bonus_code:JSON.stringify(t.code?t.code:"Not Set"),casino_bonus_cashable:JSON.stringify(!!t.cashable&&t.cashable),sponsored:JSON.stringify(t.sponsored)}
1,utmParams()))}},{key:"clickAffLinkAmplitude",value:(n=_asyncToGenerator(_regenerator().m(function e(t,n){var r,o,a,i,s,c,u,l,d,p,f,_,g,m,h,y,v,b,S,w,k,P,C,O;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return o=t.casino,a=t.widgetTitle,i=t.eventCat,s=t.clickAffLinkVersion,c=t.eventAffClickName,u=t.btnText,o="string"===_typeof(o)?JSON.parse(o):o,l=document.location.pathname,d=document.location.origin+document.location.pathname,document.location.href,p=document.body.dataset.routeBonus,f=document.body.dataset.routeId,(_=eventID.findIndex(function(e){return e===p}))>-1||eventID.length,g=_>-1?eventID[_]:eventID[eventID.length-1],document.body.dataset.localeLang,document.body.dataset.websiteEnv,document.body.dataset.localeCountry,m=document.body.dataset.geo,h=storage.getPageAffLinkClickIndex(),h++,storage.setPageAffLinkClickIndex(h),y=0,o.created&&(v=new Date(o.created.date),b=new Date,S=Math.abs(b-v),y=Math.floor(S/864e5)),w=365,o.expiredDate&&(k=new Date(o.expiredDate.date),P=new Date,k<P?w=0:(C=Math.abs(k-P),w=Math.floor(C/864e5)+1)),e.n=1,buildExternalId(o.id);case 1:O=e.v,dataLayer&&dataLayer.push(Object.assign(_objectSpread2(_objectSpread2({event:"addEvents_clickAffLink"},O?{external_id:JSON.stringify(O)}:{}),{},{event_id:"d-v".concat(document.body.dataset.amplitudeVersion,"-e").concat(s),event_cat:i,event_name:c,page_current_path:JSON.stringify(l),page_url:JSON.stringify(d),page_group:JSON.stringify(g),widget_title:JSON.stringify(a),widget_id:JSON.stringify(null),page_route_id:JSON.stringify(f),widget_handler:JSON.stringify(null),widget_section:JSON.stringify(null),widget_position:JSON.stringify(null),casino_list_user_country:JSON.stringify(m),casino_user_country:JSON.stringify(m),casino_list_for_geo:JSON.stringify(!1),casino_domain:JSON.stringify(o.casino.domain),casino_bonus_title_short:JSON.stringify(o.titleShort?o.titleShort:null!==(r=o.title)&&void 0!==r?r:null),casino_bonus_title_short_strlen:JSON.stringify(o.titleShort?o.titleShort.length:0),casino_id:JSON.stringify(o.casino.casinoId),casino_name:JSON.stringify(o.casino.name),casino_bonus_amount_max:JSON.stringify(o.amountMax&&!isNaN(parseInt(o.amountMax))?parseInt(o.amountMax):0),casino_bonus_percent:JSON.stringify(o.percent?o.percent:0),casino_bonus_expired:JSON.stringify(!!o.expired&&o.expired),casino_bonus_button_name:JSON.stringify(u),casino_bonus_id:JSON.stringify(o.id),casino_domain_bonus_id:JSON.stringify(o.casino.domain+"_"+o.id),casino_score_geo:JSON.stringify(!!o.score&&o.score),casino_afflink_exist:JSON.stringify(!!o.affiliateUrl),casino_bonus_wagering_requirements:JSON.stringify(o.wageringRequirements&&!isNaN(parseInt(o.wageringRequirements))?parseInt(o.wageringRequirements):0),casino_bonus_deposit_min:JSON.stringify(o.depositMin?parseInt(o.depositMin):0),casino_bonus_code_exist:JSON.stringify(!!o.code),casino_bonus_label_exist:JSON.stringify(!!o.label),casino_bonus_category:JSON.stringify(Array.isArray(o.bonusCategories)?o.bonusCategories.map(function(e){return e.name}).join(", "):null),casino_bonus_label:JSON.stringify(o.label?o.label:"Not Set"),widget_list_index:JSON.stringify(1),casino_bonus_type:JSON.stringify(Array.isArray(o.bonusTypes)?o.bonusTypes.map(function(e){return e.name}).join(", "):null),casino_bonus_free_spins:JSON.stringify(o.freeSpins?+o.freeSpins:0),casino_score_geo_text:JSON.stringify(this.casinoScoreGeoText(o.score)),page_afflink_click_index:JSON.stringify(h),widget_afflink_click_index:JSON.stringify(n),casino_user_country_allowed:JSON.stringify(!0),casino_bonus_currency:JSON.stringify(o.currency&&Array.isArray(o.currency)&&o.currency.length&&!o.currency.every(function(e){return null===e})?o.currency:["Not Set"]),casino_bonus_active:JSON.stringify(!o.affiliateUrl),casino_bonus_slots:JSON.stringify(o.slots.length?Object.values(o.slots):["Not Set"]),casino_bonus_category_display:JSON.stringify("Not Set"),casino_geo_rating:JSON.stringify(o.score&&Number(o.score)?Number(o.score).toFixed(1):0),casino_bonus_active_days_left:JSON.stringify(+w),casino_bonus_days_after_create:JSON.stringify(+y),casino_bonus_exclusive:JSON.stringify(!!o.exclusive&&o.exclusive),casino_bonus_code:JSON.stringify(o.code?o.code:"Not Set"),casino_bonus_cashable:JSON.stringify(!!o.cashable&&o.cashable),sponsored:JSON.stringify(!!o.sponsored)}
1),utmParams()));case 2:return e.a(2)}},e,this)})),function(e,t){return n.apply(this,arguments)})},{key:"casinoScoreGeoText",value:function(e){var t="";return 5===e?t="A":e>4.5&&e<=4.9?t="B":e>4&&e<=4.5?t="C":e<=4&&(t="D"),t}},{key:"isBonusesPopupsShow",value:function(){var e=document.querySelectorAll(".bonusesPopup"),t=!1;return(e=_toConsumableArray(e)).forEach(function(e){e.classList.contains("show")&&!t&&(t=!0)}),t}},{key:"bonusesPopupEqualBonusHeight",value:function(e){var t=Math.max.apply(Math,_toConsumableArray(e.map(function(e){return e.offsetHeight})));e.forEach(function(e){e.style.minHeight=t+"px"})}},{key:"onClickPromoCodeLoop",value:function(){var e=this,t=document.querySelector('.bonusesPopup[data-type="affLinksPopup"]');t&&t.querySelectorAll('[data-element="bonus_promo"]').forEach(function(t){t.addEventListener("click",function(n){if(!JSON.parse(t.dataset.defaultPromocode)){var r;n.stopPropagation();var o=t.closest('[data-element="bonusesPopup__item"]'),a=JSON.parse(o.dataset.promo),i=o.querySelector('[data-element="bonus_promo-value"]'),s=i.innerText||(null===(r=i.dataset)||void 0===r?void 0:r.textBefore);e.copyText(s).then(function(){t.classList.contains("copied")&&t.classList.remove("copied"),t.classList.add("coping"),a||setTimeout(function(){t.classList.remove("coping"),t.classList.add("copied")},1500)})}})})}},{key:"copyText",value:function(e){return navigator.clipboard.writeText(e)}},{key:"getTerms",value:(t=_asyncToGenerator(_regenerator().m(function e(t){return _regenerator().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,getTermsAndConditions(t);case 1:return e.a(2,e.v)}},e)})),function(e){return t.apply(this,arguments)})},{key:"isPageExist",value:(e=_asyncToGenerator(_regenerator().m(function e(t){var n;return _regenerator().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,fetch(t,{method:"HEAD"});case 1:return n=e.v,e.a(2,n.ok);case 2:return e.p=2,e.v,e.a(2,!1)}},e,null,[[0,2]])})),function(t){return e.apply(this,arguments)})}]);var e,t,n}(),AffLinksPopup=function(){function e(t,n,r){var o;return _classCallCheck(this,e),_defineProperty(o=_callSuper(this,e),"bonusCardsBody",document.querySelectorAll('[data-element="bonus_table_row"]')),o.data=t,o.loc=n,o.localCountry=r,o.selector=document.querySelector('.bonusesPopup[data-type="affLinksPopup"]'),o.title="We don't know about this casino much or this casino is restricted in your area. Please, try these casinos instead:",o}return _inherits(e,BonusesPopup),_createClass(e,[{key:"affLinksPopupInit",value:function(){this.selector&&this.affLinksPopupTrigger()}},{key:"affLinksPopupDescriptionLink",value:function(e,t){var n,r=document.createElement("div");r.classList.add("bonusesPopup__description"),"casinosanalyzer.com"===getDomainName&&checkIfAmplitudeAndAnalyticsLoaded();var o=null!==(n=__translate("Redirect me to %%casino%% anyway",this.localCountry))&&void 0!==n?n:"Redirect me to ".concat(t," anyway");return o=o.replace("%%casino%%",t),r.innerHTML='<a class="bonusesPopup__description--link">'.concat(o," â</a>"),r}},{key:"affLinksAppendDescription",value:function(e,t){var n=this.selector.querySelector(".bonusesPopup__items"),r=this.selector.querySelector(".bonusesPopup__description");r&&r.remove();var o=this.affLinksPopupDescriptionLink(e,t);o&&n.parentNode.insertBefore(o,n)}},{key:"affLinksRedirectClick",value:function(e,t,n){this.selector.querySelector(".bonusesPopup__description--link").addEventListener("click",function(){navAff(e,!0,null,"",n||e)})}},{key:"affLinksRestricted",value:function(e,t,n,r){var o=this,a=e?e.split(",").map(function(e){return e.toLowerCase()}):[],i=!1;if(this.loc&&a.length&&(i=a.find(function(e){return e===o.loc})),i||!r){!this.selector.children.length&&this.generatePopup(),this.affLinksAppendDescription(t,n),this.affLinksRedirectClick(t,e,r),document.body.classList.add("bonusesPopup__show"),this.selector.classList.add("show");var s=Array.from(this.selector.querySelectorAll(".bonusesPopup__item__bonus "));this.bonusesPopupEqualBonusHeight(s)}}},{key:"affLinksPopupTrigger",value:function(){var e=this;this.bonusCardsBody.length&&this.bonusCardsBody.forEach(function(t){t.addEventListener("click",function(){return e.affLinksRestricted(t.dataset.restricted,t.dataset.url,t.dataset.name,t.dataset.affiliate)})}),document.addEventListener("ajaxBonusAffLinksPopup",function(t){if(t.detail&&t.detail.tr){var n=t.detail.tr;e.affLinksRestricted(n.dataset.restricted,n.dataset.url,n.dataset.name,n.dataset.affiliate)}})}},{key:"show",value:function(e){e.dataset.restricted;var t=e.dataset.url;e.dataset.name;var n=e.dataset.affiliate,r=e.querySelector('[data-element="bonus_btn"]');return navAff(t,!0,null,"",n||t,r),!1}}])}(),__bridge_afflinksPopup=Object.freeze({__proto__:null,AffLinksPopup:AffLinksPopup});
1function loadIfExists(e,t,n){return document.querySelector(e)?t().then(function(e){return n(e)}):null}window.__cdnSharedModules={globals:__bridge_globals,translate:__bridge_translate,api:__bridge_api,CentrifugeManager:__bridge_CentrifugeManager,getProfilePath:__bridge_getProfilePath,authApi:__bridge_authApi,userReviewApi:__bridge_userReviewApi,gamificationApi:__bridge_gamificationApi,storage:__bridge_storage,secureApiClient:__bridge_secureApiClient,afflinksPopup:__bridge_afflinksPopup};var searchDropdownModulePromise=null;function loadSearchDropdown(){return searchDropdownModulePromise||(searchDropdownModulePromise=import("./chunks/scripts.bundle/SearchDropdown-RXoUnqP-.js")),searchDropdownModulePromise}var googleOneTapDomains=["casinosanalyzer.com","kasynoanalyzer.com","casinosanalyzer.ca","ausscasinosanalyzer.com","casinosanalyzer.co.nz","bonosanalyzer.com","casinoanalyser.com"];function initCritical(){auth.initAuth();var e=document.querySelectorAll("[data-name=external--link]"),t=document.querySelectorAll("[data-name=internal--link]");checkIfAmplitudeAndAnalyticsLoaded(),adminPanelInitFn(),externalLinkClick(e),internalLinkClick(t),localeSwitcherFn(),geoSwitcherFn(),headerEventsFn(),setGrowthbookDataParams(),setGeoFactGlobal();var n=document.querySelector("#cookiesBanner");if(n){var r,o,a,i=function(){localStorage.setItem("cookiesBannerAccepted",!0),n.classList.add("hide")};null===(r=n.querySelector("#cookiesBannerAccept"))||void 0===r||r.addEventListener("click",i),null===(o=n.querySelector("#cookiesBannerDecline"))||void 0===o||o.addEventListener("click",i),null===(a=n.querySelector("#cookiesBannerClose"))||void 0===a||a.addEventListener("click",i)}var s=document.querySelector(".header__search");if(s){var c=document.querySelector("#headerSearchBtn");c&&c.addEventListener("click",function(e){s.classList.contains("show")||loadSearchDropdown().then(function(t){return(0,t.activateSearchBlock)(e)})});var u=document.querySelector("#headerSearchInputMobile");u&&u.addEventListener("click",function(e){loadSearchDropdown().then(function(t){return(0,t.activateSearchBlock)(e)})})}navigator.userAgent.indexOf("iPhone")>-1&&document.querySelector("[name=viewport]").setAttribute("content","width=device-width, initial-scale=1, maximum-scale=1");document.querySelectorAll(".style_1").forEach(function(e){var t=document.createElement("div");t.className="style_1--wrapper",e.parentNode.insertBefore(t,e),t.appendChild(e)})}function initPageModules(){isCurrentPage404ByDOM()||import("./chunks/scripts.bundle/userReviewInit-Dk3l6eG_.js").then(function(e){return(0,e.userReviewInitFn)()}),loadIfExists(".primeBgImg",function(){return import("./chunks/scripts.bundle/PrimeBgImg-BFl3tDT5.js")},function(e){return e.primeBgImgFn()}),loadIfExists('[data-element="bonus_table"]',function(){return import("./chunks/scripts.bundle/CasinoBonusTable-DCeLSurc.js")},function(e){return e.newCasinoBonusTable()}),loadIfExists("#contactUsPage",function(){return import("./chunks/scripts.bundle/Contacts-B19pLuSG.js")},function(e){return e.newContacts()}),loadIfExists("#writeForUsPage",function(){return import("./chunks/scripts.bundle/WriteForUs-DLfuSYBq.js")},function(e){return e.writeForUs()}),loadIfExists("#partnershipPageTeam",function(){return import("./chunks/scripts.bundle/Partnership-1USBdpV7.js")},function(e){return e.newPartnership()}),loadIfExists(".history__timeline",function(){return import("./chunks/scripts.bundle/HistoryTimeline-B1dEjQmM.js")},function(e){return e.newHistoryTimeline()}),loadIfExists('.editorialGuidelines__hero-tnc[data-element="editorial_intro-block"]',function(){return import("./chunks/scripts.bundle/EditorialGuidelinesHero-DFQh9ejz.js")},function(e){return e.newEditorialGuidelinesHero()}),loadIfExists("[data-table-modern]",function(){return import("./chunks/scripts.bundle/CasinoBonusTableModern-ArR2Y-v3.js")},function(e){return e.casinoBonusTableModern.init()}),loadIfExists('[data-element="bonus_table-eeat"]',function(){return import("./chunks/scripts.bundle/CasinoBonusEEAT-DhXjwIcb.js")},function(e){return e.casinoBonusEEAT.init()}),loadIfExists("#comingSoonOffer",function(){return import("./chunks/scripts.bundle/ComingSoonOffer-1dFkBayZ.js")},function(e){return e.comingSoonOffer.init()});var e=document.querySelectorAll(".trustpilot-banner");e.length>0&&Promise.resolve().then(function(){return __bridge_globals}).then(function(t){var n=t.removeBannersAfterFirst;e.forEach(n)})}function initScriptLoader(){var e=document.body.dataset.version;window.getAmplitudeDeviceId=getAmplitudeDeviceId;var t=[{path:"/build/js/growthBookSDKExperiments.js?v=".concat(e),condition:!document.body.hasAttribute("data-no-growthbook")}],n=[{path:"/build/js/wisepops.js?v=".concat(e),async:!0,condition:"/"===window.location.pathname&&"casinosanalyzer.com"===getDomainName()&&!document.body.hasAttribute("data-no-wisepops")}],r=[].concat(t,n).filter(function(e){return e.condition});loadScripts(r),"/"!==window.location.pathname||"casinosanalyzer.com"!==getDomainName()||document.body.hasAttribute("data-no-wisepops")||isWisepopsLoaded()}var amplitudeInitPromise=null;function loadAmplitudeScripts(){var e=document.body.dataset.version;loadScripts([{path:"/build/".concat(document.body.dataset.templateName,"/assets/js/bundles/amplitude.bundle.min.js?v=").concat(e),async:!0,type:"module",crossorigin:"anonymous"},{path:"/build/js/tagAmplitudeSDK.js?v=".concat(e),async:!0},{path:"/build/js/tagWAAmplitudeEvents.js?v=".concat(e),async:!0}])}function initAmplitudeOnDemand(){return amplitudeInitPromise||(document.body.hasAttribute("data-no-amplitude")||!document.body.dataset.amplitudeVersion?null:amplitudeInitPromise=Promise.resolve().then(loadAmplitudeScripts))}function initAmplitudeOnFirstInteraction(){var e=["pointerdown","keydown","scroll","touchstart"],t=function(){e.forEach(function(e){return document.removeEventListener(e,t)}),initAmplitudeOnDemand()};e.forEach(function(e){return document.addEventListener(e,t,{once:!0,passive:!0})})}var isWisepopsLoaded=function(){setTimeout(function(){wisepops("properties",{isLoggedIn:!!document.body.dataset.userId},{temporary:!0})},500)},loadPopupsCssNow=null,whenLoaded=function(e){return"complete"===document.readyState?e():window.addEventListener("load",e,{once:!0})},nextFrame=function(){return new Promise(function(e){return requestAnimationFrame(e)})};function loadSentry(){var e=document.body.dataset.sentryLoader;e&&loadScripts([{path:e,async:!0,crossorigin:"anonymous"}])}function initDeferredQueue(){whenLoaded(function(){queueIdleTask(function(){return initScriptLoader()}),queueIdleTask(function(){return loadIfExists('[data-element="bonusesFilter"]',function(){return import("./chunks/scripts.bundle/BonusesFilter-CjoIYwZR.js")},function(e){return e.bonusesFilter.init()})}),queueIdleTask(function(){return loadIfExists(".stickyWidget",function(){return import("./chunks/scripts.bundle/StickyWidget-CRFdyIq2.js")},function(e){return e.stickyWidgetDetection()})}),queueIdleTask(function(){return!isCurrentPage404ByDOM()&&import("./chunks/scripts.bundle/hotBonusesPopup-CS3KVty9.js").then(function(e){return e.hotBonuses.init()})}),queueIdleTask(function(){return import("./chunks/scripts.bundle/bonusCoinsPopup-DmidRvHA.js").then(function(e){return e.bonusCoins.init()})}),queueIdleTask(function(){return import("./chunks/scripts.bundle/InitOffers-CJP9Jw_0.js").then(function(e){return(0,e.initOffers)()})}),document.body.dataset.gamificationEnabled&&(queueIdleTask(function(){return import("./chunks/scripts.bundle/questPopup-CEzwOtyB.js").then(function(e){return e.questPopup.init()})}),queueIdleTask(function(){return import("./chunks/scripts.bundle/dayStreakPopup-Db1Yyfsm.js").then(function(e){return e.dayStreakPopup.init()})})),queueIdleTask(function(){return import("./chunks/scripts.bundle/telegramRegistrationPopup-6g1u9RnJ.js").then(function(e){return e.tgRegPo
1pup.init()})}),queueIdleTask(function(){return import("./chunks/scripts.bundle/reactionsFeedbackPopup-R0SK19kF.js").then(function(e){return e.reactionsFeedbackPopup.init()})}),queueIdleTask(function(){var e=document.querySelector("template[data-tuesday-popup-widget]");return e||"casinosanalyzer.co.nz"===getDomainName()?import("./chunks/scripts.bundle/requiredDayPopup-1m3zYx6b.js").then(function(t){return t.requiredDayPopup.init(e)}):null}),queueIdleTask(function(){return Promise.resolve().then(function(){return __bridge_CentrifugeManager}).then(function(e){return e.centrifugeManager.initialize()})}),queueIdleTask(function(){return nextFrame().then(function(){return autoOptimizeWidgets(100)})}),queueIdleTask(function(){var e;return null===(e=loadPopupsCssNow)||void 0===e?void 0:e()}),queueIdleTask(function(){return initAmplitudeOnDemand()}),queueIdleTask(function(){return loadSentry()})})}var googleOneTapInitPromise=null;function initGoogleOneTapOnDemand(){return googleOneTapInitPromise||(document.body.dataset.userId||!googleOneTapDomains.includes(getDomainName())?null:googleOneTapInitPromise=import("./chunks/scripts.bundle/authGoogleOneTap-B3A7DeN9.js").then(function(e){return e.authGoogleOneTap.init()}))}function initGoogleOneTapTriggers(){document.querySelectorAll("#profileHeaderNotAuth, #authSignupButton").forEach(function(e){return e.addEventListener("click",initGoogleOneTapOnDemand,{once:!0})})}function autoOptimizeWidgets(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=window.innerHeight;document.querySelectorAll("[data-widget-id]").forEach(function(n){if(!n.querySelector(".tableOfContentWidget")&&!n.querySelector(".stickyWidget")&&(!["SimilarCasinosWidget","CrBannerWidget","BonusWidget","RegistrationWidget","CasinoInfoWidget"].includes(n.dataset.widgetHandler)&&n.getBoundingClientRect().top+window.scrollY>t+e)){var r=n.offsetHeight;r>50&&(n.style.containIntrinsicSize="none ".concat(r,"px"),n.style.contentVisibility="auto")}})}var POPUP_CLASS_PREFIXES=["bonusesPopup","auth_popup","authWheelPopup","userReviewPopup","wheels","issue-dialog","background_shadow","bonusCoinPopup","bonus-vault","day__","day--","progress-bar","reactionsPopup","reactionsRegisterPopup","closeConfirmationPopup","reactionsFeedbackPopup","success"],POPUP_CLASS_REGEX=new RegExp("(?:^|\\s)(?:".concat(POPUP_CLASS_PREFIXES.join("|"),")")),POPUP_CLASS_SELECTOR=POPUP_CLASS_PREFIXES.map(function(e){return'[class*="'.concat(e,'"]')}).join(",");function isPopupElement(e){return"string"==typeof e.className&&POPUP_CLASS_REGEX.test(e.className)}function initPopupsCssLoading(){var e=["pointerdown","keydown","touchstart"],t=null,n=function(){var r;return null===(r=t)||void 0===r||r.disconnect(),e.forEach(function(e){return document.removeEventListener(e,n,{capture:!0})}),loadPopupsCss()};return(t=new MutationObserver(function(e){var t,r=_createForOfIteratorHelper(e);try{for(r.s();!(t=r.n()).done;){var o=t.value;if("attributes"!==o.type){var a,i=_createForOfIteratorHelper(o.addedNodes);try{for(i.s();!(a=i.n()).done;){var s=a.value;if(s.nodeType===Node.ELEMENT_NODE&&(isPopupElement(s)||s.querySelector(POPUP_CLASS_SELECTOR)))return n()}}catch(e){i.e(e)}finally{i.f()}}else if(isPopupElement(o.target))return n()}}catch(e){r.e(e)}finally{r.f()}})).observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["class"]}),e.forEach(function(e){return document.addEventListener(e,n,{capture:!0,passive:!0})}),n}function initAutoOptimizeOnResize(){var e;window.addEventListener("resize",function(){clearTimeout(e),e=setTimeout(function(){requestAnimationFrame(function(){return autoOptimizeWidgets(100)})},150)})}document.addEventListener("DOMContentLoaded",function(){loadPopupsCssNow=initPopupsCssLoading(),initCritical(),initPageModules(),initGoogleOneTapTriggers(),initAmplitudeOnFirstInteraction(),initDeferredQueue(),initAutoOptimizeOnResize()});export{sendResetPasswordLink as $,navAff as A,AffLinksPopup as B,_typeof as C,getTermsAndConditions as D,getWidgetAffLinkClickIndex as E,getLocaleCountry as F,isDesktop as G,actualStorageDateAndGeo as H,getProfilePath as I,updateCoinsBalance as J,fetchQuests as K,isPopupsCssLoaded as L,loadPopupsCss as M,getDomainName as N,_classPrivateFieldGet2 as O,_classPrivateFieldSet2 as P,_assertClassBrand as Q,_classPrivateMethodInitSpec as R,_classPrivateFieldInitSpec as S,checkEmailExists as T,signUp as U,signIn as V,finalizeUserReview as W,getUserReviewLimit as X,storeUserReview as Y,storeUserReviewScreenshots as Z,__translate as _,_asyncToGenerator as a,sendConfirmEmailLink as a0,hexToHsl as a1,brevoUtmData as a2,BonusesPopup as a3,__bridge_afflinksPopup as a4,_regenerator as b,centrifugeManager as c,_objectSpread2 as d,eventID as e,fetchOffers as f,buildExternalId as g,geoCloudflareLocation as h,_createClass as i,_classCallCheck as j,_defineProperty as k,_regeneratorValues as l,_createForOfIteratorHelper as m,elementInViewport as n,baseHttp as o,_toConsumableArray as p,_slicedToArray as q,getSelectedCountryList as r,secureApiFetch as s,changeCountry as t,utmParam
1s as u,deleteCookie as v,_inherits as w,_superPropGet as x,_callSuper as y,yieldToMain as z};
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.