@bygd/gd-sdk-pes 1.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("@babel/runtime/helpers/newArrowCheck"),t=require("@babel/runtime/helpers/typeof"),n=require("@babel/runtime/helpers/defineProperty"),r=require("@babel/runtime/helpers/asyncToGenerator"),i=require("@babel/runtime/helpers/classCallCheck"),a=require("@babel/runtime/helpers/createClass"),o=require("@babel/runtime/regenerator"),s=require("@babel/runtime/helpers/objectWithoutProperties"),d=require("@bygd/gd-sdk-era/dist/default"),u=require("url-parse"),c=require("can-autoplay"),l=require("is-plain-object"),h=require("lodash.clonedeep"),f=require("querystringify"),p=require("lodash.merge"),m=require("js-base64");function g(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var v=g(e),y=g(t),b=g(n),_=g(r),A=g(i),w=g(a),E=g(o),k=g(s),D=g(u),x=g(c),T=g(h),S=g(f),R=g(p),O="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},I=function(e){return e&&e.Math==Math&&e},P=I("object"==typeof globalThis&&globalThis)||I("object"==typeof window&&window)||I("object"==typeof self&&self)||I("object"==typeof O&&O)||function(){return this}()||Function("return this")(),C={},L=function(e){try{return!!e()}catch(e){return!0}},j=!L((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),M={},U={}.propertyIsEnumerable,B=Object.getOwnPropertyDescriptor,G=B&&!U.call({1:2},1);M.f=G?function(e){var t=B(this,e);return!!t&&t.enumerable}:U;var N,q,V=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},F={}.toString,K=function(e){return F.call(e).slice(8,-1)},z=K,W="".split,H=L((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==z(e)?W.call(e,""):Object(e)}:Object,$=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},Y=H,Q=$,J=function(e){return Y(Q(e))},X=function(e){return"object"==typeof e?null!==e:"function"==typeof e},Z=P,ee=function(e){return"function"==typeof e?e:void 0},te=function(e,t){return arguments.length<2?ee(Z[e]):Z[e]&&Z[e][t]},ne=te("navigator","userAgent")||"",re=P,ie=ne,ae=re.process,oe=re.Deno,se=ae&&ae.versions||oe&&oe.version,de=se&&se.v8;de?q=(N=de.split("."))[0]<4?1:N[0]+N[1]:ie&&(!(N=ie.match(/Edge\/(\d+)/))||N[1]>=74)&&(N=ie.match(/Chrome\/(\d+)/))&&(q=N[1]);var ue=q&&+q,ce=ue,le=L,he=!!Object.getOwnPropertySymbols&&!le((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ce&&ce<41})),fe=he&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,pe=te,me=fe?function(e){return"symbol"==typeof e}:function(e){var t=pe("Symbol");return"function"==typeof t&&Object(e)instanceof t},ge=X,ve={exports:{}},ye=P,be=function(e,t){try{Object.defineProperty(ye,e,{value:t,configurable:!0,writable:!0})}catch(n){ye[e]=t}return t},_e=be,Ae=P["__core-js_shared__"]||_e("__core-js_shared__",{}),we=Ae;(ve.exports=function(e,t){return we[e]||(we[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.16.1",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"});var Ee=$,ke=function(e){return Object(Ee(e))},De=ke,xe={}.hasOwnProperty,Te=Object.hasOwn||function(e,t){return xe.call(De(e),t)},Se=0,Re=Math.random(),Oe=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++Se+Re).toString(36)},Ie=P,Pe=ve.exports,Ce=Te,Le=Oe,je=he,Me=fe,Ue=Pe("wks"),Be=Ie.Symbol,Ge=Me?Be:Be&&Be.withoutSetter||Le,Ne=function(e){return Ce(Ue,e)&&(je||"string"==typeof Ue[e])||(je&&Ce(Be,e)?Ue[e]=Be[e]:Ue[e]=Ge("Symbol."+e)),Ue[e]},qe=X,Ve=me,Fe=function(e,t){var n,r;if("string"===t&&"function"==typeof(n=e.toString)&&!ge(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!ge(r=n.call(e)))return r;if("string"!==t&&"function"==typeof(n=e.toString)&&!ge(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},Ke=Ne("toPrimitive"),ze=function(e,t){if(!qe(e)||Ve(e))return e;var n,r=e[Ke];if(void 0!==r){if(void 0===t&&(t="default"),n=r.call(e,t),!qe(n)||Ve(n))return n;throw TypeError("Can't convert object to primitive value")}return void 0===t&&(t="number"),Fe(e,t)},We=me,He=function(e){var t=ze(e,"string");return We(t)?t:String(t)},$e=X,Ye=P.document,Qe=$e(Ye)&&$e(Ye.createElement),Je=function(e){return Qe?Ye.createElement(e):{}},Xe=Je,Ze=!j&&!L((function(){return 7!=Object.defineProperty(Xe("div"),"a",{get:function(){return 7}}).a})),et=j,tt=M,nt=V,rt=J,it=He,at=Te,ot=Ze,st=Object.getOwnPropertyDescriptor;C.f=et?st:function(e,t){if(e=rt(e),t=it(t),ot)try{return st(e,t)}catch(e){}if(at(e,t))return nt(!tt.f.call(e,t),e[t])};var dt={},ut=X,ct=function(e){if(!ut(e))throw TypeError(String(e)+" is not an object");return e},lt=j,ht=Ze,ft=ct,pt=He,mt=Object.defineProperty;dt.f=lt?mt:function(e,t,n){if(ft(e),t=pt(t),ft(n),ht)try{return mt(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var gt=dt,vt=V,yt=j?function(e,t,n){return gt.f(e,t,vt(1,n))}:function(e,t,n){return e[t]=n,e},bt={exports:{}},_t=Ae,At=Function.toString;"function"!=typeof _t.inspectSource&&(_t.inspectSource=function(e){return At.call(e)});var wt,Et,kt,Dt=_t.inspectSource,xt=Dt,Tt=P.WeakMap,St="function"==typeof Tt&&/native code/.test(xt(Tt)),Rt=ve.exports,Ot=Oe,It=Rt("keys"),Pt=function(e){return It[e]||(It[e]=Ot(e))},Ct={},Lt=St,jt=X,Mt=yt,Ut=Te,Bt=Ae,Gt=Pt,Nt=Ct,qt=P.WeakMap;if(Lt||Bt.state){var Vt=Bt.state||(Bt.state=new qt),Ft=Vt.get,Kt=Vt.has,zt=Vt.set;wt=function(e,t){if(Kt.call(Vt,e))throw new TypeError("Object already initialized");return t.facade=e,zt.call(Vt,e,t),t},Et=function(e){return Ft.call(Vt,e)||{}},kt=function(e){return Kt.call(Vt,e)}}else{var Wt=Gt("state");Nt[Wt]=!0,wt=function(e,t){if(Ut(e,Wt))throw new TypeError("Object already initialized");return t.facade=e,Mt(e,Wt,t),t},Et=function(e){return Ut(e,Wt)?e[Wt]:{}},kt=function(e){return Ut(e,Wt)}}var Ht={set:wt,get:Et,has:kt,enforce:function(e){return kt(e)?Et(e):wt(e,{})},getterFor:function(e){return function(t){var n;if(!jt(t)||(n=Et(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},$t=P,Yt=yt,Qt=Te,Jt=be,Xt=Dt,Zt=Ht.get,en=Ht.enforce,tn=String(String).split("String");(bt.exports=function(e,t,n,r){var i,a=!!r&&!!r.unsafe,o=!!r&&!!r.enumerable,s=!!r&&!!r.noTargetGet;"function"==typeof n&&("string"!=typeof t||Qt(n,"name")||Yt(n,"name",t),(i=en(n)).source||(i.source=tn.join("string"==typeof t?t:""))),e!==$t?(a?!s&&e[t]&&(o=!0):delete e[t],o?e[t]=n:Yt(e,t,n)):o?e[t]=n:Jt(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&Zt(this).source||Xt(this)}));var nn={},rn=Math.ceil,an=Math.floor,on=function(e){return isNaN(e=+e)?0:(e>0?an:rn)(e)},sn=on,dn=Math.min,un=function(e){return e>0?dn(sn(e),9007199254740991):0},cn=on,ln=Math.max,hn=Math.min,fn=function(e,t){var n=cn(e);return n<0?ln(n+t,0):hn(n,t)},pn=J,mn=un,gn=fn,vn=function(e){return function(t,n,r){var i,a=pn(t),o=mn(a.length),s=gn(r,o);if(e&&n!=n){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},yn={includes:vn(!0),indexOf:vn(!1)},bn=Te,_n=J,An=yn.indexOf,wn=Ct,En=function(e,t){var n,r=_n(e),i=0,a=[];for(n in r)!bn(wn,n)&&bn(r,n)&&a.push(n);for(;t.length>i;)bn(r,n=t[i++])&&(~An(a,n)||a.push(n));return a},kn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Dn=En,xn=kn.concat("length","prototype");nn.f=Object.getOwnPropertyNames||function(e){return Dn(e,xn)};var Tn={};Tn.f=Object.getOwnPropertySymbols;var Sn=nn,Rn=Tn,On=ct,In=te("Reflect","ownKeys")||function(e){var t=Sn.f(On(e)),n=Rn.f;return n?t.concat(n(e)):t},Pn=Te,Cn=In,Ln=C,jn=dt,Mn=function(e,t){for(var n=Cn(t),r=jn.f,i=Ln.f,a=0;a<n.length;a++){var o=n[a];Pn(e,o)||r(e,o,i(t,o))}},Un=L,Bn=/#|\.prototype\./,Gn=function(e,t){var n=qn[Nn(e)];return n==Fn||n!=Vn&&("function"==typeof t?Un(t):!!t)},Nn=Gn.normalize=function(e){return String(e).replace(Bn,".").toLowerCase()},qn=Gn.data={},Vn=Gn.NATIVE="N",Fn=Gn.POLYFILL="P",Kn=Gn,zn=P,Wn=C.f,Hn=yt,$n=bt.exports,Yn=be,Qn=Mn,Jn=Kn,Xn=function(e,t){var n,r,i,a,o,s=e.target,d=e.global,u=e.stat;if(n=d?zn:u?zn[s]||Yn(s,{}):(zn[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=Wn(n,r))&&o.value:n[r],!Jn(d?r:s+(u?".":"#")+r,e.forced)&&void 0!==i){if(typeof a==typeof i)continue;Qn(a,i)}(e.sham||i&&i.sham)&&Hn(a,"sham",!0),$n(n,r,a,e)}},Zn=En,er=kn,tr=Object.keys||function(e){return Zn(e,er)},nr=ke,rr=tr;Xn({target:"Object",stat:!0,forced:L((function(){rr(1)}))},{keys:function(e){return rr(nr(e))}});var ir=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e},ar=ir,or=function(e,t,n){if(ar(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}},sr=K,dr=Array.isArray||function(e){return"Array"==sr(e)},ur=X,cr=dr,lr=Ne("species"),hr=function(e){var t;return cr(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!cr(t.prototype)?ur(t)&&null===(t=t[lr])&&(t=void 0):t=void 0),void 0===t?Array:t},fr=function(e,t){return new(hr(e))(0===t?0:t)},pr=or,mr=H,gr=ke,vr=un,yr=fr,br=[].push,_r=function(e){var t=1==e,n=2==e,r=3==e,i=4==e,a=6==e,o=7==e,s=5==e||a;return function(d,u,c,l){for(var h,f,p=gr(d),m=mr(p),g=pr(u,c,3),v=vr(m.length),y=0,b=l||yr,_=t?b(d,v):n||o?b(d,0):void 0;v>y;y++)if((s||y in m)&&(f=g(h=m[y],y,p),e))if(t)_[y]=f;else if(f)switch(e){case 3:return!0;case 5:return h;case 6:return y;case 2:br.call(_,h)}else switch(e){case 4:return!1;case 7:br.call(_,h)}return a?-1:r||i?i:_}},Ar={forEach:_r(0),map:_r(1),filter:_r(2),some:_r(3),every:_r(4),find:_r(5),findIndex:_r(6),filterReject:_r(7)},wr=L,Er=ue,kr=Ne("species"),Dr=function(e){return Er>=51||!wr((function(){var t=[];return(t.constructor={})[kr]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},xr=Ar.filter;Xn({target:"Array",proto:!0,forced:!Dr("filter")},{filter:function(e){return xr(this,e,arguments.length>1?arguments[1]:void 0)}});var Tr=Xn,Sr=L,Rr=J,Or=C.f,Ir=j,Pr=Sr((function(){Or(1)}));Tr({target:"Object",stat:!0,forced:!Ir||Pr,sham:!Ir},{getOwnPropertyDescriptor:function(e,t){return Or(Rr(e),t)}});var Cr=He,Lr=dt,jr=V,Mr=function(e,t,n){var r=Cr(t);r in e?Lr.f(e,r,jr(0,n)):e[r]=n},Ur=In,Br=J,Gr=C,Nr=Mr;Xn({target:"Object",stat:!0,sham:!j},{getOwnPropertyDescriptors:function(e){for(var t,n,r=Br(e),i=Gr.f,a=Ur(r),o={},s=0;a.length>s;)void 0!==(n=i(r,t=a[s++]))&&Nr(o,t,n);return o}});var qr={};qr[Ne("toStringTag")]="z";var Vr="[object z]"===String(qr),Fr=Vr,Kr=K,zr=Ne("toStringTag"),Wr="Arguments"==Kr(function(){return arguments}()),Hr=Fr?Kr:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),zr))?n:Wr?Kr(t):"Object"==(r=Kr(t))&&"function"==typeof t.callee?"Arguments":r},$r=Hr,Yr=Vr?{}.toString:function(){return"[object "+$r(this)+"]"},Qr=Vr,Jr=bt.exports,Xr=Yr;Qr||Jr(Object.prototype,"toString",Xr,{unsafe:!0});var Zr=P.Promise,ei=bt.exports,ti=X,ni=ct,ri=function(e){if(!ti(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e},ii=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return ni(n),ri(r),t?e.call(n,r):n.__proto__=r,n}}():void 0),ai=dt.f,oi=Te,si=Ne("toStringTag"),di=function(e,t,n){e&&!oi(e=n?e:e.prototype,si)&&ai(e,si,{configurable:!0,value:t})},ui=te,ci=dt,li=j,hi=Ne("species"),fi=function(e){var t=ui(e),n=ci.f;li&&t&&!t[hi]&&n(t,hi,{configurable:!0,get:function(){return this}})},pi={},mi=pi,gi=Ne("iterator"),vi=Array.prototype,yi=function(e){return void 0!==e&&(mi.Array===e||vi[gi]===e)},bi=Hr,_i=pi,Ai=Ne("iterator"),wi=function(e){if(null!=e)return e[Ai]||e["@@iterator"]||_i[bi(e)]},Ei=ct,ki=function(e){var t=e.return;if(void 0!==t)return Ei(t.call(e)).value},Di=ct,xi=yi,Ti=un,Si=or,Ri=wi,Oi=ki,Ii=function(e,t){this.stopped=e,this.result=t},Pi=Ne("iterator"),Ci=!1;try{var Li=0,ji={next:function(){return{done:!!Li++}},return:function(){Ci=!0}};ji[Pi]=function(){return this},Array.from(ji,(function(){throw 2}))}catch(e){}var Mi,Ui,Bi,Gi,Ni=function(e,t){if(!t&&!Ci)return!1;var n=!1;try{var r={};r[Pi]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},qi=ct,Vi=ir,Fi=Ne("species"),Ki=function(e,t){var n,r=qi(e).constructor;return void 0===r||null==(n=qi(r)[Fi])?t:Vi(n)},zi=te("document","documentElement"),Wi=/(?:iphone|ipod|ipad).*applewebkit/i.test(ne),Hi="process"==K(P.process),$i=P,Yi=L,Qi=or,Ji=zi,Xi=Je,Zi=Wi,ea=Hi,ta=$i.setImmediate,na=$i.clearImmediate,ra=$i.process,ia=$i.MessageChannel,aa=$i.Dispatch,oa=0,sa={};try{Mi=$i.location}catch(e){}var da=function(e){if(sa.hasOwnProperty(e)){var t=sa[e];delete sa[e],t()}},ua=function(e){return function(){da(e)}},ca=function(e){da(e.data)},la=function(e){$i.postMessage(String(e),Mi.protocol+"//"+Mi.host)};ta&&na||(ta=function(e){for(var t=[],n=arguments.length,r=1;n>r;)t.push(arguments[r++]);return sa[++oa]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},Ui(oa),oa},na=function(e){delete sa[e]},ea?Ui=function(e){ra.nextTick(ua(e))}:aa&&aa.now?Ui=function(e){aa.now(ua(e))}:ia&&!Zi?(Gi=(Bi=new ia).port2,Bi.port1.onmessage=ca,Ui=Qi(Gi.postMessage,Gi,1)):$i.addEventListener&&"function"==typeof postMessage&&!$i.importScripts&&Mi&&"file:"!==Mi.protocol&&!Yi(la)?(Ui=la,$i.addEventListener("message",ca,!1)):Ui="onreadystatechange"in Xi("script")?function(e){Ji.appendChild(Xi("script")).onreadystatechange=function(){Ji.removeChild(this),da(e)}}:function(e){setTimeout(ua(e),0)});var ha,fa,pa,ma,ga,va,ya,ba,_a={set:ta,clear:na},Aa=P,wa=/iphone|ipod|ipad/i.test(ne)&&void 0!==Aa.Pebble,Ea=/web0s(?!.*chrome)/i.test(ne),ka=P,Da=C.f,xa=_a.set,Ta=Wi,Sa=wa,Ra=Ea,Oa=Hi,Ia=ka.MutationObserver||ka.WebKitMutationObserver,Pa=ka.document,Ca=ka.process,La=ka.Promise,ja=Da(ka,"queueMicrotask"),Ma=ja&&ja.value;Ma||(ha=function(){var e,t;for(Oa&&(e=Ca.domain)&&e.exit();fa;){t=fa.fn,fa=fa.next;try{t()}catch(e){throw fa?ma():pa=void 0,e}}pa=void 0,e&&e.enter()},Ta||Oa||Ra||!Ia||!Pa?!Sa&&La&&La.resolve?((ya=La.resolve(void 0)).constructor=La,ba=ya.then,ma=function(){ba.call(ya,ha)}):ma=Oa?function(){Ca.nextTick(ha)}:function(){xa.call(ka,ha)}:(ga=!0,va=Pa.createTextNode(""),new Ia(ha).observe(va,{characterData:!0}),ma=function(){va.data=ga=!ga}));var Ua=Ma||function(e){var t={fn:e,next:void 0};pa&&(pa.next=t),fa||(fa=t,ma()),pa=t},Ba={},Ga=ir,Na=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=Ga(t),this.reject=Ga(n)};Ba.f=function(e){return new Na(e)};var qa,Va,Fa,Ka,za=ct,Wa=X,Ha=Ba,$a=function(e,t){if(za(e),Wa(t)&&t.constructor===e)return t;var n=Ha.f(e);return(0,n.resolve)(t),n.promise},Ya=P,Qa="object"==typeof window,Ja=Xn,Xa=P,Za=te,eo=Zr,to=bt.exports,no=function(e,t,n){for(var r in t)ei(e,r,t[r],n);return e},ro=ii,io=di,ao=fi,oo=X,so=ir,uo=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e},co=Dt,lo=function(e,t,n){var r,i,a,o,s,d,u,c=n&&n.that,l=!(!n||!n.AS_ENTRIES),h=!(!n||!n.IS_ITERATOR),f=!(!n||!n.INTERRUPTED),p=Si(t,c,1+l+f),m=function(e){return r&&Oi(r),new Ii(!0,e)},g=function(e){return l?(Di(e),f?p(e[0],e[1],m):p(e[0],e[1])):f?p(e,m):p(e)};if(h)r=e;else{if("function"!=typeof(i=Ri(e)))throw TypeError("Target is not iterable");if(xi(i)){for(a=0,o=Ti(e.length);o>a;a++)if((s=g(e[a]))&&s instanceof Ii)return s;return new Ii(!1)}r=i.call(e)}for(d=r.next;!(u=d.call(r)).done;){try{s=g(u.value)}catch(e){throw Oi(r),e}if("object"==typeof s&&s&&s instanceof Ii)return s}return new Ii(!1)},ho=Ni,fo=Ki,po=_a.set,mo=Ua,go=$a,vo=function(e,t){var n=Ya.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))},yo=Ba,bo=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},_o=Ht,Ao=Kn,wo=Qa,Eo=Hi,ko=ue,Do=Ne("species"),xo="Promise",To=_o.get,So=_o.set,Ro=_o.getterFor(xo),Oo=eo&&eo.prototype,Io=eo,Po=Oo,Co=Xa.TypeError,Lo=Xa.document,jo=Xa.process,Mo=yo.f,Uo=Mo,Bo=!!(Lo&&Lo.createEvent&&Xa.dispatchEvent),Go="function"==typeof PromiseRejectionEvent,No=!1,qo=Ao(xo,(function(){var e=co(Io),t=e!==String(Io);if(!t&&66===ko)return!0;if(ko>=51&&/native code/.test(e))return!1;var n=new Io((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[Do]=r,!(No=n.then((function(){}))instanceof r)||!t&&wo&&!Go})),Vo=qo||!ho((function(e){Io.all(e).catch((function(){}))})),Fo=function(e){var t;return!(!oo(e)||"function"!=typeof(t=e.then))&&t},Ko=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;mo((function(){for(var r=e.value,i=1==e.state,a=0;n.length>a;){var o,s,d,u=n[a++],c=i?u.ok:u.fail,l=u.resolve,h=u.reject,f=u.domain;try{c?(i||(2===e.rejection&&$o(e),e.rejection=1),!0===c?o=r:(f&&f.enter(),o=c(r),f&&(f.exit(),d=!0)),o===u.promise?h(Co("Promise-chain cycle")):(s=Fo(o))?s.call(o,l,h):l(o)):h(r)}catch(e){f&&!d&&f.exit(),h(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Wo(e)}))}},zo=function(e,t,n){var r,i;Bo?((r=Lo.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),Xa.dispatchEvent(r)):r={promise:t,reason:n},!Go&&(i=Xa["on"+e])?i(r):"unhandledrejection"===e&&vo("Unhandled promise rejection",n)},Wo=function(e){po.call(Xa,(function(){var t,n=e.facade,r=e.value;if(Ho(e)&&(t=bo((function(){Eo?jo.emit("unhandledRejection",r,n):zo("unhandledrejection",n,r)})),e.rejection=Eo||Ho(e)?2:1,t.error))throw t.value}))},Ho=function(e){return 1!==e.rejection&&!e.parent},$o=function(e){po.call(Xa,(function(){var t=e.facade;Eo?jo.emit("rejectionHandled",t):zo("rejectionhandled",t,e.value)}))},Yo=function(e,t,n){return function(r){e(t,r,n)}},Qo=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Ko(e,!0))},Jo=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw Co("Promise can't be resolved itself");var r=Fo(t);r?mo((function(){var n={done:!1};try{r.call(t,Yo(Jo,n,e),Yo(Qo,n,e))}catch(t){Qo(n,t,e)}})):(e.value=t,e.state=1,Ko(e,!1))}catch(t){Qo({done:!1},t,e)}}};if(qo&&(Po=(Io=function(e){uo(this,Io,xo),so(e),qa.call(this);var t=To(this);try{e(Yo(Jo,t),Yo(Qo,t))}catch(e){Qo(t,e)}}).prototype,(qa=function(e){So(this,{type:xo,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=no(Po,{then:function(e,t){var n=Ro(this),r=Mo(fo(this,Io));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=Eo?jo.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&Ko(n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),Va=function(){var e=new qa,t=To(e);this.promise=e,this.resolve=Yo(Jo,t),this.reject=Yo(Qo,t)},yo.f=Mo=function(e){return e===Io||e===Fa?new Va(e):Uo(e)},"function"==typeof eo&&Oo!==Object.prototype)){Ka=Oo.then,No||(to(Oo,"then",(function(e,t){var n=this;return new Io((function(e,t){Ka.call(n,e,t)})).then(e,t)}),{unsafe:!0}),to(Oo,"catch",Po.catch,{unsafe:!0}));try{delete Oo.constructor}catch(e){}ro&&ro(Oo,Po)}Ja({global:!0,wrap:!0,forced:qo},{Promise:Io}),io(Io,xo,!1),ao(xo),Fa=Za(xo),Ja({target:xo,stat:!0,forced:qo},{reject:function(e){var t=Mo(this);return t.reject.call(void 0,e),t.promise}}),Ja({target:xo,stat:!0,forced:qo},{resolve:function(e){return go(this,e)}}),Ja({target:xo,stat:!0,forced:Vo},{all:function(e){var t=this,n=Mo(t),r=n.resolve,i=n.reject,a=bo((function(){var n=so(t.resolve),a=[],o=0,s=1;lo(e,(function(e){var d=o++,u=!1;a.push(void 0),s++,n.call(t,e).then((function(e){u||(u=!0,a[d]=e,--s||r(a))}),i)})),--s||r(a)}));return a.error&&i(a.value),n.promise},race:function(e){var t=this,n=Mo(t),r=n.reject,i=bo((function(){var i=so(t.resolve);lo(e,(function(e){i.call(t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}});var Xo=Xn,Zo=Zr,es=L,ts=te,ns=Ki,rs=$a,is=bt.exports;if(Xo({target:"Promise",proto:!0,real:!0,forced:!!Zo&&es((function(){Zo.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=ns(this,ts("Promise")),n="function"==typeof e;return this.then(n?function(n){return rs(t,e()).then((function(){return n}))}:e,n?function(n){return rs(t,e()).then((function(){throw n}))}:e)}}),"function"==typeof Zo){var as=ts("Promise").prototype.finally;Zo.prototype.finally!==as&&is(Zo.prototype,"finally",as,{unsafe:!0})}var os=me,ss=function(e){if(os(e))throw TypeError("Cannot convert a Symbol value to a string");return String(e)},ds=ct,us=function(){var e=ds(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},cs={},ls=L,hs=function(e,t){return RegExp(e,t)};cs.UNSUPPORTED_Y=ls((function(){var e=hs("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),cs.BROKEN_CARET=ls((function(){var e=hs("^r","gy");return e.lastIndex=2,null!=e.exec("str")}));var fs,ps=dt,ms=ct,gs=tr,vs=j?Object.defineProperties:function(e,t){ms(e);for(var n,r=gs(t),i=r.length,a=0;i>a;)ps.f(e,n=r[a++],t[n]);return e},ys=ct,bs=vs,_s=kn,As=Ct,ws=zi,Es=Je,ks=Pt("IE_PROTO"),Ds=function(){},xs=function(e){return"<script>"+e+"<\/script>"},Ts=function(e){e.write(xs("")),e.close();var t=e.parentWindow.Object;return e=null,t},Ss=function(){try{fs=new ActiveXObject("htmlfile")}catch(e){}Ss=document.domain&&fs?Ts(fs):function(){var e,t=Es("iframe");if(t.style)return t.style.display="none",ws.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(xs("document.F=Object")),e.close(),e.F}()||Ts(fs);for(var e=_s.length;e--;)delete Ss.prototype[_s[e]];return Ss()};As[ks]=!0;var Rs=Object.create||function(e,t){var n;return null!==e?(Ds.prototype=ys(e),n=new Ds,Ds.prototype=null,n[ks]=e):n=Ss(),void 0===t?n:bs(n,t)},Os=L((function(){var e=RegExp(".","string".charAt(0));return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Is=L((function(){var e=RegExp("(?<a>b)","string".charAt(5));return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Ps=ss,Cs=us,Ls=cs,js=ve.exports,Ms=Rs,Us=Ht.get,Bs=Os,Gs=Is,Ns=RegExp.prototype.exec,qs=js("native-string-replace",String.prototype.replace),Vs=Ns,Fs=function(){var e=/a/,t=/b*/g;return Ns.call(e,"a"),Ns.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),Ks=Ls.UNSUPPORTED_Y||Ls.BROKEN_CARET,zs=void 0!==/()??/.exec("")[1];(Fs||zs||Ks||Bs||Gs)&&(Vs=function(e){var t,n,r,i,a,o,s,d=this,u=Us(d),c=Ps(e),l=u.raw;if(l)return l.lastIndex=d.lastIndex,t=Vs.call(l,c),d.lastIndex=l.lastIndex,t;var h=u.groups,f=Ks&&d.sticky,p=Cs.call(d),m=d.source,g=0,v=c;if(f&&(-1===(p=p.replace("y","")).indexOf("g")&&(p+="g"),v=c.slice(d.lastIndex),d.lastIndex>0&&(!d.multiline||d.multiline&&"\n"!==c.charAt(d.lastIndex-1))&&(m="(?: "+m+")",v=" "+v,g++),n=new RegExp("^(?:"+m+")",p)),zs&&(n=new RegExp("^"+m+"$(?!\\s)",p)),Fs&&(r=d.lastIndex),i=Ns.call(f?n:d,v),f?i?(i.input=i.input.slice(g),i[0]=i[0].slice(g),i.index=d.lastIndex,d.lastIndex+=i[0].length):d.lastIndex=0:Fs&&i&&(d.lastIndex=d.global?i.index+i[0].length:r),zs&&i&&i.length>1&&qs.call(i[0],n,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(i[a]=void 0)})),i&&h)for(i.groups=o=Ms(null),a=0;a<h.length;a++)o[(s=h[a])[0]]=i[s[1]];return i});var Ws=Vs;Xn({target:"RegExp",proto:!0,forced:/./.exec!==Ws},{exec:Ws});var Hs=bt.exports,$s=Ws,Ys=L,Qs=Ne,Js=yt,Xs=Qs("species"),Zs=RegExp.prototype,ed=function(e,t,n,r){var i=Qs(e),a=!Ys((function(){var t={};return t[i]=function(){return 7},7!=""[e](t)})),o=a&&!Ys((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[Xs]=function(){return n},n.flags="",n[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](""),!t}));if(!a||!o||n){var s=/./[i],d=t(i,""[e],(function(e,t,n,r,i){var o=t.exec;return o===$s||o===Zs.exec?a&&!i?{done:!0,value:s.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}));Hs(String.prototype,e,d[0]),Hs(Zs,i,d[1])}r&&Js(Zs[i],"sham",!0)},td=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t},nd=K,rd=Ws,id=function(e,t){var n=e.exec;if("function"==typeof n){var r=n.call(e,t);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==nd(e))throw TypeError("RegExp#exec called on incompatible receiver");return rd.call(e,t)},ad=ct,od=$,sd=td,dd=ss,ud=id;ed("search",(function(e,t,n){return[function(t){var n=od(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](dd(n))},function(e){var r=ad(this),i=dd(e),a=n(t,r,i);if(a.done)return a.value;var o=r.lastIndex;sd(o,0)||(r.lastIndex=0);var s=ud(r,i);return sd(r.lastIndex,o)||(r.lastIndex=o),null===s?-1:s.index}]}));var cd=$,ld=ss,hd="[\t\n\v\f\r \u2028\u2029\ufeff]",fd=RegExp("^"+hd+hd+"*"),pd=RegExp(hd+hd+"*$"),md=function(e){return function(t){var n=ld(cd(t));return 1&e&&(n=n.replace(fd,"")),2&e&&(n=n.replace(pd,"")),n}},gd={start:md(1),end:md(2),trim:md(3)},vd=L,yd="\t\n\v\f\r \u2028\u2029\ufeff",bd=gd.trim;Xn({target:"String",proto:!0,forced:function(e){return vd((function(){return!!yd[e]()||"
"!="
"[e]()||yd[e].name!==e}))}("trim")},{trim:function(){return bd(this)}});var _d={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},Ad=L,wd=Ar.forEach,Ed=P,kd=_d,Dd=function(e,t){var n=[][e];return!!n&&Ad((function(){n.call(null,t||function(){throw 1},1)}))}("forEach")?[].forEach:function(e){return wd(this,e,arguments.length>1?arguments[1]:void 0)},xd=yt;for(var Td in kd){var Sd=Ed[Td],Rd=Sd&&Sd.prototype;if(Rd&&Rd.forEach!==Dd)try{xd(Rd,"forEach",Dd)}catch(e){Rd.forEach=Dd}}var Od=X,Id=ii,Pd=X,Cd=K,Ld=Ne("match"),jd=function(e){var t;return Pd(e)&&(void 0!==(t=e[Ld])?!!t:"RegExp"==Cd(e))},Md=j,Ud=P,Bd=Kn,Gd=function(e,t,n){var r,i;return Id&&"function"==typeof(r=t.constructor)&&r!==n&&Od(i=r.prototype)&&i!==n.prototype&&Id(e,i),e},Nd=yt,qd=dt.f,Vd=nn.f,Fd=jd,Kd=ss,zd=us,Wd=cs,Hd=bt.exports,$d=L,Yd=Te,Qd=Ht.enforce,Jd=fi,Xd=Os,Zd=Is,eu=Ne("match"),tu=Ud.RegExp,nu=tu.prototype,ru=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,iu=/a/g,au=/a/g,ou=new tu(iu)!==iu,su=Wd.UNSUPPORTED_Y,du=Md&&(!ou||su||Xd||Zd||$d((function(){return au[eu]=!1,tu(iu)!=iu||tu(au)==au||"/a/i"!=tu(iu,"i")})));if(Bd("RegExp",du)){for(var uu=function(e,t){var n,r,i,a,o,s,d=this instanceof uu,u=Fd(e),c=void 0===t,l=[],h=e;if(!d&&u&&c&&e.constructor===uu)return e;if((u||e instanceof uu)&&(e=e.source,c&&(t="flags"in h?h.flags:zd.call(h))),e=void 0===e?"":Kd(e),t=void 0===t?"":Kd(t),h=e,Xd&&"dotAll"in iu&&(r=!!t&&t.indexOf("s")>-1)&&(t=t.replace(/s/g,"")),n=t,su&&"sticky"in iu&&(i=!!t&&t.indexOf("y")>-1)&&(t=t.replace(/y/g,"")),Zd&&(e=(a=function(e){for(var t,n=e.length,r=0,i="",a=[],o={},s=!1,d=!1,u=0,c="";r<=n;r++){if("\\"===(t=e.charAt(r)))t+=e.charAt(++r);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:ru.test(e.slice(r+1))&&(r+=2,d=!0),i+=t,u++;continue;case">"===t&&d:if(""===c||Yd(o,c))throw new SyntaxError("Invalid capture group name");o[c]=!0,a.push([c,u]),d=!1,c="";continue}d?c+=t:i+=t}return[i,a]}(e))[0],l=a[1]),o=Gd(tu(e,t),d?this:nu,uu),(r||i||l.length)&&(s=Qd(o),r&&(s.dotAll=!0,s.raw=uu(function(e){for(var t,n=e.length,r=0,i="",a=!1;r<=n;r++)"\\"!==(t=e.charAt(r))?a||"."!==t?("["===t?a=!0:"]"===t&&(a=!1),i+=t):i+="[\\s\\S]":i+=t+e.charAt(++r);return i}(e),n)),i&&(s.sticky=!0),l.length&&(s.groups=l)),e!==h)try{Nd(o,"source",""===h?"(?:)":h)}catch(e){}return o},cu=function(e){e in uu||qd(uu,e,{configurable:!0,get:function(){return tu[e]},set:function(t){tu[e]=t}})},lu=Vd(tu),hu=0;lu.length>hu;)cu(lu[hu++]);nu.constructor=uu,uu.prototype=nu,Hd(Ud,"RegExp",uu)}Jd("RegExp");var fu=bt.exports,pu=ct,mu=ss,gu=L,vu=us,yu=RegExp.prototype,bu=yu.toString,_u=gu((function(){return"/a/b"!=bu.call({source:"a",flags:"b"})})),Au="toString"!=bu.name;(_u||Au)&&fu(RegExp.prototype,"toString",(function(){var e=pu(this),t=mu(e.source),n=e.flags;return"/"+t+"/"+mu(void 0===n&&e instanceof RegExp&&!("flags"in yu)?vu.call(e):n)}),{unsafe:!0});var wu=Xn,Eu=L,ku=dr,Du=X,xu=ke,Tu=un,Su=Mr,Ru=fr,Ou=Dr,Iu=ue,Pu=Ne("isConcatSpreadable"),Cu=Iu>=51||!Eu((function(){var e=[];return e[Pu]=!1,e.concat()[0]!==e})),Lu=Ou("concat"),ju=function(e){if(!Du(e))return!1;var t=e[Pu];return void 0!==t?!!t:ku(e)};wu({target:"Array",proto:!0,forced:!Cu||!Lu},{concat:function(e){var t,n,r,i,a,o=xu(this),s=Ru(o,0),d=0;for(t=-1,r=arguments.length;t<r;t++)if(ju(a=-1===t?o:arguments[t])){if(d+(i=Tu(a.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<i;n++,d++)n in a&&Su(s,d,a[n])}else{if(d>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Su(s,d++,a)}return s.length=d,s}});var Mu,Uu=jd,Bu=function(e){if(Uu(e))throw TypeError("The method doesn't accept regular expressions");return e},Gu=Ne("match"),Nu=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[Gu]=!1,"/./"[e](t)}catch(e){}}return!1},qu=Xn,Vu=C.f,Fu=un,Ku=ss,zu=Bu,Wu=$,Hu=Nu,$u="".startsWith,Yu=Math.min,Qu=Hu("startsWith");qu({target:"String",proto:!0,forced:!!(Qu||(Mu=Vu(String.prototype,"startsWith"),!Mu||Mu.writable))&&!Qu},{startsWith:function(e){var t=Ku(Wu(this));zu(e);var n=Fu(Yu(arguments.length>1?arguments[1]:void 0,t.length)),r=Ku(e);return $u?$u.call(t,r,n):t.slice(n,n+r.length)===r}});var Ju=j,Xu=dt.f,Zu=Function.prototype,ec=Zu.toString,tc=/^\s*function ([^ (]*)/;Ju&&!("name"in Zu)&&Xu(Zu,"name",{configurable:!0,get:function(){try{return ec.call(this).match(tc)[1]}catch(e){return""}}});var nc=on,rc=ss,ic=$,ac=function(e){return function(t,n){var r,i,a=rc(ic(t)),o=nc(n),s=a.length;return o<0||o>=s?e?"":void 0:(r=a.charCodeAt(o))<55296||r>56319||o+1===s||(i=a.charCodeAt(o+1))<56320||i>57343?e?a.charAt(o):r:e?a.slice(o,o+2):i-56320+(r-55296<<10)+65536}},oc={codeAt:ac(!1),charAt:ac(!0)},sc=oc.charAt,dc=function(e,t,n){return t+(n?sc(e,t).length:1)},uc=ke,cc=Math.floor,lc="".replace,hc=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,fc=/\$([$&'`]|\d{1,2})/g,pc=ed,mc=L,gc=ct,vc=on,yc=un,bc=ss,_c=$,Ac=dc,wc=function(e,t,n,r,i,a){var o=n+e.length,s=r.length,d=fc;return void 0!==i&&(i=uc(i),d=hc),lc.call(a,d,(function(a,d){var u;switch(d.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(o);case"<":u=i[d.slice(1,-1)];break;default:var c=+d;if(0===c)return a;if(c>s){var l=cc(c/10);return 0===l?a:l<=s?void 0===r[l-1]?d.charAt(1):r[l-1]+d.charAt(1):a}u=r[c-1]}return void 0===u?"":u}))},Ec=id,kc=Ne("replace"),Dc=Math.max,xc=Math.min,Tc="$0"==="a".replace(/./,"$0"),Sc=!!/./[kc]&&""===/./[kc]("a","$0");pc("replace",(function(e,t,n){var r=Sc?"$":"$0";return[function(e,n){var r=_c(this),i=null==e?void 0:e[kc];return void 0!==i?i.call(e,r,n):t.call(bc(r),e,n)},function(e,i){var a=gc(this),o=bc(e);if("string"==typeof i&&-1===i.indexOf(r)&&-1===i.indexOf("$<")){var s=n(t,a,o,i);if(s.done)return s.value}var d="function"==typeof i;d||(i=bc(i));var u=a.global;if(u){var c=a.unicode;a.lastIndex=0}for(var l=[];;){var h=Ec(a,o);if(null===h)break;if(l.push(h),!u)break;""===bc(h[0])&&(a.lastIndex=Ac(o,yc(a.lastIndex),c))}for(var f,p="",m=0,g=0;g<l.length;g++){h=l[g];for(var v=bc(h[0]),y=Dc(xc(vc(h.index),o.length),0),b=[],_=1;_<h.length;_++)b.push(void 0===(f=h[_])?f:String(f));var A=h.groups;if(d){var w=[v].concat(b,y,o);void 0!==A&&w.push(A);var E=bc(i.apply(void 0,w))}else E=wc(v,o,y,b,A,i);y>=m&&(p+=o.slice(m,y)+E,m=y+v.length)}return p+o.slice(m)}]}),!!mc((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!Tc||Sc);var Rc={},Oc=J,Ic=nn.f,Pc={}.toString,Cc="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Rc.f=function(e){return Cc&&"[object Window]"==Pc.call(e)?function(e){try{return Ic(e)}catch(e){return Cc.slice()}}(e):Ic(Oc(e))};var Lc={},jc=Ne;Lc.f=jc;var Mc=P,Uc=Te,Bc=Lc,Gc=dt.f,Nc=function(e){var t=Mc.Symbol||(Mc.Symbol={});Uc(t,e)||Gc(t,e,{value:Bc.f(e)})},qc=Xn,Vc=P,Fc=te,Kc=j,zc=he,Wc=L,Hc=Te,$c=dr,Yc=X,Qc=me,Jc=ct,Xc=ke,Zc=J,el=He,tl=ss,nl=V,rl=Rs,il=tr,al=nn,ol=Rc,sl=Tn,dl=C,ul=dt,cl=M,ll=yt,hl=bt.exports,fl=ve.exports,pl=Ct,ml=Oe,gl=Ne,vl=Lc,yl=Nc,bl=di,_l=Ht,Al=Ar.forEach,wl=Pt("hidden"),El=gl("toPrimitive"),kl=_l.set,Dl=_l.getterFor("Symbol"),xl=Object.prototype,Tl=Vc.Symbol,Sl=Fc("JSON","stringify"),Rl=dl.f,Ol=ul.f,Il=ol.f,Pl=cl.f,Cl=fl("symbols"),Ll=fl("op-symbols"),jl=fl("string-to-symbol-registry"),Ml=fl("symbol-to-string-registry"),Ul=fl("wks"),Bl=Vc.QObject,Gl=!Bl||!Bl.prototype||!Bl.prototype.findChild,Nl=Kc&&Wc((function(){return 7!=rl(Ol({},"a",{get:function(){return Ol(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=Rl(xl,t);r&&delete xl[t],Ol(e,t,n),r&&e!==xl&&Ol(xl,t,r)}:Ol,ql=function(e,t){var n=Cl[e]=rl(Tl.prototype);return kl(n,{type:"Symbol",tag:e,description:t}),Kc||(n.description=t),n},Vl=function(e,t,n){e===xl&&Vl(Ll,t,n),Jc(e);var r=el(t);return Jc(n),Hc(Cl,r)?(n.enumerable?(Hc(e,wl)&&e[wl][r]&&(e[wl][r]=!1),n=rl(n,{enumerable:nl(0,!1)})):(Hc(e,wl)||Ol(e,wl,nl(1,{})),e[wl][r]=!0),Nl(e,r,n)):Ol(e,r,n)},Fl=function(e,t){Jc(e);var n=Zc(t),r=il(n).concat(Hl(n));return Al(r,(function(t){Kc&&!Kl.call(n,t)||Vl(e,t,n[t])})),e},Kl=function(e){var t=el(e),n=Pl.call(this,t);return!(this===xl&&Hc(Cl,t)&&!Hc(Ll,t))&&(!(n||!Hc(this,t)||!Hc(Cl,t)||Hc(this,wl)&&this[wl][t])||n)},zl=function(e,t){var n=Zc(e),r=el(t);if(n!==xl||!Hc(Cl,r)||Hc(Ll,r)){var i=Rl(n,r);return!i||!Hc(Cl,r)||Hc(n,wl)&&n[wl][r]||(i.enumerable=!0),i}},Wl=function(e){var t=Il(Zc(e)),n=[];return Al(t,(function(e){Hc(Cl,e)||Hc(pl,e)||n.push(e)})),n},Hl=function(e){var t=e===xl,n=Il(t?Ll:Zc(e)),r=[];return Al(n,(function(e){!Hc(Cl,e)||t&&!Hc(xl,e)||r.push(Cl[e])})),r};(zc||(hl((Tl=function(){if(this instanceof Tl)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?tl(arguments[0]):void 0,t=ml(e),n=function(e){this===xl&&n.call(Ll,e),Hc(this,wl)&&Hc(this[wl],t)&&(this[wl][t]=!1),Nl(this,t,nl(1,e))};return Kc&&Gl&&Nl(xl,t,{configurable:!0,set:n}),ql(t,e)}).prototype,"toString",(function(){return Dl(this).tag})),hl(Tl,"withoutSetter",(function(e){return ql(ml(e),e)})),cl.f=Kl,ul.f=Vl,dl.f=zl,al.f=ol.f=Wl,sl.f=Hl,vl.f=function(e){return ql(gl(e),e)},Kc&&(Ol(Tl.prototype,"description",{configurable:!0,get:function(){return Dl(this).description}}),hl(xl,"propertyIsEnumerable",Kl,{unsafe:!0}))),qc({global:!0,wrap:!0,forced:!zc,sham:!zc},{Symbol:Tl}),Al(il(Ul),(function(e){yl(e)})),qc({target:"Symbol",stat:!0,forced:!zc},{for:function(e){var t=tl(e);if(Hc(jl,t))return jl[t];var n=Tl(t);return jl[t]=n,Ml[n]=t,n},keyFor:function(e){if(!Qc(e))throw TypeError(e+" is not a symbol");if(Hc(Ml,e))return Ml[e]},useSetter:function(){Gl=!0},useSimple:function(){Gl=!1}}),qc({target:"Object",stat:!0,forced:!zc,sham:!Kc},{create:function(e,t){return void 0===t?rl(e):Fl(rl(e),t)},defineProperty:Vl,defineProperties:Fl,getOwnPropertyDescriptor:zl}),qc({target:"Object",stat:!0,forced:!zc},{getOwnPropertyNames:Wl,getOwnPropertySymbols:Hl}),qc({target:"Object",stat:!0,forced:Wc((function(){sl.f(1)}))},{getOwnPropertySymbols:function(e){return sl.f(Xc(e))}}),Sl)&&qc({target:"JSON",stat:!0,forced:!zc||Wc((function(){var e=Tl();return"[null]"!=Sl([e])||"{}"!=Sl({a:e})||"{}"!=Sl(Object(e))}))},{stringify:function(e,t,n){for(var r,i=[e],a=1;arguments.length>a;)i.push(arguments[a++]);if(r=t,(Yc(t)||void 0!==e)&&!Qc(e))return $c(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!Qc(t))return t}),i[1]=t,Sl.apply(null,i)}});Tl.prototype[El]||ll(Tl.prototype,El,Tl.prototype.valueOf),bl(Tl,"Symbol"),pl[wl]=!0;var $l=Xn,Yl=j,Ql=P,Jl=Te,Xl=X,Zl=dt.f,eh=Mn,th=Ql.Symbol;if(Yl&&"function"==typeof th&&(!("description"in th.prototype)||void 0!==th().description)){var nh={},rh=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof rh?new th(e):void 0===e?th():th(e);return""===e&&(nh[t]=!0),t};eh(rh,th);var ih=rh.prototype=th.prototype;ih.constructor=rh;var ah=ih.toString,oh="Symbol(test)"==String(th("test")),sh=/^Symbol\((.*)\)[^)]+$/;Zl(ih,"description",{configurable:!0,get:function(){var e=Xl(this)?this.valueOf():this,t=ah.call(e);if(Jl(nh,e))return"";var n=oh?t.slice(7,-1):t.replace(sh,"$1");return""===n?void 0:n}}),$l({global:!0,forced:!0},{Symbol:rh})}var dh=Rs,uh=dt,ch=Ne("unscopables"),lh=Array.prototype;null==lh[ch]&&uh.f(lh,ch,{configurable:!0,value:dh(null)});var hh=function(e){lh[ch][e]=!0},fh=yn.includes,ph=hh;Xn({target:"Array",proto:!0},{includes:function(e){return fh(this,e,arguments.length>1?arguments[1]:void 0)}}),ph("includes");var mh=Bu,gh=$,vh=ss;Xn({target:"String",proto:!0,forced:!Nu("includes")},{includes:function(e){return!!~vh(gh(this)).indexOf(vh(mh(e)),arguments.length>1?arguments[1]:void 0)}});var yh=Xn,bh=Ar.find,_h=hh,Ah=!0;"find"in[]&&Array(1).find((function(){Ah=!1})),yh({target:"Array",proto:!0,forced:Ah},{find:function(e){return bh(this,e,arguments.length>1?arguments[1]:void 0)}}),_h("find");var wh="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==wh&&wh,Eh="URLSearchParams"in wh,kh="Symbol"in wh&&"iterator"in Symbol,Dh="FileReader"in wh&&"Blob"in wh&&function(){try{return new Blob,!0}catch(e){return!1}}(),xh="FormData"in wh,Th="ArrayBuffer"in wh;if(Th)var Sh=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],Rh=ArrayBuffer.isView||function(e){return e&&Sh.indexOf(Object.prototype.toString.call(e))>-1};function Oh(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function Ih(e){return"string"!=typeof e&&(e=String(e)),e}function Ph(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return kh&&(t[Symbol.iterator]=function(){return t}),t}function Ch(e){this.map={},e instanceof Ch?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function Lh(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function jh(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function Mh(e){var t=new FileReader,n=jh(t);return t.readAsArrayBuffer(e),n}function Uh(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function Bh(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:Dh&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:xh&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:Eh&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():Th&&Dh&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=Uh(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):Th&&(ArrayBuffer.prototype.isPrototypeOf(e)||Rh(e))?this._bodyArrayBuffer=Uh(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):Eh&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},Dh&&(this.blob=function(){var e=Lh(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=Lh(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(Mh)}),this.text=function(){var e=Lh(this);if(e)return e;if(this._bodyBlob)return function(e){var t=new FileReader,n=jh(t);return t.readAsText(e),n}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},xh&&(this.formData=function(){return this.text().then(qh)}),this.json=function(){return this.text().then(JSON.parse)},this}Ch.prototype.append=function(e,t){e=Oh(e),t=Ih(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},Ch.prototype.delete=function(e){delete this.map[Oh(e)]},Ch.prototype.get=function(e){return e=Oh(e),this.has(e)?this.map[e]:null},Ch.prototype.has=function(e){return this.map.hasOwnProperty(Oh(e))},Ch.prototype.set=function(e,t){this.map[Oh(e)]=Ih(t)},Ch.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},Ch.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),Ph(e)},Ch.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),Ph(e)},Ch.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),Ph(e)},kh&&(Ch.prototype[Symbol.iterator]=Ch.prototype.entries);var Gh=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Nh(e,t){if(!(this instanceof Nh))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n=(t=t||{}).body;if(e instanceof Nh){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new Ch(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new Ch(t.headers)),this.method=function(e){var t=e.toUpperCase();return Gh.indexOf(t)>-1?t:e}(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var r=/([?&])_=[^&]*/;if(r.test(this.url))this.url=this.url.replace(r,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function qh(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function Vh(e,t){if(!(this instanceof Vh))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new Ch(t.headers),this.url=t.url||"",this._initBody(e)}Nh.prototype.clone=function(){return new Nh(this,{body:this._bodyInit})},Bh.call(Nh.prototype),Bh.call(Vh.prototype),Vh.prototype.clone=function(){return new Vh(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Ch(this.headers),url:this.url})},Vh.error=function(){var e=new Vh(null,{status:0,statusText:""});return e.type="error",e};var Fh=[301,302,303,307,308];Vh.redirect=function(e,t){if(-1===Fh.indexOf(t))throw new RangeError("Invalid status code");return new Vh(null,{status:t,headers:{location:e}})};var Kh=wh.DOMException;try{new Kh}catch(e){(Kh=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),Kh.prototype.constructor=Kh}function zh(e,t){return new Promise((function(n,r){var i=new Nh(e,t);if(i.signal&&i.signal.aborted)return r(new Kh("Aborted","AbortError"));var a=new XMLHttpRequest;function o(){a.abort()}a.onload=function(){var e,t,r={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",t=new Ch,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}})),t)};r.url="responseURL"in a?a.responseURL:r.headers.get("X-Request-URL");var i="response"in a?a.response:a.responseText;setTimeout((function(){n(new Vh(i,r))}),0)},a.onerror=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},a.ontimeout=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},a.onabort=function(){setTimeout((function(){r(new Kh("Aborted","AbortError"))}),0)},a.open(i.method,function(e){try{return""===e&&wh.location.href?wh.location.href:e}catch(t){return e}}(i.url),!0),"include"===i.credentials?a.withCredentials=!0:"omit"===i.credentials&&(a.withCredentials=!1),"responseType"in a&&(Dh?a.responseType="blob":Th&&i.headers.get("Content-Type")&&-1!==i.headers.get("Content-Type").indexOf("application/octet-stream")&&(a.responseType="arraybuffer")),!t||"object"!=typeof t.headers||t.headers instanceof Ch?i.headers.forEach((function(e,t){a.setRequestHeader(t,e)})):Object.getOwnPropertyNames(t.headers).forEach((function(e){a.setRequestHeader(e,Ih(t.headers[e]))})),i.signal&&(i.signal.addEventListener("abort",o),a.onreadystatechange=function(){4===a.readyState&&i.signal.removeEventListener("abort",o)}),a.send(void 0===i._bodyInit?null:i._bodyInit)}))}zh.polyfill=!0,wh.fetch||(wh.fetch=zh,wh.Headers=Ch,wh.Request=Nh,wh.Response=Vh);var Wh="1.16.0",Hh=ed,$h=jd,Yh=ct,Qh=$,Jh=Ki,Xh=dc,Zh=un,ef=ss,tf=id,nf=Ws,rf=L,af=cs.UNSUPPORTED_Y,of=[].push,sf=Math.min;Hh("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=ef(Qh(this)),i=void 0===n?4294967295:n>>>0;if(0===i)return[];if(void 0===e)return[r];if(!$h(e))return t.call(r,e,i);for(var a,o,s,d=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),c=0,l=new RegExp(e.source,u+"g");(a=nf.call(l,r))&&!((o=l.lastIndex)>c&&(d.push(r.slice(c,a.index)),a.length>1&&a.index<r.length&&of.apply(d,a.slice(1)),s=a[0].length,c=o,d.length>=i));)l.lastIndex===a.index&&l.lastIndex++;return c===r.length?!s&&l.test("")||d.push(""):d.push(r.slice(c)),d.length>i?d.slice(0,i):d}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var i=Qh(this),a=null==t?void 0:t[e];return void 0!==a?a.call(t,i,n):r.call(ef(i),t,n)},function(e,i){var a=Yh(this),o=ef(e),s=n(r,a,o,i,r!==t);if(s.done)return s.value;var d=Jh(a,RegExp),u=a.unicode,c=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(af?"g":"y"),l=new d(af?"^(?:"+a.source+")":a,c),h=void 0===i?4294967295:i>>>0;if(0===h)return[];if(0===o.length)return null===tf(l,o)?[o]:[];for(var f=0,p=0,m=[];p<o.length;){l.lastIndex=af?0:p;var g,v=tf(l,af?o.slice(p):o);if(null===v||(g=sf(Zh(l.lastIndex+(af?p:0)),o.length))===f)p=Xh(o,p,u);else{if(m.push(o.slice(f,p)),m.length===h)return m;for(var y=1;y<=v.length-1;y++)if(m.push(v[y]),m.length===h)return m;p=f=g}}return m.push(o.slice(f)),m}]}),!!rf((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]})),af);var df=ct,uf=un,cf=ss,lf=$,hf=dc,ff=id;ed("match",(function(e,t,n){return[function(t){var n=lf(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](cf(n))},function(e){var r=df(this),i=cf(e),a=n(t,r,i);if(a.done)return a.value;if(!r.global)return ff(r,i);var o=r.unicode;r.lastIndex=0;for(var s,d=[],u=0;null!==(s=ff(r,i));){var c=cf(s[0]);d[u]=c,""===c&&(r.lastIndex=hf(i,uf(r.lastIndex),o)),u++}return 0===u?null:d}]}));var pf=function(){function e(t){A.default(this,e),this.gameData=t}return w.default(e,[{key:"_getFakeCustomParams",value:function(){var e={_vid:["bla_bla1","bla_bla2","bla_bla3"],_1ld:["1ld_1","1ld_2","1ld_3","1ld_4"],_1lp:["1lp_1","1lp_2"]},t={};for(var n in e){var r=e[n];t[n]=r[Math.floor(Math.random()*r.length)]}return t}},{key:"checkCustomParams",value:function(){try{var e={};if(this.gameData.diagnostic&&this.gameData.diagnostic.cp&&this.gameData.diagnostic.cp.enabled){var t=new D.default(location.href,!0);for(var n in t.query)e[n]=t.query[n];Object.keys(e).length;return e}}catch(e){console.log("_checkCustomParams.Error",e)}}}]),e}(),mf=function(){function e(t,n){A.default(this,e),this.adContainer=t,this.onResume=n}return w.default(e,[{key:"show",value:function(){this.adResumeButton.style.display="block",this.adResumeButtonOverlay.style.display="block"}},{key:"hide",value:function(){this.adResumeButton.style.display="none",this.adResumeButtonOverlay.style.display="none"}},{key:"add",value:function(){var e=this;try{var t=document.createElement("div");this.adResumeButton=t,t.id="gd__resume__button",t.setAttribute("title","Resume"),this.addStyles(),t.classList.add("gd__resume__button"),t.addEventListener("click",function(){v.default(this,e),this.onResume()}.bind(this)),this.adContainer.appendChild(t);var n=document.createElement("div");this.adResumeButtonOverlay=n,n.id="gd__resume__button__overlay",n.classList.add("gd__resume__button__overlay"),this.adContainer.appendChild(n)}catch(e){console.log("Resume button add error",e)}}},{key:"addStyles",value:function(){var e=document.body||document.getElementsByTagName("body")[0];this.addStylesheet("gd__resume__button__style",e,'\n .gd__resume__button{\n background-image: url("https://img.gamedistribution.com/play-black.svg");\n background-color:white; \n width: 120px;\n height: 120px;\n position: absolute;\n display: none;\n z-index: 2000;\n cursor: pointer;\n top: calc(50% - 60px);\n left: calc(50% - 60px);\n margin: 0;\n border-radius: 50%;\n border: 2px solid white;\n animation: play-button 1s ease-in-out infinite alternate;\n -webkit-animation: play-button 1s ease-in-out infinite alternate;\n }\n \n .gd__resume__button__overlay {\n position: fixed;\n display: none;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: rgba(0,0,0,0.5);\n z-index: 1999;\n cursor: pointer;\n }\n @keyframes play-button {\n 0% {\n transform: scale(1.0);\n -webkit-transform: scale(1.0);\n }\n 100% {\n transform: scale(1.1);\n -webkit-transform: scale(1.1);\n }\n }\n .gd__resume__button:hover{\n filter: invert(100%) sepia(51%) saturate(0%) hue-rotate(346deg) brightness(104%) contrast(100%); \n }\n ')}},{key:"addStylesheet",value:function(e,t,n){if(!document.getElementById(e)){var r=document.createElement("style");r.type="text/css",r.id=e,r.styleSheet?r.styleSheet.cssText=n:r.appendChild(document.createTextNode(n)),t.appendChild(r)}}}]),e}(),gf=function(e){if(!e)return!1;var t=vf.call(e);return"[object Function]"===t||"function"==typeof e&&"[object RegExp]"!==t||"undefined"!=typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)},vf=Object.prototype.toString;function yf(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 bf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yf(Object(n),!0).forEach((function(t){b.default(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _f(e){return null!=e&&e.error_url?"<vmap:VASTAdData>".concat(function(e){return e.promo_url?'<VAST version="3.0">\n <Ad id="'.concat(e.id,'">\n <Wrapper fallbackOnNoAd="true">\n <AdSystem>GDFP</AdSystem>\n <Error><![CDATA[').concat(e.error_url,"]]></Error>\n <Impression><![CDATA[").concat(e.impression_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.adtag_url,']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="0" />\n </Extensions>\n </Wrapper>\n </Ad>\n <Ad id="promo">\n <Wrapper>\n <AdSystem>Rainbow</AdSystem>\n <Impression><![CDATA[').concat(e.promo_imp_green_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.promo_url,']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="1" />\n </Extensions>\n </Wrapper>\n </Ad>\n </VAST>').trim():'<VAST version="3.0">\n <Ad id="'.concat(e.id,'">\n <Wrapper>\n <AdSystem>GDFP</AdSystem>\n <Error><![CDATA[').concat(e.error_url,"]]></Error>\n <Impression><![CDATA[").concat(e.impression_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.adtag_url,"]]></VASTAdTagURI>\n </Wrapper>\n </Ad>\n </VAST>").trim()}(e),"</vmap:VASTAdData>").trim():'<vmap:AdTagURI templateType="vast3"><![CDATA['.concat(null==e?void 0:e.adtag_url,"]]></vmap:AdTagURI>").trim()}var Af=["bidFloor","isDfpBidding"];function wf(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 Ef(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wf(Object(n),!0).forEach((function(t){b.default(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var kf=null,Df=function(){function e(t,n,r){var i=this;if(A.default(this,e),kf)return kf;kf=this;var a={debug:!1,width:640,height:360,locale:"en"};this.options=n?d.extendDefaults(a,n):a,this.prefix="gdsdk__",this.adsLoader=null,this.adsManager=null,this.adDisplayContainer=null,this.eventBus=new d.EventBus,this.safetyTimer=null,this.containerTransitionSpeed=0,this.adCounter={},this.adPrerollCount=0,this.adMidrollCount=0,this.adRewardedCount=0,this.preloadedAdType=null,this.requestRunning=!1,this.parentDomain=r.parentDomain,this.topDomain=r.topDomain,this.parentURL=r.parentURL,this.adDisplayContainerInitialized=!1,this.IMASampleTags=d.getIMASampleTags(),this.atom_display,this.userAllowedPersonalizedAds=document.location.search.indexOf("gdpr-targeting=0")>=0||document.cookie.indexOf("ogdpr_advertisement=0")>=0?"0":"1",this.parentDomain.includes("girlsgogames")&&(this.userAllowedPersonalizedAds=!1),this.thirdPartyContainer=""!==t?document.getElementById(t):null,this.options.width="number"==typeof this.options.width?this.options.width:"100%"===this.options.width?640:this.options.width.replace(/[^0-9]/g,""),this.options.height="number"==typeof this.options.height?this.options.height:"100%"===this.options.height?360:this.options.height.replace(/[^0-9]/g,"");var o=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,s=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;this.options.width=this.thirdPartyContainer?this.thirdPartyContainer.offsetWidth:o,this.options.height=this.thirdPartyContainer?this.thirdPartyContainer.offsetHeight:s,this.gameId="0",this.category="",this.tags=[],this.eventCategory="AD",this.eventBus.subscribe("LOADED",function(){v.default(this,i),this._clearSafetyTimer("LOADED"),this._startSafetyTimer(8e3,"LOADED")}.bind(this),"ima"),this.eventBus.subscribe("STARTED",function(){v.default(this,i),this._clearSafetyTimer("STARTED")}.bind(this),"ima")}var t,n,r,i,a,o,s,u,c,h,f,p;return w.default(e,[{key:"start",value:(p=_.default(E.default.mark((function e(){var t,n,r,i,a=this;return E.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t=this._getPrebidScripts(),n=t[0],window.HB_OPTIONSgd={gameId:this.gameId},e.next=6,d.getScript(n,"gdsdk_prebid",{alternates:t,error_prefix:"Blocked:",exists:function(){return v.default(this,a),window.idhb}.bind(this)});case 6:return window.idhb=window.idhb||{},window.idhb.que=window.idhb.que||[],window.idhb.que.push(function(){var e=this;v.default(this,a),window.idhb.addEventListener("slotRenderEnded",function(t){var n=this;v.default(this,e);try{var r,i=t.slotId.split("@");i=1===i.length?i[0]:i[1],t.isEmpty?(null!==(r=this.atom_display)&&void 0!==r&&r.error_url&&(fetch(this.atom_display.error_url).catch(function(e){v.default(this,n)}.bind(this)),delete this.atom_display),this.eventBus.broadcast("DISPLAYAD_ERROR",{message:i,status:"warning"})):(this.atom_display.impression_url&&(fetch(this.atom_display.impression_url).catch(function(e){v.default(this,n)}.bind(this)),delete this.atom_display),this.eventBus.broadcast("DISPLAYAD_IMPRESSION",{message:i,status:"success"}))}catch(e){}}.bind(this))}.bind(this)),r=["https://imasdk.googleapis.com/js/sdkloader/ima3_debug.js","https://imasdk.googleapis.com/js/sdkloader/ima3.js","http://imasdk.googleapis.com/js/sdkloader/ima3_debug.js","http://imasdk.googleapis.com/js/sdkloader/ima3.js"],i=this.options.debug?r[0]:r[1],e.next=13,d.getScript(i,"gdsdk_ima",{alternates:r,error_prefix:"Blocked:",exists:function(){return v.default(this,a),window.google&&window.google.ima}.bind(this)});case 13:this._createPlayer(),this._setUpIMA(),e.next=20;break;case 17:throw e.prev=17,e.t0=e.catch(0),new Error(e.t0);case 20:case"end":return e.stop()}}),e,this,[[0,17]])}))),function(){return p.apply(this,arguments)})},{key:"_getAdVast",value:function(e,t){var n=this;return new Promise(function(){var r=_.default(E.default.mark((function r(i){var a,o,s,u,c,h,f,p,m,g,y=this;return E.default.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(d.Ls.available&&d.Ls.getBoolean("gd_debug_ex")&&d.Ls.getBoolean("gd_tag"))){r.next=6;break}return a=n.IMASampleTags[e],o=Math.floor(Math.random()*a.length),s=a[o],i({url:s}),r.abrupt("return");case 6:if(void 0!==window.idhb.requestAds){r.next=8;break}throw new Error("Prebid.js wrapper script hit an error or didn't exist!");case 8:return r.prev=8,r.next=11,n._getTunnlKeys(e);case 11:if(u=r.sent,c=u.data,h=c.nsid?c.nsid:"TNL_T-17102571517",f=c.tid?c.tid:"TNL_NS-18101700058",p="".concat(h,"/").concat(f),delete c.nsid,delete c.tid,R.default(c,{tnl_system:"1",tnl_content_category:n.category.toLowerCase()}),n.eventBus.broadcast("AD_REQUEST",{message:c.tnl_ad_pos}),m=n.options,"preroll"===c.tnl_ad_pos&&l.isPlainObject(m.preroll)?m=m.preroll:"midroll"===c.tnl_ad_pos&&l.isPlainObject(m.midroll)?m=m.midroll:"rewarded"===c.tnl_ad_pos&&l.isPlainObject(m.rewarded)&&(m=m.rewarded),!(t&&t.retry_on_success&&l.isPlainObject(m.retry_on_success)&&l.isPlainObject(m.retry_on_success.vast))){r.next=26;break}return r.abrupt("return",i(n._createCustomAdVastUrl(m.retry_on_success.vast,{tnl_keys:c})));case 26:if(!(t&&t.retry_on_failure&&n.options.retry_on_failure&&l.isPlainObject(m.retry_on_failure.vast))){r.next=30;break}return r.abrupt("return",i(n._createCustomAdVastUrl(m.retry_on_failure.vast,{tnl_keys:c})));case 30:if(!l.isPlainObject(m.vast)){r.next=32;break}return r.abrupt("return",i(n._createCustomAdVastUrl(m.vast,{tnl_keys:c})));case 32:return r.next=34,n._create_dp_context(c.tnl_ad_pos);case 34:g=r.sent,window.idhb.que.push(function(){var e=this;v.default(this,y),window.idhb.setRefererUrl(encodeURIComponent(n.parentURL)),window.idhb.allowPersonalizedAds(!!parseInt(n.userAllowedPersonalizedAds));var t="rewarded"===c.tnl_ad_pos?"rewardedVideo":"gdbanner"===c.tnl_ad_pos?"gd__banner":"midroll"===c.tnl_ad_pos?"midroll":"video1";window.idhb.setDfpAdUnitCodeForAdSlot(t,p),window.idhb.setAdserverTargetingForAdSlot(t,c),window.idhb.requestAds({slots:b.default({},t,{bidFloor:null!=g&&g.floor_price?g.floor_price:void 0}),callback:function(t,n){var r=this;v.default(this,e),g&&!n.bidFloorApplied&&fetch(g.skip_url).catch(function(e){v.default(this,r)}.bind(this)),i({tnl_keys:c,url:t,dp:g,hl:n})}.bind(this)})}.bind(this)),r.next=41;break;case 38:throw r.prev=38,r.t0=r.catch(8),new Error(r.t0);case 41:case"end":return r.stop()}}),r,this,[[8,38]])})));return function(e){return r.apply(this,arguments)}}())}},{key:"nextAdPosition",value:function(e){if(e===d.AdType.Rewarded)return this.adRewardedCount++,"rewarded";if(e===d.AdType.Interstitial){var t=!1===this.gameData.preroll||!0===this.noPreroll||1===this.adPrerollCount;return t?this.adMidrollCount++:this.adPrerollCount++,t||this.adMidrollCount>0?"midroll":"preroll"}return"midroll"}},{key:"getAdPosition",value:function(e){return e===d.AdType.Rewarded?"rewarded":e===d.AdType.Interstitial?!1===this.gameData.preroll||!0===this.noPreroll||1===this.adPrerollCount||this.adMidrollCount>0?"midroll":"preroll":"midroll"}},{key:"_getTunnlKeys",value:function(e){var t=this;return new Promise(function(n){var r=this;v.default(this,t);var i="";i=!navigator.userAgent.match(/Crosswalk/i)&&void 0===window.cordova||"m.hopy.com"!==this.parentDomain?"page_url=".concat(encodeURIComponent(this.parentURL)):"bundle=com.hopy.frivgames";var a=this.nextAdPosition(e),o=d.getQueryString("ch",window.location.href),s=d.getQueryString("ch_date",window.location.href),u=o?"&ch=".concat(o):"",c=s?"&ch_date=".concat(s):"",l="https://pub.headerlift.com/opphb?".concat(i,"&player_width=").concat(this.options.width,"&player_height=").concat(this.options.height,"&ad_type=video_image&game_id=").concat(this.gameId,"&ad_position=").concat(a).concat(u).concat(c,"&correlator=").concat(Date.now()),h=new Request(l,{method:"GET"});fetch(h).then(function(e){v.default(this,r);var t=e.headers.get("content-type");if(t&&-1!==t.indexOf("application/json"))return e.json();throw new TypeError("Oops, we didn't get JSON!")}.bind(this)).then(function(e){v.default(this,r),d.isObjectEmpty(e)&&(e=this._createTunnlReportingFallbackKeys(a),this.eventBus.broadcast("AD_REQUEST_KEYS_EMPTY",{message:"Tunnl returned empty response.",details:l})),n({data:e,url:l})}.bind(this)).catch(function(e){v.default(this,r);var t=this._createTunnlReportingFallbackKeys(a);this.eventBus.broadcast("AD_REQUEST_KEYS_FALLBACK",{message:e.message,details:l}),n({data:t,url:l})}.bind(this))}.bind(this))}},{key:"_createTunnlReportingFallbackKeys",value:function(e){return{tid:"TNL_T-17102571517",nsid:"TNL_NS-18101700058",tnl_tid:"T-17102571517",tnl_nsid:"NS-18101700058",tnl_pw:this.options.width,tnl_ph:this.options.height,tnl_pt:"22",tnl_pid:"P-17101800031",tnl_paid:"17",tnl_ad_type:"video_image",tnl_asset_id:this.gameId.toString(),tnl_ad_pos:e,tnl_skippable:"1",tnl_cp1:"",tnl_cp2:"",tnl_cp3:"",tnl_cp4:"",tnl_cp5:"",tnl_cp6:"",tnl_campaign:"2",tnl_gdpr:"0",tnl_gdpr_consent:"1",consent_string:"BOWJjG9OWJjG9CLAAAENBx-AAAAiDAAA",tnl_content_category:this.category.toLowerCase()}}},{key:"_requestAd",value:function(e,t){var n=this;return t=t||{},new Promise(function(r){if(v.default(this,n),"undefined"==typeof google)throw new Error("Unable to load ad, google IMA SDK not defined.");try{var i,a=null==e||null===(i=e.tnl_keys)||void 0===i?void 0:i.tnl_ad_pos;this.adSuccess=!1;var o=new google.ima.AdsRequest,s=this._transformVast(e,t),d=Ef(Ef({},t),{},{adTag:s,tnl_ad_pos:a});this.adCounter[a]=this.adCounter[a]||0,this.adCounter[a]++;var u=e.dp,c=e.hl;if(u&&(u.adtag_url=s.url,this._extend_dp_with_adsense(u,c,null==e?void 0:e.tnl_keys)),this._isVMAP(a)){var l=function(e){var t=e.position||"midroll",n=e.dp_1,r=e.dp_2,i=Date.now(),a=new D.default(e.adtag_url_1,!0);a.query=bf(bf({},a.query),{},{ad_rule:0,vpos:t,pod:1,ppos:1,lip:!0,correlator:i,output:"xml_vast3"});var o=a.toString(),s=new D.default(e.adtag_url_2,!0);s.query=bf(bf({},s.query),{},{ad_rule:0,vpos:t,pod:1,correlator:++i,output:"xml_vast3"});var d=s.toString(),u=Date.now();return'<?xml version="1.0" encoding="UTF-8"?>\n<vmap:VMAP xmlns:vmap="http://www.iab.net/videosuite/vmap" version="1.0">\n<vmap:AdBreak timeOffset="start" breakType="linear,nonlinear" breakId="break-1">\n <vmap:AdSource id="'.concat(u++,'" allowMultipleAds="false" followRedirects="true">\n ').concat(_f({id:u++,adtag_url:o,error_url:null==n?void 0:n.error_url,impression_url:null==n?void 0:n.impression_url}),'\n </vmap:AdSource>\n</vmap:AdBreak>\n<vmap:AdBreak timeOffset="start" breakType="linear,nonlinear" breakId="break-2">\n <vmap:AdSource id="').concat(u++,'" allowMultipleAds="false" followRedirects="true">\n ').concat(_f({id:u++,adtag_url:d,error_url:null==r?void 0:r.error_url,impression_url:null==r?void 0:r.impression_url}),'\n </vmap:AdSource>\n <vmap:Extensions>\n <vmap:Extension type="bumper" suppress_bumper="true"></vmap:Extension>\n </vmap:Extensions>\n</vmap:AdBreak>\n</vmap:VMAP>').trim()}(this._get_vmap_context({dp:u,adtag:s,position:"preroll"===d.tnl_ad_pos?"preroll":"midroll",config:this._get_vmap_config(a)}));o.adsResponse=l}else if(u&&c.bidFloorApplied){var h=function(e){return e.promo_url?e.fallback_url?'<?xml version="1.0" encoding="utf-8"?>\n <VAST version="3.0">\n <Ad id="'.concat(e.id,'">\n <Wrapper fallbackOnNoAd="true">\n <AdSystem>GDFP</AdSystem>\n <Error><![CDATA[').concat(e.error_url,"]]></Error>\n <Impression><![CDATA[").concat(e.impression_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.adtag_url,']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="0" />\n </Extensions>\n </Wrapper>\n </Ad>\n <Ad id="fallback">\n <Wrapper>\n <AdSystem>ADS</AdSystem>\n <Impression><![CDATA[').concat(e.fallback_imp_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.fallback_url,']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="1" />\n </Extensions>\n </Wrapper>\n </Ad>\n <Ad id="promo">\n <Wrapper>\n <AdSystem>Rainbow</AdSystem>\n <Impression><![CDATA[').concat(e.promo_imp_green_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.promo_url,']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="2" />\n </Extensions>\n </Wrapper>\n </Ad>\n </VAST>').trim():'<?xml version="1.0" encoding="utf-8"?>\n <VAST version="3.0">\n <Ad id="'.concat(e.id,'">\n <Wrapper fallbackOnNoAd="true">\n <AdSystem>GDFP</AdSystem>\n <Error><![CDATA[').concat(e.error_url,"]]></Error>\n <Impression><![CDATA[").concat(e.impression_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.adtag_url,']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="0" />\n </Extensions>\n </Wrapper>\n </Ad>\n <Ad id="promo">\n <Wrapper>\n <AdSystem>Rainbow</AdSystem>\n <Impression><![CDATA[').concat(e.promo_imp_green_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.promo_url,']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="1" />\n </Extensions>\n </Wrapper>\n </Ad>\n </VAST>').trim():e.fallback_url?'<?xml version="1.0" encoding="utf-8"?>\n <VAST version="3.0">\n <Ad id="'.concat(e.id,'">\n <Wrapper fallbackOnNoAd="true">\n <AdSystem>GDFP</AdSystem>\n <Error><![CDATA[').concat(e.error_url,"]]></Error>\n <Impression><![CDATA[").concat(e.impression_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.adtag_url,']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="0" />\n </Extensions>\n </Wrapper>\n </Ad>\n <Ad id="fallback">\n <Wrapper>\n <AdSystem>ADS</AdSystem>\n <Impression><![CDATA[').concat(e.fallback_imp_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.fallback_url,']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="1" />\n </Extensions>\n </Wrapper>\n </Ad>\n </VAST>').trim():'<?xml version="1.0" encoding="utf-8"?>\n <VAST version="3.0">\n <Ad id="'.concat(e.id,'">\n <Wrapper>\n <AdSystem>GDFP</AdSystem>\n <Error><![CDATA[').concat(e.error_url,"]]></Error>\n <Impression><![CDATA[").concat(e.impression_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.adtag_url,"]]></VASTAdTagURI>\n </Wrapper>\n </Ad>\n </VAST>").trim()}(u);o.adsResponse=h}else if(u&&u.fallback_url){var f=function(e){return'<?xml version="1.0" encoding="utf-8"?>\n <VAST version="3.0">\n <Ad id="'.concat(e.id,'">\n <Wrapper fallbackOnNoAd="true">\n <AdSystem>GDFP</AdSystem>\n <Impression><![CDATA[').concat(e.fallback_imp_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.adtag_url,']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="0" />\n </Extensions>\n </Wrapper>\n </Ad>\n <Ad id="fallback">\n <Wrapper>\n <AdSystem>ADS</AdSystem>\n <Impression><![CDATA[').concat(e.fallback_imp_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.fallback_url,']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="1" />\n </Extensions>\n </Wrapper>\n </Ad>\n </VAST>').trim()}(u);o.adsResponse=f}else o.adTagUrl=s.url;o.linearAdSlotWidth=this.options.width,o.linearAdSlotHeight=this.options.height,o.nonLinearAdSlotWidth=this.options.width,o.nonLinearAdSlotHeight=this.options.height,o.forceNonLinearFullSlot=!0,this.options.vast_load_timeout&&(o.vastLoadTimeout=this.options.vast_load_timeout),o.setAdWillAutoPlay(t.autoplayAllowed),o.setAdWillPlayMuted(t.autoplayRequiresMute),this.adsLoader.requestAds(o,d);try{this.eventBus.broadcast("AD_SDK_REQUEST",{message:d})}catch(e){}r(o)}catch(e){throw new Error(e)}}.bind(this))}},{key:"cancel",value:function(){if(!1!==this.requestRunning){this.requestRunning=!1,this._resetAdsLoader(),this._hide("cancel");var e="AD_SDK_CANCELED";this.eventBus.broadcast(e,{name:e,message:"Advertisement has been canceled.",status:"warning",analytics:{category:this.eventCategory,action:e,label:this.gameId}})}}},{key:"_checkAutoPlay",value:(f=_.default(E.default.mark((function e(){var t=this;return E.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(e,n){var r=this;v.default(this,t);var i=navigator.userAgent.toLowerCase();i.indexOf("safari")>-1&&i.indexOf("chrome")<0?e({autoplayAllowed:!0,autoplayRequiresMute:!0}):x.default.video({inline:!0,muted:!1}).then(function(t){v.default(this,r);var n=t.result;t.error,e(!0===n?{autoplayAllowed:!0,autoplayRequiresMute:!1}:{autoplayAllowed:!0,autoplayRequiresMute:!0})}.bind(this))}.bind(this)));case 1:case"end":return e.stop()}}),e,this)}))),function(){return f.apply(this,arguments)})},{key:"_initDisplayContainerWithAutoPlay",value:(h=_.default(E.default.mark((function e(){var t;return E.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._checkAutoPlay(!1);case 2:return t=e.sent,this._autoplay=t,this.video_ad_player.autoplay=t.autoplayAllowed,this.video_ad_player.volume=t.autoplayRequiresMute?0:1,this.video_ad_player.muted=!!t.autoplayRequiresMute,t.adDisplayContainerInitialized||(this.adDisplayContainer.initialize(),this.adDisplayContainerInitialized=!0),e.abrupt("return",t);case 9:case"end":return e.stop()}}),e,this)}))),function(){return h.apply(this,arguments)})},{key:"startAd",value:(c=_.default(E.default.mark((function e(t,n){return E.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t!==d.AdType.Interstitial){e.next=4;break}return e.abrupt("return",this._startInterstitialAd(n));case 4:if(t!==d.AdType.Rewarded){e.next=8;break}return e.abrupt("return",this._startRewardedAd(n));case 8:throw new Error("Unsupported ad type");case 9:case"end":return e.stop()}}),e,this)}))),function(e,t){return c.apply(this,arguments)})},{key:"preloadAd",value:(u=_.default(E.default.mark((function e(t){return E.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t!==d.AdType.Interstitial){e.next=4;break}return e.abrupt("return",this._preloadInterstitialAd());case 4:if(t!==d.AdType.Rewarded){e.next=8;break}return e.abrupt("return",this._preloadRewardedAd());case 8:throw new Error("Unsupported ad type");case 9:case"end":return e.stop()}}),e,this)}))),function(e){return u.apply(this,arguments)})},{key:"addAdResume",value:function(){var e=this,t=function(){v.default(this,e),this.adsManager.resume()}.bind(this);try{this.adResume=new mf(this.adContainer,t),this.adResume.add()}catch(e){console.log("error on adding adResume",e)}}},{key:"loadDisplayAd",value:(s=_.default(E.default.mark((function e(t){var n=this;return E.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=_.default(E.default.mark((function e(r,i){var a,o,s,u,c,l,h=this;return E.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,(a=t?t.containerId:null)||i("Container id is not specified"),o=document.getElementById(a),document.getElementById(a)||i("No container is found with this id - ".concat(a)),void 0===window.idhb.requestAds&&i("Prebid.js wrapper script hit an error or didn't exist!"),s=t.slotId?t.slotId:"gd__banner@".concat(a),document.getElementById(s)||(u="\n .gd__banner{\n z-index: ".concat(d.Layers.DisplayContainer.zIndex,";\n height: 100%;\n display: flex !important;\n align-items: center;\n justify-content: center;\n }"),document.getElementById("gd__banner__style")||((c=document.createElement("style")).type="text/css",c.id="gd__banner__style",c.styleSheet?c.styleSheet.cssText=u:c.appendChild(document.createTextNode(u)),o.appendChild(c)),(l=document.createElement("div")).id=s,l.classList.add("gd__banner"),o.appendChild(l)),e.next=10,n._create_dp_display_context();case 10:n.atom_display=e.sent,window.idhb.que.push(function(){var e,t,r=this;v.default(this,h),window.idhb.setRefererUrl(encodeURIComponent(n.parentURL)),window.idhb.allowPersonalizedAds(!!parseInt(n.userAllowedPersonalizedAds)),window.idhb.setDefaultGdprConsentString("BOWJjG9OWJjG9CLAAAENBx-AAAAiDAAA"),null!==(e=n.atom_display)&&void 0!==e&&e.params&&window.idhb.setAdserverTargeting(null===(t=n.atom_display)||void 0===t?void 0:t.params);var i={};i[s]={maxSize:[o.offsetWidth,o.offsetHeight]},window.idhb.requestAds({slots:i,callback:function(e){v.default(this,r)}.bind(this)})}.bind(this)),r(),e.next=18;break;case 15:e.prev=15,e.t0=e.catch(0),i(e.t0.message||e.t0);case 18:case"end":return e.stop()}}),e,this,[[0,15]])})));return function(t,n){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)}))),function(e){return s.apply(this,arguments)})},{key:"_startInterstitialAd",value:(o=_.default(E.default.mark((function e(t){var n;return E.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!this.requestRunning){e.next=4;break}return this.eventBus.broadcast("AD_IS_ALREADY_RUNNING",{status:"warning"}),e.abrupt("return");case 4:return this.requestRunning=!0,e.next=7,this._initDisplayContainerWithAutoPlay();case 7:return n=e.sent,e.next=10,this._loadInterstitialAd(Ef(Ef({},n),t));case 10:n.autoplayRequiresMute&&this.adsManager.setVolume(0),this.adsManager.init(this.options.width,this.options.height,google.ima.ViewMode.NORMAL),this.adsManager.start(),e.next=19;break;case 15:throw e.prev=15,e.t0=e.catch(0),this._onError(e.t0),e.t0;case 19:case"end":return e.stop()}}),e,this,[[0,15]])}))),function(e){return o.apply(this,arguments)})},{key:"_loadInterstitialAd",value:(a=_.default(E.default.mark((function e(t){var n,r,i=this;return E.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._resetAdsLoader(),e.prev=1,e.t0=this.preloadedInterstitialAdVast,e.t0){e.next=7;break}return e.next=6,this._getAdVast(d.AdType.Interstitial,t);case 6:e.t0=e.sent;case 7:return n=e.t0,delete this.preloadedInterstitialAdVast,e.next=11,this._requestAd(n,Ef({adType:d.AdType.Interstitial},t));case 11:return r=e.sent,e.next=14,new Promise(function(e,t){var n=this;v.default(this,i);var r="videoad.preloadad";this.eventBus.unsubscribeScope(r);var a=function(t){v.default(this,n),this.eventBus.unsubscribeScope(r),e(t.message)}.bind(this),o=function(e){v.default(this,n),this.eventBus.unsubscribeScope(r),t(e.message)}.bind(this);this.eventBus.subscribe("AD_SDK_MANAGER_READY",a,r),this.eventBus.subscribe("AD_SDK_CANCELED",o,r),this.eventBus.subscribe("AD_ERROR",o,r)}.bind(this));case 14:return e.abrupt("return",r);case 17:throw e.prev=17,e.t1=e.catch(1),new Error(e.t1);case 20:case"end":return e.stop()}}),e,this,[[1,17]])}))),function(e){return a.apply(this,arguments)})},{key:"_startRewardedAd",value:(i=_.default(E.default.mark((function e(t){var n;return E.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!this.requestRunning){e.next=4;break}return this.eventBus.broadcast("AD_IS_ALREADY_RUNNING",{status:"warning"}),e.abrupt("return");case 4:return this.requestRunning=!0,e.next=7,this._initDisplayContainerWithAutoPlay();case 7:return n=e.sent,e.next=10,this._loadRewardedAd(Ef(Ef({},n),t));case 10:n.autoplayRequiresMute&&this.adsManager.setVolume(0),this.adsManager.init(this.options.width,this.options.height,google.ima.ViewMode.NORMAL),this.adsManager.start(),e.next=19;break;case 15:throw e.prev=15,e.t0=e.catch(0),this._onError(e.t0),e.t0;case 19:case"end":return e.stop()}}),e,this,[[0,15]])}))),function(e){return i.apply(this,arguments)})},{key:"_loadRewardedAd",value:(r=_.default(E.default.mark((function e(t){var n,r,i=this;return E.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._resetAdsLoader(),e.prev=1,e.t0=this.preloadedRewardedAdVast,e.t0){e.next=7;break}return e.next=6,this._getAdVast(d.AdType.Rewarded,t);case 6:e.t0=e.sent;case 7:return n=e.t0,delete this.preloadedRewardedAdVast,e.next=11,this._requestAd(n,Ef({adType:d.AdType.Rewarded},t));case 11:return r=e.sent,e.next=14,new Promise(function(e,t){var n=this;v.default(this,i);var r="videoad.preloadad";this.eventBus.unsubscribeScope(r);var a=function(t){v.default(this,n),this.eventBus.unsubscribeScope(r),e(t.message)}.bind(this),o=function(e){v.default(this,n),this.eventBus.unsubscribeScope(r),t(e.message)}.bind(this);this.eventBus.subscribe("AD_SDK_MANAGER_READY",a,r),this.eventBus.subscribe("AD_SDK_CANCELED",o,r),this.eventBus.subscribe("AD_ERROR",o,r)}.bind(this));case 14:return e.abrupt("return",r);case 17:throw e.prev=17,e.t1=e.catch(1),new Error(e.t1);case 20:case"end":return e.stop()}}),e,this,[[1,17]])}))),function(e){return r.apply(this,arguments)})},{key:"_preloadInterstitialAd",value:(n=_.default(E.default.mark((function e(){return E.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this._getAdVast(d.AdType.Interstitial);case 3:return this.preloadedInterstitialAdVast=e.sent,e.abrupt("return",this.preloadedInterstitialAdVast.url);case 7:throw e.prev=7,e.t0=e.catch(0),new Error(e.t0);case 10:case"end":return e.stop()}}),e,this,[[0,7]])}))),function(){return n.apply(this,arguments)})},{key:"_preloadRewardedAd",value:(t=_.default(E.default.mark((function e(){return E.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this._getAdVast(d.AdType.Rewarded);case 3:return this.preloadedRewardedAdVast=e.sent,e.abrupt("return",this.preloadedRewardedAdVast.url);case 7:throw e.prev=7,e.t0=e.catch(0),new Error(e.t0);case 10:case"end":return e.stop()}}),e,this,[[0,7]])}))),function(){return t.apply(this,arguments)})},{key:"_onError",value:function(e){this.cancel(),this._clearSafetyTimer("ERROR")}},{key:"_hide",value:function(e){this.video_ad_player.src="",this.activeAdContainer&&(this.activeAdContainer.style.visibility="hidden")}},{key:"_show",value:function(e){var t=this;if(this.activeAdContainer){this.activeAdContainer.style.visibility="visible";var n=null==e?void 0:e.mode,r=this._isT4R(e),i=this._getT4ROptions();"loaded"===n?(this.activeAdContainer.style.opacity=r?.001:1,r&&this.eventBus.broadcast("AD_T4R"),r&&setTimeout(function(){v.default(this,t),this.activeAdContainer.style.opacity=1}.bind(this),((null==i?void 0:i.min)||1234)+Math.random()*((null==i?void 0:i.max)||3210))):"click"!==n&&"first_quartile"!==n||(this.activeAdContainer.style.opacity=1)}}},{key:"_createPlayer",value:function(){var e=this,t=document.body||document.getElementsByTagName("body")[0];this.adContainer=document.createElement("div"),this.adContainer.id="".concat(this.prefix,"advertisement"),this.adContainer.style.position=this.thirdPartyContainer?"absolute":"fixed",this.adContainer.style.zIndex=d.Layers.AdsContainer.zIndex,this.adContainer.style.top="0",this.adContainer.style.left="0",this.adContainer.style.width="100%",this.adContainer.style.height="100%",this.thirdPartyContainer&&(this.thirdPartyContainer.style.transform=null);var n=document.createElement("video");n.setAttribute("playsinline",!0),n.setAttribute("webkit-playsinline",!0),n.id="".concat(this.prefix,"advertisement_video"),n.style.position="absolute",n.style.backgroundColor="#000000",n.style.top="0",n.style.left="0",n.style.width=this.options.width+"px",n.style.height=this.options.height+"px",this.video_ad_player=n,this.adContainer.appendChild(n);var r=document.createElement("div");r.id="".concat(this.prefix,"advertisement_slot"),r.style.position="absolute",r.style.top="0",r.style.left="0",r.style.width=this.options.width+"px",r.style.height=this.options.height+"px",this.adContainerInner=r,this.activeAdContainer=this.adContainer,this.thirdPartyContainer?(this.adContainer.appendChild(r),this.thirdPartyContainer.appendChild(this.adContainer),this.activeAdContainer=this.thirdPartyContainer):(this.adContainer.appendChild(r),t.appendChild(this.adContainer)),this.addAdResume(),this.activeAdContainer.style.visibility="hidden";var i=function(){v.default(this,e);var t=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,i=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;this.options.width=this.thirdPartyContainer?this.thirdPartyContainer.offsetWidth:t,this.options.height=this.thirdPartyContainer?this.thirdPartyContainer.offsetHeight:i,r.style.width=this.options.width+"px",r.style.height=this.options.height+"px",n.style.width=this.options.width+"px",n.style.height=this.options.height+"px"}.bind(this);window.addEventListener("resize",i),window.document.addEventListener("DOMContentLoaded",i)}},{key:"_setUpIMA",value:function(){this.adDisplayContainer=new google.ima.AdDisplayContainer(this.adContainerInner,this.video_ad_player),this.adsLoader=new google.ima.AdsLoader(this.adDisplayContainer),this.adsLoader.getSettings().setDisableCustomPlaybackForIOS10Plus(!0),this.adsLoader.getSettings().setLocale(this.options.locale),this.adsLoader.getSettings().setVpaidMode(this._getVPAIDMode()),this.adsLoader.getSettings().setAutoPlayAdBreaks(!0);var e=this.adsLoader.getSettings().getNumRedirects();this.adsLoader.getSettings().setNumRedirects(2*e),this.adsLoader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,this._onAdsManagerLoaded,!1,this),this.adsLoader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,this._onAdError,!1,this)}},{key:"_onAdsManagerLoaded",value:function(e){var t=this,n=new google.ima.AdsRenderingSettings;n.autoAlign=!1,n.enablePreloading=!1,n.restoreCustomPlaybackStateOnAdBreakComplete=!0,n.useStyledNonLinearAds=!0,n.uiElements=[google.ima.UiElements.AD_ATTRIBUTION,google.ima.UiElements.COUNTDOWN],this.adsManager=e.getAdsManager(this.video_ad_player,n),this.adsManager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,this._onAdError.bind(this),!1,this),this.adsManager.addEventListener(google.ima.AdEvent.Type.AD_BREAK_READY,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.AD_METADATA,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.ALL_ADS_COMPLETED,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.CLICK,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.COMPLETE,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.DURATION_CHANGE,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.FIRST_QUARTILE,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.IMPRESSION,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.INTERACTION,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.LINEAR_CHANGED,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.LOADED,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.LOG,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.MIDPOINT,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.PAUSED,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.RESUMED,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.SKIPPABLE_STATE_CHANGED,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.SKIPPED,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.STARTED,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.THIRD_QUARTILE,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.USER_CLOSE,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.VOLUME_CHANGED,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.VOLUME_MUTED,this._onAdEvent.bind(this),this),window.addEventListener("resize",function(){v.default(this,t),this.adsManager&&this.adsManager.resize(this.options.width,this.options.height,google.ima.ViewMode.NORMAL)}.bind(this)),this.adDisplayContainerInitialized||(this.adDisplayContainer.initialize(),this.adDisplayContainerInitialized=!0);var r=new Date,i=r.getHours(),a=r.getDate(),o=r.getMonth(),s=r.getFullYear(),d="AD_SDK_MANAGER_READY";this.eventBus.broadcast(d,{name:d,message:"AD SDK is ready",status:"success",analytics:{category:d,action:this.parentDomain,label:"h".concat(i," d").concat(a," m").concat(o," y").concat(s)}}),this._adrequest_user_context=e.getUserRequestContext()}},{key:"_onAdEvent",value:function(e){var t=new Date,n=t.getHours(),r=t.getDate(),i=t.getMonth(),a=t.getFullYear(),o=d.getKeyByValue(google.ima.AdEvent.Type,e.type),s=!1,u=e.getAd().getContentType()||"",c=!u.startsWith("image")&&!u.startsWith("text");this._sendIMAEventsToHB(e);var l="";switch(e.type){case google.ima.AdEvent.Type.AD_BREAK_READY:l="Fired when an ad rule or a VMAP ad break would have played if autoPlayAdBreaks is false.";break;case google.ima.AdEvent.Type.AD_METADATA:l="Fired when an ads list is loaded.";break;case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:s=!0,l="Fired when the ads manager is done playing all the ads.";break;case google.ima.AdEvent.Type.CLICK:l="Fired when the ad is clicked.";var h=e.getAd().getContentType();this._show({mode:"click",contentType:h});break;case google.ima.AdEvent.Type.COMPLETE:s=this._is_completed(e.getAd()),l="Fired when the ad completes playing.";break;case google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED:l="Fired when content should be paused. This usually happens right before an ad is about to cover the content.";break;case google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED:l="Fired when content should be resumed. This usually happens when an ad finishes or collapses.",s=!0;break;case google.ima.AdEvent.Type.DURATION_CHANGE:l="Fired when the ad's duration changes.";break;case google.ima.AdEvent.Type.FIRST_QUARTILE:l="Fired when the ad playhead crosses first quartile.";var f=e.getAd().getContentType();this._show({mode:"first_quartile",contentType:f});break;case google.ima.AdEvent.Type.IMPRESSION:l="Fired when the impression URL has been pinged.";break;case google.ima.AdEvent.Type.INTERACTION:l="Fired when an ad triggers the interaction callback. Ad interactions contain an interaction ID string in the ad data.";break;case google.ima.AdEvent.Type.LINEAR_CHANGED:l="Fired when the displayed ad changes from linear to nonlinear, or vice versa.";break;case google.ima.AdEvent.Type.LOADED:var p=e.getAd().getContentType();l=p,this._show({mode:"loaded",contentType:p});break;case google.ima.AdEvent.Type.LOG:e.getAdData().adError&&(l=e.getAdData());break;case google.ima.AdEvent.Type.MIDPOINT:l="Fired when the ad playhead crosses midpoint.";break;case google.ima.AdEvent.Type.PAUSED:c&&this.adResume.show(),l="Fired when the ad is paused.";break;case google.ima.AdEvent.Type.RESUMED:l="Fired when the ad is resumed.",c&&this.adResume.hide();break;case google.ima.AdEvent.Type.SKIPPABLE_STATE_CHANGED:l="Fired when the displayed ads skippable state is changed.";break;case google.ima.AdEvent.Type.SKIPPED:s=this._is_completed(e.getAd()),l="Fired when the ad is skipped by the user.";break;case google.ima.AdEvent.Type.STARTED:l="Fired when the ad starts playing.";break;case google.ima.AdEvent.Type.THIRD_QUARTILE:l="Fired when the ad playhead crosses third quartile.";break;case google.ima.AdEvent.Type.USER_CLOSE:s=this._is_completed(e.getAd()),l="Fired when the ad is closed by the user.";break;case google.ima.AdEvent.Type.VOLUME_CHANGED:l="Fired when the ad volume has changed.";break;case google.ima.AdEvent.Type.VOLUME_MUTED:l="Fired when the ad volume has been muted."}""!==o&&""!==l&&this.eventBus.broadcast(o,{name:o,message:l,status:"success",analytics:{category:o,action:this.parentDomain,label:"h".concat(n," d").concat(r," m").concat(i," y").concat(a)}}),s&&!this.adSuccess&&(this.adSuccess=!0,this.eventBus.broadcast("AD_SUCCESS",{message:"Ad succeeded.",status:"success"}),this.resetForNext(e))}},{key:"_onAdError",value:function(e){this.requestRunning=!1,this._resetAdsLoader(),this._clearSafetyTimer("ERROR"),this._hide("_onAdError"),this._sendIMAEventsToHB(e);try{var t="AD_ERROR",n=e.getError(),r=n.getErrorCode().toString()||n.getVastErrorCode().toString(),i=this._getInnerErrorCode(n);this.eventBus.broadcast(t,{message:r,details:i,status:"warning",analytics:{category:t,action:i,label:r}})}catch(e){}}},{key:"_sendIMAEventsToHB",value:function(e){if(window.idhb&&"function"==typeof window.idhb.onImaEvent)try{window.idhb.onImaEvent(e)}catch(e){}}},{key:"_resetAdsLoader",value:function(){this.adsManager&&(this.adsManager.destroy(),this.adsManager=null,this._adrequest_user_context=null),this.adsLoader&&this.adsLoader.contentComplete()}},{key:"_startSafetyTimer",value:function(e,t){var n=this;this.safetyTimer&&clearTimeout(this.safetyTimer),this.safetyTimer=window.setTimeout(function(){v.default(this,n),this.cancel(),this._clearSafetyTimer(t)}.bind(this),e)}},{key:"_clearSafetyTimer",value:function(e){void 0!==this.safetyTimer&&null!==this.safetyTimer&&(clearTimeout(this.safetyTimer),this.safetyTimer=void 0)}},{key:"_getVPAIDMode",value:function(){return google.ima.ImaSdkSettings.VpaidMode.ENABLED}},{key:"_getPrebidScripts",value:function(){var e=["https://hb.improvedigital.com/pbw/gameDistributionV1.3.min.js","http://hb.improvedigital.com/pbw/gameDistributionV1.3.min.js"];return this.options.hb_script?[this.options.hb_script].concat(e):e}},{key:"_getInnerErrorCode",value:function(e){if(gf(e.getInnerError)){var t=e.getInnerError();if(t)return gf(t.getErrorCode)&&gf(t.getVastErrorCode)?t.getErrorCode().toString()||t.getVastErrorCode().toString():t.message}}},{key:"resetForNext",value:function(){this.requestRunning=!1,this._hide("resetForNext")}},{key:"_createCustomAdVastUrl",value:function(e,t){var n=this;if(e){var r=this.macros.transform(e,{get:function(e){if(v.default(this,n),t&&t.tnl_keys)return t.tnl_keys[e.toLowerCase()]}.bind(this)});for(var i in r.query||{}){var a=r.query[i];l.isPlainObject(a)&&(r.query[i]=S.default.stringify(a))}var o=new D.default(r.url,!0);return R.default(o.query,r.query||{}),Ef({url:o.toString()},t)}}},{key:"_transformVast",value:function(e,t){var n={url:e.url};try{var r=new D.default(e.url,!0),i=this._transformQuery(e,t,r);i&&(n.url=r.toString());var a=i?r:new D.default(e.url,!0);if(a.query.cust_params){var o=S.default.parse(a.query.cust_params);n.bidder=o.hb_bidder,n.cust_params=o}n.url_parsed=a}catch(e){n.hasError=!0,n.message=e.message,n.bidder="error",console.log(e.message)}return n}},{key:"_transformQuery",value:function(e,t,n){var r=this;if(e&&t&&e.tnl_keys){var i=this.options.vast_query;if(t.retry_on_success&&this.options.retry_on_success&&l.isPlainObject(this.options.retry_on_success.vast_query)?i=this.options.retry_on_success.vast_query:t.retry_on_failure&&this.options.retry_on_failure&&l.isPlainObject(this.options.retry_on_failure.vast_query)&&(i=this.options.retry_on_failure.vast_query),i=T.default(i),l.isPlainObject(i)){var a=n.query;if(i.$$remove){for(var o in a){new RegExp(i.$$remove,"i").test(o)&&delete a[o]}delete i.$$remove}var s=S.default.parse(a.cust_params);if(i.cust_params&&i.cust_params.$$remove){for(var d in s){new RegExp(i.cust_params.$$remove,"i").test(d)&&delete s[d]}delete i.cust_params.$$remove}var u=this.macros.transform(i,{get:function(t){return v.default(this,r),e.tnl_keys[t.toLowerCase()]}.bind(this)});return a.cust_params=s,R.default(a,u),a.cust_params=S.default.stringify(a.cust_params),!0}}}},{key:"_isT4R",value:function(e){var t,n,r,i,a,o,s,d,u,c,l,h=null===(t=this._adrequest_user_context)||void 0===t?void 0:t.tnl_ad_pos;return h&&((null==e||null===(n=e.contentType)||void 0===n?void 0:n.startsWith("image/"))||"text"===(null==e?void 0:e.contentType))&&("preroll"===h&&(null===(r=this.gameData)||void 0===r||null===(i=r.pAds)||void 0===i||null===(a=i.t4r)||void 0===a?void 0:a.enabled)||"midroll"===h&&(null===(o=this.gameData)||void 0===o||null===(s=o.mAds)||void 0===s||null===(d=s.t4r)||void 0===d?void 0:d.enabled)||"rewarded"===h&&(null===(u=this.gameData)||void 0===u||null===(c=u.rAds)||void 0===c||null===(l=c.t4r)||void 0===l?void 0:l.enabled))}},{key:"_isVMAP",value:function(e){var t,n,r,i,a,o,s,d,u,c,l,h,f,p,m;if(!e)return!1;var g="preroll"===e&&(!0===(null===(t=this.gameData)||void 0===t||null===(n=t.pAds)||void 0===n?void 0:n.vmap)||!0===(null===(r=this.gameData)||void 0===r||null===(i=r.pAds)||void 0===i||null===(a=i.vmap)||void 0===a?void 0:a.enabled))||"midroll"===e&&(!0===(null===(o=this.gameData)||void 0===o||null===(s=o.mAds)||void 0===s?void 0:s.vmap)||!0===(null===(d=this.gameData)||void 0===d||null===(u=d.mAds)||void 0===u||null===(c=u.vmap)||void 0===c?void 0:c.enabled))||"rewarded"===e&&(!0===(null===(l=this.gameData)||void 0===l||null===(h=l.rAds)||void 0===h?void 0:h.vmap)||!0===(null===(f=this.gameData)||void 0===f||null===(p=f.rAds)||void 0===p||null===(m=p.vmap)||void 0===m?void 0:m.enabled));if(!g)return!1;var v=this._get_vmap_config(e),y=this.adCounter[e];return void 0!==(null==v?void 0:v.start)?y>=(null==v?void 0:v.start):g}},{key:"_getT4ROptions",value:function(){var e,t,n,r,i,a,o;switch(null===(e=this._adrequest_user_context)||void 0===e?void 0:e.tnl_ad_pos){case"preroll":return null===(t=this.gameData)||void 0===t||null===(n=t.pAds)||void 0===n?void 0:n.t4r;case"midroll":return null===(r=this.gameData)||void 0===r||null===(i=r.mAds)||void 0===i?void 0:i.t4r;case"rewarded":return null===(a=this.gameData)||void 0===a||null===(o=a.rAds)||void 0===o?void 0:o.t4r}}},{key:"_is_completed",value:function(e){var t=e.getContentType(),n=e.getAdPodInfo();return!(!t.startsWith("image/")&&"text"!==t&&1!==n.getTotalAds())}},{key:"_get_vmap_context",value:function(e){var t=e.adtag,n=e.position,r=e.config,i=e.dp,a=this._createCustomAdVastUrl(null==r?void 0:r.vast_1)||t,o=this._createCustomAdVastUrl(null==r?void 0:r.vast_2)||t,s=null!=r&&r.vast_1?void 0:i,d=null!=r&&r.vast_2?void 0:i;return{adtag_url_1:null==a?void 0:a.url,adtag_url_2:null==o?void 0:o.url,position:n,dp_1:s,dp_2:d}}},{key:"_get_vmap_config",value:function(e){var t,n,r,i,a,o,s,d;switch(e){case"preroll":return null===(t=this.gameData)||void 0===t||null===(n=t.pAds)||void 0===n?void 0:n.vmap;case"midroll":return null===(r=this.gameData)||void 0===r||null===(i=r.mAds)||void 0===i?void 0:i.vmap;case"rewarded":return null===(a=this.gameData)||void 0===a||null===(o=a.rAds)||void 0===o?void 0:o.vmap;default:return null===(s=this.gameData)||void 0===s||null===(d=s.pAds)||void 0===d?void 0:d.vmap}}},{key:"_isDP",value:function(e){var t,n,r,i,a,o,s,d,u,c,l,h,f,p,m;return!!e&&("preroll"===e&&(!0===(null===(t=this.gameData)||void 0===t||null===(n=t.pAds)||void 0===n?void 0:n.dp)||!0===(null===(r=this.gameData)||void 0===r||null===(i=r.pAds)||void 0===i||null===(a=i.dp)||void 0===a?void 0:a.enabled))||"midroll"===e&&(!0===(null===(o=this.gameData)||void 0===o||null===(s=o.mAds)||void 0===s?void 0:s.dp)||!0===(null===(d=this.gameData)||void 0===d||null===(u=d.mAds)||void 0===u||null===(c=u.dp)||void 0===c?void 0:c.enabled))||"rewarded"===e&&(!0===(null===(l=this.gameData)||void 0===l||null===(h=l.rAds)||void 0===h?void 0:h.dp)||!0===(null===(f=this.gameData)||void 0===f||null===(p=f.rAds)||void 0===p||null===(m=p.dp)||void 0===m?void 0:m.enabled)))}},{key:"_create_dp_display_context",value:function(){var e=this;return new Promise(function(t){var n=this;v.default(this,e);try{var r={id:this.topDomain||this.parentDomain,au:"display",ty:"display",aid:this.gameData.gameId,pgu:this.parentURL},i=new pf(this.gameData).checkCustomParams();i&&(r.cp=i);var a=encodeURIComponent(m.Base64.encode(JSON.stringify(r)));fetch("https://tag.atom.gamedistribution.com/v1/atm?ar=".concat(a)).then(function(e){return v.default(this,n),e.json()}.bind(this)).then(function(e){if(v.default(this,n),!e||!e.p)return this.msgrt.send("dp.na",{message:"atom"}),t();this.msgrt.send("dp.fp",{message:e.p/100}),t({params:{fp:e.p/100},error_url:"https://tag.atom.gamedistribution.com/v1/err?ar=".concat(a),impression_url:"https://tag.atom.gamedistribution.com/v1/imp?ar=".concat(a)})}.bind(this)).catch(function(e){v.default(this,n),this.msgrt.send("dp.err",{message:(null==e?void 0:e.message)||e}),t()}.bind(this))}catch(e){this.msgrt.send("dp.err",{message:(null==e?void 0:e.message)||e}),t()}}.bind(this))}},{key:"_create_dp_context",value:function(e){var t=this;return new Promise(function(){var n=_.default(E.default.mark((function n(r){var i,a,o,s,d,u=this;return E.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(n.prev=0,t._isDP(e)){n.next=5;break}return t.msgrt.send("dp.na",{message:"rule"}),n.abrupt("return",r());case 5:a={id:t.topDomain||t.parentDomain,au:e||"unknown",ty:"video",aid:t.gameData.gameId,pgu:t.parentURL},(o=new pf(t.gameData).checkCustomParams())&&(a.cp=o),s=encodeURIComponent(m.Base64.encode(JSON.stringify(a))),d=null===(i=t.gameData.promo)||void 0===i?void 0:i.rainbow,fetch("https://tag.atom.gamedistribution.com/v1/atm?ar=".concat(s)).then(function(e){return v.default(this,u),e.json()}.bind(this)).then(function(e){if(v.default(this,u),!e||!e.p)return t.msgrt.send("dp.na",{message:"atom"}),r();var n=e.p/100;r({id:Date.now(),floor_price:n,error_url:"https://tag.atom.gamedistribution.com/v1/err?ar=".concat(s,"&ec=[ERRORCODE]"),impression_url:"https://tag.atom.gamedistribution.com/v1/imp?ar=".concat(s),skip_url:"https://tag.atom.gamedistribution.com/v1/skp?ar=".concat(s),promo_url:null!=d&&d.enabled?"https://tag.atom.gamedistribution.com/v1/rainbow?ar=".concat(s):void 0,promo_imp_blue_url:null!=d&&d.enabled?"https://tag.atom.gamedistribution.com/v1/rainbow/blue":void 0,promo_imp_green_url:null!=d&&d.enabled?"https://tag.atom.gamedistribution.com/v1/rainbow/green":void 0})}.bind(this)).catch(function(e){v.default(this,u),t.msgrt.send("dp.err",{message:(null==e?void 0:e.message)||e}),r()}.bind(this)),n.next=17;break;case 13:n.prev=13,n.t0=n.catch(0),t.msgrt.send("dp.err",{message:(null===n.t0||void 0===n.t0?void 0:n.t0.message)||n.t0}),r();case 17:case"end":return n.stop()}}),n,this,[[0,13]])})));return function(e){return n.apply(this,arguments)}}())}},{key:"_extend_dp_with_adsense",value:function(e,t,n){if(e&&t&&n)try{var r,i=new D.default(t.vastUrl,!0);if(null===(r=i.query)||void 0===r||!r.cust_params)return;if(!S.default.parse(i.query.cust_params).tnl_asset_id)return;n.bidFloor,n.isDfpBidding;var a=k.default(n,Af);i.query.cust_params=S.default.stringify(Ef(Ef({},a),{},{adsense:1}),!1),e.fallback_url=i.toString(),e.fallback_imp_url="https://tag.atom.gamedistribution.com/v1/rainbow/green"}catch(e){}}}]),e}(),xf=Array.isArray,Tf=Object.prototype.toString,Sf=xf||function(e){return!!e&&"[object Array]"==Tf.call(e)},Rf=Xn,Of=X,If=dr,Pf=fn,Cf=un,Lf=J,jf=Mr,Mf=Ne,Uf=Dr("slice"),Bf=Mf("species"),Gf=[].slice,Nf=Math.max;Rf({target:"Array",proto:!0,forced:!Uf},{slice:function(e,t){var n,r,i,a=Lf(this),o=Cf(a.length),s=Pf(e,o),d=Pf(void 0===t?o:t,o);if(If(a)&&("function"!=typeof(n=a.constructor)||n!==Array&&!If(n.prototype)?Of(n)&&null===(n=n[Bf])&&(n=void 0):n=void 0,n===Array||void 0===n))return Gf.call(a,s,d);for(r=new(void 0===n?Array:n)(Nf(d-s,0)),i=0;s<d;s++,i++)s in a&&jf(r,i,a[s]);return r.length=i,r}});var qf=ct,Vf=ki,Ff=or,Kf=ke,zf=function(e,t,n,r){try{return r?t(qf(n)[0],n[1]):t(n)}catch(t){throw Vf(e),t}},Wf=yi,Hf=un,$f=Mr,Yf=wi,Qf=function(e){var t,n,r,i,a,o,s=Kf(e),d="function"==typeof this?this:Array,u=arguments.length,c=u>1?arguments[1]:void 0,l=void 0!==c,h=Yf(s),f=0;if(l&&(c=Ff(c,u>2?arguments[2]:void 0,2)),null==h||d==Array&&Wf(h))for(n=new d(t=Hf(s.length));t>f;f++)o=l?c(s[f],f):s[f],$f(n,f,o);else for(a=(i=h.call(s)).next,n=new d;!(r=a.call(i)).done;f++)o=l?zf(i,c,[r.value,f],!0):r.value,$f(n,f,o);return n.length=f,n};Xn({target:"Array",stat:!0,forced:!Ni((function(e){Array.from(e)}))},{from:Qf});var Jf,Xf,Zf,ep=!L((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),tp=Te,np=ke,rp=ep,ip=Pt("IE_PROTO"),ap=Object.prototype,op=rp?Object.getPrototypeOf:function(e){return e=np(e),tp(e,ip)?e[ip]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?ap:null},sp=L,dp=op,up=yt,cp=Te,lp=Ne("iterator"),hp=!1;[].keys&&("next"in(Zf=[].keys())?(Xf=dp(dp(Zf)))!==Object.prototype&&(Jf=Xf):hp=!0),(null==Jf||sp((function(){var e={};return Jf[lp].call(e)!==e})))&&(Jf={}),cp(Jf,lp)||up(Jf,lp,(function(){return this}));var fp={IteratorPrototype:Jf,BUGGY_SAFARI_ITERATORS:hp},pp=fp.IteratorPrototype,mp=Rs,gp=V,vp=di,yp=pi,bp=function(){return this},_p=Xn,Ap=function(e,t,n){var r=t+" Iterator";return e.prototype=mp(pp,{next:gp(1,n)}),vp(e,r,!1),yp[r]=bp,e},wp=op,Ep=ii,kp=di,Dp=yt,xp=bt.exports,Tp=pi,Sp=fp.IteratorPrototype,Rp=fp.BUGGY_SAFARI_ITERATORS,Op=Ne("iterator"),Ip=function(){return this},Pp=function(e,t,n,r,i,a,o){Ap(n,t,r);var s,d,u,c=function(e){if(e===i&&m)return m;if(!Rp&&e in f)return f[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},l=t+" Iterator",h=!1,f=e.prototype,p=f[Op]||f["@@iterator"]||i&&f[i],m=!Rp&&p||c(i),g="Array"==t&&f.entries||p;if(g&&(s=wp(g.call(new e)),Sp!==Object.prototype&&s.next&&(wp(s)!==Sp&&(Ep?Ep(s,Sp):"function"!=typeof s[Op]&&Dp(s,Op,Ip)),kp(s,l,!0))),"values"==i&&p&&"values"!==p.name&&(h=!0,m=function(){return p.call(this)}),f[Op]!==m&&Dp(f,Op,m),Tp[t]=m,i)if(d={values:c("values"),keys:a?m:c("keys"),entries:c("entries")},o)for(u in d)(Rp||h||!(u in f))&&xp(f,u,d[u]);else _p({target:t,proto:!0,forced:Rp||h},d);return d},Cp=oc.charAt,Lp=ss,jp=Ht,Mp=Pp,Up=jp.set,Bp=jp.getterFor("String Iterator");Mp(String,"String",(function(e){Up(this,{type:"String Iterator",string:Lp(e),index:0})}),(function(){var e,t=Bp(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Cp(n,r),t.index+=e.length,{value:e,done:!1})})),Nc("iterator");var Gp=J,Np=hh,qp=pi,Vp=Ht,Fp=Pp,Kp=Vp.set,zp=Vp.getterFor("Array Iterator"),Wp=Fp(Array,"Array",(function(e,t){Kp(this,{type:"Array Iterator",target:Gp(e),index:0,kind:t})}),(function(){var e=zp(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");qp.Arguments=qp.Array,Np("keys"),Np("values"),Np("entries");var Hp=P,$p=_d,Yp=Wp,Qp=yt,Jp=Ne,Xp=Jp("iterator"),Zp=Jp("toStringTag"),em=Yp.values;for(var tm in $p){var nm=Hp[tm],rm=nm&&nm.prototype;if(rm){if(rm[Xp]!==em)try{Qp(rm,Xp,em)}catch(e){rm[Xp]=em}if(rm[Zp]||Qp(rm,Zp,tm),$p[tm])for(var im in Yp)if(rm[im]!==Yp[im])try{Qp(rm,im,Yp[im])}catch(e){rm[im]=Yp[im]}}}function am(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return om(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return om(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function om(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function sm(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 dm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sm(Object(n),!0).forEach((function(t){b.default(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var um={react:{src:"https://pm.gamedistribution.com/react/16.14.0/umd/react.production.min.js",name:"React"},"react-dom":{src:"https://pm.gamedistribution.com/react-dom/16.14.0/umd/react-dom.production.min.js",name:"ReactDOM"},redux:{src:"https://pm.gamedistribution.com/redux/4.0.5/dist/redux.min.js",name:"Redux"},"react-redux":{src:"https://pm.gamedistribution.com/react-redux/7.2.1/dist/react-redux.min.js",name:"ReactRedux"},"material-ui-core":{src:"https://pm.gamedistribution.com/@material-ui/core/4.11.3/umd/material-ui.production.min.js",name:"MaterialUI"}},cm={},lm=function(e,t){cm[e]=dm(dm({},t),{},{isLoading:!1})},hm=function(e){var t=this,n=e.id,r=e.src;return new Promise(function(e,i){if(v.default(this,t),document.getElementById(n))e();else{var a=document.createElement("script");a.onload=function(){e()},a.id=n,a.setAttribute("crossorigin",!0),a.src=r,document.head.appendChild(a)}}.bind(this))},fm=function(){var e=_.default(E.default.mark((function e(t){var n,r,i,a,o,s,d,u;return E.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=window[t])){e.next=3;break}return e.abrupt("return",n);case 3:if(!(r=cm[t]).isLoading){e.next=6;break}return e.abrupt("return");case 6:r.isLoading=!0,i=am(r.dependencies),e.prev=8,i.s();case 10:if((a=i.n()).done){e.next=26;break}if(o=a.value,e.prev=12,s=um[o].name,!window[s]){e.next=16;break}return e.abrupt("continue",24);case 16:return e.next=18,hm({id:o,src:um[o].src});case 18:e.next=24;break;case 20:e.prev=20,e.t0=e.catch(12),d=o.id,u=o.src,console.log("Could not load external script ".concat(d," ").concat(u),e.t0);case 24:e.next=10;break;case 26:e.next=31;break;case 28:e.prev=28,e.t1=e.catch(8),i.e(e.t1);case 31:return e.prev=31,i.f(),e.finish(31);case 34:return e.prev=34,e.next=37,hm({id:t,src:r.source});case 37:n=window[t],e.next=43;break;case 40:e.prev=40,e.t2=e.catch(34),console.log("Could not load module ".concat(t," ").concat(r.source,"."),e.t2);case 43:return r.isLoading=!1,e.abrupt("return",n);case 45:case"end":return e.stop()}}),e,null,[[8,28,31,34],[12,20],[34,40]])})));return function(t){return e.apply(this,arguments)}}(),pm=function e(t){var n=this;A.default(this,e),b.default(this,"load",_.default(E.default.mark((function e(){return E.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fm(n.moduleName);case 2:n.stone=e.sent;case 3:case"end":return e.stop()}}),e)})))),b.default(this,"promo",_.default(E.default.mark((function e(){return E.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.stone){e.next=3;break}return e.next=3,n.load();case 3:return e.abrupt("return",n.stone[n.modulePromo]);case 4:case"end":return e.stop()}}),e)})))),this.moduleName="GDPromoByOrbit",this.modulePromo=t,this.moduleConfig={source:"https://pm.gamedistribution.com/@bygd/gd-sdk-stone-dynamic/1.0.7/dist/"+this.modulePromo.toLowerCase()+"/iife/index.js",dependencies:["react","react-dom","material-ui-core"]},lm(this.moduleName,this.moduleConfig)},mm=function e(t){var n=this;A.default(this,e),b.default(this,"load",_.default(E.default.mark((function e(){return E.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fm(n.moduleName);case 2:n.air=e.sent;case 3:case"end":return e.stop()}}),e)})))),b.default(this,"splash",_.default(E.default.mark((function e(){return E.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.air){e.next=3;break}return e.next=3,n.load();case 3:return e.abrupt("return",n.air[n.moduleSplash]);case 4:case"end":return e.stop()}}),e)}))));var r=t.package||"gd-sdk-air-dynamic",i=t.package_version||"1.2.0",a=t.template||"pluto",o=t.dependencies||[];this.moduleName="GDSplashDynamic",this.moduleSplash=a.charAt(0).toUpperCase()+a.slice(1),this.moduleConfig={source:"https://pm.gamedistribution.com/@bygd/".concat(r,"/").concat(i,"/dist/").concat(a.toLowerCase(),"/iife/index.js"),dependencies:o},lm(this.moduleName,this.moduleConfig)},gm=function(e,t){console.log(e,t)},vm={},ym={},bm=null;function _m(){for(var e,t=window,n=null,r=null;!e;){try{if("function"==typeof t.__tcfapi||"function"==typeof t.__cmp){"function"==typeof t.__tcfapi?(r=2,n=t.__tcfapi):(r=1,n=t.__cmp),e=t;break}}catch(e){}try{if(t.frames.__tcfapiLocator){r=2,e=t;break}}catch(e){}try{if(t.frames.__cmpLocator){r=1,e=t;break}}catch(e){}if(t===window.top)break;t=t.parent}return vm.version=r,vm.frame=e,vm.function=n,vm.version}function Am(e){var t=this;return bm||(bm=new Promise(function(n){function r(t,r){if(gm("Received a response from CMP",t),r){var i,a;if(!1!==t.gdprApplies)return"tcloaded"===t.eventStatus||"useractioncomplete"===t.eventStatus?(("boolean"!=typeof(a=(i=t)&&"boolean"==typeof i.gdprApplies?i.gdprApplies:e.defaultGdprScope)||!0===a&&"string"!=typeof i.tcString)&&n({result:"cmpUnexpectedResponse",cmp:vm,consentData:i}),void n({result:"ok",consentData:t})):void 0;n({result:"ok",consentData:t})}else n({result:"cmpCallFailed"})}v.default(this,t),_m(),vm.frame?2===vm.version?(gm("TCF v2 CMP found. Fetching the consent."),vm.function?(gm("CMP API is directly accessible, calling it now..."),vm.function("addEventListener",vm.version,r)):(gm("CMP API is outside the current iframe, calling it now..."),function(e,t,n){var r=this,i="__tcfapi";function a(e){var t="".concat(i,"Return"),n="string"==typeof e.data&&e.data.indexOf(t)>=0?JSON.parse(e.data):e.data;if(n[t]&&n[t].callId){var r=n[t];void 0!==ym[r.callId]&&ym[r.callId](r.returnValue,r.success)}}window[i]=function(e,n,a,o){v.default(this,r);var s=Math.random()+"",d="".concat(i,"Call"),u=b.default({},d,{command:e,parameter:o,callId:s,version:n});ym[s]=a,t.postMessage(u,"*")}.bind(this),window.addEventListener("message",a,!1),window[i](e,vm.version,n)}("addEventListener",vm.frame,r))):n({result:"cmpVersionNotV2",cmp:vm}):n({result:"cmpNotFound"})}.bind(this)))}var wm=new(function(){function e(){A.default(this,e),this.productName="Game Distribution"}var t;return w.default(e,[{key:"track",value:(t=_.default(E.default.mark((function e(t){var n,r,i,a,o,s;return E.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=null==t||null===(n=t.visitor)||void 0===n?void 0:n.visitorId){e.next=3;break}return e.abrupt("return");case 3:return i=encodeURIComponent(this.productName),a=encodeURIComponent(r),e.prev=5,o="https://tracker-v4.gamedock.io/v1/events-tracker/track/product/".concat(i,"/user_id/").concat(a),e.next=9,fetch(o,{method:"POST"});case 9:e.next=25;break;case 12:return e.prev=12,e.t0=e.catch(5),console.log("GAME_DOCK. fail v4",e.t0),e.prev=15,s="https://tracker.gamedock.io/v1/events-tracker/track/product/".concat(i,"/user_id/").concat(a),e.next=19,fetch(s,{method:"POST"});case 19:e.next=25;break;case 22:e.prev=22,e.t1=e.catch(15),console.log("GAME_DOCK. fail v6",e.t1);case 25:case"end":return e.stop()}}),e,this,[[5,12],[15,22]])}))),function(e){return t.apply(this,arguments)})}]),e}());function Em(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 km(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Em(Object(n),!0).forEach((function(t){b.default(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Em(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Dm=null,xm=function(){function e(t){var n=this;if(A.default(this,e),Dm)return Dm;Dm=this,this._defaults=this._getDefaultOptions(),this._extendDefaultOptions(this._defaults,t),this._version=t.version||"0.0.0",this._bridge=this._getBridgeContext(),this._parentURL=this._bridge.parentURL,this._parentDomain=this._bridge.parentDomain,this._topDomain=this._bridge.topDomain,this._isFullScreen=!1,this._setConsoleBanner(),this._initializeMessageRouter(),this._checkConsole(),this._subscribeToEvents(),this.sdkReady=new Promise(this._initializeSDKWithGameData.bind(this)),this.sdkReady.then(function(e){v.default(this,n),this._sdk_ready=!0}.bind(this)).catch(function(e){v.default(this,n),this._sdk_ready=!1}.bind(this)).finally(function(){var e=this;v.default(this,n),this._sendLoaderDataEvent(),this._checkSplashAndPromoScreens(),this._initBlockingExternals(),window.addEventListener("DOMNodeInserted",function(){if(v.default(this,e),this._gameData.block_exts&&this._removeExternalsInHtml({enabled:!1}),document.getElementsByClassName("webgl-content")[0]){var t=document.getElementsByClassName("webgl-content")[0].getElementsByClassName("footer")[0];t&&t.setAttribute("style","display:none")}}.bind(this)),this._checkFullscreen()}.bind(this))}var t,n,r,i,a,o,s,u,c;return w.default(e,[{key:"testConsent",value:function(){console.log("test-consent. Finding CMP");try{var e=_m();console.log("CMP found",e),_.default(E.default.mark((function e(){var t;return E.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Am({});case 2:t=e.sent,console.log("After lookup IAB consent",t);case 4:case"end":return e.stop()}}),e)})))()}catch(e){console.log("find CMP error",e)}}},{key:"_sendLoaderDataEvent",value:function(){try{this.options.onLoaderEvent({name:"LOADER_DATA",message:{game:this._gameData,bridge:this._bridge},status:this._sdk_ready?"success":"error"})}catch(e){}}},{key:"isLoaded",value:function(){if(void 0===this._isLoaded){var e=this._isTokenGameURL(),t=this._isExtHostedGameURL(),n=this._isMasterGameURL();this._isLoaded=(e||t&&!n)&&this._gameData.loader.enabled}return this._isLoaded}},{key:"setIsLoaded",value:function(e){this._isLoaded=e}},{key:"_sendLoadedEvent",value:function(){if(!this.isLoaded()){this.setIsLoaded(!0);try{this._sendTunnlEvent(1),this.msgrt.send("loaded",{message:this._hasBlocker?"Has Blocker":"No Blocker"}),this._initGamedockTracker(window.GamedockSDK,"gameplay")}catch(e){}}}},{key:"_safeInit",value:function(){this._checkUserDeclinedTracking(),this._checkWhitelabelPartner(),this._gdpr();var e=this._gameData.diagnostic;void 0!==e&&void 0!==e.close_ga&&!1!==e.close_ga||!this._bridge.isCoreSDKMode&&this._loadGoogleAnalytics(),void 0!==e&&void 0!==e.close_gamedock&&!1!==e.close_gamedock||!this._bridge.isCoreSDKMode&&!this._bridge.noGamedockSDK&&this._loadGamedockTracker(),void 0!==e&&void 0!==e.close_minijuegos&&!1!==e.close_minijuegos||!this._bridge.isCoreSDKMode&&!this._bridge.noMinijuegosSDK&&document.location.search.indexOf("mp_game_id")>=0&&this._loadMiniJuegosGratisTracker()}},{key:"_initializeSDKWithGameData",value:(c=_.default(E.default.mark((function e(t,n){var r,i=this;return E.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this._getGameData();case 3:this._gameData=e.sent,this._bridge.isCoreSDKMode=!(!0===this._gameData.enableAds||!0===(null===(r=this._gameData.enableAds)||void 0===r?void 0:r.enabled)),this._safeInit(),this._checkGameId(),this._checkGameDeleted(),this._checkBlocking(),this._changeMidrollInDebugMode(),void 0!==this._gameData.diagnostic&&void 0!==this._gameData.diagnostic.close_ads&&!1!==this._gameData.diagnostic.close_ads||(this.videoAdReady=this._initializeVideoAd().catch(function(e){return v.default(this,i),console.error(e.message||e)}.bind(this))),this._sendSDKReady(),t(this._gameData),e.next=20;break;case 15:e.prev=15,e.t0=e.catch(0),this._sendSDKError(e.t0),this.onResumeGame(e.t0.message,"warning"),n(e.t0);case 20:case"end":return e.stop()}}),e,this,[[0,15]])}))),function(e,t){return c.apply(this,arguments)})},{key:"_getDefaultOptions",value:function(){return{debug:!1,testing:!1,gameId:"4f3d7d38d24b740c95da2b03dc3a2333",prefix:"gdsdk__",onEvent:function(e){},onLoaderEvent:function(e){},flashSettings:{adContainerId:"",splashContainerId:""},advertisementSettings:{},resumeGame:function(){},pauseGame:function(){},onInit:function(e){},onError:function(e){},loader:{}}}},{key:"_extendDefaultOptions",value:function(e,t){var n=T.default(e);this.options=t?d.extendDefaults(n,t):n,this.options.gameId=this.options.gameId.trim()}},{key:"_setConsoleBanner",value:function(){if(!this._bridge.noConsoleBanner){var e=Wh,t=console.log("%c %c %c GameDistribution.com HTML5 SDK | Version: "+e+" %c %c %c","background: #9854d8","background: #6c2ca7","color: #fff; background: #450f78;","background: #6c2ca7","background: #9854d8","background: #ffffff");console.log.apply(console,t)}}},{key:"_sendTunnlEvent",value:function(e){var t,n=null!==(t=this._gameData.diagnostic&&this._gameData.diagnostic.useTopDomains)&&void 0!==t&&t,r={page_url:decodeURIComponent(n?this._topDomain:this._parentURL),game_id:this.options.gameId,eventtype:e,ts:Date.now()};fetch("https://ana.headerlift.com/event?".concat(S.default.stringify(r)))}},{key:"_sendAdRequestContext",value:function(e){this.msgrt.send("adctx",{message:e.adTag.bidder})}},{key:"_checkWhitelabelPartner",value:function(){this._whitelabelPartner=!1;var e=d.getQueryParams("xanthophyll");e.hasOwnProperty("xanthophyll")&&"true"===e.xanthophyll&&(this._whitelabelPartner=!0,d.dankLog("White label publisher","".concat(this._whitelabelPartner),"success"))}},{key:"_checkConsole",value:function(){try{if(!d.Ls.available)return;"developer.gamedistribution.com"===this._parentDomain?(d.Ls.set("gd_debug_ex",!0),d.Ls.set("gd_disable_midroll_timer",!0),d.Ls.set("gd_tag",!0)):"localhost:3000"===this._parentDomain&&(d.Ls.set("gd_debug_ex",!0),d.Ls.set("gd_disable_midroll_timer",!0)),d.Ls.getBoolean("gd_debug_ex")&&(this.openConsole(),this.msgrt.send("dev.console",{message:this._parentDomain}))}catch(e){}}},{key:"_checkUserDeclinedTracking",value:function(){this._userDeclinedTracking=this._bridge.isCoreSDKMode||document.location.search.indexOf("gdpr-tracking=0")>=0||document.cookie.indexOf("ogdpr_tracking=0")>=0}},{key:"_initializeMessageRouter",value:function(){this.msgrt=new d.MessageRouter({gameId:this.options.gameId,hours:(new Date).getHours(),topDomain:this._topDomain,domain:this._parentDomain,referrer:this._parentURL,depth:d.getIframeDepth(),version:Wh,tracking:this._userDeclinedTracking,whitelabel:this._whitelabelPartner,platform:d.getMobilePlatform(),byloader:this._bridge.isTokenGameURL,isTokenGameURL:this._bridge.isTokenGameURL,isMasterGameURL:this._bridge.isMasterGameURL,isExtHostedGameURL:this._bridge.isExtHostedGameURL,byloaderVersion:this._bridge.version})}},{key:"_loadGamedockTracker",value:function(){var e=this;try{var t=["https://cdn.gamedock.io/gamedock-web-tracker/4.3.0/script/gamedock-sdk.min.js"];d.getScript(t[0],"GamedockSDK",{alternates:t}).then(function(){v.default(this,e);var t=this._initGamedockTracker(window.GamedockSDK,"pageview");wm.track(t)}.bind(this)).catch(function(t){v.default(this,e),this._sendSDKError(t)}.bind(this))}catch(e){}}},{key:"_initGamedockTracker",value:function(e,t){if(!this._bridge.isCoreSDKMode){var n=e.initialize("gd",this._parentDomain);return n.tracking.trackEvent(t,{pageId:this.options.gameId,pageType:"game"}),n}}},{key:"_loadMiniJuegosGratisTracker",value:function(){var e=this;window.mpConfig={game:this.options.gameId,partner:"game-distribution"};var t=["https://ext.minijuegosgratis.com/external-host/main.js"];d.getScript(t[0],"MinijuegosSDK",{alternates:t}).catch(function(t){v.default(this,e),this._sendSDKError(t)}.bind(this))}},{key:"_loadGoogleAnalytics",value:function(){var e=this,t=["https://www.google-analytics.com/analytics.js"];d.getScript(t[0],"gdsdk_google_analytics",{alternates:t,error_prefix:"Blocked:",exists:function(){return v.default(this,e),window.ga}.bind(this)}).then(function(){v.default(this,e),window.ga("create","UA-60359297-49",{name:"gd",cookieExpires:7776e3,sampleRate:5},"auto"),this._bridge.noGAPageView||window.ga("gd.send","pageview"),this._userDeclinedTracking||window.ga("gd.set","anonymizeIp",!0)}.bind(this)).catch(function(t){v.default(this,e),this._sendSDKError(t)}.bind(this))}},{key:"_subscribeToEvents",value:function(){var e=this;this.eventBus=new d.EventBus,d.SDKEvents.forEach(function(t){var n=this;return v.default(this,e),this.eventBus.subscribe(t,function(e){return v.default(this,n),this._onEvent(e)}.bind(this),"sdk")}.bind(this)),this.eventBus.subscribe("AD_SDK_CANCELED",function(){v.default(this,e)}.bind(this),"sdk"),d.IMAEvents.forEach(function(t){var n=this;return v.default(this,e),this.eventBus.subscribe(t,function(e){return v.default(this,n),this._onEvent(e)}.bind(this),"ima")}.bind(this)),this.eventBus.subscribe("COMPLETE",function(){if(v.default(this,e),"developer.gamedistribution.com"===this._parentDomain||!0===new RegExp("^localhost").test(this._parentDomain)){fetch("https://game.api.gamedistribution.com/game/v2/hasapi/".concat(this.options.gameId,"?timestamp=").concat((new Date).valueOf()));try{var t=JSON.stringify({type:"GD_SDK_IMPLEMENTED",gameID:this.options.gameId});window.location!==window.top.location?window.top.postMessage(t,"*"):null!==window.opener&&window.opener.location!==window.location&&window.opener.postMessage(t,"*")}catch(e){}}}.bind(this),"ima"),this.eventBus.subscribe("CONTENT_PAUSE_REQUESTED",function(){return v.default(this,e),this.onPauseGame("New advertisements requested and loaded","success")}.bind(this),"ima"),this.eventBus.subscribe("IMPRESSION",function(t){v.default(this,e),this.msgrt.send("ad.impression")}.bind(this),"ima"),this.eventBus.subscribe("SKIPPED",function(t){v.default(this,e)}.bind(this),"ima"),this.eventBus.subscribe("AD_ERROR",function(t){v.default(this,e),this.msgrt.send("ad.error",{message:t.message,details:t.details})}.bind(this),"ima"),this.eventBus.subscribe("CLICK",function(t){v.default(this,e)}.bind(this),"ima"),this.eventBus.subscribe("COMPLETE",function(t){v.default(this,e)}.bind(this),"ima"),this.eventBus.subscribe("AD_SDK_REQUEST",function(t){v.default(this,e),this._sendAdRequestContext(t.message)}.bind(this),"sdk"),this.eventBus.subscribe("SDK_ERROR",function(t){v.default(this,e),t.message.startsWith("Blocked:")?this._bridge.noBlockerEvent||(this.msgrt.send("error",{message:t.message}),this._hasBlocker||(this._hasBlocker=!0,this._sendTunnlEvent(3))):this.msgrt.send("error",{message:t.message})}.bind(this),"sdk"),this.eventBus.subscribe("AD_REQUEST",function(t){v.default(this,e)}.bind(this),"sdk"),this.eventBus.subscribe("AD_REQUEST_KEYS_EMPTY",function(t){v.default(this,e),this.msgrt.send("tunnl.keys.empty",{message:t.message,details:t.details})}.bind(this),"sdk"),this.eventBus.subscribe("AD_REQUEST_KEYS_FALLBACK",function(t){v.default(this,e),this.msgrt.send("tunnl.keys.fallback",{message:t.message,details:t.details})}.bind(this),"sdk"),this.eventBus.subscribe("AD_T4R",function(t){return v.default(this,e),this.msgrt.send("adt4r")}.bind(this),"sdk")}},{key:"_gdpr",value:function(){var e=this,t=!this._bridge.isCoreSDKMode&&document.location.search.indexOf("gdpr-tracking")>=0,n=document.location.search.indexOf("gdpr-tracking=1")>=0,r=!this._bridge.isCoreSDKMode&&document.location.search.indexOf("gdpr-targeting")>=0,i=document.location.search.indexOf("gdpr-targeting=1")>=0,a=!this._bridge.isCoreSDKMode&&document.location.search.indexOf("gdpr-third-party")>=0,o=document.location.search.indexOf("gdpr-third-party=1")>=0;[{name:"SDK_GDPR_TRACKING",message:t?n?"Allowed":"Not allowed":"Not set",status:n?"success":"warning",label:t?n?"1":"0":"not set"},{name:"SDK_GDPR_TARGETING",message:r?i?"Allowed":"Not allowed":"Not set",status:i?"success":"warning",label:r?i?"1":"0":"not set"},{name:"SDK_GDPR_THIRD_PARTY",message:a?o?"Allowed":"Not allowed":"Not set",status:o?"success":"warning",label:a?o?"1":"0":"not set"}].forEach(function(t){v.default(this,e),this.eventBus.broadcast(t.name,{name:t.name,message:t.message,status:t.status,analytics:{category:t.name,action:this._parentDomain,label:t.label}})}.bind(this))}},{key:"_checkGameId",value:function(){this.options.gameId===this._defaults.gameId&&this._sendSDKError("Check correctness of your GAME ID. Otherwise, no revenue will be recorded.")}},{key:"_getDefaultGameData",value:function(){return{gameId:this.options.gameId,enableAds:!0,preroll:!0,midroll:12e4,rewardedAds:!1,title:"",tags:[],category:"",assets:[],dmain:!0,sdk:this._getDefaultAdSDKData(),loader:this._getDefaultLoaderData(),splash:this._getDefaultSplashData(),promo:this._getDefaultPromoData(),dAds:this._getDefaultDisplayAdsData(),pAds:this._getDefaultPrerollAdsData(),mAds:this._getDefaultMidrollAdsData(),rAds:this._getDefaultRewardedAdsData()}}},{key:"_getDefaultAdSDKData",value:function(){return{}}},{key:"_getDefaultLoaderData",value:function(){return{}}},{key:"_getDefaultSplashData",value:function(){return{}}},{key:"_getDefaultPromoData",value:function(){return{}}},{key:"_getDefaultDisplayAdsData",value:function(){return{enabled:!0}}},{key:"_getDefaultPrerollAdsData",value:function(){return{}}},{key:"_getDefaultMidrollAdsData",value:function(){return{}}},{key:"_getDefaultRewardedAdsData",value:function(){return{}}},{key:"_getGameDataUrl",value:function(){var e=void 0!==this._topDomain&&"undefined"!==this._topDomain?this._topDomain:this._parentDomain;return"https://game.api.gamedistribution.com/game/v4/get/".concat(this.options.gameId.replace(/-/g,""),"/?domain=").concat(e,"&v=").concat(Wh,"&localTime=").concat((new Date).getHours())}},{key:"_checkBlocking",value:(u=_.default(E.default.mark((function e(){var t,n,r=this;return E.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=this._gameData,t=void 0===this._gameData.dmain||this._gameData.dmain,(n.bloc_gard&&!0===n.bloc_gard.enabled||!t)&&(this.msgrt.send("blocked"),setTimeout(function(){v.default(this,r),window.location.href="https://html5.api.gamedistribution.com/blocked.html?".concat(S.default.stringify({domain:this._parentDomain,id:n.gameId,img:this._get_game_thumbnail_url(),title:n.title}))}.bind(this),100));case 5:case"end":return e.stop()}}),e,this)}))),function(){return u.apply(this,arguments)})},{key:"_checkGameDeleted",value:function(){var e=this;6===this._gameData.status&&(console.log("%c %c %c This game was deleted, please remove it in your website... ","background: #F2181A","background: #F23818","color: #fff; background: #F23818;","background: #F55E60","background: #F55E60","background: #c4161e; color: #fff;"),setTimeout(function(){v.default(this,e),document.location="https://html5.api.gamedistribution.com/deleted.html"}.bind(this),100))}},{key:"_changeMidrollInDebugMode",value:function(){var e=this._gameData;d.Ls.available&&d.Ls.getBoolean("gd_debug_ex")&&(d.Ls.getBoolean("gd_disable_midroll_timer")?e.midroll=0:e.midroll=this._getDefaultGameData().midroll)}},{key:"_checkSplashAndPromoScreens",value:function(){this._gameData.loader&&!1===this._gameData.loader.mobile&&this._getisMobile()&&(this._gameData.loader.enabled=!1);var e=this._gameData,t=e.gdpr&&!0===e.gdpr.consent,n=e.loader,r=e.promo;e.preroll||(this.adRequestTimer=Date.now()),this.options.loader.enabled?r.enabled?this._createPromoBeforeSplash(e,t):n.enabled?this._createSplash(e,t):this.onResumeGame("Advertisement(s) are done. Start / resume the game.","success"):n.enabled||this._bridge.isTokenGameURL&&this._bridge.isExtHostedGameURL||(this.options.advertisementSettings.autoplay||t?r.enabled?this._createPromoBeforeSplash(e,t):!1!==n.enabled&&this._createSplash(e,t):r.enabled&&this._createPromo(e,t))}},{key:"_initializeVideoAd",value:(s=_.default(E.default.mark((function e(){var t;return E.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._bridge.isCoreSDKMode){e.next=2;break}return e.abrupt("return");case 2:return(t=this._gameData).sdk.enabled&&(this.options.advertisementSettings=d.extendDefaults(this.options.advertisementSettings,t.sdk)),this.macros=new d.Macros({game:t,bridge:this._bridge}),this.adInstance=new Df(this.options.flashSettings.adContainerId,this.options.advertisementSettings,{parentURL:this._parentURL,parentDomain:this._parentDomain,topDomain:this._topDomain}),this.adInstance.gameId=t.gameId,this.adInstance.category=t.category,this.adInstance.tags=t.tags,this.adInstance.noPreroll=this._bridge.noPreroll,this.adInstance.macros=this.macros,this.adInstance.gameData=t,this.adInstance.msgrt=this.msgrt,e.next=15,this.adInstance.start();case 15:case"end":return e.stop()}}),e,this)}))),function(){return s.apply(this,arguments)})},{key:"_sendSDKReady",value:function(){var e="Everything is ready.";this.eventBus.broadcast("SDK_READY",{message:e,status:"success"});try{this.options.onInit(e)}catch(e){d.dankLog("DEVELOPER_ERROR",e.message,"warning")}}},{key:"_sendSDKError",value:function(e){e=e.message?e:{message:e};this.eventBus.broadcast("SDK_ERROR",{message:e.message,status:"error"});try{this.options.onError(e)}catch(e){d.dankLog("DEVELOPER_ERROR",e.message,"warning")}}},{key:"_onEvent",value:function(e){d.dankLog(e.name,e.message,e.status);try{this.options.onEvent({name:e.name,message:e.message,status:e.status})}catch(e){d.dankLog("DEVELOPER_ERROR",e.message,"warning")}}},{key:"_getGameData",value:function(){var e=this;return new Promise(function(t){var n=this;v.default(this,e);var r=this._getDefaultGameData(),i=this._getGameDataUrl();fetch(i).then(function(e){return v.default(this,n),e.json()}.bind(this)).then(function(e){if(v.default(this,n),e.success){var i,a=e.result.game,o={gameId:a.gameMd5,status:a.status,description:a.description,enableAds:!0===a.enableAds||!0===(null===(i=a.enableAds)||void 0===i?void 0:i.enabled),preroll:a.preRoll,midroll:6e4*a.timeAds,rewardedAds:a.rewardedAds,title:a.title,tags:a.tags,category:a.category,assets:a.assets,disp_2nd_prer:a.disp_2nd_prer,ctry_vst:a.ctry_vst,ctry:a.ctry,crtv:a.crtv,dmain:a.dmain,block_exts:this._parseAndSelectRandomOne(a.push_cuda),bloc_gard:this._parseAndSelectRandomOne(a.bloc_gard),cookie:this._parseAndSelectRandomOne(a.cookie),gdpr:this._parseAndSelectRandomOne(a.gdpr),diagnostic:this._parseAndSelectRandomOne(a.diagnostic),sdk:this._parseAndSelectRandomOne(a.sdk)||this._getDefaultAdSDKData(),loader:this._parseAndSelectRandomOne(a.loader)||this._getDefaultLoaderData(),splash:this._parseAndSelectRandomOne(a.splash)||this._getDefaultSplashData(),promo:this._parseAndSelectRandomOne(a.promo)||this._getDefaultPromoData(),dAds:this._parseAndSelectRandomOne(a.dads)||this._getDefaultDisplayAdsData(),pAds:this._parseAndSelectRandomOne(a.pads)||this._getDefaultPrerollAdsData(),mAds:this._parseAndSelectRandomOne(a.mads)||this._getDefaultMidrollAdsData(),rAds:this._parseAndSelectRandomOne(a.rads)||this._getDefaultRewardedAdsData()},s=d.extendDefaults(T.default(r),o);this._bridge.noPreroll=(!this._getisMobile()||!1!==s.loader.mobile)&&this._bridge.noPreroll,this._bridge.noPreroll&&(this.adRequestTimer=Date.now()),this.msgrt.setGameData(s),d.setDankLog(s.diagnostic),t(s)}else r.failed=!0,t(r)}.bind(this)).catch(function(e){v.default(this,n),r.failed=!0,t(r)}.bind(this))}.bind(this))}},{key:"_createSplash",value:(o=_.default(E.default.mark((function e(t,n){var r,i,a=this;return E.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._getSplashTemplate(t);case 2:r=e.sent,(i=new r(km(km({},this.options),{},{isConsentDomain:n,version:Wh}),t,this._parentDomain)).on("playClick",function(){var e=this;if(v.default(this,a),n){var t=new Date;t.setDate(t.getDate()+90),document.cookie="ogdpr_tracking=1; expires=".concat(t.toUTCString(),"; path=/")}this.showAd(d.AdType.Interstitial).catch(function(t){v.default(this,e)}.bind(this))}.bind(this)),i.on("slotVisibilityChanged",function(e){v.default(this,a)}.bind(this)),this.onPauseGame("Pause the game and wait for a user gesture","success"),this.eventBus.subscribe("SDK_GAME_PAUSE",function(){v.default(this,a),i.hide()}.bind(this)),this.eventBus.subscribe("SDK_GAME_START",function(){v.default(this,a),i.hide()}.bind(this));case 9:case"end":return e.stop()}}),e,this)}))),function(e,t){return o.apply(this,arguments)})},{key:"_createPromoBeforeSplash",value:(a=_.default(E.default.mark((function e(t,n){var r,i,a=this;return E.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._instancePromo(t);case 2:r=e.sent,(i=new r(km(km({},this.options),{},{isConsentDomain:n,version:Wh}),t)).on("skipClick",function(){v.default(this,a),i.hide(),this._createSplash(t,n)}.bind(this)),i.on("adCompleted",function(){v.default(this,a),i.hide(),this._createSplash(t,n)}.bind(this));case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return a.apply(this,arguments)})},{key:"_createPromo",value:(i=_.default(E.default.mark((function e(t,n){var r,i,a=this;return E.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._instancePromo(t);case 2:r=e.sent,(i=new r(km(km({},this.options),{},{isConsentDomain:n,version:Wh}),t)).on("skipClick",function(){v.default(this,a),i.hide(),this.onResumeGame("Resumed after the promo","warning")}.bind(this)),this.onPauseGame("Pause the game for the promo","success");case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})},{key:"showBanner",value:function(){var e=this;this.showAd(d.AdType.Interstitial).catch(function(t){v.default(this,e)}.bind(this))}},{key:"showAd",value:(r=_.default(E.default.mark((function e(t,n){var r=this;return E.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=_.default(E.default.mark((function e(i,a){var o,s,u,c,l,h=this;return E.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,r.sdkReady;case 3:return o=e.sent,e.next=6,r.videoAdReady;case 6:if(r._sendLoadedEvent(),!o.bloc_gard||!0!==o.bloc_gard.enabled){e.next=9;break}throw new Error("Game or domain is blocked.");case 9:if(o.enableAds&&!r._whitelabelPartner){e.next=11;break}throw new Error("Advertisements are disabled.");case 11:if(t){e.next=15;break}t=d.AdType.Interstitial,e.next=17;break;case 15:if(t===d.AdType.Interstitial||t===d.AdType.Rewarded){e.next=17;break}throw new Error("Unsupported an advertisement type: ",t);case 17:if(t!==d.AdType.Rewarded||o.rewardedAds){e.next=19;break}throw new Error("Rewarded ads are disabled.");case 19:if(t!==d.AdType.Interstitial||void 0===r.adRequestTimer){e.next=23;break}if(!(Date.now()-r.adRequestTimer<o.midroll)){e.next=23;break}throw new Error("The advertisement was requested too soon.");case 23:return s="main.showad",u=function(e){var n=this;v.default(this,h),r.adInstance.resetForNext(),r.showAd(t,e).then(function(e){v.default(this,n),r.adRequestTimer=Date.now(),r.onResumeGame("Advertisement(s) are done. Start / resume the game.","success"),i("")}.bind(this)).catch(function(s){var u=this;if(v.default(this,n),e.retry_on_success)r.adRequestTimer=Date.now(),r.onResumeGame("Advertisement(s) are done. Start / resume the game.","success"),i("");else if(e.retry_on_failure){var c=(o.promo||{}).puzzle||{};c.enabled&&(c.trigger.interstitial_failure&&t===d.AdType.Interstitial||c.trigger.rewarded_failure&&t===d.AdType.Rewarded)?r._showPromoDisplayAd().then(function(e){v.default(this,u),r.onResumeGame("DisplayAd succeded.","success"),i("DisplayAd succeded.")}.bind(this)).catch(function(e){v.default(this,u),r.onResumeGame("DisplayAd failed.","warning"),a("DisplayAd failed.")}.bind(this)):(r.onResumeGame(s.message||s,"warning"),a(s.message||s))}else r.onResumeGame(s.message||s,"warning"),a(s.message||s)}.bind(this))}.bind(this),c=function(e){var c=this;if(v.default(this,h),r.eventBus.unsubscribeScope(s),void 0!==n)a(e.message);else if(r._isRetryOnFailureEnabled(t))u({retry_on_failure:!0});else{r.adRequestTimer=Date.now();var l,f,p=(o.promo||{}).puzzle||{};p.enabled&&(p.trigger.interstitial_failure&&t===d.AdType.Interstitial||p.trigger.rewarded_failure&&t===d.AdType.Rewarded)?r._showPromoDisplayAd().then(function(e){v.default(this,c),r.onResumeGame("DisplayAd succeded.","success"),i("DisplayAd succeded.")}.bind(this)).catch(function(e){v.default(this,c),r.onResumeGame("DisplayAd failed.","warning"),a("DisplayAd failed.")}.bind(this)):(!0===(null===(l=r._gameData.promo)||void 0===l||null===(f=l.puzzle)||void 0===f?void 0:f.enableAfterPreroll)&&(r._gameData.promo.puzzle.enabled=!0),r.onResumeGame(e.message,"warning"),a(e.message))}}.bind(this),l=function(e){v.default(this,h),r.eventBus.unsubscribeScope(s),void 0!==n?i(e.message):r._isRetryOnSuccessEnabled(t)?u({retry_on_success:!0}):(r.adRequestTimer=Date.now(),r.onResumeGame("Advertisement(s) are done. Start / resume the game.","success"),i(e.message))}.bind(this),r.eventBus.subscribe("AD_ERROR",c,s),r.eventBus.subscribe("AD_SDK_CANCELED",c,s),r.eventBus.subscribe("AD_SUCCESS",l,s),e.next=32,r.adInstance.startAd(t,n);case 32:r._post_message({topic:"adrequest.instream"}),e.next=39;break;case 35:e.prev=35,e.t0=e.catch(0),r.onResumeGame(e.t0.message,"warning"),a(e.t0.message);case 39:case"end":return e.stop()}}),e,this,[[0,35]])})));return function(t,n){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)}))),function(e,t){return r.apply(this,arguments)})},{key:"_isRetryOnSuccessEnabled",value:function(e){var t=this._gameData,n=this.adInstance.getAdPosition(e),r=t.sdk.enabled&&(!0===t.sdk.retry_on_success||l.isPlainObject(t.sdk.retry_on_success));return"preroll"===n&&void 0!==t.pAds.retry_on_success?r=r&&t.pAds.retry_on_success:"midroll"===n&&void 0!==t.mAds.retry_on_success?r=r&&t.mAds.retry_on_success:"rewarded"===n&&void 0!==t.rAds.retry_on_success&&(r=r&&t.rAds.retry_on_success),r}},{key:"_isRetryOnFailureEnabled",value:function(e){var t=this._gameData,n=this.adInstance.getAdPosition(e),r=t.sdk.enabled&&(!0===t.sdk.retry_on_failure||l.isPlainObject(t.sdk.retry_on_failure));return"preroll"===n&&void 0!==t.pAds.retry_on_failure?r=r&&t.pAds.retry_on_failure:"midroll"===n&&void 0!==t.mAds.retry_on_failure?r=r&&t.mAds.retry_on_failure:"rewarded"===n&&void 0!==t.rAds.retry_on_failure&&(r=r&&t.rAds.retry_on_failure),r}},{key:"preloadAd",value:(n=_.default(E.default.mark((function e(t){var n=this;return E.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=_.default(E.default.mark((function e(r,i){var a,o;return E.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,n.sdkReady;case 3:return a=e.sent,e.next=6,n.videoAdReady;case 6:if(!a.bloc_gard||!0!==a.bloc_gard.enabled){e.next=8;break}throw new Error("Game or domain is blocked.");case 8:if(a.enableAds&&!n._whitelabelPartner){e.next=10;break}throw new Error("Advertisements are disabled.");case 10:if(t){e.next=14;break}t=d.AdType.Rewarded,e.next=16;break;case 14:if(t===d.AdType.Interstitial||t===d.AdType.Rewarded){e.next=16;break}throw new Error("Unsupported an advertisement type:"+t);case 16:if(t!==d.AdType.Rewarded||a.rewardedAds){e.next=18;break}throw new Error("Rewarded ads are disabled.");case 18:return e.next=20,n.adInstance.preloadAd(t);case 20:o=e.sent,r(o),e.next=27;break;case 24:e.prev=24,e.t0=e.catch(0),i(e.t0);case 27:case"end":return e.stop()}}),e,null,[[0,24]])})));return function(t,n){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)}))),function(e){return n.apply(this,arguments)})},{key:"cancelAd",value:(t=_.default(E.default.mark((function e(){var t=this;return E.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=_.default(E.default.mark((function e(n,r){return E.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{t.adInstance.cancel(),t.onResumeGame("Advertisement(s) are cancelled. Start / resume the game.","success"),r()}catch(e){t.onResumeGame("Advertisement(s) are cancelled. Start / resume the game.","success"),n(e.message)}case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)}))),function(){return t.apply(this,arguments)})},{key:"showDisplayAd",value:function(e){var t=this;return new Promise(function(){var n=_.default(E.default.mark((function n(r,i){var a;return E.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,t.sdkReady;case 3:return a=n.sent,n.next=6,t.videoAdReady;case 6:if(!a.dAds.enabled){n.next=13;break}return n.next=9,t.adInstance.loadDisplayAd(e);case 9:t._post_message({topic:"adrequest.display"}),r(),n.next=14;break;case 13:i("Display-Ads are disabled.");case 14:n.next=19;break;case 16:n.prev=16,n.t0=n.catch(0),i(n.t0.message||n.t0);case 19:case"end":return n.stop()}}),n,null,[[0,16]])})));return function(e,t){return n.apply(this,arguments)}}())}},{key:"onResumeGame",value:function(e,t){this._allowExternals({enabled:!1});try{this.options.resumeGame()}catch(e){d.dankLog("DEVELOPER_ERROR",e.message,"warning")}var n="SDK_GAME_START";this.eventBus.broadcast(n,{name:n,message:e,status:t,analytics:{category:"SDK",action:n,label:this.options.gameId+""}})}},{key:"onPauseGame",value:function(e,t){this._allowExternals({enabled:!0});try{this.options.pauseGame()}catch(e){d.dankLog("DEVELOPER_ERROR",e.message,"warning")}var n="SDK_GAME_PAUSE";this.eventBus.broadcast(n,{name:n,message:e,status:t,analytics:{category:"SDK",action:n,label:this.options.gameId+""}})}},{key:"openConsole",value:function(){try{new d.ImplementationTest(this).start(),d.Ls.set("gd_debug_ex",!0)}catch(e){console.log(e)}}},{key:"_initBlockingExternals",value:function(){var e=this._gameData;(e.failed||e.block_exts&&e.block_exts.enabled)&&(this.window_open=window.open,this._allowExternals({enabled:!1}),this._removeExternalsInHtml({enabled:!1}))}},{key:"_checkFullscreen",value:function(){var e=this;try{var t=this._gameData;t.sdk.fullscreen&&"auto"===t.sdk.fullscreen&&document.addEventListener("click",function(){if(v.default(this,e),!this._isFullScreen){var t=document.body,n=t.requestFullScreen||t.webkitRequestFullScreen||t.mozRequestFullScreen||t.msRequestFullscreen;if(n)n.call(t);else if(void 0!==window.ActiveXObject){var r=new ActiveXObject("WScript.Shell");null!==r&&r.SendKeys("{F11}")}this._isFullScreen=!0}}.bind(this))}catch(e){console.log("Fullscreen error handled...",e)}}},{key:"_allowExternals",value:function(e){var t=this;void 0!==this.window_open&&(!1===e.enabled?window.open=function(e){v.default(this,t),this.msgrt.send("external",{message:"C> ".concat(e)}),(e.startsWith("https://play.google.com")||e.startsWith("https://itunes.apple.com"))&&this.window_open.call(null,e)}.bind(this):window.open=this.window_open)}},{key:"_removeExternalsInHtml",value:function(e){var t=this;!1===e.enabled&&window.document.querySelectorAll("a").forEach(function(e){var n=this;v.default(this,t);var r=!!(e.innerText.toLowerCase().includes("start")||e.innerText.toLowerCase().includes("play")||e.innerText.toLowerCase().includes("continue")),i=e.getAttribute("href");e.removeAttribute("href"),r||(e.onclick=function(e){return v.default(this,n),e.preventDefault(),this.msgrt.send("external",{message:"H> ".concat(i)}),!1}.bind(this))}.bind(this))}},{key:"_getBridgeContext",value:function(){var e=this._isTokenGameURL(),t=this._isMasterGameURL(),n=this._isExtHostedGameURL(),r=e||n?this._getTokenGameURLConfig():{};r=r||{};var i=decodeURIComponent((e||n)&&r.parentURL?r.parentURL:d.getParentUrl()),a=decodeURIComponent((e||n)&&r.parentDomain?r.parentDomain:d.getParentDomain()),o=decodeURIComponent((e||n)&&r.topDomain?r.topDomain:d.getTopDomain()),s=(e||n)&&r.loaderEnabled,u=(e||n)&&r.loaderEnabled,c=(e||n)&&r.loaderEnabled,l=(e||n)&&r.loaderEnabled,h=(e||n)&&r.loaderEnabled,f=(e||n)&&r.loaderEnabled,p=(e||n)&&r.loaderEnabled,m=(e||n)&&r.loaderEnabled,g=(e||n)&&r.loaderEnabled&&r.hasImpression&&r.version>="1.1.24";return{isTokenGameURL:e,isMasterGameURL:t,isExtHostedGameURL:n,noConsoleBanner:s,noLoadedEvent:u,noBlockerEvent:c,noPreroll:m,parentURL:i,parentDomain:a,topDomain:o,noGAPageView:l,noLotamePageView:h,noGamedockSDK:f,noMinijuegosSDK:p,version:r.version,pauseGameOnStartup:g,depth:d.getIframeDepth(),domainMatched:a===o,exports:{formatTokenURLSearch:this._formatTokenURLSearch.bind(this),extendUrlQuery:this._extendUrlQuery.bind(this),base64Encode:this._base64_encode.bind(this)}}}},{key:"_isMasterGameURL",value:function(){var e=/http[s]?:\/\/(html5\.gamedistribution\.com\/[A-Fa-f0-9]{32})(.*)$/i;return e.test(location.href)||!this._isTokenGameURL()&&e.test(document.referrer)}},{key:"_isTokenGameURL",value:function(){var e=/http[s]?:\/\/(html5\.gamedistribution\.com\/[A-Za-z0-9]{8})\/(.*)$/i;return e.test(location.href)||e.test(document.referrer)}},{key:"_isExtHostedGameURL",value:function(){var e=/^http[s]?:\/\/.*?gd_sdk_referrer_url=.*$/i;return e.test(location.href)||e.test(document.referrer)}},{key:"_getTokenGameURLConfig",value:function(){try{var e,t=/http[s]?:\/\/html5\.gamedistribution\.com\/[A-Za-z0-9]{8}\/[A-Fa-f0-9]{32}\/.*/i;if(t.test(location.href)){var n=new D.default(location.href,!0);if(!n.query.gd_zone_config)return;e=n.query.gd_zone_config}else if(t.test(document.referrer)){var r=new D.default(document.referrer,!0);if(!r.query.gd_zone_config)return;e=r.query.gd_zone_config}else{var i=new D.default(location.href,!0);if(!i.query.gd_zone_config)return;e=i.query.gd_zone_config}return JSON.parse(m.Base64.decode(decodeURIComponent(e)))}catch(e){}}},{key:"_getSplashTemplate",value:function(e){return new mm(e.splash).splash()}},{key:"_instancePromo",value:function(e){var t,n=null!==(t=e.promo)&&void 0!==t&&t.puzzle?"Puzzle":"Hammer";return new pm(n).promo()}},{key:"_formatTokenURLSearch",value:function(e){var t="";try{t=encodeURIComponent(m.Base64.encode(JSON.stringify(e)))}catch(e){}try{var n=new D.default(location.href,!0);return n.query=n.query||{},n.query.gd_zone_config=t,"?".concat(S.default.stringify(n.query))}catch(e){return"?gd_zone_config=".concat(t)}}},{key:"_extendUrlQuery",value:function(e,t){var n=new D.default(e,!0);return n.query=km(km({},n.query),t),n.toString()}},{key:"_base64_encode",value:function(e){return m.Base64.encode(JSON.stringify(e))}},{key:"_parseAndSelectRandomOne",value:function(e){var t=this._selectRandomOne("object"===y.default(e)?e:d.parseJSON(e));return t&&t.version?Wh>=t.version?t:void 0:t}},{key:"_selectRandomOne",value:function(e){var t=this;if(!Sf(e)||0===e.length)return e;if(1===e.length)return e[0];var n=0;e.forEach(function(e){v.default(this,t),e.weight=e.weight||1,n+=e.weight}.bind(this));var r=Math.floor(Math.random()*Math.floor(n));n=0;for(var i=0;i<e.length;i++){var a=e[i];if(r<(n+=a.weight))return a}}},{key:"session",value:function(){var e=this;return new Promise(function(){var t=_.default(E.default.mark((function t(n,r){var i;return E.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.sdkReady;case 3:t.next=7;break;case 5:t.prev=5,t.t0=t.catch(0);case 7:i=e._gameData,n({ads:{display:{enabled:i.dAds.enabled},rewarded:{enabled:i.rewardedAds}},location:{parentDomain:e._bridge.parentDomain,topDomain:e._bridge.topDomain,parentURL:e._bridge.parentURL,depth:e._bridge.depth,loadedByGameZone:e._bridge.isTokenGameURL}});case 9:case"end":return t.stop()}}),t,null,[[0,5]])})));return function(e,n){return t.apply(this,arguments)}}())}},{key:"_showPromoDisplayAd",value:function(){var e=this;return new Promise(function(t,n){var r=this;v.default(this,e);var i=this._gameData;this._instancePromo(i).then(function(e){var a=this;v.default(this,r);var o=new e(km(km({},this.options),{},{version:Wh}),i),s="promo-display";this.eventBus.unsubscribeScope(s);var d=function(){v.default(this,a),this.eventBus.unsubscribeScope(s),o.show()}.bind(this),u=function(){v.default(this,a),this.eventBus.unsubscribeScope(s),o.hide(),n("No promo display ad")}.bind(this);this.eventBus.subscribe("DISPLAYAD_IMPRESSION",d,s),this.eventBus.subscribe("DISPLAYAD_ERROR",u,s),this.showDisplayAd({containerId:o.getSlotContainerId(),slotId:o.getSlotId(),visible:!0}).catch(function(e){v.default(this,a),o.hide(),n(e)}.bind(this)),o.on("skipClick",function(){v.default(this,a),o.hide(),t()}.bind(this)),o.on("adCompleted",function(){v.default(this,a),o.hide(),t()}.bind(this))}.bind(this))}.bind(this))}},{key:"_getisMobile",value:function(){var e,t=!1;return e=navigator.userAgent||navigator.vendor||window.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))&&(t=!0),!1===t&&window.orientation>-1&&(t=!0),t}},{key:"_get_game_thumbnail_url",value:function(){var e=this,t=this._gameData,n=t.assets.find(function(t){return v.default(this,e),t.hasOwnProperty("name")&&512===t.width&&512===t.height}.bind(this));return n||(n=t.assets.length>0?t.assets[0]:{name:"logo.svg"}),"https://img.gamedistribution.com/".concat(n.name)}},{key:"_post_message",value:function(e){var t,n=e.topic,r=e.data,i=null!==(t=location.ancestorOrigins)&&void 0!==t&&t.length?location.ancestorOrigins[location.ancestorOrigins.length-1]:"*";try{var a=window.top||window.parent;a&&a.postMessage({source:"gdsdk",topic:n,data:r},i)}catch(e){console.error((null==e?void 0:e.message)||e)}}}]),e}(),Tm=new function e(){var t=this;A.default(this,e),b.default(this,"load",_.default(E.default.mark((function e(){return E.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fm("Leaderboard");case 2:t.leaderboard=e.sent;case 3:case"end":return e.stop()}}),e)})))),b.default(this,"showLeaderboard",function(){var e=_.default(E.default.mark((function e(n){var r;return E.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=window.GD_OPTIONS.gameId,t.leaderboard){e.next=4;break}return e.next=4,t.load();case 4:t.leaderboard.showLeaderBoard(r,n);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),b.default(this,"addScore",function(){var e=_.default(E.default.mark((function e(n){return E.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.leaderboard){e.next=3;break}return e.next=3,t.load();case 3:t.leaderboard.addScore(n);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),this.moduleName="Leaderboard",this.moduleConfig={source:"https://pm.gamedistribution.com/@bygd/gd-sdk-leaderboard/0.1.43/dist/default/iife/index.js",dependencies:["react","react-dom","redux","react-redux","material-ui-core"]},lm(this.moduleName,this.moduleConfig)},Sm=new xm(function(){var e={};try{"object"===("undefined"==typeof GD_OPTIONS?"undefined":y.default(GD_OPTIONS))&&GD_OPTIONS?e=GD_OPTIONS:window.gdApi&&"object"===y.default(window.gdApi.q[0][0])&&window.gdApi.q[0][0]&&((e=window.gdApi.q[0][0]).hasOwnProperty("advertisementSettings")||(e.advertisementSettings={autoplay:!0}))}catch(e){console.log("_get_developer_sets failed",e)}return e}());function Rm(){var e=this;this.AdType=d.AdType,this.preloadAd=function(e){return Sm.preloadAd(e)},this.showAd=function(e,t){return e===d.AdType.Display?Sm.showDisplayAd(t):Sm.showAd(e)},this.cancelAd=function(){return Sm.cancelAd()},this.openConsole=function(){Sm.openConsole()},this.getSession=function(){return Sm.session()},this.leaderboard={show:function(){v.default(this,e),Tm.showLeaderboard()}.bind(this),addScore:function(t){v.default(this,e),Tm.addScore(t)}.bind(this)}}Rm.prototype=new function(){this.showBanner=function(){Sm.showBanner()},this.play=function(){},this.customLog=function(){}},window.gdsdk=new Rm,window.gdApi=window.gdsdk;
|