1(self.webpackChunk=self.webpackChunk||[]).push([[9510],{63887:(e,t,n)=>{n(52675),n(89463),n(28706),n(2008),n(74423),n(23792),n(62062),n(72712),n(94490),n(34782),n(26910),n(54554),n(54743),n(11745),n(60739),n(36033),n(69085),n(5506),n(26099),n(58940),n(3362),n(9391),n(84864),n(27495),n(38781),n(99449),n(21699),n(71761),n(25440),n(90744),n(11392),n(42762),n(39202),n(21489),n(81630),n(72170),n(75044),n(69539),n(31694),n(89955),n(33206),n(44496),n(66651),n(12887),n(19369),n(66812),n(8995),n(31575),n(36072),n(88747),n(28845),n(29423),n(57301),n(373),n(41405),n(33684),n(73772),n(30958),n(62480),n(23500),n(62953),/*! @sentry/browser & @sentry/tracing 7.64.0 (e01d8f8) | https://github.com/getsentry/sentry-javascript */window.Sentry=function(e){var t=function(){function e(t){this.name=e.id,console.error("You are using new Replay() even though this bundle does not include replay.")}return e.prototype.setupOnce=function(){},e.prototype.start=function(){},e.prototype.stop=function(){},e.prototype.flush=function(){},e.id="Replay",e}(),r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function s(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(s,a)}l((r=r.apply(e,t||[])).next())})}function a(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(l){var c=[a,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&c[0]?r.return:c[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,c[1])).done)return i;switch(r=0,i&&(c=[2&c[0],i.value]),c[0]){case 0:case 1:i=c;break;case 4:return s.label++,{value:c[1],done:!1};case 5:s.label++,r=c[1],c=[0];continue;case 7:c=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===c[0]||2===c[0])){s=0;continue}if(3===c[0]&&(!i||c[1]>i[0]&&c[1]<i[3])){s.label=c[1];break}if(6===c[0]&&s.label<i[1]){s.label=i[1],i=c;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(c);break}i[2]&&s.ops.pop(),s.trys.pop();continue}c=t.call(e,s)}catch(e){c=[6,e],r=0}finally{n=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}function l(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function c(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function u(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}var d=Object.prototype.toString;function h(e){switch(d.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return S(e,Error)}}function p(e,t){return d.call(e)==="[object ".concat(t,"]")}function f(e){return p(e,"ErrorEvent")}function g(e){return p(e,"DOMError")}function m(e){return p(e,"String")}function v(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function y(e){return p(e,"Object")}function w(e){return"undefined"!=typeof Event&&S(e,Event)}function b(e){return!!(e&&e.then&&"function"==typeof e.then)}function _(e){return"number"==typeof e&&e!=e}function S(e,t){try{return e instanceof t}catch(e){return!1}}function x(e,t){return void 0===t&&(t=0),"string"!=typeof e||0===t||e.length<=t?e:"".concat(e.slice(0,t),"...")}function k(e,t){if(!Array.isArray(e))return"";for(var n=[],r=0;r<e.length;r++){var i=e[r];try{n.push(String(i))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function E(e,t,n){return void 0===t&&(t=[]),void 0===n&&(n=!1),t.some(function(t){var r;return void 0===(r=n)&&(r=!1),!!m(e)&&(p(t,"RegExp")?t.test(e):!!m(t)&&(r?e===t:e.includes(t)))})}function C(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism=o(o({},e.mechanism),{is_exception_group:!0,exception_id:t})}function P(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism=o(o({},e.mechanism),{type:"chained",source:t,exception_id:n,parent_id:r})}function T(e){return e&&e.Math==Math?e:void 0}var L="object"==typeof globalThis&&T(globalThis)||"object"==typeof window&&T(window)||"object"==typeof self&&T(self)||"object"==typeof n.g&&T(n.g)||function(){return this}()||{};function I(e,t,n){var r=n||L,i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}function O(e,t){void 0===t&&(t={});try{for(var n=e,r=[],i=0,o=0,s=void 0,a=Array.isArray(t)?t:t.keyAttrs,l=!Array.isArray(t)&&t.maxStringLength||80;n&&i++<5&&!("html"===(s=function(e,t){var n,r,i,o,s,a=[];if(!e||!e.tagName)return"";a.push(e.tagName.toLowerCase());var l=t&&t.length?t.filter(function(t){return e.getAttribute(t)}).map(function(t){return[t,e.getAttribute(t)]}):null;if(l&&l.length)l.forEach(function(e){a.push("[".concat(e[0],'="').concat(e[1],'"]'))});else if(e.id&&a.push("#".concat(e.id)),(n=e.className)&&m(n))for(r=n.split(/\s+/),s=0;s<r.length;s++)a.push(".".concat(r[s]));var c=["aria-label","type","name","title","alt"];for(s=0;s<c.length;s++)i=c[s],(o=e.getAttribute(i))&&a.push("[".concat(i,'="').concat(o,'"]'));return a.join("")}(n,a))||i>1&&o+3*r.length+s.length>=l);)r.push(s),o+=s.length,n=n.parentNode;return r.reverse().join(" > ")}catch(e){return"<unknown>"}}var A,M=["debug","info","warn","error","log","assert","trace"];A={enable:function(){},disable:function(){}},M.forEach(function(e){A[e]=function(){}});var N=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function D(e,t){void 0===t&&(t=!1);var n=e.host,r=e.path,i=e.pass,o=e.port,s=e.projectId,a=e.protocol,l=e.publicKey;return"".concat(a,"://").concat(l).concat(t&&i?":".concat(i):"")+"@".concat(n).concat(o?":".concat(o):"","/").concat(r?"".concat(r,"/"):r).concat(s)}function R(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function B(e){var t="string"==typeof e?function(e){var t=N.exec(e);if(t){var n=c(t.slice(1),6),r=n[0],i=n[1],o=n[2],s=n[3],a=n[4],l="",u=n[5],d=u.split("/");if(d.length>1&&(l=d.slice(0,-1).join("/"),u=d.pop()),u){var h=u.match(/^\d+/);h&&(u=h[0])}return R({host:s,pass:void 0===o?"":o,path:l,projectId:u,port:void 0===a?"":a,protocol:r,publicKey:i})}console.error("Invalid Sentry Dsn: ".concat(e))}(e):R(e);if(t)return t}var F=function(e){function t(t,n){void 0===n&&(n="warn");var r=this.constructor,i=e.call(this,t)||this;return i.message=t,i.name=r.prototype.constructor.name,Object.setPrototypeOf(i,r.prototype),i.logLevel=n,i}return i(t,e),t}(Error);function $(e,t,n){if(t in e){var r=e[t],i=n(r);if("function"==typeof i)try{H(i,r)}catch(e){}e[t]=i}}function j(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}function H(e,t){var n=t.prototype||{};e.prototype=t.prototype=n,j(e,"__sentry_original__",t)}function z(e){return e.__sentry_original__}function G(e){if(h(e))return o({message:e.message,name:e.name,stack:e.stack},U(e));if(w(e)){var t=o({type:e.type,target:q(e.target),currentTarget:q(e.currentTarget)},U(e));return"undefined"!=typeof CustomEvent&&S(e,CustomEvent)&&(t.detail=e.detail),t}return e}function q(e){try{return"undefined"!=typeof Element&&S(e,Element)?O(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function U(e){if("object"==typeof e&&null!==e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function W(e){return function e(t,n){var r,i;if(y(t)){if(void 0!==(u=n.get(t)))return u;var o={};n.set(t,o);try{for(var s=l(Object.keys(t)),a=s.next();!a.done;a=s.next()){var c=a.value;void 0!==t[c]&&(o[c]=e(t[c],n))}}catch(e){r={error:e}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}return o}if(Array.isArray(t)){if(void 0!==(u=n.get(t)))return u;var u,d=[];return n.set(t,d),t.forEach(function(t){d.push(e(t,n))}),d}return t}(e,new Map)}var V=/\(error: (.*)\)/,Y=/captureMessage|captureException/;function X(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.sort(function(e,t){return e[0]-t[0]}).map(function(e){return e[1]});return function(e,t){void 0===t&&(t=0);for(var r,i,s=[],a=e.split(` 2`),c=t;c<a.length;c++){var u=a[c];if(!(u.length>1024)){var d=V.test(u)?u.replace(V,"$1"):u;if(!d.match(/\S*Error: /)){try{for(var h=(r=void 0,l(n)),p=h.next();!p.done;p=h.next()){var f=(0,p.value)(d);if(f){s.push(f);break}}}catch(e){r={error:e}}finally{try{p&&!p.done&&(i=h.return)&&i.call(h)}finally{if(r)throw r.error}}if(s.length>=50)break}}}var g=s;if(!g.length)return[];var m=Array.from(g);return/sentryWrapped/.test(m[m.length-1].function||"")&&m.pop(),m.reverse(),Y.test(m[m.length-1].function||"")&&(m.pop(),Y.test(m[m.length-1].function||"")&&m.pop()),m.slice(0,50).map(function(e){return o(o({},e),{filename:e.filename||m[m.length-1].filename,function:e.function||"?"})})}}var K="<anonymous>";function J(e){try{return e&&"function"==typeof e&&e.name||K}catch(e){return K}}function Z(){if(!("fetch"in L))return!1;
2try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function Q(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}var ee,et={},en={};function er(e,t){et[e]=et[e]||[],et[e].push(t),function(e){if(!en[e])switch(en[e]=!0,e){case"console":"console"in L&&M.forEach(function(e){e in L.console&&$(L.console,e,function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];ei("console",{args:n,level:e}),t&&t.apply(L.console,n)}})});break;case"dom":if("document"in L){var t=ei.bind(null,"dom"),n=ea(t,!0);L.document.addEventListener("click",n,!1),L.document.addEventListener("keypress",n,!1),["EventTarget","Node"].forEach(function(e){var n=L[e]&&L[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&($(n,"addEventListener",function(e){return function(n,r,i){if("click"===n||"keypress"==n)try{var o=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},s=o[n]=o[n]||{refCount:0};if(!s.handler){var a=ea(t);s.handler=a,e.call(this,n,a,i)}s.refCount++}catch(e){}return e.call(this,n,r,i)}}),$(n,"removeEventListener",function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{var i=this.__sentry_instrumentation_handlers__||{},o=i[t];o&&(o.refCount--,o.refCount<=0&&(e.call(this,t,o.handler,r),o.handler=void 0,delete i[t]),0===Object.keys(i).length&&delete this.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}}))})}break;case"xhr":if("XMLHttpRequest"in L){var r=XMLHttpRequest.prototype;$(r,"open",function(e){return function(){for(var t=this,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=n[1],o=this.__sentry_xhr_v2__={method:m(n[0])?n[0].toUpperCase():n[0],url:n[1],request_headers:{}};m(i)&&"POST"===o.method&&i.match(/sentry_key/)&&(this.__sentry_own_request__=!0);var s=function(){var e=t.__sentry_xhr_v2__;if(e&&4===t.readyState){try{e.status_code=t.status}catch(e){}ei("xhr",{args:n,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:t})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?$(this,"onreadystatechange",function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return s(),e.apply(this,t)}}):this.addEventListener("readystatechange",s),$(this,"setRequestHeader",function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=c(t,2),i=r[0],o=r[1],s=this.__sentry_xhr_v2__;return s&&(s.request_headers[i.toLowerCase()]=o),e.apply(this,t)}}),e.apply(this,n)}}),$(r,"send",function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=this.__sentry_xhr_v2__;return r&&void 0!==t[0]&&(r.body=t[0]),ei("xhr",{args:t,startTimestamp:Date.now(),xhr:this}),e.apply(this,t)}})}break;case"fetch":(function(){if(!Z())return!1;if(Q(L.fetch))return!0;var e=!1,t=L.document;if(t&&"function"==typeof t.createElement)try{var n=t.createElement("iframe");
2n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=Q(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){}return e})()&&$(L,"fetch",function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){var t=c(e,2),n=t[0],r=t[1];return{url:es(n),method:eo(r,"method")?String(r.method).toUpperCase():"GET"}}var i=e[0];return{url:es(i),method:eo(i,"method")?String(i.method).toUpperCase():"GET"}}(t),i={args:t,fetchData:{method:r.method,url:r.url},startTimestamp:Date.now()};return ei("fetch",o({},i)),e.apply(L,t).then(function(e){return ei("fetch",o(o({},i),{endTimestamp:Date.now(),response:e})),e},function(e){throw ei("fetch",o(o({},i),{endTimestamp:Date.now(),error:e})),e})}});break;case"history":!function(){var e,t,n;if(t=(e=L.chrome)&&e.app&&e.app.runtime,n="history"in L&&!!L.history.pushState&&!!L.history.replaceState,!t&&n){var r=L.onpopstate;L.onpopstate=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=L.location.href,i=ee;if(ee=n,ei("history",{from:i,to:n}),r)try{return r.apply(this,e)}catch(e){}},$(L.history,"pushState",i),$(L.history,"replaceState",i)}function i(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t.length>2?t[2]:void 0;if(r){var i=ee,o=String(r);ee=o,ei("history",{from:i,to:o})}return e.apply(this,t)}}}();break;case"error":ed=L.onerror,L.onerror=function(e,t,n,r,i){return ei("error",{column:r,error:i,line:n,msg:e,url:t}),!(!ed||ed.__SENTRY_LOADER__)&&ed.apply(this,arguments)},L.onerror.__SENTRY_INSTRUMENTED__=!0;break;case"unhandledrejection":eh=L.onunhandledrejection,L.onunhandledrejection=function(e){return ei("unhandledrejection",e),!(eh&&!eh.__SENTRY_LOADER__)||eh.apply(this,arguments)},L.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0;break;default:return}}(e)}function ei(e,t){var n,r;if(e&&et[e])try{for(var i=l(et[e]||[]),o=i.next();!o.done;o=i.next()){var s=o.value;try{s(t)}catch(e){}}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}function eo(e,t){return!!e&&"object"==typeof e&&!!e[t]}function es(e){return"string"==typeof e?e:e?eo(e,"url")?e.url:e.toString?e.toString():"":""}function ea(e,t){return void 0===t&&(t=!1),function(n){if(n&&ec!==n&&!function(e){if("keypress"!==e.type)return!1;try{var t=e.target;if(!t||!t.tagName)return!0;if("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable)return!1}catch(e){}return!0}(n)){var r="keypress"===n.type?"input":n.type;(void 0===el||function(e,t){if(!e||e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch(e){}return!1}(ec,n))&&(e({event:n,name:r,global:t}),ec=n),clearTimeout(el),el=L.setTimeout(function(){el=void 0},1e3)}}}var el,ec,eu,ed=null,eh=null;function ep(){var e=L.crypto||L.msCrypto;if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");var t=e&&e.getRandomValues?function(){return e.getRandomValues(new Uint8Array(1))[0]}:function(){return 16*Math.random()};return"10000000100040008000100000000000".replace(/[018]/g,function(e){return(e^(15&t())>>e/4).toString(16)})}function ef(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function eg(e,t,n){var r=e.exception=e.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=n||"Error")}function em(e,t){var n=ef(e);if(n){var r=n.mechanism;if(n.mechanism=o(o(o({},{type:"generic",handled:!0}),r),t),t&&"data"in t){var i=o(o({},r&&r.data),t.data);n.mechanism.data=i}}}function ev(e){if(e&&e.__sentry_captured__)return!0;try{j(e,"__sentry_captured__",!0)}catch(e){}return!1}function ey(e){return Array.isArray(e)?e:[e]}function ew(e,t,r){void 0===t&&(t=100),void 0===r&&(r=1/0);try{return function e(t,r,i,o,s){void 0===i&&(i=1/0),void 0===o&&(o=1/0),void 0===s&&(l=(a="function"==typeof WeakSet)?new WeakSet:[],s=[function(e){if(a)return!!l.has(e)||(l.add(e),!1);for(var t=0;t<l.length;t++)if(l[t]===e)return!0;return l.push(e),!1},function(e){if(a)l.delete(e);else for(var t=0;t<l.length;t++)if(l[t]===e){l.splice(t,1);break}}]);var a,l,u=c(s,2),d=u[0],h=u[1];if(null==r||["number","boolean","string"].includes(typeof r)&&!_(r))return r;var p=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t.t)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if(void 0!==n.g&&t===n.g)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if(y(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t)return"[SyntheticEvent]";if("number"==typeof t&&t!=t)return"[NaN]";if("function"==typeof t)return"[Function: ".concat(J(t),"]");if("symbol"==typeof t)return"[".concat(String(t),"]");if("bigint"==typeof t)return"[BigInt: ".concat(String(t),"]");var r,i=(r=Object.getPrototypeOf(t))?r.constructor.name:"null prototype";return/^HTML(\w*)Element$/.test(i)?"[HTMLElement: ".concat(i,"]"):"[object ".concat(i,"]")}catch(e){return"**non-serializable** (".concat(e,")")}}(t,r);if(!p.startsWith("[object "))return p;if(r.__sentry_skip_normalization__)return r;var f="number"==typeof r.__sentry_override_normalization_depth__?r.__sentry_override_normalization_depth__:i;if(0===f)return p.replace("object ","");if(d(r))return"[Circular ~]";if(r&&"function"==typeof r.toJSON)try{return e("",r.toJSON(),f-1,o,s)}catch(e){}var g=Array.isArray(r)?[]:{},m=0,v=G(r);for(var w in v)if(Object.prototype.hasOwnProperty.call(v,w)){if(m>=o){g[w]="[MaxProperties ~]";break}var b=v[w];g[w]=e(w,b,f-1,o,s),m++}return h(r),g}("",e,t,r)}catch(e){return{ERROR:"**non-serializable** (".concat(e,")")}}}function eb(e){return new eS(function(t){t(e)})}function e_(e){return new eS(function(t,n){n(e)})}(ty=eu||(eu={}
2))[ty.PENDING=0]="PENDING",ty[ty.RESOLVED=1]="RESOLVED",ty[ty.REJECTED=2]="REJECTED";var eS=function(){function e(e){var t=this;this.i=function(e){t.o(eu.RESOLVED,e)},this.u=function(e){t.o(eu.REJECTED,e)},this.o=function(e,n){t.h===eu.PENDING&&(b(n)?n.then(t.i,t.u):(t.h=e,t.v=n,t.l()))},this.l=function(){if(t.h!==eu.PENDING){var e=t.p.slice();t.p=[],e.forEach(function(e){e[0]||(t.h===eu.RESOLVED&&e[1](t.v),t.h===eu.REJECTED&&e[2](t.v),e[0]=!0)})}},this.h=eu.PENDING,this.p=[];try{e(this.i,this.u)}catch(e){this.u(e)}}return e.prototype.then=function(t,n){var r=this;return new e(function(e,i){r.p.push([!1,function(n){if(t)try{e(t(n))}catch(e){i(e)}else e(n)},function(t){if(n)try{e(n(t))}catch(e){i(e)}else i(t)}]),r.l()})},e.prototype.catch=function(e){return this.then(function(e){return e},e)},e.prototype.finally=function(t){var n=this;return new e(function(e,r){var i,o;return n.then(function(e){o=!1,i=e,t&&t()},function(e){o=!0,i=e,t&&t()}).then(function(){o?r(i):e(i)})})},e}();function ex(e){if(!e)return{};var t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}var ek=["fatal","error","warning","log","info","debug"],eE={nowSeconds:function(){return Date.now()/1e3}},eC=function(){var e=L.performance;if(e&&e.now)return{now:function(){return e.now()},timeOrigin:Date.now()-e.now()}}(),eP=void 0===eC?eE:{nowSeconds:function(){return(eC.timeOrigin+eC.now())/1e3}},eT=eE.nowSeconds.bind(eE),eL=eP.nowSeconds.bind(eP),eI=function(){var e=L.performance;if(e&&e.now){var t=e.now(),n=Date.now(),r=e.timeOrigin?Math.abs(e.timeOrigin+t-n):36e5,i=e.timing&&e.timing.navigationStart,o="number"==typeof i?Math.abs(i+t-n):36e5;return r<36e5||o<36e5?r<=o?e.timeOrigin:i:n}}(),eO="baggage",eA="sentry-",eM=/^sentry-/;function eN(e){if(e){var t=Object.entries(e).reduce(function(e,t){var n=c(t,2),r=n[0],i=n[1];return i&&(e["".concat(eA).concat(r)]=i),e},{});return 0!==Object.keys(t).length?Object.entries(t).reduce(function(e,t,n){var r=c(t,2),i=r[0],o=r[1],s="".concat(encodeURIComponent(i),"=").concat(encodeURIComponent(o)),a=0===n?s:"".concat(e,",").concat(s);return a.length>8192?e:a},""):void 0}}function eD(e){return e.split(",").map(function(e){return e.split("=").map(function(e){return decodeURIComponent(e.trim())})}).reduce(function(e,t){var n=c(t,2),r=n[0],i=n[1];return e[r]=i,e},{})}var eR=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function eB(e,t,n){void 0===e&&(e=ep()),void 0===t&&(t=ep().substring(16));var r="";return void 0!==n&&(r=n?"-1":"-0"),"".concat(e,"-").concat(t).concat(r)}function eF(e,t){return void 0===t&&(t=[]),[e,t]}function e$(e,t){var n,r,i=e[1];try{for(var o=l(i),s=o.next();!s.done;s=o.next()){var a=s.value;if(t(a,a[0].type))return!0}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return!1}function ej(e,t){return(t||new TextEncoder).encode(e)}var eH={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor"};function ez(e){if(e&&e.sdk){var t=e.sdk;return{name:t.name,version:t.version}}}var eG="production";function eq(e,t){if(void 0===t&&(t={}),t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||eL(),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:ep()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did="".concat(t.did)),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{var n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}var eU=function(){function e(){this.m=!1,this.g=[],this._=[],this.T=[],this.S=[],this.k={},this.j={},this.O={},this.R={},this.I={},this.C=eY()}return e.clone=function(t){var n=new e;return t&&(n.T=u([],c(t.T),!1),n.j=o({},t.j),n.O=o({},t.O),n.R=o({},t.R),n.k=t.k,n.D=t.D,n.A=t.A,n.L=t.L,n.M=t.M,n.N=t.N,n._=u([],c(t._),!1),n.q=t.q,n.S=u([],c(t.S),!1),n.I=o({},t.I),n.C=o({},t.C)),n},e.prototype.addScopeListener=function(e){this.g.push(e)},e.prototype.addEventProcessor=function(e){return this._.push(e),this},e.prototype.setUser=function(e){return this.k=e||{},this.L&&eq(this.L,{user:e}),this.H(),this},e.prototype.getUser=function(){return this.k},e.prototype.getRequestSession=function(){return this.q},e.prototype.setRequestSession=function(e){return this.q=e,this},e.prototype.setTags=function(e){return this.j=o(o({},this.j),e),this.H(),this},e.prototype.setTag=function(e,t){var n;return this.j=o(o({},this.j),((n={})[e]=t,n)),this.H(),this},e.prototype.setExtras=function(e){return this.O=o(o({},this.O),e),this.H(),this},e.prototype.setExtra=function(e,t){var n;return this.O=o(o({},this.O),((n={})[e]=t,n)),this.H(),this},e.prototype.setFingerprint=function(e){return this.N=e,this.H(),this},e.prototype.setLevel=function(e){return this.D=e,this.H(),this},e.prototype.setTransactionName=function(e){return this.M=e,this.H(),this},e.prototype.setContext=function(e,t){return null===t?delete this.R[e]:this.R[e]=t,this.H(),this},e.prototype.setSpan=function(e){return this.A=e,this.H(),this},e.prototype.getSpan=function(){return this.A},e.prototype.getTransaction=function(){var e=this.getSpan();return e&&e.transaction},e.prototype.setSession=function(e){return e?this.L=e:delete this.L,this.H(),this},e.prototype.getSession=function(){return this.L},e.prototype.update=function(t){if(!t)return this;if("function"==typeof t){var n=t(this);return n instanceof e?n:this}return t instanceof e?(this.j=o(o({},this.j),t.j),this.O=o(o({},this.O),t.O),this.R=o(o({},this.R),t.R),t.k&&Object.keys(t.k).length&&(this.k=t.k),t.D&&(this.D=t.D),t.N&&(this.N=t.N),t.q&&(this.q=t.q),t.C&&(this.C=t.C)):y(t)&&(this.j=o(o({},this.j),t.tags),this.O=o(o({},this.O),t.extra),this.R=o(o({},this.R),t.contexts),t.user&&(this.k=t.user),t.level&&(this.D=t.level),t.fingerprint&&(this.N=t.fingerprint),t.requestSession&&(this.q=t.requestSession),t.propagationContext&&(this.C=t.propagationContext)),this},e.prototype.clear=function(){return this.T=[],this.j={},this.O={},this.k={},this.R={},this.D=void 0,this.M=void 0,this.N=void 0,this.q=void 0,this.A=void 0,this.L=void 0,this.H(),this.S=[],this.C=eY(),this},e.prototype.addBreadcrumb=function(e,t){var n="number"==typeof t?t:100;if(n<=0)return this;var r=o({timestamp:eT()},e);return this.T=u(u([],c(this.T),!1),[r],!1).slice(-n),this.H(),this},e.prototype.getLastBreadcrumb=function(){return this.T[this.T.length-1]},e.prototype.clearBreadcrumbs=function(){return this.T=[],this.H(),this},e.prototype.addAttachment=function(e){return this.S.push(e),this},e.prototype.getAttachments=function(){return this.S},e.prototype.clearAttachments=function(){return this.S=[],this},e.prototype.applyToEvent=function(e,t){if(void 0===t&&(t={}),this.O&&Object.keys(this.O).length&&(e.extra=o(o({},this.O),e.extra)),this.j&&Object.keys(this.j).length&&(e.tags=o(o({},this.j),e.tags)),this.k&&Object.keys(this.k).length&&(e.user=o(o({},this.k),e.user)),this.R&&Object.keys(this.R).length&&(e.contexts=o(o({},this.R),e.contexts)),this.D&&(e.level=this.D),this.M&&(e.transaction=this.M),this.A){e.contexts=o({trace:this.A.getTraceContext()},e.contexts);var n=this.A.transaction;if(n){e.sdkProcessingMetadata=o({dynamicSamplingContext:n.getDynamicSamplingContext()},e.sdkProcessingMetadata);var r=n.name;r&&(e.tags=o({transaction:r},e.tags))}}return this.P(e),e.breadcrumbs=u(u([],c(e.breadcrumbs||[]),!1),c(this.T),!1),e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,e.sdkProcessingMetadata=o(o(o({}
2,e.sdkProcessingMetadata),this.I),{propagationContext:this.C}),this.U(u(u([],c(eW()),!1),c(this._),!1),e,t)},e.prototype.setSDKProcessingMetadata=function(e){return this.I=o(o({},this.I),e),this},e.prototype.setPropagationContext=function(e){return this.C=e,this},e.prototype.getPropagationContext=function(){return this.C},e.prototype.U=function(e,t,n,r){var i=this;return void 0===r&&(r=0),new eS(function(s,a){var l=e[r];if(null===t||"function"!=typeof l)s(t);else{var c=l(o({},t),n);b(c)?c.then(function(t){return i.U(e,t,n,r+1).then(s)}).then(null,a):i.U(e,c,n,r+1).then(s).then(null,a)}})},e.prototype.H=function(){var e=this;this.m||(this.m=!0,this.g.forEach(function(t){t(e)}),this.m=!1)},e.prototype.P=function(e){e.fingerprint=e.fingerprint?ey(e.fingerprint):[],this.N&&(e.fingerprint=e.fingerprint.concat(this.N)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint},e}();function eW(){return I("globalEventProcessors",function(){return[]})}function eV(e){eW().push(e)}function eY(){return{traceId:ep(),spanId:ep().substring(16),sampled:!1}}var eX=function(){function e(e,t,n){void 0===t&&(t=new eU),void 0===n&&(n=4),this.F=n,this.B=[{scope:t}],e&&this.bindClient(e)}return e.prototype.isOlderThan=function(e){return this.F<e},e.prototype.bindClient=function(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()},e.prototype.pushScope=function(){var e=eU.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e},e.prototype.popScope=function(){return!(this.getStack().length<=1)&&!!this.getStack().pop()},e.prototype.withScope=function(e){var t=this.pushScope();try{e(t)}finally{this.popScope()}},e.prototype.getClient=function(){return this.getStackTop().client},e.prototype.getScope=function(){return this.getStackTop().scope},e.prototype.getStack=function(){return this.B},e.prototype.getStackTop=function(){return this.B[this.B.length-1]},e.prototype.captureException=function(e,t){var n=this.X=t&&t.event_id?t.event_id:ep(),r=Error("Sentry syntheticException");return this.W(function(i,s){i.captureException(e,o(o({originalException:e,syntheticException:r},t),{event_id:n}),s)}),n},e.prototype.captureMessage=function(e,t,n){var r=this.X=n&&n.event_id?n.event_id:ep(),i=Error(e);
2return this.W(function(s,a){s.captureMessage(e,t,o(o({originalException:e,syntheticException:i},n),{event_id:r}),a)}),r},e.prototype.captureEvent=function(e,t){var n=t&&t.event_id?t.event_id:ep();return e.type||(this.X=n),this.W(function(r,i){r.captureEvent(e,o(o({},t),{event_id:n}),i)}),n},e.prototype.lastEventId=function(){return this.X},e.prototype.addBreadcrumb=function(e,t){var n=this.getStackTop(),r=n.scope,i=n.client;if(i){var s=i.getOptions&&i.getOptions()||{},a=s.beforeBreadcrumb,l=void 0===a?null:a,c=s.maxBreadcrumbs,u=void 0===c?100:c;if(!(u<=0)){var d=eT(),h=o({timestamp:d},e),p=l?function(e){if(!("console"in L))return e();var t=L.console,n={};M.forEach(function(e){var r=t[e]&&t[e].__sentry_original__;e in t&&r&&(n[e]=t[e],t[e]=r)});try{return e()}finally{Object.keys(n).forEach(function(e){t[e]=n[e]})}}(function(){return l(h,t)}):h;null!==p&&(i.emit&&i.emit("beforeAddBreadcrumb",p,t),r.addBreadcrumb(p,u))}}},e.prototype.setUser=function(e){this.getScope().setUser(e)},e.prototype.setTags=function(e){this.getScope().setTags(e)},e.prototype.setExtras=function(e){this.getScope().setExtras(e)},e.prototype.setTag=function(e,t){this.getScope().setTag(e,t)},e.prototype.setExtra=function(e,t){this.getScope().setExtra(e,t)},e.prototype.setContext=function(e,t){this.getScope().setContext(e,t)},e.prototype.configureScope=function(e){var t=this.getStackTop(),n=t.scope;t.client&&e(n)},e.prototype.run=function(e){var t=eJ(this);try{e(this)}finally{eJ(t)}},e.prototype.getIntegration=function(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(e){return null}},e.prototype.startTransaction=function(e,t){return this.G("startTransaction",e,t)},e.prototype.traceHeaders=function(){return this.G("traceHeaders")},e.prototype.captureSession=function(e){if(void 0===e&&(e=!1),e)return this.endSession();this.J()},e.prototype.endSession=function(){var e,t=this.getStackTop().scope,n=t.getSession();n&&(e={},"ok"===n.status&&(e={status:"exited"}),eq(n,e)),this.J(),t.setSession()},e.prototype.startSession=function(e){var t,n,r,i=this.getStackTop(),s=i.scope,a=i.client,l=a&&a.getOptions()||{},c=l.release,u=l.environment,d=void 0===u?eG:u,h=(L.navigator||{}).userAgent,p=(t=o(o({release:c,environment:d,user:s.getUser()},h&&{userAgent:h}),e),n=eL(),r={sid:ep(),init:!0,timestamp:n,started:n,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:function(){var e;return e=r,W({sid:"".concat(e.sid),init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?"".concat(e.did):void 0,duration:e.duration,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}},t&&eq(r,t),r),f=s.getSession&&s.getSession();return f&&"ok"===f.status&&eq(f,{status:"exited"}),this.endSession(),s.setSession(p),p},e.prototype.shouldSendDefaultPii=function(){var e=this.getClient(),t=e&&e.getOptions();return!!(t&&t.sendDefaultPii)},e.prototype.J=function(){var e=this.getStackTop(),t=e.scope,n=e.client,r=t.getSession();r&&n&&n.captureSession&&n.captureSession(r)},e.prototype.W=function(e){var t=this.getStackTop(),n=t.scope,r=t.client;r&&e(r,n)},e.prototype.G=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=eK().__SENTRY__;if(r&&r.extensions&&"function"==typeof r.extensions[e])return r.extensions[e].apply(this,t)},e}();function eK(){return L.__SENTRY__=L.__SENTRY__||{extensions:{},hub:void 0},L}function eJ(e){var t=eK(),n=eQ(t);return e0(t,e),n}function eZ(){var e,t,n=eK();if(n.__SENTRY__&&n.__SENTRY__.acs){var r=n.__SENTRY__.acs.getCurrentHub();if(r)return r}return void 0===(e=n)&&(e=eK()),(t=e)&&t.__SENTRY__&&t.__SENTRY__.hub&&!eQ(e).isOlderThan(4)||e0(e,new eX),eQ(e)}function eQ(e){return I("hub",function(){return new eX},e)}function e0(e,t){return!!e&&((e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0)}function e1(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;var t=eZ().getClient(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}function e2(e){return(e||eZ()).getScope().getTransaction()}var e5=!1;function e4(){var e=e2();e&&e.setStatus("internal_error")}e4.tag="sentry_tracingErrorCallback";var e6=function(){function e(e){void 0===e&&(e=1e3),this.K=e,this.spans=[]}return e.prototype.add=function(e){this.spans.length>this.K?e.spanRecorder=void 0:this.spans.push(e)},e}(),e3=function(){function e(e){if(this.traceId=ep(),this.spanId=ep().substring(16),this.startTimestamp=eL(),this.tags={},this.data={},this.instrumenter="sentry",!e)return this;e.traceId&&(this.traceId=e.traceId),e.spanId&&(this.spanId=e.spanId),e.parentSpanId&&(this.parentSpanId=e.parentSpanId),"sampled"in e&&(this.sampled=e.sampled),e.op&&(this.op=e.op),e.description&&(this.description=e.description),e.name&&(this.description=e.name),e.data&&(this.data=e.data),e.tags&&(this.tags=e.tags),e.status&&(this.status=e.status),e.startTimestamp&&(this.startTimestamp=e.startTimestamp),e.endTimestamp&&(this.endTimestamp=e.endTimestamp),e.instrumenter&&(this.instrumenter=e.instrumenter)}return e.prototype.startChild=function(t){var n=new e(o(o({},t),{parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId}));return n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n),n.transaction=this.transaction,n},e.prototype.setTag=function(e,t){var n;return this.tags=o(o({},this.tags),((n={})[e]=t,n)),this},e.prototype.setData=function(e,t){var n;return this.data=o(o({},this.data),((n={})[e]=t,n)),this},e.prototype.setStatus=function(e){return this.status=e,this},e.prototype.setHttpStatus=function(e){this.setTag("http.status_code",String(e)),this.setData("http.response.status_code",e);var t=function(e){if(e<400&&e>=100)return"ok";if(e>
2=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}(e);return"unknown_error"!==t&&this.setStatus(t),this},e.prototype.setName=function(e){this.description=e},e.prototype.isSuccess=function(){return"ok"===this.status},e.prototype.finish=function(e){this.endTimestamp="number"==typeof e?e:eL()},e.prototype.toTraceparent=function(){return eB(this.traceId,this.spanId,this.sampled)},e.prototype.toContext=function(){return W({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})},e.prototype.updateWithContext=function(e){return this.data=e.data||{},this.description=e.description,this.endTimestamp=e.endTimestamp,this.op=e.op,this.parentSpanId=e.parentSpanId,this.sampled=e.sampled,this.spanId=e.spanId||this.spanId,this.startTimestamp=e.startTimestamp||this.startTimestamp,this.status=e.status,this.tags=e.tags||{},this.traceId=e.traceId||this.traceId,this},e.prototype.getTraceContext=function(){return W({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})},e.prototype.toJSON=function(){return W({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId})},e}();function e7(e,t,n){var r=t.getOptions(),i=(t.getDsn()||{}).publicKey,o=(n&&n.getUser()||{}).segment,s=W({environment:r.environment||eG,release:r.release,user_segment:o,public_key:i,trace_id:e});return t.emit&&t.emit("createDsc",s),s}var e8=function(e){function t(t,n){var r=e.call(this,t)||this;delete r.description,r.Y={},r.R={},r.V=n||eZ(),r.Z=t.name||"",r.metadata=o(o({source:"custom"},t.metadata),{spanMetadata:{}}),r.tt=t.trimEnd,r.transaction=r;var i=r.metadata.dynamicSamplingContext;return i&&(r.nt=o({},i)),r}return i(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return this.Z},set:function(e){this.setName(e)},enumerable:!1,configurable:!0}),t.prototype.setName=function(e,t){void 0===t&&(t="custom"),this.Z=e,this.metadata.source=t},t.prototype.initSpanRecorder=function(e){void 0===e&&(e=1e3),this.spanRecorder||(this.spanRecorder=new e6(e)),this.spanRecorder.add(this)},t.prototype.setContext=function(e,t){null===t?delete this.R[e]:this.R[e]=t},t.prototype.setMeasurement=function(e,t,n){void 0===n&&(n=""),this.Y[e]={value:t,unit:n}},t.prototype.setMetadata=function(e){this.metadata=o(o({},this.metadata),e)},t.prototype.finish=function(t){var n=this;if(void 0===this.endTimestamp){this.name||(this.name="<unlabeled transaction>"),e.prototype.finish.call(this,t);var r=this.V.getClient();if(r&&r.emit&&r.emit("finishTransaction",this),!0===this.sampled){var i=this.spanRecorder?this.spanRecorder.spans.filter(function(e){return e!==n&&e.endTimestamp}):[];this.tt&&i.length>0&&(this.endTimestamp=i.reduce(function(e,t){return e.endTimestamp&&t.endTimestamp?e.endTimestamp>t.endTimestamp?e:t:e}).endTimestamp);var s=this.metadata,a=o({contexts:o(o({},this.R),{trace:this.getTraceContext()}),spans:i,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:o(o({},s),{dynamicSamplingContext:this.getDynamicSamplingContext()})},s.source&&{transaction_info:{source:s.source}});return Object.keys(this.Y).length>0&&(a.measurements=this.Y),this.V.captureEvent(a)}r&&r.recordDroppedEvent("sample_rate","transaction")}},t.prototype.toContext=function(){var t=e.prototype.toContext.call(this);return W(o(o({},t),{name:this.name,trimEnd:this.tt}))},t.prototype.updateWithContext=function(t){return e.prototype.updateWithContext.call(this,t),this.name=t.name||"",this.tt=t.trimEnd,this},t.prototype.getDynamicSamplingContext=function(){if(this.nt)return this.nt;var e=this.V||eZ(),t=e.getClient();if(!t)return{};var n=e.getScope(),r=e7(this.traceId,t,n),i=this.metadata.sampleRate;void 0!==i&&(r.sample_rate="".concat(i));var o=this.metadata.source;return o&&"url"!==o&&(r.transaction=this.name),void 0!==this.sampled&&(r.sampled=String(this.sampled)),r},t.prototype.setHub=function(e){this.V=e},t}(e3),e9={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},te=function(e){function t(t,n,r,i){var o=e.call(this,i)||this;return o.rt=t,o.it=n,o.transactionSpanId=r,o}return i(t,e),t.prototype.add=function(t){var n=this;t.spanId!==this.transactionSpanId&&(t.finish=function(e){t.endTimestamp="number"==typeof e?e:eL(),n.it(t.spanId)},void 0===t.endTimestamp&&this.rt(t.spanId)),e.prototype.add.call(this,t)},t}(e6),tt=function(e){function t(t,n,r,i,o,s){void 0===r&&(r=e9.idleTimeout),void 0===i&&(i=e9.finalTimeout),void 0===o&&(o=e9.heartbeatInterval),void 0===s&&(s=!1);var a=e.call(this,t,n)||this;return a.et=n,a.ot=r,a.ut=i,a.ct=o,a.st=s,a.activities={},a.ft=0,a.ht=!1,a.vt=!1,a.dt=[],a.lt="externalFinish",s&&n.configureScope(function(e){return e.setSpan(a)}),a.yt(),setTimeout(function(){a.ht||(a.setStatus("deadline_exceeded"),a.lt="finalTimeout",a.finish())},a.ut),a}return i(t,e),t.prototype.finish=function(t){var n,r,i=this;if(void 0===t&&(t=eL()),this.ht=!0,this.activities={},"ui.action.click"===this.op&&this.setTag("finishReason",this.lt),this.spanRecorder){try{for(var o=l(this.dt),s=o.next();!s.done;s=o.next())(0,s.value)(this,t)}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}this.spanRecorder.spans=this.spanRecorder.spans.filter(function(e){if(e.spanId===i.spanId)return!0;e.endTimestamp||(e.endTimestamp=t,e.setStatus("cancelled"));var n=e.startTimestamp<t,r=(i.ut+i.ot)/1e3,o=e.endTimestamp-i.startTimestamp<r;return n&&o})}if(this.st){var a=this.et.getScope();a.getTransaction()===this&&a.setSpan(void 0)}return e.prototype.finish.call(this,t)},t.prototype.registerBeforeFinishCallback=function(e){this.dt.push(e)},t.prototype.initSpanRecorder=function(e){var t=this;this.spanRecorder||(this.spanRecorder=new te(function(e){t.ht||t.rt(e)},function(e){t.ht||t.it(e)},this.spanId,e),this.gt()),this.spanRecorder.add(this)},t.prototype.cancelIdleTimeout=function(e,t){var n=(void 0===t?{restartOnChildSpanChange:!0}:t).restartOnChildSpanChange;this.vt=!1===n,this.bt&&(clearTimeout(this.bt),this.bt=void 0,0===Object.keys(this.activities).length&&this.vt&&(this.lt="cancelled",this.finish(e)))},t.prototype.setFinishReason=function(e){this.lt=e},t.prototype.yt=function(e){var t=this;this.cancelIdleTimeout(),this.bt=setTimeout(function(){t.ht||0!==Object.keys(t.activities).length||(t.lt="idleTimeout",t.finish(e))},this.ot)},t.prototype.rt=function(e){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this.vt}),this.activities[e]=!0},t.prototype.it=function(e){if(this.activities[e]&&delete this.activities[e],0===Object.keys(this.activities).length){var t=eL();this.vt?(this.lt="cancelled",this.finish(t)):this.yt(t+this.ot/1e3)}},t.prototype.wt=function(){if(!this.ht){var e=Object.keys(this.activities).join("");e===this._t?this.ft++:this.ft=1,this._t=e,this.ft>=3?(this.setStatus("deadline_exceeded"),this.lt="heartbeatFailed",this.finish()):this.gt()}},t.prototype.gt=function(){var e=this;setTimeout(function(){e.wt()},this.ct)},t}(e8);function tn(){var e=this.getScope().getSpan();return e?{"sentry-trace":e.toTraceparent()}:{}}function tr(e,t,n){var r,i;return e1(t)?void 0!==e.sampled?e.setMetadata({sampleRate:Number(e.sampled)}):("function"==typeof t.tracesSampler?(r=t.tracesSampler(n),e.setMetadata({sampleRate:Number(r)})):void 0!==n.parentSampled?r=n.parentSampled:void 0!==t.tracesSampleRate?(r=t.tracesSampleRate,e.setMetadata({sampleRate:Number(r)})):(r=1,e.setMetadata({sampleRate:r})),_(i=r)||"number"!=typeof i&&"boolean"!=typeof i||i<0||i>
21||!r?e.sampled=!1:(e.sampled=Math.random()<r,e.sampled)):e.sampled=!1,e}function ti(e,t){var n=this.getClient(),r=n&&n.getOptions()||{};(r.instrumenter||"sentry")!==(e.instrumenter||"sentry")&&(e.sampled=!1);var i=new e8(e,this);return(i=tr(i,r,o({parentSampled:e.parentSampled,transactionContext:e},t))).sampled&&i.initSpanRecorder(r._experiments&&r._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",i),i}function to(e,t,n,r,i,s,a){var l=e.getClient(),c=l&&l.getOptions()||{},u=new tt(t,e,n,r,a,i);return(u=tr(u,c,o({parentSampled:t.parentSampled,transactionContext:t},s))).sampled&&u.initSpanRecorder(c._experiments&&c._experiments.maxSpans),l&&l.emit&&l.emit("startTransaction",u),u}function ts(){var e=eK();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=ti),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=tn),e5||(e5=!0,er("error",e4),er("unhandledrejection",e4)))}function ta(e,t){return eZ().captureException(e,{captureContext:t})}function tl(e){eZ().withScope(e)}function tc(e){var t=e.protocol?"".concat(e.protocol,":"):"",n=e.port?":".concat(e.port):"";return"".concat(t,"//").concat(e.host).concat(n).concat(e.path?"/".concat(e.path):"","/api/")}var tu=[];function td(e,t){t[e.name]=e,-1===tu.indexOf(e.name)&&(e.setupOnce(eV,eZ),tu.push(e.name))}var th=new WeakMap,tp=function(){function e(e){if(this.Et=e,this._integrations={},this.St=!1,this.kt=0,this.jt={},this.Ot={},e.dsn&&(this.xt=B(e.dsn)),this.xt){var t,n,r,i,s,a=(t=this.xt,void 0===(n=e)&&(n={}),r="string"==typeof n?n:n.tunnel,i="string"!=typeof n&&n.Tt?n.Tt.sdk:void 0,r||"".concat("".concat(tc(t)).concat(t.projectId,"/envelope/"),"?").concat(Object.keys(s=o({sentry_key:t.publicKey,sentry_version:"7"},i&&{sentry_client:"".concat(i.name,"/").concat(i.version)})).map(function(e){return"".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(s[e]))}).join("&")));this.Rt=e.transport(o(o({recordDroppedEvent:this.recordDroppedEvent.bind(this)},e.transportOptions),{url:a}))}}return e.prototype.captureException=function(e,t,n){var r=this;if(!ev(e)){var i=t&&t.event_id;return this.It(this.eventFromException(e,t).then(function(e){return r.Ct(e,t,n)}).then(function(e){i=e})),i}},e.prototype.captureMessage=function(e,t,n,r){var i=this,o=n&&n.event_id,s=v(e)?this.eventFromMessage(String(e),t,n):this.eventFromException(e,n);return this.It(s.then(function(e){return i.Ct(e,n,r)}).then(function(e){o=e})),o},e.prototype.captureEvent=function(e,t,n){if(!(t&&t.originalException&&ev(t.originalException))){var r=t&&t.event_id;return this.It(this.Ct(e,t,n).then(function(e){r=e})),r}},e.prototype.captureSession=function(e){this.Dt()&&("string"!=typeof e.release||(this.sendSession(e),eq(e,{init:!1})))},e.prototype.getDsn=function(){return this.xt},e.prototype.getOptions=function(){return this.Et},e.prototype.getSdkMetadata=function(){return this.Et.Tt},e.prototype.getTransport=function(){return this.Rt},e.prototype.flush=function(e){var t=this.Rt;return t?this.At(e).then(function(n){return t.flush(e).then(function(e){return n&&e})}):eb(!0)},e.prototype.close=function(e){var t=this;return this.flush(e).then(function(e){return t.getOptions().enabled=!1,e})},e.prototype.setupIntegrations=function(){var e,t;this.Dt()&&!this.St&&(this._integrations=(e=this.Et.integrations,t={},e.forEach(function(e){e&&td(e,t)}),t),this.St=!0)},e.prototype.getIntegrationById=function(e){return this._integrations[e]},e.prototype.getIntegration=function(e){try{return this._integrations[e.id]||null}catch(e){return null}},e.prototype.addIntegration=function(e){td(e,this._integrations)},e.prototype.sendEvent=function(e,t){var n,r,i=this;if(void 0===t&&(t={}),this.xt){var s,a,d,h,p,f,g,m,v=(s=this.xt,a=this.Et.Tt,d=this.Et.tunnel,h=ez(a),p=e.type&&"replay_event"!==e.type?e.type:"event",(f=a&&a.sdk)&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||f.name,e.sdk.version=e.sdk.version||f.version,e.sdk.integrations=u(u([],c(e.sdk.integrations||[]),!1),c(f.integrations||[]),!1),e.sdk.packages=u(u([],c(e.sdk.packages||[]),!1),c(f.packages||[]),!1)),g=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext,m=o(o(o({event_id:e.event_id,sent_at:new Date().toISOString()},h&&{sdk:h}),!!d&&{dsn:D(s)}),g&&{trace:W(o({},g))}),delete e.sdkProcessingMetadata,eF(m,[[{type:p},e]]));try{for(var y=l(t.attachments||[]),w=y.next();!w.done;w=y.next())v=function(e,t){var n=c(e,2);return[n[0],u(u([],c(n[1]),!1),[t],!1)]}(v,function(e,t){var n="string"==typeof e.data?ej(e.data,t):e.data;return[W({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}(w.value,this.Et.transportOptions&&this.Et.transportOptions.textEncoder))}catch(e){n={error:e}}finally{try{w&&!w.done&&(r=y.return)&&r.call(y)}finally{if(n)throw n.error}}var b=this.Lt(v);b&&b.then(function(t){return i.emit("afterSendEvent",e,t)},null)}},e.prototype.sendSession=function(e){if(this.xt){var t,n,r,i,s=(t=this.xt,n=this.Et.Tt,r=this.Et.tunnel,i=ez(n),eF(o(o({sent_at:new Date().toISOString()},i&&{sdk:i}),!!r&&{dsn:D(t)}),["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]]));this.Lt(s)}},e.prototype.recordDroppedEvent=function(e,t,n){if(this.Et.sendClientReports){var r="".concat(e,":").concat(t);this.jt[r]=this.jt[r]+1||1}},e.prototype.on=function(e,t){this.Ot[e]||(this.Ot[e]=[]),this.Ot[e].push(t)},e.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.Ot[e]&&this.Ot[e].forEach(function(e){return e.apply(void 0,u([],c(t),!1))})},e.prototype.Mt=function(e,t){var n,r,i=!1,s=!1,a=t.exception&&t.exception.values;if(a){s=!0;try{for(var c=l(a),u=c.next();!u.done;u=c.next()){var d=u.value.mechanism;if(d&&!1===d.handled){i=!0;break}}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}}var h="ok"===e.status;(h&&0===e.errors||h&&i)&&(eq(e,o(o({},i&&{status:"crashed"}),{errors:e.errors||Number(s||i)})),this.captureSession(e))},e.prototype.At=function(e){var t=this;return new eS(function(n){var r=0,i=setInterval(function(){0==t.kt?(clearInterval(i),n(!0)):(r+=1,e&&r>=e&&(clearInterval(i),n(!1)))},1)})},e.prototype.Dt=function(){return!1!==this.getOptions().enabled&&void 0!==this.xt},e.prototype.Nt=function(e,t,n){var r=this,i=this.getOptions(),s=Object.keys(this._integrations);return!t.integrations&&s.length>0&&(t.integrations=s),(function(e,t,n,r){var i,s,a,l,d,h,p,f=e.normalizeDepth,g=void 0===f?3:f,m=e.normalizeMaxBreadth,v=void 0===m?1e3:m,y=o(o({},t),{event_id:t.event_id||n.event_id||ep(),timestamp:t.timestamp||eT()}),w=n.integrations||e.integrations.map(function(e){return e.name});i=e.environment,s=e.release,a=e.dist,d=void 0===(l=e.maxValueLength)?250:l,"environment"in y||
2(y.environment="environment"in e?i:eG),void 0===y.release&&void 0!==s&&(y.release=s),void 0===y.dist&&void 0!==a&&(y.dist=a),y.message&&(y.message=x(y.message,d)),(h=y.exception&&y.exception.values&&y.exception.values[0])&&h.value&&(h.value=x(h.value,d)),(p=y.request)&&p.url&&(p.url=x(p.url,d)),w.length>0&&(y.sdk=y.sdk||{},y.sdk.integrations=u(u([],c(y.sdk.integrations||[]),!1),c(w),!1)),void 0===t.type&&function(e,t){var n,r=L._sentryDebugIds;if(r){var i=th.get(t);i?n=i:(n=new Map,th.set(t,n));var o=Object.keys(r).reduce(function(e,i){var o,s=n.get(i);s?o=s:(o=t(i),n.set(i,o));for(var a=o.length-1;a>=0;a--){var l=o[a];if(l.filename){e[l.filename]=r[i];break}}return e},{});try{e.exception.values.forEach(function(e){e.stacktrace.frames.forEach(function(e){e.filename&&(e.debug_id=o[e.filename])})})}catch(e){}}}(y,e.stackParser);var b=r;n.captureContext&&(b=eU.clone(b).update(n.captureContext));var _=eb(y);if(b){if(b.getAttachments){var S=u(u([],c(n.attachments||[]),!1),c(b.getAttachments()),!1);S.length&&(n.attachments=S)}_=b.applyToEvent(y,n)}return _.then(function(e){return e&&function(e){var t={};try{e.exception.values.forEach(function(e){e.stacktrace.frames.forEach(function(e){e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})})}catch(e){}if(0!==Object.keys(t).length){e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];var n=e.debug_meta.images;Object.keys(t).forEach(function(e){n.push({type:"sourcemap",code_file:e,debug_id:t[e]})})}}(e),"number"==typeof g&&g>0?function(e,t,n){if(!e)return null;var r=o(o(o(o(o({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(function(e){return o(o({},e),e.data&&{data:ew(e.data,t,n)})})}),e.user&&{user:ew(e.user,t,n)}),e.contexts&&{contexts:ew(e.contexts,t,n)}),e.extra&&{extra:ew(e.extra,t,n)});return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=ew(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(function(e){return e.data&&(e.data=ew(e.data,t,n)),e})),r}(e,g,v):e})})(i,e,t,n).then(function(e){if(null===e)return e;var t=(e.sdkProcessingMetadata||{}).propagationContext;if(!(e.contexts&&e.contexts.trace)&&t){var i=t.traceId,s=t.spanId,a=t.parentSpanId,l=t.dsc;e.contexts=o({trace:{trace_id:i,span_id:s,parent_span_id:a}},e.contexts);var c=l||e7(i,r,n);e.sdkProcessingMetadata=o({dynamicSamplingContext:c},e.sdkProcessingMetadata)}return e})},e.prototype.Ct=function(e,t,n){return void 0===t&&(t={}),this.qt(e,t,n).then(function(e){return e.event_id},function(e){})},e.prototype.qt=function(e,t,n){var r=this,i=this.getOptions(),s=i.sampleRate;if(!this.Dt())return e_(new F("SDK not enabled, will not capture event.","log"));var a=tg(e),l=tf(e),c=e.type||"error",u="before send for type `".concat(c,"`");if(l&&"number"==typeof s&&Math.random()>s)return this.recordDroppedEvent("sample_rate","error",e),e_(new F("Discarding event because it's not included in the random sample (sampling rate = ".concat(s,")"),"log"));var d="replay_event"===c?"replay":c;return this.Nt(e,t,n).then(function(n){if(null===n)throw r.recordDroppedEvent("event_processor",d,e),new F("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return n;var o,s,a=(o=i.beforeSend,s=i.beforeSendTransaction,tf(n)&&o?o(n,t):tg(n)&&s?s(n,t):n),l="".concat(u," must return `null` or a valid event.");if(b(a))return a.then(function(e){if(!y(e)&&null!==e)throw new F(l);return e},function(e){throw new F("".concat(u," rejected with ").concat(e))});if(!y(a)&&null!==a)throw new F(l);return a}).then(function(i){if(null===i)throw r.recordDroppedEvent("before_send",d,e),new F("".concat(u," returned `null`, will not send event."),"log");var s=n&&n.getSession();!a&&s&&r.Mt(s,i);var l=i.transaction_info;return a&&l&&i.transaction!==e.transaction&&(i.transaction_info=o(o({},l),{source:"custom"})),r.sendEvent(i,t),i}).then(null,function(e){if(e instanceof F)throw e;throw r.captureException(e,{data:{__sentry__:!0},originalException:e}),new F(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. 3Reason: `.concat(e))})},e.prototype.It=function(e){var t=this;this.kt++,e.then(function(e){return t.kt--,e},function(e){return t.kt--,e})},e.prototype.Lt=function(e){if(this.Rt&&this.xt)return this.emit
3("beforeEnvelope",e),this.Rt.send(e).then(null,function(e){})},e.prototype.Ht=function(){var e=this.jt;return this.jt={},Object.keys(e).map(function(t){var n=c(t.split(":"),2);return{reason:n[0],category:n[1],quantity:e[t]}})},e}();function tf(e){return void 0===e.type}function tg(e){return"transaction"===e.type}function tm(e,t,n){void 0===n&&(n=function(e){var t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(r){if(!(void 0===e||t.length<e))return e_(new F("Not adding Promise because buffer limit was reached."));var i=r();return -1===t.indexOf(i)&&t.push(i),i.then(function(){return n(i)}).then(null,function(){return n(i).then(null,function(){})}),i},drain:function(e){return new eS(function(n,r){var i=t.length;if(!i)return n(!0);var o=setTimeout(function(){e&&e>0&&n(!1)},e);t.forEach(function(e){eb(e).then(function(){--i||(clearTimeout(o),n(!0))},r)})})}}}(e.bufferSize||30));var r={};function i(i){var s=[];if(e$(i,function(t,n){var i,o,a=eH[n];if(i=r,void 0===o&&(o=Date.now()),(i[a]||i.all||0)>o){var l=tv(t,n);e.recordDroppedEvent("ratelimit_backoff",a,l)}else s.push(t)}),0===s.length)return eb();var a=eF(i[0],s),u=function(t){e$(a,function(n,r){var i=tv(n,r);e.recordDroppedEvent(t,eH[r],i)})};return n.add(function(){return t({body:function(e,t){var n,r,i=c(e,2),o=i[0],s=i[1],a=JSON.stringify(o);function u(e){"string"==typeof a?a="string"==typeof e?a+e:[ej(a,t),e]:a.push("string"==typeof e?ej(e,t):e)}try{for(var d=l(s),h=d.next();!h.done;h=d.next()){var p=c(h.value,2),f=p[0],g=p[1];if(u(` 4`.concat(JSON.stringify(f),` 5`)),"string"==typeof g||g instanceof Uint8Array)u(g);else{var m=void 0;try{m=JSON.stringify(g)}catch(e){m=JSON.stringify(ew(g))}u(m)}}}catch(e){n={error:e}}finally{try{h&&!h.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}return"string"==typeof a?a:function(e){var t,n,r=new Uint8Array(e.reduce(function(e,t){return e+t.length},0)),i=0;try{for(var o=l(e),s=o.next();!s.done;s=o.next()){var a=s.value;r.set(a,i),i+=a.length}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r}(a)}(a,e.textEncoder)}).then(function(e){return r=function(e,t,n){var r,i,s,a,u=t.statusCode,d=t.headers;void 0===n&&(n=Date.now());var h=o({},e),p=d&&d["x-sentry-rate-limits"],f=d&&d["retry-after"];if(p)try{for(var g=l(p.trim().split(",")),m=g.next();!m.done;m=g.next()){var v=c(m.value.split(":",2),2),y=v[0],w=v[1],b=parseInt(y,10),_=1e3*(isNaN(b)?60:b);if(w)try{for(var S=(s=void 0,l(w.split(";"))),x=S.next();!x.done;x=S.next())h[x.value]=n+_}catch(e){s={error:e}}finally{try{x&&!x.done&&(a=S.return)&&a.call(S)}finally{if(s)throw s.error}}else h.all=n+_}}catch(e){r={error:e}}finally{try{m&&!m.done&&(i=g.return)&&i.call(g)}finally{if(r)throw r.error}}else f?h.all=n+function(e,t){void 0===t&&(t=Date.now());var n=parseInt("".concat(e),10);if(!isNaN(n))return 1e3*n;var r=Date.parse("".concat(e));return isNaN(r)?6e4:r-t}(f,n):429===u&&(h.all=n+6e4);return h}(r,e),e},function(e){throw u("network_error"),e})}).then(function(e){return e},function(e){if(e instanceof F)return u("queue_overflow"),eb();throw e})}return i.__sentry__baseTransport__=!0,{send:i,flush:function(e){return n.drain(e)}}}function tv(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}var ty,tw,tb="7.64.0",t_=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){tw=Function.prototype.toString;try{Function.prototype.toString=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=z(this)||this;return tw.apply(n,e)}}catch(e){}},e.id="FunctionToString",e}(),tS=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],tx=[/^.*healthcheck.*$/,/^.*healthy.*$/,/^.*live.*$/,/^.*ready.*$/,/^.*heartbeat.*$/,/^.*\/health$/,/^.*\/healthz$/],tk=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this.Et=t}return e.prototype.setupOnce=function(t,n){var r=function(t){var r=n();if(r){var i=r.getIntegration(e);if(i){var o,s,a=r.getClient(),l=a?a.getOptions():{};return!function(e,t){var n;return!!(t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e))||(n=t.ignoreErrors,!(!(!e.type&&n&&n.length&&(function(e){if(e.message)return[e.message];if(e.exception){var t=e.exception.values;try{var n=t&&t[t.length-1]||{},r=n.type,i=n.value,o=void 0===i?"":i;return["".concat(o),"".concat(void 0===r?"":r,": ").concat(o)]}catch(e){}}return[]})(e).some(function(e){return E(e,n)})||function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;var n=e.transaction;return!!n&&E(n,t)}(e,t.ignoreTransactions)||function(e,t){if(!t||!t.length)return!1;var n=tE(e);return!!n&&E(n,t)}(e,t.denyUrls))&&function(e,t){if(!t||!t.length)return!0;var n=tE(e);return!n||E(n,t)}(e,t.allowUrls)))}(t,(void 0===(o=i.Et)&&(o={}),void 0===(s=l)&&(s={}),{allowUrls:u(u([],c(o.allowUrls||[]),!1),c(s.allowUrls||[]),!1),denyUrls:u(u([],c(o.denyUrls||[]),!1),c(s.denyUrls||[]),!1),ignoreErrors:u(u(u([],c(o.ignoreErrors||[]),!1),c(s.ignoreErrors||[]),!1),c(o.disableErrorDefaults?[]:tS),!1),ignoreTransactions:u(u(u([],c(o.ignoreTransactions||[]),!1),c(s.ignoreTransactions||[]),!1),c(o.disableTransactionDefaults?[]:tx),!1),ignoreInternal:void 0===o.ignoreInternal||o.ignoreInternal}))?t:null}}return t};r.id=this.name,t(r)},e.id="InboundFilters",e}();function tE(e){try{var t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e){void 0===e&&(e=[]);for(var t=e.length-1;t>=0;t--){var n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch(e){return null}}var tC=Object.freeze({__proto__:null,FunctionToString:t_,InboundFilters:tk}),tP=function(e,t,n){var r,i;return function(o){t.value>=0&&(o||n)&&((i=t.value-(r||0))||void 0===r)&&(r=t.value,t.delta=i,e(t))}},tT=function(){return L.__WEB_VITALS_POLYFILL__?L.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||function(){var e=L.performance.timing,t=L.performance.navigation.type,n={entryType:"navigation",startTime:0,type:2==t?"back_forward":1===t?"reload":"navigate"};for(var r in e)"navigationStart"!==r&&"toJSON"!==r&&(n[r]=Math.max(e[r]-e.navigationStart,0));return n}()):L.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},tL=function(){var e=tT();return e&&e.activationStart||0},tI=function(e,t){var n=tT(),r="navigate";return n&&(r=L.document.prerendering||tL()>0?"prerender":n.type.replace(/_/g,"-")),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(0x82f79cd8fff*Math.random())+1e12),navigationType:r}},tO=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver(function(e){t(e.getEntries())});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},tA=function(e,t){var n=function(r){"pagehide"!==r.type&&"hidden"
5!==L.document.visibilityState||(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},tM=-1,tN=function(){return tM<0&&(tM="hidden"!==L.document.visibilityState||L.document.prerendering?1/0:0,tA(function(e){tM=e.timeStamp},!0)),{get firstHiddenTime(){return tM}}},tD={};function tR(e){return"number"==typeof e&&isFinite(e)}function tB(e,t){var n=t.startTimestamp,r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(t,["startTimestamp"]);return n&&e.startTimestamp>n&&(e.startTimestamp=n),e.startChild(o({startTimestamp:n},r))}function tF(e){return e/1e3}function t$(){return L&&L.addEventListener&&L.performance}var tj,tH,tz=0,tG={};function tq(e,t,n,r,i,o){var s=o?t[o]:t["".concat(n,"End")],a=t["".concat(n,"Start")];a&&s&&tB(e,{op:"browser",description:i||n,startTimestamp:r+tF(a),endTimestamp:r+tF(s)})}var tU=["localhost",/^\/(?!\/)/],tW={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:tU,tracePropagationTargets:tU};function tV(e){var t=e.data.url,n=new PerformanceObserver(function(r){r.getEntries().forEach(function(r){var i,o,s,a;("fetch"===r.initiatorType||"xmlhttprequest"===r.initiatorType)&&r.name.endsWith(t)&&((o=(i=function(e){var t,n,r,i="unknown",o="unknown",s="";try{for(var a=l(e),u=a.next();!u.done;u=a.next()){var d=u.value;if("/"===d){i=(r=c(e.split("/"),2))[0],o=r[1];break}if(!isNaN(Number(d))){i="h"===s?"http":s,o=e.split(s)[1];break}s+=d}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return s===e&&(i=s),{name:i,version:o}}(r.nextHopProtocol)).name,s=i.version,((a=[]).push(["network.protocol.version",s],["network.protocol.name",o]),!eI)?a:u(u([],c(a),!1),[["http.request.redirect_start",tY(r.redirectStart)],["http.request.fetch_start",tY(r.fetchStart)],["http.request.domain_lookup_start",tY(r.domainLookupStart)],["http.request.domain_lookup_end",tY(r.domainLookupEnd)],["http.request.connect_start",tY(r.connectStart)],["http.request.secure_connection_start",tY(r.secureConnectionStart)],["http.request.connection_end",tY(r.connectEnd)],["http.request.request_start",tY(r.requestStart)],["http.request.response_start",tY(r.responseStart)],["http.request.response_end",tY(r.responseEnd)]],!1)).forEach(function(t){return e.setData.apply(e,u([],c(t),!1))}),n.disconnect())})});n.observe({entryTypes:["resource"]})}function tY(e){return((eI||performance.timeOrigin)+e)/1e3}function tX(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(eO,n)}catch(e){}}var tK=o(o(o({},e9),{markBackgroundTransactions:!0,routingInstrumentation:function(e,t,n){if(void 0===t&&(t=!0),void 0===n&&(n=!0),L&&L.location){var r,i=L.location.href;t&&(r=e({name:L.location.pathname,startTimestamp:eI?eI/1e3:void 0,op:"pageload",metadata:{source:"url"}})),n&&er("history",function(t){var n=t.to,o=t.from;void 0===o&&i&&-1!==i.indexOf(n)?i=void 0:o!==n&&(i=void 0,r&&r.finish(),r=e({name:L.location.pathname,op:"navigation",metadata:{source:"url"}}))})}},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,_experiments:{}}),tW),tJ=function(){function e(e){this.name="BrowserTracing",this.Pt=!1,ts(),this.options=o(o({},tK),e),void 0!==this.options._experiments.enableLongTask&&(this.options.enableLongTask=this.options._experiments.enableLongTask),e&&!e.tracePropagationTargets&&e.tracingOrigins&&(this.options.tracePropagationTargets=e.tracingOrigins),this.Ut=function(){var e,t,n,r,i,o,s=t$();if(s&&eI){s.mark&&L.performance.mark("sentry-tracing-init"),t=tN(),n=tI("FID"),r=function(r){r.startTime<t.firstHiddenTime&&(n.value=r.processingStart-r.startTime,n.entries.push(r),e(!0))},o=tO("first-input",i=function(e){e.forEach(r)}),e=tP(function(e){var t=e.entries.pop();if(t){var n=tF(eI),r=tF(t.startTime);tG.fid={value:e.value,unit:"millisecond"},tG["mark.fid"]={value:n+r,unit:"second"}}},n),o&&tA(function(){i(o.takeRecords()),o.disconnect()},!0);var a=function(e){var t,n=tI("CLS",0),r=0,i=[],o=function(e){e.forEach(function(e){if(!e.hadRecentInput){var o=i[0],s=i[i.length-1];r&&0!==i.length&&e.startTime-s.startTime<1e3&&e.startTime-o.startTime<5e3?(r+=e.value,i.push(e)):(r=e.value,i=[e]),r>
5n.value&&(n.value=r,n.entries=i,t&&t())}})},s=tO("layout-shift",o);if(s){t=tP(e,n);var a=function(){o(s.takeRecords()),t(!0)};return tA(a),a}}(function(e){var t=e.entries.pop();t&&(tG.cls={value:e.value,unit:""},tH=t)}),l=function(e){var t,n=tN(),r=tI("LCP"),i=function(e){var i=e[e.length-1];if(i){var o=Math.max(i.startTime-tL(),0);o<n.firstHiddenTime&&(r.value=o,r.entries=[i],t())}},o=tO("largest-contentful-paint",i);if(o){t=tP(e,r);var s=function(){tD[r.id]||(i(o.takeRecords()),o.disconnect(),tD[r.id]=!0,t(!0))};return["keydown","click"].forEach(function(e){addEventListener(e,s,{once:!0,capture:!0})}),tA(s,!0),s}}(function(e){var t=e.entries.pop();t&&(tG.lcp={value:e.value,unit:"millisecond"},tj=t)});return function(){a&&a(),l&&l()}}return function(){}}(),this.options.enableLongTask&&tO("longtask",function(e){var t,n;try{for(var r=l(e),i=r.next();!i.done;i=r.next()){var o=i.value,s=e2();if(!s)return;var a=tF(eI+o.startTime),c=tF(o.duration);s.startChild({description:"Main UI thread blocked",op:"ui.long-task",startTimestamp:a,endTimestamp:a+c})}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}}),this.options._experiments.enableInteractions&&tO("event",function(e){var t,n;try{for(var r=l(e),i=r.next();!i.done;i=r.next()){var o=i.value,s=e2();if(!s)return;if("click"===o.name){var a=tF(eI+o.startTime),c=tF(o.duration);s.startChild({description:O(o.target),op:"ui.interaction.".concat(o.name),startTimestamp:a,endTimestamp:a+c})}}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},{durationThreshold:0})}return e.prototype.setupOnce=function(e,t){var n,r,i,s,a,l,d,h,p,f,g=this;this.$t=t;var m=t().getClient(),v=m&&m.getOptions(),y=this.options,w=y.routingInstrumentation,b=y.startTransactionOnLocationChange,_=y.startTransactionOnPageLoad,x=y.markBackgroundTransactions,k=y.traceFetch,C=y.traceXHR,P=y.shouldCreateSpanForRequest,T=y.enableHTTPTimings,I=y._experiments,O=v&&v.tracePropagationTargets||this.options.tracePropagationTargets;w(function(e){var n=g.Ft(e);return g.options._experiments.onStartRouteTransaction&&g.options._experiments.onStartRouteTransaction(n,e,t),n},_,b),x&&L&&L.document&&L.document.addEventListener("visibilitychange",function(){var e=e2();L.document.hidden&&e&&(e.status||e.setStatus("cancelled"),e.setTag("visibilitychange","document.hidden"),e.finish())}),I.enableInteractions&&this.Bt(),r=(n=o({traceFetch:tW.traceFetch,traceXHR:tW.traceXHR},{traceFetch:k,traceXHR:C,tracePropagationTargets:O,shouldCreateSpanForRequest:P,enableHTTPTimings:T})).traceFetch,i=n.traceXHR,s=n.tracePropagationTargets,a=n.tracingOrigins,l=n.shouldCreateSpanForRequest,d=n.enableHTTPTimings,h="function"==typeof l?l:function(e){return!0},p=function(e){return E(e,s||a||tU)},f={},r&&er("fetch",function(e){var t=function(e,t,n,r){if(e1()&&e.fetchData){var i=t(e.fetchData.url);if(e.endTimestamp&&i){var s=e.fetchData.__span;if(!s)return;var a=r[s];if(a){if(e.response){a.setHttpStatus(e.response.status);var l=parseInt(e.response&&e.response.headers&&e.response.headers.get("content-length"));l>0&&a.setData("http.response_content_length",l)}else e.error&&a.setStatus("internal_error");a.finish(),delete r[s]}return}var d=eZ(),h=d.getScope(),p=d.getClient(),f=h.getSpan(),g=e.fetchData,m=g.method,v=g.url,y=i&&f?f.startChild({data:{url:v,type:"fetch","http.method":m},description:"".concat(m," ").concat(v),op:"http.client"}):void 0;if(y&&(e.fetchData.__span=y.spanId,r[y.spanId]=y),n(e.fetchData.url)&&p){var w=e.args[0];e.args[1]=e.args[1]||{};var b=e.args[1];b.headers=function(e,t,n,r,i){var s=i||n.getSpan(),a=s&&s.transaction,l=n.getPropagationContext(),d=l.traceId,h=l.sampled,p=l.dsc,f=s?s.toTraceparent():eB(d,void 0,h),g=eN(a?a.getDynamicSamplingContext():p||e7(d,t,n)),m="undefined"!=typeof Request&&S(e,Request)?e.headers:r.headers;if(m){if("undefined"!=typeof Headers&&S(m,Headers))return(v=new Headers(m)).append("sentry-trace",f),g&&v.append(eO,g),v;if(Array.isArray(m)){var v=u(u([],c(m),!1),[["sentry-trace",f]],!1);return g&&v.push([eO,g]),v}var y="baggage"in m?m.baggage:void 0,w=[];return Array.isArray(y)?w.push.apply(w,u([],c(y),!1)):y&&w.push(y),g&&w.push(g),o(o({},m),{"sentry-trace":f,baggage:w.length>0?w.join(","):void 0})}return{"sentry-trace":f,baggage:g}}(w,p,h,b,y)}return y}}(e,h,p,f);d&&t&&tV(t)}),i&&er("xhr",function(e){var t=function(e,t,n,r){var i=e.xhr,s=i&&i.__sentry_xhr_v2__;if(e1()&&(!i||!i.__sentry_own_request__)&&i&&s){var a=t(s.url);if(e.endTimestamp&&a){var l=i.__sentry_xhr_span_id__;if(!l)return;var c=r[l];return void(c&&(c.setHttpStatus(s.status_code),c.finish(),delete r[l]))}var u=eZ(),d=u.getScope(),h=d.getSpan(),p=a&&h?h.startChild({data:o(o({}
5,s.data),{type:"xhr","http.method":s.method,url:s.url}),description:"".concat(s.method," ").concat(s.url),op:"http.client"}):void 0;if(p&&(i.__sentry_xhr_span_id__=p.spanId,r[i.__sentry_xhr_span_id__]=p),i.setRequestHeader&&n(s.url))if(p){var f=p&&p.transaction,g=eN(f&&f.getDynamicSamplingContext());tX(i,p.toTraceparent(),g)}else{var m=u.getClient(),v=d.getPropagationContext(),y=v.traceId,w=v.sampled,b=v.dsc;tX(i,eB(y,void 0,w),g=eN(b||(m?e7(y,m,d):void 0)))}return p}}(e,h,p,f);d&&t&&tV(t)})},e.prototype.Ft=function(e){var t=this;if(this.$t){var n,r,i,s,a,l,u,d,h,p=this.$t(),f=this.options,g=f.beforeNavigate,v=f.idleTimeout,y=f.finalTimeout,w=f.heartbeatInterval,b="pageload"===e.op,_=(n=b?tZ("sentry-trace"):"",r=b?tZ("baggage"):"",i=function(e){if(e){var t,n=e.match(eR);if(n)return"1"===n[3]?t=!0:"0"===n[3]&&(t=!1),{traceId:n[1],parentSampled:t,parentSpanId:n[2]}}}(n),s=function(e){if(m(e)||Array.isArray(e)){var t={};if(Array.isArray(e))t=e.reduce(function(e,t){var n=eD(t);return o(o({},e),n)},{});else{if(!e)return;t=eD(e)}var n=Object.entries(t).reduce(function(e,t){var n=c(t,2),r=n[0],i=n[1];return r.match(eM)&&(e[r.slice(eA.length)]=i),e},{});return Object.keys(n).length>0?n:void 0}}(r),l=(a=i||{}).traceId,u=a.parentSpanId,d=a.parentSampled,h={traceId:l||ep(),spanId:ep().substring(16),sampled:void 0!==d&&d},u&&(h.parentSpanId=u),s&&(h.dsc=s),{traceparentData:i,dynamicSamplingContext:s,propagationContext:h}),S=_.traceparentData,x=_.dynamicSamplingContext,k=_.propagationContext,E=o(o(o({},e),S),{metadata:o(o({},e.metadata),{dynamicSamplingContext:S&&!x?{}:x}),trimEnd:!0}),C="function"==typeof g?g(E):E,P=void 0===C?o(o({},E),{sampled:!1}):C;P.metadata=P.name!==E.name?o(o({},P.metadata),{source:"custom"}):P.metadata,this.Xt=P.name,this.zt=P.metadata&&P.metadata.source;var T=to(p,P,v,y,!0,{location:L.location},w),I=p.getScope();return b&&S?I.setPropagationContext(k):I.setPropagationContext({traceId:T.traceId,spanId:T.spanId,parentSpanId:T.parentSpanId,sampled:!!T.sampled}),T.registerBeforeFinishCallback(function(e){t.Ut(),function(e){var t=t$();if(t&&L.performance.getEntries&&eI){var n,r,i=tF(eI),o=t.getEntries();if(o.slice(tz).forEach(function(t){var o=tF(t.startTime),s=tF(t.duration);if(!("navigation"===e.op&&i+o<e.startTimestamp))switch(t.entryType){case"navigation":["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(function(n){tq(e,t,n,i)}),tq(e,t,"secureConnection",i,"TLS/SSL","connectEnd"),tq(e,t,"fetch",i,"cache","domainLookupStart"),tq(e,t,"domainLookup",i,"DNS"),tB(e,{op:"browser",description:"request",startTimestamp:i+tF(t.requestStart),endTimestamp:i+tF(t.responseEnd)}),tB(e,{op:"browser",description:"response",startTimestamp:i+tF(t.responseStart),endTimestamp:i+tF(t.responseEnd)}),n=i+tF(t.responseStart),r=i+tF(t.requestStart);break;case"mark":case"paint":case"measure":a=i+o,tB(e,{description:t.name,endTimestamp:a+s,op:t.entryType,startTimestamp:a});var a,l=tN(),c=t.startTime<l.firstHiddenTime;"first-paint"===t.name&&c&&(tG.fp={value:t.startTime,unit:"millisecond"}),"first-contentful-paint"===t.name&&c&&(tG.fcp={value:t.startTime,unit:"millisecond"});break;case"resource":var u=t.name.replace(L.location.origin,"");if("xmlhttprequest"!==t.initiatorType&&"fetch"!==t.initiatorType){var d={};"transferSize"in t&&(d["http.response_transfer_size"]=t.transferSize),"encodedBodySize"in t&&(d["http.response_content_length"]=t.encodedBodySize),"decodedBodySize"in t&&(d["http.decoded_response_content_length"]=t.decodedBodySize),"renderBlockingStatus"in t&&(d["resource.render_blocking_status"]=t.renderBlockingStatus);var h=i+o;tB(e,{description:u,endTimestamp:h+s,op:t.initiatorType?"resource.".concat(t.initiatorType):"resource.other",startTimestamp:h,data:d})}}}),tz=Math.max(o.length-1,0),function(e){var t=L.navigator;if(t){var n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),tR(n.rtt)&&(tG["connection.rtt"]={value:n.rtt,unit:"millisecond"})),tR(t.deviceMemory)&&e.setTag("deviceMemory","".concat(t.deviceMemory," GB")),tR(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}}(e),"pageload"===e.op){"number"==typeof n&&(tG.ttfb={value:1e3*(n-e.startTimestamp),unit:"millisecond"},"number"==typeof r&&r<=n&&(tG["ttfb.requestTime"]={value:1e3*(n-r),unit:"millisecond"})),["fcp","fp","lcp"].forEach(function(t){if(tG[t]&&!(i>=e.startTimestamp)){var n=Math.abs(1e3*(i+tF(tG[t].value)-e.startTimestamp));tG[t].value=n}});var s=tG["mark.fid"];s&&tG.fid&&(tB(e,{description:"first input delay",endTimestamp:s.value+tF(tG.fid.value),op:"ui.action",startTimestamp:s.value}),delete tG["mark.fid"]),"fcp"in tG||delete tG.cls,Object.keys(tG).forEach(function(t){e.setMeasurement(t,tG[t].value,tG[t].unit)}),tj&&(tj.element&&e.setTag("lcp.element",O(tj.element)),tj.id&&e.setTag("lcp.id",tj.id),tj.url&&e.setTag("lcp.url",tj.url.trim().slice(0,200)),e.setTag("lcp.size",tj.size)),tH&&tH.sources&&tH.sources.forEac
5h(function(t,n){return e.setTag("cls.source.".concat(n+1),O(t.node))})}tj=void 0,tH=void 0,tG={}}}(e)}),T}},e.prototype.Bt=function(){var e,t=this,n=function(){var n=t.options,r=n.idleTimeout,i=n.finalTimeout,o=n.heartbeatInterval,s=e2();if(!(s&&s.op&&["navigation","pageload"].includes(s.op))&&(e&&(e.setFinishReason("interactionInterrupted"),e.finish(),e=void 0),t.$t&&t.Xt)){var a=t.$t(),l=L.location;e=to(a,{name:t.Xt,op:"ui.action.click",trimEnd:!0,metadata:{source:t.zt||"url"}},r,i,!0,{location:l},o)}};["click"].forEach(function(e){addEventListener(e,n,{once:!1,capture:!0})})},e}();function tZ(e){var t,n=(t="meta[name=".concat(e,"]"),L.document&&L.document.querySelector?L.document.querySelector(t):null);return n?n.getAttribute("content"):void 0}function tQ(){ts()}var t0=0;function t1(e,t,n){if(void 0===t&&(t={}),"function"!=typeof e)return e;try{var r=e.__sentry_wrapped__;if(r)return r;if(z(e))return e}catch(t){return e}var i=function(){var r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);var i=r.map(function(e){return t1(e,t)});return e.apply(this,i)}catch(e){throw t0++,setTimeout(function(){t0--}),tl(function(n){n.addEventProcessor(function(e){return t.mechanism&&(eg(e,void 0,void 0),em(e,t.mechanism)),e.extra=o(o({},e.extra),{arguments:r}),e}),ta(e)}),e}};try{for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(i[s]=e[s])}catch(e){}H(i,e),j(e,"__sentry_wrapped__",i);try{Object.getOwnPropertyDescriptor(i,"name").configurable&&Object.defineProperty(i,"name",{get:function(){return e.name}})}catch(e){}return i}function t2(e,t){var n,r,i=t4(e,t),o={type:t&&t.name,value:(r=(n=t)&&n.message)?r.error&&"string"==typeof r.error.message?r.error.message:r:"No error message"};return i.length&&(o.stacktrace={frames:i}),void 0===o.type&&""===o.value&&(o.value="Unrecoverable error caught"),o}function t5(e,t){return{exception:{values:[t2(e,t)]}}}function t4(e,t){var n=t.stacktrace||t.stack||"",r=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(t6.test(e.message))return 1}return 0}(t);try{return e(n,r)}catch(e){}return[]}var t6=/Minified React error #\d+;/i;function t3(e,t,n,r){var i=t8(e,t,n&&n.syntheticException||void 0,r);return em(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),eb(i)}function t7(e,t,n,r,i){void 0===n&&(n="info");var o=t9(e,t,r&&r.syntheticException||void 0,i);return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),eb(o)}function t8(e,t,n,r,i){var s;if(f(t)&&t.error)return t5(e,t.error);if(g(t)||p(t,"DOMException")){if("stack"in t)s=t5(e,t);else{var a=t.name||(g(t)?"DOMError":"DOMException"),l=t.message?"".concat(a,": ").concat(t.message):a;eg(s=t9(e,l,n,r),l)}return"code"in t&&(s.tags=o(o({},s.tags),{"DOMException.code":"".concat(t.code)})),s}return h(t)?t5(e,t):(y(t)||w(t)?em(s=function(e,t,n,r){var i=eZ().getClient(),o=i&&i.getOptions().normalizeDepth,s={exception:{values:[{type:w(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:function(e,t){var n=t.isUnhandledRejection,r=function(e,t){void 0===t&&(t=40);var n=Object.keys(G(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return x(n[0],t);for(var r=n.length;r>0;r--){var i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length?i:x(i,t)}return""}(e),i=n?"promise rejection":"exception";if(f(e))return"Event `ErrorEvent` captured as ".concat(i," with message `").concat(e.message,"`");if(w(e)){var o=function(e){try{var t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e);return"Event `".concat(o,"` (type=").concat(e.type,") captured as ").concat(i)}return"Object captured as ".concat(i," with keys: ").concat(r)}(t,{isUnhandledRejection:r})}]},extra:{__serialized__:function e(t,n,r){void 0===n&&(n=3),void 0===r&&(r=102400);var i=ew(t,n);return~-encodeURI(JSON.stringify(i)).split(/%..|./).length>r?e(t,n-1,r):i}(t,o)}};if(n){var a=t4(e,n);a.length&&(s.exception.values[0].stacktrace={frames:a})}return s}(e,t,n,i),{synthetic:!0}):(eg(s=t9(e,t,n,r),"".concat(t),void 0),em(s,{synthetic:!0})),s)}function t9(e,t,n,r){var i={message:t};if(r&&n){var o=t4(e,n);o.length&&(i.exception={values:[{value:t,stacktrace:{frames:o}}]})}return i}var ne="Breadcrumbs",nt=function(){function e(t){this.name=e.id,this.options=o({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}return e.prototype.setupOnce=function(){var e;this.options.console&&er("console",nn),this.options.dom&&er("dom",(e=this.options.dom,function(t){var n,r="object"==typeof e?e.serializeAttribute:void 0,i="object"==typeof e&&"number"==typeof e.maxStringLength?e.maxStringLength:void 0;i&&i>1024&&(i=1024),"string"==typeof r&&(r=[r]);try{var o=t.event;n=o&&o.target?O(o.target,{keyAttrs:r,maxStringLength:i}):O(o,{keyAttrs:r,maxStringLength:i})}catch(e){n="<unknown>"}0!==n.length&&eZ().addBreadcrumb({category:"ui.".concat(t.name),message:n},{event:t.event,name:t.name,global:t.global})})),this.options.xhr&&er("xhr",nr),this.options.fetch&&er("fetch",ni),this.options.history&&er("history",no)},e.prototype.addSentryBreadcrumb=function(e){this.options.sentry&&eZ().addBreadcrumb({category:"sentry.".concat("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:function(e){var t=e.message,n=e.event_id;if(t)return t;var r=ef(e);return r?r.type&&r.value?"".concat(r.type,": ").concat(r.value):r.type||r.value||n||"<unknown>":n||"<unknown>"}(e)},{event:e})},e.id=ne,e}();function nn(e){for(var t=0;t<e.args.length;t++)if("ref=Ref<"===e.args[t]){e.args[t+1]="viewRef";break}var n,r={category:"console",data:{arguments:e.args,logger:"console"},level:"warn"===(n=e.level)?"warning":ek.includes(n)?n:"log",message:k(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;r.message="Assertion failed: ".concat(k(e.args.slice(1)," ")||"console.assert"),r.data.arguments=e.args.slice(1)}eZ().addBreadcrumb(r,{input:e.args,level:e.level})}function nr(e){var t=e.startTimestamp,n=e.endTimestamp,r=e.xhr.__sentry_xhr_v2__;if(t&&n&&r){var i=r.method,o=r.url,s=r.status_code,a=r.body,l={xhr:e.xhr,input:a,startTimestamp:t,endTimestamp:n};eZ().addBreadcrumb({category:"xhr",data:{method:i,url:o,status_code:s},type:"http"},l)}}function ni(e){var t=e.startTimestamp,n=e.endTimestamp;
5if(n&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.error){var r=e.fetchData,i={data:e.error,input:e.args,startTimestamp:t,endTimestamp:n};eZ().addBreadcrumb({category:"fetch",data:r,level:"error",type:"http"},i)}else r=o(o({},e.fetchData),{status_code:e.response&&e.response.status}),i={input:e.args,response:e.response,startTimestamp:t,endTimestamp:n},eZ().addBreadcrumb({category:"fetch",data:r,type:"http"},i)}function no(e){var t=e.from,n=e.to,r=ex(L.location.href),i=ex(t),o=ex(n);i.path||(i=r),r.protocol===o.protocol&&r.host===o.host&&(n=o.relative),r.protocol===i.protocol&&r.host===i.host&&(t=i.relative),eZ().addBreadcrumb({category:"navigation",data:{from:t,to:n}})}function ns(e,t){var n=t.metadata,r=t.tunnel,i=t.dsn;return eF(o(o({event_id:e.event_id,sent_at:new Date().toISOString()},n&&n.sdk&&{sdk:{name:n.sdk.name,version:n.sdk.version}}),!!r&&!!i&&{dsn:D(i)}),[[{type:"user_report"},e]])}var na=function(e){function t(t){var n=this,r=L.SENTRY_SDK_SOURCE||"cdn";return t.Tt=t.Tt||{},t.Tt.sdk=t.Tt.sdk||{name:"sentry.javascript.browser",packages:[{name:"".concat(r,":@sentry/browser"),version:tb}],version:tb},n=e.call(this,t)||this,t.sendClientReports&&L.document&&L.document.addEventListener("visibilitychange",function(){"hidden"===L.document.visibilityState&&n.Wt()}),n}return i(t,e),t.prototype.eventFromException=function(e,t){return t3(this.Et.stackParser,e,t,this.Et.attachStacktrace)},t.prototype.eventFromMessage=function(e,t,n){return void 0===t&&(t="info"),t7(this.Et.stackParser,e,t,n,this.Et.attachStacktrace)},t.prototype.sendEvent=function(t,n){var r=this.getIntegrationById(ne);r&&r.addSentryBreadcrumb&&r.addSentryBreadcrumb(t),e.prototype.sendEvent.call(this,t,n)},t.prototype.captureUserFeedback=function(e){if(this.Dt()){var t=ns(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.Lt(t)}},t.prototype.Nt=function(t,n,r){return t.platform=t.platform||"javascript",e.prototype.Nt.call(this,t,n,r)},t.prototype.Wt=function(){var e=this.Ht();if(0!==e.length&&this.xt){var t,n,r=eF((t=this.Et.tunnel&&D(this.xt))?{dsn:t}:{},[[{type:"client_report"},{timestamp:n||eT(),discarded_events:e}]]);this.Lt(r)}},t}(tp),nl=void 0;function nc(e,t){void 0===t&&(t=function(){if(nl)return nl;if(Q(L.fetch))return nl=L.fetch.bind(L);var e=L.document,t=L.fetch;if(e&&"function"==typeof e.createElement)try{var n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);var r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(e){}return nl=t.bind(L)}());var n=0,r=0;return tm(e,function(i){var s=i.body.length;n+=s,r++;var a=o({body:i.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15},e.fetchOptions);try{return t(e.url,a).then(function(e){return n-=s,r--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}}})}catch(e){return nl=void 0,n-=s,r--,e_(e)}})}function nu(e){return tm(e,function(t){return new eS(function(n,r){var i=new XMLHttpRequest;for(var o in i.onerror=r,i.onreadystatechange=function(){4===i.readyState&&n({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",e.url),e.headers)Object.prototype.hasOwnProperty.call(e.headers,o)&&i.setRequestHeader(o,e.headers[o]);i.send(t.body)})})}function nd(e,t,n,r){var i={filename:e,function:t,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}var nh=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,np=/\((\S*)(?::(\d+))(?::(\d+))\)/,nf=[30,function(e){var t=nh.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){var n=np.exec(t[2]);n&&(t[2]=n[1],t[3]=n[2],t[4]=n[3])}var r=c(nC(t[1]||"?",t[2]),2),i=r[0];return nd(r[1],i,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],ng=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,nm=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,nv=[50,function(e){var t,n=ng.exec(e);if(n){if(n[3]&&n[3].indexOf(" > eval")>-1){var r=nm.exec(n[3]);r&&(n[1]=n[1]||"eval",n[3]=r[1],n[4]=r[2],n[5]="")}var i=n[3],o=n[1]||"?";return o=(t=c(nC(o,i),2))[0],nd(i=t[1],o,n[4]?+n[4]:void 0,n[5]?+n[5]:void 0)}}],ny=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,nw=[40,function(e){var t=ny.exec(e);return t?nd(t[2],t[1]||"?",+t[3],t[4]?+t[4]:void 0):void 0}],nb=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,n_=[10,function(e){var t=nb.exec(e);return t?nd(t[2],t[3]||"?",+t[1]):void 0}],nS=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,nx=[20,function(e){var t=nS.exec(e);return t?nd(t[5],t[3]||t[4]||"?",+t[1],+t[2]):void 0}],nk=[nf,nv,nw],nE=X.apply(void 0,u([],c(nk),!1)),nC=function(e,t){var n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:"?",n?"safari-extension:".concat(t):"safari-web-extension:".concat(t)]:[e,t]},nP=function(){function e(t){this.name=e.id,this.Et=o({onerror:!0,onunhandledrejection:!0}
5,t),this.Gt={onerror:nT,onunhandledrejection:nL}}return e.prototype.setupOnce=function(){Error.stackTraceLimit=50;var e=this.Et;for(var t in e){var n=this.Gt[t];n&&e[t]&&(n(),this.Gt[t]=void 0)}},e.id="GlobalHandlers",e}();function nT(){er("error",function(e){var t=c(nA(),3),n=t[0],r=t[1],i=t[2];if(n.getIntegration(nP)){var o=e.msg,s=e.url,a=e.line,l=e.column,u=e.error;if(!(t0>0||u&&u.__sentry_own_request__)){var d,h,p,g=void 0===u&&m(o)?(d=f(o)?o.message:o,h="Error",(p=d.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i))&&(h=p[1],d=p[2]),nI({exception:{values:[{type:h,value:d}]}},s,a,l)):nI(t8(r,u||o,void 0,i,!1),s,a,l);g.level="error",nO(n,u,g,"onerror")}}})}function nL(){er("unhandledrejection",function(e){var t=c(nA(),3),n=t[0],r=t[1],i=t[2];if(n.getIntegration(nP)){var o=e;try{"reason"in e?o=e.reason:"detail"in e&&"reason"in e.detail&&(o=e.detail.reason)}catch(e){}if(t0>0||o&&o.__sentry_own_request__)return!0;var s=v(o)?{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: ".concat(String(o))}]}}:t8(r,o,void 0,i,!0);s.level="error",nO(n,o,s,"onunhandledrejection")}})}function nI(e,t,n,r){var i=e.exception=e.exception||{},o=i.values=i.values||[],s=o[0]=o[0]||{},a=s.stacktrace=s.stacktrace||{},l=a.frames=a.frames||[],c=isNaN(parseInt(r,10))?void 0:r,u=isNaN(parseInt(n,10))?void 0:n,d=m(t)&&t.length>0?t:function(){try{return L.document.location.href}catch(e){return""}}();return 0===l.length&&l.push({colno:c,filename:d,function:"?",in_app:!0,lineno:u}),e}function nO(e,t,n,r){em(n,{handled:!1,type:r}),e.captureEvent(n,{originalException:t})}function nA(){var e=eZ(),t=e.getClient(),n=t&&t.getOptions()||{stackParser:function(){return[]},attachStacktrace:!1};return[e,n.stackParser,n.attachStacktrace]}var nM=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],nN=function(){function e(t){this.name=e.id,this.Et=o({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},t)}return e.prototype.setupOnce=function(){this.Et.setTimeout&&$(L,"setTimeout",nD),this.Et.setInterval&&$(L,"setInterval",nD),this.Et.requestAnimationFrame&&$(L,"requestAnimationFrame",nR),this.Et.XMLHttpRequest&&"XMLHttpRequest"in L&&$(XMLHttpRequest.prototype,"send",nB);var e=this.Et.eventTarget;e&&(Array.isArray(e)?e:nM).forEach(nF)},e.id="TryCatch",e}();function nD(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t[0];return t[0]=t1(r,{mechanism:{data:{function:J(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}}function nR(e){return function(t){return e.apply(this,[t1(t,{mechanism:{data:{function:"requestAnimationFrame",handler:J(e)},handled:!0,type:"instrument"}})])}}function nB(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(function(e){e in r&&"function"==typeof r[e]&&$(r,e,function(t){var n={mechanism:{data:{function:e,handler:J(t)},handled:!0,type:"instrument"}},r=z(t);return r&&(n.mechanism.data.handler=J(r)),t1(t,n)})}),e.apply(this,t)}}function nF(e){var t=L[e]&&L[e].prototype;t&&t.hasOwnProperty&&t.hasOwnProperty("addEventListener")&&($(t,"addEventListener",function(t){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=t1(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:J(r),target:e},handled:!0,type:"instrument"}}))}catch(e){}return t.apply(this,[n,t1(r,{mechanism:{data:{function:"addEventListener",handler:J(r),target:e},handled:!0,type:"instrument"}}),i])}}),$(t,"removeEventListener",function(e){return function(t,n,r){try{var i=n&&n.__sentry_wrapped__;i&&e.call(this,t,i,r)}catch(e){}return e.call(this,t,n,r)}}))}var n$=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this.Jt=t.key||"cause",this.Kt=t.limit||5}return e.prototype.setupOnce=function(t,n){t(function(t,r){var i=n(),o=i.getClient(),s=i.getIntegration(e);if(!o||!s)return t;var a=o.getOptions();
5return function(e,t,n,r,i,o,s){if(void 0===n&&(n=250),o.exception&&o.exception.values&&s&&S(s.originalException,Error)){var a,l,d=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;d&&(o.exception.values=(a=function e(t,n,r,i,o,s,a,l){if(s.length>=r+1)return s;var d=u([],c(s),!1);if(S(i[o],Error)){C(a,l);var h=t(n,i[o]),p=d.length;P(h,o,p,l),d=e(t,n,r,i[o],o,u([h],c(d),!1),h,p)}return Array.isArray(i.errors)&&i.errors.forEach(function(i,s){if(S(i,Error)){C(a,l);var h=t(n,i),p=d.length;P(h,"errors[".concat(s,"]"),p,l),d=e(t,n,r,i,o,u([h],c(d),!1),h,p)}}),d}(e,t,i,s.originalException,r,o.exception.values,d,0),l=n,a.map(function(e){return e.value&&(e.value=x(e.value,l)),e})))}}(t2,a.stackParser,a.maxValueLength,s.Jt,s.Kt,t,r),t})},e.id="LinkedErrors",e}(),nj=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){eV(function(t){if(eZ().getIntegration(e)){if(!L.navigator&&!L.location&&!L.document)return t;var n=t.request&&t.request.url||L.location&&L.location.href,r=(L.document||{}).referrer,i=(L.navigator||{}).userAgent,s=o(o(o({},t.request&&t.request.headers),r&&{Referer:r}),i&&{"User-Agent":i}),a=o(o(o({},t.request),n&&{url:n}),{headers:s});return o(o({},t),{request:a})}return t})},e.id="HttpContext",e}(),nH=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(t,n){var r=function(t){if(t.type)return t;var r=n().getIntegration(e);if(r){try{if(function(e,t){var n,r,i,o;return!!t&&(n=e.message,r=t.message,!!((n||r)&&(!n||r)&&(n||!r)&&n===r&&nG(e,t)&&nz(e,t))&&!!1||(i=nq(t),o=nq(e),!!(i&&o&&i.type===o.type&&i.value===o.value&&nG(e,t)&&nz(e,t))))}(t,r.Yt))return null}catch(e){}return r.Yt=t}return t};r.id=this.name,t(r)},e.id="Dedupe",e}();function nz(e,t){var n=nU(e),r=nU(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||r.length!==n.length)return!1;for(var i=0;i<r.length;i++){var o=r[i],s=n[i];if(o.filename!==s.filename||o.lineno!==s.lineno||o.colno!==s.colno||o.function!==s.function)return!1}return!0}function nG(e,t){var n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return n.join("")===r.join("")}catch(e){return!1}}function nq(e){return e.exception&&e.exception.values&&e.exception.values[0]}function nU(e){var t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){return}}var nW=Object.freeze({__proto__:null,GlobalHandlers:nP,TryCatch:nN,Breadcrumbs:nt,LinkedErrors:n$,HttpContext:nj,Dedupe:nH}),nV=[new tk,new t_,new nN,new nt,new nP,new n$,new nH,new nj];function nY(e){e.startSession({ignoreDuration:!0}),e.captureSession()}var nX={};L.Sentry&&L.Sentry.Integrations&&(nX=L.Sentry.Integrations);var nK=o(o(o({},nX),tC),nW);return nK.Replay=t,nK.BrowserTracing=tJ,tQ(),e.Breadcrumbs=nt,e.BrowserClient=na,e.BrowserTracing=tJ,e.Dedupe=nH,e.FunctionToString=t_,e.GlobalHandlers=nP,e.HttpContext=nj,e.Hub=eX,e.InboundFilters=t
5k,e.Integrations=nK,e.LinkedErrors=n$,e.Replay=t,e.SDK_VERSION=tb,e.Scope=eU,e.Span=e3,e.TryCatch=nN,e.WINDOW=L,e.addBreadcrumb=function(e){eZ().addBreadcrumb(e)},e.addExtensionMethods=tQ,e.addGlobalEventProcessor=eV,e.captureEvent=function(e,t){return eZ().captureEvent(e,t)},e.captureException=ta,e.captureMessage=function(e,t){var n="string"==typeof t?t:void 0,r="string"!=typeof t?{captureContext:t}:void 0;return eZ().captureMessage(e,n,r)},e.captureUserFeedback=function(e){var t=eZ().getClient();t&&t.captureUserFeedback(e)},e.chromeStackLineParser=nf,e.close=function(e){return s(this,void 0,void 0,function(){var t;return a(this,function(n){return(t=eZ().getClient())?[2,t.close(e)]:[2,Promise.resolve(!1)]})})},e.configureScope=function(e){eZ().configureScope(e)},e.createTransport=tm,e.createUserFeedbackEnvelope=ns,e.defaultIntegrations=nV,e.defaultStackLineParsers=nk,e.defaultStackParser=nE,e.eventFromException=t3,e.eventFromMessage=t7,e.exceptionFromError=t2,e.flush=function(e){return s(this,void 0,void 0,function(){var t;return a(this,function(n){return(t=eZ().getClient())?[2,t.flush(e)]:[2,Promise.resolve(!1)]})})},e.forceLoad=function(){},e.geckoStackLineParser=nv,e.getCurrentHub=eZ,e.getHubFromCarrier=eQ,e.init=function(e){void 0===e&&(e={}),void 0===e.defaultIntegrations&&(e.defaultIntegrations=nV),void 0===e.release&&("string"==typeof __SENTRY_RELEASE__&&(e.release=__SENTRY_RELEASE__),L.SENTRY_RELEASE&&L.SENTRY_RELEASE.id&&(e.release=L.SENTRY_RELEASE.id)),void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0);var t,n,r,i=o(o({},e),{stackParser:Array.isArray(r=e.stackParser||nE)?X.apply(void 0,u([],c(r),!1)):r,integrations:function(e){var t,n,r=e.defaultIntegrations||[],i=e.integrations;r.forEach(function(e){e.isDefaultInstance=!0});var o=(t=Array.isArray(i)?u(u([],c(r),!1),c(i),!1):"function"==typeof i?ey(i(r)):r,n={},t.forEach(function(e){var t=e.name,r=n[t];r&&!r.isDefaultInstance&&e.isDefaultInstance||(n[t]=e)}),Object.keys(n).map(function(e){return n[e]})),s=function(e,t){for(var n=0;n<e.length;n++)if(!0===t(e[n]))return n;return -1}(o,function(e){return"Debug"===e.name});if(-1!==s){var a=c(o.splice(s,1),1)[0];o.push(a)}return o}(e),transport:e.transport||(Z()?nc:nu)});!0===i.debug&&console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."),(t=eZ()).getScope().update(i.initialScope),n=new na(i),t.bindClient(n),e.autoSessionTracking&&function(){if(void 0!==L.document){var e=eZ();e.captureSession&&(nY(e),er("history",function(e){var t=e.from,n=e.to;void 0!==t&&t!==n&&nY(eZ())}))}}()},e.lastEventId=function(){return eZ().lastEventId()},e.makeFetchTransport=nc,e.makeMain=eJ,e.makeXHRTransport=nu,e.onLoad=function(e){e()},e.opera10StackLineParser=n_,e.opera11StackLineParser=nx,e.setContext=function(e,t){eZ().setContext(e,t)},e.setExtra=function(e,t){eZ().setExtra(e,t)},e.setExtras=function(e){eZ().setExtras(e)},e.setTag=function(e,t){eZ().setTag(e,t)},e.setTags=function(e){eZ().setTags(e)},e.setUser=function(e){eZ().setUser(e)},e.showReportDialog=function(e,t){if(void 0===e&&(e={}),void 0===t&&(t=eZ()),L.document){var n=t.getStackTop(),r=n.client,i=n.scope,s=e.dsn||r&&r.getDsn();if(s){i&&(e.user=o(o({},i.getUser()),e.user)),e.eventId||(e.eventId=t.lastEventId());var a=L.document.createElement("script");a.async=!0,a.crossOrigin="anonymous",a.src=function(e,t){var n=B(e);if(!n)return"";var r="".concat(tc(n),"embed/error-page/"),i="dsn=".concat(D(n));for(var o in t)if("dsn"!==o)if("user"===o){var s=t.user;if(!s)continue;s.name&&(i+="&name=".concat(encodeURIComponent(s.name))),s.email&&(i+="&email=".concat(encodeURIComponent(s.email)))}else i+="&".concat(encodeURIComponent(o),"=").concat(encodeURIComponent(t[o]));return"".concat(r,"?").concat(i)}(s,e),e.onLoad&&(a.onload=e.onLoad);var l=L.document.head||L.document.body;l&&l.appendChild(a)}}},e.startTransaction=function(e,t){return eZ().startTransaction(o({},e),t)},e.winjsStackLineParser=nw,e.withScope=tl,e.wrap=function(e){return t1(e)()},"includes"in Array.prototype||(Array.prototype.includes=function(e){return this.indexOf(e)>-1}),"find"in Array.prototype||(Array.prototype.find=function(e){for(var t=0;t<this.length;t++)if(e(this[t]))return this[t]}),"findIndex"in Array.prototype||(Array.prototype.findIndex=function(e){for(var t=0;t<this.length;t++)if(e(this[t]))return t;return -1}),"includes"in String.prototype||(String.prototype.includes=function(e){return this.indexOf(e)>-1}),"startsWith"in String.prototype||(String.prototype.startsWith=function(e){return 0===this.indexOf(e)}),"endsWith"in String.prototype||(String.prototype.endsWith=function(e){var t=this.indexOf(e);return t>-1&&t===this.length-e.length}),e}({})},3869:(e,t,n)=>{"use strict";n.r(t),n.d(t,{PreactTournamentPopup:()=>d}),n(28706);var r=n(75535),i=n(91070),o=n(80011),s=n(70150),a=n(32612),l=n(34585),c=o.components.Popup,u=o.tournament.tournamentLogic,d=function(e){var t,n,o,d,h,p=e.parent,f=e.awardUrl,g=e.uuid,m=e.repeatBannerCall,v=(0,i.useState)(!1),y=v[0],w=v[1],b=function(){w(!1),setTimeout(function(){p&&(0,s.pP)(p
5).remove("active"),(0,r.render)(null,p),m?a.P.emit(l.Ps.showTournamentBanner):a.P.emit(l.Ps.showNextPopup)},300)};return(0,r.h)(c,{show:y,onClose:b,items:[{btns:[{text:null!=(t=window.moduleTranslations.ok)?t:"OK",func:b}],text:f?null!=(o=window.moduleTranslations.tournamentWinText)?o:"You have completed weekly tournament and won a medal!":null!=(n=window.moduleTranslations.tournamentLoseText)?n:"You have completed the tournament but haven't won a medal. Try again next time!",image:(0,r.h)("div",{className:"tournament-finish-popup"},(0,r.h)("img",{src:f||"/img/tournament-finish.png",srcSet:f?"".concat(f," 1x, ").concat(f," 2x"):"/img/tournament-finish.png 1x, /img/[email protected] 2x",alt:"img1",style:{maxHeight:"165px"},onLoad:function(){w(!0),g&&u.showFinishPopup(g)}}),f&&(0,r.h)("img",{className:"tournament-finish-popup_stars",src:"/img/tournament-stars.png",srcSet:"/img/tournament-stars.png 1x, /img/[email protected] 2x"}))}],title:{value:f?null!=(d=window.moduleTranslations.tournamentWinTitle)?d:"Congratulations!":null!=(h=window.moduleTranslations.tournamentLoseTitle)?h:"Tournament Completed"}})}},57341:(e,t,n)=>{"use strict";n.r(t),n.d(t,{PreactWin:()=>B,WinType:()=>d}),n(28706),n(2008),n(74423),n(34782),n(26099),n(58940),n(3362),n(27495),n(21699),n(68156),n(25440);var r,i,o,s,a,l,c,u,d,h=n(75535),p=n(91070),f=n(80011),g=n(32612),m=n(70150),v=n(34585),y=n(38613),w=n(1114);n(62062),n(69085);var b=n(57705),_=n(52195),S=n(62351),x=n(27114),k=n(80457),E=function(){return(E=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},C=f.postcards.postcardsLogic,P=f.storybook.storybookLogic,T=function(e){var t=e.mode,n=(0,p.useState)(!1),r=n[0],i=n[1],o=(0,p.useState)(null!=t?t:v.dX.classic),s=o[0],a=o[1],l=(0,p.useRef)(null),c=function(e){l.current&&!l.current.contains(e.target)&&i(!1)},u=function(e,n){return function(n){n.preventDefault(),e!==t&&(window.needToRestartPageOnChangeMode=!0),b.lw&&(window.needToRestartPageOnChangeMode&&(JSON.parse(localStorage.getItem(e===v.dX.killer?_.LS.MAIN_GAME_KILLER:_.LS.MAIN_GAME))||{}).loaded&&localStorage.removeItem(e===v.dX.killer?_.LS.MAIN_GAME_KILLER:_.LS.MAIN_GAME),localStorage.removeItem(t===v.dX.killer?_.LS.MAIN_GAME_KILLER:_.LS.MAIN_GAME),localStorage.removeItem(_.LS.HISTORY_ACTIONS),sessionStorage.setItem(_.f.GAME_PLACEMENT,"winscreen_new_game"),sessionStorage.setItem(_.f.FROM_WIN,"1")),window.location.href=n.target.href}},d=function(e){e.preventDefault(),sessionStorage.setItem(_.f.GAME_PLACEMENT,"winscreen_new_game");var t=E(E({},S.default.state.currentGame),{values:(0,x.mY)(S.default.state.currentGame.mission),showWinRate:!0,finished:!1,timer:0,notes:[],scoreHistory:[],countSmartHints:0,score:0,baseScore:{val:k.Mt[S.default.state.difficulty].base,lastGameTimer:0},placement:"winscreen_new_game",emojisShown:[],bestMove:(0,x.fr)()});S.default.commit(k.bE.prepareBoard,t),S.default.commit(k.bE.setUserAction,[]),S.default.commit(k.bE.setSelected,0),(0,x.jh)(S.default.state.currentGame,S.default.state.date),window.location.reload()},f=!!(window.useNoTimerScore||window.useNoTimerProgress),g=function(e,t){return f&&window.mode===e&&t===window.difficulty?(0,h.h)("span",{className:"new-game-restart-level","aria-hidden":"true"}):null};(0,p.useEffect)(function(){return r?document.addEventListener("mousedown",c):document.removeEventListener("mousedown",c),function(){document.removeEventListener("mousedown",c)}},[r]);var m=(0,p.useState)(!1)[1];(0,p.useEffect)(function(){var e;null==(e=C.request)||e.then(function(){return m(!0)}).catch(function(){})},[]);var y=C.getActiveCardIndex(),w=null===y?{}:C.getCardLevelsCount(y),T=C.getTitle(),L=P.getTitle(),I=null!==P.config.currentEvent&&!P.config.eventCompleted,O=P.hasCurrentLevelProgress();return(0,h.h)("div",{className:"new-game-button-wrapper ".concat(r?"menu-visible":""),ref:l},(0,h.h)("button",{className:"btn white",onClick:function(){return i(function(e){return!e})}},window.moduleTranslations.new_game_text),(0,h.h)("div",{className:"new-game-menu tab-".concat(s," additional-difficulty")},(0,h.h)("div",{className:"new-game-menu-content"},(0,h.h)("div",{className:"new-game-menu-header"},window.moduleTranslations.select_game_mode_text),(0,h.h)("div",{className:"new-game-menu-subheader"},window.moduleTranslations.lost_progress_text),(0,h.h)("div",{className:"new-game-menu-mode-buttons"},(0,h.h)("div",{onClick:function(){return a(v.dX.classic)},className:"new-game-menu-mode-button ".concat(s===v.dX.classic?"active":"")},window.moduleTranslations.classic_text),(0,h.h)("div",{onClick:function(){return a(v.dX.killer)},className:"new-game-menu-mode-button ".concat(s===v.dX.killer?"active":"")},window.moduleTranslations.killer_text),window.usePostcards&&!window.usePostcardsDesktopNong&&C.config.currentEvent&&(0,h.h)("div",{onClick:function(){return a(v.dX.postcards)},className:"new-game-menu-mode-button postcard-default ".concat(s===v.dX.postcards?"active":""),"data-mode":"postcards"},T),I&&(0,h.h)("div",{onClick:function(){return a(v.dX.storybook)},className:"new-game-menu-mode-button storybook-default ".concat(s===v.dX.storybook?"active":""),"data-mode":"storybook"},L))),(0,h.h)("div",{className:"new-game-menu-content new-game-menu-classic"}
5,(0,h.h)("div",{className:"new-game-menu-difficulty-block"},Object.keys(window.moduleNewGame.classic).map(function(e){return(0,h.h)("a",{onClick:u(v.dX.classic,e),href:window.moduleNewGame.classic[e].url,className:"new-game-menu-button ".concat(window.mode===v.dX.classic&&e===window.difficulty?"active":""),key:e},(0,h.h)("span",null,(0,h.h)("span",{className:"new-game-menu-icon icon-classic"}),(0,h.h)("span",null,window.moduleNewGame.classic[e].text)),g(v.dX.classic,e))}),(0,h.h)("div",{className:"new-game-menu-button new-game-menu-restart",onClick:d},(0,h.h)("span",null,(0,h.h)("span",{className:"new-game-menu-icon icon-restart"}),(0,h.h)("span",null,window.moduleTranslations.restart_text))))),(0,h.h)("div",{className:"new-game-menu-content new-game-menu-killer"},(0,h.h)("div",{className:"new-game-menu-difficulty-block"},Object.keys(window.moduleNewGame.killer).map(function(e){return(0,h.h)("a",{onClick:u(v.dX.killer,e),href:window.moduleNewGame.killer[e].url,className:"new-game-menu-button ".concat(window.mode===v.dX.killer&&e===window.difficulty?"active":""),key:e},(0,h.h)("span",null,(0,h.h)("span",{className:"new-game-menu-icon icon-killer"}),(0,h.h)("span",null,window.moduleNewGame.killer[e].text)),g(v.dX.killer,e))}),(0,h.h)("div",{className:"new-game-menu-button new-game-menu-restart",onClick:d},(0,h.h)("span",null,(0,h.h)("span",{className:"new-game-menu-icon icon-restart"}),(0,h.h)("span",null,window.moduleTranslations.restart_text))))),window.usePostcards&&!window.usePostcardsDesktopNong&&C.config.currentEvent&&(0,h.h)("div",{className:"new-game-menu-content new-game-menu-postcards"},(0,h.h)("div",{className:"new-game-menu-difficulty-block"},Object.keys(window.moduleNewGame.classic).map(function(e){var t=w[e];return(0,h.h)("a",{onClick:function(e){e.preventDefault();var n=(null==t?void 0:t.incompleteLevels.find(function(e){return C.config.sudokuLevelsMap.every(function(t){return t.postcardsLevelId!==e})}))||(null==t?void 0:t.incompleteLevels[0]);n&&C.selectLevel(n),window.location.href=window.postcardsGameUrl},href:window.moduleNewGame.classic[e].url,className:"new-game-menu-button ".concat(t?t.completed?"disabled":"":"hidden"),key:e},(0,h.h)("span",null,(0,h.h)("span",{className:"new-game-menu-icon icon-classic"}),(0,h.h)("span",null,window.moduleNewGame.classic[e].text)),(0,h.h)("span",{class:"postcards-level-count"},(null==t?void 0:t.totalLevels)-(null==t?void 0:t.incompleteLevels.length),"/",null==t?void 0:t.totalLevels))}))),I&&(0,h.h)("div",{className:"new-game-menu-content new-game-menu-storybook"},(0,h.h)("div",{className:"new-game-menu-difficulty-block"},O?(0,h.h)("a",{href:window.storybookGameUrl,className:"new-game-menu-button new-game-menu-continue"},(0,h.h)("span",null,(0,h.h)("span",{className:"new-game-menu-icon icon-classic"}),(0,h.h)("span",null,window.moduleTranslations.continue_text))):(0,h.h)("a",{href:window.storybookGameUrl,className:"new-game-menu-button new-game-menu-new"},(0,h.h)("span",null,(0,h.h)("span",{className:"new-game-menu-icon icon-classic"}),(0,h.h)("span",null,window.moduleTranslations.new_game_text))))),(0,h.h)("div",{className:"tooltip-arrow"})))},L=n(22235),I=n(45395),O=function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},A=f.win.components.WinScreen,M=f.croco.crocoLogic,N=f.postcards.postcardsLogic,D=f.storybook.storybookLogic;!function(e){e.main="main",e.dc="dc",e.dcMonth="dcMonth"}(d||(d={}));var R={daily:null!=(i=null==(r=window.moduleTranslations)?void 0:r.today_new_score)?i:"Today's New Best Score",weekly:null!=(s=null==(o=window.moduleTranslations)?void 0:o.week_new_score)?s:"Week's New Best Score",monthly:null!=(l=null==(a=window.moduleTranslations)?void 0:a.month_new_score)?l:"Month's New Best Score",allTime:null!=(u=null==(c=window.moduleTranslations)?void 0:c.alltime_new_score)?u:"All-Time New Best Score"},B=function(e){var t=e.parent,n=e.mode,r=e.difficulty,i=e.currentGame,o=e.dcDate,s=e.tournamentPromises,a=e.monthFullCompleted,l=e.croco,c=(0,p.useState)(!1),u=c[0],S=c[1],x=(0,p.useState)(d.main),k=x[0],E=x[1],C=(0,p.useState)(null),P=C[0],B=C[1],F=(null!=o?o:"").split("_"),$=F[0],j=F[1],H=F[2],z=(0,p.useState)(null),G=z[0],q=z[1],U=(0,p.useState)(!1),W=U[0],V=U[1],Y=(0,p.useState)(window.innerWidth<930),X=Y[0],K=Y[1];(0,p.useEffect)(function(){var e=function(){return K(window.innerWidth<930)};return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}},[]),console.log(X);var J=a?"/build/images/dc/cups-blue/graphics-blue-cups-available-cup-".concat(parseInt(j)+1):"/img/star-win";return((0,p.useEffect)(function(){return g.P.subscribe(v.Ps.force
5UpdateWinBanner,function(){return V(!W)}),function(){return g.P.remove(v.Ps.forceUpdateWinBanner)}},[]),(0,p.useEffect)(function(){var e,t,n,o,a,l,c,u,d,h,p;q(O(O([{title:null!=(e=window.moduleTranslations.best_score)?e:"Best Score",items:[{name:null!=(t=window.moduleTranslations.today)?t:"Today",value:(0,y.ZV)(w.score.hs.daily.score),change:w.score.hs.daily.difference?"+".concat((0,y.ZV)(w.score.hs.daily.difference)):null},{name:null!=(n=window.moduleTranslations.this_week)?n:"This Week",value:(0,y.ZV)(w.score.hs.weekly.score),change:w.score.hs.weekly.difference?"+".concat((0,y.ZV)(w.score.hs.weekly.difference)):null},{name:null!=(o=window.moduleTranslations.this_month)?o:"This Month",value:(0,y.ZV)(w.score.hs.monthly.score),change:w.score.hs.monthly.difference?"+".concat((0,y.ZV)(w.score.hs.monthly.difference)):null},{name:null!=(a=window.moduleTranslations.all_time)?a:"All Time",value:(0,y.ZV)(w.score.hs.allTime.score),change:w.score.hs.allTime.difference?"+".concat((0,y.ZV)(w.score.hs.allTime.difference)):null}]}],s?[{title:null!=(l=window.moduleTranslations.tournament_title)?l:"Tournament",link:{text:null!=(c=window.moduleTranslations.see_all)?c:"See All",href:window.tournamentPath},length:2,items:s}]:[],!0),[{title:null!=(u=window.moduleTranslations.statistics)?u:"Statistics",items:[{name:null!=(d=window.moduleTranslations.difficulty_text)?d:"Difficulty",value:window.moduleTranslations["".concat(r,"_text")],icon:"/img/icon-difficulty.svg"},{name:null!=(h=window.moduleTranslations.time_text)?h:"Time",value:(0,y.N6)(i.timer/1e3),icon:"/img/icon-time.svg"},{name:null!=(p=window.moduleTranslations.score_test)?p:"Score",value:(0,y.ZV)(i.score),icon:"/img/icon-score.svg"}]}],!1))},[s,W]),(0,p.useEffect)(function(){return g.P.subscribe(v.Ps.showPreactWin,function(){window.useStreak&&g.P.emit(v.Ps.createWinBanner),t&&(0,m.pP)(t).add("show-win"),B(w.score.hsBeatedArr);var e=n!==v.dX.daily?d.main:a?d.dcMonth:d.dc;if(E(e),e===d.dcMonth&&(f.ets.send("dc_calendar_cup_got"),(0,L.B)("dc_calendar_cup_got")),n===v.dX.storybook&&D.sendScreenEvent("g_event_win"),n===v.dX.postcards&&N.sendScreenEvent("g_event_win"),e!==d.main){var r=new Date(parseInt($),parseInt(j),parseInt(H)),o=new Date(window.currentDate);o.setHours(0,0,0,0);var s=Math.round((r.getTime()-o.getTime())/864e5),l={level_id:i.id,month:"".concat($,"-").concat(String(parseInt(j)+1).padStart(2,"0"),"-01"),day:(0,I.ro)(window.currentDate.getTime(),r.getTime())?"current":"past",day_diff:"".concat(s)};f.ets.send("dc_win_screen",l),(0,L.B)("dc_win_screen",l)}S(!0),w.score.clearDiffs()}),window.useStreak||setTimeout(function(){g.P.emit(v.Ps.createWinBanner)},500),g.P.emit(v.Ps.updateNewGameMenuButtons),function(){g.P.emit(v.Ps.destroyWinBanner),g.P.remove(v.Ps.showPreactWin)}},[]),G)?(console.log(G,"tables"),(0,h.h)(A,{title:n===v.dX.daily?window.moduleTranslations.win_dc_title:P?R[P[P.length-1]]:window.moduleTranslations.win_title,hideBestScoreInHeader:!P,miniSudokuImage:n===v.dX.daily?null:i,score:(0,y.ZV)(i.score),desc:k===d.main?null:k===d.dc?window.moduleTranslations.dc_complete_day.replace("{0}",window.arrayOfTranslateDates[parseInt(j)].replace("{0}",H)):window.moduleTranslations.dc_complete_reward.replace("{0}",window.arrayOfTranslateDateYear[parseInt(j)].replace("{0}",$)),type:k,withCup:P,image:(0,h.h)("img",{src:"".concat(J,".png"),srcSet:"".concat(J,".png 1x, ").concat(J,"@2x.png 2x")}),portrait:X,active:u,tables:G,croco:l,colorScheme:"blue",color:l?"turquoise":n===v.dX.postcards?"postcards":n===v.dX.storybook?"storybook":"blue",button:n===v.dX.daily?(0,h.h)("button",{className:"btn white",onClick:function(){var e;b.lw&&sessionStorage.setItem(v.pf.dc,"1"),window.location.href=null!=(e=window.dcPath)?e:"/"}},window.moduleTranslations.continue_text):n===v.dX.croco?(0,h.h)("button",{className:"btn white",onClick:function(){var e,t;if(M.config&&M.config.finishPopup&&(null!=(t=null==(e=M.config.currentEvent)?void 0:e.currentLevel)?t:0)<M.config.currentEvent.levels.length){window.location.href=window.mainPageUrl;return}window.location.href=window.crocoEventPageUrl}},window.moduleTranslations.continue_text):n===v.dX.postcards?(0,h.h)("button",{className:"btn white",onClick:function(){N.sendScreenAction("g_event_win","continue"),window.location.href=window.postcardsEventPageUrl}},window.moduleTranslations.continue_text):n===v.dX.storybook?(0,h.h)("button",{className:"btn white",onClick:function(){D.sendScreenAction("g_event_win","continue"),window.location.href=window.storybookEventPageUrl}},window.moduleTranslations.continue_text):window.useNextLevelFlow?(0,h.h)("button",{className:"btn white",onClick:function(){b.lw&&sessionStorage.setItem(_.f.GAME_PLACEMENT,"winscreen_new_game");var e=document.querySelector('.start-new-game-button[data-difficulty="'.concat(window.difficulty,'"]'));e?window.location.href=e.href:window.location.reload()}},window.moduleTranslations.next_level):(0,h.h)(T,{mode:window.mode}),showMobileImage:[d.dc,d.dcMonth].includes(k),hideMobileBtn:n===v.dX.daily||[v.dX.killer,v.dX.classic].includes(n)&&!window.useNextLevelFlow,overflow:n!==v.dX.daily&&!window.useNextLevelFlow,postcardsLeaderboard:n===v.dX.postcards?function(){var e,t,n,r,i,o=N.getData();if(o&&(null==(t=null==(e=N.config)?void 0:e.currentEvent)?void 0:t.withLeaderboard)){var s=N.getActiveCardIndex(),a=N.getCompletedCardIndex(),l=null!=a?a:s;
5if(null!==l){var c=null!=(r=null==(n=o.postcards[l])?void 0:n.completed)&&r,u=o.postcards[l].levels.filter(function(e){var t;return!e.mode||e.mode===(null==(t=N.config.currentEvent)?void 0:t.mode)}).length,d=new Promise(function(e){var t=function(){var t=N.getLeaderboardForPostcard(l);return!!t&&t.place>0&&(e({users:t.scores,place:t.place,medal:c?t.medal:void 0,maxLevels:u}),!0)};if(!t()){var n=function(){t()&&N.unsubscribeLeaderboardUpdate(n)};N.subscribeLeaderboardUpdate(n)}}),h=window.postcardsTranslations;return{colorScheme:"postcards",translations:h,link:c?void 0:{href:window.postcardsLeaderboardUrl,text:(null==h?void 0:h.leaderboard_widget_button)||(null==(i=window.moduleTranslations)?void 0:i.see_all)||"See All",noindex:!0},data:d,onClick:function(){if(!c){N.sendScreenAction("g_event_win","to_leaderboard");var e=null!=l?l:N.getActiveCardIndex();null!=e&&N.sendWidgetActionEvent(e),window.location.href=window.postcardsLeaderboardUrl||window.postcardsEventPageUrl}},rtl:"ar"===window.lang,postcardIndex:l}}}}():void 0})):null}},26743:(e,t,n)=>{"use strict";function r(){return new Worker(n.p+"canvas.worker.82334232.worker.js")}n.d(t,{H:()=>x,A:()=>k}),n(28706),n(2008),n(74423),n(23792),n(72712),n(34782),n(9868),n(26099),n(27495),n(21699),n(25440),n(23500),n(62953),n(69085),n(58940),n(38781);var i,o=n(40234),s=n(7208),a=n(34585),l=n(80457),c=function(){return(c=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},u=function(){function e(e,t,n,r,i,o){this.finishAnimationStarted=!1,this.finishAnimationWithScoreStarted=!1,this.inited=!1,this.state=e,this.startBoardAnimationTime=Date.now(),this.animatedCells=[],this.onGameFinish=n,this.onFinishAnimationWithScore=r,this.commitAnimatedCells=i,this.globalVariables=t,o&&(this.onHeartbeat=o)}return e.prototype.init=function(e,t,n){this.context=e.getContext("2d",{alpha:!1}),this.sizes=t,this.useOffscreenCanvas=n,this.inited=!0},e.prototype.updateAnimatedCells=function(e,t){var n=this.state,r=n.animatedCells,i=n.finished,o=n.animationSettings;this.startBoardAnimationTime=Date.now(),this.finishAnimationStarted||t(),e&&(this.finishAnimatedCells=e);var s=i?100:60;if(i&&(null==o?void 0:o[l.wB.animatedLevelFinish])&&(s=50),this.animatedCells=r.reduce(function(e,t){return e.push(t.reduce(function(e,t,n){return Array.isArray(t)?e.push(t.reduce(function(e,t){return e.push(c(c({},t),{delay:n*s,opacity:0,done:!1})),e},[])):e.push(c(c({},t),{delay:n*s,opacity:0,done:!1})),e},[])),e},[]),!this.animatedCells.length&&this.finishAnimatedCells){this.commitAnimatedCells(this.finishAnimatedCells),this.finishAnimationStarted=!0,this.finishAnimatedCells=void 0;return}this.animationFrame=requestAnimationFrame(this.paintBoard.bind(this))},e.prototype.drawAnimatedCells=function(e,t){if(this.animatedCells.length){for(var n,r,i=this.state.animationSettings,o=this.sizes.cell,a=!0,c=0;c<this.animatedCells.length;c++)for(var u=this.animatedCells[c],d=0;d<u.length;d++)if(Array.isArray(u[d]))for(var h=u[d],p=0;p<h.length;p++){var f=h[p],g=f.delay,m=f.x,v=f.y;if(e>=g){var y=(e-g)/t;e-g-100>t&&(h[p].done=!0),(null==i?void 0:i[l.wB.animatedLevelFinish])&&this.finishAnimationStarted?(this.progressAnimation(e,t,g,m,v,o,(null==(n=window.eb)?void 0:n.settings.use_dark_finish)?"finishdark":"finish"),this.finishAnimationWithScore()):(null==i?void 0:i[l.wB.animatedAreaFinish])?this.progressAnimation(e,t,g,m,v,o,"dark"):(h[p].opacity=(0,s.tW)(y),this.context.fillStyle="rgba(176, 195, 216, ".concat(h[p].opacity,")"),this.context.fillRect(m,v,o,o))}h[p].done||(a=!1)}else{var w=u[d],b=w.numberBounceAnimation,g=w.delay,m=w.x,v=w.y;if(b)e-g>t&&(u[d].done=!0);else if(e>=g){var y=(e-g)/t;0>=(0,s.tW)(y)&&(u[d].done=!0);var _=y>=1?1:(0,s.tW)(y);(null==(r=this.state.animationSettings)?void 0:r[l.wB.animatedAreaFinish])?(u[d].opacity=_,this.progressAnimation(e,t,g,m,v,o,"dark")):(u[d].opacity=(0,s.tW)(y),this.context.fillStyle="rgba(176, 195, 216, ".concat(u[d].opacity,")"),this.context.fillRect(m,v,o,o))}u[d].done||(a=!1)}return a}},e.prototype.drawRoundedRect=function(e,t,n,r,i,o){e.beginPath(),e.moveTo(t+o,n),e.lineTo(t+r-o,n),e.quadraticCurveTo(t+r,n,t+r,n+o),e.lineTo(t+r,n+i-o),e.quadraticCurveTo(t+r,n+i,t+r-o,n+i),e.lineTo(t+o,n+i),e.quadraticCurveTo(t,n+i,t,n+i-o),e.lineTo(t,n+o),e.quadraticCurveTo(t,n,t+o,n),e.closePath()},e.prototype.progressAnimation=function(e,t,n,r,i,o,a){var l,c,u,d,h=e-n;if("dark"===a){if(h<=500){this.context.beginPath();var p=(0,s.tW)(h/500),f=r+o/2-o*p/2,g=i+o/2-o*p/2,m=o*p;this.context.save(),this.context.fillStyle="rgba(51, 90, 176, ".concat(p,")"),this.context.translate(f+m/2,g+m/2),this.context.rotate(-Math.PI/8*(1-p)),this.context.translate(-f-m/2,-g-m/2),this.context.roundRect?this.context.roundRect(f,g,m,m,20*(1-p)):this.drawRoundedRect(this.context,f,g,m,m,20*(1-p)),this.context.fill(),this.context.restore(
5),this.context.closePath()}else if(h<=t-500)this.context.fillStyle="rgb(51, 90, 176)",this.context.fillRect(r,i,o,o);else if(h<=t){var p=(0,s.tW)((h-t+500)/500);this.context.fillStyle="rgba(51, 90, 176, ".concat(1-p,")"),this.context.fillRect(r,i,o,o)}}else if("finish"===a){if(h<=150){var p=(0,s.tW)(h/150);(null==(l=window.eb)?void 0:l.settings.use_dark_finish)?this.context.fillStyle="rgba(51, 90, 176, ".concat(p,")"):this.context.fillStyle="rgba(187, 222, 251, ".concat(p,")")}else if(h<t-2*n-150)(null==(c=window.eb)?void 0:c.settings.use_dark_finish)?this.context.fillStyle="rgba(51, 90, 176)":this.context.fillStyle="rgba(187, 222, 251)";else if(h<t-2*n){var p=(0,s.tW)((h-t+2*n+150)/150);(null==(u=window.eb)?void 0:u.settings.use_dark_finish)?(this.context.fillStyle="rgba(51, 90, 176, ".concat(p,")"),this.context.fillStyle="rgba(".concat(51+204*p,", ").concat(90+165*p,", ").concat(176+79*p,")")):this.context.fillStyle="rgba(".concat(187+68*p,", ").concat(222+33*p,", 251)")}else this.context.fillStyle="rgb(255, 255, 255)";this.context.fillRect(r,i,o,o)}else if("finishdark"===a)if(h<=150){this.context.beginPath();var p=(0,s.tW)(h/150),f=r+o/2-o*p/2,g=i+o/2-o*p/2,m=o*p;this.context.save(),this.context.fillStyle="rgba(51, 90, 176, ".concat(p,")"),this.context.translate(f+m/2,g+m/2),this.context.rotate(-Math.PI/8*(1-p)),this.context.translate(-f-m/2,-g-m/2),this.context.roundRect?this.context.roundRect(f,g,m,m,20*(1-p)):this.drawRoundedRect(this.context,f,g,m,m,20*(1-p)),this.context.fill(),this.context.restore(),this.context.closePath()}else if(h<t-2*n-150)this.context.fillStyle="rgba(51, 90, 176)",this.context.fillRect(r,i,o,o);else if(h<t-2*n){var p=(0,s.tW)((h-t+2*n+150)/150);(null==(d=window.eb)?void 0:d.settings.use_dark_finish)?(this.context.fillStyle="rgba(51, 90, 176, ".concat(p,")"),this.context.fillStyle="rgba(".concat(51+204*p,", ").concat(90+165*p,", ").concat(176+79*p,")")):this.context.fillStyle="rgba(".concat(187+68*p,", ").concat(222+33*p,", 251)"),this.context.fillRect(r,i,o,o)}else this.context.fillStyle="rgb(255, 255, 255)",this.context.fillRect(r,i,o,o)},e.prototype.finishAnimationWithScore=function(){this.finishAnimationWithScoreStarted||(this.finishAnimationWithScoreStarted=!0,this.onFinishAnimationWithScore())},e.prototype.paintBoard=function(){if(!this.inited){cancelAnimationFrame(this.animationFrame),this.animationFrame=null;return}var e,t=Date.now()-this.startBoardAnimationTime,n=this.state,r=n.pausedGame,i=n.mode,o=n.finished,s=n.currentGame,c=n.animationSettings;if(s){var u=this.globalVariables.use_anim_score;if(this.clearCanvas(),o&&0===this.animatedCells.length&&((null==c?void 0:c[l.wB.animatedLevelFinish])||(null==c?void 0:c[l.wB.animatedAreaFinish])))return void this.drawGrid();var d=this.animatedCells[0]&&(null==(e=this.animatedCells[0][0])?void 0:e.numberBounceAnimation),h=o?400:300;if(!i&&s.finished&&(h=200),(null==c?void 0:c[l.wB.animatedAreaFinish])&&(h=1390),d&&u&&(h=300),this.finishAnimationStarted&&(null==c?void 0:c[l.wB.animatedLevelFinish])&&(h=1900),!r){if(this.state.smartHint||!i&&s.finished||this.drawSelectedCell(1),this.animatedCells.length&&this.drawAnimatedCells(t,h))if(this.animatedCells=[],this.finishAnimationStarted&&(this.finishAnimationStarted=!1),this.finishAnimatedCells?(this.commitAnimatedCells(this.finishAnimatedCells),this.finishAnimationStarted=!0,this.finishAnimatedCells=void 0):this.commitAnimatedCells([]),this.useOffscreenCanvas||cancelAnimationFrame(this.animationFrame),o&&!this.finishAnimationStarted&&i){if(this.onGameFinish(),(null==c?void 0:c[l.wB.animatedLevelFinish])||(null==c?void 0:c[l.wB.animatedAreaFinish]))return}else this.useOffscreenCanvas||this.paintBoard();i===a.dX.killer&&this.cagesImage&&this.drawCages(this.cagesImage),this.drawBoardNotes(),this.drawBoardNumbers(t,h)}this.drawGrid();var p=performance.now();this.useOffscreenCanvas&&this.onHeartbeat&&(!this.lastHeartbeatTime||p-this.lastHeartbeatTime>3e3)&&(this.onHeartbeat(),this.lastHeartbeatTime=p),(this.useOffscreenCanvas||this.animatedCells.length)&&(this.animationFrame=requestAnimationFrame(this.paintBoard.bind(this)))}},e.prototype.clearCanvas=function(){this.context&&(this.context.clearRect(0,0,this.sizes.contextSize,this.sizes.contextSize),this.context.fillStyle=o.P.COLOR_BACKGROUND,this.context.fillRect(0,0,this.sizes.contextSize,this.sizes.contextSize))},e.prototype.drawCageSum=function(e,t){var n=this.state.coords,r=this.sizes.pixelRatio;this.context.save(),this.context.scale(1,1),this.context.fillStyle="rgba(52, 72, 97, 1)";var i=e.toString().split(""),s=new Path2D(o.P.BOARD_SUMS[parseInt(i[0])].path);if(this.context.scale(r,r),this.context.translate(n[t].x/r+3,n[t].y/r+3),this.context.fill(s),2===i.length){var a=o.P.BOARD_SUMS[parseInt(i[1])],l=new Path2D(a.path);this.context.translate(a.offset,0),this.context.fill(l)}
5this.context.restore()},e.prototype.addCageSprite=function(e,t,n,r){void 0===r&&(r=0);var i=this.state.coords,s=this.sizes.cell;this.context.save();var a=Math.PI/180*r;this.context.translate(i[n].x+s/2,i[n].y+s/2),this.context.rotate(a),this.context.drawImage(e,0,o.P.CAGES_DATA[t].y,o.P.CAGES_DATA[t].size,o.P.CAGES_DATA[t].size,-s/2,-s/2,s,s),this.context.restore()},e.prototype.drawCages=function(e){var t=this.state,n=t.currentGame.cages,r=t.generatedCages;if(r)for(var i=0;i<9;i++)for(var o=0;o<9;o++){var s=r.array[i][o],a=9*i+o,l=n[s][0]===a,c=r.sum[s],u=1===c.toString().length,d=0,h="",p=!1,f=!1,g=!1,m=!1,v=4;o>0&&r.array[i][o-1]==s&&(p=!0,v--),o<8&&r.array[i][o+1]==s&&(f=!0,v--),i>0&&r.array[i-1][o]==s&&(g=!0,v--),i<8&&r.array[i+1][o]==s&&(m=!0,v--),4==v?h="cage_single":3==v?(d=f?0:m?90:p?180:270,l?0==d?h=u?"cage_door_1":"cage_door_2":90==d&&(h=u?"cage_door_1_90":"cage_door_2_90"):h="cage_door"):2==v?p&&f?(h="cage_tunnel",d=0):g&&m?(h="cage_tunnel",d=90):f&&m?h=l?u?"cage_corner_1":"cage_corner_2":"cage_corner":m&&p?(h="cage_corner",d=90):p&&g?(h="cage_corner",d=180):g&&f&&(h="cage_corner",d=270):1==v?(h="cage_line",d=p?g?270*!f:180:90):h="",h&&this.addCageSprite(e,h,a,d),l&&this.drawCageSum(c,a),o<8&&i>0&&r.array[i][o+1]===s&&r.array[i-1][o]===s&&r.array[i-1][o+1]!==s&&this.addCageSprite(e,"cage_corner_small",a,270),o>0&&i>0&&r.array[i][o-1]===s&&r.array[i-1][o]===s&&r.array[i-1][o-1]!==s&&this.addCageSprite(e,"cage_corner_small",a,180),o>0&&i<8&&r.array[i][o-1]===s&&r.array[i+1][o]===s&&r.array[i+1][o-1]!==s&&this.addCageSprite(e,"cage_corner_small",a,90),o<8&&i<8&&r.array[i][o+1]===s&&r.array[i+1][o]===s&&r.array[i+1][o+1]!==s&&this.addCageSprite(e,"cage_corner_small",a,0)}},e.prototype.drawGrid=function(){var e=this.state.coords,t=this.sizes,n=t.cell,r=t.thin,i=t.outer,s=t.block;this.context.strokeStyle=o.P.COLOR_THIN_BORDER,this.context.lineWidth=r;for(var a=0;a<81;a++)this.context.strokeRect(e[a].x,e[a].y,n,n);this.context.strokeStyle=o.P.COLOR_DARK,this.context.lineWidth=i;for(var l=0;l<3;l++)for(var c=0;c<3;c++)this.context.strokeRect(i/2+s*l,i/2+s*c,s,s)},e.prototype.drawBoardNotes=function(){var e=this.state,t=e.currentGame.notes,n=e.mode,r=e.coords,i=this.sizes.cell,s=n===a.dX.killer;if(t&&t.length){this.context.save();for(var l=0;l<81;l++)if(t[l]){for(var c=0;c<9;c++)if(t[l][c]){this.context.save(),this.context.scale(1,1),this.context.fillStyle=o.P.COLOR_NOTES;var u=.75,d=.85,h=.7,p=0;s&&(u=.65,d=.6,h=.5,p=3);var f=new Path2D(o.P.BOARD_NOTES[c]),g=2*u*i/82,m=i*d;this.context.scale(g,g),this.context.translate((i-m)/g*h,(i-m)/g*h+p),this.context.translate(r[l].x/g+([0,3,6].includes(c)?0:[1,4,7].includes(c)?1:2)*(m/3/g),r[l].y/g+m/3/g*Math.floor(c/3)),this.context.fill(f),this.context.restore()}}this.context.restore()}},e.prototype.drawBoardNumbers=function(e,t){for(var n,r=this.state,i=r.currentGame,a=i.values,c=i.mode,u=r.coords,d=r.selectedCell,h=r.animationSettings,p=this.sizes.cell,f=p/55,g=function(r){if(a[r].val){m.context.save(),m.context.scale(1,1),m.animatedCells.some(function(e){return e.some(function(e){if(Array.isArray(e))return e.some(function(e){var t=e.row,n=e.col,o=e.delay;9*t+n===r&&(i=o)});var t=e.row,n=e.col,o=e.delay;9*t+n===r&&(i=o)})});var i,p=m.finishAnimationStarted&&(null==h?void 0:h[l.wB.animatedLevelFinish]),g=m.animatedCells[0]&&(null==(n=m.animatedCells[0][0])?void 0:n.numberBounceAnimation)&&m.globalVariables.use_anim_score,v=e-i;if(g&&r===d)m.context.fillStyle=o.P.COLOR_BLUE;else if(!p&&(null==h?void 0:h[l.wB.animatedAreaFinish])&&v>=0&&v<=t){if(v<300){var y=(0,s.tW)(v/300);m.context.fillStyle="rgb(".concat(255*y,", ").concat(255*y,", ").concat(255*y,")"),m.context.fillStyle=a[r].editable?"rgba(".concat(50+205*y,", ").concat(90+165*y,", ").concat(145+110*y,")"):"rgb(".concat(255*y,", ").concat(255*y,", ").concat(255*y,")")}else if(v<t-300)m.context.fillStyle="#fff";else if(v<=t){var y=(0,s.tW)((v-t+300)/300);m.context.fillStyle=a[r].editable?"rgba(".concat(50+205*(1-y),", ").concat(90+165*(1-y),", ").concat(145+110*(1-y),")"):"rgb(".concat(255*(1-y),", ").concat(255*(1-y),", ").concat(255*(1-y),")")}}else if(a[r].editable&&c||!a[r].editable&&!c){var y=(0,s.tW)(v<=300?v/300:1);m.context.fillStyle=p?"rgba(50, 90, 175, ".concat(1-y,")"):o.P.COLOR_BLUE}else{var y=(0,s.tW)(v<=300?v/300:1);m.context.fillStyle=p?"rgba(52, 72, 97, ".concat(1-y,")"):o.P.COLOR_DARK}
5a[r].editable&&a[r].mistake&&(m.context.fillStyle=o.P.COLOR_RED);var w=new Path2D(o.P.BOARD_NUMBERS[a[r].val-1]);if(g&&r===d){if(v<=150){var y=(0,s.tW)(v/150),b=.2*y,_=f*(1+b);m.context.scale(_,_);var S=u[r].x/_-27.5*b,x=u[r].y/_-27.5*b;m.context.translate(S,x)}else if(v<=t-i){var y=(0,s.tW)((v-t+150)/150),b=.2*(1-y),_=f*(1+b);m.context.scale(_,_);var S=u[r].x/_-27.5*b,x=u[r].y/_-27.5*b;m.context.translate(S,x)}}else m.context.scale(f,f),m.context.translate(u[r].x/f,u[r].y/f);m.context.fill(w),m.context.restore()}},m=this,v=0;v<81;v++)g(v)},e.prototype.updateState=function(e){this.state=e},e.prototype.setCagesImage=function(e){this.cagesImage=e},e.prototype.drawSelectedCell=function(e){void 0===e&&(e=1);var t=this.state,n=t.selectedCell,r=t.currentGame,i=r.values,o=r.mode,s=t.coords,a=t.animationSettings,c=this.sizes.cell;this.context.save();for(var u=0;u<81;u++)u!==n&&((!a||(null==a?void 0:a[l.wB.hightlightAreas]))&&(s[n].row==s[u].row||s[n].col==s[u].col||s[n].cubeId==s[u].cubeId)&&(this.context.fillStyle="rgba(226, 235, 243, ".concat(e,")"),this.context.fillRect(s[u].x,s[u].y,c,c)),(!a||(null==a?void 0:a[l.wB.hightlightIdenticalNumbers]))&&i[n].val&&i[n].val===i[u].val&&(this.context.fillStyle="rgba(195, 215, 234, ".concat(e,")"),this.context.fillRect(s[u].x,s[u].y,c,c)),(!a||(null==a?void 0:a[l.wB.highlightDuplicates]))&&(i[u].conflict||i[u].mistake&&!o)&&(this.context.fillStyle="rgba(247, 207, 214, ".concat(e,")"),this.context.fillRect(s[u].x,s[u].y,c,c)));this.context.fillStyle="rgba(187, 222, 251, ".concat(e,")"),this.context.fillRect(s[n].x,s[n].y,c,c),this.context.restore()},e}();!function(e){e.init="init",e.clear="clear",e.drawGrid="drawGrid",e.paintBoard="paintBoard",e.finish="finish",e.updateAnimationCells="updateAnimationCells",e.addKillerImage="addKillerImage",e.loaded="loaded",e.showAnimationWithScore="showAnimationWithScore",e.commitAnimatedCells="commitAnimatedCells",e.heartbeat="heartbeat"}(i||(i={}));var d=n(32612),h=n(79644);let p=n.p+"images/cages.d7c5922b.png";var f=n(70150),g=n(38613),m=function(e,t){var n=t.x,r=t.y,i=t.score,o=t.finishAnimationMode,s=t.width,a=t.height,l=t.fontSize,c=t.appearingDuration,u=t.appearingDelay,d=t.finishingDuration,h=t.finishingDelay,p=t.appearWithBounce,f=document.createElement("div");f.innerText="+".concat(i),f.classList.add("scoreHint"),f.setAttribute("style","top: ".concat(r,"px; left: ").concat(n,"px; width: ").concat(s,"px; height: ").concat(a,"px; font-size: ").concat(l,`; 6 --appearing-duration: `).concat(c/1e3,`s; 7 --appearing-delay: `).concat(u/1e3,`s; 8 --finishing-duration: `).concat(d/1e3,`s; 9 --finishing-delay: `).concat(h/1e3,"s;")),e.appendChild(f),f.classList.add(p?"appearing-bounce":"appearing"),setTimeout(function(){f.classList.add("bubble"===o?"finishing-bubble":"finishing-hide"),setTimeout(function(){f.remove()},d+h)},c+u)},v=n(22235),y=n(80011),w=n(56039),b=n(1114),_=function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},S={use_anim_score:window.use_anim_score,showSettings:!0},x={easy:10,medium:20,hard:30,expert:35,evil:40,extreme:40};let k=function(){function e(e){var t=this;this.emojiOnLastFill=!1,this.animatedCellsCallback=function(){var e;(null==(e=t.store.state.animationSettings)?void 0:e[l.wB.animatedAreaFinish])&&t.sendAnimationAnalyticsEvent("animation")},this.wrapper=document.getElementById("game"),this.game=document.getElementById("sudoku-wrapper"),this.body=document.querySelector("body"),this.win=document.getElementById("win-overlay"),this.newGameButtons=document.querySelectorAll(".new-game-button-wrapper"),this.winScreen=document.querySelector(".new-winscreen"),this.confetti=this.winScreen&&this.winScreen.querySelector(".confetti-wrapper"),this.canvasView=new u(e.state,S,this.onGameFinish.bind(this),this.onFinishAnimationWithScore.bind(this),this.commitAnimatedCells.bind(this)),this.pixelRatio=(0,h.UN)(),this.useOffscreenCanvas=window.use_ab_webworker_all&&"undefined"!=typeof OffscreenCanvas&&"transferControlToOffscreen"in HTMLCanvasElement.prototype,this.store=e,this.useOffscreenCanvas&&(this.worker=new r,this.worker.onmessage=function(e){var n=e.data;switch(n.action){case i.loaded:t.updateLoadingState(!0);break;case i.finish:t.onGameFinish();break;case i.showAnimationWithScore:t.onFinishAnimationWithScore();break;case i.updateAnimationCells:t.animatedCellsCallback();break;case i.commitAnimatedCells:t.commitAnimatedCells(n.animatedCells);break;case i.heartbeat:console.log("[Canvas Worker] Heartbeat received at",new Date().toISOString())}}),this.generateCanvas(),this.store.state.mode===a.dX.killer&&this.loadKillerAssets(),d.P.subscribe(a.Ps.animateCells,this.updateAnimatedCells.bind(this)),d.P.subscribe(a.Ps.scoreAdded,this.onShowScoreHint.bind(this)),d.P.subscribe(a.Ps.cellFilled,this.onCellFill.bind(this)),d.P.subscribe(a.Ps.updateEmojiSetup,this.updateEmojiSetup.bind(this))}return e.prototype.updateEmojiSetup=function(){var e=this.store.state.currentGame,t=e.mission,n=e.solution,r=e.values,i=e.emojisShown,o=t.split("").filter(function(e){return"0"===e}).length,s=+(r.reduce(function(e,r,i){return"0"===t[i]&&0!==r.val&&n[i]===r.val&&e++,e},0)/o).toFixed(2);i||this.store.dispatch(l.bE.updateEmojisShown,[]),25*this.store.state.currentGame.emojisShown.length<100*s&&this.store.dispatch(l.bE.updateEmojisShown,[25,50,75].filter(function(e){return 100*s>=e}))},e.prototype.setStreak=function(e){this.streak=e},e.prototype.onGameFinish=function(){var e=this,t=this.store.state,n=t.difficulty,r=t.mode,i=t.currentGame,o={placement:a.Kx.game_win,difficulty:a.NY[n],mode:a.VS[r]||r,content_id:i.id,content_type:[a.dX.classic,a.dX.killer].includes(r)?r:a.dX.classic},s=function(){d.P.emit(a.Ps.showImaAds,function(){e.showWinScreen()},o)};this.streak&&this.streak.handleGameFinish(s)||s()},e.prototype.onCellFill=function(e){if(this.emojiOnLastFill=!1,!e){var t=this.store.state,n=t.currentGame,r=n.mission,i=n.solution,o=n.values,s=n.emojisShown,a=t.animationSettings;s||this.store.dispatch(l.bE.updateEmojisShown,[]);var c=r.split("").filter(function(e){return"0"===e}).length,u=+(o.reduce(function(e,t,n){return"0"===r[n]&&0!==t.val&&i[n]===t.val&&e++,e},0)/c).toFixed(2),d=.25*(1+this.store.state.currentGame.emojisShown.length);(null==a?void 0:a[l.wB.emojiOnProgress])&&u>=d&&this.store.state.currentGame.emojisShown.length<3&&(this.emojiOnLastFill=!0,this.showEmoji(d))}},e.prototype.showEmoji=function(e){var t=this,n=this.store.state.currentGame.emojisShown,r=["emoji1","emoji2","emoji3","emoji4"],i=document.querySelector(".emoji_text span"),o=document.querySelector(".emoji_face"),s=document.querySelector(".emoji"),a=document.querySelector("#emoji-animation-confetti-canvas"),c=document.querySelector(".game_statistics");a&&(0,w.N)().then(function(e){a.confetti=a.confetti||e.create(t.$emojiConfetti,{resize:!0})});var u=(0,g.nm)(r,n);if(o&&(r.forEach(function(e){return(0,f.pP)(o).remove(e)}),(0,f.pP)(o).add(r[u]),this.store.dispatch(l.bE.updateEmojisShown,_(_([],n,!0),[u],!1))),i&&(i.innerText=window.translations.gameScreenProgressTitle.replace("{0}","".concat(100*e))),s){setTimeout(function(){c&&(0,f.pP)(c).add("show-emoji"),(0,f.pP)(s).add("show-emoji")},300),setTimeout(function(){var e;null==(e=null==a?void 0:a.confetti)||e.call(a,{particleCount:50,spread:360,startVelocity:13,ticks:50,gravity:.2,decay:.9,colors:["#7ae68a","#f2e822","#81f8fa","#ffb2c3","#fc99fe"],origin:{x:.57,y:.12}})},300),this.sendAnimationAnalyticsEvent("emotion");var d=2===u?2e3:1400;setTimeout(function(){(0,f.pP)(s).add("hide-emoji"),c&&(0,f.pP)(c).add("hide-emoji")},d),setTimeout(function(){(0,f.pP)(s).remove("show-emoji","hide-emoji"),c&&(0,f.pP)(c).remove("show-emoji","hide-emoji")},d+400)}},e.prototype.sendAnimationAnalyticsEvent=function(e){var t={content_id:this.store.state.currentGame.id,type:e};(0,v.B)("g_game_message",t),y.ets.send("g_game_message",t)},e.prototype.updateAnimatedCells=function(e){if(this.store.state.animatedCells.length||e){if(this.useOffscreenCanvas)return void this.worker.postMessage({action:i.updateAnimationCells,data:{state:this.store.state,finishAnimatedCells:e}});this.canvasView.updateAnimatedCells(e,this.animatedCellsCallback.bind(this))}},Object.defineProperty(e.prototype,"sizes",{get:function(){var e=this.pixelRatio,t=this.wrapper.clientWidth,n=o.P.CANVAS_SIZE*e,r=2*e;return{thin:.75*e,outer:r,pixelRatio:e,contextSize:n,cell:(n-2*r)/9,block:(n-r)/3,wrapperSize:t}}
9,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"canvasPosition",{get:function(){return this.canvas.getBoundingClientRect()},enumerable:!1,configurable:!0}),e.prototype.bindClickCanvas=function(e){this.canvas&&this.canvas.addEventListener("mousedown",e)},e.prototype.setCanvasSize=function(){var e=this.wrapper.clientWidth;this.canvas.style.width="".concat(e,"px"),this.canvas.style.height="".concat(e,"px")},e.prototype.generateCanvas=function(){this.canvas=document.createElement("canvas");var e=this.wrapper.clientWidth,t=(0,h.Yd)(this.sizes);if(this.canvas.width=o.P.CANVAS_SIZE*this.pixelRatio,this.canvas.height=o.P.CANVAS_SIZE*this.pixelRatio,this.canvas.style.width="".concat(e,"px"),this.canvas.style.height="".concat(e,"px"),this.store.dispatch(l.bE.setCoords,t),this.useOffscreenCanvas){var n=this.canvas.transferControlToOffscreen();this.worker.postMessage({action:i.init,data:{state:this.store.state,canvas:n,sizes:this.sizes,globalVariables:S}},[n]),this.worker.postMessage({action:i.clear}),this.worker.postMessage({action:i.drawGrid})}else this.canvasView.init(this.canvas,this.sizes,this.useOffscreenCanvas),this.canvasView.clearCanvas(),this.canvasView.drawGrid();this.wrapper.appendChild(this.canvas)},e.prototype.paintBoard=function(){var e=this.store.state,t=e.mode;if(e.currentGame){if(t!==a.dX.killer||this.assetsLoaded||this.loadKillerAssets(),this.useOffscreenCanvas)return void this.worker.postMessage({action:i.paintBoard,data:{state:this.store.state}});this.canvasView.paintBoard()}},e.prototype.loadKillerAssets=function(){var e=this;this.cagesImage=new Image,this.cagesImage.onload=function(){if(e.assetsLoaded=!0,e.useOffscreenCanvas)return void createImageBitmap(e.cagesImage).then(function(t){e.worker.postMessage({action:i.addKillerImage,data:{image:t,state:e.store.state}},[t])});e.canvasView.setCagesImage(e.cagesImage),e.paintBoard()},this.cagesImage.src=p},e.prototype.updateLoadingState=function(e){e&&this.removeLoading()},e.prototype.removeLoading=function(){(0,f.pP)(this.game).remove(o.P.LOADING_CLASS)},e.prototype.showWinScreen=function(){var e=this.store.state,t=e.currentGame.mode,n=e.monthWin;(0,f.pP)(this.game).add(o.P.BLOCKED_CLASS).add(o.P.PREACT_WIN),window.useFinishNewGameLink&&this.store.state.mode!==a.dX.daily&&(0,f.pP)(this.body).add("new-game-link"),d.P.emit(a.Ps.showPreactWin,{monthWin:n}),b.score.clearDiffs(),t===a.dX.daily&&this.newGameButtons.forEach(function(e){(0,f.pP)(e).add("win-dc")})},e.prototype.onFinishAnimationWithScore=function(){var e=this,t=this.store.state,n=t.difficulty,r=t.coords,i=t.currentGame.mission,s=this.sizes,a=s.cell,c=s.pixelRatio,u=s.wrapperSize/o.P.CANVAS_SIZE/c,d=a*u,h=d/2,p=r.filter(function(e,t){return"0"===i[t]});setTimeout(function(){e.store.dispatch(l.bE.animateFinishScore)},500),p.forEach(function(t){var r=t.x,i=t.y,o=50*t.row+50;m(e.wrapper,{x:r*u+.02*d,y:i*u+h/2,score:x[n],finishAnimationMode:"hide",width:.96*d,height:h,fontSize:".95rem",appearingDuration:150,appearingDelay:o,finishingDuration:150,finishingDelay:1800-2*o-150,appearWithBounce:!1})})},e.prototype.onShowScoreHint=function(e){var t=this.store.state,n=t.coords[t.selectedCell],r=n.x,i=n.y,s=this.sizes,a=s.cell,l=s.pixelRatio,c=s.wrapperSize/o.P.CANVAS_SIZE/l,u=a*c,d=u/2;m(this.wrapper,{x:r*c,y:i*c-d+5,score:e,finishAnimationMode:"bubble",width:u,height:d,fontSize:".95rem",appearingDuration:300,appearingDelay:0,finishingDuration:400,finishingDelay:300,appearWithBounce:!0})},e.prototype.commitAnimatedCells=function(e){this.store.commit(l.bE.setAnimatedCells,e),0!==e.length&&d.P.emit(a.Ps.animateCells)},e}()},40234:(e,t,n)=>{"use strict";n.d(t,{P:()=>r});var r={CANVAS_SIZE:500,COLOR_BACKGROUND:"#fff",COLOR_THIN_BORDER:"#BFC6D4",COLOR_DARK:"#344861",COLOR_BLUE:"#325aaf",COLOR_RED:"#e55c6c",COLOR_NEIGHBOR:"#e2ebf3",COLOR_SAME_VAL:"#c3d7ea",COLOR_CONFLICT:"#f7cfd6",COLOR_SELECTED:"#bbdefb",COLOR_NOTES:"#6e7c8c",COLOR_LIGHT_BLUE:"#b2dffe",COLOR_DARK_SMART:"#10151D",COLOR_LIGHT_SMART:"#3E3F42",COLOR_GREEN:"#34c759",COLOR_RED_SMART:"#ff2d55",COLOR_YELLOW_SMART:"#FC0",COLOR_BLUE_SMART:"#b2dffe",COLOR_NOTE_DARK:"#322929",LOADING_CLASS:"loading",STANDARD_WIN_CLASS:"win",BLOCKED_CLASS:"blocked",PREACT_WIN:"preact-win",BOARD_NUMBERS:["m28.064 13.248-7.22 4.712v2.774l6.992-4.408V40h2.622V13.248z","M30.249 29.512c2.66-2.508 5.206-5.016 5.206-8.93 0-4.332-3.382-7.714-8.322-7.714-4.94 0-8.436 3.04-9.044 7.448h2.584c.646-2.964 2.926-5.016 6.384-5.016 3.306 0 5.738 2.204 5.738 5.282 0 3.002-1.824 4.864-4.256 7.22L18.165 37.72V40h17.974v-2.432H21.737l8.512-8.056z","M20.654 19.898C21.338 17.086 23.618 15.3 27 15.3c3.534 0 5.7 1.976 5.7 4.826 0 2.66-1.976 4.864-5.7 4.864h-3.154v2.394h3.3
906c3.8 0 6.536 1.786 6.536 5.092 0 3.078-2.584 5.472-6.422 5.472-3.724 0-6.384-2.014-6.954-4.864h-2.66c.608 4.56 4.598 7.296 9.614 7.296 5.358 0 9.082-3.534 9.082-7.828 0-4.142-3.04-6.08-5.092-6.536 1.976-.76 4.104-2.66 4.104-5.928 0-4.104-3.23-7.22-8.36-7.22-4.408 0-8.17 2.432-8.968 7.03h2.622z","M33.232 31.108V13.21h-3.116l-13.3 18.126v2.128H30.61V40h2.622v-6.536h3.952v-2.356h-3.952zM30.61 16.402v14.706H19.818L30.61 16.402z","M27.76 22.558c-2.85 0-5.206 1.064-6.84 2.888l.874-9.766h13.224v-2.432H19.552L18.26 28.41h2.622c1.52-2.28 3.724-3.458 6.46-3.458 3.42 0 6.422 2.356 6.422 6.384 0 3.914-2.66 6.612-6.498 6.612s-6.042-2.356-6.574-4.56h-2.698c.646 3.724 3.99 6.992 9.31 6.992 5.13 0 9.158-3.648 9.158-9.082 0-5.51-4.218-8.74-8.702-8.74z","M27.95 22.52c-3.42 0-6.46 1.71-7.866 4.674.038-8.436 3.268-11.894 7.676-11.894 3.344 0 5.168 1.976 5.738 3.952h2.66c-.608-3.306-3.686-6.384-8.398-6.384-5.814 0-10.26 4.484-10.26 14.402 0 8.132 3.686 13.11 10.146 13.11 5.054 0 9.044-3.686 9.044-9.082 0-5.434-4.18-8.778-8.74-8.778zm-.38 15.428c-3.724 0-6.612-2.736-6.612-6.65 0-3.762 2.964-6.384 6.574-6.384 3.534 0 6.498 2.47 6.498 6.422 0 3.99-2.888 6.612-6.46 6.612z","M18.051 15.68h14.592L21.471 40h2.926l11.172-24.51v-2.242H18.051z","M17.519 32.78c0 4.522 3.952 7.6 9.5 7.6s9.462-3.078 9.462-7.6c0-4.142-3.268-6.308-5.282-6.764 1.71-.646 4.408-2.394 4.408-6.08 0-4.066-3.42-7.068-8.588-7.068-5.206 0-8.588 3.002-8.588 7.068 0 3.686 2.698 5.434 4.408 6.08-2.014.456-5.32 2.622-5.32 6.764zm15.428-12.692c0 2.926-2.622 4.902-5.928 4.902s-5.966-1.976-5.966-4.902 2.432-4.864 5.966-4.864c3.534 0 5.928 1.938 5.928 4.864zm.874 12.578c0 3.116-2.698 5.32-6.802 5.32-4.104 0-6.84-2.204-6.84-5.32 0-3.344 2.964-5.434 6.84-5.434 3.838 0 6.802 2.09 6.802 5.434z","M26.354 12.868c-5.054 0-9.044 3.686-9.044 9.044 0 5.434 4.18 8.816 8.778 8.816 3.344 0 6.422-1.71 7.828-4.674-.076 8.398-3.23 11.894-7.638 11.894-3.344 0-5.168-2.014-5.738-3.952h-2.66c.57 3.306 3.648 6.384 8.398 6.384 5.814 0 10.222-4.484 10.222-14.402 0-8.132-3.648-13.11-10.146-13.11zm.114 15.466c-3.496 0-6.46-2.508-6.46-6.46 0-3.99 2.888-6.574 6.422-6.574 3.762 0 6.612 2.698 6.612 6.612 0 3.8-2.926 6.422-6.574 6.422z"],BOARD_NOTES:["M6.725 2.2 4.4 3.725v1.163L6.613 3.5V11h1.112V2.2z","M7.6 7.638c.9-.825 1.75-1.65 1.75-2.988 0-1.425-1.088-2.588-2.813-2.588-1.7 0-2.837 1.038-3.037 2.526h1.1c.2-.9.85-1.5 1.913-1.5 1.012 0 1.7.675 1.7 1.562 0 .938-.525 1.487-1.363 2.275l-3.325 3.112V11h6.037V9.975h-4.5L7.6 7.638z","M4.588 4.45c.2-.825.862-1.363 1.887-1.363 1.088 0 1.7.588 1.7 1.425 0 .813-.638 1.45-1.738 1.45H5.425v1.013h1.088c1.087 0 1.975.475 1.975 1.513 0 .962-.788 1.625-1.9 1.625-1.125 0-1.913-.588-2.088-1.438H3.375c.2 1.587 1.537 2.462 3.213 2.462 1.762 0 3.037-1.15 3.037-2.625 0-1.375-1.037-1.987-1.625-2.125.55-.212 1.313-.8 1.313-1.887 0-1.375-1.075-2.438-2.838-2.438-1.462 0-2.762.788-3 2.388h1.113z","M8.637 7.95V2.2H7.312L3.075 8.038v.9h4.45V11h1.112V8.937h1.288V7.95H8.637zM7.525 3.525V7.95h-3.2l3.2-4.425z","M6.794 5.238c-.888 0-1.613.3-2.113.85l.25-2.863h4.25V2.2h-5.2l-.425 5.025h1.125c.463-.637 1.113-.975 1.938-.975 1.025 0 1.912.713 1.912 1.887 0 1.175-.775 1.976-1.95 1.976-1.187 0-1.825-.75-1.962-1.363H3.48c.175 1.275 1.325 2.387 3.113 2.387 1.725 0 3.075-1.175 3.075-3.012 0-1.813-1.4-2.887-2.875-2.887z","M6.875 5.237c-1.013 0-1.963.45-2.463 1.35.038-2.524 1.026-3.5 2.338-3.5 1.037 0 1.55.6 1.713 1.15H9.6c-.188-1.112-1.225-2.175-2.85-2.175-1.925 0-3.438 1.425-3.438 4.613 0 2.688 1.15 4.462 3.413 4.462 1.7 0 3.025-1.212 3.025-3 0-1.787-1.375-2.9-2.875-2.9zm-.188 4.876c-1.075 0-1.95-.775-1.95-1.95 0-1.163.875-1.913 1.95-1.913 1.063 0 1.926.75 1.926 1.912 0 1.175-.85 1.95-1.925 1.95z","M3.506 3.225H8.12L4.53 11h1.25L9.37 3.162V2.2H3.506z","M3.331 8.6c0 1.525 1.313 2.537 3.175 2.537 1.85 0 3.163-1.012 3.163-2.537 0-1.325-1.025-2.025-1.65-2.188.55-.224 1.375-.787 1.375-1.974 0-1.35-1.138-2.375-2.888-2.375-1.762 0-2.9 1.024-2.9 2.374 0 1.188.825 1.75 1.375 1.975-.625.163-1.65.863-1.65 2.188zM8.27 4.525c0 .875-.788 1.462-1.763 1.462-.987 0-1.775-.587-1.775-1.462 0-.888.713-1.463 1.775-1.463 1.05 0 1.763.576 1.763 1.463zM8.53 8.55c0 .938-.8 1.587-2.025 1.587-1.237 0-2.037-.65-2.037-1.587 0-1 .875-1.625 2.037-1.625 1.15 0 2.025.625 2.025 1.625z","M6.275 2.063c-1.7 0-3.025 1.212-3.025 3 0 1.787 1.375 2.9 2.875 2.9 1.013 0 1.963-.45 2.463-1.35-.038 2.524-1.025 3.5-2.338 3.5-1.037 0-1.55-.6-1.713-1.15H3.4c.188 1.112 1.225 2.175 2.85 2.175 1.925 0 3.438-1.425 3.438-4.613 0-2.688-1.15-4.463-3.413-4.463zm.037 4.887c-1.062 0-1.925-.75-1.925-1.913 0-1.175.85-1.95 1.926-1.95 1.075 0 1.95.775 1.95 1.95 0 1.163-.875 1.913-1.95 1.913z"],CAGES_DATA:{cage_corner_2:{y:0,size:120},cage_corner:{y:120,size:120},cage_corner_1:{y:240,size:120},cage_tunnel:{y:360,size:120},cage_door:{y:480,size:120},cage_door_1:{y:600,size:120},cage_door_1_90:{y:720,size:120},cage_door_2:{y:840,size:120},cage_door_2_90:{y:960,size:120},cage_single:{y:1080,size:120},cage_corner_small:{y:1200,size:120},cage_line:{y:1320,size:120}}
9,BOARD_SUMS:[{offset:7,path:"M3.123 9.865c1.945 0 3.123-1.705 3.123-4.43v-.011C6.246 2.699 5.068 1 3.123 1 1.172 1 0 2.7 0 5.424v.012c0 2.724 1.172 4.43 3.123 4.43zm0-1.09c-1.137 0-1.799-1.271-1.799-3.34v-.011c0-2.069.662-3.328 1.799-3.328 1.13 0 1.799 1.26 1.799 3.328v.012c0 2.068-.668 3.34-1.799 3.34z"},{offset:6,path:"M4.54 9.493V1.038H3.226L1 2.62v1.289l2.127-1.518h.1v7.102z"},{offset:7,path:"M5.771 9.493v-1.12H1.863v-.116L3.656 6.47c1.535-1.524 1.98-2.262 1.98-3.223v-.018C5.637 1.835 4.477.833 2.9.833 1.201.833.006 1.923 0 3.47l.012.011h1.23l.006-.017c0-.926.633-1.547 1.582-1.547.926 0 1.494.61 1.494 1.435v.018c0 .686-.322 1.12-1.441 2.285L.076 8.602v.891h5.695z"},{offset:7,path:"M3.1 9.771c1.793 0 3.064-1.042 3.064-2.496v-.011c0-1.184-.832-1.934-2.074-2.045v-.03C5.12 4.973 5.87 4.27 5.87 3.221v-.012C5.871 1.902 4.77 1 3.088 1 1.436 1 .31 1.943.182 3.367l-.006.065h1.23l.006-.059c.082-.797.738-1.295 1.676-1.295.955 0 1.506.48 1.506 1.3v.013c0 .785-.657 1.353-1.623 1.353h-.99v1.02h1.03c1.126 0 1.817.533 1.817 1.488v.012c0 .832-.697 1.412-1.728 1.412-1.05 0-1.758-.54-1.84-1.307l-.006-.058H0l.006.07C.117 8.78 1.295 9.77 3.1 9.77z"},{offset:7,path:"M5.39 9.493V7.811h1.167V6.698H5.39v-5.66H3.52A115.418 115.418 0 0 0 0 6.698v1.113h4.125v1.682h1.266zM4.144 6.722H1.26v-.083a96.619 96.619 0 0 1 2.806-4.494h.077v4.577z"},{offset:7,path:"M2.936 9.66c1.78 0 3.035-1.195 3.035-2.93V6.72c0-1.623-1.137-2.807-2.725-2.807-.78 0-1.441.328-1.799.897h-.1l.258-2.696H5.49V1H.574L.152 5.91h1.131c.1-.193.235-.357.387-.492.334-.305.773-.457 1.289-.457 1.02 0 1.758.738 1.758 1.781v.012c0 1.06-.727 1.805-1.77 1.805-.926 0-1.6-.592-1.71-1.336l-.007-.047H0l.006.076C.123 8.623 1.27 9.66 2.936 9.66z"},{offset:7,path:"M3.293 9.865c1.775 0 3.059-1.242 3.059-2.941v-.012c0-1.617-1.155-2.812-2.766-2.812-1.154 0-1.916.603-2.227 1.283h-.
9111c0-.065 0-.13.006-.194.064-1.687.656-3.076 2.08-3.076.797 0 1.348.41 1.582 1.055l.023.059H6.24l-.011-.07C5.947 1.878 4.834 1 3.339 1 1.249 1 0 2.688 0 5.547v.012c0 3.11 1.594 4.306 3.293 4.306zm-.012-1.101c-.996 0-1.775-.809-1.775-1.84v-.006c0-1.02.773-1.758 1.787-1.758 1.025 0 1.764.75 1.764 1.787v.012c0 1.014-.786 1.805-1.776 1.805z"},{offset:7,path:"m2.08 9.493 3.68-7.318V1.038H0v1.107h4.43v.094L.703 9.493z"},{offset:7,path:"M3.2 9.651c1.88 0 3.204-1.008 3.204-2.443v-.012c0-1.066-.767-1.916-1.875-2.156v-.03c.95-.269 1.565-.978 1.565-1.874v-.012C6.094 1.829 4.887.88 3.199.88 1.518.88.305 1.829.305 3.124v.012c0 .896.62 1.605 1.57 1.875v.029C.768 5.28 0 6.13 0 7.196v.012C0 8.643 1.324 9.65 3.2 9.65zm0-5.08c-.944 0-1.595-.55-1.595-1.324v-.012c0-.773.65-1.312 1.594-1.312.944 0 1.594.539 1.594 1.312v.012c0 .773-.645 1.324-1.594 1.324zm0 4.026c-1.079 0-1.846-.616-1.846-1.471v-.012c0-.867.761-1.494 1.845-1.494 1.09 0 1.852.627 1.852 1.494v.012c0 .855-.768 1.47-1.852 1.47z"},{offset:7,path:"M3.018 9.698c2.091 0 3.34-1.687 3.34-4.553v-.011c0-3.106-1.6-4.301-3.294-4.301C1.29.833 0 2.075 0 3.774v.012c0 1.617 1.16 2.812 2.771 2.812 1.149 0 1.917-.603 2.221-1.283h.117c0 .065-.005.13-.005.194-.065 1.687-.663 3.076-2.086 3.076-.791 0-1.342-.41-1.582-1.055l-.018-.058H.111l.018.07c.275 1.277 1.389 2.156 2.889 2.156zm.04-4.16c-1.019 0-1.763-.75-1.763-1.787v-.012c0-1.014.79-1.805 1.781-1.805.996 0 1.776.809 1.776 1.84v.006c0 1.02-.78 1.758-1.793 1.758z"}]}},1114:(e,t,n)=>{"use strict";n.r(t),n.d(t,{score:()=>T}),n(52675),n(2008),n(74423),n(62062),n(60739),n(26099),n(21699),n(23500);var r,i,o,s,a,l,c,u,d,h,p,f,g,m,v,y,w=n(34585),b=n(62351),_=n(70150),S=n(57705),x=n(38613),k=n(32612),E=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},C={daily:null!=(i=null==(r=window.moduleTranslations)?void 0:r.today)?i:"Today",weekly:null!=(s=null==(o=window.moduleTranslations)?void 0:o.this_week)?s:"This Week",monthly:null!=(l=null==(a=window.moduleTranslations)?void 0:a.this_month)?l:"This Month",allTime:null!=(u=null==(c=window.moduleTranslations)?void 0:c.all_time)?u:"All-Time"},P={daily:null!=(h=null==(d=window.moduleTranslations)?void 0:d.today_new_score)?h:"Today's New Best Score",weekly:null!=(f=null==(p=window.moduleTranslations)?void 0:p.week_new_score)?f:"Week's New Best Score",monthly:null!=(m=null==(g=window.moduleTranslations)?void 0:g.month_new_score)?m:"Month's New Best Score",allTime:null!=(y=null==(v=window.moduleTranslations)?void 0:v.alltime_new_score)?y:"All-Time New Best Score"},T=new(function(){function e(){var e=this;this.$wrapper=document.querySelector(".score"),this.$vals=document.querySelectorAll(".score-value"),this.$winWrapper=document.querySelectorAll(".win-score"),this.$statisticBlock=document.querySelector(".game_statistics"),this.$hsGoalLabel=document.querySelector(".game_statistics_goal > .game_statistics_label"),this.$hsGoalValue=document.querySelector(".game_statistics_goal_value"),this.$bsNotification=document.querySelector(".best-score-notification"),this.$newBsText=document.querySelector("#best-score-notification");var t={daily:{score:0,lastReset:(0,x.$d)()},weekly:{score:0,lastReset:(0,x.QW)(new Date)},monthly:{score:0,lastReset:new Date().getMonth()},allTime:{score:0}};this.hs=S.lw&&JSON.parse(localStorage.getItem("best_score"))||t,document.addEventListener("visibilitychange",function(){"visible"===document.visibilityState&&e.checkDiffs()}),document.addEventListener("visibility-visible",function(){e.checkDiffs()})}return e.prototype.checkDiffs=function(){var e=this;if(S.lw){var t=JSON.parse(localStorage.getItem("best_score"));console.log("clear diffs"),t&&(Object.keys(t).map(function(n){t[n].score>e.hs[n].score&&(e.hs[n].score=t[n].score)}),this.saveHs())}},Object.defineProperty(e.prototype,"hsBeated",{get:function(){var e=this;return Object.keys(this.hs).find(function(t){return e.hs[t].difference&&e.hs[t].score-e.hs[t].difference>0&&b.default.state.currentGame.score>e.hs[t].score-e.hs[t].difference})&&this.hs.allTime.score!==this.hs.allTime.difference&&0!==this.hs.allTime.score}
9,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hsBeatedArr",{get:function(){var e=this,t=Object.keys(this.hs).filter(function(t){return e.hs[t].difference});return t.length&&t.length?t:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lowestHs",{get:function(){var e=this,t=Object.keys(this.hs).filter(function(t){return e.hs[t].difference&&e.hs[t].score-e.hs[t].difference>0&&b.default.state.currentGame.score>e.hs[t].score-e.hs[t].difference}),n=Object.keys(this.hs).filter(function(n){return(!e.hs[n].difference&&e.hs[n].score||e.hs[n].difference&&!!(e.hs[n].score-e.hs[n].difference))&&e.hs[n].score>=b.default.state.currentGame.score&&!t.includes(n)});if(!n.length)return null;var r=n.find(function(t){return!!e.hs[t].difference}),i=n[0],o=n.filter(function(t){return e.hs[t].score===e.hs[i].score}),s=o[o.length-1];return r?{name:r,data:this.hs[r]}:{name:s,data:this.hs[s]}},enumerable:!1,configurable:!0}),e.prototype.animateBeatedHs=function(e){var t=this;this.$newBsText&&(this.$newBsText.innerHTML=P[e.name]),(0,_.pP)(this.$bsNotification).add("show"),(0,_.pP)(this.$wrapper).contains("best-score")?(0,_.pP)(this.$wrapper).add("best-score-animation-double"):(0,_.pP)(this.$wrapper).add("best-score-animation");var n=this.lowestHs;setTimeout(function(){t.lowestHs?(t.$hsGoalLabel.innerHTML=C[n.name],t.$hsGoalValue.innerHTML=(0,x.ZV)(n.data.score)):(0,_.pP)(t.$statisticBlock).add("animate-hidden-goal")},1100),setTimeout(function(){t.updateRenderedGoal()},1800)},e.prototype.updateRenderedGoal=function(){if(this.$hsGoalLabel&&this.$statisticBlock){var e=this.lowestHs;if((0,_.pP)(this.$bsNotification).remove("show"),this.hsBeated?(0,_.pP)(this.$wrapper).add("best-score").remove("best-score-animation","best-score-animation-double"):(0,_.pP)(this.$wrapper).remove("best-score","best-score-animation","best-score-animation-double"),!e)return void(0,_.pP)(this.$statisticBlock).add("hidden-goal").remove("animate-hidden-goal");this.$hsGoalLabel.innerHTML=C[e.name],this.$hsGoalValue.innerHTML=(0,x.ZV)(e.data.score),(0,_.pP)(this.$statisticBlock).remove("hidden-goal").remove("animate-hidden-goal")}},e.prototype.updateScore=function(e){this.checkAndResetScores();var t={name:"daily",data:this.updateHighScore("daily",e)},n={name:"weekly",data:this.updateHighScore("weekly",e)},r={name:"monthly",data:this.updateHighScore("monthly",e)},i={name:"allTime",data:this.updateHighScore("allTime",e)};this.saveHs();var o=[i,r,n,t].find(function(e){return!!e.data});return k.P.emit(w.Ps.cellFilled,!!o),o&&this.animateBeatedHs(o),!!o},e.prototype.clearDiffs=function(e){var t=this;Object.keys(this.hs).forEach(function(n){e&&t.hs[n].difference&&(t.hs[n].score=t.hs[n].score-t.hs[n].difference),delete t.hs[n].difference}),this.saveHs()},e.prototype.updateHighScore=function(e,t){if(!(t<=this.hs[e].score)){var n,r=!!this.hs[e].difference,i=t-this.hs[e].score;this.hs[e].score=t,this.hs[e].difference=(null!=(n=this.hs[e].difference)?n:0)+i;var o=this.hs.allTime.score===this.hs.allTime.difference||0===this.hs.allTime.score,s=!(this.hs[e].score-this.hs[e].difference);return r||o||s?null:this.hs[e]}},e.prototype.resetScoreIfNeeded=function(e,t){this.hs[e].lastReset!==t&&(this.hs[e].score="monthly"===e&&this.hs.weekly.score?this.hs.weekly.score:b.default.state.currentGame.score,b.default.state.currentGame.score&&(this.hs[e].difference=b.default.state.currentGame.score),"monthly"===e&&this.hs.weekly.score&&(this.hs[e].difference=null),this.hs[e].lastReset=t)},e.prototype.checkAndResetScores=function(){var e=new Date;this.resetScoreIfNeeded("daily",(0,x.$d)()),this.resetScoreIfNeeded("weekly",(0,x.QW)(e)),this.resetScoreIfNeeded("monthly",e.getMonth()),this.saveHs()},e.prototype.saveHs=function(){var e=this;if(S.lw){var t={};Object.keys(this.hs).forEach(function(n){var r=e.hs[n],i=(r.difference,E(r,["difference"]));t[n]=i}),localStorage.setItem("best_score",JSON.stringify(t))}},e.prototype.render=function(e){var t,n;this.$vals.length&&this.$wrapper&&(null==(t=b.default.state.currentGame)?void 0:t.baseScore)&&((null==(n=b.default.state.currentGame)?void 0:n.baseScore)&&((0,_.pP)(this.$wrapper).add("active"),this.$winWrapper.forEach(function(e){return(0,_.pP)(e).remove("hidden")}
9)),this.$vals.forEach(function(t){if(window.use_anim_score){var n=+t.innerText.split(",").join(""),r=Math.floor((e-n)/5),i=function(){n=n+r<=e?n+r:e,setTimeout(function(){t.innerText=(0,x.ZV)(n),n<e&&i()},50)};i()}else t.innerText=(0,x.ZV)(e)}))},e}())},11760:(e,t,n)=>{"use strict";n.d(t,{AR:()=>c,OX:()=>p,ZI:()=>h,fR:()=>u,pd:()=>l,q5:()=>f}),n(26910),n(26099),n(58940),n(27495),n(90744),n(23500);var r=n(57705),i=n(38613),o=n(34585),s=n(45740),a=function(){var e=window.consentProvider;return e===s.Rt.trustarc||e===s.Rt.onetrust||e===s.Rt.standard?e:window.useCmp?s.Rt.onetrust:s.Rt.standard},l=function(){return a()===s.Rt.trustarc},c=function(){return a()!==s.Rt.standard},u=function(){var e=(0,r.Ri)(s.s6.prefs);if(!e)return null;var t=e.split(":")[0];if(!t)return null;var n=[];return t.split(/[|,]/).forEach(function(e){var t=parseInt(e,10);!isNaN(t)&&-1!==t&&t>=0&&-1===n.indexOf(t)&&n.push(t)}),n.sort(function(e,t){return e-t})},d=function(e){var t=u();return!!t&&-1!==t.indexOf(e)},h=function(){switch(a()){case s.Rt.trustarc:return d(s.Z3.functional);case s.Rt.onetrust:return"1"===(0,i.pB)(o.rv.functional);default:return!0}},p=function(){return"boolean"==typeof window.tcfApplies?window.tcfApplies:!!window.useCmp},f=function(){switch(a()){case s.Rt.trustarc:if(!window.truste)return!0;return null!==u();case s.Rt.onetrust:var e=window.OneTrust;if(!e||"function"!=typeof e.IsAlertBoxClosed)return!0;return!!e.IsAlertBoxClosed();default:return!0}}},45740:(e,t,n)=>{"use strict";n.d(t,{Rt:()=>r,Z3:()=>i,s6:()=>o}),function(e){e.standard="standard",e.onetrust="onetrust",e.trustarc="trustarc"}(r||(r={})),function(e){e[e.required=0]="required",e[e.functional=1]="functional",e[e.advertising=2]="advertising"}(i||(i={}));var r,i,o={prefs:"notice_gdpr_prefs",preferences:"notice_preferences",behavior:"notice_behavior"}},53267:(e,t,n)=>{"use strict";n.d(t,{A:()=>x}),n(28706),n(2008),n(74423),n(23792),n(34782),n(69085),n(26099),n(21699),n(62953);var r,i,o=n(39760),s=n(32612),a=n(34585),l=n(27114),c=function(){return(c=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},u=function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))};let d=((r={})[o.bE.restartGame]=function(e){var t=e.state,n=t.currentGame,r=t.date,i=c(c({},n),{values:(0,l.mY)(n.mission),showWinRate:!0,timer:0,notes:[]});e.commit(o.bE.prepareBoard,i),e.commit(o.bE.setUserAction,[]),e.commit(o.bE.setSelected,0),(0,l.jh)(e.state.currentGame,r),s.P.emit(a.Ps.processNewGame,!0),s.P.emit(a.Ps.currentGameInit)},r[o.bE.setSettings]=function(e,t){e.commit(o.bE.setSettings,t)}
9,r[o.bE.setCoords]=function(e,t){e.commit(o.bE.setCoords,t)},r[o.bE.validateBoard]=function(e,t){var n=e.state,r=n.currentGame,i=n.coords;if(r){var s=r.values.filter(function(e){return e.mistake}).length;e.commit(o.bE.setBoardValues,(0,l.NJ)(r,i,!1,!0)),r.values.filter(function(e){return e.mistake}).length>s&&t&&e.commit(o.bE.increaseMistakes)}},r[o.bE.animateBoard]=function(e,t){var n=e.state,r=n.selectedCell,i=n.coords,c=[(0,l.nN)(r,u([],i,!0))];e.commit(o.bE.setAnimatedCells,c),s.P.emit(a.Ps.animateCells)},r[o.bE.clearAll]=function(e){var t=e.state,n=t.currentGame,r=t.selectedCell,i=n.finished;if(0!==n.values.filter(function(e){return e.val}).length){if(i||(e.commit(o.bE.addUserAction,{cell:r,value:n.values[r].val,clearedValues:u([],n.values,!0)}),e.commit(o.bE.increaseClearinngs)),e.commit(o.bE.setFinished,!1),e.commit(o.bE.setBoardValues,(0,l.mY)(Array(81).fill("0").join(""))),i){e.commit(o.bE.setSelected,0);var c={values:(0,l.mY)(Array(81).fill("0").join("")),userActions:[]};e.commit(o.bE.prepareBoard,c)}s.P.emit(a.Ps.repaintGameBoard),i?(0,l.Sn)():(0,l.rG)(n)}},r[o.bE.updateBoard]=function(e,t){var n=e.state,r=n.currentGame,i=n.selectedCell,c=r.userActions;if(!r.finished&&(s.P.emit(a.Ps.userAction),r.values[i].editable||[o.E7.undo,o.E7.move,o.E7.select].includes(t.type))){switch(t.type){case o.E7.select:e.commit(o.bE.setSelected,t.value);break;case o.E7.value:e.commit(o.bE.addUserAction,{cell:i,value:r.values[i].val});var u=r.values[i].val===t.value;e.commit(o.bE.setBoardValue,{val:u?0:t.value}),e.dispatch(o.bE.validateBoard,!u);break;case o.E7.erase:if(!r.values[i].val||r.values[i].val&&!r.values[i].editable)return;e.commit(o.bE.addUserAction,{cell:i,value:r.values[i].val}),e.commit(o.bE.increaseErases),e.commit(o.bE.setBoardValue,{val:0}),e.dispatch(o.bE.validateBoard);break;case o.E7.move:e.commit(o.bE.setSelected,(0,l.At)(i,t.value));break;case o.E7.undo:if(!c.length)return;var d=c.pop();e.commit(o.bE.setSelected,d.cell),d.clearedValues?e.commit(o.bE.setBoardValues,d.clearedValues):e.commit(o.bE.setBoardValue,{val:d.value}),e.commit(o.bE.increaseUndos),e.commit(o.bE.setUserAction,c),e.dispatch(o.bE.validateBoard);break;default:console.log("Type of action does not exists")}s.P.emit(a.Ps.repaintGameBoard),[o.E7.move,o.E7.select].includes(t.type)||e.state.finished||(0,l.rG)(r)}},r[o.bE.prepareBoard]=function(e){var t={values:(0,l.mY)(Array(81).fill("0").join("")),userActions:[]};e.commit(o.bE.prepareBoard,t),s.P.emit(a.Ps.currentGameInit)},r);var h=function(){return(h=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};let p=((i={})[o.bE.setAnimatedCells]=function(e,t){return e.animatedCells=t,e},i[o.bE.setFinished]=function(e,t){return e.currentGame.finished=t,e},i[o.bE.setUserAction]=function(e,t){return e.currentGame.userActions=t,e},i[o.bE.setCoords]=function(e,t){return e.coords=t,e},i[o.bE.setSettings]=function(e,t){return e.settings=t,e},i[o.bE.prepareBoard]=function(e,t){return e.currentGame=t,e},i[o.bE.setSelected]=function(e,t){return e.selectedCell=t,e},i[o.bE.setBoardValues]=function(e,t){e.currentGame.values=t,console.log(e)},i[o.bE.setBoardValue]=function(e,t){var n="number"==typeof t.index?t.index:e.selectedCell;return e.currentGame.values[n]=h(h({},e.currentGame.values[n]),t),e},i[o.bE.addUserAction]=function(e,t){return e.currentGame.userActions.push(t),e},i[o.bE.increaseClearinngs]=function(e){var t;return e.currentGame.clearings=(null!=(t=e.currentGame.clearings)?t:0)+1,e},i[o.bE.increaseErases]=function(e){var t;return e.currentGame.erases=(null!=(t=e.currentGame.erases)?t:0)+1,e},i[o.bE.increaseUndos]=function(e){var t;return e.currentGame.undos=(null!=(t=e.currentGame.undos)?t:0)+1,e},i[o.bE.increaseMistakes]=function(e){var t;return e.currentGame.mistakes=(null!=(t=e.currentGame.mistakes)?t:0)+1,e},i[o.bE.setDisableInfoNotification]=function(e,t){return e.disableSolverNotification=t,e},i);var f=n(57705),g=n(36228),m=n(45395),v=f.lw?JSON.parse(localStorage.getItem(g.LS.MAIN_GAME)):null,y=!!f.lw&&!window.matchMedia("(min-width: 576px)").matches&&!!localStorage.getItem(g.LS.DISABLE_SOLVER_NOTIFICATION),w=f.lw&&localStorage.getItem(g.LS.LAST_HIW_DATE),b=new Date().getTime(),_=(!w||Math.round((b-new Date(w).getTime())/864e5)>1||(0,m.PA)(new Date(w)))&&!v;let S={settings:{},selectedCell:0,currentGame:null!=v?v:null,finished:!1,coords:[],animatedCells:[],autoRemoveNotes:!0,lang:window.lang,dateTranslations:window.arrayOfTranslateDates,showHiw:_,disableSolverNotification:y},x=new(function(){function e(e){this.status=o.M3.resting,this.actions=e.actions,this.mutations=e.mutations,this.state=e.state||{}}return e.prototype.dispatch=function(e,t){if("function"==typeof this.actions[e])return this.status=o.M3.action,this.actions[e](this,t),!0},e.prototype.commit=function(e,t){if("function"==typeof this.mutations[e])return this.status=o.M3.mutation,this.state=Object.assign(this.state,this.mutations[e](this.state,t)),!0},e}())({actions:d,mutations:p,state:S})}
9,36228:(e,t,n)=>{"use strict";n.d(t,{LS:()=>r});var r={MAIN_GAME:"solver_game",LAST_HIW_DATE:"last_hiw_date",DISABLE_SOLVER_NOTIFICATION:"disable_solver_notification"}},39760:(e,t,n)=>{"use strict";var r,i,o;n.d(t,{E7:()=>i,M3:()=>o,bE:()=>r}),function(e){e.setSettings="setSettings",e.prepareBoard="prepareBoard",e.updateBoard="updateBoard",e.setSelected="setSelected",e.setBoardValue="setBoardValue",e.setBoardValues="setBoardValues",e.validateBoard="validateBoard",e.setCoords="setCoords",e.addUserAction="addUserAction",e.setUserAction="setUserAction",e.animateBoard="animateBoard",e.setFinished="setFinished",e.setAnimatedCells="setAnimatedCells",e.prepareEvent="prepareEvent",e.restartGame="restartGame",e.clearAll="clearAll",e.increaseUndos="increaseUndos",e.increaseMistakes="increaseMistakes",e.increaseClearinngs="increaseClearings",e.increaseErases="increaseErases",e.setDisableInfoNotification="setDisableInfoNotification"}(r||(r={})),function(e){e.undo="undo",e.move="move",e.select="select",e.value="value",e.erase="erase",e.eraseAll="eraseAll"}(i||(i={})),function(e){e.resting="resting",e.action="action",e.mutation="mutation"}(o||(o={}))},32612:(e,t,n)=>{"use strict";n.d(t,{P:()=>r}),n(2008),n(62062),n(26099),n(23500);var r=new(function(){function e(){this.listeners={}}return e.prototype.emit=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return!!Array.isArray(this.listeners[e])&&(1===this.listeners[e].length?(t=this.listeners[e])[0].apply(t,n):this.listeners[e].map(function(e){return e.apply(void 0,n)}))},e.prototype.subscribe=function(e,t){var n=this;return this.listeners[e]=this.listeners[e]||[],this.listeners[e].push(t),function(){n.listeners[e]=n.listeners[e].filter(function(e){return e!==t})}},e.prototype.remove=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];t.forEach(function(t){return delete e.listeners[t]})},e}())},29380:(e,t,n)=>{"use strict";n.d(t,{Y:()=>nD}),n(52675),n(89463),n(28706),n(2008),n(23792),n(60739),n(69085),n(26099),n(3362),n(23500),n(62953),n(7452),n(84315);var r,i,o,s,a,l,c,u,d=null;function h(){return d||(d=Promise.resolve().then(n.t.bind(n,77232,23)).then(function(e){var t,n,r,i;return new(null!=(i=null!=(r=null!=(t=e.UAParser)?t:null==(n=e.default)?void 0:n.UAParser)?r:e.default)?i:e)().getResult()})),d}n(58940),n(27495),n(38781);var p=n(38613),f=null,g=/^https?:\/\/([a-z0-9-]+\.)*(sudoku\.com|easybrain\.com)([/?#]|$)/i,m=/^(Failed to fetch|Load failed|NetworkError when attempting to fetch resource\.?|The Internet connection appears to be offline\.|The network connection was lost\.|cancelled|Cancelled|AbortError.*)$/,v=/^\[object (XMLHttpRequest|Event|ProgressEvent|Object)\]$/,y=[/\/sdk\/auction\.loader\.js/i,/\/wrapper\/v\d+\//i,/extensions\//i,/^chrome:\/\//i,/^chrome-extension:\/\//i,/^moz-extension:\/\//i,/^safari-(web-)?extension:\/\//i,/googletagservices\.com/i,/googlesyndication\.com/i,/googletagmanager\.com/i,/doubleclick\.net/i,/google-analytics\.com/i,/analytics\.google\.com/i,/vidazoo\.com/i,/streamrail\.com/i,/primis\.tech/i,/media\.net/i,/pubmatic\.com/i,/openx\.net/i,/adnxs\.com/i,/inmobi\.com/i,/amazon-adsystem\.com/i,/a2z\.com/i,/liadm\.com/i,/quantcount\.com/i,/cootlogix\.com/i],w=n(89254),b=n(22514);n(74423),n(21699),n(25440);var _=n(70150),S={oneTrust:"onetrust-banner-sdk",trustArc:"truste-consent-track",trustArcMount:"consent_blackbar"},x=["ta-hide","ta-display-hide"],k=function(e){if("0"===e.style.opacity)return!0;for(var t=0;t<x.length;t++)if(e.classList&&e.classList.contains(x[t]))return!0;return e.id!==S.oneTrust&&0===e.getBoundingClientRect().height},E=function(e,t){var n=document.getElementById(e),r=[];if(t(),n&&"undefined"!=typeof MutationObserver){var i=new MutationObserver(function(){return t()});i.observe(n,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["class","style"]}),r.push(function(){return i.disconnect()})}var o=window.ResizeObserver;if(n&&"function"==typeof o){var s=new o(function(){return t()});s.observe(n),r.push(function(){return s.disconnect()})}var a=function(){return t()};return window.addEventListener("resize",a),r.push(function(){return window.removeEventListener("resize",a)}),function(){return r.forEach(function(e){return e()})}},C=function(){function e(){this.body=document.querySelector("body"),this.blackOverlay=document.querySelector(".cookies-black-overlay"),this.mainNav=document.getElementById("main-navigation"),this.consent=document.getElementById("cookies-consent"),this.banner=document.getElementById("cookies-banner"),this.popup=document.getElementById("cookies-popup"),this.closePopup=document.getElementById("cookies-popup-close"),this.linkTabs=document.querySelectorAll(".cookies-options-item"),this.contentTabs=document.querySelectorAll(".options-content"),this.settingsLink=document.getElementById("cookie-sett
9ings-link"),this.dropdown=document.querySelector("#cookies-options-dropdown"),this.acceptButtons=document.querySelectorAll(".cookies-accept"),this.saveButton=document.getElementById("cookies-save"),this.sdkGoogleAdw=document.querySelector("#sdk_google_adw"),this.sdkGoogleAnalytics=document.querySelector("#sdk_google_analytics"),this.policyLinks=document.querySelectorAll(".cookies-page .entry-content a, .ref-footer .cookie-preferences-link"),this.vidazooFloatAds=document.querySelector("#vidazoo-container.vidazoo-float")}return Object.defineProperty(e.prototype,"sdkAdw",{get:function(){return this.sdkGoogleAdw.checked},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sdkAnalytics",{get:function(){return this.sdkGoogleAnalytics.checked},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dropdownValue",{get:function(){return this.dropdown.value},enumerable:!1,configurable:!0}),e.prototype.bindAcceptCookies=function(e){this.acceptButtons.forEach(function(t){t.addEventListener("click",e)})},e.prototype.bindClickPolicyLink=function(e){this.policyLinks.forEach(function(t){t.addEventListener("click",e)})},e.prototype.bindClickLinkTab=function(e){this.linkTabs.forEach(function(t){t.addEventListener("click",function(n){n.preventDefault(),e(t.dataset.category)})})},e.prototype.bindChangeDropdown=function(e){var t=this;this.dropdown&&this.dropdown.addEventListener("change",function(){e(t.dropdownValue)})},e.prototype.bindSaveCookies=function(e){this.saveButton&&this.saveButton.addEventListener("click",e)},e.prototype.bindShowSettings=function(e){this.settingsLink&&this.settingsLink.addEventListener("click",e)},e.prototype.bindHideSettings=function(e){this.closePopup&&this.closePopup.addEventListener("click",e)},e.prototype.showSettings=function(){this.blackOverlay&&(this.blackOverlay.style.display="block"),this.consent&&(this.consent.style.display="block"),this.popup&&this.popup.classList.add("shown"),this.banner&&(this.banner.style.display="none")},e.prototype.hideSettings=function(){this.popup&&this.popup.classList.remove("shown"),(!this.banner||(0,_.pP)(this.consent).contains("hidden"))&&this.blackOverlay&&(this.blackOverlay.style.display="none"),this.banner&&!(0,_.pP)(this.consent).contains("hidden")&&(this.banner.style.display="block")},e.prototype.hideConsent=function(){this.consent.style.display="none",this.body.style.paddingBottom="0",window.primisFloatAds&&(window.primisFloatAds.style.bottom="0px"),this.vidazooFloatAds&&(this.vidazooFloatAds.style.bottom="10px"),window.vidazooFloatAds&&(window.vidazooFloatAds.style.marginBottom="0px")},e.prototype.showTab=function(e){this.linkTabs.forEach(function(t){return t.dataset.category===e?t.classList.add("active"):t.classList.remove("active")}),this.contentTabs.forEach(function(t){t.style.display="none",t.classList.contains("cookies-category-".concat(e))&&(t.style.display="block")})},e.prototype.updateConsentPadding=function(){var e=this.banner.getBoundingClientRect().height;this.body.classList.add("cookie-visible"),this.body.style.paddingBottom="".concat(e,"px"),document.documentElement.style.setProperty("--mobile-menu-bottom","".concat(e-1,"px")),window.primisFloatAds&&(window.primisFloatAds.style.bottom="".concat(e+10,"px")),this.vidazooFloatAds&&(this.vidazooFloatAds.style.bottom="".concat(e+10,"px")),window.vidazooFloatAds&&(window.vidazooFloatAds.style.marginBottom="".concat(e+10,"px"))},e.prototype.removeCookieBannerPadding=function(){this.banner&&(this.banner.style.paddingBottom="")},e.prototype.changeCookieBannerPadding=function(e){this.banner&&(this.removeCookieBannerPadding(),this.banner.offsetWidth,this.banner.style.paddingBottom="".concat(e+parseInt(window.getComputedStyle(this.banner).paddingBottom),"px"))},e.prototype.getDynamicElements=function(){this.banner=document.getElementById("onetrust-banner-sdk")},e.prototype.getTrustArcElements=function(){this.banner=document.getElementById(S.trustArc)||document.getElementById(S.trustArcMount)},e.prototype.updateConsentPaddingCMP=function(){if(this.banner){if(k(this.banner)){(0,_.pP)(this.body).remove("cookie-visible"),this.body.style.paddingBottom="0px",document.documentElement.style.setProperty("--mobile-menu-bottom","0px"),window.primisFloatAds&&(window.primisFloatAds.style.bottom="0px"),this.vidazooFloatAds&&(this.vidazooFloatAds.style.bottom="0px"),window.vidazooFloatAds&&(window.vidazooFloatAds.style.marginBottom="0px");return}var e=this.banner.getBoundingClientRect().height;(0,_.pP)(this.body).add("cookie-visible"),this.body.style.paddingBottom="".concat(e,"px"),document.documentElement.style.setProperty("--mobile-menu-bottom","".concat(e-1,"px")),window.primisFloatAds&&(window.primisFloatAds.style.bottom="".concat(e+10,"px")),this.vidazooFloatAds&&(this.vidazooFloatAds.style.bottom="".concat(e+10,"px")),window.vidazooFloatAds&&(window.vidazooFloatAds.style.marginBottom="".concat(e+10,"px"))}},e}();!function(e){e.about="about",e.functional="functional",e.analytics="analytics",e.advertising="advertising",e.info="info"}(r||(r={})),function(e){e.shown="shown",e.tab="tab"}(i||(i={}));var P=function(){function e(){this.shownSettings=!1,this.activeTab=r.about}return e.prototype.bindShownSettingsChanged=function(e){this.onShownSettingsChanged=e},e.prototype.bindActiveTabChanged=function(e){this.onActiveTabChanged=e},e.prototype.changeShownSettings=function(e){this.shownSettings=e,this.commit(i.shown)},e.prototype.changeActiveTab=function(e){this.activeTab=e,this.commit(i.tab)},e.prototype.commit=function(e){switch(e){case i.shown:this.onShownSettingsChanged(this.shownSettings);break;case i.tab:this.onActiveTabChanged(this.activeTab)}},e}(),T=n(57705),L={COOKIES_ADS:"sdk_adw",COOKIES_ANALYTICS:"sdk_analytics",COOKIES_CONFIRM:"sdk_confirm"},I=n(34585),O=n(32612),A=n(22235),M=n(11760);n(5746),n(42762),n(48408);var N="cookie-preferences",D=["0","false","off"],R=function(e){var t=new URLSearchParams(e),n=t.get(N);if(null===n)return{open:!1,search:e};t.delete(N);var r=t.toString();return{open:-1===D.indexOf(n.trim().toLowerCase()),search:r?"?".concat(r):""}},B=function(e){var t=R(e.location.search);return t.search!==e.location.search&&e.history&&e.history.replaceState&&e.history.replaceState(null,"",e.location.pathname+t.search+e.location.hash),t.open},F=n(45740),$={ready:"trustarc-ccm-ready",consentUpdated:"trustarc-consent-updated"},j={prefmgr:1,iabManageSettings:4},H=function(){return window.truste},z=function(){var e,t;return null==(t=null==(e=H())?void 0:e.eu)?void 0:t.bindMap},G=function(){return!!z()},q=function(){var e,t=null==(e=z())?void 0:e.feat;return t&&"boolean"==typeof t.iabGdprApplies?t.iabGdprApplies:"function"==typeof window.__tcfapi}
9,U=function(){var e,t=null==(e=z())?void 0:e.behaviorManager;return"string"==typeof t?"us"===t:null},W=function(){var e,t,n,r=document.querySelector("#".concat("teconsent"," a"));if(r)return r.click(),!0;var i=null==(t=null==(e=H())?void 0:e.eu)?void 0:t.clickListener;return"function"==typeof i&&(i((null==(n=z())?void 0:n.isIabLayout)?j.iabManageSettings:j.prefmgr),!0)},V=function(){B(window)&&Y()},Y=function(){X(function(e){if(e){var t=Date.now()+8e3,n=0,r=function(){if(document.querySelector(".truste_overlay, .truste_box_overlay"))return void window.clearInterval(n);W(),Date.now()>=t&&window.clearInterval(n)};n=window.setInterval(r,250),r()}})},X=function(e){if(G())return void e(!0);var t=!1,n=function(n){t||(t=!0,window.clearInterval(i),window.clearTimeout(o),document.body&&document.body.removeEventListener($.ready,r),e(n))},r=function(){return n(!0)},i=window.setInterval(function(){G()&&n(!0)},100),o=window.setTimeout(function(){return n(G())},6e3);document.body&&document.body.addEventListener($.ready,r)},K=function(e){var t=function(){return e()};return document.body&&document.body.addEventListener($.consentUpdated,t),function(){return document.body&&document.body.removeEventListener($.consentUpdated,t)}},J=!1,Z=function(){J||(J=!0,window.location.reload())},Q=function(){var e=(0,M.fR)();if(!e){var t=U();return null===t||(window.isShowAnalytics=t,window.isShowPersonalAdv=t,(0,A.M)(t,t)),null}var n=-1!==e.indexOf(F.Z3.functional),r=-1!==e.indexOf(F.Z3.advertising);return window.isShowAnalytics=n,window.isShowPersonalAdv=r,(0,A.M)(n,r),e},ee=function(){var e=!1,t=null,n=function(t,n){e||(e=!0,window.tcfApplies=n,t&&(window.tcfData=t),O.P.emit(I.Ps.initBannerAds,t))};X(function(r){if(!r){window.useCmp||n(null,!1);return}if(Q(),O.P.emit(I.Ps.cmpLoaded),!q()||"function"!=typeof window.__tcfapi)return void n(null,!1);window.__tcfapi("addEventListener",2,function(r){var i=JSON.stringify(r&&r.purpose||{});if(!e){n(r,!0),t=i;return}i!==t&&Z()})})},et=function(){var e=function(e){return e?e.join(","):null},t=e((0,M.fR)());return K(function(){var n=e(Q());n!==t&&(t=n,Z())})},en=["mousemove","click","scroll","touchstart","touchmove"],er=function(e){var t=document.getElementById("trustarc-delay-style");if(!t)return function(){};var n=!1,r=function(){!n&&(n=!0,window.clearTimeout(i),en.forEach(function(e){return document.removeEventListener(e,r)}),t.parentNode&&t.parentNode.removeChild(t))},i=window.setTimeout(r,1e3*Math.max(0,e));return en.forEach(function(e){return document.addEventListener(e,r,{passive:!0})}),r},ei=function(){function e(){this.bannerShown=!1,this.bannerTimerId=null,this.bannerInteractionHandlers=[],this.view=new C,this.model=new P,this.view.bindAcceptCookies(this.handleAcceptCookies.bind(this)),this.view.bindSaveCookies(this.handleSaveCookies.bind(this)),this.view.bindShowSettings(this.handleShowSettings.bind(this)),this.view.bindHideSettings(this.handleHideSettings.bind(this)),this.view.bindClickPolicyLink(this.handleClickPolicyLink.bind(this)),this.view.bindClickLinkTab(this.handleClickLinkTab.bind(this)),this.view.bindChangeDropdown(this.handleClickLinkTab.bind(this)),this.model.bindShownSettingsChanged(this.onShownSettingsChanged.bind(this)),this.model.bindActiveTabChanged(this.onActiveTabChanged.bind(this)),O.P.subscribe(I.Ps.removeCookiesPadding,this.view.removeCookieBannerPadding.bind(this.view)),O.P.subscribe(I.Ps.changeCookiesPadding,this.view.changeCookieBannerPadding.bind(this.view)),(0,M.pd)()&&this.initTrustArc()}return e.prototype.initTrustArc=function(){var e,t=this;ee(),Q(),et(),er(Number(null==(e=null==window?void 0:window.eb)?void 0:e.settings.trustarc_delay)||0),V(),X(function(e){e&&E(S.trustArcMount,function(){t.view.getTrustArcElements(),t.view.updateConsentPaddingCMP()})})},e.prototype.onShownSettingsChanged=function(e){e?this.view.showSettings():this.view.hideSettings()},e.prototype.onActiveTabChanged=function(e){this.view.showTab(e)},e.prototype.handleClickLinkTab=function(e){this.model.changeActiveTab(e)},e.prototype.updateConsentHeight=function(){this.view.consent.classList.contains("hidden")||this.view.updateConsentPadding()},e.prototype.handleAcceptCookies=function(e){e.preventDefault(),(0,T.TV)(L.COOKIES_ADS,"1",365),(0,T.TV)(L.COOKIES_ANALYTICS,"1",365),(0,T.TV)(L.COOKIES_CONFIRM,"1",365),this.view.hideConsent(),(0,A.M)(!0,!0),window.location.reload()},e.prototype.handleSaveCookies=function(e){e.preventDefault();var t=this.view.sdkAdw,n=this.view.sdkAnalytics;(0,T.TV)(L.COOKIES_ADS,Number(t).toString(),365),(0,T.TV)(L.COOKIES_ANALYTICS,Number(n).toString(),365),(0,T.TV)(L.COOKIES_CONFIRM,"1",365),this.view.hideConsent(),(0,A.M)(n,t),window.location.reload()},e.prototype.handleClickPolicyLink=function(e){var t;e.preventDefault(),e.stopPropagation(),"#show-cookie-preferences"===e.target.hash?(0,M.pd)()?W()||this.model.changeShownSettings(!0):((null==(t=null==window?void 0:window.eb)?void 0:t.settings.use_cmp)||(0,M.AR)())&&window.OneTrust?window.OneTrust.ToggleInfoDisplay():this.model.changeShownSettings(!0):window.open(e.target.href,"_blank")},e.prototype.handleShowSettings=function(e){e.preventDefault(),this.model.changeShownSettings(!0)},e.prototype.handleHideSettings=function(e){e.preventDefault(),this.model.changeShownSettings(!1)},e.prototype.showCookieBanner=function(){if(!this.bannerShown){this.bannerShown=!0,null!==this.bannerTimerId&&(clearTimeout(this.bannerTimerId),this.bannerTimerId=null),this.cleanupBannerInteractionListeners();var e=document.getElementById("onetrust-consent-sdk");e&&(e.style.display="block",console.log("SHOW COOKIE POPUP (triggered by user interaction or timeout)",e))}},e.prototype.setupBannerInteractionListeners=function(){var e=this.showCookieBanner.bind(this);this.bannerInteractionHandlers.push(e),document.addEventListener("mousemove",e,{once:!0,passive:!0}),document.addEventListener("click",e,{once:!0,passive:!0}),document.addEventListener("scroll",e,{once:!0,passive:!0}),document.addEventListener("touchstart",e,{once:!0,passive:!0}),document.addEventListener("touchmove",e,{once:!0,passive:!0}),console.log("Cookie banner interaction listeners set up")},e.prototype.cleanupBannerInteractionListeners=function(){this.bannerInteractionHandlers.forEac
9h(function(e){document.removeEventListener("mousemove",e),document.removeEventListener("click",e),document.removeEventListener("scroll",e),document.removeEventListener("touchstart",e),document.removeEventListener("touchmove",e)}),this.bannerInteractionHandlers=[]},e.prototype.update=function(){var e=this;if(!this.cmpInit){O.P.emit(I.Ps.cmpLoaded),this.cmpConsentString=window.OnetrustActiveGroups;var t=document.querySelector("#onetrust-consent-sdk #onetrust-policy-text");if(t&&(t.innerHTML=t.innerHTML.replace("below","above"),t.innerHTML=t.innerHTML.replace('"I Accept"','"Accept"'),t.innerHTML=t.innerHTML.replace('"Reject All"','"Accept Only Necessary"'),t.innerHTML=t.innerHTML.replace('["privacy preferences"]','"Cookie Preferences"'),t.innerHTML=t.innerHTML.replace(" [or the floating icon on the bottom-left of the webpage, if applicable]",""),t.innerHTML=t.innerHTML.replace("Manage Preferences","Cookie Preferences")),window.__tcfapi("addEventListener",2,function(t){var n=JSON.stringify((null==t?void 0:t.purpose)||{});e.tcfApiInit||(window.tcfData=t,O.P.emit(I.Ps.initBannerAds,t)),e.tcfApiInit&&e.tcfApiConsent!==n&&window.location.reload(),e.tcfApiConsent=(null==t?void 0:t.eventStatus)!=="cmpuishown"?n:"",e.tcfApiInit=!0}),window.addEventListener("resize",this.view.updateConsentPaddingCMP.bind(this.view)),setTimeout(function(){e.view.getDynamicElements(),e.view.updateConsentPaddingCMP()},100),window.OneTrust.OnConsentChanged(function(){e.view.getDynamicElements(),e.view.updateConsentPaddingCMP();var t=window.OnetrustActiveGroups?window.OnetrustActiveGroups.split(",").filter(function(e){return!!e}):[];t.length&&(window.isShowPersonalAdv=t.includes(I.rv.targeting),window.isShowAnalytics=t.includes(I.rv.performance),(0,A.M)(t.includes(I.rv.performance),t.includes(I.rv.targeting))),window.OnetrustActiveGroups!==e.cmpConsentString&&window.location.reload(),e.cmpConsentString=window.OnetrustActiveGroups}),window.OneTrust&&!1===window.OneTrust.IsAlertBoxClosed()){window.eb.settings.cmp_delay&&(console.log("Show cookie banner in ".concat(window.eb.settings.cmp_delay," sec or on first user interaction")),this.bannerTimerId=window.setTimeout(function(){e.showCookieBanner()},1e3*window.eb.settings.cmp_delay),this.setupBannerInteractionListeners());return}this.cmpInit=!0}},e}();n(62062);var eo={MAIN_ID:"mobile-smart",SHOW_SMART_CLASS:"smart-visible"},es=function(){function e(){this.body=document.querySelector("body"),this.banner=document.getElementById(eo.MAIN_ID),this.wrap=document.getElementById("smart-wrap"),this.cookiesConsent=document.getElementById("cookies-banner"),this.badgeGP=document.querySelectorAll(".badge-button-gp"),this.badgeIOS=document.querySelectorAll(".badge-button-ios"),this.getDynamicElements()}return Object.defineProperty(e.prototype,"mode",{get:function(){return this.banner&&this.banner.dataset.mode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"platform",{get:function(){return this.banner&&this.banner.dataset.platform},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"badgeMode",{get:function(){return this.badgeWrapper&&this.badgeWrapper.dataset.mode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"consentVisible",{get:function(){return this.cookiesConsent&&!this.cookiesConsent.classList.contains("hidden")},enumerable:!1,configurable:!0}),e.prototype.bindCloseBanner=function(e){var t=this;return this.closeButton&&this.closeButton.addEventListener("click",e),function(){t.closeButton&&t.closeButton.removeEventListener("click",e)}},e.prototype.bindClickOpen=function(e){var t=this;return this.openButton&&this.openButton.addEventListener("click",e),function(){t.openButton&&t.openButton.removeEventListener("click",e)}},e.prototype.bindBadgeGPClick=function(e){var t=this;return this.badgeGP.forEach(function(t){return t.addEventListener("click",e)}),function(){t.badgeGP.forEach(function(t){return t.removeEventListener("click",e)})}},e.prototype.bindBadgeIOSClick=function(e){var t=this;
9return this.badgeIOS.forEach(function(t){return t.addEventListener("click",e)}),function(){t.badgeIOS.forEach(function(t){return t.removeEventListener("click",e)})}},Object.defineProperty(e.prototype,"bannerIsVisible",{get:function(){return this.body.classList.contains(eo.SHOW_SMART_CLASS)&&this.banner},enumerable:!1,configurable:!0}),e.prototype.showSmart=function(){this.body.classList.add(eo.SHOW_SMART_CLASS)},e.prototype.hideSmart=function(){this.body.classList.remove(eo.SHOW_SMART_CLASS)},e.prototype.getDynamicElements=function(){this.openButton=document.getElementById("mobile-smart-cta"),this.closeButton=document.getElementById("smart-close"),this.badgeWrapper=document.querySelector(".app-teaser-wrapper")},e}();(o||(o={})).mode="mode";var ea=function(){function e(){this.mode=null,this.bannerEventSent=!1,this.countCheckBanner=0}return e.prototype.bindChangeMode=function(e){this.onChangeMode=e},e.prototype.changeShownSettings=function(e){this.mode=e,this.commit(o.mode)},e.prototype.changeBannerEventSent=function(){this.bannerEventSent=!0},e.prototype.incrementCountCheckBanner=function(){this.countCheckBanner++},e.prototype.commit=function(e){e===o.mode&&this.onChangeMode()},e}();!function(e){e.classic="classic",e.killer="killer"}(s||(s={}));var el=function(){var e=document.getElementById("game");setTimeout(function(){e&&e.classList.toggle("game-resize")},510)},ec=n(80011),eu=n(52195),ed=(window.smartBannerConfig||"1").split(",").map(function(e){return Number(e)}).filter(function(e){return 1!==e}),eh=function(){function e(){var e,t=this;if(this.config=((e={})[s.killer]={count:0,config:ed},e[s.classic]={count:0,config:ed},e),this.wasCookieDeleted=!1,this.view=new es,this.model=new ea,this.bindDynamicElements(),this.model.bindChangeMode(this.onShowBanner.bind(this)),this.view.bindBadgeGPClick(this.handleBadgeGBClick.bind(this)),this.view.bindBadgeIOSClick(this.handleBadgeIOSClick.bind(this)),this.view.mode&&this.handleChangeMode(this.view.mode),O.P.subscribe(I.Ps.contentChanged,this.onChangeContent.bind(this)),window.showSmartBanner){O.P.subscribe(I.Ps.gameStartEvent,this.checkConfig.bind(this)),O.P.subscribe(I.Ps.gameFinishEvent,function(){t.wasCookieDeleted||t.updateCookieValue(1)});try{var n=JSON.parse(localStorage.getItem(eu.LS.SMART_BANNER_CONFIG));n&&(this.config=n)}catch(e){localStorage.removeItem(eu.LS.SMART_BANNER_CONFIG)}}else localStorage.removeItem(eu.LS.SMART_BANNER_CONFIG)}return e.prototype.checkConfig=function(e){var t,n=e===s.killer?s.killer:s.classic,r=null==(t=this.config[n])?void 0:t.config,i=this.config[n].count+1;if(!this.wasCookieDeleted&&!this.view.bannerIsVisible&&r&&r.length){var o=r.findIndex(function(e){return i>=e});this.config[n]={count:i,config:-1===o?r:r.filter(function(e){return e!==r[o]})},localStorage.setItem(eu.LS.SMART_BANNER_CONFIG,JSON.stringify(this.config)),-1!==o&&(this.wasCookieDeleted=!0,(0,T.Yj)(this.getCookieName()))}},e.prototype.onChangeContent=function(e){this.unsubClickOpen(),this.unsubCloseBanner(),e.smart_banner&&this.view.wrap&&(this.view.wrap.innerHTML=e.smart_banner),this.view.getDynamicElements(),this.bindDynamicElements()},e.prototype.bindDynamicElements=function(){this.unsubClickOpen=this.view.bindClickOpen(this.handleOpenLink.bind(this)),this.unsubCloseBanner=this.view.bindCloseBanner(this.handleCloseBanner.bind(this))},e.prototype.onChangeBannerHeight=function(e){O.P.emit(I.Ps.changeCookiesPadding,e)},e.prototype.onShowBanner=function(){this.handleShowSmartBanner()},e.prototype.handleShowSmartBanner=function(){this.view.showSmart(),(0,A.B)("smartbanner_show",{os:this.view.platform,type:this.model.mode}),ec.ets.send("smartbanner_show",{os:this.view.platform,type:this.model.mode}),this.timestamp=Math.floor(Date.now()/1e3),el()},e.prototype.handleBadgeGBClick=function(){(0,A.B)("badge_click",{os:"android",type:this.view.badgeMode}),ec.ets.send("badge_click",{os:"android",type:this.view.badgeMode})},e.prototype.handleBadgeIOSClick=function(){(0,A.B)("badge_click",{os:"ios",type:this.view.badgeMode}),ec.ets.send("badge_click",{os:"ios",type:this.view.badgeMode})},e.prototype.handleOpenLink=function(){var e=Math.floor(Date.now()/1e3);(0,A.B)("smartbanner_click",{os:this.view.platform,type:this.model.mode,time_1s:e-this.timestamp}),ec.ets.send("smartbanner_click",{os:this.view.platform,type:this.model.mode,time_1s:e-this.timestamp})},e.prototype.getCookieName=function(){var e,t,n,r=this.view.platform||(null==(n=null==(t=null==(e=window.eb)?void 0:e.userProfile)?void 0:t.device)?void 0:n.os)||"android";return"hide".concat((this.model.mode||window.mode)===s.killer?"Killer":"Classic").concat((0,p.Zr)(r),"SmartBanner")},e.prototype.updateCookieValue=function(e){var t=this.getCookieName();return T.lw&&(0,M.ZI)()&&(0,T.TV)(t,e.toString(),365),t},e.prototype.handleCloseBanner=function(){this.view.hideSmart();var e=this.updateCookieValue(1),t=Math.floor(Date.now()/1e3);return(0,A.B)("smartbanner_close",{os:this.view.platform,type:this.model.mode,time_1s:t-this.timestamp}),ec.ets.send("smartbanner_close",{os:this.view.platform,type:this.model.mode,time_1s:t-this.timestamp}),el(),e},e.prototype.handleChangeMode=function(e){this.model.changeShownSettings(e)},e}(),ep=function(){function e(){this.footer=document.querySelector(".ref-footer"),this.footerAnchor=document.querySelector(".footer-anchor"),this.anchorLinks=document.querySelectorAll("[data-anchor]"),this.anchorTopLinks=document.querySelectorAll("[data-scrolltop]")}return e.prototype.bindAnchorLinksClick=function(e){this.anchorLinks.forEach(function(t){t.addEventListener("click",function(){return e(t)})})},e.prototype.bindAnchorTopLinksClick=function(e){this.anchorTopLinks.forEach(function(t){t.addEventListener("click",e)})},e.prototype.changeAnchorPosition=function(e){this.footerAnchor.style.position=e},e}(),ef=function(){};!function(e){e.absolute="absolute",e.fixed="fixed"}(a||(a={}));var eg=n(41224),em=function(){function e(){this.view=new ep,this.model=new ef,this.view.bindAnchorLinksClick(this.handleAnchorLinkClick.bind(this)),this.view.bindAnchorTopLinksClick(this.handleAnchorTopLinkClick.bind(this)),document.addEventListener("scroll",this.handleScroll.bind(this))}return e.prototype.handleAnchorLinkClick=function(e){e.addEventListener("click",function(){(0,eg.l)(e.dataset.anchor,{duration:400})})},e.prototype.handleAnchorTopLinkClick=function(){(0,eg.l)("#masthead",{duration:400})},e.prototype.handleScroll=function(){function e(e){return e.getBoundingClientRect().top}this.view.footerAnchor&&(e(this.view.footerAnchor)+document.body.scrollTop+this.view.footerAnchor.offsetHeight>=e(this.view.footer)+document.body.scrollTop-10&&this.view.changeAnchorPosition(a.absolute),document.body.scrollTop+window.innerHeight<e(this.view.footer)+document.body.scrollTop&&this.view.changeAnchorPosition(a.fixed))},e}(),ev=n(50398),ey=ec.tournament.tournamentLogic,ew=function(){function e(){var e=this;if(this._blickShown=!1,this._eventsMenuBlickObserver=null,this._dropdownMutationObserver=null,this.$header=document.querySelector(".header"),this.$body=document.querySelector("body"),this.$langMenus=document.querySelectorAll(".lang-menu"),this.$settingsLink=this.$header.querySelectorAll(".settings"),this.$header){this.$burger=this.$header.querySelector("#burger-icon"),this.$burgerDropdown=this.$header.querySelector(".header_mobile_dropdown"),this.$dcLink=this.$header.querySelectorAll(".dc, .dc-banner"),this.$eventsLink=this.$header.querySelector(".events_header-link.events"),this.$eventsLinkDropdown=this.$header.querySelector(".events_dropdown"),this.$eventsClose=this.$header.querySelector(".events_close"),this.$eventsMenu=this.$header.querySelector(".events-menu");var t=document.querySelector(".modules-container");this.$settingsLink.forEach(function(n){t&&(0,_.pP)(n).remove("blocked"),n.addEventListener("click",e.handleClickSettings.bind(e))}),this.getDynamicElements(),this.listenBurger(),this.listenEventsButton(),this.listenDropdownScroll(),this.listenDropdownPosition(),this.listenResize(),this.listenOutsideClicks(),this.updateDcLink(),this.injectDcBannerCup(),this.bindDynamicElements(),O.P.subscribe(I.Ps.contentChanged,this.onChangeContent.bind(this)),this.initEventsButtonImgLazyLoader(),this.watchDropdownForNewImages(),window.useModules&&document.querySelectorAll(".tournament-link").forEach(function(e){var t=e&&e.querySelector(".tournament_header-timer");e&&t&&ey.subscribeTimer(t,e)});var n=document.querySelector(".header_right .dc-link");n&&"flex"===getComputedStyle(n).display&&ec.ets.send("dc_banner",null,!1,!0);var r=this.$eventsLink&&this.$eventsLink.querySelector(".events_button");r&&"none"!==getComputedStyle(r).display&&ec.ets.send("lo_show_events_menu",null,!1,!0)}}return e.prototype.handleClickSettings=function(e){e.preventDefault();var t=document.querySelectorAll('#tournament-page [data-show="true"], #dc-page [data-show="true"], .tournament_hiw.desktop.open');(0,_.pP)(this.$burger).remove("show"),(0,_.pP)(this.$body).remove("burger-active"),this.$eventsMenu&&(0,_.pP)(this.$eventsMenu).remove("show"),this.$eventsClose&&(0,_.pP)(this.$eventsClose).remove("scroll"),O.P.emit(I.Ps.hideAllMenu),O.P.emit(I.Ps.stopTimer),O.P.emit(I.Ps.stopScoreTimer),O.P.emit(I.Ps.hideGameMessage),O.P.emit(I.Ps.showSettingsPopup,t.length>0)},e.prototype.bindDynamicElements=function(){this.listenLangMenus(),this.listenLangMenuSelect()},e.prototype.onChangeContent=function(){this.getDynamicElements(),this.bindDynamicElements()},e.prototype.listenLangMenuSelect=function(){this.$langMenuSelects.forEac
9h(function(e){e.addEventListener("change",function(){window.location.href=e.value})})},e.prototype.updateDcLink=function(){var e=new Date(window.currentDate);this.$dcLink.forEach(function(t){(0,_.pP)(t).add("showed");var n=t.querySelector(".info");n&&(n.innerHTML=window.translations["menu_month_short_".concat(e.getMonth()+1)].replace("{0}","".concat(e.getDate())))})},e.prototype.listenEventsButton=function(){var e=this;if(this.$eventsLink){var t=this.$eventsLink.querySelector(".events_button");if(t){if(this.$eventsLink.addEventListener("click",function(e){e.stopPropagation()}),[t,document.querySelector(".game_statistics_events")].forEach(function(t){t&&t.addEventListener("click",function(t){var n;t.stopPropagation(),(0,_.pP)(e.$eventsLink).contains("show")?((0,_.pP)(e.$eventsLink).remove("show"),(0,_.pP)(e.$body).remove("events-menu-active"),e.$eventsClose&&(0,_.pP)(e.$eventsClose).remove("scroll")):(O.P.emit(I.Ps.hideAllMenu),(0,_.pP)(e.$burger).remove("show"),(0,_.pP)(e.$body).remove("burger-active"),e.$eventsMenu&&(0,_.pP)(e.$eventsMenu).remove("show"),e.$eventsLinkDropdown&&(e.$eventsLinkDropdown.scrollTop=0),(0,_.pP)(e.$eventsLink).add("show"),(0,_.pP)(e.$body).add("events-menu-active"),e.loadEventsDropdownImages(),e._blickShown||(e._blickShown=!0,null==(n=e.$eventsLinkDropdown)||n.querySelectorAll(".events_dropdown_item_badge").forEach(function(e){return(0,_.pP)(e).add("blick")})))})}),this.$eventsClose){this.$eventsClose.addEventListener("click",function(e){e.stopPropagation()});var n=this.$eventsClose.querySelector("svg");n&&n.addEventListener("click",function(){(0,_.pP)(e.$eventsLink).remove("show"),e.$eventsMenu&&(0,_.pP)(e.$eventsMenu).remove("show"),(0,_.pP)(e.$body).remove("events-menu-active"),(0,_.pP)(e.$burger).remove("show"),(0,_.pP)(e.$body).remove("burger-active"),(0,_.pP)(e.$eventsClose).remove("scroll")})}O.P.subscribe(I.Ps.hideAllMenu,function(){(0,_.pP)(e.$eventsLink).remove("show"),(0,_.pP)(e.$body).remove("events-menu-active"),e.$eventsClose&&(e.$eventsMenu&&(0,_.pP)(e.$eventsMenu).contains("show")||(0,_.pP)(e.$eventsClose).remove("scroll"))})}}},e.prototype.injectDcBannerCup=function(){var e=this.$header.querySelector(".dc-banner .events-menu_item_image");if(e){var t=new Date(window.currentDate).getMonth(),n=document.createElement("img");n.setAttribute("data-src","/img/cups/cup_".concat(t,"_done.png")),n.setAttribute("data-srcset","/img/cups/cup_".concat(t,"_done.png 1x, /img/cups/cup_").concat(t,"[email protected] 2x")),n.alt="",e.appendChild(n)}},e.prototype.initEventsMenuLazyLoader=function(){this.$eventsMenu&&(this.$eventsMenuLazyLoader?this.$eventsMenuLazyLoader.update():this.$eventsMenuLazyLoader=new b.w({selector:"[data-src]",root:this.$eventsMenu}))},e.prototype.initEventsButtonImgLazyLoader=function(){this.$eventsLink&&(this.$eventsButtonImgLazyLoader?this.$eventsButtonImgLazyLoader.update():this.$eventsButtonImgLazyLoader=new b.w({selector:"[data-src]",root:this.$eventsLink}))},e.prototype.loadEventsDropdownImages=function(){var e=this;this.$eventsLinkDropdown&&this.$eventsButtonImgLazyLoader&&this.$eventsLinkDropdown.querySelectorAll("[data-src]").forEach(function(t){e.$eventsButtonImgLazyLoader.loadImages(t)})},e.prototype.watchDropdownForNewImages=function(){var e=this;this.$eventsLinkDropdown&&(this._dropdownMutationObserver=new MutationObserver(function(t){(0,_.pP)(e.$eventsLink).contains("show")&&t.some(function(e){return Array.from(e.addedNodes).some(function(e){return e instanceof HTMLImageElement&&e.dataset.src})})&&e.loadEventsDropdownImages()}),this._dropdownMutationObserver.observe(this.$eventsLinkDropdown,{childList:!0,subtree:!0}))},e.prototype.initEventsMenuBlick=function(){var e=this;if(this.$eventsMenu&&!this._eventsMenuBlickObserver){var t=this.$eventsMenu.querySelectorAll(".events-menu_item");t.length&&(this._eventsMenuBlickObserver=new IntersectionObserver(function(t){t.forEach(function(t){if(t.isIntersecting&&!(t.intersectionRatio<.5)){var n=t.target.querySelector(".events-menu_item_badge");n&&!(0,_.pP)(n).contains("blick")&&(0,_.pP)(n).add("blick"),e._eventsMenuBlickObserver.unobserve(t.target)}})},{root:this.$eventsMenu,threshold:[0,.5]}),t.forEach(function(t){return e._eventsMenuBlickObserver.observe(t)}))}},e.prototype.listenBurger=function(){var e=this;this.$burger&&this.$burger.addEventListener("click",function(t){if(t.preventDefault(),window.useEventsMenu&&window.innerWidth<768){var n;if(!e.$eventsMenu)return;(0,_.pP)(e.$eventsMenu).contains("show")?((0,_.pP)(e.$eventsMenu).remove("show"),(0,_.pP)(e.$body).remove("events-menu-active"),(0,_.pP)(e.$burger).remove("show"),(0,_.pP)(e.$body).remove("burger-active"),e.$eventsClose&&(0,_.pP)(e.$eventsClose).remove("scroll")):(O.P.emit(I.Ps.hideAllMenu),e.$eventsMenu.scrollTop=0,(0,_.pP)(e.$eventsMenu).add("show"),(0,_.pP)(e.$body).add("events-menu-active"),(0,_.pP)(e.$body).add("burger-active"),e.initEventsMenuLazyLoader(),e.initEventsMenuBlick());return}if((0,_.pP)(e.$burger).contains("show"))(0,_.pP)(e.$burger).remove("show"),(0,_.pP)(e.$body).remove("burger-active"),e.$eventsMenu&&(0,_.pP)(e.$eventsMenu).remove("show"),e.$eventsClose&&(0,_.pP)(e.$eventsClose).remove("scroll");else{O.P.emit(I.Ps.hideAllMenu),(0,_.pP)(e.$burger).add("show"),(0,_.pP)(e.$body).add("burger-active");var r=null==(n=e.$burgerDropdown)?void 0:n.querySelector(".dc-link");r&&"flex"===getComputedStyle(r).display&&ec.ets.send("dc_banner",null,!1,!0)}})},e.prototype.listenLangMenus=function(){this.$langMenus&&this.$langMenus.length&&this.$langMenus.forEac
9h(function(e){e.addEventListener("click",function(){window.innerWidth<ev.t5||((0,_.pP)(e.closest(".lang-menu")).contains("menu-visible")?(0,_.pP)(e.closest(".lang-menu")).remove("menu-visible"):(0,_.pP)(e.closest(".lang-menu")).add("menu-visible"))})})},e.prototype.listenOutsideClicks=function(){var e=this;document.addEventListener("click",function(t){e.$burgerDropdown&&!e.$burgerDropdown.contains(t.target)&&e.$burger&&!e.$burger.contains(t.target)&&(!e.$eventsMenu||!e.$eventsMenu.contains(t.target))&&((0,_.pP)(e.$burger).remove("show"),(0,_.pP)(e.$body).remove("burger-active"),e.$eventsMenu&&((0,_.pP)(e.$eventsMenu).remove("show"),e.$eventsClose&&(0,_.pP)(e.$eventsClose).remove("scroll"))),e.$langMenus.forEach(function(e){e.contains(t.target)||(0,_.pP)(e).remove("menu-visible")}),e.$eventsLink&&!e.$eventsLink.contains(t.target)&&e.$eventsLinkDropdown&&!e.$eventsLinkDropdown.contains(t.target)&&e.$eventsClose&&!e.$eventsClose.contains(t.target)&&e.$eventsMenu&&!e.$eventsMenu.contains(t.target)&&((0,_.pP)(e.$eventsLink).remove("show"),(0,_.pP)(e.$body).remove("events-menu-active"),e.$eventsClose&&(0,_.pP)(e.$eventsClose).remove("scroll"))})},e.prototype.getDynamicElements=function(){this.$langMenuSelects=document.querySelectorAll(".lang-menu_select"),this.$langMenuLabels=document.querySelectorAll(".lang-menu_label")},e.prototype.adjustDropdownPosition=function(){var e,t=null==(e=this.$eventsLink)?void 0:e.querySelector(".events_dropdown");if(t){t.style.removeProperty("max-width"),t.style.removeProperty("left"),t.style.removeProperty("transform"),t.style.removeProperty("--events-arrow-left");var n=t.getBoundingClientRect(),r=window.innerWidth;if(!(r<768)){var i=r>=n.width+40?20:4;if(!(n.right<=r-i)){var o=this.$eventsLink.getBoundingClientRect(),s=Math.min(n.width,r-2*i);t.style.maxWidth="".concat(s,"px"),t.style.left="".concat(r-i-s-o.left,"px"),t.style.transform="none";var a=this.$eventsLink.querySelector(".events_button");if(a){var l=a.getBoundingClientRect(),c=Math.max(8,Math.min(s-24,l.left+l.width/2-(r-i-s)-8));t.style.setProperty("--events-arrow-left","".concat(c,"px"))}}}}},e.prototype.listenDropdownScroll=function(){var e=this;this.$eventsLinkDropdown&&this.$eventsClose&&this.$eventsLinkDropdown.addEventListener("scroll",function(){(0,_.pP)(e.$eventsClose)[e.$eventsLinkDropdown.scrollTop>1?"add":"remove"]("scroll")}),this.$eventsMenu&&this.$eventsClose&&this.$eventsMenu.addEventListener("scroll",function(){(0,_.pP)(e.$eventsClose)[e.$eventsMenu.scrollTop>1?"add":"remove"]("scroll")})},e.prototype.listenResize=function(){var e,t=this;this.$burger&&window.addEventListener("resize",function(){clearTimeout(e),e=setTimeout(function(){if(window.useEventsMenu&&t.$eventsMenu)if(window.innerWidth<768){if(!(0,_.pP)(t.$burger).contains("show"))return;t.$eventsMenu.scrollTop=0,(0,_.pP)(t.$eventsMenu).add("show"),(0,_.pP)(t.$body).add("events-menu-active"),t.initEventsMenuLazyLoader(),t.initEventsMenuBlick()}else(0,_.pP)(t.$eventsMenu).contains("show")&&((0,_.pP)(t.$eventsMenu).remove("show"),(0,_.pP)(t.$body).remove("events-menu-active"),(0,_.pP)(t.$burger).remove("show"),(0,_.pP)(t.$body).remove("burger-active"),t.$eventsClose&&(0,_.pP)(t.$eventsClose).remove("scroll"))},150)})},e.prototype.listenDropdownPosition=function(){var e,t=this;if(this.$eventsLink){requestAnimationFrame(function(){return t.adjustDropdownPosition()}),window.addEventListener("resize",function(){clearTimeout(e),e=setTimeout(function(){return t.adjustDropdownPosition()},150)});var n=this.$eventsLink.querySelector(".events_dropdown");n&&new MutationObserver(function(){return t.adjustDropdownPosition()}).observe(n,{attributeFilter:["class"]})}},e}();n(11392);var eb={ACTIVE_CLASS:"active",VISIBLE_CLASS:"menu-visible"};!function(e){e.daily="tab-daily",e.killer="tab-killer",e.postcards="tab-postcards",e.storybook="tab-storybook"}(l||(l={}));var e_=function(){function e(){this.body=document.querySelector("body"),this.parentMenuWrappers=document.querySelectorAll(".new-game-menu"),this.gameModes=document.querySelectorAll(".new-game-menu-mode-button"),this.menuWrappers=document.querySelectorAll(".new-game-button-wrapper"),this.gameButtons=document.querySelectorAll(".new-game-button"),this.dcContinueButtons=document.querySelectorAll(".dc-action"),this.newGameButtons=document.querySelectorAll(".new-game-menu-button:not(.new-game-menu-restart):not(.new-game-menu-continue):not(.new-game-menu-postcards-level)"),this.restartGameButton=document.querySelectorAll(".new-game-menu-button.new-game-menu-restart"),this.restartLevelIcons=document.querySelectorAll(".new-game-restart-level"),window.mode||(this.restartGameButton.forEach(function(e){return(0,_.pP)(e).add("hidden")}),this.restartLevelIcons.forEach(function(e){return(0,_.pP)(e).add("hidden")}))}return e.prototype.bindClickGameMode=function(e){this.gameModes.forEac
9h(function(t){return t.addEventListener("click",e)})},e.prototype.bindClickGameButton=function(e){this.gameButtons.forEach(function(t){return t.addEventListener("click",e)})},e.prototype.bindClickDcButton=function(e){this.dcContinueButtons.forEach(function(t){return t.addEventListener("click",e)})},e.prototype.bindClickNewGameButton=function(e){this.newGameButtons.forEach(function(t){return t.addEventListener("click",e)})},e.prototype.bindClickRestartButton=function(e){this.restartGameButton.forEach(function(t){return t.addEventListener("click",e)})},e.prototype.showActiveGameMode=function(e){this.gameModes.forEach(function(t){(0,_.pP)(t).remove(eb.ACTIVE_CLASS),t.dataset.mode===e&&(0,_.pP)(t).add(eb.ACTIVE_CLASS)})},e.prototype.showTabGameMode=function(e){this.parentMenuWrappers.forEach(function(t){(0,_.pP)(t).remove(l.killer,l.daily,l.postcards,l.storybook),[I.dX.killer,I.dX.daily,I.dX.postcards,I.dX.storybook].includes(e)&&(0,_.pP)(t).add("tab-".concat(e))})},e.prototype.showMenu=function(e){(0,_.pP)(e).add(eb.VISIBLE_CLASS),(0,_.pP)(this.body).add("some-menu-open")},e.prototype.hideMenus=function(){this.menuWrappers.forEach(function(e){return(0,_.pP)(e).remove(eb.VISIBLE_CLASS)}),(0,_.pP)(this.body).remove("some-menu-open")},e.prototype.getActiveTab=function(){for(var e=0,t=Array.from(this.parentMenuWrappers);e<t.length;e++){var n=Array.from(t[e].classList).find(function(e){return e.startsWith("tab-")});if(n)return n.replace("tab-","")}return null},e.prototype.setActiveDifficulty=function(e){var t=e.difficulty;window.mode&&this.newGameButtons.forEach(function(e){(0,_.pP)(e).remove(eb.ACTIVE_CLASS),e.dataset.difficulty===t&&e.dataset.mode===window.mode&&(0,_.pP)(e).add(eb.ACTIVE_CLASS)})},e}(),eS=function(){},ex=n(62351),ek=n(80457),eE=ec.postcards.postcardsLogic,eC=function(){function e(){this.view=new e_,this.model=new eS,this.view.bindClickGameMode(this.handleClickGameMode.bind(this)),this.view.bindClickGameButton(this.handleClickGameButton.bind(this)),window.mode&&(this.view.bindClickDcButton(this.handlerDcContinueClick.bind(this)),this.view.bindClickRestartButton(this.handleClickRestartButton.bind(this))),this.view.bindClickNewGameButton(this.handleClickNewGameButton.bind(this)),O.P.subscribe(I.Ps.hideAllMenu,this.view.hideMenus.bind(this.view)),O.P.subscribe(I.Ps.setActiveDifficulty,this.view.setActiveDifficulty.bind(this.view))}return e.prototype.handleClickRestartButton=function(e){if(window.mode){var t,n=ex.default.state.showGameOver;if((null==(t=ex.default.state.currentGame)?void 0:t.mode)===I.dX.daily){var r={action:"new_game"};ec.ets.send("dc_lose_screen_close",r),(0,A.B)("dc_lose_screen_close",r)}n?eE.reset(ex.default.state.currentGame.timer/1e3,{undos:ex.default.state.currentGame.undos,smart_hints:ex.default.state.currentGame.hints,erases:ex.default.state.currentGame.erases}):eE.resetGameProgress(),O.P.emit(I.Ps.closeMistakesPopup),sessionStorage.setItem(eu.f.GAME_PLACEMENT,e.target.closest(".game-over")?"gameover":ex.default.state.finished&&!e.target.closest(".site-header")?"winscreen_new_game":"new_game"),ex.default.dispatch(ek.bE.restartGame,{gameOver:n})}},e.prototype.handleClickNewGameButton=function(e){e.preventDefault(),O.P.emit(I.Ps.closeMistakesPopup);var t=e.target.dataset.mode,n=e.target.dataset.difficulty;if(t!==ex.default.state.mode&&(window.needToRestartPageOnChangeMode=!0),Array.from(e.target.parentElement.children).forEach(function(e){(0,_.pP)(e).remove("active")}),(0,_.pP)(e.target).add("active"),T.lw&&(window.needToRestartPageOnChangeMode&&(JSON.parse(localStorage.getItem(t===I.dX.killer?eu.LS.MAIN_GAME_KILLER:eu.LS.MAIN_GAME))||{}).loaded&&localStorage.removeItem(t===I.dX.killer?eu.LS.MAIN_GAME_KILLER:eu.LS.MAIN_GAME),localStorage.removeItem(ex.default.state.mode===I.dX.killer?eu.LS.MAIN_GAME_KILLER:eu.LS.MAIN_GAME),localStorage.removeItem(eu.LS.HISTORY_ACTIONS),sessionStorage.setItem(eu.f.GAME_PLACEMENT,e.target.closest(".game-over")?"gameover":ex.default.state.finished&&!e.target.closest(".site-header")?"winscreen_new_game":"new_game")),window.mode&&ex.default.state.settings[I.wB.imaAdsOnStart]&&!ex.default.state.finished){ex.default.dispatch(ek.bE.setPaused,!1),O.P.emit(I.Ps.stopTimer,!0),ex.default.commit(ek.bE.setDifficulty,n),ex.default.commit(ek.bE.setMode,t),ex.default.commit(ek.bE.prepareBoard,null),ex.default.commit(ek.bE.setSelected,0),window.needToRestartPageOnChangeMode||ex.default.dispatch(ek.bE.requestNewContent),window.needToRestartPageOnChangeMode?window.location.href=e.target.href:(O.P.emit(I.Ps.setActiveDifficulty,{difficulty:n}),ex.default.dispatch(ek.bE.checkSavedGame),O.P.emit(I.Ps.processNewGame)),O.P.emit(I.Ps.setActiveDifficulty,{difficulty:n,replace:!0});return}sessionStorage.setItem(eu.f.FROM_WIN,"1"),window.location.href=e.target.href},e.prototype.handlerDcContinueClick=function(e){e.preventDefault(),T.lw&&sessionStorage.setItem(I.pf.dc,"1"),window.location.href=e.target.href},e.prototype.getActiveTab=function(){return this.view.getActiveTab()},e.prototype.handleClickGameButton=function(e){e.stopPropagation();
9var t=e.target.closest(".new-game-button").parentElement,n=(0,_.pP)(t).contains(eb.VISIBLE_CLASS);O.P.emit(I.Ps.hideAllMenu),n||this.view.showMenu(t)},e.prototype.handleClickGameMode=function(e){e.stopPropagation();var t=e.target.closest(".new-game-menu-mode-button").dataset.mode;this.view.showActiveGameMode(t),this.view.showTabGameMode(t)},e}(),eP=function(){},eT="Game",eL=[{key:"finish_level",text:"Finish Level",condition:"Sudoku"},{key:"complete_day",text:"Complete Day",condition:"calendar",group:"Calendar"},{key:"clear_day",text:"Clear Day",condition:"calendar",group:"Calendar"},{key:"complete_month",text:"Complete Month",condition:"calendar",group:"Calendar"},{key:"clear_month",text:"Clear Month",condition:"calendar",group:"Calendar"}],eI=function(e){switch(e){case"finish_level":return function(){return window._finishSudoku()};case"complete_day":return function(){return window.calendar._cheatUpdateSelectedDay()};case"clear_day":return function(){return window.calendar._cheatUpdateSelectedDay(null,!0,"REMOVE")};case"complete_month":return function(){return window.calendar._cheatUpdateSelectedMonth("COMPLETE")};case"clear_month":return function(){return window.calendar._cheatUpdateSelectedMonth("REMOVE")};default:return function(){return alert("Action for the cheat not presented")}}},eO=function(){function e(e){this.groups={},this.painters=[],this.selectors=e,this.cheats=[]}return e.prototype.getElements=function(){this.$menu=document.querySelector(this.selectors.menuSelector),this.$toggles=document.querySelectorAll(this.selectors.toggleSelector),this.$buttons=document.querySelector(this.selectors.buttonsSelector),this.$parent=document.querySelector(this.selectors.parentSelector)},e.prototype.init=function(){var e=this;this.getElements(),eL.filter(function(e){return!!window[e.condition]}).forEach(function(t){return e.addButton({group:t.group,text:t.text,func:eI(t.key)})})},e.prototype.open=function(){var e=this;this.inited||(this.$parent||this.getElements(),this.$parent.classList.add("active"),this.toggleMenu=this.toggleMenu.bind(this),this.$toggles.forEach(function(t){return t.addEventListener("click",e.toggleMenu)}),this.inited=!0)},e.prototype.toggleMenu=function(){this.$menu.classList.contains("active")||this.refresh(),this.$menu.classList.toggle("active")},e.prototype.refresh=function(){this.painters.forEach(function(e){return e()})},e.prototype.groupFor=function(e){var t=e||eT;if(this.groups[t])return this.groups[t];var n=document.createElement("div"),r=document.createElement("div");return n.className="cheats-group",r.className="cheats-group_title",r.textContent=t,n.appendChild(r),this.$buttons.appendChild(n),this.groups[t]=n,n},e.prototype.addRow=function(e){return this.cheats.find(function(t){return t.text===e.text&&(t.group||eT)===(e.group||eT)})?null:(this.cheats.push(e),this.inited||(this.getElements(),this.open()),this.groupFor(e.group))},e.prototype.addButton=function(e){var t=this.addRow(e);if(t){var n=document.createElement("button");n.type="button",n.className="cheats-row",n.textContent=e.text,n.addEventListener("click",e.func),t.appendChild(n)}},e.prototype.addToggle=function(e){var t=this.addRow(e);if(t){var n=document.createElement("button"),r=document.createElement("span"),i=document.createElement("span");n.type="button",n.className="cheats-row cheats-row--toggle",r.className="cheats-row_text",r.textContent=e.text,i.className="cheats-switch",n.appendChild(r),n.appendChild(i);var o=function(){var t=!!e.get();n.classList.toggle("cheats-row--on",t),n.setAttribute("aria-pressed",String(t))};n.addEventListener("click",function(){e.func(!e.get()),o()}),o(),this.painters.push(o),t.appendChild(n)}},e.prototype.addNumber=function(e){var t=this.addRow(e);if(t){var n=document.createElement("label"),r=document.createElement("span"),i=document.createElement("input");n.className="cheats-row cheats-row--field",r.className="cheats-row_text",r.textContent=e.text,i.className="cheats-input",i.type="number",i.value=String(e.value),i.setAttribute("value",String(e.value)),void 0!==e.min&&(i.min=String(e.min)),void 0!==e.max&&(i.max=String(e.max)),i.addEventListener("input",function(){var t=void 0===e.min?-1/0:e.min,n=void 0===e.max?1/0:e.max;e.func(Math.min(n,Math.max(t,Number(i.value))))}),n.appendChild(r),n.appendChild(i),t.appendChild(n)}},e}(),eA=n(45395),eM=n(6763),eN=n(4967),eD=n(27114),eR=n(36228),eB=function(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(l){var c=[a,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&c[0]?r.return:c[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,c[1])).done)return i;switch(r=0,i&&(c=[2&c[0],i.value]),c[0]){case 0:case 1:i=c;break;case 4:return s.label++,{value:c[1],done:!1};case 5:s.label++,r=c[1],c=[0];continue;case 7:c=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===c[0]||2===c[0])){s=0;continue}if(3===c[0]&&(!i||c[1]>i[0]&&c[1]<i[3])){s.label=c[1];break}if(6===c[0]&&s.label<i[1]){s.label=i[1],i=c;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(c);break}i[2]&&s.ops.pop(),s.trys.pop();continue}c=t.call(e,s)}catch(e){c=[6,e],r=0}finally{n=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}},eF=function(){function e(){var e,t,n,r;this.domain=null==(t=null==(e=null==window?void 0:window.eb)?void 0:e.params)?void 0:t.authHost,this.eaid=null==(r=null==(n=null==window?void 0:window.eb)?void 0:n.params)?void 0:r.eaid,this.euid=T.lw?localStorage.getItem(eu.LS.EUID):null}return e.prototype.getEuid=function(){var e,t,n,r;return e=this,t=void 0,n=void 0,r=function(){var e;return eB(this,function(t){switch(t.label){case 0:if(this.euid&&this.validateEuid()||!this.eaid||!this.domain)return[2,this.euid];t.label=1;case 1:return t.trys.push([1,4,,5]),[4,fetch("".concat(this.domain,"/api/v1/auth"),{method:"POST",headers:{"x-easy-eaid":String(this.eaid),"Accept-Encoding":"gzip, deflate","Content-Encoding":"gzip"},body:JSON.stringify({})})];case 2:return[4,t.sent().json()];case 3:return e=t.sent().euid,T.lw&&e&&localStorage.setItem(eu.LS.EUID,e),[2,null!=e?e:null];case 4:return console.warn(t.sent()),[2,null];case 5:return[2]}})}
9,new(n||(n=Promise))(function(i,o){function s(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(s,a)}l((r=r.apply(e,t||[])).next())})},e.prototype.validateEuid=function(){return!!this.euid&&/^[a-f0-9]{64}$/i.test(this.euid)},e}();n(34782),n(26910),n(16034);var e$=n(63009),ej=n.n(e$),eH=n(69956),ez=n.n(eH),eG=n(21350),eq=function(){return(eq=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},eU=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(s,a)}l((r=r.apply(e,t||[])).next())})},eW=function(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(l){var c=[a,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&c[0]?r.return:c[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,c[1])).done)return i;switch(r=0,i&&(c=[2&c[0],i.value]),c[0]){case 0:case 1:i=c;break;case 4:return s.label++,{value:c[1],done:!1};case 5:s.label++,r=c[1],c=[0];continue;case 7:c=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===c[0]||2===c[0])){s=0;continue}if(3===c[0]&&(!i||c[1]>i[0]&&c[1]<i[3])){s.label=c[1];break}if(6===c[0]&&s.label<i[1]){s.label=i[1],i=c;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(c);break}i[2]&&s.ops.pop(),s.trys.pop();continue}c=t.call(e,s)}catch(e){c=[6,e],r=0}finally{n=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}},eV=function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},eY=ec.awards.awardsLogic,eX={state:"",games:[]},eK={SHOW_TIMER:"show-timer",SHOW_LEADERBOARD:"show-leaderboard"},eJ=[[3,5],[10,15],[300,360]],eZ=function(){function e(e){var t,n,r,i,o,s,a,l,c,u,d,h,f,g=this;this.countRequests=0,this.buildVersion=100,this.previousTimeString="",this._syncChain=Promise.resolve(),this.fetchOnce=(0,p.Xz)(),this.domain=null==(n=null==(t=null==window?void 0:window.eb)?void 0:t.params)?void 0:n.tournamentHost,this.eaid=null==(i=null==(r=null==window?void 0:window.eb)?void 0:r.params)?void 0:i.eaid,this.euid=e,this.timezone=Math.min(Math.max(Math.floor(-(new Date().getTimezoneOffset()/60)),-12),12),this.isClickUpdate=(0,_.pP)(document.body).contains("tournament-page"),this.storage=T.lw&&JSON.parse(localStorage.getItem(eu.LS.TOURNAMENT))||eX,(null==(s=null==(o=null==window?void 0:window.eb)?void 0:o.params)?void 0:s.buildVersion)&&(null==(l=null==(a=null==window?void 0:window.eb)?void 0:a.params)?void 0:l.buildVersion)>100&&(this.buildVersion=null==(u=null==(c=null==window?void 0:window.eb)?void 0:c.params)?void 0:u.buildVersion),(null==(d=this.storage)?void 0:d.tournaments)&&(Object.keys(null==(h=this.storage)?void 0:h.tournaments).length&&(this.previousUuidTournament=Object.keys(null==(f=this.storage)?void 0:f.tournaments).filter(function(e){var t;return(null==(t=g.storage)?void 0:t.tournaments[e].type)==="weekly"})[0]),this.storage=eX),this.leaderboardLoaded=!1,this.score=[],this.place=1,this.$body=document.querySelector("body"),this.$leaderboard=document.querySelector("#tournament-leaderboard"),this.$wrapper=document.querySelector(".tournament_body"),this.$days=document.querySelector(".tournament_timer .days"),this.$hours=document.querySelector(".tournament_timer .hours"),this.$minutes=document.querySelector(".tournament_timer .minutes"),this.$seconds=document.querySelector(".tournament_timer .seconds"),this.$timeToEnd=document.querySelectorAll(".time-to-end"),this.$headerLinkWrapper=document.querySelectorAll(".tournament-link"),this.$headerTimer=document.querySelectorAll(".tournament_header-timer"),this.$gameWrapper=document.querySelector("#sudoku-wrapper"),this.$stats=document.querySelector(".tournament-stats"),this.$t
9s=document.querySelector("#tournament-ts"),this.$place=document.querySelector("#tournament-place"),this.$winPopup=document.querySelector(".tournament_popup"),this.$winPopupBtn=document.querySelector(".tournament_popup_btn"),this.$finishMedal=document.querySelector("#finish-medal"),this.$widget=document.querySelector(".tournament-stats_widget"),this.$additionalRewardPopup=document.querySelector(".tournament_reward"),this.$additionalRewardBtn=this.$additionalRewardPopup&&this.$additionalRewardPopup.querySelector(".tournament_reward_btn"),this.$hiwPopup=document.querySelector(".tournament_hiw"),this.$additionalRewardWidget=document.querySelector(".tournament_avatars"),this.closeAvatarsWithoutAnimation=!1,this.$finishMedal&&(this.$finishMedal.onload=function(){(0,_.pP)(g.$finishMedal).add("active")}),O.P.subscribe(I.Ps.sendGameResult,this.sendGameResult.bind(this)),this.$winPopupBtn&&this.$winPopupBtn.addEventListener("click",function(){g.$winPopup&&((0,_.pP)(g.$body).remove("overflow"),(0,_.pP)(g.$winPopup).remove("open"),O.P.emit(I.Ps.showNextPopup))}),this.init(),document.addEventListener("visibility-visible",function(){return eU(g,void 0,void 0,function(){var e;return eW(this,function(t){switch(t.label){case 0:return e=this,[4,(0,ec.getServerTimestamp)(this.domain)];case 1:return e.serverTime=t.sent(),[4,this.loadData()];case 2:return t.sent(),[2]}})})}),document.addEventListener("visibility-hidden",function(){clearInterval(g.interval)}),window.addEventListener("resize",this.resizeHandler.bind(this)),O.P.subscribe(I.Ps.showAdditionalReward,this.showAdditionalReward.bind(this)),O.P.subscribe(I.Ps.resetSessionCount,function(){g.countRequests=0}),this.$additionalRewardWidget&&this.$additionalRewardWidget.addEventListener("click",function(){(0,_.pP)(g.$additionalRewardPopup).add("open")})}return e.prototype.init=function(){return eU(this,void 0,void 0,function(){return eW(this,function(e){switch(e.label){case 0:return[4,this.loadData()];case 1:return e.sent()||this.setNextUpdateTimeout(),[2]}})})},e.prototype.showAdditionalReward=function(){var e,t=this,n=null==(e=this.storage.data)?void 0:e.tournament,r=n.status,i=n.additional_reward_inited;if("running"===r&&this.$additionalRewardPopup){if(this.$additionalRewardBtn&&this.$additionalRewardBtn.addEventListener("click",this.closeAdditionalReward.bind(this)),i){(0,_.pP)(this.$wrapper).add("inited-avatars").add("show-avatars"),(0,_.pP)(this.$additionalRewardPopup).add("inited"),this.closeAvatarsWithoutAnimation=!0;return}setTimeout(function(){(0,_.pP)(t.$additionalRewardPopup).add("open")},200),this.storage.data.tournament.additional_reward_inited=!0,this.saveCurrentConfig()}},e.prototype.closeAdditionalReward=function(){var e=this;if(this.closeAvatarsWithoutAnimation){(0,_.pP)(this.$additionalRewardPopup).add("hide"),setTimeout(function(){(0,_.pP)(e.$additionalRewardPopup).remove("open","hide")},250);return}var t=document.querySelector(".tournament_reward_image"),n=document.querySelector(".tournament_avatars .avatart-icon"),r=t.getBoundingClientRect(),i=n.getBoundingClientRect(),o=i.left+60+i.width/2-(r.left+r.width/2),s=i.top+i.height/2-(r.top+r.height/2),a=[{transform:"translate(0px, 0px) scale(1) rotate(0deg)",opacity:1,offset:0},{transform:"translate(".concat(o/2,"px, ").concat(s/2-60,"px) scale(0.2) rotate(-17.5deg)"),opacity:1,offset:.5},{transform:"translate(".concat(o,"px, ").concat(s,"px) scale(0.2) rotate(-35deg)"),opacity:0,offset:1}],l={duration:700,easing:"cubic-bezier(0.25, 0.1, 0.25, 1)",fill:"backwards"};setTimeout(function(){t.animate(a,l)},200),(0,_.pP)(this.$additionalRewardPopup).add("hide"),(0,_.pP)(this.$wrapper).add("show-avatars"),setTimeout(function(){(0,_.pP)(e.$additionalRewardPopup).remove("open","hide").add("inited"),(0,_.pP)(e.$wrapper).add("inited-avatars")},1e3)},e.prototype.resizeHandler=function(){this.$winPopup&&(!(window.deviceType!==I.bq.phone&&window.matchMedia("(min-width: 768px)").matches)&&(0,_.pP)(this.$winPopup).contains("open")?(0,_.pP)(this.$body).add("overflow"):(0,_.pP)(this.$body).remove("overflow"))},e.prototype.loadData=function(){return eU(this,void 0,void 0,function(){var e,t;return eW(this,function(n){switch(n.label){case 0:if(this.serverTime)return[3,2];return e=this,[4,(0,ec.getServerTimestamp)(this.domain)];case 1:e.serverTime=n.sent(),n.label=2;case 2:if(t=this.serverTime||Date.now()/1e3,!this.storage.data&&!this.storage.errorUpdateTime||this.storage.updateTime&&t>=this.storage.updateTime||this.storage.errorUpdateTime&&t>
9=this.storage.errorUpdateTime||this.isClickUpdate&&(!this.storage.lastForceUpdate||t-this.storage.lastForceUpdate>10))return this.sync(this.isClickUpdate&&(!this.storage.lastForceUpdate||t-this.storage.lastForceUpdate>10)?"click":null),[2,!0];return this.initByData(),[2,!1]}})})},e.prototype.sendGameResult=function(e){var t,n,r,i,o,s,a,l,c,u,d,h,f,g,m=e.game,v=e.event;return eU(this,void 0,void 0,function(){var e,y,w,b,S;return eW(this,function(x){switch(x.label){case 0:if((null==(n=null==(t=this.storage.data)?void 0:t.tournament)?void 0:n.status)!=="running")return(0,A.B)("g_game_finish",v),ec.ets.send("g_game_finish",v,!0),[2,null];if(this.$widget&&(0,_.pP)(this.$widget).remove("triangle-bottom").remove("triangle-top"),this.$stats&&(0,_.pP)(this.$stats).remove("active"),e=this.place,void 0!==(y=null==v?void 0:v.content_id)&&this.storage.prevGameId===y)return[3,5];w=this.storage.prevGameId,void 0!==y&&(this.storage.prevGameId=y),this.storage.games=eV(eV([],this.storage.games||[],!0),[m],!1),this.saveCurrentConfig(),x.label=1;case 1:return x.trys.push([1,3,,4]),[4,this.sync("game")];case 2:return x.sent(),[3,4];case 3:throw b=x.sent(),this.storage.prevGameId=w,this.saveCurrentConfig(),b;case 4:this.saveCurrentConfig(),x.label=5;case 5:return this.$stats&&(null==(i=null==(r=this.storage.data)?void 0:r.tournament)?void 0:i.status)==="running"&&!(null==(a=null==(s=null==(o=this.storage.data)?void 0:o.tournament)?void 0:s.info)?void 0:a.is_silent)&&((0,_.pP)(this.$stats).add("active"),this.$ts&&(this.$ts.innerText=String(this.score.find(function(e){return e.p}).ts)),this.$place&&(this.$place.innerText=String(this.place)),e!==this.place&&this.$widget&&(0,_.pP)(this.$widget).add(e>this.place?"triangle-top":"triangle-bottom")),this.calculateUserData(),(S={})[null==(u=null==(c=null==(l=this.storage.data)?void 0:l.tournament)?void 0:c.info)?void 0:u.name]=this.place,v.place=S,(null==(h=null==(d=this.storage.data)?void 0:d.tournament)?void 0:h.status)==="running"&&((0,A.B)("g_game_finish",v),ec.ets.send("g_game_finish",v,!0)),[2,[{name:null!=(f=window.moduleTranslations.position_text)?f:"Position",value:this.place,position:{current:this.place,prev:e}},{name:null!=(g=window.moduleTranslations.total_score_text)?g:"Total Score",value:(0,p.ZV)(this.score.find(function(e){return e.p}).ts)}]]}})})},e.prototype.renderTimers=function(){var e,t=this.timer<0?0:this.timer,n=null==(e=this.storage.data)?void 0:e.tournament,r=(n.info,n.status),i=(0,p.kI)(t);if("running"===r){var o="";if((o=0===i.d&&0===i.h?(window.translations.tournamentsMinutesTimer||"{minutes}m {seconds}s").replace("{minutes}",("0"+i.m).slice(-2).split("").map(function(e){return"<span>".concat(e,"</span>")}).join("")).replace("{seconds}",("0"+i.s).slice(-2).split("").map(function(e){return"<span>".concat(e,"</span>")}).join("")):0===i.d&&i.h>0?(window.translations.tournamentsHoursTimer||"{hours}h {minutes}m").replace("{hours}",("0"+i.h).slice(-2).split("").map(function(e){return"<span>".concat(e,"</span>")}).join("")).replace("{minutes}",("0"+i.m).slice(-2).split("").map(function(e){return"<span>".concat(e,"</span>")}).join("")):(window.translations.tournamentsDaysTimer||"{days}d {hours}h").replace("{days}",("0"+i.d).slice(-2).split("").map(function(e){return"<span>".concat(e,"</span>")}).join("")).replace("{hours}",("0"+i.h).slice(-2).split("").map(function(e){return"<span>".concat(e,"</span>")}).join("")))===this.previousTimeString)return;this.$timeToEnd.forEach(function(e){return e.innerHTML=o}),this.$headerTimer.forEach(function(e){return e.innerHTML=o}),this.previousTimeString=o}else this.$days&&(this.$days.innerHTML=("0"+i.d).slice(-2).split("").map(function(e){return"<span>".concat(e,"</span>")}).join("")),this.$hours&&(this.$hours.innerHTML=("0"+i.h).slice(-2).split("").map(function(e){return"<span>".concat(e,"</span>")}).join("")),this.$minutes&&(this.$minutes.innerHTML=("0"+i.m).slice(-2).split("").map(function(e){return"<span>".concat(e,"</span>")}).join("")),this.$seconds&&(this.$seconds.innerHTML=("0"+i.s).slice(-2).split("").map(function(e){return"<span>".concat(e,"</span>")}).join(""))},e.prototype.startTimer=function(){var e=this;clearInterval(this.interval),this.renderTimers(),this.interval=setInterval(function(){e.timer>0&&e.timer--,e.serverTime=(e.serverTime||Date.now()/1e3)+1,e.renderTimers(),e.t
9imer<=0&&(clearInterval(e.interval),e.isClickUpdate?e.loadData():e.initByData())},1e3)},e.prototype.showLeaderBoard=function(){var e,t=this;if(this.$wrapper&&((0,_.pP)(this.$wrapper).remove(eK.SHOW_TIMER).add(eK.SHOW_LEADERBOARD),(null==(e=this.storage.data)?void 0:e.tournament)&&this.$leaderboard&&this.score.length&&(this.$leaderboard.innerHTML="",this.score.forEach(function(e,n){var r=document.createElement("div");(0,_.pP)(r).add("leaderboard-item_index"),r.innerText=String(n+1);var i=document.createElement("div");(0,_.pP)(i).add("leaderboard-item"),i.appendChild(r),e.p&&(0,_.pP)(i).add("me");var o=document.createElement("div");(0,_.pP)(o).add("leaderboard-item_score"),o.innerHTML='<div class="leaderboard-item_score_name">'.concat(e.p?"ME":e.u,'</div> <div class="leaderboard-item_score_val">').concat(e.ts,"</div>"),i.appendChild(o),t.$leaderboard.append(i)}),!this.leaderboardLoaded))){var n=this.$leaderboard.querySelector(".leaderboard-item.me");n&&this.place>5&&(this.$leaderboard.scrollTop=n.offsetTop-45<0?0:n.offsetTop-45),this.leaderboardLoaded=!0}},e.prototype.calculateUserData=function(){if(null==(e=this.storage.data)?void 0:e.tournament){var e,t,n=null==(t=this.storage.data)?void 0:t.tournament,r=n.scores;"running"===n.status?(this.score=r.sort(function(e,t){return t.ts-e.ts}),this.place=this.score.findIndex(function(e){return e.p})+1):(this.score=[],this.place=1)}},e.prototype.initByData=function(){var e,t,n,r,i,o,s,a,l,c,u,d,h,p,f,g,m;return eU(this,void 0,void 0,function(){var v,y,w,b,S,x,k,E,C,P,L,I,O;return eW(this,function(M){switch(M.label){case 0:if(this.$headerLinkWrapper.forEach(function(e){return(0,_.pP)(e).remove("showed").add("soon")}),!((null==(e=this.storage.data)?void 0:e.tournament_result)&&(null==(n=null==(t=this.storage.data)?void 0:t.tournament_result)?void 0:n.status)==="completed"))return[3,3];if(y=(v=null==(r=this.storage.data)?void 0:r.tournament_result).scores,v.uuid,S=(b=(w=v.achievements)&&w.length?w[0]:null)?b.place:0,x=0,y&&(k=y.sort(function(e,t){return t.ts-e.ts}),S||(S=k.findIndex(function(e){return e.p})+1),x=k[S-1].ts),this.$finishMedal&&((0,_.pP)(this.$finishMedal).remove("win-medal").remove("active"),this.$finishMedal.removeAttribute("src"),this.$finishMedal.removeAttribute("srcset")),E="",!(b&&b.award&&!b.is_silent))return[3,2];return eY.addAward(b.award,this.serverTime||Math.floor(Date.now()/1e3),"tournament",(0,eD.NF)(b.medal)),[4,eY.getAwards()];case 1:E=null==(i=M.sent().find(function(e){return e.award_id===b.award}))?void 0:i.url,(null==(s=null==(o=this.storage.data)?void 0:o.tournament_result)?void 0:s.is_silent)||(null==(a=this.storage.data)?void 0:a.tournament_result.sent)||window.notification.add("tournaments"),M.label=2;case 2:(null==(l=this.storage.data)?void 0:l.tournament_result.sent)||(C={id:null==(d=null==(u=null==(c=this.storage.data)?void 0:c.tournament_result)?void 0:u.info)?void 0:d.name,place:S,points:x,award:w&&w.length?w[0].medal:""},window.isShowAnalytics&&((0,A.B)("tournaments_finish",C),ec.ets.send("tournaments_finish",C)),this.storage.data.tournament_result.sent=!0,this.saveCurrentConfig()),!this.$winPopup||(null==(p=null==(h=this.storage.data)?void 0:h.tournament_result)?void 0:p.is_silent)||(null==(f=this.storage.data)?void 0:f.tournament_result.showed)||(this.$finishMedal&&(E&&(0,_.pP)(this.$finishMedal).add("win-medal"),this.$finishMedal.setAttribute("src",E||"/img/img-tournament-completed.png"),this.$finishMedal.setAttribute("srcset",E?"".concat(E," 1x, ").concat(E," 2x"):"/img/img-tournament-completed.png 1x, /img/[email protected] 2x")),this.showWinPopup(w)),M.label=3;case 3:if(!(null==(g=this.storage.data)?void 0:g.tournament)||(this.calculateUserData(),L=(P=null==(m=this.storage.data)?void 0:m.tournament).info,I=P.status,O=P.inited,L.end_time&&L.end_time<(this.serverTime||Date.now()/1e3)))return[2];return this.timer=("running"!==I?L.start_time:L.end_time)-(this.serverTime||Date.now()/1e3),this.startTimer(),"running"===I?(this.$headerLinkWrapper.forEach(function(e){return(0,_.pP)(e).remove("soon").add("showed")}),this.showLeaderBoard()):this.$wrapper&&(0,_.pP)(this.$wrapper).remove(eK.SHOW_LEADERBOARD).add(eK.SHOW_TIMER),this.$wrapper&&(0,_.pP)(this.$wrapper).remove("loading"),!O&&window.isShowAnalytics&&"running"===I&&((0,A.B)("tournaments_new",{id:null==L?void 0:L.name}),ec.ets.send("tournaments_new",{id:null==L?void 0:L.name}),this.storage.data.tournament.inited=!0,this.saveCurrentConfig()),T.lw&&localStorage.getItem(eu.LS.TOURNAMENT_HIW)&&this.$hiwPopup&&!(0,_.pP)(this.$hiwPopup).contains("open")&&this.showAdditionalReward(),[2]}})})},e.prototype.showWinPopup=function(e){var t,n,r,i,o,s,a=this;this.storage&&(null==(t=this.storage.data)?void 0:t.tournament_result)&&(null==(r=null==(n=this.storage.data)?void 0:n.tournament_result)?void 0:r.status)==="completed"&&this.$winPopup&&!(null==(o=null==(i=this.storage.data)?void 0:i.tournament_result)?void 0:o.is_silent)&&!(null==(s=this.storage.data)?void 0:s.tournament_result.showed)&&O.P.emit(I.Ps.showPopup,{type:e&&e.length?eG.n.positive:eG.n.negative,func:function(){window.deviceType!==I.bq.phone&&window.matchMedia("(min-width: 768px)").matches||(0,_.pP)(a.$body).add("overflow"),(0,_.pP)(a.$winPopup).add(e&&e.length?"show-win-text":"show-lose-text").add("open"),a.storage.data.tournament_result.showed=!0,a.saveCurrentConfig()},closeFunc:function(){a.storage.data.tournament_result.showed=!0,a.saveCurrentConfig()}})},e.prototype.prepareWinPopup=function(){},e.prototype.setNextUpdateTimeout=function(){return eU(this,void 0,void 0,function(){var e,t,n=this;return eW(this,function(r){switch(r.label){case 0:if(clearTimeout(this.nextUpdateTimeout),this.serverTime)return[3,2];return e=this,[4,(0,ec.getServerTimestamp)(this.domain)];case 1:e.serverTime=r.sent(),r.label=2;case 2:return clearTimeout(this.nextUpdateTimeout),t=(this.storage.errorUpdateTime||this.storage.updateTime)-this.serverTime,this.nextUpdateTimeout=setTimeout(function(){return eU(n,void 0,void 0,function(){var e;return eW(this,function(t){switch(t.label){case 0:return e=this,[4,(0,ec.getServerTimestamp)(this.domain)];case 1:return e.serverTime=t.sent(),[4,this.loadData()];case 2:return t.sent(),[2]}})})},t>0?1e3*t:0),[2]}})})},e.prototype.saveCurrentConfig=function(){T.lw&&localStorage.setItem(eu.LS.TOURNAMENT,JSON.stringify(this.storage))},e.prototype.sync=function(e){var t=this,n=this._syncChain.then(function(){return t._sync(e)});return this._syncChain=n.then(function(){},function(){}),n},e.prototype._sync=function(e){var t,n,r,i,o,s,a,l,c,u,d,h,f,g,m,v,y,w,b,S,x,k,E,C,P,T,L,I,O,A,M,N,D,R,B,F,$,j,H,z,G,q,U,W,V,Y,X,K,J,Z,Q,ee,et,en,er,ei;return eU(this,void 0,void 0,function(){var eo,es,ea,el,eu,ed,eh,ep,ef,eg,em,ev,ey,ew,eb,e_,eS,ex,ek,eE,eC;return eW(this,function(eP){switch(eP.label){case 0:if(!this.euid||!this.domain||!this.eaid)return[2];this.$wrapper&&(0,_.pP)(this.$wrapper).add("loading"),eo=this.serverTime||Date.now()/1e3,this.storage.lastForceUpdate=eo,this.saveCurrentConfig(),es=null!=(t=this.storage.games)?t:[],ea=JSON.stringify(eq(eq({},this.timezone!==(null==(n=this.storage)?void 0:n.timezone)?{timezone:this.timezone}:{}),es.length?{games:es}:{})),"string"!=typeof(eu=el=ej()("".concat(this.storage.state).concat(ea).concat(this.euid,"D00-EJH@*(N3sd").concat(this.eaid)))&&
9(eu=el.toString(ez())),e&&(this.isClickUpdate=!1),ed=es.length?"game":null,eh=this.previousUuidTournament?"upgrade":e||ed,ep=Object.values(window.abGroups||{}).join(","),eP.label=1;case 1:return eP.trys.push([1,4,,5]),[4,this.fetchOnce("".concat(this.domain,"/2.0"),{method:"POST",headers:eq(eq(eq(eq(eq({"x-easy-eaid":String(this.eaid),"x-easy-euid":String(this.euid),"x-easy-hash":eu},this.storage.state?{"x-easy-state":this.storage.state}:{}),{"Content-Type":"application/json","Accept-Encoding":"gzip, deflate","x-easy-version":(0,p.fP)(this.buildVersion)}),ep?{"x-easy-ab":ep}:{}),eh?{"x-easy-action":eh}:{}),this.previousUuidTournament?{"x-easy-tournament":this.previousUuidTournament}:{}),body:ea})];case 2:if(ef=eP.sent(),this.countRequests++,window.gameData=eq(eq({},window.gameData||{}),{message:this.countRequests}),this.previousUuidTournament&&(this.previousUuidTournament=null),this.serverTime=parseInt(null!=(r=ef.headers.get("x-easy-time"))?r:"0")||Date.now()/1e3,(0,ec.updateServerTimestamp)(this.serverTime),304===ef.status)return eg=Date.now()/1e3,em=parseInt(ef.headers.get("x-easy-time"))||eg,ev=parseInt(ef.headers.get("x-easy-update-time"))||em+60*(0,p.Yy)(300,360),delete this.storage.errorUpdateTime,delete this.storage.countErrors,this.serverTime=em,this.storage.state=null!=(i=ef.headers.get("x-easy-state"))?i:"",this.storage.timezone=this.timezone,this.storage.updateTime=em+(ev-em),this.setNextUpdateTimeout(),this.saveCurrentConfig(),this.initByData(),[2,null];if(ef.status>=400||ef.status<200)return this.storage.countErrors=(null!=(o=this.storage.countErrors)?o:0)+1,ey=eJ[Math.min(this.storage.countErrors-1,eJ.length-1)],this.storage.errorUpdateTime=parseInt(null!=(s=ef.headers.get("x-easy-update-time"))?s:"0")||this.serverTime+60*(0,p.Yy)(ey[0],ey[1]),this.setNextUpdateTimeout(),this.initByData(),this.saveCurrentConfig(),[2,null];return(200===ef.status||300===ef.status)&&(this.storage.games=(null!=(a=this.storage.games)?a:[]).filter(function(e){return!es.includes(e)}),this.saveCurrentConfig()),[4,ef.json()];case 3:return ew=eP.sent(),eb=Date.now()/1e3,e_=parseInt(ef.headers.get("x-easy-time"))||eb,eS=parseInt(ef.headers.get("x-easy-update-time"))||e_+60*(0,p.Yy)(300,360),delete this.storage.errorUpdateTime,delete this.storage.countErrors,this.serverTime=e_,this.storage.state=null!=(l=ef.headers.get("x-easy-state"))?l:"",this.storage.timezone=this.timezone,this.storage.updateTime=e_+(eS-e_),ex=(!ew.tournament_result||"completed"!==ew.tournament_result.status||(null==(c=ew.tournament_result)?void 0:c.uuid)===(null==(d=null==(u=this.storage.data)?void 0:u.tournament_result)?void 0:d.uuid))&&(null==(f=null==(h=this.storage.data)?void 0:h.tournament_result)?void 0:f.sent),ek=(!ew.tournament_result||(null==(g=ew.tournament_result)?void 0:g.uuid)===(null==(v=null==(m=this.storage.data)?void 0:m.tournament_result)?void 0:v.uuid))&&(null==(w=null==(y=this.storage.data)?void 0:y.tournament_result)?void 0:w.showed),eE=(!ew.tournament||(null==(b=ew.tournament)?void 0:b.uuid)===(null==(x=null==(S=this.storage.data)?void 0:S.tournament)?void 0:x.uuid))&&(null==(E=null==(k=this.storage.data)?void 0:k.tournament)?void 0:E.inited),eC=!!ew.tournament_result&&(null==(P=null==(C=this.storage.data)?void 0:C.tournament)?void 0:P.uuid)===(null==(T=ew.tournament_result)?void 0:T.uuid)&&(null==(O=null==(I=null==(L=this.storage.data)?void 0:L.tournament)?void 0:I.info)?void 0:O.is_silent),this.storage.data=eq(eq({username:null!=(A=ew.username||this.storage.data.username)?A:"",achievements:ew.achievements||this.storage.data.achievements||[],application:ew.application||this.storage.data.application||{}},ew.tournament_result||(null==(M=this.storage.data)?void 0:M.tournament_result)?{tournament_result:eq(eq(eq({},(null==(N=this.storage.data)?void 0:N.tournament_result)||{}),ew.tournament_result||{}),{sent:ex,showed:ek,achievements:(null==(D=ew.tournament_result)?void 0:D.achievements)?null==(R=ew.tournament_result)?void 0:R.achievements:null,is_silent:eC,info:{name:(null==(F=null==(B=this.storage.data)?void 0:B.tournament)?void 0:F.uuid)===((null==($=null==ew?void 0:e
9w.tournament_result)?void 0:$.uuid)||(null==(H=null==(j=this.storage.data)?void 0:j.tournament_result)?void 0:H.uuid))?null==(q=null==(G=null==(z=this.storage.data)?void 0:z.tournament)?void 0:G.info)?void 0:q.name:(null==(U=null==ew?void 0:ew.tournament_result)?void 0:U.uuid)||(null==(V=null==(W=this.storage.data)?void 0:W.tournament_result)?void 0:V.uuid)}})}:{}),ew.tournament||(null==(Y=this.storage.data)?void 0:Y.tournament)?{tournament:eq(eq(eq({},(null==(X=this.storage.data)?void 0:X.tournament)||{}),ew.tournament||{}),{info:eq(eq({},(null==(J=null==(K=this.storage.data)?void 0:K.tournament)?void 0:J.info)||{}),(null==(Z=ew.tournament)?void 0:Z.info)||{}),inited:eE})}:{}),this.storage.lastForceUpdate=this.serverTime||eb,!ew.tournament&&(null==(ee=null==(Q=this.storage.data)?void 0:Q.tournament_result)?void 0:ee.uuid)&&(null==(en=null==(et=this.storage.data)?void 0:et.tournament_result)?void 0:en.uuid)===(null==(ei=null==(er=this.storage.data)?void 0:er.tournament)?void 0:ei.uuid)&&delete this.storage.data.tournament,this.setNextUpdateTimeout(),this.saveCurrentConfig(),this.initByData(),[2,!0];case 4:return console.warn(eP.sent()),this.initByData(),[2,null];case 5:return[2]}})})},e}();n(35874);var eQ=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(s,a)}l((r=r.apply(e,t||[])).next())})},e0=function(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(l){var c=[a,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&c[0]?r.return:c[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,c[1])).done)return i;switch(r=0,i&&(c=[2&c[0],i.value]),c[0]){case 0:case 1:i=c;break;case 4:return s.label++,{value:c[1],done:!1};case 5:s.label++,r=c[1],c=[0];continue;case 7:c=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===c[0]||2===c[0])){s=0;continue}if(3===c[0]&&(!i||c[1]>i[0]&&c[1]<i[3])){s.label=c[1];break}if(6===c[0]&&s.label<i[1]){s.label=i[1],i=c;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(c);break}i[2]&&s.ops.pop(),s.trys.pop();continue}c=t.call(e,s)}catch(e){c=[6,e],r=0}finally{n=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}},e1=ec.postcards.postcardsLogic,e2=ec.storybook.storybookLogic;function e5(e,t,n,r,i){if(void 0===i&&(i=!1),e.length)if(t.forEach(function(e){e.innerText=n}),!i&&r.shouldShowStartBanner()){var o;e.forEach(function(e){(0,_.pP)(e).add("showedFirstTime");var t=window.getComputedStyle(e),n=(0,_.pP)(e).contains("only-burger");"none"!==t.display&&(o=n?"menu":"header")}),r.onShowStartBanner(o)}else e.forEach(function(e){(0,_.pP)(e).add("showed")})}var e4={1:{gradA:["#ffaf10","#fff0ad","#ffaf10"],gradB:["#fff","#ffc63a"],solid:"#de9946"},2:{gradA:["#94B8CB","#D8EDF0","#94B8CB"],gradB:["#fff","#B0CBD7"],solid:"#98BBCD"},3:{gradA:["#EE743C","#FFC2A6","#EE743C"],gradB:["#FFEBEB","#F38D5E"],solid:"#D57447"}},e6={gradA:["#C9E6FF","#F6FBFF","#C9E6FF"],gradB:["#fff","#DDEFFF"],solid:"#B2DCFF"};function e3(e,t,n){var r,i=e4[t]||e6,o=` 10 <defs> 11 <linearGradient id="crowna" gradientUnits="userSpaceOnUse" x1="26.624" x2=".374023" y1="9" y2="9"><stop offset="0" stop-color="`.concat(i.gradA[0],'"/><stop offset=".504808" stop-color="').concat(i.gradA[1],'"/><stop offset="1" stop-color="').concat(i.gradA[2],`"/></linearGradient> 12 <linearGradient id="crownb" gradientUnits="userSpaceOnUse" x1="13.499" x2="13.499" y1="0" y2="4.125"><stop offset="0" stop-color="`).concat(i.gradB[0],'"/><stop offset="1" stop-color="').concat(i.gradB[1],`" stop-opacity="0"/></linearGradient> 13 </defs> 14 `),s=document.getElementById("postcards-crown-defs");if(s)s.innerHTML=o;else{var a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.setAttribute("id","postcards-crown-defs"),a.setAttribute("width","0"),a.setAttribute("height","0"),a.style.position="absolute",a.innerHTML=o,document.body.insertBefore(a,document.body.firstChild)}var l=(r=i.solid,'<svg fill="none" height="18" viewBox="0 0 27 18" width="27" xmlns="http://www.w3.org/2000/svg"><path d="m.449141 4.59577c.756519 3.06385 2.924879 13.40423 2.924879 13.40423h20.24998s2.1684-10.34038 2.9249-13.40423-4.413.27923-5.926.27923-4.8694-4.875-7.1216-4.875c-2.2523 0-5.61119 4.875-7.12426 4.875-1.51308 0-6.684421-3.34308-5.927899-.27923z" fill="#fff" fill-opacity=".01"/><path d="m.449141 4.59577c.756519 3.06385 2.924879 13.40423 2.924879 13.40423h20.24998s2.1684-10.34038 2.9249-13.40423-4.413.27923-5.926.27923-4.8694-4.875-7.1216-4.875c-2.2523 0-5.61119 4.875-7.12426 4.875-1.51308 0-6.684421-3.34308-5.927899-.27923z" fill="url(#crowna)"/><path d="m13.501.375c.4419 0 .9933.246072 1.6357.69434.6311.44034 1.2922 1.03303 1.9473 1.64257.6461.60127 1.2926 1.22488 1.8681 1.69239.289.23473.5722.4412.8409.58984.2629.14545.5477.25586.83.25586.246-.00003.5358-.06558.8282-.15332.299-.08976.6328-.21318.9775-.34668.701-.27152 1.4443-.58441 2.125-.80664.3377-.11025.6454-.19347.9102-.23535.2709-.04286.4629-.03692.5859-.00098.1016.02972.1448.0733.1709.14649.036.1009.0511.29918-.0361.65234-.38 1.53876-1.1119 4.89624-1.7481 7.86234-.3184 1.4845-.6139 2.8731-.8291 3.8906-.1076.5088-.195.925-.2558 1.2139-.0117.0555-.0226.1064-.0323.1523h-19.64059c-.00966-.0459-.02053-.0968-.03223-.1523-.06079-.2889-.14828-.7051-.25586-1.2139-.21515-1.0175-.51067-2.4061-.8291-3.8906-.63622-2.9661-1.3681-6.32358-1.748043-7.86234-.087043-.35252-.071968-.55033-.036133-.65137.026129-.07328.069187-.11767.170898-.14746.123128-.03596.315868-.04188.586918.00098.26479.0419.57245.12514.91015.23535.68082.22219 1.42393.53516 2.125.80664.34489.13355.67935.25691.97852.34668.29246.08775.58213.15331.82812.15332.28231 0 .56709-.11042.83008-.25586.26871-.1486.5518-.35517.84082-.58984.57573-.46748 1.22269-1.
1409114 1.86914-1.69239.65541-.60953 1.31691-1.20222 1.94821-1.64257.6426-.448206 1.1939-.694228 1.6358-.69434z" stroke="url(#crownb)" stroke-width=".75"/><path d="m13.5019 0c2.2521 0 5.6081 4.87429 7.1213 4.875 1.513 0 6.6826-3.3429 5.926-.27905l-.1574.65551c-.8616 3.66076-2.7671 12.74854-2.7671 12.74854h-20.25002s-1.90548-9.08778-2.767088-12.74854l-.157471-.65551c-.756507-3.06379 4.414309.27893 5.927489.27905 1.51306 0 4.87199-4.87491744 7.12429-4.875zm0 .375c-.4419.000021-.9935.246052-1.6363.69434-.6312.44033-1.2922 1.03335-1.94746 1.64282-.64639.60118-1.29345 1.22442-1.86914 1.69189-.28907.23472-.57281.44097-.84155.5896-.263.14544-.54753.25635-.82984.25635-.24596-.00002-.53521-.06608-.82764-.15381-.29916-.08976-.63361-.21215-.97851-.3457-.70119-.27151-1.44454-.58563-2.12549-.80786-.3377-.1102-.64562-.19249-.9104-.23438-.27105-.04286-.46354-.03743-.586669-.00146-.101759.02978-.144519.07392-.170654.14721-.035964.10089-.051301.29875.035888.65186.379955 1.53878 1.112065 4.89646 1.748295 7.86254.31841 1.4844.61322 2.8732.82837 3.8906.10756.5087.19556.9249.25634 1.2137.0117.0555.02257.1064.03223.1523h19.64063c.0097-.0459.0205-.0968.0322-.1523.0608-.2888.1488-.705.2564-1.2137.2151-1.0174.5099-2.4062.8283-3.8906.6363-2.96609 1.3684-6.32376 1.7483-7.86254.0872-.35306.0718-.55092.0359-.65186-.0261-.07336-.0689-.11745-.1706-.14721-.123-.03595-.315-.0414-.586.00146-.2647.04188-.5727.12413-.9104.23438-.6807.22223-1.4237.53634-2.1247.80786-.3447.13349-.6788.25596-.9778.3457-.2925.08776-.5824.15381-.8284.15381-.2822-.00009-.5663-.11098-.8291-.25635-.2687-.14864-.5525-.35484-.8415-.5896-.5755-.46748-1.2224-1.09072-1.8684-1.69189-.6551-.6095-1.3158-1.20251-1.9468-1.64282-.6425-.448268-1.1936-.69434-1.6355-.69434z" fill="'.concat(r,'"/></svg>
14')),c="postcards_header-icon place-".concat(t," ").concat(n?"crown":""),u=e.querySelector(".postcards_header-icon");if(u){u.className=c,u.innerHTML="<span>".concat(t.toString(),"</span>").concat(l);return}var d=document.createElement("div");d.className=c,d.innerHTML="<span>".concat(t.toString(),"</span>").concat(l),e.prepend(d)}var e7=function(){function e(){var e=this;this.useCompleted=!1,this._clickHandlersBound=!1,this.$eventsDropdown=document.querySelector(".events_dropdown"),this.$eventsMenu=document.querySelector(".events-menu"),this.$postcardsBanners=document.querySelectorAll(".postcards-banner"),this.$storybookBanners=document.querySelectorAll(".storybook-banner"),this.$postcardsBannerCrownPlaces=document.querySelectorAll(".events-menu_item_crown"),window.usePostcards&&(this.$postcardsHeaderLink=document.querySelectorAll(".postcards_header-link"),this.$postcardsHeaderTimer=document.querySelector(".postcards_header-timer"),this.$postcardsHeaderTitle=document.querySelectorAll(".postcards_header-title"),this.$newGameMenuButtons=document.querySelectorAll('.new-game-menu-mode-button[data-mode="postcards"]'),e1.subscribeLeaderboardUpdate(function(){e.updateLeaderboardIcons()}),O.P.subscribe(I.Ps.postcardsWinScreen,function(){e.useCompleted=!0})),this.$storybookHeaderLink=document.querySelectorAll(".storybook_header-link"),this.$storybookHeaderTimer=document.querySelector(".storybook_header-timer"),this.$storybookHeaderTitle=document.querySelectorAll(".storybook_header-title"),document.addEventListener("visibility-visible",function(){e.initByData()}),this.initByData()}return e.prototype.updateLeaderboardIcons=function(){var e,t,n,r,i,o=e1.getData();if(o&&(null==(t=null==(e=e1.config)?void 0:e.currentEvent)?void 0:t.withLeaderboard)){var s=e1.getActiveCardIndex(),a=e1.getCompletedCardIndex();null!==a&&this.useCompleted?(r=a,i=!0,this.useCompleted=!1):null!==s?(r=s,i=!1):(r=o.postcards.length-1,i=!0);var l=e1.getLeaderboardForPostcard(r),c=null!=(n=null==l?void 0:l.place)?n:0;c>0&&(this.$newGameMenuButtons.forEach(function(e){e3(e,c,i)}),this.$postcardsHeaderLink.forEach(function(e){e3(e,c,i)}),this.$postcardsBannerCrownPlaces.forEach(function(e){e3(e,c,i)}))}},e.prototype.initByData=function(){return eQ(this,void 0,void 0,function(){var e;return e0(this,function(t){switch(t.label){case 0:return e=[],window.usePostcards&&e.push(this.initPostcardsData()),e.push(this.initStorybookData()),[4,Promise.allSettled(e)];case 1:return t.sent().forEach(function(e){"rejected"===e.status&&console.error("Liveops request failed:",e.reason)}),this.showAllHeaderLinks(),[2]}})})},e.prototype.subscribeTimerEnd=function(e){var t=this,n=function(r,i){i<=1&&(e.unsubscribe(n),t.showAllHeaderLinks())};e.subscribe(n)},e.prototype.initPostcardsData=function(){var e;return eQ(this,void 0,void 0,function(){return e0(this,function(t){switch(t.label){case 0:if(!e1.request)return[3,2];return[4,e1.request];case 1:t.sent(),t.label=2;case 2:if(!e1.leaderboardReady)return[3,4];return[4,e1.leaderboardReady];case 3:t.sent(),t.label=4;case 4:return(null==(e=e1.config)?void 0:e.currentEvent)&&e1.timerManager&&this.subscribeTimerEnd(e1.timerManager),[2]}})})},e.prototype.initStorybookData=function(){var e;return eQ(this,void 0,void 0,function(){return e0(this,function(t){switch(t.label){case 0:if(!e2.request)return[3,2];return[4,e2.request];case 1:t.sent(),t.label=2;case 2:return(null==(e=e2.config)?void 0:e.currentEvent)&&e2.timerManager&&this.subscribeTimerEnd(e2.timerManager),[2]}})})},e.prototype.updateEventsBadges=function(){if(window.useEventsMenu){var e,t,n,r,i=window.usePostcards&&!!(null==(e=e1.config)?void 0:e.currentEvent)&&!e1.checkExpiring()&&!e1.config.eventCompleted&&!e1.config.currentEvent.clicked,o=!!(null==(t=e2.config)?void 0:t.currentEvent)&&!e2.checkExpiring()&&!e2.config.currentEvent.clicked;document.querySelectorAll(".postcards-banner > .events-menu_item_badge, .postcards-banner > .events_dropdown_item_badge").forEach(function(e){i?(0,_.pP)(e).add("active"):(0,_.pP)(e).remove("active")}),document.querySelectorAll(".storybook-banner > .events-menu_item_badge, .storybook-banner > .events_dropdown_item_badge").forEach(function(e){o?(0,_.pP)(e).add("active"):(0,_.pP)(e).remove("active")});var s=+!!i+ +!!o,a=document.querySelector(".game_statistics_events > .info");a&&(s>0?((0,_.pP)(a).add("active"),a.textContent="".concat(s)):(0,_.pP)(a).remove("active"));var l=document.querySelector(".events_button"),c=l.querySelector(".info");c&&l&&(s>0?((0,_.pP)(c).add("active"),2===s?c.textContent="2":l.offsetWidth<=45?c.textContent="1":c.textContent=null!=(r=null==(n=window.translationsGlobal)?void 0:n.new)?r:"New"):(0,_.pP)(c).remove("active"));var u=document.querySelector("#burger-icon");u&&window.innerWidth<768&&(s>0?(0,_.pP)(u).add("with-dot"):(0,_.pP)(u).remove("with-dot"))}},e.prototype.bindBannerClicks=function(){var e=this;window.useEventsMenu&&!this._clickHandlersBound&&(this._clickHandlersBound=!0,window.usePostcards&&this.$postcardsBanners.forEac
14h(function(t){t.addEventListener("click",function(n){n.preventDefault(),e1.config.clicked||(e1.sendOnboardingEvent(1),e1.setClicked());var r,i,o,s=(0,_.pP)(t).contains("events_dropdown_item")?"header":"menu";if(e1.clickToBanner(s),(null==(r=e1.config)?void 0:r.currentEvent)&&!(null==(o=null==(i=e1.config)?void 0:i.currentEvent)?void 0:o.clicked)&&(e1.setEventClicked(),2===window.loBannerFlow)){window.location.href=window.postcardsGameUrl;return}e.updateEventsBadges(),window.location.href=t.href})}),this.$storybookBanners.forEach(function(t){t.addEventListener("click",function(n){n.preventDefault(),e2.config.clicked||(e2.sendOnboardingEvent(1),e2.setClicked());var r,i,o,s=(0,_.pP)(t).contains("events_dropdown_item")?"header":"menu";if(e2.clickToBanner(s),(null==(r=e2.config)?void 0:r.currentEvent)&&!(null==(o=null==(i=e2.config)?void 0:i.currentEvent)?void 0:o.clicked)&&(e2.setEventClicked(),2===window.loBannerFlow)){window.location.href=window.storybookGameUrl;return}e.updateEventsBadges(),window.location.href=t.href})}))},e.prototype.showAllHeaderLinks=function(){var e=!1,t=!1;if(window.usePostcards){var n=e1.getData();if(!n||e1.checkExpiring()||e1.config.eventCompleted)this.$newGameMenuButtons.forEach(function(e){e1.config.currentEvent||e.remove()}),this.$postcardsBanners.forEach(function(e){return(0,_.pP)(e).remove("shown")}),this.$postcardsHeaderLink.forEach(function(e){return(0,_.pP)(e).remove("showed","showedFirstTime")});else{e=!0;var r=e1.getTitle();document.documentElement.style.setProperty("--postcards-gradient-start",n.bgTop),document.documentElement.style.setProperty("--postcards-gradient-end",n.bgBottom),this.$eventsDropdown&&(0,_.pP)(this.$eventsDropdown).add("wide"),this.$postcardsBanners.forEach(function(e){return(0,_.pP)(e).add("shown")}),this.$postcardsHeaderLink.length&&(this.updateLeaderboardIcons(),e5(this.$postcardsHeaderLink,this.$postcardsHeaderTitle,r,e1,!!window.useEventsMenu))}}if(!e2.getData()||e2.checkExpiring())this.$storybookBanners.forEach(function(e){return(0,_.pP)(e).remove("shown")}),this.$storybookHeaderLink.forEach(function(e){return(0,_.pP)(e).remove("showed","showedFirstTime")});else{t=!0;var r=e2.getTitle();e5(this.$storybookHeaderLink,this.$storybookHeaderTitle,r,e2,!!window.useEventsMenu),this.$eventsDropdown&&(0,_.pP)(this.$eventsDropdown).add("wide"),this.$storybookBanners.forEach(function(e){return(0,_.pP)(e).add("shown")})}t||e||!this.$eventsDropdown||(0,_.pP)(this.$eventsDropdown).remove("wide"),window.useEventsMenu&&this.listenEventsMenuOpen(),this.bindBannerClicks(),this.updateEventsBadges(),this.updateCommingItem(),this.updateEventOrder()},e.prototype.updateCommingItem=function(){if(!(window.usePostcards&&e1.getData()&&!e1.checkExpiring()&&!e1.config.eventCompleted&&e2.getData()&&!e2.checkExpiring()))return void document.querySelectorAll(".events_dropdown_item.comming").forEach(function(e){(0,_.pP)(e).remove("big")});document.querySelectorAll(".events_dropdown_item.comming").forEach(function(e){(0,_.pP)(e).add("big")})},e.prototype.updateEventOrder=function(){var e,t,n,r,i=null==(t=null==(e=e2.config)?void 0:e.currentEvent)?void 0:t.start,o=null==(r=null==(n=e1.config)?void 0:n.currentEvent)?void 0:r.start,s=window.usePostcards&&null!=i&&null!=o&&i>o;[this.$eventsDropdown,this.$eventsMenu].forEach(function(e){e&&(s?(0,_.pP)(e).add("storybook-first"):(0,_.pP)(e).remove("storybook-first"))})},e.prototype.listenEventsMenuOpen=function(){var e=function(e){window.usePostcards&&e1.shouldShowStartBanner()&&e1.onShowStartBanner(e),e2.shouldShowStartBanner()&&e2.onShowStartBanner(e)},t=document.querySelector(".events_header-link");if(t){var n=new MutationObserver(function(){(0,_.pP)(t).contains("show")&&e("header")});n.observe(t,{attributes:!0,attributeFilter:["class"]})}var r=document.querySelector(".events-menu");if(r){var n=new MutationObserver(function(){(0,_.pP)(r).contains("show")&&e("menu")});n.observe(r,{attributes:!0,attributeFilter:["class"]})}},e}(),e8={NATIVE_IMPRESSION:"ad_native_impression",NATIVE_FAIL:"ad_native_failed",NATIVE_CLOSED:"ad_native_closed",NATIVE_REQUEST:"ad_native_request"},e9=function(){return(e9=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},te="6612b6ee7dfbffe42f66d90b",tt=function(){function e(){var e,t,n,r=this,i=document.querySelector("#vidazoo-container.vid
14azoo-mobile"),o=(null==(n=null==(t=null==(e=null==window?void 0:window.eb)?void 0:e.userProfile)?void 0:t.device)?void 0:n.type)!==I.bq.desktop;this.baseEventData={placement:o?"under_game":"flying_down",service_name:I.p1.vidazoo},this.countAdRequests=0,window.onVidazooWidgetCreated=function(e){e.on("adImpression",function(e,t){r.impressionID="n".concat(Date.now()),r.startTime=Date.now(),sessionStorage.setItem("ad_native_config",JSON.stringify({provider:I.p1.vidazoo,time:Date.now()}));var n=e9({ad_serving_fee:t.adServingFee,demand_type:t.demandType,net_cpm:t.netCpm,ad_type:t.adType,bidder_code:t.bidderCode,tag_id:t.tagId,demand_partner_id:t.demandPartnerId,widget_id:window.vidazooWidgetId||te,impression_id:r.impressionID},r.baseEventData);(0,A.B)(e8.NATIVE_IMPRESSION,n),ec.ets.send(e8.NATIVE_IMPRESSION,n,!0),r.countAdRequests=0,window.vidazooFloatAds=document.querySelector('[data-view="slider"]'),o&&i&&(0,_.pP)(i).add("active");var s=document.querySelector("#vidazoo-container");s&&(0,_.pP)(s).add("ad-visible"),window.cookieBanner&&((0,M.AR)()?window.cookieBanner.view.updateConsentPaddingCMP():window.cookieBanner.updateConsentHeight())}),e.on("closeClick",function(){r.closeVideo()}),e.on("adFinish",function(){r.closeVideo()}),e.on("adRequest",function(){if(0===r.countAdRequests||r.countAdRequests%25==0){var e=e9({widget_id:window.vidazooWidgetId||te},r.baseEventData);(0,A.B)(e8.NATIVE_REQUEST,e),ec.ets.send(e8.NATIVE_REQUEST,e),window.vidazooFloatAds=document.querySelector('[data-view="slider"]'),window.cookieBanner&&((0,M.AR)()?window.cookieBanner.view.updateConsentPaddingCMP():window.cookieBanner.updateConsentHeight())}r.countAdRequests++}),e.on("adError",function(){(0,A.B)(e8.NATIVE_FAIL,r.baseEventData),ec.ets.send(e8.NATIVE_FAIL,r.baseEventData)})}}return e.prototype.closeVideo=function(){var e,t,n=document.querySelector("#vidazoo-container");n&&(0,_.pP)(n).remove("ad-visible");var r=e9(e9({},this.baseEventData),this.impressionID?{impression_id:this.impressionID}:{});if((0,A.B)(e8.NATIVE_CLOSED,r),ec.ets.send(e8.NATIVE_CLOSED,r),this.startTime){var i=(null!=(t=null==(e=window.gameData)?void 0:e.native_time_1s)?t:0)+Math.floor((Date.now()-this.startTime)/1e3);window.gameData=e9(e9({},window.gameData||{}),{native_time_1s:i})}},e}();n(36033),n(5506),n(90744);var tn=function(){return(tn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},tr=function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},ti={NATIVE_IMPRESSION:"ad_native_impression",NATIVE_FAIL:"ad_native_failed",NATIVE_CLOSED:"ad_native_closed",NATIVE_REQUEST:"ad_native_request",NATIVE_PROVIDER_CHANGE:"native_provider_change"},to={key:"primis",mobileKey:"122390",desktopKey:"117976"},ts={key:"vidazoo"},ta=["primisNativeAd1","117976","122390"],tl=["ab_videoplayers_desktop","ab_videoplayers_mobile"],tc=["default","vidazoo","300","80","60","out"],tu="ad_native_waterfall_tier",td=function(e){return"vidazoo"===e.key?I.p1.vidazoo:I.p1.primis},th=function(e){for(var t=[],n=0,r=e.split(/[^a-z]+/);n<r.length;n++){var i,o="vidazoo"===(i=r[n])?ts:"primis"===i?to:null;o&&!t.includes(o)&&t.push(o)}return t},tp=((c={})[I.p1.vidazoo]=["vidazoo.com"],c[I.p1.primis]=["primis.tech"],c),tf=new(function(){function e(){this.timers=new Map,this.patched=!1}return e.prototype.patch=function(){if(!this.patched){this.patched=!0,this.origSetTimeout=window.setTimeout.bind(window),this.origSetInterval=window.setInterval.bind(window),this.origClearTimeout=window.clearTimeout.bind(window),this.origClearInterval=window.clearInterval.bind(window);var e=this;window.setTimeout=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=e.origSetTimeout.apply(e,t),i=e.getOriginFromStack();return i&&e.timers.set(r,i),r},window.setInterval=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=e.origSetInterval.apply(e,t),i=e.getOriginFromStack();return i&&e.timers.set(r,i),r},window.clearTimeout=function(t){return null!=t&&e.timers.delete(t),e.origClearTimeout(t)},window.clearInterval=function(t){return null!=t&&e.timers.delete(t),e.origClearInterval(t)}}},e.prototype.clearByProvider=function(e){var t=this;
14tp[e]&&this.timers.forEach(function(n,r){n===e&&(t.origClearTimeout(r),t.origClearInterval(r),t.timers.delete(r))})},e.prototype.getOriginFromStack=function(){for(var e=Error().stack||"",t=0,n=Object.entries(tp);t<n.length;t++)for(var r=n[t],i=r[0],o=r[1],s=0;s<o.length;s++){var a=o[s];if(e.includes(a))return i}return null},e}()),tg=function(){function e(){var e,t,n,r=this;this.currentProvider=null,this.countAdRequests=0,this.tierIndex=0,this.waterfallTimer=null,this.lastProviderSwitchTime=null,this.tierTimerStartedAt=null,this.tierTimerCurrentMs=null,this.tierRemainingOnHide=null,this.onVisibilityChange=null,this.onPageHide=null,this.onPageShow=null,this._primisPlayer=null,this._primisPlayerInitHandler=null,this.isMobile=(null==(n=null==(t=null==(e=null==window?void 0:window.eb)?void 0:e.userProfile)?void 0:t.device)?void 0:n.type)!==I.bq.desktop,this.isDesktop=window.deviceType===I.bq.desktop,this.playersVariant=this.resolvePlayersVariant(),this.tiers=this.resolveTiers(),this.primisPlayerKey=this.resolvePrimisPlayerKey(),this.primisPlayerIds=ta.includes(this.primisPlayerKey)?ta:tr(tr([],ta,!0),[this.primisPlayerKey],!1),this.primisTimeoutMs=this.resolvePrimisTimeoutMs(),this.vidazooTimeoutMs=this.resolveVidazooTimeoutMs(),tf.patch(),this.onVisibilityChange=function(){document.hidden?r.handleHidden():r.handleVisible()},document.addEventListener("visibilitychange",this.onVisibilityChange),this.onPageHide=function(){return r.handleHidden()},this.onPageShow=function(){return r.handleVisible()},window.addEventListener("pagehide",this.onPageHide),window.addEventListener("pageshow",this.onPageShow)}return e.prototype.resolveTiers=function(){var e,t,n,r=th(String(null!=(e=null==(n=null==(t=null==window?void 0:window.eb)?void 0:t.settings)?void 0:n.native_sequence)?e:"").trim().toLowerCase());return r.length?r:"vidazoo"===this.playersVariant?[ts,to]:[to,ts]},e.prototype.resolvePlayersVariant=function(){for(var e,t=null!=(e=window.abGroups)?e:{},n=0;n<tl.length;n++){var r=t[tl[n]];if(r){var i=r.split("_").pop();if(tc.includes(i))return i}}return null},e.prototype.resolvePrimisPlayerKey=function(){var e,t,n,r=String(null!=(e=null==(n=null==(t=null==window?void 0:window.eb)?void 0:t.settings)?void 0:n.primis_tag)?e:"").trim();return r||(this.isMobile?to.mobileKey:to.desktopKey)},e.prototype.isUS=function(){var e,t,n,r;return(null==(r=null==(n=null==(t=null==(e=null==window?void 0:window.eb)?void 0:e.userProfile)?void 0:t.location)?void 0:n.country)?void 0:r.isoCode2)==="US"},e.prototype.resolvePrimisTimeoutMs=function(){var e,t,n,r=Number(null==(t=null==(e=null==window?void 0:window.eb)?void 0:e.settings)?void 0:t.plus_min_switch)||0;if(r>0)return 1e3*r;if(this.playersVariant)return"80"===this.playersVariant?this.isUS()?8e4:6e4:"60"===this.playersVariant?6e4:18e4;var i=(null!=(n=window.abGroups)?n:{}).ab_vidazoobackfill;return"ab_vidazoobackfill_180"===i?18e4:"ab_vidazoobackfill_270"===i?27e4:18e4},e.prototype.resolveVidazooTimeoutMs=function(){var e,t,n,r=Number(null==(t=null==(e=null==window?void 0:window.eb)?void 0:e.settings)?void 0:t.plus_min_switch_vidazoo)||0;if(r>0)return 1e3*r;if(this.playersVariant)return"300"===this.playersVariant?3e5:18e4;var i=(null!=(n=window.abGroups)?n:{}).ab_vidazoobackfill;return"ab_vidazoobackfill_180"===i?18e4:"ab_vidazoobackfill_270"===i?9e4:18e4},Object.defineProperty(e.prototype,"currentTierTimeoutMs",{get:function(){return this.currentProvider===I.p1.vidazoo?this.vidazooTimeoutMs:this.primisTimeoutMs},enumerable:!1,configurable:!0}),e.prototype.start=function(){this.currentProvider&&this.destroyCurrent(),this.countAdRequests=0,this.impressionID="",this.startTime=0;var e,t,n=this.readWaterfallLsState();this.lastProviderSwitchTime=null!=(e=null==n?void 0:n.switchedAt)?e:this.getEtsSessionStartMs(),this.tierIndex=null!=(t=null==n?void 0:n.tierIndex)?t:0,this.startTier(this.tierIndex)},e.prototype.destroyCurrent=function(){this.currentProvider&&(this.clearWaterfallTimer(),this.onVisibilityChange&&(document.removeEventListener("visibilitychange",this.onVisibilityChange),this.onVisibilityChange=null),this.onPageHide&&(window.removeEventListener("pagehide",this.onPageHide),this.onPageHide=null),this.onPageShow&&(window.removeEventListener("pageshow",this.onPageShow),this.onPageShow=null),tf.clearByProvider(this.currentProvider),this.currentProvider===I.p1.vidazoo?this.destroyVidazoo():this.destroyPrimis(),this.tierIndex=0,this.currentProvider=null)},e.prototype.startTier=function(e){var t=this.tiers[e],n=td(t);this.currentProvider&&this.currentProvider!==n&&(tf.clearByProvider(this.currentProvider),this.currentProvider===I.p1.vidazoo?this.destroyVidazoo():this.destroyPrimis()),this.currentProvider=n,this.baseEventData={placement:this.isMobile?"under_game":"flying_down",service_name:n},console.log("[NativeAd] startTier index=".concat(e," key=").concat(t.key," provider=").concat(n)),this.clearWaterfallTimer(),"vidazoo"===t.key?this.initVidazoo(window.vidazooWidgetId):this.initPrimis(this.primisPlayerKey),this.scheduleAdvance()},e.prototype.advanceTier=function(){var e=(this.tierIndex+1)%this.tiers.length,t=this.currentProvider,n=td(this.tiers[e]);if(t&&null!==this.lastProviderSwitchTime){var r={from:t,to:n,time_1s:Math.floor((Date.now()-this.lastProviderSwitchTime)/1e3)};(0,A.B)(ti.NATIVE_PROVIDER_CHANGE,r),ec.ets.send(ti.NATIVE_PROVIDER_CHANGE,r)}this.lastProviderSwitchTime=Date.now(),console.log("[NativeAd] advanceTier ".concat(this.tiers[this.tierIndex].key," â ").concat(this.tiers[e].key)),this.tierIndex=e,this.saveTierState(e),this.startTier(e)},e.prototype.scheduleAdvance=function(e){var t=this;void 0===e&&(e=this.currentTierTimeoutMs),this.tiers.length<2||(this.tierTimerStartedAt=Date.now(),this.tierTimerCurrentMs=e,console.log("[NativeAd] scheduleAdvance tier=".concat(this.tiers[this.tierIndex].key," delay=").concat(e,"ms")),this.waterfallTimer=window.setTimeout(function(){console.log("[NativeAd] waterfall timer fired tier=".concat(t.tiers[t.tierIndex].key)),t.advanceTier()},e))},e.prototype.clearWaterfallTimer=function(){null!==this.waterfallTimer&&(window.clearTimeout(this.waterfallTimer),this.waterfallTimer=null),this.tierTimerStartedAt=null,this.tierTimerCurrentMs=null,this.tierRemainingOnHide=null},e.prototype.handleHidden=function(){if(null!==this.waterfallTimer&&null!==this.tierTimerStartedAt&&null!==this.tierTimerCurrentMs){var e=Date.now()-this.tierTimerStartedAt,t=Math.max(0,this.tierTimerCurrentMs-e);window.clearTimeout(this.waterfallTimer),this.waterfallTimer=null,this.tierRemainingOnHide=t,console.log("[NativeAd] tab hidden, pausing tier=".concat(this.tiers[this.tierIndex].key," remaining=").concat(t,"ms"))}},e.prototype.handleVisible=function(){if(null!==this.tierRemainingOnHide){var e=this.tierRemainingOnHide;this.tierRemainingOnHide=null,console.log("[NativeAd] tab visible, resuming tier=".concat(this.tiers[this.tierIndex].key," remaining=").concat(e,"ms")),this.scheduleAdvance(e)}},e.prototype.saveTierState=function(e){try{localStorage.setItem(tu,JSON.stringify({tierIndex:e,session:ec.ets.session,switchedAt:Date.now()}))}catch(e){}},e.prototype.readWaterfallLsState=function(){try{var e=localStorage.getItem(tu);if(!e)return null;
14var t=JSON.parse(e),n=t.tierIndex,r=t.session,i=t.switchedAt;if(r===ec.ets.session&&"number"==typeof n)return{tierIndex:Math.min(n,this.tiers.length-1),switchedAt:"number"==typeof i?i:null}}catch(e){}return null},e.prototype.getEtsSessionStartMs=function(){try{var e=localStorage.getItem("ets_session");if(e){var t=JSON.parse(e).date;if("number"==typeof t)return Math.round(1e3*t)}}catch(e){}return Date.now()},e.prototype.onImpression=function(){this.saveTierState(this.tierIndex),this.clearWaterfallTimer(),this.scheduleAdvance()},e.prototype.initVidazoo=function(e){var t=this;window.onVidazooWidgetCreated=function(n){t.currentProvider===I.p1.vidazoo&&(n.on("adImpression",function(n,r){if(t.currentProvider===I.p1.vidazoo){t.impressionID="n".concat(Date.now()),t.startTime=Date.now(),sessionStorage.setItem("ad_native_config",JSON.stringify({provider:I.p1.vidazoo,time:Date.now()}));var i=tn({ad_serving_fee:r.adServingFee,demand_type:r.demandType,net_cpm:r.netCpm,ad_type:r.adType,bidder_code:r.bidderCode,tag_id:r.tagId,demand_partner_id:r.demandPartnerId,widget_id:e,impression_id:t.impressionID},t.baseEventData);(0,A.B)(ti.NATIVE_IMPRESSION,i),ec.ets.send(ti.NATIVE_IMPRESSION,i,!0),t.countAdRequests=0,console.log("[NativeAd] vidazoo impression tier=".concat(t.tiers[t.tierIndex].key,", resetting timer")),t.onImpression(),t.setAdVisible(I.p1.vidazoo,!0),window.vidazooFloatAds=document.querySelector('[data-view="slider"]');var o=document.querySelector("#vidazoo-container.vidazoo-mobile");t.isMobile&&o&&(0,_.pP)(o).add("active"),t.updateCookieBanner()}}),n.on("closeClick",function(){t.currentProvider===I.p1.vidazoo&&t.closeVidazoo()}),n.on("adFinish",function(){t.currentProvider===I.p1.vidazoo&&t.closeVidazoo()}),n.on("adRequest",function(){if(t.currentProvider===I.p1.vidazoo){if(console.log("[NativeAd] vidazoo request tier=".concat(t.tiers[t.tierIndex].key," count=").concat(t.countAdRequests)),0===t.countAdRequests||t.countAdRequests%25==0){var n=tn({widget_id:e},t.baseEventData);(0,A.B)(ti.NATIVE_REQUEST,n),ec.ets.send(ti.NATIVE_REQUEST,n),window.vidazooFloatAds=document.querySelector('[data-view="slider"]'),t.updateCookieBanner()}t.countAdRequests++}}),n.on("adError",function(){t.currentProvider===I.p1.vidazoo&&((0,A.B)(ti.NATIVE_FAIL,t.baseEventData),ec.ets.send(ti.NATIVE_FAIL,t.baseEventData))}))},this.injectVidazooScript(e)},e.prototype.injectVidazooScript=function(e){var t=document.createElement("script");t.src="//static.vidazoo.com/basev/vwpt.js",t.async=!0,t.setAttribute("data-widget-id",e),t.setAttribute("data-widget-position","vidazoo-container"),t.setAttribute("data-widget-created","onVidazooWidgetCreated"),t.setAttribute("data-native-ad-sdk","vidazoo"),document.body.appendChild(t)},e.prototype.closeVidazoo=function(){this.setAdVisible(I.p1.vidazoo,!1);var e,t,n=tn(tn({},this.baseEventData),this.impressionID?{impression_id:this.impressionID}:{});if((0,A.B)(ti.NATIVE_CLOSED,n),ec.ets.send(ti.NATIVE_CLOSED,n),this.startTime){var r=(null!=(t=null==(e=window.gameData)?void 0:e.native_time_1s)?t:0)+Math.floor((Date.now()-this.startTime)/1e3);window.gameData=tn(tn({},window.gameData||{}),{native_time_1s:r})}},e.prototype.destroyVidazoo=function(){var e=document.querySelector("#vidazoo-container");e&&(e.innerHTML="",(0,_.pP)(e).remove("active"),(0,_.pP)(e).remove("ad-visible")),document.querySelectorAll('script[data-native-ad-sdk="vidazoo"]').forEach(function(e){return e.remove()}),document.querySelectorAll('script[src*="vidazoo.com"]').forEach(function(e){return e.remove()}),document.querySelectorAll('iframe[src*="vidazoo.com"]').forEach(function(e){return e.remove()}),document.querySelectorAll('[data-view="slider"]').forEach(function(e){return e.remove()}),window.onVidazooWidgetCreated=void 0,window.vidazooFloatAds=void 0},e.prototype.initPrimis=function(e){var t=this;this._primisPlayerInitHandler=function(e){var n;t.primisPlayerIds.includes(null==(n=e.detail)?void 0:n.playerApiId)&&t.currentProvider===I.p1.primis&&(t._primisPlayer=e.detail,t.isMobile&&t._primisPlayer.setConfig&&t._primisPlayer.setConfig({floatInitalStatus:"disable"}),t._primisPlayer.addEventListener("adStarted",function(e){if(t.currentProvider===I.p1.primis){var n=tn({imp_value:e.impValue,serving_fee:e.servingFee,widget_id:t._primisPlayer.playerApiId},t.baseEventData);(0,A.B)(ti.NATIVE_IMPRESSION,n),ec.ets.send(ti.NATIVE_IMPRESSION,n,!0),sessionStorage.setItem("ad_native_config",JSON.stringify({provider:I.p1.primis,time:Date.now()})),console.log("[NativeAd] primis impression tier=".concat(t.tiers[t.tierIndex].key,", resetting timer")),t.onImpression(),t.setAdVisible(I.p1.primis,!0),window.primisFloatAds=document.querySelector("#primis-container.primis-float iframe + div > div"),t.updateCookieBanner()}}),t._primisPlayer.addEventListener("adOpportunity",function(){if(t.currentProvider===I.p1.primis){console.log("[NativeAd] primis request tier=".concat(t.tiers[t.tierIndex].key));var e=tn({widget_id:t._primisPlayer.playerApiId},t.baseEventData);(0,A.B)(ti.NATIVE_REQUEST,e),ec.ets.send(ti.NATIVE_REQUEST,e)}}),t._primisPlayer.addEventListener("adCompleted",function(){t.currentProvider===I.p1.primis&&t.closePrimis()}),t._primisPlayer.addEventListener("adSkip",function(){t.currentProvider===I.p1.primis&&t.closePrimis()}))},window.addEventListener("primisPlayerInit",this._primisPlayerInitHandler),this.injectPrimisScript(e)},e.prototype.injectPrimisScript=function(e){var t=document.createElement("script");t.src="https://live.primis.tech/live/liveView.php?s=".concat(e,"&cbuster=%%CACHEBUSTER%%&playerApiId=").concat(e),t.type="text/javascript",t.setAttribute("data-native-ad-sdk","primis");var n=document.querySelector("#primis-container");n&&n.appendChild(t)},e.prototype.closePrimis=function(){this.setAdVisible(I.p1.primis,!1);var e,t=tn({widget_id:null==(e=this._primisPlayer)?void 0:e.playerApiId},this.baseEventData);(0,A.B)(ti.NATIVE_CLOSED,t),ec.ets.send(ti.NATIVE_CLOSED,t)},e.prototype.destroyPrimis=function(){if(this._primisPlayerInitHandler&&(window.removeEventListener("primisPlayerInit",this._primisPlayerInitHandler),this._primisPlayerInitHandler=null),this._primisPlayer){try{this._primisPlayer.removePrimisPlayer()}catch(e){}this._primisPlayer=null}document.querySelectorAll('script[data-native-ad-sdk="primis"]').forEach(function(e){return e.remove()}),document.querySelectorAll('script[src*="primis.tech"]').forEach(function(e){return e.remove()}),document.querySelectorAll('iframe[src*="primis.tech"]').forEach(function(e){return e.remove()});var e=document.querySelector("#primis-container");e&&(e.innerHTML="",(0,_.pP)(e).remove("ad-visible")),window.primisFloatAds=void 0},e.prototype.setAdVisible=function(e,t){var n=e===I.p1.vidazoo?"#vid
14azoo-container":"#primis-container",r=document.querySelector(n);r&&(0,_.pP)(r)[t?"add":"remove"]("ad-visible")},e.prototype.updateCookieBanner=function(){window.cookieBanner&&((0,M.AR)()?window.cookieBanner.view.updateConsentPaddingCMP():window.cookieBanner.updateConsentHeight())},e}(),tm=n(29208),tv=n(75535),ty=n(91070),tw=ec.components.Popup,tb=ec.croco.crocoLogic,t_=function(e){var t,n,r,i,o,s=e.parent,a=e.awardUrl,l=(0,ty.useState)(!1),c=l[0],u=l[1],d=function(){u(!1),setTimeout(function(){s&&(0,_.pP)(s).remove("active"),O.P.emit(I.Ps.initCrocoBanner),O.P.emit(I.Ps.showNextPopup)},400)};return(0,ty.useEffect)(function(){setTimeout(function(){u(!0),tb.nextEvent()},300)},[]),(0,tv.h)(tw,{color:"blue",show:c,onClose:d,items:[{btns:[{text:null!=(t=window.moduleTranslations.ok)?t:"OK",func:d}],text:null!=(r=null==(n=window.crocoPopupsTranslations)?void 0:n.congratsText)?r:"You have completed the event and won a reward!",image:(0,tv.h)("img",{src:a,alt:"img1"})}],title:{value:null!=(o=null==(i=window.crocoPopupsTranslations)?void 0:i.congtatsTitle)?o:"Congratulations!"}})};let tS=n.p+"images/croco-timeisup.2b1971ec.png",tx=n.p+"images/[email protected]";var tk=ec.components.Popup,tE=ec.components.Timer,tC=ec.croco.crocoLogic,tP=function(e){var t,n,r,i,o,s,a=e.parent,l=(0,ty.useState)(!1),c=l[0],u=l[1],d=function(){u(!1),setTimeout(function(){a&&(0,_.pP)(a).remove("active"),O.P.emit(I.Ps.showNextPopup)},400)};return(0,ty.useEffect)(function(){setTimeout(function(){u(!0),tC.nextEvent(),O.P.emit(I.Ps.initCrocoBanner)},300)},[]),(0,tv.h)(tk,{color:"blue",show:c,onClose:d,items:[{btns:[{text:null!=(t=window.moduleTranslations.ok)?t:"OK",func:d}],text:null!=(r=null==(n=window.crocoPopupsTranslations)?void 0:n.timeUpText)?r:"Unfortunately, your First Try Challenge wasnât completed in time. Stay tuned for more events!",image:(0,tv.h)("img",{src:tS,srcSet:"".concat(tS," 1x, ").concat(tx," 2x"),alt:"img1"}),timer:(0,tv.h)(tE,{timeIsUp:null==(i=window.crocoPopupsTranslations)?void 0:i.timeUpTitle})}],title:{value:null!=(s=null==(o=window.crocoPopupsTranslations)?void 0:o.title)?s:"First Try Challenge"}})},tT=n(53267),tL=n(3869),tI=function(e){var t=e.params,n=e.isHiding,r=(0,ty.useState)(!1),i=r[0],o=r[1];return(0,tv.h)("div",{class:"lost-progress-parent ".concat(n?"hiding":"")},(0,tv.h)("div",{class:"lost-progress"},(0,tv.h)("div",{class:"lost-progress_title"},window.translations.start_new_game),(0,tv.h)("div",{class:"lost-progress_desc"},window.translations.lost_progress_text),(0,tv.h)("div",{class:"lost-progress_buttons"},(0,tv.h)("button",{class:"button",id:"lost-progress-ok",onClick:function(){if(i&&ex.default.dispatch(ek.bE.setHideLostProgress),T.lw&&(localStorage.removeItem(ex.default.state.mode===I.dX.killer?eu.LS.MAIN_GAME_KILLER:eu.LS.MAIN_GAME),localStorage.removeItem(eu.LS.HISTORY_ACTIONS),sessionStorage.setItem(eu.f.GAME_PLACEMENT,"change_difficulty")),window.mode&&ex.default.state.settings[I.wB.imaAdsOnStart]&&!ex.default.state.finished){ex.default.dispatch(ek.bE.setPaused,!1),O.P.emit(I.Ps.stopTimer,!0),O.P.emit(I.Ps.hideLostProgressPopup),ex.default.commit(ek.bE.setDifficulty,t.difficulty),ex.default.commit(ek.bE.setMode,t.mode),ex.default.commit(ek.bE.prepareBoard,null),ex.default.commit(ek.bE.setSelected,0),window.needToRestartPageOnChangeMode||ex.default.dispatch(ek.bE.requestNewContent),window.needToRestartPageOnChangeMode?(T.lw&&localStorage.removeItem(ex.default.state.mode===I.dX.killer?eu.LS.MAIN_GAME_KILLER:eu.LS.MAIN_GAME),window.location.href=t.link):(ex.default.dispatch(ek.bE.checkSavedGame),O.P.emit(I.Ps.processNewGame)),O.P.emit(I.Ps.setActiveDifficulty,{difficulty:t.difficulty,replace:!0});return}sessionStorage.setItem(eu.f.FROM_WIN,"1"),window.location.href=t.link}},"OK"),(0,tv.h)("button",{class:"button transparent",id:"lost-progress-cancel",onClick:function(){O.P.emit(I.Ps.hideLostProgressPopup)}},window.translations.cancel_text)),(0,tv.h)("div",{class:"lost-progress_ask"},(0,tv.h)("label",{class:"checkbox"},(0,tv.h)("input",{type:"checkbox",id:"dont-ask-again-progress",name:"dont-ask-again-progress",checked:i,onChange:function(e){o(e.target.checked)}}),(0,tv.h)("span",{class:"checkbox-icon"}),(0,tv.h)("span",{class:"checkbox_text"},window.translations.dont_ask_again)))))};n(72712);var tO=function(){return(tO=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},tA=((u={})[ek.wB.emojiOnProgress]="a_emoji",u[ek.wB.animatedAreaFinish]="a_area_finish",u[ek.wB.animatedLevelFinish]="a_level_finish",u[ek.wB.highlightDuplicates]="h_duplicates",u[ek.wB.hightlightAreas]="h_areas",u[ek.wB.hightlightIdenticalNumbers]="h_numbers",u[ek.wB.bestMove]="a_best_move",u),tM=function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}([{title:window.translations.settings_animated_emoji_title,value:window.translations.settings_animated_emoji_body,key:ek.wB.emojiOnProgress},{title:window.translations.settings_animate_areas_title,value:window.translations.settings_animate_areas_body,key:ek.wB.animatedAreaFinish},{title:window.translations.settings_animate_levels_title,value:window.translations.settings_animate_levels_body,key:ek.wB.animatedLevelFinish},{title:window.translations.settings_highlight_duplicates_title,value:window.translations.settings_highlight_deplicates_body,key:ek.wB.highlightDuplicates},{title:window.translations.settings_highlight_areas_title,value:window.translations.settings_highlight_areas_body,key:ek.wB.hightlightAreas},{title:window.translations.settings_highlight_identical_numbers_title,value:window.translations.settings_highlight_identical_numbers_body,key:ek.wB.hightlightIdenticalNumbers}],window.useBestMove?[{title:window.translations.settings_best_move_title,value:window.translations.settings_best_move_body,key:ek.wB.bestMove}]:[],!0),tN=function(e){var t=e.overPopup,n=(0,ty.useState)(tM.reduce(function(e,t){var n;return tO(tO({},e),((n={})[t.key]=ex.default.state.animationSettings[t.key],n))},{})),r=n[0],i=n[1],o=(0,p.Dl)(!0),s=function(){ex.default.state.showPopupSettings&&!ex.default.state.pausedGame&&(O.P.emit(I.Ps.startTimer),O.P.emit(I.Ps.startScoreTimer)),ex.default.commit(ek.bE.setShowPopupSettings,!1),O.P.emit(I.Ps.hideSettingsPopup);var e={number:ex.default.state.countSettingsOpens,action:"close",placement:o};ec.ets.send("g_settings_action",e),(0,A.B)("g_settings_action",e)},a=function(e){var t,n={number:ex.default.state.countSettingsOpens,action:"".concat(tA[e],"_").concat(r[e]?"off":"on"),placement:o};ec.ets.send("g_settings_action",n),(0,A.B)("g_settings_action",n),i(tO(tO({},r),((t={})[e]=!r[e],t))),ex.default.dispatch(ek.bE.updateAnimationSettings,e),O.P.emit(I.Ps.repaintGameBoard),e!==ek.wB.emojiOnProgress||r[e]||O.P.emit(I.Ps.updateEmojiSetup)};return(0,tv.h)("div",{class:"game_settings ".concat(window.useModules?"modules":"no-modules")},!t&&(0,tv.h)("div",{class:"game_settings_overlay",onClick:s}),(0,tv.h)("div",{class:"game_settings_body"},(0,tv.h)("div",{class:"game_settings_header"},(0,tv.h)("div",{class:"game_settings_header_title"},window.translations.settings_title),(0,tv.h)("button",{onClick:s,class:"game_settings_header_button"})),(0,tv.h)("div",{class:"game_settings_content"},tM.map(function(e){return(0,tv.h)("div",{class:"game_settings_content_item ".concat(r[e.key]?"active-toggle":""),key:e.key,onClick:function(){return a(e.key)}},(0,tv.h)("div",{className:"game_settings_content_item_left"},(0,tv.h)("div",{class:"game_settings_content_item_title"},e.title),(0,tv.h)("div",{class:"game_settings_content_item_value"},e.value)),(0,tv.h)("div",{class:"game_settings_content_item_right"},(0,tv.h)("div",{class:"game_settings_toggle"})))}))))},tD=function(){var e=(0,ty.useState)(!1),t=e[0],n=e[1],r=(0,ty.useState)(!1),i=r[0],o=r[1],s=(0,ty.useState)(!1),a=s[0],l=s[1],c=(0,t
14y.useState)(null),u=c[0],d=c[1],h=(0,ty.useState)(!1),f=h[0],g=h[1],m=(0,ty.useRef)(a);(0,ty.useEffect)(function(){m.current=a},[a]);var v=(0,p.Dl)(!0);return(0,ty.useEffect)(function(){var e=document.querySelector("#modules-container");t||a?(a?n(!1):t&&l(!1),(0,_.pP)(e).add("active")):(0,_.pP)(e).remove("active")},[t,a]),(0,ty.useEffect)(function(){window.useModules&&(O.P.subscribe(I.Ps.showLostProgressPopup,function(e){d(e),n(!0),g(!1)}),O.P.subscribe(I.Ps.hideLostProgressPopup,function(){n(!1),g(!1)})),O.P.subscribe(I.Ps.showSettingsPopup,function(e){if(m.current)return void O.P.emit(I.Ps.hideSettingsPopup);var t=document.querySelector(".game_statistics_events");t&&(0,_.pP)(t).add("hidden"),ex.default.dispatch(ek.bE.setShowPopupSettings,!0),o(!!e),l(!0);var n={number:ex.default.state.countSettingsOpens,placement:v};ec.ets.send("g_settings_display",n),(0,A.B)("g_settings_display",n)}),O.P.subscribe(I.Ps.hideSettingsPopup,function(){var e=document.querySelector(".game_statistics_events");e&&(0,_.pP)(e).remove("hidden"),l(!1)})},[]),(0,tv.h)(tv.Fragment,null,t&&(0,tv.h)(tI,{params:u,isHiding:f}),a&&(0,tv.h)(tN,{overPopup:i}))},tR={NATIVE_IMPRESSION:"ad_native_impression",NATIVE_CLOSED:"ad_native_closed",NATIVE_REQUEST:"ad_native_request"},tB=function(){return(tB=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},tF=["primisNativeAd1","122390","117976","122428","122429"],t$=function(){function e(){var e,t,n,r=this,i=(null==(n=null==(t=null==(e=null==window?void 0:window.eb)?void 0:e.userProfile)?void 0:t.device)?void 0:n.type)!==I.bq.desktop;this.baseEventData={placement:i?"under_game":"flying_down",service_name:I.p1.primis},this.$wrapper=document.querySelector("#primis-container"),this.player=null,window.addEventListener("primisPlayerInit",function(e){tF.includes(e.detail.playerApiId)&&(r.player=e.detail,i&&r.player&&r.player.setConfig&&r.player.setConfig({floatInitalStatus:"disable"}),r.updatePosition(),r.player.addEventListener("adStarted",function(e){var t=tB({imp_value:e.impValue,serving_fee:e.servingFee,widget_id:r.player.playerApiId},r.baseEventData);(0,A.B)(tR.NATIVE_IMPRESSION,t),ec.ets.send(tR.NATIVE_IMPRESSION,t,!0),sessionStorage.setItem("ad_native_config",JSON.stringify({provider:I.p1.primis,time:Date.now()})),r.$wrapper&&(0,_.pP)(r.$wrapper).add("ad-visible"),r.updatePosition()}),r.player.addEventListener("adOpportunity",function(){var e=tB({widget_id:r.player.playerApiId},r.baseEventData);(0,A.B)(tR.NATIVE_REQUEST,e),ec.ets.send(tR.NATIVE_REQUEST,e)}),r.player.addEventListener("adCompleted",r.onClose.bind(r)),r.player.addEventListener("adSkip",r.onClose.bind(r)))})}return e.prototype.updatePosition=function(){window.primisFloatAds=document.querySelector("#primis-container.primis-float iframe + div > div"),window.cookieBanner&&((0,M.AR)()?window.cookieBanner.view.updateConsentPaddingCMP():window.cookieBanner.updateConsentHeight())},e.prototype.onClose=function(){this.$wrapper&&(0,_.pP)(this.$wrapper).remove("ad-visible");var e,t=tB({widget_id:null==(e=this.player)?void 0:e.playerApiId},this.baseEventData);(0,A.B)(tR.NATIVE_CLOSED,t),ec.ets.send(tR.NATIVE_CLOSED,t)},e}();n(3296),n(27208);var tj=function(){return(tj=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},tH="ad_redirect",tz="redirect_log",tG="redirect_log_rows",tq=[["primis.tech","Primis"],["vidazoo.com","Vidazoo"],["anyclip.com","Anyclip"],["doubleclick.net","AdManager"],["googlesyndication.com","AdManager"],["rfunbox.com","Rise"],["prebid","prebid"]],tU=!1,tW=!1,tV=!1,tY=!1,tX=0,tK="",tJ=0,tZ=[],tQ=null,t0=[],t1=function(e){if(!e)return"";try{return new URL(String(e),location.href).hostname.toLowerCase()}catch(e){return""}},t2=function(){var e="";try{e=Error().stack||""}catch(e){return["",""]}for(var t=0;t<tq.length;t++){var n=tq[t],r=n[0],i=n[1];if(-1!==e.indexOf(r))return[i,r]}return["",""]},t5=function(){var e,t=document.activeElement;return(t&&"IFRAME"===t.tagName?t1(t.src):"")+"|"+(null!=(e=t0[t0.length-1])?e:"")+"|"+document.getElementsByTagName("iframe").length},t4=function(e){tQ=e},t6=function(e){if(!tQ||!e||!("navigation"in window))return!1;try{return tQ(String(e))}catch(e){return!1}},t3=function(e,t){void 0===t&&(t=!1);var n=t2(),r=n[0],i=n[1];return{dest_url:e?String(e).slice(0,200):"",sdk_hint:r,stack_host:i,active_frame:t5(),blocked:+!!t}},t7=function(e){if(tV){console.info("[ad_redirect]",e);try{var t=localStorage.getItem(tG),n=t?JSON.parse(t):[];n.push(tj(tj({},e),{at:new Date().toISOString(),page:location.pathname})),localStorage.setItem(tG,JSON.stringify(n.slice(-20)))}catch(e){}}},t8=function(){try{return JSON.parse(localStorage.getItem(tG)||"[]")}catch(e){return[]}},t9=function(){try{var e=location.search.toLowerCase();if(-1!==e.indexOf(tz+"=0"))return localStorage.removeItem(tz),!1;if(-1!==e.indexOf(tz+"=1"))return localStorage.setItem(tz,"1"),!0;return"1"===localStorage.getItem(tz)}catch(e){return!1}},ne=function(){window.ebRedirectLog={get enabled(){return tW},get debug(){return tV},get setting(){var e,t;return!!(null==(t=null==(e=window.eb)?void 0:e.settings)?void 0:t.use_redirect_logging)},get queued(){return tZ.length},get etsReady(){return tY}
14,get log(){return t8()},probe:function(e){void 0===e&&(e="https://redirect-log.probe/test");var t=t3(e);return nn(t),t},clear:function(){try{localStorage.removeItem(tG)}catch(e){}}}},nt=function(e){ec.ets.send(tH,e,!0),(0,A.B)(tH,e)},nn=function(e){if(t7(e),tY)return void nt(e);tZ.push(e),tZ.length>5&&(tZ=tZ.slice(-5))},nr=function(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=!1),tW){var r=t1(e);if(!(!r||r===location.hostname||!t&&!n&&Date.now()-tX<1e3)){var i=String(e),o=Date.now();i===tK&&o-tJ<2e3||(tK=i,tJ=o,nn(t3(e,n)))}}},ni=function(){tY=!0;var e=tZ;tZ=[],e.forEach(nt)},no=function(){var e=function(e){e.isTrusted&&(tX=Date.now())};["pointerdown","mousedown","touchstart","keydown","click"].forEach(function(t){document.addEventListener(t,e,{capture:!0,passive:!0})})},ns=function(e){try{var t=e.open.bind(e);e.open=function(e,n,r){return nr(e?String(e):null),t(e,n,r)}}catch(e){}},na=function(){try{var e=HTMLElement.prototype.click;HTMLElement.prototype.click=function(){var t=this.href;return t&&nr(t,!1,t6(t)),e.call(this)}}catch(e){}["submit","requestSubmit"].forEach(function(e){try{var t=HTMLFormElement.prototype[e];if("function"!=typeof t)return;HTMLFormElement.prototype[e]=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return nr(this.action,!1,t6(this.action)),t.apply(this,e)}}catch(e){}})},nl=function(){var e=window.navigation;(null==e?void 0:e.addEventListener)&&e.addEventListener("navigate",function(e){if(!e.hashChange&&!e.downloadRequest){var t,n=null==(t=e.destination)?void 0:t.url;nr(n,!1,t6(n))}})},nc=function(){"undefined"!=typeof MutationObserver&&new MutationObserver(function(e){for(var t=0;t<e.length;t++)e[t].addedNodes.forEach(function(e){if(e instanceof Element){if("IFRAME"===e.tagName){t0.push(t1(e.src)||"about:blank"),t0.length>5&&t0.shift(),e.contentWindow&&ns(e.contentWindow);return}if("META"===e.tagName&&"refresh"===(e.getAttribute("http-equiv")||"").toLowerCase()){var t=(e.getAttribute("content")||"").split(/url=/i)[1];nr(t||null,!0,t6(t))}}})}).observe(document.documentElement,{childList:!0,subtree:!0})},nu=function(){var e,t;!tU&&(tU=!0,tW=(tV=t9())||!!(null==(t=null==(e=window.eb)?void 0:e.settings)?void 0:t.use_redirect_logging),ne(),tW&&(no(),ns(window),na(),nl(),nc()))},nd=n(63461);n(31415);var nh="nav_rules",np=new Set,nf=new Set,ng=function(e){for(var t=0x811c9dc5,n=0;n<e.length;n++)t^=e.charCodeAt(n),t=Math.imul(t,0x1000193)>>>0;for(var r=t.toString(16);r.length<8;)r="0"+r;return r},nm=function(e){for(var t=e.split("."),n=[],r=0;r<=t.length-2;r++)n.push(t.slice(r).join("."));return n},nv=function(e){var t=e.trim().toLowerCase().replace(/^\.+|\.+$/g,"");if(!t)return"";try{return new URL(/^[a-z][a-z0-9+.-]*:\/\//.test(t)?t:"http://"+t).hostname}catch(e){return""}},ny=function(e){var t=e.filter(function(e){return"string"==typeof e&&8===e.length});return t.length>5e3&&console.warn("[eb] nav-rules payload has ".concat(t.length," entries, keeping ").concat(5e3)),t.slice(0,5e3)},nw=function(){try{var e=localStorage.getItem(nh);if(!e)return null;var t=JSON.parse(e);if(!t||!Array.isArray(t.h))return null;return{v:"string"==typeof t.v?t.v:"",h:ny(t.h)}}catch(e){return null}},nb=function(e){void 0===e&&(e="");var t=nw();if(np.clear(),t)for(var n=0,r=t.h;n<r.length;n++){var i=r[n];np.add(i)}nf.clear();for(var o=0,s=e.split(",");o<s.length;o++){var a=nv(s[o]);a&&nf.add(ng(a))}return function(e){if(!np.size&&!nf.size)return!1;try{t=new URL(e,location.href).hostname.toLowerCase().replace(/\.+$/,"")}catch(e){return!1}for(var t,n=0,r=nm(t);n<r.length;n++){var i=ng(r[n]);if(np.has(i)||nf.has(i))return!0}return!1}},n_=function(){"function"==typeof fetch&&fetch("/ad-blacklist",{credentials:"omit"}).then(function(e){return e.ok?e.json():null}).then(function(e){if(e&&Array.isArray(e.h)){var t={v:"string"==typeof e.v?e.v:"",h:ny(e.h)};np.clear();for(var n=0,r=t.h;n<r.length;n++){var i=r[n];np.add(i)}var o=nw();if(!o||o.v!==t.v)try{localStorage.setItem(nh,JSON.stringify(t))}catch(e){}}}).catch(function(){})},nS=function(){np.clear();try{localStorage.removeItem(nh)}catch(e){}},nx=function(){return(nx=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)}
14,nk=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(s,a)}l((r=r.apply(e,t||[])).next())})},nE=function(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(l){var c=[a,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&c[0]?r.return:c[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,c[1])).done)return i;switch(r=0,i&&(c=[2&c[0],i.value]),c[0]){case 0:case 1:i=c;break;case 4:return s.label++,{value:c[1],done:!1};case 5:s.label++,r=c[1],c=[0];continue;case 7:c=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===c[0]||2===c[0])){s=0;continue}if(3===c[0]&&(!i||c[1]>i[0]&&c[1]<i[3])){s.label=c[1];break}if(6===c[0]&&s.label<i[1]){s.label=i[1],i=c;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(c);break}i[2]&&s.ops.pop(),s.trys.pop();continue}c=t.call(e,s)}catch(e){c=[6,e],r=0}finally{n=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}},nC="awards-page",nP="awards_tab",nT="count_errors",nL=ec.croco.crocoLogic,nI=ec.awards.awardsLogic,nO=ec.tournament.tournamentLogic,nA=ec.postcards.postcardsLogic,nM=ec.storybook.storybookLogic,nN=ec.up.upLogic;nu(),nu();var nD=function(){function e(){var e,t,r,i,o,s,a,l,c,u,d,w,b,_,S,x=this;this.installRedirectProtection(),window.useDynamicNativeAds&&this.setUpDynamicNativeAd(),this.cookiesB
14anner=new ei,this.popupManager=new eG.o;var k=ec.ets.setup({th:null!=(r=Number(null==(t=null==window?void 0:window.eb)?void 0:t.settings.ets_batch_th))?r:50,tth:(null!=(o=Number(null==(i=null==window?void 0:window.eb)?void 0:i.settings.ets_batch_tth))?o:60)*1e3,lt:Number(null==(s=null==window?void 0:window.eb)?void 0:s.settings.ets_event_lt)||20,fv:window.fv,version:null==(l=null==(a=null==window?void 0:window.eb)?void 0:a.params)?void 0:l.buildVersion,host:null==(u=null==(c=null==window?void 0:window.eb)?void 0:c.params)?void 0:u.etsHost,eaid:null==(w=null==(d=null==window?void 0:window.eb)?void 0:d.params)?void 0:w.eaid,beacon:!1,enabled:window.isShowAnalytics,gzip:!!(null==(b=null==window?void 0:window.eb)?void 0:b.settings.ets_gzip)});if(O.P.subscribe(I.Ps.analyticsConsentChanged,function(e){ec.ets.enabled=e}),k.then(ni).catch(function(){}),(0,tm.xS)(window.lang),this.body=document.querySelector("body"),this.errors=0,window.useModules||(this.auth=new eF),h().then(function(e){x.parserResult=e}),window.useNativeIframe){if(this.nativeAdManager=window.nativeAdManager=new tg,this.nativeAdManager){var E=this.nativeAdManager;k.then(function(){return E.start()})}}else window.usePrimisVideoAds?this.primisVideo=new t$:window.useVidazooVideoAds&&(this.vidazooVideo=new tt);this.beforeLoaded(),document.addEventListener((0,p.XB)((0,p.Ln)()),this.handleVisibilityChange.bind(this)),document.addEventListener("DOMContentLoaded",this.onLoaded.bind(this)),(null==(e=null==window?void 0:window.eb)?void 0:e.settings.use_sentry)&&(!f&&(f=Promise.resolve().then(n.t.bind(n,63887,23))),f).then(function(){if(window.Sentry){var e,t,n,r,i,o=(parseInt(null==(e=null==window?void 0:window.eb)?void 0:e.settings.sentry_sample_rate)||10)/100,s=(parseInt(null==(t=null==window?void 0:window.eb)?void 0:t.settings.sentry_traces_sample_rate)||10)/100;window.Sentry.init({dsn:"https://[email protected]/14",environment:(0,p._$)(),release:null!=(i=null==(r=null==(n=null==window?void 0:window.eb)?void 0:n.params)?void 0:r.buildVersion)?i:"unknown",tracesSampleRate:s,sampleRate:o,integrations:[new window.Sentry.Integrations.TryCatch({eventTarget:!1})],ignoreErrors:[/ResizeObserver loop completed with undelivered notifications/,/ResizeObserver loop limit exceeded/,v],denyUrls:y,allowUrls:[/^https?:\/\/((stage|test|www)\.)?sudoku\.com\//],beforeSend:function(e,t){var n,r,i,o,s=null==t?void 0:t.originalException;if(s&&"object"==typeof s&&!(s instanceof Error)&&v.test(Object.prototype.toString.call(s)))return null;var a=null!=(o=null==(i=null==(r=null==(n=null==e?void 0:e.exception)?void 0:n.values)?void 0:r[0])?void 0:i.value)?o:"";if(m.test(a)){var l=function(e){for(var t,n,r,i=null!=(t=null==e?void 0:e.breadcrumbs)?t:[],o=i.length-1;o>=0;o--){var s=i[o];if((null==s?void 0:s.type)==="http"){var a=null==(n=null==s?void 0:s.data)?void 0:n.status_code;if(!a||!(a>=200)||!(a<400))return"string"==typeof(null==(r=null==s?void 0:s.data)?void 0:r.url)?s.data.url:null}}return null}(e);if(l&&!g.test(l))return null;e.fingerprint=["network-fetch-failure"],e.level="warning"}return e}})}});var C="hidden";function P(e){var t,n="visible",r="hidden",i={focus:n,focusin:n,pageshow:n,blur:r,focusout:r,pagehide:r};(e=e||window.event).type in i?(t=i[e.type],(0,p.uk)("visibility-"+t,document)):(0,p.uk)("visibility-"+(this[C]?"hidden":"visible"),document)}if(C in document?document.addEventListener("visibilitychange",P):(C="mozHidden")in document?document.addEventListener("mozvisibilitychange",P):(C="webkitHidden")in document?document.addEventListener("webkitvisibilitychange",P):(C="msHidden")in document?document.addEventListener("msvisibilitychange",P):"onfocusin"in document?document.onfocusin=document.onfocusout=P:window.onpageshow=window.onpagehide=window.onfocus=window.onblur=P,void 0!==document[C]&&P({type:document[C]?"blur":"focus"}),O.P.subscribe(I.Ps.initCrocoBanner,this.initCrocoBanner.bind(this)),O.P.subscribe(I.Ps.showTournamentBanner,this.showTournamentBanner.bind(this)),O.P.subscribe(I.Ps.loadAds,this.laodAds.bind(this)),O.P.subscribe(I.Ps.updateNewGameMenuButtons,this.updateNewGameMenuButtons.bind(this)),ex.default.state.settings[I.wB.showCheatMenu]){var T=document.createElement("div"),L=document.querySelector("body");T.className="build-version",T.innerText="".concat(null==(S=null==(_=null==window?void 0:window.eb)?void 0:_.params)?void 0:S.buildVersion),T.addEventListener("click",function(){L.removeChild(T)}),L.appendChild(T)}(0,nd.Jm)()&&n.e(1219).then(n.bind(n,21219)).then(function(e){return(0,e.initQa)()}).catch(function(e){return console.error("[qa] driver failed to load",e)})}return e.prototype.setUpDynamicNativeAd=function(){var e,t,n,r,i,o=sessionStorage.getItem("ad_native_config");if(!o){sessionStorage.setItem("ad_native_config",JSON.stringify({provider:I.p1.vidazoo,time:Date.now()})),window.useLazyAds=!0;return}try{var s=JSON.parse(o),a=(null==(n=null==(t=null==(e=window.eb.userProfile)?void 0:e.location)?void 0:t.country)?void 0:n.isoCode2)==="US"?null==(r=window.eb)?void 0:r.settings.plus_min_switch_us:null==(i=window.eb)?void 0:i.settings.plus_min_switch_nonus,l=(Date.now()-s.time)/1e3>(a||180),c=l?s.provider===I.p1.vidazoo?I.p1.primis:I.p1.vidazoo:s.provider;switch(l&&sessionStorage.setItem("ad_native_config",JSON.stringify({provider:c,time:Date.now()})),c){case I.p1.vidazoo:window.useVidazooVideoAds=!0,window.usePrimisVideoAds=!1;break;case I.p1.primis:window.useVidazooVideoAds=!1,window.usePrimisVideoAds=!0}window.useLazyAds=!0}catch(e){console.warn(e)}},e.prototype.updateNewGameMenuButtons=function(){return nk(this,void 0,void 0,function(){var e,t,n,r,i;
14return nE(this,function(o){switch(o.label){case 0:if(o.trys.push([0,3,,4]),!nA.request)return[3,2];return[4,nA.request];case 1:o.sent(),o.label=2;case 2:return[3,4];case 3:return console.error("Postcards request failed:",o.sent()),[3,4];case 4:e=nA.getTitle(),null!==(t=nA.getActiveCardIndex())&&document.querySelectorAll('.new-game-menu-mode-button[data-mode="postcards"]').forEach(function(n){n.innerText=e;var r=nA.getCardLevelsCount(t);document.querySelectorAll(".new-game-menu-postcards .new-game-menu-button").forEach(function(e){var t=e.dataset.difficulty,n=r[t];if(ex.default.state.mode===I.dX.postcards&&ex.default.state.difficulty===t&&e.classList.add("active"),n)n.completed&&e.classList.add("disabled"),e.addEventListener("click",function(e){if(e.preventDefault(),!n.completed){(null==(t=ex.default.state.currentGame)?void 0:t.mistakes)===3&&(nA.reset(ex.default.state.currentGame.timer/1e3,{undos:ex.default.state.currentGame.undos,smart_hints:ex.default.state.currentGame.hints,erases:ex.default.state.currentGame.erases}),ex.default.dispatch(ek.bE.restartGame,{gameOver:!0}));var t,r=n.incompleteLevels.find(function(e){return nA.config.sudokuLevelsMap.every(function(t){return t.postcardsLevelId!==e})});nA.setEventClicked(),nA.selectLevel(r||n.incompleteLevels[0]),window.location.href=window.postcardsGameUrl}}),e.querySelector(".postcards-level-count").innerText="".concat(n.totalLevels-n.incompleteLevels.length,"/").concat(n.totalLevels);else{var i="postcards"===window.mode;e.classList.contains("new-game-menu-restart")&&i||e.classList.add("hidden")}})}),o.label=5;case 5:if(o.trys.push([5,8,,9]),!nM.request)return[3,7];return[4,nM.request];case 6:o.sent(),o.label=7;case 7:return[3,9];case 8:return console.error("Storybook request failed:",o.sent()),[3,9];case 9:if(n=nM.getTitle(),r=null!==nM.config.currentEvent&&!nM.config.eventCompleted,i=document.querySelectorAll('.new-game-menu-mode-button[data-mode="storybook"]'),!r)return i.forEach(function(e){e.remove()}),this.buttons&&"storybook"===this.buttons.getActiveTab()&&(this.buttons.view.showTabGameMode("classic"),this.buttons.view.showActiveGameMode("classic")),[2];return i.forEach(function(e){e.innerText=n;var t=document.querySelectorAll(".new-game-menu-storybook .new-game-menu-button"),r=window.mode===I.dX.storybook||nM.hasCurrentLevelProgress();t.forEach(function(e){r?e.classList.contains("new-game-menu-new")&&e.classList.add("hidden"):(e.classList.contains("new-game-menu-restart")&&e.classList.add("hidden"),e.classList.contains("new-game-menu-continue")&&e.classList.add("hidden"),e.classList.contains("new-game-menu-new")&&e.addEventListener("click",function(e){e.preventDefault(),nM.setEventClicked(),window.location.href=window.storybookGameUrl}))})}),[2]}})})},e.prototype.laodAds=function(){(0,w.c)(function(){var e;if(!window.useDynamicNativeAds){var t=document.createElement("script");t.src="https://securepubads.g.doubleclick.net/tag/js/gpt.js",t.setAttribute("async",""),t.setAttribute("data-ot-ignore",""),document.body.appendChild(t)}if(window.deviceType===I.bq.desktop&&!window.useNativeIframe){if(window.usePrimisVideoAds){var n=window.useDynamicNativeAds?"122429":"117976",r=document.createElement("script");r.src="https://live.primis.tech/live/liveView.php?s=".concat(n,"&cbuster=%%CACHEBUSTER%%&playerApiId=primisNativeAd1"),r.type="text/javascript";var i=document.querySelector("#primis-container");i&&i.appendChild(r)}else if(window.useVidazooVideoAds){var o=document.createElement("script");o.src="//static.vidazoo.com/basev/vwpt.js",o.setAttribute("async",""),o.setAttribute("data-ot-ignore",""),o.setAttribute("data-widget-id",window.vidazooWidgetId),o.setAttribute("data-widget-position","vidazoo-container"),o.setAttribute("data-widget-created","onVidazooWidgetCreated"),document.body.appendChild(o)}}if(!(null==(e=null==window?void 0:window.eb)?void 0:e.settings.disable_banner_ads)&&!window.useDynamicNativeAds&&window.useRiseAuctionWrapper){var s=document.createElement("script");s.src="https://sdk.rfunbox.com/sdk/auction.loader.js?id=65b0f12631751a0001947f47&org=6134e9fa9bbbfe0001894c98&auction_callback=riseCallback",s.setAttribute("async",""),s.setAttribute("data-ot-ignore",""),document.body.appendChild(s)}})},e.prototype.sendScreenEvent=function(){var e,t,n,r,i,o,s,a,l,c,u,d,h,f="prev_screen",g=JSON.parse(localStorage.getItem(f)),m=(0,p.Dl)(),v=(0,p.Dl)(!0),y="tournaments"===v?window.useModules&&(null==(e=null==nO?void 0:nO.config)?void 0:e.tournaments)?null==(r=null==(n=null==(t=null==nO?void 0:nO.config)?void 0:t.tournaments[nO.currentTournamentId])?void 0:n.info)?void 0:r.name:null==(l=null==(a=null==(s=null==(o=null==(i=this.tournaments)?void 0:i.storage)?void 0:o.data)?void 0:s.tournament)?void 0:a.info)?void 0:l.name:null;if((!g||"".concat(null==g?void 0:g.screen).concat((null==g?void 0:g.id)?null==g?void 0:g.id:"")!=="".concat(v).concat(y||""))&&v&&"other"!==v){var w=nx(nx(nx({screen:v},m?{placement:m}:{}),"solver"===v&&(null==(u=null==(c=null===tT.A||void 0===tT.A?void 0:tT.A.state)?void 0:c.currentGame)?void 0:u.values)?{numbers:null==(h=null==(d=null===tT.A||void 0===tT.A?void 0:tT.A.state)?void 0:d.currentGame)?void 0:h.values.filter(function(e){return e.val&&e.editable}).length}:{}),y?{id:y}:{});ec.ets.send("g_screen",w),(0,A.B)("g_screen",w),localStorage.setItem(f,JSON.stringify(w))}},e.prototype.showTournamentBanner=function(){return nk(this,void 0,void 0,function(){var e,t,n=this;return nE(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),e=document.querySelector(".tournament-popup"),[4,nO.getFinis
14hedTournament()];case 1:if(t=r.sent(),e&&t)return this.popupManager.addPopup({type:t.achivment?eG.n.positive:eG.n.negative,func:function(){return nk(n,void 0,void 0,function(){var n;return nE(this,function(r){switch(r.label){case 0:if(n=null,!t.achivment)return[3,2];return nI.addAward(t.achivment.award,Math.floor(Date.now()/1e3),"tournament",(0,eD.NF)(t.achivment.medal)),[4,nI.getAwards()];case 1:(n=r.sent().find(function(e){return e.award_id===t.achivment.award}))&&window.notification.add(eM.Z.tournaments),r.label=2;case 2:return(0,_.pP)(e).add("active"),(0,tv.render)((0,tv.h)(tL.PreactTournamentPopup,{parent:e,awardUrl:null==n?void 0:n.url,uuid:t.uuid,repeatBannerCall:!1}),e),[2]}})})},closeFunc:function(){t.uuid&&nO.showFinishPopup(t.uuid)}}),[2];return[3,3];case 2:return console.error("err",r.sent()),[3,3];case 3:return[2]}})})},e.prototype.showCrocoBanner=function(e){var t,n;return nk(this,void 0,void 0,function(){var r,i,o;return nE(this,function(s){switch(s.label){case 0:s.trys.push([0,8,,9]),r=document.querySelector(".croco-popup"),s.label=1;case 1:if(s.trys.push([1,4,,5]),!nL.request)return[3,3];return[4,nL.request];case 2:s.sent(),s.label=3;case 3:return[3,5];case 4:return console.error("Croco request failed:",s.sent()),[3,5];case 5:if(e||!((i=nL.finish())&&r))return[3,7];return[4,nI.getAwards()];case 6:if(o=s.sent().find(function(e){return e.award_id===i}))return this.popupManager.addPopup({type:eG.n.positive,func:function(){(0,_.pP)(r).add("active"),(0,tv.render)((0,tv.h)(t_,{parent:r,awardUrl:o.url}),r)}}),[2];s.label=7;case 7:if(nL.checkExpiring(),nL.config&&nL.config.finishPopup&&(Date.now()/1e3-nL.config.finishPopup)/86400<2&&(0,_.pP)(r).contains("croco-main")&&!(0,_.pP)(this.body).contains("croco")&&(null!=(n=null==(t=nL.config.currentEvent)?void 0:t.currentLevel)?n:0)<nL.config.currentEvent.levels.length)return this.popupManager.addPopup({type:eG.n.negative,func:function(){(0,_.pP)(r).add("active"),(0,tv.render)((0,tv.h)(tP,{parent:r}),r)},closeFunc:function(){nL.nextEvent(),O.P.emit(I.Ps.initCrocoBanner)}}),[2];return[3,9];case 8:return console.error("err",s.sent()),[3,9];case 9:return this.initCrocoBanner(e),[2]}})})},e.prototype.initStorybookBanner=function(e){return nk(this,void 0,void 0,function(){var t,n,r,i,o,s,a;return nE(this,function(l){switch(l.label){case 0:t=document.querySelectorAll(".storybook_header-link"),n=document.querySelectorAll(".storybook_header-timer"),r=document.querySelectorAll(".storybook-event-icon"),i=document.querySelector(".header_right .storybook_header-link"),l.label=1;case 1:if(l.trys.push([1,4,,5]),!nM.request)return[3,3];return[4,nM.request];case 2:l.sent(),l.label=3;case 3:return[3,5];case 4:return console.error("storybook request failed:",l.sent()),[3,5];case 5:if(nM.checkExpiring()&&t.forEach(function(e){e.remove()}),nM.timerManager.subscribe(function(e,n){0>=Math.floor(n)&&t.forEach(function(e){return e.remove()})}),!nM.config.currentEvent||!n.length||!t.length||(!nM.config.visited&&nM.config.currentEvent&&!window.useEventsMenu&&(o="none"!==window.getComputedStyle(i).display&&null!==i.offsetParent,s=document.querySelector("#burger-icon"),!o&&s&&(0,_.pP)(s).add("storybook_notification"),o||(0,_.pP)(document.body).add("storybook_notification")),!e&&nM.config.currentEvent.time<Math.floor(Date.now()/1e3)))return[2];return t.forEach(function(t){e&&(0,_.pP)(t).add("active"),t.addEventListener("click",function(e){e.preventDefault(),nM.config.clicked||(nM.sendOnboardingEvent(1),nM.setClicked());var n,r,i,o=(0,_.pP)(t).contains("only-burger")?"menu":"header";if(nM.clickToBanner(o),2===window.loBannerFlow&&(null==(n=nM.config)?void 0:n.currentEvent)&&!(null==(i=null==(r=nM.config)?void 0:r.currentEvent)?void 0:i.clicked)){nM.setEventClicked(),window.location.href=window.storybookGameUrl;return}window.location.href=t.href})}),r&&(a=nM.getData(),r.forEach(function(e){var t=document.createElement("img");t.onload=function(){(0,_.pP)(e).add("showed")},t.alt="event icon",t.src=null==a?void 0:a.iconUrl,e.appendChild(t)})),n.forEach(function(e){nM.timerManager.subscribeTimer(e)}),[2]}})})},e.prototype.initPostcardsBanner=function(e){return nk(this,void 0,void 0,function(){var t,n,r,i,o,s,a,l,c;return nE(this,function(u){switch(u.label){case 0:t=document.querySelectorAll(".postcards_header-link"),n=document.querySelectorAll(".postcards_header-timer"),r=document.querySelectorAll(".postcards-event-icon"),i=document.querySelectorAll(".postcards-event-banner-icon"),o=document.querySelector(".header_right .postcards_header-link"),u.label=1;case 1:if(u.trys.push([1,4,,5]),!nA.request)return[3,3];return[4,nA.request];case 2:u.sent(),u.label=3;case 3:return[3,5];case 4:return console.error("Postcards request failed:",u.sent()),[3,5];case 5:if((nA.checkExpiring()||nA.config.eventCompleted)&&t.forEach(function(e){e.remove()}),nA.timerManager.subscribe(function(e,n){0>=Math.floor(n)&&t.forEach(function(e){return e.remove()})}),!nA.config.currentEvent||!n.length||!t.length||(!nA.config.visited&&nA.config.currentEvent&&!window.useEventsMenu&&(s="none"!==window.getComputedStyle(o).display&&null!==o.offsetParent,a=document.querySelector("#burger-icon"),!s&&a&&(0,_.pP)(a).add("postcards_notification"),s||(0,_.pP)(document.body).add("postcards_notification")),!e&&nA.config.currentEvent.time<Math.floor(Date.now()/1e3)))return[2];return t.forEach(function(t){e&&(0,_.pP)(t).add("active"),t.addEventListener("click",function(e){e.preventDefault(),nA.config.clicked||(nA.sendOnboardingEvent(1),nA.setClicked());var n,r,i,o=(0,_.pP)(t).contains("only-burger")?"menu":"header";if(nA.clickToBanner(o),2===window.loBannerFlow&&(null==(n=nA.config)?void 0:n.currentEvent)&&!(null==(i=null==(r=nA.config)?void 0:r.currentEvent)?void 0:i.clicked)){nA.setEventClicked(),window.location.href=window.postcardsGameUrl;return}window.location.href=t.href})}),r&&(l=nA.getData(),r.forEach(function(e){var t=document.createElement("img");t.onload=function(){(0,_.pP)(e).add("showed")},t.alt="event icon",t.src=null==l?void 0:l.iconUrl,e.appendChild(t)}
14)),i&&(c=nA.getData(),i.forEach(function(e){var t=document.createElement("img");t.onload=function(){(0,_.pP)(e).add("showed")},t.alt="event icon",t.setAttribute("data-src",null==c?void 0:c.bannerIconUrl),e.appendChild(t)})),n.forEach(function(e){nA.timerManager.subscribeTimer(e)}),[2]}})})},e.prototype.initCrocoBanner=function(e){return nk(this,void 0,void 0,function(){var t,n,r;return nE(this,function(i){switch(i.label){case 0:if(i.trys.push([0,3,,4]),!nL.request)return[3,2];return[4,nL.request];case 1:i.sent(),i.label=2;case 2:return[3,4];case 3:return console.error("err",i.sent()),[3,4];case 4:if(t=document.querySelector(".ftc-link"),n=document.querySelector(".ftc_header-timer"),r=document.querySelector(".ftc_header-link"),!t||!n||!nL.config||!nL.config.currentEvent||!e&&nL.config.currentEvent.time<Math.floor(Date.now()/1e3))return[2];return nL.subscribeTimer(n,t),(0,_.pP)(t).add("active"),!nL.config.clicked&&r&&r.addEventListener("click",function(e){e.preventDefault();var t={id:nL.config.currentEvent.ai,lo_type:"croco-quest",uid:nL.config.currentEvent.id,step:1,total_steps:4};(0,A.B)("lo_onboarding",t),ec.ets.send("lo_onboarding",t),nL.setClicked(),window.location.href=e.target.href}),[2]}})})},e.prototype.sessionStart=function(){return nk(this,void 0,void 0,function(){return nE(this,function(e){switch(e.label){case 0:this.sessionStartValue=Math.floor(Date.now()/1e3),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,ec.ets.altUserIdReady];case 2:return e.sent(),[3,4];case 3:return e.sent(),console.warn("ets alt user id promise error"),[3,4];case 4:return console.log(ec.ets.altUserId,"user id"),ec.ets.send("session_start",nx({page_location:window.location.href.split("?")[0]},ec.ets.altUserId?{alt_adid:ec.ets.altUserId}:{})),window.useModules&&(nO.countRequests=0),O.P.emit(I.Ps.resetSessionCount),[2]}})})},e.prototype.sessionEnd=function(){var e=Math.floor(Date.now()/1e3);ec.ets.send("session_end",nx({last_time_spent:e-this.sessionStartValue,page_location:window.location.href.split("?")[0]},window.gameData||{})),window.gameData=nx(nx({},window.gameData||{}),{interstitial_time_1s:0,native_time_1s:0})},e.prototype.sendPageView=function(e){var t,n,r,i;return nk(this,void 0,void 0,function(){var o,s;return nE(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,ec.ets.altUserIdReady];case 1:return a.sent(),[3,3];case 2:return a.sent(),console.warn("ets alt user id promise error"),[3,3];case 3:if(null==(t=this.parserResult))return[3,4];return s=t,[3,6];case 4:return[4,h()];case 5:s=a.sent(),a.label=6;case 6:return o=s,ec.ets.send("pageview",nx(nx(nx(nx({page_location:window.location.href.split("?")[0],page_referrer:e?e.pageReferrer:document.referrer?document.referrer:null,device__user_agent:(null!=(n=o.ua)?n:"").substring(0,255)},o.device.type?{device__model:o.device.model,device__brand:o.device.vendor}:{}),{device__browser:o.browser.name,device__browser_version:o.browser.version,device__operating_system:null!=(r=o.os.name)?r:null,device__operating_system_version:null!=(i=o.os.version)?i:null,device__language:navigator.language,device__time_zone_offset_seconds:60*new Date().getTimezoneOffset(),device__web_info__hostname:window.location.host,use_ad_block:window.useAdBlock,screen_size:"".concat(window.screen.width,"x").concat(window.screen.height)}),this.countErrors?{count_errors:this.countErrors}:{}),ec.ets.altUserId?{alt_adid:ec.ets.altUserId}:{}),!0),console.log(ec.ets.altUserId,"user id pageview"),this.countErrors=null,[2]}})})},e.prototype.handleVisibilityChange=function(){document[(0,p.LV)((0,p.Ln)())]?this.sessionEnd():(this.sessionStart(),ec.ets.sync())},e.prototype.beforeLoaded=function(){var e=this;this.sessionStart(),T.lw&&(this.countErrors=Number(localStorage.getItem(nT)),localStorage.removeItem(nT)),window.addEventListener("error",function(){e.errors++,localStorage.setItem(nT,String(e.errors))}),window.globalAppAction={setCookie:T.TV},window.defaultWindowHeight=window.innerHeight,window.currentDate=(0,eA.ZF)(new Date,window.serverDate),window.cheats=new eO({parentSelector:"#cheat-parent",toggleSelector:".cheat-toggle",menuSelector:"#cheat-menu",buttonsSelector:"#cheat-buttons"}),T.lw&&localStorage.removeItem("live_ops"),this.notification=new eM.L(".awards-link > a",{awardsSelector:".cup-notification",tournamentsSelector:".tournaments-notification"}),window.notification=this.notification,(0,p.lR)().then(function(){e.sendPageView()}),window.fs&&ec.ets.send("first_visit",{},!0),window.newGroups.length&&window.newGroups.forEach(function(e){ec.ets.send("ab_group",{group:e},!0)})},e.prototype.initServices=function(){var e,t,n,r,i,o,s,a,l,c,u,d,h,f,g,m,v,y,w,b,S,x,k,E,C,P,L,O,A,M,N,D,R,B,F,$,j,H,z,G,q,U,W,V,Y,X,K,J,Z,Q,ee,et,en,er,ei,eo,es,ea,el,ed,eh;return nk(this,void 0,void 0,function(){var ep,ef,eg,em,ev,ey,ew,eb,e_,eS,ex,ek,eE,eC,eP=this;return nE(this,function(eT){switch(eT.label){case 0:return[4,ec.auth.setup({eaid:null==(t=null==(e=null==window?void 0:window.eb)?void 0:e.params)?void 0:t.eaid,domain:"".concat(null==(r=null==(n=null==window?void 0:window.eb)?void 0:n.params)?void 0:r.authHost,"/api/v1/auth")})];case 1:if(ep=eT.sent(),nI.setup({domain:null==(o=null==(i=null==window?void 0:window.eb)?void 0:i.params)?void 0:o.awardsLo,eaid:null==(a=null==(s=null==window?void 0:window.eb)?void 0:s.params)?void 0:a.eaid,euid:ep,upgradeFromLegacy:!0}),!window.useCroco)return[3,3];return nL.setup({eaid:null==(c=null==(l=null==window?void 0:window.eb)?void 0:l.params)?void 0:c.eaid,host:null==(d=null==(u=null==window?void 0:window.eb)?void 0:u.params)?void 0:d.liveOps,requestsFrequency:Number(null==(h=null==window?void 0:window.eb)?void 0:h.settings.lo_requests_frequency)||300,translations:window.crocoPopupsTranslations||{},ab:window.abGroups||{}}),(ef=(0,_.pP)(this.body).contains("ftc-page")||(0,_.pP)(this.body).contains("main-page")&&(0,_.pP)(this.body).contains("croco"))||null==(f=null==nL?void 0:nL.config)||!f.levelProgress||(null==(m=null==(g=null==nL?void 0:nL.config)?void 0:g.levelProgress)?void 0:m.mistakes)!==3||nL.reset(),[4,this.showCrocoBanner(ef)];case 2:eT.sent(),eT.label=3;case 3:if(eg=(null==(y=null==(v=nM.config)?void 0:v.currentEvent)?void 0:y.version)||"1.".concat(window.storybookBalance,".1"),window.usePostcards&&(nA.showHiw(),em=window.usePostcardsLb||(null==(b=null==(w=nA.config)?void 0:w.currentEvent)?void 0:b.withLeaderboard),nA.setup({eaid:null==(x=null==(S=null==window?void 0:window.eb)?void 0:S.params)?void 0:x.eaid,host:null==(E=null==(k=null==window?void 0:window.eb)?void 0:k.params)?void 0:E.liveOps,requestsFrequency:Number(null==(C=null==window?void 0:window.eb)?void 0:C.settings.lo_requests_frequency)||300,ab:window.abGroups||{},finishCallback:function(){return eP.notification.add(eM.Z.tournaments)}
14,visitCallback:function(){var e=document.querySelector("#burger-icon");e&&(0,_.pP)(e).remove("postcards_notification"),(0,_.pP)(document.body).remove("postcards_notification")},translations:window.postcardsTranslations,version:eg,leaderboard:em,leaderboardDomain:null==(L=null==(P=window.eb)?void 0:P.params)?void 0:L.leaderboardHost,leaderboardUrl:window.postcardsLeaderboardUrl,sandbox:null==(O=null==window?void 0:window.eb)?void 0:O.settings.lo_testing},{autoSync:!1})),nM.showHiw(),nM.setup({eaid:null==(M=null==(A=null==window?void 0:window.eb)?void 0:A.params)?void 0:M.eaid,host:null==(D=null==(N=null==window?void 0:window.eb)?void 0:N.params)?void 0:D.liveOps,requestsFrequency:Number(null==(R=null==window?void 0:window.eb)?void 0:R.settings.lo_requests_frequency)||300,ab:window.abGroups||{},finishCallback:function(){return eP.notification.add(eM.Z.tournaments)},visitCallback:function(){var e=document.querySelector("#burger-icon");e&&(0,_.pP)(e).remove("storybook_notification"),(0,_.pP)(document.body).remove("storybook_notification")},translations:window.postcardsTranslations,version:eg},{autoSync:!1}),Promise.all([nA.startSync(),nM.startSync()].filter(Boolean)),ev=(0,_.pP)(this.body).contains("main-page")&&(0,_.pP)(this.body).contains(I.dX.storybook),ey=(0,_.pP)(this.body).contains("storybook-page"),ew=nM.getCurrentMappedSudokuLevel(),!ev&&ew&&(null==ew?void 0:ew.levelProgress)&&3===ew.levelProgress.mistakes&&nM.reset((null!=(F=null==(B=null==ew?void 0:ew.levelProgress)?void 0:B.timer)?F:0)/1e3,{undos:null==($=null==ew?void 0:ew.levelProgress)?void 0:$.undos,smart_hints:null==(j=null==ew?void 0:ew.levelProgress)?void 0:j.hints,erases:null==(H=null==ew?void 0:ew.levelProgress)?void 0:H.erases}),this.initStorybookBanner(ey||ev),window.usePostcards&&(eb=(0,_.pP)(this.body).contains("main-page")&&(0,_.pP)(this.body).contains(I.dX.postcards),e_=(0,_.pP)(this.body).contains("postcards-page"),eS=nA.getCurrentMappedSudokuLevel(),!eb&&eS&&(null==eS?void 0:eS.levelProgress)&&3===eS.levelProgress.mistakes&&nA.reset((null!=(G=null==(z=null==eS?void 0:eS.levelProgress)?void 0:z.timer)?G:0)/1e3,{undos:null==(q=null==eS?void 0:eS.levelProgress)?void 0:q.undos,smart_hints:null==(U=null==eS?void 0:eS.levelProgress)?void 0:U.hints,erases:null==(W=null==eS?void 0:eS.levelProgress)?void 0:W.erases}),this.initPostcardsBanner(eb||e_)),this.updateNewGameMenuButtons(),!ep)return this.startLogicAfterServices(""),[2];if(!window.useModules)return[3,6];return[4,nO.setup({domain:"".concat(null==(Y=null==(V=null==window?void 0:window.eb)?void 0:V.params)?void 0:Y.tournamentHost),eaid:null==(K=null==(X=null==window?void 0:window.eb)?void 0:X.params)?void 0:K.eaid,ab:window.abGroups||{},clickUpdate:(0,_.pP)(document.querySelector("body")).contains("tournament-page"),translations:null!=(J=window.translationsGlobal)?J:{},buildVersion:null==(Q=null==(Z=null==window?void 0:window.eb)?void 0:Z.params)?void 0:Q.buildVersion})];case 4:return eT.sent(),T.lw&&localStorage.getItem(eu.LS.TOURNAMENT_HIW)&&nO.showHiw(),[4,this.showTournamentBanner()];case 5:return eT.sent(),[3,7];case 6:this.tournaments=window.tournament=new eZ(ep),eT.label=7;case 7:if(this.liveops=new e7,!(null==(ee=null==window?void 0:window.eb)?void 0:ee.settings.up)||(ex=(0,p.vA)(),ek=(0,_.pP)(this.body).contains("awards-page")&&(null==(et=null==window?void 0:window.eb)?void 0:et.settings.up_hash)&&ex.h===(null==(en=null==window?void 0:window.eb)?void 0:en.settings.up_hash),nN.setup({domain:null==(er=null==window?void 0:window.eb)?void 0:er.params.userProfileHost,eaid:null==(eo=null==(ei=null==window?void 0:window.eb)?void 0:ei.params)?void 0:eo.eaid,euid:ep,allTimeSync:ek}),eE=Math.round(Date.now()/1e3),eC=!nN.config.lastUpdate||eE-nN.config.lastUpdate>((null==(es=null==window?void 0:window.eb)?void 0:es.settings.up_delay)&&"number"==typeof(null==(ea=null==window?void 0:window.eb)?void 0:ea.settings.up_delay)?null==(el=null==window?void 0:window.eb)?void 0:el.settings.up_delay:3600),!((0,_.pP)(this.body).contains("awards-page")&&(eC||(null==(ed=null==window?void 0:window.eb)?void 0:ed.settings.up_hash)&&ex.h===(null==(eh=null==window?void 0:window.eb)?void 0:eh.settings.up_hash)))))return[3,9];return[4,nN.sync()];case 8:eT.sent(),eT.label=9;case 9:return this.startLogicAfterServices(ep),[2]}})})},e.prototype.startLogicAfterServices=function(e){this.sendScreenEvent()},e.prototype.onLoaded=function(){var e,t;return nk(this,void 0,void 0,function(){var n,r,i,o,s=this;return nE(this,function(a){switch(a.label){case 0:if(this.smartBanner=new eh,this.anchorLinks=new em,this.header=new ew,this.buttons=new eC,this.footer=new eP,window.cookieBanner=this.cookiesB
14anner,(0,w.c)(function(){new b.w({selector:".store-badge-lazy",customClasses:["store-badge"]})}),n=(null==(e=null==window?void 0:window.eb)?void 0:e.settings.disable_first_time_initialization)&&document.querySelector("body").classList.contains("gamescreen-page")&&window.fs,(r=document.getElementById("modules-container"))&&(0,tv.render)((0,tv.h)(tD,{}),r),n)return[3,2];return[4,this.initServices()];case 1:a.sent(),a.label=2;case 2:return(null==(t=null==window?void 0:window.eb)?void 0:t.settings.use_cmp)||(0,M.AR)()||window.addEventListener("resize",function(){s.cookiesBanner.updateConsentHeight()}),ev.Zb&&this.body.classList.add("ie"),!document.querySelector("body").classList.contains(nC)&&T.lw&&sessionStorage.removeItem(nP),!document.querySelector("body").classList.contains(nC)&&T.lw&&sessionStorage.removeItem(nP),this.body&&this.body.addEventListener("click",function(){O.P.emit(I.Ps.hideAllMenu)}),O.P.subscribe(I.Ps.contentChanged,this.sendPageView.bind(this)),window.addEventListener("resize",function(){clearTimeout(i),i=setTimeout(function(){(0,p.uk)("resize-debounce")},50)}),(0,p.uk)("resize"),this.setOldHandlers(),O.P.subscribe(I.Ps.hideAllMenu,this.hideDifficultyMenu.bind(this)),ec.ets.sync(),o=T.lw?JSON.parse(localStorage.getItem(eR.LS.MAIN_GAME)):null,this.body&&!(0,_.pP)(this.body).contains("solver-page")&&o&&o.finished&&(0,eD.Sn)(),[2]}})})},e.prototype.hideDifficultyMenu=function(){var e=document.getElementById("difficulty-menu");e&&e.classList.remove("menu-visible")},e.prototype.setOldHandlers=function(){var e=document.getElementById("difficulty-menu-label");e&&e.addEventListener("click",function(e){(0,eN.e)(e,"difficultyMenu")})},e.prototype.installRedirectProtection=function(){var e,t,n,r,i,o=nb(null!=(n=null==(t=null==(e=window.eb)?void 0:e.settings)?void 0:t.blacklist)?n:"");t4(o),(null==(i=null==(r=window.eb)?void 0:r.settings)?void 0:i.use_ad_blacklist)?(0,w.c)(function(){return n_()}):nS(),"navigation"in window&&window.navigation.addEventListener("navigate",function(e){e.hashChange||e.downloadRequest||o(e.destination.url)&&(e.preventDefault(),console.warn("[eb] Blocked navigation:",e.destination.url))});var s=window.open.bind(window);window.open=function(e,t,n){return e&&o(String(e))?(console.warn("[eb] Blocked window.open:",e),nr(String(e),!0,!0),null):s(e,t,n)}},e}()},21350:(e,t,n)=>{"use strict";n.d(t,{n:()=>r,o:()=>s}),n(2008),n(26910),n(26099),n(23500);var r,i=n(34585),o=n(32612);!function(e){e.positive="positive",e.negative="negative",e.action="action",e.streak="streak",e.game="game"}(r||(r={}));var s=function(){function e(){this.queue=[],this.isActive=!1,this.isSettingsActive=!1,this.streakShown=!1,this.otherShown=!1,o.P.subscribe(i.Ps.showPopup,this.addPopup.bind(this)),o.P.subscribe(i.Ps.showNextPopup,this.showNextPopup.bind(this)),o.P.subscribe(i.Ps.filterPopupQueue,this.filterQueue.bind(this)),o.P.subscribe(i.Ps.deactivatePopup,this.deactivatePopup.bind(this)),o.P.subscribe(i.Ps.showSettingsPopup,this.activateSettings.bind(this)),o.P.subscribe(i.Ps.hideSettingsPopup,this.deactivateSettings.bind(this))}return e.prototype.deactivatePopup=function(){this.isActive=!1},e.prototype.activateSettings=function(){this.isSettingsActive=!0,this.isActive=!0},e.prototype.deactivateSettings=function(){this.isSettingsActive=!1,this.isActive=!1,this.showPopup()},e.prototype.getTypeOrder=function(e){switch(e){case r.positive:return 0;case r.action:return 1;case r.streak:return 2;case r.negative:return 3;case r.game:return 4;default:return 5}},e.prototype.outrankedByStreak=function(e){return this.getTypeOrder(e)>this.getTypeOrder(r.streak)},e.prototype.dropLosers=function(e){var t=this;if(e.type!==r.game){var n=e.type===r.streak?this.queue.filter(function(e){return e.type!==r.game&&t.outrankedByStreak(e.type)}):this.queue.filter(function(e){return e.type===r.streak});n.length&&(n.forEach(function(e){var t;return null==(t=e.closeFunc)?void 0:t.call(e)}),this.queue=this.queue.filter(function(e){return -1===n.indexOf(e)}))}},e.prototype.isSuppressed=function(e){return e.type!==r.game&&(e.type===r.streak?this.otherShown:this.streakShown&&this.outrankedByStreak(e.type))},e.prototype.addPopup=function(e){var t,n=this;if(this.isSuppressed(e)){null==(t=e.closeFunc)||t.call(e);return}clearTimeout(this.timeout),this.queue.length&&e.type===r.game&&(this.queue=this.queue.filter(function(e){return e.type!==r.game})),this.queue.push(e),this.queue=this.queue.sort(function(e,t){return n.getTypeOrder(e.type)-n.getTypeOrder(t.type)}),this.timeout=setTimeout(function(){n.showPopup()},500)},e.prototype.showNextPopup=function(){this.isActive=!1,this.showPopup()},e.prototype.showPopup=function(){if(this.queue.length&&this.queue[0].type===r.game&&(this.isActive=!1),console.log("showPOpup",this.isActive,this.queue.length,"settingsActive:",this.isSettingsActive),!this.isActive&&!this.isSettingsActive){var e=this.queue.shift();e&&(this.isActive=!0,e.type===r.streak?this.streakShown=!0:e.type!==r.game&&(this.otherShown=!0),this.dropLosers(e),e.func())}},e.prototype.filterQueue=function(){this.queue.filter(function(e){return e.type===r.negative}
14).forEach(function(e){var t;null==(t=e.closeFunc)||t.call(e)}),this.queue=this.queue.filter(function(e){return e.type!==r.negative})},e}()},62351:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>em}),n(52675),n(89463),n(28706),n(2008),n(74423),n(23792),n(62062),n(94490),n(34782),n(60739),n(69085),n(26099),n(58940),n(3362),n(27495),n(38781),n(21699),n(25440),n(23500),n(62953);var r,i,o,s,a,l=n(80457),c=n(57705),u=n(52195),d=n(32612),h=n(34585),p=n(79644),f=n(27114),g=n(38613),m=n(45395),v=n(22235),y=n(79400),w=n(62842),b=n(39946),_=n(75535),S=n(80011),x=n(57341),k=n(1114),E=n(26743),C=n(11760),P=function(){return(P=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},T=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(s,a)}l((r=r.apply(e,t||[])).next())})},L=function(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(l){var c=[a,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&c[0]?r.return:c[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,c[1])).done)return i;switch(r=0,i&&(c=[2&c[0],i.value]),c[0]){case 0:case 1:i=c;break;case 4:return s.label++,{value:c[1],done:!1};case 5:s.label++,r=c[1],c=[0];continue;case 7:c=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===c[0]||2===c[0])){s=0;continue}if(3===c[0]&&(!i||c[1]>i[0]&&c[1]<i[3])){s.label=c[1];break}if(6===c[0]&&s.label<i[1]){s.label=i[1],i=c;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(c);break}i[2]&&s.ops.pop(),s.trys.pop();continue}c=t.call(e,s)}catch(e){c=[6,e],r=0}finally{n=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}},I=function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},O=S.croco.crocoLogic,A=S.croco.components,M=S.postcards.postcardsLogic,N=A.WinWidget,D=S.storybook.storybookLogic,R=S.tournament.tournamentLogic;let B=((r={})[l.bE.setHideLostProgress]=function(e){e.commit(l.bE.setHideLostProgress),c.lw&&localStorage.setItem(u.LS.HIDE_LOST_PROGRESS,String(!0))},r[l.bE.restartGame]=function(e,t){var n=e.state,r=n.currentGame,i=n.finished,o=n.settings,s=n.difficulty,a=n.mode,p=n.date,g=t.gameOver,m=c.lw&&sessionStorage.getItem(u.f.GAME_PLACEMENT)||"game_start",y=P(P({},r),{values:(0,f.mY)(r.mission),showWinRate:!0,timer:0,notes:[],score:0,emojisShown:[],bestMove:(0,f.fr)(),scoreHistory:[],baseScore:{val:l.Mt[s].base,lastGameTimer:0},placement:m,loaded:!1});y.mistakes=0,y.hints=o[h.wB.countHints]||l.LP.COUNT_HINTS,k.score.clearDiffs(!0),k.score.updateRenderedGoal(),e.commit(l.bE.updateEmojisShown,[]),e.dispatch(l.bE.setPaused,!1),d.P.emit(h.Ps.stopTimer,!0),e.commit(l.bE.prepareBoard,y),e.commit(l.bE.setUserAction,[]),e.commit(l.bE.setHistoryActions,[]),e.commit(l.bE.setSelected,0),(0,f.jh)(e.state.currentGame,p);var w={difficulty:h.NY[s],mode:h.VS[a]||a,content_id:r.id,content_type:[h.dX.classic,h.dX.killer].includes(a)?a:h.dX.classic,placement:m};if((0,v.B)("g_game_restart",w),S.ets.send("g_game_restart",w),c.lw&&sessionStorage.removeItem(u.f.GAME_PLACEMENT),o[h.wB.imaAdsOnRestart]&&!i)return void d.P.emit(h.Ps.showImaAds,function(){window.needToRestartPageOnChangeMode?window.location.reload():(d.P.emit(h.Ps.processNewGame,!0),d.P.emit(h.Ps.currentGameInit),d.P.emit(h.Ps.startScoreTimer,!0))},P(P({},w),{placement:g?h.Kx.game_over_restart:h.Kx.game_restart}));window.location.reload()},r[l.bE.sendTournamentResult]=function(e,t){var n,r,i,o,s,a,l;return T(this,void 0,void 0,function(){var c,u,d;return L(this,function(h){switch(h.label){case 0:if((null==(r=null==(n=R.config)?void 0:n.tournaments[R.currentTournamentId])?void 0:r.status)!=="running")return(0,v.B)("g_game_finish",t.event),S.ets.send("g_game_finish",t.event,!0),[2,null];return c=e.state.currentGame,[4,R.sendGameResult({score:t.game.score,time:t.game.time},c.id)];case 1:return u=h.sent(),t.event.place=((d={})[null==(s=null==(o=null==(i=R.config)?void 0:i.tournaments[R.currentTournamentId])?void 0:o.info)?void 0:s.name]=u.newPlace,d),(0,v.B)("g_game_finish",t.event),S.ets.send("g_game_finish",t.event,!0),[2,[{name:null!=(a=window.moduleTranslations.position_text)?a:"Position",value:u.newPlace,position:{current:u.newPlace,prev:u.prevPlace}},{name:null!=(l=window.moduleTranslations.total_score_text)?l:"Total Score",value:u.score}]]}})})},r[l.bE.requestNewContent]=function(e){return T(this,void 0,void 0,function(){var t,n,r,i,o,s;return L(this,function(a){switch(a.label){case 0:n=(t=e.state).lang,r=t.mode,i=t.difficulty,a.label=1;case 1:return a.trys.push([1,4,,5]),[4,fetch("/api/content/".concat(n,"/").concat(i,"/").concat(r),b.b.get)];case 2:return[4,a.sent().json()];case 3:return o=a.sent(),s=document.getElementById("tips-articles-wrap"),o.pageReferrer=window.location.href,o.url&&window.history.replaceState({},o.title?o.title:"",o.url),o.content&&s&&(s.innerHTML=o.content),d.P.emit(h.Ps.contentChanged,o),[3,5];case 4:return console.log(a.sent()),[3,5];case 5:return[2]}})})},r[l.bE.updateTimer]=function(e,t){e.state.currentGame&&e.commit(l.bE.updateTimer,t)},r[l.bE.setPaused]=function(e,t){e.commit(l.bE.setPaused,t),e.dispatch(l.bE.hideMessage),t?d.P.emit(h.Ps.stopScoreTimer):d.P.emit(h.Ps.startScoreTimer),d.P.emit(h.Ps.repaintGameBoard)},r[l.bE.setSettings]=function(e,t){e.commit(l.bE.setSettings,t)}
14,r[l.bE.setCoords]=function(e,t){e.commit(l.bE.setCoords,t)},r[l.bE.setAutoCheck]=function(e,t){e.commit(l.bE.setAutoCheck,t),e.dispatch(l.bE.validateBoard),d.P.emit(h.Ps.repaintGameBoard),c.lw&&(0,C.ZI)()&&(0,c.TV)(u.A.CHECK_MISTAKES,t.toString(),9999)},r[l.bE.hideMessageTip]=function(e){e.commit(l.bE.hideMessageTip),d.P.emit(h.Ps.hideGameMessage),c.lw&&localStorage.setItem(u.LS.GAME_TIP,"true")},r[l.bE.hideMessage]=function(e){var t=e.state,n=t.currentGame,r=t.hideMessageTip;(null==n?void 0:n.showWinRate)&&(e.commit(l.bE.setShowWinRate,!1),d.P.emit(h.Ps.hideGameMessage)),r||(e.dispatch(l.bE.hideMessageTip),d.P.emit(h.Ps.userAction))},r[l.bE.validateBoard]=function(e,t){var n,r,i,o,s,a,p,g,m,y,w,b,C,T,L,I,A,B,F,$,j,H,z,G=e.state,q=G.currentGame,U=G.autoCheckMistakes,W=G.coords,V=G.difficulty,Y=G.mode,X=G.date;if(G.bestLevelsConfig,q){if(e.commit(l.bE.setBoardValues,(0,f.NJ)(q,W,U)),d.P.emit(h.Ps.checkButtonDisabling),(0,f.v6)(P({},q))&&!q.finished){e.commit(l.bE.setFinished,!0);var K=W.filter(function(e,t){return"0"===q.mission[t]});e.dispatch(l.bE.addScore,E.H[V]*K.length),d.P.emit(h.Ps.gameFinishEvent),Y===h.dX.daily&&((0,f.EK)(q,X),e.dispatch(l.bE.setShowMonthWinScreen)),[h.dX.classic,h.dX.killer].includes(Y)&&(e.commit(l.bE.updateGameHistory,{mode:Y,difficulty:V}),c.lw&&localStorage.setItem(u.LS.GAME_HISTORY,JSON.stringify(e.state.history)));var J=P({difficulty:h.NY[V],mode:h.VS[Y]||Y,content_id:q.id,content_type:[h.dX.classic,h.dX.killer].includes(Y)?Y:h.dX.classic,time_1s:parseInt(q.timer/1e3),smart_hints:null!=(n=q.countSmartHints)?n:0,undos:null!=(r=q.undos)?r:0,erases:null!=(i=q.erases)?i:0,mistakes:null!=(o=q.countMistakes)?o:0,points:null!=(s=q.score)?s:0,best_score:+!!(k.score.hsBeatedArr||[]).includes("allTime"),best_score_daily:+!!(k.score.hsBeatedArr||[]).includes("daily"),best_score_weekly:+!!(k.score.hsBeatedArr||[]).includes("weekly"),best_score_monthly:+!!(k.score.hsBeatedArr||[]).includes("monthly")},q.placement?{placement:q.placement}:{});q.score||((0,v.B)("g_game_finish",J),S.ets.send("g_game_finish",J,!0));var Z={game:{score:q.score,time:Math.round(Date.now()/1e3)},event:J};if(Y===h.dX.croco){var Q={id:O.config.currentEvent.ai,lo_type:"croco-quest",time_1s:J.time_1s,level_num:(null!=(a=O.config.currentEvent.currentLevel)?a:0)+1,difficulty_level:h.NY[V],level_id:q.id,attempt_num:null!=(p=O.config.currentEvent.attempt)?p:1,boosters:{undos:J.undos,smart_hints:J.smart_hints,erases:J.erases}};(0,v.B)("lo_level_finish",Q),S.ets.send("lo_level_finish",Q);var ee=O.moveToNextCroco(),et=document.querySelector("#win-croco-widget");ee&&window.notification.add("tournaments"),et&&(0,_.render)((0,_.h)(N,{progressText:((null==(g=window.crocoPopupsTranslations)?void 0:g.levelsMask)||"{0} of {1}").replace("{0}",String(null==(m=O.config)?void 0:m.currentEvent.currentLevel)).replace("{1}",String(null==(y=O.config)?void 0:y.currentEvent.levels.length)),percent:(null==(w=O.config)?void 0:w.currentEvent.currentLevel)/(null==(b=O.config)?void 0:b.currentEvent.levels.length)*100,translations:window.crocoPopupsTranslations}),et);var en=document.querySelector(".event-win-action");en&&en.addEventListener("click",function(e){var t,n;if(e.preventDefault(),O.config&&O.config.finishPopup&&(null!=(n=null==(t=O.config.currentEvent)?void 0:t.currentLevel)?n:0)<O.config.currentEvent.levels.length){window.location.href=window.mainPageUrl;return}window.location.href=e.target.href})}else Y===h.dX.postcards?(M.sendLevelFinishEvent(q.id,V,J.time_1s,{undos:J.undos,smart_hints:J.smart_hints,erases:J.erases}),M.getCompletedCardIndex(),M.onLevelComplete(),M.config.onboardingStep<5&&M.sendOnboardingEvent(5),d.P.emit(h.Ps.postcardsWinScreen)):Y===h.dX.storybook&&(D.sendLevelFinishEvent(q.id,V,J.time_1s,{undos:J.undos,smart_hints:J.smart_hints,erases:J.erases}),D.onLevelComplete(),D.config.onboardingStep<5&&D.sendOnboardingEvent(5),d.P.emit(h.Ps.storybookWinScreen));var er=window.useModules?e.dispatch(l.bE.sendTournamentResult,Z):d.P.emit(h.Ps.sendGameResult,Z),ei=window.useModules?(null==(T=null==(C=R.config)?void 0:C.tournaments[R.currentTournamentId])?void 0:T.status)==="running":(null==(B=null==(A=null==(I=null==(L=window.tournament)?void 0:L.storage)?void 0:I.data)?void 0:A.tournament)?void 0:B.status)==="running",eo=document.querySelector("#win-screen");(0,_.render)((0,_.h)(x.PreactWin,{parent:eo,currentGame:q,mode:Y,difficulty:V,dcDate:X,tournamentPromises:ei?er:null,monthFullCompleted:e.state.monthWin,croco:Y===h.dX.croco?{progressText:((null==(F=window.crocoPopupsTranslations)?void 0:F.levelsMask)||"{0} of {1}").replace("{0}",String(null==($=O.config)?void 0:$.currentEvent.currentLevel)).replace("{1}",String(null==(j=O.config)?void 0:j.currentEvent.levels.length)),percent:(null==(H=O.config)?void 0:H.currentEvent.currentLevel)/(null==(z=O.config)?void 0:z.currentEvent.levels.length)*100,translations:window.crocoPopupsTranslations}:null}),eo),(0,f.hn)(q),c.lw&&(e.dispatch(l.bE.updateCountWins),localStorage.setItem("lastGameTime",q.timer),localStorage.setItem("lastGameDifficulty",V)),(0,f.zg)(q),d.P.emit(h.Ps.stopTimer),d.P.emit(h.Ps.stopScoreTimer)}
14e.dispatch(l.bE.animateBoard,t)}},r[l.bE.animateBoard]=function(e,t){var n=e.state,r=n.currentGame,i=n.selectedCell,o=n.finished,s=n.animatedCells,a=n.coords,c=n.animationSettings,u="number"==typeof t?t:i;if(o&&(null==c?void 0:c[l.wB.animatedLevelFinish])){var p=[(0,f.$l)(a)],g=(0,f.$Y)(P({},r),u,I([],a,!0),c);e.commit(l.bE.setAnimatedCells,g),d.P.emit(h.Ps.animateCells,p)}else if(o){var g=[(0,f.nN)(u,I([],a,!0))];e.commit(l.bE.setAnimatedCells,g),d.P.emit(h.Ps.animateCells)}else{var g=(0,f.$Y)(P({},r),u,I([],a,!0),c);JSON.stringify(g)!==JSON.stringify(s)?(e.commit(l.bE.setAnimatedCells,g),d.P.emit(h.Ps.animateCells)):window.use_anim_score&&(e.commit(l.bE.setAnimatedCells,[[P({cellId:u,numberBounceAnimation:!0},a[u])]]),d.P.emit(h.Ps.animateCells))}},r[l.bE.removeConflictNotes]=function(e){var t=e.state,n=t.currentGame,r=t.selectedCell,i=t.coords;e.commit(l.bE.setBoardNotes,(0,f.cM)(n,i,r))},r[l.bE.removeNumberInNotes]=function(e,t){var n=e.state.currentGame;e.commit(l.bE.setBoardNotes,(0,f.$5)(n,t))},r[l.bE.cheatFinishLevel]=function(e){var t=e.state,n=t.currentGame;t.date;for(var r=n.values,i=n.solution,o=JSON.parse(JSON.stringify(r)),s=0;s<o.length;s++)o[s]=P(P({},r[s]),{val:i[s],editable:!1,conflict:!1,mistake:!1});e.commit(l.bE.setShowWinRate,!1),e.dispatch(l.bE.setGameLoaded,!0),e.commit(l.bE.setBoardValues,o),e.commit(l.bE.setBoardNotes,[]),e.dispatch(l.bE.validateBoard),d.P.emit(h.Ps.repaintGameBoard)},r[l.bE.cheatSolve]=function(e){for(var t=e.state,n=t.currentGame,r=t.date,i=n.values,o=n.solution,s=JSON.parse(JSON.stringify(i)),a=I([],s,!0).reverse().findIndex(function(e){return e.editable&&!e.val}),c=a>=0?s.length-1-a:a,u=0;u<c;u++)s[u]=P(P({},i[u]),{val:o[u],editable:!1,conflict:!1,mistake:!1});e.commit(l.bE.setShowWinRate,!1),e.dispatch(l.bE.setGameLoaded,!0),e.commit(l.bE.setBoardValues,s),e.commit(l.bE.setBoardNotes,[]),e.dispatch(l.bE.validateBoard),d.P.emit(h.Ps.repaintGameBoard),(0,f.jh)(e.state.currentGame,r)},r[l.bE.updateBoard]=function(e,t){var n=e.state,r=n.gameOver,i=n.showGameOver,o=n.settings,s=n.pausedGame,a=n.autoPaused,c=n.currentGame,u=n.selectedCell,p=n.notesMode,g=n.autoRemoveNotes,m=n.userActions,v=n.hideMessageTip,w=n.coords,b=n.date,_=n.finished,S=n.historyActions,x=n.mode,E=n.smartHint,C=(n.countWins,n.imaPlayed);if(o[h.wB.saveHistory]&&(e.commit(l.bE.addHistoryAction,t),(0,f.lu)(S)),!_&&!i&&!E&&!C){if(d.P.emit(h.Ps.userAction),r&&c.mistakes===(o[h.wB.countMistakes]||l.LP.COUNT_MISTAKES)&&![l.E7.select,l.E7.move,l.E7.note].includes(t.type)){e.commit(l.bE.changeShowGameOver,!0),d.P.emit(h.Ps.showMistakesPopup),d.P.emit(h.Ps.stopTimer),d.P.emit(h.Ps.stopScoreTimer);return}if((c.showWinRate||!v)&&e.dispatch(l.bE.hideMessage),s){e.dispatch(l.bE.setPaused,!1),d.P.emit(h.Ps.startTimer),a?e.commit(l.bE.setAutoPaused,!1):(0,y.jh)();return}if(c.values[u].editable||[l.E7.undo,l.E7.move,l.E7.select,l.E7.note,l.E7.hint].includes(t.type)){switch([l.E7.value,l.E7.hint].includes(t.type)&&!c.loaded&&e.dispatch(l.bE.setGameLoaded,!0),t.type){case l.E7.select:e.commit(l.bE.setSelected,t.value);break;case l.E7.note:e.commit(l.bE.setNotesMode,t.value);break;case l.E7.value:if(e.commit(l.bE.addUserAction,{cell:u,value:c.values[u].val,notes:I([],c.notes[u]||[],!0),nearNotes:(0,f.gh)(c.notes,w,u)}),p)e.commit(l.bE.setBoardValue,{val:0}),e.commit(l.bE.setBoardNote,{val:t.value});else{var P=c.values[u].val===t.value;e.commit(l.bE.setBoardValue,{val:P?0:t.value}),e.commit(l.bE.setBoardNote,{val:0}),g&&!P&&e.dispatch(l.bE.removeConflictNotes);var T="".concat(u).concat(t.value);if(e.state.currentGame.solution[e.state.selectedCell]===t.value&&c.baseScore&&!P&&!c.scoreHistory.includes(T)){var L=(0,f.OM)(e.state.currentGame,e.state.coords,e.state.selectedCell),O=c.baseScore.val*L;e.commit(l.bE.addScore,O),e.commit(l.bE.addScoreHistoryItem,T),window.use_anim_score&&d.P.emit(h.Ps.scoreAdded,O),console.log("Added ".concat(O," to score")),console.log("Total score:",c.score);var A=k.score.updateScore(c.score);d.P.emit(h.Ps.startScoreTimer,!0),d.P.emit(h.Ps.correctMoveMade,{bestScoreShown:A})}if("number"!=typeof e.state.currentGame.mistakes||e.state.currentGame.solution[e.state.selectedCell]===t.value||P)e.state.currentGame.solution[e.state.selectedCell]===t.value||P||d.P.emit(h.Ps.mistakeAdded);else{var M=o[h.wB.countMistakes]||l.LP.COUNT_MISTAKES;e.commit(l.bE.increaseMistakes),e.commit(l.bE.addMistake,M),d.P.emit(h.Ps.mistakeAdded),e.state.currentGame.mistakes===M&&(e.commit(l.bE.changeShowGameOver,!0),d.P.emit(h.Ps.showMistakesPopup),d.P.emit(h.Ps.stopTimer),d.P.emit(h.Ps.stopScoreTimer))}}e.dispatch(l.bE.validateBoard);break;case l.E7.erase:if((!c.values[u].val||c.values[u].val&&!c.values[u].editable)&&(!c.notes[u]||!c.notes[u].length))return;e.commit(l.bE.addUserAction,{cell:u,value:c.values[u].val,notes:c.notes[u]}),e.commit(l.bE.increaseErases),e.commit(l.bE.setBoardValue,{val:0}),e.commit(l.bE.setBoardNote,{val:0}),e.dispatch(l.bE.validateBoard);break;case l.E7.move:e.commit(l.bE.setSelected,(0,f.At)(u,t.value));break;case l.E7.hint:e.dispatch(l.bE.makeHint);break;case l.E7.undo:if(!m.length)return;var N=m.pop();if(e.commit(l.bE.setSelected,N.cell),e.commit(l.bE.setBoardValue,{val:N.value}),e.commit(l.bE.setCurrentCellNotes,N.notes),N.nearNotes&&N.nearNotes.length){for(var D=I([],c.notes,!0),R=0;R<N.nearNotes.length;R++)c.values[N.nearNotes[R].cell].val||(D[N.nearNotes[R].cell]=N.nearNotes[R].notes);e.commit(l.bE.setBoardNotes,D)}e.commit(l.bE.increaseUndos),e.commit(l.bE.setUserAction,m),e.dispatch(l.bE.validateBoard);break;default:console.log("Type of action does not exists")}d.P.emit(h.Ps.repaintGameBoard),[l.E7.move,l.E7.select].includes(t.type)||e.state.finished||(0,f.jh)(e.state.currentGame,b),e.state.finished?x!==h.dX.daily&&(0,f.EK)(c,b):(null==t?void 0:t.reload)&&window.location.reload()}}},r[l.bE.updateCountWins]=function(e){var t=e.state.countWins;e.commit(l.bE.updateCountWins,t+1),c.lw&&localStorage.setItem(u.LS.COUNT_WINS,String(t+1))},r[l.bE.changeSmartHint]=function(e,t){var n,r=e.state,i=r.finished,o=r.mode,s=t.active,a=t.sh;if(e.commit(l.bE.changeSmartHint,s),s)d.P.emit(h.Ps.stopTimer),d.P.emit(h.Ps.stopScoreTimer),d.P.emit(h.Ps.showSmartHint,{show:!0,sh:a});else if(d.P.emit(h.Ps.showSmartHint,{show:!1}),i||(d.P.emit(h.Ps.startTimer),d.P.emit(h.Ps.startScoreTimer)),d.P.emit(h.Ps.repaintGameBoard),a.type!==h.jc.FreeCell){e.commit(l.bE.changeCountSmartHints,(null!=(n=e.state.currentGame.countSmartHints)?n:0)+1),e.state.finished||(0,f.jh)(e.state.currentGame,e.state.date);var c={type:(0,g.sL)(a.type),time_1s:e.state.currentGame.timer/1e3,mode:h.VS[o]||o};(0,v.B)("g_hint_use",c),S.ets.send("g_hint_use",c)}},r[l.bE.makeHint]=function(e){var t=e.state,n=t.currentGame,r=t.selectedCell,i=t.autoCheckMistakes,o=t.coords,s=t.mode;if([h.dX.killer].includes(s)){if(e.state.currentGame.values[r].editable){e.dispatch(l.bE.makeHintToCell,{cell:r});var a={type:"default",time_1s:e.state.currentGame.timer/1e3,mode:h.VS[s]||s};(0,v.B)("g_hint_use",a),S.ets.send("g_hint_use",a)}}else if(i)if(n.values[r].val&&n.values[r].val!==n.solution[r]){e.dispatch(l.bE.makeHintToCell,{cell:r});var a={type:"default",time_1s:e.state.currentGame.timer/1e3,mode:h.VS[s]||s};(0,v.B)("g_hint_use",a),S.ets.send("g_hint_use",a)}else{var c=(0,f.I8)(n,o,r);if(c)e.dispatch(l.bE.changeSmartHint,{active:!0,sh:P(P({},c),c.cell?{value:n.solution[c.cell.index]}:{})});else if(n.values[r].val)e.dispatch(l.bE.changeSmartHint,{active:!0,sh:{type:h.jc.FreeCell}});else{e.dispatch(l.bE.makeHintToCell,{cell:r});var a={type:"default",time_1s:e.state.currentGame.timer/1e3,mode:h.VS[s]||s};(0,v.B)("g_hint_use",a),S.ets.send("g_hint_use",a)}}},r[l.bE.makeHintToCell]=function(e,t){var n=e.state,r=n.currentGame,i=n.userActions,o=n.date,s=n.mode,a=n.difficulty,c=n.autoRemoveNotes,u=t.cell,p=t.ignoreLimits;r.loaded||e.dispatch(l.bE.setGameLoaded,!0),e.commit(l.bE.setBoardValue,{val:r.solution[u],index:u,editable:!1}),e.commit(l.bE.setBoardNote,{val:0,index:u}),e.commit(l.bE.setUserAction,i.filter(function(e){return e.cell!==u})),"number"!=typeof r.hints||p||e.commit(l.bE.updateCountHints),c&&e.dispatch(l.bE.removeConflictNotes),d.P.emit(h.Ps.repaintGameBoard);
14var g=(0,f.OM)(e.state.currentGame,e.state.coords,u),m=l.Mt[a].base*g;e.commit(l.bE.addScore,m),k.score.updateScore(e.state.currentGame.score),d.P.emit(h.Ps.startScoreTimer,!0),console.log("Added ".concat(l.Mt[a].base," to score (base value by HINT)")),console.log("Total score:",r.score),(0,f.jh)(e.state.currentGame,o),e.dispatch(l.bE.validateBoard,u),e.state.finished&&s!==h.dX.daily&&(0,f.EK)(r,o)},r[l.bE.setShowMonthWinScreen]=function(e){if(c.lw){var t=e.state,n=t.date,r=t.dateTranslations,i=(0,m.jh)(n),o=JSON.parse(localStorage.getItem(u.LS.FINISHED_MONTHS))||[];if(i&&w.V.monthIsFullCompleted(i).completed&&!o.includes(i)){o.push(i),localStorage.setItem(u.LS.FINISHED_MONTHS,JSON.stringify(o)),window.notification.add("dc");var s=i.split("_"),a=s[0],d=s[1];document.querySelectorAll(".daily-win-text").forEach(function(e){return e.innerText=e.innerText.replace("{0}",(0,m.tI)(r[d],null,parseInt(a),"YEAR"))}),e.commit(l.bE.setShowMonthWinScreen,!0)}}},r[l.bE.prepareBoard]=function(e,t){var n,r=e.state,i=r.mode,o=r.settings;i===h.dX.daily&&e.commit(l.bE.setDifficulty,t.difficulty);var s={values:(0,f.mY)(t.mission),solution:t.solution.split("").map(function(e){return parseInt(e)}),mode:e.state.mode,difficulty:e.state.difficulty,loaded:!1,mission:t.mission,id:t.id,showWinRate:!!(e.state.hideMessageTip&&t.win_rate),winRate:null!=(n=t.win_rate)?n:0,timer:0,notes:[],cages:t.cages,score:0,scoreHistory:[],baseScore:{val:l.Mt[e.state.difficulty].base,lastGameTimer:0},countSmartHints:0,placement:t.placement||"game_start",emojisShown:t.emojisShown||[],bestMove:t.bestMove||(0,f.fr)()};s.mistakes=0,s.hints=o[h.wB.countHints]||l.LP.COUNT_HINTS,e.commit(l.bE.prepareBoard,s),i===h.dX.killer&&e.commit(l.bE.setGeneratedCages,(0,p.Lw)(t.solution,t.cages,e.state.coords)),d.P.emit(h.Ps.currentGameInit),d.P.emit(h.Ps.userAction)},r[l.bE.checkSavedGame]=function(e){if(c.lw){var t=e.state,n=(t.hideSavedGameDialog,t.mode),r=t.difficulty,i=t.date,o=t.coords,s=t.autoCheckMistakes,a=[h.dX.daily,h.dX.croco].includes(n),g=JSON.parse(localStorage.getItem(u.LS.MAIN_GAME))||{},m=JSON.parse(localStorage.getItem(u.LS.MAIN_GAME_KILLER))||{},v=localStorage.getItem(u.LS.DIFFICULTY),y=localStorage.getItem(u.LS.MODE),w=JSON.parse(localStorage.getItem(u.LS.DAILY))||{},b=null;switch(g.mode===h.dX.killer&&(m=g,(0,f.jh)(m,i),localStorage.removeItem(u.LS.MAIN_GAME)),!0){case n===h.dX.daily:w[i]&&(w[i].userGrid||w[i].values)&&(b=(0,f.TO)(P({mode:n},w[i]),o,s),w[i]=b,localStorage.setItem(u.LS.DAILY,JSON.stringify(w)));break;case n===h.dX.croco:O.config&&O.config.levelProgress&&(b=O.config.levelProgress);break;case n===h.dX.storybook:var _=D.getCurrentMappedSudokuLevel();_&&(b=_.levelProgress);break;case n===h.dX.postcards:var _=M.getCurrentMappedSudokuLevel();_&&(b=_.levelProgress);break;case n===y&&r===v:b=(0,f.TO)({difficulty:r,mode:n,clearGrid:JSON.parse(localStorage.getItem("clearGrid")),userGrid:JSON.parse(localStorage.getItem("userGrid")),solvedGrid:JSON.parse(localStorage.getItem("puzzleGrid")),pencilGrid:JSON.parse(localStorage.getItem("pencilGrid")),winRate:JSON.parse(localStorage.getItem("winRate")),timePassed:JSON.parse(localStorage.getItem("timePassed")),cages:n===h.dX.killer?JSON.parse(localStorage.getItem("cages")):null},o,s),(0,f.rs)();break;case m.mode===n&&m.difficulty===r:b=m;break;case g.mode===n&&g.difficulty===r:b=g}if(b&&!(null==b?void 0:b.finished)){e.dispatch(l.bE.setHideSavedGameDialog),e.commit(l.bE.prepareBoard,b),n===h.dX.killer&&e.commit(l.bE.setGeneratedCages,(0,p.Lw)(b.solution,b.cages,o)),(0,f.jh)(b,i);return}b&&(null==b?void 0:b.finished)&&((0,f.EK)(b,i),b=null);var S=g.difficulty||m.mode||v,x=[g.mode,m.mode,y];if(!a&&S&&x.includes(n)){var k=x.find(function(e){return e===n}),E=k===h.dX.classic||g.mode===h.dX.killer?g.difficulty||v:m.difficulty||v;e.commit(l.bE.setDifficulty,E),e.commit(l.bE.setMode,k),d.P.emit(h.Ps.setActiveDifficulty,{difficulty:E,replace:!0}),e.dispatch(l.bE.checkSavedGame)}}},r[l.bE.setHideSavedGameDialog]=function(e){c.lw&&sessionStorage.setItem("hideLoadGameDialog","true"),e.commit(l.bE.setHideSavedGameDialog,!0)},r[l.bE.setPromoBubbles]=function(e,t){void 0===t&&(t={hide:!1});var n,r=t.hide,i=e.state.promoBubble,o={date:new Date().toString(),count:(null!=(n=i.count)?n:0)+1,hide:r};e.commit(l.bE.setShowPromoBubbles,!1),e.commit(l.bE.setPromoBubbles,o),c.lw&&localStorage.setItem(u.LS.PROMO_BUBBLE,JSON.stringify(o))},r[l.bE.setGameLoaded]=function(e,t){e.commit(l.bE.setGameLoaded,t),e.commit(l.bE.changeCanShowInter,t),t&&c.lw&&localStorage.setItem(u.LS.CAN_SHOW_INTERS,String(!0))},r[l.bE.updateEmojisShown]=function(e,t){e.commit(l.bE.updateEmojisShown,t)},r[l.bE.updateBestMove]=function(e,t){e.commit(l.bE.updateBestMove,t)},r[l.bE.addScore]=function(e,t){e.commit(l.bE.addScore,t),k.score.updateScore(e.state.currentGame.score)},r[l.bE.animateFinishScore]=function(){d.P.emit(h.Ps.startScoreTimer,!0),d.P.emit(h.Ps.force
14UpdateWinBanner)},r[l.bE.updateAnimationSettings]=function(e,t){var n,r=e.state.animationSettings,i=P(P({},r),((n={})[t]=!r[t],n));e.commit(l.bE.updateAnimationSettings,i),c.lw&&localStorage.setItem(u.LS.ANIMATION_SETTINGS,JSON.stringify(i))},r[l.bE.setShowPopupSettings]=function(e,t){e.commit(l.bE.setShowPopupSettings,t),c.lw&&localStorage.setItem(u.LS.COUNT_SETTINGS_OPENS,String(e.state.countSettingsOpens))},r);var F=function(){return(F=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},$=function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))};let j=((i={})[l.bE.setImaAdsPlayed]=function(e,t){return e.imaPlayed=t,e},i[l.bE.setAutoPaused]=function(e,t){return e.autoPaused=t,e},i[l.bE.setShowSavedPopup]=function(e,t){return e.showSavedPopup=t,e},i[l.bE.setShowMonthWinScreen]=function(e,t){return e.monthWin=t,e},i[l.bE.updateTimer]=function(e,t){return e.currentGame.timer=t,e},i[l.bE.setHideSavedGameDialog]=function(e,t){return e.setHideSavedGameDialog=t,e},i[l.bE.setDifficulty]=function(e,t){return e.difficulty=t,window.difficulty=t,e},i[l.bE.setMode]=function(e,t){return e.mode=t,e},i[l.bE.setAnimatedCells]=function(e,t){return e.animatedCells=t,e},i[l.bE.setFinished]=function(e,t){return e.finished=t,e.currentGame.finished=t,e},i[l.bE.setGeneratedCages]=function(e,t){return e.generatedCages=t,e},i[l.bE.setPaused]=function(e,t){return e.pausedGame=t,e},i[l.bE.setCurrentCellNotes]=function(e,t){return e.currentGame.notes[e.selectedCell]=t,e},i[l.bE.setUserAction]=function(e,t){return e.userActions=t,e},i[l.bE.setHistoryActions]=function(e,t){return e.historyActions=t,e},i[l.bE.setNotesMode]=function(e,t){return e.notesMode=t,e},i[l.bE.setCoords]=function(e,t){return e.coords=t,e},i[l.bE.setSettings]=function(e,t){return e.settings=t,e},i[l.bE.setAutoCheck]=function(e,t){return e.autoCheckMistakes=t,e},i[l.bE.prepareBoard]=function(e,t){return e.currentGame=t,e},i[l.bE.setSelected]=function(e,t){return e.selectedCell=t,e},i[l.bE.hideMessageTip]=function(e){return e.hideMessageTip=!0,e},i[l.bE.setGameLoaded]=function(e,t){return e.currentGame&&(e.currentGame.loaded=t),e},i[l.bE.setShowWinRate]=function(e,t){return e.currentGame&&(e.currentGame.showWinRate=t),e},i[l.bE.setBoardValues]=function(e,t){e.currentGame.values=t},i[l.bE.setBoardValue]=function(e,t){var n="number"==typeof t.index?t.index:e.selectedCell;return e.currentGame.values[n]=F(F({},e.currentGame.values[n]),t),e},i[l.bE.setBoardNotes]=function(e,t){return e.currentGame.notes=t,e},i[l.bE.addUserAction]=function(e,t){return e.userActions.push(t),e},i[l.bE.addHistoryAction]=function(e,t){return e.historyActions.push(t),e},i[l.bE.setBoardNote]=function(e,t){var n="number"==typeof t.index?t.index:e.selectedCell,r=$([],e.currentGame.notes[n]||[],!0);return t.val&&(r[t.val-1]=r[t.val-1]?null:t.val),e.currentGame.notes[n]=t.val?r:null,e},i[l.bE.updateCountHints]=function(e){return e.currentGame.hints=0===e.currentGame.hints?e.currentGame.hints:e.currentGame.hints-1,e},i[l.bE.addFreeHints]=function(e){return e.currentGame.hints++,e},i[l.bE.addMistake]=function(e,t){return e.currentGame.mistakes=e.currentGame.mistakes+1<t?e.currentGame.mistakes+1:t,e},i[l.bE.minusMistake]=function(e){return e.currentGame.mistakes=e.currentGame.mistakes-1>=0?e.currentGame.mistakes-1:0,e},i[l.bE.changeShowGameOver]=function(e,t){return e.showGameOver=t,e},i[l.bE.setGameOver]=function(e,t){return e.gameOver=t,e},i[l.bE.setHideLostProgress]=function(e){return e.hideLostProgress=!0,e},i[l.bE.setShowPopupLostProgress]=function(e,t){return e.showPopupLostProgress=t,e},i[l.bE.setShowPopupSettings]=function(e,t){var n;return e.showPopupSettings=t,t&&(e.countSettingsOpens=(null!=(n=e.countSettingsOpens)?n:0)+1),e},i[l.bE.setShowPromoBubbles]=function(e,t){return e.canShowPromoBubble=t,e},i[l.bE.setPromoBubbles]=function(e,t){return e.promoBubble=t,e},i[l.bE.changeSmartHint]=function(e,t){return e.smartHint=t,e},i[l.bE.changeCountSmartHints]=function(e,t){return e.currentGame.countSmartHints=t,e},i[l.bE.updateCountWins]=function(e,t){return e.countWins=t,e},i[l.bE.changeCanShowInter]=function(e,t){return e.canShowInter=t,e},i[l.bE.increaseErases]=function(e){var t;return e.currentGame.erases=(null!=(t=e.currentGame.erases)?t:0)+1,e},i[l.bE.increaseUndos]=function(e){var t;return e.currentGame.undos=(null!=(t=e.currentGame.undos)?t:0)+1,e},i[l.bE.increaseMistakes]=function(e){var t;return e.currentGame.countMistakes=(null!=(t=e.currentGame.countMistakes)?t:0)+1,e},i[l.bE.addScore]=function(e,t){var n;return e.currentGame.score=(null!=(n=e.currentGame.score)?n:0)+t,e},i[l.bE.addScoreHistoryItem]=function(e,t){return e.currentGame.scoreHistory.push(t),e},i[l.bE.updateScoreBaseValue]=function(e,t){return e.currentGame.baseScore=t,e},i[l.bE.updateEmojisShown]=function(e,t){return e.currentGame.emojisShown=t,e},i[l.bE.updateBestMove]=function(e,t){return e.currentGame.bestMove=t,e},i[l.bE.updateAnimationSettings]=function(e,t){return e.animationSettings=t,e},i[l.bE.addToBestLevelsLast250Lvls]=function(e,t){var n=t.mode,r=t.levelId,i=t.difficulty;if(!e.bestLevelsConfig||!e.bestLevelsConfig[n])return e;e.bestLevelsConfig[n].last250Lvls||(e.bestLevelsConfig[n].last250Lvls=[]);
14var o="".concat({easy:"e",medium:"m",hard:"h",expert:"x",evil:"v",extreme:"r"}[i]).concat(r);return!e.bestLevelsConfig[n].last250Lvls.includes(o)&&(e.bestLevelsConfig[n].last250Lvls.push(o),e.bestLevelsConfig[n].last250Lvls.length>250&&e.bestLevelsConfig[n].last250Lvls.shift()),e},i[l.bE.addDifficultyToFinished]=function(e,t){var n=t.mode,r=t.difficulty;return e.bestLevelsConfig&&e.bestLevelsConfig[n]&&(e.bestLevelsConfig[n].finishedDifficulties||(e.bestLevelsConfig[n].finishedDifficulties=[]),e.bestLevelsConfig[n].finishedDifficulties.push(r)),e},i[l.bE.updateGameHistory]=function(e,t){var n={mode:t.mode,difficulty:t.difficulty,date:Date.now()},r=Date.now()-2592e6;return e.history=$($([],(e.history||[]).filter(function(e){return e&&e.date>=r}),!0),[n],!1),e},i);var H=function(){return(H=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},z=window.mode,G=window.lang,q=window.difficulty,U=(0,m.ZF)(new Date,window.serverDate),W=sessionStorage.getItem(u.f.DC_DATE),V=sessionStorage.getItem("dc-date");!W&&V&&sessionStorage.setItem(u.f.DC_DATE,'"'.concat(V,'"'));var Y=JSON.parse(localStorage.getItem(u.LS.TOURNAMENT));window.useModules?(localStorage.getItem("new-tournament-module")||localStorage.removeItem(u.LS.TOURNAMENT),localStorage.setItem("new-tournament-module","1")):(null==Y?void 0:Y.hiw)&&localStorage.setItem(u.LS.TOURNAMENT_HIW,"1");var X=c.lw&&sessionStorage.getItem(u.f.DC_DATE)&&JSON.parse(sessionStorage.getItem(u.f.DC_DATE))||"".concat(U.getFullYear(),"_").concat(U.getMonth(),"_").concat(U.getDate()),K=c.lw&&(0,c.Ri)(u.A.CHECK_MISTAKES),J=c.lw&&localStorage.getItem(u.LS.GAME_TIP),Z=c.lw&&localStorage.getItem(u.LS.HIDE_LOST_PROGRESS),Q=c.lw&&sessionStorage.getItem(u.LS.SAVED_GAME),ee=0,et=c.lw&&JSON.parse(localStorage.getItem(u.LS.PROMO_BUBBLE))||{count:0},en=et.date?new Date(et.date):new Date,er=new Date,ei=(!et.date||er.getFullYear()!==en.getFullYear()||er.getMonth()!==en.getMonth()||er.getDate()!==en.getDate())&&
14(!et.count||et.count<3)&&!et.hide;c.lw&&sessionStorage.getItem(u.f.SELECTED_CELL)&&(ee=parseInt(sessionStorage.getItem(u.f.SELECTED_CELL)),sessionStorage.removeItem(u.f.SELECTED_CELL));var eo=c.lw?JSON.parse(localStorage.getItem(u.LS.ANIMATION_SETTINGS)):null,es=H(((o={})[l.wB.emojiOnProgress]=!!window.fs,o[l.wB.animatedAreaFinish]=!!window.fs||"desktop"!==window.deviceType,o[l.wB.animatedLevelFinish]=!!window.fs||"desktop"!==window.deviceType,o[l.wB.highlightDuplicates]=!0,o[l.wB.hightlightAreas]=!0,o[l.wB.hightlightIdenticalNumbers]=!0,o[l.wB.bestMove]=!0,o),eo);eo&&Object.keys(es).every(function(e){return e in eo})||localStorage.setItem(u.LS.ANIMATION_SETTINGS,JSON.stringify(es));var ea=c.lw?JSON.parse(localStorage.getItem(u.LS.BEST_LEVELS_CONFIG)):null,el=1===window.dcBalance?3:null;if(2===window.dcBalance){var ec=c.lw?JSON.parse(localStorage.getItem(u.LS.USER_SEGMENT)):null;if(!(el=ec?ec.segment:null)||!(0,m.ro)(null==ec?void 0:ec.lastUpdate,Date.now())){var eu={lastUpdate:Date.now(),segment:(0,f.$J)(h.dX.classic)};localStorage.setItem(u.LS.USER_SEGMENT,JSON.stringify(eu)),el=eu.segment}}let ed={settings:{},selectedCell:ee,autoCheckMistakes:!K||"true"===K,hideMessageTip:!!J,hideSavedGameDialog:Q,showSavedPopup:!1,showGameOver:!1,gameOver:!1,currentGame:null,notesMode:!1,pausedGame:!1,autoPaused:!1,finished:!1,monthWin:!1,userActions:[],historyActions:c.lw&&JSON.parse(localStorage.getItem(u.LS.HISTORY_ACTIONS))||[],coords:[],animatedCells:[],autoRemoveNotes:!0,imaPlayed:!1,showPopupLostProgress:!1,showPopupSettings:!1,mode:z,lang:G,difficulty:q,date:X,dateTranslations:window.arrayOfTranslateDates,hideLostProgress:Z,promoBubble:et,canShowPromoBubble:ei,smartHint:!1,lastInterInProgressDate:c.lw?Number(localStorage.getItem(u.LS.LAST_INTER_IN_PROGRESS)):null,countWins:c.lw?Number(localStorage.getItem(u.LS.COUNT_WINS)):0,canShowInter:!c.lw||!!localStorage.getItem(u.LS.CAN_SHOW_INTERS),animationSettings:es,countSettingsOpens:c.lw?Number(localStorage.getItem(u.LS.COUNT_SETTINGS_OPENS)):0,bestLevelsConfig:ea||{classic:{last250Lvls:[],lvlsTime:{},lastFinishes:[],pauseFinishes:0,finishedDifficulties:[]},killer:{last250Lvls:[],lvlsTime:{},lastFinishes:[],pauseFinishes:0,finishedDifficulties:[]}},history:c.lw&&JSON.parse(localStorage.getItem(u.LS.GAME_HISTORY))||[],userSegment:el};var eh=function(){function e(e){this.status=l.M3.resting,this.actions=e.actions,this.mutations=e.mutations,this.state=e.state||{}}return e.prototype.dispatch=function(e,t){if("function"==typeof this.actions[e])return this.status=l.M3.action,this.actions[e](this,t)},e.prototype.commit=function(e,t){if("function"==typeof this.mutations[e])return this.status=l.M3.mutation,this.state=Object.assign(this.state,this.mutations[e](this.state,t)),!0},e}(),ep=n(97283),ef=function(){return(ef=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},eg=function(){function e(e){this.status=l.M3.resting,this.actions=e.actions,this.mutations=e.mutations,this._zustand=(0,ep.y)()(function(){return e.state||{}})}return Object.defineProperty(e.prototype,"state",{get:function(){return this._zustand.getState()},enumerable:!1,configurable:!0}),e.prototype.dispatch=function(e,t){if("function"==typeof this.actions[e])return this.status=l.M3.action,this.actions[e](this,t)},e.prototype.commit=function(e,t){if("function"==typeof this.mutations[e]){this.status=l.M3.mutation;var n=this._zustand.getState(),r=this.mutations[e](n,t);return r&&Object.assign(n,r),this._zustand.setState(ef({},n),!0),!0}},Object.defineProperty(e.prototype,"vanilla",{get:function(){return this._zustand},enumerable:!1,configurable:!0}),e}();let em=(null==(a=null==(s=null==window?void 0:window.eb)?void 0:s.settings)?void 0:a.use_game_refactor)?new eg({actions:B,mutations:j,state:ed}):new eh({actions:B,mutations:j,state:ed})},52195:(e,t,n)=>{"use strict";n.d(t,{A:()=>o,LS:()=>r,f:()=>i});var r={GAME_TIP:"hideGameTip",DIFFICULTY:"difficulty",MODE:"mode",SAVED_GAME:"hideLoadGameDialog",DAILY:"dailyInfo",MAIN_GAME:"main_game",MAIN_GAME_KILLER:"main_game_killer",FINISHED_MONTHS:"dailyFinishedMonths",HISTORY_ACTIONS:"main_game_actions",HIDE_LOST_PROGRESS:"hide_lost_progress",PROMO_BUBBLE:"promo_bubble",LA
14ST_INTER_IN_PROGRESS:"last_inter_date",COUNT_WINS:"count_wins",COUNT_STARTS:"count_starts",CAN_SHOW_INTERS:"can_show_interstitial_ads",LAST_INTER_TIME:"last_inter_time",EUID:"euid",TOURNAMENT:"tournament",TOURNAMENT_HIW:"tournament_hiw",TOURNAMENT_AWARDS:"tournament_awards",SPECIAL_AVATARS:"special_avatars",LAST_INTER_TEXT:"last_inter_text",LAST_INTER_EMOJI:"last_inter_emoji",AVATARS:"avatars",AVATARS_CONFIG:"avatars_config",START_LEVEL:"start_level",ANIMATION_SETTINGS:"game_settings",COUNT_SETTINGS_OPENS:"count_settings_opens",BEST_LEVELS_CONFIG:"best_levels",GAME_HISTORY:"game_history",USER_SEGMENT:"user_segment",SMART_BANNER_CONFIG:"smart_banner_config"},i={STARTED_GAME_DIALOG:"hideLoadGameDialog",DC_DATE:"dc_date",SELECTED_CELL:"selected_cell",GAME_PLACEMENT:"game_placement",FROM_WIN:"from_win"},o={CHECK_MISTAKES:"checkMistakes"}},80457:(e,t,n)=>{"use strict";n.d(t,{E7:()=>i,JE:()=>l,LP:()=>a,M3:()=>o,Mt:()=>c,bE:()=>r,wB:()=>s}),function(e){e.setSettings="setSettings",e.setAutoCheck="setAutoCheck",e.prepareBoard="prepareBoard",e.hideMessageTip="hideMessageTip",e.updateBoard="updateBoard",e.setSelected="setSelected",e.hideMessage="hideMessage",e.setGameLoaded="setGameLoaded",e.setShowWinRate="setShowWinRate",e.setBoardValue="setBoardValue",e.setBoardNote="setBoardNote",e.setBoardValues="setBoardValues",e.setBoardNotes="setBoardNotes",e.validateBoard="validateBoard",e.setCoords="setCoords",e.setNotesMode="setNotesMode",e.removeConflictNotes="removeConflictNotes",e.addUserAction="addUserAction",e.addHistoryAction="addHistoryAction",e.setUserAction="setUserAction",e.setHistoryActions="setHistoryActions",e.setCurrentCellNotes="setCurrentCellNotes",e.setPaused="setPaused",e.setGeneratedCages="setGeneratedCages",e.animateBoard="animateBoard",e.setFinished="setFinished",e.setAnimatedCells="setAnimatedCells",e.prepareEvent="prepareEvent",e.setDifficulty="setDifficulty",e.setMode="setMode",e.checkSavedGame="checkSavedGame",e.setHideSavedGameDialog="setHideSavedGameDialog",e.updateTimer="updateTimer",e.cheatSolve="cheatSolve",e.setShowMonthWinScreen="setShowMonthWinScreen",e.setShowSavedPopup="setShowSavedPopup",e.requestNewContent="requestNewContent",e.restartGame="restartGame",e.setAutoPaused="setAutoPaused",e.setImaAdsPlayed="setImaAdsPlayed",e.updateCountHints="updateCountHints",e.addFreeHints="addFreeHints",e.useHint="useHint",e.addMistake="addMistake",e.minusMistake="minusMistake",e.changeShowGameOver="changeShowGameOver",e.setGameOver="setGameOver",e.makeHint="makeHint",e.setHideLostProgress="setHideLostProgress",e.setShowPopupLostProgress="setShowPopupLostProgress",e.setShowPromoBubbles="setShowPromoBubbles",e.setPromoBubbles="setPromoBubbles",e.makeHintToCell="makeHintToCell",e.changeSmartHint="changeSmartHint",e.changeCountSmartHints="changeCountSmartHints",e.updateCountWins="updateCountWins",e.showInterInProgressByHint="showInterInProgressByHint",e.changeCanShowInter="changeCanShowInter",e.clearAll="clearAll",e.increaseUndos="increaseUndos",e.increaseMistakes="increaseMistakes",e.increaseErases="increaseErases",e.addScore="addScore",e.addScoreHistoryItem="addScoreHistoryItem",e.updateScoreBaseValue="updateScoreBaseValue",e.cheatFinishLevel="cheatFinishLevel",e.removeNumberInNotes="removeNumberInNotes",e.sendTournamentResult="sendTournamentResult",e.updateEmojisShown="updateEmojisShown",e.updateBestMove="updateBestMove",e.animateFinishScore="animateFinishScore",e.updateAnimationSettings="updateAnimationSettings",e.setShowPopupSettings="setShowPopupSettings",e.addToBestLevelsLast250Lvls="addToBestLevelsLast250Lvls",e.addDifficultyToFinished="addDifficultyToFinished",e.updateGameHistory="updateGameHistory"}(r||(r={})),function(e){e.undo="undo",e.move="move",e.select="select",e.note="note",e.value="value",e.hint="hint",e.erase="erase"}(i||(i={})),function(e){e.resting="resting",e.action="action",e.mutation="mutation"}(o||(o={}));var r,i,o,s,a={COUNT_HINTS:3,COUNT_MISTAKES:3},l={classic:["easy","medium","hard","expert","evil","extreme"],killer:["easy","medium","hard","expert"]},c={easy:{base:50,min:5,step:5,time:5}
14,medium:{base:150,min:15,step:15,time:5},hard:{base:210,min:21,step:21,time:5},expert:{base:230,min:23,step:23,time:5},evil:{base:250,min:25,step:25,time:5},extreme:{base:250,min:25,step:25,time:5}};!function(e){e.emojiOnProgress="emoji_on_progress",e.animatedAreaFinish="animated_area_finish",e.animatedLevelFinish="animated_level_finish",e.highlightDuplicates="highlight_duplicates",e.hightlightAreas="hightlight_areas",e.hightlightIdenticalNumbers="hightlight_identical_numbers",e.bestMove="best_move"}(s||(s={}))},83695:(e,t,n)=>{"use strict";n.d(t,{L:()=>h}),n(74423),n(69085),n(26099),n(27495),n(21699),n(5746),n(23500);var r=n(34585),i=n(22235),o=n(32612),s=n(11760),a=["1","2","3","4","7","9","10"],l=function(e,t){var n,r=null==(n=null==e?void 0:e.purpose)?void 0:n.consents;if(!r)return!1;for(var i=0;i<t.length;i++)if(!r[t[i]])return!1;return!0},c=n(80011),u=function(){return(u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},d=function(){function e(){var e;this.responseAdsInfo={},this.rewardedRefreshTime=1e3*(Number(null==(e=null==window?void 0:window.eb)?void 0:e.settings.rewarded_refresh_time)||60),this.rewardLoaded=!1,this.interLoaded=!1,this.adsInfo={},this.personalizedAd=!0,this.trackImpressions={},o.P.subscribe(r.Ps.requestNewBanner,this.requestNewBanner.bind(this))}return e.prototype.requestNewBanner=function(e){var t;window.AUCTION_INSTANCE&&(null==(t=null==window?void 0:window.eb)||!t.settings.disable_banner_ads)&&window.AUCTION_INSTANCE.registerAdSlot("gam",e.path,e.blockId)},e.prototype.getGptFuncSizeConfig=function(e){var t=googletag.sizeMapping();return e.forEach(function(e){t.addSize(e.minViewPort,e.sizes)}),t.build()},e.prototype.init=function(e,t,n){var a=this;return(t&&(this.rewardName=t.name),n&&(this.interName=n.name),window.googletag.cmd.push(function(){var s;(null==(s=null==window?void 0:window.eb)?void 0:s.settings.disable_banner_ads)||e.forEach(function(e){if(!e.disableCondition&&(!e.setting||(null==(t=null==window?void 0:window.eb)?void 0:t.settings[e.setting]))&&(!e.device||e.device===window.deviceType)&&(!e.modes||e.modes.includes(window.mode))){var t,n=window.googletag.defineSlot(e.path,e.sizes,e.blockId);e.sizeMapper&&n.defineSizeMapping(a.getGptFuncSizeConfig(e.sizeMapper)),n.addService(window.googletag.pubads())}}),t&&(a.reward=window.googletag.defineOutOfPageSlot(a.rewardName,window.googletag.enums.OutOfPageFormat.REWARDED),a.reward?(a.reward.addService(window.googletag.pubads()),window.googletag.pubads().addEventListener("rewardedSlotReady",function(e){a.rewardLoaded=!0,o.P.emit(r.Ps.rewardReady,e)}),window.googletag.pubads().addEventListener("rewardedSlotClosed",function(e){var t,n,s=e.slot,l=s.getSlotElementId(),d=s.getAdUnitPath(),h=s.getResponseInformation();if(d.includes("reward")&&window.rewardPlacement)if(h){var p=u({path:d,id:l,advertiserId:h.advertiserId,campaignId:h.campaignId,creativeId:h.creativeId,lineItemId:h.lineItemId,sourceAgnosticCreativeId:null!=(t=h.sourceAgnosticCreativeId)?t:null,sourceAgnosticLineItemId:null!=(n=h.sourceAgnosticLineItemId)?n:null,service_name:"publisher_ads"===e.serviceName?"AdManager":e.serviceName,placement:window.rewardPlacement},a.adsInfo[l]?a.adsInfo[l]:{});(0,i.B)("ad_rewarded_closed",p),c.ets.send("ad_rewarded_closed",p)}else{var p=u({placement:window.rewardPlacement,path:d,id:l,impressionWithoutData:!0,service_name:"publisher_ads"===e.serviceName?"AdManager":e.serviceName},a.adsInfo[l]?a.adsInfo[l]:{});(0,i.B)("ad_rewarded_closed",p),c.ets.send("ad_rewarded_closed",p)}window.googletag.destroySlots([a.reward]),a.reward=null,a.rewardLoaded=!1,delete a.adsInfo[l],history.pushState("",document.title,window.location.pathname+window.location.search),o.P.emit(r.Ps.rewardDestroyed,!0),a.initReward()}),window.googletag.pubads().addEventListener("rewardedSlotGranted",function(e){var t,n,s=e.slot,l=s.getSlotElementId(),d=s.getAdUnitPath(),h=s.getResponseInformation();if(d.includes("reward")&&window.rewardPlacement)if(h){var p=u({path:d,id:l,advertiserId:h.advertiserId,campaignId:h.campaignId,creativeId:h.creativeId,lineItemId:h.lineItemId,sourceAgnosticCreativeId:null!=(t=h.sourceAgnosticCreativeId)?t:null,sourceAgnosticLineItemId:null!=(n=h.sourceAgnosticLineItemId)?n:null,
14service_name:"publisher_ads"===e.serviceName?"AdManager":e.serviceName,placement:window.rewardPlacement},a.adsInfo[l]?a.adsInfo[l]:{});(0,i.B)("ad_rewarded_finished",p),c.ets.send("ad_rewarded_finished",p)}else{var p=u({placement:window.rewardPlacement,path:d,id:l,impressionWithoutData:!0,service_name:"publisher_ads"===e.serviceName?"AdManager":e.serviceName},a.adsInfo[l]?a.adsInfo[l]:{});(0,i.B)("ad_rewarded_finished",p),c.ets.send("ad_rewarded_finished",p)}o.P.emit(r.Ps.rewardGranted),window.googletag.destroySlots([a.reward]),a.reward=null,a.rewardLoaded=!1,delete a.adsInfo[l],history.pushState("",document.title,window.location.pathname+window.location.search),o.P.emit(r.Ps.rewardDestroyed,!0),a.initReward()}),setTimeout(function(){a.rewardLoaded||((0,i.B)("ad_rewarded_failed",{service_name:r.p1.google}),c.ets.send("ad_rewarded_failed",{service_name:r.p1.google}))},5e3)):((0,i.B)("ad_rewarded_failed",{service_name:r.p1.google}),c.ets.send("ad_rewarded_failed",{service_name:r.p1.google}))),n&&window.useFullScreenInter&&(a.inter=googletag.defineOutOfPageSlot(a.interName,window.googletag.enums.OutOfPageFormat.GAME_MANUAL_INTERSTITIAL),a.inter?(a.inter.addService(window.googletag.pubads()),setTimeout(function(){a.interLoaded||((0,i.B)("ad_interstitial_failed",{service_name:r.p1.google}),c.ets.send("ad_interstitial_failed",{service_name:r.p1.google}))},5e3),window.googletag.pubads().addEventListener("gameManualInterstitialSlotReady",function(e){a.inter===e.slot&&(a.interLoaded=!0,console.log("inter loaded",e),o.P.emit(r.Ps.interLoaded,e))}),window.googletag.pubads().addEventListener("gameManualInterstitialSlotClosed",function(e){var t,n,i=e.slot,s=i.getSlotElementId(),l=i.getAdUnitPath(),c=i.getResponseInformation();o.P.emit(r.Ps.interDestroyed,u(u(u({path:l,id:s,service_name:"AdManager"},a.adsInfo[s]?a.adsInfo[s]:{}),{personalized_ad:a.personalizedAd}),c?{advertiserId:c.advertiserId,campaignId:c.campaignId,creativeId:c.creativeId,lineItemId:c.lineItemId,sourceAgnosticCreativeId:null!=(t=c.sourceAgnosticCreativeId)?t:null,sourceAgnosticLineItemId:null!=(n=c.sourceAgnosticLineItemId)?n:null}:{impressionWithoutData:!0})),window.googletag.destroySlots([a.inter]),a.inter=null,a.interLoaded=!1,delete a.adsInfo[s],history.pushState("",document.title,window.location.pathname+window.location.search),a.initInter()})):((0,i.B)("ad_interstitial_failed",{service_name:r.p1.google}),c.ets.send("ad_interstitial_failed",{service_name:r.p1.google}))),window.googletag.pubads().addEventListener("impressionViewable",function(e){var t,n,s,l,d,h=e.slot,p=h.getSlotElementId(),f=h.getAdUnitPath(),g=f.includes("reward"),m=g?"ad_rewarded_impression":"ad_banner_impression",v=f.includes("interstitial")||f.includes("Europe/France/Paris")||f.includes("web_sudoku_video_ima")||f.includes("web_sudoku_full_mob"),y={},w=h.getResponseInformation();if(a.trackImpressions[p]=!0,v)return void o.P.emit(r.Ps.interImpression,u(u(u({path:f,id:p,service_name:"AdManager"},a.adsInfo[p]?a.adsInfo[p]:{}),{personalized_ad:a.personalizedAd}),w?{advertiserId:w.advertiserId,campaignId:w.campaignId,creativeId:w.creativeId,lineItemId:w.lineItemId,sourceAgnosticCreativeId:null!=(t=w.sourceAgnosticCreativeId)?t:null,sourceAgnosticLineItemId:null!=(n=w.sourceAgnosticLineItemId)?n:null}:{impressionWithoutData:!0}));g&&window.rewardPlacement&&(y.placement=window.rewardPlacement);var b=[].find(function(e){return e.slotID===p}),_=null==(s=window.pbjs)?void 0:s.getHighestCpmBids(p),S=_&&_.length?"Prebid":(null==b?void 0:b.amzniid)?"Amazon":"AdManager";if(g||(y.networkName=S,"Prebid"===S&&(y.prebid_network=_[0].bidder,y.prebid_bid=_[0].cpm)),!w){var x=u(u(u(u({path:f,id:p,impressionWithoutData:!0},y),{service_name:"publisher_ads"===e.serviceName?"AdManager":e.serviceName}),a.adsInfo[p]?a.adsInfo[p]:{}),{personalized_ad:a.personalizedAd});"ad_banner_impression"!==m&&((0,i.B)(m,x),c.ets.send(m,x,!0)),g||delete a.adsInfo[p];return}var k=u(u({path:f,id:p,advertiserId:w.advertiserId,campaignId:w.campaignId,creativeId:w.creativeId,lineItemId:w.lineItemId,sourceAgnosticCreativeId:null!=(l=w.sourceAgnosticCreativeId)?l:null,sourceAgnosticLineItemId:null!=(d=w.sourceAgnosticLineItemId)?d:null,service_name:"publisher_ads"===e.serviceName?"AdManager":e.serviceName},a.adsInfo[p]?a.adsInfo[p]:{}),{personalized_ad:a.personalizedAd});"ad_banner_impression"!==m&&((0,i.B)(m,u(u({},k),y)),c.ets.send(m,u(u({},k),y),!0)),g||delete a.adsInfo[p]}),window.googletag.pubads().addEventListener("slotRequested",function(e){var t=e.slot,n=t.getSlotElementId(),o=t.getAdUnitPath(),s=o.includes("reward"),a=o.includes("interstitial")||o.includes("Europe/France/Paris")||o.includes("web_sudoku_video_ima")||o.includes("web_sudoku_full_mob"),l=s?"ad_rewarded_request":a?"ad_interstitial_request":"ad_banner_request";(0,i.B)(l,{path:o,id:n,service_name:r.p1.google}),c.ets.send(l,{path:o,id:n,service_name:r.p1.google})}),window.googletag.pubads().addEventListener("slotRenderEnded",function(e){var t,n,o,s,l=e.slot,d=l.getAdUnitPath(),h=l.getSlotElementId(),p=d.includes("reward"),f=d.includes("interstitial")||d.includes("Europe/France/Paris")||d.includes("web_sudoku_video_ima")||d.includes("web_sudoku_full_mob");if(a.adsInfo[h]={is_empty:e.isEmpty,is_backfill:e.isBackfill,size:e.size&&Array.isArray(e.size)?e.
14size.join("x"):null},!p&&!f){var g={},m=l.getResponseInformation();a.responseAdsInfo[h]={path:d,adsInfo:m};var v=[].find(function(e){return e.slotID===h}),y=null==(t=window.pbjs)?void 0:t.getHighestCpmBids(h),w=y&&y.length?"Prebid":(null==v?void 0:v.amzniid)?"Amazon":"AdManager";g.networkName=w,"Prebid"===w&&(g.prebid_network=y[0].bidder,g.prebid_bid=y[0].cpm);var b=u(u(u(u(u({path:d,id:h},m?{advertiserId:m.advertiserId,campaignId:m.campaignId,creativeId:m.creativeId,lineItemId:m.lineItemId,sourceAgnosticCreativeId:null!=(n=m.sourceAgnosticCreativeId)?n:null,sourceAgnosticLineItemId:null!=(o=m.sourceAgnosticLineItemId)?o:null}:{impressionWithoutData:!0}),{service_name:r.p1.google}),a.adsInfo[h]?a.adsInfo[h]:{}),{personalized_ad:a.personalizedAd}),g);e.isEmpty||((0,i.B)("ad_banner_impression",b),c.ets.send("ad_banner_impression",b,!0))}if(e.isEmpty){(null==(s=null==window?void 0:window.eb)?void 0:s.settings.banner_refresh)&&(p?a.refreshRewardedAds():f&&a.refreshInterAds());return}}),window.googletag.setConfig({disableInitialLoad:!0,singleRequest:!0,collapseDiv:"ON_NO_FILL",adsenseAttributes:{page_url:"".concat(window.location.origin,"/")}}),window.isShowPersonalAdv||googletag.pubads().setPrivacySettings({nonPersonalizedAds:!0}),window.googletag.enableServices(),a.reward&&(window.googletag.display(a.reward),window.googletag.pubads().refresh([a.reward])),a.inter&&window.googletag.pubads().refresh([a.inter])}),window.useCmp||(0,s.pd)())?window.tcfData?void this.startAds(window.tcfData):void o.P.subscribe(r.Ps.initBannerAds,this.startAds.bind(this)):void this.startAds()},e.prototype.startAds=function(e){this.personalizedAd=(0,s.OX)()?l(e,a):!!window.isShowPersonalAdv},e.prototype.initInter=function(){var e=this;this.interName&&window.googletag.cmd.push(function(){e.inter=googletag.defineOutOfPageSlot(e.interName,window.googletag.enums.OutOfPageFormat.GAME_MANUAL_INTERSTITIAL),e.inter?(e.inter.addService(window.googletag.pubads()),window.googletag.display(e.inter),window.googletag.pubads().refresh([e.inter]),setTimeout(function(){e.interLoaded||((0,i.B)("ad_interstitial_failed",{service_name:r.p1.google}),c.ets.send("ad_interstitial_failed",{service_name:r.p1.google}))},5e3)):((0,i.B)("ad_interstitial_failed",{service_name:r.p1.google}),c.ets.send("ad_interstitial_failed",{service_name:r.p1.google}))})},e.prototype.initReward=function(){var e=this;this.rewardName&&window.googletag.cmd.push(function(){e.reward=window.googletag.defineOutOfPageSlot(e.rewardName,window.googletag.enums.OutOfPageFormat.REWARDED),e.reward?(e.reward.addService(window.googletag.pubads()),window.googletag.display(e.reward),window.googletag.pubads().refresh([e.reward]),setTimeout(function(){e.rewardLoaded||((0,i.B)("ad_rewarded_failed",{service_name:r.p1.google}),c.ets.send("ad_rewarded_failed",{service_name:r.p1.google}))},5e3)):((0,i.B)("ad_rewarded_failed",{service_name:r.p1.google}),c.ets.send("ad_rewarded_failed",{service_name:r.p1.google}))})},e.prototype.refreshInterAds=function(){var e,t,n,r,i=this;clearTimeout(this.interTimeout),this.interTimeout=setTimeout(function(){window.googletag.destroySlots([i.inter]),i.inter=null,i.interLoaded=!1,history.pushState("",document.title,window.location.pathname+window.location.search),i.initInter(),clearTimeout(i.interTimeout),i.interTimeout=null},("ab_interrefresh_mobile_on"===window.abGroups.ab_interrefresh_mobile||"ab_interrefresh_desktop_on"===window.abGroups.ab_interrefresh_desktop?Number(null!=(t=null==(e=null==window?void 0:window.eb)?void 0:e.settings.ima_ads_refresh_time_ab)?t:20):Number(null!=(r=null==(n=null==window?void 0:window.eb)?void 0:n.settings.ima_ads_refresh_time)?r:45))*1e3)},e.prototype.refreshRewardedAds=function(){var e=this;clearTimeout(this.rewardedTimeout),this.rewardedTimeout=setTimeout(function(){window.googletag.destroySlots([e.reward]),e.reward=null,e.rewardLoaded=!1,history.pushState("",document.title,window.location.pathname+window.location.search),o.P.emit(r.Ps.rewardDestroyed),e.initReward(),clearTimeout(e.rewardedTimeout),e.rewardedTimeout=null},this.rewardedRefreshTime)},e}();window.adBanners=new d;var h=window.adBanners},7208:(e,t,n)=>{"use strict";n.d(t,{ME:()=>i,kL:()=>o,tW:()=>r});var r=function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},i=function(e){return e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2},o=function(e,t,n,r){if(e)var i=t,o=Math.abs(n-t),s=Math.max(1,r/o),a=Math.ceil(o/(r/s)),l=setInterval(function(){e.textContent=i=t<n?Math.min(i+a,n):Math.max(i-a,n),i===n&&clearInterval(l)},s)}},39946:(e,t,n)=>{"use strict";n.d(t,{b:()=>r});var r={post:{method:"POST",headers:{"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"}},get:{method:"GET",headers:{"X-Requested-With":"XMLHttpRequest","Cache-Control":"no-cache"}},postFormData:{method:"POST",headers:{"X-Requested-With":"XMLHttpRequest"}},classicPost:{method:"POST",headers:{"Content-Type":"application/json"}}}},38613:(e,t,n)=>{"use strict";n.d(t,{$d:()=>O,AS:()=>k,Cs:()=>a,Dl:()=>M,Gh:()=>b,Hl:()=>u,LV:()=>v,Ln:()=>w,N6:()=>A,QG:()=>c,QW:()=>I,XB:()=>y,Xz:()=>D,Yy:()=>d,ZV:()=>L,Zr:()=>h,_$:()=>C,fP:()=>N,kI:()=>P,lR:()=>l,nm:()=>T,pB:()=>p,sL:()=>g,s_:()=>E,sg:()=>x,uk:()=>S,vA:()=>_,yh:()=>f}),n(52675),n(89463),n(28706),n(46449),n(74423),n(23792),n(62062),n(72712),n(34782),n(93514),n(60739),n(26099),n(58940),n(3362),n(84864),n(27495),n(38781),n(21699),n(68156),n(25440),n(5746),n(23500),n(62953);var r=n(57705),i=n(70150),o=function(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(l){var c=[a,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&c[0]?r.return:c[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,c[1])).done)return i;switch(r=0,i&&(c=[2&c[0],i.value]),c[0]){case 0:case 1:i=c;break;case 4:return s.label++,{value:c[1],done:!1};case 5:s.label++,r=c[1],c=[0];continue;case 7:c=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===c[0]||2===c[0])){s=0;continue}if(3===c[0]&&(!i||c[1]>i[0]&&c[1]<i[3])){s.label=c[1];break}if(6===c[0]&&s.label<i[1]){s.label=i[1],i=c;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(c);break}i[2]&&s.ops.pop(),s.trys.pop();continue}c=t.call(e,s)}catch(e){c=[6,e],r=0}finally{n=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}},s=void 0,a=function(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height}};function l(){var e=this;return window.useAdBlock=!1,new Promise(function(t){var n,r,i;return n=void 0,r=void 0,i=function(){return o(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,3,4]),[4,fetch("https://imasdk.googleapis.com/js/sdkloader/ima3.js",{method:"HEAD",mode:"no-cors"}).catch(function(){window.useAdBlock=!0})];case 1:return e.sent(),[3,4];case 2:return e.sent(),window.useAdBlock=!0,[3,4];case 3:return void 0!==window.gtag&&window.gtag("set","user_properties",{use_ad_block:window.useAdBlock}),t(window.useAdBlock),[7];case 4:return[2]}})},new(r||(r=Promise))(function(t,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var n;e.done?t(e.value):((n=e.value)instanceof r?n:new r(function(e){e(n)})).then(s,a)}l((i=i.apply(e,n||[])).next())})})}var c=function(e){return e/1048576},u=function(e,t){if("createEvent"in document){var n=document.createEvent("HTMLEvents");n.initEvent(t,!1,!0),e.dispatchEvent(n)}else e.fireEvent("on".concat(t))},d=function(e,t){return Math.floor(Math.random()*(t-e+1)+e)},h=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},p=function(e){var t=(0,r.Ri)("OptanonConsent");if(!t)return"0";var n=t.split("&").reduce(function(e,t){var n=t.split("=");return e[n[0]]=n[1],e},{}).groups;return n?n.split(",").reduce(function(e,t){var n=t.split(":");return e[n[0]]=n[1],e},{})[e]:"0"},f=function(e,t,n){return e.replace(RegExp(t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g"),n)},g=function(e){var t=e.replace(/[A-Z]/g,function(e){return"_".concat(e.toLowerCase())});return"_"===t[0]&&(t=t.slice(1)),t},m=["moz","ms","o","webkit"],v=function(e){return e?e+"Hidden":"hidden"},y=function(e){return(e||"")+"visibilitychange"},w=function(){for(var e=0;e<m.length;e++)if(v(m[e])in document)return m[e];return null},b=function(e,t){return e.reduce(function(e,n,r){var i=Math.floor(r/t);return e[i]||(e[i]=[]),e[i].push(n),e},[])},_=function(){var e=window.location.search.substring(1).toLowerCase();return e.length?e.split("&").reduce(function(e,t){var n=t.split("="),r=n[0],i=n[1];return e[r]=i,e},{}):{}},S=function(e,t,n){var r;
14void 0===t&&(t=window),"function"==typeof Event?r=new Event(e):(r=document.createEvent("Event")).initEvent(e,!0,!0),r.data=n,t.dispatchEvent(r)},x=function(e,t){var n;return void 0===t&&(t=300),function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];clearTimeout(n),n=setTimeout(function(){e.apply(s,r)},t)}},k=function(e){return e.map(function(t,n){return e.slice(n+1).map(function(e){return[t,e]})}).flat()},E=function(e){var t=[];if(e.length<3)return t;for(var n=0;n<e.length-2;n++)for(var r=n+1;r<e.length-1;r++)for(var i=r+1;i<e.length;i++)t.push([e[n],e[r],e[i]]);return t},C=function(){var e="prod";switch(!0){case window.location.origin.includes("stage."):e="stage";break;case window.location.origin.includes("test."):case window.location.origin.includes("0.0.0"):case window.location.origin.includes("localhost"):e="test";break;default:e="production"}return e},P=function(e){var t=e,n=Math.floor(t/86400),r=Math.floor((t-=86400*n)/3600)%24,i=Math.floor((t-=3600*r)/60)%60,o=parseInt((t-=60*i)%60);return{d:n,h:r,m:i,s:o}},T=function(e,t){var n=[];e.forEach(function(e,r){t.includes(r)||n.push(r)});var r=Math.floor(Math.random()/(1/n.length));return n[r]},L=function(e){var t=navigator.language||"en-US";return new Intl.NumberFormat(t,{maximumFractionDigits:0}).format(e)},I=function(e){var t=new Date(e.getFullYear(),e.getMonth(),e.getDate()),n=new Date(t.getFullYear(),0,1),r=n.getDay()||7;return Math.ceil(((t.getTime()-n.getTime())/864e5+r-1)/7)},O=function(){var e=new Date;return"".concat((e.getMonth()+1).toString().padStart(2,"0"),"/").concat(e.getDate().toString().padStart(2,"0"),"/").concat(e.getFullYear())},A=function(e){var t=Math.floor(e/3600),n=Math.floor((e-3600*t)/60),r=e-3600*t-60*n;n<10&&(n="0".concat(n)),r<10&&(r="0".concat(r));var i="".concat(n,":").concat(r);return t&&(i="".concat(t<10?"0".concat(t):t,":").concat(i)),i},M=function(e){var t=document.querySelector("body");if(!e)return r.lw?localStorage.getItem("placement_screen"):null;if(!t)return null;var n="other";return(0,i.pP)(t).contains("gamescreen-page")?n="gamescreen":(0,i.pP)(t).contains("awards-page")?n="awards":(0,i.pP)(t).contains("tournament-page")?n="tournaments":(0,i.pP)(t).contains("dc-page")?n="dc":(0,i.pP)(t).contains("ftc-page")?n="ftc":(0,i.pP)(t).contains("rules-page")?n="rules":(0,i.pP)(t).contains("printable-page")?n="printable":(0,i.pP)(t).contains("solver-page")?n="solver":(0,i.pP)(t).contains("tips-page")?n="tips":(0,i.pP)(t).contains("postcards-page")?n="postcards":(0,i.pP)(t).contains("storybook-page")?n="sb":(0,i.pP)(t).contains("postcards-leaderboard-page")&&(n="postcards-leaderboard"),r.lw&&localStorage.setItem("placement_screen",n),n},N=function(e){var t=String(e),n=t.length;if(0===n)return"1.0.0";for(var r=Math.floor(n/3),i=n%3,o=[],s=0,a=0;a<3;a++){var l=r+ +(a<i),c=t.substring(s,s+l);o.push(c||"0"),s+=l}return o.join(".")},D=function(){var e={};return function(t,n){void 0===n&&(n={});var r="".concat(t,":").concat(JSON.stringify(n));if(r in e)return e[r];var i=fetch(t,n).then(function(t){return delete e[r],t}).catch(function(t){throw delete e[r],t});return e[r]=i,i}}},79644:(e,t,n)=>{"use strict";n.d(t,{Lw:()=>o,UN:()=>r,Yd:()=>i}),n(28706),n(72712),n(26099);var r=function(){return window.devicePixelRatio&&window.devicePixelRatio>2?2*window.devicePixelRatio:4},i=function(e,t){var n=e.cell,r=e.outer;void 0===t&&(t=0);for(var i=[],o=0;o<9;o++)for(var s=0;s<9;s++)i.push({x:t+r+n*s,y:t+r+n*o,cubeId:"".concat(Math.floor(o/3)).concat(Math.floor(s/3)),row:o,col:s});return i},o=function(e,t,n){for(var r=t.reduce(function(t,n){var r=n.reduce(function(t,n){return t+Number(e[n])},0);return t.push(r),t},[]),i=Array(9),o=0;o<i.length;o++)i[o]=Array(9).fill(0);for(var s=0;s<t.length;s++)for(var a=t[s],o=0;o<a.length;o++){var l=a[o];i[n[l].row][n[l].col]=s}return{array:i,sum:r}}},56039:(e,t,n)=>{"use strict";n.d(t,{N:()=>i}),n(23792),n(26099),n(3362),n(62953);var r=null;function i(){return r||(r=Promise.resolve().then(n.bind(n,14685)).then(function(e){var t;return null!=(t=e.default)?t:e})),r}},57705:(e,t,n)=>{"use strict";n.d(t,{Kt:()=>u,Ri:()=>i,TV:()=>r,Yj:()=>o,lw:()=>s}),n(28706);var r=function(e,t,n){var r=new Date;r.setTime(r.getTime()+864e5*n);var i="expires="+r.toUTCString();document.cookie=e+"="+t+";"+i+";path=/"},i=function(e){for(var t=e+"=",n=decodeURIComponent(document.cookie).split(";"),r=0;r<n.length;r++){for(var i=n[r];" "===i.charAt(0);)i=i.substring(1);if(0===i.indexOf(t))return i.substring(t.length,i.length)}return""},o=function(e,t,n){void 0===t&&(t="/");var r="".concat(e,"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=").concat(t,";");n&&(r+=" domain=".concat(n,";")),document.cookie=r},s=!navigator||navigator.cookieEnabled,a=function(e){return!!e&&"none"!==window.getComputedStyle(e).display},l=function(){var e;return!!(null==(e=null==window?void 0:window.eb)?void 0:e.settings.use_cmp)&&(window.OneTrust?!1===window.OneTrust.IsAlertBoxClosed():!i("OptanonAlertBoxClosed"))},c=function(){var e=document.getElementById("cookies-consent");return!!a(e)&&(a(e.querySelector(".cookies-black-overlay"))||!!e.querySelector(".cookies-popup.shown"))},u=function(){return l()||c()}},45395:(e,t,n)=>{"use strict";n.d(t,{Cv:()=>h,Fx:()=>d,GD:()=>u,JA:()=>r,P0:()=>i,PA:()=>p,PK:()=>c,X4:()=>o,ZF:()=>l,jh:()=>a,ro:()=>f,tI:()=>s}),n(28706),n(2008),n(26099),n(58940),n(27495),n(38781),n(25440),n(23500),n(57705);var r,i=function(e){return"".concat(e.getFullYear(),"_").concat(e.getMonth(),"_").concat(e.getDate())},o="dailyInfo",s=function(e,t,n,r){return"FULL"!==r?e.replace("{0}","DATE"===r?t.toString():n.toString()):e.replace("{0}",t.toString()).replace("{1}",n.toString())},a=function(e){if(!e||"string"!=typeof e)return!1;var t=e.split("_"),n=t[0],r=t[1];return"".concat(n,"_").concat(r)},l=function(e,t){return Math.floor(Math.abs(e-t)/1e3/86400)>=1?t:e},c=function(e,t){return 32-new Date(e,t,32).getDate()},u=function(e,t){return new Date(e,t,1).getDay()},d=function(e,t){var n=e-t;return n<0?7+n:n},h=function(e){return Math.trunc(e.filter(function(e){return!!e}).length/81*100)};!function(e){e[e.Mon=1]="Mon",e[e.Tue=2]="Tue",e[e.Wed=3]="Wed",e[e.Thu=4]="Thu",e[e.Fri=5]="Fri",e[e.Sat=6]="Sat",e[e.Sun=0]="Sun"}(r||(r={}));var p=function(e){if(!(e instanceof Date))return!1;var t=new Date;return t.setDate(t.getDate()-1),e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()},f=function(e,t){var n=new Date(e),r=new Date(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()&&n.getDate()===r.getDate()}}
14,50398:(e,t,n)=>{"use strict";n.d(t,{Zb:()=>o,kJ:()=>r,t5:()=>i}),n(27495);var r=980,i=767;navigator.userAgent.toLowerCase().indexOf("android"),/CriOS/i.test(navigator.userAgent),/FxiOS/i.test(navigator.userAgent),/UCBrowser/i.test(navigator.userAgent),/^((?!chrome|android).)*safari/i.test(navigator.userAgent),/iPad|iPhone|iPod/.test(navigator.userAgent)&&window.MSStream;var o=!!document.documentMode;window.innerWidth},70150:(e,t,n)=>{"use strict";n.d(t,{Bf:()=>i,Db:()=>o,cH:()=>a,pP:()=>s}),n(26099),n(23500);var r=n(50398),i=function(e,t){if(e.classList.contains(t))return e;for(var n=e;!n.classList.contains(t);)if("BODY"===(n=n.parentNode).tagName)return!1;return n},o=function(e){var t=document.querySelectorAll(e),n=0;return t.forEach(function(e){e.clientHeight>n&&(n=e.clientHeight)}),n},s=function(e){var t=e.classList;return{add:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return r.Zb?e.forEach(function(e){return t.add(e)}):t.add.apply(t,e),this},remove:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return r.Zb?e.forEach(function(e){return t.remove(e)}):t.remove.apply(t,e),this},toggle:function(e){return t.toggle(e),this},contains:function(e){return t.contains(e)}}},a=function(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}}
14,27114:(e,t,n)=>{"use strict";n.d(t,{$5:()=>S,$J:()=>q,$Y:()=>I,$l:()=>L,At:()=>P,EK:()=>F,I8:()=>j,NF:()=>G,NJ:()=>E,OM:()=>k,Sn:()=>R,TO:()=>B,cM:()=>x,fr:()=>m,gh:()=>_,hn:()=>$,jh:()=>N,k3:()=>v,lu:()=>M,mY:()=>C,nN:()=>T,rG:()=>D,rs:()=>A,v6:()=>O,zg:()=>z}),n(28706),n(2008),n(74423),n(23792),n(62062),n(72712),n(34782),n(26910),n(54554),n(60739),n(69085),n(26099),n(58940),n(3362),n(38781),n(21699),n(23500),n(62953);var r=n(34585),i=n(57705),o=n(52195),s=n(36228),a=n(39946),l=n(38613),c=n(80457),u=n(80011),d=function(){return(d=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},h=function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},p=u.croco.crocoLogic,f=u.postcards.postcardsLogic,g=u.storybook.storybookLogic,m=function(){return{turns:0,lastShownTurn:0,shown:0}},v=function(e,t,n,i,o){var s=window.usePostcards&&f.getMappedSudokuLevelsByDifficulty(t),a=g.getMappedSudokuLevelsByDifficulty(t),l=h(h([],s||[],!0),a||[],!0),c=l.length?"excludeIds=".concat(l.join(",")):"";switch(!0){case e===r.dX.daily:var u=n.split("_").map(function(e){return parseInt(e)});return"/api/".concat(o?"v2/":"","dc/").concat(u[0],"-").concat(u[1]+1,"-").concat(u[2]).concat(o&&2===window.dcBalance?"/".concat(o):"").concat(window.dcBalance?"":"?v=2");case i&&[r.dX.classic,r.dX.killer].includes(e):return"/api/v2/".concat(e,"/").concat(t,"/app_start");default:return e===r.dX.classic||e===r.dX.postcards||e===r.dX.storybook?"/api/v2/level/".concat(t).concat(c?"?".concat(c):""):"/api/level/".concat(t).concat(e===r.dX.killer?"?mode=killer":"")}},y=function(e,t){var n=[],r=0;for(e.forEach(function(e,n){e.cellId===t&&(r=n)}),n.push(e[r]),e.splice(r,1);e.length;)e[r]&&e[r-1]?(n.push([e[r],e[r-1]]),e.splice(r-1,2),r--):0===r?(n.push(e[r]),e.splice(r,1)):r===e.length&&(n.push(e[r-1]),e.splice(r-1,1),r--);return n},w=function(e,t){var n=e.find(function(e){return e.cellId===t}),r=n.row,i=n.col,o=[],s=[];return e.forEach(function(e){e.cellId!==t&&(1>=Math.abs(e.row-r)&&1>=Math.abs(e.col-i)?o.push(e):s.push(e))}),[n,o,s]},b={LEFT:37,UP:38,RIGHT:39,DOWN:40},_=function(e,t,n){var r=[];if(!t||!t.length)return r;for(var i=0;i<e.length;i++)(t[i].row===t[n].row||t[i].col===t[n].col||t[i].cubeId===t[n].cubeId)&&e[i]&&i!==n&&r.push({cell:i,notes:h([],e[i],!0)});return r},S=function(e,t){for(var n=h([],e.notes,!0),r=0;r<n.length;r++)n[r]&&n[r][t-1]===t&&(n[r][t-1]=null);return n},x=function(e,t,n){var r=e.values,i=e.notes,o=r[n].val,s=h([],i,!0);if(!t||!t.length)return s;for(var a=0;a<s.length;a++)(t[a].row===t[n].row||t[a].col===t[n].col||t[a].cubeId===t[n].cubeId)&&s[a]&&s[a][o-1]===o&&(s[a][o-1]=null);return s},k=function(e,t,n){var r=e.values,i=e.solution;if(!t||!t.length)return 1;for(var o=[],s=[],a=[],l=0;l<r.length;l++)r[l].val===i[l]&&(t[l].row===t[n].row&&o.push(l),t[l].col===t[n].col&&s.push(l),t[l].cubeId===t[n].cubeId&&a.push(l));var c=0;return 9===o.length&&(c+=5),9===s.length&&(c+=5),9===a.length&&(c+=5),c||1},E=function(e,t,n,r){var i=e.values,o=e.solution,s=h([],i,!0);if(!t||!t.length)return s;for(var a=0;a<s.length;a++)r||(s[a].conflict=!1),s[a].mistake=!1;for(var a=0;a<s.length;a++){n&&!r&&i[a].val&&o[a]!==i[a].val&&(s[a].mistake=!0);for(var l=0;l<s.length;l++)s[a].val&&a!==l&&s[a].val===s[l].val&&(t[a].row===t[l].row||t[a].col===t[l].col||t[a].cubeId===t[l].cubeId)&&(r?s[a].mistake=!0:s[a].conflict=!0)}return s},C=function(e){return e.split("").map(function(e){return{val:parseInt(e),editable:!parseInt(e)}})},P=function(e,t){var n=e;switch(t){case b.LEFT:n%9!=0&&n--;break;case b.RIGHT:(n+1)%9!=0&&n++;break;case b.UP:n>8&&(n-=9);break;case b.DOWN:n<72&&(n+=9)}return n},T=function(e,t){var n=[],r=[e];n.push(t[e]);for(var i=t[e].col-1,o=t[e].col+1,s=t[e].row-1,a=t[e].row+1;i>=0||o<=8||s>=0||a<=8;){for(var l=[],c=0;c<81;c++)t[c].row>=s&&t[c].row<=a&&t[c].col>=i&&t[c].col<=o&&!r.includes(c)&&(l.push(t[c]),r.push(c));n.push(l),i--,s--,a++,o++}return n},L=function(e){return Array(9).fill(0).map(function(t,n){return Array(9).fill(0).map(function(t,r){return e[9*n+r]})})},I=function(e,t,n,i){var o=e.values,s=e.cages,a=e.mode,l=e.solution,u=[],h=[],p=[],f=[],g=a===r.dX.killer?s.find(function(e){return e.includes(t)}):null,m=g&&g.every(function(e){return o[e].val});if(!n||!n.length)return u;for(var v=0;v<81;v++)o[v].val===l[v]&&(n[v].row===n[t].row&&h.push(d({cellId:v},n[v])),n[v].col===n[t].col&&p.push(d({cellId:v},n[v])),n[v].cubeId===n[t].cubeId&&f.push(d({cellId:v},n[v])));if((null==i?void 0:i[c.wB.animatedAreaFinish])&&(9===f.length&&u.push(w(f,t)),9===h.length&&u.push(y(h,t)),9===p.length&&u.push(y(p,t)),m)){var b=[];g.forEach(function(e){o[e].val===l[e]&&b.push(d({cellId:e},n[e]))}),u.push(y(b,t))}return u},O=function(e){for(var t=e.values,n=e.solution,r=0;r<81;r++)if(n[r]!==t[r].val)return!1;return!0},A=function(){i.lw&&(localStorage.removeItem("difficulty"),localStorage.removeItem("mode"),localStorage.removeItem("userGrid"),localStorage.removeItem("clearGrid"),localStorage.removeItem("puzzleGrid"),localStorage.removeItem("timePassed"),localStorage.removeItem("pencilGrid"),localStorage.removeItem("cages"),localStorage.removeItem("winRate"),localStorage.removeItem("lastGameDifficulty"),localStorage.removeItem("lastGameTime"))},M=function(e){i.lw&&window.localStorage.setItem(o.LS.HISTORY_ACTIONS,JSON.stringify(e))},N=function(e,t){if(i.lw)switch(e.mode){case r.dX.daily:var n=JSON.parse(localStorage.getItem(o.LS.DAILY))||{};n[t]=d(d({},n[t]||{}),e),window.localStorage.setItem(o.LS.DAILY,JSON.stringify(n));break;case r.dX.storybook:g.saveGameProgress(e);break;case r.dX.postcards:f.saveGameProgress(e);break;case r.dX.croco:p.saveGameProgress(e);break;case r.dX.classic:case r.dX.killer:window.localStorage.setItem(e.mode===r.dX.killer?o.LS.MAIN_GAME_KILLER:o.LS.MAIN_GAME,JSON.stringify(e))}},D=function(e){i.lw&&window.localStorage.setItem(s.LS.MAIN_GAME,JSON.stringify(e))},R=function(){i.lw&&window.localStorage.removeItem(s.LS.MAIN_GAME)},B=function(e,t,n){if(!(e.clearGrid&&e.userGrid&&e.solvedGrid))return e;var r,i,o,s=e.clearGrid.join(""),a=C(s);a.forEach(function(t,n){!t.val&&e.userGrid[n]&&(t.val=parseInt(e.userGrid[n]),"number"==typeof e.userGrid[n]&&(t.editable=!1))});var l={mode:e.mode,difficulty:e.difficulty,values:E({values:a,solution:e.solvedGrid},t,n),solution:e.solvedGrid,loaded:!0,mission:s,showWinRate:!1,winRate:null!=(r=e.winRate)?r:0,timer:null!=(i=e.timePassed)?i:0,notes:e.pencilGrid||[],cages:e.cages};return(null==(o=l.difficulty)?void 0:o.indexOf('"'))>=0&&(l.difficulty=JSON.parse(l.difficulty)),e.id&&(l.id=e.id),l},F=function(e,t){var n;if(i.lw){if(e.mode===r.dX.daily){var s=JSON.parse(localStorage.getItem(o.LS.DAILY))||{};
14(null==(n=s[t])?void 0:n.done)?sessionStorage.removeItem("dc-win-date"):sessionStorage.setItem("dc-win-date",t),s[t].done=!0,delete s[t].mission,delete s[t].difficulty,delete s[t].notes,delete s[t].solution,delete s[t].timer,delete s[t].values,localStorage.setItem(o.LS.DAILY,JSON.stringify(s))}else[r.dX.killer,r.dX.classic].includes(e.mode)&&localStorage.removeItem(e.mode===r.dX.killer?o.LS.MAIN_GAME_KILLER:o.LS.MAIN_GAME);localStorage.removeItem(o.LS.HISTORY_ACTIONS)}},$=function(e){var t,n,i=e.mode,o=e.id,s=e.difficulty;try{switch(!0){case i===r.dX.daily:t="/api/dc/finish",n={id:o};break;case[r.dX.killer,r.dX.classic].includes(i):t="/api/level/finish",n={level_id:o,d:r.us.findIndex(function(e){return e===s})}}n&&t&&fetch(t,d(d({},a.b.post),{body:JSON.stringify(n),keepalive:!0})).catch(function(e){return console.warn("sendStatistic request failed",e)})}catch(e){console.warn(e)}},j=function(e,t,n){var i={},o={},s={},a=e.values.reduce(function(e,n,r){return h(h([],e,!0),[d(d(d({},n),t[r]),{index:r})],!1)},[]),c=e.notes.reduce(function(e,n,r){return h(h([],e,!0),[d(d({notes:n},t[r]),{index:r})],!1)},[]),u=a.reduce(function(e,t){var r,a,l;return t.val&&!t.mistake?e:(i[t.row]=(null!=(r=i[t.row])?r:0)+1,o[t.col]=(null!=(a=o[t.col])?a:0)+1,s[t.cubeId]=(null!=(l=s[t.cubeId])?l:0)+1,t.index===n)?h([t],e,!0):h(h([],e,!0),[t],!1)},[]),p=[],f=[],g=[];if(Object.keys(o).forEach(function(e){1===o[e]&&p.push(parseInt(e))}
14),Object.keys(i).forEach(function(e){1===i[e]&&f.push(parseInt(e))}),Object.keys(s).forEach(function(e){1===s[e]&&g.push(e)}),(p.length||f.length||g.length)&&!window.disableLastFreeCell){var m={},v=u.find(function(e){return e.index===n&&(f.includes(e.row)?(m={type:"row",val:e.row},!0):p.includes(e.col)?(m={type:"col",val:e.col},!0):g.includes(e.cubeId)?(m={type:"cube",val:e.cubeId},!0):void 0)}),y=u.find(function(e){return f.includes(e.row)?(m={type:"row",val:e.row},!0):p.includes(e.col)?(m={type:"col",val:e.col},!0):g.includes(e.cubeId)?(m={type:"cube",val:e.cubeId},!0):void 0});if(!(v||y).mistake)return{cell:v||y,type:r.jc.LastFreeCell,additionalData:m}}for(var w=0;w<u.length;w++){var b=function(e){var t=Array.from({length:9},function(e,t){return t+1}),n=u[e],i=a.filter(function(e){return e.cubeId===n.cubeId}),o=u.filter(function(e){return e.cubeId===n.cubeId&&e.index!==n.index}),s=o.reduce(function(e,t){return e.rows.includes(t.row)||t.row===n.row||e.rows.push(t.row),e.cols.includes(t.col)||t.col===n.col||e.cols.push(t.col),e},{rows:[],cols:[]});i.forEach(function(e){if(e.val&&!e.mistake){var n=t.indexOf(e.val);-1!==n&&t.splice(n,1)}});for(var l=function(e){var i={rows:[],cols:[],cubs:[]},l=a.filter(function(r){if(r.cubeId!==n.cubeId&&!r.mistake&&r.val===t[e]&&(s.rows.includes(r.row)||s.cols.includes(r.col)))return s.rows.includes(r.row)&&i.rows.push(r.row),s.cols.includes(r.col)&&i.cols.push(r.col),!0});if(!o.filter(function(e){return!l.find(function(t){return t.row===e.row||t.col===e.col})}).length&&!window.disableLastRemainingCell&&!n.mistake)return{value:{cell:n,type:r.jc.LastRemainingCell,additionalData:{type:"cube",val:n.cubeId,arrWithValues:l,highlightedItems:i}}}},c=0;c<t.length;c++){var d=l(c);if("object"==typeof d)return d}}(w);if("object"==typeof b)return b.value}for(var _=function(e){var t=Array.from({length:9},function(e,t){return t+1}),n=Array.from({length:9},function(e,t){return t}),i=[];a.forEach(function(r){if(r.row===e&&r.val&&!r.mistake){var o=t.indexOf(r.val),s=n.indexOf(r.col);-1!==o&&t.splice(o,1),-1!==s&&n.splice(s,1)}i.includes(r.cubeId)||Math.floor(e/3)!==parseInt(r.cubeId[0])||i.push(r.cubeId)});for(var o=[],s=[],l=[],c=0;c<t.length;c++){var u=function(c){var u=t[c],d=h([],n,!0),p=h([],i,!0);o=[],s=[],l=[],a.forEach(function(e){if(p.includes(e.cubeId)&&e.val&&!e.mistake&&u===e.val&&-1!==p.indexOf(e.cubeId)){var t=parseInt(e.cubeId[1]);d.forEach(function(e){Math.floor(e/3)===t&&l.push(e)}),o.push(e.cubeId)}}),a.forEach(function(e){d.includes(e.col)&&!s.includes(e.col)&&!e.mistake&&e.val&&u===e.val&&s.push(e.col)});var f=H(s.sort(),l.sort()),g=h(h([],s,!0),l,!0).filter(function(e,t,n){return n.indexOf(e)===t});if(d.length-g.length==1&&!window.disableLastRemainingCell){var m=d.filter(function(e){return!g.includes(e)})[0],v=a.find(function(t){return t.col===m&&t.row===e}),y=s.filter(function(t){return!o.includes("".concat(Math.floor(e/3)).concat(Math.floor(t/3)))}),w=a.filter(function(e){return!e.mistake&&e.val===u&&((f?s:y).includes(e.col)||!f&&o.includes(e.cubeId))});if(!v.mistake)return{value:{cell:v,type:r.jc.LastRemainingCell,additionalData:{type:"row",val:u,arrWithValues:w,highlightedItems:{cols:f?s:y,cubs:f?[]:o,rows:[]}}}}}}(c);if("object"==typeof u)return u}},w=0;w<9;w++){var S=_(w);if("object"==typeof S)return S.value}for(var x=function(e){var t=Array.from({length:9},function(e,t){return t+1}),n=Array.from({length:9},function(e,t){return t}),i=[];a.forEach(function(r){if(r.col===e&&r.val&&!r.mistake){var o=t.indexOf(r.val),s=n.indexOf(r.row);-1!==o&&t.splice(o,1),-1!==s&&n.splice(s,1)}i.includes(r.cubeId)||Math.floor(e/3)!==parseInt(r.cubeId[1])||i.push(r.cubeId)});for(var o=[],s=[],l=[],c=0;c<t.length;c++){var u=function(c){var u=t[c],d=h([],n,!0),p=h([],i,!0);o=[],s=[],l=[],a.forEach(function(e){if(p.includes(e.cubeId)&&e.val&&u===e.val&&!e.mistake&&-1!==p.indexOf(e.cubeId)){var t=parseInt(e.cubeId[0]);d.forEach(function(e){Math.floor(e/3)===t&&l.push(e)}),o.push(e.cubeId)}}),a.forEach(function(e){d.includes(e.row)&&!s.includes(e.row)&&e.val&&u===e.val&&!e.mistake&&s.push(e.row)});var f=H(s.sort(),l.sort()),g=h(h([],s,!0),l,!0).filter(function(e,t,n){return n.indexOf(e)===t});if(d.length-g.length==1&&!window.disableLastRemainingCell){var m=d.filter(function(e){return!g.includes(e)})[0],v=a.find(function(t){return t.row===m&&t.col===e}),y=s.filter(function(t){return!o.includes("".concat(Math.floor(t/3)).concat(Math.floor(e/3)))}),w=a.filter(function(e){return!e.mistake&&e.val===u&&((f?s:y).includes(e.row)||!f&&o.includes(e.cubeId))});if(!v.mistake)return{value:{cell:v,type:r.jc.LastRemainingCell,additionalData:{type:"col",val:u,arrWithValues:w,highlightedItems:{rows:f?s:y,cubs:f?[]:o,cols:[]}}}}}}(c);if("object"==typeof u)return u}},w=0;w<9;w++){var k=x(w);if("object"==typeof k)return k.value}for(var w=0;w<u.length;w++){var E=function(e){var t=Array.from({length:9},function(e,t){return t+1}),n=u[e],i=a.filter(function(e){return(e.col===n.col||e.row===n.row||e.cubeId===n.cubeId)&&e.val&&!e.mistake}),o=[],s={};if(i.forEach(function(e){var r=t.indexOf(e.val);-1!==r&&(o.push(e.index),t.splice(r,1),n.cubeId!==e.cubeId&&n.row===e.row&&(s.row=e.row),n.cubeId!==e.cubeId&&n.col===e.col&&(s.col=e.col))}),1===t.length&&!window.disableLastPossibleNumber){var l=Array.from({length:9},function(e,t){return t+1}),c=l.indexOf(t[0]);if(-1!==c&&l.splice(c,1),!n.mistake)return{value:{cell:n,type:r.jc.LastPossibleNumber,additionalData:{descArr:l,highlightsCells:o,highlightsGroups:s}}}}}(w);if("object"==typeof E)return E.value}var C=a.filter(function(e){return e.val&&e.mistake});if(C.length){var P=[];
14C.forEach(function(e){var t=Array.from({length:9},function(e,t){return t+1});a.filter(function(t){return t.val&&!t.mistake&&(t.col===e.col||t.row===e.row||t.cubeId===e.cubeId)}).forEach(function(e){var n=t.indexOf(e.val);-1!==n&&(t[n]=null)}),P[e.index]=t});var T=h([],e.notes,!0);return P.forEach(function(e,t){e&&(T[t]=h([],e,!0))}),{type:r.jc.IncorrectNumber,notes:P,additionalData:{allNotes:T}}}if(!window.disableNotes){var L=!0,I=[],O=[];u.forEach(function(t){var n=e.notes[t.index]&&e.notes[t.index][e.solution[t.index]-1],r=Array.from({length:9},function(e,t){return t+1});a.filter(function(e){return e.val&&!e.mistake&&(e.col===t.col||e.row===t.row||e.cubeId===t.cubeId)}).forEach(function(e){var t=r.indexOf(e.val);-1!==t&&(r[t]=null)}),n?O[t.index]=h([],e.notes[t.index],!0):(L=!1,O[t.index]=h([],r,!0)),I[t.index]=r});var A=[],M=!0;if(e.notes.forEach(function(e,t){if(!e){A[t]=null;return}for(var n=0;n<e.length;n++)e[n]&&e[n]!==I[t][n]&&(A[t]=h([],A[t]||[],!0),A[t][n]=e[n],O[t][n]=null,M=!1)}),!L||!M)return{type:r.jc.Notes,notes:O,arrayWithFreeCells:u,incorrectArr:A};var N=e.notes.findIndex(function(e){return e&&1===e.filter(function(e){return!!e}).length});if(-1!==N&&!window.disableObviousSingles)return{cell:a[N],type:r.jc.ObviousSingles};if(!window.disableHiddenSingles){for(var D={},R={},B={},w=0;w<c.length;w++){for(var F=c[w],$=D[F.row]||{},j=R[F.col]||{},z=B[F.cubeId]||{},G=F.notes||[],q=0;q<G.length;q++)G[q]&&($[G[q]]=$[G[q]]?$[G[q]]+1:1,j[G[q]]=j[G[q]]?j[G[q]]+1:1,z[G[q]]=z[G[q]]?z[G[q]]+1:1);window.disableSearchInRows||(D[F.row]=$),R[F.col]=j,window.disableSearchInBlocks||(B[F.cubeId]=z)}for(var w=0;w<Object.keys(B).length;w++){var U=function(e){for(var t=Object.keys(B)[e],n=0;n<Object.keys(B[t]).length;n++){var i=function(e){var n=Object.keys(B[t])[e];if(1===B[t][n]){var i=c.find(function(e){return e.cubeId===t&&e.notes&&e.notes.includes(parseInt(n))});return{value:{cell:a.find(function(e){return i&&e.index===i.index}),type:r.jc.HiddenSingles,additionalData:{type:"cube",val:t}}}}}(n);if("object"==typeof i)return i}}(w);if("object"==typeof U)return U.value}for(var w=0;w<Object.keys(D).length;w++){var W=function(e){for(var t=Object.keys(D)[e],n=0;n<Object.keys(D[t]).length;n++){var i=function(e){var n=Object.keys(D[t])[e];if(1===D[t][n]){var i=c.find(function(e){return e.row===parseInt(t)&&e.notes&&e.notes.includes(parseInt(n))});return{value:{cell:a.find(function(e){return i&&e.index===i.index}),type:r.jc.HiddenSingles,additionalData:{type:"row",val:parseInt(t)}}}}}(n);if("object"==typeof i)return i}}(w);if("object"==typeof W)return W.value}for(var w=0;w<Object.keys(R).length;w++){var V=function(e){for(var t=Object.keys(R)[e],n=0;n<Object.keys(R[t]).length;n++){var i=function(e){var n=Object.keys(R[t])[e];if(1===R[t][n]){var i=c.find(function(e){return e.col===parseInt(t)&&e.notes&&e.notes.includes(parseInt(n))});return{value:{cell:a.find(function(e){return i&&e.index===i.index}),type:r.jc.HiddenSingles,additionalData:{type:"col",val:parseInt(t)}}}}}(n);if("object"==typeof i)return i}}(w);if("object"==typeof V)return V.value}}if(!window.disableObviousPairs){for(var D={},R={},B={},w=0;w<c.length;w++){var F=c[w],$=D[F.row]||{},j=R[F.col]||{},z=B[F.cubeId]||{},G=F.notes||[],Y=G.filter(function(e){return!!e});if(2===Y.length){var X=Y.toString();$[X]=$[X]?$[X]+1:1,j[X]=j[X]?j[X]+1:1,z[X]=z[X]?z[X]+1:1,window.disableSearchInRows||(D[F.row]=$),R[F.col]=j,window.disableSearchInBlocks||(B[F.cubeId]=z)}}for(var w=0;w<Object.keys(B).length;w++){var K=function(t){for(var n=Object.keys(B)[t],i=0;i<Object.keys(B[n]).length;i++){var o=function(t){var i=Object.keys(B[n])[t];if(2===B[n][i]){var o=i.split(",").map(function(e){return parseInt(e)}),s=c.filter(function(e){return e.cubeId===n}),a=s.filter(function(e){return(e.notes||[]).filter(function(e){return!!e}).toString()===i}),l=s.filter(function(e){var t=e.notes||[];return!a.find(function(t){return t.index===e.index})&&(t.includes(o[0])||t.includes(o[1]))}),u=s[0];if(l.length){var d=e.notes.map(function(e,t){return e&&l.find(function(e){return e.index===t})?e.map(function(e){return o.includes(e)?null:e}):e});
14return{value:{cell:u,notes:a,type:r.jc.ObviousPairs,additionalData:{type:"cube",val:n,descArr:o,invalidNotes:l,finishNotes:d}}}}}}(i);if("object"==typeof o)return o}}(w);if("object"==typeof K)return K.value}for(var w=0;w<Object.keys(D).length;w++){var J=function(t){for(var n=Object.keys(D)[t],i=0;i<Object.keys(D[n]).length;i++){var o=function(t){var i=Object.keys(D[n])[t];if(2===D[n][i]){var o=i.split(",").map(function(e){return parseInt(e)}),s=c.filter(function(e){return e.row===parseInt(n)}),a=s.filter(function(e){return(e.notes||[]).filter(function(e){return!!e}).toString()===i}),l=s.filter(function(e){var t=e.notes||[];return!a.find(function(t){return t.index===e.index})&&(t.includes(o[0])||t.includes(o[1]))}),u=s[0];if(l.length){var d=e.notes.map(function(e,t){return e&&l.find(function(e){return e.index===t})?e.map(function(e){return o.includes(e)?null:e}):e});return{value:{cell:u,notes:a,type:r.jc.ObviousPairs,additionalData:{type:"row",val:parseInt(n),descArr:o,invalidNotes:l,finishNotes:d}}}}}}(i);if("object"==typeof o)return o}}(w);if("object"==typeof J)return J.value}for(var w=0;w<Object.keys(R).length;w++){var Z=function(t){for(var n=Object.keys(R)[t],i=0;i<Object.keys(R[n]).length;i++){var o=function(t){var i=Object.keys(R[n])[t];if(2===R[n][i]){var o=i.split(",").map(function(e){return parseInt(e)}),s=c.filter(function(e){return e.col===parseInt(n)}),a=s.filter(function(e){return(e.notes||[]).filter(function(e){return!!e}).toString()===i}),l=s.filter(function(e){var t=e.notes||[];return!a.find(function(t){return t.index===e.index})&&(t.includes(o[0])||t.includes(o[1]))}),u=s[0];if(l.length){var d=e.notes.map(function(e,t){return e&&l.find(function(e){return e.index===t})?e.map(function(e){return o.includes(e)?null:e}):e});return{value:{cell:u,notes:a,type:r.jc.ObviousPairs,additionalData:{type:"col",val:parseInt(n),descArr:o,invalidNotes:l,finishNotes:d}}}}}}(i);if("object"==typeof o)return o}}(w);if("object"==typeof Z)return Z.value}}if(!window.disableObviousTriples){for(var Q=(0,l.s_)([1,2,3,4,5,6,7,8,9]),D={},R={},B={},ee=function(e){for(var t=c.filter(function(t){return t.row===e}),n=D[e]||{},r=0;r<Q.length;r++)!function(e){var r=Q[e].toString(),i=(0,l.AS)(Q[e]).map(function(e){return e.toString()});t.forEach(function(e){var t=(e.notes||[]).filter(function(e){return!!e}).toString(),n=i.findIndex(function(e){return e===t});-1!==n&&i.splice(n,1)}),0===i.length&&(n[r]=n[r]?n[r]+1:1)}(r);window.disableSearchInRows||(D[e]=n)},w=0;w<9;w++)ee(w);for(var et=function(e){for(var t=c.filter(function(t){return t.col===e}),n=R[e]||{},r=0;r<Q.length;r++)!function(e){var r=Q[e].toString(),i=(0,l.AS)(Q[e]).map(function(e){return e.toString()});t.forEach(function(e){var t=(e.notes||[]).filter(function(e){return!!e}).toString(),n=i.findIndex(function(e){return e===t});-1!==n&&i.splice(n,1)}),0===i.length&&(n[r]=n[r]?n[r]+1:1)}(r);R[e]=n},w=0;w<9;w++)et(w);for(var en=["00","01","02","10","11","12","20","21","22"],er=function(e){for(var t=c.filter(function(t){return t.cubeId===en[e]}),n=B[en[e]]||{},r=0;r<Q.length;r++)!function(e){var r=Q[e].toString(),i=(0,l.AS)(Q[e]).map(function(e){return e.toString()});t.forEach(function(e){var t=(e.notes||[]).filter(function(e){return!!e}).toString(),n=i.findIndex(function(e){return e===t});-1!==n&&i.splice(n,1)}),0===i.length&&(n[r]=n[r]?n[r]+1:1)}(r);window.disableSearchInBlocks||(B[en[e]]=n)},w=0;w<9;w++)er(w);for(var w=0;w<Object.keys(B).length;w++){var ei=function(t){for(var n=Object.keys(B)[t],i=0;i<Object.keys(B[n]).length;i++){var o=function(t){var i=Object.keys(B[n])[t];if(1===B[n][i]){var o=i.split(",").map(function(e){return parseInt(e)}),s=(0,l.AS)(o).map(function(e){return e.toString()}),a=c.filter(function(e){return e.cubeId===n}),u=a.filter(function(e){var t=(e.notes||[]).filter(function(e){return!!e});return s.includes(t.toString())}),h=a.filter(function(e){var t=!u.find(function(t){return t.index===e.index}),n=(e.notes||[]).find(function(e){return e&&o.includes(e)});return t&&n}).map(function(e){return d(d({},e),{notes:e.notes.map(function(e){return e&&o.includes(e)?e:null})})}),p=a[0];if(h.length){var f=e.notes.map(function(e,t){return e&&h.find(function(e){return e.index===t})?e.map(function(e){return o.includes(e)?null:e}):e});return{value:{cell:p,notes:a,type:r.jc.ObviousTriples,additionalData:{type:"cube",val:n,descArr:o,invalidNotes:h,finishNotes:f}}}}}}(i);if("object"==typeof o)return o}}(w);if("object"==typeof ei)return ei.value}for(var w=0;w<Object.keys(D).length;w++){var eo=function(t){for(var n=Object.keys(D)[t],i=0;i<Object.keys(D[n]).length;i++){var o=function(t){var i=Object.keys(D[n])[t];
14if(1===D[n][i]){var o=i.split(",").map(function(e){return parseInt(e)}),s=(0,l.AS)(o).map(function(e){return e.toString()}),a=c.filter(function(e){return e.row===parseInt(n)}),u=a.filter(function(e){var t=(e.notes||[]).filter(function(e){return!!e});return s.includes(t.toString())}),h=a.filter(function(e){var t=!u.find(function(t){return t.index===e.index}),n=(e.notes||[]).find(function(e){return e&&o.includes(e)});return t&&n}).map(function(e){return d(d({},e),{notes:e.notes.map(function(e){return e&&o.includes(e)?e:null})})}),p=a[0];if(h.length){var f=e.notes.map(function(e,t){return e&&h.find(function(e){return e.index===t})?e.map(function(e){return o.includes(e)?null:e}):e});return{value:{cell:p,notes:a,type:r.jc.ObviousTriples,additionalData:{type:"row",val:parseInt(n),descArr:o,invalidNotes:h,finishNotes:f}}}}}}(i);if("object"==typeof o)return o}}(w);if("object"==typeof eo)return eo.value}for(var w=0;w<Object.keys(R).length;w++){var es=function(t){for(var n=Object.keys(R)[t],i=0;i<Object.keys(R[n]).length;i++){var o=function(t){var i=Object.keys(R[n])[t];if(1===R[n][i]){var o=i.split(",").map(function(e){return parseInt(e)}),s=(0,l.AS)(o).map(function(e){return e.toString()}),a=c.filter(function(e){return e.col===parseInt(n)}),u=a.filter(function(e){var t=(e.notes||[]).filter(function(e){return!!e});return s.includes(t.toString())}),h=a.filter(function(e){var t=!u.find(function(t){return t.index===e.index}),n=(e.notes||[]).find(function(e){return e&&o.includes(e)});return t&&n}).map(function(e){return d(d({},e),{notes:e.notes.map(function(e){return e&&o.includes(e)?e:null})})}),p=a[0];if(h.length){var f=e.notes.map(function(e,t){return e&&h.find(function(e){return e.index===t})?e.map(function(e){return o.includes(e)?null:e}):e});return{value:{cell:p,notes:a,type:r.jc.ObviousTriples,additionalData:{type:"col",val:parseInt(n),descArr:o,invalidNotes:h,finishNotes:f}}}}}}(i);if("object"==typeof o)return o}}(w);if("object"==typeof es)return es.value}}if(!window.disableHiddenPairs){for(var ea=(0,l.AS)([1,2,3,4,5,6,7,8,9]),D={},R={},B={},w=0;w<c.length;w++){var F=c[w],$=D[F.row]||{},j=R[F.col]||{},z=B[F.cubeId]||{},G=F.notes||[],Y=G.filter(function(e){return!!e});if(!(Y.length<2)){for(var q=0;q<ea.length;q++){var el=Y.toString(),ec=ea[q].toString();el.includes(ea[q][0])&&el.includes(ea[q][1])&&($[ec]=$[ec]?$[ec]+1:1,j[ec]=j[ec]?j[ec]+1:1,z[ec]=z[ec]?z[ec]+1:1)}window.disableSearchInRows||(D[F.row]=$),R[F.col]=j,window.disableSearchInBlocks||(B[F.cubeId]=z)}}for(var w=0;w<Object.keys(B).length;w++){var eu=function(t){for(var n=Object.keys(B)[t],i=0;i<Object.keys(B[n]).length;i++){var o=function(t){var i=Object.keys(B[n])[t];if(2===B[n][i]){var o=i.split(",").map(function(e){return parseInt(e)}),s=c.filter(function(e){return e.cubeId===n&&e.notes&&(e.notes.includes(o[0])||e.notes.includes(o[1]))});if(2!==s.length)return"continue";var a=s.map(function(e){var t=e.notes||[];return d(d({},e),{notes:t.filter(function(e){return!o.includes(e)&&e})})}).filter(function(e){return e.notes&&e.notes.length}),l=s[0];if(a.length){var u=e.notes.map(function(e,t){return e&&a.find(function(e){return e.index===t})?e.map(function(e){return o.includes(e)?e:null}):e});return{value:{cell:l,notes:s,type:r.jc.HiddenPairs,additionalData:{type:"cube",val:n,descArr:o,invalidNotes:a,finishNotes:u}}}}}}(i);if("object"==typeof o)return o}}(w);if("object"==typeof eu)return eu.value}for(var w=0;w<Object.keys(D).length;w++){var ed=function(t){for(var n=Object.keys(D)[t],i=0;i<Object.keys(D[n]).length;i++){var o=function(t){var i=Object.keys(D[n])[t];if(2===D[n][i]){var o=i.split(",").map(function(e){return parseInt(e)}),s=c.filter(function(e){return e.row===parseInt(n)&&e.notes&&(e.notes.includes(o[0])||e.notes.includes(o[1]))});if(2!==s.length)return"continue";var a=s.map(function(e){var t=e.notes||[];return d(d({},e),{notes:t.filter(function(e){return!o.includes(e)&&e})})}).filter(function(e){return e.notes&&e.notes.length}),l=s[0];if(a.length){var u=e.notes.map(function(e,t){return e&&a.find(function(e){return e.index===t})?e.map(function(e){return o.includes(e)?e:null}):e});return{value:{cell:l,notes:s,type:r.jc.HiddenPairs,additionalData:{type:"row",val:parseInt(n),descArr:o,invalidNotes:a,finishNotes:u}}}}}}(i);if("object"==typeof o)return o}}(w);if("object"==typeof ed)return ed.value}for(var w=0;w<Object.keys(R).length;w++){var eh=function(t){for(var n=Object.keys(R)[t],i=0;i<Object.keys(R[n]).length;i++){var o=function(t){var i=Object.keys(R[n])[t];
14if(2===R[n][i]){var o=i.split(",").map(function(e){return parseInt(e)}),s=c.filter(function(e){return e.col===parseInt(n)&&e.notes&&(e.notes.includes(o[0])||e.notes.includes(o[1]))});if(2!==s.length)return"continue";var a=s.map(function(e){var t=e.notes||[];return d(d({},e),{notes:t.filter(function(e){return!o.includes(e)&&e})})}).filter(function(e){return e.notes&&e.notes.length}),l=s[0];if(a.length){var u=e.notes.map(function(e,t){return e&&a.find(function(e){return e.index===t})?e.map(function(e){return o.includes(e)?e:null}):e});return{value:{cell:l,notes:s,type:r.jc.HiddenPairs,additionalData:{type:"col",val:parseInt(n),descArr:o,invalidNotes:a,finishNotes:u}}}}}}(i);if("object"==typeof o)return o}}(w);if("object"==typeof eh)return eh.value}}if(!window.disablePointingPairs){for(var ep={},D={},R={},w=0;w<c.length;w++){for(var F=c[w],z=ep[F.cubeId]||{},$=D[F.row]||{},j=R[F.col]||{},G=F.notes||[],q=0;q<G.length;q++)G[q]&&(z[G[q]]=z[G[q]]?z[G[q]]+1:1,$[G[q]]=$[G[q]]?$[G[q]]+1:1,j[G[q]]=j[G[q]]?j[G[q]]+1:1);window.disableSearchInRows||(D[F.row]=$),R[F.col]=j,window.disableSearchInBlocks||(ep[F.cubeId]=z)}for(var w=0;w<Object.keys(ep).length;w++){var ef=function(t){for(var n=Object.keys(ep)[t],i=0;i<Object.keys(ep[n]).length;i++){var o=function(t){var i=Object.keys(ep[n])[t];if(2===ep[n][i]){var o=c.filter(function(e){return e.cubeId===n}),s=o.filter(function(e){return e.notes&&e.notes.includes(parseInt(i))});if(2!==s.length)return"continue";var a=[],l=null,u=null;if(s[0].row===s[1].row?(a=c.filter(function(e){return e.cubeId!==n&&e.notes&&e.notes.includes(parseInt(i))&&e.row===s[0].row}),l="row",u=s[0].row):s[0].col===s[1].col&&(a=c.filter(function(e){return e.cubeId!==n&&e.notes&&e.notes.includes(parseInt(i))&&e.col===s[0].col}),l="col",u=s[0].col),!a.length)return"continue";var d=o[0],h=e.notes.map(function(e,t){return e&&a.find(function(e){return e.index===t})?e.map(function(e){return e===parseInt(i)?null:e}):e});return{value:{cell:d,notes:s,type:r.jc.PointingPairs,additionalData:{type:l,val:n,invalidNotes:a,finishNotes:h,highlightedType:"cube",highlightedVal:u,value:parseInt(i)}}}}}(i);if("object"==typeof o)return o}}(w);if("object"==typeof ef)return ef.value}for(var w=0;w<Object.keys(D).length;w++){var eg=function(t){for(var n=Object.keys(D)[t],i=0;i<Object.keys(D[n]).length;i++){var o=function(t){var i=Object.keys(D[n])[t];if(2===D[n][i]){var o=c.filter(function(e){return e.row===parseInt(n)}),s=o.filter(function(e){return e.notes&&e.notes.includes(parseInt(i))});if(2!==s.length||s[0].cubeId!==s[1].cubeId)return"continue";var a=c.filter(function(e){return e.row!==parseInt(n)&&e.cubeId===s[0].cubeId&&e.notes&&e.notes.includes(parseInt(i))}),l=s[0].cubeId;if(!a.length)return"continue";var u=o[0],d=e.notes.map(function(e,t){return e&&a.find(function(e){return e.index===t})?e.map(function(e){return e===parseInt(i)?null:e}):e});return{value:{cell:u,notes:s,type:r.jc.PointingPairs,additionalData:{type:"cube_row",val:parseInt(n),invalidNotes:a,finishNotes:d,highlightedType:"row",highlightedVal:l,value:parseInt(i)}}}}}(i);if("object"==typeof o)return o}}(w);if("object"==typeof eg)return eg.value}for(var w=0;w<Object.keys(R).length;w++){var em=function(t){for(var n=Object.keys(R)[t],i=0;i<Object.keys(R[n]).length;i++){var o=function(t){var i=Object.keys(R[n])[t];if(2===R[n][i]){var o=c.filter(function(e){return e.col===parseInt(n)}),s=o.filter(function(e){return e.notes&&e.notes.includes(parseInt(i))});if(2!==s.length||s[0].cubeId!==s[1].cubeId)return"continue";var a=c.filter(function(e){return e.col!==parseInt(n)&&e.cubeId===s[0].cubeId&&e.notes&&e.notes.includes(parseInt(i))}),l=s[0].cubeId;if(!a.length)return"continue";var u=o[0],d=e.notes.map(function(e,t){return e&&a.find(function(e){return e.index===t})?e.map(function(e){return e===parseInt(i)?null:e}):e});return{value:{cell:u,notes:s,type:r.jc.PointingPairs,additionalData:{type:"cube_col",val:parseInt(n),invalidNotes:a,finishNotes:d,highlightedType:"col",highlightedVal:l,value:parseInt(i)}}}}}(i);if("object"==typeof o)return o}}(w);if("object"==typeof em)return em.value}}}return!1};function H(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every(function(e,n){return e===t[n]})}var z=function(e){var t=document.querySelector(".fake-board");if(t)for(var n=0;n<9;n++){for(var r=document.createElement("div"),i=0;i<9;i++){var o=document.createElement("span"),s=9*(Math.floor(i/3)+3*Math.floor(n/3))+(([0,3,6].includes(i)?0:[1,4,7].includes(i)?1:2)+3*([0,3,6].includes(n)?0:[1,4,7].includes(n)?1:2));o.style.color="#".concat(parseInt(e.mission[s])?"344861":"335ab0"),o.innerText=e.solution[s],r.appendChild(o)}t.appendChild(r)}},G=function(e){switch(e){case"gold":default:return 1;case"silver":return 2;case"bronze":return 3;case"copper":return 4}},q=function(e){var t=JSON.parse(localStorage.getItem(o.LS.GAME_HISTORY))||[],n=new Date;n.setHours(0,0,0,0);var r=n.getTime(),i=r-6048e5,s=t.filter(function(t){return t.mode===e&&t.date>=i&&t.date<r}),a=c.JE[e];if(s.length<3)return a.indexOf("hard")+1;var l={};
14s.forEach(function(e){l[e.difficulty]=(l[e.difficulty]||0)+1});for(var u=null,d=a.length-1;d>=0;d--)if(l[a[d]]>0){u=a[d];break}for(var h=null,p=0,d=a.length-1;d>=0;d--){var f=l[a[d]]||0;f>p&&(p=f,h=a[d])}var g=(l[u]||0)/p>=.8?u:h;return a.indexOf(g)+1}},22235:(e,t,n)=>{"use strict";n.d(t,{B:()=>s,M:()=>a}),n(69085);var r=n(32612),i=n(34585),o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},s=function(e,t){void 0!==window.gtag&&(t?window.gtag("event",e,t):window.gtag("event",e))},a=function(e,t){window.isShowAnalytics=e,window.gtag&&window.gtag("consent","update",o({analytics_storage:e?"granted":"denied",ad_storage:t?"granted":"denied"},window.useCmp?{ad_user_data:t?"granted":"denied",ad_personalization:t?"granted":"denied"}:{})),window.fbq&&window.fbq("consent",t?"grant":"revoke"),r.P.emit(i.Ps.analyticsConsentChanged,!!e)}},89254:(e,t,n)=>{"use strict";function r(e,t){if(void 0===t&&(t={}),"undefined"==typeof window||!window.useOptimizedFlow)return void e();var n,r=null!=(n=t.timeout)?n:2e3,i=window.requestIdleCallback;if("function"==typeof i)return void i(function(){return e()},{timeout:r});setTimeout(e,50)}n.d(t,{c:()=>r})},41224:(e,t,n)=>{"use strict";function r(e,t){var n,r,i=window.pageYOffset,o={duration:t.duration,offset:t.offset||0,callback:t.callback,easing:t.easing||function(e,t,n,r){return(e/=r/2)<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t}},s="string"==typeof e?o.offset+document.querySelector(e).getBoundingClientRect().top:e,a="function"==typeof o.duration?o.duration(s):o.duration;requestAnimationFrame(function(e){n=e,function e(t){r=t-n,window.scrollTo(0,o.easing(r,i,s,a)),r<a?requestAnimationFrame(e):(window.scrollTo(0,i+s),"function"==typeof o.callback&&o.callback())}(e)})}n.d(t,{l:()=>r})},22514:(e,t,n)=>{"use strict";n.d(t,{w:()=>i}),n(28706),n(26099),n(23500);var r="observed",i=function(){function e(e){var t,n,r;this.margin="".concat(null!=(t=e.topOffset)?t:100,"px 0px ").concat(null!=(n=e.bottomOffset)?n:100,"px 0px"),this.selector=e.selector||"[data-src]",this.delay=null!=(r=e.delay)?r:0,this.images=document.querySelectorAll(this.selector),this.finishOpacity=e.maxOpacity||1,e.root&&(this.root=e.root),e.color&&(this.color=e.color),e.aspectRatio&&(this.aspectRatio=e.aspectRatio),e.customClasses&&(this.customClasses=e.customClasses),e.hideBackground&&(this.hideBackground=e.hideBackground),e.additionalId&&(this.additionalId=e.additionalId),e.skipInit?this.manualLoadImages():this.init()}return e.prototype.update=function(){this.images=document.querySelectorAll("".concat(this.selector,":not(.").concat(r,")")),this.init()},e.prototype.init=function(){var e,t=this;if("IntersectionObserver"in window){var n=new IntersectionObserver(function(e){e.forEach(function(e){var r=e.target;e.isIntersecting&&(t.loadImages(r),n.unobserve(r))})},{rootMargin:this.margin,root:null!=(e=this.root)?e:null});this.images.forEach(function(e){t.color&&(e.parentNode.style.backgroundColor=t.color),t.aspectRatio&&(e.parentNode.style.height=e.parentNode.clientWidth/t.aspectRatio+"px"),n.observe(e),e.classList.add(r)})}else console.log("IntersectionObserver not working :("),this.images.forEach(function(e){t.loadImages(e)})},e.prototype.manualLoadImages=function(){this.images.forEach(function(e){e.dataset.srcset&&(e.srcset=e.dataset.srcset),e.src=e.dataset.src,e.removeAttribute("data-src"),e.removeAttribute("data-srcset")})},e.prototype.loadImages=function(e){var t=this,n=new Image,i=e.parentNode;n.onload=function(){i.innerHTML="",i.appendChild(n),t.aspectRatio&&(i.style.height="auto"),setTimeout(function(){n.style.animation="".concat(t.finishOpacity<1?"showOpacity15":"showOpacity"," 0.6s linear 0s forwards"),t.hideBackground&&(i.style.backgroundColor="transparent"),setTimeout(function(){n.style.opacity=String(t.finishOpacity),n.style.animation=null},600)},t.delay)},n.classList.add("lazy-image"),n.classList.add(r),this.customClasses&&this.customClasses.forEach(function(e){return n.classList.add(e)}),this.additionalId&&(n.id=this.additionalId),e.alt&&(n.alt=e.alt),e.dataset.srcset&&(n.srcset=e.dataset.srcset),n.src=e.dataset.src},e}()},4967:(e,t,n)=>{"use strict";n.d(t,{e:()=>c}),n(74423);var r=n(32612),i=n(34585),o=n(70150),s={difficultyMenu:document.getElementById("difficulty-menu"),dcMenu:document.getElementById("dc-menu"),body:document.querySelector("body")},a=function(){r.P.emit(i.Ps.hideAllMenu),s.difficultyMenu&&s.difficultyMenu.classList.remove("menu-visible"),(0,o.pP)(s.body).remove("some-menu-open")},l=function(e,t){var t=t||s[e];a(),t&&t.classList.add("menu-visible"),(0,o.pP)(s.body).add("some-menu-open")},c=function(e,t,n){var n=n||s[t];(!window.isMobile||["newGameMenu","dcMenu"].includes(t))&&(e.stopPropagation(),n.classList.contains("menu-visible")?a():(a(),l(t,n)))}},29208:(e,t,n)=>{"use strict";n.d(t,{F5:()=>u,xS:()=>s}),n(26099),n(27495),n(38781),n(25440);var r,i="en",o=!1;!function(e){e.thousands="K",e.millions="M"}(r||(r={}));var s=function(e){i=e,e in a&&(o=a[e]),e in l&&l[e]},a={ar:",",br:".",de:".",en:",",es:"",fr:"â¯",it:".",jp:",",ko:",",mx:"",pl:"",pt:"",ru:" ",th:",",tr:".",tw:",",vi:".",zh:","},l={ar:",",br:".",de:".",en:",",es:".",fr:"â¯",it:".",jp:",",ko:",",mx:" ",pl:" ",pt:".",ru:" ",th:",",tr:".",tw:",",vi:".",zh:","},c=function(e){var t={"Ù ":"0","Ù¡":"1","Ù¢":"2","Ù£":"3","Ù¤":"4","Ù¥":"5","Ù¦":"6","Ù§":"7","Ù¨":"8","Ù©":"9","Ù«":"."};return e.replace(/[Ù -٩٫]/g,function(e){return t[e]})},u=function(e,t){void 0===t&&(t=!1);var n=i;if(e<1e4)return!1!==o?e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,o.toString()):new Intl.NumberFormat(n).format(e);if(e<1e6){var s=t?Math.ceil(e/100)/10:Math.floor(e/100)/10,a=s>=1e3?r.millions:r.thousands;t&&s>=1e3&&(s=Math.ceil(s/100)/10);var l={minimumFractionDigits:0,maximumFractionDigits:1},u=new Intl.NumberFormat(n,l).format(s);return"ar"===n&&(u=c(u)),u+a}var s=t?Math.ceil(e/1e5)/10:Math.floor(e/1e5)/10,l={minimumFractionDigits:0,maximumFractionDigits:1},u=new Intl.NumberFormat(n,l).format(s);return"ar"===n&&(u=c(u)),u+r.millions}},79400:(e,t,n)=>{"use strict";n.d(t,{ON:()=>l,cZ:()=>o,jh:()=>c});var r=n(80011),i=n(22235),o="gamescreen",s="pause",a=function(e,t){r.ets.send(e,t),(0,i.B)(e,t)},l=function(){a("g_screen_action",{screen:o,action:"pause"}),a("g_screen",{screen:s,placement:o})},c=function(){a("g_screen_action",{screen:s,action:"resume"}),a("g_screen",{screen:o,placement:s})}},62842:(e,t,n)=>{"use strict";n.d(t,{V:()=>g}),n(28706),n(2008),n(23792),n(62062),n(72712),n(34782),n(60739),n(9868),n(69085),n(26099),n(58940),n(38781),n(68156),n(23500),n(62953);var r=n(45395),i=n(70150),o=n(4967),s=n(38613),a=n(7208),l=n(57705),c=n(41224),u=n(52195),d=n(80011),h=n(22235),p=n(62351),f=function(){return(f=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},g=function(){function e(e){this.minDate=e.minDate,this.firstDayInCalendar=e.firstDay,this.maxDate=e.maxDate,this.selectedDate=(0,r.P0)(this.maxDate),this.calendar=[],this.cups=[],this.moving=!1,this.mounted=!1,this.dateTranslations=e.dateTranslations,this.$body=document.querySelector("body"),this.$calendarDate=document.querySelector(e.calendarDateSelector),this.$calendarWrapper=document.querySelector(e.calendarWrapperSelector),this.$navPrev=document.querySelector("".concat(e.calendarNavSelector,"[left]")),this.$navNext=document.querySelector("".concat(e.calendarNavSelector,"[right]")),this.$calendarCup=document.querySelector(e.calendarCupSelector),this.$calendarButton=document.querySelector(e.calendarButtonSelector),this.$restartButton=document.querySelector(e.restartButtonSelector),this.$continueButton=document.querySelector(e.continueButtonSelector),this.$calendarBody=document.getElementById("calendar-body"),this.$flares=document.querySelectorAll("#calendar-cup .flare"),this.$calendarProgress=document.querySelector("#calendar-progress")}
14return e.monthIsFullCompleted=function(e,t,n){var i=t||l.lw&&JSON.parse(localStorage.getItem(r.X4))||{},o=e.split("_"),s=o[0],a=o[1],c=(0,r.PK)(parseInt(s),parseInt(a)),u=0;return Object.keys(i).forEach(function(t){var n=t.split("_"),r=n[0],o=n[1];"".concat(r,"_").concat(o)===e&&i[t].done&&u++}),{countFinished:u,daysInMonth:c,completed:n?u===n:u===c}},e.prototype.init=function(){var e,t=this,n=l.lw&&sessionStorage.getItem("dc-calendar"),r=l.lw&&sessionStorage.getItem("dc-win-date");r&&(this.fakeSelectedDate=r),this.selectCell=this.selectCell.bind(this),this.moveCalendar=this.moveCalendar.bind(this),this.handleCalendarButtonClick=this.handleCalendarButtonClick.bind(this),this.resetLocalStorageLevelProgress=this.resetLocalStorageLevelProgress.bind(this),this.redirectToDCLevel=this.redirectToDCLevel.bind(this),this.prepareCalendar(),this.paintCup(),this.paintCalendar(),this.createCalendarListeners(),this.paintSelectedDate(),this.paintProgress(),n&&this.activateNearTab(),this.lazyLoadImages(this.$flares),this.showWinCoin(),this.$navPrev.addEventListener("click",this.moveCalendar),this.$navNext.addEventListener("click",this.moveCalendar),this.$calendarButton.addEventListener("click",this.handleCalendarButtonClick),this.$continueButton.addEventListener("click",this.redirectToDCLevel),this.$restartButton.addEventListener("click",this.resetLocalStorageLevelProgress),window.addEventListener("resize",(0,s.sg)(function(){t.$calendarCup.style.height="auto",t.$calendarCup.style.height="".concat(t.$calendarCup.offsetHeight,"px")}));var i={month:null==(e=this.calendar[this.selectedMonth])?void 0:e.eventId,by:"show_calendar"};d.ets.send("dc_calendar_month_show",i),(0,h.B)("dc_calendar_month_show",i)},e.prototype.lazyLoadImages=function(e){function t(e){if(e){if(e.target){0!==e.target.naturalHeight&&(0,i.pP)(e.target).add("loaded");return}(0,i.pP)(e).add("loaded")}}e.forEach(function(e){e.complete&&0!==e.naturalHeight?t(e):e.addEventListener("load",t)})},e.prototype.showWinCoin=function(){var e=this;if(this.fakeSelectedDate){var t=this.fakeSelectedDate.split("_"),n=t[0],r=t[1];t[2];var o=this.calendar[this.selectedMonth].id.split("_"),s=o[0],a=o[1],u=!(0,i.cH)(this.$calendarWrapper),d=this.$calendarBody.getBoundingClientRect().top-(window.innerHeight-this.$calendarBody.scrollHeight);if(r!==a||n!==s){l.lw&&sessionStorage.removeItem("dc-win-date");return}var h=window.matchMedia("(max-width: 767px)").matches,p=document.createElement("img");if(p.classList.add("calendar-coin"),p.src="/img/dc-coin.svg",window.matchMedia("(max-width: 767px)").matches)this.$calendarBody.appendChild(p);else{var f=document.createElement("div");f.classList.add("calendar-coin-parent"),f.appendChild(p),p.style.left="50%",p.style.bottom="inherit",p.style.right="inherit",p.style.margin="-".concat(410,"px 0 0 -").concat(820,"px"),p.style.width="".concat(1640,"px"),p.style.height="".concat(1640,"px"),p.style.opacity="0",this.$body.appendChild(f)}this.$dcCoin=document.querySelector(".calendar-coin"),this.$dcCoin.style.display="block",this.$calendarBody.classList.add("animation"),setTimeout(function(){e.animateCoin(),u&&h&&(0,c.l)(d,{duration:500}),setTimeout(function(){e.$calendarBody.classList.add("animation-select")},h?500:600),setTimeout(function(){(0,i.pP)(e.$calendarBody).remove("animation","animation-select"),sessionStorage.removeItem("dc-win-date")},1300)},400)}},e.prototype.animateCoin=function(){var e=window.matchMedia("(max-width: 767px)").matches,t=document.querySelector('.day[data-id="'.concat(this.fakeSelectedDate,'"]')),n=this.$dcCoin.clientWidth,r=t.getBoundingClientRect(),i=this.$dcCoin.getBoundingClientRect(),o=e?600:700,s=window.matchMedia("(max-width: 767px)").matches?0:n/2,l=(i.top+s)*(e?1:-1),c=i.left+n/2-820*!e,u=0,d=0,h=0,p=0,f=null,g=this;requestAnimationFrame(function t(i){f||(f=i);var s=i-f,m=Math.min((0,a.ME)(s/o),1);d=(l-r.top-r.width/2)*m,h=(c-r.left-r.width/2)*m,u=n-n*m,g.$dcCoin.style.width="".concat(u,"px"),g.$dcCoin.style.height="".concat(u,"px"),g.$dcCoin.style.transform="translate(".concat(-h,"px, ").concat(-d,"px)"),e||(p=m,g.$dcCoin.style.opacity="".concat(p)),s<o&&requestAnimationFrame(t)})},e.prototype.activateNearTab=function(){sessionStorage.removeItem("dc-calendar");for(var e=null,t=this.calendar.length-1;t>=0&&null===e;)this.calendar[t].notFullCompletedMonth||(e=t),t--;this.selectedMonth=null!==e?e:this.calendar.length-1,this.moveCalendar(null,!0)}
14,e.prototype.getEventConfig=function(e){var t,n=JSON.parse(localStorage.getItem(r.X4))||{},i=n[this.selectedDate]?n[this.selectedDate].done?"completed":"inprogress":"new",o=(null!=(t=this.selectedDate)?t:"").split("_"),s=o[0],a=o[1],l=o[2],c=new Date(parseInt(s),parseInt(a),parseInt(l)),u=new Date(window.currentDate);u.setHours(0,0,0,0);var d=Math.round((c.getTime()-u.getTime())/864e5),h=(c.getFullYear()-u.getFullYear())*12+(c.getMonth()-u.getMonth()),g=p.default.state.userSegment,m=this.calendar[this.selectedMonth];return f(f({type:e,state:i,day:(0,r.ro)(window.currentDate.getTime(),c.getTime())?"current":"past",day_diff:"".concat(d),month_diff:"".concat(h),month:"".concat(s,"-").concat(String(parseInt(a)+1).padStart(2,"0"),"-01")},g?{user_level:["easy","medium","hard","expert","master","extreme"][g-1]}:{}),{progress:Number((m.countCompletedDays/m.maxDay).toFixed(2)),available:Number((m.maxDay/m.countDaysInMonth).toFixed(2))})},e.prototype.resetLocalStorageLevelProgress=function(){if(l.lw){var e=JSON.parse(localStorage.getItem(r.X4))||{},t=this.getEventConfig("restart");delete e[this.selectedDate],localStorage.setItem(r.X4,JSON.stringify(e)),sessionStorage.setItem("dc_restart","1"),this.redirectToDCLevel(t)}},e.prototype.redirectToDCLevel=function(e){d.ets.send("dc_calendar_play",e),(0,h.B)("dc_calendar_play",e),window.location.href=this.$calendarButton.dataset.url},e.prototype.handleCalendarButtonClick=function(e){var t=l.lw&&JSON.parse(localStorage.getItem(r.X4))||{};if(l.lw&&sessionStorage.setItem(u.f.DC_DATE,'"'.concat(this.selectedDate,'"')),t[this.selectedDate]&&!t[this.selectedDate].done)(0,o.e)(e,"dcMenu");else{var n=this.getEventConfig("start");this.redirectToDCLevel(n)}},e.prototype.moveCalendar=function(e,t){var n;if(!this.moving){if(!t){var r=(0,i.Bf)(e.target,"calendar-nav");this.selectedMonth=r.hasAttribute("left")?this.selectedMonth-1:this.selectedMonth+1}this.disableInteraction(),this.actualizeStateOfNavs(),this.paintCalendar(t),this.removeCalendarListeners(),this.createCalendarListeners(),this.selectCell(),this.paintCup(),this.paintProgress();var o={month:null==(n=this.calendar[this.selectedMonth])?void 0:n.eventId,by:"arrow"};d.ets.send("dc_calendar_month_show",o),(0,h.B)("dc_calendar_month_show",o)}},e.prototype.actualizeStateOfNavs=function(){this.$navNext.removeAttribute("disabled"),this.$navPrev.removeAttribute("disabled"),this.selectedMonth>=this.calendar.length-1&&this.$navNext.setAttribute("disabled",""),this.selectedMonth<=0&&this.$navPrev.setAttribute("disabled","")},e.prototype.disableInteraction=function(){var e=this;this.moving=!0,setTimeout(function(){e.moving=!1},500)},e.prototype.prepareCalendar=function(){for(var t=new Date(this.minDate);t<this.maxDate;){var n=(0,r.PK)(t.getFullYear(),t.getMonth()),i=(0,r.GD)(t.getFullYear(),t.getMonth()),o=Array((0,r.Fx)(i,this.firstDayInCalendar)).fill(0).concat(Array.from({length:n},function(e,t){return t+1})),s="".concat(t.getFullYear(),"_").concat(t.getMonth()),a=this.selectedDate.split("_"),l=a[0],c=a[1],u=a[2],d="".concat(l,"_").concat(c)===s?parseInt(u):n,h=this.findLastAvailableMonthDay(s,d);"".concat(l,"_").concat(c)===s&&(this.selectedDate="".concat(l,"_").concat(c,"_").concat(h)),this.calendar.push({id:s,monthId:t.getMonth(),countDaysInMonth:n,eventId:"".concat(t.getFullYear(),"-").concat(String(t.getMonth()+1).padStart(2,"0")),countCompletedDays:m(s),maxDay:d,maxNotFinishedDay:h,cells:o,calendarHtml:v(o,s,this.selectedDate,this.maxDate,this.fakeSelectedDate),fullCompleted:e.monthIsFullCompleted(s).completed,notFullCompletedMonth:e.monthIsFullCompleted(s,null,d).completed}),t.setMonth(t.getMonth()+1)}this.selectedMonth=this.calendar.length-1},e.prototype.findLastAvailableMonthDay=function(e,t){var n=l.lw&&JSON.parse(localStorage.getItem(r.X4))||{};if(!l.lw)return t;for(var i=t;i>0;){var o=n["".concat(e,"_").concat(i)];if(!o||!(o&&o.done))return i;i--}return t},e.prototype.downloadCup=function(e,t,n){var r;if(!this.cups[e]||!this.cups[e][t]){var i=new Image;i.src="/img/cups/cup_".concat(e).concat(n?"_done":"",".png"),i.srcset="/img/cups/cup_".concat(e).concat(n?"_done":"",".png 1x, /img/cups/cup_").concat(e).concat(n?"_done":"","@2x.png 2x"),i.dataset.id=e.toString(),i.dataset.type=t,this.cups[e]=f(f({},this.cups[e]||{}),((r={})[t]=i,r)),this.cups[e][t].classList.add("active"),this.$calendarCup.appendChild(this.cups[e][t])}},e.prototype.paintProgress=function(){var e=this.calendar[this.selectedMonth],t=e.countCompletedDays,n=e.countDaysInMonth;this.$calendarProgress.innerText="".concat(t,"/").concat(n)},e.prototype.paintCup=function(){var e=this,t=this.selectedMonth-1,n=this.calendar[this.selectedMonth],r=n.monthId,i=n.fullCompleted,o=i?"gold":"normal";if(this.downloadCup(r,o,i),t>=0){var s=this.calendar[t],a=s.monthId,l=s.fullCompleted;this.downloadCup(a,l?"gold":"normal",l)}if(this.$calendarCup.querySelectorAll("img[data-id]").forEach(function(e){e.classList.remove("active"),parseInt(e.dataset.id)===r&&e.dataset.type===o&&e.classList.add("active")}),!this.mounted){var c=document.querySelectorAll("img[data-id]");this.lazyLoadImages(c),setTimeout(function(){e.$calendarCup.classList.add("active"),e.$calendarCup.style.height="".concat(e.$calendarCup.offsetHeight,"px")},500),setTimeout(function(){e.$calendarCup.classList.add("inited")},1e3)}},e.prototype.paintSelectedDate=function(){var e=this.selectedDate.split("_").map(function(e){return parseInt(e)}),t=e[0],n=e[1],i=e[2];this.$calendarDate.innerText=(0,r.tI)(this.dateTranslations[n],i,t,"YEAR")},e.prototype.paintCalendar=function(e){var t=this,n=this.selectedMonth-1>=0?this.selectedMonth-1:0,r=this.selectedMonth+1<=this.calendar.length-1?this.selectedMonth+1:this.calendar.length-1,o=this.calendar.slice(n,r+1);(0,i.pP)(this.calendar[this.selectedMonth].calendarHtml).remove("prev","next","active").add("active"),r!==this.selectedMonth&&(0,i.pP)(this.calendar[r].calendarHtml).remove("prev","next","active").add("next"),n!==this.selectedMonth&&(0,i.pP)(this.calendar[n].calendarHtml).remove("prev","next","active").add("prev"),!this.mounted||e?(this.$calendarWrapper.innerHTML="",o.forEach(function(e){return t.$calendarWrapper.appendChild(e.calendarHtml)}),this.mounted=!0):(document.querySelectorAll(".calendar-table").forEach(function(e){o.find(function(t){return t.id===e.dataset.id})||e.parentNode.removeChild(e)}),o.forEach(function(e,n){if(document.querySelector('.calendar-table[data-id="'.concat(e.id,'"]'))){if(t.rerenderedMonth){var r=document.querySelector('.calendar-table[data-id="'.concat(e.id,'"]'));r.className=e.calendarHtml.className,r.innerHTML=e.calendarHtml.innerHTML,e.calendarHtml=r}}else 0===n&&t.$calendarWrapper.insertAdjacentElement("afterbegin",e.calendarHtml),n===o.length-1&&t.$calendarWrapper.appendChild(e.calendarHtml)}),this.rerenderedMonth=!1)},e.prototype.clearSelectedCells=function(){document.querySelectorAll(".calendar-table .day").forEach(function(e){e.classList.remove("selected")})},e.prototype.selectCell=function(e){if(this.clearSelectedCells(),!e){var t=this.calendar[this.selectedMonth];this.selectedDate="".concat(t.id,"_").concat(t.maxNotFinishedDay),document.querySelector('[data-id="'.concat(this.selectedDate,'"]')).classList.add("selected"),this.paintSelectedDate(
14);return}var n=(0,i.Bf)(e.target,"day");n&&(this.selectedDate=n.dataset.id,n.classList.add("selected"),this.paintSelectedDate())},e.prototype.createCalendarListeners=function(){var e=this;document.querySelectorAll(".calendar-table.active .day:not([disabled])").forEach(function(t){t.addEventListener("click",e.selectCell)})},e.prototype.removeCalendarListeners=function(){var e=this;document.querySelectorAll(".calendar-table:not(.active) .day:not([disabled])").forEach(function(t){t.removeEventListener("click",e.selectCell)})},e.prototype.rerenderCurrentMonth=function(){document.querySelector('[data-id="'.concat(this.calendar[this.selectedMonth].id,'"]')).innerHTML=this.calendar[this.selectedMonth].calendarHtml.innerHTML,this.removeCalendarListeners(),this.createCalendarListeners(),this.paintCup(),this.paintProgress(),this.rerenderedMonth=!0},e.prototype._cheatUpdateSelectedMonth=function(e){void 0===e&&(e="COMPLETE");for(var t=this.calendar[this.selectedMonth].cells.filter(function(e){return!!e}),n=0;n<this.calendar[this.selectedMonth].maxDay;n++)this._cheatUpdateSelectedDay("".concat(this.calendar[this.selectedMonth].id,"_").concat(t[n]),this.calendar[this.selectedMonth].maxDay===t[n],e);this.selectedDate="".concat(this.calendar[this.selectedMonth].id,"_").concat(this.calendar[this.selectedMonth].maxDay)},e.prototype._cheatUpdateSelectedDay=function(t,n,i){var o=this;if(void 0===n&&(n=!0),void 0===i&&(i="COMPLETE"),l.lw){var s=JSON.parse(localStorage.getItem(r.X4))||{},a="string"==typeof t?t:this.selectedDate,c=a.split("_"),u=c[0],d=c[1];"COMPLETE"===i?s[a]=f(f({},s[a]),{done:!0}):delete s[a],this.calendar.map(function(t){return t.id==="".concat(u,"_").concat(d)&&(t.calendarHtml=v(t.cells,t.id,a,o.maxDate,null,s),t.fullCompleted=e.monthIsFullCompleted(t.id,s).completed,t.countCompletedDays=m(t.id,s)),t}),localStorage.setItem(r.X4,JSON.stringify(s)),n&&this.rerenderCurrentMonth()}},e}();function m(e,t){var n=t||l.lw&&JSON.parse(localStorage.getItem(r.X4))||{},i=0;return Object.keys(n).forEach(function(t){var r,o=e.split("_"),s=o[0],a=o[1],l=t.split("_"),c=l[0],u=l[1];l[2],s===c&&a===u&&(null==(r=n[t])?void 0:r.done)&&i++}),i}function v(e,t,n,i,o,s){var a=s||l.lw&&JSON.parse(localStorage.getItem(r.X4))||{},c=document.createElement("div"),u=i.getDate(),d=i.getFullYear(),h=i.getMonth();return c.className="calendar-table",c.dataset.id=t,e.forEach(function(e){var i,s=document.createElement("div");if(e){var l="".concat(t,"_").concat(e),p=document.createElement("div");if(p.innerText=e,p.dataset.id=l,p.className="day",n===l&&(p.classList.add("selected"),o&&p.classList.add("animation-hidden")),o===l&&p.classList.add("animation-selected"),(null==(i=a[l])?void 0:i.done)&&p.classList.add("completed"),e>u&&t==="".concat(d,"_").concat(h)&&p.setAttribute("disabled",""),a[l]&&!a[l].done){var f=a[l]||0,g=f.userGrid,m=f.values,v=void 0;m&&(v=m.reduce(function(e,t){return e.push(t.val),e},[]));var y=100-(0,r.Cv)(v||g);p.classList.add("progress"),p.innerHTML=` 15 <svg xmlns="http://www.w3.org/2000/svg" viewBox="-2 -2 36 36"> 16 <circle cx="16" cy="16" r="15.9155" class="background" /> 17 <circle cx="16" cy="16" r="15.9155" class="progress" style="stroke-dashoffset: `.concat(y,`" /> 18 </svg> 19 `).concat(e,` 20 `)}s.appendChild(p)}c.appendChild(s)}),c}},6763:(e,t,n)=>{"use strict";n.d(t,{L:()=>u,Z:()=>r}),n(28706),n(74423),n(72712),n(60739),n(26099),n(21699),n(23500);var r,i,o=n(70150),s=n(57705);!function(e){e.dc="dc",e.events="events",e.tournaments="tournaments",e.basicAvatars="basicAvatars",e.specialAvatars="specialAvatars"}(r||(r={})),function(e){e.awards="awards",e.avatars="avatars"}(i||(i={}));var a="menu-notification",l="#burger-icon .icon-menu",c="notification_count",u=function(){function e(e,t){var n,i,o=s.lw&&JSON.parse(localStorage.getItem(c))||{};this.count="object"==typeof o&&Object.keys(o).length?o:Object.keys(r).reduce(function(e,t){return e[t]=0,e},{}),delete this.count.events,this.count.tournaments||(this.count.tournaments=0),this.saveStateToLs(),this.$awards=document.querySelectorAll(e),this.$avatars=document.querySelectorAll(".avatars-link > a"),this.$meMenu=document.querySelectorAll(".more-menu-open, .burger-icon .icon-menu"),this.$header=document.querySelector(".header"),this.$awardsNotif=document.querySelector(".awards > .right > .notif"),this._awardsNotifOrigText=null!=(i=null==(n=this.$awardsNotif)?void 0:n.innerText)?i:"",this.$awardsElement=document.querySelector(t.awardsSelector),this.$tournamentsElement=document.querySelector(t.tournamentsSelector),this.init()}return e.prototype.setCount=function(e,t){this.count[t]=e,this.repaint()},e.prototype.add=function(e){this.count[e]++,this.repaint()},e.prototype.get=function(e){var t;return null!=(t=this.count[e])?t:0},e.prototype.minus=function(e){this.count[e]--,this.repaint()},e.prototype.sumCount=function(){var e=this;return Object.keys(this.count).reduce(function(t,n){return t+e.count[n]},0)},e.prototype.getCount=function(e){var t=this;return Object.keys(this.count).reduce(function(n,o){return(e===i.awards&&[r.dc,r.tournaments].includes(o)||e===i.avatars&&[r.basicAvatars,r.specialAvatars].includes(o))&&(n+=t.count[o]),n},0)},e.prototype.repaint=function(){var e=this;this.saveStateToLs(),this.$awardsNotifications.forEach(function(t){t.innerText=String(e.getCount(i.awards)),t.style.opacity=0>=e.getCount(i.awards)?"0":"1"}),this.$avatarsNotifications.forEach(function(t){t.innerText=String(e.getCount(i.avatars)),t.style.opacity=0>=e.getCount(i.avatars)?"0":"1"}),this.paintSeparatedValues(),this.paintAwardsNotif(),this.render()},e.prototype.paintAwardsNotif=function(){if(this.$awardsNotif){var e=this.getCount(i.awards);e>=1?(this.$awardsNotif.classList.add("active"),this.$awardsNotif.innerText=e>1?String(e):this._awardsNotifOrigText):this.$awardsNotif.classList.remove("active")}},e.prototype.paintSeparatedValues=function(){this.$awardsElement&&(this.$awardsElement.innerText=String(this.get(r.dc)),this.$awardsElement.style.display=0>=this.get(r.dc)?"none":"flex"),this.$tournamentsElement&&(this.$tournamentsElement.innerText=String(this.get(r.tournaments)),this.$tournamentsElement.style.display=0>=this.get(r.tournaments)?"none":"flex")},e.prototype.hideGlobal=function(e){e===i.awards&&this.$awardsNotifications.forEach(function(e){e.style.opacity="0"}),e===i.avatars&&this.$avatarsNotifications.forEach(function(e){e.style.opacity="0"})},e.prototype.saveStateToLs=function(){s.lw&&localStorage.setItem(c,JSON.stringify(this.count))},e.prototype.prepareNotifications=function(e,t){var n=document.createElement("span");n.classList.add(a),n.classList.add("".concat(e,"-notif")),n.innerText=String(this.getCount(e)),0>=this.getCount(e)&&(n.style.opacity="0"),t&&t.forEach(function(e){return e.appendChild(n.cloneNode(!0))}),e===i.awards&&document.querySelector(l)&&document.querySelector(l).appendChild(n.cloneNode(!0))},e.prototype.render=function(){this.$header&&(this.sumCount()>0?(0,o.pP)(this.$header).add("with-notification"):(0,o.pP)(this.$header).remove("with-notification"))},e.prototype.init=function(){this.paintSeparatedValues(),this.paintAwardsNotif(),this.prepareNotifications(i.awards,this.$awards),this.prepareNotifications(i.avatars,this.$avatars),this.$awardsNotifications=document.querySelectorAll(".".concat(a,".").concat(i.awards,"-notif")),this.$avatarsNotifications=document.querySelectorAll(".".concat(a,".").concat(i.avatars,"-notif")),this.render()},e}()}
20,87372:(e,t,n)=>{"use strict";n(52675),n(89463),n(23792),n(26099),n(3362),n(62953);var r=n(29380),i=n(62351),o=n(80457),s=n(22514);n(62062),n(23500);var a=n(57705),l=n(52195),c=n(70150),u=n(34585),d=n(32612),h=n(80011),p=n(21350);h.croco.crocoLogic;var f=function(){function e(){var e=this;this.$body=document.querySelector("body"),this.$wrapper=document.querySelector(".tournament_hiw"),this.$buttons=document.querySelectorAll(".tournament_hiw_btn"),this.$items=document.querySelectorAll(".tournament_hiw_item"),this.$dots=document.querySelectorAll(".tournament_hiw_dots li"),this.$showBtn=document.querySelector(".tournament_hiw_open"),this.show=!!a.lw&&!!localStorage.getItem(l.LS.TOURNAMENT_HIW),this.show||d.P.emit(u.Ps.showPopup,{type:p.n.game,func:this.showPopup.bind(this)}),this.$buttons.forEach(function(t){return t.addEventListener("click",e.handleClickBtn.bind(e))}),this.$showBtn&&this.$showBtn.addEventListener("click",this.showPopup.bind(this)),window.addEventListener("resize",this.setEqualHeight.bind(this))}return e.prototype.setEqualHeight=function(){if(this.$items&&this.$items.length&&this.show){var e=Array.from(this.$items),t=Math.max.apply(Math,e.map(function(e){return e.getBoundingClientRect().height}));!(window.deviceType!==u.bq.phone&&window.matchMedia("(min-width: 768px)").matches)&&(0,c.pP)(this.$wrapper).contains("open")?(0,c.pP)(this.$body).add("overflow"):(0,c.pP)(this.$body).remove("overflow"),this.$items.forEach(function(e){e.style.minHeight="".concat(t,"px")})}},e.prototype.showPopup=function(){this.$wrapper&&(this.show=!0,window.deviceType!==u.bq.phone&&window.matchMedia("(min-width: 768px)").matches||(0,c.pP)(this.$body).add("overflow"),(0,c.pP)(this.$wrapper).add("open"),this.setEqualHeight(),a.lw&&localStorage.setItem(l.LS.TOURNAMENT_HIW,"1"))},e.prototype.closePopup=function(){(0,c.pP)(this.$body).remove("overflow"),(0,c.pP)(this.$wrapper).remove("open"),this.show=!1,this.setDefaultState(),d.P.emit(u.Ps.showNextPopup)},e.prototype.handleClickBtn=function(e){if(!this.moving){var t=e.target.dataset.action;switch(this.disableInteraction(),t){case"next":(0,c.pP)(this.$items[0]).remove("active").add("prev"),(0,c.pP)(this.$items[1]).remove("next").add("active"),(0,c.pP)(this.$dots[0]).remove("active"),(0,c.pP)(this.$dots[1]).add("active");break;case"close":this.closePopup()}}},e.prototype.disableInteraction=function(){var e=this;this.moving=!0,setTimeout(function(){e.moving=!1},500)},e.prototype.setDefaultState=function(){(0,c.pP)(this.$items[0]).remove("prev").add("active"),(0,c.pP)(this.$items[1]).remove("active").add("next"),(0,c.pP)(this.$dots[0]).add("active"),(0,c.pP)(this.$dots[1]).remove("active")},e}(),g=n(75535),m=n(83695),v=function(){var e=function(t,n){return(e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),y=function(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(l){var c=[a,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&c[0]?r.return:c[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,c[1])).done)return i;switch(r=0,i&&(c=[2&c[0],i.value]),c[0]){case 0:case 1:i=c;break;case 4:return s.label++,{value:c[1],done:!1};case 5:s.label++,r=c[1],c=[0];continue;case 7:c=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===c[0]||2===c[0])){s=0;continue}if(3===c[0]&&(!i||c[1]>i[0]&&c[1]<i[3])){s.label=c[1];break}if(6===c[0]&&s.label<i[1]){s.label=i[1],i=c;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(c);break}i[2]&&s.ops.pop(),s.trys.pop();continue}c=t.call(e,s)}catch(e){c=[6,e],r=0}finally{n=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}
20,w=h.tournament.components.Tournament,b={MAX_LANDSCAPE_HEIGHT:550,MAX_PORTRAIT_HEIGHT:750};new(function(e){function t(){var t=e.call(this)||this;return document.documentElement.style.setProperty("--game-height","".concat(Math.min(document.documentElement.clientHeight,b.MAX_PORTRAIT_HEIGHT)-160,"px")),document.documentElement.style.setProperty("--game-land-height","".concat(Math.min(document.documentElement.clientHeight,b.MAX_LANDSCAPE_HEIGHT),"px")),t}return v(t,e),t.prototype.beforeLoaded=function(){var t;e.prototype.beforeLoaded.call(this),(null==(t=null==window?void 0:window.eb)?void 0:t.settings)&&i.default.dispatch(o.bE.setSettings,window.eb.settings)},t.prototype.onLoaded=function(){var t,n,r,i;return t=this,n=void 0,r=void 0,i=function(){return y(this,function(t){switch(t.label){case 0:return[4,e.prototype.onLoaded.call(this)];case 1:return t.sent(),new s.w({selector:".lazy-image"}),window.useModules?(0,g.render)((0,g.h)(w,{translations:window.moduleTranslations||{},color:"blue",newBreakpoints:!0}),document.getElementById("tournament-page")):this.carouselHiw=new f,window.useLazyAds&&(d.P.emit(u.P
20s.loadAds),this.loadLocalAds()),window.PAGE_GPT_BANNERS&&m.L.init(window.PAGE_GPT_BANNERS,window.PAGE_GPT_REWARD,window.PAGE_GPT_INTER),[2]}})},new(r||(r=Promise))(function(e,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(t){var n;t.done?e(t.value):((n=t.value)instanceof r?n:new r(function(e){e(n)})).then(s,a)}l((i=i.apply(t,n||[])).next())})},t.prototype.loadLocalAds=function(){if(window.deviceType!==u.bq.desktop&&!window.useNativeIframe){if(window.usePrimisVideoAds){var e=window.useDynamicNativeAds?"122428":"122390",t=document.createElement("script");t.src="https://live.primis.tech/live/liveView.php?s=".concat(e,"&cbuster=%%CACHEBUSTER%%&playerApiId=primisNativeAd1"),t.type="text/javascript";var n=document.querySelector("#primis-container");n&&n.appendChild(t)}else if(window.useVidazooVideoAds){var r=document.createElement("script");r.src="//static.vidazoo.com/basev/vwpt.js",r.setAttribute("async",""),r.setAttribute("data-ot-ignore",""),r.setAttribute("data-widget-id",window.vidazooWidgetId),r.setAttribute("data-widget-position","vidazoo-container"),r.setAttribute("data-widget-created","onVidazooWidgetCreated"),document.body.appendChild(r)}}},t}(r.Y))},63461:(e,t,n)=>{"use strict";n.d(t,{Jm:()=>s,U8:()=>l,WE:()=>a,ZF:()=>r,qk:()=>o}),n(23792),n(34782),n(26099),n(27495),n(5746),n(42762),n(23500),n(62953),n(48408);var r="show_cheat_menu",i=function(){return new URLSearchParams(window.location.search)};function o(e){return i().get("qa_"+e)}function s(){var e=!1;return i().forEach(function(t,n){0===n.indexOf("qa_")&&(e=!0)}),e}function a(){return s()&&!!(window.eb&&window.eb.settings&&window.eb.settings[r])}function l(){var e,t;return e=o("args"),t={},e&&e.split(";").forEach(function(e){var n=e.indexOf(":"),r=(-1===n?e:e.slice(0,n)).trim();r&&(t[r]=-1===n?"":e.slice(n+1).trim())}),t}},34585:(e,t,n)=>{"use strict";n.d(t,{Kx:()=>h,LR:()=>m,MU:()=>g,NY:()=>b,PT:()=>c,Ps:()=>r,VS:()=>w,_O:()=>_,aj:()=>p,bq:()=>i,dX:()=>o,h1:()=>f,hA:()=>v,jc:()=>d,p1:()=>u,pf:()=>s,rv:()=>l,us:()=>y,wB:()=>a}),function(e){e.contentChanged="contentChanged",e.hideAllMenu="hideMenu",e.removeCookiesPadding="cookies:removePadding",e.changeCookiesPadding="cookies:changePadding",e.hideGameMessage="hideGameMessage",e.repaintGameBoard="repaintBoard",e.repaintPausedState="repaintPaused",e.animateCells="animateCells",e.startTimer="startTimer",e.stopTimer="stopTimer",e.processNewGame="processNewGame",e.showImaAds="showImaAds",e.currentGameInit="currentGameInit",e.mistakeAdded="mistakeAdded",e.showMistakesPopup="showMistakesPopup",e.showLostProgressPopup="showLostProgressPopup",e.hideL
20ostProgressPopup="hideLostProgressPopup",e.setActiveDifficulty="setActiveDifficulty",e.selectDifficulty="selectDifficulty",e.setActiveMode="setActiveMode",e.closeMistakesPopup="closeMistakesPopup",e.rewardReady="rewardReady",e.interRewardReady="interRewardReady",e.rewardGranted="rewardGranted",e.rewardDestroyed="rewardDestroyed",e.initBannerAds="initBannerAds",e.userAction="userAction",e.showSmartHint="showSmartHint",e.gameStarted="gameStarted",e.requestNewBanner="requestNewBanner",e.removeNewBanner="removeNewBanner",e.showWinScreenBanner="showWinScreenBanner",e.interLoaded="interLoaded",e.interDestroyed="interDestroyed",e.interImpression="interImpression",e.startScoreTimer="startScoreTimer",e.stopScoreTimer="stopScoreTimer",e.sendGameResult="sendGameResult",e.showAdditionalReward="showAdditionalReward",e.initCrocoBanner="initCrocoBanner",e.checkButtonDisabling="checkButtonDisabling",e.showPreactWin="showPreactWin",e.createWinBanner="createWinBanner",e.destroyWinBanner="destroyWinBanner",e.initServices="initServices",e.loadAds="loadAds",e.initConsent="initConsent",e.showTournamentBanner="showTournamentBanner",e.updateNewGameMenuButtons="updateNewGameMenuButtons",e.showPopup="showPopup",e.showNextPopup="showNextPopup",e.filterPopupQueue="filterPopupQueue",e.deactivatePopup="deactivatePopup",e.scoreAdded="scoreAdded",e.cellFilled="cellFilled",e.correctMoveMade="correctMoveMade",e.forceUpdateWinBanner="forceUpdateWinBanner",e.resetSessionCount="resetSessionCount",e.showSettingsPopup="showSettingsPopup",e.hideSettingsPopup="hideSettingsPopup",e.updateEmojiSetup="updateEmojiSetup",e.cmpLoaded="cmpLoaded",e.analyticsConsentChanged="analyticsConsentChanged",e.gameStartEvent="gameStartEvent",e.gameFinishEvent="gameFinishEvent",e.postcardsWinScreen="postcardsWinScreen",e.storybookWinScreen="storybookWinScreen",e.startMessagesDone="startMessagesDone",e.showStreakScreen="showStreakScreen",e.hideStreakScreen="hideStreakScreen",e.createStreakBanner="createStreakBanner"}(r||(r={})),function(e){e.desktop="desktop",e.phone="phone",e.tablet="tablet"}(i||(i={})),function(e){e.classic="classic",e.killer="killer",e.daily="daily",e.croco="croco",e.postcards="postcards",e.storybook="storybook"}(o||(o={})),(s||(s={})).dc="dc-calendar",function(e){e.imaAds="ima_ads",e.imaAdsDelay="ima_ads_delay",e.imaAdsOnStart="ima_ads_on_start",e.imaAdsOnRestart="ima_ads_on_restart",e.imaAdsTest="ima_ads_test_tag",e.showCheatMenu="show_cheat_menu",e.saveHistory="save_history_actions",e.countHints="count_hints",e.countMistakes="count_mistakes"}(a||(a={}));var r,i,o,s,a,l,c,u,d,h,p,f,g,m,v,y=["easy","medium","hard","expert","evil","extreme"],w={classic:"main",killer:"main",event:"liveops",storybook:"sb",croco:"event"};!function(e){e.strictlyNecessary="C0001",e.performance="C0002",e.functional="C0003",e.targeting="C0004",e.social="C0005"}(l||(l={})),function(e){e.Required="required",e.Email="email",e.MinLength="minLength",e.MaxLength="maxLength",e.IncorrectFormat="incorrectFormat",e.MaxFileSize="maxFileSize"}(c||(c={})),function(e){e.google="AdManager",e.rise="Rise",e.vidazoo="Vidazoo",e.freestar="Freestar",e.anyclip="Anyclip",e.primis="Primis"}(u||(u={})),function(e){e.LastFreeCell="LastFreeCell",e.LastRemainingCell="LastRemainingCell",e.LastPossibleNumber="LastPossibleNumber",e.Notes="Notes",e.IncorrectNumber="IncorrectNumber",e.FreeCell="FreeCell",e.ObviousSingles="ObviousSingles",e.ObviousPairs="ObviousPairs",e.ObviousTriples="ObviousTriples",e.HiddenSingles="HiddenSingles",e.HiddenPairs="HiddenPairs",e.PointingPairs="PointingPairs"}(d||(d={})),function(e){e.game_win="game_win",e.game_start="game_start",e.game_restart="game_restart",e.game_over_restart="game_over_restart"}(h||(h={})),function(e){e.rewarded_mistakes="rewarded_mistakes",e.rewarded_add_hint="rewarded_add_hint",e.solver="solver"}(p||(p={})),function(e){e.portrait="portrait",e.landscape="landscape"}(f||(f={}));var b={easy:"easy",medium:"medium",hard:"hard",expert:"expert",evil:"master",extreme:"extreme"},_=["easy","medium","hard","expert","evil","extreme"];!function(e){e.open="open",e.in_progress="in_progress",e.blocked="blocked"}(g||(g={})),function(e){e.basic="b",e.special="s"}(m||(m={})),function(e){e.level_medium="lm",e.score_medium="sm",e.score_hard="sh"}(v||(v={}))},19021:function(e,t,n){var r;e.exports=r||function(e,t){if("undefined"!=typeof window&&window.crypto&&(r=window.crypto),"undefined"!=typeof self&&self.crypto&&(r=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(r=globalThis.crypto),!r&&"undefined"!=typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&void 0!==n.g&&n.g.crypto&&(r=n.g.crypto),!r)try{r=n(50477)}catch(e){}var r,i=function(){if(r){if("function"==typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(e){}}throw Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),s={},a=s.lib={},l=a.Base={extend:function(e){var t=o(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.a
20pply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},c=a.WordArray=l.extend({init:function(e,n){e=this.words=e||[],t!=n?this.sigBytes=n:this.sigBytes=4*e.length},toString:function(e){return(e||d).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var o=0;o<i;o++){var s=n[o>>>2]>>>24-o%4*8&255;t[r+o>>>2]|=s<<24-(r+o)%4*8}else for(var a=0;a<i;a+=4)t[r+a>>>2]=n[a>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=0xffffffff<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=l.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n<e;n+=4)t.push(i());return new c.init(t,e)}}),u=s.enc={},d=u.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new c.init(n,t/2)}},h=u.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new c.init(n,t)}},p=u.Utf8={stringify:function(e){try{return decodeURIComponent(escape(h.stringify(e)))}catch(e){throw Error("Malformed UTF-8 data")}},parse:function(e){return h.parse(unescape(encodeURIComponent(e)))}},f=a.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=p.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,r=this._data,i=r.words,o=r.sigBytes,s=this.blockSize,a=o/(4*s),l=(a=t?e.ceil(a):e.max((0|a)-this._minBufferSize,0))*s,u=e.min(4*l,o);if(l){for(var d=0;d<l;d+=s)this._doProcessBlock(i,d);n=i.splice(0,l),r.sigBytes-=u}return new c.init(n,u)},clone:function(){var e=l.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});a.Hasher=f.extend({cfg:l.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new g.HMAC.init(e,n).finalize(t)}}});var g=s.algo={};return s}(Math)},69956:function(e,t,n){e.exports=n(19021).enc.Hex},63009:function(e,t,n){var r;r=n(19021),function(e){var t=r.lib,n=t.WordArray,i=t.Hasher,o=r.algo,s=[],a=[];function l(e){return(e-(0|e))*0x100000000|0}for(var c=2,u=0;u<64;)(function(t){for(var n=e.sqrt(t),r=2;r<=n;r++)if(!(t%r))return!1;return!0})(c)&&(u<8&&(s[u]=l(e.pow(c,.5))),a[u]=l(e.pow(c,1/3)),u++),c++;var d=[],h=o.SHA256=i.extend({_doReset:function(){this._hash=new n.init(s.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],s=n[3],l=n[4],c=n[5],u=n[6],h=n[7],p=0;p<64;p++){if(p<16)d[p]=0|e[t+p];else{var f=d[p-15],g=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,m=d[p-2],v=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;d[p]=g+d[p-7]+v+d[p-16]}var y=l&c^~l&u,w=r&i^r&o^i&o,b=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),_=h+((l<<26|l>>>6)^(l<<21|l>>>11)^(l<<7|l>>>25))+y+a[p]+d[p],S=b+w;h=u,u=c,c=l,l=s+_|0,s=o,o=i,i=r,r=_+S|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+s|0,n[4]=n[4]+l|0,n[5]=n[5]+c|0,n[6]=n[6]+u|0,n[7]=n[7]+h|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;return n[i>>>5]|=128<<24-i%32,n[(i+64>>>9<<4)+14]=e.floor(r/0x100000000),n[(i+64>>>9<<4)+15]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});r.SHA256=i._createHelper(h),r.HmacSHA256=i._createHmacHelper(h)}(Math),e.exports=r.SHA256},91070:(e,t,n)=>{var r=n(75535),i=n(86286);function o(e,t){for(var n in t)e[n]=t[n];return e}function s(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function a(e,t){this.props=e,this.context=t}function l(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:s(this.props,e)}function i(t){return this.shouldComponentUpdate=n,r.createElement(e,t)}return i.displayName="Memo("+(e.displayName||e.name)+")",i.prototype.isReactComponent=!0,i.__f=!0,i}(a.prototype=new r.Component).isPureReactComponent=!0,a.prototype.shouldComponentUpdate=function(e,t){return s(this.props,e)||s(this.state,t)};var c=r.options.__b;r.options.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),c&&c(e)};var u="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function d(e){function t(t){var n=o({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=u,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var h=function(e,t){return null==e?null:r.toChildArray(r.toChildArray(e).map(t))}
20,p={map:h,forEach:h,count:function(e){return e?r.toChildArray(e).length:0},only:function(e){var t=r.toChildArray(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:r.toChildArray},f=r.options.__e;r.options.__e=function(e,t,n,r){if(e.then){for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t)}f(e,t,n,r)};var g=r.options.unmount;function m(){this.__u=0,this.t=null,this.__b=null}function v(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function y(e){var t,n,i;function o(o){if(t||(t=e()).then(function(e){n=e.default||e},function(e){i=e}),i)throw i;if(!n)throw t;return r.createElement(n,o)}return o.displayName="Lazy",o.__f=!0,o}function w(){this.u=null,this.o=null}r.options.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),g&&g(e)},(m.prototype=new r.Component).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var i=v(r.__v),o=!1,s=function(){o||(o=!0,n.__R=null,i?i(a):a())};n.__R=s;var a=function(){if(!--r.__u){if(r.state.__a){var e,t=r.state.__a;r.__v.__k[0]=function e(t,n,r){return t&&r&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(t){return e(t,n,r)}),t.__c&&t.__c.__P===n&&(t.__e&&r.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=r)),t}(t,t.__c.__P,t.__c.__O)}for(r.setState({__a:r.__b=null});e=r.t.pop();)e.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},m.prototype.componentWillUnmount=function(){this.t=[]},m.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),i=this.__v.__k[0].__c;this.__v.__k[0]=function e(t,n,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(e){"function"==typeof e.__c&&e.__c()}),t.__c.__H=null),null!=(t=o({},t)).__c&&(t.__c.__P===r&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map(function(t){return e(t,n,r)})),t}
20(this.__b,n,i.__O=i.__P)}this.__b=null}var s=t.__a&&r.createElement(r.Fragment,null,e.fallback);return s&&(s.__u&=-33),[r.createElement(r.Fragment,null,t.__a?null:e.children),s]};var b=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function _(e){return this.getChildContext=function(){return e.context},e.children}function S(e){var t=this,n=e.i;t.componentWillUnmount=function(){r.render(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),r.render(r.createElement(_,{context:t.context},e.__v),t.l)}function x(e,t){var n=r.createElement(S,{__v:e,i:t});return n.containerInfo=t,n}(w.prototype=new r.Component).__a=function(e){var t=this,n=v(t.__v),r=t.o.get(e);return r[0]++,function(i){var o=function(){t.props.revealOrder?(r.push(i),b(t,e,r)):i()};n?n(o):o()}},w.prototype.render=function(e){this.u=null,this.o=new Map;var t=r.toChildArray(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},w.prototype.componentDidUpdate=w.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){b(e,n,t)})};var k="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,E=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,C=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,P=/[A-Z0-9]/g,T="undefined"!=typeof document;function L(e,t,n){return null==t.__k&&(t.textContent=""),r.render(e,t),"function"==typeof n&&n(),e?e.__c:null}function I(e,t,n){return r.hydrate(e,t),"function"==typeof n&&n(),e?e.__c:null}r.Component.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(r.Component.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var O=r.options.event;function A(){}function M(){return this.cancelBubble}function N(){return this.defaultPrevented}r.options.event=function(e){return O&&(e=O(e)),e.persist=A,e.isPropagationStopped=M,e.isDefaultPrevented=N,e.nativeEvent=e};var D,R={enumerable:!1,configurable:!0,get:function(){return this.class}},B=r.options.vnode;r.options.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,i={};for(var o in t){var s=t[o];if(!("value"===o&&"defaultValue"in t&&null==s||T&&"children"===o&&"noscript"===n||"class"===o||"className"===o)){var a,l=o.toLowerCase();"defaultValue"===o&&"value"in t&&null==t.value?o="value":"download"===o&&!0===s?s="":"translate"===l&&"no"===s?s=!1:"ondoubleclick"===l?o="ondblclick":"onchange"!==l||"input"!==n&&"textarea"!==n||(a=t.type,("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(a))?"onfocus"===l?o="onfocusin":"onblur"===l?o="onfocusout":C.test(o)?o=l:-1===n.indexOf("-")&&E.test(o)?o=o.replace(P,"-$&").toLowerCase():null===s&&(s=void 0):l=o="oninput","oninput"===l&&i[o=l]&&(o="oninputCapture"),i[o]=s}}"select"==n&&i.multiple&&Array.isArray(i.value)&&(i.value=r.toChildArray(t.children).forEach(function(e){e.props.selected=-1!=i.value.indexOf(e.props.value)})),"select"==n&&null!=i.defaultValue&&(i.value=r.toChildArray(t.children).forEach(function(e){e.props.selected=i.multiple?-1!=i.defaultValue.indexOf(e.props.value):i.defaultValue==e.props.value})),t.class&&!t.className?(i.class=t.class,Object.defineProperty(i,"className",R)):(t.className&&!t.class||t.class&&t.className)&&(i.class=i.className=t.className),e.props=i}(e),e.$$typeof=k,B&&B(e)};var F=r.options.__r;r.options.__r=function(e){F&&F(e),D=e.__c};var $=r.options.diffed;r.options.diffed=function(e){$&&$(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value),D=null};var j={ReactCurrentDispatcher:{current:{readContext:function(e){return D.__n[e.__c].props.value},useCallback:i.useCallback,useContext:i.useContext,useDebugValue:i.useDebugValue,useDeferredValue:Z,useEffect:i.useEffect,useId:i.useId,useImperativeHandle:i.useImperativeHandle,useInsertionEffect:ee,useLayoutEffect:i.useLayoutEffect,useMemo:i.useMemo,useReducer:i.useReducer,useRef:i.useRef,useState:i.useState,useSyncExternalStore:et,useTransition:Q}}};function H(e){return r.createElement.bind(null,e)}function z(e){return!!e&&e.$$typeof===k}function G(e){return z(e)&&e.type===r.Fragment}function q(e){return!!e&&!!e.displayName&&("string"==typeof e.displayName||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function U(e){return z(e)?r.cloneElement.apply(null,arguments):e}function W(e){return!!e.__k&&(r.render(null,e),!0)}function V(e){return e&&(e.base||1===e.nodeType&&e)||null}var Y=function(e,t){return e(t)},X=function(e,t){return e(t)},K=r.Fragment;function J(e){e()}function Z(e){return e}function Q(){return[!1,J]}var ee=i.useLayoutEffect;function et(e,t){var n=t(),r=i.useState({p:{__:n,h:t}}),o=r[0].p,s=r[1];return i.useLayoutEffect(function(){o.__=n,o.h=t,en(o)&&s({p:o})},[e,n,t]),i.useEffect(function(){return en(o)&&s({p:o}),e(function(){en(o)&&s({p:o})})},[e]),n}function en(e){var t=e.h,n=e.__;try{var r=t();return(n!==r||0===n&&1/n!=1/r)&&(n==n||r==r)}catch(e){return!0}}var er={useState:i.useState,useId:i.useId,useReducer:i.useReducer,useEffect:i.useEffect,useLayoutEffect:i.useLayoutEffect,useInsertionEffect:ee,useTransition:Q,useDeferredValue:Z,useSyncExternalStore:et,startTransition:J,useRef:i.useRef,useImperativeHandle:i.useImperativeHandle,useMemo:i.useMemo,useCallback:i.useCallback,useContext:i.useContext,useDebugValue:i.useDebugValue,version:"17.0.2",Children:p,render:L,hydrate:I,unmountComponentAtNode:W,createPortal:x,createElement:r.createElement,createContext:r.createContext,createFactory:H,cloneElement:U,createRef:r.createRef,Fragment:r.Fragment,isValidElement:z,isElement:z,isFragment:G,isMemo:q,findDOMNode:V,Component:r.Component,PureComponent:a,memo:l,forwardRef:d,flushSync:X,unstable_batchedUpdates:Y,StrictMode:K,Suspense:m,SuspenseList:w,lazy:y,__SECRET_INT
20ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:j};Object.defineProperty(t,"Component",{enumerable:!0,get:function(){return r.Component}}),Object.defineProperty(t,"Fragment",{enumerable:!0,get:function(){return r.Fragment}}),Object.defineProperty(t,"createContext",{enumerable:!0,get:function(){return r.createContext}}),Object.defineProperty(t,"createElement",{enumerable:!0,get:function(){return r.createElement}}),Object.defineProperty(t,"createRef",{enumerable:!0,get:function(){return r.createRef}}),t.Children=p,t.PureComponent=a,t.StrictMode=K,t.Suspense=m,t.SuspenseList=w,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=j,t.cloneElement=U,t.createFactory=H,t.createPortal=x,t.default=er,t.findDOMNode=V,t.flushSync=X,t.forwardRef=d,t.hydrate=I,t.isElement=z,t.isFragment=G,t.isMemo=q,t.isValidElement=z,t.lazy=y,t.memo=l,t.render=L,t.startTransition=J,t.unmountComponentAtNode=W,t.unstable_batchedUpdates=Y,t.useDeferredValue=Z,t.useInsertionEffect=ee,t.useSyncExternalStore=et,t.useTransition=Q,t.version="17.0.2",Object.keys(i).forEac
20h(function(e){"default"===e||t.hasOwnProperty(e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}})})},75535:(e,t)=>{var n,r,i,o,s,a,l,c,u,d,h,p={},f=[],g=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,m=Array.isArray;function v(e,t){for(var n in t)e[n]=t[n];return e}function y(e){var t=e.parentNode;t&&t.removeChild(e)}function w(e,t,r){var i,o,s,a={};for(s in t)"key"==s?i=t[s]:"ref"==s?o=t[s]:a[s]=t[s];if(arguments.length>2&&(a.children=arguments.length>3?n.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(s in e.defaultProps)void 0===a[s]&&(a[s]=e.defaultProps[s]);return b(e,a,i,o,null)}function b(e,t,n,o,s){var a={type:e,props:t,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==s?++i:s,__i:-1,__u:0};return null==s&&null!=r.vnode&&r.vnode(a),a}function _(e){return e.children}function S(e,t){this.props=e,this.context=t}function x(e,t){if(null==t)return e.__?x(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?x(e):null}function k(e){(!e.__d&&(e.__d=!0)&&o.push(e)&&!E.__r++||s!==r.debounceRendering)&&((s=r.debounceRendering)||a)(E)}function E(){var e,t,n,i,s,a,c,u;for(o.sort(l);e=o.shift();)e.__d&&(t=o.length,i=void 0,a=(s=(n=e).__v).__e,c=[],u=[],n.__P&&((i=v({},s)).__v=s.__v+1,r.vnode&&r.vnode(i),I(n.__P,i,s,n.__n,n.__P.namespaceURI,32&s.__u?[a]:null,c,null==a?x(s):a,!!(32&s.__u),u),i.__v=s.__v,i.__.__k[i.__i]=i,O(c,i,u),i.__e!=a&&function e(t){var n,r;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,n=0;n<t.__k.length;n++)if(null!=(r=t.__k[n])&&null!=r.__e){t.__e=t.__c.base=r.__e;break}return e(t)}}(i)),o.length>t&&o.sort(l));E.__r=0}function C(e,t,n,r,i,o,s,a,l,c,u){var d,h,g,v,y,w=r&&r.__k||f,S=t.length;for(n.__d=l,function(e,t,n){var r,i,o,s,a,l=t.length,c=n.length,u=c,d=0;for(e.__k=[],r=0;r<l;r++)s=r+d,null!=(i=e.__k[r]=null==(i=t[r])||"boolean"==typeof i||"function"==typeof i?null:"string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?b(null,i,null,null,null):m(i)?b(_,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?b(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)?(i.__=e,i.__b=e.__b+1,a=function(e,t,n,r){var i=e.key,o=e.type,s=n-1,a=n+1,l=t[n];if(null===l||l&&i==l.key&&o===l.type&&0==(131072&l.__u))return n;if(r>+(null!=l&&0==(131072&l.__u)))for(;s>=0||a<t.length;){if(s>=0){if((l=t[s])&&0==(131072&l.__u)&&i==l.key&&o===l.type)return s;s--}if(a<t.length){if((l=t[a])&&0==(131072&l.__u)&&i==l.key&&o===l.type)return a;a++}}return -1}(i,n,s,u),i.__i=a,o=null,-1!==a&&(u--,(o=n[a])&&(o.__u|=131072)),null==o||null===o.__v?(-1==a&&d--,"function"!=typeof i.type&&(i.__u|=65536)):a!==s&&(a==s-1?d=a-s:a==s+1?d++:a>s?u>l-s?d+=a-s:d--:a<s&&d++,a!==r+d&&(i.__u|=65536))):(o=n[s])&&null==o.key&&o.__e&&0==(131072&o.__u)&&(o.__e==e.__d&&(e.__d=x(o)),M(o,o,!1),n[s]=null,u--);if(u)for(r=0;r<c;r++)null!=(o=n[r])&&0==(131072&o.__u)&&(o.__e==e.__d&&(e.__d=x(o)),M(o,o))}(n,t,w),l=n.__d,d=0;d<S;d++)null!=(g=n.__k[d])&&"boolean"!=typeof g&&"function"!=typeof g&&(h=-1===g.__i?p:w[g.__i]||p,g.__i=d,I(e,g,h,i,o,s,a,l,c,u),v=g.__e,g.ref&&h.ref!=g.ref&&(h.ref&&A(h.ref,null,g),u.push(g.ref,g.__c||v,g)),null==y&&null!=v&&(y=v),65536&g.__u||h.__k===g.__k?l=function e(t,n,r){var i,o;if("function"==typeof t.type){for(i=t.__k,o=0;i&&o<i.length;o++)i[o]&&(i[o].__=t,n=e(i[o],n,r));return n}t.__e!=n&&(n&&t.type&&!r.contains(n)&&(n=x(t)),r.insertBefore(t.__e,n||null),n=t.__e);do n=n&&n.nextSibling;while(null!=n&&8===n.nodeType)return n}(g,l,e):"function"==typeof g.type&&void 0!==g.__d?l=g.__d:v&&(l=v.nextSibling),g.__d=void 0,g.__u&=-196609);n.__d=l,n.__e=y}function P(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||g.test(t)?n:n+"px"}function T(e,t,n,r,i){var o;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||P(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||P(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])o=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||"onFocusOut"===t||"onFocusIn"===t?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r?n.t=r.t:(n.t=c,e.addEventListener(t,o?d:u,o)):e.removeEventListener(t,o?d:u,o);else{if("http://www.w3.org/2000/svg"==i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function L(e){return function(t){if(this.l){var n=this.l[t.type+e];if(null==t.u)t.u=c++;else if(t.u<n.t)return;
vendor: 5,431 bytes, line 20
20return n(r.event?r.event(t):t)}}}function I(e,t,i,o,s,a,l,c,u,d){var h,f,g,w,b,k,E,P,L,I,O,A,M,D,R,B,F=t.type;if(void 0!==t.constructor)return null;128&i.__u&&(u=!!(32&i.__u),a=[c=t.__e=i.__e]),(h=r.__b)&&h(t);e:if("function"==typeof F)try{if(P=t.props,L="prototype"in F&&F.prototype.render,I=(h=F.contextType)&&o[h.__c],O=h?I?I.props.value:h.__:o,i.__c?E=(f=t.__c=i.__c).__=f.__E:(L?t.__c=f=new F(P,O):(t.__c=f=new S(P,O),f.constructor=F,f.render=N),I&&I.sub(f),f.props=P,f.state||(f.state={}),f.context=O,f.__n=o,g=f.__d=!0,f.__h=[],f._sb=[]),L&&null==f.__s&&(f.__s=f.state),L&&null!=F.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=v({},f.__s)),v(f.__s,F.getDerivedStateFromProps(P,f.__s))),w=f.props,b=f.state,f.__v=t,g)L&&null==F.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),L&&null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(L&&null==F.getDerivedStateFromProps&&P!==w&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(P,O),!f.__e&&(null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(P,f.__s,O)||t.__v===i.__v)){for(t.__v!==i.__v&&(f.props=P,f.state=f.__s,f.__d=!1),t.__e=i.__e,t.__k=i.__k,t.__k.forEach(function(e){e&&(e.__=t)}),A=0;A<f._sb.length;A++)f.__h.push(f._sb[A]);f._sb=[],f.__h.length&&l.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(P,f.__s,O),L&&null!=f.componentDidUpdate&&f.__h.push(function(){f.componentDidUpdate(w,b,k)})}if(f.context=O,f.props=P,f.__P=e,f.__e=!1,M=r.__r,D=0,L){for(f.state=f.__s,f.__d=!1,M&&M(t),h=f.render(f.props,f.state,f.context),R=0;R<f._sb.length;R++)f.__h.push(f._sb[R]);f._sb=[]}else do f.__d=!1,M&&M(t),h=f.render(f.props,f.state,f.context),f.state=f.__s;while(f.__d&&++D<25)f.state=f.__s,null!=f.getChildContext&&(o=v(v({},o),f.getChildContext())),L&&!g&&null!=f.getSnapshotBeforeUpdate&&(k=f.getSnapshotBeforeUpdate(w,b)),C(e,m(B=null!=h&&h.type===_&&null==h.key?h.props.children:h)?B:[B],t,i,o,s,a,l,c,u,d),f.base=t.__e,t.__u&=-161,f.__h.length&&l.push(f),E&&(f.__E=f.__=null)}catch(e){if(t.__v=null,u||null!=a){for(t.__u|=u?160:32;c&&8===c.nodeType&&c.nextSibling;)c=c.nextSibling;a[a.indexOf(c)]=null,t.__e=c}else t.__e=i.__e,t.__k=i.__k;r.__e(e,t,i)}else null==a&&t.__v===i.__v?(t.__k=i.__k,t.__e=i.__e):t.__e=function(e,t,r,i,o,s,a,l,c){var u,d,h,f,g,v,w,b=r.props,_=t.props,S=t.type;if("svg"===S?o="http://www.w3.org/2000/svg":"math"===S?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),null!=s){for(u=0;u<s.length;u++)if((g=s[u])&&"setAttribute"in g==!!S&&(S?g.localName===S:3===g.nodeType)){e=g,s[u]=null;break}}if(null==e){if(null===S)return document.createTextNode(_);e=document.createElementNS(o,S,_.is&&_),s=null,l=!1}if(null===S)b===_||l&&e.data===_||(e.data=_);else{if(s=s&&n.call(e.childNodes),b=r.props||p,!l&&null!=s)for(b={},u=0;u<e.attributes.length;u++)b[(g=e.attributes[u]).name]=g.value;for(u in b)if(g=b[u],"children"==u);else if("dangerouslySetInnerHTML"==u)h=g;else if("key"!==u&&!(u in _)){if("value"==u&&"defaultValue"in _||"checked"==u&&"defaultChecked"in _)continue;T(e,u,null,g,o)}for(u in _)g=_[u],"children"==u?f=g:"dangerouslySetInnerHTML"==u?d=g:"value"==u?v=g:"checked"==u?w=g:"key"===u||l&&"function"!=typeof g||b[u]===g||T(e,u,g,b[u],o);if(d)l||h&&(d.__html===h.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(h&&(e.innerHTML=""),C(e,m(f)?f:[f],t,r,i,"foreignObject"===S?"http://www.w3.org/1999/xhtml":o,s,a,s?s[0]:r.__k&&x(r,0),l,c),null!=s)for(u=s.length;u--;)null!=s[u]&&y(s[u]);l||(u="value",void 0===v||v===e[u]&&("progress"!==S||v)&&("option"!==S||v===b[u])||T(e,u,v,b[u],o),u="checked",void 0!==w&&w!==e[u]&&T(e,u,w,b[u],o))}return e}(i.__e,t,i,o,s,a,l,u,d);(h=r.diffed)&&h(t)}function O(e,t,n){t.__d=void 0;for(var i=0;i<n.length;i++)A(n[i],n[++i],n[++i]);r.__c&&r.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){r.__e(e,t.__v)}})}function A(e,t,n){try{if("function"==typeof e){var i="function"==typeof e.__u;i&&e.__u(),i&&null==t||(e.__u=e(t))}else e.current=t}catch(e){r.__e(e,n)}}function M(e,t,n){var i,o;if(r.unmount&&r.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||A(i,null,t)),null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){r.__e(e,t)}i.base=i.__P=null}if(i=e.__k)for(o=0;o<i.length;o++)i[o]&&M(i[o],t,n||"function"!=typeof e.type);n||null==e.__e||y(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function N(e,t,n){return this.constructor(e,n)}function D(e,t,i){var o,s,a,l;r.__&&r.__(e,t),s=(o="function"==typeof i)?null:i&&i.__k||t.__k,a=[],l=[],I(t,e=(!o&&i||t).__k=w(_,null,[e]),s||p,p,t.namespaceURI,!o&&i?[i]:s?null:t.firstChild?n.call(t.childNodes):null,a,!o&&i?i:s?s.__e:t.firstChild,o,l),O(a,e,l)}n=f.slice,r={__e:function(e,t,n,r){for(var i,o,s;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(e)),s=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,r||{}),s=i.__d),s)return i.__E=i}catch(t){e=t}throw e}},i=0,S.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=v({},this.state),"function"==typeof e&&(e=e(v({},n),this.props)),e&&v(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),k(this))},S.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),k(this))},S.prototype.render=_,o=[],a="function"==typeof Promise?Promise.prototype.then.bind(Prom
20ise.resolve()):setTimeout,l=function(e,t){return e.__v.__b-t.__v.__b},E.__r=0,c=0,u=L(!1),d=L(!0),h=0,t.Component=S,t.Fragment=_,t.cloneElement=function(e,t,r){var i,o,s,a,l=v({},e.props);for(s in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)"key"==s?i=t[s]:"ref"==s?o=t[s]:l[s]=void 0===t[s]&&void 0!==a?a[s]:t[s];return arguments.length>2&&(l.children=arguments.length>3?n.call(arguments,2):r),b(e.type,l,i||e.key,o||e.ref,null)},t.createContext=function(e,t){var n={__c:t="__cC"+h++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(function(e){e.__e=!0,k(e)})},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n},t.createElement=w,t.createRef=function(){return{current:null}},t.h=w,t.hydrate=function e(t,n){D(t,n,e)},t.isValidElement=function(e){return null!=e&&null==e.constructor},t.options=r,t.render=D,t.toChildArray=function e(t,n){return n=n||[],null==t||"boolean"==typeof t||(m(t)?t.some(function(t){e(t,n)}):n.push(t)),n}},86286:(e,t,n)=>{var r,i,o,s,a=n(75535),l=0,c=[],u=a.options,d=u.__b,h=u.__r,p=u.diffed,f=u.__c,g=u.unmount,m=u.__;function v(e,t){u.__h&&u.__h(i,e,l||t),l=0;var n=i.__H||(i.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function y(e){return l=1,w(P,e)}function w(e,t,n){var o=v(r++,2);if(o.t=e,!o.__c&&(o.__=[n?n(t):P(void 0,t),function(e){var t=o.__N?o.__N[0]:o.__[0],n=o.t(t,e);t!==n&&(o.__N=[n,o.__[1]],o.__c.setState({}))}],o.__c=i,!i.u)){var s=function(e,t,n){if(!o.__c.__H)return!0;var r=o.__c.__H.__.filter(function(e){return!!e.__c});if(r.every(function(e){return!e.__N}))return!a||a.call(this,e,t,n);var i=!1;return r.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(i=!0)}}),!(!i&&o.__c.props===e)&&(!a||a.call(this,e,t,n))};i.u=!0;var a=i.shouldComponentUpdate,l=i.componentWillUpdate;i.componentWillUpdate=function(e,t,n){if(this.__e){var r=a;a=void 0,s(e,t,n),a=r}l&&l.call(this,e,t,n)},i.shouldComponentUpdate=s}return o.__N||o.__}function b(e,t){var n=v(r++,4);!u.__s&&C(n.__H,t)&&(n.__=e,n.o=t,i.__h.push(n))}function _(e,t){var n=v(r++,7);return C(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function S(){for(var e;e=c.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(k),e.__H.__h.forEach(E),e.__H.__h=[]}catch(t){e.__H.__h=[],u.__e(t,e.__v)}}u.__b=function(e){i=null,d&&d(e)},u.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),m&&m(e,t)},u.__r=function(e){h&&h(e),r=0;var t=(i=e.__c).__H;t&&(o===i?(t.__h=[],i.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.o=e.__N=void 0})):(t.__h.forEach(k),t.__h.forEach(E),t.__h=[],r=0)),o=i},u.diffed=function(e){p&&p(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==c.push(t)&&s===u.requestAnimationFrame||((s=u.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),x&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);x&&(t=requestAnimationFrame(n))})(S)),t.__H.__.forEach(function(e){e.o&&(e.__H=e.o),e.o=void 0})),o=i=null},u.__c=function(e,t){t.some(function(e){try{e.__h.forEach(k),e.__h=e.__h.filter(function(e){return!e.__||E(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],u.__e(n,e.__v)}}),f&&f(e,t)},u.unmount=function(e){g&&g(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{k(e)}catch(e){t=e}}),n.__H=void 0,t&&u.__e(t,n.__v))};var x="function"==typeof requestAnimationFrame;function k(e){var t=i,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),i=t}function E(e){var t=i;e.__c=e.__(),i=t}function C(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function P(e,t){return"function"==typeof t?t(e):t}t.useCallback=function(e,t){return l=8,_(function(){return e},t)},t.useContext=function(e){var t=i.context[e.__c],n=v(r++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(i)),t.props.value):e.__},t.useDebugValue=function(e,t){u.useDebugValue&&u.useDebugValue(t?t(e):e)},t.useEffect=function(e,t){var n=v(r++,3);!u.__s&&C(n.__H,t)&&(n.__=e,n.o=t,i.__H.__h.push(n))},t.useErrorBoundary=function(e){var t=v(r++,10),n=y();return t.__=e,i.componentDidCatch||(i.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]},t.useId=function(){var e=v(r++,11);if(!e.__){for(var t=i.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__},t.useImperativeHandle=function(e,t,n){l=6,b(function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},null==n?n:n.concat(e))},t.useLayoutEffect=b,t.useMemo=_,t.useReducer=w,t.useRef=function(e){return l=5,_(function(){return{current:e}},[])},t.useState=y},7452:e=>{var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";
20function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,n,r,o){var s,a,l,c,u=Object.create((n&&n.prototype instanceof m?n:m).prototype);return i(u,"_invoke",{value:(s=e,a=r,l=new P(o||[]),c=h,function(e,n){if(c===p)throw Error("Generator is already running");if(c===f){if("throw"===e)throw n;return{value:t,done:!0}}for(l.method=e,l.arg=n;;){var r=l.delegate;if(r){var i=function e(n,r){var i=r.method,o=n.iterator[i];if(t===o)return(r.delegate=null,"throw"===i&&n.iterator.return&&(r.method="return",r.arg=t,e(n,r),"throw"===r.method))?g:("return"!==i&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+i+"' method")),g);var s=d(o,n.iterator,r.arg);if("throw"===s.type)return r.method="throw",r.arg=s.arg,r.delegate=null,g;var a=s.arg;return a?a.done?(r[n.resultName]=a.value,r.next=n.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,g)}(r,l);if(i){if(i===g)continue;return i}}if("next"===l.method)l.sent=l._sent=l.arg;else if("throw"===l.method){if(c===h)throw c=f,l.arg;l.dispatchException(l.arg)}else"return"===l.method&&l.abrupt("return",l.arg);c=p;var o=d(s,a,l);if("normal"===o.type){if(c=l.done?f:"suspendedYield",o.arg===g)continue;return{value:o.arg,done:l.done}}"throw"===o.type&&(c=f,l.method="throw",l.arg=o.arg)}})}),u}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var h="suspendedStart",p="executing",f="completed",g={};function m(){}function v(){}function y(){}var w={};c(w,s,function(){return this});var b=Object.getPrototypeOf,_=b&&b(b(T([])));_&&_!==n&&r.call(_,s)&&(w=_);var S=y.prototype=m.prototype=Object.create(w);function x(e){["next","throw","return"].forEach(function(t){c(e,t,function(e){return this._invoke(t,e)})})}function k(e,t){var n;i(this,"_invoke",{value:function(i,o){function s(){return new t(function(n,s){!function n(i,o,s,a){var l=d(e[i],e,o);if("throw"===l.type)a(l.arg);else{var c=l.arg,u=c.value;return u&&"object"==typeof u&&r.call(u,"__await")?t.resolve(u.__await).then(function(e){n("next",e,s,a)},function(e){n("throw",e,s,a)}):t.resolve(u).then(function(e){c.value=e,s(c)},function(e){return n("throw",e,s,a)})}}(i,o,n,s)})}return n=n?n.then(s,s):s()}})}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function T(e){if(null!=e){var n=e[s];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw TypeError(typeof e+" is not iterable")}return v.prototype=y,i(S,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:v,configurable:!0}),v.displayName=c(y,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,l,"GeneratorFunction")),e.prototype=Object.create(S),e},e.awrap=function(e){return{__await:e}},x(k.prototype),c(k.prototype,a,function(){return this}),e.AsyncIterator=k,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var s=new k(u(t,n,r,i),o);return e.isGeneratorFunction(n)?s:s.next().then(function(e){return e.done?e.value:s.next()})},x(S),c(S,l,"Generator"),c(S,s,function(){return this}),c(S,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=T,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEac
20h(C),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return a.type="throw",a.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var s=this.tryEntries[o],a=s.completion;if("root"===s.tryLoc)return i("end");if(s.tryLoc<=this.prev){var l=r.call(s,"catchLoc"),c=r.call(s,"finallyLoc");if(l&&c){if(this.prev<s.catchLoc)return i(s.catchLoc,!0);else if(this.prev<s.finallyLoc)return i(s.finallyLoc)}else if(l){if(this.prev<s.catchLoc)return i(s.catchLoc,!0)}else if(c){if(this.prev<s.finallyLoc)return i(s.finallyLoc)}else throw Error("try statement without catch or finally")}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return(s.type=e,s.arg=t,o)?(this.method="next",this.next=o.finallyLoc,g):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;C(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:T(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},77232:function(e,t,n){var r;!function(i,o){"use strict";var s="function",a="undefined",l="object",c="string",u="major",d="model",h="name",p="type",f="vendor",g="version",m="architecture",v="console",y="mobile",w="tablet",b="smarttv",_="wearable",S="embedded",x="Amazon",k="Apple",E="ASUS",C="BlackBerry",P="Browser",T="Chrome",L="Firefox",I="Google",O="Huawei",A="Microsoft",M="Motorola",N="Opera",D="Samsung",R="Sharp",B="Sony",F="Xiaomi",$="Zebra",j="Facebook",H="Chromium OS",z="Mac OS",G=function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n},q=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},U=function(e,t){return typeof e===c&&-1!==W(t).indexOf(W(e))},W=function(e){return e.toLowerCase()},V=function(e,t){if(typeof e===c)return e=e.replace(/^\s\s*/,""),typeof t===a?e:e.substring(0,500)},Y=function(e,t){for(var n,r,i,a,c,u,d=0;d<t.length&&!c;){var h=t[d],p=t[d+1];for(n=r=0;n<h.length&&!c&&h[n];)if(c=h[n++].exec(e))for(i=0;i<p.length;i++)u=c[++r],typeof(a=p[i])===l&&a.length>0?2===a.length?typeof a[1]==s?this[a[0]]=a[1].call(this,u):this[a[0]]=a[1]:3===a.length?typeof a[1]!==s||a[1].exec&&a[1].test?this[a[0]]=u?u.replace(a[1],a[2]):void 0:this[a[0]]=u?a[1].call(this,u,a[2]):void 0:4===a.length&&(this[a[0]]=u?a[3].call(this,u.replace(a[1],a[2])):o):this[a]=u||o;d+=2}},X=function(e,t){for(var n in t)if(typeof t[n]===l&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(U(t[n][r],e))return"?"===n?o:n}else if(U(t[n],e))return"?"===n?o:n;return e},K={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},J={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[g,[h,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[g,[h,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[h,g],[/opios[\/ ]+([\w\.]+)/i],[g,[h,N+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[g,[h,N+" GX"]],[/\bopr\/([\w\.]+)/i],[g,[h,N]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[g,[h,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[h,g],[/\bddg\/([\w\.]+)/i],[g,[h,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[g,[h,"UC"+P]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[g,[h,"WeChat"]],[/konqueror\/([\w\.]+)/i],[g,[h,"
20Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[g,[h,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[g,[h,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[g,[h,"Smart Lenovo "+P]],[/(avast|avg)\/([\w\.]+)/i],[[h,/(.+)/,"$1 Secure "+P],g],[/\bfocus\/([\w\.]+)/i],[g,[h,L+" Focus"]],[/\bopt\/([\w\.]+)/i],[g,[h,N+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[g,[h,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[g,[h,"Dolphin"]],[/coast\/([\w\.]+)/i],[g,[h,N+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[g,[h,"MIUI "+P]],[/fxios\/([-\w\.]+)/i],[g,[h,L]],[/\bqihu|(qi?ho?o?|360)browser/i],[[h,"360 "+P]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[h,/(.+)/,"$1 "+P],g],[/samsungbrowser\/([\w\.]+)/i],[g,[h,D+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[h,/_/g," "],g],[/metasr[\/ ]?([\d\.]+)/i],[g,[h,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[h,"Sogou Mobile"],g],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[h,g],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[h],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[h,j],g],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[h,g],[/\bgsa\/([\w\.]+) .*safari\//i],[g,[h,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[g,[h,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[g,[h,T+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[h,T+" WebView"],g],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[g,[h,"Android "+P]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[h,g],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[g,[h,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[g,h],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[h,[g,X,{"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[h,g],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[h,"Netscape"],g],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[g,[h,L+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[h,g],[/(cobalt)\/([\w\.]+)/i],[h,[g,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[m,"amd64"]],[/(ia32(?=;))/i],[[m,W]],[/((?:i[346]|x)86)[;\)]/i],[[m,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[m,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[m,"armhf"]],[/windows (ce|mobile); ppc;/i],[[m,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[m,/ower/,"",W]],[/(sun4\w)[;\)]/i],[[m,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[m,W]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[d,[f,D],[p,w]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[d,[f,D],[p,y]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[d,[f,k],[p,y]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[d,[f,k],[p,w]],[/(macintosh);/i],[d,[f,k]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[d,[f,R],[p,y]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[d,[f,O],[p,w]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[d,[f,O],[p,y]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[d,/_/g," "],[f,F],[p,y]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[d,/_/g," "],[f,F],[p,w]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[d,[f,"OPPO"],[p,y]],[/\b(opd2\d{3}a?) bui/i],[d,[f,"OPPO"],[p,w]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[d,[f,"Vivo"],[p,y]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[d,[f,"Realme"],[p,y]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[d,[f,M],[p,y]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[d,[f,M],[p,w]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[d,[f,"LG"],[p,w]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[d,[f,"LG"],[p,y]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[d,[f,"Lenovo"],[p,w]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[d,/_/g," "],[f,"Nokia"],[p,y]],[/(pixel c)\b/i],[d,[f,I],[p,w]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[d,[f,I],[p,y]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[d,[f,B],[p,y]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[d,"Xperia Tablet"],[f,B],[p,w]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[d,[f,"OnePlus"],[p,y]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[d,[f,x],[p,w]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[d,/(.+)/g,"Fire Phone $1"],[f,x],[p,y]],[/(playbook);[-\w\),; ]+(rim)/i],[d,f,[p,w]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[d,[f,C],[p,y]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[d,[f,E],[p,w]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[d,[f,E],[p,y]],[/(nexus 9)/i],[d,[f,"HTC"],[p,w]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[f,[d,/_/g," "],[p,y]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[d,[f,"Acer"],[p,w]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[d,[f,"Meizu"],[p,y]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[d,[f,"Ulefone"],[p,y]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asu
vendor: 4,607 bytes, line 20
20s)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[f,d,[p,y]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[f,d,[p,w]],[/(surface duo)/i],[d,[f,A],[p,w]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[d,[f,"Fairphone"],[p,y]],[/(u304aa)/i],[d,[f,"AT&T"],[p,y]],[/\bsie-(\w*)/i],[d,[f,"Siemens"],[p,y]],[/\b(rct\w+) b/i],[d,[f,"RCA"],[p,w]],[/\b(venue[\d ]{2,7}) b/i],[d,[f,"Dell"],[p,w]],[/\b(q(?:mv|ta)\w+) b/i],[d,[f,"Verizon"],[p,w]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[d,[f,"Barnes & Noble"],[p,w]],[/\b(tm\d{3}\w+) b/i],[d,[f,"NuVision"],[p,w]],[/\b(k88) b/i],[d,[f,"ZTE"],[p,w]],[/\b(nx\d{3}j) b/i],[d,[f,"ZTE"],[p,y]],[/\b(gen\d{3}) b.+49h/i],[d,[f,"Swiss"],[p,y]],[/\b(zur\d{3}) b/i],[d,[f,"Swiss"],[p,w]],[/\b((zeki)?tb.*\b) b/i],[d,[f,"Zeki"],[p,w]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[f,"Dragon Touch"],d,[p,w]],[/\b(ns-?\w{0,9}) b/i],[d,[f,"Insignia"],[p,w]],[/\b((nxa|next)-?\w{0,9}) b/i],[d,[f,"NextBook"],[p,w]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[f,"Voice"],d,[p,y]],[/\b(lvtel\-)?(v1[12]) b/i],[[f,"LvTel"],d,[p,y]],[/\b(ph-1) /i],[d,[f,"Essential"],[p,y]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[d,[f,"Envizen"],[p,w]],[/\b(trio[-\w\. ]+) b/i],[d,[f,"MachSpeed"],[p,w]],[/\btu_(1491) b/i],[d,[f,"Rotor"],[p,w]],[/(shield[\w ]+) b/i],[d,[f,"Nvidia"],[p,w]],[/(sprint) (\w+)/i],[f,d,[p,y]],[/(kin\.[onetw]{3})/i],[[d,/\./g," "],[f,A],[p,y]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[d,[f,$],[p,w]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[d,[f,$],[p,y]],[/smart-tv.+(samsung)/i],[f,[p,b]],[/hbbtv.+maple;(\d+)/i],[[d,/^/,"SmartTV"],[f,D],[p,b]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[f,"LG"],[p,b]],[/(apple) ?tv/i],[f,[d,k+" TV"],[p,b]],[/crkey/i],[[d,T+"cast"],[f,I],[p,b]],[/droid.+aft(\w+)( bui|\))/i],[d,[f,x],[p,b]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[d,[f,R],[p,b]],[/(bravia[\w ]+)( bui|\))/i],[d,[f,B],[p,b]],[/(mitv-\w{5}) bui/i],[d,[f,F],[p,b]],[/Hbbtv.*(technisat) (.*);/i],[f,d,[p,b]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[f,V],[d,V],[p,b]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[p,b]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[f,d,[p,v]],[/droid.+; (shield) bui/i],[d,[f,"Nvidia"],[p,v]],[/(playstation [345portablevi]+)/i],[d,[f,B],[p,v]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[d,[f,A],[p,v]],[/((pebble))app/i],[f,d,[p,_]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[d,[f,k],[p,_]],[/droid.+; (glass) \d/i],[d,[f,I],[p,_]],[/droid.+; (wt63?0{2,3})\)/i],[d,[f,$],[p,_]],[/(quest( \d| pro)?)/i],[d,[f,j],[p,_]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[f,[p,S]],[/(aeobc)\b/i],[d,[f,x],[p,S]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[d,[p,y]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[d,[p,w]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[p,w]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[p,y]],[/(android[-\w\. ]{0,9});.+buil/i],[d,[f,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[g,[h,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[g,[h,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[h,g],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[g,h]],os:[[/microsoft (windows) (vista|xp)/i],[h,g],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[h,[g,X,K]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[g,X,K],[h,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[g,/_/g,"."],[h,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[h,z],[g,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[g,h],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[h,g],[/\(bb(10);/i],[g,[h,C]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[g,[h,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+);
20 rv:.+ gecko\/([\w\.]+)/i],[g,[h,L+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[g,[h,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[g,[h,"watchOS"]],[/crkey\/([\d\.]+)/i],[g,[h,T+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[h,H],g],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[h,g],[/(sunos) ?([\w\.\d]*)/i],[[h,"Solaris"],g],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[h,g]]},Z=function(e,t){if(typeof e===l&&(t=e,e=o),!(this instanceof Z))return new Z(e,t).getResult();var n=typeof i!==a&&i.navigator?i.navigator:o,r=e||(n&&n.userAgent?n.userAgent:""),v=n&&n.userAgentData?n.userAgentData:o,b=t?G(J,t):J,_=n&&n.userAgent==r;return this.getBrowser=function(){var e,t={};return t[h]=o,t[g]=o,Y.call(t,r,b.browser),t[u]=typeof(e=t[g])===c?e.replace(/[^\d\.]/g,"").split(".")[0]:o,_&&n&&n.brave&&typeof n.brave.isBrave==s&&(t[h]="Brave"),t},this.getCPU=function(){var e={};return e[m]=o,Y.call(e,r,b.cpu),e},this.getDevice=function(){var e={};return e[f]=o,e[d]=o,e[p]=o,Y.call(e,r,b.device),_&&!e[p]&&v&&v.mobile&&(e[p]=y),_&&"Macintosh"==e[d]&&n&&typeof n.standalone!==a&&n.maxTouchPoints&&n.maxTouchPoints>2&&(e[d]="iPad",e[p]=w),e},this.getEngine=function(){var e={};return e[h]=o,e[g]=o,Y.call(e,r,b.engine),e},this.getOS=function(){var e={};return e[h]=o,e[g]=o,Y.call(e,r,b.os),_&&!e[h]&&v&&v.platform&&"Unknown"!=v.platform&&(e[h]=v.platform.replace(/chrome os/i,H).replace(/macos/i,z)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(e){return r=typeof e===c&&e.length>500?V(e,500):e,this},this.setUA(r),this};Z.VERSION="1.0.38",Z.BROWSER=q([h,g,u]),Z.CPU=q([m]),Z.DEVICE=q([d,f,p,v,y,b,w,_,S]),Z.ENGINE=Z.OS=q([h,g]),typeof t!==a?(e.exports&&(t=e.exports=Z),t.UAParser=Z):n.amdO?o===(r=(function(){return Z}).call(t,n,t,e))||(e.exports=r):typeof i!==a&&(i.UAParser=Z);var Q=typeof i!==a&&(i.jQuery||i.Zepto);if(Q&&!Q.ua){var ee=new Z;Q.ua=ee.getResult(),Q.ua.get=function(){return ee.getUA()},Q.ua.set=function(e){ee.setUA(e);var t=ee.getResult();for(var n in t)Q.ua[n]=t[n]}}}("object"==typeof window?window:this)},28158:(e,t,n)=>{"use strict";e.exports=n.p+"assets/idb.worker.8ef42e98.js"},50477:()=>{},79306:(e,t,n)=>{"use strict";var r=n(94901),i=n(16823),o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not a function")}},35548:(e,t,n)=>{"use strict";var r=n(33517),i=n(16823),o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not a constructor")}},24194:(e,t,n)=>{"use strict";var r=n(36955),i=TypeError;e.exports=function(e){if("DataView"===r(e))return e;throw new i("Argument is not a DataView")}},73506:(e,t,n)=>{"use strict";var r=n(13925),i=String,o=TypeError;e.exports=function(e){if(r(e))return e;throw new o("Can't set "+i(e)+" as a prototype")}},97080:(e,t,n)=>{"use strict";var r=n(94402).has;e.exports=function(e){return r(e),e}},63463:e=>{"use strict";var t=TypeError;e.exports=function(e){if("string"==typeof e)return e;throw new t("Argument is not a string")}},91021:(e,t,n)=>{"use strict";var r=n(97751),i=n(69565),o=n(79504),s=n(76080),a=n(28551),l=n(79306),c=n(64117),u=n(55966),d=n(78227),h=d("asyncDispose"),p=d("dispose"),f=o([].push),g=function(e,t){if("async-dispose"===t){var n=u(e,h);return void 0!==n||void 0===(n=u(e,p))?n:function(){var e=this;return new(r("Promise"))(function(t){i(n,e),t(void 0)})}}return u(e,p)},m=function(e,t,n){return arguments.length<3&&!c(e)&&(n=l(g(a(e),t))),void 0===n?function(){}:s(n,e)};e.exports=function(e,t,n,r){var i;if(arguments.length<4){if(c(t)&&"sync-dispose"===n)return;i=m(t,n)}else i=m(void 0,n,r);f(e.stack,i)}},6469:(e,t,n)=>{"use strict";var r=n(78227),i=n(2360),o=n(24913).f,s=r("unscopables"),a=Array.prototype;void 0===a[s]&&o(a,s,{configurable:!0,value:i(null)}),e.exports=function(e){a[s][e]=!0}}
vendor: 7,301 bytes, line 20
20,57829:(e,t,n)=>{"use strict";var r=n(68183).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},90679:(e,t,n)=>{"use strict";var r=n(1625),i=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw new i("Incorrect invocation")}},28551:(e,t,n)=>{"use strict";var r=n(20034),i=String,o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not an object")}},77811:e=>{"use strict";e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},67394:(e,t,n)=>{"use strict";var r=n(44576),i=n(46706),o=n(22195),s=r.ArrayBuffer,a=r.TypeError;e.exports=s&&i(s.prototype,"byteLength","get")||function(e){if("ArrayBuffer"!==o(e))throw new a("ArrayBuffer expected");return e.byteLength}},3238:(e,t,n)=>{"use strict";var r=n(44576),i=n(77811),o=n(67394),s=r.DataView;e.exports=function(e){if(!i||0!==o(e))return!1;try{return new s(e),!1}catch(e){return!0}}},15652:(e,t,n)=>{"use strict";e.exports=n(79039)(function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})},55169:(e,t,n)=>{"use strict";var r=n(3238),i=TypeError;e.exports=function(e){if(r(e))throw new i("ArrayBuffer is detached");return e}},73255:(e,t,n)=>{"use strict";var r=n(44576),i=n(79504),o=n(46706),s=n(57696),a=n(55169),l=n(67394),c=n(94483),u=n(1548),d=r.structuredClone,h=r.ArrayBuffer,p=r.DataView,f=Math.min,g=h.prototype,m=p.prototype,v=i(g.slice),y=o(g,"resizable","get"),w=o(g,"maxByteLength","get"),b=i(m.getInt8),_=i(m.setInt8);e.exports=(u||c)&&function(e,t,n){var r,i=l(e),o=void 0===t?i:s(t),g=!y||!y(e);if(a(e),u&&(e=d(e,{transfer:[e]}),i===o&&(n||g)))return e;if(i>=o&&(!n||g))r=v(e,0,o);else{r=new h(o,n&&!g&&w?{maxByteLength:w(e)}:void 0);for(var m=new p(e),S=new p(r),x=f(o,i),k=0;k<x;k++)_(S,k,b(m,k))}return u||c(e),r}},94644:(e,t,n)=>{"use strict";var r,i,o,s=n(77811),a=n(43724),l=n(44576),c=n(94901),u=n(20034),d=n(39297),h=n(36955),p=n(16823),f=n(66699),g=n(36840),m=n(62106),v=n(1625),y=n(42787),w=n(52967),b=n(78227),_=n(33392),S=n(91181),x=S.enforce,k=S.get,E=l.Int8Array,C=E&&E.prototype,P=l.Uint8ClampedArray,T=P&&P.prototype,L=E&&y(E),I=C&&y(C),O=Object.prototype,A=l.TypeError,M=b("toStringTag"),N=_("TYPED_ARRAY_TAG"),D="TypedArrayConstructor",R=s&&!!w&&"Opera"!==h(l.opera),B=!1,F={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},$={BigInt64Array:8,BigUint64Array:8},j=function(e){var t=y(e);if(u(t)){var n=k(t);return n&&d(n,D)?n[D]:j(t)}},H=function(e){if(!u(e))return!1;var t=h(e);return d(F,t)||d($,t)};for(r in F)(o=(i=l[r])&&i.prototype)?x(o)[D]=i:R=!1;for(r in $)(o=(i=l[r])&&i.prototype)&&(x(o)[D]=i);if((!R||!c(L)||L===Function.prototype)&&(L=function(){throw new A("Incorrect invocation")},R))for(r in F)l[r]&&w(l[r],L);if((!R||!I||I===O)&&(I=L.prototype,R))for(r in F)l[r]&&w(l[r].prototype,I);if(R&&y(T)!==I&&w(T,I),a&&!d(I,M))for(r in B=!0,m(I,M,{configurable:!0,get:function(){return u(this)?this[N]:void 0}}),F)l[r]&&f(l[r],N,r);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:R,TYPED_ARRAY_TAG:B&&N,aTypedArray:function(e){if(H(e))return e;throw new A("Target is not a typed array")},aTypedArrayConstructor:function(e){if(c(e)&&(!w||v(L,e)))return e;throw new A(p(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n,r){if(a){if(n)for(var i in F){var o=l[i];if(o&&d(o.prototype,e))try{delete o.prototype[e]}catch(n){try{o.prototype[e]=t}catch(e){}}}(!I[e]||n)&&g(I,e,n?t:R&&C[e]||t,r)}},exportTypedArrayStaticMethod:function(e,t,n){var r,i;if(a){if(w){if(n){for(r in F)if((i=l[r])&&d(i,e))try{delete i[e]}catch(e){}}if(L[e]&&!n)return;try{return g(L,e,n?t:R&&L[e]||t)}catch(e){}}for(r in F)(i=l[r])&&(!i[e]||n)&&g(i,e,t)}},getTypedArrayConstructor:j,isView:function(e){if(!u(e))return!1;var t=h(e);return"DataView"===t||d(F,t)||d($,t)},isTypedArray:H,TypedArray:L,TypedArrayPrototype:I}},66346:(e,t,n)=>{"use strict";var r=n(44576),i=n(79504),o=n(43724),s=n(77811),a=n(10350),l=n(66699),c=n(62106),u=n(56279),d=n(79039),h=n(90679),p=n(91291),f=n(18014),g=n(57696),m=n(15617),v=n(88490),y=n(42787),w=n(52967),b=n(84373),_=n(67680),S=n(23167),x=n(77740),k=n(10687),E=n(91181),C=a.PROPER,P=a.CONFIGURABLE,T="ArrayBuffer",L="DataView",I="prototype",O="Wrong index",A=E.getterFor(T),M=E.getterFor(L),N=E.set,D=r[T],R=D,B=R&&R[I],F=r[L],$=F&&F[I],j=Object.prototype,H=r.Array,z=r.RangeError,G=i(b),q=i([].reverse),U=v.pack,W=v.unpack,V=function(e){return[255&e]},Y=function(e){return[255&e,e>>8&255]},X=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},K=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},J=function(e){return U(m(e),23,4)},Z=function(e){return U(e,52,8)},Q=function(e,t,n){c(e[I],t,{configurable:!0,get:function(){return n(this)[t]}})},ee=function(e,t,n,r){var i=M(e),o=g(n);if(o+t>i.byteLength)throw new z(O);var s=i.bytes,a=o+i.byteOffset,l=_(s,a,a+t);return r?l:q(l)},et=function(e,t,n,r,i,o){var s=M(e),a=g(n),l=r(+i),c=!!o;if(a+t>s.byteLength)throw new z(O);for(var u=s.bytes,d=a+s.byteOffset,h=0;h<t;h++)u[d+h]=l[c?h:t-h-1]};if(s){var en=C&&D.name!==T;!d(function(){D(1)})||!d(function(){new D(-1)})||d(function(){return new D,new D(1.5),new D(NaN),1!==D.length||en&&!P})?((R=function(e){return h(this,B),S(new D(g(e)),this,R)})[I]=B,B.constructor=R,x(R,D)):en&&P&&l(D,"name",T),w&&y($)!==j&&w($,j);var er=new F(new R(2)),ei=i($.setInt8);er.setInt8(0,0x80000000),er.setInt8(1,0x80000001),(er.getInt8(0)||!er.getInt8(1))&&u($,{setInt8:function(e,t){ei(this,e,t<<24>>24)},setUint8:function(e,t){ei(this,e,t<<24>>24)}},{unsafe:!0})}else B=(R=function(e){h(this,B);var t=g(e);N(this,{type:T,bytes:G(H(t),0),byteLength:t}),o||(this.byteLength=t,this.detached=!1)})[I],$=(F=function(e,t,n){h(this,$),h(e,B);var r=A(e),i=r.byteLength,s=p(t);if(s<0||s>i)throw new z("Wrong offset");if(n=void 0===n?i-s:f(n),s+n>i)throw new z("Wrong length");N(this,{type:L,buffer:e,byteLength:n,byteOffset:s,bytes:r.bytes}),o||(this.buffer=e,this.byteLength=n,this.byteOffset=s)})[I],o&&(Q(R,"byteLength",A),Q(F,"buffer",M),Q(F,"byteLength",M),Q(F,"byteOffset",M)),u($,{getInt8:function(e){return ee(this,1,e)[0]<<24>>24},getUint8:function(e){return ee(this,1,e)[0]},getInt16:function(e){var t=ee(this,2,e,arguments.length>1&&arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=ee(this,2,e,arguments.length>1&&arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return K(ee(this,4,e,arguments.length>1&&arguments[1]))},getUint32:function(e){return K(ee(this,4,e,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(e){return W(ee(this,4,e,arguments.length>1&&arguments[1]),23)},getFloat64:function(e){return W(ee(this,8,e,arguments.length>1&&arguments[1]),52)},setInt8:function(e,t){et(this,1,e,V,t)},setUint8:function(e,t){et(this,1,e,V,t)},setInt16:function(e,t){et(this,2,e,Y,t,arguments.length>2&&arguments[2])},setUint16:function(e,t){et(this,2,e,Y,t,arguments.length>2&&arguments[2])},setInt32:function(e,t){et(this,4,e,X,t,arguments.length>2&&arguments[2])},setUint32:function(e,t){et(this,4,e,X,t,arguments.length>2&&arguments[2])},setFloat32:function(e,t){et(this,4,e,J,t,arguments.length>2&&arguments[2])},setFloat64:function(e,t){et(this,8,e,Z,t,arguments.length>2&&arguments[2])}});k(R,T),k(F,L),e.exports={ArrayBuffer:R,DataView:F}}
20,57029:(e,t,n)=>{"use strict";var r=n(48981),i=n(35610),o=n(26198),s=n(84606),a=Math.min;e.exports=[].copyWithin||function(e,t){var n=r(this),l=o(n),c=i(e,l),u=i(t,l),d=arguments.length>2?arguments[2]:void 0,h=a((void 0===d?l:i(d,l))-u,l-c),p=1;for(u<c&&c<u+h&&(p=-1,u+=h-1,c+=h-1);h-- >0;)u in n?n[c]=n[u]:s(n,c),c+=p,u+=p;return n}},84373:(e,t,n)=>{"use strict";var r=n(48981),i=n(35610),o=n(26198);e.exports=function(e){for(var t=r(this),n=o(t),s=arguments.length,a=i(s>1?arguments[1]:void 0,n),l=s>2?arguments[2]:void 0,c=void 0===l?n:i(l,n);c>a;)t[a++]=e;return t}},90235:(e,t,n)=>{"use strict";var r=n(59213).forEach;e.exports=n(34598)("forEach")?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},8045:(e,t,n)=>{"use strict";var r=n(76080),i=n(79504),o=n(48981),s=n(33517),a=n(1886),l=n(70081),c=n(1767),u=n(50851),d=n(55966),h=n(97751),p=n(44124),f=n(78227),g=n(24074),m=n(36639).toArray,v=f("asyncIterator"),y=i(p("Array","values")),w=i(y([]).next),b=function(){return new _(this)},_=function(e){this.iterator=y(e)};_.prototype.next=function(){return w(this.iterator)},e.exports=function(e){var t=this,n=arguments.length,i=n>1?arguments[1]:void 0,p=n>2?arguments[2]:void 0;return new(h("Promise"))(function(n){var h=o(e);void 0!==i&&(i=r(i,p));var f=d(h,v),y=f?void 0:u(h)||b,w=s(t)?new t:[];n(m(f?a(h,f):new g(c(l(h,y))),i,w))})}},35370:(e,t,n)=>{"use strict";var r=n(26198);e.exports=function(e,t,n){for(var i=0,o=arguments.length>2?n:r(t),s=new e(o);o>i;)s[i]=t[i++];return s}},97916:(e,t,n)=>{"use strict";
20var r=n(76080),i=n(69565),o=n(48981),s=n(96319),a=n(44209),l=n(33517),c=n(26198),u=n(97040),d=n(70081),h=n(50851),p=Array;e.exports=function(e){var t,n,f,g,m,v,y=o(e),w=l(this),b=arguments.length,_=b>1?arguments[1]:void 0,S=void 0!==_;S&&(_=r(_,b>2?arguments[2]:void 0));var x=h(y),k=0;if(x&&!(this===p&&a(x)))for(n=w?new this:[],m=(g=d(y,x)).next;!(f=i(m,g)).done;k++)v=S?s(g,_,[f.value,k],!0):f.value,u(n,k,v);else for(t=c(y),n=w?new this(t):p(t);t>k;k++)v=S?_(y[k],k):y[k],u(n,k,v);return n.length=k,n}},19617:(e,t,n)=>{"use strict";var r=n(25397),i=n(35610),o=n(26198),s=function(e){return function(t,n,s){var a,l=r(t),c=o(l);if(0===c)return!e&&-1;var u=i(s,c);if(e&&n!=n){for(;c>u;)if((a=l[u++])!=a)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:s(!0),indexOf:s(!1)}},43839:(e,t,n)=>{"use strict";var r=n(76080),i=n(47055),o=n(48981),s=n(26198),a=function(e){var t=1===e;return function(n,a,l){for(var c,u=o(n),d=i(u),h=s(d),p=r(a,l);h-- >0;)if(p(c=d[h],h,u))switch(e){case 0:return c;case 1:return h}return t?-1:void 0}};e.exports={findLast:a(0),findLastIndex:a(1)}},59213:(e,t,n)=>{"use strict";var r=n(76080),i=n(79504),o=n(47055),s=n(48981),a=n(26198),l=n(1469),c=i([].push),u=function(e){var t=1===e,n=2===e,i=3===e,u=4===e,d=6===e,h=7===e,p=5===e||d;return function(f,g,m,v){for(var y,w,b=s(f),_=o(b),S=a(_),x=r(g,m),k=0,E=v||l,C=t?E(f,S):n||h?E(f,0):void 0;S>k;k++)if((p||k in _)&&(w=x(y=_[k],k,b),e))if(t)C[k]=w;else if(w)switch(e){case 3:return!0;case 5:return y;case 6:return k;case 2:c(C,y)}else switch(e){case 4:return!1;case 7:c(C,y)}return d?-1:i||u?u:C}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},8379:(e,t,n)=>{"use strict";var r=n(18745),i=n(25397),o=n(91291),s=n(26198),a=n(34598),l=Math.min,c=[].lastIndexOf,u=!!c&&1/[1].lastIndexOf(1,-0)<0,d=a("lastIndexOf");e.exports=u||!d?function(e){if(u)return r(c,this,arguments)||0;var t=i(this),n=s(t);if(0===n)return -1;var a=n-1;for(arguments.length>1&&(a=l(a,o(arguments[1]))),a<0&&(a=n+a);a>=0;a--)if(a in t&&t[a]===e)return a||0;return -1}:c},70597:(e,t,n)=>{"use strict";var r=n(79039),i=n(78227),o=n(39519),s=i("species");e.exports=function(e){return o>=51||!r(function(){var t=[];return(t.constructor={})[s]=function(){return{foo:1}},1!==t[e](Boolean).foo})}},34598:(e,t,n)=>{"use strict";var r=n(79039);e.exports=function(e,t){var n=[][e];return!!n&&r(function(){n.call(null,t||function(){return 1},1)})}},80926:(e,t,n)=>{"use strict";var r=n(79306),i=n(48981),o=n(47055),s=n(26198),a=TypeError,l="Reduce of empty array with no initial value",c=function(e){return function(t,n,c,u){var d=i(t),h=o(d),p=s(d);if(r(n),0===p&&c<2)throw new a(l);var f=e?p-1:0,g=e?-1:1;if(c<2)for(;;){if(f in h){u=h[f],f+=g;break}if(f+=g,e?f<0:p<=f)throw new a(l)}for(;e?f>=0:p>f;f+=g)f in h&&(u=n(u,h[f],f,d));return u}};e.exports={left:c(!1),right:c(!0)}},34527:(e,t,n)=>{"use strict";var r=n(43724),i=n(34376),o=TypeError,s=Object.getOwnPropertyDescriptor;e.exports=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}()?function(e,t){if(i(e)&&!s(e,"length").writable)throw new o("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},67680:(e,t,n)=>{"use strict";e.exports=n(79504)([].slice)},74488:(e,t,n)=>{"use strict";var r=n(67680),i=Math.floor,o=function(e,t){var n=e.length;if(n<8)for(var s,a,l=1;l<n;){for(a=l,s=e[l];a&&t(e[a-1],s)>0;)e[a]=e[--a];a!==l++&&(e[a]=s)}else for(var c=i(n/2),u=o(r(e,0,c),t),d=o(r(e,c),t),h=u.length,p=d.length,f=0,g=0;f<h||g<p;)e[f+g]=f<h&&g<p?0>=t(u[f],d[g])?u[f++]:d[g++]:f<h?u[f++]:d[g++];return e};e.exports=o},87433:(e,t,n)=>{"use strict";var r=n(34376),i=n(33517),o=n(20034),s=n(78227)("species"),a=Array;e.exports=function(e){var t;return r(e)&&(i(t=e.constructor)&&(t===a||r(t.prototype))?t=void 0:o(t)&&null===(t=t[s])&&(t=void 0)),void 0===t?a:t}},1469:(e,t,n)=>{"use strict";var r=n(87433);e.exports=function(e,t){return new(r(e))(0===t?0:t)}}
20,37628:(e,t,n)=>{"use strict";var r=n(26198);e.exports=function(e,t){for(var n=r(e),i=new t(n),o=0;o<n;o++)i[o]=e[n-o-1];return i}},39928:(e,t,n)=>{"use strict";var r=n(26198),i=n(91291),o=RangeError;e.exports=function(e,t,n,s){var a=r(e),l=i(n),c=l<0?a+l:l;if(c>=a||c<0)throw new o("Incorrect index");for(var u=new t(a),d=0;d<a;d++)u[d]=d===c?s:e[d];return u}},24074:(e,t,n)=>{"use strict";var r=n(69565),i=n(28551),o=n(2360),s=n(55966),a=n(56279),l=n(91181),c=n(9539),u=n(97751),d=n(53982),h=n(62529),p=u("Promise"),f="AsyncFromSyncIterator",g=l.set,m=l.getterFor(f),v=function(e,t,n,r,i){var o=e.done;p.resolve(e.value).then(function(e){t(h(e,o))},function(e){if(!o&&i)try{c(r,"throw",e)}catch(t){e=t}n(e)})},y=function(e){e.type=f,g(this,e)};y.prototype=a(o(d),{next:function(){var e=m(this);return new p(function(t,n){v(i(r(e.next,e.iterator)),t,n,e.iterator,!0)})},return:function(){var e=m(this).iterator;return new p(function(t,n){var o=s(e,"return");if(void 0===o)return t(h(void 0,!0));v(i(r(o,e)),t,n,e)})}}),e.exports=y}
20,20772:(e,t,n)=>{"use strict";var r=n(69565),i=n(97751),o=n(55966);e.exports=function(e,t,n,s){try{var a=o(e,"return");if(a)return i("Promise").resolve(r(a,e)).then(function(){t(n)},function(e){s(e)})}catch(e){return s(e)}t(n)}},36639:(e,t,n)=>{"use strict";var r=n(69565),i=n(79306),o=n(28551),s=n(20034),a=n(96837),l=n(97751),c=n(1767),u=n(20772),d=function(e){var t=0===e,n=1===e,d=2===e,h=3===e;return function(e,p,f){o(e);var g=void 0!==p;(g||!t)&&i(p);var m=c(e),v=l("Promise"),y=m.iterator,w=m.next,b=0;return new v(function(e,i){var l=function(e){u(y,i,e,i)},c=function(){try{if(g)try{a(b)}catch(e){l(e)}v.resolve(o(r(w,y))).then(function(r){try{if(o(r).done)t?(f.length=b,e(f)):e(!h&&(d||void 0));else{var a=r.value;try{if(g){var m=p(a,b),w=function(r){if(n)c();else if(d)r?c():u(y,e,!1,i);else if(t)try{f[b++]=r,c()}catch(e){l(e)}else r?u(y,e,h||a,i):c()};s(m)?v.resolve(m).then(w,l):w(m)}else f[b++]=a,c()}catch(e){l(e)}}}catch(e){i(e)}},i)}catch(e){i(e)}};c()})}};e.exports={toArray:d(0),forEach:d(1),every:d(2),some:d(3),find:d(4)}},53982:(e,t,n)=>{"use strict";var r,i,o=n(44576),s=n(77629),a=n(94901),l=n(2360),c=n(42787),u=n(36840),d=n(78227),h=n(96395),p="USE_FUNCTION_CONSTRUCTOR",f=d("asyncIterator"),g=o.AsyncIterator,m=s.AsyncIteratorPrototype;if(m)r=m;else if(a(g))r=g.prototype;else if(s[p]||o[p])try{i=c(c(c(Function("return async function*(){}()")()))),c(i)===Object.prototype&&(r=i)}catch(e){}r?h&&(r=l(r)):r={},a(r[f])||u(r,f,function(){return this}),e.exports=r},92804:e=>{"use strict";var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=t+"+/",r=t+"-_",i=function(e){for(var t={},n=0;n<64;n++)t[e.charAt(n)]=n;return t};e.exports={i2c:n,c2i:i(n),i2cUrl:r,c2iUrl:i(r)}},96319:(e,t,n)=>{"use strict";var r=n(28551),i=n(9539);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){i(e,"throw",t)}}},84428:(e,t,n)=>{"use strict";var r=n(78227)("iterator"),i=!1;try{var o=0,s={next:function(){return{done:!!o++}},return:function(){i=!0}};s[r]=function(){return this},Array.from(s,function(){throw 2})}catch(e){}e.exports=function(e,t){try{if(!t&&!i)return!1}catch(e){return!1}var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},e(o)}catch(e){}return n}},22195:(e,t,n)=>{"use strict";var r=n(79504),i=r({}.toString),o=r("".slice);e.exports=function(e){return o(i(e),8,-1)}},36955:(e,t,n)=>{"use strict";var r=n(92140),i=n(94901),o=n(22195),s=n(78227)("toStringTag"),a=Object,l="Arguments"===o(function(){return arguments}()),c=function(e,t){try{return e[t]}catch(e){}};e.exports=r?o:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=c(t=a(e),s))?n:l?o(t):"Object"===(r=o(t))&&i(t.callee)?"Arguments":r}},86938:(e,t,n)=>{"use strict";var r=n(2360),i=n(62106),o=n(56279),s=n(76080),a=n(90679),l=n(64117),c=n(72652),u=n(51088),d=n(62529),h=n(87633),p=n(43724),f=n(3451).fastKey,g=n(91181),m=g.set,v=g.getterFor;e.exports={getConstructor:function(e,t,n,u){var d=e(function(e,i){a(e,h),m(e,{type:t,index:r(null),first:null,last:null,size:0}),p||(e.size=0),l(i)||c(i,e[u],{that:e,AS_ENTRIES:n})}),h=d.prototype,g=v(t),y=function(e,t,n){var r,i,o=g(e),s=w(e,t);return s?s.value=n:(o.last=s={index:i=f(t,!0),key:t,value:n,previous:r=o.last,next:null,removed:!1},o.first||(o.first=s),r&&(r.next=s),p?o.size++:e.size++,"F"!==i&&(o.index[i]=s)),e},w=function(e,t){var n,r=g(e),i=f(t);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key===t)return n};return o(h,{clear:function(){for(var e=g(this),t=e.first;t;)t.removed=!0,t.previous&&(t.previous=t.previous.next=null),t=t.next;e.first=e.last=null,e.index=r(null),p?e.size=0:this.size=0},delete:function(e){var t=g(this),n=w(this,e);if(n){var r=n.next,i=n.previous;delete t.index[n.index],n.removed=!0,i&&(i.next=r),r&&(r.previous=i),t.first===n&&(t.first=r),t.last===n&&(t.last=i),p?t.size--:this.size--}return!!n},forEach:function(e){for(var t,n=g(this),r=s(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!w(this,e)}}),o(h,n?{get:function(e){var t=w(this,e);return t&&t.value},set:function(e,t){return y(this,0===e?0:e,t)}}:{add:function(e){return y(this,e=0===e?0:e,e)}}),p&&i(h,"size",{configurable:!0,get:function(){return g(this).size}}
20),d},setStrong:function(e,t,n){var r=t+" Iterator",i=v(t),o=v(r);u(e,t,function(e,t){m(this,{type:r,target:e,state:i(e),kind:t,last:null})},function(){for(var e=o(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"===t?d(n.key,!1):"values"===t?d(n.value,!1):d([n.key,n.value],!1):(e.target=null,d(void 0,!0))},n?"entries":"values",!n,!0),h(t)}}},91625:(e,t,n)=>{"use strict";var r=n(79504),i=n(56279),o=n(3451).getWeakData,s=n(90679),a=n(28551),l=n(64117),c=n(20034),u=n(72652),d=n(59213),h=n(39297),p=n(91181),f=p.set,g=p.getterFor,m=d.find,v=d.findIndex,y=r([].splice),w=0,b=function(e){return e.frozen||(e.frozen=new _)},_=function(){this.entries=[]},S=function(e,t){return m(e.entries,function(e){return e[0]===t})};_.prototype={get:function(e){var t=S(this,e);if(t)return t[1]},has:function(e){return!!S(this,e)},set:function(e,t){var n=S(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=v(this.entries,function(t){return t[0]===e});return~t&&y(this.entries,t,1),!!~t}},e.exports={getConstructor:function(e,t,n,r){var d=e(function(e,i){s(e,p),f(e,{type:t,id:w++,frozen:null}),l(i)||u(i,e[r],{that:e,AS_ENTRIES:n})}),p=d.prototype,m=g(t),v=function(e,t,n){var r=m(e),i=o(a(t),!0);return!0===i?b(r).set(t,n):i[r.id]=n,e};return i(p,{delete:function(e){var t=m(this);if(!c(e))return!1;var n=o(e);return!0===n?b(t).delete(e):n&&h(n,t.id)&&delete n[t.id]},has:function(e){var t=m(this);if(!c(e))return!1;var n=o(e);return!0===n?b(t).has(e):n&&h(n,t.id)}}),i(p,n?{get:function(e){var t=m(this);if(c(e)){var n=o(e);if(!0===n)return b(t).get(e);if(n)return n[t.id]}},set:function(e,t){return v(this,e,t)}}:{add:function(e){return v(this,e,!0)}}),d}}},16468:(e,t,n)=>{"use strict";var r=n(46518),i=n(44576),o=n(79504),s=n(92796),a=n(36840),l=n(3451),c=n(72652),u=n(90679),d=n(94901),h=n(64117),p=n(20034),f=n(79039),g=n(84428),m=n(10687),v=n(23167);e.exports=function(e,t,n){var y=-1!==e.indexOf("Map"),w=-1!==e.indexOf("Weak"),b=y?"set":"add",_=i[e],S=_&&_.prototype,x=_,k={},E=function(e){var t=o(S[e]);a(S,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return(!w||!!p(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return w&&!p(e)?void 0:t(this,0===e?0:e)}:"has"===e?function(e){return(!w||!!p(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(s(e,!d(_)||!(w||S.forEach&&!f(function(){new _().entries().next()}))))x=n.getConstructor(t,e,y,b),l.enable();else if(s(e,!0)){var C=new x,P=C[b](w?{}:-0,1)!==C,T=f(function(){C.has(1)}),L=g(function(e){new _(e)}),I=!w&&f(function(){for(var e=new _,t=5;t--;)e[b](t,t);return!e.has(-0)});L||((x=t(function(e,t){u(e,S);var n=v(new _,e,x);return h(t)||c(t,n[b],{that:n,AS_ENTRIES:y}),n})).prototype=S,S.constructor=x),(T||I)&&(E("delete"),E("has"),y&&E("get")),(I||P)&&E(b),w&&S.clear&&delete S.clear}return k[e]=x,r({global:!0,constructor:!0,forced:x!==_},k),m(x,e),w||n.setStrong(x,e,y),x}},77740:(e,t,n)=>{"use strict";var r=n(39297),i=n(35031),o=n(77347),s=n(24913);e.exports=function(e,t,n){for(var a=i(t),l=s.f,c=o.f,u=0;u<a.length;u++){var d=a[u];r(e,d)||n&&r(n,d)||l(e,d,c(t,d))}}},41436:(e,t,n)=>{"use strict";var r=n(78227)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},12211:(e,t,n)=>{"use strict";e.exports=!n(79039)(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},77240:(e,t,n)=>{"use strict";var r=n(79504),i=n(67750),o=n(655),s=/"/g,a=r("".replace);e.exports=function(e,t,n,r){var l=o(i(e)),c="<"+t;return""!==n&&(c+=" "+n+'="'+a(o(r),s,""")+'"'),c+">"+l+"</"+t+">"}},62529:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},66699:(e,t,n)=>{"use strict";var r=n(43724),i=n(24913),o=n(6980);e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},6980:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},97040:(e,t,n)=>{"use strict";var r=n(43724),i=n(24913),o=n(6980);e.exports=function(e,t,n){r?i.f(e,t,o(0,n)):e[t]=n}},70380:(e,t,n)=>{"use strict";var r=n(79504),i=n(79039),o=n(60533).start,s=RangeError,a=isFinite,l=Math.abs,c=Date.prototype,u=c.toISOString,d=r(c.getTime),h=r(c.getUTCDate),p=r(c.getUTCFullYear),f=r(c.getUTCHours),g=r(c.getUTCMilliseconds),m=r(c.getUTCMinutes),v=r(c.getUTCMonth),y=r(c.getUTCSeconds);e.exports=i(function(){return"0385-07-25T07:06:39.999Z"!==u.call(new Date(-5e13-1))})||!i(function(){u.call(new Date(NaN))})?function(){if(!a(d(this)))throw new s("Invalid time value");var e=p(this),t=g(this),n=e<0?"-":e>9999?"+":"";return n+o(l(e),n?6:4,0)+"-"+o(v(this)+1,2,0)+"-"+o(h(this),2,0)+"T"+o(f(this),2,0)+":"+o(m(this),2,0)+":"+o(y(this),2,0)+"."+o(t,3,0)+"Z"}:u},53640:(e,t,n)=>{"use strict";var r=n(28551),i=n(84270),o=TypeError;e.exports=function(e){if(r(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw new o("Incorrect hint");return i(this,e)}},62106:(e,t,n)=>{"use strict";var r=n(50283),i=n(24913);e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),i.f(e,t,n)}},36840:(e,t,n)=>{"use strict";var r=n(94901),i=n(24913),o=n(50283),s=n(39433);e.exports=function(e,t,n,a){a||(a={});var l=a.enumerable,c=void 0!==a.name?a.name:t;if(r(n)&&o(n,c,a),a.global)l?e[t]=n:s(t,n);else{try{a.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}
20l?e[t]=n:i.f(e,t,{value:n,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e}},56279:(e,t,n)=>{"use strict";var r=n(36840);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},39433:(e,t,n)=>{"use strict";var r=n(44576),i=Object.defineProperty;e.exports=function(e,t){try{i(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},84606:(e,t,n)=>{"use strict";var r=n(16823),i=TypeError;e.exports=function(e,t){if(!delete e[t])throw new i("Cannot delete property "+r(t)+" of "+r(e))}},43724:(e,t,n)=>{"use strict";e.exports=!n(79039)(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},94483:(e,t,n)=>{"use strict";var r,i,o,s,a=n(44576),l=n(89429),c=n(1548),u=a.structuredClone,d=a.ArrayBuffer,h=a.MessageChannel,p=!1;if(c)p=function(e){u(e,{transfer:[e]})};else if(d)try{!h&&(r=l("worker_threads"))&&(h=r.MessageChannel),h&&(i=new h,o=new d(2),s=function(e){i.port1.postMessage(null,[e])},2===o.byteLength&&(s(o),0===o.byteLength&&(p=s)))}catch(e){}e.exports=p},4055:(e,t,n)=>{"use strict";var r=n(44576),i=n(20034),o=r.document,s=i(o)&&i(o.createElement);e.exports=function(e){return s?o.createElement(e):{}}},96837:e=>{"use strict";var t=TypeError;e.exports=function(e){if(e>0x1fffffffffffff)throw t("Maximum allowed index exceeded");return e}},55002:e=>{"use strict";e.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1}
20,InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},67400:e=>{"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},79296:(e,t,n)=>{"use strict";var r=n(4055)("span").classList,i=r&&r.constructor&&r.constructor.prototype;e.exports=i===Object.prototype?void 0:i},88727:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},13709:(e,t,n)=>{"use strict";var r=n(82839).match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},13763:(e,t,n)=>{"use strict";var r=n(82839);e.exports=/MSIE|Trident/.test(r)},44265:(e,t,n)=>{"use strict";var r=n(82839);e.exports=/ipad|iphone|ipod/i.test(r)&&"undefined"!=typeof Pebble},89544:(e,t,n)=>{"use strict";var r=n(82839);
20e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},16193:(e,t,n)=>{"use strict";e.exports="NODE"===n(84215)},7860:(e,t,n)=>{"use strict";var r=n(82839);e.exports=/web0s(?!.*chrome)/i.test(r)},82839:(e,t,n)=>{"use strict";var r=n(44576).navigator,i=r&&r.userAgent;e.exports=i?String(i):""},39519:(e,t,n)=>{"use strict";var r,i,o=n(44576),s=n(82839),a=o.process,l=o.Deno,c=a&&a.versions||l&&l.version,u=c&&c.v8;u&&(i=(r=u.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&s&&(!(r=s.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=s.match(/Chrome\/(\d+)/))&&(i=+r[1]),e.exports=i},3607:(e,t,n)=>{"use strict";var r=n(82839).match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},84215:(e,t,n)=>{"use strict";var r=n(44576),i=n(82839),o=n(22195),s=function(e){return i.slice(0,e.length)===e};e.exports=s("Bun/")?"BUN":s("Cloudflare-Workers")?"CLOUDFLARE":s("Deno/")?"DENO":s("Node.js/")?"NODE":r.Bun&&"string"==typeof Bun.version?"BUN":r.Deno&&"object"==typeof Deno.version?"DENO":"process"===o(r.process)?"NODE":r.window&&r.document?"BROWSER":"REST"},38574:(e,t,n)=>{"use strict";var r=n(79504),i=Error,o=r("".replace),s=String(new i("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,l=a.test(s);e.exports=function(e,t){if(l&&"string"==typeof e&&!i.prepareStackTrace)for(;t--;)e=o(e,a,"");return e}},80747:(e,t,n)=>{"use strict";var r=n(66699),i=n(38574),o=n(24659),s=Error.captureStackTrace;e.exports=function(e,t,n,a){o&&(s?s(e,t):r(e,"stack",i(n,a)))}},24659:(e,t,n)=>{"use strict";var r=n(79039),i=n(6980);e.exports=!r(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",i(1,7)),7!==e.stack)})},77536:(e,t,n)=>{"use strict";var r=n(43724),i=n(79039),o=n(28551),s=n(32603),a=Error.prototype.toString;e.exports=i(function(){if(r){var e=Object.create(Object.defineProperty({},"name",{get:function(){return this===e}}));if("true"!==a.call(e))return!0}return"2: 1"!==a.call({message:1,name:2})||"Error"!==a.call({})})?function(){var e=o(this),t=s(e.name,"Error"),n=s(e.message);return t?n?t+": "+n:t:n}:a},46518:(e,t,n)=>{"use strict";var r=n(44576),i=n(77347).f,o=n(66699),s=n(36840),a=n(39433),l=n(77740),c=n(92796);e.exports=function(e,t){var n,u,d,h,p,f=e.target,g=e.global,m=e.stat;if(n=g?r:m?r[f]||a(f,{}):r[f]&&r[f].prototype)for(u in t){if(h=t[u],d=e.dontCallGetSet?(p=i(n,u))&&p.value:n[u],!c(g?u:f+(m?".":"#")+u,e.forced)&&void 0!==d){if(typeof h==typeof d)continue;l(h,d)}(e.sham||d&&d.sham)&&o(h,"sham",!0),s(n,u,h,e)}}},79039:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},89228:(e,t,n)=>{"use strict";n(27495);var r=n(69565),i=n(36840),o=n(57323),s=n(79039),a=n(78227),l=n(66699),c=a("species"),u=RegExp.prototype;e.exports=function(e,t,n,d){var h=a(e),p=!s(function(){var t={};return t[h]=function(){return 7},7!==""[e](t)}),f=p&&!s(function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return t=!0,null},n[h](""),!t});if(!p||!f||n){var g=/./[h],m=t(h,""[e],function(e,t,n,i,s){var a=t.exec;return a===o||a===u.exec?p&&!s?{done:!0,value:r(g,t,n,i)}:{done:!0,value:r(e,n,t,i)}:{done:!1}});i(String.prototype,e,m[0]),i(u,h,m[1])}d&&l(u[h],"sham",!0)}},70259:(e,t,n)=>{"use strict";var r=n(34376),i=n(26198),o=n(96837),s=n(76080),a=function(e,t,n,l,c,u,d,h){for(var p,f,g=c,m=0,v=!!d&&s(d,h);m<l;)m in n&&(p=v?v(n[m],m,t):n[m],u>0&&r(p)?(f=i(p),g=a(e,t,p,f,g,u-1)-1):(o(g+1),e[g]=p),g++),m++;return g};e.exports=a},92744:(e,t,n)=>{"use strict";e.exports=!n(79039)(function(){return Object.isExtensible(Object.preventExtensions({}))})},18745:(e,t,n)=>{"use strict";var r=n(40616),i=Function.prototype,o=i.apply,s=i.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?s.bind(o):function(){return s.apply(o,arguments)})},76080:(e,t,n)=>{"use strict";var r=n(27476),i=n(79306),o=n(40616),s=r(r.bind);e.exports=function(e,t){return i(e),void 0===t?e:o?s(e,t):function(){return e.apply(t,arguments)}}},40616:(e,t,n)=>{"use strict";e.exports=!n(79039)(function(){var e=(function(){}).bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},30566:(e,t,n)=>{"use strict";var r=n(79504),i=n(79306),o=n(20034),s=n(39297),a=n(67680),l=n(40616),c=Function,u=r([].concat),d=r([].join),h={},p=function(e,t,n){if(!s(h,t)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";h[t]=c("C,a","return new C("+d(r,",")+")")}return h[t](e,n)};e.exports=l?c.bind:function(e){var t=i(this),n=t.prototype,r=a(arguments,1
20),s=function(){var n=u(r,a(arguments));return this instanceof s?p(t,n.length,n):t.apply(e,n)};return o(n)&&(s.prototype=n),s}},69565:(e,t,n)=>{"use strict";var r=n(40616),i=Function.prototype.call;e.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},10350:(e,t,n)=>{"use strict";var r=n(43724),i=n(39297),o=Function.prototype,s=r&&Object.getOwnPropertyDescriptor,a=i(o,"name"),l=a&&(!r||r&&s(o,"name").configurable);e.exports={EXISTS:a,PROPER:a&&"something"===(function(){}).name,CONFIGURABLE:l}},46706:(e,t,n)=>{"use strict";var r=n(79504),i=n(79306);e.exports=function(e,t,n){try{return r(i(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},27476:(e,t,n)=>{"use strict";var r=n(22195),i=n(79504);e.exports=function(e){if("Function"===r(e))return i(e)}},79504:(e,t,n)=>{"use strict";var r=n(40616),i=Function.prototype,o=i.call,s=r&&i.bind.bind(o,o);e.exports=r?s:function(e){return function(){return o.apply(e,arguments)}}},1886:(e,t,n)=>{"use strict";var r=n(69565),i=n(24074),o=n(28551),s=n(70081),a=n(1767),l=n(55966),c=n(78227)("asyncIterator");e.exports=function(e,t){var n=arguments.length<2?l(e,c):t;return n?o(r(n,e)):new i(a(s(e)))}},89429:(e,t,n)=>{"use strict";var r=n(44576),i=n(16193);e.exports=function(e){if(i){try{return r.process.getBuiltinModule(e)}catch(e){}try{return Function('return require("'+e+'")')()}catch(e){}}}},44124:(e,t,n)=>{"use strict";var r=n(44576);e.exports=function(e,t){var n=r[e],i=n&&n.prototype;return i&&i[t]}},97751:(e,t,n)=>{"use strict";var r=n(44576),i=n(94901);e.exports=function(e,t){var n;return arguments.length<2?i(n=r[e])?n:void 0:r[e]&&r[e][t]}},1767:e=>{"use strict";e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},48646:(e,t,n)=>{"use strict";var r=n(69565),i=n(28551),o=n(1767),s=n(50851);e.exports=function(e,t){t&&"string"==typeof e||i(e);var n=s(e);return o(i(void 0!==n?r(n,e):e))}},50851:(e,t,n)=>{"use strict";var r=n(36955),i=n(55966),o=n(64117),s=n(26269),a=n(78227)("iterator");e.exports=function(e){if(!o(e))return i(e,a)||i(e,"@@iterator")||s[r(e)]}},70081:(e,t,n)=>{"use strict";var r=n(69565),i=n(79306),o=n(28551),s=n(16823),a=n(50851),l=TypeError;e.exports=function(e,t){var n=arguments.length<2?a(e):t;if(i(n))return o(r(n,e));throw new l(s(e)+" is not iterable")}},66933:(e,t,n)=>{"use strict";var r=n(79504),i=n(34376),o=n(94901),s=n(22195),a=n(655),l=r([].push);e.exports=function(e){if(o(e))return e;if(i(e)){for(var t=e.length,n=[],r=0;r<t;r++){var c=e[r];"string"==typeof c?l(n,c):("number"==typeof c||"Number"===s(c)||"String"===s(c))&&l(n,a(c))}var u=n.length,d=!0;return function(e,t){if(d)return d=!1,t;if(i(this))return t;for(var r=0;r<u;r++)if(n[r]===e)return t}}}},55966:(e,t,n)=>{"use strict";var r=n(79306),i=n(64117);e.exports=function(e,t){var n=e[t];return i(n)?void 0:r(n)}},83789:(e,t,n)=>{"use strict";var r=n(79306),i=n(28551),o=n(69565),s=n(91291),a=n(1767),l="Invalid size",c=RangeError,u=TypeError,d=Math.max,h=function(e,t){this.set=e,this.size=d(t,0),this.has=r(e.has),this.keys=r(e.keys)};h.prototype={getIterator:function(){return a(i(o(this.keys,this.set)))},includes:function(e){return o(this.has,this.set,e)}},e.exports=function(e){i(e);var t=+e.size;if(t!=t)throw new u(l);var n=s(t);if(n<0)throw new c(l);return new h(e,n)}},2478:(e,t,n)=>{"use strict";var r=n(79504),i=n(48981),o=Math.floor,s=r("".charAt),a=r("".replace),l=r("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,u=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,d,h){var p=n+e.length,f=r.length,g=u;return void 0!==d&&(d=i(d),g=c),a(h,g,function(i,a){var c;switch(s(a,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,n);case"'":return l(t,p);case"<":c=d[l(a,1,-1)];break;default:var u=+a;if(0===u)return i;if(u>f){var h=o(u/10);if(0===h)return i;if(h<=f)return void 0===r[h-1]?s(a,1):r[h-1]+s(a,1);return i}c=r[u-1]}return void 0===c?"":c})}},44576:function(e,t,n){"use strict";var r=function(e){return e&&e.Math===Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},39297:(e,t,n)=>{"use strict";
20var r=n(79504),i=n(48981),o=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},30421:e=>{"use strict";e.exports={}},90757:e=>{"use strict";e.exports=function(e,t){try{1==arguments.length?console.error(e):console.error(e,t)}catch(e){}}},20397:(e,t,n)=>{"use strict";e.exports=n(97751)("document","documentElement")},35917:(e,t,n)=>{"use strict";var r=n(43724),i=n(79039),o=n(4055);e.exports=!r&&!i(function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},88490:e=>{"use strict";var t=Array,n=Math.abs,r=Math.pow,i=Math.floor,o=Math.log,s=Math.LN2;e.exports={pack:function(e,a,l){var c,u,d,h=t(l),p=8*l-a-1,f=(1<<p)-1,g=f>>1,m=23===a?r(2,-24)-r(2,-77):0,v=+(e<0||0===e&&1/e<0),y=0;for((e=n(e))!=e||e===1/0?(u=+(e!=e),c=f):(d=r(2,-(c=i(o(e)/s))),e*d<1&&(c--,d*=2),c+g>=1?e+=m/d:e+=m*r(2,1-g),e*d>=2&&(c++,d/=2),c+g>=f?(u=0,c=f):c+g>=1?(u=(e*d-1)*r(2,a),c+=g):(u=e*r(2,g-1)*r(2,a),c=0));a>=8;)h[y++]=255&u,u/=256,a-=8;for(c=c<<a|u,p+=a;p>0;)h[y++]=255&c,c/=256,p-=8;return h[y-1]|=128*v,h},unpack:function(e,t){var n,i=e.length,o=8*i-t-1,s=(1<<o)-1,a=s>>1,l=o-7,c=i-1,u=e[c--],d=127&u;for(u>>=7;l>0;)d=256*d+e[c--],l-=8;for(n=d&(1<<-l)-1,d>>=-l,l+=t;l>0;)n=256*n+e[c--],l-=8;if(0===d)d=1-a;else{if(d===s)return n?NaN:u?-1/0:1/0;n+=r(2,t),d-=a}return(u?-1:1)*n*r(2,d-t)}}},47055:(e,t,n)=>{"use strict";var r=n(79504),i=n(79039),o=n(22195),s=Object,a=r("".split);e.exports=i(function(){return!s("z").propertyIsEnumerable(0)})?function(e){return"String"===o(e)?a(e,""):s(e)}:s},23167:(e,t,n)=>{"use strict";var r=n(94901),i=n(20034),o=n(52967);e.exports=function(e,t,n){var s,a;return o&&r(s=t.constructor)&&s!==n&&i(a=s.prototype)&&a!==n.prototype&&o(e,a),e}},33706:(e,t,n)=>{"use strict";var r=n(79504),i=n(94901),o=n(77629),s=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(e){return s(e)}),e.exports=o.inspectSource},77584:(e,t,n)=>{"use strict";var r=n(20034),i=n(66699);e.exports=function(e,t){r(t)&&"cause"in t&&i(e,"cause",t.cause)}},3451:(e,t,n)=>{"use strict";var r=n(46518),i=n(79504),o=n(30421),s=n(20034),a=n(39297),l=n(24913).f,c=n(38480),u=n(10298),d=n(34124),h=n(33392),p=n(92744),f=!1,g=h("meta"),m=0,v=function(e){l(e,g,{value:{objectID:"O"+m++,weakData:{}}})},y=e.exports={enable:function(){y.enable=function(){},f=!0;var e=c.f,t=i([].splice),n={};n[g]=1,e(n).length&&(c.f=function(n){for(var r=e(n),i=0,o=r.length;i<o;i++)if(r[i]===g){t(r,i,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:u.f}))},fastKey:function(e,t){if(!s(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,g)){if(!d(e))return"F";if(!t)return"E";v(e)}return e[g].objectID},getWeakData:function(e,t){if(!a(e,g)){if(!d(e))return!0;if(!t)return!1;v(e)}return e[g].weakData},onFreeze:function(e){return p&&f&&d(e)&&!a(e,g)&&v(e),e}};o[g]=!0},91181:(e,t,n)=>{"use strict";var r,i,o,s=n(58622),a=n(44576),l=n(20034),c=n(66699),u=n(39297),d=n(77629),h=n(66119),p=n(30421),f="Object already initialized",g=a.TypeError,m=a.WeakMap;if(s||d.state){var v=d.state||(d.state=new m);v.get=v.get,v.has=v.has,v.set=v.set,r=function(e,t){if(v.has(e))throw new g(f);return t.facade=e,v.set(e,t),t},i=function(e){return v.get(e)||{}},o=function(e){return v.has(e)}}else{var y=h("state");p[y]=!0,r=function(e,t){if(u(e,y))throw new g(f);return t.facade=e,c(e,y,t),t},i=function(e){return u(e,y)?e[y]:{}},o=function(e){return u(e,y)}}e.exports={set:r,get:i,has:o,enforce:function(e){return o(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=i(t)).type!==e)throw new g("Incompatible receiver, "+e+" required");return n}}}},44209:(e,t,n)=>{"use strict";var r=n(78227),i=n(26269),o=r("iterator"),s=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||s[o]===e)}},34376:(e,t,n)=>{"use strict";var r=n(22195);e.exports=Array.isArray||function(e){return"Array"===r(e)}},18727:(e,t,n)=>{"use strict";var r=n(36955);e.exports=function(e){var t=r(e);return"BigInt64Array"===t||"BigUint64Array"===t}},94901:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},33517:(e,t,n)=>{"use strict";var r=n(79504),i=n(79039),o=n(94901),s=n(36955),a=n(97751),l=n(33706),c=function(){},u=a("Reflect","construct"),d=/^\s*(?:class|function)\b/,h=r(d.exec),p=!d.test(c),f=function(e){if(!o(e))return!1;try{return u(c,[],e),!0}catch(e){return!1}},g=function(e){if(!o(e))return!1;switch(s(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!h(d,l(e))}catch(e){return!0}};g.sham=!0,e.exports=!u||i(function(){var e;
20return f(f.call)||!f(Object)||!f(function(){e=!0})||e})?g:f},16575:(e,t,n)=>{"use strict";var r=n(39297);e.exports=function(e){return void 0!==e&&(r(e,"value")||r(e,"writable"))}},92796:(e,t,n)=>{"use strict";var r=n(79039),i=n(94901),o=/#|\.prototype\./,s=function(e,t){var n=l[a(e)];return n===u||n!==c&&(i(t)?r(t):!!t)},a=s.normalize=function(e){return String(e).replace(o,".").toLowerCase()},l=s.data={},c=s.NATIVE="N",u=s.POLYFILL="P";e.exports=s},2087:(e,t,n)=>{"use strict";var r=n(20034),i=Math.floor;e.exports=Number.isInteger||function(e){return!r(e)&&isFinite(e)&&i(e)===e}},64117:e=>{"use strict";e.exports=function(e){return null==e}},20034:(e,t,n)=>{"use strict";var r=n(94901);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},13925:(e,t,n)=>{"use strict";var r=n(20034);e.exports=function(e){return r(e)||null===e}},96395:e=>{"use strict";e.exports=!1},60788:(e,t,n)=>{"use strict";var r=n(20034),i=n(22195),o=n(78227)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"===i(e))}},10757:(e,t,n)=>{"use strict";var r=n(97751),i=n(94901),o=n(1625),s=n(7040),a=Object;e.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return i(t)&&o(t.prototype,a(e))}},40507:(e,t,n)=>{"use strict";var r=n(69565);e.exports=function(e,t,n){for(var i,o,s=n?e:e.iterator,a=e.next;!(i=r(a,s)).done;)if(void 0!==(o=t(i.value)))return o}}
vendor: 5,442 bytes, line 20
20,72652:(e,t,n)=>{"use strict";var r=n(76080),i=n(69565),o=n(28551),s=n(16823),a=n(44209),l=n(26198),c=n(1625),u=n(70081),d=n(50851),h=n(9539),p=TypeError,f=function(e,t){this.stopped=e,this.result=t},g=f.prototype;e.exports=function(e,t,n){var m,v,y,w,b,_,S,x=n&&n.that,k=!!(n&&n.AS_ENTRIES),E=!!(n&&n.IS_RECORD),C=!!(n&&n.IS_ITERATOR),P=!!(n&&n.INTERRUPTED),T=r(t,x),L=function(e){return m&&h(m,"normal"),new f(!0,e)},I=function(e){return k?(o(e),P?T(e[0],e[1],L):T(e[0],e[1])):P?T(e,L):T(e)};if(E)m=e.iterator;else if(C)m=e;else{if(!(v=d(e)))throw new p(s(e)+" is not iterable");if(a(v)){for(y=0,w=l(e);w>y;y++)if((b=I(e[y]))&&c(g,b))return b;return new f(!1)}m=u(e,v)}for(_=E?e.next:m.next;!(S=i(_,m)).done;){try{b=I(S.value)}catch(e){h(m,"throw",e)}if("object"==typeof b&&b&&c(g,b))return b}return new f(!1)}},91385:(e,t,n)=>{"use strict";var r=n(9539);e.exports=function(e,t,n){for(var i=e.length-1;i>=0;i--)if(void 0!==e[i])try{n=r(e[i].iterator,t,n)}catch(e){t="throw",n=e}if("throw"===t)throw n;return n}},9539:(e,t,n)=>{"use strict";var r=n(69565),i=n(28551),o=n(55966);e.exports=function(e,t,n){var s,a;i(e);try{if(!(s=o(e,"return"))){if("throw"===t)throw n;return n}s=r(s,e)}catch(e){a=!0,s=e}if("throw"===t)throw n;if(a)throw s;return i(s),n}},33994:(e,t,n)=>{"use strict";var r=n(57657).IteratorPrototype,i=n(2360),o=n(6980),s=n(10687),a=n(26269),l=function(){return this};e.exports=function(e,t,n,c){var u=t+" Iterator";return e.prototype=i(r,{next:o(+!c,n)}),s(e,u,!1,!0),a[u]=l,e}},19462:(e,t,n)=>{"use strict";var r=n(69565),i=n(2360),o=n(66699),s=n(56279),a=n(78227),l=n(91181),c=n(55966),u=n(57657).IteratorPrototype,d=n(62529),h=n(9539),p=n(91385),f=a("toStringTag"),g="IteratorHelper",m="WrapForValidIterator",v="normal",y="throw",w=l.set,b=function(e){var t=l.getterFor(e?m:g);return s(i(u),{next:function(){var n=t(this);if(e)return n.nextHandler();if(n.done)return d(void 0,!0);try{var r=n.nextHandler();return n.returnHandlerResult?r:d(r,n.done)}catch(e){throw n.done=!0,e}},return:function(){var n=t(this),i=n.iterator;if(n.done=!0,e){var o=c(i,"return");return o?r(o,i):d(void 0,!0)}if(n.inner)try{h(n.inner.iterator,v)}catch(e){return h(i,y,e)}if(n.openIters)try{p(n.openIters,v)}catch(e){return h(i,y,e)}return i&&h(i,v),d(void 0,!0)}})},_=b(!0),S=b(!1);o(S,f,"Iterator Helper"),e.exports=function(e,t,n){var r=function(r,i){i?(i.iterator=r.iterator,i.next=r.next):i=r,i.type=t?m:g,i.returnHandlerResult=!!n,i.nextHandler=e,i.counter=0,i.done=!1,w(this,i)};return r.prototype=t?_:S,r}},51088:(e,t,n)=>{"use strict";var r=n(46518),i=n(69565),o=n(96395),s=n(10350),a=n(94901),l=n(33994),c=n(42787),u=n(52967),d=n(10687),h=n(66699),p=n(36840),f=n(78227),g=n(26269),m=n(57657),v=s.PROPER,y=s.CONFIGURABLE,w=m.IteratorPrototype,b=m.BUGGY_SAFARI_ITERATORS,_=f("iterator"),S="keys",x="values",k="entries",E=function(){return this};e.exports=function(e,t,n,s,f,m,C){l(n,t,s);var P,T,L,I=function(e){if(e===f&&D)return D;if(!b&&e&&e in M)return M[e];switch(e){case S:case x:case k:return function(){return new n(this,e)}}return function(){return new n(this)}},O=t+" Iterator",A=!1,M=e.prototype,N=M[_]||M["@@iterator"]||f&&M[f],D=!b&&N||I(f),R="Array"===t&&M.entries||N;if(R&&(P=c(R.call(new e)))!==Object.prototype&&P.next&&(!o&&c(P)!==w&&(u?u(P,w):a(P[_])||p(P,_,E)),d(P,O,!0,!0),o&&(g[O]=E)),v&&f===x&&N&&N.name!==x&&(!o&&y?h(M,"name",x):(A=!0,D=function(){return i(N,this)})),f)if(T={values:I(x),keys:m?D:I(S),entries:I(k)},C)for(L in T)!b&&!A&&L in M||p(M,L,T[L]);else r({target:t,proto:!0,forced:b||A},T);return(!o||C)&&M[_]!==D&&p(M,_,D,{name:f}),g[t]=D,T}},30684:e=>{"use strict";e.exports=function(e,t){var n="function"==typeof Iterator&&Iterator.prototype[e];if(n)try{n.call({next:null},t).next()}catch(e){return!0}}},84549:(e,t,n)=>{"use strict";var r=n(44576);e.exports=function(e,t){var n=r.Iterator,i=n&&n.prototype,o=i&&i[e],s=!1;if(o)try{o.call({next:function(){return{done:!0}},return:function(){s=!0}},-1)}catch(e){e instanceof t||(s=!1)}if(!s)return o}},57657:(e,t,n)=>{"use strict";var r,i,o,s=n(79039),a=n(94901),l=n(20034),c=n(2360),u=n(42787),d=n(36840),h=n(78227),p=n(96395),f=h("iterator"),g=!1;[].keys&&("next"in(o=[].keys())?(i=u(u(o)))!==Object.prototype&&(r=i):g=!0),!l(r)||s(function(){var e={};return r[f].call(e)!==e})?r={}:p&&(r=c(r)),a(r[f])||d(r,f,function(){return this}),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:g}},26269:e=>{"use strict";e.exports={}},26198:(e,t,n)=>{"use strict";var r=n(18014);e.exports=function(e){return r(e.length)}},50283:(e,t,n)=>{"use strict";var r=n(79504),i=n(79039),o=n(94901),s=n(39297),a=n(43724),l=n(10350).CONFIGURABLE,c=n(33706),u=n(91181),d=u.enforce,h=u.get,p=String,f=Object.defineProperty,g=r("".slice),m=r("".replace),v=r([].join),y=a&&!i(function(){return 8!==f(function(){},"length",{value:8}).length}),w=String(String).split("String"),b=e.exports=function(e,t,n){"Symbol("===g(p(t),0,7)&&(t="["+m(p(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!s(e,"name")||l&&e.name!==t)&&(a?f(e,"name",{value:t,configurable:!0}):e.name=t),y&&n&&s(n,"arity")&&e.length!==n.arity&&f(e,"length",{value:n.arity});try{n&&s(n,"constructor")&&n.constructor?a&&f(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=d(e);return s(r,"source")||(r.source=v(w,"string"==typeof t?t:"")),e};Function.prototype.toString=b(function(){return o(this)&&h(this).source||c(this)},"toString")}
20,72248:(e,t,n)=>{"use strict";var r=n(79504),i=Map.prototype;e.exports={Map:Map,set:r(i.set),get:r(i.get),has:r(i.has),remove:r(i.delete),proto:i}},53250:e=>{"use strict";var t=Math.expm1,n=Math.exp;e.exports=!t||t(10)>22025.465794806718||22025.465794806718>t(10)||-2e-17!==t(-2e-17)?function(e){var t=+e;return 0===t?t:t>-1e-6&&t<1e-6?t+t*t/2:n(t)-1}:t},33164:(e,t,n)=>{"use strict";var r=n(77782),i=n(53602),o=Math.abs;e.exports=function(e,t,n,s){var a=+e,l=o(a),c=r(a);if(l<s)return c*i(l/s/t)*s*t;var u=(1+t/2220446049250313e-31)*l,d=u-(u-l);return d>n||d!=d?1/0*c:c*d}},15617:(e,t,n)=>{"use strict";var r=n(33164);e.exports=Math.fround||function(e){return r(e,11920928955078125e-23,34028234663852886e22,11754943508222875e-54)}},49340:e=>{"use strict";var t=Math.log,n=Math.LOG10E;e.exports=Math.log10||function(e){return t(e)*n}},7740:e=>{"use strict";var t=Math.log;e.exports=Math.log1p||function(e){var n=+e;return n>-1e-8&&n<1e-8?n-n*n/2:t(1+n)}},67787:e=>{"use strict";var t=Math.log,n=Math.LN2;e.exports=Math.log2||function(e){return t(e)/n}},53602:e=>{"use strict";e.exports=function(e){return e+0x10000000000000-0x10000000000000}},77782:e=>{"use strict";e.exports=Math.sign||function(e){var t=+e;return 0===t||t!=t?t:t<0?-1:1}},80741:e=>{"use strict";var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},91955:(e,t,n)=>{"use strict";var r,i,o,s,a,l=n(44576),c=n(93389),u=n(76080),d=n(59225).set,h=n(18265),p=n(89544),f=n(44265),g=n(7860),m=n(16193),v=l.MutationObserver||l.WebKitMutationObserver,y=l.document,w=l.process,b=l.Promise,_=c("queueMicrotask");if(!_){var S=new h,x=function(){var e,t;for(m&&(e=w.domain)&&e.exit();t=S.get();)try{t()}catch(e){throw S.head&&r(),e}e&&e.enter()};p||m||g||!v||!y?!f&&b&&b.resolve?((s=b.resolve(void 0)).constructor=b,a=u(s.then,s),r=function(){a(x)}):m?r=function(){w.nextTick(x)}:(d=u(d,l),r=function(){d(x)}):(i=!0,o=y.createTextNode(""),new v(x).observe(o,{characterData:!0}),r=function(){o.data=i=!i}),_=function(e){S.head||r(),S.add(e)}}e.exports=_},36043:(e,t,n)=>{"use strict";var r=n(79306),i=TypeError,o=function(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw new i("Bad Promise constructor");t=e,n=r}),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new o(e)}},32603:(e,t,n)=>{"use strict";var r=n(655);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},24149:e=>{"use strict";var t=RangeError;e.exports=function(e){if(e==e)return e;throw new t("NaN is not allowed")}},60511:(e,t,n)=>{"use strict";var r=n(60788),i=TypeError;e.exports=function(e){if(r(e))throw new i("The method doesn't accept regular expressions");return e}},50360:(e,t,n)=>{"use strict";var r=n(44576).isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&r(e)}},33904:(e,t,n)=>{"use strict";var r=n(44576),i=n(79039),o=n(79504),s=n(655),a=n(43802).trim,l=n(47452),c=o("".charAt),u=r.parseFloat,d=r.Symbol,h=d&&d.iterator;e.exports=1/u(l+"-0")!=-1/0||h&&!i(function(){u(Object(h))})?function(e){var t=a(s(e)),n=u(t);return 0===n&&"-"===c(t,0)?-0:n}:u},52703:(e,t,n)=>{"use strict";var r=n(44576),i=n(79039),o=n(79504),s=n(655),a=n(43802).trim,l=n(47452),c=r.parseInt,u=r.Symbol,d=u&&u.iterator,h=/^[+-]?0x/i,p=o(h.exec);e.exports=8!==c(l+"08")||22!==c(l+"0x16")||d&&!i(function(){c(Object(d))})?function(e,t){var n=a(s(e));return c(n,t>>>0||(p(h,n)?16:10))}:c},44213:(e,t,n)=>{"use strict";var r=n(43724),i=n(79504),o=n(69565),s=n(79039),a=n(71072),l=n(33717),c=n(48773),u=n(48981),d=n(47055),h=Object.assign,p=Object.defineProperty,f=i([].concat);e.exports=!h||s(function(){if(r&&1!==h({b:1},h(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol("assign detection"),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach(function(e){t[e]=e}),7!==h({},e)[n]||a(h({},t)).join("")!==i})?function(e,t){for(var n=u(e),i=arguments.length,s=1,h=l.f,p=c.f;i>s;)for(var g,m=d(arguments[s++]),v=h?f(a(m),h(m)):a(m),y=v.length,w=0;y>w;)g=v[w++],(!r||o(p,m,g))&&(n[g]=m[g]);return n}:h},2360:(e,t,n)=>{"use strict";var r,i=n(28551),o=n(96801),s=n(88727),a=n(30421),l=n(20397),c=n(4055),u=n(66119),d="prototype",h="script",p=u("IE_PROTO"),f=function(){},g=function(e){return"<"+h+">"+e+"</"+h+">"},m=function(e){e.write(g("")),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){var e,t=c("iframe");return t.style.display="none",l.appendChild(t),t.src=String("java"+h+":"),(e=t.contentWindow.document).open(),e.write(g("document.F=Object")),e.close(),e.F},y=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}y="undefined"!=typeof document?document.domain&&r?m(r):v():m(r);for(var e=s.length;e--;)delete y[d][s[e]];return y()};a[p]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(f[d]=i(e),n=new f,f[d]=null,n[p]=e):n=y(),void 0===t?n:o.f(n,t)}},96801:(e,t,n)=>{"use strict";var r=n(43724),i=n(48686),o=n(24913),s=n(28551),a=n(25397),l=n(71072);t.f=r&&!i?Object.defineProperties:function(e,t){s(e);for(var n,r=a(t),i=l(t),c=i.length,u=0;c>u;)o.f(e,n=i[u++],r[n]);return e}},24913:(e,t,n)=>{"use strict";var r=n(43724),i=n(35917),o=n(48686),s=n(28551),a=n(56969),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d="enumerable",h="configurable",p="writable";t.f=r?o?function(e,t,n){if(s(e),t=a(t),s(n),"function"==typeof e&&"prototype"===t&&"value"in n&&p in n&&!n[p]){var r=u(e,t);
20r&&r[p]&&(e[t]=n.value,n={configurable:h in n?n[h]:r[h],enumerable:d in n?n[d]:r[d],writable:!1})}return c(e,t,n)}:c:function(e,t,n){if(s(e),t=a(t),s(n),i)try{return c(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},77347:(e,t,n)=>{"use strict";var r=n(43724),i=n(69565),o=n(48773),s=n(6980),a=n(25397),l=n(56969),c=n(39297),u=n(35917),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=a(e),t=l(t),u)try{return d(e,t)}catch(e){}if(c(e,t))return s(!i(o.f,e,t),e[t])}},10298:(e,t,n)=>{"use strict";var r=n(22195),i=n(25397),o=n(38480).f,s=n(67680),a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(e){try{return o(e)}catch(e){return s(a)}};e.exports.f=function(e){return a&&"Window"===r(e)?l(e):o(i(e))}},38480:(e,t,n)=>{"use strict";var r=n(61828),i=n(88727).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},33717:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},42787:(e,t,n)=>{"use strict";var r=n(39297),i=n(94901),o=n(48981),s=n(66119),a=n(12211),l=s("IE_PROTO"),c=Object,u=c.prototype;e.exports=a?c.getPrototypeOf:function(e){var t=o(e);if(r(t,l))return t[l];var n=t.constructor;return i(n)&&t instanceof n?n.prototype:t instanceof c?u:null}},34124:(e,t,n)=>{"use strict";var r=n(79039),i=n(20034),o=n(22195),s=n(15652),a=Object.isExtensible;e.exports=r(function(){a(1)})||s?function(e){return!!i(e)&&(!s||"ArrayBuffer"!==o(e))&&(!a||a(e))}:a},1625:(e,t,n)=>{"use strict";e.exports=n(79504)({}.isPrototypeOf)},61828:(e,t,n)=>{"use strict";var r=n(79504),i=n(39297),o=n(25397),s=n(19617).indexOf,a=n(30421),l=r([].push);e.exports=function(e,t){var n,r=o(e),c=0,u=[];for(n in r)!i(a,n)&&i(r,n)&&l(u,n);for(;t.length>c;)i(r,n=t[c++])&&(~s(u,n)||l(u,n));return u}},71072:(e,t,n)=>{"use strict";var r=n(61828),i=n(88727);e.exports=Object.keys||function(e){return r(e,i)}},48773:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor;t.f=r&&!n.call({1:2},1)?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},42551:(e,t,n)=>{"use strict";var r=n(96395),i=n(44576),o=n(79039),s=n(3607);e.exports=r||!o(function(){if(!s||!(s<535)){var e=Math.random();__defineSetter__.call(null,e,function(){}),delete i[e]}})},52967:(e,t,n)=>{"use strict";var r=n(46706),i=n(20034),o=n(67750),s=n(73506);
20e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return o(n),s(r),i(n)&&(t?e(n,r):n.__proto__=r),n}}():void 0)},32357:(e,t,n)=>{"use strict";var r=n(43724),i=n(79039),o=n(79504),s=n(42787),a=n(71072),l=n(25397),c=o(n(48773).f),u=o([].push),d=r&&i(function(){var e=Object.create(null);return e[2]=2,!c(e,2)}),h=function(e){return function(t){for(var n,i=l(t),o=a(i),h=d&&null===s(i),p=o.length,f=0,g=[];p>f;)n=o[f++],(!r||(h?n in i:c(i,n)))&&u(g,e?[n,i[n]]:i[n]);return g}};e.exports={entries:h(!0),values:h(!1)}},53179:(e,t,n)=>{"use strict";var r=n(92140),i=n(36955);e.exports=r?({}).toString:function(){return"[object "+i(this)+"]"}},84270:(e,t,n)=>{"use strict";var r=n(69565),i=n(94901),o=n(20034),s=TypeError;e.exports=function(e,t){var n,a;if("string"===t&&i(n=e.toString)&&!o(a=r(n,e))||i(n=e.valueOf)&&!o(a=r(n,e))||"string"!==t&&i(n=e.toString)&&!o(a=r(n,e)))return a;throw new s("Can't convert object to primitive value")}},35031:(e,t,n)=>{"use strict";var r=n(97751),i=n(79504),o=n(38480),s=n(33717),a=n(28551),l=i([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(a(e)),n=s.f;return n?l(t,n(e)):t}},19167:(e,t,n)=>{"use strict";e.exports=n(44576)},1103:e=>{"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},10916:(e,t,n)=>{"use strict";var r=n(44576),i=n(80550),o=n(94901),s=n(92796),a=n(33706),l=n(78227),c=n(84215),u=n(96395),d=n(39519),h=i&&i.prototype,p=l("species"),f=!1,g=o(r.PromiseRejectionEvent);e.exports={CONSTRUCTOR:s("Promise",function(){var e=a(i),t=e!==String(i);if(!t&&66===d||u&&!(h.catch&&h.finally))return!0;if(!d||d<51||!/native code/.test(e)){var n=new i(function(e){e(1)}),r=function(e){e(function(){},function(){})};if((n.constructor={})[p]=r,!(f=n.then(function(){})instanceof r))return!0}return!t&&("BROWSER"===c||"DENO"===c)&&!g}),REJECTION_EVENT:g,SUBCLASSING:f}},80550:(e,t,n)=>{"use strict";e.exports=n(44576).Promise},93438:(e,t,n)=>{"use strict";var r=n(28551),i=n(20034),o=n(36043);e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e);return(0,n.resolve)(t),n.promise}},90537:(e,t,n)=>{"use strict";var r=n(80550),i=n(84428);e.exports=n(10916).CONSTRUCTOR||!i(function(e){r.all(e).then(void 0,function(){})})},11056:(e,t,n)=>{"use strict";var r=n(24913).f;e.exports=function(e,t,n){n in e||r(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},18265:e=>{"use strict";var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},e.exports=t},56682:(e,t,n)=>{"use strict";var r=n(69565),i=n(28551),o=n(94901),s=n(22195),a=n(57323),l=TypeError;e.exports=function(e,t){var n=e.exec;if(o(n)){var c=r(n,e,t);return null!==c&&i(c),c}if("RegExp"===s(e))return r(a,e,t);throw new l("RegExp#exec called on incompatible receiver")}},57323:(e,t,n)=>{"use strict";var r=n(69565),i=n(79504),o=n(655),s=n(67979),a=n(58429),l=n(25745),c=n(2360),u=n(91181).get,d=n(83635),h=n(18814),p=l("native-string-replace",String.prototype.replace),f=RegExp.prototype.exec,g=f,m=i("".charAt),v=i("".indexOf),y=i("".replace),w=i("".slice),b=function(){var e=/a/,t=/b*/g;return r(f,e,"a"),r(f,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),_=a.BROKEN_CARET,S=void 0!==/()??/.exec("")[1];
20(b||S||_||d||h)&&(g=function(e){var t,n,i,a,l,d,h,x=u(this),k=o(e),E=x.raw;if(E)return E.lastIndex=this.lastIndex,t=r(g,E,k),this.lastIndex=E.lastIndex,t;var C=x.groups,P=_&&this.sticky,T=r(s,this),L=this.source,I=0,O=k;if(P&&(-1===v(T=y(T,"y",""),"g")&&(T+="g"),O=w(k,this.lastIndex),this.lastIndex>0&&(!this.multiline||this.multiline&&` 21`!==m(k,this.lastIndex-1))&&(L="(?: "+L+")",O=" "+O,I++),n=RegExp("^(?:"+L+")",T)),S&&(n=RegExp("^"+L+"$(?!\\s)",T)),b&&(i=this.lastIndex),a=r(f,P?n:this,O),P?a?(a.input=w(a.input,I),a[0]=w(a[0],I),a.index=this.lastIndex,this.lastIndex+=a[0].length):this.lastIndex=0:b&&a&&(this.lastIndex=this.global?a.index+a[0].length:i),S&&a&&a.length>1&&r(p,a[0],n,function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(a[l]=void 0)}),a&&C)for(l=0,a.groups=d=c(null);l<C.length;l++)d[(h=C[l])[0]]=a[h[1]];return a}),e.exports=g},65213:(e,t,n)=>{"use strict";var r=n(44576),i=n(79039),o=r.RegExp;e.exports={correct:!i(function(){var e=!0;try{o(".","d")}catch(t){e=!1}var t={},n="",r=e?"dgimsy":"gimsy",i=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},s={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(s.hasIndices="d"),s)i(a,s[a]);return Object.getOwnPropertyDescriptor(o.prototype,"flags").get.call(t)!==r||n!==r})}},67979:(e,t,n)=>{"use strict";var r=n(28551);e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},61034:(e,t,n)=>{"use strict";var r=n(69565),i=n(39297),o=n(1625),s=n(65213),a=n(67979),l=RegExp.prototype;e.exports=s.correct?function(e){return e.flags}:function(e){return!s.correct&&o(l,e)&&!i(e,"flags")?r(a,e):e.flags}},58429:(e,t,n)=>{"use strict";var r=n(79039),i=n(44576).RegExp,o=r(function(){var e=i("a","y");return e.lastIndex=2,null!==e.exec("abcd")}),s=o||r(function(){return!i("a","y").sticky});e.exports={BROKEN_CARET:o||r(function(){var e=i("^r","gy");return e.lastIndex=2,null!==e.exec("str")}),MISSED_STICKY:s,UNSUPPORTED_Y:o}},83635:(e,t,n)=>{"use strict";var r=n(79039),i=n(44576).RegExp;e.exports=r(function(){var e=i(".","s");return!(e.dotAll&&e.test(` 22`)&&"s"===e.flags)})},18814:(e,t,n)=>{"use strict";var r=n(79039),i=n(44576).RegExp;e.exports=r(function(){var e=i("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})},67750:(e,t,n)=>{"use strict";var r=n(64117),i=TypeError;e.exports=function(e){if(r(e))throw new i("Can't call method on "+e);return e}},93389:(e,t,n)=>{"use strict";var r=n(44576),i=n(43724),o=Object.getOwnPropertyDescriptor;e.exports=function(e){if(!i)return r[e];var t=o(r,e);return t&&t.value}},3470:e=>{"use strict";e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},79472:(e,t,n)=>{"use strict";var r=n(44576),i=n(18745),o=n(94901),s=n(84215),a=n(82839),l=n(67680),c=n(22812),u=r.Function,d=/MSIE .\./.test(a)||"BUN"===s&&function(){var e=r.Bun.version.split(".");return e.length<3||"0"===e[0]&&(e[1]<3||"3"===e[1]&&"0"===e[2])}();e.exports=function(e,t){var n=t?2:1;return d?function(r,s){var a=c(arguments.length,1)>n,d=o(r)?r:u(r),h=a?l(arguments,n):[],p=a?function(){i(d,this,h)}:d;return t?e(p,s):e(p)}:e}},89286:(e,t,n)=>{"use strict";var r=n(94402),i=n(38469),o=r.Set,s=r.add;e.exports=function(e){var t=new o;return i(e,function(e){s(t,e)}),t}},83440:(e,t,n)=>{"use strict";var r=n(97080),i=n(94402),o=n(89286),s=n(25170),a=n(83789),l=n(38469),c=n(40507),u=i.has,d=i.remove;e.exports=function(e){var t=r(this),n=a(e),i=o(t);return s(t)<=n.size?l(t,function(e){n.includes(e)&&d(i,e)}):c(n.getIterator(),function(e){u(i,e)&&d(i,e)}),i}},94402:(e,t,n)=>{"use strict";var r=n(79504),i=Set.prototype;e.exports={Set:Set,add:r(i.add),has:r(i.has),remove:r(i.delete),proto:i}},68750:(e,t,n)=>{"use strict";var r=n(97080),i=n(94402),o=n(25170),s=n(83789),a=n(38469),l=n(40507),c=i.Set,u=i.add,d=i.has;e.exports=function(e){var t=r(this),n=s(e),i=new c;return o(t)>n.size?l(n.getIterator(),function(e){d(t,e)&&u(i,e)}):a(t,function(e){n.includes(e)&&u(i,e)}),i}}
22,64449:(e,t,n)=>{"use strict";var r=n(97080),i=n(94402).has,o=n(25170),s=n(83789),a=n(38469),l=n(40507),c=n(9539);e.exports=function(e){var t=r(this),n=s(e);if(o(t)<=n.size)return!1!==a(t,function(e){if(n.includes(e))return!1},!0);var u=n.getIterator();return!1!==l(u,function(e){if(i(t,e))return c(u,"normal",!1)})}},53838:(e,t,n)=>{"use strict";var r=n(97080),i=n(25170),o=n(38469),s=n(83789);e.exports=function(e){var t=r(this),n=s(e);return!(i(t)>n.size)&&!1!==o(t,function(e){if(!n.includes(e))return!1},!0)}},28527:(e,t,n)=>{"use strict";var r=n(97080),i=n(94402).has,o=n(25170),s=n(83789),a=n(40507),l=n(9539);e.exports=function(e){var t=r(this),n=s(e);if(o(t)<n.size)return!1;var c=n.getIterator();return!1!==a(c,function(e){if(!i(t,e))return l(c,"normal",!1)})}},38469:(e,t,n)=>{"use strict";var r=n(79504),i=n(40507),o=n(94402),s=o.Set,a=o.proto,l=r(a.forEach),c=r(a.keys),u=c(new s).next;e.exports=function(e,t,n){return n?i({iterator:c(e),next:u},t):l(e,t)}},84916:(e,t,n)=>{"use strict";var r=n(97751),i=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},o=function(e){return{size:e,has:function(){return!0},keys:function(){throw Error("e")}}};e.exports=function(e,t){var n=r("Set");try{new n()[e](i(0));try{return new n()[e](i(-1)),!1}catch(r){if(!t)return!0;try{return new n()[e](o(-1/0)),!1}catch(r){var s=new n;return s.add(1),s.add(2),t(s[e](o(1/0)))}}}catch(e){return!1}}},39835:e=>{"use strict";e.exports=function(e){try{var t=new Set,n=t[e]({size:0,has:function(){return!0},keys:function(){return Object.defineProperty({},"next",{get:function(){return t.clear(),t.add(4),function(){return{done:!0}}}})}});return 1===n.size&&4===n.values().next().value}catch(e){return!1}}},25170:(e,t,n)=>{"use strict";e.exports=n(46706)(n(94402).proto,"size","get")||function(e){return e.size}},87633:(e,t,n)=>{"use strict";var r=n(97751),i=n(62106),o=n(78227),s=n(43724),a=o("species");e.exports=function(e){var t=r(e);s&&t&&!t[a]&&i(t,a,{configurable:!0,get:function(){return this}})}},83650:(e,t,n)=>{"use strict";var r=n(97080),i=n(94402),o=n(89286),s=n(83789),a=n(40507),l=i.add,c=i.has,u=i.remove;e.exports=function(e){var t=r(this),n=s(e).getIterator(),i=o(t);return a(n,function(e){c(t,e)?u(i,e):l(i,e)}),i}},10687:(e,t,n)=>{"use strict";var r=n(24913).f,i=n(39297),o=n(78227)("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!i(e,o)&&r(e,o,{configurable:!0,value:t})}},44204:(e,t,n)=>{"use strict";var r=n(97080),i=n(94402).add,o=n(89286),s=n(83789),a=n(40507);e.exports=function(e){var t=r(this),n=s(e).getIterator(),l=o(t);return a(n,function(e){i(l,e)}),l}},66119:(e,t,n)=>{"use strict";var r=n(25745),i=n(33392),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},77629:(e,t,n)=>{"use strict";var r=n(96395),i=n(44576),o=n(39433),s="__core-js_shared__",a=e.exports=i[s]||o(s,{});(a.versions||(a.versions=[])).push({version:"3.44.0",mode:r?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.44.0/LICENSE",source:"https://github.com/zloirock/core-js"})},25745:(e,t,n)=>{"use strict";var r=n(77629);e.exports=function(e,t){return r[e]||(r[e]=t||{})}},2293:(e,t,n)=>{"use strict";var r=n(28551),i=n(35548),o=n(64117),s=n(78227)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||o(n=r(a)[s])?t:i(n)}},23061:(e,t,n)=>{"use strict";var r=n(79039);e.exports=function(e){return r(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})}},68183:(e,t,n)=>{"use strict";
22var r=n(79504),i=n(91291),o=n(655),s=n(67750),a=r("".charAt),l=r("".charCodeAt),c=r("".slice),u=function(e){return function(t,n){var r,u,d=o(s(t)),h=i(n),p=d.length;return h<0||h>=p?e?"":void 0:(r=l(d,h))<55296||r>56319||h+1===p||(u=l(d,h+1))<56320||u>57343?e?a(d,h):r:e?c(d,h,h+2):(r-55296<<10)+(u-56320)+65536}};e.exports={codeAt:u(!1),charAt:u(!0)}},83063:(e,t,n)=>{"use strict";var r=n(82839);e.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(r)},60533:(e,t,n)=>{"use strict";var r=n(79504),i=n(18014),o=n(655),s=n(72333),a=n(67750),l=r(s),c=r("".slice),u=Math.ceil,d=function(e){return function(t,n,r){var s,d,h=o(a(t)),p=i(n),f=h.length,g=void 0===r?" ":o(r);return p<=f||""===g?h:((d=l(g,u((s=p-f)/g.length))).length>s&&(d=c(d,0,s)),e?h+d:d+h)}};e.exports={start:d(!1),end:d(!0)}},3717:(e,t,n)=>{"use strict";var r=n(79504),i=/[^\0-\u007E]/,o=/[.\u3002\uFF0E\uFF61]/g,s="Overflow: input needs wider integers to process",a=RangeError,l=r(o.exec),c=Math.floor,u=String.fromCharCode,d=r("".charCodeAt),h=r([].join),p=r([].push),f=r("".replace),g=r("".split),m=r("".toLowerCase),v=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=d(e,n++);if(i>=55296&&i<=56319&&n<r){var o=d(e,n++);(64512&o)==56320?p(t,((1023&i)<<10)+(1023&o)+65536):(p(t,i),n--)}else p(t,i)}return t},y=function(e){return e+22+75*(e<26)},w=function(e,t,n){var r=0;for(e=n?c(e/700):e>>1,e+=c(e/t);e>455;)e=c(e/35),r+=36;return c(r+36*e/(e+38))},b=function(e){var t,n,r=[],i=(e=v(e)).length,o=128,l=0,d=72;for(t=0;t<e.length;t++)(n=e[t])<128&&p(r,u(n));var f=r.length,g=f;for(f&&p(r,"-");g<i;){var m=0x7fffffff;for(t=0;t<e.length;t++)(n=e[t])>=o&&n<m&&(m=n);var b=g+1;if(m-o>c((0x7fffffff-l)/b))throw new a(s);for(l+=(m-o)*b,o=m,t=0;t<e.length;t++){if((n=e[t])<o&&++l>0x7fffffff)throw new a(s);if(n===o){for(var _=l,S=36;;){var x=S<=d?1:S>=d+26?26:S-d;if(_<x)break;var k=_-x,E=36-x;p(r,u(y(x+k%E))),_=c(k/E),S+=36}p(r,u(y(_))),d=w(l,b,g===f),l=0,g++}}l++,o++}return h(r,"")};e.exports=function(e){var t,n,r=[],s=g(f(m(e),o,"."),".");for(t=0;t<s.length;t++)p(r,l(i,n=s[t])?"xn--"+b(n):n);return h(r,".")}},72333:(e,t,n)=>{"use strict";var r=n(91291),i=n(655),o=n(67750),s=RangeError;e.exports=function(e){var t=i(o(this)),n="",a=r(e);
22if(a<0||a===1/0)throw new s("Wrong number of repetitions");for(;a>0;(a>>>=1)&&(t+=t))1&a&&(n+=t);return n}},18866:(e,t,n)=>{"use strict";var r=n(43802).end;e.exports=n(60706)("trimEnd")?function(){return r(this)}:"".trimEnd},60706:(e,t,n)=>{"use strict";var r=n(10350).PROPER,i=n(79039),o=n(47452),s="âÂ
á ";e.exports=function(e){return i(function(){return!!o[e]()||s[e]()!==s||r&&o[e].name!==e})}},53487:(e,t,n)=>{"use strict";var r=n(43802).start;e.exports=n(60706)("trimStart")?function(){return r(this)}:"".trimStart},43802:(e,t,n)=>{"use strict";var r=n(79504),i=n(67750),o=n(655),s=n(47452),a=r("".replace),l=RegExp("^["+s+"]+"),c=RegExp("(^|[^"+s+"])["+s+"]+$"),u=function(e){return function(t){var n=o(i(t));return 1&e&&(n=a(n,l,"")),2&e&&(n=a(n,c,"$1")),n}};e.exports={start:u(1),end:u(2),trim:u(3)}},1548:(e,t,n)=>{"use strict";var r=n(44576),i=n(79039),o=n(39519),s=n(84215),a=r.structuredClone;e.exports=!!a&&!i(function(){if("DENO"===s&&o>92||"NODE"===s&&o>94||"BROWSER"===s&&o>97)return!1;var e=new ArrayBuffer(8),t=a(e,{transfer:[e]});return 0!==e.byteLength||8!==t.byteLength})},4495:(e,t,n)=>{"use strict";var r=n(39519),i=n(79039),o=n(44576).String;e.exports=!!Object.getOwnPropertySymbols&&!i(function(){var e=Symbol("symbol detection");return!o(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41})},58242:(e,t,n)=>{"use strict";var r=n(69565),i=n(97751),o=n(78227),s=n(36840);e.exports=function(){var e=i("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,a=o("toPrimitive");t&&!t[a]&&s(t,a,function(e){return r(n,this)},{arity:1})}},91296:(e,t,n)=>{"use strict";e.exports=n(4495)&&!!Symbol.for&&!!Symbol.keyFor},59225:(e,t,n)=>{"use strict";var r,i,o,s,a=n(44576),l=n(18745),c=n(76080),u=n(94901),d=n(39297),h=n(79039),p=n(20397),f=n(67680),g=n(4055),m=n(22812),v=n(89544),y=n(16193),w=a.setImmediate,b=a.clearImmediate,_=a.process,S=a.Dispatch,x=a.Function,k=a.MessageChannel,E=a.String,C=0,P={},T="onreadystatechange";h(function(){r=a.location});var L=function(e){if(d(P,e)){var t=P[e];delete P[e],t()}},I=function(e){return function(){L(e)}},O=function(e){L(e.data)},A=function(e){a.postMessage(E(e),r.protocol+"//"+r.host)};w&&b||(w=function(e){m(arguments.length,1);var t=u(e)?e:x(e),n=f(arguments,1);return P[++C]=function(){l(t,void 0,n)},i(C),C},b=function(e){delete P[e]},y?i=function(e){_.nextTick(I(e))}:S&&S.now?i=function(e){S.now(I(e))}:k&&!v?(s=(o=new k).port2,o.port1.onmessage=O,i=c(s.postMessage,s)):a.addEventListener&&u(a.postMessage)&&!a.importScripts&&r&&"file:"!==r.protocol&&!h(A)?(i=A,a.addEventListener("message",O,!1)):i=T in g("script")?function(e){p.appendChild(g("script"))[T]=function(){p.removeChild(this),L(e)}}:function(e){setTimeout(I(e),0)}),e.exports={set:w,clear:b}},31240:(e,t,n)=>{"use strict";e.exports=n(79504)(1.1.valueOf)},35610:(e,t,n)=>{"use strict";var r=n(91291),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},75854:(e,t,n)=>{"use strict";var r=n(72777),i=TypeError;e.exports=function(e){var t=r(e,"number");if("number"==typeof t)throw new i("Can't convert number to bigint");return BigInt(t)}},57696:(e,t,n)=>{"use strict";var r=n(91291),i=n(18014),o=RangeError;e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=i(t);if(t!==n)throw new o("Wrong length or index");return n}},25397:(e,t,n)=>{"use strict";var r=n(47055),i=n(67750);e.exports=function(e){return r(i(e))}},91291:(e,t,n)=>{"use strict";var r=n(80741);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},18014:(e,t,n)=>{"use strict";var r=n(91291),i=Math.min;e.exports=function(e){var t=r(e);return t>0?i(t,0x1fffffffffffff):0}},48981:(e,t,n)=>{"use strict";var r=n(67750),i=Object;e.exports=function(e){return i(r(e))}},58229:(e,t,n)=>{"use strict";var r=n(99590),i=RangeError;e.exports=function(e,t){var n=r(e);if(n%t)throw new i("Wrong offset");return n}},99590:(e,t,n)=>{"use strict";var r=n(91291),i=RangeError;e.exports=function(e){var t=r(e);if(t<0)throw new i("The argument can't be less than 0");return t}},72777:(e,t,n)=>{"use strict";var r=n(69565),i=n(20034),o=n(10757),s=n(55966),a=n(84270),l=n(78227),c=TypeError,u=l("toPrimitive");e.exports=function(e,t){if(!i(e)||o(e))return e;var n,l=s(e,u);if(l){if(void 0===t&&(t="default"),!i(n=r(l,e,t))||o(n))return n;throw new c("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},56969:(e,t,n)=>{"use strict";var r=n(72777),i=n(10757);e.exports=function(e){var t=r(e,"string");return i(t)?t:t+""}},92140:(e,t,n)=>{"use strict";var r=n(78227)("toStringTag"),i={};i[r]="z",e.exports="[object z]"===String(i)},655:(e,t,n)=>{"use strict";var r=n(36955),i=String;e.exports=function(e){if("Symbol"===r(e))throw TypeError("Cannot convert a Symbol value to a string");return i(e)}},58319:e=>{"use strict";var t=Math.round;e.exports=function(e){var n=t(e);return n<0?0:n>255?255:255&n}},16823:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}}
vendor: 6,311 bytes, lines 22-23
22,15823:(e,t,n)=>{"use strict";var r=n(46518),i=n(44576),o=n(69565),s=n(43724),a=n(72805),l=n(94644),c=n(66346),u=n(90679),d=n(6980),h=n(66699),p=n(2087),f=n(18014),g=n(57696),m=n(58229),v=n(58319),y=n(56969),w=n(39297),b=n(36955),_=n(20034),S=n(10757),x=n(2360),k=n(1625),E=n(52967),C=n(38480).f,P=n(43251),T=n(59213).forEach,L=n(87633),I=n(62106),O=n(24913),A=n(77347),M=n(35370),N=n(91181),D=n(23167),R=N.get,B=N.set,F=N.enforce,$=O.f,j=A.f,H=i.RangeError,z=c.ArrayBuffer,G=z.prototype,q=c.DataView,U=l.NATIVE_ARRAY_BUFFER_VIEWS,W=l.TYPED_ARRAY_TAG,V=l.TypedArray,Y=l.TypedArrayPrototype,X=l.isTypedArray,K="BYTES_PER_ELEMENT",J="Wrong length",Z=function(e,t){I(e,t,{configurable:!0,get:function(){return R(this)[t]}})},Q=function(e){var t;return k(G,e)||"ArrayBuffer"===(t=b(e))||"SharedArrayBuffer"===t},ee=function(e,t){return X(e)&&!S(t)&&t in e&&p(+t)&&t>=0},et=function(e,t){return ee(e,t=y(t))?d(2,e[t]):j(e,t)},en=function(e,t,n){return ee(e,t=y(t))&&_(n)&&w(n,"value")&&!w(n,"get")&&!w(n,"set")&&!n.configurable&&(!w(n,"writable")||n.writable)&&(!w(n,"enumerable")||n.enumerable)?(e[t]=n.value,e):$(e,t,n)};s?(U||(A.f=et,O.f=en,Z(Y,"buffer"),Z(Y,"byteOffset"),Z(Y,"byteLength"),Z(Y,"length")),r({target:"Object",stat:!0,forced:!U},{getOwnPropertyDescriptor:et,defineProperty:en}),e.exports=function(e,t,n){var s=e.match(/\d+/)[0]/8,l=e+(n?"Clamped":"")+"Array",c="get"+e,d="set"+e,p=i[l],y=p,w=y&&y.prototype,b={},S=function(e,t){var n=R(e);return n.view[c](t*s+n.byteOffset,!0)},k=function(e,t,r){var i=R(e);i.view[d](t*s+i.byteOffset,n?v(r):r,!0)},I=function(e,t){$(e,t,{get:function(){return S(this,t)},set:function(e){return k(this,t,e)},enumerable:!0})};U?a&&(y=t(function(e,t,n,r){return u(e,w),D(_(t)?Q(t)?void 0!==r?new p(t,m(n,s),r):void 0!==n?new p(t,m(n,s)):new p(t):X(t)?M(y,t):o(P,y,t):new p(g(t)),e,y)}),E&&E(y,V),T(C(p),function(e){e in y||h(y,e,p[e])}),y.prototype=w):(y=t(function(e,t,n,r){u(e,w);var i,a,l,c=0,d=0;if(_(t))if(Q(t)){i=t,d=m(n,s);var h=t.byteLength;if(void 0===r){if(h%s||(a=h-d)<0)throw new H(J)}else if((a=f(r)*s)+d>h)throw new H(J);l=a/s}else if(X(t))return M(y,t);else return o(P,y,t);else i=new z(a=(l=g(t))*s);for(B(e,{buffer:i,byteOffset:d,byteLength:a,length:l,view:new q(i)});c<l;)I(e,c++)}),E&&E(y,V),w=y.prototype=x(Y)),w.constructor!==y&&h(w,"constructor",y),F(w).TypedArrayConstructor=y,W&&h(w,W,l);var O=y!==p;b[l]=y,r({global:!0,constructor:!0,forced:O,sham:!U},b),K in y||h(y,K,s),K in w||h(w,K,s),L(l)}):e.exports=function(){}},72805:(e,t,n)=>{"use strict";var r=n(44576),i=n(79039),o=n(84428),s=n(94644).NATIVE_ARRAY_BUFFER_VIEWS,a=r.ArrayBuffer,l=r.Int8Array;e.exports=!s||!i(function(){l(1)})||!i(function(){new l(-1)})||!o(function(e){new l,new l(null),new l(1.5),new l(e)},!0)||i(function(){return 1!==new l(new a(2),1,void 0).length})},29948:(e,t,n)=>{"use strict";var r=n(35370),i=n(94644).getTypedArrayConstructor;e.exports=function(e,t){return r(i(e),t)}},43251:(e,t,n)=>{"use strict";var r=n(76080),i=n(69565),o=n(35548),s=n(48981),a=n(26198),l=n(70081),c=n(50851),u=n(44209),d=n(18727),h=n(94644).aTypedArrayConstructor,p=n(75854);e.exports=function(e){var t,n,f,g,m,v,y,w,b=o(this),_=s(e),S=arguments.length,x=S>1?arguments[1]:void 0,k=void 0!==x,E=c(_);if(E&&!u(E))for(w=(y=l(_,E)).next,_=[];!(v=i(w,y)).done;)_.push(v.value);for(k&&S>2&&(x=r(x,arguments[2])),n=a(_),g=d(f=new(h(b))(n)),t=0;n>t;t++)m=k?x(_[t],t):_[t],f[t]=g?p(m):+m;return f}},33392:(e,t,n)=>{"use strict";var r=n(79504),i=0,o=Math.random(),s=r(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++i+o,36)}},67416:(e,t,n)=>{"use strict";var r=n(79039),i=n(78227),o=n(43724),s=n(96395),a=i("iterator");e.exports=!r(function(){var e=new URL("b?a=1&b=2&c=3","https://a"),t=e.searchParams,n=new URLSearchParams("a=1&a=2&b=3"),r="";return e.pathname="c%20d",t.forEach(function(e,n){t.delete("b"),r+=n+e}),n.delete("a",2),n.delete("b",void 0),s&&(!e.toJSON||!n.has("a",1)||n.has("a",2)||!n.has("a",void 0)||n.has("b"))||!t.size&&(s||!o)||!t.sort||"https://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://ÑеÑÑ").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==r||"x"!==new URL("https://x",void 0).host})},7040:(e,t,n)=>{"use strict";e.exports=n(4495)&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},48686:(e,t,n)=>{"use strict";var r=n(43724),i=n(79039);e.exports=r&&i(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},22812:e=>{"use strict";var t=TypeError;e.exports=function(e,n){if(e<n)throw new t("Not enough arguments");return e}},58622:(e,t,n)=>{"use strict";var r=n(44576),i=n(94901),o=r.WeakMap;e.exports=i(o)&&/native code/.test(String(o))},70511:(e,t,n)=>{"use strict";var r=n(19167),i=n(39297),o=n(1951),s=n(24913).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||s(t,e,{value:o.f(e)})}},1951:(e,t,n)=>{"use strict";t.f=n(78227)},78227:(e,t,n)=>{"use strict";var r=n(44576),i=n(25745),o=n(39297),s=n(33392),a=n(4495),l=n(7040),c=r.Symbol,u=i("wks"),d=l?c.for||c:c&&c.withoutSetter||s;e.exports=function(e){return o(u,e)||(u[e]=a&&o(c,e)?c[e]:d("Symbol."+e)),u[e]}},47452:e=>{"use strict";e.exports=` 23\v\f\r \xa0áââââââ ââââââ¯âã\u2028\u2029\uFEFF`},14601:(e,t,n)=>{"use strict";var r=n(97751),i=n(39297),o=n(66699),s=n(1625),a=n(52967),l=n(77740),c=n(11056),u=n(23167),d=n(32603),h=n(77584),p=n(80747),f=n(43724),g=n(96395);e.exports=function(e,t,n,m){var v="stackTraceLimit",y=m?2:1,w=e.split("."),b=w[w.length-1],_=r.apply(null,w);if(_){var S=_.prototype;if(!g&&i(S,"cause")&&delete S.cause,!n)return _;var x=r("Error"),k=t(function(e,t){var n=d(m?t:e,void 0),r=m?new _(e):new _;return void 0!==n&&o(r,"message",n),p(r,k,r.stack,2),this&&s(S,this)&&u(r,this,k),arguments.length>y&&h(r,arguments[y]),r});if(k.prototype=S,"Error"!==b?a?a(k,x):l(k,x,{name:!0}):f&&v in _&&(c(k,_,v),c(k,_,"prepareStackTrace")),l(k,_),!g)try{S.name!==b&&o(S,"name",b),S.constructor=k}catch(e){}return k}}},4294:(e,t,n)=>{"use strict";var r=n(46518),i=n(97751),o=n(18745),s=n(79039),a=n(14601),l="AggregateError",c=i(l),u=!s(function(){return 1!==c([1]).errors[0]}
23)&&s(function(){return 7!==c([1],l,{cause:7}).cause});r({global:!0,constructor:!0,arity:2,forced:u},{AggregateError:a(l,function(e){return function(t,n){return o(e,this,arguments)}},u,!0)})},17145:(e,t,n)=>{"use strict";var r=n(46518),i=n(1625),o=n(42787),s=n(52967),a=n(77740),l=n(2360),c=n(66699),u=n(6980),d=n(77584),h=n(80747),p=n(72652),f=n(32603),g=n(78227)("toStringTag"),m=Error,v=[].push,y=function(e,t){var n,r=i(w,this);s?n=s(new m,r?o(this):w):c(n=r?this:l(w),g,"Error"),void 0!==t&&c(n,"message",f(t)),h(n,y,n.stack,1),arguments.length>2&&d(n,arguments[2]);var a=[];return p(e,v,{that:a}),c(n,"errors",a),n};s?s(y,m):a(y,m,{name:!0});var w=y.prototype=l(m.prototype,{constructor:u(1,y),message:u(1,""),name:u(1,"AggregateError")});r({global:!0,constructor:!0,arity:2},{AggregateError:y})},30067:(e,t,n)=>{"use strict";n(17145)},54743:(e,t,n)=>{"use strict";var r=n(46518),i=n(44576),o=n(66346),s=n(87633),a="ArrayBuffer",l=o[a];r({global:!0,constructor:!0,forced:i[a]!==l},{ArrayBuffer:l}),s(a)},16573:(e,t,n)=>{"use strict";var r=n(43724),i=n(62106),o=n(3238),s=ArrayBuffer.prototype;!r||"detached"in s||i(s,"detached",{configurable:!0,get:function(){return o(this)}})},46761:(e,t,n)=>{"use strict";var r=n(46518),i=n(94644);r({target:"ArrayBuffer",stat:!0,forced:!i.NATIVE_ARRAY_BUFFER_VIEWS},{isView:i.isView})},11745:(e,t,n)=>{"use strict";var r=n(46518),i=n(27476),o=n(79039),s=n(66346),a=n(28551),l=n(35610),c=n(18014),u=s.ArrayBuffer,d=s.DataView,h=d.prototype,p=i(u.prototype.slice),f=i(h.getUint8),g=i(h.setUint8);r({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:o(function(){return!new u(2).slice(1,void 0).byteLength})},{slice:function(e,t){if(p&&void 0===t)return p(a(this),e);for(var n=a(this).byteLength,r=l(e,n),i=l(void 0===t?n:t,n),o=new u(c(i-r)),s=new d(this),h=new d(o),m=0;r<i;)g(h,m++,f(s,r++));return o}})},77936:(e,t,n)=>{"use strict";var r=n(46518),i=n(73255);i&&r({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return i(this,arguments.length?arguments[0]:void 0,!1)}})},78100:(e,t,n)=>{"use strict";var r=n(46518),i=n(73255);i&&r({target:"ArrayBuffer",proto:!0},{transfer:function(){return i(this,arguments.length?arguments[0]:void 0,!0)}})},18107:(e,t,n)=>{"use strict";var r=n(46518),i=n(48981),o=n(26198),s=n(91291),a=n(6469);r({target:"Array",proto:!0},{at:function(e){var t=i(this),n=o(t),r=s(e),a=r>=0?r:n+r;return a<0||a>=n?void 0:t[a]}}),a("at")},28706:(e,t,n)=>{"use strict";var r=n(46518),i=n(79039),o=n(34376),s=n(20034),a=n(48981),l=n(26198),c=n(96837),u=n(97040),d=n(1469),h=n(70597),p=n(78227),f=n(39519),g=p("isConcatSpreadable"),m=f>=51||!i(function(){var e=[];return e[g]=!1,e.concat()[0]!==e}),v=function(e){if(!s(e))return!1;var t=e[g];return void 0!==t?!!t:o(e)};r({target:"Array",proto:!0,arity:1,forced:!m||!h("concat")},{concat:function(e){var t,n,r,i,o,s=a(this),h=d(s,0),p=0;for(t=-1,r=arguments.length;t<r;t++)if(o=-1===t?s:arguments[t],v(o))for(c(p+(i=l(o))),n=0;n<i;n++,p++)n in o&&u(h,p,o[n]);else c(p+1),u(h,p++,o);return h.length=p,h}})},26835:(e,t,n)=>{"use strict";var r=n(46518),i=n(57029),o=n(6469);r({target:"Array",proto:!0},{copyWithin:i}),o("copyWithin")},88431:(e,t,n)=>{"use strict";var r=n(46518),i=n(59213).every;r({target:"Array",proto:!0,forced:!n(34598)("every")},{every:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},33771:(e,t,n)=>{"use strict";var r=n(46518),i=n(84373),o=n(6469);r({target:"Array",proto:!0},{fill:i}),o("fill")},2008:(e,t,n)=>{"use strict";var r=n(46518),i=n(59213).filter;r({target:"Array",proto:!0,forced:!n(70597)("filter")},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},48980:(e,t,n)=>{"use strict";var r=n(46518),i=n(59213).findIndex,o=n(6469),s="findIndex",a=!0;s in[]&&[,][s](function(){a=!1}),r({target:"Array",proto:!0,forced:a},{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o(s)},13451:(e,t,n)=>{"use strict";var r=n(46518),i=n(43839).findLastIndex,o=n(6469);r({target:"Array",proto:!0},{findLastIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("findLastIndex")}
23,10838:(e,t,n)=>{"use strict";var r=n(46518),i=n(43839).findLast,o=n(6469);r({target:"Array",proto:!0},{findLast:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("findLast")},50113:(e,t,n)=>{"use strict";var r=n(46518),i=n(59213).find,o=n(6469),s="find",a=!0;s in[]&&[,][s](function(){a=!1}),r({target:"Array",proto:!0,forced:a},{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o(s)},78350:(e,t,n)=>{"use strict";var r=n(46518),i=n(70259),o=n(79306),s=n(48981),a=n(26198),l=n(1469);r({target:"Array",proto:!0},{flatMap:function(e){var t,n=s(this),r=a(n);return o(e),(t=l(n,0)).length=i(t,n,n,r,0,1,e,arguments.length>1?arguments[1]:void 0),t}})},46449:(e,t,n)=>{"use strict";var r=n(46518),i=n(70259),o=n(48981),s=n(26198),a=n(91291),l=n(1469);r({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=o(this),n=s(t),r=l(t,0);return r.length=i(r,t,t,n,0,void 0===e?1:a(e)),r}})},51629:(e,t,n)=>{"use strict";var r=n(46518),i=n(90235);r({target:"Array",proto:!0,forced:[].forEach!==i},{forEach:i})},52407:(e,t,n)=>{"use strict";var r=n(46518),i=n(8045),o=n(79039),s=Array.fromAsync;r({target:"Array",stat:!0,forced:!s||o(function(){var e=0;return s.call(function(){return e++,[]},{length:0}),1!==e})},{fromAsync:i})},23418:(e,t,n)=>{"use strict";var r=n(46518),i=n(97916);r({target:"Array",stat:!0,forced:!n(84428)(function(e){Array.from(e)})},{from:i})},74423:(e,t,n)=>{"use strict";var r=n(46518),i=n(19617).includes,o=n(79039),s=n(6469);r({target:"Array",proto:!0,forced:o(function(){return![,].includes()})},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),s("includes")},25276:(e,t,n)=>{"use strict";var r=n(46518),i=n(27476),o=n(19617).indexOf,s=n(34598),a=i([].indexOf),l=!!a&&1/a([1],1,-0)<0;r({target:"Array",proto:!0,forced:l||!s("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return l?a(this,e,t)||0:o(this,e,t)}})},64346:(e,t,n)=>{"use strict";n(46518)({target:"Array",stat:!0},{isArray:n(34376)})},23792:(e,t,n)=>{"use strict";var r=n(25397),i=n(6469),o=n(26269),s=n(91181),a=n(24913).f,l=n(51088),c=n(62529),u=n(96395),d=n(43724),h="Array Iterator",p=s.set,f=s.getterFor(h);e.exports=l(Array,"Array",function(e,t){p(this,{type:h,target:r(e),index:0,kind:t})},function(){var e=f(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,c(void 0,!0);switch(e.kind){case"keys":return c(n,!1);case"values":return c(t[n],!1)}return c([n,t[n]],!1)},"values");var g=o.Arguments=o.Array;
23if(i("keys"),i("values"),i("entries"),!u&&d&&"values"!==g.name)try{a(g,"name",{value:"values"})}catch(e){}},48598:(e,t,n)=>{"use strict";var r=n(46518),i=n(79504),o=n(47055),s=n(25397),a=n(34598),l=i([].join);r({target:"Array",proto:!0,forced:o!==Object||!a("join",",")},{join:function(e){return l(s(this),void 0===e?",":e)}})},8921:(e,t,n)=>{"use strict";var r=n(46518),i=n(8379);r({target:"Array",proto:!0,forced:i!==[].lastIndexOf},{lastIndexOf:i})},62062:(e,t,n)=>{"use strict";var r=n(46518),i=n(59213).map;r({target:"Array",proto:!0,forced:!n(70597)("map")},{map:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},31051:(e,t,n)=>{"use strict";var r=n(46518),i=n(79039),o=n(33517),s=n(97040),a=Array;r({target:"Array",stat:!0,forced:i(function(){function e(){}return!(a.of.call(e)instanceof e)})},{of:function(){for(var e=0,t=arguments.length,n=new(o(this)?this:a)(t);t>e;)s(n,e,arguments[e++]);return n.length=t,n}})},44114:(e,t,n)=>{"use strict";var r=n(46518),i=n(48981),o=n(26198),s=n(34527),a=n(96837);r({target:"Array",proto:!0,arity:1,forced:n(79039)(function(){return 0x100000001!==[].push.call({length:0x100000000},1)})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=i(this),n=o(t),r=arguments.length;a(n+r);for(var l=0;l<r;l++)t[n]=arguments[l],n++;return s(t,n),n}})},18863:(e,t,n)=>{"use strict";var r=n(46518),i=n(80926).right,o=n(34598),s=n(39519);r({target:"Array",proto:!0,forced:!n(16193)&&s>79&&s<83||!o("reduceRight")},{reduceRight:function(e){return i(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},72712:(e,t,n)=>{"use strict";var r=n(46518),i=n(80926).left,o=n(34598),s=n(39519);r({target:"Array",proto:!0,forced:!n(16193)&&s>79&&s<83||!o("reduce")},{reduce:function(e){var t=arguments.length;return i(this,e,t,t>1?arguments[1]:void 0)}})},94490:(e,t,n)=>{"use strict";var r=n(46518),i=n(79504),o=n(34376),s=i([].reverse),a=[1,2];r({target:"Array",proto:!0,forced:String(a)===String(a.reverse())},{reverse:function(){return o(this)&&(this.length=this.length),s(this)}})},34782:(e,t,n)=>{"use strict";var r=n(46518),i=n(34376),o=n(33517),s=n(20034),a=n(35610),l=n(26198),c=n(25397),u=n(97040),d=n(78227),h=n(70597),p=n(67680),f=h("slice"),g=d("species"),m=Array,v=Math.max;r({target:"Array",proto:!0,forced:!f},{slice:function(e,t){var n,r,d,h=c(this),f=l(h),y=a(e,f),w=a(void 0===t?f:t,f);if(i(h)&&(o(n=h.constructor)&&(n===m||i(n.prototype))?n=void 0:s(n)&&null===(n=n[g])&&(n=void 0),n===m||void 0===n))return p(h,y,w);for(d=0,r=new(void 0===n?m:n)(v(w-y,0));y<w;y++,d++)y in h&&u(r,d,h[y]);return r.length=d,r}})},15086:(e,t,n)=>{"use strict";var r=n(46518),i=n(59213).some;r({target:"Array",proto:!0,forced:!n(34598)("some")},{some:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},26910:(e,t,n)=>{"use strict";var r=n(46518),i=n(79504),o=n(79306),s=n(48981),a=n(26198),l=n(84606),c=n(655),u=n(79039),d=n(74488),h=n(34598),p=n(13709),f=n(13763),g=n(39519),m=n(3607),v=[],y=i(v.sort),w=i(v.push),b=u(function(){v.sort(void 0)}),_=u(function(){v.sort(null)}),S=h("sort"),x=!u(function(){if(g)return g<70;if(!p||!(p>3)){if(f)return!0;if(m)return m<603;var e,t,n,r,i="";for(e=65;e<76;
23e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)v.push({k:t+r,v:n})}for(v.sort(function(e,t){return t.v-e.v}),r=0;r<v.length;r++)t=v[r].k.charAt(0),i.charAt(i.length-1)!==t&&(i+=t);return"DGBEFHACIJK"!==i}});r({target:"Array",proto:!0,forced:b||!_||!S||!x},{sort:function(e){void 0!==e&&o(e);var t,n,r=s(this);if(x)return void 0===e?y(r):y(r,e);var i=[],u=a(r);for(n=0;n<u;n++)n in r&&w(i,r[n]);for(d(i,function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:c(t)>c(n)?1:-1}),t=a(i),n=0;n<t;)r[n]=i[n++];for(;n<u;)l(r,n++);return r}})},87478:(e,t,n)=>{"use strict";n(87633)("Array")},54554:(e,t,n)=>{"use strict";var r=n(46518),i=n(48981),o=n(35610),s=n(91291),a=n(26198),l=n(34527),c=n(96837),u=n(1469),d=n(97040),h=n(84606),p=n(70597)("splice"),f=Math.max,g=Math.min;r({target:"Array",proto:!0,forced:!p},{splice:function(e,t){var n,r,p,m,v,y,w=i(this),b=a(w),_=o(e,b),S=arguments.length;for(0===S?n=r=0:1===S?(n=0,r=b-_):(n=S-2,r=g(f(s(t),0),b-_)),c(b+n-r),p=u(w,r),m=0;m<r;m++)(v=_+m)in w&&d(p,m,w[v]);if(p.length=r,n<r){for(m=_;m<b-r;m++)v=m+r,y=m+n,v in w?w[y]=w[v]:h(w,y);for(m=b;m>b-r+n;m--)h(w,m-1)}else if(n>r)for(m=b-r;m>_;m--)v=m+r-1,y=m+n-1,v in w?w[y]=w[v]:h(w,y);for(m=0;m<n;m++)w[m+_]=arguments[m+2];return l(w,b-r+n),p}})},9678:(e,t,n)=>{"use strict";var r=n(46518),i=n(37628),o=n(25397),s=n(6469),a=Array;r({target:"Array",proto:!0},{toReversed:function(){return i(o(this),a)}}),s("toReversed")},57145:(e,t,n)=>{"use strict";var r=n(46518),i=n(79504),o=n(79306),s=n(25397),a=n(35370),l=n(44124),c=n(6469),u=Array,d=i(l("Array","sort"));r({target:"Array",proto:!0},{toSorted:function(e){return void 0!==e&&o(e),d(a(u,s(this)),e)}}),c("toSorted")},71658:(e,t,n)=>{"use strict";var r=n(46518),i=n(6469),o=n(96837),s=n(26198),a=n(35610),l=n(25397),c=n(91291),u=Array,d=Math.max,h=Math.min;r({target:"Array",proto:!0},{toSpliced:function(e,t){var n,r,i,p,f=l(this),g=s(f),m=a(e,g),v=arguments.length,y=0;for(0===v?n=r=0:1===v?(n=0,r=g-m):(n=v-2,r=h(d(c(t),0),g-m)),p=u(i=o(g+n-r));y<m;y++)p[y]=f[y];for(;y<m+n;y++)p[y]=arguments[y-m+2];for(;y<i;y++)p[y]=f[y+r-n];return p}}),i("toSpliced")},30237:(e,t,n)=>{"use strict";n(6469)("flatMap")},93514:(e,t,n)=>{"use strict";n(6469)("flat")},13609:(e,t,n)=>{"use strict";var r=n(46518),i=n(48981),o=n(26198),s=n(34527),a=n(84606),l=n(96837);r({target:"Array",proto:!0,arity:1,forced:1!==[].unshift(0)||!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(e){return e instanceof TypeError}}()},{unshift:function(e){var t=i(this),n=o(t),r=arguments.length;if(r){l(n+r);for(var c=n;c--;){var u=c+r;c in t?t[u]=t[c]:a(t,u)}for(var d=0;d<r;d++)t[d]=arguments[d]}return s(t,n+r)}})},11558:(e,t,n)=>{"use strict";var r=n(46518),i=n(39928),o=n(25397),s=Array;r({target:"Array",proto:!0,forced:function(){try{[].with({valueOf:function(){throw 4}},null)}catch(e){return 4!==e}}()},{with:function(e,t){return i(o(this),s,e,t)}})},24793:(e,t,n)=>{"use strict";var r=n(46518),i=n(43724),o=n(97751),s=n(79306),a=n(90679),l=n(36840),c=n(56279),u=n(62106),d=n(78227),h=n(91181),p=n(91021),f=n(39519),g=o("Promise"),m=o("SuppressedError"),v=ReferenceError,y=d("asyncDispose"),w=d("toStringTag"),b="AsyncDisposableStack",_=h.set,S=h.getterFor(b),x="async-dispose",k="disposed",E=function(e){var t=S(e);if(t.state===k)throw new v(b+" already disposed");return t},C=function(){_(a(this,P),{type:b,state:"pending",stack:[]}),i||(this.disposed=!1)},P=C.prototype;c(P,{disposeAsync:function(){var e=this;return new g(function(t,n){var r,o=S(e);if(o.state===k)return t(void 0);o.state=k,i||(e.disposed=!0);var s=o.stack,a=s.length,l=!1,c=function(e){l?r=new m(e,r):(l=!0,r=e),u()},u=function(){if(a){var e=s[--a];s[a]=null;try{g.resolve(e()).then(u,c)}catch(e){c(e)}}else o.stack=null,l?n(r):t(void 0)};u()})},use:function(e){return p(E(this),e,x),e},adopt:function(e,t){var n=E(this);return s(t),p(n,void 0,x,function(){return t(e)}),e},defer:function(e){var t=E(this);s(e),p(t,void 0,x,e)},move:function(){var e=E(this),t=new C;return S(t).stack=e.stack,e.stack=[],e.state=k,i||(this.disposed=!0),t}}),i&&u(P,"disposed",{configurable:!0,get:function(){return S(this).state===k}}),l(P,y,P.disposeAsync,{name:"disposeAsync"}),l(P,w,b,{nonWritable:!0}),r({global:!0,constructor:!0,forced:f&&f<136},{AsyncDisposableStack:C})}
23,50452:(e,t,n)=>{"use strict";var r=n(69565),i=n(36840),o=n(97751),s=n(55966),a=n(39297),l=n(78227),c=n(53982),u=l("asyncDispose"),d=o("Promise");a(c,u)||i(c,u,function(){var e=this;return new d(function(t,n){var i=s(e,"return");i?d.resolve(r(i,e)).then(function(){t(void 0)},n):t(void 0)})})},24359:(e,t,n)=>{"use strict";var r=n(46518),i=n(66346);r({global:!0,constructor:!0,forced:!n(77811)},{DataView:i.DataView})},10255:(e,t,n)=>{"use strict";var r=n(46518),i=n(79504),o=Math.pow,s=o(2,-24),a=function(e){var t=e>>>15,n=e>>>10&31,r=1023&e;return 31===n?0===r?0===t?1/0:-1/0:NaN:0===n?r*(0===t?s:-s):o(2,n-15)*(0===t?1+9765625e-10*r:-1-9765625e-10*r)},l=i(DataView.prototype.getUint16);r({target:"DataView",proto:!0},{getFloat16:function(e){return a(l(this,e,arguments.length>1&&arguments[1]))}})},38309:(e,t,n)=>{"use strict";n(24359)},3995:(e,t,n)=>{"use strict";var r=n(46518),i=n(79504),o=n(24194),s=n(57696),a=n(67787),l=n(53602),c=Math.pow,u=function(e){if(e!=e)return 32256;if(0===e)return(1/e==-1/0)<<15;var t=e<0;if(t&&(e=-e),e>=65520)return t<<15|31744;if(e<61005353927612305e-21)return t<<15|l(0x1000000*e);var n=0|a(e);if(-15===n)return t<<15|1024;var r=l((e*c(2,-n)-1)*1024);return 1024===r?t<<15|n+16<<10:t<<15|n+15<<10|r},d=i(DataView.prototype.setUint16);r({target:"DataView",proto:!0},{setFloat16:function(e,t){d(o(this),s(e),u(+t),arguments.length>2&&arguments[2])}})},61699:(e,t,n)=>{"use strict";var r=n(46518),i=n(79504),o=n(79039)(function(){return 120!==new Date(16e11).getYear()}),s=i(Date.prototype.getFullYear);r({target:"Date",proto:!0,forced:o},{getYear:function(){return s(this)-1900}})},59089:(e,t,n)=>{"use strict";var r=n(46518),i=n(79504),o=Date,s=i(o.prototype.getTime);r({target:"Date",stat:!0},{now:function(){return s(new o)}})},91191:(e,t,n)=>{"use strict";var r=n(46518),i=n(79504),o=n(91291),s=Date.prototype,a=i(s.getTime),l=i(s.setFullYear);r({target:"Date",proto:!0},{setYear:function(e){a(this);var t=o(e);return l(this,t>=0&&t<=99?t+1900:t)}})},93515:(e,t,n)=>{"use strict";n(46518)({target:"Date",proto:!0},{toGMTString:Date.prototype.toUTCString})},1688:(e,t,n)=>{"use strict";var r=n(46518),i=n(70380);r({target:"Date",proto:!0,forced:Date.prototype.toISOString!==i},{toISOString:i})},60739:(e,t,n)=>{"use strict";var r=n(46518),i=n(79039),o=n(48981),s=n(72777);r({target:"Date",proto:!0,arity:1,forced:i(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})},{toJSON:function(e){var t=o(this),n=s(t,"number");return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},89572:(e,t,n)=>{"use strict";var r=n(39297),i=n(36840),o=n(53640),s=n(78227)("toPrimitive"),a=Date.prototype;r(a,s)||i(a,s,o)},23288:(e,t,n)=>{"use strict";var r=n(79504),i=n(36840),o=Date.prototype,s="Invalid Date",a="toString",l=r(o[a]),c=r(o.getTime);String(new Date(NaN))!==s&&i(o,a,function(){var e=c(this);return e==e?l(this):s})},48922:(e,t,n)=>{"use strict";var r=n(46518),i=n(43724),o=n(97751),s=n(79306),a=n(90679),l=n(36840),c=n(56279),u=n(62106),d=n(78227),h=n(91181),p=n(91021),f=o("SuppressedError"),g=ReferenceError,m=d("dispose"),v=d("toStringTag"),y="DisposableStack",w=h.set,b=h.getterFor(y),_="sync-dispose",S="disposed",x=function(e){var t=b(e);if(t.state===S)throw new g(y+" already disposed");return t},k=function(){w(a(this,E),{type:y,state:"pending",stack:[]}),i||(this.disposed=!1)},E=k.prototype;c(E,{dispose:function(){var e,t=b(this);if(t.state!==S){t.state=S,i||(this.disposed=!0);for(var n=t.stack,r=n.length,o=!1;r;){var s=n[--r];n[r]=null;try{s()}catch(t){o?e=new f(t,e):(o=!0,e=t)}}if(t.stack=null,o)throw e}},use:function(e){return p(x(this),e,_),e},adopt:function(e,t){var n=x(this);return s(t),p(n,void 0,_,function(){t(e)}),e},defer:function(e){var t=x(this);s(e),p(t,void 0,_,e)},move:function(){var e=x(this),t=new k;return b(t).stack=e.stack,e.stack=[],e.state=S,i||(this.disposed=!0),t}}),i&&u(E,"disposed",{configurable:!0,get:function(){return b(this).state===S}}),l(E,m,E.dispose,{name:"dispose"}),l(E,v,y,{nonWritable:!0}),r({global:!0,constructor:!0},{DisposableStack:k})},16280:(e,t,n)=>{"use strict";var r=n(46518),i=n(44576),o=n(18745),s=n(14601),a="WebAssembly",l=i[a],c=7!==Error("e",{cause:7}).cause,u=function(e,t){var n={};n[e]=s(e,t,c),r({global:!0,constructor:!0,arity:1,forced:c},n)},d=function(e,t){if(l&&l[e]){var n={};n[e]=s(a+"."+e,t,c),r({target:a,stat:!0,constructor:!0,arity:1,forced:c},n)}};u("Error",function(e){return function(t){return o(e,this,arguments)}}),u("EvalError",function(e){return function(t){return o(e,this,arguments)}}),u("RangeError",function(e){return function(t){return o(e,this,arguments)}}),u("ReferenceError",function(e){return function(t){return o(e,this,arguments)}}),u("SyntaxError",function(e){return function(t){return o(e,this,arguments)}}),u("TypeError",function(e){return function(t){return o(e,this,arguments)}}),u("URIError",function(e){return function(t){return o(e,this,arguments)}}),d("CompileError",function(e){return function(t){return o(e,this,arguments)}}),d("LinkError",function(e){return function(t){return o(e,this,arguments)}}),d("RuntimeError",function(e){return function(t){return o(e,this,arguments)}})}
23,6372:(e,t,n)=>{"use strict";var r=n(46518),i=n(97751),o=n(20034),s=n(36955),a=n(79039),l="Error",c="DOMException",u=Object.setPrototypeOf||({}).__proto__,d=i(c),h=Error,p=h.isError;r({target:"Error",stat:!0,sham:!0,forced:!p||!u||a(function(){return d&&!p(new d(c))||!p(new h(l,{cause:function(){}}))||p(i("Object","create")(h.prototype))})},{isError:function(e){if(!o(e))return!1;var t=s(e);return t===l||t===c}})},76918:(e,t,n)=>{"use strict";var r=n(36840),i=n(77536),o=Error.prototype;o.toString!==i&&r(o,"toString",i)},36456:(e,t,n)=>{"use strict";var r=n(46518),i=n(79504),o=n(655),s=i("".charAt),a=i("".charCodeAt),l=i(/./.exec),c=i(1.1.toString),u=i("".toUpperCase),d=/[\w*+\-./@]/,h=function(e,t){for(var n=c(e,16);n.length<t;)n="0"+n;return n};r({global:!0},{escape:function(e){for(var t,n,r=o(e),i="",c=r.length,p=0;p<c;)l(d,t=s(r,p++))?i+=t:(n=a(t,0))<256?i+="%"+h(n,2):i+="%u"+u(h(n,4));return i}})},94170:(e,t,n)=>{"use strict";var r=n(46518),i=n(30566);r({target:"Function",proto:!0,forced:Function.bind!==i},{bind:i})},48957:(e,t,n)=>{"use strict";var r=n(94901),i=n(20034),o=n(24913),s=n(1625),a=n(78227),l=n(50283),c=a("hasInstance"),u=Function.prototype;c in u||o.f(u,c,{value:l(function(e){if(!r(this)||!i(e))return!1;var t=this.prototype;return i(t)?s(t,e):e instanceof this},c)})},62010:(e,t,n)=>{"use strict";var r=n(43724),i=n(10350).EXISTS,o=n(79504),s=n(62106),a=Function.prototype,l=o(a.toString),c=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,u=o(c.exec);r&&!i&&s(a,"name",{configurable:!0,get:function(){try{return u(c,l(this))[1]}catch(e){return""}}})},55081:(e,t,n)=>{"use strict";var r=n(46518),i=n(44576);r({global:!0,forced:i.globalThis!==i},{globalThis:i})},18111:(e,t,n)=>{"use strict";var r=n(46518),i=n(44576),o=n(90679),s=n(28551),a=n(94901),l=n(42787),c=n(62106),u=n(97040),d=n(79039),h=n(39297),p=n(78227),f=n(57657).IteratorPrototype,g=n(43724),m=n(96395),v="constructor",y="Iterator",w=p("toStringTag"),b=TypeError,_=i[y],S=m||!a(_)||_.prototype!==f||!d(function(){_({})}),x=function(){if(o(this,f),l(this)===f)throw new b("Abstract class Iterator not directly constructable")},k=function(e,t){g?c(f,e,{configurable:!0,get:function(){return t},set:function(t){if(s(this),this===f)throw new b("You can't redefine this property");h(this,e)?this[e]=t:u(this,e,t)}}):f[e]=t};h(f,w)||k(w,y),(S||!h(f,v)||f[v]===Object)&&k(v,x),x.prototype=f,r({global:!0,constructor:!0,forced:S},{Iterator:x})},76382:(e,t,n)=>{"use strict";var r=n(69565),i=n(36840),o=n(55966),s=n(39297),a=n(78227),l=n(57657).IteratorPrototype,c=a("dispose");s(l,c)||i(l,c,function(){var e=o(this,"return");e&&r(e,this)})},29314:(e,t,n)=>{"use strict";var r=n(46518),i=n(69565),o=n(28551),s=n(1767),a=n(24149),l=n(99590),c=n(9539),u=n(19462),d=n(30684),h=n(84549),p=n(96395),f=!p&&!d("drop",0),g=!p&&!f&&h("drop",RangeError),m=p||f||g,v=u(function(){for(var e,t,n=this.iterator,r=this.next;this.remaining;)if(this.remaining--,e=o(i(r,n)),this.done=!!e.done)return;if(e=o(i(r,n)),!(this.done=!!e.done))return e.value});r({target:"Iterator",proto:!0,real:!0,forced:m},{drop:function(e){var t;o(this);try{t=l(a(+e))}catch(e){c(this,"throw",e)}return g?i(g,this,t):new v(s(this),{remaining:t})}})},81148:(e,t,n)=>{"use strict";var r=n(46518),i=n(69565),o=n(72652),s=n(79306),a=n(28551),l=n(1767),c=n(9539),u=n(84549)("every",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:u},{every:function(e){a(this);try{s(e)}catch(e){c(this,"throw",e)}if(u)return i(u,this,e);var t=l(this),n=0;return!o(t,function(t,r){if(!e(t,n++))return r()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},22489:(e,t,n)=>{"use strict";var r=n(46518),i=n(69565),o=n(79306),s=n(28551),a=n(1767),l=n(19462),c=n(96319),u=n(96395),d=n(9539),h=n(30684),p=n(84549),f=!u&&!h("filter",function(){}),g=!u&&!f&&p("filter",TypeError),m=u||f||g,v=l(function(){for(var e,t,n=this.iterator,r=this.predicate,o=this.next;;){if(e=s(i(o,n)),this.done=!!e.done)return;if(c(n,r,[t=e.value,this.counter++],!0))return t}});r({target:"Iterator",proto:!0,real:!0,forced:m},{filter:function(e){s(this);try{o(e)}catch(e){d(this,"throw",e)}return g?i(g,this,e):new v(a(this),{predicate:e})}})},20116:(e,t,n)=>{"use strict";var r=n(46518),i=n(69565),o=n(72652),s=n(79306),a=n(28551),l=n(1767),c=n(9539),u=n(84549)("find",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:u},{find:function(e){a(this);try{s(e)}catch(e){c(this,"throw",e)}if(u)return i(u,this,e);var t=l(this),n=0;return o(t,function(t,r){if(e(t,n++))return r(t)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})},30531:(e,t,n)=>{"use strict";var r=n(46518),i=n(69565),o=n(79306),s=n(28551),a=n(1767),l=n(48646),c=n(19462),u=n(9539),d=n(96395),h=n(30684),p=n(84549),f=!d&&!h("flatMap",function(){}),g=!d&&!f&&p("flatMap",TypeError),m=d||f||g,v=c(function(){for(var e,t,n=this.iterator,r=this.mapper;;){if(t=this.inner)try{if(!(e=s(i(t.next,t.iterator))).done)return e.value;this.inner=null}catch(e){u(n,"throw",e)}if(e=s(i(this.next,n)),this.done=!!e.done)return;try{this.inner=l(r(e.value,this.counter++),!1)}catch(e){u(n,"throw",e)}}});r({target:"Iterator",proto:!0,real:!0,forced:m},{flatMap:function(e){s(this);try{o(e)}catch(e){u(this,"throw",e)}return g?i(g,this,e):new v(a(this),{mapper:e,inner:null})}})}
23,7588:(e,t,n)=>{"use strict";var r=n(46518),i=n(69565),o=n(72652),s=n(79306),a=n(28551),l=n(1767),c=n(9539),u=n(84549)("forEach",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:u},{forEach:function(e){a(this);try{s(e)}catch(e){c(this,"throw",e)}if(u)return i(u,this,e);var t=l(this),n=0;o(t,function(t){e(t,n++)},{IS_RECORD:!0})}})},49603:(e,t,n)=>{"use strict";var r=n(46518),i=n(69565),o=n(48981),s=n(1625),a=n(57657).IteratorPrototype,l=n(19462),c=n(48646),u=n(96395)||function(){try{Iterator.from({return:null}).return()}catch(e){return!0}}(),d=l(function(){return i(this.next,this.iterator)},!0);r({target:"Iterator",stat:!0,forced:u},{from:function(e){var t=c("string"==typeof e?o(e):e,!0);return s(a,t.iterator)?t.iterator:new d(t)}})},61701:(e,t,n)=>{"use strict";var r=n(46518),i=n(69565),o=n(79306),s=n(28551),a=n(1767),l=n(19462),c=n(96319),u=n(9539),d=n(30684),h=n(84549),p=n(96395),f=!p&&!d("map",function(){}),g=!p&&!f&&h("map",TypeError),m=p||f||g,v=l(function(){var e=this.iterator,t=s(i(this.next,e));if(!(this.done=!!t.done))return c(e,this.mapper,[t.value,this.counter++],!0)});r({target:"Iterator",proto:!0,real:!0,forced:m},{map:function(e){s(this);try{o(e)}catch(e){u(this,"throw",e)}return g?i(g,this,e):new v(a(this),{mapper:e})}})},18237:(e,t,n)=>{"use strict";var r=n(46518),i=n(72652),o=n(79306),s=n(28551),a=n(1767),l=n(9539),c=n(84549),u=n(18745),d=n(79039),h=TypeError,p=d(function(){[].keys().reduce(function(){},void 0)}),f=!p&&c("reduce",h);r({target:"Iterator",proto:!0,real:!0,forced:p||f},{reduce:function(e){s(this);try{o(e)}catch(e){l(this,"throw",e)}var t=arguments.length<2,n=t?void 0:arguments[1];if(f)return u(f,this,t?[e]:[e,n]);var r=a(this),c=0;if(i(r,function(r){t?(t=!1,n=r):n=e(n,r,c),c++},{IS_RECORD:!0}),t)throw new h("Reduce of empty iterator with no initial value");return n}})},13579:(e,t,n)=>{"use strict";var r=n(46518),i=n(69565),o=n(72652),s=n(79306),a=n(28551),l=n(1767),c=n(9539),u=n(84549)("some",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:u},{some:function(e){a(this);try{s(e)}catch(e){c(this,"throw",e)}if(u)return i(u,this,e);var t=l(this),n=0;return o(t,function(t,r){if(e(t,n++))return r()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},54972:(e,t,n)=>{"use strict";var r=n(46518),i=n(69565),o=n(28551),s=n(1767),a=n(24149),l=n(99590),c=n(19462),u=n(9539),d=n(84549),h=n(96395),p=!h&&d("take",RangeError),f=c(function(){var e=this.iterator;if(!this.remaining--)return this.done=!0,u(e,"normal",void 0);var t=o(i(this.next,e));if(!(this.done=!!t.done))return t.value});r({target:"Iterator",proto:!0,real:!0,forced:h||p},{take:function(e){var t;o(this);try{t=l(a(+e))}catch(e){u(this,"throw",e)}return p?i(p,this,t):new f(s(this),{remaining:t})}})},61806:(e,t,n)=>{"use strict";var r=n(46518),i=n(28551),o=n(72652),s=n(1767),a=[].push;r({target:"Iterator",proto:!0,real:!0},{toArray:function(){var e=[];return o(s(i(this)),a,{that:e,IS_RECORD:!0}),e}})},33110:(e,t,n)=>{"use strict";var r=n(46518),i=n(97751),o=n(18745),s=n(69565),a=n(79504),l=n(79039),c=n(94901),u=n(10757),d=n(67680),h=n(66933),p=n(4495),f=String,g=i("JSON","stringify"),m=a(/./.exec),v=a("".charAt),y=a("".charCodeAt),w=a("".replace),b=a(1.1.toString),_=/[\uD800-\uDFFF]/g,S=/^[\uD800-\uDBFF]$/,x=/^[\uDC00-\uDFFF]$/,k=!p||l(function(){var e=i("Symbol")("stringify detection");return"[null]"!==g([e])||"{}"!==g({a:e})||"{}"!==g(Object(e))}),E=l(function(){return'"\udf06\ud834"'!==g("\uDF06\uD834")||'"\udead"'!==g("\uDEAD")}),C=function(e,t){var n=d(arguments),r=h(t);if(!(!c(r)&&(void 0===e||u(e))))return n[1]=function(e,t){if(c(r)&&(t=s(r,this,f(e),t)),!u(t))return t},o(g,null,n)},P=function(e,t,n){var r=v(n,t-1),i=v(n,t+1);return m(S,e)&&!m(x,i)||m(x,e)&&!m(S,r)?"\\u"+b(y(e,0),16):e};g&&r({target:"JSON",stat:!0,arity:3,forced:k||E},{stringify:function(e,t,n){var r=d(arguments),i=o(k?C:g,null,r);return E&&"string"==typeof i?w(i,_,P):i}})},4731:(e,t,n)=>{"use strict";var r=n(44576);n(10687)(r.JSON,"JSON",!0)},48523:(e,t,n)=>{"use strict";n(16468)("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},n(86938))}
23,47072:(e,t,n)=>{"use strict";var r=n(46518),i=n(79504),o=n(79306),s=n(67750),a=n(72652),l=n(72248),c=n(96395),u=n(79039),d=l.Map,h=l.has,p=l.get,f=l.set,g=i([].push),m=c||u(function(){return 1!==d.groupBy("ab",function(e){return e}).get("a").length});r({target:"Map",stat:!0,forced:c||m},{groupBy:function(e,t){s(e),o(t);var n=new d,r=0;return a(e,function(e){var i=t(e,r++);h(n,i)?g(p(n,i),e):f(n,i,[e])}),n}})},36033:(e,t,n)=>{"use strict";n(48523)},93153:(e,t,n)=>{"use strict";var r=n(46518),i=n(7740),o=Math.acosh,s=Math.log,a=Math.sqrt,l=Math.LN2;r({target:"Math",stat:!0,forced:!o||710!==Math.floor(o(Number.MAX_VALUE))||o(1/0)!==1/0},{acosh:function(e){var t=+e;return t<1?NaN:t>94906265.62425156?s(t)+l:i(t-1+a(t-1)*a(t+1))}})},82326:(e,t,n)=>{"use strict";var r=n(46518),i=Math.asinh,o=Math.log,s=Math.sqrt;r({target:"Math",stat:!0,forced:!(i&&1/i(0)>0)},{asinh:function e(t){var n=+t;return isFinite(n)&&0!==n?n<0?-e(-n):o(n+s(n*n+1)):n}})},36389:(e,t,n)=>{"use strict";var r=n(46518),i=Math.atanh,o=Math.log;r({target:"Math",stat:!0,forced:!(i&&1/i(-0)<0)},{atanh:function(e){var t=+e;return 0===t?t:o((1+t)/(1-t))/2}})},64444:(e,t,n)=>{"use strict";var r=n(46518),i=n(77782),o=Math.abs,s=Math.pow;r({target:"Math",stat:!0},{cbrt:function(e){var t=+e;return i(t)*s(o(t),1/3)}})},8085:(e,t,n)=>{"use strict";var r=n(46518),i=Math.floor,o=Math.log,s=Math.LOG2E;r({target:"Math",stat:!0},{clz32:function(e){var t=e>>>0;return t?31-i(o(t+.5)*s):32}})},77762:(e,t,n)=>{"use strict";var r=n(46518),i=n(53250),o=Math.cosh,s=Math.abs,a=Math.E;r({target:"Math",stat:!0,forced:!o||o(710)===1/0},{cosh:function(e){var t=i(s(e)-1)+1;return a/2*(t+1/(t*a*a))}})},65070:(e,t,n)=>{"use strict";var r=n(46518),i=n(53250);r({target:"Math",stat:!0,forced:i!==Math.expm1},{expm1:i})},4360:(e,t,n)=>{"use strict";var r=n(46518),i=n(33164);r({target:"Math",stat:!0},{f16round:function(e){return i(e,9765625e-10,65504,6103515625e-14)}})},60605:(e,t,n)=>{"use strict";n(46518)({target:"Math",stat:!0},{fround:n(15617)})},39469:(e,t,n)=>{"use strict";var r=n(46518),i=Math.hypot,o=Math.abs,s=Math.sqrt;r({target:"Math",stat:!0,arity:2,forced:!!i&&i(1/0,NaN)!==1/0},{hypot:function(e,t){for(var n,r,i=0,a=0,l=arguments.length,c=0;a<l;)n=o(arguments[a++]),c<n?(i=i*(r=c/n)*r+1,c=n):n>0?i+=(r=n/c)*r:i+=n;return c===1/0?1/0:c*s(i)}})}
23,72152:(e,t,n)=>{"use strict";var r=n(46518),i=n(79039),o=Math.imul;r({target:"Math",stat:!0,forced:i(function(){return -5!==o(0xffffffff,5)||2!==o.length})},{imul:function(e,t){var n=+e,r=+t,i=65535&n,o=65535&r;return 0|i*o+((65535&n>>>16)*o+i*(65535&r>>>16)<<16>>>0)}})},75376:(e,t,n)=>{"use strict";n(46518)({target:"Math",stat:!0},{log10:n(49340)})},56624:(e,t,n)=>{"use strict";n(46518)({target:"Math",stat:!0},{log1p:n(7740)})},11367:(e,t,n)=>{"use strict";n(46518)({target:"Math",stat:!0},{log2:n(67787)})},5914:(e,t,n)=>{"use strict";n(46518)({target:"Math",stat:!0},{sign:n(77782)})},78553:(e,t,n)=>{"use strict";var r=n(46518),i=n(79039),o=n(53250),s=Math.abs,a=Math.exp,l=Math.E;r({target:"Math",stat:!0,forced:i(function(){return -2e-17!==Math.sinh(-2e-17)})},{sinh:function(e){var t=+e;return 1>s(t)?(o(t)-o(-t))/2:(a(t-1)-a(-t-1))*(l/2)}})},98690:(e,t,n)=>{"use strict";var r=n(46518),i=n(53250),o=Math.exp;r({target:"Math",stat:!0},{tanh:function(e){var t=+e,n=i(t),r=i(-t);return n===1/0?1:r===1/0?-1:(n-r)/(o(t)+o(-t))}})},60479:(e,t,n)=>{"use strict";n(10687)(Math,"Math",!0)},70761:(e,t,n)=>{"use strict";n(46518)({target:"Math",stat:!0},{trunc:n(80741)})},2892:(e,t,n)=>{"use strict";var r=n(46518),i=n(96395),o=n(43724),s=n(44576),a=n(19167),l=n(79504),c=n(92796),u=n(39297),d=n(23167),h=n(1625),p=n(10757),f=n(72777),g=n(79039),m=n(38480).f,v=n(77347).f,y=n(24913).f,w=n(31240),b=n(43802).trim,_="Number",S=s[_],x=a[_],k=S.prototype,E=s.TypeError,C=l("".slice),P=l("".charCodeAt),T=function(e){var t=f(e,"number");return"bigint"==typeof t?t:L(t)},L=function(e){var t,n,r,i,o,s,a,l,c=f(e,"number");if(p(c))throw new E("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2){if(43===(t=P(c=b(c),0))||45===t){if(88===(n=P(c,2))||120===n)return NaN}else if(48===t){switch(P(c,1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+c}for(a=0,s=(o=C(c,2)).length;a<s;a++)if((l=P(o,a))<48||l>i)return NaN;return parseInt(o,r)}}return+c},I=c(_,!S(" 0o1")||!S("0b1")||S("+0x1")),O=function(e){var t,n=arguments.length<1?0:S(T(e));return(t=this,h(k,t)&&g(function(){w(t)}))?d(Object(n),this,O):n};O.prototype=k,I&&!i&&(k.constructor=O),r({global:!0,constructor:!0,wrap:!0,forced:I},{Number:O});var A=function(e,t){for(var n,r=o?m(t):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),i=0;r.length>i;i++)u(t,n=r[i])&&!u(e,n)&&y(e,n,v(t,n))};i&&x&&A(a[_],x),(I||i)&&A(a[_],S)}
23,45374:(e,t,n)=>{"use strict";n(46518)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:2220446049250313e-31})},25428:(e,t,n)=>{"use strict";n(46518)({target:"Number",stat:!0},{isFinite:n(50360)})},32637:(e,t,n)=>{"use strict";n(46518)({target:"Number",stat:!0},{isInteger:n(2087)})},40150:(e,t,n)=>{"use strict";n(46518)({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},59149:(e,t,n)=>{"use strict";var r=n(46518),i=n(2087),o=Math.abs;r({target:"Number",stat:!0},{isSafeInteger:function(e){return i(e)&&0x1fffffffffffff>=o(e)}})},64601:(e,t,n)=>{"use strict";n(46518)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:0x1fffffffffffff})},44435:(e,t,n)=>{"use strict";n(46518)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-0x1fffffffffffff})},87220:(e,t,n)=>{"use strict";var r=n(46518),i=n(33904);r({target:"Number",stat:!0,forced:Number.parseFloat!==i},{parseFloat:i})},25843:(e,t,n)=>{"use strict";var r=n(46518),i=n(52703);r({target:"Number",stat:!0,forced:Number.parseInt!==i},{parseInt:i})},62337:(e,t,n)=>{"use strict";var r=n(46518),i=n(79504),o=n(91291),s=n(31240),a=n(72333),l=n(49340),c=n(79039),u=RangeError,d=String,h=isFinite,p=Math.abs,f=Math.floor,g=Math.pow,m=Math.round,v=i(1.1.toExponential),y=i(a),w=i("".slice),b="-6.9000e-11"===v(-69e-12,4)&&"1.25e+0"===v(1.255,2)&&"1.235e+4"===v(12345,3)&&"3e+1"===v(25,0);r({target:"Number",proto:!0,forced:!b||!(c(function(){v(1,1/0)})&&c(function(){v(1,-1/0)}))||!!c(function(){v(1/0,1/0),v(NaN,1/0)})},{toExponential:function(e){var t,n,r,i,a=s(this);if(void 0===e)return v(a);var c=o(e);if(!h(a))return String(a);if(c<0||c>20)throw new u("Incorrect fraction digits");if(b)return v(a,c);var _="";if(a<0&&(_="-",a=-a),0===a)n=0,t=y("0",c+1);else{var S=g(10,(n=f(l(a)))-c),x=m(a/S);2*a>=(2*x+1)*S&&(x+=1),x>=g(10,c+1)&&(x/=10,n+=1),t=d(x)}return 0!==c&&(t=w(t,0,1)+"."+w(t,1)),0===n?(r="+",i="0"):(r=n>0?"+":"-",i=d(p(n))),_+(t+="e"+r+i)}})},9868:(e,t,n)=>{"use strict";var r=n(46518),i=n(79504),o=n(91291),s=n(31240),a=n(72333),l=n(79039),c=RangeError,u=String,d=Math.floor,h=i(a),p=i("".slice),f=i(1.1.toFixed),g=function(e,t,n){return 0===t?n:t%2==1?g(e,t-1,n*e):g(e*e,t/2,n)},m=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t},v=function(e,t,n){for(var r=-1,i=n;++r<6;)i+=t*e[r],e[r]=i%1e7,i=d(i/1e7)},y=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=d(r/t),r=r%t*1e7},w=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=u(e[t]);n=""===n?r:n+h("0",7-r.length)+r}return n};r({target:"Number",proto:!0,forced:l(function(){return"0.000"!==f(8e-5,3)||"1"!==f(.9,0)||"1.25"!==f(1.255,2)||"1000000000000000128"!==f(0xde0b6b3a7640080,0)})||!l(function(){f({})})},{toFixed:function(e){var t,n,r,i,a=s(this),l=o(e),d=[0,0,0,0,0,0],f="",b="0";if(l<0||l>20)throw new c("Incorrect fraction digits");if(a!=a)return"NaN";if(a<=-1e21||a>=1e21)return u(a);if(a<0&&(f="-",a=-a),a>1e-21)if(n=((t=m(a*g(2,69,1))-69)<0?a*g(2,-t,1):a/g(2,t,1))*0x10000000000000,(t=52-t)>0){for(v(d,0,n),r=l;r>=7;)v(d,1e7,0),r-=7;for(v(d,g(10,r,1),0),r=t-1;r>=23;)y(d,8388608),r-=23;y(d,1<<r),v(d,1,1),y(d,2),b=w(d)}else v(d,0,n),v(d,1<<-t,0),b=w(d)+h("0",l);return l>0?f+((i=b.length)<=l?"0."+h("0",l-i)+b:p(b,0,i-l)+"."+p(b,i-l)):f+b}})},80630:(e,t,n)=>{"use strict";var r=n(46518),i=n(79504),o=n(79039),s=n(31240),a=i(1.1.toPrecision);r({target:"Number",proto:!0,forced:o(function(){return"1"!==a(1,void 0)})||!o(function(){a({})})},{toPrecision:function(e){return void 0===e?a(s(this)):a(s(this),e)}})},69085:(e,t,n)=>{"use strict";var r=n(46518),i=n(44213);r({target:"Object",stat:!0,arity:2,forced:Object.assign!==i},{assign:i})},59904:(e,t,n)=>{"use strict";n(46518)({target:"Object",stat:!0,sham:!n(43724)},{create:n(2360)})},17427:(e,t,n)=>{"use strict";var r=n(46518),i=n(43724),o=n(42551),s=n(79306),a=n(48981),l=n(24913);i&&r({target:"Object",proto:!0,forced:o},{__defineGetter__:function(e,t){l.f(a(this),e,{get:s(t),enumerable:!0,configurable:!0})}})},67945:(e,t,n)=>{"use strict";var r=n(46518),i=n(43724),o=n(96801).f;r({target:"Object",stat:!0,forced:Object.defineProperties!==o,sham:!i},{defineProperties:o})},84185:(e,t,n)=>{"use strict";var r=n(46518),i=n(43724),o=n(24913).f;r({target:"Object",stat:!0,forced:Object.defineProperty!==o,sham:!i},{defineProperty:o})},87607:(e,t,n)=>{"use strict";
23var r=n(46518),i=n(43724),o=n(42551),s=n(79306),a=n(48981),l=n(24913);i&&r({target:"Object",proto:!0,forced:o},{__defineSetter__:function(e,t){l.f(a(this),e,{set:s(t),enumerable:!0,configurable:!0})}})},5506:(e,t,n)=>{"use strict";var r=n(46518),i=n(32357).entries;r({target:"Object",stat:!0},{entries:function(e){return i(e)}})},52811:(e,t,n)=>{"use strict";var r=n(46518),i=n(92744),o=n(79039),s=n(20034),a=n(3451).onFreeze,l=Object.freeze;r({target:"Object",stat:!0,forced:o(function(){l(1)}),sham:!i},{freeze:function(e){return l&&s(e)?l(a(e)):e}})},53921:(e,t,n)=>{"use strict";var r=n(46518),i=n(72652),o=n(97040);r({target:"Object",stat:!0},{fromEntries:function(e){var t={};return i(e,function(e,n){o(t,e,n)},{AS_ENTRIES:!0}),t}})},83851:(e,t,n)=>{"use strict";var r=n(46518),i=n(79039),o=n(25397),s=n(77347).f,a=n(43724);r({target:"Object",stat:!0,forced:!a||i(function(){s(1)}),sham:!a},{getOwnPropertyDescriptor:function(e,t){return s(o(e),t)}})},81278:(e,t,n)=>{"use strict";var r=n(46518),i=n(43724),o=n(35031),s=n(25397),a=n(77347),l=n(97040);r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(e){for(var t,n,r=s(e),i=a.f,c=o(r),u={},d=0;c.length>d;)void 0!==(n=i(r,t=c[d++]))&&l(u,t,n);return u}})},1480:(e,t,n)=>{"use strict";var r=n(46518),i=n(79039),o=n(10298).f;r({target:"Object",stat:!0,forced:i(function(){return!Object.getOwnPropertyNames(1)})},{getOwnPropertyNames:o})},49773:(e,t,n)=>{"use strict";
23var r=n(46518),i=n(4495),o=n(79039),s=n(33717),a=n(48981);r({target:"Object",stat:!0,forced:!i||o(function(){s.f(1)})},{getOwnPropertySymbols:function(e){var t=s.f;return t?t(a(e)):[]}})},40875:(e,t,n)=>{"use strict";var r=n(46518),i=n(79039),o=n(48981),s=n(42787),a=n(12211);r({target:"Object",stat:!0,forced:i(function(){s(1)}),sham:!a},{getPrototypeOf:function(e){return s(o(e))}})},77691:(e,t,n)=>{"use strict";var r=n(46518),i=n(97751),o=n(79504),s=n(79306),a=n(67750),l=n(56969),c=n(72652),u=n(79039),d=Object.groupBy,h=i("Object","create"),p=o([].push);r({target:"Object",stat:!0,forced:!d||u(function(){return 1!==d("ab",function(e){return e}).a.length})},{groupBy:function(e,t){a(e),s(t);var n=h(null),r=0;return c(e,function(e){var i=l(t(e,r++));i in n?p(n[i],e):n[i]=[e]}),n}})},78347:(e,t,n)=>{"use strict";n(46518)({target:"Object",stat:!0},{hasOwn:n(39297)})},94052:(e,t,n)=>{"use strict";var r=n(46518),i=n(34124);r({target:"Object",stat:!0,forced:Object.isExtensible!==i},{isExtensible:i})},94003:(e,t,n)=>{"use strict";var r=n(46518),i=n(79039),o=n(20034),s=n(22195),a=n(15652),l=Object.isFrozen;r({target:"Object",stat:!0,forced:a||i(function(){l(1)})},{isFrozen:function(e){return!o(e)||!!a&&"ArrayBuffer"===s(e)||!!l&&l(e)}})},221:(e,t,n)=>{"use strict";var r=n(46518),i=n(79039),o=n(20034),s=n(22195),a=n(15652),l=Object.isSealed;r({target:"Object",stat:!0,forced:a||i(function(){l(1)})},{isSealed:function(e){return!o(e)||!!a&&"ArrayBuffer"===s(e)||!!l&&l(e)}})},29908:(e,t,n)=>{"use strict";n(46518)({target:"Object",stat:!0},{is:n(3470)})},79432:(e,t,n)=>{"use strict";var r=n(46518),i=n(48981),o=n(71072);r({target:"Object",stat:!0,forced:n(79039)(function(){o(1)})},{keys:function(e){return o(i(e))}})},9220:(e,t,n)=>{"use strict";var r=n(46518),i=n(43724),o=n(42551),s=n(48981),a=n(56969),l=n(42787),c=n(77347).f;i&&r({target:"Object",proto:!0,forced:o},{__lookupGetter__:function(e){var t,n=s(this),r=a(e);do if(t=c(n,r))return t.get;while(n=l(n))}})},7904:(e,t,n)=>{"use strict";var r=n(46518),i=n(43724),o=n(42551),s=n(48981),a=n(56969),l=n(42787),c=n(77347).f;i&&r({target:"Object",proto:!0,forced:o},{__lookupSetter__:function(e){var t,n=s(this),r=a(e);do if(t=c(n,r))return t.set;while(n=l(n))}})},93967:(e,t,n)=>{"use strict";var r=n(46518),i=n(20034),o=n(3451).onFreeze,s=n(92744),a=n(79039),l=Object.preventExtensions;r({target:"Object",stat:!0,forced:a(function(){l(1)}),sham:!s},{preventExtensions:function(e){return l&&i(e)?l(o(e)):e}})},63548:(e,t,n)=>{"use strict";var r=n(43724),i=n(62106),o=n(20034),s=n(13925),a=n(48981),l=n(67750),c=Object.getPrototypeOf,u=Object.setPrototypeOf,d=Object.prototype,h="__proto__";if(r&&c&&u&&!(h in d))try{i(d,h,{configurable:!0,get:function(){return c(a(this))},set:function(e){var t=l(this);s(e)&&o(t)&&u(t,e)}})}catch(e){}},93941:(e,t,n)=>{"use strict";var r=n(46518),i=n(20034),o=n(3451).onFreeze,s=n(92744),a=n(79039),l=Object.seal;r({target:"Object",stat:!0,forced:a(function(){l(1)}),sham:!s},{seal:function(e){return l&&i(e)?l(o(e)):e}})},10287:(e,t,n)=>{"use strict";n(46518)({target:"Object",stat:!0},{setPrototypeOf:n(52967)})},26099:(e,t,n)=>{"use strict";var r=n(92140),i=n(36840),o=n(53179);r||i(Object.prototype,"toString",o,{unsafe:!0})},16034:(e,t,n)=>{"use strict";var r=n(46518),i=n(32357).values;r({target:"Object",stat:!0},{values:function(e){return i(e)}})},78459:(e,t,n)=>{"use strict";var r=n(46518),i=n(33904);r({global:!0,forced:parseFloat!==i},{parseFloat:i})},58940:(e,t,n)=>{"use strict";var r=n(46518),i=n(52703);r({global:!0,forced:parseInt!==i},{parseInt:i})},96167:(e,t,n)=>{"use strict";var r=n(46518),i=n(69565),o=n(79306),s=n(36043),a=n(1103),l=n(72652);r({target:"Promise",stat:!0,forced:n(90537)},{allSettled:function(e){var t=this,n=s.f(t),r=n.resolve,c=n.reject,u=a(function(){var n=o(t.resolve),s=[],a=0,c=1;l(e,function(e){var o=a++,l=!1;c++,i(n,t,e).then(function(e){!l&&(l=!0,s[o]={status:"fulfilled",value:e},--c||r(s))},function(e){!l&&(l=!0,s[o]={status:"rejected",reason:e},--c||r(s))})}),--c||r(s)});return u.error&&c(u.value),n.promise}})},16499:(e,t,n)=>{"use strict";var r=n(46518),i=n(69565),o=n(79306),s=n(36043),a=n(1103),l=n(72652);r({target:"Promise",stat:!0,forced:n(90537)},{all:function(e){var t=this,n=s.f(t),r=n.resolve,c=n.reject,u=a(function(){var n=o(t.resolve),s=[],a=0,u=1;l(e,function(e){var o=a++,l=!1;u++,i(n,t,e).then(function(e){!l&&(l=!0,s[o]=e,--u||r(s))},c)}),--u||r(s)});return u.error&&c(u.value),n.promise}})},93518:(e,t,n)=>{"use strict";var r=n(46518),i=n(69565),o=n(79306),s=n(97751),a=n(36043),l=n(1103),c=n(72652),u=n(90537),d="No one promise resolved";r({target:"Promise",stat:!0,forced:u},{any:function(e){var t=this,n=s("AggregateError"),r=a.f(t),u=r.resolve,h=r.reject,p=l(function(){var r=o(t.resolve),s=[],a=0,l=1,p=!1;c(e,function(e){var o=a++,c=!1;l++,i(r,t,e).then(function(e){c||p||(p=!0,u(e))},function(e){!c&&!p&&(c=!0,s[o]=e,--l||h(new n(s,d)))})}),--l||h(new n(s,d))});return p.error&&h(p.value),r.promise}})},82003:(e,t,n)=>{"use strict";var r=n(46518),i=n(96395),o=n(10916).CONSTRUCTOR,s=n(80550),a=n(97751),l=n(94901),c=n(36840),u=s&&s.prototype;if(r({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(e){return this.then(void 0,e)}}),!i&&l(s)){var d=a("Promise").prototype.catch;u.catch!==d&&c(u,"catch",d,{unsafe:!0})}},10436:(e,t,n)=>{"use strict";var r,i,o,s,a=n(46518),l=n(96395),c=n(16193),u=n(44576),d=n(19167),h=n(69565),p=n(36840),f=n(52967),g=n(10687),m=n(87633),v=n(79306),y=n(94901),w=n(20034),b=n(90679),_=n(2293),S=n(59225).set,x=n(91955),k=n(90757),E=n(1103),C=n(18265),P=n(91181),T=n(80550),L=n(10916),I=n(36043),O="Promise",A=L.CONSTRUCTOR,M=L.REJECTION_EVENT,N=L.SUBCLASSING,D=P.getterFor(O),R=P.set,B=T&&T.prototype,F=T,$=B,j=u.TypeError,H=u.document,z=u.process,G=I.f,q=G,U=!!(H&&H.createEvent&&u.dispatchEvent),W="unhandledrejection",V=function(e){var t;return!!(w(e)&&y(t=e.then))&&t},Y=function(e,t){var n,r,i,o=t.value,s=1===t.state,a=s?e.ok:e.fail,l=e.resolve,c=e.reject,u=e.domain;try{a?(s||(2===t.rejection&&Q(t),t.rejection=1),!0===a?n=o:(u&&u.enter(),n=a(o),u&&(u.exit(),i=!0)),n===e.promise?c(new j("Promise-chain cycle")):(r=V(n))?h(r,n,l,c):l(n)):c(o)}catch(e){u&&!i&&u.exit(),c(e)}},X=function(e,t){e.notified||(e.notified=!0,x(function(){for(var n,r=e.reactions;n=r.get();)Y(n,e);e.notified=!1,t&&!e.rejection&&J(e)}
23))},K=function(e,t,n){var r,i;U?((r=H.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),u.dispatchEvent(r)):r={promise:t,reason:n},!M&&(i=u["on"+e])?i(r):e===W&&k("Unhandled promise rejection",n)},J=function(e){h(S,u,function(){var t,n=e.facade,r=e.value;if(Z(e)&&(t=E(function(){c?z.emit("unhandledRejection",r,n):K(W,n,r)}),e.rejection=c||Z(e)?2:1,t.error))throw t.value})},Z=function(e){return 1!==e.rejection&&!e.parent},Q=function(e){h(S,u,function(){var t=e.facade;c?z.emit("rejectionHandled",t):K("rejectionhandled",t,e.value)})},ee=function(e,t,n){return function(r){e(t,r,n)}},et=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,X(e,!0))},en=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new j("Promise can't be resolved itself");var r=V(t);r?x(function(){var n={done:!1};try{h(r,t,ee(en,n,e),ee(et,n,e))}catch(t){et(n,t,e)}}):(e.value=t,e.state=1,X(e,!1))}catch(t){et({done:!1},t,e)}}};if(A&&($=(F=function(e){b(this,$),v(e),h(r,this);var t=D(this);try{e(ee(en,t),ee(et,t))}catch(e){et(t,e)}}).prototype,(r=function(e){R(this,{type:O,done:!1,notified:!1,parent:!1,reactions:new C,rejection:!1,state:0,value:null})}).prototype=p($,"then",function(e,t){var n=D(this),r=G(_(this,F));return n.parent=!0,r.ok=!y(e)||e,r.fail=y(t)&&t,r.domain=c?z.domain:void 0,0===n.state?n.reactions.add(r):x(function(){Y(r,n)}),r.promise}),i=function(){var e=new r,t=D(e);this.promise=e,this.resolve=ee(en,t),this.reject=ee(et,t)},I.f=G=function(e){return e===F||e===o?new i(e):q(e)},!l&&y(T)&&B!==Object.prototype)){s=B.then,N||p(B,"then",function(e,t){var n=this;return new F(function(e,t){h(s,n,e,t)}).then(e,t)},{unsafe:!0});try{delete B.constructor}catch(e){}f&&f(B,$)}a({global:!0,constructor:!0,wrap:!0,forced:A},{Promise:F}),o=d.Promise,g(F,O,!1,!0),m(O)},9391:(e,t,n)=>{"use strict";var r=n(46518),i=n(96395),o=n(80550),s=n(79039),a=n(97751),l=n(94901),c=n(2293),u=n(93438),d=n(36840),h=o&&o.prototype;if(r({target:"Promise",proto:!0,real:!0,forced:!!o&&s(function(){h.finally.call({then:function(){}},function(){})})},{finally:function(e){var t=c(this,a("Promise")),n=l(e);return this.then(n?function(n){return u(t,e()).then(function(){return n})}:e,n?function(n){return u(t,e()).then(function(){throw n})}:e)}}),!i&&l(o)){var p=a("Promise").prototype.finally;h.finally!==p&&d(h,"finally",p,{unsafe:!0})}},3362:(e,t,n)=>{"use strict";n(10436),n(16499),n(82003),n(7743),n(51481),n(40280)},7743:(e,t,n)=>{"use strict";var r=n(46518),i=n(69565),o=n(79306),s=n(36043),a=n(1103),l=n(72652);r({target:"Promise",stat:!0,forced:n(90537)},{race:function(e){var t=this,n=s.f(t),r=n.reject,c=a(function(){var s=o(t.resolve);l(e,function(e){i(s,t,e).then(n.resolve,r)})});return c.error&&r(c.value),n.promise}})},51481:(e,t,n)=>{"use strict";var r=n(46518),i=n(36043);r({target:"Promise",stat:!0,forced:n(10916).CONSTRUCTOR},{reject:function(e){var t=i.f(this);return(0,t.reject)(e),t.promise}})},40280:(e,t,n)=>{"use strict";var r=n(46518),i=n(97751),o=n(96395),s=n(80550),a=n(10916).CONSTRUCTOR,l=n(93438),c=i("Promise"),u=o&&!a;r({target:"Promise",stat:!0,forced:o||a},{resolve:function(e){return l(u&&this===c?s:this,e)}})},31689:(e,t,n)=>{"use strict";var r=n(46518),i=n(44576),o=n(18745),s=n(67680),a=n(36043),l=n(79306),c=n(1103),u=i.Promise,d=!1;r({target:"Promise",stat:!0,forced:!u||!u.try||c(function(){u.try(function(e){d=8===e},8)}).error||!d},{try:function(e){var t=arguments.length>1?s(arguments,1):[],n=a.f(this),r=c(function(){return o(l(e),void 0,t)});return(r.error?n.reject:n.resolve)(r.value),n.promise}})},14628:(e,t,n)=>{"use strict";var r=n(46518),i=n(36043);r({target:"Promise",stat:!0},{withResolvers:function(){var e=i.f(this);return{promise:e.promise,resolve:e.resolve,reject:e.reject}}})},39796:(e,t,n)=>{"use strict";var r=n(46518),i=n(18745),o=n(79306),s=n(28551);r({target:"Reflect",stat:!0,forced:!n(79039)(function(){Reflect.apply(function(){})})},{apply:function(e,t,n){return i(o(e),t,s(n))}})},60825:(e,t,n)=>{"use strict";var r=n(46518),i=n(97751),o=n(18745),s=n(30566),a=n(35548),l=n(28551),c=n(20034),u=n(2360),d=n(79039),h=i("Reflect","construct"),p=Object.prototype,f=[].push,g=d(function(){function e(){}return!(h(function(){},[],e)instanceof e)}),m=!d(function(){h(function(){})}),v=g||m;r({target:"Reflect",stat:!0,forced:v,sham:v},{construct:function(e,t){a(e),l(t);var n=arguments.length<3?e:a(arguments[2]);if(m&&!g)return h(e,t,n);if(e===n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}
23var r=[null];return o(f,r,t),new(o(s,e,r))}var i=n.prototype,d=u(c(i)?i:p),v=o(e,d,t);return c(v)?v:d}})},87411:(e,t,n)=>{"use strict";var r=n(46518),i=n(43724),o=n(28551),s=n(56969),a=n(24913);r({target:"Reflect",stat:!0,forced:n(79039)(function(){Reflect.defineProperty(a.f({},1,{value:1}),1,{value:2})}),sham:!i},{defineProperty:function(e,t,n){o(e);var r=s(t);o(n);try{return a.f(e,r,n),!0}catch(e){return!1}}})},21211:(e,t,n)=>{"use strict";var r=n(46518),i=n(28551),o=n(77347).f;r({target:"Reflect",stat:!0},{deleteProperty:function(e,t){var n=o(i(e),t);return(!n||!!n.configurable)&&delete e[t]}})},9065:(e,t,n)=>{"use strict";var r=n(46518),i=n(43724),o=n(28551),s=n(77347);r({target:"Reflect",stat:!0,sham:!i},{getOwnPropertyDescriptor:function(e,t){return s.f(o(e),t)}})},86565:(e,t,n)=>{"use strict";var r=n(46518),i=n(28551),o=n(42787);r({target:"Reflect",stat:!0,sham:!n(12211)},{getPrototypeOf:function(e){return o(i(e))}})},40888:(e,t,n)=>{"use strict";var r=n(46518),i=n(69565),o=n(20034),s=n(28551),a=n(16575),l=n(77347),c=n(42787);r({target:"Reflect",stat:!0},{get:function e(t,n){var r,u,d=arguments.length<3?t:arguments[2];return s(t)===d?t[n]:(r=l.f(t,n))?a(r)?r.value:void 0===r.get?void 0:i(r.get,d):o(u=c(t))?e(u,n,d):void 0}})},32812:(e,t,n)=>{"use strict";n(46518)({target:"Reflect",stat:!0},{has:function(e,t){return t in e}})},84634:(e,t,n)=>{"use strict";var r=n(46518),i=n(28551),o=n(34124);r({target:"Reflect",stat:!0},{isExtensible:function(e){return i(e),o(e)}})},71137:(e,t,n)=>{"use strict";n(46518)({target:"Reflect",stat:!0},{ownKeys:n(35031)})},30985:(e,t,n)=>{"use strict";var r=n(46518),i=n(97751),o=n(28551);r({target:"Reflect",stat:!0,sham:!n(92744)},{preventExtensions:function(e){o(e);try{var t=i("Object","preventExtensions");return t&&t(e),!0}catch(e){return!1}}})},34873:(e,t,n)=>{"use strict";var r=n(46518),i=n(28551),o=n(73506),s=n(52967);s&&r({target:"Reflect",stat:!0},{setPrototypeOf:function(e,t){i(e),o(t);try{return s(e,t),!0}catch(e){return!1}}})},34268:(e,t,n)=>{"use strict";var r=n(46518),i=n(69565),o=n(28551),s=n(20034),a=n(16575),l=n(79039),c=n(24913),u=n(77347),d=n(42787),h=n(6980);r({target:"Reflect",stat:!0,forced:l(function(){var e=function(){},t=c.f(new e,"a",{configurable:!0});return!1!==Reflect.set(e.prototype,"a",1,t)})},{set:function e(t,n,r){var l,p,f,g=arguments.length<4?t:arguments[3],m=u.f(o(t),n);if(!m){if(s(p=d(t)))return e(p,n,r,g);m=h(0)}if(a(m)){if(!1===m.writable||!s(g))return!1;if(l=u.f(g,n)){if(l.get||l.set||!1===l.writable)return!1;l.value=r,c.f(g,n,l)}else c.f(g,n,h(0,r))}else{if(void 0===(f=m.set))return!1;i(f,g,r)}return!0}})},15472:(e,t,n)=>{"use strict";var r=n(46518),i=n(44576),o=n(10687);r({global:!0},{Reflect:{}}),o(i.Reflect,"Reflect",!0)},84864:(e,t,n)=>{"use strict";var r=n(43724),i=n(44576),o=n(79504),s=n(92796),a=n(23167),l=n(66699),c=n(2360),u=n(38480).f,d=n(1625),h=n(60788),p=n(655),f=n(61034),g=n(58429),m=n(11056),v=n(36840),y=n(79039),w=n(39297),b=n(91181).enforce,_=n(87633),S=n(78227),x=n(83635),k=n(18814),E=S("match"),C=i.RegExp,P=C.prototype,T=i.SyntaxError,L=o(P.exec),I=o("".charAt),O=o("".replace),A=o("".indexOf),M=o("".slice),N=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,D=/a/g,R=/a/g,B=new C(D)!==D,F=g.MISSED_STICKY,$=g.UNSUPPORTED_Y,j=r&&(!B||F||x||k||y(function(){return R[E]=!1,C(D)!==D||C(R)===R||"/a/i"!==String(C(D,"i"))})),H=function(e){for(var t,n=e.length,r=0,i="",o=!1;r<=n;r++){if("\\"===(t=I(e,r))){i+=t+I(e,++r);continue}o||"."!==t?("["===t?o=!0:"]"===t&&(o=!1),i+=t):i+="[\\s\\S]"}return i},z=function(e){for(var t,n=e.length,r=0,i="",o=[],s=c(null),a=!1,l=!1,u=0,d="";r<=n;r++){if("\\"===(t=I(e,r)))t+=I(e,++r);else if("]"===t)a=!1;else if(!a)switch(!0){case"["===t:a=!0;break;case"("===t:if(i+=t,"?:"===M(e,r+1,r+3))continue;L(N,M(e,r+1))&&(r+=2,l=!0),u++;continue;case">"===t&&l:if(""===d||w(s,d))throw new T("Invalid capture group name");s[d]=!0,o[o.length]=[d,u],l=!1,d="";continue}l?d+=t:i+=t}return[i,o]};if(s("RegExp",j)){for(var G=function(e,t){var n,r,i,o,s,c,u=d(P,this),g=h(e),m=void 0===t,v=[],y=e;if(!u&&g&&m&&e.constructor===G)return e;if((g||d(P,e))&&(e=e.source,m&&(t=f(y))),e=void 0===e?"":p(e),t=void 0===t?"":p(t),y=e,x&&"dotAll"in D&&(r=!!t&&A(t,"s")>-1)&&(t=O(t,/s/g,"")),n=t,F&&"sticky"in D&&(i=!!t&&A(t,"y")>-1)&&$&&(t=O(t,/y/g,"")),k&&(e=(o=z(e))[0],v=o[1]),s=a(C(e,t),u?this:P,G),(r||i||v.length)&&(c=b(s),r&&(c.dotAll=!0,c.raw=G(H(e),n)),i&&(c.sticky=!0),v.length&&(c.groups=v)),e!==y)try{l(s,"source",""===y?"(?:)":y)}catch(e){}return s},q=u(C),U=0;q.length>U;)m(G,C,q[U++]);P.constructor=G,G.prototype=P,v(i,"RegExp",G,{constructor:!0})}_("RegExp")},57465:(e,t,n)=>{"use strict";var r=n(43724),i=n(83635),o=n(22195),s=n(62106),a=n(91181).get,l=RegExp.prototype,c=TypeError;r&&i&&s(l,"dotAll",{configurable:!0,get:function(){if(this!==l){if("RegExp"===o(this))return!!a(this).dotAll;throw new c("Incompatible receiver, RegExp required")}}})},96069:(e,t,n)=>{"use strict";var r=n(46518),i=n(79504),o=n(63463),s=n(39297),a=n(60533).start,l=n(47452),c=Array,u=RegExp.escape,d=i("".charAt),h=i("".charCodeAt),p=i(1.1.toString),f=i([].join),g=/^[0-9a-z]/i,m=/^[$()*+./?[\\\]^{|}]/,v=RegExp("^[!\"#%&',\\-:;<=>@`~"+l+"]"),y=i(g.exec),w={" ":"t","\n":"n","\v":"v","\f":"f","\r":"r"},b=function(e){var t=p(h(e,0),16);return t.length<3?"\\x"+a(t,2,"0"):"\\u"+a(t,4,"0")};r({target:"RegExp",stat:!0,forced:!u||"\\x61b"!==u("ab")},{escape:function(e){o(e);for(var t=e.length,n=c(t),r=0;r<t;r++){var i=d(e,r);if(0===r&&y(g,i))n[r]=b(i);else if(s(w,i))n[r]="\\"+w[i];else if(y(m,i))n[r]="\\"+i;else if(y(v,i))n[r]=b(i);else{var a=h(i,0);(63488&a)!=55296?n[r]=i:a>=56320||r+1>=t||(64512&h(e,r+1))!=56320?n[r]=b(i):(n[r]=i,n[++r]=d(e,r))}}return f(n,"")}})},27495:(e,t,n)=>{"use strict";var r=n(46518),i=n(57323);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},69479:(e,t,n)=>{"use strict";var r=n(43724),i=n(62106),o=n(65213),s=n(67979);r&&!o.correct&&(i(RegExp.prototype,"flags",{configurable:!0,get:s}),o.correct=!0)},87745:(e,t,n)=>{"use strict";var r=n(43724),i=n(58429).MISSED_STICKY,o=n(22195),s=n(62106),a=n(91181).get,l=RegExp.prototype,c=TypeError;r&&i&&s(l,"sticky",{configurable:!0,get:function(){if(this!==l){if("RegExp"===o(this))return!!a(this).sticky;throw new c("Incompatible receiver, RegExp required")}}})},90906:(e,t,n)=>{"use strict";n(27495);var r=n(46518),i=n(69565),o=n(94901),s=n(28551),a=n(655),l=function(){var e=!1,t=/[ac]/;return t.exec=function(){return e=!0,/./.exec.apply(this,arguments)},!0===t.test("abc")&&e}(),c=/./.test;r({target:"RegExp",proto:!0,forced:!l},{test:function(e){var t=s(this),n=a(e),r=t.exec;if(!o(r))return i(c,t,n);var l=i(r,t,n);return null!==l&&(s(l),!0)}})},38781:(e,t,n)=>{"use strict";var r=n(10350).PROPER,i=n(36840),o=n(28551),s=n(655),a=n(79039),l=n(61034),c="toString",u=RegExp.prototype,d=u[c],h=a(function(){return"/a/b"!==d.call({
23source:"a",flags:"b"})}),p=r&&d.name!==c;(h||p)&&i(u,c,function(){var e=o(this);return"/"+s(e.source)+"/"+s(l(e))},{unsafe:!0})},92405:(e,t,n)=>{"use strict";n(16468)("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},n(86938))},17642:(e,t,n)=>{"use strict";var r=n(46518),i=n(83440),o=n(79039);r({target:"Set",proto:!0,real:!0,forced:!n(84916)("difference",function(e){return 0===e.size})||o(function(){var e=new Set([1,2,3,4]);return 3!==e.difference({size:1,has:function(){return!0},keys:function(){var t=0;return{next:function(){var n=t++>1;return e.has(1)&&e.clear(),{done:n,value:2}}}}}).size})},{difference:i})},58004:(e,t,n)=>{"use strict";var r=n(46518),i=n(79039),o=n(68750);r({target:"Set",proto:!0,real:!0,forced:!n(84916)("intersection",function(e){return 2===e.size&&e.has(1)&&e.has(2)})||i(function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))})},{intersection:o})},33853:(e,t,n)=>{"use strict";var r=n(46518),i=n(64449);r({target:"Set",proto:!0,real:!0,forced:!n(84916)("isDisjointFrom",function(e){return!e})},{isDisjointFrom:i})},45876:(e,t,n)=>{"use strict";var r=n(46518),i=n(53838);r({target:"Set",proto:!0,real:!0,forced:!n(84916)("isSubsetOf",function(e){return e})},{isSubsetOf:i})},32475:(e,t,n)=>{"use strict";var r=n(46518),i=n(28527);r({target:"Set",proto:!0,real:!0,forced:!n(84916)("isSupersetOf",function(e){return!e})},{isSupersetOf:i})},31415:(e,t,n)=>{"use strict";n(92405)},15024:(e,t,n)=>{"use strict";var r=n(46518),i=n(83650),o=n(39835);r({target:"Set",proto:!0,real:!0,forced:!n(84916)("symmetricDifference")||!o("symmetricDifference")},{symmetricDifference:i})},31698:(e,t,n)=>{"use strict";var r=n(46518),i=n(44204),o=n(39835);r({target:"Set",proto:!0,real:!0,forced:!n(84916)("union")||!o("union")},{union:i})},89907:(e,t,n)=>{"use strict";var r=n(46518),i=n(77240);r({target:"String",proto:!0,forced:n(23061)("anchor")},{anchor:function(e){return i(this,"a","name",e)}})},67357:(e,t,n)=>{"use strict";var r=n(46518),i=n(79504),o=n(67750),s=n(91291),a=n(655),l=n(79039),c=i("".charAt);r({target:"String",proto:!0,forced:l(function(){return"\uD842"!=="ð ®·".at(-2)})},{at:function(e){var t=a(o(this)),n=t.length,r=s(e),i=r>=0?r:n+r;return i<0||i>=n?void 0:c(t,i)}})},11898:(e,t,n)=>{"use strict";var r=n(46518),i=n(77240);r({target:"String",proto:!0,forced:n(23061)("big")},{big:function(){return i(this,"big","","")}})},35490:(e,t,n)=>{"use strict";var r=n(46518),i=n(77240);r({target:"String",proto:!0,forced:n(23061)("blink")},{blink:function(){return i(this,"blink","","")}})},5745:(e,t,n)=>{"use strict";var r=n(46518),i=n(77240);r({target:"String",proto:!0,forced:n(23061)("bold")},{bold:function(){return i(this,"b","","")}})},23860:(e,t,n)=>{"use strict";var r=n(46518),i=n(68183).codeAt;r({target:"String",proto:!0},{codePointAt:function(e){return i(this,e)}})},99449:(e,t,n)=>{"use strict";var r=n(46518),i=n(27476),o=n(77347).f,s=n(18014),a=n(655),l=n(60511),c=n(67750),u=n(41436),d=n(96395),h=i("".slice),p=Math.min,f=u("endsWith");r({target:"String",proto:!0,forced:!(!d&&!f&&function(){var e=o(String.prototype,"endsWith");return e&&!e.writable}())&&!f},{endsWith:function(e){var t=a(c(this));l(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,i=void 0===n?r:p(s(n),r),o=a(e);return h(t,i-o.length,i)===o}})},94298:(e,t,n)=>{"use strict";var r=n(46518),i=n(77240);r({target:"String",proto:!0,forced:n(23061)("fixed")},{fixed:function(){return i(this,"tt","","")}})},60268:(e,t,n)=>{"use strict";var r=n(46518),i=n(77240);r({target:"String",proto:!0,forced:n(23061)("fontcolor")},{fontcolor:function(e){return i(this,"font","color",e)}})},69546:(e,t,n)=>{"use strict";var r=n(46518),i=n(77240);r({target:"String",proto:!0,forced:n(23061)("fontsize")},{fontsize:function(e){return i(this,"font","size",e)}})},27337:(e,t,n)=>{"use strict";var r=n(46518),i=n(79504),o=n(35610),s=RangeError,a=String.fromCharCode,l=String.fromCodePoint,c=i([].join);r({target:"String",stat:!0,arity:1,forced:!!l&&1!==l.length},{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,i=0;r>i;){if(t=+arguments[i++],o(t,1114111)!==t)throw new s(t+" is not a valid code point");n[i]=t<65536?a(t):a(((t-=65536)>>10)+55296,t%1024+56320)}return c(n,"")}})}
23,21699:(e,t,n)=>{"use strict";var r=n(46518),i=n(79504),o=n(60511),s=n(67750),a=n(655),l=n(41436),c=i("".indexOf);r({target:"String",proto:!0,forced:!l("includes")},{includes:function(e){return!!~c(a(s(this)),a(o(e)),arguments.length>1?arguments[1]:void 0)}})},42043:(e,t,n)=>{"use strict";var r=n(46518),i=n(79504),o=n(67750),s=n(655),a=i("".charCodeAt);r({target:"String",proto:!0},{isWellFormed:function(){for(var e=s(o(this)),t=e.length,n=0;n<t;n++){var r=a(e,n);if((63488&r)==55296&&(r>=56320||++n>=t||(64512&a(e,n))!=56320))return!1}return!0}})},20781:(e,t,n)=>{"use strict";var r=n(46518),i=n(77240);r({target:"String",proto:!0,forced:n(23061)("italics")},{italics:function(){return i(this,"i","","")}})},47764:(e,t,n)=>{"use strict";var r=n(68183).charAt,i=n(655),o=n(91181),s=n(51088),a=n(62529),l="String Iterator",c=o.set,u=o.getterFor(l);s(String,"String",function(e){c(this,{type:l,string:i(e),index:0})},function(){var e,t=u(this),n=t.string,i=t.index;return i>=n.length?a(void 0,!0):(e=r(n,i),t.index+=e.length,a(e,!1))})},50778:(e,t,n)=>{"use strict";var r=n(46518),i=n(77240);r({target:"String",proto:!0,forced:n(23061)("link")},{link:function(e){return i(this,"a","href",e)}})},28543:(e,t,n)=>{"use strict";var r=n(46518),i=n(69565),o=n(27476),s=n(33994),a=n(62529),l=n(67750),c=n(18014),u=n(655),d=n(28551),h=n(20034),p=n(22195),f=n(60788),g=n(61034),m=n(55966),v=n(36840),y=n(79039),w=n(78227),b=n(2293),_=n(57829),S=n(56682),x=n(91181),k=n(96395),E=w("matchAll"),C="RegExp String",P=C+" Iterator",T=x.set,L=x.getterFor(P),I=RegExp.prototype,O=TypeError,A=o("".indexOf),M=o("".matchAll),N=!!M&&!y(function(){M("a",/./)}),D=s(function(e,t,n,r){T(this,{type:P,regexp:e,string:t,global:n,unicode:r,done:!1})},C,function(){var e=L(this);if(e.done)return a(void 0,!0);var t=e.regexp,n=e.string,r=S(t,n);return null===r?(e.done=!0,a(void 0,!0)):(e.global?""===u(r[0])&&(t.lastIndex=_(n,c(t.lastIndex),e.unicode)):e.done=!0,a(r,!1))}),R=function(e){var t,n,r,i=d(this),o=u(e),s=b(i,RegExp),a=u(g(i));return t=new s(s===RegExp?i.source:i,a),n=!!~A(a,"g"),r=!!~A(a,"u"),t.lastIndex=c(i.lastIndex),new D(t,o,n,r)};r({target:"String",proto:!0,forced:N},{matchAll:function(e){var t,n,r,o=l(this);if(h(e)){if(f(e)&&!~A(u(l(g(e))),"g"))throw new O("`.matchAll` does not allow non-global regexes");if(N)return M(o,e);if(void 0===(n=m(e,E))&&k&&"RegExp"===p(e)&&(n=R),n)return i(n,e,o)}else if(N)return M(o,e);return t=u(o),r=RegExp(e,"g"),k?i(R,r,t):r[E](t)}}),k||E in I||v(I,E,R)},71761:(e,t,n)=>{"use strict";var r=n(69565),i=n(79504),o=n(89228),s=n(28551),a=n(20034),l=n(18014),c=n(655),u=n(67750),d=n(55966),h=n(57829),p=n(61034),f=n(56682),g=i("".indexOf);o("match",function(e,t,n){return[function(t){var n=u(this),i=a(t)?d(t,e):void 0;return i?r(i,t,n):new RegExp(t)[e](c(n))},function(e){var r,i=s(this),o=c(e),a=n(t,i,o);if(a.done)return a.value;var u=c(p(i));if(-1===g(u,"g"))return f(i,o);var d=-1!==g(u,"u");i.lastIndex=0;for(var m=[],v=0;null!==(r=f(i,o));){var y=c(r[0]);m[v]=y,""===y&&(i.lastIndex=h(o,l(i.lastIndex),d)),v++}return 0===v?null:m}]})},35701:(e,t,n)=>{"use strict";var r=n(46518),i=n(60533).end;r({target:"String",proto:!0,forced:n(83063)},{padEnd:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},68156:(e,t,n)=>{"use strict";var r=n(46518),i=n(60533).start;r({target:"String",proto:!0,forced:n(83063)},{padStart:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},85906:(e,t,n)=>{"use strict";var r=n(46518),i=n(79504),o=n(25397),s=n(48981),a=n(655),l=n(26198),c=i([].push),u=i([].join);r({target:"String",stat:!0},{raw:function(e){var t=o(s(e).raw),n=l(t);if(!n)return"";for(var r=arguments.length,i=[],d=0;;){if(c(i,a(t[d++])),d===n)return u(i,"");d<r&&c(i,a(arguments[d]))}}})},42781:(e,t,n)=>{"use strict";n(46518)({target:"String",proto:!0},{repeat:n(72333)})},79978:(e,t,n)=>{"use strict";var r=n(46518),i=n(69565),o=n(79504),s=n(67750),a=n(94901),l=n(20034),c=n(60788),u=n(655),d=n(55966),h=n(61034),p=n(2478),f=n(78227),g=n(96395),m=f("replace"),v=TypeError,y=o("".indexOf),w=o("".replace),b=o("".slice),_=Math.max;r({target:"String",proto:!0},{replaceAll:function(e,t){var n,r,o,f,S,x,k,E,C,P=s(this),T=0,L="";if(l(e)){if((n=c(e))&&!~y(u(s(h(e))),"g"))throw new v("`.replaceAll` does not allow non-global regexes");if(r=d(e,m))return i(r,e,P,t);if(g&&n)return w(u(P),e,t)}for(o=u(P),f=u(e),(S=a(t))||(t=u(t)),k=_(1,x=f.length),E=y(o,f);-1!==E;)C=S?u(t(f,E,o)):p(f,o,E,[],void 0,t),L+=b(o,T,E)+C,T=E+x,E=E+k>o.length?-1:y(o,f,E+k);return T<o.length&&(L+=b(o,T)),L}})},25440:(e,t,n)=>{"use strict";var r=n(18745),i=n(69565),o=n(79504),s=n(89228),a=n(79039),l=n(28551),c=n(94901),u=n(20034),d=n(91291),h=n(18014),p=n(655),f=n(67750),g=n(57829),m=n(55966),v=n(2478),y=n(61034),w=n(56682),b=n(78227)("replace"),_=Math.max,S=Math.min,x=o([].concat),k=o([].push),E=o("".indexOf),C=o("".slice),P="$0"==="a".replace(/./,"$0"),T=!!/./[b]&&""===/./[b]("a","$0");s("replace",function(e,t,n){var o=T?"$":"$0";return[function(e,n){var r=f(this),o=u(e)?m(e,b):void 0;return o?i(o,e,r,n):i(t,p(r),e,n)},function(e,i){var s=l(this),a=p(e);if("string"==typeof i&&-1===E(i,o)&&-1===E(i,"$<")){var u=n(t,s,a,i);if(u.done)return u.value}var f=c(i);f||(i=p(i));var m=p(y(s)),b=-1!==E(m,"g");b&&(A=-1!==E(m,"u"),s.lastIndex=0);for(var P=[];null!==(N=w(s,a))&&(k(P,N),b);){;""===p(N[0])&&(s.lastIndex=g(a,h(s.lastIndex),A))}for(var T="",L=0,I=0;I<P.length;I++){for(var O,A,M,N=P[I],D=p(N[0]),R=_(S(d(N.index),a.length),0),B=[],F=1;F<N.length;F++)k(B,void 0===(O=N[F])?O:String(O));var $=N.groups;if(f){var j=x([D],B,R,a);void 0!==$&&k(j,$),M=p(r(i,void 0,j))}else M=v(D,a,R,B,$,i);R>=L&&(T+=C(a,L,R)+M,L=R+D.length)}return T+C(a,L)}]},!!a(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})||!P||T)},5746:(e,t,n)=>{"use strict";var r=n(69565),i=n(89228),o=n(28551),s=n(20034),a=n(67750),l=n(3470),c=n(655),u=n(55966),d=n(56682);i("search",function(e,t,n){return[function(t){var n=a(this),i=s(t)?u(t,e):void 0;return i?r(i,t,n):new RegExp(t)[e](c(n))},function(e){var r=o(this),i=c(e),s=n(t,r,i);if(s.done)return s.value;var a=r.lastIndex;l(a,0)||(r.lastIndex=0);var u=d(r,i);return l(r.lastIndex,a)||(r.lastIndex=a),null===u?-1:u.index}]})},89195:(e,t,n)=>{"use strict";var r=n(46518),i=n(77240);r({target:"String",proto:!0,forced:n(23061)("small")},{small:function(){return i(this,"small","","")}})},90744:(e,t,n)=>{"use strict";var r=n(69565),i=n(79504),o=n(89228),s=n(28551),a=n(20034),l=n(67750),c=n(2293),u=n(57829),d=n(18014),h=n(655),p=n(55966),f=n(56682),g=n(58429),m=n(79039),v=g.UNSUPPORTED_Y,y=Math.min,w=i([].push),b=i("".slice),_=!m(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}),S="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;o("split",function(e,t,n){var i="0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:r(t,this,e,n)}:t;return[function(t,n){var o=l(this),s=a(t)?p(t,e):void 0;return s?r(s,t,o,n):r(i,h(o),t,n)},function(e,r){var o=s(this),a=h(e);if(!S){var l=n(i,o,a,r,i!==t);if(l.done)return l.value}var p=c(o,RegExp),g=o.unicode,m=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(v?"g":"y"),_=new p(v?"^(?:"+o.source+")":o,m),x=void 0===r?0xffffffff:r>>>0;if(0===x)return[];if(0===a.length)return null===f(_,a)?[a]:[];for(var k=0,E=0,C=[];E<a.length;){_.lastIndex=v?0:E;var P,T=f(_,v?b(a,E):a);if(null===T||(P=y(d(_.lastIndex+(v?E:0)),a.length))===k)E=u(a,E,g);else{if(w(C,b(a,k,E)),C.length===x)return C;for(var L=1;L<=T.length-1;L++)if(w(C,T[L]),C.length===x)return C;E=k=P}}return w(C,b(a,k)),C}]},S||!_,v)},11392:(e,t,n)=>{"use strict";var r=n(46518),i=n(27476),o=n(77347).f,s=n(18014),a=n(655),l=n(60511),c=n(67750),u=n(41436),d=n(96395),h=i("".slice),p=Math.min,f=u("startsWith");r({target:"String",proto:!0,forced:!(!d&&!f&&function(){var e=o(String.prototype,"startsWith");return e&&!e.writable}())&&!f},{startsWith:function(e){var t=a(c(this));l(e);var n=s(p(arguments.length>1?arguments[1]:void 0,t.length)),r=a(e);return h(t,n,n+r.length)===r}})},46276:(e,t,n)=>{"use strict";var r=n(46518),i=n(77240);r({target:"String",proto:!0,forced:n(23061)("strike")},{strike:function(){return i(this,"strike","","")}})},48718:(e,t,n)=>{"use strict";var r=n(46518),i=n(77240);r({target:"String",proto:!0,forced:n(23061)("sub")},{sub:function(){return i(this,"sub","","")}})},50375:(e,t,n)=>{"use strict";
23var r=n(46518),i=n(79504),o=n(67750),s=n(91291),a=n(655),l=i("".slice),c=Math.max,u=Math.min;r({target:"String",proto:!0,forced:!"".substr||"b"!=="ab".substr(-1)},{substr:function(e,t){var n,r,i=a(o(this)),d=i.length,h=s(e);return(h===1/0&&(h=0),h<0&&(h=c(d+h,0)),(n=void 0===t?d:s(t))<=0||n===1/0)?"":(r=u(h+n,d),h>=r?"":l(i,h,r))}})},16308:(e,t,n)=>{"use strict";var r=n(46518),i=n(77240);r({target:"String",proto:!0,forced:n(23061)("sup")},{sup:function(){return i(this,"sup","","")}})},67438:(e,t,n)=>{"use strict";var r=n(46518),i=n(69565),o=n(79504),s=n(67750),a=n(655),l=n(79039),c=Array,u=o("".charAt),d=o("".charCodeAt),h=o([].join),p="".toWellFormed,f=p&&l(function(){return"1"!==i(p,1)});r({target:"String",proto:!0,forced:f},{toWellFormed:function(){var e=a(s(this));if(f)return i(p,e);for(var t=e.length,n=c(t),r=0;r<t;r++){var o=d(e,r);(63488&o)!=55296?n[r]=u(e,r):o>=56320||r+1>=t||(64512&d(e,r+1))!=56320?n[r]="�":(n[r]=u(e,r),n[++r]=u(e,r))}return h(n,"")}})},39202:(e,t,n)=>{"use strict";n(33313);var r=n(46518),i=n(18866);r({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==i},{trimEnd:i})},58934:(e,t,n)=>{"use strict";var r=n(46518),i=n(53487);r({target:"String",proto:!0,name:"trimStart",forced:void 0!==i},{trimLeft:i})},33313:(e,t,n)=>{"use strict";var r=n(46518),i=n(18866);r({target:"String",proto:!0,name:"trimEnd",forced:void 0!==i},{trimRight:i})},43359:(e,t,n)=>{"use strict";n(58934);var r=n(46518),i=n(53487);r({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==i},{trimStart:i})},42762:(e,t,n)=>{"use strict";var r=n(46518),i=n(43802).trim;r({target:"String",proto:!0,forced:n(60706)("trim")},{trim:function(){return i(this)}})},88940:(e,t,n)=>{"use strict";var r=n(46518),i=n(44576),o=n(1625),s=n(42787),a=n(52967),l=n(77740),c=n(2360),u=n(66699),d=n(6980),h=n(80747),p=n(32603),f=n(78227),g=n(79039),m=n(96395),v=i.SuppressedError,y=f("toStringTag"),w=Error,b=!!v&&3!==v.length,_=!!v&&g(function(){return 4===new v(1,2,3,{cause:4}).cause}),S=b||_,x=function(e,t,n){var r,i=o(k,this);return a?r=S&&(!i||s(this)===k)?new v:a(new w,i?s(this):k):u(r=i?this:c(k),y,"Error"),void 0!==n&&u(r,"message",p(n)),h(r,x,r.stack,1),u(r,"error",e),u(r,"suppressed",t),r};a?a(x,w):l(x,w,{name:!0});var k=x.prototype=S?v.prototype:c(w.prototype,{constructor:d(1,x),message:d(1,""),name:d(1,"SuppressedError")});S&&!m&&(k.constructor=x),r({global:!0,constructor:!0,arity:3,forced:S},{SuppressedError:x})},34113:(e,t,n)=>{"use strict";var r=n(44576),i=n(70511),o=n(24913).f,s=n(77347).f,a=r.Symbol;if(i("asyncDispose"),a){var l=s(a,"asyncDispose");l.enumerable&&l.configurable&&l.writable&&o(a,"asyncDispose",{value:l.value,enumerable:!1,configurable:!1,writable:!1})}},66412:(e,t,n)=>{"use strict";n(70511)("asyncIterator")},6761:(e,t,n)=>{"use strict";var r=n(46518),i=n(44576),o=n(69565),s=n(79504),a=n(96395),l=n(43724),c=n(4495),u=n(79039),d=n(39297),h=n(1625),p=n(28551),f=n(25397),g=n(56969),m=n(655),v=n(6980),y=n(2360),w=n(71072),b=n(38480),_=n(10298),S=n(33717),x=n(77347),k=n(24913),E=n(96801),C=n(48773),P=n(36840),T=n(62106),L=n(25745),I=n(66119),O=n(30421),A=n(33392),M=n(78227),N=n(1951),D=n(70511),R=n(58242),B=n(10687),F=n(91181),$=n(59213).forEach,j=I("hidden"),H="Symbol",z="prototype",G=F.set,q=F.getterFor(H),U=Object[z],W=i.Symbol,V=W&&W[z],Y=i.RangeError,X=i.TypeError,K=i.QObject,J=x.f,Z=k.f,Q=_.f,ee=C.f,et=s([].push),en=L("symbols"),er=L("op-symbols"),ei=L("wks"),eo=!K||!K[z]||!K[z].findChild,es=function(e,t,n){var r=J(U,t);r&&delete U[t],Z(e,t,n),r&&e!==U&&Z(U,t,r)},ea=l&&u(function(){return 7!==y(Z({},"a",{get:function(){return Z(this,"a",{value:7}).a}})).a})?es:Z,el=function(e,t){var n=en[e]=y(V);return G(n,{type:H,tag:e,description:t}),l||(n.description=t),n},ec=function(e,t,n){e===U&&ec(er,t,n),p(e);var r=g(t);return(p(n),d(en,r))?(n.enumerable?(d(e,j)&&e[j][r]&&(e[j][r]=!1),n=y(n,{enumerable:v(0,!1)})):(d(e,j)||Z(e,j,v(1,y(null))),e[j][r]=!0),ea(e,r,n)):Z(e,r,n)},eu=function(e,t){p(e);var n=f(t);return $(w(n).concat(ef(n)),function(t){(!l||o(ed,n,t))&&ec(e,t,n[t])}),e},ed=function(e){var t=g(e),n=o(ee,this,t);
vendor: 3,136 bytes, line 23
23return(!(this===U&&d(en,t))||!!d(er,t))&&(!(n||!d(this,t)||!d(en,t)||d(this,j)&&this[j][t])||n)},eh=function(e,t){var n=f(e),r=g(t);if(!(n===U&&d(en,r))||d(er,r)){var i=J(n,r);return i&&d(en,r)&&!(d(n,j)&&n[j][r])&&(i.enumerable=!0),i}},ep=function(e){var t=Q(f(e)),n=[];return $(t,function(e){d(en,e)||d(O,e)||et(n,e)}),n},ef=function(e){var t=e===U,n=Q(t?er:f(e)),r=[];return $(n,function(e){d(en,e)&&(!t||d(U,e))&&et(r,en[e])}),r};!c&&(P(V=(W=function(){if(h(V,this))throw new X("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?m(arguments[0]):void 0,t=A(e),n=function(e){var r=void 0===this?i:this;r===U&&o(n,er,e),d(r,j)&&d(r[j],t)&&(r[j][t]=!1);var s=v(1,e);try{ea(r,t,s)}catch(e){if(!(e instanceof Y))throw e;es(r,t,s)}};return l&&eo&&ea(U,t,{configurable:!0,set:n}),el(t,e)})[z],"toString",function(){return q(this).tag}),P(W,"withoutSetter",function(e){return el(A(e),e)}),C.f=ed,k.f=ec,E.f=eu,x.f=eh,b.f=_.f=ep,S.f=ef,N.f=function(e){return el(M(e),e)},l&&(T(V,"description",{configurable:!0,get:function(){return q(this).description}}),a||P(U,"propertyIsEnumerable",ed,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:W}),$(w(ei),function(e){D(e)}),r({target:H,stat:!0,forced:!c},{useSetter:function(){eo=!0},useSimple:function(){eo=!1}}),r({target:"Object",stat:!0,forced:!c,sham:!l},{create:function(e,t){return void 0===t?y(e):eu(y(e),t)},defineProperty:ec,defineProperties:eu,getOwnPropertyDescriptor:eh}),r({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:ep}),R(),B(W,H),O[j]=!0},89463:(e,t,n)=>{"use strict";var r=n(46518),i=n(43724),o=n(44576),s=n(79504),a=n(39297),l=n(94901),c=n(1625),u=n(655),d=n(62106),h=n(77740),p=o.Symbol,f=p&&p.prototype;if(i&&l(p)&&(!("description"in f)||void 0!==p().description)){var g={},m=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:u(arguments[0]),t=c(f,this)?new p(e):void 0===e?p():p(e);return""===e&&(g[t]=!0),t};h(m,p),m.prototype=f,f.constructor=m;var v="Symbol(description detection)"===String(p("description detection")),y=s(f.valueOf),w=s(f.toString),b=/^Symbol\((.*)\)[^)]+$/,_=s("".replace),S=s("".slice);d(f,"description",{configurable:!0,get:function(){var e=y(this);if(a(g,e))return"";var t=w(e),n=v?S(t,7,-1):_(t,b,"$1");return""===n?void 0:n}}),r({global:!0,constructor:!0,forced:!0},{Symbol:m})}},97324:(e,t,n)=>{"use strict";var r=n(44576),i=n(70511),o=n(24913).f,s=n(77347).f,a=r.Symbol;if(i("dispose"),a){var l=s(a,"dispose");l.enumerable&&l.configurable&&l.writable&&o(a,"dispose",{value:l.value,enumerable:!1,configurable:!1,writable:!1})}},81510:(e,t,n)=>{"use strict";var r=n(46518),i=n(97751),o=n(39297),s=n(655),a=n(25745),l=n(91296),c=a("string-to-symbol-registry"),u=a("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!l},{for:function(e){var t=s(e);if(o(c,t))return c[t];var n=i("Symbol")(t);return c[t]=n,u[n]=t,n}})},60193:(e,t,n)=>{"use strict";n(70511)("hasInstance")},92168:(e,t,n)=>{"use strict";n(70511)("isConcatSpreadable")},2259:(e,t,n)=>{"use strict";n(70511)("iterator")},52675:(e,t,n)=>{"use strict";n(6761),n(81510),n(97812),n(33110),n(49773)}
23,97812:(e,t,n)=>{"use strict";var r=n(46518),i=n(39297),o=n(10757),s=n(16823),a=n(25745),l=n(91296),c=a("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!l},{keyFor:function(e){if(!o(e))throw TypeError(s(e)+" is not a symbol");if(i(c,e))return c[e]}})},83142:(e,t,n)=>{"use strict";n(70511)("matchAll")},86964:(e,t,n)=>{"use strict";n(70511)("match")},83237:(e,t,n)=>{"use strict";n(70511)("replace")},61833:(e,t,n)=>{"use strict";n(70511)("search")},67947:(e,t,n)=>{"use strict";n(70511)("species")},31073:(e,t,n)=>{"use strict";n(70511)("split")},45700:(e,t,n)=>{"use strict";var r=n(70511),i=n(58242);r("toPrimitive"),i()},78125:(e,t,n)=>{"use strict";var r=n(97751),i=n(70511),o=n(10687);i("toStringTag"),o(r("Symbol"),"Symbol")},20326:(e,t,n)=>{"use strict";n(70511)("unscopables")},48140:(e,t,n)=>{"use strict";var r=n(94644),i=n(26198),o=n(91291),s=r.aTypedArray;(0,r.exportTypedArrayMethod)("at",function(e){var t=s(this),n=i(t),r=o(e),a=r>=0?r:n+r;return a<0||a>=n?void 0:t[a]})},81630:(e,t,n)=>{"use strict";var r=n(79504),i=n(94644),o=r(n(57029)),s=i.aTypedArray;(0,i.exportTypedArrayMethod)("copyWithin",function(e,t){return o(s(this),e,t,arguments.length>2?arguments[2]:void 0)})},72170:(e,t,n)=>{"use strict";var r=n(94644),i=n(59213).every,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("every",function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)})},75044:(e,t,n)=>{"use strict";var r=n(94644),i=n(84373),o=n(75854),s=n(36955),a=n(69565),l=n(79504),c=n(79039),u=r.aTypedArray,d=r.exportTypedArrayMethod,h=l("".slice);d("fill",function(e){var t=arguments.length;return u(this),a(i,this,"Big"===h(s(this),0,3)?o(e):+e,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)},c(function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e}))},69539:(e,t,n)=>{"use strict";var r=n(94644),i=n(59213).filter,o=n(29948),s=r.aTypedArray;(0,r.exportTypedArrayMethod)("filter",function(e){var t=i(s(this),e,arguments.length>1?arguments[1]:void 0);return o(this,t)})},89955:(e,t,n)=>{"use strict";var r=n(94644),i=n(59213).findIndex,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("findIndex",function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)})},91134:(e,t,n)=>{"use strict";var r=n(94644),i=n(43839).findLastIndex,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("findLastIndex",function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)})},21903:(e,t,n)=>{"use strict";var r=n(94644),i=n(43839).findLast,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("findLast",function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)})},31694:(e,t,n)=>{"use strict";var r=n(94644),i=n(59213).find,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("find",function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)})},34594:(e,t,n)=>{"use strict";n(15823)("Float32",function(e){return function(t,n,r){return e(this,t,n,r)}})},29833:(e,t,n)=>{"use strict";n(15823)("Float64",function(e){return function(t,n,r){return e(this,t,n,r)}})},33206:(e,t,n)=>{"use strict";var r=n(94644),i=n(59213).forEach,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("forEach",function(e){i(o(this),e,arguments.length>1?arguments[1]:void 0)})},48345:(e,t,n)=>{"use strict";var r=n(72805);(0,n(94644).exportTypedArrayStaticMethod)("from",n(43251),r)},44496:(e,t,n)=>{"use strict";var r=n(94644),i=n(19617).includes,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("includes",function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)})},66651:(e,t,n)=>{"use strict";var r=n(94644),i=n(19617).indexOf,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("indexOf",function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)})},72107:(e,t,n)=>{"use strict";n(15823)("Int16",function(e){return function(t,n,r){return e(this,t,n,r)}})},95477:(e,t,n)=>{"use strict";n(15823)("Int32",function(e){return function(t,n,r){return e(this,t,n,r)}})},46594:(e,t,n)=>{"use strict";n(15823)("Int8",function(e){return function(t,n,r){return e(this,t,n,r)}})},12887:(e,t,n)=>{"use strict";var r=n(44576),i=n(79039),o=n(79504),s=n(94644),a=n(23792),l=n(78227)("iterator"),c=r.Uint8Array,u=o(a.values),d=o(a.keys),h=o(a.entries),p=s.aTypedArray,f=s.exportTypedArrayMethod,g=c&&c.prototype,m=!i(function(){g[l].call([1])}),v=!!g&&g.values&&g[l]===g.values&&"values"===g.values.name,y=function(){return u(p(this))};f("entries",function(){return h(p(this))},m),f("keys",function(){return d(p(this))},m),f("values",y,m||!v,{name:"values"}),f(l,y,m||!v,{name:"values"})},19369:(e,t,n)=>{"use strict";var r=n(94644),i=n(79504),o=r.aTypedArray,s=r.exportTypedArrayMethod,a=i([].join);s("join",function(e){return a(o(this),e)})}
23,66812:(e,t,n)=>{"use strict";var r=n(94644),i=n(18745),o=n(8379),s=r.aTypedArray;(0,r.exportTypedArrayMethod)("lastIndexOf",function(e){var t=arguments.length;return i(o,s(this),t>1?[e,arguments[1]]:[e])})},8995:(e,t,n)=>{"use strict";var r=n(94644),i=n(59213).map,o=r.aTypedArray,s=r.getTypedArrayConstructor;(0,r.exportTypedArrayMethod)("map",function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0,function(e,t){return new(s(e))(t)})})},52568:(e,t,n)=>{"use strict";var r=n(94644),i=n(72805),o=r.aTypedArrayConstructor;(0,r.exportTypedArrayStaticMethod)("of",function(){for(var e=0,t=arguments.length,n=new(o(this))(t);t>e;)n[e]=arguments[e++];return n},i)},36072:(e,t,n)=>{"use strict";var r=n(94644),i=n(80926).right,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduceRight",function(e){var t=arguments.length;return i(o(this),e,t,t>1?arguments[1]:void 0)})},31575:(e,t,n)=>{"use strict";var r=n(94644),i=n(80926).left,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduce",function(e){var t=arguments.length;return i(o(this),e,t,t>1?arguments[1]:void 0)})},88747:(e,t,n)=>{"use strict";var r=n(94644),i=r.aTypedArray,o=r.exportTypedArrayMethod,s=Math.floor;o("reverse",function(){for(var e,t=i(this).length,n=s(t/2),r=0;r<n;)e=this[r],this[r++]=this[--t],this[t]=e;return this})},28845:(e,t,n)=>{"use strict";var r=n(44576),i=n(69565),o=n(94644),s=n(26198),a=n(58229),l=n(48981),c=n(79039),u=r.RangeError,d=r.Int8Array,h=d&&d.prototype,p=h&&h.set,f=o.aTypedArray,g=o.exportTypedArrayMethod,m=!c(function(){var e=new Uint8ClampedArray(2);return i(p,e,{length:1,0:3},1),3!==e[1]}),v=m&&o.NATIVE_ARRAY_BUFFER_VIEWS&&c(function(){var e=new d(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]});g("set",function(e){f(this);var t=a(arguments.length>1?arguments[1]:void 0,1),n=l(e);if(m)return i(p,this,n,t);var r=this.length,o=s(n),c=0;if(o+t>r)throw new u("Wrong length");for(;c<o;)this[t+c]=n[c++]},!m||v)}
23,29423:(e,t,n)=>{"use strict";var r=n(94644),i=n(79039),o=n(67680),s=r.aTypedArray,a=r.getTypedArrayConstructor;(0,r.exportTypedArrayMethod)("slice",function(e,t){for(var n=o(s(this),e,t),r=a(this),i=0,l=n.length,c=new r(l);l>i;)c[i]=n[i++];return c},i(function(){new Int8Array(1).slice()}))},57301:(e,t,n)=>{"use strict";var r=n(94644),i=n(59213).some,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("some",function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)})},373:(e,t,n)=>{"use strict";var r=n(44576),i=n(27476),o=n(79039),s=n(79306),a=n(74488),l=n(94644),c=n(13709),u=n(13763),d=n(39519),h=n(3607),p=l.aTypedArray,f=l.exportTypedArrayMethod,g=r.Uint16Array,m=g&&i(g.prototype.sort),v=!!m&&!(o(function(){m(new g(2),null)})&&o(function(){m(new g(2),{})})),y=!!m&&!o(function(){if(d)return d<74;if(c)return c<67;if(u)return!0;if(h)return h<602;var e,t,n=new g(516),r=Array(516);for(e=0;e<516;e++)t=e%4,n[e]=515-e,r[e]=e-2*t+3;for(m(n,function(e,t){return(e/4|0)-(t/4|0)}),e=0;e<516;e++)if(n[e]!==r[e])return!0});f("sort",function(e){return(void 0!==e&&s(e),y)?m(this,e):a(p(this),function(t,n){return void 0!==e?+e(t,n)||0:n!=n?-1:t!=t?1:0===t&&0===n?1/t>0&&1/n<0?1:-1:t>n})},!y||v)},86614:(e,t,n)=>{"use strict";var r=n(94644),i=n(18014),o=n(35610),s=r.aTypedArray,a=r.getTypedArrayConstructor;(0,r.exportTypedArrayMethod)("subarray",function(e,t){var n=s(this),r=n.length,l=o(e,r);return new(a(n))(n.buffer,n.byteOffset+l*n.BYTES_PER_ELEMENT,i((void 0===t?r:o(t,r))-l))})},41405:(e,t,n)=>{"use strict";var r=n(44576),i=n(18745),o=n(94644),s=n(79039),a=n(67680),l=r.Int8Array,c=o.aTypedArray,u=o.exportTypedArrayMethod,d=[].toLocaleString,h=!!l&&s(function(){d.call(new l(1))});u("toLocaleString",function(){return i(d,h?a(c(this)):c(this),a(arguments))},s(function(){return[1,2].toLocaleString()!==new l([1,2]).toLocaleString()})||!s(function(){l.prototype.toLocaleString.call([1,2])}))},37467:(e,t,n)=>{"use strict";var r=n(37628),i=n(94644),o=i.aTypedArray,s=i.exportTypedArrayMethod,a=i.getTypedArrayConstructor;s("toReversed",function(){return r(o(this),a(this))})},44732:(e,t,n)=>{"use strict";var r=n(94644),i=n(79504),o=n(79306),s=n(35370),a=r.aTypedArray,l=r.getTypedArrayConstructor,c=r.exportTypedArrayMethod,u=i(r.TypedArrayPrototype.sort);c("toSorted",function(e){void 0!==e&&o(e);var t=a(this);return u(s(l(t),t),e)})},33684:(e,t,n)=>{"use strict";var r=n(94644).exportTypedArrayMethod,i=n(79039),o=n(44576),s=n(79504),a=o.Uint8Array,l=a&&a.prototype||{},c=[].toString,u=s([].join);i(function(){c.call({})})&&(c=function(){return u(this)});var d=l.toString!==c;r("toString",c,d)},3690:(e,t,n)=>{"use strict";n(15823)("Uint16",function(e){return function(t,n,r){return e(this,t,n,r)}})},61740:(e,t,n)=>{"use strict";n(15823)("Uint32",function(e){return function(t,n,r){return e(this,t,n,r)}})}
23,21489:(e,t,n)=>{"use strict";n(15823)("Uint8",function(e){return function(t,n,r){return e(this,t,n,r)}})},22134:(e,t,n)=>{"use strict";n(15823)("Uint8",function(e){return function(t,n,r){return e(this,t,n,r)}},!0)},79577:(e,t,n)=>{"use strict";var r=n(39928),i=n(94644),o=n(18727),s=n(91291),a=n(75854),l=i.aTypedArray,c=i.getTypedArrayConstructor,u=i.exportTypedArrayMethod,d=function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(e){return 8===e}}(),h=d&&function(){try{new Int8Array(1).with(-.5,1)}catch(e){return!0}}();u("with",{with:function(e,t){var n=l(this),i=s(e),u=o(n)?a(t):+t;return r(n,c(n),i,u)}}.with,!d||h)},88267:(e,t,n)=>{"use strict";var r=n(46518),i=n(79504),o=n(655),s=String.fromCharCode,a=i("".charAt),l=i(/./.exec),c=i("".slice),u=/^[\da-f]{2}$/i,d=/^[\da-f]{4}$/i;r({global:!0},{unescape:function(e){for(var t,n,r=o(e),i="",h=r.length,p=0;p<h;){if("%"===(t=a(r,p++))){if("u"===a(r,p)){if(l(d,n=c(r,p+1,p+5))){i+=s(parseInt(n,16)),p+=5;continue}}else if(l(u,n=c(r,p,p+2))){i+=s(parseInt(n,16)),p+=2;continue}}i+=t}return i}})},65746:(e,t,n)=>{"use strict";var r,i=n(92744),o=n(44576),s=n(79504),a=n(56279),l=n(3451),c=n(16468),u=n(91625),d=n(20034),h=n(91181).enforce,p=n(79039),f=n(58622),g=Object,m=Array.isArray,v=g.isExtensible,y=g.isFrozen,w=g.isSealed,b=g.freeze,_=g.seal,S=!o.ActiveXObject&&"ActiveXObject"in o,x=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},k=c("WeakMap",x,u),E=k.prototype,C=s(E.set);if(f)if(S){r=u.getConstructor(x,"WeakMap",!0),l.enable();var P=s(E.delete),T=s(E.has),L=s(E.get);a(E,{delete:function(e){if(d(e)&&!v(e)){var t=h(this);return t.frozen||(t.frozen=new r),P(this,e)||t.frozen.delete(e)}return P(this,e)},has:function(e){if(d(e)&&!v(e)){var t=h(this);return t.frozen||(t.frozen=new r),T(this,e)||t.frozen.has(e)}return T(this,e)},get:function(e){if(d(e)&&!v(e)){var t=h(this);return t.frozen||(t.frozen=new r),T(this,e)?L(this,e):t.frozen.get(e)}return L(this,e)},set:function(e,t){if(d(e)&&!v(e)){var n=h(this);n.frozen||(n.frozen=new r),T(this,e)?C(this,e,t):n.frozen.set(e,t)}else C(this,e,t);return this}})}else i&&p(function(){var e=b([]);return C(new k,e,1),!y(e)})&&a(E,{set:function(e,t){var n;return m(e)&&(y(e)?n=b:w(e)&&(n=_)),C(this,e,t),n&&n(e),this}})},73772:(e,t,n)=>{"use strict";n(65746)},5240:(e,t,n)=>{"use strict";n(16468)("WeakSet",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},n(91625))},30958:(e,t,n)=>{"use strict";n(5240)},62480:(e,t,n)=>{"use strict";n(55081)}
23,35874:(e,t,n)=>{"use strict";n(96167)},2945:(e,t,n)=>{"use strict";var r=n(46518),i=n(44576),o=n(97751),s=n(79504),a=n(69565),l=n(79039),c=n(655),u=n(22812),d=n(92804).c2i,h=/[^\d+/a-z]/i,p=/[\t\n\f\r ]+/g,f=/[=]{1,2}$/,g=o("atob"),m=String.fromCharCode,v=s("".charAt),y=s("".replace),w=s(h.exec),b=!!g&&!l(function(){return"hi"!==g("aGk=")}),_=b&&l(function(){return""!==g(" ")}),S=b&&!l(function(){g("a")}),x=b&&!l(function(){g()}),k=b&&1!==g.length;r({global:!0,bind:!0,enumerable:!0,forced:!b||_||S||x||k},{atob:function(e){if(u(arguments.length,1),b&&!_&&!S)return a(g,i,e);var t,n,r,s=y(c(e),p,""),l="",x=0,k=0;if(s.length%4==0&&(s=y(s,f,"")),(t=s.length)%4==1||w(h,s))throw new(o("DOMException"))("The string is not correctly encoded","InvalidCharacterError");for(;x<t;)n=v(s,x++),r=k%4?64*r+d[n]:d[n],k++%4&&(l+=m(255&r>>(-2*k&6)));return l}})},42207:(e,t,n)=>{"use strict";var r=n(46518),i=n(44576),o=n(97751),s=n(79504),a=n(69565),l=n(79039),c=n(655),u=n(22812),d=n(92804).i2c,h=o("btoa"),p=s("".charAt),f=s("".charCodeAt),g=!!h&&!l(function(){return"aGk="!==h("hi")}),m=g&&!l(function(){h()}),v=g&&l(function(){return"bnVsbA=="!==h(null)}),y=g&&1!==h.length;r({global:!0,bind:!0,enumerable:!0,forced:!g||m||v||y},{btoa:function(e){if(u(arguments.length,1),g)return a(h,i,c(e));for(var t,n,r=c(e),s="",l=0,m=d;p(r,l)||(m="=",l%1);){if((n=f(r,l+=3/4))>255)throw new(o("DOMException"))("The string contains characters outside of the Latin1 range","InvalidCharacterError");s+=p(m,63&(t=t<<8|n)>>8-l%1*8)}return s}})},86368:(e,t,n)=>{"use strict";var r=n(46518),i=n(44576),o=n(59225).clear;r({global:!0,bind:!0,enumerable:!0,forced:i.clearImmediate!==o},{clearImmediate:o})},23500:(e,t,n)=>{"use strict";var r=n(44576),i=n(67400),o=n(79296),s=n(90235),a=n(66699),l=function(e){if(e&&e.forEach!==s)try{a(e,"forEach",s)}catch(t){e.forEach=s}};for(var c in i)i[c]&&l(r[c]&&r[c].prototype);l(o)},62953:(e,t,n)=>{"use strict";var r=n(44576),i=n(67400),o=n(79296),s=n(23792),a=n(66699),l=n(10687),c=n(78227)("iterator"),u=s.values,d=function(e,t){if(e){if(e[c]!==u)try{a(e,c,u)}catch(t){e[c]=u}if(l(e,t,!0),i[t]){for(var n in s)if(e[n]!==s[n])try{a(e,n,s[n])}catch(t){e[n]=s[n]}}}};for(var h in i)d(r[h]&&r[h].prototype,h);d(o,"DOMTokenList")},55815:(e,t,n)=>{"use strict";var r=n(46518),i=n(97751),o=n(89429),s=n(79039),a=n(2360),l=n(6980),c=n(24913).f,u=n(36840),d=n(62106),h=n(39297),p=n(90679),f=n(28551),g=n(77536),m=n(32603),v=n(55002),y=n(38574),w=n(91181),b=n(43724),_=n(96395),S="DOMException",x="DATA_CLONE_ERR",k=i("Error"),E=i(S)||function(){try{new(i("MessageChannel")||o("worker_threads").MessageChannel)().port1.postMessage(new WeakMap)}catch(e){if(e.name===x&&25===e.code)return e.constructor}}(),C=E&&E.prototype,P=k.prototype,T=w.set,L=w.getterFor(S),I="stack"in new k(S),O=function(e){return h(v,e)&&v[e].m?v[e].c:0},A=function(){p(this,M);var e=arguments.length,t=m(e<1?void 0:arguments[0]),n=m(e<2?void 0:arguments[1],"Error"),r=O(n);if(T(this,{type:S,name:n,message:t,code:r}),b||(this.name=n,this.message=t,this.code=r),I){var i=new k(t);i.name=S,c(this,"stack",l(1,y(i.stack,1)))}},M=A.prototype=a(P),N=function(e){return{enumerable:!0,configurable:!0,get:e}},D=function(e){return N(function(){return L(this)[e]})};b&&(d(M,"code",D("code")),d(M,"message",D("message")),d(M,"name",D("name"))),c(M,"constructor",l(1,A));var R=s(function(){return!(new E instanceof k)}),B=R||s(function(){return P.toString!==g||"2: 1"!==String(new E(1,2))}),F=R||s(function(){return 25!==new E(1,"DataCloneError").code}),$=R||25!==E[x]||25!==C[x],j=_?B||F||$:R;r({global:!0,constructor:!0,forced:j},{DOMException:j?A:E});var H=i(S),z=H.prototype;for(var G in B&&(_||E===H)&&u(z,"toString",g),F&&b&&E===H&&d(z,"code",N(function(){return O(f(this).name)})),v)if(h(v,G)){var q=v[G],U=q.s,W=l(6,q.c);h(H,U)||c(H,U,W),h(z,U)||c(z,U,W)}},64979:(e,t,n)=>{"use strict";var r=n(46518),i=n(44576),o=n(97751),s=n(6980),a=n(24913).f,l=n(39297),c=n(90679),u=n(23167),d=n(32603),h=n(55002),p=n(38574),f=n(43724),g=n(96395),m="DOMException",v=o("Error"),y=o(m),w=function(){c(this,b);var e=arguments.length,t=d(e<1?void 0:arguments[0]),n=d(e<2?void 0:arguments[1],"Error"),r=new y(t,n),i=new v(t);
23return i.name=m,a(r,"stack",s(1,p(i.stack,1))),u(r,this,w),r},b=w.prototype=y.prototype,_="stack"in new v(m),S="stack"in new y(1,2),x=y&&f&&Object.getOwnPropertyDescriptor(i,m),k=!!x&&!(x.writable&&x.configurable),E=_&&!k&&!S;r({global:!0,constructor:!0,forced:g||E},{DOMException:E?w:y});var C=o(m),P=C.prototype;if(P.constructor!==C){for(var T in g||a(P,"constructor",s(1,C)),h)if(l(h,T)){var L=h[T],I=L.s;l(C,I)||a(C,I,s(6,L.c))}}},79739:(e,t,n)=>{"use strict";var r=n(97751),i=n(10687),o="DOMException";i(r(o),o)},59848:(e,t,n)=>{"use strict";n(86368),n(29309)},122:(e,t,n)=>{"use strict";var r=n(46518),i=n(44576),o=n(91955),s=n(79306),a=n(22812),l=n(79039),c=n(43724);r({global:!0,enumerable:!0,dontCallGetSet:!0,forced:l(function(){return c&&1!==Object.getOwnPropertyDescriptor(i,"queueMicrotask").value.length})},{queueMicrotask:function(e){a(arguments.length,1),o(s(e))}})},13611:(e,t,n)=>{"use strict";var r=n(46518),i=n(44576),o=n(62106),s=n(43724),a=TypeError,l=Object.defineProperty,c=i.self!==i;try{if(s){var u=Object.getOwnPropertyDescriptor(i,"self");!c&&u&&u.get&&u.enumerable||o(i,"self",{get:function(){return i},set:function(e){if(this!==i)throw new a("Illegal invocation");l(i,"self",{value:e,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else r({global:!0,simple:!0,forced:c},{self:i})}catch(e){}},29309:(e,t,n)=>{"use strict";var r=n(46518),i=n(44576),o=n(59225).set,s=n(79472),a=i.setImmediate?s(o,!1):o;r({global:!0,bind:!0,enumerable:!0,forced:i.setImmediate!==a},{setImmediate:a})},15575:(e,t,n)=>{"use strict";var r=n(46518),i=n(44576),o=n(79472)(i.setInterval,!0);r({global:!0,bind:!0,forced:i.setInterval!==o},{setInterval:o})},24599:(e,t,n)=>{"use strict";var r=n(46518),i=n(44576),o=n(79472)(i.setTimeout,!0);r({global:!0,bind:!0,forced:i.setTimeout!==o},{setTimeout:o})},71678:(e,t,n)=>{"use strict";var r=n(96395),i=n(46518),o=n(44576),s=n(97751),a=n(79504),l=n(79039),c=n(33392),u=n(94901),d=n(33517),h=n(64117),p=n(20034),f=n(10757),g=n(72652),m=n(28551),v=n(36955),y=n(39297),w=n(97040),b=n(66699),_=n(26198),S=n(22812),x=n(61034),k=n(72248),E=n(94402),C=n(38469),P=n(94483),T=n(24659),L=n(1548),I=o.Object,O=o.Array,A=o.Date,M=o.Error,N=o.TypeError,D=o.PerformanceMark,R=s("DOMException"),B=k.Map,F=k.has,$=k.get,j=k.set,H=E.Set,z=E.add,G=E.has,q=s("Object","keys"),U=a([].push),W=a((!0).valueOf),V=a(1.1.valueOf),Y=a("".valueOf),X=a(A.prototype.getTime),K=c("structuredClone"),J="DataCloneError",Z="Transferring",Q=function(e){return!l(function(){var t=new o.Set([7]),n=e(t),r=e(I(7));return n===t||!n.has(7)||!p(r)||7!=+r})&&e},ee=function(e,t){return!l(function(){var n=new t,r=e({a:n,b:n});return!(r&&r.a===r.b&&r.a instanceof t&&r.a.stack===n.stack)})},et=o.structuredClone,en=r||!ee(et,M)||!ee(et,R)||!!l(function(){var e=et(new o.AggregateError([1],K,{cause:3}));return"AggregateError"!==e.name||1!==e.errors[0]||e.message!==K||3!==e.cause}),er=!et&&Q(function(e){return new D(K,{detail:e}).detail}),ei=Q(et)||er,eo=function(e){throw new R("Uncloneable type: "+e,J)},es=function(e,t){throw new R((t||"Cloning")+" of "+e+" cannot be properly polyfilled in this engine",J)},ea=function(e,t){return ei||es(t),ei(e)},el=function(){var e;try{e=new o.DataTransfer}catch(t){try{e=new o.ClipboardEvent("").clipboardData}catch(e){}}return e&&e.items&&e.files?e:null},ec=function(e,t,n){if(F(t,e))return $(t,e);if("SharedArrayBuffer"===(n||v(e)))r=ei?ei(e):e;else{var r,i,s,a,l,c,d=o.DataView;d||u(e.slice)||es("ArrayBuffer");try{if(u(e.slice)&&!e.resizable)r=e.slice(0);else for(c=0,i=e.byteLength,s=("maxByteLength"in e)?{maxByteLength:e.maxByteLength}:void 0,r=new ArrayBuffer(i,s),a=new d(e),l=new d(r);c<i;c++)l.setUint8(c,a.getUint8(c))}catch(e){throw new R("ArrayBuffer is detached",J)}}return j(t,e,r),r},eu=function(e,t,n,r,i){var s=o[t];return p(s)||es(t),new s(ec(e.buffer,i),n,r)},ed=function(e,t){if(f(e)&&eo("Symbol"),!p(e))return e;if(t){if(F(t,e))return $(t,e)}else t=new B;var n,r,i,a,l,c,d,h,g=v(e);switch(g){case"Array":i=O(_(e));break;case"Object":i={};break;case"Map":i=new B;break;case"Set":i=new H;break;case"RegExp":i=new RegExp(e.source,x(e));break;case"Error":switch(r=e.name){case"AggregateError":i=new(s(r))([]);break;case"EvalError":case"RangeError":case"ReferenceError":case"SuppressedError":case"SyntaxError":case"TypeError":case"URIError":i=new(s(r));break;case"CompileError":case"LinkError":case"RuntimeError":i=new(s("WebAssembly",r));break;default:i=new M}break;case"DOMException":i=new R(e.message,e.name);break;case"ArrayBuffer":case"SharedArrayBuffer":i=ec(e,t,g);break;case"DataView":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float16Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":c="DataView"===g?e.byteLength:e.length,i=eu(e,g,e.byteOffset,c,t);break;case"DOMQuad":try{i=new DOMQuad(ed(e.p1,t),ed(e.p2,t),ed(e.p3,t),ed(e.p4,t))}catch(t){i=ea(e,g)}break;case"File":if(ei)try{i=ei(e),v(i)!==g&&(i=void 0)}catch(e){}if(!i)try{i=new File([e],e.name,e)}catch(e){}i||es(g);break;case"FileList":if(a=el()){for(l=0,c=_(e);l<c;l++)a.items.add(ed(e[l],t));i=a.files}else i=ea(e,g);break;case"ImageData":try{i=new ImageData(ed(e.data,t),e.width,e.height,{colorSpace:e.colorSpace})}catch(t){i=ea(e,g)}break;default:if(ei)i=ei(e);else switch(g){case"BigInt":i=I(e.valueOf());break;case"Boolean":i=I(W(e));break;case"Number":i=I(V(e));break;case"String":i=I(Y(e));break;case"Date":i=new A(X(e));break;case"Blob":try{i=e.slice(0,e.size,e.type)}catch(e){es(g)}break;case"DOMPoint":case"DOMPointReadOnly":n=o[g];try{i=n.fromPoint?n.fromPoint(e):new n(e.x,e.y,e.z,e.w)}catch(e){es(g)}break;case"DOMRect":case"DOMRectReadOnly":n=o[g];try{i=n.fromRect?n.fromRect(e):new n(e.x,e.y,e.width,e.height)}catch(e){es(g)}break;case"DOMMatrix":case"DOMMatrixReadOnly":n=o[g];try{i=n.fromMatrix?n.fromMatrix(e):new n(e)}catch(e){es(g)}break;case"AudioData":case"VideoFrame":u(e.clone)||es(g);try{i=e.clone()}catch(e){eo(g)}break;case"CropTarget":case"CryptoKey":case"FileSystemDirectoryHandle":case"FileSystemFileHandle":case"FileSystemHandle":case"GPUCompilationInfo":case"GPUCompilationMessage":case"ImageBitmap":case"RTCCertificate":case"WebAssembly.Module":es(g);default:eo(g)}}switch(j(t,e,i),g){case"Array":case"Object":for(l=0,c=_(d=q(e));l<c;l++)h=d[l],w(i,h,ed(e[h],t));break;
23case"Map":e.forEach(function(e,n){j(i,ed(n,t),ed(e,t))});break;case"Set":e.forEach(function(e){z(i,ed(e,t))});break;case"Error":b(i,"message",ed(e.message,t)),y(e,"cause")&&b(i,"cause",ed(e.cause,t)),"AggregateError"===r?i.errors=ed(e.errors,t):"SuppressedError"===r&&(i.error=ed(e.error,t),i.suppressed=ed(e.suppressed,t));case"DOMException":T&&b(i,"stack",ed(e.stack,t))}return i},eh=function(e,t){if(!p(e))throw new N("Transfer option cannot be converted to a sequence");var n,r,i,s,a,l=[];g(e,function(e){U(l,m(e))});for(var c=0,h=_(l),f=new H;c<h;){if("ArrayBuffer"===(r=v(n=l[c++]))?G(f,n):F(t,n))throw new R("Duplicate transferable",J);if("ArrayBuffer"===r){z(f,n);continue}if(L)s=et(n,{transfer:[n]});else switch(r){case"ImageBitmap":d(i=o.OffscreenCanvas)||es(r,Z);try{(a=new i(n.width,n.height)).getContext("bitmaprenderer").transferFromImageBitmap(n),s=a.transferToImageBitmap()}catch(e){}break;case"AudioData":case"VideoFrame":u(n.clone)&&u(n.close)||es(r,Z);try{s=n.clone(),n.close()}catch(e){}break;case"MediaSourceHandle":case"MessagePort":case"MIDIAccess":case"OffscreenCanvas":case"ReadableStream":case"RTCDataChannel":case"TransformStream":case"WebTransportReceiveStream":case"WebTransportSendStream":case"WritableStream":es(r,Z)}if(void 0===s)throw new R("This object cannot be transferred: "+r,J);j(t,n,s)}return f},ep=function(e){C(e,function(e){L?ei(e,{transfer:[e]}):u(e.transfer)?e.transfer():P?P(e):es("ArrayBuffer",Z)})};i({global:!0,enumerable:!0,sham:!L,forced:en},{structuredClone:function(e){var t,n,r=S(arguments.length,1)>1&&!h(arguments[1])?m(arguments[1]):void 0,i=r?r.transfer:void 0;void 0!==i&&(n=eh(i,t=new B));var o=ed(e,t);return n&&ep(n),o}})},76031:(e,t,n)=>{"use strict";n(15575),n(24599)},98406:(e,t,n)=>{"use strict";n(23792),n(27337);var r=n(46518),i=n(44576),o=n(93389),s=n(97751),a=n(69565),l=n(79504),c=n(43724),u=n(67416),d=n(36840),h=n(62106),p=n(56279),f=n(10687),g=n(33994),m=n(91181),v=n(90679),y=n(94901),w=n(39297),b=n(76080),_=n(36955),S=n(28551),x=n(20034),k=n(655),E=n(2360),C=n(6980),P=n(70081),T=n(50851),L=n(62529),I=n(22812),O=n(78227),A=n(74488),M=O("iterator"),N="URLSearchParams",D=N+"Iterator",R=m.set,B=m.getterFor(N),F=m.getterFor(D),$=o("fetch"),j=o("Request"),H=o("Headers"),z=j&&j.prototype,G=H&&H.prototype,q=i.TypeError,U=i.encodeURIComponent,W=String.fromCharCode,V=s("String","fromCodePoint"),Y=parseInt,X=l("".charAt),K=l([].join),J=l([].push),Z=l("".replace),Q=l([].shift),ee=l([].splice),et=l("".split),en=l("".slice),er=l(/./.exec),ei=/\+/g,eo=/^[0-9a-f]+$/i,es=function(e,t){var n=en(e,t,t+2);return er(eo,n)?Y(n,16):NaN},ea=function(e){for(var t=0,n=128;n>0&&(e&n)!=0;n>>=1)t++;return t},el=function(e){var t=null;switch(e.length){case 1:t=e[0];break;case 2:t=(31&e[0])<<6|63&e[1];break;case 3:t=(15&e[0])<<12|(63&e[1])<<6|63&e[2];break;case 4:t=(7&e[0])<<18|(63&e[1])<<12|(63&e[2])<<6|63&e[3]}return t>1114111?null:t},ec=function(e){for(var t=(e=Z(e,ei," ")).length,n="",r=0;r<t;){var i=X(e,r);if("%"===i){if("%"===X(e,r+1)||r+3>t){n+="%",r++;continue}var o=es(e,r+1);if(o!=o){n+=i,r++;continue}r+=2;var s=ea(o);if(0===s)i=W(o);else{if(1===s||s>4){n+="�",r++;continue}for(var a=[o],l=1;l<s&&!(++r+3>t)&&"%"===X(e,r);){var c=es(e,r+1);if(c!=c){r+=3;break}if(c>191||c<128)break;J(a,c),r+=2,l++}if(a.length!==s){n+="�";continue}var u=el(a);null===u?n+="�":i=V(u)}}n+=i,r++}return n},eu=/[!'()~]|%20/g,ed={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},eh=function(e){return ed[e]},ep=function(e){return Z(U(e),eu,eh)},ef=g(function(e,t){R(this,{type:D,target:B(e).entries,index:0,kind:t})},N,function(){var e=F(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,L(void 0,!0);var r=t[n];switch(e.kind){case"keys":return L(r.key,!1);case"values":return L(r.value,!1)}return L([r.key,r.value],!1)},!0),eg=function(e){this.entries=[],this.url=null,void 0!==e&&(x(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===X(e,0)?en(e,1):e:k(e)))};eg.prototype={type:N,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,i,o,s,l,c=this.entries,u=T(e);if(u)for(n=(t=P(e,u)).next;!(r=a(n,t)).done;
vendor: 15,410 bytes, line 23
23){if((s=a(o=(i=P(S(r.value))).next,i)).done||(l=a(o,i)).done||!a(o,i).done)throw new q("Expected sequence with length 2");J(c,{key:k(s.value),value:k(l.value)})}else for(var d in e)w(e,d)&&J(c,{key:d,value:k(e[d])})},parseQuery:function(e){if(e)for(var t,n,r=this.entries,i=et(e,"&"),o=0;o<i.length;)(t=i[o++]).length&&J(r,{key:ec(Q(n=et(t,"="))),value:ec(K(n,"="))})},serialize:function(){for(var e,t=this.entries,n=[],r=0;r<t.length;)J(n,ep((e=t[r++]).key)+"="+ep(e.value));return K(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var em=function(){v(this,ev);var e=arguments.length>0?arguments[0]:void 0,t=R(this,new eg(e));c||(this.size=t.entries.length)},ev=em.prototype;if(p(ev,{append:function(e,t){var n=B(this);I(arguments.length,2),J(n.entries,{key:k(e),value:k(t)}),!c&&this.length++,n.updateURL()},delete:function(e){for(var t=B(this),n=I(arguments.length,1),r=t.entries,i=k(e),o=n<2?void 0:arguments[1],s=void 0===o?o:k(o),a=0;a<r.length;){var l=r[a];if(l.key===i&&(void 0===s||l.value===s)){if(ee(r,a,1),void 0!==s)break}else a++}c||(this.size=r.length),t.updateURL()},get:function(e){var t=B(this).entries;I(arguments.length,1);for(var n=k(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){var t=B(this).entries;I(arguments.length,1);for(var n=k(e),r=[],i=0;i<t.length;i++)t[i].key===n&&J(r,t[i].value);return r},has:function(e){for(var t=B(this).entries,n=I(arguments.length,1),r=k(e),i=n<2?void 0:arguments[1],o=void 0===i?i:k(i),s=0;s<t.length;){var a=t[s++];if(a.key===r&&(void 0===o||a.value===o))return!0}return!1},set:function(e,t){var n,r=B(this);I(arguments.length,1);for(var i=r.entries,o=!1,s=k(e),a=k(t),l=0;l<i.length;l++)(n=i[l]).key===s&&(o?ee(i,l--,1):(o=!0,n.value=a));o||J(i,{key:s,value:a}),c||(this.size=i.length),r.updateURL()},sort:function(){var e=B(this);A(e.entries,function(e,t){return e.key>t.key?1:-1}),e.updateURL()},forEach:function(e){for(var t,n=B(this).entries,r=b(e,arguments.length>1?arguments[1]:void 0),i=0;i<n.length;)r((t=n[i++]).value,t.key,this)},keys:function(){return new ef(this,"keys")},values:function(){return new ef(this,"values")},entries:function(){return new ef(this,"entries")}},{enumerable:!0}),d(ev,M,ev.entries,{name:"entries"}),d(ev,"toString",function(){return B(this).serialize()},{enumerable:!0}),c&&h(ev,"size",{get:function(){return B(this).entries.length},configurable:!0,enumerable:!0}),f(em,N),r({global:!0,constructor:!0,forced:!u},{URLSearchParams:em}),!u&&y(H)){var ey=l(G.has),ew=l(G.set),eb=function(e){if(x(e)){var t,n=e.body;if(_(n)===N)return ey(t=e.headers?new H(e.headers):new H,"content-type")||ew(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),E(e,{body:C(0,k(n)),headers:C(0,t)})}return e};if(y($)&&r({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return $(e,arguments.length>1?eb(arguments[1]):{})}}),y(j)){var e_=function(e){return v(this,z),new j(e,arguments.length>1?eb(arguments[1]):{})};z.constructor=e_,e_.prototype=z,r({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:e_})}}e.exports={URLSearchParams:em,getState:B}},14603:(e,t,n)=>{"use strict";var r=n(36840),i=n(79504),o=n(655),s=n(22812),a=URLSearchParams,l=a.prototype,c=i(l.append),u=i(l.delete),d=i(l.forEach),h=i([].push),p=new a("a=1&a=2&b=3");p.delete("a",1),p.delete("b",void 0),p+""!="a=2"&&r(l,"delete",function(e){var t,n=arguments.length,r=n<2?void 0:arguments[1];if(n&&void 0===r)return u(this,e);var i=[];d(this,function(e,t){h(i,{key:t,value:e})}),s(n,1);for(var a=o(e),l=o(r),p=0,f=0,g=!1,m=i.length;p<m;)t=i[p++],g||t.key===a?(g=!0,u(this,t.key)):f++;for(;f<m;)((t=i[f++]).key!==a||t.value!==l)&&c(this,t.key,t.value)},{enumerable:!0,unsafe:!0})},47566:(e,t,n)=>{"use strict";var r=n(36840),i=n(79504),o=n(655),s=n(22812),a=URLSearchParams,l=a.prototype,c=i(l.getAll),u=i(l.has),d=new a("a=1");(d.has("a",2)||!d.has("a",void 0))&&r(l,"has",function(e){var t=arguments.length,n=t<2?void 0:arguments[1];if(t&&void 0===n)return u(this,e);var r=c(this,e);s(t,1);for(var i=o(n),a=0;a<r.length;)if(r[a++]===i)return!0;return!1},{enumerable:!0,unsafe:!0})},48408:(e,t,n)=>{"use strict";n(98406)},98721:(e,t,n)=>{"use strict";var r=n(43724),i=n(79504),o=n(62106),s=URLSearchParams.prototype,a=i(s.forEach);!r||"size"in s||o(s,"size",{get:function(){var e=0;return a(this,function(){e++}),e},configurable:!0,enumerable:!0})},2222:(e,t,n)=>{"use strict";var r=n(46518),i=n(97751),o=n(79039),s=n(22812),a=n(655),l=n(67416),c=i("URL"),u=l&&o(function(){c.canParse()}),d=o(function(){return 1!==c.canParse.length});r({target:"URL",stat:!0,forced:!u||d},{canParse:function(e){var t=s(arguments.length,1),n=a(e),r=t<2||void 0===arguments[1]?void 0:a(arguments[1]);try{return new c(n,r),!0}catch(e){return!1}}})},45806:(e,t,n)=>{"use strict";n(47764);var r,i=n(46518),o=n(43724),s=n(67416),a=n(44576),l=n(76080),c=n(79504),u=n(36840),d=n(62106),h=n(90679),p=n(39297),f=n(44213),g=n(97916),m=n(67680),v=n(68183).codeAt,y=n(3717),w=n(655),b=n(10687),_=n(22812),S=n(98406),x=n(91181),k=x.set,E=x.getterFor("URL"),C=S.URLSearchParams,P=S.getState,T=a.URL,L=a.TypeError,I=a.parseInt,O=Math.floor,A=Math.pow,M=c("".charAt),N=c(/./.exec),D=c([].join),R=c(1.1.toString),B=c([].pop),F=c([].push),$=c("".replace),j=c([].shift),H=c("".split),z=c("".slice),G=c("".toLowerCase),q=c([].unshift),U="Invalid scheme",W="Invalid host",V="Invalid port",Y=/[a-z]/i,X=/[\d+-.a-z]/i,K=/\d/,J=/^0x/i,Z=/^[0-7]+$/,Q=/^\d+$/,ee=/^[\da-f]+$/i,et=/[\0\t\n\r #%/:<>?@[\\\]^|]/,en=/[\0\t\n\r #/:<>?@[\\\]^|]/,er=/^[\u0000-\u0020]+/,ei=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,eo=/[\t\n\r]/g,es=function(e){var t,n,r,i,o,s,a,l=H(e,".");if(l.length&&""===l[l.length-1]&&l.length--,(t=l.length)>4)return e;for(r=0,n=[];r<t;r++){if(""===(i=l[r]))return e;if(o=10,i.length>1&&"0"===M(i,0)&&(o=N(J,i)?16:8,i=z(i,8===o?1:2)),""===i)s=0;else{if(!N(10===o?Q:8===o?Z:ee,i))return e;s=I(i,o)}F(n,s)}for(r=0;r<t;r++)if(s=n[r],r===t-1){if(s>=A(256,5-t))return null}else if(s>255)return null;for(r=0,a=B(n);r<n.length;r++)a+=n[r]*A(256,3-r);return a},ea=function(e){var t,n,r,i,o,s,a,l=[0,0,0,0,0,0,0,0],c=0,u=null,d=0,h=function(){return M(e,d)};if(":"===h()){if(":"!==M(e,1))return;d+=2,u=++c}for(;h();){if(8===c)return;if(":"===h()){if(null!==u)return;d++,u=++c;continue}for(t=n=0;n<4&&N(ee,h());)t=16*t+I(h(),16),d++,n++;if("."===h()){if(0===n||(d-=n,c>6))return;for(r=0;h();){if(i=null,r>0)if("."!==h()||!(r<4))return;else d++;if(!N(K,h()))return;for(;N(K,h());){if(o=I(h(),10),null===i)i=o;else{if(0===i)return;i=10*i+o}if(i>255)return;d++}l[c]=256*l[c]+i,(2==++r||4===r)&&c++}if(4!==r)return;break}if(":"===h()){if(d++,!h())return}else if(h())return;l[c++]=t}if(null!==u)for(s=c-u,c=7;0!==c&&s>0;)a=l[c],l[c--]=l[u+s-1],l[u+--s]=a;else if(8!==c)return;return l},el=function(e){for(var t=null,n=1,r=null,i=0,o=0;o<8;o++)0!==e[o]?(i>n&&(t=r,n=i),r=null,i=0):(null===r&&(r=o),++i);return i>n?r:t},ec=function(e){var t,n,r,i;if("number"==typeof e){for(n=0,t=[];n<4;n++)q(t,e%256),e=O(e/256);return D(t,".")}if("object"==typeof e){for(n=0,t="",r=el(e);n<8;n++)(!i||0!==e[n])&&(i&&(i=!1),r===n?(t+=n?":":"::",i=!0):(t+=R(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},eu={},ed=f({},eu,{" ":1,'"':1,"<":1,">":1,"`":1}),eh=f({},ed,{"#":1,"?":1,"{":1,"}":1}),ep=f({},eh,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),ef=function(e,t){var n=v(e,0);return n>32&&n<127&&!p(t,e)?e:encodeURIComponent(e)},eg={ftp:21,file:null,http:80,https:443,ws:80,wss:443},em=function(e,t){var n;return 2===e.length&&N(Y,M(e,0))&&(":"===(n=M(e,1))||!t&&"|"===n)},ev=function(e){var t;return e.length>1&&em(z(e,0,2))&&(2===e.length||"/"===(t=M(e,2))||"\\"===t||"?"===t||"#"===t)},ey={},ew={},eb={},e_={},eS={},ex={},ek={},eE={},eC={},eP={},eT={},eL={},eI={},eO={},eA={},eM={},eN={},eD={},eR={},eB={},eF={},e$=function(e,t,n){var r,i,o,s=w(e);if(t){if(i=this.parse(s))throw new L(i);this.searchParams=null}else{if(void 0!==n&&(r=new e$(n,!0)),i=this.parse(s,null,r))throw new L(i);(o=P(new C)).bindURL(this),this.searchParams=o}};e$.prototype={type:"URL",parse:function(e,t,n){var i=t||ey,o=0,s="",a=!1,l=!1,c=!1;for(e=w(e),t||(this.scheme="",this.username="",this.password="",this.host=null,this.port=null,this.path=[],this.query=null,this.fragment=null,this.cannotBeABaseURL=!1,e=$(e,er,""),e=$(e,ei,"$1")),u=g(e=$(e,eo,""));o<=u.length;){switch(d=u[o],i){case ey:if(d&&N(Y,d))s+=G(d),i=ew;else{if(t)return U;i=eb;continue}break;case ew:if(d&&(N(X,d)||"+"===d||"-"===d||"."===d))s+=G(d);else if(":"===d){if(t&&(this.isSpecial()!==p(eg,s)||"file"===s&&(this.includesCredentials()||null!==this.port)||"file"===this.scheme&&!this.host))return;if(this.scheme=s,t){this.isSpecial()&&eg[this.scheme]===this.port&&(this.port=null);return}s="","file"===this.scheme?i=eO:this.isSpecial()&&n&&n.scheme===this.scheme?i=e_:this.isSpecial()?i=eE:"/"===u[o+1]?(i=eS,o++):(this.cannotBeABaseURL=!0,F(this.path,""),i=eR)}else{if(t)return U;s="",i=eb,o=0;continue}break;case eb:if(!n||n.cannotBeABaseURL&&"#"!==d)return U;if(n.cannotBeABaseURL&&"#"===d){this.scheme=n.scheme,this.path=m(n.path),this.query=n.query,this.fragment="",this.cannotBeABaseURL=!0,i=eF;break}i="file"===n.scheme?eO:ex;continue;case e_:if("/"===d&&"/"===u[o+1])i=eC,o++;else{i=ex;continue}break;case eS:if("/"===d){i=eP;break}i=eD;continue;case ex:if(this.scheme=n.scheme,d===r)this.username=n.username,this.password=n.password,this.host=n.host,this.port=n.port,this.path=m(n.path),this.query=n.query;else if("/"===d||"\\"===d&&this.isSpecial())i=ek;else if("?"===d)this.username=n.username,this.password=n.password,this.host=n.host,this.port=n.port,this.path=m(n.path),this.query="",i=eB;else if("#"===d)this.username=n.username,this.password=n.password,this.host=n.host,this.port=n.port,this.path=m(n.path),this.query=n.query,this.fragment="",i=eF;else{this.username=n.username,this.password=n.password,this.host=n.host,this.port=n.port,this.path=m(n.path),this.path.length--,i=eD;continue}break;case ek:if(this.isSpecial()&&("/"===d||"\\"===d))i=eC;else if("/"===d)i=eP;else{this.username=n.username,this.password=n.password,this.host=n.host,this.port=n.port,i=eD;continue}break;case eE:if(i=eC,"/"!==d||"/"!==M(s,o+1))continue;o++;break;case eC:if("/"!==d&&"\\"!==d){i=eP;continue}break;case eP:if("@"===d){a&&(s="%40"+s),a=!0,h=g(s);for(var u,d,h,f,v,y,b=0;b<h.length;b++){var _=h[b];if(":"===_&&!c){c=!0;continue}var S=ef(_,ep);c?this.password+=S:this.username+=S}s=""}else if(d===r||"/"===d||"?"===d||"#"===d||"\\"===d&&this.isSpecial()){if(a&&""===s)return"Invalid authority";o-=g(s).length+1,s="",i=eT}else s+=d;break;case eT:case eL:if(t&&"file"===this.scheme){i=eM;continue}if(":"!==d||l)if(d===r||"/"===d||"?"===d||"#"===d||"\\"===d&&this.isSpecial()){if(this.isSpecial()&&""===s)return W;if(t&&""===s&&(this.includesCredentials()||null!==this.port))return;if(f=this.parseHost(s))return f;if(s="",i=eN,t)return;continue}else"["===d?l=!0:"]"===d&&(l=!1),s+=d;else{if(""===s)return W;if(f=this.parseHost(s))return f;if(s="",i=eI,t===eL)return}break;case eI:if(N(K,d))s+=d;else{if(!(d===r||"/"===d||"?"===d||"#"===d||"\\"===d&&this.isSpecial())&&!t)return V;if(""!==s){var x=I(s,10);if(x>65535)return V;this.port=this.isSpecial()&&x===eg[this.scheme]?null:x,s=""}if(t)return;i=eN;continue}break;case eO:if(this.scheme="file","/"===d||"\\"===d)i=eA;else if(n&&"file"===n.scheme)switch(d){case r:this.host=n.host,this.path=m(n.path),this.query=n.query;break;case"?":this.host=n.host,this.path=m(n.path),this.query="",i=eB;break;case"#":this.host=n.host,this.path=m(n.path),this.query=n.query,this.fragment="",i=eF;break;default:ev(D(m(u,o),""))||(this.host=n.host,this.path=m(n.path),this.shortenPath()),i=eD;continue}else{i=eD;continue}break;case eA:if("/"===d||"\\"===d){i=eM;break}n&&"file"===n.scheme&&!ev(D(m(u,o),""))&&(em(n.path[0],!0)?F(this.path,n.path[0]):this.host=n.host),i=eD;continue;case eM:if(d===r||"/"===d||"\\"===d||"?"===d||"#"===d){if(!t&&em(s))i=eD;else if(""===s){if(this.host="",t)return;i=eN}else{if(f=this.parseHost(s))return f;if("localhost"===this.host&&(this.host=""),t)return;s="",i=eN}continue}s+=d;break;case eN:if(this.isSpecial()){if(i=eD,"/"!==d&&"\\"!==d)continue}else if(t||"?"!==d)if(t||"#"!==d){if(d!==r&&(i=eD,"/"!==d))continue}else this.fragment="",i=eF;else this.query="",i=eB;break;case eD:if(d===r||"/"===d||"\\"===d&&this.isSpecial()||!t&&("?"===d||"#"===d)){if(".."===(v=G(v=s))||"%2e."===v||".%2e"===v||"%2e%2e"===v?(this.shortenPath(),"/"===d||"\\"===d&&this.isSpecial()||F(this.path,"")):"."===(y=s)||"%2e"===G(y)?"/"===d||"\\"===d&&this.isSpecial()||F(this.path,""):("file"===this.scheme&&!this.path.length&&em(s)&&(this.host&&(this.host=""),s=M(s,0)+":"),F(this.path,s)),s="","file"===this.scheme&&(d===r||"?"===d||"#"===d))for(;this.path.length>1&&""===this.path[0];)j(this.path);"?"===d?(this.query="",i=eB):"#"===d&&(this.fragment="",i=eF)}else s+=ef(d,eh);break;case eR:"?"===d?(this.query="",i=eB):"#"===d?(this.fragment="",i=eF):d!==r&&(this.path[0]+=ef(d,eu));break;case eB:t||"#"!==d?d!==r&&("'"===d&&this.isSpecial()?this.query+="%27":"#"===d?this.query+="%23":this.query+=ef(d,eu)):(this.fragment="",i=eF);break;case eF:d!==r&&(this.fragment+=ef(d,ed))}o++}},parseHost:function(e){var t,n,r;if("["===M(e,0)){if("]"!==M(e,e.length-1)||!(t=ea(z(e,1,-1))))return W;this.host=t}else if(this.isSpecial()){if(N(et,e=y(e))||null===(t=es(e)))return W;this.host=t}else{if(N(en,e))return W;for(r=0,t="",n=g(e);r<n.length;r++)t+=ef(n[r],eu);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return p(eg,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;t&&("file"!==this.scheme||1!==t||!em(e[0],!0))&&e.length--},serialize:function(){var e=this.scheme,t=this.username,n=this.password,r=this.host,i=this.port,o=this.path,s=this.query,a=this.fragment,l=e+":";return null!==r?(l+="//",this.includesCredentials()&&(l+=t+(n?":"+n:"")+"@"),l+=ec(r),null!==i&&(l+=":"+i)):"file"===e&&(l+="//"),l+=this.cannotBeABaseURL?o[0]:o.length?"/"+D(o,"/"):"",null!==s&&(l+="?"+s),null!==a&&(l+="#"+a),l},setHref:function(e){var t=this.parse(e);if(t)throw new L(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"===e)try{return new ej(e.path[0]).origin}catch(e){return"null"}return"file"!==e&&this.isSpecial()?e+"://"+ec(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(w(e)+":",ey)},getUsername:function(){return this.username},setUsername:function(e){var t=g(w(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<t.length;n++)this.username+=ef(t[n],ep)}},getPassword:function(){return this.password},setPassword:function(e){var t=g(w(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<t.length;n++)this.password+=ef(t[n],ep)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?ec(e):ec(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,eT)},getHostname:function(){var e=this.host;return null===e?"":ec(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,eL)},getPort:function(){var e=this.port;return null===e?"":w(e)}
23,setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""===(e=w(e))?this.port=null:this.parse(e,eI))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+D(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,eN))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""===(e=w(e))?this.query=null:("?"===M(e,0)&&(e=z(e,1)),this.query="",this.parse(e,eB)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){if(""===(e=w(e))){this.fragment=null;return}"#"===M(e,0)&&(e=z(e,1)),this.fragment="",this.parse(e,eF)},update:function(){this.query=this.searchParams.serialize()||null}};var ej=function(e){var t=h(this,eH),n=_(arguments.length,1)>1?arguments[1]:void 0,r=k(t,new e$(e,!1,n));o||(t.href=r.serialize(),t.origin=r.getOrigin(),t.protocol=r.getProtocol(),t.username=r.getUsername(),t.password=r.getPassword(),t.host=r.getHost(),t.hostname=r.getHostname(),t.port=r.getPort(),t.pathname=r.getPathname(),t.search=r.getSearch(),t.searchParams=r.getSearchParams(),t.hash=r.getHash())},eH=ej.prototype,ez=function(e,t){return{get:function(){return E(this)[e]()},set:t&&function(e){return E(this)[t](e)},configurable:!0,enumerable:!0}};if(o&&(d(eH,"href",ez("serialize","setHref")),d(eH,"origin",ez("getOrigin")),d(eH,"protocol",ez("getProtocol","setProtocol")),d(eH,"username",ez("getUsername","setUsername")),d(eH,"password",ez("getPassword","setPassword")),d(eH,"host",ez("getHost","setHost")),d(eH,"hostname",ez("getHostname","setHostname")),d(eH,"port",ez("getPort","setPort")),d(eH,"pathname",ez("getPathname","setPathname")),d(eH,"search",ez("getSearch","setSearch")),d(eH,"searchParams",ez("getSearchParams")),d(eH,"hash",ez("getHash","setHash"))),u(eH,"toJSON",function(){return E(this).serialize()},{enumerable:!0}),u(eH,"toString",function(){return E(this).serialize()},{enumerable:!0}),T){var eG=T.createObjectURL,eq=T.revokeObjectURL;eG&&u(ej,"createObjectURL",l(eG,T)),eq&&u(ej,"revokeObjectURL",l(eq,T))}b(ej,"URL"),i({global:!0,constructor:!0,forced:!s,sham:!o},{URL:ej})},3296:(e,t,n)=>{"use strict";n(45806)},45781:(e,t,n)=>{"use strict";var r=n(46518),i=n(97751),o=n(22812),s=n(655),a=n(67416),l=i("URL");r({target:"URL",stat:!0,forced:!a},{parse:function(e){var t=o(arguments.length,1),n=s(e),r=t<2||void 0===arguments[1]?void 0:s(arguments[1]);try{return new l(n,r)}catch(e){return null}}})},27208:(e,t,n)=>{"use strict";var r=n(46518),i=n(69565);r({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return i(URL.prototype.toString,this)}})},84315:(e,t,n)=>{"use strict";n(52675),n(89463),n(34113),n(66412),n(97324),n(60193),n(92168),n(2259),n(86964),n(83142),n(83237),n(61833),n(67947),n(31073),n(45700),n(78125),n(20326),n(16280),n(6372),n(76918),n(30067),n(4294),n(88940),n(18107),n(28706),n(26835),n(88431),n(33771),n(2008),n(50113),n(48980),n(10838),n(13451),n(46449),n(78350),n(51629),n(23418),n(74423),n(25276),n(64346),n(23792),n(48598),n(8921),n(62062),n(31051),n(44114),n(72712),n(18863),n(94490),n(34782),n(15086),n(26910),n(87478),n(54554),n(9678),n(57145),n(71658),n(93514),n(30237),n(13609),n(11558),n(54743),n(46761),n(11745),n(38309),n(10255),n(3995),n(16573),n(78100),n(77936),n(61699),n(59089),n(91191),n(93515),n(1688),n(60739),n(89572),n(23288),n(48922),n(36456),n(94170),n(48957),n(62010),n(55081),n(18111),n(76382),n(29314),n(81148),n(22489),n(20116),n(30531),n(7588),n(49603),n(61701),n(18237),n(13579),n(54972),n(61806),n(33110),n(4731),n(36033),n(47072),n(93153),n(82326),n(36389),n(64444),n(8085),n(77762),n(65070),n(60605),n(4360),n(39469),n(72152),n(75376),n(56624),n(11367),n(5914),n(78553),n(98690),n(60479),n(70761),n(2892),n(45374),n(25428),n(32637),n(40150),n(59149),n(64601),n(44435),n(87220),n(25843),n(62337),n(9868),n(80630),n(69085),n(59904),n(17427),n(67945),n(84185),n(87607),n(5506),n(52811),n(53921),n(83851),n(81278),n(1480),n(40875),n(77691),n(78347),n(29908),n(94052),n(94003),n(221),n(79432),n(9220),n(7904),n(93967),n(63548),n(93941),n(10287),n(26099),n(16034),n(78459),n(58940),n(3362),n(96167),n(93518),n(9391),n(31689),n(14628),n(52407),n(24793),n(50452),n(39796),n(60825),n(87411),n(21211),n(40888),n(9065),n(86565),n(32812),n(84634),n(71137),n(30985),n(34268),n(34873),n(15472),n(84864),n(96069),n(57465),n(27495),n(69479),n(87745),n(90906),n(38781),n(31415),n(17642),n(58004),n(33853),n(45876),n(32475),n(15024),n(31698),n(67357),n(23860),n(99449),n(27337),n(21699),n(42043),n(47764),n(71761),n(28543),n(35701),n(68156),n(85906),n(42781),n(25440),n(79978),n(5746),n(90744),n(11392),n(50375),n(67438),n(42762),n(39202),n(43359),n(89907),n(11898),n(35490),n(5745),n(94298),n(60268),n(69546),n(20781),n(50778),n(89195),n(46276),n(48718),n(16308),n(34594),n(29833),n(46594),n(72107),n(95477),n(21489),n(22134),n(3690),n(61740),n(48140),n(81630),n(72170),n(75044),n(69539),n(31694),n(89955
23),n(21903),n(91134),n(33206),n(48345),n(44496),n(66651),n(12887),n(19369),n(66812),n(8995),n(52568),n(31575),n(36072),n(88747),n(28845),n(29423),n(57301),n(373),n(86614),n(41405),n(37467),n(44732),n(33684),n(79577),n(88267),n(73772),n(30958),n(2945),n(42207),n(23500),n(62953),n(55815),n(64979),n(79739),n(59848),n(122),n(13611),n(71678),n(76031),n(3296),n(2222),n(45781),n(27208),n(48408),n(14603),n(47566),n(98721),n(19167)},80011:(e,t,n)=>{"use strict";let r,i;n.r(t),n.d(t,{auth:()=>rZ,awards:()=>eL,components:()=>o3,croco:()=>e0,dc:()=>rN,ets:()=>Z,getServerTimestamp:()=>r2,liveopsRegistry:()=>r6,postcards:()=>iB,storybook:()=>oD,streak:()=>o2,tournament:()=>iT,up:()=>o4,updateServerTimestamp:()=>r5,win:()=>is});var o,s=n(75535),a=n(91070),l=n(86286);let c=(e,t=[])=>{let n;if(!t.length)return Math.floor(Math.random()*e);do n=Math.floor(Math.random()*e);while(t.includes(n))return n},u=e=>(parseInt(e)+1).toString().padStart(2,"0"),d=(e,t)=>Math.floor(Math.random()*(t-e+1)+e),h=e=>{let t=navigator.language||"en-US";return new Intl.NumberFormat(t,{maximumFractionDigits:0}).format(e)},p=!navigator||navigator.cookieEnabled,f=(e,t,n)=>{if(!p)return t;let r=localStorage.getItem(e);return r?n?r:JSON.parse(r):t},g=(e,t,n)=>{p&&localStorage.setItem(e,n?String(t):JSON.stringify(t))},m=e=>p?sessionStorage.getItem(e):null,v=e=>{p&&localStorage.removeItem(e)};!function(e){e.mobile="mobile",e.desktop="desktop",e.smarttv="smarttv",e.wearable="wearable",e.embedded="embedded",e.tablet="tablet"}(b||(b={}));var y="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function w(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var b,_,S={exports:{}};_=S.exports,function(e,t){var n="function",r="undefined",i="object",o="string",s="major",a="model",l="name",c="type",u="vendor",d="version",h="architecture",p="console",f="mobile",g="tablet",m="smarttv",v="wearable",y="embedded",w="Amazon",b="Apple",x="ASUS",k="BlackBerry",E="Browser",C="Chrome",P="Firefox",T="Google",L="Honor",I="Huawei",O="Microsoft",A="Motorola",M="Nvidia",N="OnePlus",D="Opera",R="OPPO",B="Samsung",F="Sharp",$="Sony",j="Xiaomi",H="Zebra",z="Facebook",G="Chromium OS",q="Mac OS",U=" Browser",W=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},V=function(e,t){return typeof e===o&&-1!==Y(t).indexOf(Y(e))},Y=function(e){return e.toLowerCase()},X=function(e,t){if(typeof e===o)return e=e.replace(/^\s\s*/,""),typeof t===r?e:e.substring(0,500)},K=function(e,r){for(var o,s,a,l,c,u,d=0;d<r.length&&!c;){var h=r[d],p=r[d+1];for(o=s=0;o<h.length&&!c&&h[o];)if(c=h[o++].exec(e))for(a=0;a<p.length;a++)u=c[++s],typeof(l=p[a])===i&&l.length>0?2===l.length?typeof l[1]==n?this[l[0]]=l[1].call(this,u):this[l[0]]=l[1]:3===l.length?typeof l[1]!==n||l[1].exec&&l[1].test?this[l[0]]=u?u.replace(l[1],l[2]):void 0:this[l[0]]=u?l[1].call(this,u,l[2]):void 0:4===l.length&&(this[l[0]]=u?l[3].call(this,u.replace(l[1],l[2])):t):this[l]=u||t;d+=2}},J=function(e,n){for(var r in n)if(typeof n[r]===i&&n[r].length>0){for(var o=0;o<n[r].length;o++)if(V(n[r][o],e))return"?"===r?t:r}else if(V(n[r],e))return"?"===r?t:r;return n.hasOwnProperty("*")?n["*"]:e},Z={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Q={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[d,[l,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[d,[l,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[l,d],[/opios[\/ ]+([\w\.]+)/i],[d,[l,D+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[d,[l,D+" GX"]],[/\bopr\/([\w\.]+)/i],[d,[l,D]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[d,[l,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[d,[l,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[l,d],[/quark(?:pc)?\/([-\w\.]+)/i],[d,[l,"Quark"]],[/\bddg\/([\w\.]+)/i],[d,[l,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[d,[l,"UC"+E]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[d,[l,"WeChat"]],[/konqueror\/([\w\.]+)/i],[d,[l,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[d,[l,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[d,[l,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[d,[l,"Smart Lenovo "+E]],[/(avast|avg)\/([\w\.]+)/i],[[l,/(.+)/,"$1 Secure "+E],d],[/\bfocus\/([\w\.]+)/i],[d,[l,P+" Focus"]],[/\bopt\/([\w\.]+)/i],[d,[l,D+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[d,[l,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[d,[l,"Dolphin"]],[/coast\/([\w\.]+)/i],[d,[l,D+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[d,[l,"MIUI"+U]],[/fxios\/([\w\.-]+)/i],[d,[l,P]],[/\bqihoobrowser\/?([\w\.]*)/i],[d,[l,"360"]],[/\b(qq)\/([\w\.]+)/i],[[l,/(.+)/,"$1Browser"],d],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[l,/(.+)/,"$1"+U],d],[/samsungbrowser\/([\w\.]+)/i],[d,[l,B+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[d,[l,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[l,"Sogou Mobile"],d],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[l,d],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[l],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[d,l],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[l,z],d],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[l,d],[/\bgsa\/([\w\.]+) .*safari\//i],[d,[l,"GSA"]],[/musical_ly(?:.
23+app_?version\/|_)([\w\.]+)/i],[d,[l,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[d,[l,C+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[l,C+" WebView"],d],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[d,[l,"Android "+E]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[l,d],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[d,[l,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[d,l],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[l,[d,J,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[l,d],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[l,"Netscape"],d],[/(wolvic|librewolf)\/([\w\.]+)/i],[l,d],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[d,[l,P+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[l,[d,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[l,[d,/master.|lts./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[h,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[h,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[h,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[h,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[h,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[h,/ower/,"",Y]],[/ sun4\w[;\)]/i],[[h,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[h,Y]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[a,[u,B],[c,g]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[a,[u,B],[c,f]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[a,[u,b],[c,f]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[a,[u,b],[c,g]],[/(macintosh);/i],[a,[u,b]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[a,[u,F],[c,f]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[a,[u,L],[c,g]],[/honor([-\w ]+)[;\)]/i],[a,[u,L],[c,f]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[a,[u,I],[c,g]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[a,[u,I],[c,f]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[a,/_/g," "],[u,j],[c,g]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[a,/_/g," "],[u,j],[c,f]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[a,[u,R],[c,f]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[a,[u,J,{OnePlus:["304","403","203"],"*":R}],[c,g]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[a,[u,"Vivo"],[c,f]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[a,[u,"Realme"],[c,f]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[a,[u,A],[c,f]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[a,[u,A],[c,g]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[a,[u,"LG"],[c,g]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[a,[u,"LG"],[c,f]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}
23(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[a,[u,"Lenovo"],[c,g]],[/(nokia) (t[12][01])/i],[u,a,[c,g]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[a,/_/g," "],[c,f],[u,"Nokia"]],[/(pixel (c|tablet))\b/i],[a,[u,T],[c,g]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[a,[u,T],[c,f]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[a,[u,$],[c,f]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[a,"Xperia Tablet"],[u,$],[c,g]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[a,[u,N],[c,f]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[a,[u,w],[c,g]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[a,/(.+)/g,"Fire Phone $1"],[u,w],[c,f]],[/(playbook);[-\w\),; ]+(rim)/i],[a,u,[c,g]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[a,[u,k],[c,f]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[a,[u,x],[c,g]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[a,[u,x],[c,f]],[/(nexus 9)/i],[a,[u,"HTC"],[c,g]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[u,[a,/_/g," "],[c,f]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[a,[u,"TCL"],[c,g]],[/(itel) ((\w+))/i],[[u,Y],a,[c,J,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[a,[u,"Acer"],[c,g]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[a,[u,"Meizu"],[c,f]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[a,[u,"Ulefone"],[c,f]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[a,[u,"Energizer"],[c,f]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[a,[u,"Cat"],[c,f]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[a,[u,"Smartfren"],[c,f]],[/droid.+; (a(?:015|06[35]|142p?))/i],[a,[u,"Nothing"],[c,f]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[a,[u,"Archos"],[c,g]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[a,[u,"Archos"],[c,f]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[u,a,[c,g]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (hmd|imo) ([\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[u,a,[c,f]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[u,a,[c,g]],[/(surface duo)/i],[a,[u,O],[c,g]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[a,[u,"Fairphone"],[c,f]],[/(u304aa)/i],[a,[u,"AT&T"],[c,f]],[/\bsie-(\w*)/i],[a,[u,"Siemens"],[c,f]],[/\b(rct\w+) b/i],[a,[u,"RCA"],[c,g]],[/\b(venue[\d ]{2,7}) b/i],[a,[u,"Dell"],[c,g]],[/\b(q(?:mv|ta)\w+) b/i],[a,[u,"Verizon"],[c,g]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[a,[u,"Barnes & Noble"],[c,g]],[/\b(tm\d{3}\w+) b/i],[a,[u,"NuVision"],[c,g]],[/\b(k88) b/i],[a,[u,"ZTE"],[c,g]],[/\b(nx\d{3}j) b/i],[a,[u,"ZTE"],[c,f]],[/\b(gen\d{3}) b.+49h/i],[a,[u,"Swiss"],[c,f]],[/\b(zur\d{3}) b/i],[a,[u,"Swiss"],[c,g]],[/\b((zeki)?tb.*\b) b/i],[a,[u,"Zeki"],[c,g]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[u,"Dragon Touch"],a,[c,g]],[/\b(ns-?\w{0,9}) b/i],[a,[u,"Insignia"],[c,g]],[/\b((nxa|next)-?\w{0,9}) b/i],[a,[u,"NextBook"],[c,g]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[u,"Voice"],a,[c,f]],[/\b(lvtel\-)?(v1[12]) b/i],[[u,"LvTel"],a,[c,f]],[/\b(ph-1) /i],[a,[u,"Essential"],[c,f]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[a,[u,"Envizen"],[c,g]],[/\b(trio[-\w\. ]+) b/i],[a,[u,"MachSpeed"],[c,g]],[/\btu_(1491) b/i],[a,[u,"Rotor"],[c,g]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[a,[u,M],[c,g]],[/(sprint) (\w+)/i],[u,a,[c,f]],[/(kin\.[onetw]{3})/i],[[a,/\./g," "],[u,O],[c,f]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[a,[u,H],[c,g]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[a,[u,H],[c,f]],[/smart-tv.+(samsung)/i],[u,[c,m]],[/hbbtv.+maple;(\d+)/i],[[a,/^/,"SmartTV"],[u,B],[c,m]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[u,"LG"],[c,m]],[/(apple) ?tv/i],[u,[a,b+" TV"],[c,m]],[/crkey/i],[[a,C+"cast"],[u,T],[c,m]],[/droid.+aft(\w+)( bui|\))/i],[a,[u,w],[c,m]],[/(shield \w+ tv)/i],[a,[u,M],[c,m]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[a,[u,F],[c,m]],[/(bravia[\w ]+)( bui|\))/i],[a,[u,$],[c,m]],[/(mi(tv|box)-?\w+) bui/i],[a,[u,j],[c,m]],[/Hbbtv.*(technisat) (.*);/i],[u,a,[c,m]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[u,X],[a,X],[c,m]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[a,[c,m]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[c,m]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[u,a,[c,p]],[/droid.+; (shield)( bui|\))/i],[a,[u,M],[c,p]],[/(playstation \w+)/i],[a,[u,$],[c,p]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[a,[u,O],[c,p]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[a,[u,B],[c,v]],[/((pebble))app/i,/(asu
23s|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[u,a,[c,v]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[a,[u,R],[c,v]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[a,[u,b],[c,v]],[/(opwwe\d{3})/i],[a,[u,N],[c,v]],[/(moto 360)/i],[a,[u,A],[c,v]],[/(smartwatch 3)/i],[a,[u,$],[c,v]],[/(g watch r)/i],[a,[u,"LG"],[c,v]],[/droid.+; (wt63?0{2,3})\)/i],[a,[u,H],[c,v]],[/droid.+; (glass) \d/i],[a,[u,T],[c,v]],[/(pico) (4|neo3(?: link|pro)?)/i],[u,a,[c,v]],[/; (quest( \d| pro)?)/i],[a,[u,z],[c,v]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[u,[c,y]],[/(aeobc)\b/i],[a,[u,w],[c,y]],[/(homepod).+mac os/i],[a,[u,b],[c,y]],[/windows iot/i],[[c,y]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[a,[c,f]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[a,[c,g]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[c,g]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[c,f]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[a,[u,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[d,[l,"EdgeHTML"]],[/(arkweb)\/([\w\.]+)/i],[l,d],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[d,[l,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[l,d],[/ladybird\//i],[[l,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[d,l]],os:[[/microsoft (windows) (vista|xp)/i],[l,d],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[l,[d,J,Z]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[d,J,Z],[l,"Windows"]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[d,/_/g,"."],[l,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[l,q],[d,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[d,l],[/(ubuntu) ([\w\.]+) like android/i],[[l,/(.+)/,"$1 Touch"],d],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[l,d],[/\(bb(10);/i],[d,[l,k]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[d,[l,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[d,[l,P+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[d,[l,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[d,[l,"watchOS"]],[/crkey\/([\d\.]+)/i],[d,[l,C+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[l,G],d],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[l,d],[/(sunos) ?([\w\.\d]*)/i],[[l,"Solaris"],d],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[l,d]]},ee=function(p,m){if(typeof p===i&&(m=p,p=t),!(this instanceof ee))return new ee(p,m).getResult();var v=typeof e!==r&&e.navigator?e.navigator:t,y=p||(v&&v.userAgent?v.userAgent:""),w=v&&v.userAgentData?v.userAgentData:t,b=m?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(Q,m):Q,_=v&&v.userAgent==y;return this.getBrowser=function(){var e,r={};return r[l]=t,r[d]=t,K.call(r,y,b.browser),r[s]=typeof(e=r[d])===o?e.replace(/[^\d\.]/g,"").split(".")[0]:t,_&&v&&v.brave&&typeof v.brave.isBrave==n&&(r[l]="Brave"),r},this.getCPU=function(){var e={};return e[h]=t,K.call(e,y,b.cpu),e},this.getDevice=function(){var e={};return e[u]=t,e[a]=t,e[c]=t,K.call(e,y,b.device),_&&!e[c]&&w&&w.mobile&&(e[c]=f),_&&"Macintosh"==e[a]&&v&&typeof v.standalone!==r&&v.maxTouchPoints&&v.maxTouchPoints>2&&(e[a]="iPad",e[c]=g),e},this.getEngine=function(){var e={};return e[l]=t,e[d]=t,K.call(e,y,b.engine),e},this.getOS=function(){var e={};return e[l]=t,e[d]=t,K.call(e,y,b.os),_&&!e[l]&&w&&w.platform&&"Unknown"!=w.platform&&(e[l]=w.platform.replace(/chrome os/i,G).replace(/macos/i,q)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return y},this.setUA=function(e){return y=typeof e===o&&e.length>500?X(e,500):e,this},this.setUA(y),this};ee.VERSION="1.0.41",ee.BROWSER=W([l,d,s]),ee.CPU=W([h]),ee.DEVICE=W([a,u,c,p,f,m,g,v,y]),ee.ENGINE=ee.OS=W([l,d]),S.exports&&(_=S.exports=ee),_.UAParser=ee;var et=typeof e!==r&&(e.jQuery||e.Zepto);if(et&&!et.ua){var en=new ee;et.ua=en.getResult(),et.ua.get=function(){return en.getUA()},et.ua.set=function(e){en.setUA(e);var t=en.getResult();for(var n in t)et.ua[n]=t[n]}}}("object"==typeof window?window:y);var x=S.exports;let k=(e,t)=>t.some(t=>e instanceof t),E=new WeakMap,C=new WeakMap,P=new WeakMap,T={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return E.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return L(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function L(e){var t;if(e instanceof IDBRequest){let t=new Promise((t,n)=>{let r=()=>{e.removeEventListener("success",i),e.removeEventListener("error",o)},i=()=>{t(L(e.result)),r()},o=()=>{n(e.error),r()};e.addEventListener("success",i),e.addEventListener("error",o)});return P.set(t,e),t}if(C.has(e))return C.get(e);let n="function"==typeof(t=e)?(i||(i=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(t)?function(...e){return t.apply(I(this),e),L(this.request)}:function(...e){return L(t.apply(I(this),e))}:(t instanceof IDBTransaction&&function(e){if(E.has(e))return;let t=new Promise((t,n)=>{let r=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",o),e.removeEventListener("abort",o)},i=()=>{t(),r()},o=()=>{n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",i),e.addEventListener("error",o),e.addEventListener("abort",o)});E.set(e,t)}(t),k(t,r||(r=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]))?new Proxy(t,T):t);return n!==e&&(C.set(e,n),P.set(n,e)),n}let I=e=>P.get(e),O=["get","getKey","getAll","getAllKeys","count"],A=["put","add","delete","clear"],M=new Map;function N(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!=typeof t)return;if(M.get(t))return M.get(t);let n=t.replace(/FromIndex$/,""),r=t!==n,i=A.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!i&&!O.includes(n))return;let o=async function(e,...t){let o=this.transaction(e,i?"readwrite":"readonly"),s=o.store;
23return r&&(s=s.index(t.shift())),(await Promise.all([s[n](...t),i&&o.done]))[0]};return M.set(t,o),o}T=(e=>({...e,get:(t,n,r)=>N(t,n)||e.get(t,n,r),has:(t,n)=>!!N(t,n)||e.has(t,n)}))(T);let D=["continue","continuePrimaryKey","advance"],R={},B=new WeakMap,F=new WeakMap,$={get(e,t){if(!D.includes(t))return e[t];let n=R[t];return n||(n=R[t]=function(...e){B.set(this,F.get(this)[t](...e))}),n}};async function*j(...e){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...e)),!t)return;let n=new Proxy(t,$);for(F.set(n,t),P.set(n,I(t));t;)yield n,t=await (B.get(n)||t.continue()),B.delete(n)}function H(e,t){return t===Symbol.asyncIterator&&k(e,[IDBIndex,IDBObjectStore,IDBCursor])||"iterate"===t&&k(e,[IDBIndex,IDBObjectStore])}T=(e=>({...e,get:(t,n,r)=>H(t,n)?j:e.get(t,n,r),has:(t,n)=>H(t,n)||e.has(t,n)}))(T);let z="ets_session",G="ets_temp",q="utms",U="ets_session_events",W="ets_id",V="events",Y="operation_lock",X=()=>{if("undefined"==typeof document)return null;let e=document.cookie.match(/(?:^|;\s*)_ga=([^;]*)/);if(!e)return null;let t=decodeURIComponent(e[1]).split(".");return t.length<4?null:`${t[t.length-2]}.${t[t.length-1]}`},K="pack",J="track",Z=new class{constructor(){var e;this.clientIdResolved=!1,this.workerDone=!1,this.workerShouldCallInitAfterSetup=!1,this.priorityEvents=[],this.inited=!1,this.priorifySending=!1,this.canMakeRequest=!0,this.processOfSending=!1,this.useIndexedDB=!1,this.useGzip=!1,this.events=[],this.tempSendEvents=[];let t=window.abGroups||{};this.abGroups=Object.keys(t).map(e=>t[e]);let n=f(q,{}),r=(()=>{if("undefined"==typeof window)return{};let e=window.location.search.substring(1).toLowerCase();return e.length?e.split("&").reduce((e,t)=>{let[n,r]=t.split("=");return"utm_"===n.slice(0,4)&&(e[n]=r),e},{}):{}})();this.utms=Object.assign(Object.assign({},n),r),g(q,this.utms);let i=(new x.UAParser).getResult();this.deviceCategory=i.device.type&&"console"!==i.device.type?i.device.type:b.desktop;let o=f(W,null);if(o&&(this.userId=o),void 0!==window.gtag)this.altUserIdReady=new Promise(e=>{let t=setTimeout(()=>{var t,n;this.applyClientId(null!=(t=X())?t:`${Math.floor(0x80000000*Math.random())}.${Math.floor(Date.now()/1e3)}`,o),e(null!=(n=this.altUserId)?n:null)},3e3);window.gtag("get","G-LKCCSV4WGG","client_id",n=>{var r;clearTimeout(t),"string"==typeof n&&this.applyClientId(n,o),e(null!=(r=this.altUserId)?r:null)})});else{let t=X();t&&this.applyClientId(t,o),this.altUserIdReady=Promise.resolve(null!=(e=this.altUserId)?e:null)}}applyClientId(e,t){if(this.clientIdResolved)return;let n=this.generateUserId(e);n&&(this.clientIdResolved=!0,t?n!==t&&(this.altUserId=n):(this.userId=n,g(W,n)),this.configureWorker(),this.events.length&&this.scheduleRetry())}normalizeBatchTth(e){return e?(e<1e3&&console.warn(`ETS: batch timeout of ${e}ms is too small, using 1000ms`),Math.max(e,1e3)):e}configureWorker(){!this.workerDone&&this.worker&&(this.worker.postMessage({type:"set-config",config:{domain:this.domain,eaid:this.eaid,userId:this.userId,batchSize:this.batchTh||10}}),this.workerDone=!0,this.workerShouldCallInitAfterSetup&&this.worker.postMessage({type:"initiate-sync-now"}))}async compressBody(e){try{if(!this.useGzip||"undefined"==typeof CompressionStream)return{body:e,compressed:!1};let t=new Blob([e]).stream().pipeThrough(new CompressionStream("gzip"));return{body:await new Response(t).blob(),compressed:!0}}catch(t){return{body:e,compressed:!1}}}checkIndexedDBAvailability(){try{return!!window.indexedDB}catch(e){return!1}}async initializeStorage(){this.tempSendEvents=f(G,[]);let e=f("ets",[]);try{await this.initIndexedDB();let t=await this.getFromIndexedDB(!0),n=[...this.events];this.events=[...t,...e,...n],this.useIndexedDB?(this.events=this.events.filter(e=>e.inProgress),await this.saveToIndexedDB(this.events,!0),v("ets")):(g("ets",this.events),await this.clearIndexedDB(!0))}catch(n){console.warn("ETS: Failed to initialize IndexedDB, falling back to localStorage",n),this.useIndexedDB=!1;let t=[...this.events];this.events=[...e,...t]}if(this.tempSendEvents.length){let e=this.tempSendEvents.reduce((e,t)=>(e.push(t.id),e),[]);this.events=this.events.filter(t=>!e.includes(t.id)),this.tempSendEvents=[],this.useIndexedDB&&v(G),this.useIndexedDB||await this.saveToStorage(!0)}return!0}async initIndexedDB(){let e,t=function(e,t,{blocked:n,upgrade:r,blocking:i,terminated:o}={}){let s=indexedDB.open(e,2),a=L(s);return r&&s.addEventListener("upgradeneeded",e=>{r(L(s.result),e.oldVersion,e.newVersion,L(s.transaction),e)}),n&&s.addEventListener("blocked",e=>n(e.oldVersion,e.newVersion,e)),a.then(e=>{o&&e.addEventListener("close",()=>o()),i&&e.addEventListener("versionchange",e=>i(e.oldVersion,e.newVersion,e))}).catch(()=>{}),a}("ets_db",0,{upgrade(e){e.objectStoreNames.contains(V)||e.createObjectStore(V,{keyPath:"id"}),e.objectStoreNames.contains(Y)||e.createObjectStore(Y)},blocked(){console.warn("ETS: IndexedDB upgrade blocked by another connection")},blocking:()=>{var e;null==(e=this.db)||e.close(),this.db=void 0,this.useIndexedDB=!1}});try{this.db=await Promise.race([t,new Promise((t,n)=>{e=setTimeout(()=>n(Error("IndexedDB open timed out")),3e3)})])}catch(e){throw t.then(e=>e.close()).catch(()=>{}),console.error("Failed to open IndexedDB:",e),e}finally{clearTimeout(e)}}async getFromIndexedDB(e=!1){if(this.storagePromise&&!e)try{await this.storagePromise}catch(e){console.warn("WARN",e)}if(!this.db)return[];try{return await this.db.getAll(V)}catch(e){throw console.error("Failed to get data from IndexedDB:",e),e}}async saveToIndexedDB(e,t=!1){if(this.storagePromise&&!t)try{await this.storagePromise}catch(e){console.warn("WARN",e)}if(!this.db)throw Error("IndexedDB is not initialized");try{let t=this.db.transaction(V,"readwrite"),n=t.objectStore(V);for(let t of(await n.clear(),e))await n.add(t);await t.done}catch(e){throw console.error("Failed to save data to IndexedDB:",e),e}}async clearIndexedDB(e=!1){if(this.storagePromise&&!e)try{await this.storagePromise}catch(e){console.warn("WARN",e)}if(this.db)try{await this.db.clear(V)}catch(e){throw console.error("Failed to clear IndexedDB:",e),e}}async setup(e){var t;this.domain=e.host,this.eaid=e.eaid,this.batchTh=e.th,this.baseBatchTth=this.normalizeBatchTth(e.tth),this.batchTth=this.baseBatchTth,this.fv=e.fv,this.version=e.version,this.useBeacon=!!e.beacon,this.enabled=!!e.enabled,this.useGzip=!!e.gzip,e.userId&&(this.userId=e.userId);let r=this.checkIndexedDBAvailability(),i=!!e.indexdb&&r;
23if(this.useIndexedDB=i,i&&"Worker"in window&&"function"==typeof Worker)try{let e=new URL(n(28158),n.b);e.searchParams.append("t",Date.now().toString()),this.worker=new Worker(e),this.worker.addEventListener("message",this.handleMessageFromWorker.bind(this)),console.log("ETS worker initialized",this.worker),this.userId&&!this.workerDone&&this.configureWorker()}catch(e){console.error("Failed to initialize ETS worker:",e),this.worker=null}if(e.deviceCategory&&(this.deviceCategory=e.deviceCategory),!this.inited){this.storagePromise=this.initializeStorage();try{await this.storagePromise}catch(e){console.warn("WARN",e)}}let o=null!=(t=e.lt)?t:20;o&&(this.events=this.events.filter(e=>(Date.now()-(e.event.ttime.toString().length<13?1e3*e.event.ttime:e.event.ttime))/1e3/86400<o),await this.saveToStorage()),this.updateSessionNumber(),this.inited=!0}updateSessionNumber(){let{date:e,number:t}=f(z,{number:1,date:Date.now()/1e3}),n=Date.now()/1e3;this.session=t,e&&(this.session=(n-e)/60>=30?t+1:t,this.enabled&&g(z,{date:Date.now()/1e3,number:this.session}))}generateUserId(e){if(!e)return null;let t=e.split("."),n="";return t.forEach(e=>{n+=((e,t,n="0")=>{let r=e;for(;r.length<t;)r=n+r;return r})(parseInt(e).toString(16),16)}),n}async tempPostEvents(e){if(!this.canMakeRequest||!this.userId)return!1;try{let t=e.reduce((e,t)=>(e.push(t.event),e),[]),n=`${this.domain}/${t.length>1?K:J}`,r=JSON.stringify(t.length>1?t:t[0]),{body:i,compressed:o}=await this.compressBody(r),s=await fetch(n,{method:"POST",headers:Object.assign({"x-easy-appid":String(this.eaid),"x-easy-adid":this.userId},o?{"Content-Encoding":"gzip"}:{}),body:i});return 200===s.status||400===s.status?(this.batchTth=this.baseBatchTth,!0):(this.handleErrorOnRequest([]),!1)}catch(e){return console.warn("ETS WARN",e),this.handleErrorOnRequest([]),!1}}async postEvents(e,t){if(!this.canMakeRequest||!this.userId)return!1;this.useIndexedDB||(this.tempSendEvents=[...this.tempSendEvents,...e],g(G,this.tempSendEvents)),this.events=this.events.map(t=>e.find(e=>e.id===t.id)?Object.assign(Object.assign({},t),{inProgress:!0}):t),await this.saveToStorage();let n=t&&this.useBeacon;try{let t=e.reduce((e,t)=>(e.push(t.event),e),[]),r=`${this.domain}/${t.length>1?K:J}`;if(n){this.events=this.events.filter(t=>!e.find(e=>e.id===t.id)),this.tempSendEvents=this.tempSendEvents.filter(t=>!e.find(e=>e.id===t.id)),await this.saveToStorage();let n=JSON.stringify(t.length>1?t:t[0]),{body:i,compressed:o}=await this.compressBody(n);return await fetch(r,{method:"POST",headers:Object.assign({"x-easy-appid":String(this.eaid),"x-easy-adid":this.userId},o?{"Content-Encoding":"gzip"}:{}),body:i,keepalive:!0}),!0}{let n=JSON.stringify(t.length>1?t:t[0]),{body:i,compressed:o}=await this.compressBody(n),s=await fetch(r,{method:"POST",headers:Object.assign({"x-easy-appid":String(this.eaid),"x-easy-adid":this.userId},o?{"Content-Encoding":"gzip"}:{}),body:i});if(200!==s.status&&400!==s.status||(this.batchTth=this.baseBatchTth),200===s.status)return this.events=this.events.filter(t=>!t.inProgress&&!e.find(e=>e.id===t.id)),this.useIndexedDB||(this.tempSendEvents=this.tempSendEvents.filter(t=>!t.inProgress&&!e.find(e=>e.id===t.id))),await this.saveToStorage(),!0;if(400===s.status){let n=1===t.length?[{ttime:t[0].ttime,tname:t[0].tname}]:(await s.json()).map(e=>({ttime:e.Ttime,tname:e.Tname}));return this.events=this.events.filter(t=>!e.find(e=>e.id===t.id)&&!n.find(e=>e.ttime===t.event.ttime&&e.tname===t.event.tname)),this.useIndexedDB||(this.tempSendEvents=this.tempSendEvents.filter(t=>!e.find(e=>e.id===t.id))),await this.saveToStorage(),!0}return this.handleErrorOnRequest(e),!1}}catch(t){return console.warn("ETS WARN",t),this.handleErrorOnRequest(e),!1}}handleErrorOnRequest(e){clearTimeout(this.timeoutForRequest),this.events=this.events.map(t=>e.find(e=>e.id===t.id)?Object.assign(Object.assign({},t),{inProgress:!1}):t),this.batchTth=Math.min(2*this.batchTth,3e5),this.canMakeRequest=!1,this.tempSendEvents=this.tempSendEvents.filter(t=>!e.find(e=>e.id===t.id)),this.saveToStorage(),this.timeoutForRequest=setTimeout(()=>{this.canMakeRequest=!0},this.batchTth)}async send(e,t,n,r){var i,o;if(!this.enabled||!this.eaid||!this.domain)return;if(this.useIndexedDB&&this.storagePromise)try{await this.storagePromise}catch(e){console.warn("WARN",e)}if(this.updateSessionNumber(),r){let t=f(U,{});if(t&&t[e]===this.session)return;t[e]=this.session,g(U,t)}let s={id:this.events.length+Math.random().toString(16).slice(2),event:{tname:e,ttime:Date.now(),payload:Object.assign(Object.assign(Object.assign(Object.assign({},t||{}),this.abGroups.length?{ab_groups:this.abGroups.join(",")}:{}),{session:this.session,device__category:this.deviceCategory,installed_at:null!=(i=this.fv)?i:null,build_version:null!=(o=this.version)?o:null}),this.utms)}};this.events.push(s),!this.priorifySending&&n&&(this.priorifySending=!0),this.useIndexedDB||await this.saveOneEventToStorage(s),clearTimeout(this.sendTimeout),this.sendTimeout=setTimeout(()=>{this.sendEvents(!0)},500)}scheduleRetry(e=1e3){clearTimeout(this.sendTimeout),this.sendTimeout=setTimeout(()=>{this.priorifySending=!0,this.sendEvents(!0)},e)}createTimeout(){clearTimeout(this.timeout),this.batchTth&&(this.timeout=setTimeout(()=>{this.priorifySending=!0,this.sendEvents(),this.createTimeout()},this.batchTth))}filterDuplicates(e){let t=new Map;return e.filter(e=>{let n=`${e.id}|${e.event.ttime}|${e.event.tname}`;return!t.has(n)&&(t.set(n,!0),!0)})}async handleMessageFromWorker(e){let{data:t}=e;if(clearTimeout(this.workerReplyTimeout),this.processOfSending=!1,this.priorifySending=!1,"sync-complete"===t.type){let e=t.syncedIds||[];this.events=this.events.filter(t=>!e.includes(t.id)),this.events=this.events.map(e=>e.inProgress?Object.assign(Object.assign({},e),{inProgress:!1}):e),await this.saveToStorage(),console.log(`ETS background sync completed: ${e.length}/${t.totalCount} events`)}else"sync-error"===t.type&&(this.events=this.events.map(e=>e.inProgress?Object.assign(Object.assign({},e),{inProgress:!1}):e),console.log("ETS background sync error:",t.error));this.events.length&&this.scheduleRetry()}async tempSendPriorityEvents(){if(this.priorityEvents=this.filterDuplicates(this.priorityEvents),!this.priorityEvents.length)return;let e=!0;await this.tempPostEvents(this.priorityEvents)||(e=!1),e&&(this.priorityEvents=[])}async sendEvents(e,t){var n,r;if(this.processOfSending)return;let i=!0;clearTimeout(this.sendTimeout),this.events=this.filterDuplicates(this.events),this.tempSendEvents=this.filterDuplicates(f(G,[]));let o=this.events.filter(e=>!this.tempSendEvents.find(t=>
23t.id===e.id)&&!e.inProgress);if(o.length&&(o.length>=this.batchTh||this.priorifySending)){let s;if(this.processOfSending=!0,this.useIndexedDB&&this.worker){if(this.workerDone){clearTimeout(this.workerReplyTimeout),this.workerReplyTimeout=setTimeout(()=>{console.warn("ETS: worker did not answer, retrying on the main thread"),this.processOfSending=!1,this.events=this.events.map(e=>e.inProgress?Object.assign(Object.assign({},e),{inProgress:!1}):e),this.scheduleRetry()},1e4);let e=o.map(e=>Object.assign(Object.assign({},e),{inProgress:!0}));this.events=this.events.map(t=>e.find(e=>e.id===t.id)||t),this.worker.postMessage({type:"sync-events",events:e,config:{domain:this.domain,eaid:this.eaid,userId:this.userId,batchSize:this.batchTh||10,abGroups:this.abGroups,session:this.session,deviceCategory:this.deviceCategory,fv:this.fv,version:this.version,utms:this.utms}})}else this.workerShouldCallInitAfterSetup=!0,this.processOfSending=!1,this.scheduleRetry();return void(e&&this.createTimeout())}let a=(s=this.batchTh,o.reduce((e,t,n)=>{let r=Math.floor(n/s);return e[r]||(e[r]=[]),e[r].push(t),e},[]));for(let e=0;e<a.length;e++){let o=a[e];o&&o.push({id:this.events.length+1+Math.random().toString(16).slice(2),event:{tname:"heartbeat",ttime:Date.now(),payload:Object.assign(Object.assign(Object.assign({},this.abGroups.length?{ab_groups:this.abGroups.join(",")}:{}),{session:this.session,device__category:this.deviceCategory,installed_at:null!=(n=this.fv)?n:null,build_version:null!=(r=this.version)?r:null}),this.utms)}}),await this.postEvents(o,t)||(i=!1)}}e&&this.createTimeout(),i||this.scheduleRetry(Math.max(this.batchTth||0,1e3)),this.processOfSending=!1,this.priorifySending=!1}sync(e){if(this.enabled&&this.eaid&&this.domain){if(clearTimeout(this.timeout),this.updateSessionNumber(),e)return this.priorifySending=!0,void this.sendEvents(!1,!0);this.sendEvents(),this.createTimeout()}}async saveToStorage(e=!1){if(g(G,this.tempSendEvents),this.useIndexedDB)try{await this.saveToIndexedDB(this.events,e)}catch(e){console.warn("ETS: Failed to save to IndexedDB, falling back to localStorage",e),g("ets",this.events)}else g("ets",this.events)}async saveOneEventToStorage(e){if(this.useIndexedDB)try{if(!this.db)throw Error("IndexedDB is not initialized");let t=this.db.transaction(V,"readwrite"),n=t.objectStore(V);await n.add(e),await t.done}catch(e){console.warn("ETS: Failed to save to IndexedDB, falling back to localStorage",e),g("ets",this.events)}else g("ets",this.events)}};var Q="popup-styles_active__rln-c",ee="popup-styles_popup_track_item_text__Kjfs5";let et="postcards-hiw",en=new WeakMap;!function(e){e.blue="blue",e.green="green",e.turquoise="turquoise",e.postcards="postcards",e.transparent="transparent"}(n6||(n6={})),function(e){e[e.resources=2]="resources",e[e.translations=3]="translations",e[e.balance=4]="balance"}(n3||(n3={}));let er=e=>{let[t,n]=(0,a.useState)(0),[r,i]=(0,a.useState)(0),o=(0,a.useRef)(t),l=(0,a.useRef)(null),c=()=>{n(0),e.onClose()},u=()=>{t!==e.items.length-1?n(e=>e+1):c()},d=t=>{"Escape"===t.key&&o.current===e.items.length-1&&c()};return(0,a.useEffect)(()=>{o.current=t},[t]),(0,a.useEffect)(()=>{if(!l.current)return;let e=l.current.querySelectorAll(`.${ee}`),t=0;e.length<2||(e.forEach(e=>{let n=e.offsetHeight;n>t&&(t=n)}),e.forEach(e=>{e.style.minHeight=`${t}px`}))},[l,e.items]),(0,a.useEffect)(()=>{if(e.show&&e.fullSize&&l.current)return(e=>{var t;let n=e.closest(".site-content-wrapper");if(!n)return;let r=(null!=(t=en.get(n))?t:0)+1;return en.set(n,r),n.classList.add(et),()=>{var e;let t=Math.max(0,(null!=(e=en.get(n))?e:1)-1);en.set(n,t),t||n.classList.remove(et)}})(l.current)},[e.show,e.fullSize]),(0,a.useEffect)(()=>(e.show?window.addEventListener("keydown",d):window.removeEventListener("keydown",d),()=>{window.removeEventListener("keydown",d)}),[e.show]),(0,s.h)("div",{className:`popup-styles_popup__Ue-i- ${e.bigOverlay&&!e.fullSize?"popup-styles_bigOverlay__I3Uck":""} ${e.rounded?"popup-styles_rounded__PPrj7":""} ${e.fullSize?"popup-styles_full__kEA7u":""}`,ref:l,"data-show":e.show},(0,s.h)("div",{className:"popup-styles_popup_background__I5YQL",onClick:()=>i(1)}),(0,s.h)("div",{className:"popup-styles_popup_content__rJe0C",onAnimationEnd:()=>i(0),"data-wobble":r}
23,(0,s.h)("div",{className:"popup-styles_popup_title__yvMZm",style:e.title.color?{color:e.title.color}:{},dangerouslySetInnerHTML:{__html:e.title.value}}),e.withXMark&&(0,s.h)("div",{onClick:e.onClose,className:"popup-styles_x_mark__9S8cE"}),(0,s.h)("div",{className:"popup-styles_popup_carousel__ArDhJ "+(1===e.items.length?"popup-styles_single__Cb82j":"")},(0,s.h)("div",{className:"popup-styles_popup_track__ujTiO"},e.items.map((n,r)=>(0,s.h)("div",{className:`popup-styles_popup_track_item__L9yOU ${r===t?Q:r>t?"popup-styles_next__fwq2A":"popup-styles_prev__Vpiys"}`,key:r},(0,s.h)("div",{className:"popup-styles_popup_track_item_image__EabO1"},n.image,n.backgroundColor&&(0,s.h)("span",{className:"popup-styles_popup_track_item_bg__uoVJD",style:{background:n.backgroundColor}}),n.timer&&(0,s.h)("div",{className:"popup-styles_popup_track_item_timer__9A-Km"},n.timer)),(0,s.h)("div",{className:ee,dangerouslySetInnerHTML:{__html:n.text}}),n.customBtns?(0,s.h)("div",{className:e.big?"popup-styles_big_container__xS9DM":""},n.customBtns):n.btns.map((t,n)=>(0,s.h)("button",{key:n,className:`popup-styles_popup_button__7J--h ${e.big?"popup-styles_big__qRK7j":""} ${n>0?e.color===n6.blue?"popup-styles_white__WSKai":"popup-styles_white_green__sxTIK":""} ${e.items.length>1&&0===n?"high_margin":""} ${e.color?e.color:""}`,onClick:t.func?()=>t.func&&t.func(u):u},t.text))))),e.items.length>1&&(0,s.h)("div",{className:"popup-styles_popup_dots__3N7ZH"},e.items.map((r,i)=>(0,s.h)("button",{onClick:()=>{n(i)},className:`popup-styles_popup_dots_item__tg9BD ${i===t?Q:""} ${e.color?e.color:""}`,key:i}))))))};!function(e){e.red="r",e.green="g",e.blue="b",e.purple="p",e.orange="o"}(n7||(n7={})),function(e){e.easy="easy",e.medium="medium",e.hard="hard",e.expert="expert",e.evil="evil",e.extreme="extreme"}(n8||(n8={}));let ei={easy:"easy",medium:"medium",hard:"hard",expert:"expert",evil:"master",extreme:"extreme"},eo=["easy","medium","hard","expert","evil","extreme"],es="croco",ea=e=>{let t=e,n=Math.floor(t/86400),r=Math.floor((t-=86400*n)/3600)%24,i=Math.floor((t-=3600*r)/60)%60;return t-=60*i,{d:n,h:r,m:i,s:Math.floor(t)%60}},el=[{available:{default:"/build/images/dc/cups-blue/graphics-blue-cups-available-cup-1.png",retina:"/build/images/dc/cups-blue/[email protected]"},unavailable:{default:"/build/images/dc/cups-blue/graphics-blue-cups-unavailable-cup-1.png",retina:"/build/images/dc/cups-blue/[email protected]"}},{available:{default:"/build/images/dc/cups-blue/graphics-blue-cups-available-cup-2.png",retina:"/build/images/dc/cups-blue/[email protected]"},unavailable:{default:"/build/images/dc/cups-blue/graphics-blue-cups-unavailable-cup-2.png",retina:"/build/images/dc/cups-blue/[email protected]"}},{available:{default:"/build/images/dc/cups-blue/graphics-blue-cups-available-cup-3.png",retina:"/build/images/dc/cups-blue/[email protected]"},unavailable:{default:"/build/images/dc/cups-blue/graphics-blue-cups-unavailable-cup-3.png",retina:"/build/images/dc/cups-blue/[email protected]"}},{available:{default:"/build/images/dc/cups-blue/graphics-blue-cups-available-cup-4.png",retina:"/build/images/dc/cups-blue/[email protected]"},unavailable:{default:"/build/images/dc/cups-blue/graphics-blue-cups-unavailable-cup-4.png",retina:"/build/images/dc/cups-blue/[email protected]"}},{available:{default:"/build/images/dc/cups-blue/graphics-blue-cups-available-cup-5.png",retina:"/build/images/dc/cups-blue/[email protected]"},unavailable:{default:"/build/images/dc/cups-blue/graphics-blue-cups-unavailable-cup-5.png",retina:"/build/images/dc/cups-blue/[email protected]"}},{available:{default:"/build/images/dc/cups-blue/graphics-blue-cups-available-cup-6.png",retina:"/build/images/dc/cups-blue/[email protected]"},unavailable:{default:"/build/images/dc/cups-blue/graphics-blue-cups-unavailable-cup-6.png",retina:"/build/images/dc/cups-blue/[email protected]"}},{available:{default:"/build/images/dc/cups-blue/graphics-blue-cups-available-cup-7.png",retina:"/build/images/dc/cups-blue/[email protected]"},unavailable:{default:"/build/images/dc/cups-blue/graphics-blue-cups-unavailable-cup-7.png",retina:"/build/images/dc/cups-blue/[email protected]"}},{available:{default:"/build/images/dc/cups-blue/graphics-blue-cups-available-cup-8.png",retina:"/build/images/dc/cups-blue/[email protected]"},unavailable:{default:"/build/images/dc/cups-blue/graphics-blue-cups-unavailable-cup-8.png",retina:"/build/images/dc/cups-blue/[email protected]"}},{available:{default:"/build/images/dc/cups-blue/graphics-blue-cups-available-cup-9.png",retina:"/build/images/dc/cups-blue/[email protected]"},unavailable:{default:"/build/images/dc/cups-blue/graphics-blue-cups-unavailable-cup-9.png",retina:"/build/images/dc/cups-blue/[email protected]"}},{available:{default:"/build/images/dc/cups-blue/graphics-blue-cups-available-cup-10.png",retina:"/build/images/dc/cups-blue/[email protected]"},unavailable:{default:"/build/images/dc/cups-blue/graphics-blue-cups-unavailable-cup-10.png",retina:"/build/images/dc/cups-blue/[email protected]"}},{available:{default:"/build/images/dc/cups-blue/graphics-blue-cups-available-cup-11.png",retina:"/build/images/dc/cups-blue/[email protected]"},unavailable:{default:"/build/images/dc/cups-blue/graphics-blue-cups-unavailable-cup-11.png",retina:"/build/images/dc/cups-blue/[email protected]"}},{available:{default:"/build/images/dc/cups-blue/graphics-blue-cups-available-cup-12.png",retina:"/build/images/dc/cups-blue/[email protected]"},unavailable:{default:"/build/images/dc/cups-blue/graphics-blue-cups-unavailable-cup-12.png",retina:"/build/images/dc/cups-blue/[email protected]"}}];!function(e){e.dc="dc",e.events="events"}(n9||(n9={})),function(e){e.tournament="tournament",e.croco="croco",e.postcards="postcards",e.postcardsLeaderboard="postcardsLeaderboard",e.storybook="storybook"}(re||(re={})),function(e){e[e.gold=1]="gold",e[e.silver=2]="silver",e[e.bronze=3]="bronze",e[e.copper=4]="copper"}(rt||(rt={}));let ec=({show:e,text:t})=>(0,s.h)("div",{className:"loading-styles_loading__QUpib "+(e?"loading-styles_active__WcSpR":"")},(0,s.h)("div",{className:"loading-styles_loading_content__Y9HWZ"},(0,s.h)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"},(0,s.h)("path",{id:"Oval-3",fill:"#D0D9E4",d:"M25 0a25 25 0 1021.4 12.07l-2.52 1.61c2.03 3.16 3.05 6.93 3.05 11.32 0 15.5-13.32 22-21.93 22C11.78 47 3 36.14 3 25 3 13.44 12.17 3 25 3V0z"})),(0,s.h)("div",{className:"loading-styles_loading_label__UmTrv"},t)));!function(e){e.left="left",e.right="right"}(rn||(rn={}));let eu=new Date(2024,0,1),ed=new Date(2020,0,1),eh="dailyInfo",ep=(e,t)=>Math.max(28,32-new Date(e,t,32).getDate()),ef=(e,t)=>t&&Math.floor(Math.abs(e-t)/1e3/86400)>=1?t:e,eg={hiw:!1,data:{}},em=new class{constructor(){var e;this.translations={},this.findLastAvailableMonthDay=(e,t)=>{let n=t;for(;n>0;){let t=this.config.data[`${e}_${n}`];if(!t||!t||!t.s)return n;n--}return t},this.getCountCompletedLevels=e=>{let t=0;
23return Object.keys(this.config.data).forEach(n=>{var r,i;let[o,s]=e.split("_"),[a,l]=n.split("_");o===a&&s===l&&((null==(r=this.config.data[n])?void 0:r.s)||(null==(i=this.config.data[n])?void 0:i.done))&&t++}),t},this.getNearTab=()=>{let e=null,t=this.calendar.length-1;for(;t>=0&&null===e;)this.calendar[t].notFullCompletedMonth||(e=t),t--;return null!==e?e:this.calendar.length-1},this.config=f("dc",eg),this.calendar=this.prepareCalendar(ef(new Date,window.serverDate),eu);let t=m("dc-win-date");this.selectedMonth=t?this.calendar.findIndex(e=>e.id===t.split("_").slice(0,2).join("_")):this.getNearTab(),this.selectedDate=null==(e=this.calendar[this.selectedMonth])?void 0:e.maxNotFinishedDay}resetOldLevel(e){let t=f(eh,null);t&&t[e]&&(delete t[e],g(eh,t))}switchToSudokuFormat(){var e;let t=f(eh,null);if(!t)return;this.config.data=Object.entries(t).reduce((e,[t,n])=>(e[t]=Object.assign({s:n.done},n.done?{}:{sudokuProgress:n}),e),{}),this.calendar=this.prepareCalendar(ef(new Date,window.serverDate),ed),this.saveConfig();let n=m("dc-win-date");this.selectedMonth=n?this.calendar.findIndex(e=>e.id===n.split("_").slice(0,2).join("_")):this.getNearTab(),this.selectedDate=null==(e=this.calendar[this.selectedMonth])?void 0:e.maxNotFinishedDay}prepareCalendar(e,t){let n=[];for(;t<e;){let r=ep(t.getFullYear(),t.getMonth()),i=`${t.getFullYear()}_${t.getMonth()}`,o=e.getFullYear(),s=e.getMonth(),a=e.getDate(),l=`${o}_${s}`===i?a:r,c=this.findLastAvailableMonthDay(i,l),u=this.getCountCompletedLevels(i);n.push({id:i,monthId:t.getMonth(),eventId:`${t.getFullYear()}-${String(t.getMonth()+1).padStart(2,"0")}`,year:t.getFullYear(),countDaysInMonth:r,countCompletedDays:u,maxDay:l,maxNotFinishedDay:c,fullCompleted:u===r,notFullCompletedMonth:u===l}),t.setMonth(t.getMonth()+1)}return n}finishDay(e){this.config.data[e]={s:!0}}completeSelectedDay(){let e=`${this.calendar[this.selectedMonth].id}_${this.selectedDate}`;this.finishDay(e),g("dc",this.config);let t=f(eh,null);t&&(t[e]={done:!0},g(eh,t)),this.updateParamsAfterCheat()}resetSelectedMonth(){let e=f(eh,null);for(let t=1;t<=this.calendar[this.selectedMonth].maxDay;t++)delete this.config.data[`${this.calendar[this.selectedMonth].id}_${t}`],e&&delete e[`${this.calendar[this.selectedMonth].id}_${t}`];e&&g(eh,e),g("dc",this.config),this.updateParamsAfterCheat()}completeSelectedMonth(){let e=f(eh,null);for(let t=1;t<=this.calendar[this.selectedMonth].maxDay;t++)this.finishDay(`${this.calendar[this.selectedMonth].id}_${t}`),e&&(e[`${this.calendar[this.selectedMonth].id}_${t}`]={done:!0});e&&g(eh,e),g("dc",this.config),this.updateParamsAfterCheat()}updateParamsAfterCheat(){let e=this.getCountCompletedLevels(this.calendar[this.selectedMonth].id);this.calendar[this.selectedMonth].countCompletedDays=e,this.calendar[this.selectedMonth].fullCompleted=e===this.calendar[this.selectedMonth].countDaysInMonth}resetSelectedDate(){let e=`${this.calendar[this.selectedMonth].id}_${this.selectedDate}`;delete this.config.data[e],g("dc",this.config);let t=f(eh,null);t&&(delete t[e],g(eh,t)),this.updateParamsAfterCheat()}saveConfig(){g("dc",this.config)}isMonthCompleted(e){if(!e)return!1;let[t,n]=e.split("_");return ep(parseInt(t),parseInt(n))===this.getCountCompletedLevels(e)}getProgressPercent(e){var t,n,r,i,o,s,a;if(!this.config.data[e]||(null==(t=this.config.data[e])?void 0:t.s)||!(null==(n=this.config.data[e])?void 0:n.d)&&!(null==(r=this.config.data[e])?void 0:r.sudokuProgress))return 0;if(this.config.data[e].d){let t=(null==(o=null==(i=this.config.data[e].d)?void 0:i.desk)?void 0:o.foundation)?null==(a=null==(s=this.config.data[e].d)?void 0:s.desk)?void 0:a.foundation.reduce((e,t)=>e+t.split(",").filter(e=>!!e).length,0):0;return t?Math.min(99,Math.round(t/52*100)):1}return this.config.data[e].sudokuProgress?100*this.config.data[e].sudokuProgress.values.reduce((e,{val:t,mistake:n})=>0===t||n?e:e+1,0)/81:0}showHiw(){this.config.hiw=!0,g("dc",this.config)}},ev="postcards";!function(e){e.left="left",e.right="right"}(rr||(rr={})),function(e){e.klondike="klondike",e.spider="spider",e.freecell="freecell"}(ri||(ri={})),function(e){e.easy="easy",e.medium="medium",e.hard="hard",e.expert="expert",e.evil="evil",e.extreme="extreme"}(ro||(ro={}));let ey={en:"EN_US",ru:"RU",de:"DE",pl:"PL",tr:"TR",it:"IT",fr:"FR",es:"ES",mx:"ES_MX",pt:"PT",br:"PT_BR",zh:"ZH_Hans",tw:"ZH_Hant",jp:"JA",ko:"KO",th:"TH",vi:"VI",ar:"AR",dk:"DA",hu:"HU",il:"HE"},ew=[[3,5],[10,15],[300,360]],eb={easy:"easy",medium:"medium",hard:"hard",expert
23:"expert",evil:"master",extreme:"extreme"},e_=async(e,t)=>{if("undefined"==typeof AbortController)return new Promise((n,r)=>{let i=setTimeout(()=>r(Error("Request timed out after 5000ms")),5e3);fetch(e,t).then(n).catch(r).finally(()=>clearTimeout(i))});let n=!1,r=new AbortController,i=setTimeout(()=>{n||r.abort()},5e3);try{let o=await fetch(e,Object.assign(Object.assign({},t),{signal:r.signal}));return n=!0,clearTimeout(i),o}catch(e){if(n=!0,clearTimeout(i),e instanceof Error&&"AbortError"===e.name)throw Error("Request timed out after 5000ms");throw e}},eS=()=>{let e={};return function(t,n={}){let r=`${t}:${JSON.stringify(n)}`;if(r in e)return e[r];let i=e_(t,n).then(t=>(delete e[r],t)).catch(t=>{throw delete e[r],t});return e[r]=i,i}},ex="awards",ek="tournament_awards",eE=new class{constructor(){this.awardList=f(ex,{awards:[]})}setup(e){if(this.eaid=e.eaid,this.domain=e.domain,e.euid&&(this.euid=e.euid),e.upgradeFromLegacy){let e=f(ek,{awards:[],cdn:""});e.awards.length&&(e.awards.forEach(e=>{e.type||(e.type=re.tournament)}),this.awardList.awards.push(...e.awards),!this.awardList.cdn&&e.cdn&&(this.awardList.cdn=e.cdn),v(ek),g(ex,this.awardList))}}async addAward(e,t,n,r=rt.gold){p&&(this.awardList.awards.some(t=>t.award_id===e)||(this.awardList.awards.push({award_id:e,claimed_at:t,type:n,value:r}),g(ex,this.awardList)))}async getAwards(){if(console.log(this.domain,this.eaid,p),!this.domain||!this.eaid||!p)return this.resultAwards();let e={"x-easy-eaid":String(this.eaid),"Content-Type":"application/json","Accept-Language":ey[window.lang]};this.euid&&(e["x-easy-euid"]=this.euid);let{awards:t,locale:n}=this.awardList,r=t.filter(({res:e,type:t})=>!e||n!==window.lang&&[re.postcards,re.postcardsLeaderboard,re.storybook].includes(t)).map(e=>e.award_id);if(0===r.length)return this.resultAwards();let i=JSON.stringify({content:r});try{let n=await e_(this.domain,{method:"POST",headers:e,body:i}),r=await n.json();this.awardList.cdn=r.cdn[0],this.awardList.locale=window.lang,r.content.forEach(e=>{t.forEach(t=>{t.award_id===e.meta.award_id&&(t.res=e.res,[re.postcards,re.postcardsLeaderboard,re.storybook].includes(t.type)&&(t.title=e.meta.localization.title))})}),r.content.length&&g(ex,this.awardList)}catch(e){console.warn("awards api",e)}return this.resultAwards()}resultAwards(){return this.awardList.cdn?this.awardList.awards.filter(e=>e.res&&e.claimed_at).map(e=>{var t;return{url:(null!=(t=this.awardList.cdn)?t:"")+e.res+"/thumbnail",claimed_at:e.claimed_at,award_id:e.award_id,type:e.type,title:e.title,value:e.value}}):[]}};var eC={btn:"awards-styles_btn__Oe1UL",white:"awards-styles_white__xKufi",white_green:"awards-styles_white_green__5WG46",green:"awards-styles_green__tr5Ud",blue:"awards-styles_blue__qNUuT",awards:"awards-styles_awards__R5wfe",awards_empty:"awards-styles_awards_empty__1Zh7A",awards_empty_image:"awards-styles_awards_empty_image__Wp-Mc",awards_empty_title:"awards-styles_awards_empty_title__hZqjR",awards_empty_desc:"awards-styles_awards_empty_desc__uWpUv",awards_popup:"awards-styles_awards_popup__z4PDj",shown:"awards-styles_shown__w6whV",awards_popup_image:"awards-styles_awards_popup_image__rwJYR",popup_image:"awards-styles_popup_image__GwHTt",showAwardImage:"awards-styles_showAwardImage__-oBU9",awards_popup_title:"awards-styles_awards_popup_title__DM45I",showAwardTitle:"awards-styles_showAwardTitle__luaeK",awards_popup_date:"awards-styles_awards_popup_date__9xKk-",flare:"awards-styles_flare__5jN62",little:"awards-styles_little__yseUu",showAwardFlare:"awards-styles_showAwardFlare__VpxJj",simpleSpinner:"awards-styles_simpleSpinner__ZQllC",big:"awards-styles_big__SsRcQ",popup_frame:"awards-styles_popup_frame__uo730",tournaments:"awards-styles_tournaments__K7bYD",awards_header:"awards-styles_awards_header__JfKGx",awards_header_title:"awards-styles_awards_header_title__XMHHT",awards_header_tabs:"awards-styles_awards_header_tabs__N1-30",awards_header_tab:"awards-styles_awards_header_tab__I9MPc",awards_header_active_tab:"awards-styles_awards_header_active_tab__CVRvO",awards_header_notification:"awards-styles_awards_header_notification__UQnIm",awards_content:"awards-styles_awards_content__3RnG1",awards_event_item:"awards-styles_awards_event_item__7HUmI",awards_event_item_leaderboard:"awards-styles_awards_event_item_leaderboard__WZg6H",rewardImage:"awards-styles_rewardImage__87nJQ",crownShadow:"awards-styles_crownShadow__GzN2f",envelope:"awards-styles_envelope__fWhCY",rewardCrown:"awards-styles_rewardCrown__XUDY7",bronze:"awards-styles_bronze__XFGYN",silver:"awards-styles_silver__KPb1w",gold:"awards-styles_gold__CLaiQ",awards_event_item_image:"awards-styles_awards_event_item_image__w8u-r",awards_event_item_title:"awards-styles_awards_event_item_title__hy0Pe",awards_event_item_date:"awards-styles_awards_event_item_date__3IOSR",awards_dc_item:"awards-styles_awards_dc_item__Xy94k",finished:"awards-styles_finished__L1B15",awards_dc_item_title:"awards-styles_awards_dc_item_title__n6Ux0",awards_dc_item_progress:"awards-styles_awards_dc_item_progress__Ujen9",completed:"awards-styles_completed__Eik2n",awards_dc_item_progress_bar:"awards-styles_awards_dc_item_progress_bar__b0AuO",awards_dc_item_status:"awards-styles_awards_dc_item_status__a0Js1",awards_dc_item_image:"awards-styles_awards_dc_item_image__F0Prs",default:"awards-styles_default__PtHvQ"};let eP=(e,t)=>{void 0!==window.gtag&&(t?window.gtag("event",e,t):window.gtag("event",e))},eT=["gold","silver","bronze"],eL={components:{Awards:({translations:e,showTabs:t,dcTabCallback:n,eventTabCallback:r,defaultTab:i,showDailyNotification:o,color:l,toggleDcPopupCallback:c})=>{var d,h,p,f,g,m,v,y,w;let[b,_]=(0,a.useState)(i&&t?i:n9.dc),[S,x]=(0,a.useState)(""),[k,E]=(0,a.useState)(!1),[C,P]=(0,a.useState)(null),[T,L]=(0,a.useState)([]),[I,O]=(0,a.useState)(!0),[A,M]=(0,a.useState)(!!o),N=(0,a.useRef)(null),D=e=>()=>{if(b===e)return;_(e);let t={event_label:e};Z.send("g_awards_action",t),eP("g_awards_action",t)};return(0,a.useEffect)(()=>{c&&c(k)},[k]),(0,a.useEffect)(()=>{b===n9.dc&&(n&&n(),M(!1)),b===n9.events&&r&&r()},[b]),(0,a.useEffect)(()=>{let e=()=>{if(!N.current)return;let e=N.current.offsetWidth;x(e<590?"small":e<795?"medium":"")};return e(),t&&(async()=>{L((await eE.getAwards()).sort((e,t)=>
23{var n,r;let i=new Date(1e3*e.claimed_at),o=new Date(1e3*t.claimed_at),s=i.getFullYear()+"-"+i.getMonth()+"-"+i.getDate();return o.getFullYear()+"-"+o.getMonth()+"-"+o.getDate()!==s?t.claimed_at-e.claimed_at:(null!=(n=e.value)?n:1)-(null!=(r=t.value)?r:1)})),O(!1)})(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),(0,s.h)("div",{className:`${eC.awards} ${l}`,ref:N},(0,s.h)("div",{className:`popup ${eC.awards_popup} ${k?eC.shown:""}`,"data-show":k},(0,s.h)("div",{className:eC.awards_popup_image},(0,s.h)("div",{className:eC.popup_image},(0,s.h)("div",null,C&&(0,s.h)("img",{src:el[C.monthId].available.default,srcSet:`${el[C.monthId].available.default} 1x, ${el[C.monthId].available.retina} 2x`,alt:"dc"}))),(0,s.h)("img",{src:"/build/images/dc/glare1.png",srcSet:"/build/images/dc/glare1.png 1x, /build/images/dc/[email protected] 2x",className:`${eC.flare} ${eC.little}`,alt:"trophy"}),(0,s.h)("img",{src:"/build/images/dc/glare2.png",srcSet:"/build/images/dc/glare2.png 1x, /build/images/dc/[email protected] 2x",className:`${eC.flare} ${eC.big}`,alt:"trophy"})),C&&(0,s.h)("div",{className:eC.awards_popup_title},null!=(h=(null!=(d=e[`month_${u(C.monthId)}_year`])?d:`${u(C.monthId)} ${C.year}`).replace("{0}",String(C.year)))?h:C.id),(0,s.h)("button",{className:`${eC.btn} ${eC[l]}`,onClick:()=>E(!1)},null!=(p=e.ok)?p:"OK")),(0,s.h)("div",{className:`${eC.awards_header} ${S}`},(0,s.h)("h1",{className:eC.awards_header_title},null!=(f=e.header_awards)?f:"Awards"),t&&(0,s.h)("div",{className:eC.awards_header_tabs},(0,s.h)("button",{className:`${eC.awards_header_tab} ${b===n9.dc?eC.awards_header_active_tab:""} ${A?eC.awards_header_notification:""}`,onClick:D(n9.dc)},(0,s.h)("span",null,null!=(g=e.awards_tab_daily_challenges)?g:"Daily")),(0,s.h)("button",{className:`${eC.awards_header_tab} ${b===n9.events?eC.awards_header_active_tab:""}`,onClick:D(n9.events)},null!=(m=e.awards_tab_events)?m:"Events"))),(0,s.h)("div",{className:`${eC.awards_content} ${b} ${S}`},b===n9.events&&(0,s.h)(s.Fragment,null,(0,s.h)(ec,{text:null!=(v=e.game_screen_loading_game)?v:"Loading Game",show:I}),0===T.length&&(0,s.h)("div",{className:eC.awards_empty},(0,s.h)("svg",{className:eC.awards_empty_image,width:"67",height:"93",viewBox:"0 0 67 93",xmlns:"http://www.w3.org/2000/svg"},(0,s.h)("path",{d:"M32.64 65.963C14.615 65.963 0 51.197 0 32.982 0 14.766 14.614 0 32.64 0c18.028 0 32.642 14.766 32.642 32.982 0 18.215-14.614 32.981-32.641 32.981zm0-5.242c15.163 0 27.454-12.42 27.454-27.74 0-15.32-12.291-27.739-27.453-27.739-15.162 0-27.453 12.42-27.453 27.74 0 15.32 12.291 27.739 27.453 27.739zm0-3.058c-13.49 0-24.426-11.05-24.426-24.681C8.214 19.35 19.15 8.3 32.641 8.3c13.49 0 24.427 11.05 24.427 24.682 0 13.63-10.937 24.681-24.427 24.681zm.291-16.577 8.633 4.581-1.649-9.702 6.984-6.872-9.651-1.416-4.317-8.828-4.316 8.828-9.652 1.416 6.984 6.872-1.649 9.702 8.633-4.58zM56.918 60.13l9.97 17.851-18.122-3.609L42.743 92l-8.855-15.91L25.032 93l-6.023-17.629L.888 78.98l9.35-17.773a35.287 35.287 0 0 0 5.139 3.63c13.677 7.942 30.473 5.57 41.541-4.708z",fill:"#DEE4EB",fillRule:"evenodd"})),(0,s.h)("div",{className:eC.awards_empty_title},null!=(y=e.awards_events_empty_title)?y:"You Have No Awards Yet"),(0,s.h)("div",{className:eC.awards_empty_desc,dangerouslySetInnerHTML:{__html:null!=(w=e.awards_events_empty_body)?w:"Take part in events and collect unique rewards. Stay tuned!"}})),0!==T.length&&(0,s.h)(s.Fragment,null,T.map(t=>{var n;let r=new Date(1e3*t.claimed_at);return(0,s.h)("div",{className:eC.awards_event_item,key:t.award_id},(0,s.h)("div",{className:t.type===re.postcardsLeaderboard?eC.awards_event_item_leaderboard:eC.awards_event_item_image},(0,s.h)("img",{src:t.url,alt:"event",className:t.type===re.postcardsLeaderboard?eC.rewardImage:""}),t.type===re.postcardsLeaderboard&&(0,s.h)(s.Fragment,null,(0,s.h)("img",{className:eC.envelope,alt:"envelope",srcSet:`/build/images/postcards/envelope-${1===t.value?"gold":2===t.value?"silver":"bronze"}.png 1x, /build/images/postcards/envelope-${1===t.value?"gold":2===t.value?"silver":"bronze"}@2x.png 2x`,src:`/build/images/postcards/envelope-${1===t.value?"gold":2===t.value?"silver":"bronze"}.png`}),(0,s.h)("div",{className:eC.crownShadow}),(0,s.h)("div",{className:`${eC.rewardCrown} ${eT[t.value-1]?eC[eT[t.value-1]]:""}`},t.value))),(0,s.h)("div",{className:eC.awards_event_item_title},t.type===re.tournament&&e.tournament_leaderboards_title,t.type===re.croco&&e.ftc_title,[re.postcards,re.postcardsLeaderboard,re.storybook].includes(t.type)&&t.title),(0,s.h)("div",{className:eC.awards_event_item_date},(null!=(n=e.awards_date_mask)?n:"{1:00}/{0:00}/{2}").replace("{0:00}",String(r.getDate())).replace("{00:00}",String(r.getDate()).padStart(2,"0")).replace("{1:00}",String(r.getMonth()+1)).replace("{01:00}",String(r.getMonth()+1).padStart(2,"0")).replace("{2}",String(r.getFullYear()))))}))),b===n9.dc&&(0,s.h)(s.Fragment,null,[...em.calendar].reverse().map(t=>{var n,r;return(0,s.h)("div",{className:`${eC.awards_dc_item} ${t.fullCompleted?eC.finished:""}`,onClick:(e=>()=>{e.fullCompleted&&(P(e),E(!0))})(t),key:t.id},(0,s.h)("div",{className:`${eC.awards_dc_item_image} ${t.fullCompleted?"":eC.default}`},(0,s.h)("img",{src:el[t.monthId][t.fullCompleted?"available":"unavailable"].default,srcSet:`${el[t.monthId][t.fullCompleted?"available":"unavailable"].default}
23 1x, ${el[t.monthId][t.fullCompleted?"available":"unavailable"].retina} 2x`,alt:"dc"})),(0,s.h)("div",{className:eC.awards_dc_item_title},null!=(r=(null!=(n=e[`month_${u(t.monthId)}_year`])?n:`${u(t.monthId)} ${t.year}`).replace("{0}",String(t.year)))?r:t.id),(0,s.h)("div",{className:`${eC.awards_dc_item_progress} ${t.fullCompleted?eC.completed:""}`},(0,s.h)("span",null,e.awards_dc_completed||"Completed"),!t.fullCompleted&&(0,s.h)("div",{className:eC.awards_dc_item_progress_bar},(0,s.h)("div",{style:{width:t.countCompletedDays/t.countDaysInMonth*100+"%"}}))),(0,s.h)("div",{className:`${eC.awards_dc_item_status} ${t.fullCompleted?eC.completed:""}`},(0,s.h)("span",null,(e.awards_dc_progress||"{0} of {1}").replace("{0}",String(t.countCompletedDays)).replace("{1}",String(t.countDaysInMonth)))))}))))}},awardsLogic:eE},eI=e=>{let t=e.classList;return{add:function(...e){return e.forEach(e=>t.add(e)),this},remove:function(...e){return e.forEach(e=>t.remove(e)),this},toggle:function(e){return t.toggle(e),this},contains:function(e){return t.contains(e)}}},{awardsLogic:eO}=eL,eA=new class{constructor(){this.timers=[],this.timer=0,this.previousTimeString="",this._listeners=[],this.translations={},this.ab={},this.config=f(es,null),this.request=null}_notify(){this._listeners.forEach(e=>e(this.previousTimeString))}subscribe(e){this._listeners.push(e),this._notify()}unsubscribe(e){this._listeners=this._listeners.filter(t=>t!==e)}getRandomUser(){let e=[n7.blue,n7.green,n7.red,n7.purple],t=e[c(e.length)];return{n:this.getRandomLetter(),c:t}}generateUsers(e){let t=[n7.blue,n7.green,n7.red,n7.purple],n=[];n.push({n:"Me",c:n7.orange,r:!0,me:!0});let r=0;for(let i=0;i<e;i++){let o=t[c(t.length)],s=this.getRandomLetter(),a=!1;r<10&&(a=Math.random()<(10-r)/(e-i))&&r++,n.push({n:s,c:o,r:a})}return n}getRandomLetter(){return"ABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(c(26))}subscribeTimer(e,t){this.timers.push(e),t&&(this.link=t),this.previousTimeString="",this.renderTimers()}checkExpiring(){return this.timer<=0&&(this.config&&(this.config.finishPopup=this.config.currentEvent?this.config.currentEvent.time:Math.floor(Date.now()/1e3),this.config.finished&&this.config.currentEvent&&!this.config.finished.includes(this.config.currentEvent.id)&&(this.config.finished=[...this.config.finished||[],this.config.currentEvent.id]),g(es,this.config)),!0)}renderTimers(){let e=ea(this.timer<0?0:this.timer),t="";(t=0===e.d&&0===e.h?(this.translations.minutesTimer||"{minutes}m {seconds}s").replace("{minutes}",("0"+e.m).slice(-2).split("").map(e=>`<span>${e}</span>`).join("")).replace("{seconds}",("0"+e.s).slice(-2).split("").map(e=>`<span>${e}</span>`).join("")):0===e.d&&e.h>0?(this.translations.hoursTimer||"{hours}h {minutes}m").replace("{hours}",("0"+e.h).slice(-2).split("").map(e=>`<span>${e}</span>`).join("")).replace("{minutes}",("0"+e.m).slice(-2).split("").map(e=>`<span>${e}</span>`).join("")):(this.translations.daysTimer||"{days}d {hours}h").replace("{days}",("0"+e.d).slice(-2).split("").map(e=>`<span>${e}</span>`).join("")).replace("{hours}",("0"+e.h).slice(-2).split("").map(e=>`<span>${e}</span>`).join("")))!==this.previousTimeString&&(this.timers.forEach(e=>{e.innerHTML=t}),this.previousTimeString=t,this._notify())}startTimer(){if(this.config&&this.config.currentEvent){if(clearInterval(this.interval),this.timer=this.config.currentEvent.time-Date.now()/1e3,this.renderTimers(),this.timer<=0)return this.checkExpiring(),void(this.link&&eI(this.link).remove("active"));this.interval=setInterval(()=>{this.timer>0&&this.timer--,this.renderTimers(),this.timer<=0&&(clearInterval(this.interval),this.checkExpiring(),this.link&&eI(this.link).remove("active"))},1e3)}}setup(e){this.eaid=e.eaid,this.host=e.host,this.requestsFrequency=e.requestsFrequency,e.translations&&(this.translations=e.translations),e.ab&&(this.ab=e.ab),this.sync()}sync(){!this.config||!this.config.lastUpdate||!this.config.currentEvent||(Date.now()-this.config.lastUpdate)/1e3>this.requestsFrequency?this.request=new Promise((e,t)=>{this.getEvent().then(()=>{this.init(),e(!0)}).catch(()=>{this.init(),t(!1)})}):this.init()}init(){document.addEventListener("visibility-visible",()=>{this.startTimer()}),document.addEventListener("visibility-hidden",()=>{clearInterval(this.interval)}),this.startTimer()}showStartPopup(){this.config&&(this.config.startPopup=!0,g(es,this.config))}setClicked(){this.config&&(this.config.clicked=!0,g(es,this.config))}setVisited(){this.config&&(this.config.visited=!0,g(es,this.config))}setOnboarding(){this.config&&(this.config.onboarding=!0,g(es,this.config))}showHiw(){this.config&&(this.config.hiw=!0,g(es,this.config))}setFailUsers(){if(!this.config||!this.config.currentEvent)return;let{BotsEliminationPercentFrom:e,BotsEliminationPercentTo:t}=this.config.currentEvent.meta,n=this.config.currentEvent.users.filter(e=>!e.l),r=Math.floor(Math.random()*(t-e+1))+e,i=Math.floor(n.length*(r/100)),o=this.config.currentEvent.users.filter(e=>!e.me&&e.l).length,s=this.config.currentEvent.users.filter(e=>!e.me&&e.r&&e.l).length,a=Math.min(this.config.currentEvent.users.filter(e=>!e.me&&e.r).length,Math.floor((i+o)/((this.config.currentEvent.users.length-1)/10)))-s;for(this.config.currentEvent.failUsers=i,i-=a;i>0;){let e=this.config.currentEvent.users.find(e=>!e.l&&!e.r&&!e.me);e&&(e.l=!0),i--}this.failRandomRenderedUsers(this.config.currentEvent.users.filter(e=>!e.l&&e.r&&!e.me),a)}finish(){var e,t;if(!this.config||!this.config.currentEvent||(null!=(t=null==(e=this.config.currentEvent)?void 0:e.currentLevel)?t:0)<this.config.currentEvent.levels.length)return null;let n=this.config.currentEvent.award;return this.config.finished&&!this.config.finished.includes(this.config.currentEvent.id)&&
23(this.config.finished=[...this.config.finished||[],this.config.currentEvent.id]),g(es,this.config),n}nextEvent(){var e,t,n,r,i,o;if(this.config){if(null==(e=eA.config)?void 0:e.currentEvent){let e={id:null==(t=eA.config)?void 0:t.currentEvent.ai,lo_type:"croco-quest",level_num:(null!=(n=eA.config.currentEvent.currentLevel)?n:0)>=eA.config.currentEvent.levels.length?0:(null!=(r=eA.config.currentEvent.currentLevel)?r:0)+1,reason:this.config.currentEvent&&(null!=(o=null==(i=this.config.currentEvent)?void 0:i.currentLevel)?o:0)>=this.config.currentEvent.levels.length?"win":"time"};eP("lo_finish",e),Z.send("lo_finish",e)}this.config.currentEvent=null,this.config.finishPopup=null,g(es,this.config),this.sync()}}reset(){var e,t,n,r,i,o,s,a,l,c,u,d,h;if(this.config&&this.config.currentEvent){if(null==(e=eA.config)?void 0:e.currentEvent){if(eA.config.levelProgress){let e=eo[null==(t=eA.config)?void 0:t.currentEvent.levels[null!=(n=eA.config.currentEvent.currentLevel)?n:0].difficulty],c={id:eA.config.currentEvent.ai,lo_type:"croco-quest",attempt_num:null!=(r=eA.config.currentEvent.attempt)?r:1,time_1s:(null==(i=eA.config)?void 0:i.levelProgress.timer)/1e3,level_num:(null!=(o=eA.config.currentEvent.currentLevel)?o:0)+1,difficulty_level:ei[e],level_id:eA.config.levelProgress.id,boosters:{undos:null!=(s=eA.config.levelProgress.undos)?s:0,smart_hints:null!=(a=eA.config.levelProgress.countSmartHints)?a:0,erases:null!=(l=eA.config.levelProgress.erases)?l:0}};eP("lo_level_lose",c),Z.send("lo_level_lose",c)}let e={id:null==(c=eA.config)?void 0:c.currentEvent.ai,lo_type:"croco-quest",attempt_num:(null!=(u=eA.config.currentEvent.attempt)?u:1)+1};eP("lo_restart",e),Z.send("lo_restart",e)}delete this.config.levelProgress,this.config.currentEvent.currentLevel=0,this.config.currentEvent.users=this.generateUsers(null!=(d=this.config.currentEvent.meta.BotsCount)?d:100),this.config.currentEvent.attempt=(null!=(h=this.config.currentEvent.attempt)?h:1)+1,g(es,this.config)}}flowStep(){this.config&&this.config.currentEvent&&(this.config.currentEvent.redirect=!1,this.config.currentEvent.failRndUsers=[],g(es,this.config))}moveToNextCroco(){var e,t,n,r,i,o;if(!this.config||!this.config.currentEvent)return!1;this.config.currentEvent.currentLevel=(null!=(e=this.config.currentEvent.currentLevel)?e:0)+1;let s=this.config.currentEvent.currentLevel>=this.config.currentEvent.levels.length;if(this.config.currentEvent.currentLevel>this.config.currentEvent.levels.length&&(this.config.currentEvent.currentLevel=this.config.currentEvent.levels.length),delete this.config.levelProgress,s&&(eO.addAward(this.config.currentEvent.award,Math.floor(Date.now()/1e3),re.croco),null==(t=eA.config)?void 0:t.currentEvent)){let e={id:null==(n=eA.config)?void 0:n.currentEvent.ai,lo_type:"croco-quest",time_1s:Math.floor(Date.now()/1e3-(null!=(o=null==(i=null==(r=eA.config)?void 0:r.currentEvent)?void 0:i.start)?o:0)),message:{medal:this.config.currentEvent.award}};eP("lo_reward_claim",e),Z.send("lo_reward_claim",e)}return this.setFailUsers(),this.config.currentEvent.redirect=!0,g(es,this.config),s}getCurrentEvent(e){var t;if(null==(t=this.config)?void 0:t.currentEvent)return e.find(e=>{var t,n;return e.mt.ei===(null==(n=null==(t=this.config)?void 0:t.currentEvent)?void 0:n.id)});let n=Date.now()/1e3,r=e.filter(e=>{var t;let r=null!=(t=e.mt.sc[2])?t:e.mt.sc[1];return(!this.config||!this.config.finished.includes(e.mt.ei))&&n>=r&&n<r+e.mt.du});return r.length?r[0]:void 0}failRandomRenderedUsers(e,t){if(this.config){this.config.currentEvent.failRndUsers=[];for(let t=e.length-1;t>0;t--){let n=Math.floor(Math.random()*(t+1));[e[t],e[n]]=[e[n],e[t]]}for(let n=0;n<t&&n<e.length;n++)e[n].l=!0,this.config.currentEvent.failRndUsers.push(e[n])}}async getLevels(e,t){if(t&&t.length)for(let n of t)try{let t=e.find(e=>4===e.pt);if(!t)return;let r=await e_(`${n}${t.ur}`),i=await r.json();if(i&&i.Levels&&i.Meta)return{levels:i.Levels.map(e=>({difficulty:e.Difficulty})),meta:i.Meta}}catch(e){console.error("err",e)}}async getEvent(){var e,t,n,r,i,o,s,a,l,c,u,d,h,p,f,m,v,y,w,b,_,S,x,k,E,C,P,T,L,I,O,A,M;let N=Object.values(this.ab).join(","),D=await e_(this.host,{method:"GET",headers:Object.assign({"x-easy-eaid":String(this.eaid),"x-easy-version":"1.0.0","x-easy-submodule-version":"106=1.0.0","X-Easy-Json-Debug-Key":"780043d4296e17bac321b88f6946239a"},N?{"x-easy-ab":N}:{})});try{let N=await D.json();if(!N.content||!N.content.data)return;let R=this.getCurrentEvent(N.content.data);if(!(null==N?void 0:N.success)||!R||this.config&&R&&(null==(t=null==(e=this.config)?void 0:e.currentEvent)?void 0:t.up)===R.mt.up)return void(this.config&&(this.config.lastUpdate=Date.now(),g(es,this.config)));let B=await this.getLevels(R.pk,N.content.cdn);if(!B)return void console.error("Empty Level Pack",B);if(this.config={lastUpdate:Date.now(),hiw:null!=(r=null==(n=this.config)?void 0:n.hiw)&&r,onboarding:null!=(o=null==(i=this.config)?void 0:i.onboarding)&&o,visited:null!=(a=null==(s=this.config)?void 0:s.visited)&&a,clicked:null!=(c=null==(l=this.config)?void 0:l.clicked)&&c,startPopup:null!=(d=null==(u=this.config)?void 0:u.startPopup)&&d,events:N.content.data,currentEvent:{time:(null!=(p=null!=(h=R.mt.sc[2])?h:R.mt.sc[1])?p:Math.floor(Date.now()/1e3))+R.mt.du,id:R.mt.ei,up:R.mt.up,start:null!=(m=null!=(f=R.mt.sc[2])?f:R.mt.sc[1])?m:Math.floor(Date.now()/1e3),users:null!=(w=null==(y=null==(v=this.config)?void 0:v.currentEvent)?void 0:y.users)?w:this.generateUsers(null!=(b=B.meta.BotsCount)?b:100),currentLevel:null!=(x=null==(S=null==(_=this.config)?void 0:_.currentEvent)?void 0:S.currentLevel)?x:0,meta:B.meta,levels:B.levels,award:R.aw[0].i,redirect:!1,ai:R.mt.ai,attempt:null!=(C=null==(E=null==(k=this.config)?void 0:k.currentEvent)?void 0:E.attempt)?C:1,inited:null!=(L=null==(T=null==(P=this.config)?void 0:P.currentEvent)?void 0:T.inited)&&L},finished:(null==(I=this.config)?void 0:I.finished)||[],finishPopup:null!=(A=null==(O=this.config)?void 0:O.finishPopup)?A:null},console.log("data",this.config),this.config.currentEvent&&!(null==(M=this.config.currentEvent)?void 0:M.inited)){let e={
23id:this.config.currentEvent.ai,lo_type:"croco-quest"};eP("lo_start",e),Z.send("lo_start",e),this.config.currentEvent.inited=!0}g(es,this.config)}catch(e){console.error("err",e)}}saveGameProgress(e){this.config&&(this.config.levelProgress=e,g(es,this.config))}},eM=e=>{if(e<2)return!1;let t=e-2;return t%6==0||(t-1)%6==0},eN=e=>{if(e<5)return!1;let t=e-5;return t%6==0||(t-1)%6==0},eD=e=>(e-1)%12==0||(e-2)%12==0||(e-6)%12==0||(e-7)%12==0||(e-8)%12==0||(e+5)%6==0||e%6==0;var eR="croco-styles_btn__yBvnq",eB="croco-styles_croco_info_stats_item__SLBg3",eF="croco-styles_active__CXIYs",e$="croco-styles_left__X5SUB",ej="croco-styles_right__fUtba",eH="croco-styles_croco_path_users__PRK7i",ez="croco-styles_croco_path_users_item__DSWpT",eG="croco-styles_hidden__k86as",eq="croco-styles_croco_path_island1__PryNq",eU="croco-styles_bottom__X009G",eW="croco-styles_top__dLKay",eV="croco-styles_croco_path_island3__ShWrZ",eY="timer-styles_timer_val__CylBf";let eX=({withoutClock:e,small:t,timeIsUp:n,subscribe:r,unsubscribe:i,rtl:o})=>{let[l,c]=(0,a.useState)("");return(0,a.useEffect)(()=>{if(!r||!i)return;let e=e=>{c(e)};return r(e),()=>{i(e)}},[]),(0,s.h)("div",{className:"timer-styles_timer__bqqKG "+(o?"timer-styles_rtl__BLNPI":"")},!e&&(0,s.h)("div",{className:"timer-styles_timer_clock__UhUaB "+(t?"timer-styles_sm__CxZS0":"")}),n?(0,s.h)("span",{className:eY},n):(0,s.h)("span",{className:eY,dangerouslySetInnerHTML:{__html:l}}))},eK=({start:e,clName:t,onFinish:n})=>{let r=[{src:"/build/images/croco/splash/crock-water_splash_small_1.png",srcset:"/build/images/croco/splash/crock-water_splash_small_1.png 1x, /build/images/croco/splash/[email protected] 2x"},{src:"/build/images/croco/splash/crock-water_splash_small_2.png",srcset:"/build/images/croco/splash/crock-water_splash_small_2.png 1x, /build/images/croco/splash/[email protected] 2x"},{src:"/build/images/croco/splash/crock-water_splash_small_3.png",srcset:"/build/images/croco/splash/crock-water_splash_small_3.png 1x, /build/images/croco/splash/[email protected] 2x"},{src:"/build/images/croco/splash/crock-water_splash_small_4.png",srcset:"/build/images/croco/splash/crock-water_splash_small_4.png 1x, /build/images/croco/splash/[email protected] 2x"},{src:"/build/images/croco/splash/crock-water_splash_small_5.png",srcset:"/build/images/croco/splash/crock-water_splash_small_5.png 1x, /build/images/croco/splash/[email protected] 2x"},{src:"/build/images/croco/splash/crock-water_splash_small_6.png",srcset:"/build/images/croco/splash/crock-water_splash_small_6.png 1x, /build/images/croco/splash/[email protected] 2x"},{src:"/build/images/croco/splash/crock-water_splash_small_7.png",srcset:"/build/images/croco/splash/crock-water_splash_small_7.png 1x, /build/images/croco/splash/[email protected] 2x"},{src:"/build/images/croco/splash/crock-water_splash_small_8.png",srcset:"/build/images/croco/splash/crock-water_splash_small_8.png 1x, /build/images/croco/splash/[email protected] 2x"},{src:"/build/images/croco/splash/crock-water_splash_small_9.png",srcset:"/build/images/croco/splash/crock-water_splash_small_9.png 1x, /build/images/croco/splash/[email protected] 2x"},{src:"/build/images/croco/splash/crock-water_splash_small_10.png",srcset:"/build/images/croco/splash/crock-water_splash_small_10.png 1x, /build/images/croco/splash/[email protected] 2x"},{src:"/build/images/croco/splash/crock-water_splash_small_11.png",srcset:"/build/images/croco/splash/crock-water_splash_small_11.png 1x, /build/images/croco/splash/[email protected] 2x"}],[i,o]=(0,a.useState)(0);return(0,a.useEffect)(()=>{let e=r.map(e=>{let t=new Image;return t.src=e.src,t.srcset=e.srcset,t});return()=>{e.forEach(e=>e.src="")}},[]),(0,a.useEffect)(()=>{if(!e)return;let t=setInterval(()=>{o(e=>{let t=(e+1)%r.length;return 0===t&&e===r.length-1&&n&&n(),t})},1e3/r.length);return()=>clearInterval(t)},[e]),(0,s.h)(s.Fragment,null,r.map((e,n)=>(0,s.h)("img",{key:n,fetchPriority:"high",importance:"high",src:e.src,srcSet:e.srcset,className:t,alt:`Image ${n}`,style:{position:"absolute",opacity:+(n===i)}})))},eJ=({start:e,turned:t,onFinish:n,onMiddle:r,onDrown:i,left:o,right:l})=>{let c=[{src:"/build/images/croco/croco-animation/1x/crock-water_splash_big_00.png",srcset:"/build/images/croco/croco-animation/1x/crock-water_splash_big_00.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-water_splash_big_01.png",srcset:"/build/images/croco/croco-animation/1x/crock-water_splash_big_01.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-water_splash_big_02.png",srcset:"/build/images/croco/croco-animation/1x/crock-water_splash_big_02.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-water_splash_big_03.png",srcset:"/build/images/croco/croco-animation/1x/crock-water_splash_big_03.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-water_splash_big_04.png",srcset:"/build/images/croco/croco-animation/1x/crock-water_splash_big_04.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-water_splash_big_05.png",srcset:"/build/images/croco/croco-animation/1x/crock-water_splash_big_05.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-water_splash_big_06.png",srcset:"/build/images/croco/croco-animation/1x/crock-water_splash_big_06.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-water_splash_big_07.png",srcset:"/build/images/croco/croco-animation/1x/crock-water_splash_big_07.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-water_splash_big_08.png",srcset:"/build/images/croco/croco-animation/1x/crock-water_splash_big_08.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-water_splash_big_09.png",srcset:"/build/images/croco/croco-animation/1x/crock-water_splash_big_09.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-water_splash_big_10.png",srcset:"/build/images/croco/croco-animation/1x/crock-water_splash_big_10.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-water_splash_big_11.png",srcset:"/build/images/croco/croco-animation/1x/crock-water_splash_big_11.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-water_splash_big_12.png",srcset:"/build/images/croco/croco-animation/1x/crock-water_splash_big_12.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-water_splash_big_13.png",srcset:"/build/images/croco/croco-animation/1x/crock-water_splash_big_13.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-water_splash_big_14.png",srcset:"/build/images/croco/croco-animation/1x/crock-water_splash_big_14.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-water_splash_big_15.png",srcset:"/build/images/croco/croco-animation/1x/crock-water_splash_big_15.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-water_splash_big_16.png",srcset:"/build/images/croco/croco-animation/1x/crock-water_splash_big_16.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-water_splash_big_17.png",srcset:"/build/images/croco/croco-animation/1x/crock-water_splash_big_17.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-water_splash_big_18.png",srcset:"/build/images/croco/croco-animation/1x/crock-water_splash_big_18.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-water_splash_big_19.png",srcset:"/build/images/croco/croco-animation/1x/crock-water_splash_big_19.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-water_splash_big_20.png",srcset:"/build/images/croco/croco-animation/1x/crock-water_splash_big_20.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-water_splash_big_21.png",srcset:"/build/images/croco/croco-animation/1x/crock-water_splash_big_21.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-water_splash_big_22.png",srcset:"/build/images/croco/croco-animation/1x/crock-water_splash_big_22.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-water_splash_big_23.png",srcset:"/build/images/croco/croco-animation/1x/crock-water_splash_big_23.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-water_splash_big_24.png",srcset:"/build/images/croco/croco-animation/1x/crock-water_splash_big_24.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-water_splash_big_25.png",srcset:"/build/images/croco/croco-animation/1x/crock-water_splash_big_25.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-water_splash_big_26.png",srcset:"/build/images/croco/croco-animation/1x/crock-water_splash_big_26.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-water_splash_big_27.png",srcset:"/build/images/croco/croco-animation/1x/crock-water_splash_big_27.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-water_splash_big_28.png",srcset:"/build/images/croco/croco-animation/1x/crock-water_splash_big_28.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-water_splash_big_29.png",srcset:"/build/images/croco/croco-animation/1x/crock-water_splash_big_29.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-water_splash_big_30.png",srcset:"/build/images/croco/croco-animation/1x/crock-water_splash_big_30.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-water_splash_big_31.png",srcset:"/build/images/croco/croco-animation/1x/crock-water_splash_big_31.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-water_splash_big_32.png",srcset:"/build/images/croco/croco-animation/1x/crock-water_splash_big_32.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-water_splash_big_33.png",srcset:"/build/images/croco/croco-animation/1x/crock-water_splash_big_33.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-water_splash_big_34.png",srcset:"/build/images/croco/croco-animation/1x/crock-water_splash_big_34.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-water_splash_big_35.png",srcset:"/build/images/croco/croco-animation/1x/crock-water_splash_big_35.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-flower_born_00.png",srcset:"/build/images/croco/croco-animation/1x/crock-flower_born_00.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-flower_born_01.png",srcset:"/build/images/croco/croco-animation/1x/crock-flower_born_01.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-flower_born_02.png",srcset:"/build/images/croco/croco-animation/1x/crock-flower_born_02.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-flower_born_03.png",srcset:"/build/images/croco/croco-animation/1x/crock-flower_born_03.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-flower_born_04.png",srcset:"/build/images/croco/croco-animation/1x/crock-flower_born_04.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-flower_born_05.png",srcset:"/build/images/croco/croco-animation/1x/crock-flower_born_05.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-flower_born_06.png",srcset:"/build/images/croco/croco-animation/1x/crock-flower_born_06.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-flower_born_07.png",srcset:"/build/images/croco/croco-animation/1x/crock-flower_born_07.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-flower_born_08.png",srcset:"/build/images/croco/croco-animation/1x/crock-flower_born_08.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-flower_born_09.png",srcset:"/build/images/croco/croco-animation/1x/crock-flower_born_09.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-flower_born_10.png",srcset:"/build/images/croco/croco-animation/1x/crock-flower_born_10.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-flower_born_11.png",srcset:"/build/images/croco/croco-animation/1x/crock-flower_born_11.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-flower_born_12.png",srcset:"/build/images/croco/croco-animation/1x/crock-flower_born_12.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-flower_born_13.png",srcset:"/build/images/croco/croco-animation/1x/crock-flower_born_13.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-flower_born_14.png",srcset:"/build/images/croco/croco-animation/1x/crock-flower_born_14.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-flower_born_15.png",srcset:"/build/images/croco/croco-animation/1x/crock-flower_born_15.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-flower_born_16.png",srcset:"/build/images/croco/croco-animation/1x/crock-flower_born_16.png
23 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-flower_born_17.png",srcset:"/build/images/croco/croco-animation/1x/crock-flower_born_17.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-flower_born_18.png",srcset:"/build/images/croco/croco-animation/1x/crock-flower_born_18.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-flower_born_19.png",srcset:"/build/images/croco/croco-animation/1x/crock-flower_born_19.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-flower_born_20.png",srcset:"/build/images/croco/croco-animation/1x/crock-flower_born_20.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-flower_born_21.png",srcset:"/build/images/croco/croco-animation/1x/crock-flower_born_21.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-flower_born_22.png",srcset:"/build/images/croco/croco-animation/1x/crock-flower_born_22.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-flower_born_23.png",srcset:"/build/images/croco/croco-animation/1x/crock-flower_born_23.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-flower_born_24.png",srcset:"/build/images/croco/croco-animation/1x/crock-flower_born_24.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-flower_born_25.png",srcset:"/build/images/croco/croco-animation/1x/crock-flower_born_25.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-flower_born_26.png",srcset:"/build/images/croco/croco-animation/1x/crock-flower_born_26.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-flower_born_27.png",srcset:"/build/images/croco/croco-animation/1x/crock-flower_born_27.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-flower_born_28.png",srcset:"/build/images/croco/croco-animation/1x/crock-flower_born_28.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-flower_born_29.png",srcset:"/build/images/croco/croco-animation/1x/crock-flower_born_29.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-flower_born_30.png",srcset:"/build/images/croco/croco-animation/1x/crock-flower_born_30.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-flower_born_31.png",srcset:"/build/images/croco/croco-animation/1x/crock-flower_born_31.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-flower_born_32.png",srcset:"/build/images/croco/croco-animation/1x/crock-flower_born_32.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-flower_born_33.png",srcset:"/build/images/croco/croco-animation/1x/crock-flower_born_33.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-flower_born_34.png",srcset:"/build/images/croco/croco-animation/1x/crock-flower_born_34.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"},{src:"/build/images/croco/croco-animation/1x/crock-flower_born_35.png",srcset:"/build/images/croco/croco-animation/1x/crock-flower_born_35.png 1x, /build/images/croco/croco-animation/2x/[email protected] 2x"}],[u,d]=(0,a.useState)(0),[h,p]=(0,a.useState)(!1),[f,g]=(0,a.useState)(!1);(0,a.useEffect)(()=>
23{if(!e)return;let t=setInterval(()=>{d(e=>{let t=(e+1)%c.length;return 0===t&&e===c.length-1&&n&&n(),t})},2400/c.length);return()=>clearInterval(t)},[e]),(0,a.useEffect)(()=>{u>12&&i&&!h&&(i(),p(!0)),u>36&&r&&!f&&(r(),g(!0))},[u]);let m=t?2:-2;return o||l||t||(m=-3),l&&!t&&(m=-1),l&&t&&(m=1),(0,s.h)("div",null,c.map((e,n)=>(0,s.h)("img",{key:n,src:e.src,srcSet:e.srcset,alt:`Image ${n}`,fetchPriority:"high",importance:"high",style:{transform:n>35?`translate(${m}px, 6px) ${t?"scaleX(-1)":""}`:t?"scaleX(-1)":"",position:"absolute",opacity:+(n===u)}})))};var eZ="hiw-styles_croco_hiw_item__UN9ax";let eQ=({percent:e,progressText:t,translations:n})=>{var r,i;let[o,l]=(0,a.useState)(0);return(0,a.useEffect)(()=>{l(e)},[e]),(0,s.h)("div",{className:"win-styles_croco_win__iX0GL"},(0,s.h)("div",{className:"win-styles_croco_win_header__2jscq"},(0,s.h)("span",null,null!=(r=null==n?void 0:n.title)?r:"First Try Challenge"),(0,s.h)(eX,{small:!0,subscribe:eA.subscribe.bind(eA),unsubscribe:eA.unsubscribe.bind(eA)})),(0,s.h)("div",{className:"win-styles_croco_win_content__vQXVQ"},(0,s.h)("img",{src:"/build/images/croco/croco-icon.png",srcSet:"/build/images/croco/croco-icon.png 1x, /build/images/croco/[email protected] 2x"}),(0,s.h)("div",{className:"win-styles_croco_win_body__pjC45"},(0,s.h)("div",{className:"win-styles_croco_win_body_title__eNEfF"},null!=(i=null==n?void 0:n.levelsCompleted)?i:"Levels Passed"),(0,s.h)("div",{className:"win-styles_croco_win_body_bar__S5BMC"},(0,s.h)("span",{style:{width:`${o}%`}})),(0,s.h)("div",{className:"win-styles_croco_win_body_progress__xjGR1"},t))))},e0={components:{CrocoQuest:({gameUrl:e,homeUrl:t,toggleHiwCallback:n,translations:r})=>{var i,o,l,u,d,h,p,f,g,m,v,y,w,b,_,S,x,k,E,C,P,T,L,I,O,A,M,N,D,R,B,F,$,j,H,z,G;let[q,U]=(0,a.useState)(!0),[W,V]=(0,a.useState)(!1),[Y,X]=(0,a.useState)(!1),[K,J]=(0,a.useState)(""),[Q,ee]=(0,a.useState)(!1),[et,en]=(0,a.useState)(!0),[ei,eo]=(0,a.useState)(!1),[es,ea]=(0,a.useState)(!1),[el,eu]=(0,a.useState)(0),[ed,eh]=(0,a.useState)(0),[ep,ef]=(0,a.useState)(!1),[eg,em]=(0,a.useState)(!1),[ev,ey]=(0,a.useState)(!1),[ew,eb]=(0,a.useState)(!1),[e_,eS]=(0,a.useState)(!1),[ex,ek]=(0,a.useState)([]),[eC,eT]=(0,a.useState)([]),[eL,eI]=(0,a.useState)([]),[eO,eY]=(0,a.useState)(null),[eZ,eQ]=(0,a.useState)(!1),e0=(0,a.useRef)(null),e1=(0,a.useRef)(null),e2=(0,a.useRef)(null),e5=()=>{var n,r,i;if(U(!0),!(null==(n=eA.config)?void 0:n.onboarding)&&(null==(r=eA.config)?void 0:r.currentEvent)){let e={id:null==(i=eA.config)?void 0:i.currentEvent.ai,lo_type:"croco-quest",uid:eA.config.currentEvent.id,step:4,total_steps:4};eA.setOnboarding(),eP("lo_onboarding",e),Z.send("lo_onboarding",e)}eA.checkExpiring()?window.location.href=t:window.location.href=e},e4=()=>{var e,n,r,i,o,s,a,l,u,d,h,p,f,g,m,v,y,w,b,_,S,x,k;if(!eA.config||!eA.config.currentEvent||eA.checkExpiring()&&(null!=(n=null==(e=eA.config.currentEvent)?void 0:e.currentLevel)?n:0)<eA.config.currentEvent.levels.length)return void(window.location.href=t);(null==(r=null==eA?void 0:eA.config)?void 0:r.levelProgress)&&3===(null==(o=null==(i=null==eA?void 0:eA.config)?void 0:i.levelProgress)?void 0:o.mistakes)&&eA.reset();let E=!(0===(null==(a=null==(s=null==eA?void 0:eA.config)?void 0:s.currentEvent)?void 0:a.currentLevel)||!(null==(u=null==(l=eA.config)?void 0:l.currentEvent)?void 0:u.redirect)),C=(null==(d=eA.config.currentEvent)?void 0:d.failRndUsers)?null==(h=eA.config.currentEvent)?void 0:h.failRndUsers:[],P=Math.min(3,(null!=(f=null==(p=null==eA?void 0:eA.config)?void 0:p.currentEvent.users)?f:[]).filter(e=>!e.l&&!e.me).length);if(C.length<P&&0!==(null==(m=null==(g=null==eA?void 0:eA.config)?void 0:g.currentEvent)?void 0:m.currentLevel))for(;C.length<P;)C.push(eA.getRandomUser());let T=(null==(v=eA.config.currentEvent)?void 0:v.failRndUsers)&&(null==(y=eA.config.currentEvent)?void 0:y.failRndUsers.length)?eA.config.currentEvent.users.filter(e=>e.r&&(!e.l||e.l&&!!C.find(t=>t.n===e.n&&t.c===e.c&&t.l))):eA.config.currentEvent.users.filter(e=>e.r&&!e.l),L=C.map(e=>T.findIndex(t=>t.c===e.c&&t.n===e.n)).filter(e=>-1!==e);
23C.forEach(e=>{let t=T.findIndex(t=>t.c===e.c&&t.n===e.n);-1===t?(e.p=c(Math.max(T.length||7,4),[...L,0]),L.push(e.p)):e.p=t+1}),eI(C.map(e=>e.p)),eT(C),ek(T),ef(E),eh(Math.min(eA.config.currentEvent.users.length-eA.config.currentEvent.users.filter(e=>e.l).length+(E&&null!=(_=null==(b=null==(w=eA.config)?void 0:w.currentEvent)?void 0:b.failUsers)?_:0),eA.config.currentEvent.users.length)),eu((null!=(k=null==(x=null==(S=eA.config)?void 0:S.currentEvent)?void 0:x.currentLevel)?k:1)-!!E),ea(!0),U(!1)};return(0,a.useEffect)(()=>{e_&&eO&&((async e=>{let t=(await eE.getAwards()).find(t=>t.award_id===e);t&&(J(t.url),window.addEventListener("beforeunload",()=>{eA.nextEvent()}),window.addEventListener("pagehide",()=>{eA.nextEvent()}))})(eO),setTimeout(()=>{X(!0)},1200))},[e_,eO]),(0,a.useEffect)(()=>{eg&&setTimeout(()=>{ek(eA.config.currentEvent.users.filter(e=>e.r&&!e.l))},600)},[eg]),(0,a.useEffect)(()=>{var e,t,n,r,i,o,s,a;if(!e1.current||!e2.current||q)return;eA.flowStep(),eA.config&&(null==(e=eA.config)?void 0:e.hiw)&&e1.current&&(e1.current.scrollTop=e1.current.scrollHeight/2-e1.current.offsetHeight/2);let l=eA.finish();if(en(!(null==(t=eA.config)?void 0:t.hiw)),eA.config&&(null==(n=eA.config)?void 0:n.currentEvent)&&!(null==(r=eA.config)?void 0:r.visited)){let e={id:null==(i=eA.config)?void 0:i.currentEvent.ai,lo_type:"croco-quest",uid:eA.config.currentEvent.id,step:2,total_steps:4};eP("lo_onboarding",e),Z.send("lo_onboarding",e),eA.setVisited()}let c=(null==(o=eA.config.currentEvent)?void 0:o.currentLevel)>0?e2.current.offsetTop-e1.current.offsetHeight/2+80*!!Q:e1.current.scrollHeight-370,u=(null==(s=eA.config)?void 0:s.hiw)?e1.current.scrollHeight/2-e1.current.offsetHeight/2:e1.current.scrollTop;l&&en(!0),((e,t)=>{var n;let r=t.start||e.scrollTop,i=null!=(n=t.delay)?n:0,o=t.finish-r,s=t.duration||300,a=0;setTimeout(()=>{requestAnimationFrame(function(n){a=n,function n(i){var l;let c=i-a;e.scrollTop=(l=c/(s/2))<1?o/2*l*l+r:-o/2*(--l*(l-2)-1)+r,c<s?requestAnimationFrame(n):(e.scrollTop=r+o,"function"==typeof t.callback&&t.callback())}(n)})},i)})(e1.current,{start:u,duration:Math.min(700+100*Math.ceil(Math.abs(c-u)/100),1300),finish:c,delay:(null==(a=eA.config)?void 0:a.hiw)?350:750,callback:()=>{var e;(null==(e=eA.config)?void 0:e.hiw)||setTimeout(()=>{var e,t;if(V(!0),en(!1),eA.showHiw(),eQ(!0),null==(e=eA.config)?void 0:e.currentEvent){let e={id:null==(t=eA.config)?void 0:t.currentEvent.ai,lo_type:"croco-quest",uid:eA.config.currentEvent.id,step:3.1,total_steps:4};eP("lo_onboarding",e),Z.send("lo_onboarding",e)}},300),eY(l),ep&&(em(!0),ey(!0))}})},[q]),(0,a.useEffect)(()=>{n&&n(W)},[W]),(0,a.useEffect)(()=>{var e;let t=[];e0.current&&(e0.current.querySelectorAll("img").forEach(e=>{t.push(new Promise((t,n)=>{e.onload=function(){t(!0)},e.onerror=e.onabort=function(){n(!1)}}))}),eA.config&&(null==(e=eA.config)?void 0:e.hiw)&&e1.current&&(e1.current.scrollTop=e1.current.scrollHeight/2-e1.current.offsetHeight/2),eA.request&&t.push(eA.request),Promise.allSettled(t).then(()=>{e4()}),setTimeout(()=>{q&&e4()},1e3));let n=()=>{if(!e0.current)return;let e=e0.current.offsetWidth,t=e0.current.offsetHeight;ee(e<664),eo(t<450||e<664||window.innerWidth<768)};return n(),window.addEventListener("resize",n),document.documentElement.style.setProperty("--croco-height",document.documentElement.clientHeight-180+"px"),()=>{window.removeEventListener("resize",n)}},[]),(0,s.h)("div",{className:"croco-styles_croco__rBpcq "+(Q?"croco-styles_small__QpOAl":""),disabled:et,ref:e0},(0,s.h)(ec,{text:null!=(i=null==r?void 0:r.loading)?i:"Loading Game",show:q}),(0,s.h)(er,{show:W,fullSize:ei,onClose:()=>V(!1),items:[{btns:[{text:null!=(o=r.tutorialBtn)?o:"Continue",func:e=>{var t,n;if((null==(t=eA.config)?void 0:t.currentEvent)&&eZ){let e={id:null==(n=eA.config)?void 0:n.currentEvent.ai,lo_type:"croco-quest",uid:eA.config.currentEvent.id,step:3.2,total_steps:4};eP("lo_onboarding",e),Z.send("lo_onboarding",e)}e()}}],text:null!=(l=r.tutorialStep1)?l:"Pass levels on the first try to move through the event",image:(0,s.h)("img",{src:"/build/images/croco/hiw1.png",srcSet:"/build/images/croco/hiw1.png 1x, /build/images/croco/[email protected] 2x",alt:"img1"})},{btns:[{text:null!=(u=r.tutorialBtn)?u:"Continue",func:e=>{var t,n;
23if((null==(t=eA.config)?void 0:t.currentEvent)&&eZ){let e={id:null==(n=eA.config)?void 0:n.currentEvent.ai,lo_type:"croco-quest",uid:eA.config.currentEvent.id,step:3.3,total_steps:4};eP("lo_onboarding",e),Z.send("lo_onboarding",e)}e()}}],text:null!=(d=r.tutorialStep2)?d:"Participate in the event with other players and be the one who gets the reward",image:(0,s.h)("img",{src:"/build/images/croco/hiw2.png",srcSet:"/build/images/croco/hiw2.png 1x, /build/images/croco/[email protected] 2x",alt:"img2"})},{btns:[{text:null!=(h=null==r?void 0:r.ok)?h:"OK"}],text:null!=(p=r.tutorialStep3)?p:"Hurry! Every player who reaches the final will receive a reward",image:(0,s.h)("img",{src:"/build/images/croco/hiw3.png",srcSet:"/build/images/croco/hiw3.png 1x, /build/images/croco/[email protected] 2x",alt:"img3"})}],title:{value:null!=(f=r.tutorialTitle)?f:"How Does It Works?"},color:n6.blue}),(0,s.h)(er,{show:Y,fullSize:ei,onClose:()=>X(!1),items:[{btns:[{text:null!=(g=null==r?void 0:r.ok)?g:"OK",func:()=>{X(!1),U(!0),window.location.href=t}}],text:null!=(m=r.congratsText)?m:"You have completed the event and won a reward!",image:(0,s.h)("img",{src:K,alt:"img1"})}],title:{value:null!=(v=r.congtatsTitle)?v:"Congratulations!"},color:n6.blue}),Q&&(0,s.h)("div",{className:"croco-styles_croco_button__foGO1"},(0,s.h)("button",{className:eR,onClick:e5,disabled:et},null!=(y=r.play)?y:"Play")),(0,s.h)("div",{className:"croco-styles_croco_info__Mo9Q-"},(0,s.h)("div",{className:"croco-styles_croco_info_content__dWO3-"},(0,s.h)("button",{disabled:et,className:"croco-styles_croco_info_hiw__-YppG",onClick:()=>V(!0)}),(0,s.h)("div",{className:"croco-styles_croco_info_name__qLIfL"},null!=(w=r.title)?w:"First Try Challenge"),(0,s.h)("div",{className:"croco-styles_croco_info_timer__dB00O"},(0,s.h)("span",null,null!=(b=r.time)?b:"Ends in:")," ",(0,s.h)(eX,{subscribe:eA.subscribe.bind(eA),unsubscribe:eA.unsubscribe.bind(eA)})),(0,s.h)("div",{className:"croco-styles_croco_info_icon__qjsSE"},(0,s.h)("img",{src:"/build/images/croco/croco-icon.png",srcSet:"/build/images/croco/croco-icon.png 1x, /build/images/croco/[email protected] 2x"})),(0,s.h)("div",{className:"croco-styles_croco_info_stats__PHhjv"},Q&&(0,s.h)("div",{className:eB},null!=(_=r.time)?_:"Ends in:"," ",(0,s.h)(eX,{subscribe:eA.subscribe.bind(eA),unsubscribe:eA.unsubscribe.bind(eA),withoutClock:!0})),(0,s.h)("div",{className:eB},null!=(S=r.levels)?S:"Levels",(0,s.h)("span",null,es?(null!=(x=r.progress)?x:"{0}/{1}").replace("{0}",String(el)).replace("{1}",String(null==(E=null==(k=eA.config)?void 0:k.currentEvent)?void 0:E.levels.length)):"0/0")),(0,s.h)("div",{className:eB},null!=(C=r.players)?C:"Players",(0,s.h)("span",null,es&&(null==(T=null==(P=eA.config)?void 0:P.currentEvent)?void 0:T.users)?(null!=(L=r.progress)?L:"{0}/{1}").replace("{0}",String(ed)).replace("{1}",String(null==(I=eA.config)?void 0:I.currentEvent.users.length)):"0/0"))),(0,s.h)("button",{disabled:et,className:eR,onClick:e5},null!=(O=r.play)?O:"Play"))),(0,s.h)("div",{className:"croco-styles_croco_content__ivH2q",ref:e1},(0,s.h)("div",{className:"croco-styles_croco_path__TmDsy"},(0,s.h)("div",{className:"croco-styles_croco_path_cloud__HXSGP"}),(0,s.h)("div",{className:"croco-styles_croco_path_chest__kAIB8 "+(e_?"croco-styles_finish_animation__rBLBz":"")},e_&&(0,s.h)("div",null,(0,s.h)("img",{src:"/build/images/croco/imgChestBlastStar.png",srcSet:"/build/images/croco/imgChestBlastStar.png 1x, /build/images/croco/[email protected] 2x"}),(0,s.h)("img",{src:"/build/images/croco/imgChestBlastBlur.png",srcSet:"/build/images/croco/imgChestBlastBlur.png 1x, /build/images/croco/[email protected] 2x"}),(0,s.h)("img",{src:"/build/images/croco/imgChestBlastGlow.png",srcSet:"/build/images/croco/imgChestBlastGlow.png 1x, /build/images/croco/[email protected] 2x"}))),(0,s.h)("div",{className:`${eq} ${eU}`}),(0,s.h)("div",{className:`${eq} ${eW}`}),(0,s.h)("div",{className:"croco-styles_croco_path_island2__MpurU"}),es&&(null==(M=null==(A=eA.config)?void 0:A.currentEvent)?void 0:M.levels)&&(null==(D=null==(N=eA.config)?void 0:N.currentEvent)?void 0:D.levels.length)>=16&&(0,s.h)("div",{className:`${eV} ${eW}`}),(0,s.h)("div",{className:`${eV} ${eU}`}),(0,s.h)("img",{className:"croco-styles_croco_path_finish__6kksp",src:"/build/images/croco/island.png",srcSet:"/build/images/croco/island.png 1x, /build/images/croco/[email protected] 2x"}),(0,s.h)("img",{className:"croco-styles_croco_path_start__rVj1E",src:"/build/images/croco/croco-start.png",srcSet:"/build/images/croco/croco-start.png 1x, /build/images/croco/[email protected] 2x"}),es&&eA.config&&eA.config.currentEvent&&(0,s.h)("div",{className:"croco-styles_croco_path_crocos__yqR43"},Array.from({length:eA.config.currentEvent.levels.length-1},(e,t)=>{var n;return(0,s.h)("div",{key:t,className:`croco-styles_croco_path_item__HJ3Ek ${t<el-1?"croco-styles_completed__qGTbj":""} ${t===el-1?eF:""} ${ev&&(null!=(n=eA.config.currentEvent.currentLevel)?n:0)-2===t?"croco-styles_drowing__2lN-r":""}`},(0,s.h)("div",{className:"croco-styles_croco_path_item_active__xZ-Yb"}),t>=el-1&&(0,s.h)("div",{className:"croco-styles_croco_path_item_circle__hH-lJ"}))}),(0,s.h)("div",{ref:e2,className:`${eH} ${ew?"croco-styles_bounce__7x57o":""} ${eg?"croco-styles_jump__iGuZV":""} players_${ex.length} ${el===eA.config.currentEvent.levels.length?"croco-styles_finish_pos__rqM6I":`${eN(el)?ej:eM(el)?e$:""}`}`,onAnimationEnd:()=>{var e,t,n;eT([]),eb(!0),eA.config.currentEvent.currentLevel===eA.config.currentEvent.levels.length&&eS(!0),ef(!1),em(!1),ek(eA.config.currentEvent.users.filter(e=>e.r&&!e.l)),eu(null!=(n=null==(t=null==(e=eA.config)?void 0:e.currentEvent)?void 0:t.currentLevel)?n:0),eh(eA.config.currentEvent.users.length-eA.config.currentEvent.users.filter(e=>e.l).length)},style:{bottom:el>0?48*(el-1)+154+"px":"60px","--start-y":el>0?48*(el-1)+154+"px":"60px","--end-y":48*el+154+"px","--start-x":eM(el)?"92px":eN(el)?"calc(100% - 92px)":"50%","--end-x":eA.config.currentEvent.currentLevel===eA.config.currentEvent.levels.length?"calc(50% + 70px)":eM(el+1)?"92px":eN(el+1)?"calc(100% - 92px)":"50%"}},ex.filter(e=>e.r).map((e,t)=>{var n;return(0,s.h)("div",{key:t,className:`${ez} ${e.c} ${(e.l||eC.find(t=>t.c===e.c&&t.n===e.n))&&eg?eG:""} ${eC.length&&eg&&!e.me?"croco-styles_center__tQ0E-":""}`},(0,s.h)("span",null,e.me?null!=(n=r.me)?n:"Me":e.n))})),eC&&!!eC.length&&(0,s.h)("div",{className:`${eH} croco-styles_drawing__lg0T7 ${eg?eF:""} ${eg&&0!==el?"croco-styles_dr_anim__Rawtr":""} ${eg&&0===el?"croco-styles_jump_draw__opwbb":""} players_${ex.length} ${eM(el)?e$:eN(el)?ej:""}`,style:{bottom:el>0?48*(el-1)+154+"px":"60px","--start-y":el>0?48*(el-1)+154+"px":"60px","--end-y":48*el+154+"px","--final-end-y":"90px","--start-x":eM(el)?"92px":eN(el)?"calc(100% - 92px)":"50%","--end-x":eM(el+1)?"92px":eN(el+1)?"calc(100% - 92px)":"50%"}},(0,s.h)("div",{className:`${ez} ${eG}`},(0,s.h)("span",null,"Me")),eC.map((e,t)=>(0,s.h)("div",{key:t,className:`${ez} ${e.c} position_${e.p}`},(0,s.h)("span",null,e.n)))),ew&&1===eA.config.currentEvent.currentLevel&&(0,s.h)("div",{className:"croco-styles_croco_path_splash__qpvLm"}
23,!!eL.length&&eL.map((e,t)=>(0,s.h)(eK,{key:t,start:!0,clName:`position_${e}`,onFinish:()=>eb(!1)}))),eA.config&&eA.config.currentEvent&&(null!=(R=eA.config.currentEvent.currentLevel)?R:0)>1&&(0,s.h)("div",{className:`croco-styles_croco_path_drowing_croco__nNXoV ${ev?eF:""} ${eM((null!=(B=eA.config.currentEvent.currentLevel)?B:0)-1)?e$:eN((null!=(F=eA.config.currentEvent.currentLevel)?F:0)-1)?ej:""} ${eD((null!=($=eA.config.currentEvent.currentLevel)?$:0)-1)?"croco-styles_turned__9vbQA":""}`,style:{bottom:48*((null!=(j=eA.config.currentEvent.currentLevel)?j:0)-1)+74+"px"}},(0,s.h)(eJ,{turned:eD((null!=(H=eA.config.currentEvent.currentLevel)?H:0)-1),start:ev,left:eM((null!=(z=eA.config.currentEvent.currentLevel)?z:0)-1),right:eN((null!=(G=eA.config.currentEvent.currentLevel)?G:0)-1),onDrown:()=>eT([]),onFinish:()=>ey(!1)}))))))},HIW:({translations:e})=>{var t,n,r,i;let[o,l]=(0,a.useState)(!1),c=(0,a.useRef)(null);return(0,a.useEffect)(()=>{let e=()=>{c.current&&l(c.current.offsetWidth<664)};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),(0,s.h)("div",{className:"hiw-styles_croco_hiw__gueSy "+(o?"hiw-styles_small__jtLMV":""),ref:c},(0,s.h)("div",{className:"hiw-styles_croco_hiw_title__ZVnn9",dangerouslySetInnerHTML:{__html:null!=(t=e.tutorialTitle)?t:"How Does It Works?"}}),(0,s.h)("div",{className:"hiw-styles_croco_hiw_content__x71gB"},(0,s.h)("div",{className:eZ},(0,s.h)("img",{src:"/build/images/croco/hiw1.png",srcSet:"/build/images/croco/hiw1.png 1x, /build/images/croco/[email protected] 2x",alt:"Pass levels on the first try to move through the event"}),(0,s.h)("span",{dangerouslySetInnerHTML:{__html:null!=(n=e.tutorialStep1)?n:"Pass levels on the first try to move through the event"}})),(0,s.h)("div",{className:eZ},(0,s.h)("img",{src:"/build/images/croco/hiw2.png",srcSet:"/build/images/croco/hiw2.png 1x, /build/images/croco/[email protected] 2x",alt:"Participate in the event with other players and be the one who gets the reward"}),(0,s.h)("span",{dangerouslySetInnerHTML:{__html:null!=(r=e.tutorialStep2)?r:"Participate in the event with other players and be the one who gets the reward"}})),(0,s.h)("div",{className:eZ},(0,s.h)("img",{src:"/build/images/croco/hiw3.png",srcSet:"/build/images/croco/hiw3.png 1x, /build/images/croco/[email protected] 2x",alt:"Hurry! Every player who reaches the final will receive a reward"}),(0,s.h)("span",{dangerouslySetInnerHTML:{__html:null!=(i=e.tutorialStep3)?i:"Hurry! Every player who reaches the final will receive a reward"}}))))},WinWidget:eQ},crocoLogic:eA},e1=({showPopup:e,clickCallback:t,title:n,popupTitle:r,buttons:i,popupDesc:o,color:l=n6.green,variant:c="default"})=>{let[u,d]=(0,a.useState)(!1),h=(0,a.useRef)(null),p=(0,a.useRef)(null),f=e=>{h.current&&!h.current.contains(e.target)&&p.current&&!p.current.contains(e.target)&&d(!1)};return(0,a.useEffect)(()=>(u?document.addEventListener("mousedown",f):document.removeEventListener("mousedown",f),()=>{document.removeEventListener("mousedown",f)}),[u]),(0,s.h)("div",{className:"button-styles_btn_container__aHjGh"},(0,s.h)("div",{className:"button-styles_btn_popup__mSYBK "+(u?"button-styles_active__QHi4e":""),ref:h}
23,(0,s.h)("div",{className:"button-styles_btn_popup_title__2gJdS"},null!=r?r:"Level in Progress"),(0,s.h)("div",{className:"button-styles_btn_popup_desc__tYvjJ",dangerouslySetInnerHTML:{__html:null!=o?o:"You already started solving this level. <br /> Do you want to restart it?"}}),i&&(0,s.h)("div",{className:"button-styles_btn_popup_buttons__9ES4e"},i.map((e,t)=>(0,s.h)("div",{className:"button-styles_btn_popup_item__IqKIM",key:t,onClick:()=>{d(!1),e.callback()}},e.image&&(0,s.h)("div",{className:"button-styles_btn_popup_item_img__vhJ-D"},(0,s.h)("img",{src:e.image})),(0,s.h)("div",{className:"button-styles_btn_popup_item_text__-TM-9 "+(l===n6.blue?"blue":"green")},e.title))))),(0,s.h)("button",{onClick:()=>{e?d(!u):t()},className:"button-styles_btn__8-cN0 "+("white"===c?"button-styles_white__VlUhi":l===n6.blue?"button-styles_blue__kWvar":"button-styles_green__xGFt5"),ref:p},n))};var e2={},e5={},e4={},e6={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0}}(e6);var e3=/^\s+|\s+$/g,e7=/^[-+]0x[0-9a-f]+$/i,e8=/^0b[01]+$/i,e9=/^0o[0-7]+$/i,te=parseInt,tt="object"==typeof y&&y&&y.Object===Object&&y,tn="object"==typeof self&&self&&self.Object===Object&&self,tr=tt||tn||Function("return this")(),ti=Object.prototype.toString,to=Math.max,ts=Math.min,ta=function(){return tr.Date.now()};function tl(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function tc(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==ti.call(t))return NaN;if(tl(e)){var t,n="function"==typeof e.valueOf?e.valueOf():e;e=tl(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(e3,"");var r=e8.test(e);return r||e9.test(e)?te(e.slice(2),r?2:8):e7.test(e)?NaN:+e}var tu={exports:{}};/*! 24 Copyright (c) 2018 Jed Watson. 25 Licensed under the MIT License (MIT), see 26 http://jedwatson.github.io/classnames 27*/!function(e){var t={}.hasOwnProperty;function n(){for(var e="",i=0;i<arguments.length;i++){var o=arguments[i];o&&(e=r(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var i="";for(var o in e)t.call(e,o)&&e[o]&&(i=r(i,o));return i}(o)))}return e}function r(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):window.classNames=n}(tu);var td=tu.exports,th={},tp={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=a&&a.__esModule?a:{default:a};e.default={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(e){return t.default.createElement("ul",{style:{display:"block"}},e)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(e){return t.default.createElement("button",null,e+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0,asNavFor:null}}(tp),Object.defineProperty(th,"__esModule",{value:!0}),th.checkSpecKeys=th.checkNavigable=th.changeSlide=th.canUseDOM=th.canGoNext=void 0,th.clamp=tb,th.extractObject=void 0,th.filterSettings=function(e){return tq.reduce(function(t,n){return e.hasOwnProperty(n)&&(t[n]=e[n]),t},{})},th.validSettings=th.swipeStart=th.swipeMove=th.swipeEnd=th.slidesOnRight=th.slidesOnLeft=th.slideHandler=th.siblingDirection=th.safePreventDefault=th.lazyStartIndex=th.lazySlidesOnRight=th.lazySlidesOnLeft=th.lazyEndIndex=th.keyHandler=th.initializedState=th.getWidth=th.getTrackLeft=th.getTrackCSS=th.getTrackAnimateCSS=th.getTotalSlides=th.getSwipeDirection=th.get
27SlideCount=th.getRequiredLazySlides=th.getPreClones=th.getPostClones=th.getOnDemandLazySlides=th.getNavigableIndexes=th.getHeight=void 0;var tf=tm(a),tg=tm(tp);function tm(e){return e&&e.__esModule?e:{default:e}}function tv(e){return(tv="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})(e)}function ty(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 tw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ty(Object(n),!0).forEach(function(t){var r,i,o;r=t,i=n[t],o=function(e){if("object"!=tv(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=tv(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r),(r="symbol"==tv(o)?o:String(o))in e?Object.defineProperty(e,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[r]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ty(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function tb(e,t,n){return Math.max(t,Math.min(e,n))}var t_=th.safePreventDefault=function(e){["onTouchStart","onTouchMove","onWheel"].includes(e._reactName)||e.preventDefault()},tS=th.getOnDemandLazySlides=function(e){for(var t=[],n=tx(e),r=tk(e),i=n;i<r;i++)0>e.lazyLoadedList.indexOf(i)&&t.push(i);return t};th.getRequiredLazySlides=function(e){for(var t=[],n=tx(e),r=tk(e),i=n;i<r;i++)t.push(i);return t};var tx=th.lazyStartIndex=function(e){return e.currentSlide-tE(e)},tk=th.lazyEndIndex=function(e){return e.currentSlide+tC(e)},tE=th.lazySlidesOnLeft=function(e){return e.centerMode?Math.floor(e.slidesToShow/2)+ +(parseInt(e.centerPadding)>0):0},tC=th.lazySlidesOnRight=function(e){return e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+ +(parseInt(e.centerPadding)>0):e.slidesToShow},tP=th.getWidth=function(e){return e&&e.offsetWidth||0},tT=th.getHeight=function(e){return e&&e.offsetHeight||0},tL=th.getSwipeDirection=function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t=e.startX-e.curX,(n=Math.round(180*Math.atan2(e.startY-e.curY,t)/Math.PI))<0&&(n=360-Math.abs(n)),n<=45&&n>=0||n<=360&&n>=315?"left":n>=135&&n<=225?"right":!0===r?n>=35&&n<=135?"up":"down":"vertical"},tI=th.canGoNext=function(e){var t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1),t};th.extractObject=function(e,t){var n={};return t.forEach(function(t){return n[t]=e[t]}),n},th.initializedState=function(e){var t,n=tf.default.Children.count(e.children),r=e.listRef,i=Math.ceil(tP(r)),o=Math.ceil(tP(e.trackRef&&e.trackRef.node));if(e.vertical)t=i;else{var s=e.centerMode&&2*parseInt(e.centerPadding);"string"==typeof e.centerPadding&&"%"===e.centerPadding.slice(-1)&&(s*=i/100),t=Math.ceil((i-s)/e.slidesToShow)}var a=r&&tT(r.querySelector('[data-index="0"]')),l=a*e.slidesToShow,c=void 0===e.currentSlide?e.initialSlide:e.currentSlide;e.rtl&&void 0===e.currentSlide&&(c=n-1-e.initialSlide);var u=e.lazyLoadedList||[],d=tS(tw(tw({},e),{},{currentSlide:c,lazyLoadedList:u})),h={slideCount:n,slideWidth:t,listWidth:i,trackWidth:o,currentSlide:c,slideHeight:a,listHeight:l,lazyLoadedList:u=u.concat(d)};return null===e.autoplaying&&e.autoplay&&(h.autoplaying="playing"),h},th.slideHandler=function(e){var t=e.waitForAnimate,n=e.animating,r=e.fade,i=e.infinite,o=e.index,s=e.slideCount,a=e.lazyLoad,l=e.currentSlide,c=e.centerMode,u=e.slidesToScroll,d=e.slidesToShow,h=e.useCSS,p=e.lazyLoadedList;if(t&&n)return{};var f,g,m,v=o,y={},w={},b=i?o:tb(o,0,s-1);if(r){if(!i&&(o<0||o>=s))return{};o<0?v=o+s:o>=s&&(v=o-s),a&&0>p.indexOf(v)&&(p=p.concat(v)),y={animating:!0,currentSlide:v,lazyLoadedList:p,targetSlide:v},w={animating:!1,targetSlide:v}}else f=v,v<0?(f=v+s,i?s%u!=0&&(f=s-s%u):f=0):!tI(e)&&v>l?v=f=l:c&&v>=s?(v=i?s:s-1,f=i?0:s-1):v>=s&&(f=v-s,i?s%u!=0&&(f=0):f=s-d),!i&&v+d>=s&&(f=s-d),g=tB(tw(tw({},e),{},{slideIndex:v})),m=tB(tw(tw({},e),{},{slideIndex:f})),i||(g===m&&(v=f),g=m),a&&(p=p.concat(tS(tw(tw({},e),{},{currentSlide:v})))),h?(y={animating:!0,currentSlide:f,trackStyle:tR(tw(tw({},e),{},{left:g})),lazyLoadedList:p,targetSlide:b},w={animating:!1,currentSlide:f,trackStyle:tD(tw(tw({},e),{},{left:m})),swipeLeft:null,targetSlide:b}):y={currentSlide:f,trackStyle:tD(tw(tw({},e),{},{left:m})),lazyLoadedList:p,targetSlide:b};return{state:y,nextState:w}},th.changeSlide=function(e,t){var n,r,i,o,s=e.slidesToScroll,a=e.slidesToShow,l=e.slideCount,c=e.currentSlide,u=e.targetSlide,d=e.lazyLoad,h=e.infinite;if(n=l%s!=0?0:(l-c)%s,"previous"===t.message)o=c-(i=0===n?s:a-n),d&&!h&&(o=-1==(r=c-i)?l-1:r),h||(o=u-s);else if("next"===t.message)o=c+(i=0===n?s:n),d&&!h&&(o=(c+s)%l+n),h||(o=u+s);
27else if("dots"===t.message)o=t.index*t.slidesToScroll;else if("children"===t.message){if(o=t.index,h){var p=tH(tw(tw({},e),{},{targetSlide:o}));o>t.currentSlide&&"left"===p?o-=l:o<t.currentSlide&&"right"===p&&(o+=l)}}else"index"===t.message&&(o=Number(t.index));return o},th.keyHandler=function(e,t,n){return e.target.tagName.match("TEXTAREA|INPUT|SELECT")||!t?"":37===e.keyCode?n?"next":"previous":39===e.keyCode?n?"previous":"next":""},th.swipeStart=function(e,t,n){return"IMG"===e.target.tagName&&t_(e),t&&(n||-1===e.type.indexOf("mouse"))?{dragging:!0,touchObject:{startX:e.touches?e.touches[0].pageX:e.clientX,startY:e.touches?e.touches[0].pageY:e.clientY,curX:e.touches?e.touches[0].pageX:e.clientX,curY:e.touches?e.touches[0].pageY:e.clientY}}:""},th.swipeMove=function(e,t){var n=t.scrolling,r=t.animating,i=t.vertical,o=t.swipeToSlide,s=t.verticalSwiping,a=t.rtl,l=t.currentSlide,c=t.edgeFriction,u=t.edgeDragged,d=t.onEdge,h=t.swiped,p=t.swiping,f=t.slideCount,g=t.slidesToScroll,m=t.infinite,v=t.touchObject,y=t.swipeEvent,w=t.listHeight,b=t.listWidth;if(!n){if(r)return t_(e);i&&o&&s&&t_(e);var _,S={},x=tB(t);v.curX=e.touches?e.touches[0].pageX:e.clientX,v.curY=e.touches?e.touches[0].pageY:e.clientY,v.swipeLength=Math.round(Math.sqrt(Math.pow(v.curX-v.startX,2)));var k=Math.round(Math.sqrt(Math.pow(v.curY-v.startY,2)));if(!s&&!p&&k>10)return{scrolling:!0};s&&(v.swipeLength=k);var E=(a?-1:1)*(v.curX>v.startX?1:-1);s&&(E=v.curY>v.startY?1:-1);var C=Math.ceil(f/g),P=tL(t.touchObject,s),T=v.swipeLength;return m||(0===l&&("right"===P||"down"===P)||l+1>=C&&("left"===P||"up"===P)||!tI(t)&&("left"===P||"up"===P))&&(T=v.swipeLength*c,!1===u&&d&&(d(P),S.edgeDragged=!0)),!h&&y&&(y(P),S.swiped=!0),_=i?x+w/b*T*E:a?x-T*E:x+T*E,s&&(_=x+T*E),S=tw(tw({},S),{},{touchObject:v,swipeLeft:_,trackStyle:tD(tw(tw({},t),{},{left:_}))}),Math.abs(v.curX-v.startX)<.8*Math.abs(v.curY-v.startY)||v.swipeLength>10&&(S.swiping=!0,t_(e)),S}},th.swipeEnd=function(e,t){var n=t.dragging,r=t.swipe,i=t.touchObject,o=t.listWidth,s=t.touchThreshold,a=t.verticalSwiping,l=t.listHeight,c=t.swipeToSlide,u=t.scrolling,d=t.onSwipe,h=t.targetSlide,p=t.currentSlide,f=t.infinite;if(!n)return r&&t_(e),{};var g=a?l/s:o/s,m=tL(i,a),v={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(u||!i.swipeLength)return v;if(i.swipeLength>g){t_(e),d&&d(m);var y,w,b=f?p:h;switch(m){case"left":case"up":w=b+tM(t),y=c?tA(t,w):w,v.currentDirection=0;break;case"right":case"down":w=b-tM(t),y=c?tA(t,w):w,v.currentDirection=1;break;default:y=b}v.triggerSlideHandler=y}else{var _=tB(t);v.trackStyle=tR(tw(tw({},t),{},{left:_}))}return v};var tO=th.getNavigableIndexes=function(e){for(var t=e.infinite?2*e.slideCount:e.slideCount,n=e.infinite?-1*e.slidesToShow:0,r=e.infinite?-1*e.slidesToShow:0,i=[];n<t;)i.push(n),n=r+e.slidesToScroll,r+=Math.min(e.slidesToScroll,e.slidesToShow);return i},tA=th.checkNavigable=function(e,t){var n=tO(e),r=0;if(t>n[n.length-1])t=n[n.length-1];else for(var i in n){if(t<n[i]){t=r;break}r=n[i]}return t},tM=th.getSlideCount=function(e){var t=e.centerMode?e.slideWidth*Math.floor(e.slidesToShow/2):0;if(e.swipeToSlide){var n,r=e.listRef;if(Array.from(r.querySelectorAll&&r.querySelectorAll(".slick-slide")||[]).every(function(r){if(e.vertical){if(r.offsetTop+tT(r)/2>-1*e.swipeLeft)return n=r,!1}else if(r.offsetLeft-t+tP(r)/2>-1*e.swipeLeft)return n=r,!1;return!0}),!n)return 0;var i=!0===e.rtl?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(n.dataset.index-i)||1}return e.slidesToScroll},tN=th.checkSpecKeys=function(e,t){return t.reduce(function(t,n){return t&&e.hasOwnProperty(n)},!0)?null:console.error("Keys Missing:",e)},tD=th.getTrackCSS=function(e){tN(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var t,n,r=e.slideCount+2*e.slidesToShow;e.vertical?n=r*e.slideHeight:t=tj(e)*e.slideWidth;var i={opacity:1,transition:"",WebkitTransition:""};if(e.useTransform){var o=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",s=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",a=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)";i=tw(tw({},i),{},{WebkitTransform:o,transform:s,msTransform:a})}
27else e.vertical?i.top=e.left:i.left=e.left;return e.fade&&(i={opacity:1}),t&&(i.width=t),n&&(i.height=n),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?i.marginTop=e.left+"px":i.marginLeft=e.left+"px"),i},tR=th.getTrackAnimateCSS=function(e){tN(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var t=tD(e);return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t},tB=th.getTrackLeft=function(e){if(e.unslick)return 0;tN(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var t,n,r=e.slideIndex,i=e.trackRef,o=e.infinite,s=e.centerMode,a=e.slideCount,l=e.slidesToShow,c=e.slidesToScroll,u=e.slideWidth,d=e.listWidth,h=e.variableWidth,p=e.slideHeight,f=e.fade,g=e.vertical;if(f||1===e.slideCount)return 0;var m=0;if(o?(m=-tF(e),a%c!=0&&r+c>a&&(m=-(r>a?l-(r-a):a%c)),s&&(m+=parseInt(l/2))):(a%c!=0&&r+c>a&&(m=l-a%c),s&&(m=parseInt(l/2))),t=g?-(r*p*1)+m*p:-(r*u*1)+m*u,!0===h){var v,y=i&&i.node;if(v=r+tF(e),t=(n=y&&y.childNodes[v])?-1*n.offsetLeft:0,!0===s){v=o?r+tF(e):r,n=y&&y.children[v],t=0;for(var w=0;w<v;w++)t-=y&&y.children[w]&&y.children[w].offsetWidth;t-=parseInt(e.centerPadding),t+=n&&(d-n.offsetWidth)/2}}return t},tF=th.getPreClones=function(e){return e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+ +!!e.centerMode},t$=th.getPostClones=function(e){return e.unslick||!e.infinite?0:e.slideCount},tj=th.getTotalSlides=function(e){return 1===e.slideCount?1:tF(e)+e.slideCount+t$(e)},tH=th.siblingDirection=function(e){return e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+tz(e)?"left":"right":e.targetSlide<e.currentSlide-tG(e)?"right":"left"},tz=th.slidesOnRight=function(e){var t=e.slidesToShow,n=e.centerMode,r=e.rtl,i=e.centerPadding;if(n){var o=(t-1)/2+1;return parseInt(i)>0&&(o+=1),r&&t%2==0&&(o+=1),o}return r?0:t-1},tG=th.slidesOnLeft=function(e){var t=e.slidesToShow,n=e.centerMode,r=e.rtl,i=e.centerPadding;if(n){var o=(t-1)/2+1;return parseInt(i)>0&&(o+=1),r||t%2!=0||(o+=1),o}return r?t-1:0};th.canUseDOM=function(){return!("undefined"==typeof window||!window.document||!window.document.createElement)};var tq=th.validSettings=Object.keys(tg.default),tU={};Object.defineProperty(tU,"__esModule",{value:!0}),tU.Track=void 0;var tW=tY(a),tV=tY(td);function tY(e){return e&&e.__esModule?e:{default:e}}function tX(e){return(tX="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})(e)}function tK(){return(tK=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function tJ(e,t){return(tJ=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function tZ(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tQ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(tQ=function(){return!!e})()}function t0(e){return(t0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function t1(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 t2(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?t1(Object(n),!0).forEach(function(t){t5(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t1(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function t5(e,t,n){return(t=t4(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t4(e){var t=function(e){if("object"!=tX(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=tX(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==tX(t)?t:String(t)}var t6=function(e){var t,n,r,i,o;return r=(o=e.rtl?e.slideCount-1-e.index:e.index)<0||o>=e.slideCount,e.centerMode?(i=Math.floor(e.slidesToShow/2),n=(o-e.currentSlide)%e.slideCount==0,o>e.currentSlide-i-1&&o<=e.currentSlide+i&&(t=!0)):t=e.currentSlide<=o&&o<e.currentSlide+e.slidesToShow,{"slick-slide":!0,"slick-active":t,"slick-center":n,"slick-cloned":r,"slick-current":o===(e.targetSlide<0?e.targetSlide+e.slideCount:e.targetSlide>=e.slideCount?e.targetSlide-e.slideCount:e.targetSlide)}},t3=function(e,t){return e.key||t};tU.Track=function(){var e=tW.default.PureComponent;if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");i.prototype=Object.create(e&&e.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),e&&tJ(i,e);var t,n,r=(t=tQ(),function(){var e,n=t0(i);e=t?Reflect.construct(n,arguments,t0(this).constructor):n.apply(this,arguments);if(e&&("object"===tX(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return tZ(this)});function i(){var e;if(!(this instanceof i))throw TypeError("Cannot call a class as a function");for(var t=arguments.length,n=Array(t),o=0;o<t;o++)n[o]=arguments[o];return t5(tZ(e=r.call.apply(r,[this].concat(n))),"node",null),t5(tZ(e),"handleRef",function(t){e.node=t}),e}return n=[{key:"render",value:function(){var e,t,n,r,i,o,s,a,l=(e=this.props,n=[],r=[],i=[],o=tW.default.Children.count(e.children),s=(0,th.lazyStartIndex)(e),a=(0,th.lazyEndIndex)(e),tW.default.Children.forEac
27h(e.children,function(l,c){var u,d,h,p={message:"children",index:c,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};h=!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(c)>=0?l:tW.default.createElement("div",null);var f=(u=t2(t2({},e),{},{index:c}),d={},void 0!==u.variableWidth&&!1!==u.variableWidth||(d.width=u.slideWidth),u.fade&&(d.position="relative",u.vertical?d.top=-u.index*parseInt(u.slideHeight):d.left=-u.index*parseInt(u.slideWidth),d.opacity=+(u.currentSlide===u.index),d.zIndex=u.currentSlide===u.index?999:998,u.useCSS&&(d.transition="opacity "+u.speed+"ms "+u.cssEase+", visibility "+u.speed+"ms "+u.cssEase)),d),g=h.props.className||"",m=t6(t2(t2({},e),{},{index:c}));if(n.push(tW.default.cloneElement(h,{key:"original"+t3(h,c),"data-index":c,className:(0,tV.default)(m,g),tabIndex:"-1","aria-hidden":!m["slick-active"],style:t2(t2({outline:"none"},h.props.style||{}),f),onClick:function(t){h.props&&h.props.onClick&&h.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(p)}})),e.infinite&&!1===e.fade){var v=o-c;v<=(0,th.getPreClones)(e)&&((t=-v)>=s&&(h=l),m=t6(t2(t2({},e),{},{index:t})),r.push(tW.default.cloneElement(h,{key:"precloned"+t3(h,t),"data-index":t,tabIndex:"-1",className:(0,tV.default)(m,g),"aria-hidden":!m["slick-active"],style:t2(t2({},h.props.style||{}),f),onClick:function(t){h.props&&h.props.onClick&&h.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(p)}}))),(t=o+c)<a&&(h=l),m=t6(t2(t2({},e),{},{index:t})),i.push(tW.default.cloneElement(h,{key:"postcloned"+t3(h,t),"data-index":t,tabIndex:"-1",className:(0,tV.default)(m,g),"aria-hidden":!m["slick-active"],style:t2(t2({},h.props.style||{}),f),onClick:function(t){h.props&&h.props.onClick&&h.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(p)}}))}}),e.rtl?r.concat(n,i).reverse():r.concat(n,i)),c=this.props,u={onMouseEnter:c.onMouseEnter,onMouseOver:c.onMouseOver,onMouseLeave:c.onMouseLeave};return tW.default.createElement("div",tK({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},u),l)}}],function(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,t4(r.key),r)}}(i.prototype,n),Object.defineProperty(i,"prototype",{writable:!1}),i}();var t7={};function t8(e){return(t8="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})(e)}Object.defineProperty(t7,"__esModule",{value:!0}),t7.Dots=void 0;var t9=nt(a),ne=nt(td);function nt(e){return e&&e.__esModule?e:{default:e}}function nn(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 nr(e){var t=function(e){if("object"!=t8(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=t8(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==t8(t)?t:String(t)}function ni(e,t){return(ni=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function no(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(no=function(){return!!e})()}function ns(e){return(ns=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}t7.Dots=function(){var e=t9.default.PureComponent;if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");i.prototype=Object.create(e&&e.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),e&&ni(i,e);var t,n,r=(t=no(),function(){var e,n=ns(i);e=t?Reflect.construct(n,arguments,ns(this).constructor):n.apply(this,arguments);if(e&&("object"===t8(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return this});function i(){return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,i),r.apply(this,arguments)}return n=[{key:"clickHandler",value:function(e,t){t.preventDefault(),this.props.clickHandler(e)}},{key:"render",value:function(){for(var e,t=this.props,n=t.onMouseEnter,r=t.onMouseOver,i=t.onMouseLeave,o=t.infinite,s=t.slidesToScroll,a=t.slidesToShow,l=t.slideCount,c=t.currentSlide,u=(e={slideCount:l,slidesToScroll:s,slidesToShow:a,infinite:o}).infinite?Math.ceil(e.slideCount/e.slidesToScroll):Math.ceil((e.slideCount-e.slidesToShow)/e.slidesToScroll)+1,d=[],h=0;h<u;h++){var p=(h+1)*s-1,f=o?p:(0,th.clamp)(p,0,l-1),g=f-(s-1),m=o?g:(0,th.clamp)(g,0,l-1),v=(0,ne.default)({"slick-active":o?c>=m&&c<=f:c===m}),y={message:"dots",index:h,slidesToScroll:s,currentSlide:c},w=this.clickHandler.bind(this,y);d=d.concat(t9.default.createElement("li",{key:h,className:v},t9.default.cloneElement(this.props.customPaging(h),{onClick:w})))}return t9.default.cloneElement(this.props.appendDots(d),function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
27t%2?nn(Object(n),!0).forEach(function(t){var r,i;r=t,i=n[t],(r=nr(r))in e?Object.defineProperty(e,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[r]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({className:this.props.dotsClass},{onMouseEnter:n,onMouseOver:r,onMouseLeave:i}))}}],function(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,nr(r.key),r)}}(i.prototype,n),Object.defineProperty(i,"prototype",{writable:!1}),i}();var na={};function nl(e){return(nl="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})(e)}Object.defineProperty(na,"__esModule",{value:!0}),na.PrevArrow=na.NextArrow=void 0;var nc=nd(a),nu=nd(td);function nd(e){return e&&e.__esModule?e:{default:e}}function nh(){return(nh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function np(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 nf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?np(Object(n),!0).forEach(function(t){var r,i;r=t,i=n[t],(r=nv(r))in e?Object.defineProperty(e,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[r]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):np(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ng(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function nm(e,t,n){return t&&function(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,nv(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function nv(e){var t=function(e){if("object"!=nl(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=nl(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==nl(t)?t:String(t)}function ny(e,t){if("function"!=typeof t&&null!==t)throw 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&&nw(e,t)}function nw(e,t){return(nw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function nb(e){var t=n_();return function(){var n,r=nS(e);n=t?Reflect.construct(r,arguments,nS(this).constructor):r.apply(this,arguments);if(n&&("object"===nl(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return this}}function n_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(n_=function(){return!!e})()}function nS(e){return(nS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}na.PrevArrow=function(){ny(t,nc.default.PureComponent);var e=nb(t);function t(){return ng(this,t),e.apply(this,arguments)}return nm(t,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-prev":!0},t=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(0===this.props.currentSlide||this.props.slideCount<=this.props.slidesToShow)&&(e["slick-disabled"]=!0,t=null);var n={key:"0","data-role":"none",className:(0,nu.default)(e),style:{display:"block"},onClick:t},r={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.prevArrow?nc.default.cloneElement(this.props.prevArrow,nf(nf({},n),r)):nc.default.createElement("button",nh({key:"0",type:"button"},n)," ","Previous")}}]),t}(),na.NextArrow=function(){ny(t,nc.default.PureComponent);var e=nb(t);function t(){return ng(this,t),e.apply(this,arguments)}return nm(t,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-next":!0},t=this.clickHandler.bind(this,{message:"next"});(0,th.canGoNext)(this.props)||(e["slick-disabled"]=!0,t=null);var n={key:"1","data-role":"none",className:(0,nu.default)(e),style:{display:"block"},onClick:t},r={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.nextArrow?nc.default.cloneElement(this.props.nextArrow,nf(nf({},n),r)):nc.default.createElement("button",nh({key:"1",type:"button"},n)," ","Next")}}]),t}();var nx=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t&&(n=r,!0)}),n}function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];e.call(t,i[1],i[0])}},t}(),nk="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,nE="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),nC="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(nE):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)},nP=["top","right","bottom","left","width","height","size","weight"],nT="undefined"!=typeof MutationObserver,nL=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e){var t=!1,n=!1,r=0;function i(){t&&(t=!1,e()),n&&s()}function o(){nC(i)}function s(){var e=Date.now();if(t){if(e-r<2)return;n=!0}else t=!0,n=!1,setTimeout(o,20);r=e}return s}(this.refresh.bind(this))}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},e.prototype.connect_=function(){nk&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),nT?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){nk&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;nP.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=ne
27w e),this.instance_},e.instance_=null,e}(),nI=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},nO=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||nE},nA=nR(0,0,0,0);function nM(e){return parseFloat(e)||0}function nN(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(t,n){return t+nM(e["border-"+n+"-width"])},0)}var nD="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof nO(e).SVGGraphicsElement}:function(e){return e instanceof nO(e).SVGElement&&"function"==typeof e.getBBox};function nR(e,t,n,r){return{x:e,y:t,width:n,height:r}}var nB=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=nR(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e,t,n=(t=this.target,nk?nD(t)?nR(0,0,(e=t.getBBox()).width,e.height):function(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return nA;var r=nO(e).getComputedStyle(e),i=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],o=e["padding-"+i];t[i]=nM(o)}return t}(r),o=i.left+i.right,s=i.top+i.bottom,a=nM(r.width),l=nM(r.height);if("border-box"===r.boxSizing&&(Math.round(a+o)!==t&&(a-=nN(r,"left","right")+o),Math.round(l+s)!==n&&(l-=nN(r,"top","bottom")+s)),e!==nO(e).document.documentElement){var c=Math.round(a+o)-t,u=Math.round(l+s)-n;1!==Math.abs(c)&&(a-=c),1!==Math.abs(u)&&(l-=u)}return nR(i.left,i.top,a,l)}(t):nA);return this.contentRect_=n,n.width!==this.broadcastWidth||n.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),nF=function(e,t){var n,r,i,o,s,a=(n=t.x,r=t.y,i=t.width,o=t.height,nI(s=Object.create(("undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object).prototype),{x:n,y:r,width:i,height:o,top:r,right:n+i,bottom:o+r,left:n}),s);nI(this,{target:e,contentRect:a})},n$=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new nx,"function"!=typeof e)throw TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof nO(e).Element))throw TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new nB(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof nO(e).Element))throw TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new nF(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),nj="undefined"!=typeof WeakMap?new WeakMap:new nx,nH=function e(t){if(!(this instanceof e))throw TypeError("Cannot call a class as a function.");if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");var n=new n$(t,nL.getInstance(),this);nj.set(this,n)};["observe","unobserve","disconnect"].forEach(function(e){nH.prototype[e]=function(){var t;return(t=nj.get(this))[e].apply(t,arguments)}});var nz=function(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}(Object.freeze({__proto__:null,default:void 0!==nE.ResizeObserver?nE.ResizeObserver:nH}));
27Object.defineProperty(e4,"__esModule",{value:!0}),e4.InnerSlider=void 0;var nG=nY(a),nq=nY(e6),nU=nY(function(e,t,n){var r,i,o,s,a,l,c=0,u=!1,d=!1,h=!0;if("function"!=typeof e)throw TypeError("Expected a function");function p(t){var n=r,o=i;return r=i=void 0,c=t,s=e.apply(o,n)}function f(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=o}function g(){var e,n=ta();if(f(n))return m(n);a=setTimeout(g,(e=t-(n-l),d?ts(e,o-(n-c)):e))}function m(e){return a=void 0,h&&r?p(e):(r=i=void 0,s)}function v(){var e,n=ta(),o=f(n);if(r=arguments,i=this,l=n,o){if(void 0===a)return c=e=l,a=setTimeout(g,t),u?p(e):s;if(d)return a=setTimeout(g,t),p(l)}return void 0===a&&(a=setTimeout(g,t)),s}return t=tc(t)||0,tl(n)&&(u=!!n.leading,o=(d="maxWait"in n)?to(tc(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h),v.cancel=function(){void 0!==a&&clearTimeout(a),c=0,r=l=i=a=void 0},v.flush=function(){return void 0===a?s:m(ta())},v}),nW=nY(td),nV=nY(nz);function nY(e){return e&&e.__esModule?e:{default:e}}function nX(e){return(nX="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})(e)}function nK(){return(nK=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function nJ(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 nZ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nJ(Object(n),!0).forEach(function(t){n5(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nJ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nQ(e,t){return(nQ=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function n0(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function n1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(n1=function(){return!!e})()}function n2(e){return(n2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function n5(e,t,n){return(t=n4(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function n4(e){var t=function(e){if("object"!=nX(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=nX(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==nX(t)?t:String(t)}e4.InnerSlider=function(){var e=nG.default.Component;if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");i.prototype=Object.create(e&&e.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),e&&nQ(i,e);var t,n,r=(t=n1(),function(){var e,n=n2(i);e=t?Reflect.construct(n,arguments,n2(this).constructor):n.apply(this,arguments);if(e&&("object"===nX(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return n0(this)});function i(e){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,i),n5(n0(t=r.call(this,e)),"listRefHandler",function(e){return t.list=e}),n5(n0(t),"trackRefHandler",function(e){return t.track=e}),n5(n0(t),"adaptHeight",function(){if(t.props.adaptiveHeight&&t.list){var e=t.list.querySelector('[data-index="'.concat(t.state.currentSlide,'"]'));t.list.style.height=(0,th.getHeight)(e)+"px"}}),n5(n0(t),"componentDidMount",function(){if(t.props.onInit&&t.props.onInit(),t.props.lazyLoad){var e=(0,th.getOnDemandLazySlides)(nZ(nZ({},t.props),t.state));e.length>0&&(t.setState(function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}}),t.props.onLazyLoad&&t.props.onLazyLoad(e))}var n=nZ({listRef:t.list,trackRef:t.track},t.props);t.updateState(n,!0,function(){t.adaptHeight(),t.props.autoplay&&t.autoPlay("update")}),"progressive"===t.props.lazyLoad&&(t.lazyLoadTimer=setInterval(t.progressiveLazyLoad,1e3)),t.ro=new nV.default(function(){t.state.animating?(t.onWindowResized(!1),t.callbackTimers.push(setTimeout(function(){return t.onWindowResized()},t.props.speed))):t.onWindowResized()}),t.ro.observe(t.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),function(e){e.onfocus=t.props.pauseOnFocus?t.onSlideFocus:null,e.onblur=t.props.pauseOnFocus?t.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",t.onWindowResized):window.attachEvent("onresize",t.onWindowResized)}),n5(n0(t),"componentWillUnmount",function(){t.animationEndCallback&&clearTimeout(t.animationEndCallback),t.lazyLoadTimer&&clearInterval(t.lazyLoadTimer),t.callbackTimers.length&&(t.callbackTimers.forEac
27h(function(e){return clearTimeout(e)}),t.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",t.onWindowResized):window.detachEvent("onresize",t.onWindowResized),t.autoplayTimer&&clearInterval(t.autoplayTimer),t.ro.disconnect()}),n5(n0(t),"componentDidUpdate",function(e){if(t.checkImagesLoad(),t.props.onReInit&&t.props.onReInit(),t.props.lazyLoad){var n=(0,th.getOnDemandLazySlides)(nZ(nZ({},t.props),t.state));n.length>0&&(t.setState(function(e){return{lazyLoadedList:e.lazyLoadedList.concat(n)}}),t.props.onLazyLoad&&t.props.onLazyLoad(n))}t.adaptHeight();var r=nZ(nZ({listRef:t.list,trackRef:t.track},t.props),t.state),i=t.didPropsChange(e);i&&t.updateState(r,i,function(){t.state.currentSlide>=nG.default.Children.count(t.props.children)&&t.changeSlide({message:"index",index:nG.default.Children.count(t.props.children)-t.props.slidesToShow,currentSlide:t.state.currentSlide}),t.props.autoplay?t.autoPlay("update"):t.pause("paused")})}),n5(n0(t),"onWindowResized",function(e){t.debouncedResize&&t.debouncedResize.cancel(),t.debouncedResize=(0,nU.default)(function(){return t.resizeWindow(e)},50),t.debouncedResize()}),n5(n0(t),"resizeWindow",function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(t.track&&t.track.node){var n=nZ(nZ({listRef:t.list,trackRef:t.track},t.props),t.state);t.updateState(n,e,function(){t.props.autoplay?t.autoPlay("update"):t.pause("paused")}),t.setState({animating:!1}),clearTimeout(t.animationEndCallback),delete t.animationEndCallback}}),n5(n0(t),"updateState",function(e,n,r){var i=(0,th.initializedState)(e);e=nZ(nZ(nZ({},e),i),{},{slideIndex:i.currentSlide});var o=(0,th.getTrackLeft)(e);e=nZ(nZ({},e),{},{left:o});var s=(0,th.getTrackCSS)(e);(n||nG.default.Children.count(t.props.children)!==nG.default.Children.count(e.children))&&(i.trackStyle=s),t.setState(i,r)}),n5(n0(t),"ssrInit",function(){if(t.props.variableWidth){var e=0,n=0,r=[],i=(0,th.getPreClones)(nZ(nZ(nZ({},t.props),t.state),{},{slideCount:t.props.children.length})),o=(0,th.getPostClones)(nZ(nZ(nZ({},t.props),t.state),{},{slideCount:t.props.children.length}));t.props.children.forEach(function(t){r.push(t.props.style.width),e+=t.props.style.width});for(var s=0;s<i;s++)n+=r[r.length-1-s],e+=r[r.length-1-s];for(var a=0;a<o;a++)e+=r[a];for(var l=0;l<t.state.currentSlide;l++)n+=r[l];var c={width:e+"px",left:-n+"px"};if(t.props.centerMode){var u="".concat(r[t.state.currentSlide],"px");c.left="calc(".concat(c.left," + (100% - ").concat(u,") / 2 ) ")}return{trackStyle:c}}var d=nG.default.Children.count(t.props.children),h=nZ(nZ(nZ({},t.props),t.state),{},{slideCount:d}),p=(0,th.getPreClones)(h)+(0,th.getPostClones)(h)+d,f=100/t.props.slidesToShow*p,g=100/p,m=-g*((0,th.getPreClones)(h)+t.state.currentSlide)*f/100;return t.props.centerMode&&(m+=(100-g*f/100)/2),{slideWidth:g+"%",trackStyle:{width:f+"%",left:m+"%"}}}),n5(n0(t),"checkImagesLoad",function(){var e=t.list&&t.list.querySelectorAll&&t.list.querySelectorAll(".slick-slide img")||[],n=e.length,r=0;Array.prototype.forEach.call(e,function(e){var i=function(){return++r&&r>=n&&t.onWindowResized()};if(e.onclick){var o=e.onclick;e.onclick=function(t){o(t),e.parentNode.focus()}}else e.onclick=function(){return e.parentNode.focus()};e.onload||(t.props.lazyLoad?e.onload=function(){t.adaptHeight(),t.callbackTimers.push(setTimeout(t.onWindowResized,t.props.speed))}:(e.onload=i,e.onerror=function(){i(),t.props.onLazyLoadError&&t.props.onLazyLoadError()}))})}),n5(n0(t),"progressiveLazyLoad",function(){for(var e=[],n=nZ(nZ({},t.props),t.state),r=t.state.currentSlide;r<t.state.slideCount+(0,th.getPostClones)(n);r++)if(0>t.state.lazyLoadedList.indexOf(r)){e.push(r);break}for(var i=t.state.currentSlide-1;i>=-(0,th.getPreClones)(n);i--)if(0>t.state.lazyLoadedList.indexOf(i)){e.push(i);break}e.length>0?(t.setState(function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}}),t.props.onLazyLoad&&t.props.onLazyLoad(e)):t.lazyLoadTimer&&(clearInterval(t.lazyLoadTimer),delete t.lazyLoadTimer)}),n5(n0(t),"slideHandler",function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=t.props,i=r.asNavFor,o=r.beforeChange,s=r.onLazyLoad,a=r.speed,l=r.afterChange,c=t.state.currentSlide,u=(0,th.slideHandler)(nZ(nZ(nZ({index:e},t.props),t.state),{},{trackRef:t.track,useCSS:t.props.useCSS&&!n})),d=u.state,h=u.nextState;if(d){o&&o(c,d.currentSlide);var p=d.lazyLoadedList.filter(function(e){return 0>t.state.lazyLoadedList.indexOf(e)});s&&p.length>0&&s(p),!t.props.waitForAnimate&&t.animationEndCallback&&(clearTimeout(t.animationEndCallback),l&&l(c),delete t.animationEndCallback),t.setState(d,function(){i&&t.asNavForIndex!==e&&(t.asNavForIndex=e,i.innerSlider.slideHandler(e)),h&&(t.animationEndCallback=setTimeout(function(){var e=h.animating,
27n=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(h,["animating"]);t.setState(n,function(){t.callbackTimers.push(setTimeout(function(){return t.setState({animating:e})},10)),l&&l(d.currentSlide),delete t.animationEndCallback})},a))})}}),n5(n0(t),"changeSlide",function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=nZ(nZ({},t.props),t.state),i=(0,th.changeSlide)(r,e);if((0===i||i)&&(!0===n?t.slideHandler(i,n):t.slideHandler(i),t.props.autoplay&&t.autoPlay("update"),t.props.focusOnSelect)){var o=t.list.querySelectorAll(".slick-current");o[0]&&o[0].focus()}}),n5(n0(t),"clickHandler",function(e){!1===t.clickable&&(e.stopPropagation(),e.preventDefault()),t.clickable=!0}),n5(n0(t),"keyHandler",function(e){var n=(0,th.keyHandler)(e,t.props.accessibility,t.props.rtl);""!==n&&t.changeSlide({message:n})}),n5(n0(t),"selectHandler",function(e){t.changeSlide(e)}),n5(n0(t),"disableBodyScroll",function(){window.ontouchmove=function(e){(e=e||window.event).preventDefault&&e.preventDefault(),e.returnValue=!1}}),n5(n0(t),"enableBodyScroll",function(){window.ontouchmove=null}),n5(n0(t),"swipeStart",function(e){t.props.verticalSwiping&&t.disableBodyScroll();var n=(0,th.swipeStart)(e,t.props.swipe,t.props.draggable);""!==n&&t.setState(n)}),n5(n0(t),"swipeMove",function(e){var n=(0,th.swipeMove)(e,nZ(nZ(nZ({},t.props),t.state),{},{trackRef:t.track,listRef:t.list,slideIndex:t.state.currentSlide}));n&&(n.swiping&&(t.clickable=!1),t.setState(n))}),n5(n0(t),"swipeEnd",function(e){var n=(0,th.swipeEnd)(e,nZ(nZ(nZ({},t.props),t.state),{},{trackRef:t.track,listRef:t.list,slideIndex:t.state.currentSlide}));if(n){var r=n.triggerSlideHandler;delete n.triggerSlideHandler,t.setState(n),void 0!==r&&(t.slideHandler(r),t.props.verticalSwiping&&t.enableBodyScroll())}}),n5(n0(t),"touchEnd",function(e){t.swipeEnd(e),t.clickable=!0}),n5(n0(t),"slickPrev",function(){t.callbackTimers.push(setTimeout(function(){return t.changeSlide({message:"previous"})},0))}),n5(n0(t),"slickNext",function(){t.callbackTimers.push(setTimeout(function(){return t.changeSlide({message:"next"})},0))}),n5(n0(t),"slickGoTo",function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(isNaN(e=Number(e)))return"";t.callbackTimers.push(setTimeout(function(){return t.changeSlide({message:"index",index:e,currentSlide:t.state.currentSlide},n)},0))}),n5(n0(t),"play",function(){var e;if(t.props.rtl)e=t.state.currentSlide-t.props.slidesToScroll;else{if(!(0,th.canGoNext)(nZ(nZ({},t.props),t.state)))return!1;e=t.state.currentSlide+t.props.slidesToScroll}t.slideHandler(e)}),n5(n0(t),"autoPlay",function(e){t.autoplayTimer&&clearInterval(t.autoplayTimer);var n=t.state.autoplaying;if("update"===e){if("hovered"===n||"focused"===n||"paused"===n)return}else if("leave"===e){if("paused"===n||"focused"===n)return}else if("blur"===e&&("paused"===n||"hovered"===n))return;t.autoplayTimer=setInterval(t.play,t.props.autoplaySpeed+50),t.setState({autoplaying:"playing"})}),n5(n0(t),"pause",function(e){t.autoplayTimer&&(clearInterval(t.autoplayTimer),t.autoplayTimer=null);var n=t.state.autoplaying;"paused"===e?t.setState({autoplaying:"paused"}):"focused"===e?"hovered"!==n&&"playing"!==n||t.setState({autoplaying:"focused"}):"playing"===n&&t.setState({autoplaying:"hovered"})}),n5(n0(t),"onDotsOver",function(){return t.props.autoplay&&t.pause("hovered")}),n5(n0(t),"onDotsLeave",function(){return t.props.autoplay&&"hovered"===t.state.autoplaying&&t.autoPlay("leave")}),n5(n0(t),"onTrackOver",function(){return t.props.autoplay&&t.pause("hovered")}),n5(n0(t),"onTrackLeave",function(){return t.props.autoplay&&"hovered"===t.state.autoplaying&&t.autoPlay("leave")}),n5(n0(t),"onSlideFocus",function(){return t.props.autoplay&&t.pause("focused")}),n5(n0(t),"onSlideBlur",function(){return t.props.autoplay&&"focu
27sed"===t.state.autoplaying&&t.autoPlay("blur")}),n5(n0(t),"render",function(){var e,n,r,i=(0,nW.default)("slick-slider",t.props.className,{"slick-vertical":t.props.vertical,"slick-initialized":!0}),o=nZ(nZ({},t.props),t.state),s=(0,th.extractObject)(o,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),a=t.props.pauseOnHover;if(s=nZ(nZ({},s),{},{onMouseEnter:a?t.onTrackOver:null,onMouseLeave:a?t.onTrackLeave:null,onMouseOver:a?t.onTrackOver:null,focusOnSelect:t.props.focusOnSelect&&t.clickable?t.selectHandler:null}),!0===t.props.dots&&t.state.slideCount>=t.props.slidesToShow){var l=(0,th.extractObject)(o,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),c=t.props.pauseOnDotsHover;l=nZ(nZ({},l),{},{clickHandler:t.changeSlide,onMouseEnter:c?t.onDotsLeave:null,onMouseOver:c?t.onDotsOver:null,onMouseLeave:c?t.onDotsLeave:null}),e=nG.default.createElement(t7.Dots,l)}var u=(0,th.extractObject)(o,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);u.clickHandler=t.changeSlide,t.props.arrows&&(n=nG.default.createElement(na.PrevArrow,u),r=nG.default.createElement(na.NextArrow,u));var d=null;t.props.vertical&&(d={height:t.state.listHeight});var h=null;!1===t.props.vertical?!0===t.props.centerMode&&(h={padding:"0px "+t.props.centerPadding}):!0===t.props.centerMode&&(h={padding:t.props.centerPadding+" 0px"});var p=nZ(nZ({},d),h),f=t.props.touchMove,g={className:"slick-list",style:p,onClick:t.clickHandler,onMouseDown:f?t.swipeStart:null,onMouseMove:t.state.dragging&&f?t.swipeMove:null,onMouseUp:f?t.swipeEnd:null,onMouseLeave:t.state.dragging&&f?t.swipeEnd:null,onTouchStart:f?t.swipeStart:null,onTouchMove:t.state.dragging&&f?t.swipeMove:null,onTouchEnd:f?t.touchEnd:null,onTouchCancel:t.state.dragging&&f?t.swipeEnd:null,onKeyDown:t.props.accessibility?t.keyHandler:null},m={className:i,dir:"ltr",style:t.props.style};return t.props.unslick&&(g={className:"slick-list"},m={className:i}),nG.default.createElement("div",m,t.props.unslick?"":n,nG.default.createElement("div",nK({ref:t.listRefHandler},g),nG.default.createElement(tU.Track,nK({ref:t.trackRefHandler},s),t.props.children)),t.props.unslick?"":r,t.props.unslick?"":e)}),t.list=null,t.track=null,t.state=nZ(nZ({},nq.default),{},{currentSlide:t.props.initialSlide,targetSlide:t.props.initialSlide?t.props.initialSlide:0,slideCount:nG.default.Children.count(t.props.children)}),t.callbackTimers=[],t.clickable=!0,t.debouncedResize=null;var t,n=t.ssrInit();return t.state=nZ(nZ({},t.state),n),t}return n=[{key:"didPropsChange",value:function(e){for(var t=!1,n=0,r=Object.keys(this.props);n<r.length;n++){var i=r[n];if(!e.hasOwnProperty(i)||"object"!==nX(e[i])&&"function"!=typeof e[i]&&!isNaN(e[i])&&e[i]!==this.props[i]){t=!0;break}}return t||nG.default.Children.count(this.props.children)!==nG.default.Children.count(e.children)}}],function(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,n4(r.key),r)}}(i.prototype,n),Object.defineProperty(i,"prototype",{writable:!1}),i}();var n6,n3,n7,n8,n9,re,rt,rn,rr,ri,ro,rs,ra,rl,rc,ru,rd,rh,rp,rf,rg,rm=function(e){var t="",n=Object.keys(e);return n.forEach(function(r,i){var o,s=e[r];o=r=r.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()}).toLowerCase(),/[height|width]$/.test(o)&&"number"==typeof s&&(s+="px"),t+=!0===s?r:!1===s?"not "+r:"("+r+": "+s+")",i<n.length-1&&(t+=" and ")}),t},rv=function(e){var t="";return"string"==typeof e?e:e instanceof Array?(e.forEach(function(n,r){t+=rm(n),r<e.length-1&&(t+=", ")}),t):rm(e)};function ry(){return rc?rl:(rc=1,rl={isFunction:function(e){return"function"==typeof e},isArray:function(e){return"[object Array]"===Object.prototype.toString.apply(e)},each:function(e,t){for(var n=0,r=e.length;
27n<r&&!1!==t(e[n],n);n++);}})}!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=i(a),n=i(rv),r=i(tp);function i(e){return e&&e.__esModule?e:{default:e}}function o(e){return(o="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})(e)}function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function l(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 c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach(function(t){f(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function u(e,t){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function d(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(h=function(){return!!e})()}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t,n){return(t=g(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e){var t=function(e){if("object"!=o(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=o(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==o(t)?t:String(t)}var m=(0,th.canUseDOM)()&&(rg?rf:(rg=1,rf=new(function(){if(rp)return rh;rp=1;var e=function(){if(rd)return ru;rd=1;var e=function(){if(ra)return rs;function e(e){this.options=e,e.deferSetup||this.setup()}return ra=1,e.prototype={constructor:e,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){this.initialised||this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(e){return this.options===e||this.options.match===e}},rs=e}(),t=ry().each;function n(e,t){this.query=e,this.isUnconditional=t,this.handlers=[],this.mql=window.matchMedia(e);var n=this;this.listener=function(e){n.mql=e.currentTarget||e,n.assess()},this.mql.addListener(this.listener)}return n.prototype={constuctor:n,addHandler:function(t){var n=new e(t);this.handlers.push(n),this.matches()&&n.on()},removeHandler:function(e){var n=this.handlers;t(n,function(t,r){if(t.equals(e))return t.destroy(),!n.splice(r,1)})},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){t(this.handlers,function(e){e.destroy()}),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var e=this.matches()?"on":"off";t(this.handlers,function(t){t[e]()})}},ru=n}(),t=ry(),n=t.each,r=t.isFunction,i=t.isArray;
27function o(){if(!window.matchMedia)throw Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}return o.prototype={constructor:o,register:function(t,o,s){var a=this.queries,l=s&&this.browserIsIncapable;return a[t]||(a[t]=new e(t,l)),r(o)&&(o={match:o}),i(o)||(o=[o]),n(o,function(e){r(e)&&(e={match:e}),a[t].addHandler(e)}),this},unregister:function(e,t){var n=this.queries[e];return n&&(t?n.removeHandler(t):(n.clear(),delete this.queries[e])),this}},rh=o}())));e.default=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");v.prototype=Object.create(e&&e.prototype,{constructor:{value:v,writable:!0,configurable:!0}}),Object.defineProperty(v,"prototype",{writable:!1}),e&&u(v,e);var i,a,l=(i=h(),function(){var e,t=p(v);e=i?Reflect.construct(t,arguments,p(this).constructor):t.apply(this,arguments);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return d(this)});function v(e){var t;return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,v),f(d(t=l.call(this,e)),"innerSliderRefHandler",function(e){return t.innerSlider=e}),f(d(t),"slickPrev",function(){return t.innerSlider.slickPrev()}),f(d(t),"slickNext",function(){return t.innerSlider.slickNext()}),f(d(t),"slickGoTo",function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t.innerSlider.slickGoTo(e,n)}),f(d(t),"slickPause",function(){return t.innerSlider.pause("paused")}),f(d(t),"slickPlay",function(){return t.innerSlider.autoPlay("play")}),t.state={breakpoint:null},t._responsiveMediaHandlers=[],t}return a=[{key:"media",value:function(e,t){m.register(e,t),this._responsiveMediaHandlers.push({query:e,handler:t})}},{key:"componentDidMount",value:function(){var e=this;if(this.props.responsive){var t=this.props.responsive.map(function(e){return e.breakpoint});t.sort(function(e,t){return e-t}),t.forEach(function(r,i){var o;o=0===i?(0,n.default)({minWidth:0,maxWidth:r}):(0,n.default)({minWidth:t[i-1]+1,maxWidth:r}),(0,th.canUseDOM)()&&e.media(o,function(){e.setState({breakpoint:r})})});var r=(0,n.default)({minWidth:t.slice(-1)[0]});(0,th.canUseDOM)()&&this.media(r,function(){e.setState({breakpoint:null})})}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach(function(e){m.unregister(e.query,e.handler)})}},{key:"render",value:function(){var e,n,i=this;(e=this.state.breakpoint?"unslick"===(n=this.props.responsive.filter(function(e){return e.breakpoint===i.state.breakpoint}))[0].settings?"unslick":c(c(c({},r.default),this.props),n[0].settings):c(c({},r.default),this.props)).centerMode&&(e.slidesToScroll,e.slidesToScroll=1),e.fade&&(e.slidesToShow,e.slidesToScroll,e.slidesToShow=1,e.slidesToScroll=1);var o=t.default.Children.toArray(this.props.children);o=o.filter(function(e){return"string"==typeof e?!!e.trim():!!e}),e.variableWidth&&(e.rows>1||e.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),e.variableWidth=!1);for(var a=[],l=null,u=0;u<o.length;u+=e.rows*e.slidesPerRow){for(var d=[],h=u;h<u+e.rows*e.slidesPerRow;h+=e.slidesPerRow){for(var p=[],f=h;f<h+e.slidesPerRow&&(e.variableWidth&&o[f].props.style&&(l=o[f].props.style.width),!(f>=o.length));f+=1)p.push(t.default.cloneElement(o[f],{key:100*u+10*h+f,tabIndex:-1,style:{width:"".concat(100/e.slidesPerRow,"%"),display:"inline-block"}}));d.push(t.default.createElement("div",{key:10*u+h},p))}e.variableWidth?a.push(t.default.createElement("div",{key:u,style:{width:l}},d)):a.push(t.default.createElement("div",{key:u},d))}if("unslick"===e){var g="regular slider "+(this.props.className||"");return t.default.createElement("div",{className:g},o)}return a.length<=e.slidesToShow&&!e.infinite&&(e.unslick=!0),t.default.createElement(e4.InnerSlider,s({style:this.props.style,ref:this.innerSliderRefHandler},(0,th.filterSettings)(e)),a)}}],function(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,g(r.key),r)}}(v.prototype,a),Object.defineProperty(v,"prototype",{writable:!1}),v}(t.default.Component)}
27(e5),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=(e5&&e5.__esModule?e5:{default:e5}).default}(e2);var rw=w(e2),rb="cheats-styles_btn__MFyIg";let r_=({buttons:e})=>{let[t,n]=(0,a.useState)(!1),r=()=>{n(!t)};return(0,s.h)(s.Fragment,null,(0,s.h)("button",{className:"cheats-styles_cheats_btn__ktkDR",onClick:r},(0,s.h)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"#000000",width:"800px",height:"800px",viewBox:"0 0 1000 1000",version:"1.1",enableBackground:"new 0 0 1000 1000"},(0,s.h)("g",null,(0,s.h)("g",{transform:"translate(0.000000,511.000000) scale(0.100000,-0.100000)"},(0,s.h)("path",{d:"M4792.1,4923c-719.6-112.7-1289-620.8-1478.8-1322.6c-59.3-225.4-59.3-587.2,2-816.5c91-336.1,249.1-603,496.3-840.2c83-79.1,207.6-177.9,274.8-219.5l122.6-77.1V682.2v-966.8h-974.7c-549.6,0-1043.9-7.9-1136.8-19.8C1767.2-345.9,1379.7-494.1,1101-682c-158.2-108.7-427-365.8-551.6-531.8c-128.5-170-302.5-520-363.8-737.4C3.7-2593.7,114.4-3265.9,492-3811.6c209.6-304.5,571.4-601,903.5-743.4c330.2-138.4,782.9-187.8,1123-120.6c431,85,818.5,296.6,1123,612.9l136.4,140.4h1221.8h1221.8l136.4-140.4c547.6-567.4,1348.3-782.9,2070-559.5c533.8,168.1,980.6,557.5,1243.6,1085.4c415.2,832.3,255,1836.7-401.3,2528.6C8951.8-672.1,8590-462.5,8123.4-341.9c-162.1,43.5-211.5,45.5-1249.5,51.4l-1083.4,7.9V-1.8v280.7l-227.4,148.3c-124.6,81.1-227.4,152.2-227.4,158.2s102.8,79.1,227.4,164.1l227.4,154.2v371.7V1647l122.6,77.1c357.8,219.5,656.4,626.7,771,1053.8c59.3,219.5,61.3,605,2,822.5c-172,630.7-648.5,1111.1-1271.2,1277.2C5270.5,4917,4916.6,4940.8,4792.1,4923z M5424.7,4559.2c245.2-77.1,399.4-172,583.2-355.9c185.8-185.8,280.7-340.1,359.8-593.1c39.5-126.5,45.5-187.8,43.5-425.1c0-245.1-5.9-294.6-53.4-434.9c-122.6-373.7-371.7-654.4-739.4-836.3l-144.3-71.2v-389.5v-387.5l-237.2-156.2l-237.3-156.2l4-168l5.9-168.1l233.3-156.2l231.3-158.2v-229.3v-231.3l-237.2-156.2l-237.3-156.2v-168.1v-168l174-112.7l172-114.7h-409.3h-411.2V304.6v1536.2l-164.1,83c-525.9,270.8-806.6,749.3-779,1340.4c17.8,391.5,138.4,670.2,409.3,939.1c213.5,215.5,429,330.2,733.5,395.4C4877.1,4630.4,5268.6,4608.6,5424.7,4559.2z M4208.9-917.2v-316.3h-316.3h-316.3v-158.2v-158.2h1423.5h1423.5v158.2v158.2h-316.3c-314.3,0-316.3,0-316.3,45.5c0,33.6-49.4,75.1-227.4,191.8c-124.6,81.1-227.4,152.2-227.4,158.2s79.1,61.3,176,124.6l175.9,114.7l1142.7-5.9c1101.2-7.9,1150.6-9.9,1297-49.4C8851-857.9,9353.1-1366,9531.1-2077.7c65.2-255,63.3-753.2,0-994.4c-205.6-767.1-832.3-1281.1-1605.4-1318.7c-585.2-27.7-1101.2,209.6-1457.1,672.2l-87,112.7h-1380h-1380l-120.6-148.3c-257-310.4-608.9-527.9-984.6-607c-379.6-77.1-828.4-17.8-1154.6,154.2c-401.3,211.5-701.9,567.4-846.2,998.4c-77.1,235.3-102.8,391.5-102.8,642.5c0,850.1,488.3,1563.8,1265.3,1848.5c296.6,106.8,369.7,112.7,1498.6,114.7l1032,2V-917.2z"}),(0,s.h)("path",{d:"M4833.6,4428.7c-146.3-45.5-314.4-223.4-357.9-373.7c-55.4-187.8-7.9-369.7,134.4-520c264.9-278.8,694-209.6,879.8,144.3C5701.5,4082.7,5274.5,4569.1,4833.6,4428.7z M5169.7,4076.8c59.3-59.3,67.2-79.1,67.2-170s-7.9-110.7-67.2-170c-59.3-59.3-79.1-67.2-170-67.2c-90.9,0-110.7,7.9-170,67.2s-67.2,79.1-67.2,170s7.9,110.7,67.2,170s79.1,67.2,170,67.2C5090.6,4144,5110.4,4136.1,5169.7,4076.8z"}),(0,s.h)("path",{d:"M1678.3-1520.2V-1965l237.2-118.6l237.2-118.6l237.2,118.6l237.2,118.6v444.8v444.8h-474.5h-474.5V-1520.2z M2310.9-1579.5v-187.8l-79.1-39.5l-79.1-39.5l-79.1,39.5l-79.1,39.5v187.8v187.8h158.2h158.2V-1579.5z"}),(0,s.h)("path",{d:"M7708.2-1101.1c-98.8-31.6-282.7-221.4-312.4-322.3c-13.8-45.5-23.7-102.8-23.7-126.5c0-217.5,257-474.5,474.5-474.5c217.5,0,474.5,257,474.5,474.5c0,108.7-51.4,209.6-158.2,316.3C8016.6-1085.3,7882.2-1045.7,7708.2-1101.1z M7965.2-1431.2c25.7-25.7,39.5-65.2,39.5-118.6c0-104.8-53.4-158.2-158.2-158.2c-104.8,0-158.2,53.4-158.2,158.2c0,53.4,13.8,92.9,39.5,118.6c25.7,25.7,65.2,39.5,118.6,39.5C7900-1391.7,7939.5-1405.5,7965.2-1431.2z"}),(0,s.h)("path",{d:"M729.3-2498.8v-474.5h444.8h444.8l118.6,237.2l118.6,237.2l-118.6,237.2l-118.6,237.2h-444.8H729.3V-2498.8z M1460.8-2419.8l39.5-79.1l-39.5-79.1l-39.5-79.1h-187.8h-187.8v158.2v158.2h187.8h187.8L1460.8-2419.8z"}),(0,s.h)("path",{d:"M2567.9-2261.6l-118.6-237.2l118.6-237.2l118.6-237.2h444.8h444.8v474.5v474.5h-444.8h-444.8L2567.9-2261.6z M3259.9-2498.8V-2657h-187.8h-187.8l-39.5,79.1l-39.5,79.1l39.5,79.1l39.5,79.1h187.8h187.8V-2498.8z"}),(0,s.h)("path",{d:"M6759.2-2050c-98.8-31.7-282.7-221.4-312.4-322.3c-13.8-45.5-23.7-102.8-23.7-126.5c0-217.5,257-474.5,474.5-474.5c217.5,0,474.5,257,474.5,474.5c0,108.7-51.4,209.6-158.2,316.3C7067.7-2034.2,6933.2-1994.7,6759.2-2050z M7016.3-2380.2c25.7-25.7,39.5-65.2,39.5-118.6c0-104.8-53.4-158.2-158.2-158.2c-104.8,0-158.2,53.4-158.2,158.2c0,53.4,13.8,92.9,39.5,118.6c25.7,25.7,65.2,39.5,118.6,39.5C6951-2340.7,6990.6-2354.5,7016.3-2380.2z"}),(0,s.h)("path",{d:"M8665.1-2050c-187.8-71.2-344-272.9-344-444.8c0-221.4,255-478.4,474.5-478.4c217.5,0,474.5,257,474.5,474.5c0,108.7-51.4,209.6-158.2,316.3C8965.6-2034.2,8819.3-1992.7,8665.1-2050z M8914.2-2380.2c25.7-25.7,39.5-65.2,39.5-118.6c0-104.8-53.4-158.2-158.2-158.2s-158.2,53.4-158.2,158.2c0,53.4,13.8,92.9,39.5,118.6c25.7,25.7,65.2,39.5,118.6,39.5C8849-2340.7,8888.5-2354.5,8914.2-2380.2z"}),(0,s.h)("path",{d:"M1911.5-2916l-233.3-116.7v-444.8v-444.8h474.5h474.5v444.8v444.8L2390-2914c-130.5,65.2-239.2,118.6-241.2,116.7C2144.8-2797.4,2038.1-2850.8,1911.5-2916z M2231.8-3190.8l79.1-39.5v-187.8V-3606h-158.2h-158.2v187.8v187.8l75.1,37.6C2160.7-3143.3,2140.9-3143.3,2231.8-3190.8z"}),(0,s.h)("path",{d:"M7716.2-2999c-187.8-71.2-344-272.8-344-444.8c0-221.4,255-478.4,474.5-478.4c217.5,0,474.5,257,474.5,474.5c0,108.7-51.4,209.6-158.2,316.3C8016.6-2983.2,7870.4-2941.7,7716.2-2999z M7965.2-3329.2c25.7-25.7,39.5-65.2,39.5-118.6c0-104.8-53.4-158.2-158.2-158.2c-104.8,0-158.2,53.4-158.2,158.2s53.4,158.2,158.2,158.2C7900-3289.7,7939.5-3303.5,7965.2-3329.2z"}),(0,s.h)("path",{d:"M412.9,3906.8v-553.6h474.5h474.5v395.4V4144h237.2h237.2v-237.2v-237.2h-79.1h-79.1v-158.2v-158.2h237.2h237.2v553.6v553.6h-869.9H412.9V3906.8z M1045.6,3906.8v-237.2H887.4H729.3v237.2V4144h158.2h158.2V3906.8z"}),(0,s.h)("path",{d:"M8250,3175.3c-288.7-51.4-525.9-181.9-759.2-415.2c-189.8-189.8-294.6-353.9-369.7-583.2c-45.5-136.4-51.4-191.8-51.4-405.3c0-213.5,5.9-268.9,51.4-405.3c75.1-229.3,179.9-393.4,369.7-583.2c253.1-253.1,480.4-369.7,818.5-419.1c610.9-87,1259.4,310.4,1494.6,915.4c83,219.5,112.7,448.8,83,662.3c-49.4,338.1-166.1,565.4-419.1,818.5c-191.8,191.8-355.9,294.6-583.2,367.7C8706.6,3183.2,8418,3204.9,8250,3175.3z M8754.1,2849.1c490.3-116.6,832.3-557.5,832.3-1077.5c0-628.7-478.4-1107.1-1107.1-1107.1c-628.7,0-1107.1,478.4-1107.1,1107.1c0,514,340,958.9,822.4,1075.5C8348.8,2884.6,8597.9,2884.6,8754.1,2849.1z"}),(0,s.h)("path",{d:"M8321.1,2645.4c0-75.1-2-75.1-102.8-102.8c-83-19.8-126.5-49.4-213.5-136.4c-211.5-213.5-211.5-425.1,0-634.6c134.4-136.4,203.6-158.2,492.3-158.2c259,0,298.5-21.8,298.5-158.2c0-138.4-39.5-158.2-316.3-158.2c-211.5,0-241.2,4-276.8,39.5c-21.7,21.7-39.5,57.3-39.5,79.1c0,35.6-13.8,39.5-160.1,39.5h-160.2l11.9-61.3c33.6-176,199.7-351.9,367.7-395.4c96.9-25.7,98.8-27.7,98.8-100.8v-75.1h158.2h158.2v75.1c0,75.1,2,75.1,102.8,102.8c83,19.8,126.5,49.4,213.5,136.4c211.5,213.5,211.5,425.1,0,634.6c-134.4,136.4-203.6,158.2-492.3,158.2c-259,0-298.5,21.7-298.5,158.2c0,138.4,39.5,158.2,316.3,158.2c211.6,0,241.2-4,276.8-39.5c21.7-21.7,39.5-57.3,39.5-79.1c0-35.6,13.8-39.5,160.1-39.5h162.1l-13.8,61.3c-33.6,176-199.7,351.9-367.7,395.4c-96.9,25.7-98.9,27.7-98.9,100.8v75.1h-158.2h-158.2V2645.4z"}),(0,s.h)("path",{d:"M412.9,2483.3v-553.6h474.5h474.5v395.4v395.4h237.2h237.2v-237.2v-237.2h-79.1h-79.1v-158.2v-158.2h237.2h237.2v553.6v553.6h-869.9H412.9V2483.3z M1045.6,2483.3v-237.2H887.4H729.3v237.2v237.2h158.2h158.2V2483.3z"}),(0,s.h)("path",{d:"M412.9,1059.8V506.3h474.5h474.5v395.4v395.4h237.2h237.2v-237.2V822.6h-79.1h-79.1V664.4V506.3h237.2h237.2v553.6v553.6h-869.9H412.9V1059.8z M1045.6,1059.8V822.6H887.4H729.3v237.2v237.2h158.2h158.2V1059.8z"}))))),(0,s.h)("div",{className:"cheats-styles_cheats_content__IosAY "+(t?"cheats-styles_active__r0g1c":"")},e.map((e,t)=>(0,s.h)("button",{className:`${rb} cheats-styles_green__VWTHp`,key:t,onClick:()=>{e.action(),r()}},e.text)),(0,s.h)("button",{className:`${rb} cheats-styles_white_green__UDDkw`,onClick:r},"Close")))};var rS="dc-styles_dc_coin__Z66Ef",rx="dc-styles_dc_arrow__c21AG",rk="dc-styles_dc_left_arr__Qm7ks",rE="dc-styles_dc_left_bg__6FQdE",rC="dc-styles_dc_left_glare__h6ZGo",rP="month-styles_month_day__2GO6x",rT="month-styles_progress__DRI88";let rL=({data:e,selectedDate:t,handleClickDay:n,fakeSelectedDate:r,translations:i,maxDays:o,isLast:l,selectedMonth:c,color:u=n6.green})=>{let d=(()=>{var e;let t=navigator.language||"en-US";if(Intl&&Intl.Locale){let n=new Intl.Locale(t);if("weekInfo"in n)return(null==(e=n.weekInfo)?void 0:e.firstDay)||0}return+!["en-US","en-CA","en-PH","en-TW","en-JP","en-MY","en-SG","en-TH","en-HK","en-MO","ar-SA","ar-JO","ar-LB","ar-OM","ar-PS","ar-QA","ar-SY","ar-YE","ar-AE","ar-BH","ar-KW","ar-LY","ar-MA","ar-TN","he-IL"].includes(t)})(),h=[i.week_1l_sunday||"S",i.week_1l_monday||"M",i.week_1l_tuesday||"T",i.week_1l_wednesday||"W",i.week_1l_thursday||"T",i.week_1l_friday||"F",i.week_1l_saturday||"S"],p=h.slice(d).concat(h.slice(0,d)),f=new Date(e.year,e.monthId,1).getDay();f=(f-d+7)%7;let g=[];for(let e=0;e<f;e++)g.push(null);for(let t=1;t<=e.countDaysInMonth;t++)g.push(t);let m=[];for(let e=0;e<g.length;e+=7)m.push(g.slice(e,e+7));let v=(0,a.useRef)(null),y=(0,a.useRef)(null);return(0,a.useEffect)(()=>
27{if(y.current&&v.current){let e=v.current,t=y.current;setTimeout(()=>{t.scrollTop=l?Math.max(e.offsetTop-40,0):e.offsetTop},0)}},[v,y,c,l]),(0,s.h)("div",{className:"month-styles_month__Kd48f"},(0,s.h)("div",{className:"month-styles_month_content__wJT0q"},(0,s.h)("div",{className:"month-styles_month_header__X5vPo"},p.map(e=>(0,s.h)("div",{key:e},e.slice(0,3)))),(0,s.h)("div",{className:"month-styles_month_table__17FPi",ref:y},(0,s.h)("table",null,(0,s.h)("tbody",null,m.map((i,a)=>(0,s.h)("tr",{key:a},i.map((i,a)=>{var c;let d=`${e.id}_${i}`,h=em.getProgressPercent(d);return(0,s.h)("td",{key:a},i?(0,s.h)("div",{className:`${t===i?"month-styles_selected__7lizX "+(r?"month-styles_animation_hidden__cYgll":""):""} ${h?rT:""} ${(null==(c=em.config.data[d])?void 0:c.s)?"month-styles_completed__v-ACa":""} ${d===r?"month-styles_animation_selected__K4jZJ":""} ${u===n6.blue?"blue":"green"} ${rP}`,onClick:n(i),disabled:e.maxDay<i,"data-id":d,ref:l&&(d===r||!r&&t===i)?v:l||i!==o?null:v},!!h&&(0,s.h)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 36 36"},(0,s.h)("circle",{cx:"16",cy:"16",r:"15.9155",className:"month-styles_background__6zPU8"}),(0,s.h)("circle",{cx:"16",cy:"16",r:"15.9155",className:`${rT} ${u===n6.blue?"blue":"green"}`,style:"stroke-dashoffset: "+(100-h)})),i):"")}))))))))},rI=()=>{let[,e]=(0,a.useState)(0);return()=>e(e=>e+1)},rO=()=>"undefined"!=typeof document&&"rtl"===document.documentElement.dir,rA=(e,t)=>t?[...e].reverse():e,rM=(e,t,n)=>n?t-1-e:e,rN={components:{DC:({translations:e,debug:t,gameUrl:n,color:r=n6.green,newBreakpoints:i,userSegment:o})=>{var l,c,d,h,f,g,v,y,w,b,_,S,x;let k=rI(),[E,C]=(0,a.useState)(!0),[P,T]=(0,a.useState)(!1),[L,I]=(0,a.useState)(!1),[O,A]=(0,a.useState)(!1),[M,N]=(0,a.useState)(!1),[D,R]=(0,a.useState)(!1),[B,F]=(0,a.useState)(!1),[$,j]=(0,a.useState)(!1),[H,z]=(0,a.useState)(em.selectedMonth),[G,q]=(0,a.useState)(em.selectedDate),U=em.calendar[H],[W,V]=(0,a.useState)(m("dc-win-date")),[Y,X]=(0,a.useState)(!1),[K,J]=(0,a.useState)(!1),Q=em.selectedMonth,ee=rO(),et=e=>rM(e,em.calendar.length,ee),en=(0,a.useRef)(null),ei=(0,a.useRef)(null),eo=(0,a.useRef)(null),es=()=>{V(null),p&&sessionStorage.removeItem("dc-win-date"),U.fullCompleted&&eg(em.getNearTab())},ea=()=>window.location.href=n,el=e=>{let t=`${U.id}_${G}`,n=ef(new Date,window.serverDate),r=em.config.data[t]?em.config.data[t].s?"completed":"inprogress":"new",[i,s,a]=(null!=t?t:"").split("_"),l=new Date(parseInt(i),parseInt(s),parseInt(a));n.setHours(0,0,0,0);let c=Math.round((l.getTime()-n.getTime())/864e5),u=12*(l.getFullYear()-n.getFullYear())+(l.getMonth()-n.getMonth()),d=em.calendar[H];return Object.assign(Object.assign({type:e,state:r,day:((e,t)=>{let n=new Date(e),r=new Date(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()&&n.getDate()===r.getDate()})(n.getTime(),l.getTime())?"current":"past",day_diff:`${c}`,month_diff:`${u}`,month:`${i}-${String(parseInt(s)+1).padStart(2,"0")}-01`},o?{user_level:["easy","medium","hard","expert","master","extreme"][o-1]}:{}),{progress:Number((d.countCompletedDays/d.maxDay).toFixed(2)),available:Number((d.maxDay/d.countDaysInMonth).toFixed(2))})},eu=()=>{var e;e=`${U.id}_${G}`,p&&sessionStorage.setItem("dc_date",JSON.stringify(e)),C(!0);let t=el("start");Z.send("dc_calendar_play",t),eP("dc_calendar_play",t),ea()},ed={initialSlide:et(Q),dots:!1,infinite:!1,speed:500,slidesToShow:1,slidesToScroll:1,waitForAnimate:!1,fade:!D,arrows:!1,draggable:D,beforeChange:(e,t)=>
27{var n;if(e===t)return;let r=et(t);eo.current&&eo.current.slickGoTo(et(r)),z(r),q(em.calendar[r].maxNotFinishedDay);let i={month:null==(n=em.calendar[r])?void 0:n.eventId,by:"arrow"};Z.send("dc_calendar_month_show",i),eP("dc_calendar_month_show",i)}},eh={initialSlide:et(Q),dots:!1,infinite:!1,speed:500,slidesToShow:1,slidesToScroll:1,waitForAnimate:!1,arrows:!1,draggable:!1,swipe:!1,fade:D},ep=e=>()=>q(e),eg=e=>{ei.current&&ei.current.slickGoTo(et(e))},ev=e=>()=>{eg(e===rn.left?H-1:H+1)},ey=()=>{em.selectedMonth=H,em.selectedDate=G};(0,a.useEffect)(()=>{if(!W||P)return;let[e,t]=W.split("_"),[n,r]=U.id.split("_");if(t!==r||e!==n)return void es();let i=document.createElement("img");i.classList.add(rS),i.src="/build/images/dc/dc-coin.svg",i.style.display="block";let o=document.createElement("div");o.classList.add("dc-styles_dc_coin_parent__45Y9h"),o.appendChild(i),i.style.left="50%",i.style.bottom="auto",i.style.right="auto",i.style.margin="-410px 0 0 -820px",i.style.width="1640px",i.style.height="1640px",i.style.opacity="0",document.querySelector("body").appendChild(o),setTimeout(()=>{(()=>{let e=document.querySelector(`.${rP}[data-id="${W}"]`),t=document.querySelector(`.${rS}`);if(!e||!t)return;let n=t.clientWidth,r=e.getBoundingClientRect(),i=t.getBoundingClientRect(),o=-1*(i.top+n/2),s=i.left+n/2-820,a=0,l=0,c=0,u=0,d=null;requestAnimationFrame(function e(i){var h;d||(d=i);let p=i-d,f=Math.min((h=p/700)<.5?4*h*h*h:1-Math.pow(-2*h+2,3)/2,1);l=(o-r.top-r.width/2)*f,c=(s-r.left-r.width/2)*f,a=n-n*f,t.style.width=`${a}px`,t.style.height=`${a}px`,t.style.transform=`translate(${-c}px, ${-l}px)`,u=f,t.style.opacity=`${u}`,p<700&&requestAnimationFrame(e)})})(),setTimeout(()=>{X(!0)},600),setTimeout(()=>{J(!0),setTimeout(()=>{X(!1),es(),setTimeout(()=>{J(!1)},100)},200)},1300)},400)},[W,P]),(0,a.useEffect)(()=>{let e=`${U.id}_${G}`;j(!(!em.config.data[e]||!em.config.data[e].d&&!em.config.data[e].sudokuProgress))},[G,M]),(0,a.useEffect)(()=>{if(C(!1),!em.config.hiw){T(!0);let e={placement:"dc_screen",screen:"dc_1"};Z.send("g_tutorial_display",e),eP("g_tutorial_display",e),em.showHiw()}V(m("dc-win-date"));let e=()=>{if(!en.current)return;let e=en.current.offsetWidth,t=en.current.offsetHeight;I(e<723||t<520),A(t<410),F(i?t<480||window.innerWidth<=759:t<480||e<664||window.innerWidth<768),R(window.matchMedia("(orientation: portrait)").matches),N(r===n6.blue?window.innerWidth<=929:e<635)};e(),window.addEventListener("resize",e);let t={month:null==U?void 0:U.eventId,by:"show_calendar"};return Z.send("dc_calendar_month_show",t),eP("dc_calendar_month_show",t),()=>{window.removeEventListener("resize",e)}},[]);let ew=(e=>[{available:{default:`/build/images/dc/cups-${e}/graphics-${e}-cups-available-cup-1.png`,retina:`/build/images/dc/cups-${e}/graphics-${e}[email protected]`},unavailable:{default:`/build/images/dc/cups-${e}/graphics-${e}-cups-unavailable-dc-cup-1.png`,retina:`/build/images/dc/cups-${e}/graphics-${e}[email protected]`}},{available:{default:`/build/images/dc/cups-${e}/graphics-${e}-cups-available-cup-2.png`,retina:`/build/images/dc/cups-${e}/graphics-${e}[email protected]`},unavailable:{default:`/build/images/dc/cups-${e}/graphics-${e}-cups-unavailable-dc-cup-2.png`,retina:`/build/images/dc/cups-${e}/graphics-${e}[email protected]`}},{available:{default:`/build/images/dc/cups-${e}/graphics-${e}-cups-available-cup-3.png`,retina:`/build/images/dc/cups-${e}/graphics-${e}[email protected]`},unavailable:{default:`/build/images/dc/cups-${e}/graphics-${e}-cups-unavailable-dc-cup-3.png`,retina:`/build/images/dc/cups-${e}/graphics-${e}[email protected]`}},{available:{default:`/build/images/dc/cups-${e}/graphics-${e}-cups-available-cup-4.png`,retina:`/build/images/dc/cups-${e}/graphics-${e}[email protected]`},unavailable:{default:`/build/images/dc/cups-${e}/graphics-${e}-cups-unavailable-dc-cup-4.png`,retina:`/build/images/dc/cups-${e}/graphics-${e}[email protected]`}},{available:{default:`/build/images/dc/cups-${e}/graphics-${e}-cups-available-cup-5.png`,retina:`/build/images/dc/cups-${e}/graphics-${e}[email protected]`},unavailable:{default:`/build/images/dc/cups-${e}/graphics-${e}-cups-unavailable-dc-cup-5.png`,retina:`/build/images/dc/cups-${e}/graphics-${e}[email protected]`}},{available:{default:`/build/images/dc/cups-${e}/graphics-${e}-cups-available-cup-6.png`,retina:`/build/images/dc/cups-${e}/graphics-${e}[email protected]`},unavailable:{default:`/build/images/dc/cups-${e}/graphics-${e}-cups-unavailable-dc-cup-6.png`,retina:`/build/images/dc/cups-${e}/graphics-${e}[email protected]`}},{available:{default:`/build/images/dc/cups-${e}/graphics-${e}-cups-available-cup-7.png`,retina:`/build/images/dc/cups-${e}/graphics-${e}[email protected]`},unavailable:{default:`/build/images/dc/cups-${e}/graphics-${e}-cups-unavailable-dc-cup-7.png`,retina:`/build/images/dc/cups-${e}/graphics-${e}[email protected]`}},{available:{default:`/build/images/dc/cups-${e}/graphics-${e}-cups-available-cup-8.png`,retina:`/build/images/dc/cups-${e}/graphics-${e}[email protected]`},unavailable:{default:`/build/images/dc/cups-${e}/graphics-${e}-cups-unavailable-dc-cup-8.png`,retina:`/build/images/dc/cups-${e}/graphics-${e}[email protected]`}},{available:{default:`/build/images/dc/cups-${e}/graphics-${e}-cups-available-cup-9.png`,retina:`/build/images/dc/cups-${e}/graphics-${e}[email protected]`},unavailable:{default:`/build/images/dc/cups-${e}/graphics-${e}-cups-unavailable-dc-cup-9.png`,retina:`/build/images/dc/cups-${e}/graphics-${e}[email protected]`}},{available:{default:`/build/images/dc/cups-${e}/graphics-${e}-cups-available-cup-10.png`,retina:`/build/images/dc/cups-${e}/graphics-${e}[email protected]`},unavailable:{default:`/build/images/dc/cups-${e}/graphics-${e}-cups-unavailable-dc-cup-10.png`,retina:`/build/images/dc/cups-${e}/graphics-${e}[email protected]`}},{available:{default:`/build/images/dc/cups-${e}/graphics-${e}-cups-available-cup-11.png`,retina:`/build/images/dc/cups-${e}/graphics-${e}[email protected]`},unavailable:{default:`/build/images/dc/cups-${e}/graphics-${e}-cups-unavailable-dc-cup-11.png`,retina:`/build/images/dc/cups-${e}/graphics-${e}[email protected]`}},{available:{default:`/build/images/dc/cups-${e}/graphics-${e}-cups-available-cup-12.png`,retina:`/build/images/dc/cups-${e}/graphics-${e}[email protected]`},unavailable:{default:`/build/images/dc/cups-${e}/graphics-${e}-cups-unavailable-dc-cup-12.png`,retina:`/build/images/dc/cups-${e}/graphics-${e}[email protected]`}}])(r);return(0,s.h)("div",{className:`dc-styles_dc__Bjjvq ${W?"month-styles_animation__O6k9W":""} ${K?"month-styles_animation_hiding__oMDmZ":""} ${Y?"month-styles_animation_select__m10LF":""} ${D?"portrait":"landscape"} ${M?"pview":"lview"} ${L?"small":""} ${O?"xs":""}`,ref:en},(0,s.h)(ec,{text:null!=(l=e.game_screen_loading_game)?l:"Loading Game",show:E}),t&&(0,s.h)(r_,{buttons:[{text:"Complete Day",action:()=>{ey(),em.completeSelectedDay(),k()}},{text:"Complete Month",action:()=>{ey(),em.completeSelectedMonth(),k()}},{text:"Reset Day",action:()=>
27{ey(),em.resetSelectedDate(),k()}},{text:"Reset Month",action:()=>{ey(),em.resetSelectedMonth(),k()}}]}),(0,s.h)(er,{show:P,fullSize:B,onClose:()=>T(!1),color:r,big:!0,items:[{btns:[{text:null!=(c=e.dc_button_continue)?c:"Continue",func:e=>{let t={screen:"dc_1",action:"continue"};Z.send("g_tutorial_action",t),eP("g_tutorial_action",t);let n={placement:"dc_screen",screen:"dc_2"};Z.send("g_tutorial_display",n),eP("g_tutorial_display",n),e()}}],text:null!=(d=e.dc_tutorial_body_1)?d:"Complete daily challenges and win golden stars!",image:(0,s.h)("img",{src:"/build/images/dc/hiw1.png",srcSet:"/build/images/dc/hiw1.png 1x, /build/images/dc/[email protected] 2x",alt:"img1"})},{btns:[{text:null!=(h=e.ok)?h:"OK",func:e=>{let t={screen:"dc_2",action:"ok"};Z.send("g_tutorial_action",t),eP("g_tutorial_action",t),Z.send("g_tutorial_finish"),eP("g_tutorial_finish"),e()}}],text:null!=(f=e.dc_tutorial_body_2)?f:"Hurry! Every player who reaches the final will receive a reward",image:(0,s.h)("img",{src:"/build/images/dc/hiw2.png",srcSet:"/build/images/dc/hiw2.png 1x, /build/images/dc/[email protected] 2x",alt:"img3"})}],title:{value:null!=(g=e.dc_tutorial_title)?g:"Welcome to Daily Challenges"}}),(0,s.h)("div",{className:"dc-styles_dc_left__CHE7B "+(r===n6.blue?"blue":"green")},(0,s.h)("div",{className:rk,disabled:0===H,"data-left":!0,onClick:ev(rn.left)},(0,s.h)("img",{src:"/build/images/dc/arrow-white.svg"})),(0,s.h)("div",{className:rk,disabled:H===em.calendar.length-1,"data-right":!0,onClick:ev(rn.right)},(0,s.h)("img",{src:"/build/images/dc/arrow-white.svg"})),(0,s.h)("div",{className:"dc-styles_dc_title__4NtDu"},null!=(v=e.header_daily_challenges)?v:"Daily Challenges"),(0,s.h)("div",{className:"dc-styles_dc_left_content__Y0w8M"},r===n6.green&&(0,s.h)("img",{className:rE,src:"/build/images/dc/trophy-back1.png",srcSet:"/build/images/dc/trophy-back1.png 1x, /build/images/dc/[email protected] 2x",alt:"bg"}),r===n6.blue&&(0,s.h)("img",{className:rE,src:"/build/images/dc/trophy-back2.png",srcSet:"/build/images/dc/trophy-back2.png 1x, /build/images/dc/[email protected] 2x",alt:"bg"}),(0,s.h)("img",{className:rC,src:"/build/images/dc/glare1.png",srcSet:"/build/images/dc/glare1.png 1x, /build/images/dc/[email protected] 2x",alt:"glare"}),(0,s.h)("img",{className:`${rC} dc-styles_glare2__Ap9n6`,src:"/build/images/dc/glare2.png",srcSet:"/build/images/dc/glare2.png 1x, /build/images/dc/[email protected] 2x",alt:"glare"}),(0,s.h)("div",{className:"dc-styles_dc_left_cups__WW7OA"},(0,s.h)(rw,Object.assign({ref:ei},ed),rA(em.calendar.map((e,t)=>(0,s.h)("div",{key:`${e.id}${t}`,className:"dc-styles_dc_left_cup__P21EY"},(0,s.h)("img",{src:ew[e.monthId][e.fullCompleted?"available":"unavailable"].default,srcSet:`${ew[e.monthId][e.fullCompleted?"available":"unavailable"].default} 1x, ${ew[e.monthId][e.fullCompleted?"available":"unavailable"].retina} 2x`,alt:"cup"}))),ee))))),(0,s.h)("div",{className:"dc-styles_dc_right__3ip--"},(0,s.h)("div",{className:"dc-styles_dc_right_content__CgDZu"},(0,s.h)("div",{className:"dc-styles_dc_header__AQhv1"},(0,s.h)("div",{className:rx,disabled:0===H,"data-left":!0,onClick:ev(rn.left)},r===n6.green&&(0,s.h)("img",{alt:"arrow-left",src:"/build/images/dc/arrow.svg"}),r===n6.blue&&(0,s.h)("img",{alt:"arrow-left",src:"/build/images/dc/arrow-blue.svg"})),(0,s.h)("div",{className:"dc-styles_dc_header_title__KziA9"},null!=(w=(null!=(y=e[`month_${u(U.monthId)}_year`])?y:`${U.monthId} {0}`).replace("{0}",String(U.year)))?w:U.id),(0,s.h)("div",{className:"dc-styles_dc_header_progress__FkBjz"},(0,s.h)("img",{alt:"star",src:"/build/images/dc/star.svg"}),(0,s.h)("span",null,(null!=(b=e.dc_stars_counter)?b:"{0}/{1}").replace("{0}",String(U.countCompletedDays)).replace("{1}",String(U.countDaysInMonth)))),(0,s.h)("div",{className:rx,disabled:H===em.calendar.length-1,"data-right":!0,onClick:ev(rn.right)},r===n6.green&&(0,s.h)("img",{alt:"arrow-right",src:"/build/images/dc/arrow.svg"}),r===n6.blue&&(0,s.h)("img",{alt:"arrow-right",src:"/build/images/dc/arrow-blue.svg"}))),(0,s.h)("div",{className:"dc-styles_dc_calendar__KIl2H"},(0,s.h)(rw,Object.assign({ref:eo},eh),rA(em.calendar.map((t,n)=>(0,s.h)("div",{key:t.id},(0,s.h)(rL,{fakeSelectedDate:W,handleClickDay:ep,selectedDate:G,translations:e,data:t,maxDays:t.countDaysInMonth,isLast:n===em.calendar.length-1,selectedMonth:H,color:r}))),ee))),(0,s.h)("div",{className:"dc-styles_dc_right_btn__Mehyp"},(0,s.h)(e1,{popupTitle:e.dc_action_sheet_title,popupDesc:e.dc_action_sheet_body,buttons:[{title:null!=(_=e.dc_button_continue)?_:"Continue",image:r===n6.blue?"data:image/svg+xml,%3csvg width='24' height='22' viewBox='0 0 24 22' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3e %3cdefs%3e %3cpath d='M11.199 15.714h.8c.885 0 1.602.704 1.602 1.572h1.036c.442 0 .8.351.8.785a.793.793 0 0 1-.8.786H6.192a.793.793 0 0 1-.8-.786c0-.434.358-.785.8-.785h1.003c0-.868.717-1.572 1.602-1.572h.8v-2.41a5.948 5.948 0 0 1-4.446-3.037h-.56C2.435 10.267.614 8.704.326 6.61L.025 4.413A2.7 2.7 0 0 1 0 4.045c0-1.518 1.255-2.75 2.802-2.75h1.312A1.592 1.592 0 0 1 5.691 0h9.414c.764 0 1.403.524 1.563 1.226h1.33c1.547 0 2.802 1.231 2.802 2.75a2.7 2.7 0 0 1-.025.367l-.298 2.166c-.29 2.112-2.127 3.688-4.299 3.688h-.495a5.947 5.947 0 0 1-4.484 3.108v2.41zM18.89 6.3l.298-2.166a1.
2719 1.19 0 0 0-1.19-1.336h-1.362l-.304 5.07a5.773 5.773 0 0 1-.096.758c1.345-.027 2.474-1.012 2.654-2.326zM4.464 7.867l-.3-5H2.66a1.19 1.19 0 0 0-1.19 1.336L1.77 6.4c.181 1.314 1.325 2.295 2.677 2.295h.126a5.77 5.77 0 0 1-.11-.828zm8.22-1.77c.229-.23.101-.633-.216-.68l-1.19-.177-.532-1.107c-.13-.273-.566-.273-.696 0L9.518 5.24l-1.19.177c-.317.047-.445.45-.215.68l.861.862-.203 1.216c-.054.326.281.576.564.42l1.063-.573 1.064.574c.282.152.618-.093.563-.42l-.203-1.217.861-.862z' id='tctg8l217a'/%3e %3c/defs%3e %3cuse fill='%23325aaf' xlink:href='%23tctg8l217a' transform='translate(1.6 1.571)' fill-rule='evenodd'/%3e%3c/svg%3e":"data:image/svg+xml,%3csvg width='24' height='22' viewBox='0 0 24 22' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3e %3cdefs%3e %3cpath d='M11.199 15.714h.8c.885 0 1.602.704 1.602 1.572h1.036c.442 0 .8.351.8.785a.793.793 0 0 1-.8.786H6.192a.793.793 0 0 1-.8-.786c0-.434.358-.785.8-.785h1.003c0-.868.717-1.572 1.602-1.572h.8v-2.41a5.948 5.948 0 0 1-4.446-3.037h-.56C2.435 10.267.614 8.704.326 6.61L.025 4.413A2.7 2.7 0 0 1 0 4.045c0-1.518 1.255-2.75 2.802-2.75h1.312A1.592 1.592 0 0 1 5.691 0h9.414c.764 0 1.403.524 1.563 1.226h1.33c1.547 0 2.802 1.231 2.802 2.75a2.7 2.7 0 0 1-.025.367l-.298 2.166c-.29 2.112-2.127 3.688-4.299 3.688h-.495a5.947 5.947 0 0 1-4.484 3.108v2.41zM18.89 6.3l.298-2.166a1.19 1.19 0 0 0-1.19-1.336h-1.362l-.304 5.07a5.773 5.773 0 0 1-.096.758c1.345-.027 2.474-1.012 2.654-2.326zM4.464 7.867l-.3-5H2.66a1.19 1.19 0 0 0-1.19 1.336L1.77 6.4c.181 1.314 1.325 2.295 2.677 2.295h.126a5.77 5.77 0 0 1-.11-.828zm8.22-1.77c.229-.23.101-.633-.216-.68l-1.19-.177-.532-1.107c-.13-.273-.566-.273-.696 0L9.518 5.24l-1.19.177c-.317.047-.445.45-.215.68l.861.862-.203 1.216c-.054.326.281.576.564.42l1.063-.573 1.064.574c.282.152.618-.093.563-.42l-.203-1.217.861-.862z' id='tctg8l217a'/%3e %3c/defs%3e %3cuse fill='%23009F27' xlink:href='%23tctg8l217a' transform='translate(1.6 1.571)' fill-rule='evenodd'/%3e%3c/svg%3e",callback:eu},{title:null!=(S=e.game_screen_no_moves_popup_button_restart)?S:"Restart",image:r===n6.blue?"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3e %3cpath d='M11.994 0c1.64 0 3.184.312 4.636.936a12.244 12.244 0 0 1 6.429 6.426C23.685 8.814 24 10.36 24 12c0 1.64-.314 3.186-.942 4.638a12.244 12.244 0 0 1-6.422 6.426c-1.448.624-2.995.936-4.642.936-1.64 0-3.182-.312-4.63-.936a12.244 12.244 0 0 1-6.428-6.426A11.626 11.626 0 0 1 0 12c0-1.64.314-3.186.942-4.638a12.295 12.295 0 0 1 2.59-3.834A12.1 12.1 0 0 1 7.352.936C8.8.312 10.347 0 11.994 0zm.336 4.98a.545.545 0 0 0-.258.06.609.609 0 0 0-.198.168L9.427 7.704a.66.66 0 0 0-.18.468c0 .184.06.336.18.456l2.483 2.52c.112.12.248.18.408.18a.593.593 0 0 0 .612-.6.684.684 0 0 0-.204-.48l-1.62-1.608c.24-.048.54-.072.9-.072.752 0 1.431.18 2.039.54.608.36 1.091.844 1.451 1.452.36.608.54 1.288.54 2.04s-.18 1.434-.54 2.046c-.36.612-.843 1.1-1.451 1.464a3.891 3.891 0 0 1-2.039.546 3.891 3.891 0 0 1-2.039-.546 4.106 4.106 0 0 1-1.451-1.464 3.961 3.961 0 0 1-.54-2.046.595.595 0 0 0-.198-.45.653.653 0 0 0-.462-.186.619.619 0 0 0-.443.186.604.604 0 0 0-.192.45 5.2 5.2 0 0 0 .713 2.688 5.417 5.417 0 0 0 1.92 1.932c.803.48 1.7.72 2.692.72.984 0 1.88-.24 2.687-.72a5.387 5.387 0 0 0 1.925-1.938c.475-.812.713-1.718.713-2.718 0-.976-.238-1.862-.713-2.658a5.38 5.38 0 0 0-1.895-1.896 4.946 4.946 0 0 0-2.573-.702c-.12 0-.24.008-.36.024s-.232.028-.336.036l1.308-1.32a.773.773 0 0 0 .132-.21.628.628 0 0 0-.132-.678.589.589 0 0 0-.432-.18z' fill='%23325aaf' fill-rule='nonzero'/%3e%3c/svg%3e":"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3e %3cpath d='M11.994 0c1.64 0 3.184.312 4.636.936a12.244 12.244 0 0 1 6.429 6.426C23.685 8.814 24 10.36 24 12c0 1.64-.314 3.186-.942 4.638a12.244 12.244 0 0 1-6.422 6.426c-1.448.624-2.995.936-4.642.936-1.64 0-3.182-.312-4.63-.936a12.244 12.244 0 0 1-6.428-6.426A11.626 11.626 0 0 1 0 12c0-1.64.314-3.186.942-4.638a12.295 12.295 0 0 1 2.59-3.834A12.1 12.1 0 0 1 7.352.936C8.8.312 10.347 0 11.994 0zm.336 4.98a.545.545 0 0 0-.258.06.609.609 0 0 0-.198.168L9.427 7.704a.66.66 0 0 0-.18.468c0 .184.06.336.18.456l2.483 2.52c.112.12.248.18.408.18a.593.593 0 0 0 .612-.6.684.684 0 0 0-.204-.48l-1.62-1.608c.24-.048.54-.072.9-.072.752 0 1.431.18 2.039.54.608.36 1.091.844 1.451 1.452.36.608.54 1.288.54 2.04s-.18 1.434-.54 2.046c-.36.612-.843 1.1-1.451 1.464a3.891 3.891 0 0 1-2.039.546 3.891 3.891 0 0 1-2.039-.546 4.106 4.106 0 0 1-1.451-1.464 3.961 3.961 0 0 1-.54-2.046.595.595 0 0 0-.198-.45.653.653 0 0 0-.462-.186.619.619 0 0 0-.443.186.604.604 0 0 0-.192.45 5.2 5.2 0 0 0 .713 2.688 5.417 5.417 0 0 0 1.92 1.932c.803.48 1.7.72 2.692.72.984 0 1.88-.24 2.687-.72a5.387 5.387 0 0 0 1.925-1.938c.475-.812.713-1.718.713-2.718 0-.976-.238-1.862-.713-2.658a5.38 5.38 0 0 0-1.895-1.896 4.946 4.946 0 0 0-2.573-.702c-.12 0-.24.008-.36.024
27s-.232.028-.336.036l1.308-1.32a.773.773 0 0 0 .132-.21.628.628 0 0 0-.132-.678.589.589 0 0 0-.432-.18z' fill='%2302AD02' fill-rule='nonzero'/%3e%3c/svg%3e",callback:()=>{let e=`${U.id}_${G}`;delete(em.config.data[e]||{}).d,em.saveConfig(),r===n6.blue&&em.resetOldLevel(e),C(!0);let t=el("restart");Z.send("dc_calendar_play",t),eP("dc_calendar_play",t),ea()}}],showPopup:$,clickCallback:eu,title:null!=(x=e.dc_button_play)?x:"Play",color:r})))))}},dcLogic:em};!function(e){e.main="main",e.dc="dc",e.dcMonth="dcMonth",e.heartsRound="heartsRound",e.heartsWin="heartsWin"}(id||(id={}));var rD="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAMAAACelLz8AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAHaUExURUdwTPC0P/+IH/WmJ/jDOvjLRO6tNeGaNeKGGcdWGPTBUuOSKuqqOPCWJvGYGfSsKuWbO/nBPPG5QPCvPvKvN+i1TfCfLPSfId13JeOBHO2MG+yaJumBFu2QJeuMJPnFNLtJFO2OG/arGfzbXfm2I/rGNfOmKfayKeyfJtt4EvGiI95/EOKRIPvHNvvHNu2kP+6jJ+iYGvipE+ieN+2xRvKkJuqHJ+mCGeyIGumCHvepI+eMKfOkIPalEuuaPeSJEe+eJ/OwN/GiMfXJV/W3QvOOEffeY+OIEfuzLffCOPu8MfXDU/CiMe2YK/u9LPvLN/OhJuynMPvSQuuKJumFJfvBL/vHNO6XKe6WJtqAJu6eKe23Sfi4K/OxNPjBNP3DLfOqLPq6J/W/St6CJf3zkv3xgdqDKf31ovvFMfnEOeyyRuyiJe2NJvKkKPzxle2aJ+efQvWuKfizKfmvH+6QH/vje/rOS9p7IfvaTO2rMfrMQfnTUe2TKNmFM/a0Lfrrmfzyr+OUP/njnf74tPTOXP31v+uIHOSKJe6aOvfWYPzgZ/q1IvnIP+CLJeOZMOqeHPrYWuzAWd6OPPfSdNuJP/W5NfTNePXWmPXTjuSOFO66R/3siPGpNuy7USOHZo8AAABcdFJOUwD+AitKSv4nGQf9s88h/XT8YAz+59E65mv4fvLv9MFVGFM4SrtniOutQPV1n3lw987NIsyw6b/gpdub+2hx1rFh2FiExu0f/jnnObj75//////////////////+oZiMYQAAAeBJREFUKM9t0PVv4mAcx/FvKddRNAzYlrm7b+e6c62xCk57howgw9lu7szO9X+9hxtcMtgrTfrDO588fQqATOPP1ZfOqJGn+DSUmeQAneeyv7Icl6cFnpIPFm+XU3fvs2K6cJI6KRTS+WLQSw30dpfT4x6dw+F4V4LemUxG11P/L9S/0GotLEtgrhBB5HJsOOy0aLUPSmlWmZixegVuP7WnKMFggKfc1jsTihlAZcHqYIzmsvupze/fPEFa8PnGwIQ9BND8tgKM0zSXVmJbW2vsF97nGwfcM4dWLwmAPoEuflpf3dhYXf/6gef74L5Hj8565cfBLNDe0Mp7ZCXmlykz9PsHUdIx/dARELzsxzfI58O4THXAJHMPpa7kMK7mA15P7C2yFk3IlPoW00aWvr492WiiKN4T2lte3gw5EwfuG8Zk89mdr28b3W633/ka2YnEFxPG7WuV/9vcysT9EacYjUoSw0SiV7sqBVRguOwUxSVRlJYkqVED5zS0LCzY7eixtzVAFUO7fb7kigFqkE03d3fnm0jVBamz5WintZOsLaAiBzDm0UUjzeis6ycxPDiqqUkjR6FTF5Y7/jFSvdHN6G02m14/OTV19/xu6JB1nf5xYQQbPn4yVDWr+68y+gv61H0yQhMoDgAAAABJRU5ErkJggg==",rR={win:"winscreen-styles_win__1RbbL",lview:"winscreen-styles_lview__kQncZ",overflow:"winscreen-styles_overflow__Wy6an",shown:"winscreen-styles_shown__g8bi-",inputs_locked:"winscreen-styles_inputs_locked__m1nUe",win_btn:"winscreen-styles_win_btn__fwP3q",win_table_title_link:"winscreen-styles_win_table_title_link__Q98hS",croco:"winscreen-styles_croco__GO5uO",pv
27iew:"winscreen-styles_pview__imJjI",standart_gradient:"winscreen-styles_standart_gradient__ksRjN",withoutBtn:"winscreen-styles_withoutBtn__WuHcc",newGradient:"winscreen-styles_newGradient__bkpJS",win_overlay:"winscreen-styles_win_overlay__fD5A8",win_overlay_awards:"winscreen-styles_win_overlay_awards__9orvd",win_overlay_animationKeys:"winscreen-styles_win_overlay_animationKeys__gt6sn",active:"winscreen-styles_active__raEnN",hiding:"winscreen-styles_hiding__4RnWs",flying:"winscreen-styles_flying__gFJca",win_overlay_keys:"winscreen-styles_win_overlay_keys__PO67U",win_overlay_body:"winscreen-styles_win_overlay_body__zLsKL",win_overlay_content:"winscreen-styles_win_overlay_content__u-hjN",win_header:"winscreen-styles_win_header__7iPiB",win_header_temp:"winscreen-styles_win_header_temp__NbDtY",round:"winscreen-styles_round__p-Sac",round_content:"winscreen-styles_round_content__hirIs",round_content_background:"winscreen-styles_round_content_background__-ktgZ",collapse:"winscreen-styles_collapse__vU9wN",round_column_first:"winscreen-styles_round_column_first__QELM2",round_column:"winscreen-styles_round_column__5oEUW",round_column_technical:"winscreen-styles_round_column_technical__dv67j",round_header_cell:"winscreen-styles_round_header_cell__rRHsL",first:"winscreen-styles_first__fbX02",last:"winscreen-styles_last__k1gWV",small:"winscreen-styles_small__WNAqK",round_cell:"winscreen-styles_round_cell__q7A-V",lastRow:"winscreen-styles_lastRow__aTiYz",hide:"winscreen-styles_hide__9t4Rp",total:"winscreen-styles_total__SQWFj",me:"winscreen-styles_me__9OvC1",totalw:"winscreen-styles_totalw__VVOs7",round_cell_total:"winscreen-styles_round_cell_total__uW3Mv",round_cell_total_background:"winscreen-styles_round_cell_total_background__zqvDP",round_cell_content:"winscreen-styles_round_cell_content__I-Zq3",win_content:"winscreen-styles_win_content__bBva5",win_confetti:"winscreen-styles_win_confetti__mxETF",confetti:"winscreen-styles_confetti__6qB2y",c1:"winscreen-styles_c1__x6hjj",c2:"winscreen-styles_c2__tYlvb",c3:"winscreen-styles_c3__-Km--",win_left:"winscreen-styles_win_left__v0Rjy",short:"winscreen-styles_short__djJlf",win_left_banner:"winscreen-styles_win_left_banner__pFQVh",win_left_banner_content:"winscreen-styles_win_left_banner_content__IWCQS",win_left_content:"winscreen-styles_win_left_content__9N-y7",noMargin:"winscreen-styles_noMargin__ZuYJK",rays_top_option:"winscreen-styles_rays_top_option__KmtJa",win_left_rays:"winscreen-styles_win_left_rays__pVKUA",top_rays:"winscreen-styles_top_rays__cyOFq",win_left_sudoku:"winscreen-styles_win_left_sudoku__AGMsx",win_left_sudoku_board:"winscreen-styles_win_left_sudoku_board__o-11b",win_left_image:"winscreen-styles_win_left_image__b7R3R",month_image:"winscreen-styles_month_image__1ZX0S",glow:"winscreen-styles_glow__OHrTs",win_left_image_glare:"winscreen-styles_win_left_image_glare__El4kv",win_title:"winscreen-styles_win_title__2RR8K",delay_animation:"winscreen-styles_delay_animation__WD5c6",with_margin:"winscreen-styles_with_margin__7hFj8",win_desc:"winscreen-styles_win_desc__J2f43",win_score:"winscreen-styles_win_score__9iAw6",middle_delay:"winscreen-styles_middle_delay__vXLD6",max_delay:"winscreen-styles_max_delay__ztAxL",win_table:"winscreen-styles_win_table__HsDoA",delay_alt_header:"winscreen-styles_delay_alt_header__gTTvw",win_table_keys:"winscreen-styles_win_table_keys__BQPqV",win_table_title:"winscreen-styles_win_table_title__xJ0AA",win_table_items:"winscreen-styles_win_table_items__6PH6u",win_table_items_loading:"winscreen-styles_win_table_items_loading__fqKdu",win_table_item:"winscreen-styles_win_table_item__b1vZ3",win_table_item_text:"winscreen-styles_win_table_item_text__ZPq9P",win_table_item_icon:"winscreen-styles_win_table_item_icon__oZnLy",win_table_item_name:"winscreen-styles_win_table_item_name__sKmG0",win_table_item_value:"winscreen-styles_win_table_item_value__h-yla",win_tournament_place:"winscreen-styles_win_tournament_place__RJu59",win_tournament_place_down:"winscreen-styles_win_tournament_place_down__3vUJA",win_right:"winscreen-styles_win_right__ByDm6",win_right_content:"winscreen-styles_win_right_content__gNDl9",with_scrollbar:"winscreen-styles_with_scrollbar__VmtgG",postcards_win:"winscreen-styles_postcards_win__o
27QWHt",postcards_win_controls:"winscreen-styles_postcards_win_controls__80X8v",postcards_win_btn:"winscreen-styles_postcards_win_btn__JfS53",postcards_win_card:"winscreen-styles_postcards_win_card__vp7q9",postcards_win_card_img:"winscreen-styles_postcards_win_card_img__h1CSS",postcards_win_content:"winscreen-styles_postcards_win_content__lAE9L",postcards_win_title:"winscreen-styles_postcards_win_title__BZ4ny",postcards_win_bar:"winscreen-styles_postcards_win_bar__A4a8m",postcards_win_caption:"winscreen-styles_postcards_win_caption__pZkYR",postcards_win_caption_icon:"winscreen-styles_postcards_win_caption_icon__AnPdv"};let rB=({title:e,type:t,desc:n,score:r,withCup:i,hideBestScoreInHeader:o,alternativeHeaderWithAnimation:a,keys:l})=>{let c=a&&i&&r&&!o;return(0,s.h)("div",{className:rR.win_header},e&&(0,s.h)("div",{className:`${rR.win_title} ${c?rR.delay_animation:""} ${o&&[id.main,id.heartsWin].includes(t)&&!l?rR.with_margin:""}`,dangerouslySetInnerHTML:{__html:e}}),![id.main,id.heartsWin].includes(t)&&n&&(0,s.h)("div",{className:`${rR.win_desc} ${c?rR.delay_animation:""}`,dangerouslySetInnerHTML:{__html:n}}),[id.main,id.heartsWin].includes(t)&&r&&!o&&(0,s.h)("div",{className:`${rR.win_score} ${l?rR.noMargin:""}`},i&&(0,s.h)("img",{src:rD,srcSet:`${rD} 1x, data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAMAAADypuvZAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAMAUExURUdwTOeRJfSkJvXGTPvNTfrIROCXO+lqCeGHINx9G/KjLPOuL+JxI/ixJc1jG/i+M/m/NvCaJeycOfWtLPKZHOOAHeSkQ8tiGtt+GuGIHd6AF+ecMeN2IvnBNeiAIOqHJOOUN+6jOeuMH/qxHfi3KNh1FPvDMvi9LuiGJO6VJvW7NPm/MPmyHParLPrYWf3iYPizI79HFvCkNPrEOPWJCvaqF/ayIfnHOvTPWtyMNPvFM/vFNPrGNOqFHvvDM/O6NO6WLu2VL+Z3D+N9HvWvLvzaXfOgI8hbHOmOL/nUXfXMVPS/SPSzOPGpOPivHO6jNu+hHth2GOCHFOiEH/vBMPvIOPrFNfuvFfu4JPzdYPvbXvnYW/3gYfS8RvO4Q/GrNu2ZL+OJD+CHFOqGJeuIJfCcJ/u+KtFuIP3MNf3AKf7SO/zKNP3FLt2BI/y7JOyPJvy+KPCYIvu7KfzWRfm0KP73r/vEMfvBLfrIPfe5L/3aS/7ON/3eUf/VP/u4IvCwOvzPPe2LJvarJ/q5J/3CK/OmK/vHNN6MKfjQV/G7Su6SI/31n/isIfjCOP3yhf3wfPKuLuuHI/SiJPamI/zIMfWzL/C5Q/axJd6HJfzSQfvbW/rMQ/3jVv30lv3zjfGhKuuZKPvAMOuiLfKzQPbKUfrTUO6VKO+XKfq0IfTDQ/m9L9d1IfKWF9BpHd6QMO2uNdFwJPK7Ou2rL/DKW/vMOv32p/31pvCpIP74t9h6KOucJvjeYuyhQf7hYOaRJuymLPrFNfq0GuiYJfzncP7pXvaqFvG/UPzjafrQSfrXU/DEVON3H/aiF81gHfbUgeN9Mu+dK/TQX/e6OeyzQf/rfO2gJe+hE+iCIed+IPzvdMdWGuqJG/75wdmDMeiTOvfVXu+sRva8RP/xkPGpMPC1NPOdIu2NG/quF+mZLPfNcPfckeaeMu68bOKMJ/760f7neP7uavS1KOJ7Fuq1Vt+XSPHKe/ropOitXv/7yfvtvPPXZuWND+yZD/LPZeWGNvffp9mmJEsAAABjdFJOUwC+Jf6IiFEBUAYSGP6iDv2H3Hm9RmS/KVyFvr73xc/e+4Xl12OFt3B4Ov6dczPlkeQWT4vaUVH69lzYz+Grq/GtyuTpln6INe4po3bgs8Xo7zrqvunrpPL0SrhcbKDwXvH+9cf4QCEAAAXiSURBVEjHpZYJUFNHGIADKQ03cpVTGMETb6t2PMfb1rY62vtuLYRASCQhzQGYBGJCQokygSSF0JKDaAhoJKCUO9w3BIocpVyKirfW22rb3UdE0BYz4zfJvJ3M/73///ft2w0K9QrYuK1evXr2DCsrq9cmsEKYgTB71apVbjZTHcxuMpVXUMBOi4qKjs2ors6IjY6OikpLY7MLeDyqgoYlc5hMzW7MFMmSQ4VGdGxsRk3NzcOHb9bUZGSYTDYbh+dRD4VhiRrLqdUto/FMeYB25AhQYk1KQQFQaCAXkblsan0Yu0UzFrJYKpVEIKira6qrqxMIBBKJSqVisVi6cwCuw45Fdi/OhUeoiZMIoRMcR9j5gvDOl0uX7voJkpCQcAKSMA78iYCwa+n2zyaXZ/d5+hCfn6VUKiv0eh3rNwhLp9Pp9fqKigrlmeLi4qpiNJ+fvuSLZ2mWpGcJhktLg4IYTkKhLIs/NMRXy2R0gFAo1DIYt6RSqbi0dLiOn779aR7gDA+2t7cLDTxeQVp0ev2NG9VljeApgdkG002l0shksra9/e9Sgbrx3XHpK7V6ZHDzLBcXAw8fw46Krb9x9mxXmZrfITt4MDw8BoePOISNxCpcXDa9XYpWo22R2f66oUE1CwUe9lt4fEw4kLqAlC54eH0kbdyKiAgDElwCe0YaZEiqxSqZ7D0k5Ud4HJTKqru66rOuXr9+NzttQop0ghGzRmT09+FgBYtOd0Wk9TDTwejYsrIy/vA/Dx48ZNHZBUh5QPoQie2kC2EsZsE5IX0mIq3lQSkqWp2FVt3/A3CV1dkpNOCR8tbDiG866Z1IJkelk2G8vHW8VFx4OBt9qe3yvV8R7l1uu5StgJmwa5HynAzibUjstwxqELLmZ/JAU2z6pR+m0KaNCAPSOhjhoFAkuyCSc7JCazkupeJxbKHy7ulTp0+Bz2l4vaxk0A5FRkYiHbgqtNwVyJRbcMnY2XA0lxqRio8RXim6+uMEbUVjDFAdETsXRizDUozjS33HMUqkAxxspFJTU3FCPaH1/s8m7h4nVJCxYUQiGUqLOZz4gPEVsSBYxPwUPuePqSAVjhd0JafoFxN3csbENETaCFsiSkMsTIvPPzGJCVMtVNBAfTjDaMKdwyZuXxMraMDhcBaCRBqNKNjNJM3vISVVgq7eVGCBxTMEjd0+YuKJnEEDHTGZnG0ou8DKlET/iXfDv4dUW7kINY+GxdIUVIN2rKOv79HAyfy+vmo5A2xEGg2TM88y8GJLYq/bs73Itye35aLrPC0WvAIKLWOspOTE74CBoZtjYrB5aTQaisMntS0XejdMenXdfHsvAE3L4XDIZIa4qqi1NbSoKLS1lSCnUCjSpKQkSm1Lbn/zB1P2CGvf5p4LuTCAQhEnFxNyCOXF8nJwKY4HpCQlxef299pveG5nsfWzb+4lSaUwhmssL5dncrmZ8vKqEG4KQJSS2Gzv647CPLcvoxb42dvDu3IzMzONRuAAKyQkUxQiOn9eJLLf6oX571PA2ie+UBQCkBuPGY1GMCCFkCDnN9mhMP8joTCu4Oako5BjCEePJgJImzHTnTi2ziRS4oFJxAEOONtOf05ZOieCwGBAnOkbHOdv+bLTzdbiQFzw95OxsH35mYhxD4ibpAS4Y8w5STGO8/2CTfjNdzTLQWFslu/cShgYHCQ0b/Ew04GpPAKuDeTk5Py5ZbmN2ZLNcmfllRPX+vtXOpotAStQLNEpSbkrzXfAigl0ys4Tp+SuNNvZu2bNmj0sCevcGVKAp6fnXnOcOVU6SVN+U5NAkjeaXFjY/dccM6R9ydnqkuqS9MYGGZ1KI1Z27zND2q/PQ3c86uBnZWfngdO2t
27nv/y2bA08vL28LnDQQfHx8LgLe3l5cnZtp+9HnZ6PwnHR35WWiQKW/01i1pYe30fXmfYdAbGkvq60tAT2rQlIGGJTIrax97TyO5l1eMSgRN+fn5TXXgrxGYPjB/hd2Pv3OfrikPa+vXn2H9FA/Uq/MvT1UO/sqOGFEAAAAASUVORK5CYII= 2x`,alt:"cup"}),(0,s.h)("span",null,r)),c&&(0,s.h)("div",{className:rR.win_header_temp},(0,s.h)("div",{className:rR.win_title},(0,s.h)("span",{dangerouslySetInnerHTML:{__html:a.title}})),(0,s.h)("div",{className:rR.win_score},(0,s.h)("img",{src:rD,alt:"cup"}),(0,s.h)("span",null,r))))},rF=({solution:e,mission:t})=>(0,s.h)("div",{className:rR.win_left_sudoku},(0,s.h)("svg",{width:"500px",height:"500px",viewBox:"0 0 500 500",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},(0,s.h)("title",null,"Game_Field"),(0,s.h)("g",{id:"Solver-",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},(0,s.h)("g",{id:"Game_Field"},(0,s.h)("rect",{id:"background",stroke:"#000000",strokeWidth:"2",fill:"#000000",x:"1",y:"1",width:"498",height:"498"}),(0,s.h)("g",{id:"Box-1",transform:"translate(2, 2)"},(0,s.h)("g",{id:"Box_bg",fill:"#BEC6D4"},(0,s.h)("polygon",{id:"White_bg",points:"0 164 164 164 164 0 0 0"})),(0,s.h)("g",{id:"Cell-1",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-2",transform:"translate(55, 0)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-3",transform:"translate(110, 0)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-4",transform:"translate(0, 55)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-5",transform:"translate(55, 55)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-6",transform:"translate(110, 55)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-7",transform:"translate(0, 110)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-8",transform:"translate(55, 110)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-9",transform:"translate(110, 110)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"}))),(0,s.h)("g",{id:"Box-2",transform:"translate(168, 2)"},(0,s.h)("g",{id:"Box_bg",fill:"#9A9A9A"},(0,s.h)("polygon",{id:"White_bg",points:"0 164 164 164 164 0 0 0"})),(0,s.h)("g",{id:"Cell-1",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-2",transform:"translate(55, 0)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-3",transform:"translate(110, 0)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-4",transform:"translate(0, 55)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-5",transform:"translate(55, 55)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-6",transform:"translate(110, 55)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-7",transform:"translate(0, 110)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-8",transform:"translate(55, 110)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-9",transform:"translate(110, 110)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"}))),(0,s.h)("g",{id:"Box-3",transform:"translate(334, 2)"},(0,s.h)("g",{id:"Box_bg",fill:"#9A9A9A"},(0,s.h)("polygon",{id:"White_bg",points:"0 164 164 164 164 0 0 0"})),(0,s.h)("g",{id:"Cell-1",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-2",transform:"translate(55, 0)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-3",transform:"translate(110, 0)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-4",transform:"translate(0, 55)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-5",transform:"translate(55, 55)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-6",transform:"translate(110, 55)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-7",transform:"translate(0, 110)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-8",transform:"translate(55, 110)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-9",transform:"translate(110, 110)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"}))),(0,s.h)("g",{id:"Box-4",transform:"translate(2, 168)"},(0,s.h)("g",{id:"Box_bg",fill:"#9A9A9A"},(0,s.h)("polygon",{id:"White_bg",points:"0 164 164 164 164 0 0 0"})),(0,s.h)("g",{id:"Cell-1",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-2",transform:"translate(55, 0)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-3",transform:"translate(110, 0)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-4",transform:"translate(0, 55)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-5",transform:"translate(55, 55)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-6",transform:"translate(110, 55)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-7",transform:"translate(0, 110)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-8",transform:"translate(55, 110)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-9",transform:"translate(110, 110)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"}))),(0,s.h)("g",{id:"Box-5",transform:"translate(168, 168)"},(0,s.h)("g",{id:"Box_bg",fill:"#9A9A9A"},(0,s.h)("polygon",{id:"White_bg",points:"0 164 164 164 164 0 0 0"})),(0,s.h)("g",{id:"Cell-1",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-2",transform:"translate(55, 0)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-3",transform:"translate(110, 0)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-4",transform:"translate(0, 55)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-5",transform:"translate(55, 55)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-6",transform:"translate(110, 55)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-7",transform:"translate(0, 110)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-8",transform:"translate(55, 110)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-9",transform:"translate(110, 110)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"}
27))),(0,s.h)("g",{id:"Box-6",transform:"translate(334, 168)"},(0,s.h)("g",{id:"Box_bg",fill:"#9A9A9A"},(0,s.h)("polygon",{id:"White_bg",points:"0 164 164 164 164 0 0 0"})),(0,s.h)("g",{id:"Cell-1",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-2",transform:"translate(55, 0)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-3",transform:"translate(110, 0)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-4",transform:"translate(0, 55)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-5",transform:"translate(55, 55)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-6",transform:"translate(110, 55)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-7",transform:"translate(0, 110)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-8",transform:"translate(55, 110)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-9",transform:"translate(110, 110)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"}))),(0,s.h)("g",{id:"Box-7",transform:"translate(2, 334)"},(0,s.h)("g",{id:"Box_bg",fill:"#9A9A9A"},(0,s.h)("polygon",{id:"White_bg",points:"0 164 164 164 164 0 0 0"})),(0,s.h)("g",{id:"Cell-1",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-2",transform:"translate(55, 0)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-3",transform:"translate(110, 0)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-4",transform:"translate(0, 55)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-5",transform:"translate(55, 55)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-6",transform:"translate(110, 55)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-7",transform:"translate(0, 110)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-8",transform:"translate(55, 110)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-9",transform:"translate(110, 110)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"}))),(0,s.h)("g",{id:"Box-8",transform:"translate(168, 334)"},(0,s.h)("g",{id:"Box_bg",fill:"#9A9A9A"},(0,s.h)("polygon",{id:"White_bg",points:"0 164 164 164 164 0 0 0"})),(0,s.h)("g",{id:"Cell-1",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-2",transform:"translate(55, 0)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-3",transform:"translate(110, 0)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-4",transform:"translate(0, 55)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-5",transform:"translate(55, 55)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-6",transform:"translate(110, 55)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-7",transform:"translate(0, 110)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-8",transform:"translate(55, 110)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-9",transform:"translate(110, 110)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"}))),(0,s.h)("g",{id:"Box-9",transform:"translate(334, 334)"},(0,s.h)("g",{id:"Box_bg",fill:"#9A9A9A"},(0,s.h)("polygon",{id:"White_bg",points:"0 164 164 164 164 0 0 0"})),(0,s.h)("g",{id:"Cell-1",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-2",transform:"translate(55, 0)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-3",transform:"translate(110, 0)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-4",transform:"translate(0, 55)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-5",transform:"translate(55, 55)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-6",transform:"translate(110, 55)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-7",transform:"translate(0, 110)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-8",transform:"translate(55, 110)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})),(0,s.h)("g",{id:"Cell-9",transform:"translate(110, 110)",fill:"#FFFFFF"},(0,s.h)("polygon",{id:"Fill-1",points:"0 54 54 54 54 0 0 0"})))))),(0,s.h)("div",{className:rR.win_left_sudoku_board},(()=>{let n=[];for(let r=0;r<9;r++){let i=[];for(let n=0;n<9;n++){let o=9*(Math.floor(n/3)+3*Math.floor(r/3))+(([0,3,6].includes(n)?0:[1,4,7].includes(n)?1:2)+3*([0,3,6].includes(r)?0:[1,4,7].includes(r)?1:2)),a="#"+(parseInt(t[o])?"344861":"335ab0"),l=e[o];i.push((0,s.h)("span",{key:n,style:{color:a}},l))}n.push((0,s.h)("div",{key:r,className:"row"},i))}return n})())),r$=({portrait:e,hideBtn:t,button:n,type:r})=>(0,s.h)("div",{className:`${rR.win_btn} ${r===id.heartsRound?rR.middle_delay:""} ${r===id.heartsWin?rR.max_delay:""}`},!t&&n,e&&(0,s.h)("div",{className:rR.win_left_banner},(0,s.h)("div",{className:`${rR.win_left_banner_content} ${rR.small}`,id:"win-screen-banner"}))),rj=({postcardIndex:e,totalPostcards:t,unlockedPieces:n,totalPieces:r,icon:i,colorScheme:o,translations:l,onEventClick:c,subscribe:u,unsubscribe:d})=>{var h,p,f;let[g,m]=(0,a.useState)(0);(0,a.useEffect)(()=>{m(r>0?n/r*100:0)},[n,r]);let v=(null!=(h=null==l?void 0:l.winWidgetTitle)?h:"Postcards {0} of {1}").replace("{0}",String(e+1)).replace("{1}",String(t)),y=null!=(p=null==l?void 0:l.winWidgetButton)?p:"To Event";return(0,s.h)("div",{className:rR.postcards_win},(0,s.h)("div",{className:rR.postcards_win_controls},(0,s.h)(eX,{small:!0,subscribe:u,unsubscribe:d}),(0,s.h)("button",{className:`${rR.postcards_win_btn} ${null!=o?o:""}`,onClick:c},y)),(0,s.h)("div",{className:rR.postcards_win_card,onClick:c},i&&(0,s.h)("img",{src:i,alt:"postcard",className:rR.postcards_win_card_img}),(0,s.h)("div",{className:rR.postcards_win_content},(0,s.h)("p",{className:rR.postcards_win_title},v),(0,s.h)("div",{className:rR.postcards_win_bar},(0,s.h)("span",{style:{width:`${g}%`}})),(0,s.h)("div",{className:rR.postcards_win_caption},(0,s.h)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:rR.postcards_win_caption_icon},(0,s.h)("rect",{x:"1.5",y:"2.5",width:"13",height:"11",rx:"1.5",stroke:"white",strokeOpacity:"0.8"}),(0,s.h)("path",{d:"M1.5 10.5L4.5 7.5L7 10L10 6.5L14.5 11.5",stroke:"white",strokeOpacity:"0.8",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.h)("circle",{cx:"5.5",cy:"5.5",r:"1",fill:"white",fillOpacity:"0.8"})),(0,s.h)("span",null,(null!=(f=null==l?void 0:l.winWidgetProgressText)?f:"{0} of {1}").replace("{0}",String(n)).replace("{1}",String(r)))))))},rH=()=>(0,s.h)("div",{className:rR.win_confetti},(0,s.h)("img",{className:`${rR.confetti} ${rR.c1}`,src:"/build/images/dc/confetti1.png",srcSet:"/build/images/dc/confetti1.png 1x, /build/images/dc/[email protected] 2x",alt:"confetti"}),(0,s.h)("img",{className:`${rR.confetti} ${rR.c2}`,src:"/build/images/dc/confetti2.png",srcSet:"/build/images/dc/confetti2.png 1x, /build/images/dc/[email protected] 2x",alt:"confetti"}),(0,s.h)("img",{className:`${rR.confetti} ${rR.c3}`,src:"/build/images/dc/confetti3.png",srcSet:"/build/images/dc/confetti3.png 1x, /build/images/dc/[email protected] 2x",alt:"confetti"}));
27var rz={btn:"postcards-styles_btn__FyZSi",white:"postcards-styles_white__v2qYc",white_green:"postcards-styles_white_green__AnncI",green:"postcards-styles_green__TBoQi",blue:"postcards-styles_blue__nWiIu",confettiCanvas:"postcards-styles_confettiCanvas__9JAmk",postcardsWrapper:"postcards-styles_postcardsWrapper__CIzmP",flyingKeysContainer:"postcards-styles_flyingKeysContainer__Y-3YG",flyingKey:"postcards-styles_flyingKey__lcYim",currencyLock:"postcards-styles_currencyLock__jbqlF",currencyLock_base:"postcards-styles_currencyLock_base__s2MAZ",currencyLock_top:"postcards-styles_currencyLock_top__9Jg6N",currencyLockClosing:"postcards-styles_currencyLockClosing__V9b9C",lockScaleOut:"postcards-styles_lockScaleOut__i7ipi",currencyLockFadeIn:"postcards-styles_currencyLockFadeIn__3MuF-",currencyFadeIn:"postcards-styles_currencyFadeIn__J8eGE",cellBackgroundOverlay:"postcards-styles_cellBackgroundOverlay__IjOrx",cellFadeOut:"postcards-styles_cellFadeOut__UaaCP",cellFadeOutWrapper:"postcards-styles_cellFadeOutWrapper__qs4tp",cellActiveBg:"postcards-styles_cellActiveBg__THcEb",postcardBackground:"postcards-styles_postcardBackground__5A0Xu",currencyFakeCell:"postcards-styles_currencyFakeCell__oHjbJ",bunch:"postcards-styles_bunch__IBw-C",currencyCellOverlay:"postcards-styles_currencyCellOverlay__H4Wl-",currencyBunchCellOpening:"postcards-styles_currencyBunchCellOpening__ck7RG",lockerIcon:"postcards-styles_lockerIcon__H3-ZS",defaultLockScaleOutWithOpacity:"postcards-styles_defaultLockScaleOutWithOpacity__8Qmdz",defaultLockScaleIn:"postcards-styles_defaultLockScaleIn__pxjUH",lockOpen:"postcards-styles_lockOpen__bdJLN",currencyCellOpening:"postcards-styles_currencyCellOpening__hM3WG",defaultLockScaleOut:"postcards-styles_defaultLockScaleOut__uUQSZ",flare:"postcards-styles_flare__z8eoH",cellGlareMove:"postcards-styles_cellGlareMove__R7kSN",visible:"postcards-styles_visible__s8MlM",active:"postcards-styles_active__VGslw",currencyCellClosingWithDelay:"postcards-styles_currencyCellClosingWithDelay__F0VRE",currencyCellClosing:"postcards-styles_currencyCellClosing__ezzpW",tutorialCurrencyImage:"postcards-styles_tutorialCurrencyImage__VWxZI",difficultList:"postcards-styles_difficultList__0wYFV",difficultTitle:"postcards-styles_difficultTitle__tlmqp",difficultActive:"postcards-styles_difficultActive__fjojG",difficultDisabled:"postcards-styles_difficultDisabled__5NdsL",portrait:"postcards-styles_portrait__bdwDc",openBtnCounter:"postcards-styles_openBtnCounter__r4YX2",postcards:"postcards-styles_postcards__kQg0e",redesignGradient:"postcards-styles_redesignGradient__eROzS",full:"postcards-styles_full__2joCz",left:"postcards-styles_left__sPZhX",withLeaderboard:"postcards-styles_withLeaderboard__whDR2",hiw:"postcards-styles_hiw__52lr5",title:"postcards-styles_title__csSq9",glare:"postcards-styles_glare__oI2cb",simpleSpinner:"postcards-styles_simpleSpinner__6lfeL",glare2:"postcards-styles_glare2__6539O",ellipse:"postcards-styles_ellipse__Yce-v",postcardsIcon:"postcards-styles_postcardsIcon__PsarZ",right:"postcards-styles_right__xYCi8",blocked:"postcards-styles_blocked__FP7it",leaderboardRight:"postcards-styles_leaderboardRight__SRpmd",withMode:"postcards-styles_withMode__UfFuH",small:"postcards-styles_small__v-iHy",currencyChip:"postcards-styles_currencyChip__7BJl0",hintContainer:"postcards-styles_hintContainer__w642g",hint:"postcards-styles_hint__21u3R",noGapIcon:"postcards-styles_noGapIcon__AZ3i4",headerWrapper:"postcards-styles_headerWrapper__2kOnQ",modes:"postcards-styles_modes__iGvCY",modesPopup:"postcards-styles_modesPopup__oERCz",modesPopupTitle:"postcards-styles_modesPopupTitle__C8ppr",modesPopupBody:"postcards-styles_modesPopupBody__vXCPc",subtitle:"postcards-styles_subtitle__U-LwB",postcardReward:"postcards-styles_postcardReward__DMvsr",leaderboardReward:"postcards-styles_leaderboardReward__F32tZ",rewardImage:"postcards-styles_rewardImage__YSjGs",crownShadow:"postcards-styles_crownShadow__892jT",envelope:"postcards-styles_envelope__V4V0T",rewardCrown:"postcards-styles_rewardCrown__JJwDq",bronze:"postcards-styles_bronze__1jNhp",silver:"postcards-styles_silver__h5LrF",gold:"postcards-styles_gold__4xvGm",copper:"postcards-styles_copper__S5Fj0",eventRewardLeaderboard:"postcards-styles_eventRewardLeaderboard__g-iUu",eventReward:"postcards-styles_eventReward__3tu-V",bigReward:"postcards-styles_bigReward__1j67p",copper2:"postcards-styles_copper2__bSjG1",redesignTimer:"postcards-styles_redesignTimer__-8wc-",sliderItem:"postcards-styles_sliderItem__gOJtW",redesignCurrencySliderItem:"postcards-styles_redesignCurrencySliderItem__TLUVg",redesignCurrencySliderParentItem:"postcards-styles_redesignCurrencySliderParentItem__pztea",redesignSliderContainer:"postcards-styles_redesignSliderContainer__28yvC",sliderContainer:"postcards-styles_sliderContainer__KvLkI",slider:"postcards-styles_slider__d-Rl-",arrow:"postcards-styles_arrow__HgtYD",redesignCurrencyArrow:"postcards-styles_redesignCurrencyArrow__BGsNs",postcardCompleted:"postcards-styles_postcardCompleted__olRN7",postcardBounce
27:"postcards-styles_postcardBounce__oDQMp",bigGlare:"postcards-styles_bigGlare__JGP9y",cellBigGlareMove:"postcards-styles_cellBigGlareMove__6S-M3",glow:"postcards-styles_glow__W0kcp",glowPulse:"postcards-styles_glowPulse__kiVzO",postcard:"postcards-styles_postcard__fJTPs",withGlare:"postcards-styles_withGlare__IO2xn",lockedCard:"postcards-styles_lockedCard__qHb-h",levelsCount:"postcards-styles_levelsCount__ehHg-",completedCell:"postcards-styles_completedCell__tSn6j",cell:"postcards-styles_cell__t6vyH",currencyCell:"postcards-styles_currencyCell__ccrEy",completed:"postcards-styles_completed__Z1MGH",leftBorder:"postcards-styles_leftBorder__0Xu4B",rightBorder:"postcards-styles_rightBorder__Rqw7K",topBorder:"postcards-styles_topBorder__tzGPi",bottomBorder:"postcards-styles_bottomBorder__hEach",progressBar:"postcards-styles_progressBar__JpLWk",circleBackground:"postcards-styles_circleBackground__FLy-R",circleProgress:"postcards-styles_circleProgress__vcz9q",easy:"postcards-styles_easy__E3wZ0",medium:"postcards-styles_medium__D-jj7",hard:"postcards-styles_hard__BxowT",expert:"postcards-styles_expert__knyzY",lockerBounce:"postcards-styles_lockerBounce__yTrN-",currencyLockAnimation:"postcards-styles_currencyLockAnimation__yR3q9",dots:"postcards-styles_dots__BPN7K",item:"postcards-styles_item__hNEP6",hiw3:"postcards-styles_hiw3__Ln-sn",hiw4:"postcards-styles_hiw4__hsshq",tutorialAnimation:"postcards-styles_tutorialAnimation__86yUR",cursor:"postcards-styles_cursor__HgsuD",bounceCursorAnimation:"postcards-styles_bounceCursorAnimation__s6REu",moveCursorAnimation:"postcards-styles_moveCursorAnimation__OUbwQ",blocksContainer:"postcards-styles_blocksContainer__BAC-9",difficultyItem:"postcards-styles_difficultyItem__6dOZY",tutorialLockerBounceAnimation:"postcards-styles_tutorialLockerBounceAnimation__VEyhL",difficultyLabel:"postcards-styles_difficultyLabel__b96Ju",labelEasy:"postcards-styles_labelEasy__w-8iL",tutorialLabelAnimation:"postcards-styles_tutorialLabelAnimation__BPyvL",labelMedium:"postcards-styles_labelMedium__nM0oa",labelHard:"postcards-styles_labelHard__QG12z",labelExpert:"postcards-styles_labelExpert__OREQ0",leaderboard:"postcards-styles_leaderboard__gB7dM",leaderboard_title:"postcards-styles_leaderboard_title__OBkmm",rtl:"postcards-styles_rtl__68kf1",leaderboard_body:"postcards-styles_leaderboard_body__hcBYE",loading:"postcards-styles_loading__C7jCL",leaderboard_body_icon:"postcards-styles_leaderboard_body_icon__uYKrs",crown:"postcards-styles_crown__nQFlv",leaderboard_body_name:"postcards-styles_leaderboard_body_name__LvJsq",leaderboard_body_item:"postcards-styles_leaderboard_body_item__7JOwc",me:"postcards-styles_me__DoDzJ",leaderboard_win:"postcards-styles_leaderboard_win__ab4oI",leaderboard_win_image:"postcards-styles_leaderboard_win_image__muXZS",leaderboard_win_image_place:"postcards-styles_leaderboard_win_image_place__NIOvx",leaderboard_win_check:"postcards-styles_leaderboard_win_check__p-kWU",leaderboard_win_text:"postcards-styles_leaderboard_win_text__OpiTR",eventLabel:"postcards-styles_eventLabel__409hU",getMoreKeysPlayBtn:"postcards-styles_getMoreKeysPlayBtn__b00rz",getMoreKeysCancelBtn:"postcards-styles_getMoreKeysCancelBtn__LrsC1",cancelWhite:"postcards-styles_cancelWhite__1WRXT",cancelWhiteGreen:"postcards-styles_cancelWhiteGreen__K3Sdv",gamesPopup:"postcards-styles_gamesPopup__tJ-3r",gamesPopupRow:"postcards-styles_gamesPopupRow__dNm-7",gamesPopupLink:"postcards-styles_gamesPopupLink__zsNRn",compact:"postcards-styles_compact__AMc8-"};let rG={1:{gradA:["#ffaf10","#fff0ad","#ffaf10"],gradB:["#fff","#ffc63a"],solid:"#de9946"},2:{gradA:["#94B8CB","#D8EDF0","#94B8CB"],gradB:["#fff","#B0CBD7"],solid:"#98BBCD"},3:{gradA:["#EE743C","#FFC2A6","#EE743C"],gradB:["#FFEBEB","#F38D5E"],solid:"#D57447"}},rq={gradA:["#C9E6FF","#F6FBFF","#C9E6FF"],gradB:["#fff","#DDEFFF"],solid:"#B2DCFF"};function rU(e){var t=rG[e]||rq;let n=`crowna-${e}`,r=`crownb-${e}`;return`<svg fill="none" height="18" viewBox="0 0 27 18" width="27" xmlns="http://www.w3.org/2000/svg"><defs><linearGradient id="${n}" gradientUnits="userSpaceOnUse" x1="26.624" x2=".374023" y1="9" y2="9"><stop offset="0" stop-color="${t.gradA[0]}"/><stop offset=".504808" stop-color="${t.gradA[1]}"/><stop offset="1" stop-color="${t.gradA[2]}"/></linearGradient><linearGradient id="${r}" gradientUnits="userSpaceOnUse" x1="13.499" x2="13.499" y1="0" y2="4.125"><stop offset="0" stop-color="${t.gradB[0]}"/><stop offset="1" stop-color="${t.gradB[1]}" stop-opacity="0"/></linearGradient></defs><path d="m.449141 4.59577c.756519 3.06385 2.924879 13.40423 2.924879 13.40423h20.24998s2.1684-10.34038 2.9249-13.40423-4.413.27923-5.926.27923-4.8694-4.875-7.1216-4.875c-2.2523 0-5.61119 4.875-7.12426 4.875-1.51308 0-6.684421-3.34308-5.927899-.27923z" fill="#fff" fill-opacity=".01"/><path d="m.449141 4.59577c.756519 3.06385 2.924879 13.40423 2.924879 13.40423h20.24998s2.1684-10.34038 2.9249-13.40423-4.413.27923-5.926.27923-4.8694-4.875-7.1216-4.875c-2.2523 0-5.61119 4.875-7.12426 4.875-1.51308 0-6.684421-3.34308-5.927899-.27923z" fill="url(#${n})"/><path d="m13.501.375c.4419 0 .9933.246072 1.6357.69434.6311.44034 1.2922 1.03303 1.9473 1.64257.6461.60127 1.2926 1.22488 1.8681 1.69239.289.23473.5722.4412.8409.58984.2629.14545.5477.25586.83.25586.246-.00003.5358-.06558.8282-.15332.299-.08976.6328-.21318.9775-.34668.701-.27152 1.4443-.58441 2.125-.80664.3377-.11025.6454-.19347.9102-.23535.2709-.04286.4629-.03692.5859-.00098.1016.02972.1448.0733.1709.14649.036.1009.0511.29918-.0361.65234-.38 1.53876-1.1119 4.89624-1.7481 7.86234-.3184 1.4845-.6139 2.8731-.8291 3.8906-.1076.5088-.195.925-.2558 1.2139-.0117.0555-.0226.1064-.0323.1523h-19.64059c-.00966-.0459-.02053-.0968-.03223-.1523-.06079-.2889-.14828-.7051-.25586-1.2139-.21515-1.0175-.51067-2.4061-.8291-3.8906-.63622-2.9661-1.3681-6.32358-1.748043-7.86234-.087043-.35252-.071968-.55033-.036133-.65137.026129-.07328.069187-.11767.170898-.14746.123128-.03596.315868-.04188.586918.00098.26479.0419.57245.12514.91015.23535.68082.22219 1.42393.53516 2.125.80664.34489.13355.67935.25691.97852.34668.29246.08775.58213.15331.82812.15332.28231 0 .56709-.11042.83008-.25586.26871-.1486.5518-.35517.84082-.58984.57573-.46748 1.22269-1.
2709114 1.86914-1.69239.65541-.60953 1.31691-1.20222 1.94821-1.64257.6426-.448206 1.1939-.694228 1.6358-.69434z" stroke="url(#${r})" stroke-width=".75"/><path d="m13.5019 0c2.2521 0 5.6081 4.87429 7.1213 4.875 1.513 0 6.6826-3.3429 5.926-.27905l-.1574.65551c-.8616 3.66076-2.7671 12.74854-2.7671 12.74854h-20.25002s-1.90548-9.08778-2.767088-12.74854l-.157471-.65551c-.756507-3.06379 4.414309.27893 5.927489.27905 1.51306 0 4.87199-4.87491744 7.12429-4.875zm0 .375c-.4419.000021-.9935.246052-1.6363.69434-.6312.44033-1.2922 1.03335-1.94746 1.64282-.64639.60118-1.29345 1.22442-1.86914 1.69189-.28907.23472-.57281.44097-.84155.5896-.263.14544-.54753.25635-.82984.25635-.24596-.00002-.53521-.06608-.82764-.15381-.29916-.08976-.63361-.21215-.97851-.3457-.70119-.27151-1.44454-.58563-2.12549-.80786-.3377-.1102-.64562-.19249-.9104-.23438-.27105-.04286-.46354-.03743-.586669-.00146-.101759.02978-.144519.07392-.170654.14721-.035964.10089-.051301.29875.035888.65186.379955 1.53878 1.112065 4.89646 1.748295 7.86254.31841 1.4844.61322 2.8732.82837 3.8906.10756.5087.19556.9249.25634 1.2137.0117.0555.02257.1064.03223.1523h19.64063c.0097-.0459.0205-.0968.0322-.1523.0608-.2888.1488-.705.2564-1.2137.2151-1.0174.5099-2.4062.8283-3.8906.6363-2.96609 1.3684-6.32376 1.7483-7.86254.0872-.35306.0718-.55092.0359-.65186-.0261-.07336-.0689-.11745-.1706-.14721-.123-.03595-.315-.0414-.586.00146-.2647.04188-.5727.12413-.9104.23438-.6807.22223-1.4237.53634-2.1247.80786-.3447.13349-.6788.25596-.9778.3457-.2925.08776-.5824.15381-.8284.15381-.2822-.00009-.5663-.11098-.8291-.25635-.2687-.14864-.5525-.35484-.8415-.5896-.5755-.46748-1.2224-1.09072-1.8684-1.69189-.6551-.6095-1.3158-1.20251-1.9468-1.64282-.6425-.448268-1.1936-.69434-1.6355-.69434z" fill="${t.solid}"/></svg>`}let rW=({finishLinePos:e})=>(0,s.h)("svg",{"data-place":e,xmlns:"http://www.w3.org/2000/svg",width:"12",height:"52",viewBox:"0 0 12 52",fill:"none"},(0,s.h)("g",{clipPath:"url(#clip0_6197_7000)"},(0,s.h)("rect",{width:"4",height:"4",fill:"white",fillOpacity:"0.6"}),(0,s.h)("rect",{y:"8",width:"4",height:"4",fill:"white",fillOpacity:"0.6"}),(0,s.h)("rect",{y:"16",width:"4",height:"4",fill:"white",fillOpacity:"0.6"}),(0,s.h)("rect",{y:"24",width:"4",height:"4",fill:"white",fillOpacity:"0.6"}),(0,s.h)("rect",{y:"32",width:"4",height:"4",fill:"white",fillOpacity:"0.6"}),(0,s.h)("rect",{y:"40",width:"4",height:"4",fill:"white",fillOpacity:"0.6"}),(0,s.h)("rect",{y:"48",width:"4",height:"4",fill:"white",fillOpacity:"0.6"}),(0,s.h)("rect",{x:"4",y:"4",width:"4",height:"4",fill:"white",fillOpacity:"0.6"}),(0,s.h)("rect",{x:"4",y:"12",width:"4",height:"4",fill:"white",fillOpacity:"0.6"}),(0,s.h)("rect",{x:"4",y:"20",width:"4",height:"4",fill:"white",fillOpacity:"0.6"}),(0,s.h)("rect",{x:"4",y:"28",width:"4",height:"4",fill:"white",fillOpacity:"0.6"}),(0,s.h)("rect",{x:"4",y:"36",width:"4",height:"4",fill:"white",fillOpacity:"0.6"}),(0,s.h)("rect",{x:"4",y:"44",width:"4",height:"4",fill:"white",fillOpacity:"0.6"}),(0,s.h)("rect",{x:"8",width:"4",height:"4",fill:"white",fillOpacity:"0.6"}),(0,s.h)("rect",{x:"8",y:"8",width:"4",height:"4",fill:"white",fillOpacity:"0.6"}),(0,s.h)("rect",{x:"8",y:"16",width:"4",height:"4",fill:"white",fillOpacity:"0.6"}),(0,s.h)("rect",{x:"8",y:"24",width:"4",height:"4",fill:"white",fillOpacity:"0.6"}),(0,s.h)("rect",{x:"8",y:"32",width:"4",height:"4",fill:"white",fillOpacity:"0.6"}),(0,s.h)("rect",{x:"8",y:"40",width:"4",height:"4",fill:"white",fillOpacity:"0.6"}),(0,s.h)("rect",{x:"8",y:"48",width:"4",height:"4",fill:"white",fillOpacity:"0.6"})),(0,s.h)("defs",null,(0,s.h)("clipPath",{id:"clip0_6197_7000"},(0,s.h)("rect",{width:"12",height:"52",fill:"white"})))),rV=({active:e,users:t,translations:n,link:r,colorScheme:i,medal:o,place:a,maxLevels:c,meLabel:u,onClick:d,full:h,rtl:p,externalLoading:f})=>{let[g,m]=(0,l.useState)(!0),v=f||g,[y,w]=(0,l.useState)([]),[b,_]=(0,l.useState)(0);(0,l.useEffect)(()=>{if(!t||0===t.length)return void(o&&m(!1));let e=t.map((e,t)=>({name:e.name.split(" ").slice(1).join(" ")||e.name,levels:e.levels,place:t+1,crown:e.levels>=c,me:t+1===a})),n=new Set;for(let t=1;t<=Math.min(3,e.length);t++)n.add(t);n.add(a);let r=Math.min(5,e.length)-n.size;
27for(let e=a-1;e>=1&&r>0;e--)n.has(e)||(n.add(e),r--);for(let t=a+1;t<=e.length&&r>0;t++)n.has(t)||(n.add(t),r--);let i=Array.from(n).sort((e,t)=>t-e).map(t=>e[t-1]),s=i.findIndex(e=>e.crown);w(i),_(s>=0?s:i.length),m(!1)},[t,a,c]);let S=!!d&&!o;return(0,s.h)("div",{className:`${rz.leaderboard} ${p?rz.rtl:""} ${h?rz.full:""} ${e?rz.active:""}`,onClick:e=>{S&&(e.preventDefault(),d())},style:S?{cursor:"pointer"}:void 0},(0,s.h)("div",{className:`${rR.win_table_title} ${rz.leaderboard_title}`},(0,s.h)("div",{className:rR.win_table_title_text},n.leaderboard_title||"Event Leaderboard"),r&&!o&&(0,s.h)("span",{className:`${rR.win_table_title_link} ${i}`},n.leaderboard_widget_button||r.text)),o?(0,s.h)("div",{className:`${rR.win_table_items} ${rz.leaderboard_win} ${v?rz.loading:""}`},(0,s.h)("div",{className:rz.leaderboard_win_image},(0,s.h)("div",{dangerouslySetInnerHTML:{__html:rU(a)}}),(0,s.h)("div",{className:`${rz.leaderboard_win_image_place}`,"data-place":a},a)),(0,s.h)("div",{className:rz.leaderboard_win_text},(0,s.h)("div",null,n.leaderboard_completed||"Postcard completed!"),(0,s.h)("span",null,(n.leaderboard_description||"Your finished position: {0}").replace("{0}",String(a)))),(0,s.h)("div",{className:rz.leaderboard_win_check},(0,s.h)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 22 22",fill:"none"},(0,s.h)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.8269 4.89533C20.2703 5.32053 20.2814 6.02092 19.8517 6.45971L9.45231 17.0804C9.24175 17.2954 8.95209 17.4168 8.64952 17.4168C8.34694 17.4168 8.05729 17.2954 7.84672 17.0804L2.14859 11.261C1.71894 10.8222 1.73007 10.1218 2.17344 9.69665C2.61682 9.27145 3.32453 9.28246 3.75418 9.72125L8.64952 14.7207L18.2461 4.91993C18.6758 4.48114 19.3835 4.47013 19.8269 4.89533Z",fill:"white"})))):(0,s.h)("div",{className:`${rz.leaderboard_body} ${v?rz.loading:""}`},0===b&&(0,s.h)(rW,{finishLinePos:b}),y.map((e,t)=>(0,s.h)(s.Fragment,null,(0,s.h)("div",{key:t,className:`${rz.leaderboard_body_item} ${e.me?rz.me:""}`},(0,s.h)("div",{className:`${rz.leaderboard_body_icon} ${e.crown?rz.crown:""}`,"data-place":e.place},(0,s.h)("span",null,e.place),e.crown&&(0,s.h)("div",{dangerouslySetInnerHTML:{__html:rU(e.place)}})),(0,s.h)("div",{className:rz.leaderboard_body_name},e.me?u||"Me":e.name),(0,s.h)("div",{className:rz.leaderboard_body_score},e.levels,"/",c)),t+1===b&&(0,s.h)(rW,{finishLinePos:b})))))},rY=e=>{let t=[],n="",r=!1;for(let i=0;i<e.length;i++){let o=e[i];r?'"'===o?'"'===e[i+1]?(n+='"',i++):r=!1:n+=o:","===o?(t.push(n),n=""):'"'===o?r=!0:n+=o}return t.push(n),t},rX=e=>{let[t,...n]=(e=>{let t=[],n="",r=!1;for(let i=0;i<e.length;i++){let o=e[i];'"'===o?(r=!r,n+=o):"\r"!==o||r?` 28`!==o||r?n+=o:(t.push(n),n=""):(` 29`===e[i+1]&&i++,t.push(n),n="")}return n&&t.push(n),t})(e).map(rY);return n.filter(e=>e.some(e=>""!==e.trim())).map(e=>e.reduce((e,n,r)=>{var i;return e[null==(i=t[r])?void 0:i.trim()]=n,e},{}))};class rK{constructor(e,t){this.timers=[],this.timer=0,this.previousTimeString="",this._listeners=[],this.finishDate=e,this.translations=t,document.addEventListener("visibility-visible",()=>{this.startTimer()}),document.addEventListener("visibility-hidden",()=>{clearInterval(this.interval)})}updateInfo(e,t){this.finishDate=e,t&&(this.translations=t),this.startTimer()}_notify(){this._listeners.forEach(e=>e(this.previousTimeString,this.timer))}subscribe(e){this._listeners.push(e),this._notify()}unsubscribe(e){this._listeners=this._listeners.filter(t=>t!==e)}subscribeTimer(e,t){this.timers.push(e),t&&(this.link=t),this.previousTimeString="",this.renderTimers()}checkExpiring(){return this.timer<=0}renderTimers(){var e,t,n;let r=ea(this.timer<0?0:this.timer),i="";(i=0===r.d&&0===r.h?((null==(e=this.translations)?void 0:e.minutesTimer)||"{minutes}m {seconds}s").replace("{minutes}",("0"+r.m).slice(-2).split("").map(e=>`<span>${e}</span>`).join("")).replace("{seconds}",("0"+r.s).slice(-2).split("").map(e=>`<span>${e}</span>`).join("")):0===r.d&&r.h>0?((null==(t=this.translations)?void 0:t.hoursTimer)||"{hours}h {minutes}m").replace("{hours}",("0"+r.h).slice(-2).split("").map(e=>`<span>${e}</span>`).join("")).replace("{minutes}",("0"+r.m).slice(-2).split("").map(e=>`<span>${e}</span>`).join("")):((null==(n=this.translations)?void 0:n.daysTimer)||"{days}d {hours}h").replace("{days}",("0"+r.d).slice(-2).split("").map(e=>`<span>${e}</span>`).join("")).replace("{hours}",("0"+r.h).slice(-2).split("").map(e=>`<span>${e}</span>
29`).join("")))!==this.previousTimeString&&(this.timers.forEach(e=>{e.innerHTML=i}),this.previousTimeString=i,this._notify())}startTimer(){clearInterval(this.interval),this.timer=this.finishDate-Date.now()/1e3,this.renderTimers(),this.timer<=0?this.link&&eI(this.link).remove("active"):this.interval=setInterval(()=>{this.timer>0&&this.timer--,this.renderTimers(),this.timer<=0&&(clearInterval(this.interval),this.link&&eI(this.link).remove("active"))},1e3)}}let rJ="euid",rZ=new class{constructor(){this.euidPromise=null,this.fetchFailed=!1,this.euid=f(rJ,null,!0)}async setup(e){return this.domain=e.domain,this.eaid=e.eaid,this.fetchFailed=!1,this.euid?this.euid:await this.getEuid()}async getEuid(){return this.euidPromise?this.euidPromise:this.fetchFailed?null:this.euid&&this.validateEuid()||!this.eaid||!this.domain?this.euid:(this.euidPromise=(async()=>{try{let e=await e_(`${this.domain}`,{method:"POST",headers:{"x-easy-eaid":String(this.eaid),"Accept-Encoding":"gzip, deflate","Content-Encoding":"gzip"},body:JSON.stringify({})}),t=(await e.json()).euid;return t&&g(rJ,t,!0),this.euid=null!=t?t:null,this.euid}catch(e){return console.warn("Error fetching EUID:",e),this.euid=null,this.fetchFailed=!0,null}finally{this.euidPromise=null}})(),this.euidPromise)}validateEuid(){return!!this.euid&&/^[a-f0-9]{64}$/i.test(this.euid)}},rQ=0,r0=0,r1=null;async function r2(e){let t=Date.now();return rQ&&t-r0<2e3?rQ:r1||(r1=(async()=>{try{let t=await e_(`${e}/timestamp`),n=await t.json();return rQ=n,r0=Date.now(),n}catch(e){return Math.floor(Date.now()/1e3)}finally{r1=null}})())}function r5(e){rQ=e,r0=Date.now()}class r4{constructor(){this.submoduleVersions=new Map,this.appVersion="1.0.0",this.inflightRequest=null,this.cachedResponse=null,this.cacheTimestamp=0,this.cacheKey=""}register(e,t="1.0.0"){this.submoduleVersions.set(e,t)}setAppVersion(e){this.appVersion=e}unregister(e){this.submoduleVersions.delete(e),this.clearCache()}getSubmoduleVersionHeader(){return Array.from(this.submoduleVersions.entries()).map(([e,t])=>`${e}=${t}`).join(";")}
29async fetchEvents(e,t,n){let r=this.getSubmoduleVersionHeader();if(!r)return null;let i=`${e}|${t}|${n}|${r}`;if(this.inflightRequest&&this.cacheKey===i)return this.inflightRequest;if(this.cachedResponse&&this.cacheKey===i&&Date.now()-this.cacheTimestamp<r4.CACHE_TTL_MS)return this.cachedResponse;this.cacheKey=i,this.inflightRequest=this.doFetch(e,t,n,r);try{let e=await this.inflightRequest;return this.cachedResponse=e,this.cacheTimestamp=Date.now(),e}finally{this.inflightRequest=null}}clearCache(){this.cachedResponse=null,this.cacheTimestamp=0,this.cacheKey=""}async doFetch(e,t,n,r){try{return(await fetch(e,{headers:Object.assign({"x-easy-eaid":String(t),"x-easy-version":this.appVersion,"x-easy-submodule-version":r},n?{"x-easy-ab":n}:{})})).json()}catch(e){return console.error("LiveopsRegistry fetch error:",e),null}}}r4.CACHE_TTL_MS=5e3;let r6=new r4,r3=(e,t)=>e.find(e=>{var n;return(null!=(n=e.Correct_Keys)?n:e.KEY)===t}),r7={1:ro.easy,2:ro.medium,3:ro.hard,4:ro.expert,5:ro.evil,6:ro.extreme},r8={1:ri.klondike,2:ri.spider,3:ri.freecell},r9={lastUpdate:0,sudokuLevelsMap:[],welcomePopup:!1,startBanner:!1,hiw:!1,currentEvent:null,finished:[],completedEvents:[],onboarding:!1,visited:!1,clicked:!1,completedPostcards:0,completedLevelsIds:[],completedLevelsIdsByMode:[],postcardsData:null,eventCompleted:!1,eventCompletedPopup:!1,onboardingStep:0,bestTime:{}};class ie{constructor(){var e,t,n,r;this.ab={},this.request=null,this.leaderboardRequest=null,this.lang="en",this.setupFinished=!1,this.tempCurrentEvent=null,this.withLeaderboard=!1,this.withCurrency=!1,this.awardsLogic=eL.awardsLogic,this.sandbox=!1,this.euid=null,this.leaderboardServerTime=0,this.leaderboardUpdateTimeouts={},this.leaderboardInflight={},this.leaderboardListeners=[],this.leaderboardReady=null,this.resolveLeaderboardReady=null,this.config=f(ev,r9),this.timerManager=new rK((null==(e=this.config.currentEvent)?void 0:e.time)||0,this.translations),this.timerManager.startTimer(),this.leaderboardFetchOnce=eS(),this.leaderboardTimezone=Math.min(Math.max(Math.floor(-((new Date).getTimezoneOffset()/60)),-12),12);let i=null!=(n=null==(t=this.config.currentEvent)?void 0:t.submoduleVersion)?n:107;this.withLeaderboard=112===i&&(null==(r=this.config.currentEvent)?void 0:r.withLeaderboard)||!1,this.leaderboardReady=new Promise(e=>{this.resolveLeaderboardReady=e})}showLeaderboardHiw(){this.config&&(this.config.leaderboardHiw=!0,g(ev,this.config))}setLeaderboardOnboarded(){this.config.leaderboardOnboarded=!0,g(ev,this.config)}getLastLeaderboardPlace(e){var t,n,r;let i=null==(t=this.config.currentEvent)?void 0:t.id;if(void 0===i)return null;let o=`${i}_${e}`;return null!=(r=null==(n=this.config.lastLeaderboardPlaces)?void 0:n[o])?r:null}setLastLeaderboardPlace(e,t){var n;let r=null==(n=this.config.currentEvent)?void 0:n.id;if(void 0===r)return;let i=`${r}_${e}`;this.config.lastLeaderboardPlaces||(this.config.lastLeaderboardPlaces={}),this.config.lastLeaderboardPlaces[i]=t,g(ev,this.config)}showHiw(){var e,t;this.config&&(this.config.hiw=!0,(this.withLeaderboard||(null==(t=null==(e=this.config)?void 0:e.currentEvent)?void 0:t.withLeaderboard))&&(this.config.leaderboardHiw=!0),g(ev,this.config))}shouldShowStartBanner(){return!this.config.startBanner}getBestTime(){var e,t,n,r,i;return null!=(i=null==(e=this.config.bestTime)?void 0:e[null!=(r=null==(n=null==(t=this.config)?void 0:t.currentEvent)?void 0:n.mode)?r:this.defaultMode])?i:0}getCurrencyBalance(){var e,t;return null!=(t=null==(e=this.config.currentEvent)?void 0:e.currencyBalance)?t:0}updateCurrencyBalance(e){this.config.currentEvent&&(void 0===this.config.currentEvent.currencyBalance&&(this.config.currentEvent.currencyBalance=0),this.config.currentEvent.currencyBalance+=e,g(ev,this.config))}getNextCurrencyLevelPrice(){var e;let t=this.getActiveCardIndex();if(null===t||!this.config.postcardsData||!this.config.currentEvent)return null;let n=this.config.currentEvent.currentLevel,r=this.config.postcardsData.postcards[t].levels.find(e=>e.id===n);return null!=(e=null==r?void 0:r.price)?e:null}openMultipleLevelsWithCurrency(e,t){for(let n of e)this.selectLevel(n),this.openLevelWithCurrency(t)}openLevelWithCurrency(e){var t,n;let r=this.getActiveCardIndex();if(!this.config.postcardsData||!this.config.currentEvent||null===r)return!1;let i=this.config.currentEvent.currentLevel,o=this.config.postcardsData.postcards[r].levels.find(e=>e.id===i&&!e.completed);if(!o)return!1;let s=null!=(t=o.price)?t:0,a=null!=(n=this.config.currentEvent.currencyBalance)?n:0;return!(a<s||(this.config.currentEvent.currencyBalance=a-s,this.onLevelComplete(e,void 0,!0),0
29))}onShowStartBanner(e){var t,n;if(this.config.startBanner=!0,this.config.currentEvent){let r=Object.assign({id:this.config.currentEvent.ai,lo_type:this.getLoType(),segment_id:this.getSegmentId(),uid:this.config.currentEvent.id,content_type:null!=(n=null==(t=this.config.currentEvent)?void 0:t.mode)?n:this.defaultMode,type:e,lo_progress_source:this.config.currentEvent.currency?"cross_levels":"unique_levels"},this.getSolitaireParams());eP("lo_show_banner",r),Z.send("lo_show_banner",r)}g(ev,this.config)}shouldShowWelcomePopup(){return!!this.config.currentEvent&&!this.config.welcomePopup}shouldShowTimeIsUpPopup(){var e,t,n,r;let i=(null==(e=this.config.currentEvent)?void 0:e.currency)?null==(n=null==(t=this.config.postcardsData)?void 0:t.levels)?void 0:n.find(e=>e.completed):this.config.sudokuLevelsMap.find(({levelProgress:e})=>e.loaded||e.started),o=null==(r=this.config.currentEvent)?void 0:r.time;if(!o)return!1;let s=(Date.now()/1e3-o)/60/60/24;if(!this.config.postcardsData)return!1;let a=this.config.postcardsData.postcards.length,l=this.config.completedPostcards!==a&&this.checkExpiring(),c=i&&s<=2;return l&&!c&&this.resetEvent(),l&&c}onShowWelcomePopup(){this.config.welcomePopup=!0,g(ev,this.config)}async setup({eaid:e,host:t,ab:n,lang:r,translations:i,requestsFrequency:o,finishCallback:s,visitCallback:a,onChangeMode:l,mode:c,version:u,defaultMode:d,leaderboard:h,leaderboardDomain:p,leaderboardUrl:f,sandbox:g,currency:m,awardsLogic:v},y){var w,b,_,S,x,k,E,C;this.eaid=e,this.host=t,this.lang=r,this.defaultMode=d,this.requestsFrequency=o,i&&(this.translations=i,this.timerManager.updateInfo((null==(w=this.config.currentEvent)?void 0:w.time)||0,i)),u&&(this.version=u),n&&(this.ab=n),s&&(this.finishCallback=s),a&&(this.visitCallback=a),l&&(this.onChangeMode=l),!c||(null==(_=null==(b=this.config)?void 0:b.currentEvent)?void 0:_.mode)||(this.tempMode=c),!h||(null==(S=this.config)?void 0:S.currentEvent)&&(null==(k=null==(x=this.config)?void 0:x.currentEvent)?void 0:k.submoduleVersion)===107||(this.withLeaderboard=h,(null==(E=this.config)?void 0:E.currentEvent)&&(this.config.currentEvent.withLeaderboard=!0)),p&&(this.leaderboardDomain=p),f&&(this.leaderboardUrl=f),void 0!==g&&(this.sandbox=g),m&&(this.withCurrency=m,(null==(C=this.config)?void 0:C.currentEvent)&&(this.config.currentEvent.currency=!0)),v&&(this.awardsLogic=v),this.setupFinished=!0,r6.register(this.withLeaderboard?112:107),r6.setAppVersion(this.version||"1.0.0"),!1!==(null==y?void 0:y.autoSync)&&await this.startSync()}async startSync(){var e;console.log("[LB] setup",{withLeaderboard:this.withLeaderboard,leaderboardDomain:this.leaderboardDomain}),this.sync();try{this.request&&await this.request}catch(e){console.warn("fetch error")}console.log("[LB] setup after sync",{withLeaderboard:this.withLeaderboard,leaderboardDomain:this.leaderboardDomain}),this.withLeaderboard&&this.leaderboardDomain&&this.canSyncLeaderboard()?this.leaderboardRequest=this.initLeaderboard().then(()=>{var e;return console.log("[LB] leaderboardReady resolved"),null==(e=this.resolveLeaderboardReady)||e.call(this),!0}):null==(e=this.resolveLeaderboardReady)||e.call(this)}sync(){!this.config.lastUpdate||!this.config.currentEvent||(Date.now()-this.config.lastUpdate)/1e3>this.requestsFrequency?this.request=new Promise((e,t)=>{this.getPostcardsEvent().then(()=>{this.init(),e(!0)}).catch(()=>{this.init(),t(!1)})}):this.init()}init(){this.setupCSSVariables()}async getPostcardsEvent(){var e,t,n,r,i,o,s,a,l,c,u,d,h,p,f,m,v;let y=Object.values(this.ab).join(",");try{let w=await r6.fetchEvents(this.host,this.eaid,y);if(!(null==w?void 0:w.content)||!w.content.data)return;let b=this.getCurrentEvent(w.content.data);if(!(null==w?void 0:w.success)||!b)return void(this.config&&((null==w?void 0:w.success)&&delete this.config.lastConfirmedEventId,this.config.lastUpdate=Date.now(),g(ev,this.config)));let _=112===b.mt.et;this.withLeaderboard=!!this.withLeaderboard&&_;let S=await this.getPostcardsData(b.pk,w.content.cdn);if(!S)return void console.error("Empty Level Pack",S);
29let x=(null!=(t=null!=(e=b.mt.sc[2])?e:b.mt.sc[1])?t:Math.floor(Date.now()/1e3))+b.mt.du;if(this.timerManager.updateInfo(x),this.config=Object.assign(Object.assign({},this.config),{lastUpdate:Date.now(),postcardsData:S,currentEvent:{time:x,id:b.mt.ei,up:b.mt.up,start:null!=(r=null!=(n=b.mt.sc[2])?n:b.mt.sc[1])?r:Math.floor(Date.now()/1e3),currentLevel:(null==(i=this.config.currentEvent)?void 0:i.currentLevel)||S.postcards[0].levels[0].id,levels:S.levels,awards:b.aw.map(({i:e})=>e),redirect:!1,ai:b.mt.ai,inited:null!=(s=null==(o=this.config.currentEvent)?void 0:o.inited)&&s,mode:null!=(l=null==(a=this.config.currentEvent)?void 0:a.mode)?l:this.tempMode,version:this.version,clicked:null!=(u=null==(c=this.config.currentEvent)?void 0:c.clicked)&&u,withLeaderboard:this.withLeaderboard,currency:(null==(d=this.config.currentEvent)?void 0:d.currency)||this.withCurrency||void 0,currencyBalance:null!=(p=null==(h=this.config.currentEvent)?void 0:h.currencyBalance)?p:0,submoduleVersion:b.mt.et},lastConfirmedEventId:b.mt.ei}),this.config.currentEvent&&!(null==(f=this.config.currentEvent)?void 0:f.inited)){let e=Object.assign({id:this.config.currentEvent.ai,lo_type:this.getLoType(),segment_id:this.getSegmentId(),uid:this.config.currentEvent.id,content_type:null!=(v=null==(m=this.config.currentEvent)?void 0:m.mode)?v:this.defaultMode,lo_progress_source:this.config.currentEvent.currency?"cross_levels":"unique_levels"},this.getSolitaireParams());eP("lo_start",e),Z.send("lo_start",e),this.config.currentEvent.inited=!0}g(ev,this.config)}catch(e){console.error("getPostcardEvent error: ",e)}}isOwnEvent(e){return 107===e.mt.et||112===e.mt.et}getCurrentEvent(e){let t=e.filter(e=>this.isOwnEvent(e));if(this.config.currentEvent)return t.find(e=>{var t;return e.mt.ei===(null==(t=this.config.currentEvent)?void 0:t.id)});let n=Date.now()/1e3;return t.find(e=>{var t,r;let i=null!=(t=e.mt.sc[2])?t:e.mt.sc[1];return!(null==(r=this.config.finished)?void 0:r.includes(e.mt.ei))&&n>=i&&n<i+e.mt.du})}async getPostcardsData(e,t){var n,r,i,o,s,a,l,c;if(!t||!t.length)return;let u=e.find(({pt:e})=>e===n3.resources),d=e.find(({pt:e})=>e===n3.translations),h=e.find(({pt:e})=>e===n3.balance);if(u&&d&&h)for(let e of t)try{let t=await fetch(`${e}${h.ur}`),p=await t.json(),f=await fetch(`${e}${d.ur}`),g=await f.text(),m=rX(g),v=p.Levels.map(({D:e,Id:t,S:n,M:r,C:i,P:o})=>{var s;return Object.assign(Object.assign({id:t,difficulty:r7[e],color:i?r7[i]:null,completed:(null==(s=this.config.currentEvent)?void 0:s.mode)&&r?!!this.config.completedLevelsIdsByMode.find(e=>e.mode===r8[r]&&e.levelId===t):this.config.completedLevelsIds.includes(t),postcard:n},r?{mode:r8[r]}:{}),void 0!==o?{price:o}:{})}),y=[...p.Rewards].sort((e,t)=>e.level-t.level);return Object.assign(Object.assign({translations:m,iconUrl:`${e}${u.cf.ic}`,bannerIconUrl:`${e}${null!=(n=u.cf.bic)?n:u.cf.ic}`,bgBottom:u.cf.bgb,bgTop:u.cf.bgt,bgPopup:null!=(i=null==(r=u.cf)?void 0:r.bgp)?i:u.cf.bgt},(null==(o=u.cf)?void 0:o.wp)?{welcomePopupImages:{desktop:`${e}${null==(a=null==(s=u.cf)?void 0:s.wp)?void 0:a.d}`,mobile:`${e}${null==(c=null==(l=u.cf)?void 0:l.wp)?void 0:c.m}`}}:{}),{postcards:y.map((t,n)=>{var r,i;return{postcardImage:u.cf.pc[t.value]?`${e}${u.cf.pc[t.value]}`:"",isOpen:this.config.completedPostcards>=n,completed:this.config.completedPostcards>n,levels:v.filter(({postcard:e})=>e===n),rewardShown:(null==(i=null==(r=this.config.postcardsData)?void 0:r.postcards[n])?void 0:i.rewardShown)||!1}}),levels:v,rewards:y})}catch(e){console.log(e)}}checkExpiring(){return!!this.timerManager.checkExpiring()&&(this.config.currentEvent&&!this.config.finished.includes(this.config.currentEvent.id)&&this.onEventFinish(),!0)}onEventFinish(){this.config.currentEvent&&(this.config=Object.assign(Object.assign({},this.config),{finished:this.config.finished.concat(this.config.currentEvent.id),eventCompleted:!0,completedEvents:this.config.completedEvents,onboarding:this.config.onboarding,onboardingStep:this.config.onboardingStep,hiw:this.config.hiw,visited:this.config.visited}),g(ev,this.config))}selectLevel(e){if(!this.config.currentEvent)return;let t=this.getCurrentMappedSudokuLevel();t&&3===t.levelProgress.mistakes&&this.reset(t.levelProgress.timer/1e3,{undos:t.levelProgress.undos,smart_hints:t.levelProgress.hints,erases:t.levelProgress.erases}),this.config.currentEvent.currentLevel=e,g(ev,this.config)}getTitle(){var e,t;let n=null==(e=this.config.postcardsData)?void 0:e.translations;return n?(null!=(t=r3(n,"um_postcard_title"))?t:r3(n,"liveops_title"))[ey[window.lang||"en"]]:""}setupCSSVariables(){if(!this.config.postcardsData)return;let{bgTop:e,bgBottom:t}=this.config.postcardsData;document.documentElement.style.setProperty("--postcards-gradient-start",e),document.documentElement.style.setProperty("--postcards-gradient-start-rgb",this.colorToRgb(e)),document.documentElement.style.setProperty("--postcards-gradient-end-rgb",this.colorToRgb(t)),document.documentElement.style.setProperty("--postcards-gradient-end",t)}colorToRgb(e){let t=document.createElement("div");t.style.color=e,document.body.appendChild(t);let n=window.getComputedStyle(t).color;document.body.removeChild(t);let r=n.match(/\d+/g);return r&&r.length>=3?`${r[0]}, ${r[1]}, ${r[2]}`:"255, 255, 255"}updateCurrentMode(e){this.config.currentEvent&&(this.config.currentEvent.mode=e,g(ev,this.config),((e,t)=>{let n=new Date;n.setTime(n.getTime()+31536e6);let r="expires="+n.toUTCString();document.cookie="postcard_mode="+t+";"+r+";path=/"})(0,e),this.onChangeMode&&this.onChangeMode())}onLevelComplete(e,t,n){var r,i,o,s;let a=this.getActiveCardIndex();if(!this.config.postcardsData||!(null==(r=this.config.currentEvent)?void 0:r.currentLevel)||null===a)return;let l=this.config.currentEvent.currentLevel,{levels:c}
29=this.config.postcardsData.postcards[a],u=c.map(e=>{var t;return e.id!==l||e.mode&&e.mode!==(null==(t=this.config.currentEvent)?void 0:t.mode)?e:Object.assign(Object.assign({},e),{completed:!0})});if(this.config.postcardsData.postcards[a].levels=u,this.config.completedLevelsIds.push(l),(null==(i=this.config.currentEvent)?void 0:i.mode)&&this.config.completedLevelsIdsByMode.push({levelId:l,mode:null==(o=this.config.currentEvent)?void 0:o.mode}),t){let e=(null==(s=this.config.currentEvent)?void 0:s.mode)||this.defaultMode;this.config.bestTime=Object.assign({},this.config.bestTime||{}),(!this.config.bestTime[e]||t<this.config.bestTime[e])&&(this.config.bestTime[e]=t)}let d=u.filter(e=>{var t;return!e.mode||e.mode===(null==(t=this.config.currentEvent)?void 0:t.mode)}).find(({completed:e})=>!e);d?(this.selectLevel(d.id),e&&e(d.id,!1),g(ev,this.config),this.withLeaderboard&&null!==a&&!n&&this.syncLeaderboard(a,{force:!0,skipThrottle:!0,levels:this.getCompletedLevelsInPostcard(a),time:Math.floor(Date.now()/1e3)})):this.onPostcardComplete(e)}updateLoPlacement(e){localStorage.setItem("prev_lo_screen",e)}sendScreenEvent(e){var t;let n=this.config.currentEvent||this.tempCurrentEvent;if(n){let r=localStorage.getItem("prev_lo_screen")||"g_gamescreen";if(e===r)return;let i=Object.assign(Object.assign({id:n.ai,lo_type:this.getLoType(),segment_id:this.getSegmentId(),uid:n.id,content_type:null!=(t=null==n?void 0:n.mode)?t:this.defaultMode,placement:r,type:e,lo_progress_source:n.currency?"cross_levels":"unique_levels"},this.getLeaderboardEventParams()),this.getSolitaireParams());eP("lo_screen",i),Z.send("lo_screen",i),this.updateLoPlacement(e)}}sendScreenAction(e,t){var n;let r=this.config.currentEvent||this.tempCurrentEvent;if(r){let i=Object.assign(Object.assign({id:r.ai,lo_type:this.getLoType(),segment_id:this.getSegmentId(),uid:r.id,content_type:null!=(n=null==r?void 0:r.mode)?n:this.defaultMode,action:t,type:e,lo_progress_source:r.currency?"cross_levels":"unique_levels"},this.getLeaderboardEventParams()),this.getSolitaireParams());eP("lo_screen_action",i),Z.send("lo_screen_action",i)}}onPostcardComplete(e){var t,n,r;let i=this.getActiveCardIndex();if(!this.config.postcardsData||null===i)return;if(this.config.currentEvent){let e=Object.assign(Object.assign({id:this.config.currentEvent.ai,lo_type:this.getLoType(),stage:i+1,segment_id:this.getSegmentId(),uid:this.config.currentEvent.id,content_type:null!=(n=null==(t=this.config.currentEvent)?void 0:t.mode)?n:this.defaultMode,time_1s:Math.floor(Date.now()/1e3-(null!=(r=this.config.currentEvent.start)?r:0)),lo_progress_source:this.config.currentEvent.currency?"cross_levels":"unique_levels"},this.getLeaderboardEventParams()),this.getSolitaireParams());eP("lo_stage_finish",e),Z.send("lo_stage_finish",e);let o=this.getAwardIdForPostcard(i);if(null!==o&&this.sendRewardClaimEvent(o),!this.withLeaderboard){let e=this.config.postcardsData.postcards.length;null!==o&&this.awardsLogic.addAward(o,Math.floor(Date.now()/1e3),re.postcards,Math.min(4,e-i)),this.finishCallback&&this.finishCallback()}}let{levels:o}=this.config.postcardsData.postcards[i];if(this.config.postcardsData.postcards[i].levels=o.map(e=>{var t;return e.completed?e:(this.config.completedLevelsIds.push(e.id),(null==(t=this.config.currentEvent)?void 0:t.mode)&&e.mode&&this.config.completedLevelsIdsByMode.push({levelId:e.id,mode:e.mode}),Object.assign(Object.assign({},e),{completed:!0}))}),this.config.completedPostcards++,this.config.postcardsData.postcards[i].completed=!0,this.withLeaderboard){let e=this.config.postcardsData.postcards[i].levels.filter(e=>{var t;return!e.mode||e.mode===(null==(t=this.config.currentEvent)?void 0:t.mode)}).length;this.syncLeaderboard(i,{force:!0,skipThrottle:!0,isCompleted:!0,levels:e,time:Math.floor(Date.now()/1e3)}).then(()=>{var e,t,n;if(this.config.currentEvent){let r=null==(n=null==(t=null==(e=this.config.leaderboardStates)?void 0:e[i])?void 0:t.leaderboard)?void 0:n.place,o=this.getAwardIdForPostcard(i);null!==o&&this.awardsLogic.addAward(o,Math.floor(Date.now()/1e3),re.postcardsLeaderboard,r),this.finishCallback&&this.finishCallback()}})}if(this.config.postcardsData.postcards.length>i+1){let t=this.config.postcardsData.postcards[i+1].levels,n=t.find(e=>{var t;return!e.mode||e.mode===(null==(t=this.config.currentEvent)?void 0:t.mode)})||t[0];this.config.postcardsData.postcards[i+1].isOpen=!0,this.selectLevel(n.id),e&&e(n.id,!0)}else this.config.postcardsData.postcards[i].rewardShown=!0,e&&e(null,!0),this.sendPostcardsEventFinishEvent("win",i+1),this.onEventFinish();g(ev,this.config)}onShowPostcardReward(){if(!this.config.postcardsData)return;let e=this.getCompletedCardIndex();null!==e&&(this.config.postcardsData.postcards[e].rewardShown=!0,g(ev,this.config)),this.onChangeMode&&this.onChangeMode()}onShowEventFinishPopup(){this.config.eventCompletedPopup=!0,g(ev,this.config)}reset(e,t){this.getCurrentMappedSudokuLevel()&&this.config.currentEvent&&(this.sendLevelLoseEvent(e,t),this.resetGameProgress(),g(ev,this.config))}sendLevelLoseEvent(e,t){var n,r,i;let o=this.getCurrentMappedSudokuLevel();if(!o||!this.config.currentEvent)return;let{difficulty:s,levelProgress:a}=o,l=this.getActiveCardIndex(),c=this.getSelectedLevel(),u=this.config.postcardsData.levels.filter(e=>{var t;return e.postcard!==l&&e.completed&&(!e.mode||e.mode===(null==(t=this.config.currentEvent)?void 0:t.mode))}).length,d=(null!=(n=this.config.currentEvent.currentLevel)?n:1)-u,h=Math.sqrt(this.config.postcardsData.postcards[null!=l?l:0].levels.filter(e=>{var t;return!e.mode||e.mode===(null==(t=this.config.currentEvent)?void 0:t.mode)}).length),p=Math.ceil(d/h),f=parseInt((this.config.currentEvent.version||this.version||"1.0.0").split(".")[1]),g=f?["easy","medium","hard","expert","master","extreme"][f-1]:null,m=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({id:this.config.currentEvent.ai,lo_type:this.getLoType()},s?{difficulty_level:eb[s],level_id:a.id}:{}),{uid:this.config.currentEvent.id,content_type:null!=(i=null==(r=this.config.currentEvent)?void 0:r.mode)?i:this.defaultMode,segment_id:this.getSegmentId(),stage:(null!=l?l:0)+1,level_num:null==c?void 0:c.id,loc:`${d%h||h},${p}`,time_1s:null!=e?e:0,boosters:null!=t?t:null,lo_progress_source:this.config.currentEvent.currency?"cross_levels":"unique_levels"}),g?{user_level:g}:{}
29),this.getLeaderboardEventParams()),this.getSolitaireParams());eP("lo_level_lose",m),Z.send("lo_level_lose",m)}getAwardIdForPostcard(e){var t,n,r;let i=null==(n=null==(t=this.config.postcardsData)?void 0:t.rewards)?void 0:n.find(t=>{var n,r,i;return!!(null==(i=null==(r=null==(n=this.config.postcardsData)?void 0:n.postcards)?void 0:r[e])?void 0:i.levels.find(e=>e.id===t.level))});return i&&this.config.currentEvent&&null!=(r=this.config.currentEvent.awards[i.value])?r:null}getAllAwardIds(){var e,t;let n=this.config.postcardsData;return n?n.postcards.map((e,t)=>this.getAwardIdForPostcard(t)).filter(e=>null!==e):null!=(t=null==(e=this.config.currentEvent)?void 0:e.awards)?t:[]}subscribeLeaderboardUpdate(e){this.leaderboardListeners.push(e)}unsubscribeLeaderboardUpdate(e){this.leaderboardListeners=this.leaderboardListeners.filter(t=>t!==e)}notifyLeaderboardUpdate(){this.leaderboardListeners.forEach(e=>e())}getSegment(){var e;let t=((null==(e=this.config.currentEvent)?void 0:e.version)||this.version||"1.0.0").split(".");return parseInt(`${t[1]||0}${t[2]||0}`)||0}isLeaderboardUnavailable(e){var t;return void 0!==e&&!!(null==(t=this.config.leaderboardUnavailable)?void 0:t.includes(e))}markLeaderboardUnavailable(e){var t;let n=null!=(t=this.config.leaderboardUnavailable)?t:[];n.includes(e)||(this.config.leaderboardUnavailable=[...n,e].slice(-10)),this.clearAllLeaderboardTimeouts(),g(ev,this.config)}canSyncLeaderboard(){var e;let t=null==(e=this.config.currentEvent)?void 0:e.id;return void 0!==t&&!this.isLeaderboardUnavailable(t)&&this.config.lastConfirmedEventId===t}async getLeaderboardTimestamp(){return this.leaderboardDomain?r2(this.leaderboardDomain):Math.floor(Date.now()/1e3)}getCompletedLevelsInPostcard(e){if(!this.config.postcardsData)return 0;let t=this.config.postcardsData.postcards[e];return t?t.levels.filter(e=>{var t;return e.completed&&(!e.mode||e.mode===(null==(t=this.config.currentEvent)?void 0:t.mode))}).length:0}async initLeaderboard(){if(console.log("[LB] initLeaderboard start",{domain:this.leaderboardDomain,withLB:this.withLeaderboard}),!this.leaderboardDomain||!this.withLeaderboard||(this.euid=await rZ.getEuid(),console.log("[LB] initLeaderboard euid",this.euid),!this.euid))return;this.leaderboardServerTime=await this.getLeaderboardTimestamp(),console.log("[LB] initLeaderboard serverTime",this.leaderboardServerTime);let e=this.getActiveCardIndex(),t=null!==e?this.getLeaderboardForPostcard(e):null;if(console.log("[LB] initLeaderboard",{activeIndex:e,hasData:!!t}),null===e||t||(await this.syncLeaderboard(e,{force:!0,skipThrottle:!0}),this.config.lastLeaderboardForceTime=Date.now(),this.config.lastLeaderboardForcePostcard=e,g(ev,this.config)),this.config.postcardsData)for(let t=0;t<this.config.postcardsData.postcards.length;t++)t!==e&&this.config.postcardsData.postcards[t].completed&&!this.getLeaderboardForPostcard(t)&&(console.log("[LB] initLeaderboard syncing completed postcard",t),await this.syncLeaderboard(t,{force:!0,skipThrottle:!0}));if(this.config.leaderboardStates)for(let e of Object.keys(this.config.leaderboardStates)){let t=Number(e);this.config.leaderboardStates[t]&&(console.log("[LB] initLeaderboard: scheduling update for postcard",t),this.scheduleLeaderboardUpdate(t))}}async requestLeaderboardView(e){var t,n;if(console.log("[LB] requestLeaderboardView called",{postcardIndex:e,withLB:this.withLeaderboard,configWithLB:null==(t=this.config.currentEvent)?void 0:t.withLeaderboard}),!this.withLeaderboard&&!(null==(n=this.config.currentEvent)?void 0:n.withLeaderboard))return void console.log("[LB] requestLeaderboardView SKIP: withLeaderboard false");if(console.log("[LB] requestLeaderboardView waiting for leaderboardReady...",{hasPromise:!!this.leaderboardReady}),this.leaderboardReady&&await this.leaderboardReady,console.log("[LB] requestLeaderboardView ready",{euid:this.euid,domain:this.leaderboardDomain}),!this.leaderboardDomain)return void console.log("[LB] requestLeaderboardView SKIP: no domain");if(!this.canSyncLeaderboard())return void console.log("[LB] requestLeaderboardView SKIP: event has no leaderboard");let r=Date.now(),i=this.config.lastLeaderboardForceTime||0,o=this.config.lastLeaderboardForcePostcard;console.log("[LB] requestLeaderboardView",{postcardIndex:e,now:r,lastForce:i,diff:r-i,throttle:ie.FORCE_THROTTLE_MS,lastPostcard:o}),i&&r-i<ie.FORCE_THROTTLE_MS&&o===e?console.log("[LB] requestLeaderboardView THROTTLED"):(this.config.lastLeaderboardForceTime=r,this.config.lastLeaderboardForcePostcard=e,g(ev,this.config),console.log("[LB] requestLeaderboardView -> syncLeaderboard"),await this.syncLeaderboard(e,{force:!0,skipThrottle:!0}))}getLeaderboardSyncPromise(e){return this.leaderboardInflight[e]}async syncLeaderboard(e,t){if(e in this.leaderboardInflight)return console.log("[LB] syncLeaderboard DEDUP: already in-flight for",e),this.leaderboardInflight[e];let n=this._syncLeaderboardImpl(e,t);return this.leaderboardInflight[e]=n,n.finally(()=>{delete this.leaderboardInflight[e]}),n}async _syncLeaderboardImpl(e,t){var n,r,i,o,s,a,l;if(console.log("[LB] syncLeaderboard called",{postcardIndex:e,options:t,domain:this.leaderboardDomain,euid:this.euid,currentEvent:!!this.config.currentEvent}),!this.leaderboardDomain||!this.config.currentEvent)return void console.log("[LB] syncLeaderboard SKIP: no domain or currentEvent");
29if(!this.canSyncLeaderboard())return void console.log("[LB] syncLeaderboard SKIP: event has no leaderboard",this.config.currentEvent.id);if(!this.euid&&(this.euid=await rZ.getEuid(),!this.euid))return;this.config.leaderboardStates||(this.config.leaderboardStates={});let c=this.config.leaderboardStates[e]||{state:""};if((null==t?void 0:t.force)&&!(null==t?void 0:t.skipThrottle)){let e=Date.now();if(e-(this.config.lastLeaderboardForceTime||0)<ie.FORCE_THROTTLE_MS)return;this.config.lastLeaderboardForceTime=e,g(ev,this.config)}if(!(null==t?void 0:t.force)){let e=this.leaderboardServerTime||Math.floor(Date.now()/1e3),t=c.errorUpdateTime||c.updateTime;if(t&&e<t)return}let u=null!=(n=null==t?void 0:t.levels)?n:this.getCompletedLevelsInPostcard(e),h=null!=(r=null==t?void 0:t.time)?r:Math.floor(Date.now()/1e3),p=JSON.stringify(Object.assign(Object.assign({},this.leaderboardTimezone!==this.config.leaderboardTimezone?{timezone:this.leaderboardTimezone}:{}),{segment:this.getSegment(),is_completed:null!=(i=null==t?void 0:t.isCompleted)&&i,levels:u,time:h})),f={"Content-Type":"application/json"};c.state&&(f["X-Easy-State"]=c.state),this.sandbox&&(f["X-Easy-Sandbox"]="1");try{let n=`${this.leaderboardDomain}/v1/${this.eaid}/${this.euid}/${this.config.currentEvent.id}/${e}`;console.log("[LB] syncLeaderboard FETCH",n);let r=await this.leaderboardFetchOnce(n,{method:"POST",headers:f,body:p});console.log("[LB] syncLeaderboard RESPONSE",r.status);let i=parseInt(null!=(o=r.headers.get("X-Easy-Time"))?o:"0")||Math.floor(Date.now()/1e3);this.leaderboardServerTime=i,r5(i);let l=r.headers.get("X-Easy-State");l&&(c.state=l);let u=parseInt(null!=(s=r.headers.get("X-Easy-Update-Time"))?s:"0");if(0===r.status||502===r.status||504===r.status){c.countErrors=(null!=(a=c.countErrors)?a:0)+1;let t=Math.min(c.countErrors-1,ew.length-1),n=ew[t];return c.errorUpdateTime=i+60*d(n[0],n[1]),this.config.leaderboardStates[e]=c,g(ev,this.config),void this.scheduleLeaderboardUpdate(e)}if(404===r.status)return void this.markLeaderboardUnavailable(this.config.currentEvent.id);if(delete c.errorUpdateTime,delete c.countErrors,c.updateTime=u||i+60*d(300,360),304===r.status)return this.config.leaderboardTimezone=this.leaderboardTimezone,this.config.leaderboardStates[e]=c,g(ev,this.config),void this.scheduleLeaderboardUpdate(e);
29if(200===r.status){let n=await r.json(),i=n.leaderboard,o=!!c.leaderboard;if(c.awardId=n.award_id,c.medals=n.medals,c.leaderboard={id:i.Id,place:i.Place,medal:i.Medal,scores:i.Scores.map(e=>({name:e.Name,levels:e.Score}))},o||c.calibrated||(c.calibrated=!0,this.sendCalibrationFinishEvent(e,c)),(null==t?void 0:t.isCompleted)&&i.Medal){this.config.completedPostcardsLeaderboard||(this.config.completedPostcardsLeaderboard=[]);let t=this.config.completedPostcardsLeaderboard.find(t=>t.postcardIndex===e&&t.eventId===this.config.currentEvent.id);t?(t.place=i.Place,t.medal=i.Medal):this.config.completedPostcardsLeaderboard.push({postcardIndex:e,eventId:this.config.currentEvent.id,place:i.Place,medal:i.Medal})}}this.config.leaderboardTimezone=this.leaderboardTimezone,this.config.leaderboardStates[e]=c,g(ev,this.config),this.scheduleLeaderboardUpdate(e),this.notifyLeaderboardUpdate()}catch(r){console.warn("Leaderboard sync error:",r),c.countErrors=(null!=(l=c.countErrors)?l:0)+1;let t=Math.min(c.countErrors-1,ew.length-1),n=ew[t];c.errorUpdateTime=(this.leaderboardServerTime||Math.floor(Date.now()/1e3))+60*d(n[0],n[1]),this.config.leaderboardStates||(this.config.leaderboardStates={}),this.config.leaderboardStates[e]=c,g(ev,this.config),this.scheduleLeaderboardUpdate(e)}}scheduleLeaderboardUpdate(e){var t;this.leaderboardUpdateTimeouts[e]&&clearTimeout(this.leaderboardUpdateTimeouts[e]);let n=null==(t=this.config.leaderboardStates)?void 0:t[e];if(!n)return;let r=n.errorUpdateTime||n.updateTime;if(!r)return;let i=Math.max(0,1e3*(r-(this.leaderboardServerTime||Math.floor(Date.now()/1e3))));this.leaderboardUpdateTimeouts[e]=setTimeout(async()=>{this.leaderboardServerTime=await this.getLeaderboardTimestamp(),await this.syncLeaderboard(e,{force:!0,skipThrottle:!0})},i)}clearAllLeaderboardTimeouts(){Object.values(this.leaderboardUpdateTimeouts).forEach(clearTimeout),this.leaderboardUpdateTimeouts={}}getLeaderboardForPostcard(e){var t,n;let r=null==(t=this.config.completedPostcardsLeaderboard)?void 0:t.find(t=>{var n;return t.postcardIndex===e&&t.eventId===(null==(n=this.config.currentEvent)?void 0:n.id)}),i=null==(n=this.config.leaderboardStates)?void 0:n[e];return(null==i?void 0:i.leaderboard)?{scores:i.leaderboard.scores,place:i.leaderboard.place,medal:(null==r?void 0:r.medal)||i.leaderboard.medal,awardId:i.awardId,medals:i.medals}:r?{scores:[],place:r.place,medal:r.medal,awardId:null==i?void 0:i.awardId,medals:null==i?void 0:i.medals}:null}getLoType(){return this.withLeaderboard?"postcard-leaderboards":"postcards"}getSegmentId(){var e;return+(null!=(e=this.config.completedEvents)&&!!e.length)}getSolitaireParams(){var e,t,n;if(!this.config.currentEvent||(null==(e=this.config.currentEvent)?void 0:e.currency))return{};let r=((null==(t=this.config.currentEvent)?void 0:t.version)||this.version||"1.0.0").split("."),i=parseInt(r[1]),o=parseInt(r[2]),s={1:"klondike",2:"spider",3:"freecell"}[i];if(!s)return{};let a=null==(n=({klondike:{1:"draw1",2:"draw3"},spider:{1:"suit1",2:"suit2",3:"suit4"},freecell:{1:"classic"}})[s])?void 0:n[o];return Object.assign({content_type:s},a?{category:a}:{})}getPlaceCrown(e){return 1===e?"gold":2===e?"silver":3===e?"bronze":"white"}getLeaderboardEventParams(){var e,t,n;if(!this.withLeaderboard)return{};let r=this.getActiveCardIndex(),i=null!==r?null==(e=this.config.leaderboardStates)?void 0:e[r]:void 0;if(!i&&this.config.leaderboardStates){let e=Object.keys(this.config.leaderboardStates).map(Number).sort((e,t)=>e-t),t=e[e.length-1];void 0!==t&&(i=this.config.leaderboardStates[t])}return Object.assign(Object.assign({},void 0!==(null==(t=null==i?void 0:i.leaderboard)?void 0:t.id)?{team_id:i.leaderboard.id}:{}),void 0!==(null==(n=null==i?void 0:i.leaderboard)?void 0:n.place)?{place:i.leaderboard.place}:{})}getWidgetPayload(e,t,n){var r,i,o,s;if(!this.config.currentEvent)return console.warn("[postcards] sendWidgetEvent: currentEvent not set, skipping"),null;let a=null==(r=this.config.leaderboardStates)?void 0:r[e],l=this.config.currentEvent.currency;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({id:this.config.currentEvent.ai,lo_type:l?"postcards":"postcard-leaderboards",uid:this.config.currentEvent.id,segment_id:this.getSegmentId(),stage:e+1},"number"==typeof t?{position:t}:{}),{progress:this.getCompletedLevelsInPostcard(e),type:l?"currency":"progress",lo_progress_source:l?"cross_levels":"unique_levels"}),"number"==typeof n?{value:n}:{}),l?{currency_count:(null!=(i=this.config.currentEvent.currencyBalance)?i:0)+(null!=n?n:0)}:{}),l||void 0===(null==(o=null==a?void 0:a.leaderboard)?void 0:o.id)?{}:{team_id:a.leaderboard.id}),l||void 0===(null==(s=null==a?void 0:a.leaderboard)?void 0:s.place)?{}:{place:a.leaderboard.place}
29),this.getSolitaireParams())}sendWidgetEvent(e,t,n){let r=this.getWidgetPayload(e,t,n);r&&(eP("lo_widget",r),Z.send("lo_widget",r))}sendWidgetActionEvent(e,t,n){let r=this.getWidgetPayload(e,t,n);r&&(eP("lo_widget_action",Object.assign(Object.assign({},r),{action:"open"})),Z.send("lo_widget_action",Object.assign(Object.assign({},r),{action:"open"})))}sendCalibrationFinishEvent(e,t){var n,r,i,o;if(!this.config.currentEvent)return;let s=Object.assign(Object.assign(Object.assign({id:this.config.currentEvent.ai,lo_type:"postcard-leaderboards",uid:this.config.currentEvent.id,segment_id:this.getSegmentId(),stage:e+1,content_type:null!=(r=null==(n=this.config.currentEvent)?void 0:n.mode)?r:this.defaultMode},void 0!==(null==(i=t.leaderboard)?void 0:i.id)?{team_id:t.leaderboard.id}:{}),void 0!==(null==(o=t.leaderboard)?void 0:o.place)?{place:t.leaderboard.place}:{}),this.getSolitaireParams());eP("lo_calibration_finish",s),Z.send("lo_calibration_finish",s)}getData(){return this.config.postcardsData}setVisited(){this.config.visited=!0,this.visitCallback&&this.visitCallback(),g(ev,this.config)}setOnboarding(){this.config.onboarding=!0,g(ev,this.config)}setEventClicked(){this.config.currentEvent&&(this.config.currentEvent.clicked=!0,g(ev,this.config))}setClicked(){this.config.clicked=!0,g(ev,this.config)}clickToBanner(e){var t,n;if(this.config.currentEvent){let r=Object.assign({id:this.config.currentEvent.ai,lo_type:this.getLoType(),uid:this.config.currentEvent.id,content_type:null!=(n=null==(t=this.config.currentEvent)?void 0:t.mode)?n:this.defaultMode,segment_id:this.getSegmentId(),type:e,lo_progress_source:this.config.currentEvent.currency?"cross_levels":"unique_levels"},this.getSolitaireParams());eP("lo_banner_click",r),Z.send("lo_banner_click",r)}}sendOnboardingEvent(e,t=!0){var n,r;if(this.config.currentEvent){let t=Object.assign({id:this.config.currentEvent.ai,lo_type:this.getLoType(),uid:this.config.currentEvent.id,content_type:null!=(r=null==(n=this.config.currentEvent)?void 0:n.mode)?r:this.defaultMode,segment_id:this.getSegmentId(),step:e,total_steps:this.withLeaderboard?7:6,lo_progress_source:this.config.currentEvent.currency?"cross_levels":"unique_levels"},this.getSolitaireParams());eP("lo_onboarding",t),Z.send("lo_onboarding",t)}t&&(this.config.onboardingStep=e,g(ev,this.config))}sendLevelStartEvent(e,t){var n,r,i;if(!this.config.currentEvent)return;let o=this.getActiveCardIndex(),s=this.getSelectedLevel(),a=this.config.postcardsData.levels.filter(e=>{var t;return e.postcard!==o&&e.completed&&(!e.mode||e.mode===(null==(t=this.config.currentEvent)?void 0:t.mode))}).length,l=(null!=(n=this.config.currentEvent.currentLevel)?n:1)-a,c=Math.sqrt(this.config.postcardsData.postcards[null!=o?o:0].levels.filter(e=>{var t;return!e.mode||e.mode===(null==(t=this.config.currentEvent)?void 0:t.mode)}).length),u=Math.ceil(l/c),d=parseInt((this.config.currentEvent.version||this.version||"1.0.0").split(".")[1]),h=d?["easy","medium","hard","expert","master","extreme"][d-1]:null,p=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({id:this.config.currentEvent.ai,lo_type:this.getLoType()},t?{difficulty_level:eb[t]}:{}),{level_id:e,segment_id:this.getSegmentId(),uid:this.config.currentEvent.id,content_type:null!=(i=null==(r=this.config.currentEvent)?void 0:r.mode)?i:this.defaultMode,stage:(null!=o?o:0)+1,level_num:null==s?void 0:s.id,loc:`${l%c||c},${u}`,lo_progress_source:this.config.currentEvent.currency?"cross_levels":"unique_levels"}),h?{user_level:h}:{}),this.getLeaderboardEventParams()),this.getSolitaireParams());eP("lo_level_start",p),Z.send("lo_level_start",p)}sendRewardClaimEvent(e){var t,n,r,i,o;if(!this.config.currentEvent)return;let s=this.getActiveCardIndex(),a=this.getLeaderboardEventParams(),l={award:e};if(this.withLeaderboard){let e=null!==s?null==(t=this.config.leaderboardStates)?void 0:t[s]:void 0,r=null==(n=null==e?void 0:e.leaderboard)?void 0:n.place;l=Object.assign(Object.assign({},l),{crown:void 0!==r?this.getPlaceCrown(r):void 0,rank:r})}let c=Object.assign(Object.assign({id:this.config.currentEvent.ai,lo_type:this.getLoType(),time_1s:Math.floor(Date.now()/1e3-(null!=(r=this.config.currentEvent.start)?r:0)),message:l,segment_id:this.getSegmentId(),uid:this.config.currentEvent.id,content_type:null!=(o=null==(i=this.config.currentEvent)?void 0:i.mode)?o:this.defaultMode,stage:(null!=s?s:0)+1,lo_progress_source:this.config.currentEvent.currency?"cross_levels":"unique_levels"}
29,a),this.getSolitaireParams());eP("lo_reward_claim",c),Z.send("lo_reward_claim",c)}sendLevelFinishEvent(e,t,n,r){var i,o,s;if(!this.config.currentEvent)return;let a=this.getActiveCardIndex(),l=this.getSelectedLevel(),c=this.config.postcardsData.levels.filter(e=>{var t;return e.postcard!==a&&e.completed&&(!e.mode||e.mode===(null==(t=this.config.currentEvent)?void 0:t.mode))}).length,u=(null!=(i=this.config.currentEvent.currentLevel)?i:1)-c,d=Math.sqrt(this.config.postcardsData.postcards[null!=a?a:0].levels.filter(e=>{var t;return!e.mode||e.mode===(null==(t=this.config.currentEvent)?void 0:t.mode)}).length),h=Math.ceil(u/d),p=parseInt((this.config.currentEvent.version||this.version||"1.0.0").split(".")[1]),f=p?["easy","medium","hard","expert","master","extreme"][p-1]:null,g=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({id:this.config.currentEvent.ai,lo_type:this.getLoType(),time_1s:n},t?{difficulty_level:eb[t]}:{}),{level_id:e,boosters:r,segment_id:this.getSegmentId(),uid:this.config.currentEvent.id,content_type:null!=(s=null==(o=this.config.currentEvent)?void 0:o.mode)?s:this.defaultMode,stage:(null!=a?a:0)+1,level_num:null==l?void 0:l.id,loc:`${u%d||d},${h}`,lo_progress_source:this.config.currentEvent.currency?"cross_levels":"unique_levels"}),f?{user_level:f}:{}),this.getLeaderboardEventParams()),this.getSolitaireParams());eP("lo_level_finish",g),Z.send("lo_level_finish",g)}sendPostcardsEventFinishEvent(e,t){var n,r,i;let o=null!=(n=this.config.currentEvent)?n:this.tempCurrentEvent;if(!o)return;"win"===e&&(this.config.completedEvents=[...null!=(r=this.config.completedEvents)?r:[],o.id]);let s=this.getActiveCardIndex(),a=Object.assign(Object.assign(Object.assign({id:o.ai,lo_type:this.getLoType(),segment_id:this.getSegmentId(),uid:o.id,content_type:null!=(i=null==o?void 0:o.mode)?i:this.defaultMode,stage:t||(null!=s?s:0)+1,reason:e},this.getLeaderboardEventParams()),{lo_progress_source:o.currency?"cross_levels":"unique_levels"}),this.getSolitaireParams());eP("lo_finish",a),Z.send("lo_finish",a)}getTotalCardLevelsCount(e){return this.config.postcardsData?this.config.postcardsData.postcards[e].levels.filter(e=>{var t;return!e.mode||e.mode===(null==(t=this.config.currentEvent)?void 0:t.mode)}).reduce((e,{id:t,completed:n})=>({incompleteLevels:n?(null==e?void 0:e.incompleteLevels)?e.incompleteLevels:[]:(null==e?void 0:e.incompleteLevels)?e.incompleteLevels.concat(t):[t],totalLevels:(null==e?void 0:e.totalLevels)?(null==e?void 0:e.totalLevels)+1:1,completed:(void 0===(null==e?void 0:e.completed)||e.completed)&&n}),{}):{}}getCardLevelsCount(e){return this.config.postcardsData?this.config.postcardsData.postcards[e].levels.filter(e=>{var t;return!e.mode||e.mode===(null==(t=this.config.currentEvent)?void 0:t.mode)}).reduce((e,{id:t,difficulty:n,completed:r})=>{let i=e[n],o=r?(null==i?void 0:i.incompleteLevels)?i.incompleteLevels:[]:(null==i?void 0:i.incompleteLevels)?i.incompleteLevels.concat(t):[t],s=(null==i?void 0:i.totalLevels)?(null==i?void 0:i.totalLevels)+1:1;return Object.assign(Object.assign({},e),{[n]:{incompleteLevels:o,totalLevels:s,completed:(void 0===(null==i?void 0:i.completed)||i.completed)&&r}})},{}):{}}saveGameProgress(e){let t=this.getCurrentMappedSudokuLevel();t&&t.sudokuLevelId===e.id&&(this.config.sudokuLevelsMap=this.config.sudokuLevelsMap.map(n=>{var r,i;return n.postcardsLevelId!==t.postcardsLevelId||n.mode&&n.mode!==(null==(i=null==(r=this.config)?void 0:r.currentEvent)?void 0:i.mode)?n:Object.assign(Object.assign({},t),{levelProgress:e})}),g(ev,this.config))}resetGameProgress(){let e=this.getCurrentMappedSudokuLevel();if(!e)return;let{startLevelProgress:t,postcardsLevelId:n}=e;this.config.sudokuLevelsMap=this.config.sudokuLevelsMap.map(r=>r.postcardsLevelId===n?Object.assign(Object.assign({},e),{levelProgress:t}):r),g(ev,this.config)}getLevelProgress(e,t){var n,r;let i=this.config.sudokuLevelsMap.find(({postcardsLevelId:t,mode:n})=>{var r,i;return t===e&&(!n||n===(null==(i=null==(r=this.config)?void 0:r.currentEvent)?void 0:i.mode))});if(!i)return{p:0,l:!1};let{levelProgress:o}=i;if(t===n6.green){let e=(null==(n=o.desk)?void 0:n.foundation)?null==(r=o.desk)?void 0:r.foun
29dation.reduce((e,t)=>e+t.split(",").filter(e=>!!e).length,0):0;return e?{p:Math.min(99,Math.round(e/52*100)),l:o.started}:{p:1,l:o.started}}return{p:100*o.values.reduce((e,{val:t,mistake:n})=>0===t||n?e:e+1,0)/81,l:o.loaded}}getSelectedLevel(){if(this.config.postcardsData&&this.config.currentEvent)return this.config.postcardsData.levels.find(({id:e,mode:t})=>{var n;return e===this.config.currentEvent.currentLevel&&(!t||t===(null==(n=this.config.currentEvent)?void 0:n.mode))})}mapSudokuLevel(e,t){var n,r;let i=this.getSelectedLevel();i&&(this.config.sudokuLevelsMap.some(({postcardsLevelId:e,mode:t})=>{var n,r;return e===i.id&&(!t||t===(null==(r=null==(n=this.config)?void 0:n.currentEvent)?void 0:r.mode))})||(this.config.sudokuLevelsMap.push(Object.assign({postcardsLevelId:i.id,sudokuLevelId:e,difficulty:i.difficulty,levelProgress:t,startLevelProgress:t},(null==(n=this.config.currentEvent)?void 0:n.mode)?{mode:null==(r=this.config.currentEvent)?void 0:r.mode}:{})),g(ev,this.config)))}getCurrentMappedSudokuLevel(){let e=this.getSelectedLevel();if(e)return this.config.sudokuLevelsMap.find(({postcardsLevelId:t,mode:n})=>{var r,i;return t===e.id&&(!n||n===(null==(i=null==(r=this.config)?void 0:r.currentEvent)?void 0:i.mode))})}getMappedLevelsByMode(){return this.config.sudokuLevelsMap.map(({sudokuLevelId:e,mode:t})=>`${t?t[0]:"k"}${e}`)}getMappedSudokuLevelsByDifficulty(e){return this.config.sudokuLevelsMap.filter(({difficulty:t,mode:n})=>{var r,i;return t===e&&(!n||n===(null==(i=null==(r=this.config)?void 0:r.currentEvent)?void 0:i.mode))}).map(({sudokuLevelId:e})=>e)}resetTempEventStorage(){this.tempCurrentEvent=null}resetEvent(){this.tempCurrentEvent=this.config.currentEvent,this.clearAllLeaderboardTimeouts(),this.config=Object.assign(Object.assign({},r9),{onboarding:this.config.onboarding,onboardingStep:this.config.onboardingStep,hiw:this.config.hiw,visited:this.config.visited,finished:this.config.finished,completedEvents:this.config.completedEvents,completedPostcardsLeaderboard:this.config.completedPostcardsLeaderboard}),g(ev,this.config)}getActiveCardIndex(){if(!this.config.postcardsData)return null;let e=this.config.postcardsData.postcards.findIndex(({completed:e,isOpen:t})=>!e&&t);return -1===e?null:e}getCompletedCardIndex(){if(!this.config.postcardsData)return null;let e=this.config.postcardsData.postcards.length,t=this.config.postcardsData.postcards.findIndex(({completed:t,rewardShown:n},r)=>t&&(!n||this.config.completedPostcards===e&&r===e-1));return -1===t?null:t}getCurrentAwardId(){let e=this.getCompletedCardIndex();return null!==e&&this.config.currentEvent&&this.config.postcardsData?e===this.config.postcardsData.postcards.length-1?null:this.config.currentEvent.awards[e]:null}}ie.FORCE_THROTTLE_MS=3e4;let it=new ie,ir=["left","top","right","bottom"],ii=({roundWidget:e,collapse:t,shown:n,lowTopMargin:r})=>{var i,o,a,c,u,d,h,p,f,g,m,v,y,w;let b=[null!=(o=null==(i=null==e?void 0:e.translations)?void 0:i.left)?o:"Left",null!=(c=null==(a=null==e?void 0:e.translations)?void 0:a.top)?c:"Top",null!=(d=null==(u=null==e?void 0:e.translations)?void 0:u.right)?d:"Right",null!=(p=null==(h=null==e?void 0:e.translations)?void 0:h.me)?p:"Me"],_=[...(null==e?void 0:e.roundResults)||[]],[S,x]=(0,l.useState)({});(0,l.useEffect)(()=>{t?_.forEach((e,t)=>{let n=setTimeout(()=>{x(e=>Object.assign(Object.assign({},e),{[t]:!0}))},1e3*(2.2+.08*t));return()=>clearTimeout(n)}):x({})},[t,_.length]);let k=e=>{switch(e){case 0:return"other";case 1:return"bronze";case 2:return"silver";default:return"gold"}},E=(0,l.useMemo)(()=>{let t="spades"===e.mode,n=ir.map(t=>{var n;let r=null==e?void 0:e.roundResults[e.roundResults.length-1],i=(null==r?void 0:r.scores[t])||0,o=null!=(n=null==e?void 0:e.roundResults.findIndex(n=>n.scores[t]===e.totalScores[t]))?n:0;return{player:t,score:(null==e?void 0:e.totalScores[t])||0,lastRoundScore:i,isBot:"bottom"!==t,firstToReachScore:o}});n.sort((e,n)=>{if(n.score===e.score){if(!e.isBot)return t?-1:1;if(!n.isBot)return t?1:-1;if(e.isBot&&n.isBot)return e.firstToReachScore!==n.firstToReachScore?e.firstToReachScore-n.firstToReachScore:e.lastRoundScore!==n.lastRoundScore?e.lastRoundScore-n.lastRoundScore:Math.random()-.5}return n.score-e.score}),t&&n.reverse();let r={};
29return n.forEach((e,t)=>{r[e.player]=t}),r},[]);return(0,s.h)("div",{className:`${rR.win_table} ${r?"":rR.first} ${rR.round}`},(0,s.h)("div",{className:rR.win_table_title},(0,s.h)("div",{className:rR.win_table_title_text},null!=(g=null==(f=null==e?void 0:e.translations)?void 0:f.title)?g:"Results")),(0,s.h)("div",{className:`${rR.round_content} `},(0,s.h)("div",{className:`${rR.round_content_background} ${n?rR.shown:""} ${t?rR.collapse:""}`}),(0,s.h)("div",{className:rR.round_column_first},(0,s.h)("div",{className:`${rR.round_header_cell} ${(null==e?void 0:e.small)?rR.small:""} ${rR.first}`},null!=(v=null==(m=null==e?void 0:e.translations)?void 0:m.players)?v:"Players"),_.map((t,r)=>{var i,o;return(0,s.h)("div",{key:`round-${r}`,className:`${rR.round_cell} ${r===_.length-1?rR.lastRow:""} ${n?rR.shown:""} ${rR.round_cell_round} ${S[r]?rR.hide:""}`},(null!=(o=null==(i=null==e?void 0:e.translations)?void 0:i.round)?o:"Round {0}").replace("{0}",t.number.toString()))}),(0,s.h)("div",{className:`${rR.round_cell} ${rR.totalw} ${rR.total} ${n?rR.shown:""}`},null!=(w=null==(y=null==e?void 0:e.translations)?void 0:y.total)?w:"Total")),ir.map((t,r)=>(0,s.h)("div",{key:`column-${t}`,className:rR.round_column},(0,s.h)("div",{className:`${rR.round_header_cell} ${(null==e?void 0:e.small)?rR.small:""}`},b[r]),_.map((e,i)=>(0,s.h)("div",{key:`cell-${t}-${i}`,className:`${rR.round_cell} ${i===_.length-1?rR.lastRow:""} ${n?rR.shown:""} ${r===ir.length-1?rR.me:""} ${S[i]?rR.hide:""}`},(0,s.h)("div",{className:rR.round_cell_content},e.scores[t],e.queenOfSpadesPlayer===t&&(0,s.h)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},(0,s.h)("g",{clipPath:"url(#clip0_2325_8624)"},(0,s.h)("path",{d:"M8.00002 11.5H4.00002L6.00002 9.50004L8.00002 11.5ZM5.93556 0.00199147C6.3025 -0.0221973 6.67091 0.149852 7.11525 0.520546C7.35881 0.723481 8.19777 1.5138 9.07131 2.37309L9.47463 2.77348C10.1449 3.44161 10.7851 4.10269 11.1387 4.52152C11.71 5.19821 12.0026 6.03037 12 6.84965C11.9974 7.65102 11.7118 8.44042 11.1279 9.05961C10.5402 9.68276 9.76578 9.99533 8.99318 9.99809C8.21942 10.0008 7.447 9.69341 6.86525 9.07621C6.28408 8.46026 6.10282 8.10918 5.91017 8.10746C5.90416 8.11856 5.70248 8.48833 5.14845 9.07621C4.56477 9.69498 3.79235 10.0028 3.01955 10C2.24683 9.99719 1.47363 9.68317 0.885759 9.05961C0.297472 8.43588 0.00258953 7.66188 1.66693e-05 6.86527C-0.00255124 6.06201 0.291581 5.23723 0.875993 4.52055C1.20022 4.12258 1.78571 3.51198 2.41213 2.88676L2.79103 2.51176C3.74151 1.57711 4.68467 0.696889 4.87795 0.535195C5.26428 0.211488 5.59746 0.0243848 5.93556 0.00199147Z",fill:"white",fillOpacity:"0.6"})),(0,s.h)("defs",null,(0,s.h)("clipPath",{id:"clip0_2325_8624"},(0,s.h)("rect",{width:"12",height:"12",fill:"white"}))))))),(0,s.h)("div",{className:`${rR.round_cell} ${rR.totalw} ${r===ir.length-1?rR.me:""}`},(0,s.h)("div",{className:`${rR.round_cell_total} ${n?rR.shown:""} ${r===ir.length-1?rR.me:""}`},(0,s.h)("div",{className:`${rR.round_cell_total_background} ${n?rR.shown:""} ${r===ir.length-1?rR.me:""}`}),(0,s.h)("span",null,null==e?void 0:e.totalScores[t]),(0,s.h)("img",{src:`/build/images/win/${k(E[t])}@1x.png`,srcSet:`/build/images/win/${k(E[t])}@1x.png 1x, /build/images/win/${k(E[t])}@2x.png 2x`,alt:"trophy"}))))),(0,s.h)("div",{className:rR.round_column_technical},(0,s.h)("div",{className:`${rR.round_header_cell} ${rR.last}`}),_.map((e,t)=>(0,s.h)("div",{key:`tech-${t}`,className:`${rR.round_cell} ${S[t]?rR.hide:""}`})),(0,s.h)("div",{className:rR.round_cell}))))},io=e=>{let t=document.createElement("span");t.style.cssText="position:absolute;visibility:hidden;font-size:17px;font-weight:500;font-family:Hauss,sans-serif;white-space:nowrap;",t.textContent=e,document.body.appendChild(t);let n=t.getBoundingClientRect().width;return document.body.removeChild(t),n},is={components:{WinScreen:({title:e,type:t,desc:n,score:r,withCup:i,hideBestScoreInHeader:o,debug:l,image:c,active:u,croco:d,color:h,showMobileImage:p,miniSudokuImage:f,hideMobileBtn:g,button:m,tables:v,overflow:y,hideConfetti:w,roundWidget:b,showMobileRays:_,alternativeHeaderWithAnimation:S,colorScheme:x,newRays:k,postcardsLeaderboard:E,postcardsWidget:C,keys:P,plusKeys:T,onKeysAnimationEnd:L,newGradient:I,portrait:O})=>{var A,M,N;let[D,R]=(0,a.useState)(!1),[B,F]=(0,a.useState)(!1),[$,j]=(0,a.useState)(!1),[H,z]=(0,a.useState)(!!O),[G,q]=(0,a.useState)(!!O),[U,W]=(0,a.useState)(!1),[V,Y]=(0,a.useState)(null),[X,K]=(0,a.useState)(v.map(e=>Object.assign(Object.assign({},e),{loading:e.items instanceof Promise,items:e.items instanceof Promise?null:e.items}))),[J,Z]=(0,a.useState)(!1),[Q,ee]=(0,a.useState)(null),[et,en]=(0,a.useState)(!!E),[er,ei]=(0,a.useState)(!1),eo=(0,a.useRef)(null),es=(0,a.useRef)(null),ea=(0,a.useRef)(!1),el=(0,a.useRef)(null),ec=(0,a.useRef)(null),eu=(0,a.useRef)(null),ed=(0,a.useRef)(null),eh=(0,a.useRef)(null),ep=(0,a.useRef)(null),ef=(0,a.useRef)(null),eg=(0,a.useRef)(null),em=(0,a.useRef)(null),ev=(0,a.useRef)(!1);(0,a.useEffect)(()=>{E&&(en(!0),ee(null),ea.current=!1,E.data.then(e=>{var t,n;if(ee(e),en(!1),e&&!ea.current){ea.current=!0;
29let e=null!=(n=null!=(t=E.postcardIndex)?t:null==C?void 0:C.postcardIndex)?n:it.getActiveCardIndex();null!=e&&it.sendWidgetEvent(e)}}).catch(()=>{en(!1)}))},[E]);let ey=()=>{if(el.current){let e=el.current.getBoundingClientRect();ep.current={x:e.left+e.width/2,y:e.top+e.height/2}}},ew=()=>{var e,t;let n=null!=(t=null==(e=eu.current)?void 0:e.getBoundingClientRect().width)?t:0,r=0;if("number"==typeof P&&eu.current){let e=io(String(P)),t=io(String(P+(null!=T?T:0))),i=n+(t-e);ed.current=i,eh.current=t,r=-(i-n)/2}if(ep.current&&ec.current){let e=ec.current.getBoundingClientRect();ef.current={tx:e.left+e.width/2+r-ep.current.x,ty:e.top+e.height/2-ep.current.y}}};return(0,a.useEffect)(()=>{u?(W(!0),C&&!ev.current&&(ev.current=!0,it.sendWidgetEvent(C.postcardIndex,C.position,null!=T?T:void 0)),T&&(ei(!0),setTimeout(()=>{j(!0),ey(),setTimeout(()=>{Y("hiding"),setTimeout(()=>{ew(),Y("flying")},300)},700)},S?4e3:b?t===id.heartsWin?3500:1700:700))):ev.current=!1},[u]),(0,a.useEffect)(()=>{if("flying"===V){if(el.current&&ec.current){if(!ef.current){let e=el.current.getBoundingClientRect(),t=ec.current.getBoundingClientRect(),n=0;if("number"==typeof P&&eu.current){let e=eu.current.getBoundingClientRect().width,t=io(String(P));n=-(e+(io(String(P+(null!=T?T:0)))-t)-e)/2}ef.current={tx:t.left+t.width/2+n-(e.left+e.width/2),ty:t.top+t.height/2-(e.top+e.height/2+117)}}let{tx:e,ty:t}=ef.current,n=e/2-30,r=(t-117)/2,i=!1,o=()=>{i||(i=!0,eg.current&&(eg.current.style.display="none"),ec.current&&(ec.current.style.transition="transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1)",ec.current.style.transformOrigin="center",ec.current.style.transform="scale(1.1)"),setTimeout(()=>{if(ec.current&&(ec.current.style.transform="scale(1)"),em.current&&"number"==typeof P&&T){let e=P+T,t=performance.now(),n=r=>{let i=Math.min((r-t)/300,1),o=Math.round(P+(e-P)*i);em.current&&(em.current.textContent=String(o)),i<1?requestAnimationFrame(n):(ei(!1),null==L||L())};requestAnimationFrame(n)}},300))};"function"==typeof el.current.animate?el.current.animate([{transform:"translate(0px, -117px) scale(1.3)"},{transform:`translate(${n}px, ${r}px) scale(0.87)`},{transform:`translate(${e}px, ${t}px) scale(0.44)`}],{duration:550,delay:100,easing:"cubic-bezier(0.6, -1, 0.85, 1)",fill:"both"}).onfinish=o:el.current.style.transform=`translate(${e}px, ${t}px) scale(0.44)`,setTimeout(o,700)}if(eu.current&&null!==ed.current){let e=eu.current,t=e.getBoundingClientRect().width;e.style.width=`${t}px`,requestAnimationFrame(()=>{requestAnimationFrame(()=>{eu.current&&null!==ed.current&&(eu.current.style.transition="width 0.55s cubic-bezier(0.6, -1, 0.86, 1)",eu.current.style.width=`${ed.current}px`)})})}if(em.current&&null!==eh.current){let e=em.current,t=e.getBoundingClientRect().width;e.style.width=`${t}px`,requestAnimationFrame(()=>{requestAnimationFrame(()=>{em.current&&null!==eh.current&&(em.current.style.transition="width 0.55s cubic-bezier(0.6, -1, 0.86, 1)",em.current.style.width=`${eh.current}px`)})})}}},[V]),(0,a.useEffect)(()=>{K(v.map(e=>Object.assign(Object.assign({},e),{loading:e.items instanceof Promise,items:e.items instanceof Promise?null:e.items}))),v.forEach((e,t)=>{e.items instanceof Promise&&e.items.then(e=>{K(n=>n.map((n,r)=>r===t?Object.assign(Object.assign({},n),{loading:!1,items:e}):n))}).catch(()=>{K(e=>e.map((e,n)=>n===t?Object.assign(Object.assign({},e),{loading:!1}):e))})})},[v]),(0,a.useEffect)(()=>{let e=()=>{if(!eo.current)return;let e=eo.current.offsetWidth,t=eo.current.offsetHeight,n=e<720;R(e<723),"boolean"!=typeof O&&q(window.matchMedia("(orientation: portrait)").matches),"boolean"!=typeof O&&z(n),F(!n&&t<520||n&&!f&&!!p&&t<520)};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),(0,a.useEffect)(()=>{"boolean"==typeof O&&(z(O),q(O))},[O]),(0,a.useEffect)(()=>{let e=()=>{if(!es.current)return;let e=es.current;Z(e.scrollHeight-16>e.clientHeight)};e();let t=null;return"undefined"!=typeof ResizeObserver&&es.current&&(t=new ResizeObserver(e)).observe(es.current),window.addEventListener("resize",e),console.log(X,"items"),()=>{null==t||t.disconnect(),window.removeEventListener("resize",e)}},[X,U]),(0,s.h)(s.Fragment,null,l&&(0,s.h)(r_,{buttons:[{text:"Show Win Screen",action:()=>{W(!0),T&&(ei(!0),setTimeout(()=>{j(!0),ey(),setTimeout(()=>{Y("hiding"),setTimeout(()=>{ew(),Y("flying")},300)},700)},S?4e3:b?t===id.heartsWin?3500:1700:700))}}]}),(0,s.h)("div",{className:`${rR.win} ${I?rR.newGradient:""} ${y?rR.overflow:""} ${U?rR.shown:""} ${er?rR.inputs_locked:""} ${!H||p||_?"":rR.standart_gradient} ${h||""} ${B?rR.short:""} ${G?"portrait":"landscape"} ${H?`${rR.pview} ${g?rR.withoutBtn:""}`:rR.lview} ${D?"small":""}`,ref:eo},!w&&(0,s.h)(rH,null),T&&(0,s.h)("div",{ref:eg,className:`${rR.win_overlay} ${rR.win_overlay_animationKeys} ${"flying"===V?rR.flying:""} ${"hiding"===V?rR.hiding:""} ${$?rR.active:""}`},(0,s.h)("div",{className:rR.win_overlay_content},(0,s.h)("div",{className:rR.win_overlay_body},(0,s.h)("div",{className:rR.win_overlay_awards},(0,s.h)("div",{className:`${rR.win_overlay_keys}`,ref:el},(0,s.h)("div",null,(0,s.h)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"50",height:"50",viewBox:"0 0 50 50",fill:"none"},(0,s.h)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.36241 22.4696C13.4493 18.3646 19.678 17.7233 24.4356 20.543L35.683 9.24419C36.8943 8.02802 38.8588 8.02793 40.07 9.24419C41.2055 10.3849 41.276 12.1906 40.2828 13.4145L40.07 13.6512L43.3617 16.958C44.573 18.1749 44.5731 20.1481 43.3617 21.365C42.1503 22.5817 40.1861 22.5817 38.9747 21.365L35.683 18.0583L34.5834 19.1629L34.7962 19.3996C35.7894 20.6236 35.7189 22.4292 34.5834 23.57C33.4478 24.7104 31.6503 24.7814 30.432 23.7837L30.1964 23.57L28.824 24.9486C31.6366 29.7289 30.9992 35.9897 26.9104 40.0978C22.0647 44.9657 14.2081 44.9657 9.36241 40.0978C4.51748 35.2299 4.51696 27.3372 9.36241 22.4696ZM13.7466 26.8767C11.3245 29.3103 11.3248 33.2569 13.7466 35.6908C16.1693 38.1245 20.0977 38.1242 22.5206 35.6908C24.9431 33.2568 24.9433 29.3105 22.5206 26.8767C20.0977 24.4438 16.1691 24.4434 13.7466 26.8767Z",fill:"#873D03"}
29),(0,s.h)("g",{filter:"url(#filter0_i_7445_108648)"},(0,s.h)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.36241 20.3876C13.4493 16.2826 19.678 15.6413 24.4356 18.461L35.683 7.16216C36.8943 5.94599 38.8588 5.9459 40.07 7.16216C41.2055 8.30285 41.276 10.1085 40.2828 11.3325L40.07 11.5692L43.3617 14.8759C44.573 16.0929 44.5731 18.0661 43.3617 19.283C42.1503 20.4997 40.1861 20.4997 38.9747 19.283L35.683 15.9763L34.5834 17.0809L34.7962 17.3176C35.7894 18.5415 35.7189 20.3472 34.5834 21.4879C33.4478 22.6283 31.6503 22.6994 30.432 21.7017L30.1964 21.4879L28.824 22.8666C31.6366 27.6469 30.9992 33.9077 26.9104 38.0158C22.0647 42.8836 14.2081 42.8836 9.36241 38.0158C4.51748 33.1479 4.51696 25.2552 9.36241 20.3876ZM13.7466 24.7946C11.3245 27.2283 11.3248 31.1749 13.7466 33.6087C16.1693 36.0425 20.0977 36.0422 22.5206 33.6087C24.9431 31.1748 24.9433 27.2285 22.5206 24.7946C20.0977 22.3618 16.1691 22.3613 13.7466 24.7946Z",fill:"url(#paint0_linear_7445_108648)"})),(0,s.h)("path",{d:"M35.6827 7.1621C36.894 5.94605 38.8599 5.94588 40.0711 7.1621C41.2065 8.30278 41.2758 10.1089 40.2827 11.3328L40.0711 11.5688L43.3609 14.8769C44.5722 16.0939 44.5723 18.0668 43.3609 19.2837C42.1495 20.4999 40.1857 20.5002 38.9745 19.2837L35.6827 15.9776L34.5841 17.0823L34.7956 17.3184C35.7889 18.5423 35.7196 20.3484 34.5841 21.4891C33.4485 22.6295 31.6499 22.7004 30.4316 21.7027L30.1956 21.4891L28.8244 22.8664C31.637 27.6468 30.9987 33.9093 26.9099 38.0174C22.0642 42.8843 14.2078 42.8846 9.3623 38.0174C4.51744 33.1496 4.51707 25.256 9.3623 20.3884C13.4492 16.2834 19.6784 15.6421 24.4359 18.4617L35.6827 7.1621ZM39.4791 7.75007C38.5938 6.86193 37.1602 6.86209 36.2747 7.75007L24.5682 19.5095L24.0107 19.1779C19.5736 16.5484 13.7638 17.148 9.9523 20.9764C5.4311 25.5188 5.4311 32.8868 9.9523 37.4294C14.4721 41.9
29698 21.7999 41.9695 26.3199 37.4294C30.1344 33.5969 30.7316 27.7519 28.1062 23.2896L27.7807 22.7362L28.2344 22.2785L30.1671 20.3376L30.7572 20.8706L30.9687 21.0639C31.858 21.7852 33.1646 21.7312 33.992 20.9011L34.1405 20.7384C34.8283 19.9013 34.8309 18.684 34.1487 17.8433L33.9635 17.6378L33.4366 17.0518L35.0927 15.3896L35.6827 14.7956L39.5645 18.6957C40.4501 19.5852 41.8852 19.585 42.7709 18.6957C43.6586 17.804 43.6585 16.3568 42.7709 15.4649L38.9237 11.5994L39.4506 11.0134L39.6479 10.7896C40.3613 9.89296 40.3052 8.57992 39.4791 7.75007ZM13.1566 24.2072C15.905 21.4469 20.3631 21.4475 23.1115 24.2072C25.8578 26.966 25.8572 31.4375 23.1115 34.1966C20.3629 36.9572 15.9052 36.9577 13.1566 34.1966C10.4115 31.4377 10.4109 26.966 13.1566 24.2072ZM22.5215 24.7952C20.0986 22.3623 16.1692 22.3619 13.7467 24.7952C11.3247 27.2287 11.3253 31.1748 13.7467 33.6086C16.1694 36.0424 20.0986 36.0421 22.5215 33.6086C24.9432 31.1747 24.9437 27.2288 22.5215 24.7952Z",fill:"url(#paint1_linear_7445_108648)"}),(0,s.h)("defs",null,(0,s.h)("filter",{id:"filter0_i_7445_108648",x:"5.72852",y:"6.25",width:"38.541",height:"38.9596",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},(0,s.h)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,s.h)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,s.h)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,s.h)("feOffset",{dy:"3.54167"}),(0,s.h)("feGaussianBlur",{stdDeviation:"1.77083"}),(0,s.h)("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),(0,s.h)("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 0.909345 0 0 0 0 0.472637 0 0 0 1 0"}),(0,s.h)("feBlend",{mode:"normal",in2:"shape",result:"effect1_innerShadow_7445_108648"})),(0,s.h)("linearGradient",{id:"paint0_linear_7445_108648",x1:"17.5417",y1:"5.27227",x2:"17.5436",y2:"44.9356",gradientUnits:"userSpaceOnUse"},(0,s.h)("stop",{stopColor:"#FFEA00"}),(0,s.h)("stop",{offset:"1",stopColor:"#FF911B"})),(0,s.h)("linearGradient",{id:"paint1_linear_7445_108648",x1:"25.1147",y1:"42.1107",x2:"25.1145",y2:"5.60594",gradientUnits:"userSpaceOnUse"},(0,s.h)("stop",{stopColor:"#AD4000"}),(0,s.h)("stop",{offset:"1",stopColor:"#FFAA00"}))))),(0,s.h)("span",null,"+",T)))))),(0,s.h)("div",{className:rR.win_content},H&&!p&&_&&(0,s.h)("div",{className:`${rR.win_left_content} ${rR.rays_top_option}`},(0,s.h)("img",{className:`${rR.win_left_rays} ${rR.top_rays}`,src:`/build/images/dc/rays${k?"_new":""}.png`,srcSet:`/build/images/dc/rays${k?"_new":""}.png 1x, /build/images/dc/rays${k?"_new":""}@2x.png 2x`})),(0,s.h)("div",{className:rR.win_left},H&&(0,s.h)(rB,{title:e,type:t,desc:n,withCup:i,score:r,hideBestScoreInHeader:o,alternativeHeaderWithAnimation:S,keys:"number"==typeof P}),(!H||H&&p)&&(0,s.h)("div",{className:`${rR.win_left_content} ${"number"==typeof P?rR.noMargin:""}`},(0,s.h)("img",{className:rR.win_left_rays,src:`/build/images/dc/rays${k?"_new":""}.png`,srcSet:`/build/images/dc/rays${k?"_new":""}.png 1x, /build/images/dc/rays${k?"_new":""}@2x.png 2x`}),f&&(0,s.h)(rF,{mission:f.mission,solution:f.solution}),!f&&(0,s.h)("div",{className:`${rR.win_left_image} ${t===id.dcMonth?rR.month_image:""}`},"transparent"===h&&(0,s.h)("div",{className:rR.glow}),c&&c,t===id.dcMonth&&(0,s.h)("img",{className:rR.win_left_image_glare,src:`/build/images/dc/glare-g${h===n6.blue?"-white":""}.png`,srcSet:`/build/images/dc/glare-g${h===n6.blue?"-white":""}.png 1x, /build/images/dc/glare-g${h===n6.blue?"-white":""}@2x.png 2x`}))),!H&&(0,s.h)("div",{className:rR.win_left_banner},(0,s.h)("div",{className:`${rR.win_left_banner_content} large-banner`,id:"win-screen-banner"}))),(0,s.h)("div",{className:rR.win_right},(0,s.h)("div",{className:`${rR.win_right_content} ${J?rR.with_scrollbar:""}`,ref:es},!H&&(0,s.h)(rB,{title:e,type:t,desc:n,withCup:i,score:r,hideBestScoreInHeader:o,alternativeHeaderWithAnimation:S,keys:"number"==typeof P}),"number"==typeof P&&(0,s.h)("div",{className:`${rR.win_table} ${S?rR.delay_alt_header:""}`},(0,s.h)("div",{className:rR.win_table_keys},(0,s.h)("div",{ref:eu},(0,s.h)("img",{ref:ec,src:"/build/images/postcards/key.png",srcSet:"/build/images/postcards/key.png 1x, /build/images/postcards/[email protected] 2x",alt:""}),(0,s.h)("span",{ref:em},P)))),E&&(0,s.h)("div",{className:`${rR.win_table} ${rR.first} ${rR.win_leaderboard}`},(0,s.h)(rV,{translations:E.translations,meLabel:null==(A=E.translations)?void 0:A.tournament_leaderboards_you_pointer,colorScheme:x||h,link:E.link,maxLevels:null!=(M=null==Q?void 0:Q.maxLevels)?M:0,place:null!=(N=null==Q?void 0:Q.place)?N:0,medal:null==Q?void 0:Q.medal,users:null==Q?void 0:Q.users,active:!et&&!!Q,onClick:E.onClick,full:!0,rtl:E.rtl})),b&&(0,s.h)(ii,{shown:U,lowTopMargin:"number"==typeof P,roundWidget:b,collapse:t===id.heartsWin}),d&&(0,s.h)("div",{className:`${rR.win_table} ${rR.croco}`},(0,s.h)(eQ,{translations:{},progressText:d.progressText,percent:d.percent})),C&&(0,s.h)("div",{className:`${rR.win_table} ${t===id.heartsRound?rR.middle_delay:""} ${t===id.heartsWin?rR.max_delay:""} ${"number"!=typeof P?rR.first:""}`},(0,s.h)(rj,{postcardIndex:C.postcardIndex,totalPostcards:C.totalPostcards,unlockedPieces:C.unlockedPieces,totalPieces:C.totalPieces,icon:C.icon,colorScheme:x||h,translations:C.translations,onEventClick:()=>{it.sendWidgetActionEvent(C.postcardIndex,C.position,null!=T?T:void 0),C.onEventClick()},subscribe:C.subscribe,unsubscribe:C.unsubscribe})),X&&!!X.length&&X.map((e,n)=>(0,s.h)("div",{className:`${rR.win_table} ${t===id.heartsRound?rR.middle_delay:""} ${t===id.heartsWin?rR.max_delay:""} ${0!==n||d||b||E||C?"":rR.first}`,key:n},(0,s.h)("div",{className:rR.win_table_title},(0,s.h)("div",{className:rR.win_table_title_text},e.title),e.link&&(0,s.h)("a",{href:e.link.href,className:`${rR.win_table_title_link} ${x}`,rel:e.link.noindex?"noindex, nofollow":""},e.link.text)),(0,s.h)("div",{className:`${rR.win_table_items} ${e.loading?rR.win_table_items_loading:""}`},e.loading&&!!e.length&&Array.from({length:e.length},(e,t)=>(0,s.h)("div",{key:t,className:rR.win_table_item},(0,s.h)("div",{className:rR.win_table_item_text},(0,s.h)("div",{className:rR.win_table_item_name},t),(0,s.h)("div",{className:rR.win_table_item_value},t)))),!e.loading&&e.items&&e.items.map((e,t)=>(0,s.h)("div",{key:t,className:rR.win_table_item},e.icon&&(0,s.h)("div",{className:rR.win_table_item_icon},(0,s.h)("img",{src:e.icon,alt:"statistic"})),(0,s.h)("div",{className:rR.win_table_item_text},(0,s.h)("div",{className:rR.win_table_item_name,dangerouslySetInnerHTML:{__html:e.name}}),(0,s.h)("div",{className:rR.win_table_item_value},e.position&&e.position.current!==e.position.prev&&(0,s.h)("span",{className:`${rR.win_tournament_place} ${e.position.current>e.position.prev?rR.win_tournament_place_down:""}`},(0,s.h)("svg",{width:"6",height:"4",viewBox:"0 0 6 4",xmlns:"http://www.w3.org/2000/svg"},(0,s.h)("path",{d:"m3.384.512 2.04 2.72A.48.48 0 0 1 5.04 4H.96a.48.48 0 0 1-.384-.768l2.04-2.72a.48.48 0 0 1 .768 0z",fill:"#FFF",fillRule:"evenodd"})),Math.abs(e.position.current-e.position.prev))," ",e.change&&(0,s.h)("span",null,e.change)," ",e.value)))))))),m&&!H&&(0,s.h)(r$,{type:t,color:x||h,portrait:H,button:m}))),m&&H&&(0,s.h)(r$,{type:t,color:x||h,hideBtn:g,portrait:H,button:m})))}}},ia="tournament";!function(e){e.running="running",e.completed="completed",e.new="new",e.noaccess="no.access"}(ih||(ih={})),function(e){e.gold="gold",e.silver="silver",e.bronze="bronze",e.copper="copper"}(ip||(ip={}));let il=[[3,5],[10,15],[300,360]],ic="active-tournament",iu="inactive-tournament";var id,ih,ip,ig,im,iv="tournament-styles_tournament_upcomming_item__3fcp4",iy="tournament-styles_tournament_upcomming_item_number__ty3ui",iw="tournament-styles_tournament_upcomming_item_title__8XMnF",ib={exports:{}},i_={exports:{}};function iS(){var e;return ig||(ig=1,i_.exports=e=e||function(e){if("undefined"!=typeof window&&window.crypto&&(t=window.crypto),"undefined"!=typeof self&&self.crypto&&(t=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(t=globalThis.crypto),!t&&"undefined"!=typeof window&&window.msCrypto&&(t=window.msCrypto),!t&&void 0!==y&&y.crypto&&(t=y.crypto),!t)try{t=require("crypto")}catch(e){}var t,n=function(){if(t){if("function"==typeof t.getRandomValues)try{return t.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof t.randomBytes)try{return t.randomBytes(4).readInt32LE()}catch(e){}}throw Error("Native crypto module could not be used to get secure random number.")},r=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),i={},o=i.lib={},s=o.Base={extend:function(e){var t=r(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.a
vendor: 4,294 bytes, line 29
29pply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},a=o.WordArray=s.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||c).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var o=0;o<i;o++){var s=n[o>>>2]>>>24-o%4*8&255;t[r+o>>>2]|=s<<24-(r+o)%4*8}else for(var a=0;a<i;a+=4)t[r+a>>>2]=n[a>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=0xffffffff<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=s.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r<e;r+=4)t.push(n());return new a.init(t,e)}}),l=i.enc={},c=l.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new a.init(n,t/2)}},u=l.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new a.init(n,t)}},d=l.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(e){throw Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},h=o.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=d.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,r=this._data,i=r.words,o=r.sigBytes,s=this.blockSize,l=o/(4*s),c=(l=t?e.ceil(l):e.max((0|l)-this._minBufferSize,0))*s,u=e.min(4*c,o);if(c){for(var d=0;d<c;d+=s)this._doProcessBlock(i,d);n=i.splice(0,c),r.sigBytes-=u}return new a.init(n,u)},clone:function(){var e=s.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});o.Hasher=h.extend({cfg:s.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){h.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new p.HMAC.init(e,n).finalize(t)}}});var p=i.algo={};return i}(Math)),i_.exports}im=iS(),function(e){var t=im.lib,n=t.WordArray,r=t.Hasher,i=im.algo,o=[],s=[];function a(e){return 0x100000000*(e-(0|e))|0}for(var l=2,c=0;c<64;)(function(t){for(var n=e.sqrt(t),r=2;r<=n;r++)if(!(t%r))return!1;return!0})(l)&&(c<8&&(o[c]=a(e.pow(l,.5))),s[c]=a(e.pow(l,1/3)),c++),l++;var u=[],d=i.SHA256=r.extend({_doReset:function(){this._hash=new n.init(o.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],l=n[4],c=n[5],d=n[6],h=n[7],p=0;p<64;p++){if(p<16)u[p]=0|e[t+p];else{var f=u[p-15],g=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,m=u[p-2],v=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;u[p]=g+u[p-7]+v+u[p-16]}var y=r&i^r&o^i&o,w=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),b=h+((l<<26|l>>>6)^(l<<21|l>>>11)^(l<<7|l>>>25))+(l&c^~l&d)+s[p]+u[p];h=d,d=c,c=l,l=a+b|0,a=o,o=i,i=r,r=b+(w+y)|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+l|0,n[5]=n[5]+c|0,n[6]=n[6]+d|0,n[7]=n[7]+h|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=e.floor(r/0x100000000),n[15+(i+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}});im.SHA256=r._createHelper(d),im.HmacSHA256=r._createHmacHelper(d)}(Math),ib.exports=im.SHA256;var ix=w(ib.exports),ik={exports:{}};ik.exports=iS().enc.Hex;
29var iE=w(ik.exports);let iC=new class{constructor(){this.timers=[],this.timer=0,this.previousTimeString="",this.translations={},this.loadingPromise=null,this.place=1,this.myScore=0,this.ab={},this.link=[],this.buildVersion=100,this.days="",this.hours="",this.minutes="",this.seconds="",this.isClickUpdate=!1,this._syncChain=Promise.resolve(),this._visibilityBound=!1,this._listeners=[],this._days=null,this._houres=null,this._minutes=null,this._seconds=null,this._renderListener=null,this.fetchOnce=eS(),this.config=f(ia,null),this.timezone=Math.min(Math.max(Math.floor(-((new Date).getTimezoneOffset()/60)),-12),12),this.config&&!this.config.tournaments&&(this.config={state:""})}_notifySeparates(){this._days&&this._days(this.days),this._houres&&this._houres(this.hours),this._minutes&&this._minutes(this.minutes),this._seconds&&this._seconds(this.seconds)}_notify(){this._listeners.forEach(e=>e(this.previousTimeString))}_notifyToRender(){this._renderListener&&this._renderListener()}showHiw(){this.config&&(this.config.hiw=!0,g(ia,this.config))}initTournament(){var e,t;if(!(this.config&&this.config.tournaments&&this.currentTournamentId&&this.config.tournaments[this.currentTournamentId]))return;let n={id:null==(t=null==(e=this.config.tournaments[this.currentTournamentId])?void 0:e.info)?void 0:t.name};Z.send("tournaments_new",n),eP("tournaments_new",n),this.config.tournaments[this.currentTournamentId].inited=!0,g(ia,this.config)}showFinishPopup(e){e&&this.config&&this.config.tournaments&&this.config.tournaments[e]&&(delete this.config.tournaments[e],g(ia,this.config))}subscribeRenderListener(e){this._renderListener=e}subscribeTournamentTimer(e,t,n,r){this._days=e,this._houres=t,this._minutes=n,this._seconds=r,this._notifySeparates()}unsubscribeTournamentTimer(){this._days=null,this._houres=null,this._minutes=null,this._seconds=null}subscribe(e){this._listeners.push(e),this._notify()}unsubscribe(e){this._listeners=this._listeners.filter(t=>t!==e)}subscribeTimer(e,t){this.timers.push(e),t&&(this.link=[...this.link,t]),this.previousTimeString="",this.renderTimers()}renderTimers(){var e,t,n,r,i,o;let s=ea(this.timer<0?0:this.timer);this.days=("0"+s.d).slice(-2).split("").map(e=>`<span>${e}</span>`).join(""),this.hours=("0"+s.h).slice(-2).split("").map(e=>`<span>${e}</span>`).join(""),this.minutes=("0"+s.m).slice(-2).split("").map(e=>`<span>${e}</span>`).join(""),this.seconds=("0"+s.s).slice(-2).split("").map(e=>`<span>${e}</span>`).join(""),(this._days||this._minutes)&&this._notifySeparates();let a="";(a=s.d>0?`${this.days}${null!=(e=this.translations.tournament_active_timer_d)?e:"d"} ${this.hours}${null!=(t=this.translations.tournament_active_timer_h)?t:"h"}`:s.h>0?`${this.hours}${null!=(n=this.translations.tournament_active_timer_h)?n:"h"} ${this.minutes}${null!=(r=this.translations.tournament_active_timer_m)?r:"m"}`:`${this.minutes}${null!=(i=this.translations.tournament_active_timer_m)?i:"m"} ${this.seconds}${null!=(o=this.translations.tournament_active_timer_s)?o:"s"}`)!==this.previousTimeString&&(this.timers.forEach(e=>{e.innerHTML=a}),this.previousTimeString=a,this._notify())}startTimer(){var e,t,n,r;if(!this.config||!this.currentTournamentId||!this.config.tournaments[this.currentTournamentId])return;clearInterval(this.timerInterval);let i=Math.floor(Date.now()/1e3),o=this.serverTime||i;this.timer=this.config.tournaments[this.currentTournamentId].status!==ih.running?(null==(e=this.config.tournaments[this.currentTournamentId])?void 0:e.info.start_time)-o:(null==(t=this.config.tournaments[this.currentTournamentId])?void 0:t.info.end_time)-o;let s=this.config.tournaments[this.currentTournamentId].status!==ih.running;this.link&&!(null==(r=null==(n=this.config.tournaments[this.currentTournamentId])?void 0:n.info)?void 0:r.is_silent)&&(s&&this.link.some(e=>!eI(e).contains(iu))||!s&&this.link.some(e=>!eI(e).contains(ic)))&&this.link.forEach(e=>{eI(e).add(s?iu:ic)}),this.processTimerLogic(),this.timerInterval=setInterval(()=>{this.timer>0&&this.timer--,this.serverTime=(this.serverTime||Date.now()/1e3)+1,this.processTimerLogic()},1e3)}processTimerLogic(){this.renderTimers(),this.timer<=0&&(clearInterval(this.timerInterval),this.link&&this.link.forEach(e
29=>{eI(e).remove(ic).remove(iu)}),this.isClickUpdate?this.load(!0):this.initByData())}async setup(e){this.domain=e.domain,this.eaid=e.eaid,e.translations&&(this.translations=e.translations),e.ab&&(this.ab=e.ab),e.buildVersion&&e.buildVersion>100&&(this.buildVersion=e.buildVersion),this.isClickUpdate=e.clickUpdate,this.loadingPromise=(async()=>{try{return this.euid=await rZ.getEuid(),await this.load()||this.setNextUpdateTimeout(),this._visibilityBound||(this._visibilityBound=!0,document.addEventListener("visibilitychange",async()=>{"visible"===document.visibilityState?(this.serverTime=await this.getTimestamp(),await this.load()):clearInterval(this.timerInterval)})),!0}catch(e){return console.warn(e),this.loadingPromise=null,!1}finally{this.loadingPromise=null}})()}async setNextUpdateTimeout(){clearTimeout(this.nextUpdateTimeout),this.serverTime||(this.serverTime=await this.getTimestamp()),clearTimeout(this.nextUpdateTimeout);let e=(this.config.errorUpdateTime||this.config.updateTime)-this.serverTime;console.log("set timeout for ",e,"seconds"),this.nextUpdateTimeout=setTimeout(async()=>{this.serverTime=await this.getTimestamp(),await this.load()},e>0?1e3*e:0)}async getTimestamp(){return r2(this.domain)}async load(e){this.serverTime||(this.serverTime=await this.getTimestamp());let t=this.serverTime||Date.now()/1e3,n=!1;return(!this.config||(!this.config.tournaments||!Object.keys(this.config.tournaments).length)&&!this.config.errorUpdateTime||this.config.updateTime&&t>=this.config.updateTime||this.config.errorUpdateTime&&t>=this.config.errorUpdateTime||this.isClickUpdate&&(!this.config||!this.config.lastForceUpdate||t-this.config.lastForceUpdate>10)||e)&&(await this.sync(this.isClickUpdate&&(!this.config||!this.config.lastForceUpdate||t-this.config.lastForceUpdate>10)?"click":null),n=!0),this.initByData(),n}async getFinishedTournament(){var e,t,n,r,i,o,s,a,l,c,u,d;if(!this.config||!(null==(e=this.config)?void 0:e.tournaments)||!Object.keys(null==(t=this.config)?void 0:t.tournaments).length)return null;try{this.loadingPromise&&await this.loadingPromise}catch(e){return console.warn(e),null}let h=Object.keys(null==(n=this.config)?void 0:n.tournaments).find(e=>{var t,n,r,i;return(null==(t=this.config)?void 0:t.tournaments[e])&&(null==(n=this.config)?void 0:n.tournaments[e].status)===ih.completed&&!(null==(r=this.config)?void 0:r.tournaments[e].finishPopup)&&!(null==(i=this.config.tournaments[e].info)?void 0:i.is_silent)});return h?null!=(a=null==(s=null==(o=null==(i=null==(r=this.config)?void 0:r.tournaments[h])?void 0:i.scores)?void 0:o.find(e=>e.p))?void 0:s.ts)&&a?{uuid:h,achivment:(null==(l=this.config)?void 0:l.tournaments[h].achievements)&&(null==(c=this.config)?void 0:c.tournaments[h].achievements.length)?null==(u=this.config)?void 0:u.tournaments[h].achievements[0]:null,finishPopup:null==(d=this.config)?void 0:d.tournaments[h].finishPopup}:(this.showFinishPopup(h),null):null}initByData(){var e,t,n,r,i,o,s,a;let l=this.serverTime||Math.floor(Date.now()/1e3);if((null==(e=this.config)?void 0:e.tournaments)&&Object.keys(null==(t=this.config)?void 0:t.tournaments).length&&(this.currentTournamentId=Object.keys(null==(n=this.config)?void 0:n.tournaments).find(e=>{var t,n,r,i,o,s,a;return(null==(t=this.config)?void 0:t.tournaments[e])&&(null==(n=this.config)?void 0:n.tournaments[e].info)&&(l>=(null==(r=this.config)?void 0:r.tournaments[e].info.start_time)||l<(null==(i=this.config)?void 0:i.tournaments[e].info.start_time))&&(null==(o=this.config)?void 0:o.tournaments[e].info.end_time)>l&&(null==(s=this.config)?void 0:s.tournaments[e].status)!==ih.noaccess&&(null==(a=this.config)?void 0:a.tournaments[e].status)!==ih.completed}),this.currentTournamentId)){if((null==(r=this.config)?void 0:r.tournaments[this.currentTournamentId].status)===ih.running){let e=null==(i=this.config)?void 0:i.tournaments[this.currentTournamentId].scores.sort((e,t)=>t.ts-e.ts);this.place=e.findIndex(e=>e.p)+1,this.myScore=null!=(a=null==(s=null==(o=this.config)?void 0:o.tournaments[this.currentTournamentId].scores.find(e=>e.p))?void 0:s.ts)?a:0,this.config.tournaments[this.currentTournamentId].inited||this.initTourn
29ament()}this.startTimer(),this._notifyToRender()}}async sendGameResult(e,t){var n,r,i,o,s;if(!this.euid||!this.config)return;let a=this.place;if(this.config.prevGameId!==t){let r=this.config.prevGameId;this.config.prevGameId=t,this.config.games=[...null!=(n=this.config.games)?n:[],e],g(ia,this.config);try{await this.sync("game")}catch(e){throw this.config.prevGameId=r,g(ia,this.config),e}g(ia,this.config)}let l=0;if(this.currentTournamentId){let e=(null==(r=this.config)?void 0:r.tournaments[this.currentTournamentId].scores.sort((e,t)=>t.ts-e.ts)).findIndex(e=>e.p)+1;l=null!=(s=null==(o=null==(i=this.config)?void 0:i.tournaments[this.currentTournamentId].scores.find(e=>e.p))?void 0:o.ts)?s:0,this.myScore=l,this.place=e}return{prevPlace:a,newPlace:this.place,score:h(l)}}sync(e){let t=this._syncChain.then(()=>this._sync(e));return this._syncChain=t.then(()=>{},()=>{}),t}async _sync(e){var t,n,r,i,o,s,a,l,c,u,h,p,f,m,v,y,w,b,_,S,x,k,E,C,P,T;if(!this.euid||!this.domain||!this.eaid)return null;this.config||(this.config={state:""});let L=this.serverTime||Math.floor(Date.now()/1e3);this.config.lastForceUpdate=L,g(ia,this.config);let I=null!=(t=this.config.games)?t:[],O=JSON.stringify(Object.assign(Object.assign({},this.timezone!==(null==(n=this.config)?void 0:n.timezone)?{timezone:this.timezone}:{}),I.length?{games:I}:{})),A=ix(`${this.config.state}${O}${this.euid}D00-EJH@*(N3sd${this.eaid}`),M=A;"string"!=typeof M&&(M=A.toString(iE));let N=I.length?"game":null,D=e||N,R=Object.values(this.ab).join(",");try{let e=await this.fetchOnce(`${this.domain}/2.0`,{method:"POST",headers:Object.assign(Object.assign({"x-easy-eaid":String(this.eaid),"x-easy-euid":String(this.euid),"x-easy-hash":M,"x-easy-state":this.config.state,"Content-Type":"application/json","Accept-Encoding":"gzip, deflate","x-easy-version":(e=>{let t=String(e),n=t.length;if(0===n)return"1.0.0";let r=Math.floor(n/3),i=n%3,o=[],s=0;for(let e=0;e<3;e++){let n=r+ +(e<i),a=t.substring(s,s+n);o.push(a||"0"),s+=n}return o.join(".")})(this.buildVersion)},R?{"x-easy-ab":R}:{}),D?{"x-easy-action":D}:{}),body:O});if(this.serverTime=parseInt(null!=(r=e.headers.get("x-easy-time"))?r:"0")||Date.now()/1e3,r5(this.serverTime),304===e.status){let t=parseInt(null!=(i=e.headers.get("x-easy-update-time"))?i:"0")||this.serverTime+60*d(300,360);return delete this.config.errorUpdateTime,delete this.config.countErrors,this.config.state=null!=(o=e.headers.get("x-easy-state"))?o:"",this.config.timezone=this.timezone,this.config.updateTime=this.serverTime+(t-this.serverTime),this.setNextUpdateTimeout(),g(ia,this.config),this.initByData(),null}if(e.status>=400||e.status<200){this.config.countErrors=(null!=(s=this.config.countErrors)?s:0)+1;let t=il[Math.min(this.config.countErrors-1,il.length-1)];return this.config.errorUpdateTime=parseInt(null!=(a=e.headers.get("x-easy-update-time"))?a:"0")||this.serverTime+60*d(t[0],t[1]),this.setNextUpdateTimeout(),g(ia,this.config),this.initByData(),null}200!==e.status&&300!==e.status||(this.config.games=(null!=(l=this.config.games)?l:[]).filter(e=>!I.includes(e)),g(ia,this.config));let t=await e.json(),n=parseInt(null!=(c=e.headers.get("x-easy-update-time"))?c:"0")||this.serverTime+60*d(300,360);if(delete this.config.errorUpdateTime,delete this.config.countErrors,this.config.state=null!=(u=e.headers.get("x-easy-state"))?u:"",this.config.timezone=this.timezone,this.config.updateTime=this.serverTime+(n-this.serverTime),this.config.tournaments||(this.config.tournaments={}),t.tournament&&(this.config.tournaments[t.tournament.uuid]={info:null!=(h=t.tournament.info)?h:null==(p=this.config.tournaments[t.tournament.uuid])?void 0:p.info,uuid:t.tournament.uuid,status:t.tournament.status,room:t.tournament.room,inited:null!=(m=null==(f=this.config.tournaments[t.tournament.uuid])?void 0:f.inited)&&m,scores:null!=(v=t.tournament.scores)?v:null==(y=this.config.tournaments[t.tournament.uuid])?void 0:y.scores,achievements:null!=(b=t.tournament.achievements||(null==(w=this.config.tournaments[t.tournament.uuid])?void 0:w.achievements))?b:[],finishPopup:null!=(S=null==(_=this.config.tournaments[t.tournament.uuid])?void 0:_.finishPopup)&&S,sent:null!=(k=null==(x=this.config.tournaments[t.tournament.uuid])?void 0:x.sent)&&k}),t.tournament_result&&(this.config.tournaments[t.tournament_result.uuid].achievements=t.tournament_result.achievements,this.config.tournaments[t.tournament_result.uuid].status=t.tournament_result.status,!this.config.tournaments[t.tournament_result.uuid].sent)){let e=(null==(E=this.config)?void 0:E.tournaments[t.tournament_result.uuid].scores.sort((e,t)=>
29t.ts-e.ts)).findIndex(e=>e.p)+1,n=null!=(T=null==(P=null==(C=this.config)?void 0:C.tournaments[t.tournament_result.uuid].scores.find(e=>e.p))?void 0:P.ts)?T:0,r={id:this.config.tournaments[t.tournament_result.uuid].info.name,place:e,points:n,award:t.tournament_result.achievements&&t.tournament_result.achievements.length?t.tournament_result.achievements[0].medal:""};eP("tournaments_finish",r),Z.send("tournaments_finish",r),this.config.tournaments[t.tournament_result.uuid].sent=!0}return this.config.lastForceUpdate=this.serverTime,this.setNextUpdateTimeout(),g(ia,this.config),this.initByData(),!0}catch(e){return console.warn(e),this.initByData(),null}}},iP=({translations:e})=>{var t,n,r,i,o;let[a,c]=(0,l.useState)("<span>0</span><span>0</span>"),[u,d]=(0,l.useState)("<span>0</span><span>0</span>"),[h,p]=(0,l.useState)("<span>0</span><span>0</span>"),[f,g]=(0,l.useState)("<span>0</span><span>0</span>");return(0,l.useEffect)(()=>(iC.subscribeTournamentTimer(e=>{c(e)},e=>{d(e)},e=>{p(e)},e=>{g(e)}),()=>{iC.unsubscribeTournamentTimer()}),[]),(0,s.h)("div",{className:"tournament-styles_tournament_upcomming__h350Z"},(0,s.h)("div",{className:"tournament-styles_tournament_upcomming_title__mEJDm"},null!=(t=e.tournament_starts_in_title)?t:"Tournament Starts In:"),(0,s.h)("div",{className:"tournament-styles_tournament_upcomming_body__OrsLv"},(0,s.h)("div",{className:iv},(0,s.h)("div",{className:iy,dangerouslySetInnerHTML:{__html:a}}),(0,s.h)("div",{className:iw},null!=(n=e.tournament_starts_in_days)?n:"Days")),(0,s.h)("div",{className:iv},(0,s.h)("div",{className:iy,dangerouslySetInnerHTML:{__html:u}}),(0,s.h)("div",{className:iw},null!=(r=e.tournament_starts_in_hours)?r:"Hours")),(0,s.h)("div",{className:iv},(0,s.h)("div",{className:iy,dangerouslySetInnerHTML:{__html:h}}),(0,s.h)("div",{className:iw},null!=(i=e.tournament_starts_in_minutes)?i:"Minutes")),(0,s.h)("div",{className:iv},(0,s.h)("div",{className:iy,dangerouslySetInnerHTML:{__html:f}}),(0,s.h)("div",{className:iw},null!=(o=e.tournament_starts_in_seconds)?o:"Seconds"))))},iT={components:{Tournament:({translations:e,color:t,newBreakpoints:n})=>{var r,i,o,l,c,u,d,p,f,g,m,v,y,w,b,_;let S=(()=>{let[,e]=(0,a.useState)(0);return()=>e(e=>e+1)})(),[x,k]=(0,a.useState)(!0),[E,C]=(0,a.useState)(!1),[P,T]=(0,a.useState)(!1),[L,I]=(0,a.useState)(!1),[O,A]=(0,a.useState)(!1),[M,N]=(0,a.useState)(!1),[D,R]=(0,a.useState)(""),[B,F]=(0,a.useState)(""),[$,j]=(0,a.useState)(!1),H=(0,a.useRef)(null),z=(0,a.useRef)(null),G=(0,a.useRef)(null),q=(0,a.useRef)(null),U=()=>{var e;iC.currentTournamentId&&k(!1),(null==(e=iC.config)?void 0:e.hiw)||(I(!0),iC.showHiw()),"visible"===document.visibilityState&&(q.current=setInterval(async()=>{await iC.load(),S()},3e5)),document.addEventListener("visibilitychange",()=>{"visible"===document.visibilityState?(S(),q.current=setInterval(async()=>{await iC.load(),S()},3e5)):(q.current&&clearInterval(q.current),q.current=null)})},W=()=>{if(!z.current)return;let e=z.current,t=0===e.scrollTop,n=e.scrollHeight-e.scrollTop===e.clientHeight;F(t&&n?"":t?"top":n?"bottom":"middle")};return(0,a.useEffect)(()=>{if(!z.current||!G.current)return;let e=Math.floor(z.current.clientHeight/44);z.current.scrollTop=Math.max(0,G.current.offsetTop-44*Math.floor(e/2));let t=z.current;return t?(t.addEventListener("scroll",W),W(),()=>t.removeEventListener("scroll",W)):void 0},[z,G,x]),(0,a.useEffect)(()=>{iC.subscribeRenderListener(S),iC.loadingPromise?iC.loadingPromise.then(()=>{U()}):U();let e=()=>{if(!H.current)return;let e=H.current.offsetWidth,r=H.current.offsetHeight;N(r<460),A(n?r<480||window.innerWidth<=759:r<480||e<664||window.innerWidth<768),R(e<550?"phone":e<700?"tablet":""),C(window.matchMedia("(orientation: portrait)").matches),T(t===n6.blue?window.innerWidth<=929:e<635),j(t===n6.blue&&window.innerWidth<=929&&window.innerWidth>=540)};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),(0,s.h)("div",{className:`tournament-styles_tournament__Jbsr0 ${D} ${E?"portrait":"landscape"} ${$?"big-portrait":""} ${P?"pview":"lview"} ${M?"small":""}`,ref:H},(0,s.h)(ec,{text:null!=(r=e.game_screen_loading_game)?r:"Loading Game",show:x}),(0,s.h)(er,{show:L,fullSize:O,onClose:()=>I(!1),color:t,big:t===n6.green,items:[{btns:[{text:null!=(i=e.dc_button_continue)?i:"Continue",func:e=>{e()}}],text:null!=(o=e.tournament_tutorial_popup_slide_1_body)?o:"Participate in the tournament and win a unique medal.",image:(0,s.h)("img",{src:"/build/images/tournament/hiw1.png",srcSet:"/build/images/tournament/hiw1.png 1x, /build/images/tournament/[email protected] 2x",alt:"img1"})},{btns:[{text:null!=(l=null==e?void 0:e.ok)?l:"OK",func:e=>{e()}}],text:null!=(c=e.tournament_tutorial_popup_slide_2_body)?c:"Hurry! Tournament time is limited. Only levels that are completed before the tournament ends will count.",image:(0,s.h)("img",{src:"/build/images/dc/hiw2.png",srcSet:"/build/images/tournament/hiw2.png 1x, /build/images/tournament/[email protected] 2x",alt:"img2"})}],title:{value:null!=(u=e.tournament_tutorial_popup_title)?u:"How Does It Work?"}}),iC.currentTournamentId&&(null==(d=iC.config)?void 0:d.tournaments)&&(null==(p=iC.config)?void 0:p.tournaments[iC.currentTournamentId])&&(null==(f=iC.config)?void 0:f.tournaments[iC.currentTournamentId].status)!==ih.running&&(0,s.h)(iP,{translations:e||{}}),(0,s.h)("div",{className:"tournament-styles_tournament_left__n3Fq5"},(0,s.h)("div",{className:"tournament-styles_tournament_left_title__dlOIg"},null!=(g=e.tournament_leaderboards_title)?g:"Tournament"),(0,s.h)("div",{className:"tournament-styles_tournament_timer__n4UbL"},(0,s.h)("span",null,null!=(m=e.tournament_leaderboards_ends_in)?m:"Ends in:")," ",(0,s.h)(eX,{subscribe:iC.subscribe.bind(iC),unsubscribe:iC.unsubscribe.bind(iC)})),(0,s.h)("img",{className:"tournament-styles_tournament_left_medals__PqW-P",src:"/build/images/tournament/medals.png",srcSet:"/build/images/tournament/medals.png 1x, /build/images/tournament/[email protected] 2x",alt:"medals"})),(0,s.h)("div",{className:`tournament-styles_tournament_right__S9m0t ${B} ${t}`},(0,s.h)("button",{className:"tournament-styles_tournament_hiw__cvKt6",onClick:()=>I(!0)}),(0,s.h)("div",{className:"tournament-styles_tournament_right_title__lbhAX"},null!=(v=e.tournament_leaderboards_total_score_title)?v:"Total Score"),iC.currentTournamentId&&(null==(y=iC.config)?void 0:y.tournaments)&&(null==(w=iC.config)?void 0:w.tournaments[iC.currentTournamentId])&&(null==(b=iC.config)?void 0:b.tournaments[iC.currentTournamentId].status)===ih.running&&(0,s.h)("div",{className:"tournament-styles_tournament_leaderboard__9CqcA",ref:z},null==(_=iC.config)?void 0:_.tournaments[iC.currentTournamentId].scores.sort((e,t)=>
29t.ts-e.ts).map((t,n)=>{var r,i,o,a,l,c,u,d,p;return(0,s.h)("div",{ref:t.p?G:null,className:`tournament-styles_tournament_leaderboard_item__mrSGm ${t.p?"tournament-styles_tournament_leaderboard_me__cZB93":""} ${iC.currentTournamentId&&(null==(o=null==(i=null==(r=iC.config)?void 0:r.tournaments[iC.currentTournamentId])?void 0:i.info)?void 0:o.trophies)&&(null!=(d=null==(u=null==(c=null==(l=null==(a=iC.config)?void 0:a.tournaments[iC.currentTournamentId])?void 0:l.info)?void 0:c.trophies.find(e=>n+1>=e.min_place&&n+1<=e.max_place))?void 0:u.medal)?d:"")}`,key:n},(0,s.h)("div",{className:"tournament-styles_tournament_leaderboard_item_position__0ky27"},n+1),(0,s.h)("div",{className:"tournament-styles_tournament_leaderboard_item_content__PoVrP"},(0,s.h)("span",{className:"tournament-styles_tournament_leaderboard_name__IbAZ7"},t.p?null!=(p=e.tournament_leaderboards_you_pointer)?p:"Me":t.u),(0,s.h)("span",{className:"tournament-styles_tournament_leaderboard_score__HotnA"},h(t.ts))))}))))}},tournamentLogic:iC},iL=({className:e=""})=>(0,s.h)("svg",{className:`${rz.lockerIcon} ${e}`.trim(),width:"50",height:"50",viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg"},(0,s.h)("path",{d:"M25 0c8.591 0 15.556 6.888 15.556 15.385v7.692c2.146 0 3.888 1.723 3.888 3.846v19.23c0 2.124-1.742 3.847-3.888 3.847H9.444c-2.146 0-3.888-1.723-3.888-3.846v-19.23c0-2.124 1.742-3.847 3.888-3.847v-7.692C9.444 6.888 16.41 0 25 0zm0 7.692c-4.296 0-7.778 3.444-7.778 7.693v7.692h15.556v-7.692c0-4.249-3.482-7.693-7.778-7.693z",fillRule:"evenodd"}));var iI={};!function e(t,n,r,i){var o=!!(t.Worker&&t.Blob&&t.Promise&&t.OffscreenCanvas&&t.OffscreenCanvasRenderingContext2D&&t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype.transferControlToOffscreen&&t.URL&&t.URL.createObjectURL),s="function"==typeof Path2D&&"function"==typeof DOMMatrix,a=function(){if(!t.OffscreenCanvas)return!1;try{var e=new OffscreenCanvas(1,1),n=e.getContext("2d");n.fillRect(0,0,1,1);var r=e.transferToImageBitmap();n.createPattern(r,"no-repeat")}catch(e){return!1}return!0}();function l(){}function c(e){var r=n.exports.Promise,i=void 0!==r?r:t.Promise;return"function"==typeof i?new i(e):(e(l,l),null)}var u,d,h,p,f,g,m,v,y,w,b=(u=new Map,{transform:function(e){if(a)return e;if(u.has(e))return u.get(e);var t=new OffscreenCanvas(e.width,e.height);return t.getContext("2d").drawImage(e,0,0),u.set(e,t),t},clear:function(){u.clear()}}),_=(p=Math.floor(1e3/60),f={},g=0,"function"==typeof requestAnimationFrame&&"function"==typeof cancelAnimationFrame?(d=function(e){var t=Math.random();return f[t]=requestAnimationFrame(function n(r){g===r||g+p-1<r?(g=r,delete f[t],e()):f[t]=requestAnimationFrame(n)}),t},h=function(e){f[e]&&cancelAnimationFrame(f[e])}):(d=function(e){return setTimeout(e,p)},h=function(e){return clearTimeout(e)}),{frame:d,cancel:h}),S=(y={},function(){if(m)return m;if(!r&&o){var t=["var CONFETTI, SIZE = {}, module = {};","("+e.toString()+")(this, module, true, SIZE);",`onmessage = function(msg) { 30 if (msg.data.options) { 31 CONFETTI(msg.data.options).then(function () { 32 if (msg.data.callback) { 33 postMessage({ callback: msg.data.callback }); 34 } 35 }); 36 } else if (msg.data.reset) { 37 CONFETTI && CONFETTI.reset(); 38 } else if (msg.data.resize) { 39 SIZE.width = msg.data.resize.width; 40 SIZE.height = msg.data.resize.height; 41 } else if (msg.data.canvas) { 42 SIZE.width = msg.data.canvas.width; 43 SIZE.height = msg.data.canvas.height; 44 CONFETTI = module.exports.create(msg.data.canvas); 45 } 46}`].join(` 47`);try{m=new Worker(URL.createObjectURL(new Blob([t])))}catch(e){return"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn("ð Could not load worker",e),null}var n=m;function i(e,t){n.postMessage({options:e||{},callback:t})}n.init=function(e){var t=e.transferControlToOffscreen();n.postMessage({canvas:t},[t])},n.fire=function(e,t,r){if(v)return i(e,null),v;var o=Math.random().toString(36).slice(2);return v=c(function(t){function s(e){e.data.callback===o&&(delete y[o],n.removeEventListener("message",s),v=null,b.clear(),r(),t())}n.addEventListener("message",s),i(e,o),y[o]=s.bind(null,{data:{callback:o}})})},n.reset=function(){for(var e in n.postMessage({reset:!0}),y)y[e](),delete y[e]}}return m}),x={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};
47function k(e,t,n){var r;return r=e&&null!=e[t]?e[t]:x[t],n?n(r):r}function E(e){return e<0?0:Math.floor(e)}function C(e){return parseInt(e,16)}function P(e){return e.map(T)}function T(e){var t=String(e).replace(/[^0-9a-f]/gi,"");return t.length<6&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]),{r:C(t.substring(0,2)),g:C(t.substring(2,4)),b:C(t.substring(4,6))}}function L(e){e.width=document.documentElement.clientWidth,e.height=document.documentElement.clientHeight}function I(e){var t=e.getBoundingClientRect();e.width=t.width,e.height=t.height}function O(e,n){var a,l=!e,u=!!k(n||{},"resize"),d=!1,h=k(n,"disableForReducedMotion",Boolean),p=o&&k(n||{},"useWorker")?S():null,f=l?L:I,g=!(!e||!p||!e.__confetti_initialized),m="function"==typeof matchMedia&&matchMedia("(prefers-reduced-motion)").matches;function v(n){var o,v=h||k(n,"disableForReducedMotion",Boolean),y=k(n,"zIndex",Number);if(v&&m)return c(function(e){e()});l&&a?e=a.canvas:l&&!e&&((o=document.createElement("canvas")).style.position="fixed",o.style.top="0px",o.style.left="0px",o.style.pointerEvents="none",o.style.zIndex=y,e=o,document.body.appendChild(e)),u&&!g&&f(e);var w={width:e.width,height:e.height};function S(){if(p){var t={getBoundingClientRect:function(){if(!l)return e.getBoundingClientRect()}};return f(t),void p.postMessage({resize:{width:t.width,height:t.height}})}w.width=w.height=null}function x(){a=null,u&&(d=!1,t.removeEventListener("resize",S)),l&&e&&(document.body.contains(e)&&document.body.removeChild(e),e=null,g=!1)}return p&&!g&&p.init(e),g=!0,p&&(e.__confetti_initialized=!0),u&&!d&&(d=!0,t.addEventListener("resize",S,!1)),p?p.fire(n,w,x):function(t,n,o){for(var l,u,d,h,p,g,m,v=k(t,"particleCount",E),y=k(t,"angle",Number),w=k(t,"spread",Number),S=k(t,"startVelocity",Number),x=k(t,"decay",Number),C=k(t,"gravity",Number),T=k(t,"drift",Number),L=k(t,"colors",P),I=k(t,"ticks",Number),O=k(t,"shapes"),A=k(t,"scalar"),M=!!k(t,"flat"),N=((l=k(t,"origin",Object)).x=k(l,"x",Number),l.y=k(l,"y",Number),l),D=v,R=[],B=e.width*N.x,F=e.height*N.y;D--;)R.push(function(e){var t=e.angle*(Math.PI/180),n=e.spread*(Math.PI/180);return{x:e.x,y:e.y,wobble:10*Math.random(),wobbleSpeed:Math.min(.11,.1*Math.random()+.05),velocity:.5*e.startVelocity+Math.random()*e.startVelocity,angle2D:-t+(.5*n-Math.random()*n),tiltAngle:(.5*Math.random()+.25)
47*Math.PI,color:e.color,shape:e.shape,tick:0,totalTicks:e.ticks,decay:e.decay,drift:e.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:3*e.gravity,ovalScalar:.6,scalar:e.scalar,flat:e.flat}}({x:B,y:F,angle:y,spread:w,startVelocity:S,color:L[D%L.length],shape:O[Math.floor(Math.random()*(O.length-0))+0],ticks:I,decay:x,gravity:C,drift:T,scalar:A,flat:M}));return a?a.addFettis(R):(u=e,p=R.slice(),g=u.getContext("2d"),m=c(function(e){function t(){d=h=null,g.clearRect(0,0,n.width,n.height),b.clear(),o(),e()}d=_.frame(function e(){r&&(n.width!==i.width||n.height!==i.height)&&(n.width=u.width=i.width,n.height=u.height=i.height),n.width||n.height||(f(u),n.width=u.width,n.height=u.height),g.clearRect(0,0,n.width,n.height),(p=p.filter(function(e){return function(e,t){t.x+=Math.cos(t.angle2D)*t.velocity+t.drift,t.y+=Math.sin(t.angle2D)*t.velocity+t.gravity,t.velocity*=t.decay,t.flat?(t.wobble=0,t.wobbleX=t.x+10*t.scalar,t.wobbleY=t.y+10*t.scalar,t.tiltSin=0,t.tiltCos=0,t.random=1):(t.wobble+=t.wobbleSpeed,t.wobbleX=t.x+10*t.scalar*Math.cos(t.wobble),t.wobbleY=t.y+10*t.scalar*Math.sin(t.wobble),t.tiltAngle+=.1,t.tiltSin=Math.sin(t.tiltAngle),t.tiltCos=Math.cos(t.tiltAngle),t.random=Math.random()+2);var n,r,i,o,a,l,c,u,d,h,p,f,g,m,v,y,w=t.tick++/t.totalTicks,_=t.x+t.random*t.tiltCos,S=t.y+t.random*t.tiltSin,x=t.wobbleX+t.random*t.tiltCos,k=t.wobbleY+t.random*t.tiltSin;if(e.fillStyle="rgba("+t.color.r+", "+t.color.g+", "+t.color.b+", "+(1-w)+")",e.beginPath(),s&&"path"===t.shape.type&&"string"==typeof t.shape.path&&Array.isArray(t.shape.matrix))e.fill((n=t.shape.path,r=t.shape.matrix,i=t.x,o=t.y,a=.1*Math.abs(x-_),l=.1*Math.abs(k-S),c=Math.PI/10*t.wobble,u=new Path2D(n),(d=new Path2D).addPath(u,new DOMMatrix(r)),(h=new Path2D).addPath(d,new DOMMatrix([Math.cos(c)*a,Math.sin(c)*a,-Math.sin(c)*l,Math.cos(c)*l,i,o])),h));else if("bitmap"===t.shape.type){var E=Math.PI/10*t.wobble,C=.1*Math.abs(x-_),P=.1*Math.abs(k-S),T=t.shape.bitmap.width*t.scalar,L=t.shape.bitmap.height*t.scalar,I=new DOMMatrix([Math.cos(E)*C,Math.sin(E)*C,-Math.sin(E)*P,Math.cos(E)*P,t.x,t.y]);I.multiplySelf(new DOMMatrix(t.shape.matrix));var O=e.createPattern(b.transform(t.shape.bitmap),"no-repeat");O.setTransform(I),e.globalAlpha=1-w,e.fillStyle=O,e.fillRect(t.x-T/2,t.y-L/2,T,L),e.globalAlpha=1}else if("circle"===t.shape)e.ellipse?e.ellipse(t.x,t.y,Math.abs(x-_)*t.ovalScalar,Math.abs(k-S)*t.ovalScalar,Math.PI/10*t.wobble,0,2*Math.PI):(p=t.x,f=t.y,g=Math.abs(x-_)*t.ovalScalar,m=Math.abs(k-S)*t.ovalScalar,v=Math.PI/10*t.wobble,y=2*Math.PI,e.save(),e.translate(p,f),e.rotate(v),e.scale(g,m),e.arc(0,0,1,0,y,void 0),e.restore());else if("star"===t.shape)for(var A=Math.PI/2*3,M=4*t.scalar,N=8*t.scalar,D=t.x,R=t.y,B=5,F=Math.PI/B;B--;)D=t.x+Math.cos(A)*N,R=t.y+Math.sin(A)*N,e.lineTo(D,R),A+=F,D=t.x+Math.cos(A)*M,R=t.y+Math.sin(A)*M,e.lineTo(D,R),A+=F;else e.moveTo(Math.floor(t.x),Math.floor(t.y)),e.lineTo(Math.floor(t.wobbleX),Math.floor(S)),e.lineTo(Math.floor(x),Math.floor(k)),e.lineTo(Math.floor(_),Math.floor(t.wobbleY));return e.closePath(),e.fill(),t.tick<t.totalTicks}(g,e)})).length?d=_.frame(e):t()}),h=t}),(a={addFettis:function(e){return p=p.concat(e),m},canvas:u,promise:m,reset:function(){d&&_.cancel(d),h&&h()}}).promise)}(n,w,x)}return v.reset=function(){p&&p.reset(),a&&a.reset()},v}function A(){return w||(w=O(null,{useWorker:!0,resize:!0})),w}n.exports=function(){return A().apply(this,arguments)},n.exports.reset=function(){A().reset()},n.exports.create=O,n.exports.shapeFromPath=function(e){if(!s)throw Error("path confetti are not supported in this browser");"string"==typeof e?r=e:(r=e.path,i=e.matrix);var t=new Path2D(r),n=document.createElement("canvas").getContext("2d");if(!i){for(var r,i,o,a,l=1e3,c=1e3,u=0,d=0,h=0;h<1e3;h+=2)for(var p=0;p<1e3;p+=2)n.isPointInPath(t,h,p,"nonzero")&&(l=Math.min(l,h),c=Math.min(c,p),u=Math.max(u,h),d=Math.max(d,p));var f=Math.min(10/(o=u-l),10/(a=d-c));i=[f,0,0,f,-Math.round(o/2+l)*f,-Math.round(a/2+c)*f]}return{type:"path",path:r,matrix:i}},n.exports.shapeFromText=function(e){var t,n=1,r="#000000",i='"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif';"string"==typeof e?t=e:(t=e.text,n="scalar"in e?e.scalar:n,i="fontFamily"in e?e.fontFamily:i,r="color"in e?e.color:r);var o=10*n,s=o+"px "+i,a=new OffscreenCanvas(o,o),l=a.getContext("2d");l.font=s;var c=l.measureText(t),u=Math.ceil(c.actualBoundingBoxRight+c.actualBoundingBoxLeft),d=Math.ceil(c.actualBoundingBoxAscent+c.actualBoundingBoxDescent),h=c.actualBoundingBoxLeft+2,p=c.actualBoundingBoxAscent+2;u+=4,d+=4,(l=(a=new OffscreenCanvas(u,d)).getContext("2d")).font=s,l.fillStyle=r,l.fillText(t,h,p);var f=1/n;return{type:"bitmap",bitmap:a.transferToImageBitmap(),matrix:[f,0,0,f,-u*f/2,-d*f/2]}}}(function(){return"undefined"!=typeof window?window:"undefined"!=typeof self?self:this||{}}(),iI,!1);var iO=iI.exports;iI.exports.create;let iA={1:"gold",2:"silver",3:"bronze",4:"copper"},iM=["gold","silver","bronze"],iN=()=>(0,s.h)("img",{src:"/build/images/postcards/key.png",srcSet:"/build/images/postcards/key.png 1x, /build/images/postcards/[email protected] 2x"});var iD="LeaderboardPage-styles_leaderboard_page_finish_line__kvw0W",iR="LeaderboardPage-styles_wide__wfzUk";let iB={components:{Postcards:({translations:e,gameUrl:t,homePageUrl:n,debug:r=!1,newBreakpoints:i,hideDifficultyMenu:o,color:l=n6.blue,modes:c,rtl:u,onGetMoreKeysClick:d,gameLinks:h,redesign:p=!1,bigPostcards:f=!1,
47compact:g=!1,fullModal:m})=>{var v,y,w,b,_,S,x,k,E,C,P,T,L,I,O;let A=rI(),[M,N]=(0,a.useState)(!0),D=(0,a.useRef)(null),R=(0,a.useRef)(null),B=(0,a.useRef)(null),F=(0,a.useRef)(null),$=(0,a.useRef)(null),j=(0,a.useRef)(!1),H=(0,a.useRef)(null),[z,G]=(0,a.useState)(!1),[q,U]=(0,a.useState)(!1),[W,V]=(0,a.useState)(!1),[Y,X]=(0,a.useState)(!1),[K,J]=(0,a.useState)(!!m),[Z,Q]=(0,a.useState)(!1),[ee,et]=(0,a.useState)(!1),[en,ei]=(0,a.useState)(!1),eo=(0,a.useRef)(null),es=(0,a.useRef)(null),[ea,el]=(0,a.useState)(!1),[eu,ed]=(0,a.useState)(!1),[eh,ep]=(0,a.useState)(!1),ef=null!==it.getCompletedCardIndex()?it.getCompletedCardIndex():it.getActiveCardIndex(),[eg,em]=(0,a.useState)(ef||0),[ev,ey]=(0,a.useState)((null==(v=it.config.currentEvent)?void 0:v.currentLevel)||null),[ew,eb]=(0,a.useState)(null),[e_,eS]=(0,a.useState)(!1),[ex,ek]=(0,a.useState)([]),[eE,eC]=(0,a.useState)(0),[eP,eT]=(0,a.useState)(0),[eL,eI]=(0,a.useState)(!1),eO=(0,a.useRef)(null),eA=(0,a.useRef)(null),eM=(0,a.useRef)(null),[eN,eD]=(0,a.useState)(null),[eR,eB]=(0,a.useState)(!1),[eF,e$]=(0,a.useState)(!1),ej=(0,a.useRef)([]),eH=(0,a.useRef)(null),ez=(0,a.useRef)(null),eG=(0,a.useRef)(null),[eq,eU]=(0,a.useState)(!1),[eW,eV]=(0,a.useState)(!1),eY=(0,a.useRef)(null),eK=(0,a.useRef)(null),[eJ,eZ]=(0,a.useState)({balance:null,levelsCount:null}),eQ=(0,a.useRef)(Array(7).fill(null)),e0=(0,a.useRef)(null),e1=(0,a.useRef)(!1),e2=(0,a.useRef)(null),e5=(0,a.useRef)([]),e4=(0,a.useRef)([]),e6=(0,a.useRef)(!1),e3=(0,a.useRef)(null),e7=null==(w=null==(y=it.config)?void 0:y.currentEvent)?void 0:w.withLeaderboard,e8=it.withCurrency||!!(null==(b=it.config.currentEvent)?void 0:b.currency),[e9,te]=(0,a.useState)(e7?it.getLeaderboardForPostcard(ef||0):null),[tt,tn]=(0,a.useState)(!0),[tr,ti]=(0,a.useState)(ef||0),[to,ts]=(0,a.useState)(!1),ta=(0,a.useRef)(null),tl=ef||0,tc=rO(),tu=e=>{var t;return rM(e,null!=(t=null==ew?void 0:ew.postcards.length)?t:0,tc)},td=(e,t=!1)=>{if(D.current){j.current=!0;try{D.current.slickGoTo(e,t)}finally{j.current=!1}}},th=()=>{let e=it.getData();e?(eb(e),N(!1),ev||ey(it.config.currentEvent.currentLevel)):$.current=window.setTimeout(th,1e3)};if((0,a.useEffect)(()=>(console.log("[bulk-open] component MOUNTED"),th(),()=>{console.log("[bulk-open] component UNMOUNTED"),$.current&&clearTimeout($.current)}),[]),(0,a.useEffect)(()=>{if(!e7)return;let e=()=>{te(it.getLeaderboardForPostcard(eg))};return it.subscribeLeaderboardUpdate(e),ta.current&&clearTimeout(ta.current),tn(!1),ta.current=window.setTimeout(()=>{ti(eg);let e=it.getLeaderboardForPostcard(eg);te(e),tn(!0),ta.current=null,e&&it.sendWidgetEvent(eg)},300),()=>{it.unsubscribeLeaderboardUpdate(e),ta.current&&clearTimeout(ta.current)}},[e7,eg]),(0,a.useEffect)(()=>{if(M||!e7)return;let e=it.getActiveCardIndex();null!==e&&(ts(!0),it.requestLeaderboardView(e).then(()=>{ts(!1)}))},[M,e7]),(0,a.useEffect)(()=>{it.config.currentEvent&&(it.config.visited||(it.sendOnboardingEvent(2),it.setVisited()),it.config.onboarding&&it.config.onboardingStep<6&&it.sendOnboardingEvent(6),it.sendScreenEvent("ge_screen"))},[M]),(0,a.useEffect)(()=>{var e,t;if(ew){let n=ew.postcards[eg];if(n.completed&&!e2.current&&!e1.current){if(ew.postcards.length===eg+1)tI(it.getAllAwardIds());else if(!n.rewardShown){let e=it.getAwardIdForPostcard(eg);null!==e&&tL([e])}}(null==(e=it.config.currentEvent)?void 0:e.mode)&&eD(null==(t=it.config.currentEvent)?void 0:t.mode)}},[ew]),(0,a.useEffect)(()=>{var e,t;it.config.hiw?it.config.hiw&&(null==(t=null==(e=it.config)?void 0:e.currentEvent)?void 0:t.withLeaderboard)&&!it.config.leaderboardHiw&&(el(!0),it.sendScreenEvent("g_event_tutorial"),it.config.onboarding&&!it.config.leaderboardOnboarded&&(it.sendOnboardingEvent(7,!1),it.setLeaderboardOnboarded()),it.showLeaderboardHiw()):(Q(!0),eS(!0),it.sendScreenEvent("g_event_tutorial"),it.sendOnboardingEvent(3.1),it.showHiw());let n=()=>{if(!B.current)return;let e=B.current.offsetWidth,t=F.current?F.current.offsetHeight:B.current.offsetHeight,n=i?window.innerWidth<=929:l===n6.green?e<=715:window.matchMedia("(orientation: portrait)").matches,r
47=n?e:.55*e,o=p?Math.min(t-(n?240:-172),340):f?Math.min(t-(n?240:256),340):Math.floor((t-100)*(n&&c&&c.length?.65:.6)),s=f?Math.min(340,Math.floor(r-(n?50:128))):Math.floor(r-(n?50:144));console.log(s,o);let a=Math.max(Math.min(o,s),p?266:241);U(n&&a<340),eC(a),eT(r),X(e<723||t<520),"boolean"!=typeof m&&J(t<480||e<664||window.innerWidth<768),G(n),V(i?window.innerWidth<=929:l===n6.green?e<=715:window.innerWidth<768)};return setTimeout(n,0),window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n)}},[]),(0,a.useEffect)(()=>{"boolean"==typeof m&&J(m)},[m]),(0,a.useEffect)(()=>{W&&B.current&&eM.current&&B.current.offsetHeight>window.innerHeight-60&&(eM.current.style.display="none")},[M,W]),(0,a.useEffect)(()=>{var e;if(console.log("[bulk-open] effect fired",{loading:M,hasData:!!ew,isCurrencyMode:e8,autoOpenTriggered:e1.current,showHiw:Z}),M||!ew||!e8||e1.current||Z)return;let t=it.getActiveCardIndex();if(console.log("[bulk-open] activeIdx",t),null===t)return;let n=ew.postcards[t];if(console.log("[bulk-open] activeCard",{isOpen:n.isOpen,completed:n.completed}),!n.isOpen||n.completed)return;let r=null==(e=it.config.currentEvent)?void 0:e.mode,i=e=>e.filter(e=>!e.mode||e.mode===r),o=i(n.levels).filter(e=>!e.completed),s=it.getCurrencyBalance(),a=[];for(let e of o){let t=e.price;if(void 0===t||s<t)break;a.push(e.id),s-=t}if(console.log("[bulk-open] toOpen",a,"activeLevels",o.length,"balance",s,"prices",o.map(e=>e.price)),a.length<2){if(0===a.length)return void console.log("[bulk-open] EXIT: toOpen empty");if(1!==o.length)return;let e=0,n=s;for(let r=t+1;r<ew.postcards.length;r++)for(let t of i(ew.postcards[r].levels).filter(e=>!e.completed)){let r=t.price;if(void 0===r||n<r)break;e++,n-=r}if(0===e)return void console.log("[bulk-open] EXIT: toOpen.length<2 and no subsequent")}console.log("[bulk-open] PROCEEDING with animation, toOpen",a),e1.current=!0,eK.current=it.getCurrencyBalance(),eg!==t&&D.current&&(td(tu(t),!0),em(t)),ej.current=a,eU(!0),A();let l=e=>{requestAnimationFrame(()=>{var r,o,c,u,d,h,p,f,g;let m=eQ.current.filter(Boolean),v=!!(null==(r=eH.current)?void 0:r.querySelector("img")),y=!!(null==(u=null==(c=null==(o=D.current)?void 0:o.innerSlider)?void 0:c.list)?void 0:u.querySelector(`.slick-current .${rz.postcard}`)),w=!!e0.current;if(console.log("[bulk-open] scheduleBulkAnimation",{retriesLeft:e,hasContainer:w,hasChip:v,hasPostcard:y,groupKeysCount:m.length}),(!w||!v||!y||m.length<7)&&e>0)return void l(e-1);w&&v&&y&&!(m.length<7)||console.warn("[bulk-open] RETRIES EXHAUSTED â refs still missing, animation will be skipped",{hasContainer:w,hasChip:v,hasPostcard:y,groupKeysCount:m.length});let b=ew.postcards.map(e=>e.completed);it.openMultipleLevelsWithCurrency(a,tP);let _=[];for(let e=t+1;e<ew.postcards.length;e++){let t=ew.postcards[e];if(!t.isOpen||t.completed)continue;let n=i(t.levels).filter(e=>!e.completed),r=[],o=s,a=i(t.levels).filter(e=>e.completed).length;for(let e of n){let t=e.price;if(void 0===t||s<t)break;it.selectLevel(e.id),it.openLevelWithCurrency(null),s-=t,r.push(e.id)}0!==r.length&&_.push({cardIndex:e,levelIds:r,isComplete:!1,awardId:null,balanceBefore:o,balanceAfter:s,levelsFrom:a,levelsTo:a+r.length})}e4.current=_;let S=it.getData();for(let e of e4.current){let t=null!=(h=null==(d=null==S?void 0:S.postcards[e.cardIndex])?void 0:d.completed)&&h;e.isComplete=t,e.awardId=t?it.getAwardIdForPostcard(e.cardIndex):null}let x=null!=(p=null==S?void 0:S.postcards.every(e=>e.completed))&&p,k=!b[t]&&null!=(g=null==(f=null==S?void 0:S.postcards[t])?void 0:f.completed)&&g;if(x){if(k&&0===e4.current.length)tT(it.getAllAwardIds()),e2.current=()=>{it.onShowEventFinishPopup(),ep(!0),it.sendScreenEvent("g_event_completed")};else if(e6.current=!0,k){let e=it.getAwardIdForPostcard(t);null!==e&&tT([e]),e2.current=()=>{ed(!0),it.onShowPostcardReward(),it.sendScreenEvent("g_event_reward")}}}else if(k){let e=it.getAwardIdForPostcard(t);null!==e&&tT([e]),e2.current=()=>{ed(!0),it.onShowPostcardReward(),it.sendScreenEvent("g_event_reward")}}S&&eb(Object.assign({},S)),tM(a,()=>{let e=e4.current.length>0?e4.current[0].balanceBefore:null;if(null!==eK.current&&S){let n=eK.current,r=null!=e?e:it.getCurrencyBalance(),i=S.postcards[t].levels.filter(e=>!e.mode||e.mode===eN);tO(n,r,i.reduce((e,t)=>
47e+(a.includes(t.id)?0:+t.completed),0),i.reduce((e,t)=>e+ +t.completed,0))}eK.current=e;let r=e2.current;e2.current=null;let o=100*Math.max(0,Math.floor(Math.sqrt(i(n.levels).length))-1);eB(!0),A();let s=r?1200+o:1900+o;setTimeout(()=>e$(!0),r?1e3+o:1600+o),setTimeout(()=>{eB(!1),e$(!1),ej.current=[],(null==it?void 0:it.onChangeMode)&&it.onChangeMode(),r&&tA(r)},s)})})};requestAnimationFrame(()=>l(10))},[M,ew,Z]),!ew||0===ew.postcards.length)return(0,s.h)(ec,{text:null!=(_=e.loading)?_:"Loading Event",show:M});let tp=e=>{eO.current&&!eO.current.contains(e.target)&&eA.current&&!eA.current.contains(e.target)&&(it.sendScreenEvent("ge_screen"),eI(!1))};(0,a.useEffect)(()=>(eL?document.addEventListener("mousedown",tp):document.removeEventListener("mousedown",tp),()=>{document.removeEventListener("mousedown",tp)}),[eL]);let tf=e=>{eo.current&&!eo.current.contains(e.target)&&es.current&&!es.current.contains(e.target)&&ei(!1)};(0,a.useEffect)(()=>(en?document.addEventListener("mousedown",tf):document.removeEventListener("mousedown",tf),()=>{document.removeEventListener("mousedown",tf)}),[en]);let{postcards:tg,iconUrl:tm}=ew,tv=(e,t,n=12,r=40)=>{let i=e-t,o=Math.max(16+n/2,Math.min(i/2-n/2,i/2-r/2));return`${Math.round(o)}px`},ty=(eE||241)-16,tw={initialSlide:tu(tl),dots:!1,infinite:!1,speed:500,slidesToShow:1,slidesToScroll:1,waitForAnimate:!1,fade:!1,arrows:!1,centerMode:!1,draggable:z,className:rz.slider,responsive:W?[{breakpoint:i?929:767,settings:{centerMode:!0,centerPadding:tv(eP||(null==(S=B&&B.current)?void 0:S.offsetWidth)||window.innerWidth,ty+16,16)}},{breakpoint:470,settings:{centerMode:!0,centerPadding:tv(eP||(null==(x=B&&B.current)?void 0:x.offsetWidth)||window.innerWidth,ty+16,12,16)}}]:[],beforeChange:(e,t)=>
47{var n;j.current||e!==t&&(tx(tu(t),!1),null==(n=R.current)||n.slickGoTo(t))},afterChange:()=>{}},tb={initialSlide:tu(eg),dots:!1,infinite:!1,speed:300,slidesToShow:1,slidesToScroll:1,waitForAnimate:!1,fade:!0,arrows:!1,centerMode:!1,draggable:!1,swipe:!1,responsive:[{breakpoint:576,settings:{centerMode:!0,centerPadding:"15%"}},{breakpoint:380,settings:{centerMode:!0,centerPadding:"10%"}}]},t_=()=>window.location.href=n,tS=e=>()=>{D.current&&tx(e===rr.right?eg+1:eg-1)},tx=(e,t=!0)=>{if(D.current){let n=null==ew?void 0:ew.postcards[e];if(n&&n.isOpen&&!n.completed){let e=n.levels.find(e=>!(e.completed||e.mode&&e.mode!==eN));e&&(ey(e.id),it.selectLevel(e.id))}if(em(e),t)if(Math.abs(e-eg)>1&&e8&&p&&!z&&H.current){let t=H.current;t.style.transition="opacity 0.15s ease",t.style.opacity="0",setTimeout(()=>{td(tu(e),!0),requestAnimationFrame(()=>{t.style.opacity="1",setTimeout(()=>{t.style.transition="",t.style.opacity=""},150)})},150)}else td(tu(e))}},tk=()=>{let e=tg.findIndex(({isOpen:e,completed:t})=>e&&!t);-1!==e&&tx(e)},tE=async()=>{let e=e4.current[0];if(e4.current=e4.current.slice(1),!e)return void(e6.current?(e6.current=!1,await tT(it.getAllAwardIds()),it.onShowEventFinishPopup(),ep(!0),it.sendScreenEvent("g_event_completed")):(tk(),it.sendScreenEvent("ge_screen")));let t=e.isComplete&&0===e4.current.length&&e6.current;e.isComplete&&(t?await tT(it.getAllAwardIds()):null!==e.awardId&&await tT([e.awardId]));let n=null==ew?void 0:ew.postcards[e.cardIndex];if(n&&!e.isComplete){let e=n.levels.find(e=>!(e.completed||e.mode&&e.mode!==eN));e&&(ey(e.id),it.selectLevel(e.id))}else ey(null);eK.current=e.balanceBefore,ej.current=e.levelIds,eU(!0);let r=t?()=>{e6.current=!1,it.onShowEventFinishPopup(),ep(!0),it.sendScreenEvent("g_event_completed")}:e.isComplete?()=>{ed(!0),it.onShowPostcardReward(),it.sendScreenEvent("g_event_reward")}:null;e3.current=()=>{tM(e.levelIds,()=>{var t,n;let i=e4.current.length>0?e4.current[0].balanceBefore:null;tO(e.balanceBefore,e.balanceAfter,e.levelsFrom,e.levelsTo),eK.current=i;let o=100*Math.max(0,Math.floor(Math.sqrt((null!=(n=null==(t=null==ew?void 0:ew.postcards[e.cardIndex])?void 0:t.levels)?n:[]).filter(e=>!e.mode||e.mode===eN).length))-1);eB(!0),A();let s=r?1200+o:1900+o;setTimeout(()=>e$(!0),r?1e3+o:1600+o),setTimeout(()=>{eB(!1),e$(!1),ej.current=[],(null==it?void 0:it.onChangeMode)&&it.onChangeMode(),r?tA(r):tE()},s)})};let i=tu(e.cardIndex),o=!!D.current&&(()=>{var e,t,n;return null==(n=null==(t=null==(e=D.current)?void 0:e.innerSlider)?void 0:t.state)?void 0:n.currentSlide})()!==i;D.current&&(em(e.cardIndex),td(i));let s=e3.current;e3.current=null;let a=()=>requestAnimationFrame(()=>requestAnimationFrame(()=>null==s?void 0:s()));o?setTimeout(a,500):a()},tC=e=>{ey(e),it.selectLevel(e)},tP=(e,t)=>{ey(e),t&&!e1.current&&(tT(e?[it.getAwardIdForPostcard(eg)].filter(e=>null!==e):it.getAllAwardIds()),e2.current=e?()=>{ed(!0),it.onShowPostcardReward(),it.sendScreenEvent("g_event_reward")}:()=>{it.onShowEventFinishPopup(),ep(!0),it.sendScreenEvent("g_event_completed")})},tT=async e=>{ek((await it.awardsLogic.getAwards()).filter(({award_id:t})=>e.includes(t)))},tL=async e=>{new Promise(e=>{let t=()=>{it.setupFinished?e():setTimeout(t,100)};t()}).then(async()=>{await tT(e),setTimeout(()=>{ed(!0),it.onShowPostcardReward(),it.sendScreenEvent("g_event_reward")},1e3)})},tI=async e=>{new Promise(e=>{let t=()=>{it.setupFinished?e():setTimeout(t,100)};t()}).then(async()=>{await tT(e),setTimeout(()=>{it.onShowEventFinishPopup(),ep(!0),it.sendScreenEvent("g_event_completed")},1e3)})},tO=(e,t,n,r)=>{let i=document.querySelector('[data-balance-count="active"]'),o=document.querySelector('[data-levels-count="active"]');i&&(i.style.width=i.offsetWidth+"px"),o&&(o.style.width=o.offsetWidth+"px"),eZ({balance:e,levelsCount:n});let s=performance.now(),a=()=>{let l=Math.min(1,(performance.now()-s)/300);eZ({balance:Math.round(e+(t-e)*l),levelsCount:Math.round(n+(r-n)*l)}),l<1?requestAnimationFrame(a):(eZ({balance:null,levelsCount:null}),i&&(i.style.width=""),o&&(o.style.width=""))};requestAnimationFrame(a)},tA=e=>{var t,n;eV(!0);let r=D.current?null==(n=null==(t=D.current.innerSlider)?void 0:t.list)?void 0:n.querySelector(`.slick-current .${rz.postcard}`):null;if(!r)return eV(!1),void e();let i="cubic-bezier(0.25, 0.1, 0.25, 1)";requestAnimationFrame(()=>{r.style.transition=`transform 1.3s ${i}, box-shadow 1.3s ${i}`,r.style.transform="scale(1.05)",r.style.boxShadow="0 5px 20px 0 rgba(0, 50, 107, 0)",setTimeout(()=>{if(eY.current){let e=r.getBoundingClientRect(),t=e.left+e.width/2,n=e.top+e.height/2;iO.create(eY.current,{resize:!0})({particleCount:400,spread:360,startVelocity:30,ticks:70,origin:{x:t/window.innerWidth,y:n/window.innerHeight}})}r.style.transition=`transform 0.3s cubic-bezier(.65,2.2,.53,.93), box-shadow 0.3s ${i}`,r.style.transform="",r.style.boxShadow="",setTimeout(()=>{eV(!1),e()},300)},1300)})},tM=(e,t)=>{var n,r,i;let o=eQ.current.filter(Boolean),s=null==(n=eH.current)?void 0:n.querySelector("img"),a=D.current?null==(i=null==(r=D.current.innerSlider)?void 0:r.list)?void 0:i.querySelector(`.slick-current .${rz.postcard}`):null,l=e0.current;if(console.log("[bulk-open] triggerBulkFlyingKeysAnimation",{groupKeysCount:o.length,hasChip:!!s,hasPostcard:!!a,hasContainer:!!l}),o.length<7||!s||!a||!l)return console.warn("[bulk-open] guard FAILED inside triggerBulkFlyingKeysAnimation â onComplete called immediately"),void t();console.log("[bulk-open] animation STARTING");let c=e=>{let t=e.getBoundingClientRect();return{x:t.left+t.width/2,y:t.top+t.height/2}},u=(e,t)=>
47Object.assign(e.style,t),d=c(s),h=c(a),p="cubic-bezier(0.25, 0.1, 0.25, 1)",f="cubic-bezier(0.6, -1, 0.85, 1)",g=[{dx:0,dy:66},{dx:-46,dy:34},{dx:46,dy:34},{dx:0,dy:0},{dx:-46,dy:-34},{dx:46,dy:-34},{dx:0,dy:-66}];o.forEach(e=>{u(e,{display:"block",opacity:"1",transition:"none",transform:`translate(${d.x-36}px, ${d.y-36}px) scale(0)`})}),requestAnimationFrame(()=>{requestAnimationFrame(()=>{o.forEach((e,t)=>{let{dx:n,dy:r}=g[t];u(e,{transition:`transform 500ms ${100*t}ms ${p}`,transform:`translate(${h.x-36+n}px, ${h.y-36+r}px) scale(1)`})}),setTimeout(()=>{let n=e.length,r=[],i=[];if(n<=3){let e=1===n?[7]:2===n?[4,3]:[3,2,2];for(let t=0;t<n;t++)for(let n=0;n<e[t];n++)r.push(t),i.push(n)}else{r.push(0,0,0),i.push(0,1,2),r.push(n-1,n-1),i.push(0,1),r.push(n-2,n-2),i.push(0,1);for(let e=1;e<=n-3;e++)r.push(e,e),i.push(0,1)}let s=r.length,a=[{dx:-24,dy:0},{dx:-48,dy:0},{dx:24,dy:0},{dx:48,dy:0},{dx:-36,dy:-24},{dx:36,dy:-24},{dx:-36,dy:24},{dx:36,dy:24}],c=[];for(let e=7;e<s;e++){let t=document.createElement("div");t.className=rz.flyingKey,t.innerHTML='<img src="/build/images/postcards/key.png" srcset="/build/images/postcards/key.png 1x, /build/images/postcards/[email protected] 2x" />';let n=e-7,{dx:r,dy:i}=n<a.length?a[n]:{dx:0,dy:0};u(t,{display:"block",opacity:"0",transition:"none",transform:`translate(${h.x-36+r}px, ${h.y-36+i}px) scale(1)`}),l.insertBefore(t,l.firstChild),c.push(t)}if(c.length>0&&(l.getBoundingClientRect(),!document.getElementById("extra-key-fade-kf"))){let e=document.createElement("style");e.id="extra-key-fade-kf",e.textContent="@keyframes extraKeyFadeInOut{0%{opacity:0}50%{opacity:1}83.33%{opacity:1}100%{opacity:0}}",document.head.appendChild(e)}let d=[...[...o].reverse(),...c],g=e.map(e=>{let t=document.querySelector(`[data-flying-level-id="${e}"]`);if(!t)return{x:h.x,y:h.y};let n=t.getBoundingClientRect();return{x:n.left+n.width/2,y:n.top+n.height/2}});d.forEach((e,t)=>{let{x:n,y:o}=g[r[t]],s=t>=7;setTimeout(()=>{u(e,s?{transition:`transform 0.8s ${f}`,animation:`extraKeyFadeInOut 0.9s ${p} forwards`,transform:`translate(${n-36}px, ${o-36+10}px) scale(0.25)`}:{transition:`transform 0.8s ${f}, opacity 0.15s 0.75s ${p}`,transform:`translate(${n-36}px, ${o-36+10}px) scale(0.25)`,opacity:"0"})},50*i[t])}),setTimeout(()=>{o.forEach(e=>u(e,{display:"none",transition:"none"})),c.forEach(e=>e.remove()),eU(!1),t()},50*Math.max(...i)+950)},1200)})})},tN=(0,s.h)("div",{className:`${rz.right} ${eR||eq||eW?rz.blocked:""} ${q?rz.small:""} ${e7?rz.leaderboardRight:""} ${W?rz.portrait:""} ${l===n6.green?rz.full:""} ${c&&c.length?rz.withMode:""} ${p?rz.redesignGradient:""}`},e8&&(0,s.h)("div",{ref:eH,className:`${rz.currencyChip} ${q?rz.small:""}`},(0,s.h)(iN,null),(0,s.h)("span",{"data-balance-count":"active"},null!==eJ.balance?eJ.balance:null!==eK.current?eK.current:it.getCurrencyBalance())),!p&&(0,s.h)("div",{ref:eM,className:`${rz.hintContainer} ${e7?rz.leaderboardRight:""} ${W?rz.portrait:""} ${c&&c.length?rz.withMode:""}`},(0,s.h)(rw,Object.assign({ref:R},tb),rA(tg.map(({id:t,isOpen:n,completed:r})=>{var i;return(0,s.h)("div",{key:t},(0,s.h)("div",{className:rz.sliderItem},(0,s.h)("div",{className:`${rz.hint} ${W?rz.portrait:""}`},r&&(e.event_screen_next_body||"Postcard completed! Go to the next one"),null!=(i=!r&&n&&(z?e.event_screen_body_mobile:e.event_screen_body_desktop))?i:"Click any cell and then click the Play button",!n&&!r&&(e.event_screen_locked_body||"Complete previous postcard first"))))}),tc))),(0,s.h)("div",{ref:H,className:`${rz.sliderContainer} ${e8&&p&&!z?rz.redesignSliderContainer:""}`},(0,s.h)(rw,Object.assign({ref:D},tw),rA(tg.map(({id:e,levels:t,isOpen:n,completed:r,postcardImage:i,rewardShown:o},a)=>{let c=t.filter(e=>!e.mode||e.mode===eN).reduce((e,t)=>eq&&ej.current.includes(t.id)?e:e+ +t.completed,0),u=!e8&&r&&eg===a&&(!o||(null==tg?void 0:tg.length)===a+1),d=t.filter(e=>!e.mode||e.mode===eN),h=Math.sqrt(d.length);return(0,s.h)("div",{key:e},(0,s.h)("div",null,(0,s.h)("div",{className:`${rz.sliderItem} ${e8&&p&&!z?rz.redesignCurrencySliderItem:""}`,style:e8&&p&&!z&&a!==eg?{transform:`translateX(${(a<eg?50:-50)*(tc?-1:1)}%) scale(0.6)`}:void 0},(0,s.h)("div",{className:`${u?rz.postcardCompleted:""}`},r&&e8&&eW&&a===eg&&(0,s.h)("img",{className:`${rz.glow} ${W?rz.small:""}`,src:"/build/images/postcards/glow.png",srcSet:"/build/images/postcards/glow.png 1x, /build/images/postcards/[email protected] 2x"}),(0,s.h)("div",{className:`${rz.postcard} ${e8&&r?rz.withGlare:""}`,style:eE?{width:`${eE}px`,height:`${eE}px`}:{}},n&&r&&!(e8&&(eq||eR)&&a===eg)&&(0,s.h)("div",{className:rz.completedCell,
47style:{backgroundImage:r?`url(${i})`:void 0,backgroundSize:`${ty}px ${ty}px`}}),!n&&!r&&(0,s.h)("div",{className:rz.lockedCard},(0,s.h)("div",{className:rz.lockerIcon})),r&&e8&&eW&&a===eg&&(0,s.h)("div",{className:rz.bigGlare}),n&&(!r||e8&&(eq||eR)&&a===eg)&&Array(h*h).fill(0).map((e,t)=>{let{id:n,difficulty:r,completed:o,color:a}=d[t],c=it.getLevelProgress(n,l),u=ev===n,f=(e=>{var t,n,r,i;let o=Math.floor(e/h),s=e%h;return{top:o>0&&(null==(t=d[e-h])?void 0:t.completed),bottom:o<h-1&&(null==(n=d[e+h])?void 0:n.completed),left:s>0&&(null==(r=d[e-1])?void 0:r.completed),right:s<h-1&&(null==(i=d[e+1])?void 0:i.completed)}})(t);return(0,s.h)("div",{key:n,onClick:()=>!o&&tC(n),className:`${rz.cell} ${(eR||eq)&&ej.current.includes(n)?rz.visible:""} ${e8?rz.currencyCell:""} ${rz[a||r]} ${o?`${rz.completed} ${[f.left&&rz.leftBorder,f.right&&rz.rightBorder,f.top&&rz.topBorder,f.bottom&&rz.bottomBorder].filter(Boolean).join(" ")}`:""} ${u?rz.active:""}`,style:{backgroundImage:o?`url(${i})`:void 0,backgroundSize:`${ty}px ${ty}px`,backgroundPosition:`-${ty*(t/h-Math.floor(t/h))}px -${1/h*Math.floor(t/h)*ty}px`,width:1/h*ty+"px",paddingBottom:o?1/h*ty+"px":1/h*ty-2+"px"}},!o&&!p&&c.l&&0!==c.p&&(0,s.h)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 36 36",className:rz.progressBar},(0,s.h)("circle",{cx:"16",cy:"16",r:"15.9155",className:rz.circleBackground}),(0,s.h)("circle",{cx:"16",cy:"16",r:"15.9155",className:`${rz.circleProgress} ${rz[a||r]}`,style:"stroke-dashoffset: "+(100-c.p)})),!o&&!(u&&e8)&&(0,s.h)(iL,null),e8&&(0,s.h)("div",{"data-flying-level-id":n,className:`${rz.currencyCellOverlay} ${eq&&ej.current.includes(n)?rz.visible:""} ${eR&&ej.current.includes(n)?rz.active:""} ${e1.current?rz.currencyCellClosingWithDelay:rz.currencyCellClosing}`},(0,s.h)("div",{style:{width:1/h*ty*.52+"px",height:1/h*ty*.51+"px"},className:rz.currencyLock},(0,s.h)("img",{className:rz.currencyLock_base,src:"/build/images/postcards/lock_base.png",srcSet:"/build/images/postcards/lock_base.png 1x, /build/images/postcards/[email protected] 2x"}),(0,s.h)("img",{className:rz.currencyLock_top,src:"/build/images/postcards/lock_top.png",srcSet:"/build/images/postcards/lock_top.png 1x, /build/images/postcards/[email protected] 2x"}))),!o&&u&&e8&&eR&&(0,s.h)("div",{className:rz.flare}),!o&&u&&e8&&(0,s.h)("div",{style:{width:1/h*ty*.52+"px",height:1/h*ty*.51+"px"},"data-active-lock":n,className:`${rz.currencyLock} ${eR?rz.currencyLockAnimation:""}`,disabled:eq||eR&&!eF},(0,s.h)("img",{className:rz.currencyLock_base,src:"/build/images/postcards/lock_base.png",srcSet:"/build/images/postcards/lock_base.png 1x, /build/images/postcards/[email protected] 2x"}),(0,s.h)("img",{className:rz.currencyLock_top,src:"/build/images/postcards/lock_top.png",srcSet:"/build/images/postcards/lock_top.png 1x, /build/images/postcards/[email protected] 2x"})),!o&&u&&e8&&(eR||eq)&&(0,s.h)("div",{className:`${rz.currencyFakeCell} ${rz[a||r]} ${eR?rz.currencyCellOpening:""}`},(0,s.h)(iL,null)),o&&e8&&e1.current&&(eR||eq)&&ej.current.slice(1).includes(n)&&(0,s.h)("div",{className:`${rz.currencyFakeCell} ${rz.bunch} ${rz[a||r]} ${eR?rz.currencyBunchCellOpening:""}`,style:{animationDelay:.9+.1*Math.floor(t/h)+"s"}},(0,s.h)(iL,null),(0,s.h)("div",{"data-flying-level-id":n,className:`${rz.currencyCellOverlay}`},(0,s.h)("div",{style:{width:1/h*ty*.52+"px",height:1/h*ty*.51+"px"},className:rz.currencyLock},(0,s.h)("img",{className:rz.currencyLock_base,src:"/build/images/postcards/lock_base.png",srcSet:"/build/images/postcards/lock_base.png 1x, /build/images/postcards/[email protected] 2x"}),(0,s.h)("img",{className:rz.currencyLock_top,src:"/build/images/postcards/lock_top.png",srcSet:"/build/images/postcards/lock_top.png 1x, /build/images/postcards/[email protected] 2x"})))))}),n&&!r&&(0,s.h)("div",{"data-levels-count":a===eg?"active":void 0,className:rz.levelsCount},(0,s.h)("img",{alt:"imageIcon",src:"/build/images/postcards/imageIcon.svg"}),(0,s.h)("span",{"data-levels-num":!0},null!==eJ.levelsCount&&a===eg?eJ.levelsCount:c),"/",d.length))))))}),tc)),(0,s.h)("div",{className:`${rz.arrow} ${e8&&p&&!z?rz.redesignCurrencyArrow:""}`,disabled:0===eg,"data-left":!0,onClick:()=>{it.sendScreenAction("ge_screen","left"),tS(rr.left)()},style:{"--postcards-arrow-inset":`calc(50% - ${(ty+16)/2+(p?52:50)}px)`}},l===n6.green&&(0,s.h)("img",{alt:"arrow-right",src:"/build/images/dc/arrow.svg"}),l===n6.blue&&(0,s.h)("img",{alt:"arrow-right",src:"/build/images/dc/arrow-blue.svg"})),(0,s.h)("div",{className:`${rz.arrow} ${e8&&p&&!z?rz.redesignCurrencyArrow:""}`,disabled:eg===tg.length-1,"data-right":!0,onClick:()=>{it.sendScreenAction("ge_screen","right"),tS(rr.right)()},style:{"--postcards-arrow-inset":`calc(50% - ${(ty+16)/2+(p?52:50)}px)`}},l===n6.green&&(0,s.h)("img",{alt:"arrow-right",src:"/build/images/dc/arrow.svg"}),l===n6.blue&&(0,s.h)("img",{alt:"arrow-right",src:"/build/images/dc/arrow-blue.svg"})),tg.length>1&&(0,s.h)("div",{className:rz.dots},tg.map((e,t)=>(0,s.h)("button",{onClick:()=>tx(t),className:`${rz.item} ${t===eg?`${rz.active} ${l}`:""}`,key:t}
47)))),(0,s.h)("div",null,tg[eg].isOpen&&!tg[eg].completed&&(e8?(0,s.h)("button",{className:`${rz.btn} ${rz.openBtnCounter} ${l}`,onClick:()=>{if(eK.current=it.getCurrencyBalance(),it.openLevelWithCurrency(tP)){ej.current=null!==ev?[ev]:[];let e=it.getData();e&&eb(Object.assign({},e)),((e,t)=>{var n,r,i;let o=ez.current,s=eG.current,a=null==(n=eH.current)?void 0:n.querySelector("img"),l=D.current?null==(i=null==(r=D.current.innerSlider)?void 0:r.list)?void 0:i.querySelector(`.slick-current .${rz.postcard}`):null,c=null!==e?document.querySelector(`[data-flying-level-id="${e}"]`):null;if(!(o&&s&&a&&l&&c))return t();let u=null!==e?document.querySelector(`[data-active-lock="${e}"]`):null;if(u){let e=window.getComputedStyle(u).transform,t=c.querySelector(`.${rz.currencyLock}`);t&&"none"!==e&&(t.style.transform=e,requestAnimationFrame(()=>{requestAnimationFrame(()=>{t.style.transition="transform 0.25s ease",t.style.transform="",setTimeout(()=>{t.style.transition=""},300)})}))}eU(!0);let d=e=>{let t=e.getBoundingClientRect();return{x:t.left+t.width/2,y:t.top+t.height/2}},h=d(a),p=d(l),f=d(c),g="cubic-bezier(0.25, 0.1, 0.25, 1)",m="cubic-bezier(0.6, -1, 0.85, 1)",v=(e,t)=>Object.assign(e.style,t);
47[o,s].forEach(e=>{v(e,{display:"block",opacity:"1",transition:"none",transform:`translate(${h.x-36}px, ${h.y-36}px) scale(0)`})});let y=p.x-36-30,w=p.y-36+7,b=p.x-36+30,_=p.y-36+7,S=f.x-36,x=f.y-36+10,k=f.x-36,E=f.y-36+10;requestAnimationFrame(()=>{requestAnimationFrame(()=>{v(o,{transition:`transform 0.5s 0.2s ${g}`,transform:`translate(${y}px, ${w}px) scale(1)`}),v(s,{transition:`transform 0.5s 0.3s ${g}`,transform:`translate(${b}px, ${_}px) scale(1)`}),setTimeout(()=>{v(o,{transition:`transform 0.8s 0.05s ${m}, opacity 0.15s 0.85s ${g}`,transform:`translate(${S}px, ${x}px) scale(0.25)`,opacity:"0"}),v(s,{transition:`transform 0.8s 0s ${m}, opacity 0.15s 0.75s ${g}`,transform:`translate(${k}px, ${E}px) scale(0.25)`,opacity:"0"})},800),setTimeout(()=>{[o,s].forEach(e=>{v(e,{display:"none",transition:"none"})}),eU(!1),t()},1900)})})})(ev,()=>{if(null!==eK.current){let e=eK.current,t=it.getCurrencyBalance(),n=it.getData();if(n){let r=n.postcards[eg].levels.filter(e=>!e.mode||e.mode===eN),i=ej.current;tO(e,t,r.reduce((e,t)=>e+(i.includes(t.id)?0:+t.completed),0),r.reduce((e,t)=>e+ +t.completed,0))}}eK.current=null;let e=e2.current;e2.current=null,eB(!0),A();let t=e?1100:2200;setTimeout(()=>{e$(!0)},e?800:1600),setTimeout(()=>{eB(!1),e$(!1),ej.current=[],(null==it?void 0:it.onChangeMode)&&it.onChangeMode(),e&&tA(e)},t)})}else eK.current=null,et(!0)},disabled:eR||eq||eW},(0,s.h)("span",null,e.currency_open_button||"Open"),(0,s.h)("div",null,(0,s.h)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},(0,s.h)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.49427 10.786C6.45599 8.81564 9.44575 8.50782 11.7294 9.86126L17.1282 4.43784C17.7096 3.85408 18.6525 3.85403 19.2339 4.43784C19.779 4.98537 19.8128 5.8521 19.3361 6.4396L19.2339 6.55322L20.8139 8.14044C21.3953 8.72459 21.3954 9.67171 20.8139 10.2558C20.2325 10.8398 19.2896 10.8399 18.7082 10.2558L17.1282 8.6686L16.6003 9.19882L16.7025 9.31244C17.1792 9.89994 17.1454 10.7667 16.6003 11.3142C16.0553 11.8616 15.1925 11.8957 14.6077 11.4168L14.4946 11.3142L13.8358 11.976C15.1859 14.2705 14.8799 17.2757 12.9173 19.2476C10.5914 21.5841 6.82021 21.5841 4.49427 19.2476C2.1687 16.911 2.16845 13.1225 4.49427 10.786ZM6.59866 12.9014C5.43607 14.0696 5.43624 15.9639 6.59866 17.1322C7.76156 18.3004 9.6472 18.3003 10.8102 17.1322C11.973 15.9639 11.9731 14.0697 10.8102 12.9014C9.64722 11.7337 7.76148 11.7334 6.59866 12.9014Z",fill:"#873D03"}),(0,s.h)("g",{filter:"url(#filter0_i_7418_10990)"},(0,s.h)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.49427 9.78605C6.45599 7.81564 9.44575 7.50782 11.7294 8.86126L17.1282 3.43784C17.7096 2.85408 18.6525 2.85403 19.2339 3.43784C19.779 3.98537 19.8128 4.8521 19.3361 5.4396L19.2339 5.55322L20.8139 7.14044C21.3953 7.72459 21.3954 8.67171 20.8139 9.25583C20.2325 9.83984 19.2896 9.83985 18.7082 9.25583L17.1282 7.6686L16.6003 8.19882L16.7025 8.31244C17.1792 8.89994 17.1454 9.76666 16.6003 10.3142C16.0553 10.8616 15.1925 10.8957 14.6077 10.4168L14.4946 10.3142L13.8358 10.976C15.1859 13.2705 14.8799 16.2757 12.9173 18.2476C10.5914 20.5841 6.82021 20.5841 4.49427 18.2476C2.1687 15.911 2.16845 12.1225 4.49427 9.78605ZM6.59866 11.9014C5.43607 13.0696 5.43624 14.9639 6.59866 16.1322C7.76156 17.3004 9.6472 17.3003 10.8102 16.1322C11.973 14.9639 11.9731 13.0697 10.8102 11.9014C9.64722 10.7337 7.76148 10.7334 6.59866 11.9014Z",fill:"url(#paint0_linear_7418_10990)"})),(0,s.h)("path",{d:"M17.128 3.43781C17.7094 2.8541 18.6531 2.85402 19.2344 3.43781C19.7794 3.98533 19.8127 4.85228 19.336 5.43976L19.2344 5.55304L20.8136 7.14093C21.395 7.72508 21.395 8.67205 20.8136 9.25617C20.2321 9.83994 19.2895 9.84012 18.7081 9.25617L17.128 7.66925L16.6007 8.19953L16.7022 8.31281C17.179 8.90031 17.1457 9.76722 16.6007 10.3148C16.0556 10.8621 15.1923 10.8962 14.6075 10.4173L14.4942 10.3148L13.836 10.9759C15.1861 13.2705 14.8797 16.2765 12.9171 18.2484C10.5912 20.5845 6.82004 20.5846 4.49421 18.2484C2.16869 15.9118 2.16851 12.1229 4.49421 9.78644C6.45594 7.81603 9.44592 7.5082 11.7296 8.86164L17.128 3.43781ZM18.9503 3.72004C18.5254 3.29373 17.8372 3.2938 17.4122 3.72004L11.793 9.36457L11.5255 9.20539C9.39564 7.94322 6.60693 8.23106 4.77742 10.0687C2.60724 12.249 2.60724 15.7857 4.77742 17.9661C6.94692 20.1455 10.4643 20.1454 12.6339 17.9661C14.4648 16.1265 14.7515 13.3209 13.4913 11.179L13.335 10.9134L13.5528 10.6937L14.4805 9.76203L14.7637 10.0179L14.8653 10.1107C1
475.2921 10.4569 15.9193 10.431 16.3165 10.0325L16.3878 9.95441C16.7179 9.55264 16.7192 8.96832 16.3917 8.56476L16.3028 8.46613L16.0499 8.18488L16.8448 7.38703L17.128 7.10187L18.9913 8.97394C19.4163 9.40088 20.1052 9.40081 20.5303 8.97394C20.9564 8.54592 20.9564 7.85128 20.5303 7.42316L18.6837 5.56769L18.9366 5.28644L19.0313 5.17902C19.3738 4.74862 19.3468 4.11836 18.9503 3.72004ZM6.3155 11.6194C7.63474 10.2945 9.77462 10.2948 11.0938 11.6194C12.4121 12.9437 12.4118 15.09 11.0938 16.4144C9.77452 17.7394 7.63479 17.7397 6.3155 16.4144C4.99785 15.0901 4.99756 12.9437 6.3155 11.6194ZM10.8106 11.9017C9.64766 10.7339 7.76153 10.7337 6.59871 11.9017C5.43618 13.0698 5.43648 14.9639 6.59871 16.1321C7.7616 17.3004 9.64763 17.3002 10.8106 16.1321C11.9731 14.9639 11.9733 13.0698 10.8106 11.9017Z",fill:"url(#paint1_linear_7418_10990)"}),(0,s.h)("defs",null,(0,s.h)("filter",{id:"filter0_i_7418_10990",x:"2.75",y:"3",width:"18.5",height:"18.7",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},(0,s.h)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,s.h)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,s.h)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,s.h)("feOffset",{dy:"1.7"}),(0,s.h)("feGaussianBlur",{stdDeviation:"0.85"}),(0,s.h)("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),(0,s.h)("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 0.909345 0 0 0 0 0.472637 0 0 0 1 0"}),(0,s.h)("feBlend",{mode:"normal",in2:"shape",result:"effect1_innerShadow_7418_10990"})),(0,s.h)("linearGradient",{id:"paint0_linear_7418_10990",x1:"8.42033",y1:"2.53069",x2:"8.42126",y2:"21.5691",gradientUnits:"userSpaceOnUse"},(0,s.h)("stop",{stopColor:"#FFEA00"}),(0,s.h)("stop",{offset:"1",stopColor:"#FF911B"})),(0,s.h)("linearGradient",{id:"paint1_linear_7418_10990",x1:"12.0553",y1:"20.2131",x2:"12.0553",y2:"2.69085",gradientUnits:"userSpaceOnUse"},(0,s.h)("stop",{stopColor:"#AD4000"}),(0,s.h)("stop",{offset:"1",stopColor:"#FFAA00"})))),(0,s.h)("span",null,it.getNextCurrencyLevelPrice()))):(0,s.h)("button",{className:`${rz.btn} ${l}`,onClick:()=>{it.config.onboarding||(it.sendOnboardingEvent(4),it.setOnboarding()),it.checkExpiring()?t_():(it.sendScreenAction("ge_screen","play"),window.location.href=t)}},e.play||"Play")),!tg[eg].isOpen&&!tg[eg].completed&&(0,s.h)("button",{className:`${rz.btn} ${l}`,onClick:()=>{tk(),it.sendScreenAction("ge_screen","active_postcard")}},e.event_screen_locked_button||"Active Postcard"),tg[eg].completed&&(0,s.h)("button",{className:`${rz.btn} ${l}`,onClick:()=>{it.sendScreenAction("ge_screen","next"),tS(rr.right)()},disabled:eR||eq||eW},e.event_screen_next_button||"Next Postcard"))),tD=it.getCardLevelsCount(eg),tR=()=>{if(ed(!1),e4.current.length>0||e6.current)tE();else if(e5.current.length>0){let[e,...t]=e5.current;e5.current=t,tT([e]).then(()=>{ed(!0),it.onShowPostcardReward(),it.sendScreenEvent("g_event_reward")})}else tk(),it.sendScreenEvent("ge_screen")},tB=()=>{ep(!1),it.resetEvent(),t_()},tF=Array.from(new Set(it.config.currentEvent.levels.map(e=>e.difficulty)));return(0,s.h)("div",{className:l===n6.green?`${rz.postcardsWrapper} ${W?rz.portrait:""}`:"",ref:F},(0,s.h)("div",{ref:e0,className:rz.flyingKeysContainer},(0,s.h)("div",{ref:ez,className:rz.flyingKey},(0,s.h)(iN,null)),(0,s.h)("div",{ref:eG,className:rz.flyingKey},(0,s.h)(iN,null)),Array(7).fill(0).map((e,t)=>(0,s.h)("div",{key:t,ref:e=>{eQ.current[t]=e},className:rz.flyingKey},(0,s.h)(iN,null)))),(0,s.h)(er,{bigOverlay:l===n6.blue,rounded:!0,color:l,big:l===n6.green,show:ee,fullSize:K,onClose:()=>et(!1),items:[{btns:[],text:e.get_more_keys_text||"Complete levels to get more keys",image:(0,s.h)("div",{className:rz.tutorialCurrencyImage},(0,s.h)("img",{src:"/build/images/postcards/hiw_currency1.png",srcSet:"/build/images/postcards/hiw_currency1.png 1x, /build/images/postcards/[email protected] 2x",alt:"img1"})),customBtns:(0,s.h)(s.Fragment,null,(0,s.h)("div",{style:{position:"relative"}},h&&h.length>0&&(0,s.h)("div",{ref:eo,className:`${rz.gamesPopup} ${en?rz.active:""}`},(0,s.h)("a",{href:h[0].url,className:rz.gamesPopupLink}
47,h[0].name),h.slice(1).reduce((e,t,n)=>(n%2==0?e.push([t]):e[e.length-1].push(t),e),[]).map((e,t)=>(0,s.h)("div",{key:t,className:rz.gamesPopupRow},e.map(e=>(0,s.h)("a",{key:e.url,href:e.url,className:`${rz.gamesPopupLink} ${g?rz.compact:""}`},e.name))))),(0,s.h)("button",{ref:es,className:`${rz.getMoreKeysPlayBtn} ${l}`,onClick:()=>{(null==h?void 0:h.length)?ei(e=>!e):(null==d||d(),et(!1))}},e.get_more_keys_btn||"Play to Get Keys")),(0,s.h)("button",{className:`${rz.getMoreKeysCancelBtn} ${l===n6.blue?rz.cancelWhite:rz.cancelWhiteGreen}`,onClick:()=>et(!1)},e.cancel||"Cancel"))}],title:{value:e.get_more_keys_title||"Get More Keys"}}),(0,s.h)(er,{bigOverlay:l===n6.blue,rounded:!0,color:l,big:l===n6.green,show:ea,fullSize:K,onClose:()=>{el(!1),it.sendScreenEvent("ge_screen")},items:[{btns:[{text:null!=(k=e.ok)?k:"OK",func:e=>{it.sendScreenAction("g_event_tutorial","ok"),e()}}],text:e.tutorial_body_4||"Complete all levels faster than other players and get an extra prize!",image:(0,s.h)("div",{className:rz.hiw4},(0,s.h)("img",{src:"/build/images/postcards/hiw4.png",srcSet:"/build/images/postcards/hiw4.png 1x, /build/images/postcards/[email protected] 2x",alt:"img4"}))}],title:{value:e.tutorial_title||"How Does It Works?"}}),(0,s.h)(er,{bigOverlay:l===n6.blue,rounded:!0,color:l,big:l===n6.green,show:Z,fullSize:K,onClose:()=>{Q(!1),it.sendScreenEvent("ge_screen")},items:[{btns:[{text:null!=(E=e.continue)?E:"Continue",func:e=>{e_&&it.sendOnboardingEvent(3.2),it.sendScreenAction("g_event_tutorial","continue"),e()}}],text:e8?e.tutorial_body_currency_1||"":(z?e.tutorial_body_1_mobile:e.tutorial_body_1_desktop)||"Select difficulty of the level and click Play button to start",image:e8?(0,s.h)("div",{className:rz.tutorialCurrencyImage},(0,s.h)("img",{src:"/build/images/postcards/hiw_currency1.png",srcSet:"/build/images/postcards/hiw_currency1.png 1x, /build/images/postcards/[email protected] 2x",alt:"img1"})):(0,s.h)("div",{className:`${rz.tutorialAnimation} ${Z?rz.active:""}`},(0,s.h)("div",{className:rz.cursor}),(0,s.h)("div",{className:rz.blocksContainer},(0,s.h)("div",{className:`${rz.difficultyItem} ${rz.easy}`},(0,s.h)(iL,null)),(0,s.h)("div",{className:`${rz.difficultyItem} ${rz.medium}`},(0,s.h)(iL,null)),(0,s.h)("div",{className:`${rz.difficultyItem} ${rz.expert}`},(0,s.h)(iL,null)),(0,s.h)("div",{className:`${rz.difficultyItem} ${rz.hard}`},(0,s.h)(iL,null))),(0,s.h)("div",{className:`${rz.difficultyLabel} ${rz.labelEasy}`},e.easy||"Easy"),(0,s.h)("div",{className:`${rz.difficultyLabel} ${rz.labelMedium}`},e.medium||"Medium"),(0,s.h)("div",{className:`${rz.difficultyLabel} ${rz.labelHard}`},e.hard||"Hard"),(0,s.h)("div",{className:`${rz.difficultyLabel} ${rz.labelExpert}`},e.expert||"Expert"))},{btns:[{text:e.continue||"Continue",func:e=>{e_&&it.sendOnboardingEvent(3.3),it.sendScreenAction("g_event_tutorial","continue"),e()}}],text:e8?e.tutorial_body_currency_2||"":e.tutorial_body_2||"Complete all the levels to open a unique postcard and get a reward!",image:e8?(0,s.h)("div",{className:rz.tutorialCurrencyImage},(0,s.h)("img",{src:"/build/images/postcards/hiw_currency2.png",srcSet:"/build/images/postcards/hiw_currency2.png 1x, /build/images/postcards/[email protected] 2x",alt:"img2"})):(0,s.h)("img",{src:"/build/images/postcards/hiw2.png",srcSet:"/build/images/postcards/hiw2.png 1x, /build/images/postcards/[email protected] 2x, /build/images/postcards/[email protected] 3x",alt:"img1"})},{btns:[{text:it.withLeaderboard?e.continue||"Continue":null!=(C=e.ok)?C:"OK",func:e=>{it.withLeaderboard?(e_&&!it.config.leaderboardOnboarded&&(it.sendOnboardingEvent(7,!1),it.setLeaderboardOnboarded()),it.sendScreenAction("g_event_tutorial","continue")):it.sendScreenAction("g_event_tutorial","ok"),e()}}],text:e.tutorial_body_3||"Hurry! The event will only be available for a limited time!",image:(0,s.h)("div",{className:rz.hiw3},(0,s.h)("img",{src:"/build/images/postcards/hiw3.png",srcSet:"/build/images/postcards/hiw3.png 1x, /build/images/postcards/[email protected] 2x",alt:"img3"}))},...it.withLeaderboard?[{btns:[{text:null!=(P=e.ok)?P:"OK",func:e=>{it.sendScreenAction("g_event_tutorial","ok"),e()}}],text:e.tutorial_body_4||"Complete all levels faster than other players and get an extra prize!",image:(0,s.h)("div",{className:rz.hiw4},(0,s.h)("img",{src:"/build/images/postcards/hiw4.png",srcSet:"/build/images/postcards/hiw4.png 1x, /build/images/postcards/[email protected] 2x",alt:"img4"}))}]:[]],title:{value:e.tutorial_title||"How Does It Works?"}}
47),(0,s.h)(er,{bigOverlay:l===n6.blue,rounded:!0,color:l,big:l===n6.green,show:eu,fullSize:K,onClose:tR,items:[{btns:[{text:e.continue||"Continue",func:()=>{it.sendScreenAction("g_event_reward","continue"),tR()}}],text:e.reward_popup_body||"You've passed all the levels! The reward is yours!",image:(0,s.h)(s.Fragment,null,ex.map(({url:e,type:t,value:n},r)=>{var i;return(0,s.h)("div",{key:r,className:`${t===re.postcardsLeaderboard?rz.leaderboardReward:rz.postcardReward} ${rz[null!=(i=iA[n])?i:"bronze"]}`},(0,s.h)("img",{src:e,alt:"card_reward",className:t===re.postcardsLeaderboard?rz.rewardImage:""}),t===re.postcardsLeaderboard&&(0,s.h)(s.Fragment,null,(0,s.h)("img",{className:rz.envelope,alt:"envelope",srcSet:`/build/images/postcards/envelope-${1===n?"gold":2===n?"silver":"bronze"}.png 1x, /build/images/postcards/envelope-${1===n?"gold":2===n?"silver":"bronze"}@2x.png 2x`,src:`/build/images/postcards/envelope-${1===n?"gold":2===n?"silver":"bronze"}.png`}),(0,s.h)("div",{className:rz.crownShadow}),(0,s.h)("div",{className:`${rz.rewardCrown} ${iM[n-1]?rz[iM[n-1]]:""}`},n)))}))}],title:{value:e.reward_popup_title||"Great Job!"}}),(0,s.h)(er,{bigOverlay:l===n6.blue,rounded:!0,color:l,big:l===n6.green,show:eh,fullSize:K,onClose:tB,items:[{btns:[{text:null!=(T=e.ok)?T:"OK",func:()=>{it.sendScreenAction("g_event_completed","ok"),tB()}}],text:e.completed_popup_body||"You have successfully completed the event and received all the rewards!",image:(0,s.h)("div",{className:e7?rz.eventRewardLeaderboard:rz.eventReward},(()=>{let e=0;return ex.map(({url:t,type:n,value:r},i)=>{var o;let a=null!=(o=iA[n===re.postcardsLeaderboard?i+1:r])?o:"bronze",l="copper"===a&&2==++e;return(0,s.h)("div",{key:i,className:`${ex.length>3?rz.bigReward:""} ${rz.postcardReward} ${rz[a]} ${l?rz.copper2:""}`},(0,s.h)("img",{src:t,alt:"card_reward"}),n===re.postcardsLeaderboard&&(0,s.h)(s.Fragment,null,(0,s.h)("div",{className:rz.crownShadow}),(0,s.h)("div",{className:`${rz.rewardCrown} ${iM[r-1]?rz[iM[r-1]]:""}`},r)))})})())}],title:{value:e.completed_popup_title||"Congratulations!"}}),r&&(0,s.h)(r_,{buttons:[{text:"Complete Level",action:()=>{it.onLevelComplete(tP),A()}},...e8?[{text:"+10 Currency",action:()=>{it.updateCurrencyBalance(10),A()}}]:[],{text:"Complete Postcard",action:()=>{var e,t;let n=it.getActiveCardIndex();if(null===n)return;let r=null!=(t=null==(e=tg[n].levels.filter(e=>{var t;return!e.mode||e.mode===(null==(t=it.config.currentEvent)?void 0:t.mode)}).map(({completed:e},t)=>({completed:e,i:t})).reverse().find(({completed:e})=>!e))?void 0:e.i)?t:-1;tg[n].levels.filter(e=>{var t;return!e.mode||e.mode===(null==(t=it.config.currentEvent)?void 0:t.mode)}).forEach(({id:e,completed:t},n)=>{r!==n&&(t||(it.selectLevel(e),it.onLevelComplete(tP,void 0,!0)))}),it.withLeaderboard&&it.syncLeaderboard(n,{force:!0,skipThrottle:!0,levels:it.getCompletedLevelsInPostcard(n),time:Math.floor(Date.now()/1e3)}),A()}}]}),!W&&!o&&!e8&&(0,s.h)("div",{className:rz.difficultList}
47,(0,s.h)("div",{className:rz.difficultTitle},e.difficulty_title||"Difficulty"),Object.values(ro).filter(e=>tF.includes(e)).map(t=>{let n=tD[t],r=!n||n.completed||!tg[eg].isOpen||tg[eg].completed;return(0,s.h)("div",{key:t,onClick:()=>!r&&tC(n.incompleteLevels[0]),className:ev&&n&&n.incompleteLevels.includes(ev)?rz.difficultActive:r?rz.difficultDisabled:""},e[t]||t)})),(0,s.h)("div",{className:`${rz.postcards} ${p?rz.redesignGradient:""} ${l===n6.green?rz.full:""} postcards-body ${i?"new-breakpoints":""} ${z?"portrait":"landscape"} ${W?"pview":"lview"} ${Y?"small":""}`,ref:B},(0,s.h)("canvas",{ref:eY,className:rz.confettiCanvas}),(0,s.h)(ec,{text:null!=(L=e.loading)?L:"Loading Game",show:M}),(0,s.h)("div",{className:`${rz.left} ${e7?rz.withLeaderboard:""} ${W?rz.portrait:""} ${l===n6.green?rz.full:""} ${p?rz.redesignGradient:""}`},(0,s.h)("button",{className:rz.hiw,disabled:eR||eq||eW,onClick:()=>{it.sendScreenAction("ge_screen","tutorial"),Q(!0),it.sendScreenEvent("g_event_tutorial")}}),(0,s.h)("div",{className:rz.headerWrapper},p&&!W&&(0,s.h)("div",{className:rz.eventLabel},null!=(I=e.event_label)?I:"Event"),p&&W&&(0,s.h)("div",{className:rz.redesignTimer},(0,s.h)(eX,{subscribe:it.timerManager.subscribe.bind(it.timerManager),unsubscribe:it.timerManager.unsubscribe.bind(it.timerManager),rtl:u})),(0,s.h)("div",{className:`${rz.title} ${q?rz.small:""} ${W?rz.portrait:""} ${l===n6.green?rz.full:""}`},it.getTitle()),(!p||p&&!W)&&(0,s.h)("div",{className:`${rz.subtitle} ${e7?rz.withLeaderboard:""} ${W?rz.portrait:""}`},!p&&(e.ends_in||"Ends in"),(0,s.h)(eX,{subscribe:it.timerManager.subscribe.bind(it.timerManager),unsubscribe:it.timerManager.unsubscribe.bind(it.timerManager),rtl:u})),c&&eN&&(0,s.h)("div",{className:`${rz.modes} ${W?rz.portrait:""}`},(0,s.h)("button",{onClick:()=>{eL?it.sendScreenEvent("ge_screen"):(it.sendScreenAction("ge_screen","mode_drilldown"),it.sendScreenEvent("g_event_select_mode")),eI(!eL)},className:`${eL?rz.active:""} ${W?rz.portrait:""}`,ref:eA},null==(O=c.find(e=>e.key===eN))?void 0:O.name," ",(0,s.h)("span",null)),(0,s.h)("div",{className:`${rz.modesPopup} ${eL?rz.active:""}`,ref:eO},(0,s.h)("div",{className:rz.modesPopupTitle},e.mode_menu_title),(0,s.h)("div",{className:rz.modesPopupBody},c.map(e=>{var t;return(0,s.h)("button",{className:e.key===eN?rz.active:"",key:e.key,onClick:(t=e.key,()=>{if(t===eN)return it.sendScreenEvent("ge_screen"),void eI(!1);it.sendScreenEvent("ge_screen"),it.sendScreenAction("ge_screen",t),it.updateCurrentMode(t),eD(t),eI(!1);let e=tg.find(e=>!e.completed);if(!e)return;let n=e.levels.filter(e=>!e.mode||e.mode===t).find(e=>!e.completed);n&&tC(n.id)})},e.name)}))))),!W&&(0,s.h)("div",{className:`${rz.postcardsIcon} ${e7?rz.noGapIcon:""}`},p&&(0,s.h)(s.Fragment,null,(0,s.h)("svg",{className:rz.ellipse,xmlns:"http://www.w3.org/2000/svg",width:"397",height:"397",viewBox:"0 0 397 397",fill:"none"},(0,s.h)("g",{filter:"url(#filter0_f_7488_12728)"},(0,s.h)("circle",{cx:"198.5",cy:"198.5",r:"118.5",fill:"white",fillOpacity:"0.8"})),(0,s.h)("defs",null,(0,s.h)("filter",{id:"filter0_f_7488_12728",x:"0",y:"0",width:"397",height:"397",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},(0,s.h)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,s.h)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,s.h)("feGaussianBlur",{stdDeviation:"40",result:"effect1_foregroundBlur_7488_12728"})))),(0,s.h)("img",{className:rz.glare,src:"/build/images/postcards/glare1.png",srcSet:"/build/images/postcards/glare1.png 1x, /build/images/postcards/[email protected] 2x",alt:"glare"}),(0,s.h)("img",{className:`${rz.glare} ${rz.glare2}`,src:"/build/images/postcards/glare2.png",srcSet:"/build/images/postcards/glare2.png 1x, /build/images/postcards/[email protected] 2x",alt:"glare"})),(0,s.h)("img",{alt:"event icon",src:tm})),e7&&(()=>{var t,n,r;let i=null==ew?void 0:ew.postcards[tr],o=tr===it.getActiveCardIndex(),a=!!(null==i?void 0:i.completed),c=null!=(t=null==i?void 0:i.levels.filter(e=>{var t;return!e.mode||e.mode===(null==(t=it.config.currentEvent)?void 0:t.mode)}).length)?t:0;return(0,s.h)(rV,a&&e9?{translations:e,colorScheme:l,medal:e9.medal||void 0,place:e9.place,maxLevels:c,active:tt,meLabel:null!=(n=e.tournament_leaderboards_you_pointer)?
47n:"Me",rtl:!!u}:o&&e9?{translations:e,link:{text:"See All",href:"#"},colorScheme:l,place:e9.place,maxLevels:c,active:tt&&!!e9.scores.length,externalLoading:to,users:e9.scores,meLabel:null!=(r=e.tournament_leaderboards_you_pointer)?r:"Me",onClick:it.leaderboardUrl?()=>{it.sendWidgetActionEvent(eg),it.sendScreenAction("ge_screen","to_leaderboard"),window.location.href=it.leaderboardUrl}:void 0,rtl:!!u}:{translations:e,colorScheme:l,place:0,maxLevels:c,active:!1,rtl:!!u})})(),W&&tN),!W&&tN))},LeaderboardPage:({translations:e,color:t,newBreakpoints:n,onNoActiveLeaderboard:r,onBackClick:i,lang:o})=>{var l,c,u,d,p,f,g,m,v;let[y,w]=(0,a.useState)(!0),[b,_]=(0,a.useState)([]),[S,x]=(0,a.useState)(0),[k,E]=(0,a.useState)(0),[C,P]=(0,a.useState)([]),[T,L]=(0,a.useState)(""),[I,O]=(0,a.useState)(!1),[A,M]=(0,a.useState)(!1),[N,D]=(0,a.useState)(!1),[R,B]=(0,a.useState)(!1),[F,$]=(0,a.useState)(!1),[j,H]=(0,a.useState)(""),[z,G]=(0,a.useState)(!1),[q,U]=(0,a.useState)(!1),[W,V]=(0,a.useState)(null),Y=(0,a.useRef)(null),X=(0,a.useRef)(null),K=(0,a.useRef)(null),J=(0,a.useRef)(null),Z=(0,a.useRef)(null),Q=(0,a.useRef)(!1),ee="ar"===o,et=["it","vi"].includes(o||""),en=()=>{var e,t;let n=it.getActiveCardIndex();if(null===n)return void r();let i=it.getLeaderboardForPostcard(n);if(!i)return void r();let o=it.getData(),s=null==o?void 0:o.postcards[n],a=null!=(e=null==s?void 0:s.levels.filter(e=>{var t;return!e.mode||e.mode===(null==(t=it.config.currentEvent)?void 0:t.mode)}).length)?e:0;if(!Q.current&&i.place>0){let e=it.getLastLeaderboardPlace(n);if(null!==e&&e!==i.place){let t=e>i.place;V(e),U(!0),Q.current=!0,setTimeout(()=>{t&&Z.current&&iO.create(Z.current,{resize:!0})({particleCount:400,spread:360,startVelocity:30,ticks:70,origin:{x:.5,y:.5}}),U(!1),V(null)},1600)}it.setLastLeaderboardPlace(n,i.place)}_(i.scores),x(i.place),E(a),P(null!=(t=i.medals)?t:[]),w(!1)},ei=()=>{if(!X.current)return;let e=X.current,t=0===e.scrollTop,n=e.scrollHeight-e.scrollTop===e.clientHeight;L(t&&n?"":t?"top":n?"bottom":"middle")};return(0,a.useEffect)(()=>{if(!X.current||!K.current)return;let e=Math.floor(X.current.clientHeight/44);return X.current.scrollTop=Math.max(0,K.current.offsetTop-44*Math.floor(e/2)),X.current.addEventListener("scroll",ei),ei(),()=>{var e;return null==(e=X.current)?void 0:e.removeEventListener("scroll",ei)}},[X,K,y]),(0,a.useEffect)(()=>{it.subscribeLeaderboardUpdate(en),en(),it.sendScreenEvent("ge_leaderboard"),it.config.onboarding&&!it.config.leaderboardOnboarded&&(it.sendOnboardingEvent(7,!1),it.setLeaderboardOnboarded()),it.config.leaderboardHiw||(O(!0),it.sendScreenEvent("g_event_tutorial"),it.showLeaderboardHiw());let e=()=>{if(!Y.current)return;let e=Y.current.offsetWidth,t=Y.current.offsetHeight;$(t<460),M(n?t<480||window.innerWidth<=759:t<480||e<664||window.innerWidth<768),H(e<550?"phone":e<700?"tablet":""),D(window.innerWidth<=929),B(window.innerWidth<=929),G(window.innerWidth<=929&&window.innerWidth>=540)};return e(),window.addEventListener("resize",e),()=>{it.unsubscribeLeaderboardUpdate(en),window.removeEventListener("resize",e)}},[]),(0,s.h)("div",{className:`LeaderboardPage-styles_leaderboard_page__-dAwI ${j} ${N?"portrait":"landscape"} ${z?"big-portrait":""} ${R?"pview":"lview"} ${F?"small":""}`,ref:Y},(0,s.h)(ec,{text:null!=(l=e.loading)?l:"Loading Game",show:y}
47),(0,s.h)(er,{show:I,fullSize:A,onClose:()=>{O(!1),it.sendScreenEvent("ge_leaderboard")},color:t,items:[{btns:[{text:null!=(c=e.continue)?c:"Continue",func:e=>{it.sendScreenAction("g_event_tutorial","continue"),e()}}],text:(N?e.tutorial_body_1_mobile:e.tutorial_body_1_desktop)||"Select difficulty of the level and click Play button to start",image:(0,s.h)("div",{className:`${rz.tutorialAnimation} ${I?rz.active:""}`},(0,s.h)("div",{className:rz.cursor}),(0,s.h)("div",{className:rz.blocksContainer},(0,s.h)("div",{className:`${rz.difficultyItem} ${rz.easy}`},(0,s.h)(iL,null)),(0,s.h)("div",{className:`${rz.difficultyItem} ${rz.medium}`},(0,s.h)(iL,null)),(0,s.h)("div",{className:`${rz.difficultyItem} ${rz.expert}`},(0,s.h)(iL,null)),(0,s.h)("div",{className:`${rz.difficultyItem} ${rz.hard}`},(0,s.h)(iL,null))),(0,s.h)("div",{className:`${rz.difficultyLabel} ${rz.labelEasy}`},e.easy||"Easy"),(0,s.h)("div",{className:`${rz.difficultyLabel} ${rz.labelMedium}`},e.medium||"Medium"),(0,s.h)("div",{className:`${rz.difficultyLabel} ${rz.labelHard}`},e.hard||"Hard"),(0,s.h)("div",{className:`${rz.difficultyLabel} ${rz.labelExpert}`},e.expert||"Expert"))},{btns:[{text:e.continue||"Continue",func:e=>{it.sendScreenAction("g_event_tutorial","continue"),e()}}],text:e.tutorial_body_2||"Complete all the levels to open a unique postcard and get a reward!",image:(0,s.h)("img",{src:"/build/images/postcards/hiw2.png",srcSet:"/build/images/postcards/hiw2.png 1x, /build/images/postcards/[email protected] 2x, /build/images/postcards/[email protected] 3x",alt:"img1"})},{btns:[{text:e.continue||"Continue",func:e=>{it.sendScreenAction("g_event_tutorial","continue"),e()}}],text:e.tutorial_body_3||"Hurry! The event will only be available for a limited time!",image:(0,s.h)("div",{className:rz.hiw3},(0,s.h)("img",{src:"/build/images/postcards/hiw3.png",srcSet:"/build/images/postcards/hiw3.png 1x, /build/images/postcards/[email protected] 2x",alt:"img3"}))},{btns:[{text:null!=(u=e.ok)?u:"OK",func:e=>{it.sendScreenAction("g_event_tutorial","ok"),e()}}],text:e.tutorial_body_4||"Complete all levels faster than other players and get an extra prize!",image:(0,s.h)("div",{className:rz.hiw4},(0,s.h)("img",{src:"/build/images/postcards/hiw4.png",srcSet:"/build/images/postcards/hiw4.png 1x, /build/images/postcards/[email protected] 2x",alt:"img4"}))}],title:{value:e.tutorial_title||"How Does It Works?"}}),(0,s.h)("div",{className:"LeaderboardPage-styles_leaderboard_page_left__Fgga0"},(0,s.h)("button",{className:"LeaderboardPage-styles_leaderboard_page_hiw__5WNKI",onClick:()=>{it.sendScreenAction("ge_leaderboard","tutorial"),O(!0),it.sendScreenEvent("g_event_tutorial")}}),(0,s.h)("div",{className:"LeaderboardPage-styles_leaderboard_page_left_title__Kf-37"},null!=(p=null!=(d=e.leaderboard_eventscreen_title)?d:e.leaderboard_title)?p:"Event Leaderboard"),(0,s.h)("div",{className:"LeaderboardPage-styles_leaderboard_page_left_desc__zILNt"},null!=(g=null!=(f=e.leaderboard_eventscreen_text)?f:e.leaderboard_desc)?g:"Collect all the pieces of this postcard faster than others!"),N&&!z&&(0,s.h)("img",{src:"/build/images/postcards/crowns-mobile.png",srcSet:"/build/images/postcards/crowns-mobile.png 1x, /build/images/postcards/[email protected] 2x",alt:"crowns",className:"LeaderboardPage-styles_crowns__WsWAz"}),N||z?z?(0,s.h)(s.Fragment,null,(0,s.h)("img",{src:"/build/images/postcards/curtains-tablet.png",srcSet:"/build/images/postcards/curtains-tablet.png 1x, /build/images/postcards/[email protected] 2x",alt:"curtains",className:"LeaderboardPage-styles_curtainsTablet__mVV0K"}),(0,s.h)("img",{src:"/build/images/postcards/pedestals-tablet.png",srcSet:"/build/images/postcards/pedestals-tablet.png 1x, /build/images/postcards/[email protected] 2x",alt:"pedestals",className:"LeaderboardPage-styles_pedestalsTablet__Mg7tI"})):null:(0,s.h)(s.Fragment,null,(0,s.h)("img",{src:"/build/images/postcards/curtains-desktop.png",srcSet:"/build/images/postcards/curtains-desktop.png 1x, /build/images/postcards/[email protected] 2x",alt:"curtains",className:"LeaderboardPage-styles_curtainsDesktop__CZyaO"}),(0,s.h)("div",{className:"LeaderboardPage-styles_pedestalsDesktop__wkWPR"}),(0,s.h)("img",{src:"/build/images/postcards/pedestals-desktop.png",srcSet:"/build/images/postcards/pedestals-desktop.png 1x, /build/images/postcards/[email protected] 2x",alt:"pedestals",className:"LeaderboardPage-styles_pedestalsDesktopImg__lveje"}))),(0,s.h)("div",{className:`LeaderboardPage-styles_leaderboard_page_right__X4SbF ${T} ${null!=t?t:""}`,ref:J},(0,s.h)("canvas",{ref:Z,className:"LeaderboardPage-styles_confettiCanvas__iAZBM"}),(0,s.h)("div",{className:"LeaderboardPage-styles_leaderboard_page_right_title__5zEuq"},null!=(m=e.leaderboard_score_label)?m:"Total Score"),(0,s.h)("div",{className:"LeaderboardPage-styles_leaderboard_page_list__1Sevz",ref:X},b.length>0&&k>0&&!b.some(e=>e.levels>=k)&&(0,s.h)("div",{className:`${iD} LeaderboardPage-styles_leaderboard_page_finish_line_top__pcmE1 ${et?iR:""}`},(0,s.h)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"132",height:"12",viewBox:"0 0 132 12",fill:"none"}
47,(0,s.h)("rect",{x:"6",y:"6",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"30",y:"6",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"54",y:"6",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"78",y:"6",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"102",y:"6",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"12",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"36",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"60",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"84",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"108",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"18",y:"6",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"42",y:"6",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"66",y:"6",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"90",y:"6",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"114",y:"6",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"24",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"48",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"72",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"96",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"120",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"126",y:"6",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"})),(0,s.h)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"132",height:"12",viewBox:"0 0 132 12",fill:"none"},(0,s.h)("rect",{x:"6",y:"6",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"30",y:"6",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"54",y:"6",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"78",y:"6",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"102",y:"6",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"12",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"36",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"60",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"84",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"108",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"18",y:"6",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"42",y:"6",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"66",y:"6",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"90",y:"6",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"114",y:"6",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"24",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"48",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"72",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"96",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"120",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"126",y:"6",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"})),(0,s.h)("span",null,null!=(v=e.leaderboard_finishline)?v:"FINISH")),b.map((t,n)=>{var r,i,o,a;let l=n+1,c=l===S,u=(e=>{if(!C.length)return"";let t=C.find(t=>e<=t.max_place);if(!t)return"";switch(t.medal){case 100:return"gold";case 200:return"silver";case 300:return"bronze";case 400:return"copper";default:return""}})(l),d=k>0&&t.levels>=k,p=b[n+1],f=p&&l+1===S,g=p&&k>0&&p.levels>=k,m=d&&!g&&n<b.length-1,v=null!==W&&W>S,y=q&&null!==W&&!c&&(v?l>S&&l<=W:l>=W&&l<S),w=q&&c&&null!==W,_=q&&null!==W&&(v&&l===W||!v&&l===W-1),x=0;if(w){let e=44*(W-S),t=44*Math.floor((null!=(i=null==(r=X.current)?void 0:r.clientHeight)?i:0)/44/2);x=v?Math.min(e,t):Math.max(e,-t)}return(0,s.h)("div",{key:n},(0,s.h)("div",{ref:c?K:null,className:`LeaderboardPage-styles_leaderboard_page_item__GStpy ${n===b.length-1?"LeaderboardPage-styles_last__W2mlT":""} ${n===b.length-1||f||m||c?"":"LeaderboardPage-styles_withBorder__nu9Kb"} ${c?"LeaderboardPage-styles_leaderboard_page_me__ascMP":""} ${d?"LeaderboardPage-styles_finished__4D-po":""} ${u} ${ee?"LeaderboardPage-styles_rtl__awrlg":""} ${w?"LeaderboardPage-styles_leaderboard_page_me_animating__-fLNM":""} ${y?"LeaderboardPage-styles_leaderboard_page_item_displaced__Krz2V":""} ${_?"LeaderboardPage-styles_leaderboard_page_item_hide_border__D-0fM":""}`,style:w?{"--me-offset":`${x}px`}:y?{"--displaced-offset":`${y?v?-44:44:0}px`}:void 0},(0,s.h)("div",{className:"LeaderboardPage-styles_leaderboard_page_item_position__-kF2h"},w?(0,s.h)(s.Fragment,null,(0,s.h)("span",{className:"LeaderboardPage-styles_leaderboard_page_old_position__2YfS8"},W),(0,s.h)("span",{className:"LeaderboardPage-styles_leaderboard_page_new_position__f0LmG"},l)):d?(0,s.h)(s.Fragment,null,(0,s.h)("div",{dangerouslySetInnerHTML:{__html:rU(l)}}),(0,s.h)("span",null,l)):l),(0,s.h)("div",{className:"LeaderboardPage-styles_leaderboard_page_item_content__HzMPu"},(0,s.h)("span",{className:"LeaderboardPage-styles_leaderboard_page_name__bFV3-"},c?null!=(o=e.leaderboard_you_pointer)?o:"Me":t.name),(0,s.h)("span",{className:"LeaderboardPage-styles_leaderboard_page_score__6sxU4"},h(t.levels),"/",k))),m&&(0,s.h)("div",{className:`${iD} ${et?iR:""}`},(0,s.h)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"132",height:"12",viewBox:"0 0 132 12",fill:"none"}
47,(0,s.h)("rect",{x:"6",y:"6",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"30",y:"6",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"54",y:"6",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"78",y:"6",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"102",y:"6",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"12",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"36",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"60",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"84",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"108",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"18",y:"6",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"42",y:"6",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"66",y:"6",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"90",y:"6",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"114",y:"6",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"24",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"48",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"72",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"96",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"120",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"126",y:"6",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"})),(0,s.h)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"132",height:"12",viewBox:"0 0 132 12",fill:"none"},(0,s.h)("rect",{x:"6",y:"6",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"30",y:"6",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"54",y:"6",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"78",y:"6",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"102",y:"6",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"12",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"36",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"60",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"84",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"108",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"18",y:"6",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"42",y:"6",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"66",y:"6",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"90",y:"6",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"114",y:"6",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"24",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"48",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"72",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"96",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"120",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"}),(0,s.h)("rect",{x:"126",y:"6",width:"6",height:"6",fill:"#5856D6",fillOpacity:"0.2"})),(0,s.h)("span",null,null!=(a=e.leaderboard_finishline)?a:"FINISH")))})),(0,s.h)("div",null,(0,s.h)("button",{className:`LeaderboardPage-styles_btn__26wwG ${R?"pview":"lview"} ${t}`,onClick:i},e.toEvent||"To Event"))))}},postcardsLogic:it},iF={en:"EN_US",ru:"RU",de:"DE",pl:"PL",tr:"TR",it:"IT",fr:"FR",es:"ES",mx:"ES_MX",pt:"PT",br:"PT_BR",zh:"ZH_Hans",tw:"ZH_Hant",jp:"JA",ko:"KO",th:"TH",vi:"VI",ar:"AR",dk:"DA",hu:"HU",il:"HE"}
47,i$={easy:"easy",medium:"medium",hard:"hard",expert:"expert",evil:"master",extreme:"extreme"};class ij{constructor(e,t){var n;this.ab={},this.request=null,this.lang="en",this.setupFinished=!1,this.tempCurrentEvent=null,this.localStorageKey=e,this.defaultConfig=t,this.config=f(e,t),this.timerManager=new rK((null==(n=this.config.currentEvent)?void 0:n.time)||0,this.translations),this.timerManager.startTimer()}getExtraEventParams(){return{}}isEventLost(){return this.checkExpiring()}shouldMarkLevelComplete(e,t){return e.id===t}findNextIncompleteLevel(e){return e.find(({completed:e})=>!e)}onLevelCompleted(e){}onIncompleteLevelSelected(e){}onBeforeResetEvent(){}getPreservedFieldsOnReset(){return{}}getCardLevelsLength(e){var t,n,r;return null!=(r=null==(n=null==(t=this.config.eventData)?void 0:t.cards[e])?void 0:n.levels.length)?r:0}getCompletedLevelsOutsideCard(e){var t,n;return null!=(n=null==(t=this.config.eventData)?void 0:t.levels.filter(t=>t.cardIndex!==e&&t.completed).length)?n:0}saveConfig(){g(this.localStorageKey,this.config)}getSegmentId(){var e;return+(null!=(e=this.config.completedEvents)&&!!e.length)}getUserLevel(){var e;let t=parseInt(((null==(e=this.config.currentEvent)?void 0:e.version)||this.version||"1.0.0").split(".")[1]);return t?["easy","medium","hard","expert","master","extreme"][t-1]:null}getGridPosition(e){var t;let n=this.getCompletedLevelsOutsideCard(e),r=(null!=(t=this.config.currentEvent.currentLevel)?t:1)-n,i=this.getCardLevelsLength(null!=e?e:0);if(!i)return null;let o=Math.sqrt(i);return{row:r%o||o,col:Math.ceil(r/o)}}buildBasePayload(){return this.config.currentEvent?{id:this.config.currentEvent.ai,lo_type:this.getLoType(),segment_id:this.getSegmentId(),uid:this.config.currentEvent.id}:null}showHiw(){this.config&&(this.config.hiw=!0,this.saveConfig())}shouldShowStartBanner(){return!this.config.startBanner}getBestTime(){var e,t,n,r,i;return null!=(i=null==(e=this.config.bestTime)?void 0:e[null!=(r=null==(n=null==(t=this.config)?void 0:t.currentEvent)?void 0:n.mode)?r:this.defaultMode])?i:0}onShowStartBanner(e){if(this.config.startBanner=!0,this.config.currentEvent){let t=Object.assign(Object.assign({},this.buildBasePayload()),{type:e});eP("lo_show_banner",t),Z.send("lo_show_banner",t)}this.saveConfig()}shouldShowWelcomePopup(){return!!this.config.currentEvent&&!this.config.welcomePopup}shouldShowTimeIsUpPopup(){var e;let t=this.config.levelsMap.find(({levelProgress:e})=>e.loaded||e.started),n=null==(e=this.config.currentEvent)?void 0:e.time;if(!n)return!1;let r=(Date.now()/1e3-n)/60/60/24,i=this.isEventLost(),o=t&&r<=2;return i&&!o&&this.resetEvent(),i&&o}onShowWelcomePopup(){this.config.welcomePopup=!0,this.saveConfig()}onShowEventFinishPopup(){this.config.eventCompletedPopup=!0,this.saveConfig()}setVisited(){this.config.visited=!0,this.visitCallback&&this.visitCallback(),this.saveConfig()}setOnboarding(){this.config.onboarding=!0,this.saveConfig()}setEventClicked(){this.config.currentEvent&&(this.config.currentEvent.clicked=!0,this.saveConfig())}setClicked(){this.config.clicked=!0,this.saveConfig()}resetTempEventStorage(){this.tempCurrentEvent=null}updateLoPlacement(e){localStorage.setItem("prev_lo_screen",e)}getData(){return this.config.eventData}async setup({eaid:e,host:t,ab:n,lang:r,translations:i,requestsFrequency:o,finishCallback:s,visitCallback:a,onChangeMode:l,version:c,defaultMode:u},d){var h;this.eaid=e,this.host=t,this.lang=r,this.defaultMode=u,this.requestsFrequency=o,i&&(this.translations=i,this.timerManager.updateInfo((null==(h=this.config.currentEvent)?void 0:h.time)||0,i)),c&&(this.version=c),n&&(this.ab=n),s&&(this.finishCallback=s),a&&(this.visitCallback=a),l&&(this.onChangeMode=l),this.setupFinished=!0,r6.register(this.getSubmoduleVersion()),r6.setAppVersion(this.version||"1.0.0"),!1!==(null==d?void 0:d.autoSync)&&await this.startSync()}async startSync(){this.sync();try{this.request&&await this.request}catch(e){console.warn("fetch error")}}sync(){(!this.config.lastUpdate||!this.config.currentEvent||(Date.now()-this.config.lastUpdate)/1e3>this.requestsFrequency)&&(this.request=new Promise((e,t)=>
47{this.fetchEvent().then(()=>{e(!0)}).catch(()=>{t(!1)})}))}async fetchEvent(){var e,t,n;let r=Object.values(this.ab).join(",");try{let i=await r6.fetchEvents(this.host,this.eaid,r);if(!(null==i?void 0:i.content)||!i.content.data)return;let o=this.getCurrentEvent(i.content.data);if(!(null==i?void 0:i.success)||!o)return void(this.config&&(this.config.lastUpdate=Date.now(),this.saveConfig()));let s=await this.fetchEventData(o.pk,i.content.cdn);if(!s)return void console.error("Empty Level Pack",s);let a=(null!=(t=null!=(e=o.mt.sc[2])?e:o.mt.sc[1])?t:Math.floor(Date.now()/1e3))+o.mt.du;if(this.timerManager.updateInfo(a),this.config=this.buildEventConfigUpdate(o,s,a),this.config.currentEvent&&!(null==(n=this.config.currentEvent)?void 0:n.inited)){let e=this.buildBasePayload();e&&(eP("lo_start",e),Z.send("lo_start",e)),this.config.currentEvent.inited=!0}this.saveConfig()}catch(e){console.error("getPostcardEvent error: ",e)}}getCurrentEvent(e){let t=e.filter(e=>this.isOwnEvent(e));if(this.config.currentEvent)return t.find(e=>{var t;return e.mt.ei===(null==(t=this.config.currentEvent)?void 0:t.id)});let n=Date.now()/1e3;return t.find(e=>{var t,r;let i=null!=(t=e.mt.sc[2])?t:e.mt.sc[1];return!(null==(r=this.config.finished)?void 0:r.includes(e.mt.ei))&&n>=i&&n<i+e.mt.du})}isOwnEvent(e){return e.mt.et===this.getSubmoduleVersion()}checkExpiring(){return!!this.timerManager.checkExpiring()&&(this.config.currentEvent&&!this.config.finished.includes(this.config.currentEvent.id)&&this.onEventFinish(),!0)}onEventFinish(){this.config.currentEvent&&(this.config=Object.assign(Object.assign({},this.config),{finished:this.config.finished.concat(this.config.currentEvent.id),eventCompleted:!0,completedEvents:this.config.completedEvents,onboarding:this.config.onboarding,onboardingStep:this.config.onboardingStep,hiw:this.config.hiw,visited:this.config.visited}),this.saveConfig())}resetEvent(){this.tempCurrentEvent=this.config.currentEvent,this.onBeforeResetEvent(),this.config=Object.assign(Object.assign(Object.assign({},this.defaultConfig),{onboarding:this.config.onboarding,onboardingStep:this.config.onboardingStep,hiw:this.config.hiw,visited:this.config.visited,finished:this.config.finished,completedEvents:this.config.completedEvents}),this.getPreservedFieldsOnReset()),this.saveConfig()}selectLevel(e){if(!this.config.currentEvent)return;let t=this.getCurrentMappedSudokuLevel();t&&3===t.levelProgress.mistakes&&this.reset(t.levelProgress.timer/1e3,{undos:t.levelProgress.undos,smart_hints:t.levelProgress.hints,erases:t.levelProgress.erases}),this.config.currentEvent.currentLevel=e,this.saveConfig()}getWelcomeText(){var e;let t=null==(e=this.config.eventData)?void 0:e.translations;return t?r3(t,"um_book_event_started_popup_body")[iF[window.lang||"en"]]:""}getLoseText(){var e;let t=null==(e=this.config.eventData)?void 0:e.translations;return t?r3(t,"um_book_finish_lose_text")[iF[window.lang||"en"]]:""}getWinText(){var e;let t=null==(e=this.config.eventData)?void 0:e.translations;return t?r3(t,"um_book_finish_win_text")[iF[window.lang||"en"]]:""}getTitle(){var e,t;let n=null==(e=this.config.eventData)?void 0:e.translations;return n?(null!=(t=r3(n,"um_postcard_title"))?t:r3(n,"liveops_title"))[iF[window.lang||"en"]]:""}onLevelComplete(e,t){var n,r,i;let o=this.getActiveCardIndex(),s=null==(n=this.config.eventData)?void 0:n.cards;if(!s||!(null==(r=this.config.currentEvent)?void 0:r.currentLevel)||null===o)return;let a=this.config.currentEvent.currentLevel,{levels:l}=s[o],c=l.map(e=>this.shouldMarkLevelComplete(e,a)?Object.assign(Object.assign({},e),{completed:!0}):e);if(s[o].levels=c,this.config.completedLevelsIds.push(a),this.onLevelCompleted(a),t){let e=(null==(i=this.config.currentEvent)?void 0:i.mode)||this.defaultMode;this.config.bestTime=Object.assign({},this.config.bestTime||{}),(!this.config.bestTime[e]||t<this.config.bestTime[e])&&(this.config.bestTime[e]=t)}let u=this.findNextIncompleteLevel(c);u?(this.selectLevel(u.id),e&&e(u.id,!1),this.saveConfig(),this.onIncompleteLevelSelected(o)):this.onCardComplete(e)}getSelectedLevel(){if(this.config.eventData&&this.config.currentEvent)return this.config.eventData.levels.find(({id:e})=>e===this.config.currentEvent.currentLevel)}getCurrentMappedSudokuLevel(){let e=this.getSelectedLevel();if(e)return this.config.levelsMap.find(({liveopsLevelId:t,mode:n})=>{var r,i;return t===e.id&&(!n||n===(null==(i=null==(r=this.config)?void 0:r.currentEvent)?void 0:i.mode))})}mapSudokuLevel(e,t){var n,r;let i=this.getSelectedLevel();i&&(this.config.levelsMap.some(({liveopsLevelId:e,mode:t})=>{var n,r;return e===i.id&&(!t||t===(null==(r=null==(n=this.config)?void 0:n.currentEvent)?void 0:r.mode))}
47)||(this.config.levelsMap.push(Object.assign({liveopsLevelId:i.id,levelId:e,difficulty:i.difficulty,levelProgress:t,startLevelProgress:t},(null==(n=this.config.currentEvent)?void 0:n.mode)?{mode:null==(r=this.config.currentEvent)?void 0:r.mode}:{})),this.saveConfig()))}saveGameProgress(e){let t=this.getCurrentMappedSudokuLevel();t&&t.levelId===e.id&&(this.config.levelsMap=this.config.levelsMap.map(n=>{var r,i;return n.liveopsLevelId!==t.liveopsLevelId||n.mode&&n.mode!==(null==(i=null==(r=this.config)?void 0:r.currentEvent)?void 0:i.mode)?n:Object.assign(Object.assign({},t),{levelProgress:e})}),this.saveConfig())}resetGameProgress(){let e=this.getCurrentMappedSudokuLevel();if(!e)return;let{startLevelProgress:t,liveopsLevelId:n}=e;this.config.levelsMap=this.config.levelsMap.map(r=>r.liveopsLevelId===n?Object.assign(Object.assign({},e),{levelProgress:t}):r),this.saveConfig()}getLevelProgress(e,t){var n,r;let i=this.config.levelsMap.find(({liveopsLevelId:t,mode:n})=>{var r,i;return t===e&&(!n||n===(null==(i=null==(r=this.config)?void 0:r.currentEvent)?void 0:i.mode))});if(!i)return{p:0,l:!1};let{levelProgress:o}=i;if(t===n6.green){let e=(null==(n=o.desk)?void 0:n.foundation)?null==(r=o.desk)?void 0:r.foundation.reduce((e,t)=>e+t.split(",").filter(e=>!!e).length,0):0;return e?{p:Math.min(99,Math.round(e/52*100)),l:o.started}:{p:1,l:o.started}}return{p:100*o.values.reduce((e,{val:t,mistake:n})=>0===t||n?e:e+1,0)/81,l:o.loaded}}getMappedLevelsByMode(){return this.config.levelsMap.map(({levelId:e,mode:t})=>`${t?t[0]:"k"}${e}`)}getMappedSudokuLevelsByDifficulty(e){return this.config.levelsMap.filter(({difficulty:t,mode:n})=>{var r,i;return t===e&&(!n||n===(null==(i=null==(r=this.config)?void 0:r.currentEvent)?void 0:i.mode))}).map(({levelId:e})=>e)}getActiveCardIndex(){if(!this.config.eventData)return null;let e=this.config.eventData.cards.findIndex(({completed:e,isOpen:t})=>!e&&t);return -1===e?null:e}getCurrentAwardId(){let e=this.getCompletedCardIndex();return null!==e&&this.config.currentEvent&&2!==e?this.config.currentEvent.awards[e]:null}getCompletedLevelsInCard(e){if(!this.config.eventData)return 0;let t=this.config.eventData.cards[e];return t?t.levels.filter(e=>e.completed).length:0}getCardLevelsCount(e){return this.config.eventData?this.config.eventData.cards[e].levels.reduce((e,{id:t,difficulty:n,completed:r})=>{let i=e[n],o=r?(null==i?void 0:i.incompleteLevels)?i.incompleteLevels:[]:(null==i?void 0:i.incompleteLevels)?i.incompleteLevels.concat(t):[t],s=(null==i?void 0:i.totalLevels)?(null==i?void 0:i.totalLevels)+1:1;return Object.assign(Object.assign({},e),{[n]:{incompleteLevels:o,totalLevels:s,completed:(void 0===(null==i?void 0:i.completed)||i.completed)&&r}})},{}):{}}sendScreenEvent(e){let t=this.config.currentEvent||this.tempCurrentEvent;if(t){let n=localStorage.getItem("prev_lo_screen")||"g_gamescreen";if(e===n)return;let r=Object.assign({id:t.ai,lo_type:this.getLoType(),segment_id:this.getSegmentId(),uid:t.id,placement:n,type:e},this.getExtraEventParams());eP("lo_screen",r),Z.send("lo_screen",r),this.updateLoPlacement(e)}}sendScreenAction(e,t){let n=this.config.currentEvent||this.tempCurrentEvent;if(n){let r={id:n.ai,lo_type:this.getLoType(),uid:n.id,action:t,type:e,stage:this.getCompletedLevels()};eP("lo_screen_action",r),Z.send("lo_screen_action",r)}}clickToBanner(e){if(this.config.currentEvent){let t=Object.assign(Object.assign({},this.buildBasePayload()),{type:e});eP("lo_banner_click",t),Z.send("lo_banner_click",t)}}sendOnboardingEvent(e,t=!0){if(this.config.currentEvent){let t=Object.assign(Object.assign({},this.buildBasePayload()),{step:e,total_steps:6});eP("lo_onboarding",t),Z.send("lo_onboarding",t)}t&&(this.config.onboardingStep=e,this.saveConfig())}sendLevelStartEvent(e,t){if(!this.config.currentEvent)return;let n=Object.assign(Object.assign({},this.buildBasePayload()),{difficulty_level:i$[t],level_id:e,stage:this.getCompletedLevels()});eP("lo_level_start",n),Z.send("lo_level_start",n)}sendRewardClaimEvent(e){var t;if(!this.config.currentEvent)return;let n=Object.assign(Object.assign({},this.buildBasePayload()),{time_1s:Math.floor(Date.now()/1e3-(null!=(t=this.config.currentEvent.start)?t:0)),message:{award:e}});
47eP("lo_reward_claim",n),Z.send("lo_reward_claim",n)}sendLevelFinishEvent(e,t,n,r){if(!this.config.currentEvent)return;let i=Object.assign(Object.assign({},this.buildBasePayload()),{time_1s:n,difficulty_level:i$[t],level_id:e,boosters:r,stage:this.getCompletedLevels()});eP("lo_level_finish",i),Z.send("lo_level_finish",i)}getCompletedLevels(){if(!this.config.eventData)return 1;let e=this.config.eventData.cards.reduce((e,t)=>[...e,...t.levels],[]),t=e.filter(e=>e.completed).length;return t===e.length?t:t+1}sendEventFinishEvent(e){var t,n,r;let i=null!=(t=this.config.currentEvent)?t:this.tempCurrentEvent;if(!i)return;"win"===e&&(this.config.completedEvents=[...null!=(n=this.config.completedEvents)?n:[],i.id]);let o=Object.assign({id:i.ai,lo_type:this.getLoType(),uid:i.id,stage:this.getCompletedLevels(),reason:e,time_1s:Math.floor(Date.now()/1e3-(null!=(r=i.start)?r:0))},this.getExtraEventParams());eP("lo_finish",o),Z.send("lo_finish",o)}reset(e,t){let n=this.getCurrentMappedSudokuLevel();if(!n||!this.config.currentEvent)return;let{difficulty:r,levelProgress:i}=n,o=Object.assign(Object.assign({},this.buildBasePayload()),{difficulty_level:i$[r],level_id:i.id,stage:this.getCompletedLevels(),time_1s:null!=e?e:0,boosters:null!=t?t:null});eP("lo_level_lose",o),Z.send("lo_level_lose",o),this.resetGameProgress(),this.saveConfig()}}!function(e){e.left="left",e.right="right"}(iY||(iY={})),function(e){e.easy="easy",e.medium="medium",e.hard="hard",e.expert="expert",e.evil="evil",e.extreme="extreme"}(iX||(iX={}));let{awardsLogic:iH}=eL,iz={1:iX.easy,2:iX.medium,3:iX.hard,4:iX.expert,5:iX.evil,6:iX.extreme},iG={lastUpdate:0,levelsMap:[],welcomePopup:!1,startBanner:!1,hiw:!1,currentEvent:null,finished:[],completedEvents:[],onboarding:!1,visited:!1,clicked:!1,completedLevelsIds:[],eventData:null,completedCards:0,eventCompleted:!1,eventCompletedPopup:!1,onboardingStep:0,bestTime:{}},iq=new class extends ij{constructor(){super("storybook",iG)}getLoType(){return"book"}getSubmoduleVersion(){return 103}async fetchEventData(e,t){if(!t||!t.length)return;let n=e.find(({pt:e})=>e===n3.resources),r=e.find(({pt:e})=>e===n3.translations),i=e.find(({pt:e})=>e===n3.balance);if(n&&r&&i)for(let e of t)try{let t=await fetch(`${e}${i.ur}`),o=await t.json(),s=await fetch(`${e}${r.ur}`),a=await s.text(),l=rX(a),c=o.Levels.map(({D:e,Id:t,S:n,P:r})=>({id:t,difficulty:iz[e],completed:this.config.completedLevelsIds.includes(t),cardIndex:n,piece:!!r}));return{translations:l,iconUrl:`${e}${n.cf.ic}`,bgBottom:n.cf.bgb,bgTop:n.cf.bgt,cards:n.cf.pc.map((t,n)=>({cardImage:`${e}${t}`,isOpen:this.config.completedCards>=n,completed:this.config.completedCards>n,levels:c.filter(({cardIndex:e})=>e===n)})),levels:c}}catch(e){console.log(e)}}buildEventConfigUpdate(e,t,n){var r,i,o,s,a,l,c,u,d;return Object.assign(Object.assign({},this.config),{lastUpdate:Date.now(),eventData:t,currentEvent:{time:n,id:e.mt.ei,up:e.mt.up,start:null!=(i=null!=(r=e.mt.sc[2])?r:e.mt.sc[1])?i:Math.floor(Date.now()/1e3),currentLevel:(null==(o=this.config.currentEvent)?void 0:o.currentLevel)||t.cards[0].levels[0].id,levels:t.levels,awards:e.aw.map(({i:e})=>e),redirect:!1,ai:e.mt.ai,inited:null!=(a=null==(s=this.config.currentEvent)?void 0:s.inited)&&a,mode:null!=(c=null==(l=this.config.currentEvent)?void 0:l.mode)?c:this.tempMode,version:this.version,clicked:null!=(d=null==(u=this.config.currentEvent)?void 0:u.clicked)&&d,submoduleVersion:103}})}showHiw(){this.config&&(this.config.hiw=!0,this.saveConfig())}isEventLost(){return 5!==this.config.completedCards&&this.checkExpiring()}hasCurrentLevelProgress(){var e;let t=null==(e=this.config.currentEvent)?void 0:e.currentLevel;return!!t&&this.config.levelsMap.some(({liveopsLevelId:e,levelProgress:n})=>e===t&&(n.loaded||n.started))}getCompletedCardIndex(){if(!this.config.eventData)return null;let e=this.config.eventData.cards.findIndex(({completed:e},t)=>e&&5===this.config.completedCards&&4===t);return -1===e?null:e}onCardComplete(e){var t;let n=this.getActiveCardIndex();if(!this.config.eventData||null===n)return;if(this.config.currentEvent){let e=this.buildBasePayload();if(e){let r=Math.floor(Date.now()/1e3-(null!=(t=this.config.currentEvent.start)?t:0)),i=Object.assign(Object.assign({},e),{time_1s:r,chapter:n+1});eP("lo_progress",i),Z.send("lo_progress",i)}}let{levels:r}=this.config.eventData.cards[n];if(this.config.eventData.cards[n].levels=r.map(e=>e.completed?e:(this.config.completedLevelsIds.push(e.id),Object.assign(Object.assign({},e),{completed:!0}))),this.config.completedCards++,this.config.eventData.cards[n].completed=!0,this.config.eventData.cards.length>n+1){let t=this.config.eventData.cards[n+1].levels[0];this.config.eventData.cards[n+1].isOpen=!0,this.selectLevel(t.id),e&&e(t.id,!0)}else e&&e(null,!0),this.sendEventFinishEvent("win"),this.config.currentEvent&&(this.finishCallback&&this.finishCallback(),this.sendRewardClaimEvent(this.config.currentEvent.awards[0]),iH.addAward(this.config.currentEvent.awards[0],Math.floor(Date.now()/1e3),re.storybook)),this.onEventFinish();this.saveConfig()}getSavedChapter(){return this.config.savedChapter}
47saveChapter(e){this.config.savedChapter=e,this.saveConfig()}getLastSeenProgress(){return this.config.lastSeenProgress}saveLastSeenProgress(e,t){this.config.lastSeenProgress={chapterIndex:e,completedLevels:t},this.saveConfig()}getStoryText(e){var t,n;let r=null==(t=this.config.eventData)?void 0:t.translations;if(!r)return"";let i=r3(r,`um_book_story_text_${e}`);return i&&null!=(n=i[iF[window.lang||"en"]])?n:""}};var iU={};!function(e){class t{constructor(e,t){this.state={angle:0,area:[],position:{x:0,y:0},hardAngle:0,hardDrawingAngle:0},this.createdDensity=t,this.nowDrawingDensity=this.createdDensity,this.render=e}setDensity(e){this.createdDensity=e,this.nowDrawingDensity=e}setDrawingDensity(e){this.nowDrawingDensity=e}setPosition(e){this.state.position=e}setAngle(e){this.state.angle=e}setArea(e){this.state.area=e}setHardDrawingAngle(e){this.state.hardDrawingAngle=e}setHardAngle(e){this.state.hardAngle=e,this.state.hardDrawingAngle=e}setOrientation(e){this.orientation=e}getDrawingDensity(){return this.nowDrawingDensity}getDensity(){return this.createdDensity}getHardAngle(){return this.state.hardAngle}}class n extends t{constructor(e,t,n){super(e,n),this.image=null,this.isLoad=!1,this.loadingAngle=0,this.image=new Image,this.image.src=t}draw(e){let t=this.render.getContext(),n=this.render.convertToGlobal(this.state.position),r=this.render.getRect().pageWidth,i=this.render.getRect().height;for(let e of(t.save(),t.translate(n.x,n.y),t.beginPath(),this.state.area))null!==e&&(e=this.render.convertToGlobal(e),t.lineTo(e.x-n.x,e.y-n.y));t.rotate(this.state.angle),t.clip(),this.isLoad?t.drawImage(this.image,0,0,r,i):this.drawLoader(t,{x:0,y:0},r,i),t.restore()}simpleDraw(e){let t=this.render.getRect(),n=this.render.getContext(),r=t.pageWidth,i=t.height,o=1===e?t.left+t.pageWidth:t.left,s=t.top;this.isLoad?n.drawImage(this.image,o,s,r,i):this.drawLoader(n,{x:o,y:s},r,i)}drawLoader(e,t,n,r){e.beginPath(),e.strokeStyle="rgb(200, 200, 200)",e.fillStyle="rgb(255, 255, 255)",e.lineWidth=1,e.rect(t.x+1,t.y+1,n-1,r-1),e.stroke(),e.fill();let i={x:t.x+n/2,y:t.y+r/2};e.beginPath(),e.lineWidth=10,e.arc(i.x,i.y,20,this.loadingAngle,3*Math.PI/2+this.loadingAngle),e.stroke(),e.closePath(),this.loadingAngle+=.07,this.loadingAngle>=2*Math.PI&&(this.loadingAngle=0)}load(){this.isLoad||(this.image.onload=()=>{this.isLoad=!0})}newTemporaryCopy(){return this}getTemporaryCopy(){return this}hideTemporaryCopy(){}}class r{constructor(e,t){this.pages=[],this.currentPageIndex=0,this.currentSpreadIndex=0,this.landscapeSpread=[],this.portraitSpread=[],this.render=t,this.app=e,this.currentPageIndex=0,this.isShowCover=this.app.getSettings().showCover}destroy(){this.pages=[]}createSpread(){this.landscapeSpread=[],this.portraitSpread=[];for(let e=0;e<this.pages.length;e++)this.portraitSpread.push([e]);let e=0;this.isShowCover&&(this.pages[0].setDensity("hard"),this.landscapeSpread.push([e]),e++);for(let t=e;t<this.pages.length;t+=2)t<this.pages.length-1?this.landscapeSpread.push([t,t+1]):(this.landscapeSpread.push([t]),this.pages[t].setDensity("hard"))}getSpread(){return"landscape"===this.render.getOrientation()?this.landscapeSpread:this.portraitSpread}getSpreadIndexByPage(e){let t=this.getSpread();for(let n=0;n<t.length;n++)if(e===t[n][0]||e===t[n][1])return n;return null}getPageCount(){return this.pages.length}getPages(){return this.pages}getPage(e){if(e>=0&&e<this.pages.length)return this.pages[e];throw Error("Invalid page number")}nextBy(e){let t=this.pages.indexOf(e);return t<this.pages.length-1?this.pages[t+1]:null}prevBy(e){let t=this.pages.indexOf(e);return t>0?this.pages[t-1]:null}getFlippingPage(e){let t=this.currentSpreadIndex;if("portrait"===this.render.getOrientation())return 0===e?this.pages[t].newTemporaryCopy():this.pages[t-1];{let n=0===e?this.getSpread()[t+1]:this.getSpread()[t-1];return 1===n.length||0===e?this.pages[n[0]]:this.pages[n[1]]}}getBottomPage(e){let t=this.currentSpreadIndex;if("portrait"===this.render.getOrientation())return 0===e?this.pages[t+1]:this.pages[t-1];{let n=0===e?this.getSpread()[t+1]:this.getSpread()[t-1];return 1===n.length?this.pages[n[0]]:0===e?this.pages[n[1]]:this.pages[n[0]]}}showNext(){this.currentSpreadIndex<this.getSpread().length&&(this.currentSpreadIndex++,this.showSpread())}showPrev(){this.currentSpreadIndex>0&&(this.currentSpreadIndex--,this.showSpread())}getCurrentPageIndex(){return this.currentPageIndex}show(e=null){if(null===e&&(e=this.currentPageIndex),e<0||e>=this.pages.length)return;let t=this.getSpreadIndexByPage(e);null!==t&&(this.currentSpreadIndex=t,this.showSpread())}getCurrentSpreadIndex(){return this.currentSpreadIndex}setCurrentSpreadIndex(e){if(!(e>=0&&e<this.getSpread().length))throw Error("Invalid page");this.currentSpreadIndex=e}showSpread(){let e=this.getSpread()[this.currentSpreadIndex];2===e.length?(this.render.setLeftPage(this.pages[e[0]]),this.render.setRightPage(this.pages[e[1]])):"landscape"===this.render.getOrientation()&&e[0]===this.pages.length-1?(this.render.setLeftPage(this.pages[e[0]]),this.render.setRightPage(null)):(this.render.setLeftPage(null),this.render.setRightPage(this.pages[e[0]])),this.currentPageIndex=e[0],this.app.updatePageIndex(this.currentPageIndex)}}class i extends r{constructor(e,t,n){super(e,t),this.imagesHref=n}load(){for(let e of this.imagesHref){let t=new n(this.render,e,"soft");t.load(),this.pages.push(t)}this.createSpread()}}class o{static GetDistanceBetweenTwoPoint(e,t){return null===e||null===t?1/0:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}static GetSegmentLength(e){return o.GetDistanceBetweenTwoPoint(e[0],e[1])}
47static GetAngleBetweenTwoLine(e,t){let n=e[0].y-e[1].y,r=t[0].y-t[1].y,i=e[1].x-e[0].x,o=t[1].x-t[0].x;return Math.acos((n*r+i*o)/(Math.sqrt(n*n+i*i)*Math.sqrt(r*r+o*o)))}static PointInRect(e,t){return null===t?null:t.x>=e.left&&t.x<=e.width+e.left&&t.y>=e.top&&t.y<=e.top+e.height?t:null}static GetRotatedPoint(e,t,n){return{x:e.x*Math.cos(n)+e.y*Math.sin(n)+t.x,y:e.y*Math.cos(n)-e.x*Math.sin(n)+t.y}}static LimitPointToCircle(e,t,n){if(o.GetDistanceBetweenTwoPoint(e,n)<=t)return n;let r=e.x,i=e.y,s=n.x,a=n.y,l=Math.sqrt(Math.pow(t,2)*Math.pow(r-s,2)/(Math.pow(r-s,2)+Math.pow(i-a,2)))+r;n.x<0&&(l*=-1);let c=(l-r)*(i-a)/(r-s)+i;return r-s+i===0&&(c=t),{x:l,y:c}}static GetIntersectBetweenTwoSegment(e,t,n){return o.PointInRect(e,o.GetIntersectBeetwenTwoLine(t,n))}static GetIntersectBeetwenTwoLine(e,t){let n=e[0].y-e[1].y,r=t[0].y-t[1].y,i=e[1].x-e[0].x,o=t[1].x-t[0].x,s=e[0].x*e[1].y-e[1].x*e[0].y,a=t[0].x*t[1].y-t[1].x*t[0].y,l=-(s*o-a*i)/(n*o-r*i),c=-(n*a-r*s)/(n*o-r*i);if(isFinite(l)&&isFinite(c))return{x:l,y:c};if(.1>Math.abs(n*a-r*s-(i*a-o*s)))throw Error("Segment included");return null}static GetCordsFromTwoPoint(e,t){let n=Math.abs(e.x-t.x),r=Math.abs(e.y-t.y),i=Math.max(n,r),o=[e];function s(e,t,n,r,i){return t>e?e+n/r*i:t<e?e-n/r*i:e}for(let a=1;a<=i;a+=1)o.push({x:s(e.x,t.x,n,i,a),y:s(e.y,t.y,r,i,a)});return o}}class s extends t{constructor(e,t,n){super(e,n),this.copiedElement=null,this.temporaryCopy=null,this.isLoad=!1,this.element=t,this.element.classList.add("stf__item"),this.element.classList.add("--"+n)}newTemporaryCopy(){return"hard"===this.nowDrawingDensity?this:(null===this.temporaryCopy&&(this.copiedElement=this.element.cloneNode(!0),this.element.parentElement.appendChild(this.copiedElement),this.temporaryCopy=new s(this.render,this.copiedElement,this.nowDrawingDensity)),this.getTemporaryCopy())}getTemporaryCopy(){return this.temporaryCopy}hideTemporaryCopy(){null!==this.temporaryCopy&&(this.copiedElement.remove(),this.copiedElement=null,this.temporaryCopy=null)}draw(e){let t=e||this.nowDrawingDensity,n=this.render.convertToGlobal(this.state.position),r=this.render.getRect().pageWidth,i=this.render.getRect().height;this.element.classList.remove("--simple");let o=` 48 display: block; 49 z-index: ${this.element.style.zIndex}; 50 left: 0; 51 top: 0; 52 width: ${r}px; 53 height: ${i}px; 54 `;"hard"===t?this.drawHard(o):this.drawSoft(n,o)}drawHard(e=""){let t=this.render.getRect().left+this.render.getRect().width/2,n=this.state.hardDrawingAngle,r=e+` 55 backface-visibility: hidden; 56 -webkit-backface-visibility: hidden; 57 clip-path: none; 58 -webkit-clip-path: none; 59 `+(0===this.orientation?`transform-origin: ${this.render.getRect().pageWidth}px 0; 60 transform: translate3d(0, 0, 0) rotateY(${n}deg);`:`transform-origin: 0 0; 61 transform: translate3d(${t}px, 0, 0) rotateY(${n}deg);`);this.element.style.cssText=r}drawSoft(e,t=""){let n="polygon( ";for(let e of this.state.area)if(null!==e){let t=1===this.render.getDirection()?{x:-e.x+this.state.position.x,y:e.y-this.state.position.y}:{x:e.x-this.state.position.x,y:e.y-this.state.position.y};n+=(t=o.GetRotatedPoint(t,{x:0,y:0},this.state.angle)).x+"px "+t.y+"px, "}n=n.slice(0,-2)+")";let r=t+`transform-origin: 0 0; clip-path: ${n}; -webkit-clip-path: ${n};`+(this.render.isSafari()&&0===this.state.angle?`transform: translate(${e.x}px, ${e.y}px);`:`transform: translate3d(${e.x}px, ${e.y}px, 0) rotate(${this.state.angle}rad);`);this.element.style.cssText=r}simpleDraw(e){let t=this.render.getRect(),n=t.pageWidth,r=t.height,i=1===e?t.left+t.pageWidth:t.left,o=t.top;this.element.classList.add("--simple"),this.element.style.cssText=` 62 position: absolute; 63 display: block; 64 height: ${r}px; 65 left: ${i}px; 66 top: ${o}px; 67 width: ${n}px; 68 z-index: ${this.render.getSettings().startZIndex+1};`}getElement(){return this.element}load(){this.isLoad=!0}setOrientation(e){super.setOrientation(e),this.element.classList.remove("--left","--right"),this.element.classList.add(1===e?"--right":"--left")}setDrawingDensity(e){this.element.classList.remove("--soft","--hard"),this.element.classList.add("--"+e),super.setDrawingDensity(e)}}class a extends r{constructor(e,t,n,r){super(e,t),this.element=n,this.pagesElement=r}load(){for(let e of this.pagesElement){let t=new s(this.render,e,"hard"===e.dataset.density?"hard":"soft");t.load(),this.pages.push(t)}this.createSpread()}}class l{constructor(e,t,n,r){this.direction=e,this.corner=t,this.topIntersectPoint=null,this.sideIntersectPoint=null,this.bottomIntersectPoint=null,this.pageWidth=parseInt(n,10),this.pageHeight=parseInt(r,10)}calc(e){try{return this.position=this.calcAngleAndPosition(e),this.calculateIntersectPoint(this.position),!0}catch(e){return!1}}getFlippingClipArea(){let e=[],t=!1;return e.push(this.rect.topLeft),e.push(this.topIntersectPoint),null===this.sideIntersectPoint?t=!0:(e.push(this.sideIntersectPoint),null===this.bottomIntersectPoint&&(t=!1)),e.push(this.bottomIntersectPoint),(t||"bottom"===this.corner)&&e.push(this.rect.bottomLeft),e}getBottomClipArea(){let e=[];return e.push(this.topIntersectPoint),"top"===this.corner?e.push({x:this.pageWidth,y:0}):(null!==this.topIntersectPoint&&e.push({x:this.pageWidth,y:0}),e.push({x:this.pageWidth,y:this.pageHeight})),null!==this.sideIntersectPoint?o.GetDistanceBetweenTwoPoint(this.sideIntersectPoint,this.topIntersectPoint)>=10&&e.push(this.sideIntersectPoint):"top"===this.corner&&e.push({x:this.pageWidth,y:this.pageHeight}),e.push(this.bottomIntersectPoint),e.push(this.topIntersectPoint),e}getAngle(){return 0===this.direction?-this.angle:this.angle}getRect(){return this.rect}getPosition(){return this.position}getActiveCorner(){return 0===this.direction?this.rect.topLeft:this.rect.topRight}getDirection(){return this.direction}getFlippingProgress(){return Math.abs((this.position.x-this.pageWidth)/(2*this.pageWidth)*100)}getCorner(){return this.corner}getBottomPagePosition(){return 1===this.direction?{x:this.pageWidth,y:0}:{x:0,y:0}}getShadowStartPoint(){return"top"===this.corner?this.topIntersectPoint:null!==this.sideIntersectPoint?this.sideIntersectPoint:this.topIntersectPoint}
68getShadowAngle(){let e=o.GetAngleBetweenTwoLine(this.getSegmentToShadowLine(),[{x:0,y:0},{x:this.pageWidth,y:0}]);return 0===this.direction?e:Math.PI-e}calcAngleAndPosition(e){let t=e;if(this.updateAngleAndGeometry(t),1>Math.abs((t="top"===this.corner?this.checkPositionAtCenterLine(t,{x:0,y:0},{x:0,y:this.pageHeight}):this.checkPositionAtCenterLine(t,{x:0,y:this.pageHeight},{x:0,y:0})).x-this.pageWidth)&&1>Math.abs(t.y))throw Error("Point is too small");return t}updateAngleAndGeometry(e){this.angle=this.calculateAngle(e),this.rect=this.getPageRect(e)}calculateAngle(e){let t=this.pageWidth-e.x+1,n="bottom"===this.corner?this.pageHeight-e.y:e.y,r=2*Math.acos(t/Math.sqrt(n*n+t*t));n<0&&(r=-r);let i=Math.PI-r;if(!isFinite(r)||i>=0&&i<.003)throw Error("The G point is too small");return"bottom"===this.corner&&(r=-r),r}getPageRect(e){return"top"===this.corner?this.getRectFromBasePoint([{x:0,y:0},{x:this.pageWidth,y:0},{x:0,y:this.pageHeight},{x:this.pageWidth,y:this.pageHeight}],e):this.getRectFromBasePoint([{x:0,y:-this.pageHeight},{x:this.pageWidth,y:-this.pageHeight},{x:0,y:0},{x:this.pageWidth,y:0}],e)}getRectFromBasePoint(e,t){return{topLeft:this.getRotatedPoint(e[0],t),topRight:this.getRotatedPoint(e[1],t),bottomLeft:this.getRotatedPoint(e[2],t),bottomRight:this.getRotatedPoint(e[3],t)}}getRotatedPoint(e,t){return{x:e.x*Math.cos(this.angle)+e.y*Math.sin(this.angle)+t.x,y:e.y*Math.cos(this.angle)-e.x*Math.sin(this.angle)+t.y}}calculateIntersectPoint(e){let t={left:-1,top:-1,width:this.pageWidth+2,height:this.pageHeight+2};"top"===this.corner?(this.topIntersectPoint=o.GetIntersectBetweenTwoSegment(t,[e,this.rect.topRight],[{x:0,y:0},{x:this.pageWidth,y:0}]),this.sideIntersectPoint=o.GetIntersectBetweenTwoSegment(t,[e,this.rect.bottomLeft],[{x:this.pageWidth,y:0},{x:this.pageWidth,y:this.pageHeight}])):(this.topIntersectPoint=o.GetIntersectBetweenTwoSegment(t,[this.rect.topLeft,this.rect.topRight],[{x:0,y:0},{x:this.pageWidth,y:0}]),this.sideIntersectPoint=o.GetIntersectBetweenTwoSegment(t,[e,this.rect.topLeft],[{x:this.pageWidth,y:0},{x:this.pageWidth,y:this.pageHeight}])),this.bottomIntersectPoint=o.GetIntersectBetweenTwoSegment(t,[this.rect.bottomLeft,this.rect.bottomRight],[{x:0,y:this.pageHeight},{x:this.pageWidth,y:this.pageHeight}])}checkPositionAtCenterLine(e,t,n){let r=e,i=o.LimitPointToCircle(t,this.pageWidth,r);r!==i&&(r=i,this.updateAngleAndGeometry(r));let s=Math.sqrt(Math.pow(this.pageWidth,2)+Math.pow(this.pageHeight,2)),a=this.rect.bottomRight,l=this.rect.topLeft;if("bottom"===this.corner&&(a=this.rect.topRight,l=this.rect.bottomLeft),a.x<=0){let e=o.LimitPointToCircle(n,s,l);e!==r&&(r=e,this.updateAngleAndGeometry(r))}return r}getSegmentToShadowLine(){let e=this.getShadowStartPoint();return[e,e!==this.sideIntersectPoint&&null!==this.sideIntersectPoint?this.sideIntersectPoint:this.bottomIntersectPoint]}}class c{constructor(e,t){this.flippingPage=null,this.bottomPage=null,this.calc=null,this.state="read",this.render=e,this.app=t}fold(e){this.setState("user_fold"),null===this.calc&&this.start(e),this.do(this.render.convertToPage(e))}flip(e){if(this.app.getSettings().disableFlipByClick&&!this.isPointOnCorners(e)||(null!==this.calc&&this.render.finishAnimation(),!this.start(e)))return;let t=this.getBoundsRect();this.setState("flipping");let n=t.height/10,r="bottom"===this.calc.getCorner()?t.height-n:n,i="bottom"===this.calc.getCorner()?t.height:0;this.calc.calc({x:t.pageWidth-n,y:r}),this.animateFlippingTo({x:t.pageWidth-n,y:r},{x:-t.pageWidth,y:i},!0)}start(e){this.reset();let t=this.render.convertToBook(e),n=this.getBoundsRect(),r=this.getDirectionByPoint(t),i=t.y>=n.height/2?"bottom":"top";if(!this.checkDirection(r))return!1;try{if(this.flippingPage=this.app.getPageCollection().getFlippingPage(r),this.bottomPage=this.app.getPageCollection().getBottomPage(r),"landscape"===this.render.getOrientation())if(1===r){let e=this.app.getPageCollection().nextBy(this.flippingPage);null!==e&&this.flippingPage.getDensity()!==e.getDensity()&&(this.flippingPage.setDrawingDensity("hard"),e.setDrawingDensity("hard"))}else{let e=this.app.getPageCollection().prevBy(this.flippingPage);null!==e&&this.flippingPage.getDensity()!==e.getDensity()&&(this.flippingPage.setDrawingDensity("hard"),e.setDrawingDensity("hard"))}return this.render.setDirection(r),this.calc=new l(r,i,n.pageWidth.toString(10),n.height.toString(10)),!0}catch(e){return!1}}do(e){if(null!==this.calc&&this.calc.calc(e)){let e=this.calc.getFlippingProgress();this.bottomPage.setArea(this.calc.getBottomClipArea()),this.bottomPage.setPosition(this.calc.getBottomPagePosition()),this.bottomPage.setAngle(0),this.bottomPage.setHardA
68ngle(0),this.flippingPage.setArea(this.calc.getFlippingClipArea()),this.flippingPage.setPosition(this.calc.getActiveCorner()),this.flippingPage.setAngle(this.calc.getAngle()),0===this.calc.getDirection()?this.flippingPage.setHardAngle(90*(200-2*e)/100):this.flippingPage.setHardAngle(-90*(200-2*e)/100),this.render.setPageRect(this.calc.getRect()),this.render.setBottomPage(this.bottomPage),this.render.setFlippingPage(this.flippingPage),this.render.setShadowData(this.calc.getShadowStartPoint(),this.calc.getShadowAngle(),e,this.calc.getDirection())}}flipToPage(e,t){let n=this.app.getPageCollection().getCurrentSpreadIndex(),r=this.app.getPageCollection().getSpreadIndexByPage(e);try{r>n&&(this.app.getPageCollection().setCurrentSpreadIndex(r-1),this.flipNext(t)),r<n&&(this.app.getPageCollection().setCurrentSpreadIndex(r+1),this.flipPrev(t))}catch(e){}}flipNext(e){this.flip({x:this.render.getRect().left+2*this.render.getRect().pageWidth-10,y:"top"===e?1:this.render.getRect().height-2})}flipPrev(e){this.flip({x:10,y:"top"===e?1:this.render.getRect().height-2})}stopMove(){if(null===this.calc)return;let e=this.calc.getPosition(),t=this.getBoundsRect(),n="bottom"===this.calc.getCorner()?t.height:0;e.x<=0?this.animateFlippingTo(e,{x:-t.pageWidth,y:n},!0):this.animateFlippingTo(e,{x:t.pageWidth,y:n},!1)}showCorner(e){if(!this.checkState("read","fold_corner"))return;let t=this.getBoundsRect(),n=t.pageWidth;if(this.isPointOnCorners(e))if(null===this.calc){if(!this.start(e))return;this.setState("fold_corner"),this.calc.calc({x:n-1,y:1});let r="bottom"===this.calc.getCorner()?t.height-1:1,i="bottom"===this.calc.getCorner()?t.height-50:50;this.animateFlippingTo({x:n-1,y:r},{x:n-50,y:i},!1,!1)}else this.do(this.render.convertToPage(e));else this.setState("read"),this.render.finishAnimation(),this.stopMove()}animateFlippingTo(e,t,n,r=!0){let i=o.GetCordsFromTwoPoint(e,t),s=[];for(let e of i)s.push(()=>this.do(e));let a=this.getAnimationDuration(i.length);this.render.startAnimation(s,a,()=>{this.calc&&(n&&(1===this.calc.getDirection()?this.app.turnToPrevPage():this.app.turnToNextPage()),r&&(this.render.setBottomPage(null),this.render.setFlippingPage(null),this.render.clearShadow(),this.setState("read"),this.reset()))})}getCalculation(){return this.calc}getState(){return this.state}setState(e){this.state!==e&&(this.app.updateState(e),this.state=e)}getDirectionByPoint(e){let t=this.getBoundsRect();if("portrait"===this.render.getOrientation()){if(e.x-t.pageWidth<=t.width/5)return 1}else if(e.x<t.width/2)return 1;return 0}getAnimationDuration(e){let t=this.app.getSettings().flippingTime;return e>=1e3?t:e/1e3*t}checkDirection(e){return 0===e?this.app.getCurrentPageIndex()<this.app.getPageCount()-1:this.app.getCurrentPageIndex()>=1}reset(){this.calc=null,this.flippingPage=null,this.bottomPage=null}getBoundsRect(){return this.render.getRect()}checkState(...e){for(let t of e)if(this.state===t)return!0;return!1}isPointOnCorners(e){let t=this.getBoundsRect(),n=Math.sqrt(Math.pow(t.pageWidth,2)+Math.pow(t.height,2))/5,r=this.render.convertToBook(e);return r.x>0&&r.y>0&&r.x<t.width&&r.y<t.height&&(r.x<n||r.x>t.width-n)&&(r.y<n||r.y>t.height-n)}}class u{constructor(e,t){this.leftPage=null,this.rightPage=null,this.flippingPage=null,this.bottomPage=null,this.direction=null,this.orientation=null,this.shadow=null,this.animation=null,this.pageRect=null,this.boundsRect=null,this.timer=0,this.safari=!1,this.setting=t,this.app=e;let n=RegExp("Version\\/[\\d\\.]+.*Safari/");this.safari=null!==n.exec(window.navigator.userAgent)}render(e){if(null!==this.animation){let t=Math.round((e-this.animation.startedAt)/this.animation.durationFrame);t<this.animation.frames.length?this.animation.frames[t]():(this.animation.onAnimateEnd(),this.animation=null)}this.timer=e,this.drawFrame()}start(){this.update();let e=t=>{this.render(t),requestAnimationFrame(e)};requestAnimationFrame(e)}startAnimation(e,t,n){this.finishAnimation(),this.animation={frames:e,duration:t,durationFrame:t/e.length,onAnimateEnd:n,startedAt:this.timer}}finishAnimation(){null!==this.animation&&(this.animation.frames[this.animation.frames.length-1](),null!==this.animation.onAnimateEnd&&this.animation.onAnimateEnd()),this.animation=null}update(){this.boundsRect=null;let e=this.calculateBoundsRect();this.orientation!==e&&(this.orientation=e,this.app.updateOrientation(e))}calculateBoundsRect(){let e="landscape",t=this.getBlockWidth(),n=t/2,r=this.getBlockHeight()/2,i=this.setting.width/this.setting.height,o=this.setting.width,s=this.setting.height,a=n-o;return"stretch"===this.setting.size?(t<2*this.setting.minWidth&&this.app.getSettings().usePortrait&&(e="portrait"),(o="portrait"===e?this.getBlockWidth():this.getBlockWidth()/2)>this.setting.maxWidth&&(o=this.setting.maxWidth),(s=o/i)>this.getBlockHeight()&&(o=(s=this.getBlockHeight())*i),a="portrait"===e?n-o/2-o:n-o):t<2*o&&this.app.getSettings().usePortrait&&(e="portrait",a=n-o/2-o),this.boundsRect={left:a,top:r-s/2,width:2*o,height:s,pageWidth:o},e}setShadowData(e,t,n,r){if(!this.app.getSettings().drawShadow)return;let i=100*this.getSettings().maxShadowOpacity;this.shadow={pos:e,angle:t,width:3*this.getRect().pageWidth/4*n/100,opacity:(100-n)*i/100/100,direction:r,progress:2*n}}clearShadow(){this.shadow=null}getBlockWidth(){return this.app.getUI().getDistElement().offsetWidth}getBlockHeight(){return this.app.getUI().getDistElement().offsetHeight}getDirection(){return this.direction}getRect(){return null===this.boundsRect&&this.calculateBoundsRect(),this.boundsRect}getSettings(){return this.app.getSettings()}getOrientation(){return this.orientation}setPageRect(e){this.pageRect=e}setDirection(e){this.direction=e}setRightPage(e){null!==e&&e.setOrientation(1),this.rightPage=e}setLeftPage(e){null!==e&&e.setOrientation(0),this.leftPage=e}setBottomPage(e){null!==e&&e.setOrientation(+(1!==this.direction)),this.bottomPage=e}setFlippingPage(e){null!==e&&e.setOrientation(+(0!==this.direction||"portrait"===this.orientation)),this.flippingPage=e}convertToBook(e){let t=this.getRect();return{x:e.x-t.left,y:e.y-t.top}}isSafari(){return this.safari}convertToPage(e,t){t||(t=this.direction);let n=this.getRect();return{x:0===t?e.x-n.left-n.width/2:n.width/2-e.x+n.left,y:e.y-n.top}}convertToGlobal(e,t){if(t||(t=this.direction),null==e)return null;let n=this.getRect();return{x:0===t?e.x+n.left+n.width/2:n.width/2-e.x+n.left,y:e.y+n.top}}convertRectToGlobal(e,t){return t||(t=this.direction),{topLeft:this.convertToGlobal(e.topLeft,t),topRight:this.convertToGlobal(e.topRight,t),bottomLeft:this.convertToGlobal(e.bottomLeft,t),bottomRight:this.convertToGlobal(e.bottomRight,t)}}}class d extends u{constructor(e,t,n){super(e,t),this.canvas=n,this.ctx=n.getContext("2d")}getContext(){return this.ctx}reload(){}drawFrame(){this.clear(),"portrait"!==this.orientation&&null!=this.leftPage&&this.leftPage.simpleDraw(0),null!=this.rightPage&&this.rightPage.simpleDraw(1),null!=this.bottomPage&&this.bottomPage.draw(),this.drawBookShadow(),null!=this.flippingPage&&this.flippingPage.draw(),null!=this.shadow&&(this.drawOuterShadow(),this.drawInnerShadow());let e=this.getRect();"portrait"===this.orientation&&(this.ctx.beginPath(),this.ctx.rect(e.left+e.pageWidth,e.top,e.width,e.height),this.ctx.clip())}drawBookShadow(){let e=this.getRect();this.ctx.save(),this.ctx.beginPath();let t=e.width/20;this.ctx.rect(e.left,e.top,e.width,e.height);let n={x:e.left+e.width/2-t/2,y:0};this.ctx.translate(n.x,n.y);let r=this.ctx.createLinearGradient(0,0,t,0);r.addColorStop(0,"rgba(0, 0, 0, 0)"),r.addColorStop(.4,"rgba(0, 0, 0, 0.2)"),r.addColorStop(.49,"rgba(0, 0, 0, 0.1)"),r.addColorStop(.5,"rgba(0, 0, 0, 0.5)"),r.addColorStop(.51,"rgba(0, 0, 0, 0.4)"),r.addColorStop(1,"rgba(0, 0, 0, 0)"),this.ctx.clip(),this.ctx.fillStyle=r,this.ctx.fillRect(0,0,t,2*e.height),this.ctx.restore(
vendor: 9,527 bytes, lines 68-89
68)}drawOuterShadow(){let e=this.getRect();this.ctx.save(),this.ctx.beginPath(),this.ctx.rect(e.left,e.top,e.width,e.height);let t=this.convertToGlobal({x:this.shadow.pos.x,y:this.shadow.pos.y});this.ctx.translate(t.x,t.y),this.ctx.rotate(Math.PI+this.shadow.angle+Math.PI/2);let n=this.ctx.createLinearGradient(0,0,this.shadow.width,0);0===this.shadow.direction?(this.ctx.translate(0,-100),n.addColorStop(0,"rgba(0, 0, 0, "+this.shadow.opacity+")"),n.addColorStop(1,"rgba(0, 0, 0, 0)")):(this.ctx.translate(-this.shadow.width,-100),n.addColorStop(0,"rgba(0, 0, 0, 0)"),n.addColorStop(1,"rgba(0, 0, 0, "+this.shadow.opacity+")")),this.ctx.clip(),this.ctx.fillStyle=n,this.ctx.fillRect(0,0,this.shadow.width,2*e.height),this.ctx.restore()}drawInnerShadow(){let e=this.getRect();this.ctx.save(),this.ctx.beginPath();let t=this.convertToGlobal({x:this.shadow.pos.x,y:this.shadow.pos.y}),n=this.convertRectToGlobal(this.pageRect);this.ctx.moveTo(n.topLeft.x,n.topLeft.y),this.ctx.lineTo(n.topRight.x,n.topRight.y),this.ctx.lineTo(n.bottomRight.x,n.bottomRight.y),this.ctx.lineTo(n.bottomLeft.x,n.bottomLeft.y),this.ctx.translate(t.x,t.y),this.ctx.rotate(Math.PI+this.shadow.angle+Math.PI/2);let r=3*this.shadow.width/4,i=this.ctx.createLinearGradient(0,0,r,0);0===this.shadow.direction?(this.ctx.translate(-r,-100),i.addColorStop(1,"rgba(0, 0, 0, "+this.shadow.opacity+")"),i.addColorStop(.9,"rgba(0, 0, 0, 0.05)"),i.addColorStop(.7,"rgba(0, 0, 0, "+this.shadow.opacity+")"),i.addColorStop(0,"rgba(0, 0, 0, 0)")):(this.ctx.translate(0,-100),i.addColorStop(0,"rgba(0, 0, 0, "+this.shadow.opacity+")"),i.addColorStop(.1,"rgba(0, 0, 0, 0.05)"),i.addColorStop(.3,"rgba(0, 0, 0, "+this.shadow.opacity+")"),i.addColorStop(1,"rgba(0, 0, 0, 0)")),this.ctx.clip(),this.ctx.fillStyle=i,this.ctx.fillRect(0,0,r,2*e.height),this.ctx.restore()}clear(){this.ctx.fillStyle="white",this.ctx.fillRect(0,0,this.canvas.width,this.canvas.height)}}class h{constructor(e,t,n){this.touchPoint=null,this.swipeTimeout=250,this.onResize=()=>{this.update()},this.onMouseDown=e=>{if(this.checkTarget(e.target)){let t=this.getMousePos(e.clientX,e.clientY);this.app.startUserTouch(t),e.preventDefault()}},this.onTouchStart=e=>{if(this.checkTarget(e.target)&&e.changedTouches.length>0){let t=e.changedTouches[0],n=this.getMousePos(t.clientX,t.clientY);this.touchPoint={point:n,time:Date.now()},setTimeout(()=>{null!==this.touchPoint&&this.app.startUserTouch(n)},this.swipeTimeout),this.app.getSettings().mobileScrollSupport||e.preventDefault()}},this.onMouseUp=e=>{let t=this.getMousePos(e.clientX,e.clientY);this.app.userStop(t)},this.onMouseMove=e=>{let t=this.getMousePos(e.clientX,e.clientY);this.app.userMove(t,!1)},this.onTouchMove=e=>{if(e.changedTouches.length>0){let t=e.changedTouches[0],n=this.getMousePos(t.clientX,t.clientY);this.app.getSettings().mobileScrollSupport?(null!==this.touchPoint&&(Math.abs(this.touchPoint.point.x-n.x)>10||"read"!==this.app.getState())&&e.cancelable&&this.app.userMove(n,!0),"read"!==this.app.getState()&&e.preventDefault()):this.app.userMove(n,!0)}},this.onTouchEnd=e=>{if(e.changedTouches.length>0){let t=e.changedTouches[0],n=this.getMousePos(t.clientX,t.clientY),r=!1;if(null!==this.touchPoint){let e=n.x-this.touchPoint.point.x,t=Math.abs(n.y-this.touchPoint.point.y);Math.abs(e)>this.swipeDistance&&t<2*this.swipeDistance&&Date.now()-this.touchPoint.time<this.swipeTimeout&&(e>0?this.app.flipPrev(this.touchPoint.point.y<this.app.getRender().getRect().height/2?"top":"bottom"):this.app.flipNext(this.touchPoint.point.y<this.app.getRender().getRect().height/2?"top":"bottom"),r=!0),this.touchPoint=null}this.app.userStop(n,r)}},this.parentElement=e,e.classList.add("stf__parent"),e.insertAdjacentHTML("afterbegin",'<div class="stf__wrapper"></div>'),this.wrapper=e.querySelector(".stf__wrapper"),this.app=t;let r=this.app.getSettings().usePortrait?1:2;e.style.minWidth=n.minWidth*r+"px",e.style.minHeight=n.minHeight+"px","fixed"===n.size&&(e.style.minWidth=n.width*r+"px",e.style.minHeight=n.height+"px"),n.autoSize&&(e.style.width="100%",e.style.maxWidth=2*n.maxWidth+"px"),e.style.display="block",window.addEventListener("resize",this.onResize,!1),this.swipeDistance=n.swipeDistance}destroy(){this.app.getSettings().useMouseEvents&&this.removeHandlers(),this.distElement.remove(),this.wrapper.remove()}getDistElement(){return this.distElement}getWrapper(){return this.wrapper}setOrientationStyle(e){this.wrapper.classList.remove("--portrait","--landscape"),"portrait"===e?(this.app.getSettings().autoSize&&(this.wrapper.style.paddingBottom=this.app.getSettings().height/this.app.getSettings().width*100+"%"),this.wrapper.classList.add("--portrait")):(this.app.getSettings().autoSize&&(this.wrapper.style.paddingBottom=this.app.getSettings().height/(2*this.app.getSettings().width)*100+"%"),this.wrapper.classList.add("--landscape")),this.update()}removeHandlers(){window.removeEventListener("resize",this.onResize),this.distElement.removeEventListener("mousedown",this.onMouseDown),this.distElement.removeEventListener("touchstart",this.onTouchStart),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("touchend",this.onTouchEnd)}setHandlers(){window.addEventListener("resize",this.onResize,!1),this.app.getSettings().useMouseEvents&&(this.distElement.addEventListener("mousedown",this.onMouseDown),this.distElement.addEventListener("touchstart",this.onTouchStart),window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("touchmove",this.onTouchMove,{passive:!this.app.getSettings().mobileScrollSupport}),window.addEventListener("mouseup",this.onMouseUp),window.addEventListener("touchend",this.onTouchEnd))}getMousePos(e,t){let n=this.distElement.getBoundingClientRect();return{x:e-n.left,y:t-n.top}}checkTarget(e){return!this.app.getSettings().clickEventForward||!["a","button"].includes(e.tagName.toLowerCase())}}class p extends h{constructor(e,t,n,r){for(let i of(super(e,t,n),this.wrapper.insertAdjacentHTML("afterbegin",'<div class="stf__block"></div>'),this.distElement=e.querySelector(".stf__block"),this.items=r,r))this.distElement.appendChild(i);this.setHandlers()}clear(){for(let e of this.items)this.parentElement.appendChild(e)}updateItems(e){for(let t of(this.removeHandlers(),this.distElement.innerHTML="",e))this.distElement.appendChild(t);this.items=e,this.setHandlers()}update(){this.app.getRender().update()}}class f extends h{constructor(e,t,n){super(e,t,n),this.wrapper.innerHTML='<canvas class="stf__canvas"></canvas>',this.canvas=e.querySelectorAll("canvas")[0],this.distElement=this.canvas,this.resizeCanvas(),this.setHandlers()}resizeCanvas(){let e=getComputedStyle(this.canvas),t=parseInt(e.getPropertyValue("width"),10),n=parseInt(e.getPropertyValue("height"),10);this.canvas.width=t,this.canvas.height=n}getCanvas(){return this.canvas}update(){this.resizeCanvas(),this.app.getRender().update()}}class g extends u{constructor(e,t,n){super(e,t),this.outerShadow=null,this.innerShadow=null,this.hardShadow=null,this.hardInnerShadow=null,this.element=n,this.createShadows()}createShadows(){this.element.insertAdjacentHTML("beforeend",`<div class="stf__outerShadow"></div> 69 <div class="stf__innerShadow"></div> 70 <div class="stf__hardShadow"></div> 71 <div class="stf__hardInnerShadow"></div>`),this.outerShadow=this.element.querySelector(".stf__outerShadow"),this.innerShadow=this.element.querySelector(".stf__innerShadow"),this.hardShadow=this.element.querySelector(".stf__hardShadow"),this.hardInnerShadow=this.element.querySelector(".stf__hardInnerShadow")}clearShadow(){super.clearShadow(),this.outerShadow.style.cssText="display: none",this.innerShadow.style.cssText="display: none",this.hardShadow.style.cssText="display: none",this.hardInnerShadow.style.cssText="display: none"}reload(){this.element.querySelector(".stf__outerShadow")||this.createShadows()}drawHardInnerShadow(){let e=this.getRect(),t=this.shadow.progress>100?200-this.shadow.progress:this.shadow.progress,n=(100-t)*(2.5*e.pageWidth)/100+20;n>e.pageWidth&&(n=e.pageWidth);let r=` 72 display: block; 73 z-index: ${(this.getSettings().startZIndex+5).toString(10)}; 74 width: ${n}px; 75 height: ${e.height}px; 76 background: linear-gradient(to right, 77 rgba(0, 0, 0, ${this.shadow.opacity*t/100}) 5%, 78 rgba(0, 0, 0, 0) 100%); 79 left: ${e.left+e.width/2}px; 80 transform-origin: 0 0; 81 `;r+=0===this.getDirection()&&this.shadow.progress>100||1===this.getDirection()&&this.shadow.progress<=100?"transform: translate3d(0, 0, 0);":"transform: translate3d(0, 0, 0) rotateY(180deg);",this.hardInnerShadow.style.cssText=r}drawHardOuterShadow(){let e=this.getRect(),t=(100-(this.shadow.progress>100?200-this.shadow.progress:this.shadow.progress))*(2.5*e.pageWidth)/100+20;t>e.pageWidth&&(t=e.pageWidth);let n=` 82 display: block; 83 z-index: ${(this.getSettings().startZIndex+4).toString(10)}; 84 width: ${t}px; 85 height: ${e.height}px; 86 background: linear-gradient(to left, rgba(0, 0, 0, ${this.shadow.opacity}) 5%, rgba(0, 0, 0, 0) 100%); 87 left: ${e.left+e.width/2}px; 88 transform-origin: 0 0; 89 `;n+=0===this.getDirection()&&this.shadow.progress>100||1===this.getDirection()&&this.shadow.progress<=100?"transform: translate3d(0, 0, 0) rotateY(180deg);
89":"transform: translate3d(0, 0, 0);",this.hardShadow.style.cssText=n}drawInnerShadow(){let e=this.getRect(),t=3*this.shadow.width/4,n=0===this.getDirection()?t:0,r=0===this.getDirection()?"to left":"to right",i=this.convertToGlobal(this.shadow.pos),s=this.shadow.angle+3*Math.PI/2,a=[this.pageRect.topLeft,this.pageRect.topRight,this.pageRect.bottomRight,this.pageRect.bottomLeft],l="polygon( ";for(let e of a){let t=1===this.getDirection()?{x:-e.x+this.shadow.pos.x,y:e.y-this.shadow.pos.y}:{x:e.x-this.shadow.pos.x,y:e.y-this.shadow.pos.y};l+=(t=o.GetRotatedPoint(t,{x:n,y:100},s)).x+"px "+t.y+"px, "}l=l.slice(0,-2)+")";let c=` 90 display: block; 91 z-index: ${(this.getSettings().startZIndex+10).toString(10)}; 92 width: ${t}px; 93 height: ${2*e.height}px; 94 background: linear-gradient(${r}, 95 rgba(0, 0, 0, ${this.shadow.opacity}) 5%, 96 rgba(0, 0, 0, 0.05) 15%, 97 rgba(0, 0, 0, ${this.shadow.opacity}) 35%, 98 rgba(0, 0, 0, 0) 100%); 99 transform-origin: ${n}px 100px; 100 transform: translate3d(${i.x-n}px, ${i.y-100}px, 0) rotate(${s}rad); 101 clip-path: ${l}; 102 -webkit-clip-path: ${l}; 103 `;this.innerShadow.style.cssText=c}drawOuterShadow(){let e=this.getRect(),t=this.convertToGlobal({x:this.shadow.pos.x,y:this.shadow.pos.y}),n=this.shadow.angle+3*Math.PI/2,r=1===this.getDirection()?this.shadow.width:0,i=0===this.getDirection()?"to right":"to left",s=[{x:0,y:0},{x:e.pageWidth,y:0},{x:e.pageWidth,y:e.height},{x:0,y:e.height}],a="polygon( ";for(let e of s)if(null!==e){let t=1===this.getDirection()?{x:-e.x+this.shadow.pos.x,y:e.y-this.shadow.pos.y}:{x:e.x-this.shadow.pos.x,y:e.y-this.shadow.pos.y};a+=(t=o.GetRotatedPoint(t,{x:r,y:100},n)).x+"px "+t.y+"px, "}a=a.slice(0,-2)+")";let l=` 104 display: block; 105 z-index: ${(this.getSettings().startZIndex+10).toString(10)}; 106 width: ${this.shadow.width}px; 107 height: ${2*e.height}px; 108 background: linear-gradient(${i}, rgba(0, 0, 0, ${this.shadow.opacity}), rgba(0, 0, 0, 0)); 109 transform-origin: ${r}px 100px; 110 transform: translate3d(${t.x-r}px, ${t.y-100}px, 0) rotate(${n}rad); 111 clip-path: ${a}; 112 -webkit-clip-path: ${a}; 113 `;this.outerShadow.style.cssText=l}drawLeftPage(){"portrait"!==this.orientation&&null!==this.leftPage&&(1===this.direction&&null!==this.flippingPage&&"hard"===this.flippingPage.getDrawingDensity()?(this.leftPage.getElement().style.zIndex=(this.getSettings().startZIndex+5).toString(10),this.leftPage.setHardDrawingAngle(180+this.flippingPage.getHardAngle()),this.leftPage.draw(this.flippingPage.getDrawingDensity())):this.leftPage.simpleDraw(0))}drawRightPage(){null!==this.rightPage&&(0===this.direction&&null!==this.flippingPage&&"hard"===this.flippingPage.getDrawingDensity()?(this.rightPage.getElement().style.zIndex=(this.getSettings().startZIndex+5).toString(10),this.rightPage.setHardDrawingAngle(180+this.flippingPage.getHardAngle()),this.rightPage.draw(this.flippingPage.getDrawingDensity())):this.rightPage.simpleDraw(1))}drawBottomPage(){if(null===this.bottomPage)return;let e=null!=this.flippingPage?this.flippingPage.getDrawingDensity():null;"portrait"===this.orientation&&1===this.direction||(this.bottomPage.getElement().style.zIndex=(this.getSettings().startZIndex+3).toString(10),this.bottomPage.draw(e))}drawFrame(){this.clear(),this.drawLeftPage(),this.drawRightPage(),this.drawBottomPage(),null!=this.flippingPage&&(this.flippingPage.getElement().style.zIndex=(this.getSettings().startZIndex+5).toString(10),this.flippingPage.draw()),null!=this.shadow&&null!==this.flippingPage&&("soft"===this.flippingPage.getDrawingDensity()?(this.drawOuterShadow(),this.drawInnerShadow()):(this.drawHardOuterShadow(),this.drawHardInnerShadow()))}clear(){for(let e of this.app.getPageCollection().getPages())e!==this.leftPage&&e!==this.rightPage&&e!==this.flippingPage&&e!==this.bottomPage&&(e.getElement().style.cssText="display: none"),e.getTemporaryCopy()!==this.flippingPage&&e.hideTemporaryCopy()}
113update(){super.update(),null!==this.rightPage&&this.rightPage.setOrientation(1),null!==this.leftPage&&this.leftPage.setOrientation(0)}}class m{constructor(){this._default={startPage:0,size:"fixed",width:0,height:0,minWidth:0,maxWidth:0,minHeight:0,maxHeight:0,drawShadow:!0,flippingTime:1e3,usePortrait:!0,startZIndex:0,autoSize:!0,maxShadowOpacity:1,showCover:!1,mobileScrollSupport:!0,swipeDistance:30,clickEventForward:!0,useMouseEvents:!0,showPageCorners:!0,disableFlipByClick:!1}}getSettings(e){let t=this._default;if(Object.assign(t,e),"stretch"!==t.size&&"fixed"!==t.size)throw Error('Invalid size type. Available only "fixed" and "stretch" value');if(t.width<=0||t.height<=0)throw Error("Invalid width or height");if(t.flippingTime<=0)throw Error("Invalid flipping time");return"stretch"===t.size?(t.minWidth<=0&&(t.minWidth=100),t.maxWidth<t.minWidth&&(t.maxWidth=2e3),t.minHeight<=0&&(t.minHeight=100),t.maxHeight<t.minHeight&&(t.maxHeight=2e3)):(t.minWidth=t.width,t.maxWidth=t.width,t.minHeight=t.height,t.maxHeight=t.height),t}}!function(e,t){void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}(`.stf__parent { 114 position: relative; 115 display: block; 116 box-sizing: border-box; 117 transform: translateZ(0); 118 119 -ms-touch-action: pan-y; 120 touch-action: pan-y; 121} 122 123.sft__wrapper { 124 position: relative; 125 width: 100%; 126 box-sizing: border-box; 127} 128 129.stf__parent canvas { 130 position: absolute; 131 width: 100%; 132 height: 100%; 133 left: 0; 134 top: 0; 135} 136 137.stf__block { 138 position: absolute; 139 width: 100%; 140 height: 100%; 141 box-sizing: border-box; 142 perspective: 2000px; 143} 144 145.stf__item { 146 display: none; 147 position: absolute; 148 transform-style: preserve-3d; 149} 150 151.stf__outerShadow { 152 position: absolute; 153 left: 0; 154 top: 0; 155} 156 157.stf__innerShadow { 158 position: absolute; 159 left: 0; 160 top: 0; 161} 162 163.stf__hardShadow { 164 position: absolute; 165 left: 0; 166 top: 0; 167} 168 169.stf__hardInnerShadow { 170 position: absolute; 171 left: 0; 172 top: 0; 173}`),e.PageFlip=class extends class{constructor(){this.events=new Map}on(e,t){return this.events.has(e)?this.events.get(e).push(t):this.events.set(e,[t]),this}off(e){this.events.delete(e)}trigger(e,t,n=null){if(this.events.has(e))for(let r of this.events.get(e))r({data:n,object:t})}}{constructor(e,t){super(),this.isUserTouch=!1,this.isUserMove=!1,this.setting=null,this.pages=null,this.setting=(new m).getSettings(t),this.block=e}destroy(){this.ui.destroy(),this.block.remove()}update(){this.render.update(),this.pages.show()}loadFromImages(e){this.ui=new f(this.block,this,this.setting);let t=this.ui.getCanvas();this.render=new d(this,this.setting,t),this.flipController=new c(this.render,this),this.pages=new i(this,this.render,e),this.pages.load(),this.render.start(),this.pages.show(this.setting.startPage),setTimeout(()=>{this.ui.update(),this.trigger("init",this,{page:this.setting.startPage,mode:this.render.getOrientation()})},1)}loadFromHTML(e){this.ui=new p(this.block,this,this.setting,e),this.render=new g(this,this.setting,this.ui.getDistElement()),this.flipController=new c(this.render,this),this.pages=new a(this,this.render,this.ui.getDistElement(),e),this.pages.load(),this.render.start(),this.pages.show(this.setting.startPage),setTimeout(()=>{this.ui.update(),this.trigger("init",this,{page:this.setting.startPage,mode:this.render.getOrientation()})},1)}updateFromImages(e){let t=this.pages.getCurrentPageIndex();this.pages.destroy(),this.pages=new i(this,this.render,e),this.pages.load(),this.pages.show(t),this.trigger("update",this,{page:t,mode:this.render.getOrientation()})}updateFromHtml(e){let t=this.pages.getCurrentPageIndex();this.pages.destroy(),this.pages=new a(this,this.render,this.ui.getDistElement(),e),this.pages.load(),this.ui.updateItems(e),this.render.reload(),this.pages.show(t),this.trigger("update",this,{page:t,mode:this.render.getOrientation()})}clear(){this.pages.destroy(),this.ui.clear()}turnToPrevPage(){this.pages.showPrev()}turnToNextPage(){this.pages.showNext()}turnToPage(e){this.pages.show(e)}flipNext(e="top"){this.flipController.flipNext(e)}flipPrev(e="top"){this.flipController.flipPrev(e)}flip(e,t="top"){this.flipController.flipToPage(e,t)}updateState(e){this.trigger("changeState",this,e)}updatePageIndex(e){this.trigger("flip",this,e)}updateOrientation(e){this.ui.setOrientationStyle(e),this.update(),this.trigger("changeOrientation",this,e)}getPageCount(){return this.pages.getPageCount()}getCurrentPageIndex(){return this.pages.getCurrentPageIndex()}getPage(e){return this.pages.getPage(e)}getRender(){return this.render}getFlipController(){return this.flipController}getOrientation(){return this.render.getOrientation()}getBoundsRect(){return this.render.getRect()}getSettings(){return this.setting}getUI(){return this.ui}getState(){return this.flipController.getState()}getPageCollection(){return this.pages}startUserTouch(e){this.mousePosition=e,this.isUserTouch=!0,this.isUserMove=!1}userMove(e,t){this.isUserTouch||t||!this.setting.showPageCorners?this.isUserTouch&&o.GetDistanceBetweenTwoPoint(this.mousePosition,e)>5&&(this.isUserMove=!0,this.flipController.fold(e)):this.flipController.showCorner(e)}userStop(e,t=!1){this.isUserTouch&&(this.isUserTouch=!1,t||(this.isUserMove?this.flipController.stopMove():this.flipController.flip(e)))}}
173,Object.defineProperty(e,"__esModule",{value:!0})}(iU);let iW=a.forwardRef((e,t)=>{let n=(0,a.useRef)(null),r=(0,a.useRef)([]),i=(0,a.useRef)(),[o,s]=(0,a.useState)([]);(0,a.useImperativeHandle)(t,()=>({pageFlip:()=>i.current}));let l=(0,a.useCallback)(()=>{i.current&&i.current.clear()},[]),c=(0,a.useCallback)(()=>{let e=i.current;e&&(e.off("flip"),e.off("changeOrientation"),e.off("changeState"),e.off("init"),e.off("update"))},[]);return(0,a.useEffect)(()=>{if(r.current=[],e.children){let t=a.Children.map(e.children,e=>a.cloneElement(e,{ref:e=>{e&&r.current.push(e)}}));e.renderOnlyPageLengthChange&&o.length===t.length||(t.length<o.length&&l(),s(t))}},[e.children]),(0,a.useEffect)(()=>{o.length>0&&r.current.length>0&&(c(),n.current&&!i.current&&(i.current=new iU.PageFlip(n.current,e)),i.current.getFlipController()?i.current.updateFromHtml(r.current):i.current.loadFromHTML(r.current),(()=>{let t=i.current;t&&(e.onFlip&&t.on("flip",t=>e.onFlip(t)),e.onChangeOrientation&&t.on("changeOrientation",t=>e.onChangeOrientation(t)),e.onChangeState&&t.on("changeState",t=>e.onChangeState(t)),e.onInit&&t.on("init",t=>e.onInit(t)),e.onUpdate&&t.on("update",t=>e.onUpdate(t)))})())},[o]),a.createElement("div",{ref:n,className:e.className,style:e.style},o)}),iV=a.memo(iW);var iY,iX,iK,iJ=[],iZ="ResizeObserver loop completed with undelivered notifications.";!function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(iK||(iK={}));var iQ,i0=function(e){return Object.freeze(e)},i1=function(e,t){this.inlineSize=e,this.blockSize=t,i0(this)},i2=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,i0(this)}return e.prototype.toJSON=function(){return{x:this.x,y:this.y,top:this.top,right:this.right,bottom:this.bottom,left:this.left,width:this.width,height:this.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),i5=function(e){return e instanceof SVGElement&&"getBBox"in e},i4=function(e){if(i5(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e.offsetWidth,o=e.offsetHeight;return!(i||o||e.getClientRects().length)},i6=function(e){if(e instanceof Element)return!0;var t,n=null==(t=null==e?void 0:e.ownerDocument)?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},i3="undefined"!=typeof window?window:{},i7=new WeakMap,i8=/auto|scroll/,i9=/^tb|vertical/,oe=/msie|trident/i.test(i3.navigator&&i3.navigator.userAgent),ot=function(e){return parseFloat(e||"0")},on=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new i1((n?t:e)||0,(n?e:t)||0)},or=i0({devicePixelContentBoxSize:on(),borderBoxSize:on(),contentBoxSize:on(),contentRect:new i2(0,0,0,0)}),oi=function(e,t){if(void 0===t&&(t=!1),i7.has(e)&&!t)return i7.get(e);if(i4(e))return i7.set(e,or),or;var n=getComputedStyle(e),r=i5(e)&&e.ownerSVGElement&&e.getBBox(),i=!oe&&"border-box"===n.boxSizing,o=i9.test(n.writingMode||""),s=!r&&i8.test(n.overflowY||""),a=!r&&i8.test(n.overflowX||""),l=r?0:ot(n.paddingTop),c=r?0:ot(n.paddingRight),u=r?0:ot(n.paddingBottom),d=r?0:ot(n.paddingLeft),h=r?0:ot(n.borderTopWidth),p=r?0:ot(n.borderRightWidth),f=r?0:ot(n.borderBottomWidth),g=d+c,m=l+u,v=(r?0:ot(n.borderLeftWidth))+p,y=h+f,w=a?e.offsetHeight-y-e.clientHeight:0,b=s?e.offsetWidth-v-e.clientWidth:0,_=r?r.width:ot(n.width)-(i?g+v:0)-b,S=r?r.height:ot(n.height)-(i?m+y:0)-w,x=_+g+b+v,k=S+m+w+y,E=i0({devicePixelContentBoxSize:on(Math.round(_*devicePixelRatio),Math.round(S*devicePixelRatio),o),borderBoxSize:on(x,k,o),contentBoxSize:on(_,S,o),contentRect:new i2(d,l,_,S)});return i7.set(e,E),E},oo=function(e,t,n){var r=oi(e,n),i=r.borderBoxSize,o=r.contentBoxSize,s=r.devicePixelContentBoxSize;switch(t){case iK.DEVICE_PIXEL_CONTENT_BOX:return s;case iK.BORDER_BOX:return i;default:return o}},os=function(e){var t=oi(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=i0([t.borderBoxSize]),this.contentBoxSize=i0([t.contentBoxSize]),this.devicePixelContentBoxSize=i0([t.devicePixelContentBoxSize])},oa=function(e){if(i4(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},ol=function(){var e=1/0,t=[];iJ.forEach(function(n){if(0!==n.activeTargets.length){var r=[];
173n.activeTargets.forEach(function(t){var n=new os(t.target),i=oa(t.target);r.push(n),t.lastReportedSize=oo(t.target,t.observedBox),i<e&&(e=i)}),t.push(function(){n.callback.call(n.observer,r,n.observer)}),n.activeTargets.splice(0,n.activeTargets.length)}});for(var n=0;n<t.length;n++)(0,t[n])();return e},oc=function(e){iJ.forEach(function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach(function(n){n.isActive()&&(oa(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))})})},ou=[],od=0,oh={attributes:!0,characterData:!0,childList:!0,subtree:!0},op=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],of=function(e){return void 0===e&&(e=0),Date.now()+e},og=!1,om=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!og){og=!0;var n,r=of(e);n=function(){var n=!1;try{n=function(){var e,t=0;for(oc(t);iJ.some(function(e){return e.activeTargets.length>0});)t=ol(),oc(t);return iJ.some(function(e){return e.skippedTargets.length>0})&&("function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:iZ}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=iZ),window.dispatchEvent(e)),t>0}()}finally{if(og=!1,e=r-of(),!od)return;n?t.run(1e3):e>0?t.run(e):t.start()}},function(){if(!iQ){var e=0,t=document.createTextNode("");new MutationObserver(function(){return ou.splice(0).forEach(function(e){return e()})}).observe(t,{characterData:!0}),iQ=function(){t.textContent="".concat(e?e--:e++)}}ou.push(function(){requestAnimationFrame(n)}),iQ()}()}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,oh)};document.body?t():i3.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),op.forEach(function(t){return i3.addEventListener(t,e.listener,!0)}))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),op.forEach(function(t){return i3.removeEventListener(t,e.listener,!0)}),this.stopped=!0)},e}()),ov=function(e){!od&&e>0&&om.start(),(od+=e)||om.stop()},oy=function(){function e(e,t){this.target=e,this.observedBox=t||iK.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e,t=oo(this.target,this.observedBox,!0);return i5(e=this.target)||function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(e)||"inline"!==getComputedStyle(e).display||(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),ow=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},ob=new WeakMap,o_=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return -1},oS=function(){function e(){}return e.connect=function(e,t){var n=new ow(e,t);ob.set(e,n)},e.observe=function(e,t,n){var r=ob.get(e),i=0===r.observationTargets.length;0>o_(r.observationTargets,t)&&(i&&iJ.push(r),r.observationTargets.push(new oy(t,n&&n.box)),ov(1),om.schedule())},e.unobserve=function(e,t){var n=ob.get(e),r=o_(n.observationTargets,t),i=1===n.observationTargets.length;r>=0&&(i&&iJ.splice(iJ.indexOf(n),1),n.observationTargets.splice(r,1),ov(-1))},e.disconnect=function(e){var t=this,n=ob.get(e);n.observationTargets.slice().forEach(function(n){return t.unobserve(e,n.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),ox=function(){function e(e){if(0==arguments.length)throw TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");oS.connect(this,e)}return e.prototype.observe=function(e,t){if(0==arguments.length)throw TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!i6(e))throw TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");oS.observe(this,e,t)},e.prototype.unobserve=function(e){if(0==arguments.length)throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!i6(e))throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");oS.unobserve(this,e)},e.prototype.disconnect=function(){oS.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}(),ok={storybook:"storybook-styles_storybook__FfCV7",desktopWrapper:"storybook-styles_desktopWrapper__YjvUs",portrait:"storybook-styles_portrait__6IDmu",rtl:"storybook-styles_rtl__B4bpp",right:"storybook-styles_right__c3qXM",levelCompletedText:"storybook-styles_levelCompletedText__Yh8Jh",historyText:"storybook-styles_historyText__i5xSC",portraitWrapper:"storybook-styles_portraitWrapper__whh0A",left:"storybook-styles_left__ZvPn7",smallHeight:"storybook-styles_smallHeight__KnvRT",hiw:"storybook-styles_hiw__dfmSy",headerWrapper:"storybook-styles_headerWrapper__PrGHH",t
173itle:"storybook-styles_title__eSzU8",subtitle:"storybook-styles_subtitle__90vTb",eventIcon:"storybook-styles_eventIcon__CRye5",book:"storybook-styles_book__qy7Ug",slider:"storybook-styles_slider__w2hCn",flipPage:"storybook-styles_flipPage__-ggJO",bookPageContainer:"storybook-styles_bookPageContainer__Qdb-9",bookPageLocked:"storybook-styles_bookPageLocked__Oyncc",bookPageLockedBorder:"storybook-styles_bookPageLockedBorder__TSXMs",small:"storybook-styles_small__MnVW-",circle:"storybook-styles_circle__i4TT-",topLeft:"storybook-styles_topLeft__4ab8T",topRight:"storybook-styles_topRight__9HDMI",bottomLeft:"storybook-styles_bottomLeft__kR38G",bottomRight:"storybook-styles_bottomRight__r-x5m",bookFlipping:"storybook-styles_bookFlipping__yviOi",smallDesktopHeight:"storybook-styles_smallDesktopHeight__3cCa1",smallMobileHeight:"storybook-styles_smallMobileHeight__gHt4j",bookPageContainerLeft:"storybook-styles_bookPageContainerLeft__c-6e-",bookPageContainerRight:"storybook-styles_bookPageContainerRight__GY4lz",bookPageContainerPlaceholder:"storybook-styles_bookPageContainerPlaceholder__SoSZW",historyTextHidden:"storybook-styles_historyTextHidden__gQ8jK",historyTextAppear:"storybook-styles_historyTextAppear__ji-A2",historyAtTop:"storybook-styles_historyAtTop__dapqJ",historyNoScroll:"storybook-styles_historyNoScroll__r1asz",historyAtBottom:"storybook-styles_historyAtBottom__x2L0P",chapterCard:"storybook-styles_chapterCard__lsA8q",withAnimation:"storybook-styles_withAnimation__pjmiT",chapterImage:"storybook-styles_chapterImage__50MS1",progressBar:"storybook-styles_progressBar__AuBuo",chapterImageMask:"storybook-styles_chapterImageMask__isLnu",chapterImageMilestone:"storybook-styles_chapterImageMilestone__AQ13Q",chapterImageGuide:"storybook-styles_chapterImageGuide__Q7e-P",bookPageContainerCompleted:"storybook-styles_bookPageContainerCompleted__6ZANr",chapterImageFull:"storybook-styles_chapterImageFull__gTEsi",activeFullImage:"storybook-styles_activeFullImage__kKIEW",chapterGlare:"storybook-styles_chapterGlare__uxFKf",chapterGlareRect:"storybook-styles_chapterGlareRect__gZJDJ",chapterGlareRectImmediate:"storybook-styles_chapterGlareRectImmediate__kA92q",progressLabel:"storybook-styles_progressLabel__Jc25A",progressLabelText:"storybook-styles_progressLabelText__5HGUo",progressLabelValue:"storybook-styles_progressLabelValue__jbVpd",progressLabelValueOld:"storybook-styles_progressLabelValueOld__KI83L",progressLabelValueNew:"storybook-styles_progressLabelValueNew__SCg75",fadeOut:"storybook-styles_fadeOut__dnZ-5",fadeIn:"storybook-styles_fadeIn__Jk2wq",progressTrack:"storybook-styles_progressTrack__7Wfoy",progressFill:"storybook-styles_progressFill__qlu4f",progressFillNoTransition:"storybook-styles_progressFillNoTransition__z6CVY",progressFillAnimating:"storybook-styles_progressFillAnimating__ok0Zy",milestone:"storybook-styles_milestone__PlLZL",milestoneValue:"storybook-styles_milestoneValue__GkZiV",milestoneGift:"storybook-styles_milestoneGift__130QU",milestoneReached:"storybook-styles_milestoneReached__gwakH",milestoneGiftAnim:"storybook-styles_milestoneGiftAnim__t-fG9",pieceRevealAnim:"storybook-styles_pieceRevealAnim__9T8Bl",levelsRoad:"storybook-styles_levelsRoad__LVraC",roadNodes:"storybook-styles_roadNodes__cJpBe",roadNode:"storybook-styles_roadNode__dCkbT",roadNodesHasNext:"storybook-styles_roadNodesHasNext__2wORG",roadNodesHasPrev:"storybook-styles_roadNodesHasPrev__mQ9yv",roadNodesBottom:"storybook-styles_roadNodesBottom__QvI--",levelProgress:"storybook-styles_levelProgress__Y47hk",roadNodeCurrent:"storybook-styles_roadNodeCurrent__ZDvJ7",roadNodeCompleted:"storybook-styles_roadNodeCompleted__hzpvr",levelsRoadHiding:"storybook-styles_levelsRoadHiding__f0eMz",chapterCounter:"storybook-styles_chapterCounter__ct1Id",progressBarButton:"storybook-styles_progressBarButton__srZYn",hidden:"storybook-styles_hidden__6xGIL",prevBtn:"storybook-styles_prevBtn__bnM2Y",nextBtn:"storybook-styles_nextBtn__Qo1pT",navArrow:"storybook-styles_navArrow__aCfh7",navArrowLocked:"storybook-styles_navArrowLocked__eFyu8",navArrowBounceLeft:"storybook-styles_navArrowBounceLeft__Lk4h6",navArrowBounceRight:"storybook-styles_navArrowBounceRight__H4reR",navArrowAppearLeft:"storybook-styles_navArrowAppearLeft__4NIvV",navArrowAppearRight:"storybook-styles_navArrowAppearRight__RXoxh",navArrowHideLeft:"storybook-styles_navArrowHideLeft__yB6yA",navArrowHideRight:"storybook-styles_navArrowHideRight__L0I33",playBtnHidden:"storybook-styles_playBtnHidden__GZzan",playBtnDisabled:"storybook-styles_playBtnDisabled__GpAvY",playBtnWra
173pper:"storybook-styles_playBtnWrapper__K0nMm",playBtnContainer:"storybook-styles_playBtnContainer__-88f4",playBtn:"storybook-styles_playBtn__vN-nl",eventReward:"storybook-styles_eventReward__56-5k",rewardImage:"storybook-styles_rewardImage__jviJF"};let oE="undefined"!=typeof window&&window.ResizeObserver?window.ResizeObserver:ox,{awardsLogic:oC}=eL,oP=["M0 0H101C101 35 92.6285 59.6844 75.5 78C58.3715 96.3156 32.98 106.359 0 108V0Z","M0 157H139C119.422 149.179 103.823 138.052 92.2012 123.619C80.5798 109.186 75.0862 93.9794 75.5 78C58.5 96 33.0797 106.339 0 108V157Z","M139 157C155 122.769 173 102.624 195 92.4023C217 82.1802 247.5 81.695 278 88.728V157H139Z","M176 7.64194e-06C186.68 10.5891 194.793 22.5861 199.5 36C204 49.5 206.5 59 200 91C227 81.9852 253.461 84.3656 278 89.4156V0L176 7.64194e-06Z","M101 0C101 34 92.0245 60.5 75.5488 77.9338L75.0221 78.5C74.6056 94.3783 80.0771 109 91.6526 123.5C103.35 137.842 119.294 149.228 139 157C154.607 124.186 173.117 102.641 195.352 92.9845C197.553 92.0285 200.449 91 200.449 91C205.16 67.5341 205.467 51 199.651 35.9454C194.94 22.5535 187.052 10.5717 176.363 0H101Z"],oT=(0,s.createContext)(null),oL=()=>{let e=(0,a.useContext)(oT);if(!e)throw Error("StorybookCardContext missing");return e},oI=({slideIndex:e,cardsLength:t})=>{let{translations:n,isFlipping:r,isMilestoneAnimating:i,moveCard:o,counterOverrideIndex:a}=oL();return(0,s.h)("div",{className:`${ok.bookPageContainer} ${ok.bookPageContainerLeft}`},(0,s.h)("div",{className:ok.bookPageLockedBorder},(0,s.h)("div",{className:`${ok.circle} ${ok.topLeft}`}),(0,s.h)("div",{className:`${ok.circle} ${ok.topRight}`}),(0,s.h)("div",{className:`${ok.circle} ${ok.bottomLeft}`}),(0,s.h)("div",{className:`${ok.circle} ${ok.bottomRight}`})),(0,s.h)("div",{className:ok.bookPageLocked},(0,s.h)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"60",height:"60",viewBox:"0 0 60 60",fill:"none"},(0,s.h)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M30 5C38.8366 5 46 11.8879 46 20.3846V28.0769C48.208 28.0769 50 29.8 50 31.9231V51.1538C50 53.2769 48.208 55 46 55H14C11.792 55 10 53.2769 10 51.1538V31.9231C10 29.8 11.792 28.0769
17314 28.0769V20.3846C14 11.8879 21.1634 5 30 5ZM30 12.6923C25.5817 12.6923 22 16.1363 22 20.3846V28.0769H38V20.3846C38 16.1363 34.4183 12.6923 30 12.6923Z",fill:"#C7A77D"})),(0,s.h)("span",null,n.event_screen_locked_body||"Complete previous chapters to unlock")),(0,s.h)("div",{className:ok.chapterCounter},((null==a?void 0:a.adjacentIdx)===e?a.displayIdx:e)+1,"/",t,(0,s.h)("button",{className:`${ok.progressBarButton} ${0===e?ok.hidden:""} ${ok.prevBtn}`,disabled:r||i,onClick:o(iY.left)},(0,s.h)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},(0,s.h)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.56499 0.249967C6.21955 -0.0833223 5.66812 -0.0833223 5.32268 0.249967L5.30585 0.266632C5.22857 0.345192 5.16768 0.438058 5.12666 0.539925C5.08564 0.641792 5.06529 0.750663 5.06678 0.860318C5.06827 0.969972 5.09156 1.07826 5.13533 1.179C5.17911 1.27974 5.2425 1.37095 5.32188 1.44743L9.22593 5.20645L0.801488 5.20645C0.58892 5.20645 0.385057 5.29006 0.23475 5.43888C0.0844412 5.5877 0 5.78954 0 6C0 6.21046 0.0844412 6.4123 0.23475 6.56112C0.385057 6.70994 0.58892 6.79355 0.801488 6.79355L9.22593 6.79355L5.32268 10.5526L5.30585 10.5692C5.22857 10.6478 5.16768 10.7407 5.12666 10.8425C5.08564 10.9444 5.06529 11.0533 5.06678 11.1629C5.06827 11.2726 5.09156 11.3809 5.13533 11.4816C5.17911 11.5823 5.2425 11.6736 5.32188 11.75C5.66813 12.0833 6.21955 12.0833 6.56499 11.75L11.6264 6.87528L11.6504 6.85147C11.7634 6.73657 11.8525 6.60074 11.9124 6.45175C11.9724 6.30276 12.0021 6.14353 11.9999 5.98316C11.9976 5.82279 11.9635 5.66444 11.8994 5.51714C11.8353 5.36984 11.7426 5.23649 11.6264 5.12472L6.56499 0.249967Z",fill:"#B38067"}))),(0,s.h)("button",{className:`${ok.progressBarButton} ${e===t-1?ok.hidden:""} ${ok.nextBtn}`,disabled:r||i,onClick:o(iY.right)},(0,s.h)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},(0,s.h)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.56499 0.249967C6.21955 -0.0833223 5.66812 -0.0833223 5.32268 0.249967L5.30585 0.266632C5.22857 0.345192 5.16768 0.438058 5.12666 0.539925C5.08564 0.641792 5.06529 0.750663 5.06678 0.860318C5.06827 0.969972 5.09156 1.07826 5.13533 1.179C5.17911 1.27974 5.2425 1.37095 5.32188 1.44743L9.22593 5.20645L0.801488 5.20645C0.58892 5.20645 0.385057 5.29006 0.23475 5.43888C0.0844412 5.5877 0 5.78954 0 6C0 6.21046 0.0844412 6.4123 0.23475 6.56112C0.385057 6.70994 0.58892 6.79355 0.801488 6.79355L9.22593 6.79355L5.32268 10.5526L5.30585 10.5692C5.22857 10.6478 5.16768 10.7407 5.12666 10.8425C5.08564 10.9444 5.06529 11.0533 5.06678 11.1629C5.06827 11.2726 5.09156 11.3809 5.13533 11.4816C5.17911 11.5823 5.2425 11.6736 5.32188 11.75C5.66813 12.0833 6.21955 12.0833 6.56499 11.75L11.6264 6.87528L11.6504 6.85147C11.7634 6.73657 11.8525 6.60074 11.9124 6.45175C11.9724 6.30276 12.0021 6.14353 11.9999 5.98316C11.9976 5.82279 11.9635 5.66444 11.8994 5.51714C11.8353 5.36984 11.7426 5.23649 11.6264 5.12472L6.56499 0.249967Z",fill:"#B38067"})))))},oO=[[50,54],[70,118],[209,120],[227,46],[140,79]],oA=({slideCard:e,slideIndex:t,cardsLength:n})=>{var r,i,o,a;let{translations:l,color:c,isFlipping:u,isMilestoneAnimating:d,moveCard:h,progressAnim:p,milestoneAnim:f,pieceRevealAnim:g,glareAnim:m,chapterCompleteAnim:v,historyTextAnim:y,historyScrollClasses:w,handleHistoryScroll:b,currentLevelId:_,counterOverrideIndex:S}=oL(),x=e.levels,k=x.length,E=x.filter(e=>e.completed).length,C=x.reduce((e,t,n)=>(t.piece&&e.push(n+1),e),[]),P=!!p&&p.cardIndex===t,T=P&&p&&!p.started?p.fromCompleted:E,L=k?T/k:0,I=null!=_?_:null==(r=x[0])?void 0:r.id,O=x.findIndex(e=>e.id===I),A=6*Math.floor((e.completed?x.length-1:Math.max(0,O))/6),M=x.slice(A,A+6),N=M.slice(0,3),D=M.slice(3,6),R=A>0,B=A+6<x.length,F=(null==p?void 0:p.cardIndex)===t||(null==f?void 0:f.cardIndex)===t||(null==g?void 0:g.cardIndex)===t||(null==m?void 0:m.cardIndex)===t||(null==v?void 0:v.cardIndex)===t||y===t,$=e.completed&&!F;return(0,s.h)("div",{className:`${ok.bookPageContainer} ${ok.bookPageContainerLeft} ${!e.completed||(null==v?void 0:v.cardIndex)===t&&"done"!==v.phase?"":ok.bookPageContainerCompleted}`},(0,s.h)("div",{className:`${ok.chapterCard} ${(null==v?void 0:v.cardIndex)===t&&"hiding"===v.phase?ok.withAnimation:""}`},(0,s.h)("div",{className:ok.chapterImage},!$&&(0,s.h)(s.Fragment,null,C.map((e,t)=>(0,s.h)("span",{key:t,className:`${ok.chapterImageMilestone}`},e)),(0,s.h)("svg",{className:ok.chapterImageMask,viewBox:"0 0 278 157",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg"},(0,s.h)("defs",null,(0,s.h)("clipPath",{id:`chapter5_${t}`},(0,s.h)("path",{d:oP[4]})),(0,s.h)("clipPath",{id:`chapter4_${t}`},(0,s.h)("path",{d:oP[3]})),(0,s.h)("clipPath",{id:`chapter3_${t}`},(0,s.h)("path",{d:oP[2]})),(0,s.h)("clipPath",{id:`chapter2_${t}`},(0,s.h)("path",{d:oP[1]})),(0,s.h)("clipPath",{id:`chapter1_${t}`},(0,s.h)("path",{d:oP[0]})),(0,s.h)("clipPath",{id:`glareClip_${t}`},C.map((e,t)=>E>=e?(0,s.h)("path",{key:t,d:oP[t]}):null))),C.map((n,r)=>{if(E<n)return null;let i=!!g&&g.cardIndex===t&&g.fromCompleted<n&&E>=n,o=oO[r];return(0,s.h)("image",{key:r,className:i?ok.pieceRevealAnim:"",href:e.cardImage,width:"278",height:"157",preserveAspectRatio:"xMidYMid slice",clipPath:`url(#chapter${r+1}_${t})`,style:i&&o?{transformOrigin:`${o[0]}px ${o[1]}px`}:void 0})})),(0,s.h)("svg",{className:ok.chapterImageGuide,width:"278",height:"157",viewBox:"0 0 278 157",fill:"none",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg"},(0,s.h)("g",{clipPath:"url(#clip0_5613_68193)"},(0,s.h)("path",{d:"M139 157C119.422 149.179 103.823 138.052 92.2012 123.619C80.5798 109.186 75.0862 93.9794 75.5 78",stroke:"white",strokeWidth:"2.5",strokeLinecap:"round",strokeDasharray:"2.5 6"}),(0,s.h)("path",{d:"M101 0C101 35 92.6285 59.6844 75.5 78C58.3715 96.3156 32.98 106.359 0 108",stroke:"white",strokeWidth:"2.5",strokeLinecap:"round",strokeDasharray:"2.5 6"}),(0,s.h)("path",{d:"M176 0C186.674 10.589 194.782 22.586 199.486 36C204.191 49.4139 206.482 58 199.986 90",stroke:"white",strokeWidth:"2.5",strokeLinecap:"round",strokeDasharray:"2.5 6"}),(0,s.h)("path",{d:"M139 157C155 122.769 173 102.624 195 92.4023C217 82.1802 247.5 81.695 278 88.728",stroke:"white",strokeWidth:"2.5",strokeLinecap:"round",strokeDasharray:"2.5 6"})),(0,s.h)("defs",null,(0,s.h)("clipPath",{id:"clip0_5613_68193"},(0,s.h)("rect",{width:"278",height:"157",fill:"white"})))),(null==m?void 0:m.cardIndex)===t&&(0,s.h)("svg",{className:ok.chapterGlare,viewBox:"0 0 278 157",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg"},(0,s.h)("g",{clipPath:`url(#glareClip_${t})`},(0,s.h)("rect",{className:`${ok.chapterGlareRect} ${m.immediate?ok.chapterGlareRectImmediate:""}
173`,x:"0",y:"-78.5",width:"30",height:"314",fill:"white",opacity:"0.7"})))),(0,s.h)("svg",{className:`${ok.chapterImageFull} ${$?ok.activeFullImage:""}`,viewBox:"0 0 278 157",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg"},(0,s.h)("image",{href:e.cardImage,width:"278",height:"157",preserveAspectRatio:"xMidYMid slice"}))),(0,s.h)("div",{className:ok.progressBar},(0,s.h)("div",{className:ok.progressLabel},(0,s.h)("div",{className:ok.progressLabelText},l.levels||"Levels"),(0,s.h)("div",{className:ok.progressLabelValue},P&&p?(0,s.h)(s.Fragment,null,(0,s.h)("span",{className:`${ok.progressLabelValueOld} ${p.started?ok.fadeOut:""}`},p.fromCompleted,"/",k),(0,s.h)("span",{className:`${ok.progressLabelValueNew} ${p.started?ok.fadeIn:""}`},E,"/",k)):`${E}/${k}`)),(0,s.h)("div",{className:ok.progressTrack},(0,s.h)("div",{className:`${ok.progressFill} ${P&&p?p.started?ok.progressFillAnimating:ok.progressFillNoTransition:""}`,style:{width:100*L+"%"}}),C.map((e,n)=>{let r=e/k*100,i=E>=e,o=!!f&&f.cardIndex===t&&f.fromCompleted<e&&E>=e;return(0,s.h)("div",{key:n,className:`${ok.milestone} ${i&&!o?ok.milestoneReached:""}`,style:{left:`${r}%`}},(0,s.h)("span",{className:ok.milestoneValue},e),(0,s.h)("span",{className:`${ok.milestoneGift} ${o?ok.milestoneGiftAnim:""}`,"aria-hidden":!0}))})))),e.completed&&((null==v?void 0:v.cardIndex)!==t||"done"===v.phase)&&(0,s.h)("div",{className:`${ok.historyText} ${(null==v?void 0:v.cardIndex)===t&&"done"===v.phase&&y!==t?ok.historyTextHidden:""} ${y===t?ok.historyTextAppear:""} ${"top"===(null!=(i=w[t])?i:"top")?ok.historyAtTop:""} ${"bottom"===(null!=(o=w[t])?o:"top")?ok.historyAtBottom:""} ${""===(null!=(a=w[t])?a:"top")?ok.historyNoScroll:""}`},(0,s.h)("div",{className:ok.levelCompletedText,onScroll:b(t)},iq.getStoryText(t+1).split(` 174 175`).map((e,t,n)=>(0,s.h)(s.Fragment,null,e,t<n.length-1&&(0,s.h)(s.Fragment,null,(0,s.h)("br",null),(0,s.h)("br",null)))))),(!e.completed||(null==v?void 0:v.cardIndex)===t&&"done"!==v.phase)&&(0,s.h)("div",{className:`${ok.levelsRoad} ${(null==v?void 0:v.cardIndex)===t&&"hiding"===v.phase?ok.levelsRoadHiding:""}`},(0,s.h)("div",{className:`${ok.roadNodes} ${ok.roadNodesTop} ${R?ok.roadNodesHasPrev:""}`},N.map((e,t)=>{let n=e.id===I,r=iq.getLevelProgress(e.id,c).p;return(0,s.h)("div",{key:e.id,className:`${ok.roadNode} ${e.completed?ok.roadNodeCompleted:""} ${n?ok.roadNodeCurrent:""}`},(0,s.h)("div",null,e.completed?(0,s.h)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},(0,s.h)("path",{d:"M2 8L6.27273 12L14 4",stroke:"#865243",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})):A+t+1,!e.completed&&!!r&&(0,s.h)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 36 36",className:ok.levelProgress},(0,s.h)("circle",{cx:"16",cy:"16",r:"15.9155",style:"stroke-dashoffset: "+(100-r)}))))})),(0,s.h)("div",{className:`${ok.roadNodes} ${ok.roadNodesBottom} ${B?ok.roadNodesHasNext:""}`},D.map((e,t)=>{let n=e.id===I,r=iq.getLevelProgress(e.id,c).p;return(0,s.h)("div",{key:e.id,className:`${ok.roadNode} ${e.completed?ok.roadNodeCompleted:""} ${n?ok.roadNodeCurrent:""}`},(0,s.h)("div",null,e.completed?(0,s.h)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},(0,s.h)("path",{d:"M2 8L6.27273 12L14 4",stroke:"#865243",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})):A+3+t+1,!e.completed&&!!r&&(0,s.h)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 36 36",className:ok.levelProgress},(0,s.h)("circle",{cx:"16",cy:"16",r:"15.9155",style:"stroke-dashoffset: "+(100-r)}))))}))),(0,s.h)("div",{className:ok.chapterCounter},((null==S?void 0:S.adjacentIdx)===t?S.displayIdx:t)+1,"/",n,(0,s.h)("button",{className:`${ok.progressBarButton} ${0===t?ok.hidden:""} ${ok.prevBtn}`,disabled:d||u,onClick:h(iY.left)},(0,s.h)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},(0,s.h)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.56499 0.249967C6.21955 -0.0833223 5.66812 -0.0833223 5.32268 0.249967L5.30585 0.266632C5.22857 0.345192 5.16768 0.438058 5.12666 0.539925C5.08564 0.641792 5.06529 0.750663 5.06678 0.860318C5.06827 0.969972 5.09156 1.07826 5.13533 1.179C5.17911 1.27974 5.2425 1.37095 5.32188 1.44743L9.22593 5.20645L0.801488 5.20645C0.58892 5.20645 0.385057 5.29006 0.23475 5.43888C0.0844412 5.5877 0 5.78954 0 6C0 6.21046 0.0844412 6.4123 0.23475 6.56112C0.3850
17557 6.70994 0.58892 6.79355 0.801488 6.79355L9.22593 6.79355L5.32268 10.5526L5.30585 10.5692C5.22857 10.6478 5.16768 10.7407 5.12666 10.8425C5.08564 10.9444 5.06529 11.0533 5.06678 11.1629C5.06827 11.2726 5.09156 11.3809 5.13533 11.4816C5.17911 11.5823 5.2425 11.6736 5.32188 11.75C5.66813 12.0833 6.21955 12.0833 6.56499 11.75L11.6264 6.87528L11.6504 6.85147C11.7634 6.73657 11.8525 6.60074 11.9124 6.45175C11.9724 6.30276 12.0021 6.14353 11.9999 5.98316C11.9976 5.82279 11.9635 5.66444 11.8994 5.51714C11.8353 5.36984 11.7426 5.23649 11.6264 5.12472L6.56499 0.249967Z",fill:"#B38067"}))),(0,s.h)("button",{className:`${ok.progressBarButton} ${t+1===n?ok.hidden:""} ${ok.nextBtn}`,disabled:d||u,onClick:h(iY.right)},(0,s.h)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},(0,s.h)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.56499 0.249967C6.21955 -0.0833223 5.66812 -0.0833223 5.32268 0.249967L5.30585 0.266632C5.22857 0.345192 5.16768 0.438058 5.12666 0.539925C5.08564 0.641792 5.06529 0.750663 5.06678 0.860318C5.06827 0.969972 5.09156 1.07826 5.13533 1.179C5.17911 1.27974 5.2425 1.37095 5.32188 1.44743L9.22593 5.20645L0.801488 5.20645C0.58892 5.20645 0.385057 5.29006 0.23475 5.43888C0.0844412 5.5877 0 5.78954 0 6C0 6.21046 0.0844412 6.4123 0.23475 6.56112C0.385057 6.70994 0.58892 6.79355 0.801488 6.79355L9.22593 6.79355L5.32268 10.5526L5.30585 10.5692C5.22857 10.6478 5.16768 10.7407 5.12666 10.8425C5.08564 10.9444 5.06529 11.0533 5.06678 11.1629C5.06827 11.2726 5.09156 11.3809 5.13533 11.4816C5.17911 11.5823 5.2425 11.6736 5.32188 11.75C5.66813 12.0833 6.21955 12.0833 6.56499 11.75L11.6264 6.87528L11.6504 6.85147C11.7634 6.73657 11.8525 6.60074 11.9124 6.45175C11.9724 6.30276 12.0021 6.14353 11.9999 5.98316C11.9976 5.82279 11.9635 5.66444 11.8994 5.51714C11.8353 5.36984 11.7426 5.23649 11.6264 5.12472L6.56499 0.249967Z",fill:"#B38067"})))))},oM=(0,a.forwardRef)(({slideIndex:e,cardsLength:t},n)=>{let{cards:r}=oL(),i=r[e];return(0,s.h)("div",{ref:n,className:ok.flipPage},(null==i?void 0:i.isOpen)?(0,s.h)(oA,{slideCard:i,slideIndex:e,cardsLength:t}):(0,s.h)(oI,{slideIndex:e,cardsLength:t}))}),oN=(0,a.memo)(oM),oD={components:{Storybook:({translations:e,gameUrl:t,homePageUrl:n,debug:r=!1,newBreakpoints:i,color:o=n6.blue,rtl:l,fullModal:c})=>{var u,d,h,p,f,g,m,v,y,w;let[b,_]=(0,a.useState)(!0),[S,x]=(0,a.useState)(null),[k,E]=(0,a.useState)(!1),[C,P]=(0,a.useState)(!1),[T,L]=(0,a.useState)(!1),[I,O]=(0,a.useState)([]),A=(0,a.useRef)(null),M=(0,a.useRef)(null),[N,D]=(0,a.useState)(!1),[R,B]=(0,a.useState)(!1),[F,$]=(0,a.useState)(!1),[j,H]=(0,a.useState)(!1),[z,G]=(0,a.useState)(!1),[q,U]=(0,a.useState)(!!c),W=iq.getActiveCardIndex(),V=null!=(u=null!=W?W:iq.getSavedChapter())?u:0,[Y,X]=(0,a.useState)(V),[K,J]=(0,a.useState)({}),Z=(0,a.useRef)(null),Q=(0,a.useRef)(!1),[ee,et]=(0,a.useState)(!1),en=(0,a.useRef)(null),ei=(0,a.useRef)(!1),[eo,es]=(0,a.useState)(null),ea=()=>{Q.current=!1,et(!1),es(null),en.current&&(clearTimeout(en.current),en.current=null)},el=()=>{Q.current=!0,et(!0),en.current&&clearTimeout(en.current),en.current=window.setTimeout(ea,900)};(0,a.useEffect)(()=>()=>{en.current&&clearTimeout(en.current)},[]);let eu=(e,t=!1)=>{var n;let r=null==(n=Z.current)?void 0:n.pageFlip();if(!r)return;let i=2*e;el(),t?r.turnToPage(i):r.flip(i)},ed=(0,a.useRef)(null),eh=(0,a.useRef)(null),[ep,ef]=(0,a.useState)(null),[eg,em]=(0,a.useState)(null),[ev,ey]=(0,a.useState)(null),[ew,eb]=(0,a.useState)(null),[e_,eS]=(0,a.useState)(null),[ex,ek]=(0,a.useState)(null),[eE,eC]=(0,a.useState)(null),[eP,eT]=(0,a.useState)(null),[eL,eO]=(0,a.useState)(null),eA=(0,a.useRef)(null),eM=(0,a.useRef)(!1),eN=(0,a.useCallback)(e=>t=>{let n,r=t.target,i=0===r.scrollTop,o=r.scrollHeight-r.scrollTop<=r.clientHeight+1;n=i&&o?"":i?"top":o?"bottom":"middle",J(t=>t[e]===n?t:Object.assign(Object.assign({},t),{[e]:n}))},[]);if((0,a.useEffect)(()=>{let e=()=>{var t,n;let r=iq.getData();if(!r)return void(M.current=window.setTimeout(e,1e3));x(r);let i=null!=(n=null!=(t=iq.getActiveCardIndex())?t:iq.getSavedChapter())?n:0,o=r.cards[i];if(null==o?void 0:o.cardImage){let e=new Image;e.onload=()=>_(!1),e.onerror=()=>_(!1),e.src=o.cardImage}else _(!1)};return e(),()=>
175{M.current&&clearTimeout(M.current)}},[]),(0,a.useEffect)(()=>{b||(iq.config.visited||(iq.sendOnboardingEvent(2),iq.setVisited()),iq.sendScreenEvent("ge_screen"),iq.config.onboarding&&iq.config.onboardingStep<6&&iq.sendOnboardingEvent(6),iq.config.hiw||(E(!0),L(!0),iq.sendScreenEvent("g_event_tutorial"),iq.sendOnboardingEvent(3.1),iq.showHiw()))},[b]),(0,a.useEffect)(()=>{var e,t,n;if(!S)return;let r=iq.getActiveCardIndex(),i=S.cards.length>0&&S.cards.every(e=>e.completed),o=null!==r?r:i?S.cards.length-1:null;if(null===o)return;let s=iq.getLastSeenProgress(),a=null==(e=S.cards[o])?void 0:e.levels,l=a?a.filter(e=>e.completed).length:0,c=null!=s&&s.chapterIndex<o&&!!(null==(t=S.cards[s.chapterIndex])?void 0:t.completed)&&0===l,u=c?s.chapterIndex:o,d=null==(n=S.cards[u])?void 0:n.levels;if(!d)return;let h=d.filter(e=>e.completed).length;if(!s)return void iq.saveLastSeenProgress(o,h);let p=s.chapterIndex===u?s.completedLevels:0;if(p===h)return void iq.saveLastSeenProgress(o,h);c&&(X(u),eu(u,!0)),em({cardIndex:u,fromCompleted:p,started:!1});let f=[];if(f.push(setTimeout(()=>{em(e=>e?Object.assign(Object.assign({},e),{started:!0}):null)},500)),f.push(setTimeout(()=>{var e;em(null);let t=null==(e=S.cards[o])?void 0:e.levels,n=t?t.filter(e=>e.completed).length:0;iq.saveLastSeenProgress(o,n)},800)),d.reduce((e,t,n)=>(t.piece&&e.push(n+1),e),[]).some(e=>p<e&&h>=e)){ey({cardIndex:u,fromCompleted:p}),f.push(setTimeout(()=>ey(null),1300)),eb({cardIndex:u,fromCompleted:p});if(f.push(setTimeout(()=>eb(null),1900)),S.cards[u].completed){let e=2200;eM.current=!0,ek({cardIndex:u,phase:"pending"}),f.push(setTimeout(()=>ek({cardIndex:u,phase:"hiding"}),e)),f.push(setTimeout(()=>ek({cardIndex:u,phase:"done"}),e+500));let t=e+500+100;f.push(setTimeout(()=>eS({cardIndex:u,immediate:!0}),t)),f.push(setTimeout(()=>eS(null),t+1e3));let n=t+200;f.push(setTimeout(()=>eC(u),n)),f.push(setTimeout(()=>{eM.current=!1,eC(null),ek(null)},n+400))}else eS({cardIndex:u,immediate:!1}),f.push(setTimeout(()=>eS(null),2900))}else f.push(setTimeout(()=>eS({cardIndex:u,immediate:!0}),1300)),f.push(setTimeout(()=>eS(null),2300));return()=>{f.forEach(clearTimeout)}},[S]),(0,a.useEffect)(()=>{if(S&&S.cards.length>0&&S.cards.every(e=>e.completed)&&!iq.config.eventCompletedPopup&&!eM.current){let e=S.cards.length-1;X(e),eu(e,!0),iq.saveChapter(e),ej(iq.config.currentEvent.awards)}},[S,ex]),(0,a.useEffect)(()=>{iq.saveChapter(Y)},[Y]),(0,a.useEffect)(()=>{if(!A.current)return;let e=A.current.closest(".site-content-wrapper");e&&((k||C)&&q?eI(e).add("storybook-hiw"):eI(e).remove("storybook-hiw"))},[k,C,q]),(0,a.useEffect)(()=>{let e=()=>{if(!A.current)return;let e=A.current.offsetWidth,t=A.current.offsetHeight,n=i?window.innerWidth<=929:window.matchMedia("(orientation: portrait)").matches;D(n||window.innerWidth<768),$((n||window.innerWidth<768)&&t<660),H(!(n||window.innerWidth<768)&&t<550),G((n||window.innerWidth<768)&&t<585),B((n||window.innerWidth<768)&&e<575),"boolean"!=typeof c&&U(t<480||e<664||window.innerWidth<768)};return setTimeout(e,0),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[i]),(0,a.useEffect)(()=>{"boolean"==typeof c&&U(c)},[c]),(0,a.useEffect)(()=>{eu(Y,!0)},[N,R,F]),(0,a.useEffect)(()=>{if(!S)return;let e=null,t=()=>{let e=ed.current,t=eh.current;if(!e||!t)return;let n=Math.max(1,Math.min(Math.floor(.9*e.clientWidth),370)-6),r=Math.max(1,Math.min(t.clientHeight-12,445));ef(e=>e&&e.w===n&&e.h===r?e:{w:n,h:r})},n=()=>{e&&clearTimeout(e),e=setTimeout(t,80)};t();let r=new oE(n);return ed.current&&r.observe(ed.current),eh.current&&r.observe(eh.current),window.addEventListener("resize",n),()=>{e&&clearTimeout(e),r.disconnect(),window.removeEventListener("resize",n)}},[S,N,R,F,j,z]),!S||0===S.cards.length)return(0,s.h)(ec,{text:null!=(d=e.loading)?d:"Loading Event",show:b});let eD=S.cards,eR=!!(ev||ew||ex||null!==eE),eB=()=>{iq.config.onboarding||(iq.sendOnboardingEvent(4),iq.setOnboarding()),iq.checkExpiring()?window.location.href=n:(iq.sendScreenAction("ge_screen","play"),window.location.href=t)},eF=(e,t)=>{let n=0===e,r=e===eD.length-1,i=0===t,o=t===eD.length-1,s=null,a=null;n&&!i?s="appear":!n&&i&&(s="hide"),r&&!o?a="appear":!r&&o&&(a="hide"),t<e&&!s&&(s="bounce"),t>e&&!a&&(a="bounce"),(s||a)&&(eA.current&&clearTimeout(eA.current),eT(s),eO(a),eA.current=window.setTimeout(()=>{eT(null),eO(null)},400))},e$=e=>()=>{if(Q.current)return;let t=e===iY.right?Y+1:Y-1;t<0||t>=eD.length||(iq.sendScreenAction("ge_screen",e),eF(Y,t),X(t),e===iY.right?(()=>{var e;let t=null==(e=Z.current)?void 0:e.pageFlip();t&&(el(),t.flipNext("bottom"))})():(()=>{var e;let t=null==(e=Z.current)?void 0:e.pageFlip();t&&(el(),t.flipPrev("bottom"))})())},ej=async e=>{new Promise(e=>{let t=()=>{iq.setupFinished?e():setTimeout(t,100)};t()}).then(async()=>{await (async e=>
175{O((await oC.getAwards()).filter(({award_id:t})=>e.includes(t)))})(e),setTimeout(()=>{iq.onShowEventFinishPopup(),P(!0),iq.sendScreenEvent("g_event_reward")},1e3)})},eH=()=>{P(!1)},ez=null==(h=iq.config.currentEvent)?void 0:h.currentLevel,eG=(0,a.useMemo)(()=>Array.from({length:S.cards.length},(e,t)=>{var n;return[(0,s.h)(oN,{key:t,slideIndex:t,cardsLength:S.cards.length}),(n=`p-${t}`,(0,s.h)("div",{key:n,className:ok.flipPage},(0,s.h)("div",{className:`${ok.bookPageContainer} ${ok.bookPageContainerRight} ${ok.bookPageContainerPlaceholder}`},(0,s.h)("div",{className:ok.bookPageLockedBorder},(0,s.h)("div",{className:`${ok.circle} ${ok.topLeft}`}),(0,s.h)("div",{className:`${ok.circle} ${ok.topRight}`}),(0,s.h)("div",{className:`${ok.circle} ${ok.bottomLeft}`}),(0,s.h)("div",{className:`${ok.circle} ${ok.bottomRight}`})),(0,s.h)("div",{className:ok.bookPageLocked},(0,s.h)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"96",height:"100",viewBox:"0 0 96 100",fill:"none"},(0,s.h)("g",{clipPath:"url(#clip0_5613_68221)"},(0,s.h)("path",{d:"M93.7748 53.2146C93.9591 52.124 93.9384 50.9943 93.9315 49.8807C93.9246 48.7212 93.7195 47.5847 93.2724 46.5033C92.747 45.2313 92.2469 43.9478 91.6939 42.6873C91.2629 41.7023 90.7467 40.7471 89.9517 40.0032C89.3134 39.4062 88.6013 38.8873 87.9123 38.3454C86.8522 37.512 85.7991 36.6693 84.716 35.868C84.1791 35.4708 83.5937 35.1264 83.0038 34.8073C82.2825 34.4169 81.5105 34.1138 80.7984 33.7075C79.3236 32.8648 77.699 32.6949 76.0582 32.5571C74.8553 32.4561 73.6408 32.5778 72.4494 32.1898C71.4747 31.8729 70.7833 31.315 70.2602 30.4631C70.6497 30.1463 71.0645 29.981 71.5622 29.9787C72.514 29.9718 73.468 29.8868 74.4197 29.9213C75.0212 29.9419 75.6181 30.1187 76.2149 30.2267C77.139 30.3943 78.0792 30.5022 78.9779 30.7502C80.5611 31.1887 82.0936 31.8385 83.6928 32.1714C85.1515 32.4745 86.1816 33.4136 87.3615 34.1391C87.8938 34.4674 88.3893 34.8784 88.9562 35.1264C89.712 35.457 90.4241 35.8359 91.0279 36.3869C91.6063 36.9127 92.2008 37.365 93.0443 37.2571C93.4498 37.2043 93.8623 37.1699 94.2541 37.062C95.1805 36.8071 95.8833 36.3594 95.9824 35.2527C96.0631 34.3618 95.8557 33.5307 95.5722 32.7362C95.0998 31.4114 94.526 30.1256 93.8623 28.8743C93.3807 27.9696 92.9728 27.0352 92.3161 26.2315C91.5694 25.3177 90.7306 24.544 89.5715 24.1881C89.1221 24.0503 88.682 23.8483 88.2234 23.7702C87.3269 23.6187 86.4213 23.513 85.518 23.4281C84.746 23.3569 83.9694 23.3592 83.1951 23.2972C82.1535 23.2146 81.1142 23.0584 80.0725 23.0194C78.9895 22.9804 77.9041 23.0469 76.8187 23.063C76.208 23.0722 75.5927 23.0332 74.9866 23.0883C73.8966 23.187 72.8274 23.0814 71.765 22.8678C71.6106 22.8357 71.4355 22.6314 71.3848 22.4706C71.3502 22.3604 71.4747 22.1285 71.5922 22.0551C71.9056 21.8599 72.2374 21.6418 72.59 21.5729C73.3989 21.4145 74.2193 21.302 75.0396 21.2446C75.7218 21.1963 76.4131 21.2698 77.0975 21.2537C78.2359 21.2262 79.3536 21.3387 80.4689 21.566C81.6949 21.8186 82.9324 21.9081 84.1906 21.7635C85.1055 21.6578 85.73 21.178 86.2415 20.48C86.4766 20.1608 86.4351 19.6718 86.1448 19.3687C84.693 17.851 82.6743 16.6777 80.9298 15.5274C78.0723 13.6447 74.6272 11.6747 71.1751 11.2568C69.3984 11.0432 67.5917 11.3188 65.8864 11.8216C64.8863 12.1155 63.8838 12.4255 62.9344 12.8617C61.9527 13.314 61.3674 14.0005 60.517 14.5929C59.4939 15.3047 58.9293 16.4091 58.1319 17.3114C57.9476 17.5204 57.0512 19.2539 56.694 19.844C55.392 21.9862 50.8245 30.4723 49.1907 30.1601C47.9624 29.9259 48.1214 26.6839 48.0684 25.4073C47.9901 23.5084 48.2505 21.6877 48.9326 19.9496C49.7023 17.9888 50.7347 16.1473 51.9053 14.3817C53.4101 12.1155 54.567 9.273 52.569 6.86675C49.3197 2.96349 43.6946 0.511317 38.6663 0.0452208C37.5049 -0.0626931 36.0784 0.0360366 34.9239 0.199055C33.8523 0.348298 32.8176 0.68352 31.7737 0.954452C29.997 1.41596 26.19 1.90501 25.3697 3.85435C25.1761 4.31585 24.9088 4.89675 24.9295 5.39729C24.994 6.96548 26.7039 7.08488 28.7411 7.4752C30.285 7.77139 32.0641 8.22601 32.6817 8.43954C33.9215 8.87119 34.652 9.06636 34.5828 10.1547C34.5183 11.1856 32.9651 10.6116 31.8498 10.2947C29.2734 9.5623 27.0104 8.04692 24.3972 7.35811C20.7677 6.40066 17.1935 6.85757 13.9857 8.82298C12.4095 9.78731 10.6235 10.9262 9.29616 12.205C7.64157 13.7985 6.2036 15.2174 5.05138 17.7752C4.71723 18.5169 4.52596 19.3136 4.48218 20.1356C4.46144 20.5328 4.59971 20.8726 4.94537 21.0701C5.6874 21.4948 6.48244 21.5499 7.27977 21.256C9.20398 20.5466 11.1005 19.7957 13.0501 19.1529C15.797 18.2482 18.8343 18.0347 21.7217 18.161C22.4453 18.1931 28.2387 18.1449 27.8746 19.5363C27.7248 20.108 26.3836 20.4409 25.9204 20.5718C24.0746 21.1022 22.125 20.9966 20.2307 20.8657C18.166 20.7211 16.1611 20.7532 14.0986 20.9392C9.628 21.341 4.60201 22.427 1.89198 26.2889C-0.481594 29.671 -0.338718 32.9475 0.776633 34.3894C2.21 36.2423 3.69636 36.0448 4.89467 35.604C5.73349 35.2963 11.7458 32.2885 12.6123 31.8132C13.7783 31.1749 15.0481 30.7892 16.274 30.2886C17.7489 29.6871 19.2629 29.361 20.7861 28.9202C21.512 28.7113 22.231 28.4863 22.9753 28.3439C24.5516 28.0408 26.0034 28.0293 27.5566 28.4518C28.0267 28.5804 28.6374 28.7824 28.8747 29.2508C29.3056 30.1073 28.1396 30.8489 27.5105 31.1428C26.3537 31.6846 25.0447 31.8201 23.7865 31.9349C22.9523 32.0107 22.1204 32.1048 21.2908 32.215C18.3872 32.6031 15.5458 33.2505 12.7298 34.0519C11.0729 34.5248 9.39064 34.9932 7.92271 35.9208C7.22447 36.364 6.57461 36.8829 5.9432 37.4133C5.61827 37.6865 5.29565 37.9666 4.97533 38.2467C4.52366 38.6439 4.06507 39.0021 3.69175 39.4774C3.32304 39.9458 3.01655 40.4578 2.79763 41.0112C2.37361 42.0857 2.15008 43.2452 1.90811 44.3817C1.77676 44.9994 1.77215 45.6469 1.75602 46.2806C1.7468 46.6479 1.81363 47.0199 1.87124 47.3873C2.08786 48.7373 2.3137 50.0851 2.53723 51.4329C2.7308 52.5993 3.11103 56.7987 3.49127 57.6C3.89915 58.461 4.73797 58.771 5.59062 58.3462C6.62992 57.825 7.2936 56.8814 8.10707 56.1145C10.7318 53.6463 13.1699 50.9828 15.9168 48.6455C19.2076 45.8466 22.9154 43.2406 27.0243 41.801C28.3654 41.3303 29.7873 40.9515 31.216 40.9147C31.9765 40.8941 33.6472 41.0226 34.1473 41.716C35.3202 43.3439 31.3174 45.3002 30.3081 45.8833C28.1143 47.1554 25.7199 48.0531 23.3948 49.0496C18.1383 51.2997 13.6308 54.3971 9.60957 58.4588C8.44582 59.6343 7.43648 61.0074 6.52392 62.3804C6.14599 62.9475 5.7358 63.5238 5.49613 64.1667C5.17812 65.0162 5.12281 66.3181 5.11129 67.2296C5.09747 68.2537 5.31178 69.2662 5.66897 70.2237C5.81184 70.6094 8.24764 75.9936 9.65105 76.8546C11.7734 78.1542 12.6353 76.6618 12.9787 75.8306C13.299 75.0568 13.6516 74.2968 14.018 73.5437C14.3222 72.9146 15.1402 71.188 16.7303 68.9792C17.7973 67.4983 20.0625 65.3377 20.8391 64.6466C21.5351 64.0266 22.2794 63.4664 23.2334 63.2644C24.1598 63.0692 24.7959 63.4986 24.7567 64.394C24.7405 64.7292 24.5861 65.0989 24.388 65.379C23.7519 66.2814 23.086 67.1493 22.2679 67.9184C21.0027 69.1078 19.8275 70.3959 18.6292 71.6564C18.3572 71.9434 18.1084 72.2671 17.9148 72.6115C17.3548 73.6057 16.864 74.6366 16.2832 75.6171C15.6265 76.726 15.161 77.9062 14.9006 79.1553C14.7231 80.0071 14.6724 80.8865 14.5549 81.7521C14.4189 82.7646 14.3682 83.7795 14.6563 84.7691C14.8107 85.2972 14.9789 85.8689 15.3085 86.2913C16.0804 87.2855 16.97 88.1879 17.7788 89.1545C18.3111 89.7905 18.8066 90.4586 19.2859 91.136C19.7169 91.7444 20.051 92.4218 20.5165 93.0004C21.4221 94.1231 22.4038 95.1862 23.3256 96.2975C24.1114 97.2434 24.8074 98.2675 25.6416 99.1675C26.1232 99.6887 26.7201 100.244 27.5934 99.8862C27.8285 99.7897 28.082 99.7301 28.3309 99.6727C29.2849 99.4568 30.0661 98.9425 30.7897 98.3088C31.3935 97.7807 31.9742 97.1883 32.6632 96.8003C33.8247 96.1436 35.0668 95.6339 36.2674 95.0461C37.3459 94.518 38.5349 94.2517 39.3968 93.2437C40.0006 92.5366 40.4522 91.8202 40.6458 90.9477C40.8186 90.1648 40.9154 89.3634 41.0307 88.569C41.1251 87.9307 41.2173 87.2901 41.2818 86.6495C41.3418 86.0503 41.3948 85.4487 41.3994 84.8494C41.4063 83.7496 41.2888 82.6429 41.3855 81.5546C41.4616 80.6982 41.7358 79.8487 42.01 79.0244C42.1691 78.5445 42.5654 78.4733 42.9157 78.8315C43.236 79.1598 43.5172 79.5525 43.7176 79.9635C44.1117 80.774 44.0149 81.674 44.0771 82.5419C44.1762 83.9264 43.8444 85.2398 43.3628 86.5209C42.9457 87.6276 42.3373 88.6586 42.1506 89.8525C42.0331 90.6125 42.4387 91.2072 42.7429 91.8156C42.8443 92.0154 43.2936 92.1118 43.5909 92.1302C43.9988 92.1554 44.4366 92.1302 44.8192 92.0016C45.8539 91.6572 46.8701 91.2554 47.8864 90.8605C48.792 90.5092 49.6792 90.1096 50.5918 89.779C52.0182 89.2624 53.288 88.5598 54.0439 87.1684C54.4103 86.4911 54.8804 85.8551 55.1431 85.1433C55.521 84.1101 55.9358 83.0378 56.0095 8
1751.9587C56.1432 80.0346 55.9128 78.1014 55.5533 76.2048C55.1615 74.1407 54.6568 72.0972 54.2374 70.0354C54.007 68.8965 53.3802 67.9552 52.834 66.9702C52.3247 66.0472 51.7233 65.1609 51.3361 64.1897C50.9121 63.122 51.0665 61.8362 52.4123 61.1589C52.9469 60.8903 53.4654 60.9408 53.8987 61.1796C54.8688 61.7168 55.6224 62.5411 56.0856 63.5307C56.4681 64.3504 56.6456 65.2665 56.9037 66.1413C57.3692 67.7233 57.6111 69.3489 57.6572 70.9905C57.6941 72.3727 57.6734 73.7641 57.5581 75.1395C57.4636 76.2462 57.2747 77.3391 57.3507 78.4573C57.413 79.3688 57.4037 80.2849 57.4153 81.1987C57.4291 82.2664 57.5167 83.2858 58.2195 84.1973C58.8763 85.0492 59.9548 85.5336 60.9756 85.2421C61.236 85.1663 61.4872 85.0561 61.7384 84.9527C63.2616 84.3282 64.8402 83.8346 66.1883 82.8266C66.8312 82.3467 67.4442 81.8393 67.8336 81.1597C68.3521 80.2596 68.813 79.3137 69.1841 78.3447C69.8731 76.5401 69.8662 74.6366 69.7118 72.7493C69.5919 71.2775 69.3246 69.8173 69.1195 68.3524C68.9651 67.248 68.8315 66.1413 68.6379 65.0438C68.4674 64.0772 68.207 63.1243 68.0203 62.16C67.8083 61.0693 65.3932 57.7837 63.6603 55.8206C62.6717 54.7024 57.8301 51.9357 57.2332 51.5592C56.2838 50.9576 55.3966 50.255 54.4356 49.6741C53.288 48.9807 52.7925 48.2437 52.6727 46.9625C52.5874 46.051 54.2697 45.1762 55.309 45.2749C57.3438 45.4655 58.8947 45.3943 64.0705 49.5777C66.8543 51.8278 68.6632 54.3465 69.5228 56.6564C70.7856 60.0545 71.5922 63.5169 71.8319 64.9611C72.0462 66.2538 72.4448 71.4015 72.3734 72.483C72.3112 73.4335 72.3181 74.3428 72.5485 75.2612C72.7306 75.9867 73.3828 76.6411 74.1179 76.7192C74.3391 76.7421 74.6087 76.6686 74.8 76.5492C75.2586 76.2668 79.932 72.5633 81.3815 71.2867C82.2088 70.5589 83.0729 69.8195 83.4509 68.7565C83.7781 67.8358 84.0131 66.8691 84.1606 65.9048C84.4164 64.2287 84.4533 62.5342 84.1145 60.865C83.8357 59.4828 83.3863 58.1465 82.6604 56.9204C82.2733 56.266 81.8516 55.6346 81.4713 54.9757C80.6947 53.6279 79.7707 52.3903 78.6438 51.3181C77.54 50.2711 76.4108 49.2493 75.2609 48.2506C74.0994 47.2449 72.9011 46.2829 71.7166 45.3024C70.2764 44.1085 68.7508 43.0431 67.0663 42.2166C66.527 41.9525 66.2689 41.4405 66.0039 40.9583C65.8933 40.7563 65.9025 40.4325 65.974 40.1984C66.1237 39.7047 66.8128 39.3603 67.4258 39.3856C67.9397 39.4062 68.4558 39.381 68.9674 39.4154C69.5435 39.4567 70.1588 39.4361 70.6865 39.6312C71.818 40.0514 72.9126 40.5703 74.0003 41.0961C74.5211 41.3487 75.0258 41.6632 75.4775 42.026C76.208 42.6138 76.8394 43.3324 77.5999 43.8697C78.6 44.5746 79.0586 45.6698 79.7891 46.5653C80.0034 46.827 80.114 47.1691 80.2984 47.4561C80.7362 48.1426 81.2271 48.797 81.6327 49.5019C82.3194 50.6981 82.96 51.9219 83.6099 53.1388C84.0316 53.931 84.4441 54.73 84.8451 55.5336C85.6217 57.088 85.8083 58.7366 85.7415 60.4563C85.7138 61.1497 85.9074 61.8707 86.0964 62.5503C86.2761 63.1955 87.0112 63.5973 87.4675 63.3424C88.4285 62.8052 89.3064 62.1186 89.954 61.2484C90.7191 60.2198 91.2883 59.0511 92.005 57.9812C92.9797 56.5278 93.4729 54.8953 93.7586 53.2146H93.7748ZM32.4627 37.1905C30.9695 37.14 29.4739 37.3949 27.9852 37.101C27.4091 36.9862 27.3676 36.5063 27.4759 36.1183C27.8976 34.6098 29.0568 34.0633 30.4325 33.7924C32.1562 33.4549 33.88 33.099 35.6152 32.8372C36.5278 32.6995 38.5073 33.0026 38.8967 33.014C39.5259 33.0324 40.2264 33.0072 40.761 33.2712C41.7681 33.7671 41.8672 35.0966 40.897 35.7716C39.6572 36.6326 38.2953 37.0046 36.802 37.0367C35.3571 37.0689 33.9076 37.2388 32.4673 37.1905H32.4627Z",fill:"#f2d9ad"})),(0,s.h)("defs",null,(0,s.h)("clipPath",{id:"clip0_5613_68221"},(0,s.h)("rect",{width:"96",height:"100",fill:"white"}))))))))]}).flat().concat((0,s.h)("div",{key:"trailing",className:ok.flipPage},(0,s.h)("div",{className:ok.bookPageContainer},(0,s.h)("div",{className:ok.bookPageLockedBorder},(0,s.h)("div",{className:`${ok.circle} ${ok.topLeft}`}),(0,s.h)("div",{className:`${ok.circle} ${ok.topRight}`}),(0,s.h)("div",{className:`${ok.circle} ${ok.bottomLeft}`}),(0,s.h)("div",{className:`${ok.circle} ${ok.bottomRight}`}))))),[S.cards.length]),eq={cards:S.cards,translations:e,color:o,isFlipping:ee,isMilestoneAnimating:eR,moveCard:e$,progressAnim:eg,milestoneAnim:ev,pieceRevealAnim:ew,glareAnim:e_,chapterCompleteAnim:ex,historyTextAnim:eE,historyScrollClasses:K,handleHistoryScroll:eN,currentLevelId:ez,counterOverrideIndex:eo},eU=(0,s.h)("div",{className:`${ok.left} ${j?ok.smallDesktopHeight:""} ${F?ok.smallHeight:""} ${N?ok.portrait:""}`},(0,s.h)("button",{className:ok.hiw,onClick:()=>{iq.sendScreenAction("ge_screen","tutorial"),E(!0),iq.sendScreenEvent("g_event_tutorial")},"aria-label":"How it works"}),(0,s.h)("div",{className:ok.headerWrapper},(0,s.h)("div",{className:`${ok.title} ${N?ok.portrait:""}`},iq.getTitle()),(0,s.h)("div",{className:`${ok.subtitle} ${N?ok.portrait:""}`}
175,e.ends_in||"Ends in",(0,s.h)(eX,{rtl:l,subscribe:iq.timerManager.subscribe.bind(iq.timerManager),unsubscribe:iq.timerManager.unsubscribe.bind(iq.timerManager)}))),!N&&(0,s.h)("div",{className:ok.eventIcon},(0,s.h)("img",{alt:"event icon",src:S.iconUrl}))),eW=(0,s.h)("div",{ref:ed,className:`${ok.right} ${R?ok.small:""} ${z?ok.smallMobileHeight:""} ${j?ok.smallDesktopHeight:""} ${F?ok.smallHeight:""} ${N?ok.portrait:""}`},(0,s.h)("div",{ref:eh,className:`${ok.book} ${ee?ok.bookFlipping:""}`},ep&&(0,s.h)(oT.Provider,{value:eq},(0,s.h)(iV,{key:`${ep.w}x${ep.h}`,ref:Z,width:ep.w,height:ep.h,size:"stretch",minWidth:ep.w,maxWidth:ep.w,minHeight:ep.h,maxHeight:ep.h,showCover:!1,usePortrait:!1,drawShadow:!0,flippingTime:800,startZIndex:0,autoSize:!0,maxShadowOpacity:.3,mobileCornerFlicking:!0,mobileScrollSupport:!1,clickEventForward:!0,useMouseEvents:!1,disableFlipByClick:!1,startPage:2*Y,className:ok.slider,style:{},onFlip:e=>{ei.current?ei.current=!1:(X(Math.floor(e.data/2)),ea())}},eG))),(0,s.h)("button",{className:`${ok.navArrow} ${ee?ok.navArrowLocked:""} ${"appear"===eP?ok.navArrowAppearLeft:""} ${"bounce"===eP?ok.navArrowBounceRight:""} ${"hide"===eP?ok.navArrowHideLeft:""}`,"data-left":!0,disabled:0===Y||eR,onClick:e$(iY.left),"aria-label":"Previous chapter"},(0,s.h)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",fill:"none"},(0,s.h)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.1391 7.23832C15.6655 6.73045 16.5057 6.73045 17.0321 7.23832L17.0578 7.26372C17.1755 7.38343 17.2683 7.52494 17.3308 7.68016C17.3933 7.83539 17.4244 8.00129 17.4221 8.16838C17.4198 8.33548 17.3843 8.50049 17.3176 8.654C17.2509 8.8075 17.1543 8.94649 17.0334 9.06303L11.0843 14.7911H23.9216C24.2455 14.7911 24.5561 14.9185 24.7852 15.1452C25.0142 15.372 25.1429 15.6796 25.1429 16.0003C25.1429 16.321 25.0142 16.6285 24.7852 16.8553C24.5561 17.0821 24.2455 17.2095 23.9216 17.2095H11.0843L17.0321 22.9375L17.0578 22.9629C17.1755 23.0826 17.2683 23.2241 17.3308 23.3794C17.3933 23.5346 17.4244 23.7005 17.4221 23.8676C17.4198 24.0347 17.3843 24.1997 17.3176 24.3532C17.2509 24.5067 17.1543 24.6457 17.0334 24.7622C16.5057 25.2701 15.6655 25.2701 15.1391 24.7622L7.42649 17.334L7.38985 17.2978C7.21764 17.1227 7.08197 16.9157 6.9906 16.6887C6.89923 16.4616 6.85395 16.219 6.85736 15.9746C6.86076 15.7303 6.91278 15.4889 7.01043 15.2645C7.10809 15.04 7.24947 14.8368 7.42649 14.6665L15.1391 7.23832Z",fill:"#325AAF"}))),(0,s.h)("button",{className:`${ok.navArrow} ${ee?ok.navArrowLocked:""} ${"appear"===eL?ok.navArrowAppearRight:""} ${"bounce"===eL?ok.navArrowBounceLeft:""} ${"hide"===eL?ok.navArrowHideRight:""}`,"data-right":!0,disabled:Y===eD.length-1||eR,onClick:e$(iY.right),"aria-label":"Next chapter"},(0,s.h)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",fill:"none"},(0,s.h)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.1391 7.23832C15.6655 6.73045 16.5057 6.73045 17.0321 7.23832L17.0578 7.26372C17.1755 7.38343 17.2683 7.52494 17.3308 7.68016C17.3933 7.83539 17.4244 8.00129 17.4221 8.16838C17.4198 8.33548 17.3843 8.50049 17.3176 8.654C17.2509 8.8075 17.1543 8.94649 17.0334 9.06303L11.0843 14.7911H23.9216C24.2455 14.7911 24.5561 14.9185 24.7852 15.1452C25.0142 15.372 25.1429 15.6796 25.1429 16.0003C25.1429 16.321 25.0142 16.6285 24.7852 16.8553C24.5561 17.0821 24.2455 17.2095 23.9216 17.2095H11.0843L17.0321 22.9375L17.0578 22.9629C17.1755 23.0826 17.2683 23.2241 17.3308 23.3794C17.3933 23.5346 17.4244 23.7005 17.4221 23.8676C17.4198 24.0347 17.3843 24.1997 17.3176 24.3532C17.2509 24.5067 17.1543 24.6457 17.0334 24.7622C16.5057 25.2701 15.6655 25.2701 15.1391 24.7622L7.42649 17.334L7.38985 17.2978C7.21764 17.1227 7.08197 16.9157 6.9906 16.6887C6.89923 16.4616 6.85395 16.219 6.85736 15.9746C6.86076 15.7303 6.91278 15.4889 7.01043 15.2645C7.10809 15.04 7.24947 14.8368 7.42649 14.6665L15.1391 7.23832Z",fill:"#325AAF"}))),(0,s.h)("div",{className:`${ok.playBtnWrapper} ${S.cards.every(e=>e.completed)?ok.playBtnHidden:""} ${eR?ok.playBtnDisabled:""}`},(0,s.h)("div",{className:ok.playBtnContainer},eD[Y].isOpen?eD[Y].completed?(0,s.h)("button",{className:ok.playBtn,disabled:ee||eR,onClick:e$(iY.right)},e.event_screen_next_button||"Next Chapter"):(0,s.h)(e1,{showPopup:iq.hasCurrentLevelProgress(),clickCallback:eB,title:e.play||"Play",popupTitle:e.action_sheet_title||"Level in Progress",popupDesc:e.action_sheet_body||"You already started solving this level. <br /> Do you want to restart it?",buttons:[{title:null!=(p=e.continue)?p:"Continue",image:"data:image/svg+xml,%3csvg width='25' height='24' viewBox='0 0 25 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M18.4996 3.6001C19.1361 3.6001 19.7466 3.85295 20.1967 4.30304C20.6468 4.75313 20.8996 5.36358 20.8996 6.0001V18.0001C20.8996 18.6366 20.6468 19.2471 20.1967 19.6972C19.7466 20.1472 19.1361 20.4001 18.4996 20.4001H6.49961C5.86309 20.4001 5.25264 20.1472 4.80255 19.6972C4.35247 19.2471 4.09961 18.6366 4.09961 18.0001V6.0001C4.09961 5.36358 4.35247 4.75313 4.80255 4.30304C5.25264 3.85295 5.86309 3.6001 6.49961 3.6001H18.4996ZM9.69861 14.9991H5.69961V18.0001C5.69961 18.2123 5.78389 18.4158 5.93392 18.5658C6.08395 18.7158 6.28744 18.8001 6.49961 18.8001H9.69861V14.9991ZM10.6986 14.9991V18.8001H14.4986V15.0001L10.6986 14.9991ZM19.2996 15.0001H15.4986V18.8001H18.4996C18.7118 18.8001 18.9153 18.7158 19.0653 18.5658C19.2153 18.4158 19.2996 18.2123 19.2996 18.0001V15.0001ZM19.2996 10.2001H15.4986V14.0001H19.2996V10.2001ZM10.6986 10.1991V13.9991L14.4986 14.0001V10.2001L10.6986 10.1991ZM9.69861 10.1991H5.69961V13.9991H9.69861V10.1991ZM17.3006 11.2691C17.5128 11.2691 17.7163 11.3534 17.8663 11.5034C18.0163 11.6534 18.1006 11.8569 18.1006 12.0691C18.1006 12.2813 18.0163 12.4848 17.8663 12.6348C17.7163 12.7848 17.5128 12.8691 17.3006 12.8691C17.0884 12.8691 16.885 12.7848 16.7349 12.6348C16.5849 12.4848 16.5006 12.2813 16.5006 12.0691C16.5006 11.8569 16.5849 11.6534 16.7349 11.5034C16.885 11.3534 17.0884 11.2691 17.3006 11.2691ZM18.4996 5.2001H15.4986V9.2001H19.2996V6.0001C19.299
1756 5.78792 19.2153 5.58444 19.0653 5.43441C18.9153 5.28438 18.7118 5.2001 18.4996 5.2001ZM14.4986 5.2001H10.6986V9.1991L14.4986 9.2001V5.2001ZM9.69861 5.2001H6.49961C6.28744 5.2001 6.08395 5.28438 5.93392 5.43441C5.78389 5.58444 5.69961 5.78792 5.69961 6.0001V9.1991H9.69861V5.2001ZM7.69961 6.4001C7.91178 6.4001 8.11527 6.48438 8.2653 6.63441C8.41532 6.78444 8.49961 6.98792 8.49961 7.2001C8.49961 7.41227 8.41532 7.61575 8.2653 7.76578C8.11527 7.91581 7.91178 8.0001 7.69961 8.0001C7.48744 8.0001 7.28395 7.91581 7.13392 7.76578C6.98389 7.61575 6.89961 7.41227 6.89961 7.2001C6.89961 6.98792 6.98389 6.78444 7.13392 6.63441C7.28395 6.48438 7.48744 6.4001 7.69961 6.4001Z' fill='%23325aaf'/%3e%3c/svg%3e",callback:eB},{title:null!=(f=e.restart)?f:"Restart",image:"data:image/svg+xml,%3csvg width='25' height='24' viewBox='0 0 25 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M11.5541 3.58371C11.8228 3.83089 11.8583 4.23713 11.6509 4.52622L11.595 4.59608L10.0549 6.26186L12.5009 6.27583C13.918 6.27583 15.3033 6.69605 16.4816 7.48335C17.6599 8.27065 18.5782 9.38967 19.1205 10.6989C19.6628 12.0081 19.8047 13.4488 19.5283 14.8386C19.2518 16.2285 18.5694 17.5052 17.5674 18.5072C16.5653 19.5093 15.2886 20.1917 13.8988 20.4682C12.5089 20.7446 11.0682 20.6027 9.75901 20.0604C8.44978 19.5181 7.33076 18.5998 6.54346 17.4215C5.75616 16.2432 5.33594 14.8579 5.33594 13.4408C5.33594 13.2507 5.41146 13.0684 5.54589 12.934C5.68032 12.7995 5.86265 12.724 6.05276 12.724C6.24287 12.724 6.4252 12.7995 6.55963 12.934C6.69406 13.0684 6.76958 13.2507 6.76958 13.4408C6.76969 14.5669 7.10151 15.668 7.72361 16.6066C8.34572 17.5452 9.23054 18.2798 10.2676 18.7186C11.3047 19.1574 12.448 19.281 13.5549 19.0739C14.6618 18.8668 15.6831 18.3383 16.4914 17.5543C17.2997 16.7702 17.8591 15.7655 18.0998 14.6654C18.3405 13.5654 18.2518 12.4188 17.8449 11.3688C17.4379 10.3189 16.7306 9.4121 15.8114 8.76168C14.8921 8.11126 13.8017 7.74604 12.6761 7.71162L12.4977 7.7084L10.0055 7.6955L11.6369 9.50529C11.7538 9.6349 11.8193 9.80269 11.8213 9.9772C11.8233 10.1517 11.7615 10.3209 11.6476 10.4532L11.5842 10.5177C11.4546 10.6345 11.2868 10.7001 11.1123 10.7021C10.9378 10.7041 10.7686 10.6423 10.6363 10.5284L10.5719 10.4639L7.87652 7.47196C7.76767 7.35093 7.70327 7.19645 7.69389 7.03394C7.68452 6.87143 7.73073 6.71057 7.82493 6.57782L7.88297 6.50689L10.5418 3.62455C10.6707 3.48498 10.8497 3.40228 11.0395 3.39463C11.2293 3.38697 11.4144 3.45498 11.5541 3.58371Z' fill='%23325aaf'/%3e%3c/svg%3e",callback:()=>{iq.resetGameProgress(),eB()}}],color:o,variant:"white"}):(0,s.h)("button",{className:ok.playBtn,disabled:ee||eR,onClick:()=>{if(Q.current)return;let e=null!=W?W:0;e!==Y&&(iq.sendScreenAction("ge_screen","active_postcard"),eF(Y,e),(e=>{var t;let n=null==(t=Z.current)?void 0:t.pageFlip();if(!n)return;let r=2*e,i=e-Y;if(1>=Math.abs(i))return el(),n.flip(r);ei.current=!0;let o=i>
1750?r-2:r+2;(0,a.flushSync)(()=>es({adjacentIdx:o/2,displayIdx:Y})),n.turnToPage(o),requestAnimationFrame(()=>{el(),i>0?n.flipNext("bottom"):n.flipPrev("bottom")})})(e))}},e.event_screen_locked_button||"To the Current Chapter"))));return(0,s.h)("div",{className:`${ok.storybook} ${l?ok.rtl:""} ${N?ok.portrait:""} ${R?ok.small:""} ${F?ok.smallHeight:""}`,ref:A},(0,s.h)(er,{bigOverlay:o===n6.blue,rounded:!0,color:o,big:o===n6.green,show:k,fullSize:q,onClose:()=>{E(!1),L(!1),iq.sendScreenEvent("ge_screen")},items:[{btns:[{text:null!=(g=e.continue)?g:"Continue",func:e=>{T&&iq.sendOnboardingEvent(3.1),iq.sendScreenAction("g_event_tutorial","continue"),e()}}],text:e.tutorial_body_1||"Complete event levels and get illustration pieces",image:(0,s.h)("img",{src:"/build/images/storybook/hiw1.png",srcSet:"/build/images/storybook/hiw1.png 1x, /build/images/storybook/[email protected] 2x",alt:"img1"})},{btns:[{text:e.continue||"Continue",func:e=>{T&&iq.sendOnboardingEvent(3.2),iq.sendScreenAction("g_event_tutorial","continue"),e()}}],text:e.tutorial_body_2||"Complete the illustration to read the story",image:(0,s.h)("img",{src:"/build/images/storybook/hiw2.png",srcSet:"/build/images/storybook/hiw2.png 1x, /build/images/storybook/[email protected] 2x",alt:"img1"})},{btns:[{text:null!=(m=e.continue)?m:"Continue",func:e=>{T&&iq.sendOnboardingEvent(3.3),iq.sendScreenAction("g_event_tutorial","continue"),e()}}],text:e.tutorial_body_3||"Read the whole story and get a unique reward!",image:(0,s.h)("div",{className:ok.hiw3},(0,s.h)("img",{src:"/build/images/storybook/hiw3.png",srcSet:"/build/images/storybook/hiw3.png 1x, /build/images/storybook/[email protected] 2x",alt:"img3"}))},{btns:[{text:null!=(v=e.ok)?v:"OK",func:e=>{T&&iq.sendOnboardingEvent(3.4),iq.sendScreenAction("g_event_tutorial","ok"),e()}}],text:e.tutorial_body_4||"Hurry! The event will only be available for a limited time!",image:(0,s.h)("div",{className:ok.hiw4},(0,s.h)("img",{src:"/build/images/storybook/hiw4.png",srcSet:"/build/images/storybook/hiw4.png 1x, /build/images/storybook/[email protected] 2x",alt:"img4"}))}],title:{value:e.tutorial_title||"How Does It Works?"}}),(0,s.h)(er,{bigOverlay:o===n6.blue,rounded:!0,color:o,big:o===n6.green,show:C,fullSize:q,onClose:eH,items:[{btns:[{text:null!=(y=e.ok)?y:"OK",func:()=>{iq.sendScreenAction("g_event_reward","ok"),eH()}}],text:iq.getWinText(),image:(0,s.h)("div",{className:ok.eventReward},I.map(({url:e},t)=>(0,s.h)("div",{key:t,className:ok.rewardImage},(0,s.h)("img",{src:e,alt:"reward"}))))}],title:{value:e.completed_popup_title||"Congratulations!"}}),(0,s.h)(ec,{text:null!=(w=e.loading)?w:"Loading Game",show:b}),(0,s.h)("div",N?{className:ok.portraitWrapper}:{className:ok.desktopWrapper},eU,eW),r&&(0,s.h)(r_,{buttons:[{text:"Complete Level",action:()=>{iq.onLevelComplete(),x(Object.assign({},iq.getData()))}},{text:"Complete Chapter",action:()=>{let e=iq.getActiveCardIndex();null!==e&&(eD[e].levels.filter(e=>!e.completed).slice(0,-1).forEach(({id:e})=>{iq.selectLevel(e),iq.onLevelComplete()}),x(Object.assign({},iq.getData())))}}]}))}},storybookLogic:iq},oR=[3,7],oB="streak-screen-banner";var oF={btn:"streak-styles_btn__XTkeT",white:"streak-styles_white__v9gjI",white_green:"streak-styles_white_green__cBuC0",green:"streak-styles_green__kB3TM",blue:"streak-styles_blue__Mwyen",streak:"streak-styles_streak__lC4ul",shown:"streak-styles_shown__gnVMW",pview:"streak-styles_pview__4GxDP",withoutBtn:"streak-styles_withoutBtn__u0i6c",streak_rays:"streak-styles_streak_rays__oZKJ6",streakRays:"streak-styles_streakRays__vYgn2",lview:"streak-styles_lview__tYUn-",streak_content:"streak-styles_streak_content__qBG62",streak_left:"streak-styles_streak_left__UF8OH",short:"streak-styles_short__Lv62x",streak_left_content:"streak-styles_streak_left_content__-UCHF",streak_left_banner:"streak-styles_streak_left_banner__ojzbh",streak_left_banner_content:"streak-styles_streak_left_banner_content__uIBNh",streak_right:"streak-styles_streak_right__0kBLO",streak_right_content:"streak-styles_streak_right_content__JQkUJ",streak_heading:"streak-styles_streak_heading__DWEzE",streak_t
175itle:"streak-styles_streak_title__JNPc7",streak_subtitle:"streak-styles_streak_subtitle__V5yVr",streak_icon:"streak-styles_streak_icon__4aBEk",compact:"streak-styles_compact__eif6J",streak_icon_flame:"streak-styles_streak_icon_flame__TwJ9v",streak_icon_counter:"streak-styles_streak_icon_counter__UY58g",streak_middle:"streak-styles_streak_middle__8iYcS",streak_week:"streak-styles_streak_week__a4UKH",streak_week_labels:"streak-styles_streak_week_labels__Ylo0m",streak_week_days:"streak-styles_streak_week_days__Jv9QN",streak_week_label:"streak-styles_streak_week_label__RJYpu",streak_week_labels_long:"streak-styles_streak_week_labels_long__disJZ",streak_week_label_done:"streak-styles_streak_week_label_done__KveFi",streak_week_label_new:"streak-styles_streak_week_label_new__dVIP0",streak_week_label_star:"streak-styles_streak_week_label_star__O94oE",streak_week_label_open:"streak-styles_streak_week_label_open__qUW9B",streak_week_pill:"streak-styles_streak_week_pill__QgpqJ",streak_week_pill_open:"streak-styles_streak_week_pill_open__8uNzM",streakWeekBounce:"streak-styles_streakWeekBounce__x9QKP",streak_week_day:"streak-styles_streak_week_day__Jb5s8",streak_week_day_empty:"streak-styles_streak_week_day_empty__hG0qy",streak_week_day_milestone:"streak-styles_streak_week_day_milestone__Ynwu7",streak_week_day_done:"streak-styles_streak_week_day_done__RxVr-",streak_week_day_socket:"streak-styles_streak_week_day_socket__jVx84",streak_week_day_socket_open:"streak-styles_streak_week_day_socket_open__4mIaK",streak_week_check:"streak-styles_streak_week_check__V9mHN",streak_week_star:"streak-styles_streak_week_star__-3HQX",streak_week_check_new:"streak-styles_streak_week_check_new__AbYPk",streak_week_check_star:"streak-styles_streak_week_check_star__7hxj6",streak_week_check_open:"streak-styles_streak_week_check_open__qMpYZ",streak_week_star_spent:"streak-styles_streak_week_star_spent__JmmpH",streakWeekStar:"streak-styles_streakWeekStar__wGNr-",streak_text:"streak-styles_streak_text__vnhQp",streak_confetti:"streak-styles_streak_confetti__T2Jqy",streak_btn:"streak-styles_streak_btn__C2IZf"},o$="data:image/svg+xml,%3csvg width='30' height='30' viewBox='0 0 30 30' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.4149 2.73828C13.5809 0.8012 16.3895 0.801283 17.5555 2.73828L20.5087 7.64551C20.5685 7.74488 20.6662 7.81557 20.7792 7.8418L26.3583 9.13379C28.5612 9.64399 29.4295 12.3158 27.9471 14.0234L24.1932 18.3486C24.1173 18.4362 24.0798 18.5505 24.0897 18.666L24.5848 24.3721C24.7802 26.6247 22.5077 28.2756 20.4257 27.3936L15.1522 25.1592C15.0455 25.1141 14.9249 25.114 14.8182 25.1592L9.5448 27.3936C7.46279 28.2755 5.1903 26.6247 5.38562 24.3721L5.88074 18.666C5.89067 18.5507 5.85397 18.4361 5.7782 18.3486L2.02332 14.0234C0.541155 12.3158 1.4093 9.64398 3.61218 9.13379L9.19128 7.8418C9.30434 7.81561 9.40195 7.74493 9.46179 7.64551L12.4149 2.73828Z' fill='url(%23paint0_linear_8825_11044)' stroke='%23FFF3E1' stroke-width='2.57143'/%3e%3cdefs%3e%3clinearGradient id='paint0_linear_8825_11044' x1='14.9854' y1='0.960937' x2='14.9854' y2='30.1038' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='%23FFCA00'/%3e%3cstop offset='1' stop-color='%23FF8500'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e";let oj=({slots:e,day:t=0})=>{let n=e.filter(e=>"done"===e.state).length,r=e=>`calc(${e} * ((100% - var(--streak-dot)) / 6) + var(--streak-dot))`,i=t>=1&&t<=7?n-1:-1,o=i>=0&&-1!==oR.indexOf(i+1),a=0===i,l=a?oF.streak_week_check_open:o?oF.streak_week_check_star:oF.streak_week_check_new,c=o?"":`${oF.streak_week_day_socket} ${a?oF.streak_week_day_socket_open:""}`,u=a?oF.streak_week_label_open:o?oF.streak_week_label_star:oF.streak_week_label_new,d=e.some(e=>e.label.length>1);return(0,s.h)("div",{className:oF.streak_week},(0,s.h)("div",{className:`${oF.streak_week_labels} ${d?oF.streak_week_labels_long:""}`},e.map((e,t)=>(0,s.h)("span",{key:`label-${t}`,className:`${oF.streak_week_label} ${"done"===e.state?oF.streak_week_label_done:""} ${t===i?u:""}`},e.label))),(0,s.h)("div",{className:oF.streak_week_days},n>0&&(0,s.h)("div",{className:`${oF.streak_week_pill} ${a?oF.streak_week_pill_open:""}`,style:{"--streak-pill-from":r(i>0?n-2:n-1),"--streak-pill-to":r(n-1)}}),e.map((e,t)=>(0,s.h)("span",{key:`day-${t}`,className:`${oF.streak_week_day} ${oF[`streak_week_day_${e.state}`]} ${t===i?c:""}`},"done"===e.state&&(0,s.h)("img",{className:`${oF.streak_week_check} ${t===i?l:""}`,src:"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='18' height='15' viewBox='0 0 18 15' fill='none'%3e %3cg filter='url(%23streak_check_shadow)'%3e %3cpath d='M13.3043 1.4831C13.9222 0.838965 14.9222 0.838965 15.5401 1.4831C16.1082 2.07526 16.1612 3.01537 15.6363 3.71614L15.5401 3.82703L8.15773 11.5226C7.59191 12.1124 6.69709 12.1672 6.02819 11.6228L5.92185 11.5226L2.4653 7.9194C1.8449 7.27269 1.8449 6.2222 2.4653 5.57548C3.03113 4.98566 3.92595 4.93084 4.59485 5.47526L4.70114 5.57543L7.03934 8.01336L13.3043 1.4831Z' fill='white'/%3e %3c/g%3e %3cdefs%3e %3cfilter id='streak_check_shadow' x='0' y='0' width='18' height='15' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3e %3cfeFlood flood-opacity='0' result='Backgroun
175dImageFix'/%3e %3cfeColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/%3e %3cfeOffset dy='1'/%3e %3cfeGaussianBlur stdDeviation='1'/%3e %3cfeComposite in2='hardAlpha' operator='out'/%3e %3cfeColorMatrix type='matrix' values='0 0 0 0 0.713726 0 0 0 0 0.376471 0 0 0 0 0 0 0 0 0.5 0'/%3e %3cfeBlend mode='normal' in2='BackgroundImageFix' result='effect1_dropShadow'/%3e %3cfeBlend mode='normal' in='SourceGraphic' in2='effect1_dropShadow' result='shape'/%3e %3c/filter%3e %3c/defs%3e%3c/svg%3e",alt:""}),t===i&&o&&(0,s.h)("img",{className:`${oF.streak_week_star} ${oF.streak_week_star_spent}`,src:o$,alt:""}),"milestone"===e.state&&(0,s.h)("img",{className:oF.streak_week_star,src:o$,alt:""})))))},oH="streak_burn",oz=1/15,oG={left:"-25.013%",top:"-22.322%",width:"146.155%",height:"123.297%"},oq={left:"1.831%",top:"8.254%",width:"98.62%",height:"86.899%"},oU=()=>{var e;return null!=(e="undefined"==typeof window?void 0:window.streakFlame)?e:{}},oW=({className:e,play:t=!0,speed:r=.6,delay:i=.45,elRef:o})=>{let l=(0,a.useRef)(null),c=(0,a.useRef)(t),u=(0,a.useRef)(r),d=(0,a.useRef)(i);return c.current=t,u.current=r,d.current=i,(0,a.useEffect)(()=>{let e=l.current;if(!e)return;let t=!1,r=0,i=null,o=null;return n.e(2523).then(n.bind(n,2523)).then(n=>{if(!t){try{i=new n.ManagedWebGLRenderingContext(e,{alpha:!0,premultipliedAlpha:!0}),o=new n.SceneRenderer(e,i,!1)}catch(e){return}o.camera.position.x=-20,o.camera.position.y=705,o.camera.setViewport(1120,1010),(async(e,t)=>{var n,r;let i=new e.AssetManager(t,"/build/images/streak/"),[o,s]=await Promise.all([i.loadBinaryAsync("streak.skel.bytes"),i.loadTextureAtlasAsync("streak.atlas.txt")]),a=new e.SkeletonBinary(new e.AtlasAttachmentLoader(s)).readSkeletonData(o),l=new e.AnimationStateData(a);l.defaultMix=0;let c=new e.AnimationState(l);return{skeleton:new e.Skeleton(a),state:c,burnEnds:(null!=(r=null==(n=a.findAnimation(oH))?void 0:n.duration)?r:0)-.001}})(n,i).then(({skeleton:e,state:s,burnEnds:a})=>{if(t)return;let l=0,h=0,p=!1,f=!1,g=()=>{l=0,s.setAnimation(0,oH,!1),s.addAnimation(0,"streak_idle",!0,0)};g();let m=t=>{var a,v;r=requestAnimationFrame(m);let y=h?Math.min((t-h)/1e3,oz):0;h=t,c.current!==f&&(f=c.current)&&g();let w=oU(),b=Math.max(0,null!=(a=w.speed)?a:u.current),_=Math.max(0,null!=(v=w.delay)?v:d.current),S=0;if(f)(l+=y)>_&&(S=Math.min(y,l-_)*b);else if(p)return;s.update(S),s.apply(e),e.update(S),e.updateWorldTransform(n.Physics.update),null==o||o.resize(n.ResizeMode.Stretch);let x=null==i?void 0:i.gl;x&&(x.clearColor(0,0,0,0),x.clear(x.COLOR_BUFFER_BIT)),null==o||o.begin(),null==o||o.drawSkeleton(e,!0),null==o||o.end(),p=!0};r=requestAnimationFrame(m)}).catch(()=>{})}}).catch(()=>{}),()=>{var e;t=!0,cancelAnimationFrame(r),null==o||o.dispose(),null==(e=null==i?void 0:i.gl.getExtension("WEBGL_lose_context"))||e.loseContext()}},[]),(0,s.h)("div",{className:e,ref:o},(0,s.h)("span",{className:"streak-flame__halo",style:oq}),(0,s.h)("canvas",{className:"streak-flame__canvas",style:oG,ref:l}))},oV=-.074,oY={spread:360,startVelocity:26,ticks:90,gravity:.6,decay:.9,scalar:.9,shapes:["square","circle"],colors:["#ffd473","#ffca00","#ff8500","#b620e0","#fff3e1","#ffffff"]},oX=({targetRef:e,play:t=!1,at:n,tip:r=oV,className:i})=>{let o=(0,a.useRef)(null),l=(0,a.useRef)(),c=(0,a.useRef)(n),u=(0,a.useRef)(r);return c.current=n,u.current=r,(0,a.useEffect)(()=>{var n,r;if(!t)return;let i=(()=>{var e;return null!=(e="undefined"==typeof window?void 0:window.streakConfetti)?e:{}})(),s=Math.max(0,null!=(r=null!=(n=i.at)?n:c.current)?r:(()=>{var e,t;let n=oU();return(null!=(e=n.delay)?e:.45)+.2*.8/Math.max(.01,null!=(t=n.speed)?t:.6)})()),a=window.setTimeout(()=>{var t,n,r,s,a;let c=o.current,d=e.current;if(!c||!d)return;let h=c.getBoundingClientRect();if(!h.width||!h.height)return;let p=d.getBoundingClientRect();c.width===Math.floor(h.width)&&c.height===Math.floor(h.height)||(c.width=Math.floor(h.width),c.height=Math.floor(h.height)),l.current||(l.current=iO.create(c,{resize:!0})),l.current(Object.assign(Object.assign({},oY),{particleCount:Math.max(1,Math.round(null!=(t=i.count)?t:120)),startVelocity:null!=(n=i.velocity)?n:oY.startVelocity,gravity:null!=(r=i.gravity)?r:
175oY.gravity,origin:{x:(p.left+p.width/2-h.left)/h.width,y:(p.top+p.height*(null!=(a=null!=(s=i.tip)?s:u.current)?a:oV)-h.top)/h.height}}))},1e3*s);return()=>window.clearTimeout(a)},[t,e]),(0,a.useEffect)(()=>()=>{var e;return null==(e=l.current)?void 0:e.reset()},[]),(0,s.h)("canvas",{className:i,ref:o})},oK=({portrait:e,hideBtn:t,button:n})=>(0,s.h)("div",{className:oF.streak_btn},!t&&n,e&&(0,s.h)("div",{className:oF.streak_left_banner},(0,s.h)("div",{className:oF.streak_left_banner_content,id:oB}))),oJ="daily_streak",oZ={current:0,lastStreak:0,lastFinishDate:null,startWeekday:0,lastSeenAt:null,introTooltipShown:!1},oQ=e=>{let t=`${e.getMonth()+1}`.padStart(2,"0"),n=`${e.getDate()}`.padStart(2,"0");return`${e.getFullYear()}-${t}-${n}`},o0=(e,t)=>{let[n,r,i]=e.split("-").map(Number),[o,s,a]=t.split("-").map(Number),l=Date.UTC(n,r-1,i);return Math.round((Date.UTC(o,s-1,a)-l)/864e5)},o1=new class{constructor(){this.state=Object.assign({},oZ),this.storageEnabled=!0,this.loaded=!1}setup({storageEnabled:e=!0}={}){this.storageEnabled=e,this.loaded=!1}get data(){return this.state}refresh(e=new Date){this.loaded||(this.state=this.storageEnabled?(()=>{try{let e=window.localStorage.getItem(oJ);if(!e)return Object.assign({},oZ);let t=JSON.parse(e);return Object.assign(Object.assign(Object.assign({},oZ),t),{current:Number(t.current)||0,lastStreak:Number(t.lastStreak)||0,startWeekday:Number(t.startWeekday)||0})}catch(e){return Object.assign({},oZ)}})():Object.assign({},oZ),this.loaded=!0);let{lastFinishDate:t,current:n}=this.state;if(!t||0===n)return this.state;let r=o0(t,oQ(e));return(r<0||r>1)&&(this.state=Object.assign(Object.assign({},this.state),{lastStreak:n,current:0}),this.save()),this.state}status(e=new Date){let{current:t,lastFinishDate:n}=this.refresh(e);return 0===t?"none":n===oQ(e)?"done":"pending"}registerFinish(e=new Date){let{lastFinishDate:t,current:n}=this.refresh(e),r=oQ(e);if(t===r)return{advanced:!1,day:n};let i=null===t?1/0:o0(t,r),o=n>0&&1===i,s=o?n+1:1;return this.state=Object.assign(Object.assign({},this.state),{current:s,lastStreak:o?this.state.lastStreak:Math.max(this.state.lastStreak,n),lastFinishDate:r,startWeekday:o?this.state.startWeekday:e.getDay()}),this.save(),{advanced:!0,day:s}}welcomeBack(e=new Date){let{lastSeenAt:t,lastStreak:n,current:r}=this.refresh(e),i=Math.max(n,r);return{show:i>=1&&null!==t&&e.getTime()-t>=2592e5,days:i,withDays:i>=2}}markSeen(e=new Date){this.refresh(e),this.state=Object.assign(Object.assign({},this.state),{lastSeenAt:e.getTime()}),this.save()}get introTooltipOwed(){return!this.refresh().introTooltipShown}markIntroTooltipShown(){this.refresh(),this.state=Object.assign(Object.assign({},this.state),{introTooltipShown:!0}),this.save()}debugSet(e){this.refresh(),this.state=Object.assign(Object.assign({},this.state),e),this.save()}reset(){this.state=Object.assign({},oZ),this.loaded=!0;try{this.storageEnabled&&window.localStorage.removeItem(oJ)}catch(e){}}save(){if(this.storageEnabled)try{window.localStorage.setItem(oJ,JSON.stringify(this.state))}catch(e){}}},o2={components:{StreakScreen:({day:e,copy:t,slots:n,active:r,button:i,onButtonClick:o,portrait:l,hideMobileBtn:c,debug:u})=>{let[d,h]=(0,a.useState)(!1),[p,f]=(0,a.useState)(!!l),[g,m]=(0,a.useState)(!1),[v,y]=(0,a.useState)(!1),w=(0,a.useRef)(null),b=(0,a.useRef)(null),_=-1!==oR.indexOf(e);(0,a.useEffect)(()=>{if(!r)return void h(!1);let e=requestAnimationFrame(()=>h(!0));return()=>cancelAnimationFrame(e)},[r]),(0,a.useEffect)(()=>{let e=()=>{if(!w.current)return;let{offsetWidth:e,offsetHeight:t}=w.current,n="boolean"==typeof l?l:e<720;f(n),m(n&&(e<480||t<660)),y(!n&&t<460)};e(),window.addEventListener("resize",e);let t=null;return"undefined"!=typeof ResizeObserver&&w.current&&(t=new ResizeObserver(e)).observe(w.current),()=>{null==t||t.disconnect(),window.removeEventListener("resize",e)}},[l]);let S=null!=i?i:(0,s.h)("button",{type:"button",className:"btn white",onClick:o,dangerouslySetInnerHTML:{__html:t.button}}),x=(0,s.h)("div",{className:oF.streak_heading},(0,s.h)("h2",{className:oF.streak_title,dangerouslySetInnerHTML:{__html:t.title}}
175),t.subtitle&&(0,s.h)("div",{className:oF.streak_subtitle,dangerouslySetInnerHTML:{__html:t.subtitle}}));return(0,s.h)(s.Fragment,null,u&&(0,s.h)(r_,{buttons:[{text:"Show Streak Screen",action:()=>h(!0)}]}),(0,s.h)("div",{ref:w,className:`${oF.streak} ${d?oF.shown:""} ${p?`${oF.pview} ${c?oF.withoutBtn:""}`:oF.lview} ${g?oF.compact:""} ${v?oF.short:""}`},(0,s.h)("img",{className:oF.streak_rays,src:"/build/images/dc/rays_new.png",srcSet:"/build/images/dc/rays_new.png 1x, /build/images/dc/[email protected] 2x",alt:""}),(0,s.h)("div",{className:oF.streak_content},(0,s.h)("div",{className:oF.streak_left},p&&x,(0,s.h)("div",{className:oF.streak_left_content},(0,s.h)("div",{className:oF.streak_icon},(0,s.h)(oW,{className:oF.streak_icon_flame,play:d,elRef:b}),(0,s.h)("div",{className:oF.streak_icon_counter},e))),!p&&(0,s.h)("div",{className:oF.streak_left_banner},(0,s.h)("div",{className:`${oF.streak_left_banner_content} large-banner`,id:oB}))),(0,s.h)("div",{className:oF.streak_right},(0,s.h)("div",{className:oF.streak_right_content},!p&&x,(0,s.h)("div",{className:oF.streak_middle},(0,s.h)(oj,{slots:n,day:e}),(0,s.h)("div",{className:oF.streak_text,dangerouslySetInnerHTML:{__html:t.text}}))),!p&&(0,s.h)(oK,{portrait:!1,button:S}
175))),_&&(0,s.h)(oX,{className:oF.streak_confetti,targetRef:b,play:d}),p&&(0,s.h)(oK,{portrait:!0,hideBtn:c,button:S})))},StreakWeek:oj,StreakFlame:oW,StreakBtn:oK},STREAK_BANNER_ID:oB,streakLogic:o1,buildCopy:(e,t,n=0)=>{var r,i,o;let s=t=>t.replace("{0}",`${e}`);if(e>=8){let e=t.longTitles.length?t.longTitles:[""];return{title:e[(n%e.length+e.length)%e.length],subtitle:s(t.longSubtitle),text:s(t.longText),button:t.longButton}}let a=5===e?4:e;return{title:s(null!=(r=t.titles[a])?r:""),subtitle:t.subtitles[a]?s(t.subtitles[a]):null,text:s(null!=(i=t.texts[a])?i:""),button:null!=(o=t.buttons[a])?o:""}},buildSlots:(e,t)=>{let n=Math.max(0,Math.min(e,7));return Array.from({length:7},(e,r)=>{var i;let o=r<n;return{label:null!=(i=t[r])?i:"",state:o?"done":-1!==oR.indexOf(r+1)?"milestone":"empty",firstDone:o&&0===r,lastDone:o&&r===n-1}})},rotateWeekdays:(e,t)=>Array.from({length:7},(n,r)=>{var i;return null!=(i=e[(t+r)%7])?i:""}),toLocalDate:oQ,daysBetween:o0};!function(e){e.liveops="liveops",e.tournaments="tournaments",e.dc="dc"}(o||(o={}));let o5={liveops:re.postcards,tournaments:re.tournament,dc:re.croco},o4={upLogic:new class{constructor(){this.awardsLogic=eL.awardsLogic,this.allTimeSync=!1,this.config=f("up",{lastUpdate:null})}setup(e){this.eaid=e.eaid,this.euid=e.euid,this.domain=e.domain,this.allTimeSync=!!e.allTimeSync,e.awardsLogic&&(this.awardsLogic=e.awardsLogic)}async sync(){if(this.eaid&&this.euid&&this.domain)try{let e=await fetch(this.domain,{method:"GET",headers:{"x-easy-eaid":String(this.eaid),"x-easy-euid":this.euid,"x-easy-from":String(this.config.lastUpdate&&!this.allTimeSync?this.config.lastUpdate-3600:0),"Content-Type":"application/json"}}),t=await e.json();this.config.lastUpdate=t.timestamp||Math.round(Date.now()/1e3),g("up",this.config),(null==t?void 0:t.awards)&&(null==t?void 0:t.awards.length)&&(null==t||t.awards.forEach(e=>{var t;this.awardsLogic.addAward(e.id,e.obtained_at,o5[e.type],null!=(t=e.sub_type)?t:1)}))}catch(e){console.error("UP error",e)}else console.error("EAID, EUID and DOMAIN are required",this.eaid,this.euid,this.domain)}}};var o6={btn:"image-popup-styles_btn__7l6N9",white:"image-popup-styles_white__hK00p",white_green:"image-popup-styles_white_green__zEwjH",green:"image-popup-styles_green__Op-GR",blue:"image-popup-styles_blue__jmJz5",image_popup:"image-popup-styles_image_popup__5GiiF",image_popup_dialog:"image-popup-styles_image_popup_dialog__PS-A4",image_popup_background:"image-popup-styles_image_popup_background__-zadh",mobile:"image-popup-styles_mobile__AMtK0",desktop:"image-popup-styles_desktop__AlqfT",image_popup_bg:"image-popup-styles_image_popup_bg__tBrIq",image_popup_close:"image-popup-styles_image_popup_close__iR5Yn",image_popup_logo:"image-popup-styles_image_popup_logo__PQh68",image_popup_content:"image-popup-styles_image_popup_content__dj5lj",image_popup_type:"image-popup-styles_image_popup_type__0OXS6",image_popup_title:"image-popup-styles_image_popup_title__DXVxT",image_popup_description:"image-popup-styles_image_popup_description__B1fzj",image_popup_timer:"image-popup-styles_image_popup_timer__m0VPD",image_popup_btn:"image-popup-styles_image_popup_btn__dLVg-"};let o3={Popup:er,Timer:eX,ImagePopup:({application:e,type:t,title:n,description:r,timer:i,btn:o,backgroundImage:a,backgroundColor:l,variant:c,show:u,onClose:d})=>(0,s.h)("div",{className:`${o6.image_popup} ${o6[c]}`,"data-show":u},(0,s.h)("div",{className:o6.image_popup_background}),(0,s.h)("div",{className:o6.image_popup_dialog,style:l?{backgroundColor:l}:void 0},(0,s.h)("img",{className:o6.image_popup_bg,src:a,alt:""}),(0,s.h)("button",{className:o6.image_popup_close,onClick:d}),(0,s.h)("div",{className:o6.image_popup_logo},(0,s.h)("span",null,e)),(0,s.h)("div",{className:o6.image_popup_content},(0,s.h)("p",{className:o6.image_popup_type},t),(0,s.h)("p",{className:o6.image_popup_title},n),(0,s.h)("p",{className:o6.image_popup_description},r),i&&(0,s.h)("div",{className:o6.image_popup_timer},i)),(0,s.h)("button",{className:o6.image_popup_btn,onClick:o.onClick},o.text)))}},14685:(e,t,n)=>{"use strict";n.r(t),n.d(t,{create:()=>o,default:()=>i});var r={};!function e(t,n,r,i){var o,s,a,l,c,u,d,h,p,f,g,m=!!(t.Worker&&t.Blob&&t.Promise&&t.OffscreenCanvas&&t.OffscreenCanvasRenderingContext2D&&t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype.transferControlToOffscreen&&t.URL&&t.URL.createObjectURL),v="function"==typeof Path2D&&"function"==typeof DOMMatrix;function y(){}function w(e){var r=n.exports.Promise,i=void 0!==r?r:t.Promise;return"function"==typeof i?new i(e):(e(y,y),null)}var b=(o=function(){if(!t.OffscreenCanvas)return!1;var e=new OffscreenCanvas(1,1),n=e.getContext("2d");n.fillRect(0,0,1,1);var r=e.transferToImageBitmap();try{n.createPattern(r,"no-repeat")}catch(e){return!1}return!0}(),s=new Map,{transform:function(e){if(o)return e;if(s.has(e))return s.get(e);var t=new OffscreenCanvas(e.width,e.height);return t.getContext("2d").drawImage(e,0,0),s.set(e,t),t},clear:function(){s.clear()}}),_=(c=Math.floor(1e3/60),u={},d=0,"function"==typeof requestAnimationFrame&&"function"==typeof cancelAnimationFrame?(a=function(e){var t=Math.random();return u[t]=requestAnimationFrame(function n(r){d===r||d+c-1<r?(d=r,delete u[t],e()):u[t]=requestAnimationFrame(n)}),t},l=function(e){u[e]&&cancelAnimationFrame(u[e])}):(a=function(e){return setTimeout(e,c)},l=function(e){return clearTimeout(e)}),{frame:a,cancel:l}),S=(f={},function(){if(h)return h;if(!r&&m){var t=["var CONFETTI, SIZE = {}, module = {};","("+e.toString()+")(this, module, true, SIZE);",`onmessage = function(msg) { 176 if (msg.data.options) { 177 CONFETTI(msg.data.options).then(function () { 178 if (msg.data.callback) { 179 postMessage({ callback: msg.data.callback }); 180 } 181 }); 182 } else if (msg.data.reset) { 183 CONFETTI && CONFETTI.reset(); 184 } else if (msg.data.resize) { 185 SIZE.width = msg.data.resize.width; 186 SIZE.height = msg.data.resize.height; 187 } else if (msg.data.canvas) { 188 SIZE.width = msg.data.canvas.width; 189 SIZE.height = msg.data.canvas.height; 190 CONFETTI = module.exports.create(msg.data.canvas); 191 } 192}`].join(` 193`);try{h=new Worker(URL.createObjectURL(new Blob([t])))}catch(e){return"function"==typeof console.warn&&console.warn("ð Could not load worker",e),null}var n=h;function i(e,t){n.postMessage({options:e||{},callback:t})}n.init=function(e){var t=e.transferControlToOffscreen();n.postMessage({canvas:t},[t])},n.fire=function(e,t,r){if(p)return i(e,null),p;var o=Math.random().toString(36).slice(2);return p=w(function(t){function s(e){e.data.callback===o&&(delete f[o],n.removeEventListener("message",s),p=null,b.clear(),r(),t())}n.addEventListener("message",s),i(e,o),f[o]=s.bind(null,{data:{callback:o}})})},n.reset=function(){for(var e in n.postMessage({reset:!0}),f)f[e](),delete f[e]}}return h}),x={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};
193function k(e,t,n){var r;return r=e&&null!=e[t]?e[t]:x[t],n?n(r):r}function E(e){return e<0?0:Math.floor(e)}function C(e){return parseInt(e,16)}function P(e){return e.map(T)}function T(e){var t=String(e).replace(/[^0-9a-f]/gi,"");return t.length<6&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]),{r:C(t.substring(0,2)),g:C(t.substring(2,4)),b:C(t.substring(4,6))}}function L(e){e.width=document.documentElement.clientWidth,e.height=document.documentElement.clientHeight}function I(e){var t=e.getBoundingClientRect();e.width=t.width,e.height=t.height}function O(e,n){var o,s=!e,a=!!k(n||{},"resize"),l=!1,c=k(n,"disableForReducedMotion",Boolean),u=m&&k(n||{},"useWorker")?S():null,d=s?L:I,h=!!e&&!!u&&!!e.__confetti_initialized,p="function"==typeof matchMedia&&matchMedia("(prefers-reduced-motion)").matches;function f(n){var f,g=c||k(n,"disableForReducedMotion",Boolean),m=k(n,"zIndex",Number);if(g&&p)return w(function(e){e()});s&&o?e=o.canvas:s&&!e&&((f=document.createElement("canvas")).style.position="fixed",f.style.top="0px",f.style.left="0px",f.style.pointerEvents="none",f.style.zIndex=m,e=f,document.body.appendChild(e)),a&&!h&&d(e);var y={width:e.width,height:e.height};function S(){if(u){var t={getBoundingClientRect:function(){if(!s)return e.getBoundingClientRect()}};d(t),u.postMessage({resize:{width:t.width,height:t.height}});return}y.width=y.height=null}function x(){o=null,a&&(l=!1,t.removeEventListener("resize",S)),s&&e&&(document.body.contains(e)&&document.body.removeChild(e),e=null,h=!1)}return(u&&!h&&u.init(e),h=!0,u&&(e.__confetti_initialized=!0),a&&!l&&(l=!0,t.addEventListener("resize",S,!1)),u)?u.fire(n,y,x):function(t,n,s){for(var a,l,c,u,h,p,f,g=k(t,"particleCount",E),m=k(t,"angle",Number),y=k(t,"spread",Number),S=k(t,"startVelocity",Number),x=k(t,"decay",Number),C=k(t,"gravity",Number),T=k(t,"drift",Number),L=k(t,"colors",P),I=k(t,"ticks",Number),O=k(t,"shapes"),A=k(t,"scalar"),M=!!k(t,"flat"),N=((a=k(t,"origin",Object)).x=k(a,"x",Number),a.y=k(a,"y",Number),a),D=g,R=[],B=e.width*N.x,F=e.height*N.y;D--;)R.push(function(e){var t=e.angle*(Math.PI/180),n=e.spread*(Math.PI/180);return{x:e.x,y:e.y,wobble:10*Math.random(),wobbleSpeed:Math.min(.11,.1*Math.random()+.05),velocity:.5*e.startVelocity+Math.random()*e.startVelocity,angle2D:-t+(.5*n-Math.random()*n),tiltAngle:(.5*Math.random()+.25)
193*Math.PI,color:e.color,shape:e.shape,tick:0,totalTicks:e.ticks,decay:e.decay,drift:e.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:3*e.gravity,ovalScalar:.6,scalar:e.scalar,flat:e.flat}}({x:B,y:F,angle:m,spread:y,startVelocity:S,color:L[D%L.length],shape:O[Math.floor(Math.random()*(O.length-0))+0],ticks:I,decay:x,gravity:C,drift:T,scalar:A,flat:M}));return o?o.addFettis(R):(l=e,h=R.slice(),p=l.getContext("2d"),f=w(function(e){function t(){c=u=null,p.clearRect(0,0,n.width,n.height),b.clear(),s(),e()}c=_.frame(function e(){r&&(n.width!==i.width||n.height!==i.height)&&(n.width=l.width=i.width,n.height=l.height=i.height),n.width||n.height||(d(l),n.width=l.width,n.height=l.height),p.clearRect(0,0,n.width,n.height),(h=h.filter(function(e){return function(e,t){t.x+=Math.cos(t.angle2D)*t.velocity+t.drift,t.y+=Math.sin(t.angle2D)*t.velocity+t.gravity,t.velocity*=t.decay,t.flat?(t.wobble=0,t.wobbleX=t.x+10*t.scalar,t.wobbleY=t.y+10*t.scalar,t.tiltSin=0,t.tiltCos=0,t.random=1):(t.wobble+=t.wobbleSpeed,t.wobbleX=t.x+10*t.scalar*Math.cos(t.wobble),t.wobbleY=t.y+10*t.scalar*Math.sin(t.wobble),t.tiltAngle+=.1,t.tiltSin=Math.sin(t.tiltAngle),t.tiltCos=Math.cos(t.tiltAngle),t.random=Math.random()+2);var n,r,i,o,s,a,l,c,u,d,h,p,f,g,m,y,w=t.tick++/t.totalTicks,_=t.x+t.random*t.tiltCos,S=t.y+t.random*t.tiltSin,x=t.wobbleX+t.random*t.tiltCos,k=t.wobbleY+t.random*t.tiltSin;if(e.fillStyle="rgba("+t.color.r+", "+t.color.g+", "+t.color.b+", "+(1-w)+")",e.beginPath(),v&&"path"===t.shape.type&&"string"==typeof t.shape.path&&Array.isArray(t.shape.matrix)){e.fill((n=t.shape.path,r=t.shape.matrix,i=t.x,o=t.y,s=.1*Math.abs(x-_),a=.1*Math.abs(k-S),l=Math.PI/10*t.wobble,c=new Path2D(n),(u=new Path2D).addPath(c,new DOMMatrix(r)),(d=new Path2D).addPath(u,new DOMMatrix([Math.cos(l)*s,Math.sin(l)*s,-Math.sin(l)*a,Math.cos(l)*a,i,o])),d))}else if("bitmap"===t.shape.type){var E=Math.PI/10*t.wobble,C=.1*Math.abs(x-_),P=.1*Math.abs(k-S),T=t.shape.bitmap.width*t.scalar,L=t.shape.bitmap.height*t.scalar,I=new DOMMatrix([Math.cos(E)*C,Math.sin(E)*C,-Math.sin(E)*P,Math.cos(E)*P,t.x,t.y]);I.multiplySelf(new DOMMatrix(t.shape.matrix));var O=e.createPattern(b.transform(t.shape.bitmap),"no-repeat");O.setTransform(I),e.globalAlpha=1-w,e.fillStyle=O,e.fillRect(t.x-T/2,t.y-L/2,T,L),e.globalAlpha=1}else if("circle"===t.shape)e.ellipse?e.ellipse(t.x,t.y,Math.abs(x-_)*t.ovalScalar,Math.abs(k-S)*t.ovalScalar,Math.PI/10*t.wobble,0,2*Math.PI):(h=t.x,p=t.y,f=Math.abs(x-_)*t.ovalScalar,g=Math.abs(k-S)*t.ovalScalar,m=Math.PI/10*t.wobble,y=2*Math.PI,e.save(),e.translate(h,p),e.rotate(m),e.scale(f,g),e.arc(0,0,1,0,y,void 0),e.restore());else if("star"===t.shape)for(var A=Math.PI/2*3,M=4*t.scalar,N=8*t.scalar,D=t.x,R=t.y,B=5,F=Math.PI/5;B--;)D=t.x+Math.cos(A)*N,R=t.y+Math.sin(A)*N,e.lineTo(D,R),A+=F,D=t.x+Math.cos(A)*M,R=t.y+Math.sin(A)*M,e.lineTo(D,R),A+=F;else e.moveTo(Math.floor(t.x),Math.floor(t.y)),e.lineTo(Math.floor(t.wobbleX),Math.floor(S)),e.lineTo(Math.floor(x),Math.floor(k)),e.lineTo(Math.floor(_),Math.floor(t.wobbleY));return e.closePath(),e.fill(),t.tick<t.totalTicks}(p,e)})).length?c=_.frame(e):t()}),u=t}),(o={addFettis:function(e){return h=h.concat(e),f},canvas:l,promise:f,reset:function(){c&&_.cancel(c),u&&u()}}).promise)}(n,y,x)}return f.reset=function(){u&&u.reset(),o&&o.reset()},f}function A(){return g||(g=O(null,{useWorker:!0,resize:!0})),g}n.exports=function(){return A().apply(this,arguments)},n.exports.reset=function(){A().reset()},n.exports.create=O,n.exports.shapeFromPath=function(e){if(!v)throw Error("path confetti are not supported in this browser");"string"==typeof e?r=e:(r=e.path,i=e.matrix);var t=new Path2D(r),n=document.createElement("canvas").getContext("2d");if(!i){for(var r,i,o,s,a=1e3,l=1e3,c=0,u=0,d=0;d<1e3;d+=2)for(var h=0;h<1e3;h+=2)n.isPointInPath(t,d,h,"nonzero")&&(a=Math.min(a,d),l=Math.min(l,h),c=Math.max(c,d),u=Math.max(u,h));o=c-a;var p=Math.min(10/o,10/(s=u-l));i=[p,0,0,p,-Math.round(o/2+a)*p,-Math.round(s/2+l)*p]}return{type:"path",path:r,matrix:i}},n.exports.shapeFromText=function(e){var t,n=1,r="#000000",i='"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif';"string"==typeof e?t=e:(t=e.text,n="scalar"in e?e.scalar:n,i="fontFamily"in e?e.fontFamily:i,r="color"in e?e.color:r);var o=10*n,s=""+o+"px "+i,a=new OffscreenCanvas(o,o),l=a.getContext("2d");l.font=s;var c=l.measureText(t),u=Math.ceil(c.actualBoundingBoxRight+c.actualBoundingBoxLeft),d=Math.ceil(c.actualBoundingBoxAscent+c.actualBoundingBoxDescent),h=c.actualBoundingBoxLeft+2,p=c.actualBoundingBoxAscent+2;u+=4,d+=4,(l=(a=new OffscreenCanvas(u,d)).getContext("2d")).font=s,l.fillStyle=r,l.fillText(t,h,p);var f=1/n;return{type:"bitmap",bitmap:a.transferToImageBitmap(),matrix:[f,0,0,f,-u*f/2,-d*f/2]}}}(function(){return"undefined"!=typeof window?window:"undefined"!=typeof self?self:this||{}}(),r,!1);let i=r.exports;var o=r.exports.create}
193,97283:(e,t,n)=>{"use strict";n.d(t,{y:()=>i});let r=e=>{let t,n=new Set,r=(e,r)=>{let i="function"==typeof e?e(t):e;if(!Object.is(i,t)){let e=t;t=(null!=r?r:"object"!=typeof i||null===i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,o={setState:r,getState:i,getInitialState:()=>s,subscribe:e=>(n.add(e),()=>n.delete(e))},s=t=e(r,i,o);return o},i=e=>e?r(e):r}},e=>{e(e.s=87372)}]);
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.